CROSS-SUBJECT EEG-BASED FATIGUE CLASSIFICATION USING MACHINE LEARNING, RIEMANNIAN GEOMETRY, AND COMPACT DEEP NEURAL NETWORKS

Authors

DOI:

https://doi.org/10.37943/25EJPK6829

Keywords:

electroencephalogram, fatigue detection, drowsiness, deep learning, Riemannian geometry

Abstract

Drowsiness reduces efficiency in perceptual processing, reaction time, and executive control, posing risks in safety-critical domains such as driving and long-duration monitoring tasks. EEG-based fatigue detection has emerged as a powerful approach for quantifying early neurophysiological signs of vigilance decline, yet many proposed algorithms are insufficiently evaluated in strictly subject-independent conditions. To address this gap, we systematically compare classical machine learning models, Riemannian geometry-based classification, and compact deep neural architectures on a publicly available electroencephalography (EEG) dataset containing 11 subjects. We employ a rigorous leave-one-subject-out (LOSO) protocol, ensuring that no individual contributes information simultaneously to the training and test sets.

The study evaluates logistic regression, support vector machines with radial-basis kernels, random forests, a Log-Euclidean Riemannian classifier, EEGNet, a transformer encoder, and a bidirectional long short-term memory (BiLSTM) with temporal attention. Across folds, accuracy and macro-F1 scores were calculated and summarized with mean and standard deviation. The BiLSTM-attention model achieved the highest performance (accuracy ; macro-F1 ) but only moderately exceeded EEGNet and the classical baselines. Wilcoxon signed-rank tests revealed no significant difference between EEGNet and BiLSTM (), although BiLSTM significantly outperformed the transformer model (). Analysis of error structure demonstrated a notable asymmetry with 295 false positives and 184 false negatives aggregated across folds.

Band-specific analysis revealed theta activity as the strongest contributor to class separation, followed by delta and alpha rhythms. Channel-importance analysis indicated that posterior and paracentral regions were consistently more informative. These findings highlight that model complexity does not guarantee superior performance in small datasets with large inter-subject variability. The study provides a transparent, fully reproducible baseline for future fatigue-classification research and demonstrates the practical relevance of compact architectures and Riemannian geometry in low-data conditions.

Author Biographies

Anar Mengdigali , Astana IT University

Researcher, Master of Technical Science, School of Artificial Intelligence and Data Science

Temirlan Karibekov, Astana IT University

Director, Doctor of Medical Sciences, Science and Innovation Center “MedTech”

Medet Mukushev, Astana IT University

Assistant professor, PhD, School of Creative Industry

Manzura Zholdasova , Al-Farabi Kazakh National University

Associate professor, PhD, Department of Biophysics, Biomedicine, and Neuroscience, Brain Institute

Diana Arman, Kazakh-British Technical University

Assistant Professor, PhD, School of Information Technology and Engineering

Almira Kustubayeva, Al-Farabi Kazakh National University

Professor, Head of the Department, Candidate of Biological Sciences

Department of Biophysics, Biomedicine, and Neuroscience, Brain Institute

References

Craik, A., He, Y., & Contreras-Vidal, J. (2019). Deep learning for electroencephalogram (EEG): A review. Journal of Neural Engineering, 16(3), 031001. https://doi.org/10.1088/1741-2552/ab0ab5 https://doi.org/10.1088/1741-2552/ab0ab5?urlappend=?utm_source=researchgate.net&utm_medium=article

Roy, Y., Banville, H., Albuquerque, I., Gramfort, A., Falk, T. H., & Faubert, J. (2019). Deep learning-based electroencephalography analysis: A systematic review. Journal of Neural Engineering, 16(5), 051001. https://doi.org/10.1088/1741-2552/ab260c

Stancin, I., Cifrek, M., & Jovic, A. (2021). A review of EEG signal features and their application in driver drowsiness detection systems. Sensors, 21(11), 3786. https://doi.org/10.3390/s21113786

Cao, Z., Chuang, C.-H., King, J.-K., & Lin, C.-T. (2019). Multi-channel EEG recordings during a sustained-attention driving task. Scientific Data, 6(1), 1–8. https://doi.org/10.1038/s41597-019-0027-4

Paulo, J. R., Pires, G., & Nunes, U. J. (2021). Cross-subject zero calibration driver’s drowsiness detection: Exploring spatiotemporal image encoding of EEG signals for convolutional neural network classification. IEEE Transactions on Neural Systems and Rehabilitation Engineering, 29, 905–915. https://doi.org/10.1109/TNSRE.2021.3079505

Lotte, F., Bougrain, L., Cichocki, A., Clerc, M., Congedo, M., Rakotomamonjy, A., & Yger, F. (2018). A review of classification algorithms for EEG-based brain–computer interfaces: A 10-year update. Journal of Neural Engineering, 15(3), 031005. https://doi.org/10.1088/1741-2552/aab2f2

Barachant, A., Bonnet, S., Congedo, M., & Jutten, C. (2012). Multiclass brain–computer interface classification by Riemannian geometry. IEEE Transactions on Biomedical Engineering, 59(4), 920–928. https://doi.org/10.1109/TBME.2011.2172210

Lawhern, V. J., Solon, A. J., Waytowich, N. R., Gordon, S. M., Hung, C. P., & Lance, B. J. (2018). EEGNet: A compact convolutional neural network for EEG-based brain–computer interfaces. Journal of Neural Engineering, 15(5), 056013. https://doi.org/10.1088/1741-2552/aace8c

Yu, Y., Si, X., Hu, C., & Zhang, J. (2019). A review of recurrent neural networks: LSTM cells and network architectures. Neural computation, 31(7), 1235-1270. https://doi.org/10.1162/neco_a_01199

Zheng, W.-L., & Lu, B.-L. (2015). Investigating critical frequency bands and channels for EEG-based emotion recognition with deep neural networks. IEEE Transactions on Autonomous Mental Development, 7(3), 162–175. https://doi.org/10.1109/TAMD.2015.2431497

Gao, Z., Wang, X., Yang, Y., Mu, C., Cai, Q., Dang, W., & Zuo, S. (2019). EEG-based spatio-temporal convolutional neural network for driver fatigue evaluation. IEEE Transactions on Neural Networks and Learning Systems, 30(9), 2755–2763. https://doi.org/10.1109/TNNLS.2018.2886414

Kostas, D., Aroca-Ouellette, S., & Rudzicz, F. (2021). BENDR: Using transformers and a contrastive self-supervised learning task to learn from massive amounts of EEG data. Frontiers in Human Neuroscience, 15, 653659. https://doi.org/10.3389/fnhum.2021.653659

Banville, H., Chehab, O., Hyvarinen, A., Engemann, D.-A., & Gramfort, A. (2021). Uncovering the structure of clinical EEG signals with self-supervised learning. Journal of Neural Engineering, 18(4), 046020. https://doi.org/10.1088/1741-2552/abca18

Cui, J., Lan, Z., Liu, Y., Li, R., Li, F., Sourina, O., & Müller-Wittig, W. (2022). A compact and interpretable convolutional neural network for cross-subject driver drowsiness detection from single-channel EEG. Methods, 202, 173–184. https://doi.org/10.1016/j.ymeth.2021.04.017

Cui, J., Lan, Z., Sourina, O., & Müller-Wittig, W. (2022). EEG-based cross-subject driver drowsiness recognition with an interpretable convolutional neural network. IEEE Transactions on Neural Networks and Learning Systems, 34(10), 7921–7933. https://doi.org/10.1109/TNNLS.2022.3147208

Feng, X., Guo, Z., & Kwong, S. (2025). ID3RSNet: Cross-subject driver drowsiness detection from raw single-channel EEG with an interpretable residual shrinkage network. Frontiers in Neuroscience, 18, 1508747. https://doi.org/10.3389/fnins.2024.1508747

Yuan, L., Zhang, S., Li, R., Zheng, Z., Cui, J., & Siyal, M. Y. (2025). Benchmarking EEG-based cross-dataset driver drowsiness recognition with deep transfer learning. IEEE Journal of Biomedical and Health Informatics, 29(3), 1970–1981. https://doi.org/10.1109/embc40787.2023.10340982

Kwon, O. Y., Lee, M. H., Guan, C., & Lee, S. W. (2020). Subject-independent brain–computer interfaces based on deep convolutional neural networks. IEEE Transactions on Neural Networks and Learning Systems, 31(10), 3839–3852. https://doi.org/10.1109/TNNLS.2019.2946869

Barachant, A., Bonnet, S., Congedo, M., & Jutten, C. (2013). Classification of covariance matrices using a Riemannian-based kernel for BCI applications. Neurocomputing, 112, 172–178. https://doi.org/10.1016/j.neucom.2012.12.039

Tran, Y., Craig, A., Craig, R., Chai, R., & Nguyen, H. (2020). The influence of mental fatigue on brain activity: Evidence from a systematic review with meta-analysis. Psychophysiology, 57(5), e13554. https://doi.org/10.1111/psyp.13554

Schirrmeister, R. T., Springenberg, J. T., Fiederer, L. D. J., Glasstetter, M., Eggensperger, K., Tangermann, M., Hutter, F., Burgard, W., & Ball, T. (2017). Deep learning with convolutional neural networks for EEG decoding and visualization. Human Brain Mapping, 38(11), 5391–5420. https://doi.org/10.1002/hbm.23730

Monteiro, T. G., Skourup, C., & Zhang, H. (2019). Using EEG for mental fatigue assessment: A comprehensive look into the current state of the art. IEEE Transactions on Human-Machine Systems, 49(6), 599-610. https://doi.org/10.1109/THMS.2019.2938156

Arefnezhad, S., Hamet, J., Eichberger, A., Lex, C., Koglbauer, I. V., Scholler, G., & Naderi, A. (2022). Driver drowsiness estimation using EEG signals with a dynamical encoder-decoder modeling framework. Scientific Reports, 12, 2650. https://doi.org/10.1038/s41598-022-05810-x

Chuang, C. H., Cao, Z., King, J. T., Wu, B. S., Wang, Y. K., & Lin, C. T. (2018). Brain electrodynamic and hemodynamic signatures against fatigue during driving. Frontiers in neuroscience, 12, 181. https://doi.org/10.3389/fnins.2018.00181

Othmani, A., Sabri, A. Q. M., Aslan, S., Chaieb, F., Rameh, H., Alfred, R., & Cohen, D. (2023). EEG-based neural networks approaches for fatigue and drowsiness detection: A survey. Neurocomputing, 557, 126709. https://doi.org/10.1016/j.neucom.2023.126709

Downloads

Published

2026-03-30

How to Cite

Mengdigali , A., Karibekov, T., Mukushev, M., Zholdasova , M., Arman, D., & Kustubayeva, A. (2026). CROSS-SUBJECT EEG-BASED FATIGUE CLASSIFICATION USING MACHINE LEARNING, RIEMANNIAN GEOMETRY, AND COMPACT DEEP NEURAL NETWORKS. Scientific Journal of Astana IT University, 25. https://doi.org/10.37943/25EJPK6829

Issue

Section

Information Technologies