This study proposes an interpretable hybrid deep learning framework for classifying attention deficit hyperactivity disorder (ADHD) using EEG signals recorded during cognitively demanding tasks. The core architecture integrates convolutional neural networks (CNNs), gated recurrent units (GRUs), and long short-term memory (LSTM) layers to jointly capture spatial and temporal dynamics. In addition to the final hybrid architecture, the CNN–GRU–LSTM model alone demonstrates excellent accuracy (99.63%) with minimal variance, making it a strong baseline for clinical applications. To evaluate the role of global attention mechanisms, transformer encoder models with two and three attention blocks, along with a spatiotemporal transformer employing 2D positional encoding, are benchmarked. A hybrid CNN–RNN–transformer model is introduced, combining convolutional, recurrent, and transformer-based modules into a unified architecture. To enhance interpretability, SHapley Additive exPlanations (SHAP) are employed to identify key EEG channels contributing to classification outcomes. Experimental evaluation using stratified five-fold cross-validation demonstrates that the proposed hybrid model achieves superior performance, with average accuracy exceeding 99.98%, F1-scores above 0.9999, and near-perfect AUC and Matthews correlation coefficients. In contrast, transformer-only models, despite high training accuracy, exhibit reduced generalization. SHAP-based analysis confirms the hybrid model’s clinical relevance. This work advances the development of transparent and reliable EEG-based tools for pediatric ADHD screening.
Objective and reproducible diagnosis of attention-deficit/hyperactivity disorder (ADHD) remains challenging because of the limited availability of reliable electroencephalography (EEG) biomarkers and the high variability of neural signals. This study proposes a computational framework for ADHD detection based on dynamic functional connectivity and network-index modeling. Multichannel EEG recordings were transformed into temporal connectivity graphs using sliding-window correlations of band-limited amplitude envelopes. Several network-index models were evaluated, including linear, graph-based, recurrent, and hybrid spatio-temporal approaches. The proposed Hybrid Spatio-Temporal Graph Transformer demonstrated moderate, yet reproducible, subject-level classification performance. On the independent test set, the model achieved an accuracy of 63.16%, a balanced accuracy of 62.22%, a sensitivity of 80.00%, a specificity of 44.44%, an F1-score of 69.57%, and an AUC-ROC of 0.7444. Additional analysis of the derived network index demonstrated moderate intergroup separability, with a mean index shift of 1.16, Cohen’s d = 0.73, Pearson’s r = 0.36, and distribution overlap = 0.72. These findings suggest that the proposed framework captures informative spatio-temporal EEG connectivity patterns associated with ADHD; however, the model’s diagnostic applicability should be considered preliminary and requires validation in larger independent cohorts.