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

Institutions

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
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
NOV
article

Anxiety detection from EEG signals using discrete wavelet transform and XGBoost

Yusup Miftahuddin, Anisa Putri Setyaningrum, Yuzzar Alpriatna Malik
1 links
TELKOMNIKA (Telecommunication Computing Electronics and Control)
Emotion and Mood Recognition
article

Anxiety detection from EEG signals using discrete wavelet transform and XGBoost

Yusup Miftahuddin, Anisa Putri Setyaningrum, Yuzzar Alpriatna Malik
article en

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.

TELKOMNIKA (Telecommunication Computing Electronics and Control)Vol. 24(6)
Institut Teknologi Nasional Bandung (ID)
Good health and well-being
Emotion and Mood Recognition
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Laika access coming soon