Submitted:
23 May 2024
Posted:
24 May 2024
You are already at the latest version
Abstract
Keywords:
1. Introduction
- Overcoming inter-subject variability by using different EEG characteristics (time, frequency, time-frequency).
- Identifying the most effective ML classification models in each classification mode (intra, inter).
- Evaluating the impact of feature selection methods on performance and accuracy.
- Reducing the number of electrodes for enhanced practicality.
2. Related Work
2.1. Literature
3. Materials and Methods
3.1. EEG-Based Drowsiness Detection
3.1.1. Artifact Removal
3.1.2. Segmentation
3.1.3. Feature Extraction
- Time analysis
- Frequency analysis
- TF analysis
3.1.4. Feature Selection
3.1.5. Classification
3.2. EEG Data (DROZY)

4. Materials and Methods
4.1. EEG Features
- Statistical characteristics over time
- Relative power spectral density
- Discrete Wavelet Transformation
4.2. Feature Selection
5. Final Data, Classification and Validation
5.1. Final Data
- Cross-subject: In this data distribution mode, we employ a single subject as the test case in each iteration to evaluate the performance of the ML model trained on the remaining data.
- Combined-subject: In this mode, the characteristics of all subjects are combined and divided into 70% for training and 30% for validation games.
5.2. Classification Algorithms
- SVM
- KNN
- Naive Bayes
- Decision tree
- MLP
5.3. Evaluation Metrics
6. Results and Discussion
6.1. Intra Mode
| Subjects | NB (accuracy %) |
KNN (accuracy %) |
DT (accuracy %) |
MLP (accuracy %) |
SVM (accuracy %) |
|---|---|---|---|---|---|
| Subject 1 | 78 | 81.9 | 82 | 94 | 95.8 |
| Subject 2 | 81 | 86 | 81 | 94.4 | 98 |
| Subject 3 | 87.5 | 94.4 | 88.8 | 99 | 98.6 |
| Subject 4 | 99.6 | 98.95 | 95.8 | 99.9 | 99 |
| Subject 5 | 84.72 | 87.5 | 95.6 | 97.2 | 97.5 |
| Subject 6 | 94 | 94.4 | 94 | 98.6 | 98.8 |
| Subject 7 | 93 | 86 | 84.7 | 94 | 94 |
| Overall | 88.26 | 89.87 | 88.84 | 96.72 | 97.38 |

6.2. Inter Mode
6.3. Comparison of RFECV with Other Feature Selection Methods
6.4. Discussion
7. Conclusion
Funding
Institutional Review Board Statement
Informed Consent Statement
Data Availability Statement
References
- VAN SCHIE, Mojca KM, LAMMERS, Gert Jan, FRONCZEK, Rolf, et al. Vigilance: discussion of related concepts and proposal for a definition. Sleep Medicine, 2021, vol. 83, p. 175-181. [CrossRef]
- GIBBINGS, A., RAY, L. B., BERBERIAN, N., et al. EEG and behavioural correlates of mild sleep deprivation and vigilance. Clinical Neurophysiology, 2021, vol. 132, no 1, p. 45-55.
- SLATER, Jeremy D. A definition of drowsiness: One purpose for sleep?. Medical Hypotheses, 2008, vol. 71, no 5, p. 641-644.
- WU, Yingzhang, ZHANG, Jie, LI, Wenbo, et al. Towards Human-Vehicle Interaction: Driving Risk Analysis Under Different Driver Vigilance States and Driving Risk Detection Method. Automotive Innovation, 2023, vol. 6, no 1, p. 32-47.
- WANG, Hanyu, CHEN, Dengkai, HUANG, Yuexin, et al. Assessment of vigilance level during work: fitting a hidden Markov model to heart rate variability. Brain sciences, 2023, vol. 13, no 4, p. 638.
- JING, Meng-Juan, LI, Hao, LI, Chun-Peng, et al. The Association between Working Hours with Vigilance and Executive Function of Intensive Care Unit Nurses. Journal of Nursing Management, 2023, vol. 2023.
- JAGANNATHAN, Sridhar R., BAREHAM, Corinne A., et BEKINSCHTEIN, Tristan A. Decreasing alertness modulates perceptual decision-making. Journal of neuroscience, 2022, vol. 42, no 3, p. 454-473.
- ALBADAWI, Yaman, TAKRURI, Maen, et AWAD, Mohammed. A review of recent developments in driver drowsiness detection systems. Sensors, 2022, vol. 22, no 5, p. 2069.
- ALBADAWI, Yaman, ALREDHAEI, Aneesa, et TAKRURI, Maen. Real-time machine learning-based driver drowsiness detection using visual features. Journal of imaging, 2023, vol. 9, no 5, p. 91.
- FRANÇOIS, Clémentine. Development and validation of algorithms for automatic and real-time characterization of drowsiness. 2018.
- LI, Gang et CHUNG, Wan-Young. Electroencephalogram-based approaches for driver drowsiness detection and management: A review. Sensors, 2022, vol. 22, no 3, p. 1100.
- FOUAD, Islam A. A robust and efficient EEG-based drowsiness detection system using different machine learning algorithms. Ain Shams engineering journal, 2023, vol. 14, no 3, p. 101895.
- BAJAJ, Jaspreet Singh, KUMAR, Naveen, KAUSHAL, Rajesh Kumar, et al. System and method for driver drowsiness detection using behavioral and sensor-based physiological measures. Sensors, 2023, vol. 23, no 3, p. 1292. [CrossRef]
- NAIK, Ganesh R. et KUMAR, Dinesh K. An overview of independent component analysis and its applications. Informatica, 2011, vol. 35, no 1.
- BHARADIYA, Jasmin Praful. A tutorial on principal component analysis for dimensionality reduction in machine learning. International Journal of Innovative Science and Research Technology, 2023, vol. 8, no 5, p. 2028-2032.
- SCHÖLKOPF, Bernhard, SMOLA, Alexander, et MÜLLER, Klaus-Robert. Kernel principal component analysis. In : International conference on artificial neural networks. Berlin, Heidelberg : Springer Berlin Heidelberg, 1997. p. 583-588.
- ZENG, Xiangyan, CHEN, Yen-Wei, et TAO, Caixia. Feature selection using recursive feature elimination for handwritten digit recognition. In : 2009 Fifth International Conference on Intelligent Information Hiding and Multimedia Signal Processing. IEEE, 2009. p. 1205-1208.
- KILMEN, Sevilay et BULUT, Okan. Scale abbreviation with recursive feature elimination and genetic algorithms: An illustration with the test emotions questionnaire. Information, 2023, vol. 14, no 2, p. 63. [CrossRef]
- DOGAN, Sengul, TUNCER, Ilknur, BAYGIN, Mehmet, et al. A new hand-modeled learning framework for driving fatigue detection using EEG signals. Neural Computing and Applications, 2023, vol. 35, no 20, p. 14837-14854. [CrossRef]
- WANG, Yao, HUANG, Yuecheng, GU, Botao, et al. Identifying mental fatigue of construction workers using EEG and deep learning. Automation in Construction, 2023, vol. 151, p. 104887. [CrossRef]
- GANGADHARAN, Sagila et VINOD, A. P. Drowsiness detection using portable wireless EEG. Computer Methods and Programs in Biomedicine, 2022, vol. 214, p. 106535.
- FOUAD, Islam A. A robust and efficient EEG-based drowsiness detection system using different machine learning algorithms. Ain Shams engineering journal, 2023, vol. 14, no 3, p. 101895.
- BENCSIK, Blanka, REMÉNYI, István, SZEMENYEI, Márton, et al. Designing an embedded feature selection algorithm for a drowsiness detector model based on electroencephalogram data. Sensors, 2023, vol. 23, no 4, p. 1874.
- RAMOS, Plínio MS, MAIOR, Caio BS, MOURA, Márcio C., et al. Automatic drowsiness detection for safety-critical operations using ensemble models and EEG signals. Process Safety and Environmental Protection, 2022, vol. 164, p. 566-581. [CrossRef]
- KRISHNAN, Pranesh, YAACOB, Sazali, KRISHNAN, Annapoorni Pranesh, et al. EEG based Drowsiness Detection using Relative Band Power and Short-time Fourier Transform. J. Robotics Netw. Artif. Life, 2020, vol. 7, no 3, p. 147-151.
- YAACOB, Sazali, AFFANDI, Nur Afrina Izzati, KRISHNAN, Pranesh, et al. Drowsiness detection using EEG and ECG signals. In : 2020 IEEE 2nd International Conference on Artificial Intelligence in Engineering and Technology (IICAIET). IEEE, 2020. p. 1-5.
- ABIDI, Afef, BEN KHALIFA, Khaled, BEN CHEIKH, Ridha, et al. Automatic detection of drowsiness in EEG records based on machine learning approaches. Neural Processing Letters, 2022, vol. 54, no 6, p. 5225-5249.
- SALEEM, Adil Ali, SIDDIQUI, Hafeez Ur Rehman, RAZA, Muhammad Amjad, et al. A systematic review of physiological signals based driver drowsiness detection systems. Cognitive Neurodynamics, 2023, vol. 17, no 5, p. 1229-1259.
- JIANG, Xiao, BIAN, Gui-Bin, et TIAN, Zean. Removal of artifacts from EEG signals: a review. Sensors, 2019, vol. 19, no 5, p. 987.
- MUMTAZ, Wajid, RASHEED, Suleman, et IRFAN, Alina. Review of challenges associated with the EEG artifact removal methods. Biomedical Signal Processing and Control, 2021, vol. 68, p. 102741.
- ILLE, Nicole, NAKAO, Yoshiaki, YANO, Shumpei, et al. Ongoing EEG artifact correction using blind source separation. Clinical Neurophysiology, 2024, vol. 158, p. 149-158.
- YU, Junjie, LI, Chenyi, LOU, Kexin, et al. Embedding decomposition for artifacts removal in EEG signals. Journal of Neural Engineering, 2022, vol. 19, no 2, p. 026052.
- SEN, Dipanwita, MISHRA, Bhupati Bhusan, et PATTNAIK, Prasant Kumar. A review of the filtering techniques used in EEG signal processing. In : 2023 7th International Conference on Trends in Electronics and Informatics (ICOEI). IEEE, 2023. p. 270-277.
- STANCIN, Igor, CIFREK, Mario, et JOVIC, Alan. A review of EEG signal features and their application in driver drowsiness detection systems. Sensors, 2021, vol. 21, no 11, p. 3786.
- WANG, Yinghao, NAHON, Rémi, TARTAGLIONE, Enzo, et al. Optimized preprocessing and tiny ml for attention state classification. In : 2023 IEEE Statistical Signal Processing Workshop (SSP). IEEE, 2023. p. 695-699.
- ARIF, Saad, MUNAWAR, Saba, et ALI, Hashim. Driving drowsiness detection using spectral signatures of EEG-based neurophysiology. Frontiers in physiology, 2023, vol. 14, p. 1153268.
- ZAYED, Aymen, KHALIFA, Khaled Ben, BELHADJ, Nidhameddine, et al. Discrete Wavelet Transform Coefficients for Drowsiness Detection from EEG Signals. In : 2023 IEEE International Conference on Design, Test and Technology of Integrated Systems (DTTIS). IEEE, 2023. p. 1-6.
- ZHANG, Yuhao, GUO, Hanying, ZHOU, Yongjiang, et al. Recognising drivers’ mental fatigue based on EEG multi-dimensional feature selection and fusion. Biomedical Signal Processing and Control, 2023, vol. 79, p. 104237. [CrossRef]
- ESPINOSA, Ricardo, TALERO, Jesica, et WEINSTEIN, Alejandro. Effects of tau and sampling frequency on the regularity analysis of ecg and eeg signals using apen and sampen entropy estimators. Entropy, 2020, vol. 22, no 11, p. 1298.
- PENG, Yufan, WONG, Chi Man, WANG, Ze, et al. Fatigue detection in SSVEP-BCIs based on wavelet entropy of EEG. IEEE Access, 2021, vol. 9, p. 114905-114913.
- ZOU, Shuli, QIU, Taorong, HUANG, Peifan, et al. Constructing multi-scale entropy based on the empirical mode decomposition (EMD) and its application in recognizing driving fatigue. Journal of neuroscience methods, 2020, vol. 341, p. 108691.
- WANG, Fei, WAN, Yinxing, LI, Man, et al. Recent Advances in Fatigue Detection Algorithm Based on EEG. Intelligent Automation & Soft Computing, 2023, vol. 35, no 3.
- STANCIN, Igor, FRID, Nikolina, CIFREK, Mario, et al. EEG signal multichannel frequency-domain ratio indices for drowsiness detection based on multicriteria optimization. Sensors, 2021, vol. 21, no 20, p. 6932.
- SINGH, Anupreet Kaur et KRISHNAN, Sridhar. Trends in EEG signal feature extraction applications. Frontiers in Artificial Intelligence, 2023, vol. 5, p. 1072801.
- CHADDAD, Ahmad, WU, Yihang, KATEB, Reem, et al. Electroencephalography signal processing: A comprehensive review and analysis of methods and techniques. Sensors, 2023, vol. 23, no 14, p. 6434.
- BOMMERT, Andrea, SUN, Xudong, BISCHL, Bernd, et al. Benchmark for filter methods for feature selection in high-dimensional classification data. Computational Statistics & Data Analysis, 2020, vol. 143, p. 106839.
- MERA-GAONA, Maritza, LÓPEZ, Diego M., et VARGAS-CANAS, Rubiel. An ensemble feature selection approach to identify relevant features from EEG signals. Applied Sciences, 2021, vol. 11, no 15, p. 6983.
- DRUNGILAS, Darius, KURMIS, Mindaugas, LUKOSIUS, Zydrunas, et al. An adaptive method for inspecting illumination of color intensity in transparent polyethylene terephthalate preforms. IEEE Access, 2020, vol. 8, p. 83189-83198.
- EL-NABI, Samy Abd, EL-SHAFAI, Walid, EL-RABAIE, El-Sayed M., et al. Machine learning and deep learning techniques for driver fatigue and drowsiness detection: a review. Multimedia Tools and Applications, 2024, vol. 83, no 3, p. 9441-9477.
- MASSOZ, Quentin, LANGOHR, Thomas, FRANÇOIS, Clémentine, et al. The ULg multimodality drowsiness database (called DROZY) and examples of use. In : 2016 IEEE Winter Conference on Applications of Computer Vision (WACV). IEEE, 2016. p. 1-7.
- TRUJILLO, Leonardo, HERNANDEZ, Daniel E., RODRIGUEZ, Adrian, et al. Effects of feature reduction on emotion recogni-tion using EEG signals and machine learning. Expert Systems, p. e13577.
- ROY, Atin et CHAKRABORTY, Subrata. Support vector machine in structural reliability analysis: A review. Reliability Engi-neering & System Safety, 2023, vol. 233, p. 109126.
- ZHANG, Shichao. Challenges in KNN classification. IEEE Transactions on Knowledge and Data Engineering, 2021, vol. 34, no 10, p. 4663-4675.
- HASHIM, Keenan Ariqul, SIBARONI, Yuliant, et PRASETYOWATI, Sri Suryani. The Effectiveness of the Ensemble Naive Bayes in Analyzing Review Sentiment of the Lazada Application on Google Play. In : 2024 ASU International Conference in Emerging Technologies for Sustainability and Intelligent Systems (ICETSIS). IEEE, 2024. p. 1-5.
- ISSAH, Iddrisu, APPIAH, Obed, APPIAHENE, Peter, et al. A systematic review of the literature on machine learning applica-tion of determining the attributes influencing academic performance. Decision analytics journal, 2023, p. 100204.
- ABD-ELAZIEM, Ayman H. et SOLIMAN, Tamer HM. A Multi-Layer Perceptron (MLP) Neural Networks for Stellar Classifi-cation: A Review of Methods and Results‖. International Journal of Advances in Applied Computational Intelligence, vol. 3, no 10.54216.
- Cui, J. EEG Driver Drowsiness Dataset. 2021. Available online: https://figshare.com/articles/dataset/EEG_driver_drowsiness_ dataset/14273687/3 (accessed on 20 October 2022).











| Protocol names | Train data | Test data |
|---|---|---|
| P1 (combined-subject) | 70% of all features | 30% of all features |
| P2 (cross-subject) | Six subjects | One subject |
| P3 (cross-subject) | ||
| Five subjects | Two subjects | |
| P4 (cross-subject) | ||
| Four subjects | Three subjects |
| Derivation | NB (accuracy %) |
DT (accuracy %) |
KNN (accuracy %) |
MLP (accuracy %) |
SVM (accuracy %) |
|---|---|---|---|---|---|
| Fz | 82.8 | 67.52 | 79.92 | 71.2 | 75.5 |
| Cz | 83 | 79.2 | 79.1 | 75 | 83.5 |
| C3 | 87.8 | 88.1 | 85.6 | 90.2 | 91.8 |
| C4 | 88.5 | 88.8 | 83.2 | 92.1 | 94.8 |
| Pz | 62.2 | 65 | 75.8 | 80.2 | 83 |
| Subjects | Number of features |
Name of features |
|---|---|---|
| S1 | 7 | Skewness (C3) / Standard deviation of details coefficients (c4) /Delta RPSD (c3) / Beta RPSD (c3) / Beta RPSD (c4) / Gamma RPSD (c3) / Gamma RPSD (c4) |
| S2 | 9 | Standard deviation (c4) / Kurtosis (c4) / Energy of details coefficients (c4) /Theta RPSD (c4) /Alpha RPSD (c4) / Beta RPSD (c3) /Beta RPSD (c4) / Gamma RPSD (c3) / Gamma RPSD (c4) |
| S3 | 7 | Standard deviation (c4) / Kurtosis (c4) / Standard deviation of details coefficients (c4) / Alpha RPSD (c4) / Beta RPSD (c4) / Beta RPSD (c3) / Gamma RPSD(c4) |
| S4 | 4 | Delta RPSD (c4) / Theta RPSD (c4) / Beta RPSD (c3) / Gamma RPSD (c4) |
| S5 | 8 | Standard deviation (c3) / Standard deviation (c4) / Skewness (C3) / Skewness (C4) / Kurtosis(c4) / Energy of details coefficients (c3) / Energy of details coefficients (c4) / Energy of approximation coefficients (c4) |
| S6 | 9 | Energy of details coefficients (c3) / Energy of details coefficients (c4) / Energy of approximation coefficients (c4) / Energy of approximation coefficients (c3) / Entropy of details coefficients (c4) / standard deviation (c4) / Skewness (C3) /Mean of details coefficients (c4) / standard deviation of approximation coefficients (c4) |
| S7 | 19 | Entropy of details coefficients (c4) / Entropy of details coefficients (c3) / Energy of details coefficients (c3) / Energy of details coefficients (c4) / Energy of approximation coefficients (c4) / Energy of approximation coefficients (c3) / Skewness (C3) / Skewness (C4) / Theta RPSD (c3) / Alpha RPSD (c4) / Alpha RPSD (c3) / Beta RPSD (c3) / Beta RPSD (c4) / Gamma RPSD (c3) / Gamma RPSD (c4) / Standard deviation (c4) / Kurtosis(c4) / Standard deviation (c3) / Kurtosis(c3) |
| Protocols | NB | |||
|---|---|---|---|---|
| P (%) | S (%) | F1 (%) | A (%) | |
| P1 | 66.1 | 65.2 | 65 | 65.7 |
| P2 | 71.5 | 71.1 | 72.1 | 71.2 |
| P3 | 63.1 | 61.5 | 62.8 | 62.65 |
| P4 | 79 | 77.8 | 78.5 | 78.2 |
| Protocols | KNN | |||
|---|---|---|---|---|
| P (%) | S (%) | F1 (%) | A (%) | |
| P1 | 86.5 | 84.8 | 85.6 | 85.2 |
| P2 | 84.5 | 84.5 | 85.2 | 84.63 |
| P3 | 84.8 | 84.3 | 87.1 | 85.5 |
| P4 | 88.1 | 87.5 | 89.1 | 88.3 |
| Protocols | DT | |||
|---|---|---|---|---|
| P (%) | S (%) | F1 (%) | A (%) | |
| P1 | 78.1 | 78.7 | 79.9 | 79.5 |
| P2 | 79.5 | 78.2 | 80.9 | 79.7 |
| P3 | 82.3 | 82.1 | 83 | 81.89 |
| P4 | 86.3 | 85 | 86.1 | 85.2 |
| Protocols | MLP | |||
|---|---|---|---|---|
| P (%) | S (%) | F1 (%) | A (%) | |
| P1 | 92.5 | 94 | 93.2 | 93.8 |
| P2 | 88.7 | 88.5 | 90 | 88.99 |
| P3 | 94 | 94 | 94 | 94 |
| P4 | 92.9 | 94.8 | 95.2 | 94.8 |
| Protocols | SVM | |||
|---|---|---|---|---|
| P (%) | S (%) | F1 (%) | A (%) | |
| P1 | 88 | 88 | 88.1 | 88 |
| P2 | 81.3 | 80.5 | 79.89 | 80.2 |
| P3 | 85.5 | 84.2 | 86.2 | 85.3 |
| P4 | 89.5 | 89.1 | 89.7 | 88.97 |
| Protocols | NB (accuracy %) |
DT (accuracy %) |
KNN (accuracy %) |
MLP (accuracy %) |
SVM (accuracy %) |
|---|---|---|---|---|---|
| P1 | 70.6 | 90.5 | 81.2 | 95.18 | 93.85 |
| P2 | 73.2 | 86.63 | 80.7 | 90.5 | 89.51 |
| P3 | 65.65 | 86.5 | 83.5 | 95.3 | 91.8 |
| P4 | 81 | 92.4 | 87.2 | 96.4 | 95.2 |
| Ref | Feature extraction method | Classifier |
Database | Electrodes number |
A(%) | P(%) |
S(%) | F1(%) | |
|---|---|---|---|---|---|---|---|---|---|
| [19] | WT | KNN | Private | 32 | 82.08 | 78.84 | 87.71 | 83.27 | |
| [21] | FFT | SVM | Private | 4 | 78.3 | 80.92 | 78.95 | 76.51 | |
| [23] | PSD | Neural network | EEG driver drowsiness dataset [57] | 32 | 92.6 | 92.7 |
- | 92.7 | |
| [24] | Hjorth Parameters |
MLP | DROZY | 1 | 90 | - |
- |
- |
|
| [26] | PSD | SVM | DROZY | 5 | 96.4 | ||||
| [28] | TQWT | SVM | Sahloul University Hopital | 1 | 94 | - |
94.08 | - | |
| Proposed methods | Statics / RPSD / DWT |
SVM |
DROZY |
2 | 99.85 | 99.87 |
99.8 | 99.5 | |
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. |
© 2024 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/).