Anxiety detection from EEG signals using discrete wavelet transform and XGBoost
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.
Authors
- Yusup Miftahuddin (ORCID: https://orcid.org/0009-0005-5962-6213)
- Anisa Putri Setyaningrum
- Yuzzar Alpriatna Malik
Institutions
- Institut Teknologi Nasional Bandung (ID)
Publication Details
- Journal
- TELKOMNIKA (Telecommunication Computing Electronics and Control)
- Published
- 2026-12-01
- DOI
- https://doi.org/10.12928/telkomnika.v24i6.28137
- Primary Topic
- Emotion and Mood Recognition
- Type
- article
- Field-Weighted Citation Impact
- 0.00