Anxiety detection from EEG signals using discrete wavelet transform and XGBoost

Anisa Putri Setyaningrum, Yusup Miftahuddin, Yuzzar Alpriatna Malik

Abstract


Anxiety detection from electroencephalography (EEG) signals is challenging because of their non-stationary nature and the risk of overfitting. Although discrete wavelet transform (DWT) and extreme gradient boosting (XGBoost) have each been applied to EEG classification, their combination has often been explored without channel selection or regularization. This study integrates DWT feature extraction with XGBoost classification, adding channel selection and regularization-focused tuning to improve accuracy and generalizability while preserving interpretability. Data came from the database for anxious states based on psychological stimulation (DASPS), comprising 23 subjects and 276 trials across 14 EEG channels, of which 10 (AF3, F7, F3, F4, F8, AF4, FC6, FC5, P7, and P8) were selected. Preprocessing involved a 50 Hz notch filter, a 4โ€“45 Hz band-pass filter, independent component analysis (ICA), and 1-second segmentation. Features were extracted using the Daubechies-4 (db4) wavelet, followed by statistical feature computation and class balancing with the synthetic minority over-sampling technique (SMOTE). XGBoost was tuned on ๐‘›_๐‘’๐‘ ๐‘ก๐‘–๐‘š๐‘Ž๐‘ก๐‘œ๐‘Ÿ๐‘ , ๐‘š๐‘Ž๐‘ฅ_๐‘‘๐‘’๐‘๐‘กโ„Ž, ๐‘™๐‘’๐‘Ž๐‘Ÿ๐‘›๐‘–๐‘›๐‘”_๐‘Ÿ๐‘Ž๐‘ก๐‘’, ๐‘Ÿ๐‘’๐‘”_๐‘Ž๐‘™๐‘โ„Ž๐‘Ž, ๐‘Ÿ๐‘’๐‘”_๐‘™๐‘Ž๐‘š๐‘๐‘‘๐‘Ž, and ๐‘”๐‘Ž๐‘š๐‘š๐‘Ž. The baseline model achieved 73.8% accuracy, while the optimized model reached 88.9% accuracy, 93.8% precision, 89.9% recall, 91.8% F1-score, and 94.2% area under the curve (AUC). Addressing overfitting and channel relevance yields a more robust, interpretable framework.

Keywords


anxiety; discrete wavelet transform; electroencephalography; machine learning; extreme gradient boosting;

Full Text:

PDF


DOI: http://doi.org/10.12928/telkomnika.v24i6.28137

Refbacks

  • There are currently no refbacks.


Creative Commons License
This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.

TELKOMNIKA Telecommunication, Computing, Electronics and Control
ISSN: 1693-6930, e-ISSN: 2302-9293

Universitas Ahmad Dahlan (UAD) , 4th Campus
Jl. Ringroad Selatan, Kragilan, Tamanan, Banguntapan, Bantul, Yogyakarta, Indonesia 55191
Phone: +62 (274) 563515, 511830, 379418, 371120
Fax: +62 (274) 564604

View TELKOMNIKA Stats