Anxiety detection from EEG signals using discrete wavelet transform and XGBoost
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:
PDFDOI: http://doi.org/10.12928/telkomnika.v24i6.28137
Refbacks
- There are currently no refbacks.

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