Submitted:
16 August 2025
Posted:
20 August 2025
You are already at the latest version
Abstract
Keywords:
1. Introduction
- We introduce a graph-based spatial encoding mechanism for EEG that respects anatomical electrode layout and functional connectivity.
- We integrate a recurrent temporal encoder with a neural mass model-based regularizer to enforce biologically realistic temporal dynamics.
- We propose a neuroscience-aligned loss function that incorporates spectral and connectivity-based constraints.
- We perform comprehensive evaluation and ablation studies, validating the model’s efficacy and interpretability for stress-level prediction.
2. Literature Review
3. Data Preparation
3.1. Dataset Description
3.2. Neuroscience-Aligned EEG Preprocessing
4. Neuroscience-Informed Architecture
4.1. Spatial Graph Representation
4.2. Temporal Sequence Modeling
4.3. Neural Mass Model-Based Regularization
5. Loss Modeling with Neuroscience Constraints
5.1. Cross-Entropy Classification Loss
5.2. Connectivity Divergence Penalty
5.3. Neural Mass Model Regularization
5.4. Alpha/Beta Band Power Realism
| Algorithm 1:Training Procedure for NeuroGraph-TSC |
|
6. Experiments
6.1. Experimental Setup
| Parameter | Value |
|---|---|
| Batch Size | 16 |
| Learning Rate | |
| Epochs | 30 (with early stopping) |
| Cross-Validation | Stratified 5-Fold |
| Loss Function | Composite (CE + , , ) |
| (Connectivity) | 0.1 |
| (NMM Alignment) | 0.05 |
| (Spectral Regularization) | 0.2 |
6.2. Quantitative Results and Performance Analysis

6.3. Physiological Validation via Neurophysiological Analysis

6.4. Ablation Study: Evaluating the Impact of Model Components

6.5. Comparative Study: Benchmarking Against Baseline Models

7. Conclusions and Future Directions
References
- Calvo, R.A.; D’Mello, S.K. Affective computing and intelligent interaction. IEEE Transactions on Affective Computing 2010, 1, 18–21. [Google Scholar] [CrossRef]
- Fairclough, S.H. Fundamentals of physiological computing. Interacting with Computers 2009, 21, 133–145. [Google Scholar] [CrossRef]
- Acharya, S.; et al. A systematic review of EEG-based mental stress quantification. Computer Methods and Programs in Biomedicine 2025. [Google Scholar] [CrossRef]
- Badri, Y.; et al. A review on evaluating mental stress by deep learning using EEG signals. Soft Computing 2024. [Google Scholar] [CrossRef]
- Niedermeyer, E.; Lopes da Silva, F.H. Electroencephalography: Basic Principles, Clinical Applications, and Related Fields; Lippincott Williams & Wilkins, 2005.
- Belhadi, A.; et al. Enhanced visibility graph and power spectral density features for robust EEG classification. Frontiers in Neuroscience 2025, 19, 1520003. [Google Scholar] [CrossRef] [PubMed]
- Liu, Z.; et al. EEGMind-Transformer: Leveraging deep learning for robust EEG analysis in mental state recognition. Neuroinformatics 2025. [Google Scholar] [CrossRef]
- Lotte, F.; Congedo, M.; Lécuyer, A.; Lamarche, F.; Arnaldi, B. A review of classification algorithms for EEG-based brain–computer interfaces. Journal of neural engineering 2007, 4, R1. [Google Scholar] [CrossRef] [PubMed]
- Jin, K.; Rubio-Solis, A.; Naik, R.; Leff, D.; Kinross, J.; Mylonas, G. Human-Centric Cognitive State Recognition Using Physiological Signals: A Systematic Review of Machine Learning Strategies Across Application Domains. Sensors 2025, 25, 4207. [Google Scholar] [CrossRef] [PubMed]
- Subasi, A. EEG signal classification using wavelet feature extraction and a mixture of expert model. Computer methods and programs in biomedicine 2005, 78, 113–123. [Google Scholar] [CrossRef]
- Díaz-Montiel, A.; et al. Optimal Graph Representations and Neural Networks for EEG Seizure and Phase Classification. Scientific Reports 2025, 15, 1125. [Google Scholar] [CrossRef]
- Kotoge, R.; et al. EvoBrain: Dynamic Multi-Channel EEG Graph Modeling for Time-Adaptive Seizure Prediction. In Proceedings of the International Conference on Learning Representations (ICLR); 2025. [Google Scholar]
- Roy, Y.; Banville, H.; Albuquerque, I.; Gramfort, A.; Falk, T.H.; Faubert, J. Deep learning-based electroencephalography analysis: a systematic review. Journal of Neural Engineering 2019, 16, 051001. [Google Scholar] [CrossRef]
- Schirrmeister, R.T.; Springenberg, J.T.; Fiederer, L.D.J.; Glasstetter, M.; Eggensperger, K.; Tangermann, M.; Hutter, F.; Burgard, W.; Ball, T. Deep learning with convolutional neural networks for EEG decoding and visualization. Human brain mapping 2017, 38, 5391–5420. [Google Scholar] [CrossRef]
- Li, C.; Zhou, X.; et al. Graph Neural Networks in EEG-based Emotion Recognition: A Survey. IEEE Transactions on Affective Computing 2024. [Google Scholar] [CrossRef]
- Delorme, A.; Makeig, S. EEGLAB: an open source toolbox for analysis of single-trial EEG dynamics including independent component analysis. Journal of neuroscience methods 2004, 134, 9–21. [Google Scholar] [CrossRef] [PubMed]
- Wang, L.; Suzumura, T.; Kanezashi, H. Graph-Enhanced EEG Foundation Model: Large-Scale Pretraining with Masked Autoencoders for Brain Signal Analysis. arXiv preprint arXiv:2411.19507 2024.
- Buzsáki, G. Rhythms of the brain; Oxford University Press, 2006.
- Jansen, B.H.; Rit, V.G. Electroencephalogram and visual evoked potential generation in a mathematical model of coupled cortical columns. Biological Cybernetics 1995, 73, 357–366. [Google Scholar] [CrossRef] [PubMed]
- Ghosh, R.; Deb, N.; Sengupta, K.; Phukan, A.; Choudhury, N.; Kashyap, S.; Phadikar, S.; Saha, R.; Das, P.; Sinha, N.; et al. SAM 40: Dataset of 40 subject EEG recordings to monitor the induced-stress while performing Stroop color-word test, arithmetic task, and mirror image recognition task. Data in Brief 2022, 40, 107772. [Google Scholar] [CrossRef]
- Al-Shargie, F.; Tang, T.B.; Kiguchi, M. Mental stress assessment using simultaneous measurement of EEG and fNIRS. Biomedical optics express 2017, 8, 5318–5339. [Google Scholar] [CrossRef] [PubMed]
- Subhani, A.R.; Mumtaz, W.; Kamel, N.; Saad, M.N.; Ali, S.S. Machine learning framework for the detection of mental stress at multiple levels. IEEE Access 2017, 5, 13545–13556. [Google Scholar] [CrossRef]
- Hosseini, S.A.; Khalilzadeh, M.A. Emotional stress recognition system using EEG and fuzzy logic. Journal of Medical Signals and Sensors 2010, 1, 23–30. [Google Scholar]
- Bashivan, P.; Rish, I.; Yeasin, M.; Codella, N. Learning representations from EEG with deep recurrent-convolutional neural networks. arXiv preprint arXiv:1511.06448 2015.
- Lawhern, V.J.; Solon, A.J.; Waytowich, N.R.; Gordon, S.M.; Hung, C.P.; Lance, B.J. EEGNet: A compact convolutional neural network for EEG-based brain–computer interfaces. Journal of Neural Engineering 2018, 15, 056013. [Google Scholar] [CrossRef] [PubMed]
- Tripathi, S.; Acharya, S.; Sharma, R.D.; Mittal, S.; Bhattacharya, S. Using deep and convolutional neural networks for accurate emotion classification on DEAP dataset. In Proceedings of the Proceedings of the AAAI Conference on Artificial Intelligence, 2017, Vol. 31.
- Song, T.; Zheng, W.; Song, P.; Cui, Z.; Zhang, X. EEG emotion recognition using dynamical graph convolutional neural networks. IEEE Transactions on Affective Computing 2018, 11, 532–541. [Google Scholar] [CrossRef]
- Yu, T.; Xiao, J.; Zhang, Y.; Gu, Z.; Li, Y. Graph convolutional networks for EEG-based emotion recognition. IEEE Transactions on Affective Computing 2021, 14, 345–357. [Google Scholar]
- Zhang, Y.; Wang, Y.; Wang, Y.; Jung, T.P. Spatial–temporal attention graph convolutional networks for motor imagery EEG classification. Neurocomputing 2021, 452, 105–115. [Google Scholar]
- Liu, Y.; Zheng, W.; Lu, B.L. Dynamic functional connectivity analysis for depression recognition using EEG-based GNNs. IEEE Transactions on Neural Systems and Rehabilitation Engineering 2021, 29, 1552–1562. [Google Scholar]
- Kietzmann, T.C.; Spoerer, C.J.; Sörensen, L.K.; Cichy, R.M.; Hauk, O.; Kriegeskorte, N. Recurrence is required to capture the representational dynamics of the human visual system. Proceedings of the National Academy of Sciences 2019, 116, 21854–21863. [Google Scholar] [CrossRef] [PubMed]




| Class | Precision | Recall | F1-Score |
|---|---|---|---|
| Stroop | 0.92 | 0.91 | 0.92 |
| Mirror Image | 0.86 | 0.83 | 0.85 |
| Arithmetic | 0.88 | 0.90 | 0.89 |
| Relax | 0.84 | 0.85 | 0.85 |
| Macro Average | 0.88 | 0.87 | 0.87 |
| Model Variant | Macro F1-Score | Drop () |
|---|---|---|
| Full NeuroGraph-TSC | 0.87 | – |
| w/o | 0.82 | –5.1% |
| w/o | 0.84 | –3.2% |
| w/o | 0.85 | –2.7% |
| Model | Accuracy | Macro F1-Score |
|---|---|---|
| EEGNet | 78.6% | 0.76 |
| GCN-only | 81.2% | 0.78 |
| LSTM | 80.5% | 0.77 |
| CNN-LSTM | 82.3% | 0.79 |
| NeuroGraph-TSC (Ours) | 88.2% | 0.87 |
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2025 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (http://creativecommons.org/licenses/by/4.0/).