Skip to main content
Log in

Automatic Detection of Drowsiness in EEG Records Based on Machine Learning Approaches

  • Published:
Neural Processing Letters Aims and scope Submit manuscript

Abstract

Drowsy driving is a major cause of road accidents. Traffic accidents can be prevented by discriminating between driver states of alertness and drowsiness. This paper presents an efficient system for drowsiness detection based on EEG signals. The proposed system is efficient in providing consistent results regardless of the inherent characteristics of drivers. Our method is based on features extracted from well-defined sub-bands. These sub-bands obtained using a tunable Q-factor wavelet transform. The use of sub-bands solves the problem of interpersonal variability of EEG recordings, which is a major problem in detecting drowsiness. In addition, the use of kernel principal component analysis reduces the size of the features extracted from EEG signals without degrading the accuracy. Indeed, a single differential EEG channel with a minimal number of carefully selected features is sufficient to provide a fast, convenient, and accurate detection system. For drowsiness recognition, two different machine learning techniques, K-nearest neighbours and support vector machines, are proposed. The latter consists of a learning module for medical diagnosis based on EEG signals from a set of laboratory subjects. Laboratory conditions help identify characteristic and common features. These preparatory parameters make it possible to provide a real-time adaptive drowsiness diagnosis by assessing the driver's condition every second. By customizing the system, it can detect drowsiness with an accuracy of approximately 94%.

This is a preview of subscription content, log in via an institution to check access.

Access this article

Price excludes VAT (USA)
Tax calculation will be finalised during checkout.

Instant access to the full article PDF.

Fig. 1
Fig. 2
Fig. 3
Fig. 4
Fig. 5
Fig. 6
Fig. 7
Fig. 8
Fig. 9
Fig. 10
Fig. 11
Fig. 12
Fig. 13
Fig. 14
Fig. 15
Fig. 16
Fig. 17
Fig. 18

Similar content being viewed by others

Notes

  1. https://www.emotiv.com/.

  2. https://store.neurosky.com/.

References

  1. Kundinger T, Sofra N, Riener A (2020) Assessment of the potential of wrist-worn wearable sensors for driver drowsiness detection. Sensors 20(4):1029

    Google Scholar 

  2. Belakhdar I, Kaaniche W, Djmel R, Ouni B (2016) Detecting driver drowsiness based on single electroencephalography channel. In: 2016 13th international multi-conference on systems, signals & devices (SSD). IEEE, pp 16–21

  3. Zhang C, Wang W, Chen C, Zeng C, Anderson DE, Cheng B (2018) Determination of optimal electroencephalography recording locations for detecting drowsy driving. IET Intel Transport Syst 12(5):345–350

    Google Scholar 

  4. Doudou M, Bouabdallah A, Berge-Cherfaoui V (2019) Driver drowsiness measurement technologies: current research, market solutions, and challenges. Int J Intell Transp Syst Res 18:297–319

    Google Scholar 

  5. Forsman PM, Vila BJ, Short RA, Mott CG, Van Dongen HP (2013) Efficient driver drowsiness detection at moderate levels of drowsiness. Accid Anal Prev 50:341–350

    Google Scholar 

  6. McDonald AD, Schwarz C, Lee JD, Brown TL (2012) Real-time detection of drowsiness related lane departures using steering wheel angle. In: Proceedings of the human factors and ergonomics society annual meeting, vol 56, no 1. SAGE Publications, Los Angeles, CA, pp 2201–2205

  7. Sahayadhas A, Sundaraj K, Murugappan M (2012) Detecting driver drowsiness based on sensors: a review. Sensors 12(12):16937–16953

    Google Scholar 

  8. Correa AG, Orosco L, Laciar E (2014) Automatic detection of drowsiness in EEG records based on multimodal analysis. Med Eng Phys 36(2):244–249

    Google Scholar 

  9. SmartEye (2019) Driver monitoring system. Interior sensing for vehicle integration. https://smarteye.se/automotive-solutions/. Accessed 27 Aug 2020

  10. Edenborough N, Hammoud R, Harbach A, Ingold A, Kisacanin B, Malawey P, Newman T, Scharenbroch G, Skiver S, Smith M, Wilhelm A (2005) Driver state monitor from delphi. In: 2005 IEEE Computer Society conference on computer vision and pattern recognition (CVPR'05), vol 2. IEEE, pp 1206–1207

  11. Optalert (2019) Scientifically validated Glasses-Mining. https://www.optalert.com/explore-products/scientifically-validated-glasses-mining/. Accessed 27 Aug 2020

  12. Zhang W, Cheng B, Lin Y (2012) Driver drowsiness recognition based on computer vision technology. Tsinghua Sci Technol 17(3):354–362

    Google Scholar 

  13. Khessiba S, Blaiech AG, Khalifa KB, Abdallah AB, Bedoui MH (2020) Innovative deep learning models for EEG-based vigilance detection. Neural Comput Appl 33:6921–6937

    Google Scholar 

  14. Blaiech AG, Ben Khalifa K, Boubaker M, Bedoui MH (2018) LVQ neural network optimized implementation on FPGA devices with multiple-wordlength operations for real-time systems. Neural Comput Appl 29:509–528

    Google Scholar 

  15. Boubaker M, Akil M, Ben-Khalifa K, Grandpierre T, Bedoui MH (2010) Implementation of an LVQ neural network with a variable size: algorithmic specification, architectural exploration and optimized implementation on FPGA devices. Neural Comput Appl 19(2):283–297

    Google Scholar 

  16. Gromer M, Salb D, Walzer T, Madrid NM, Seepold R (2019) ECG sensor for detection of driver’s drowsiness. Procedia Comput Sci 159:1938–1946

    Google Scholar 

  17. Zheng WL, Gao K, Li G, Liu W, Liu C, Liu JQ, Wang G, Lu BL (2019) Vigilance estimation using a wearable EOG device in real driving environment. IEEE Trans Intell Transp Syst 21(1):170–184

    Google Scholar 

  18. Yeo MV, Li X, Shen K, Wilder-Smith EP (2009) Can SVM be used for automatic EEG detection of drowsiness during car driving? Saf Sci 47(1):115–124

    Google Scholar 

  19. Balandong RP, Ahmad RF, Saad MNM, Malik AS (2018) A review on EEG-based automatic sleepiness detection systems for driver. IEEE Access 6:22908–22919

    Google Scholar 

  20. Murugappan M, Alshuaib W, Bourisly AK, Khare SK, Sruthi S, Bajaj V (2020) Tunable Q wavelet transform based emotion classification in Parkinson’s disease using Electroencephalography. PLoS ONE 15(11):e0242014

    Google Scholar 

  21. Krishnan PT, Raj ANJ, Balasubramanian P, Chen Y (2020) Schizophrenia detection using MultivariateEmpirical Mode Decomposition and entropy measures from multichannel EEG signal. Biocybern Biomed Eng 40(3):1124–1139

    Google Scholar 

  22. Bajaj V, Taran S, Khare SK, Sengur A (2020) Feature extraction method for classification of alertness and drowsiness states EEG signals. Appl Acoust 163:107224

    Google Scholar 

  23. Pfurtscheller G, Flotzinger D, Mohl W, Peltoranta M (1992) Prediction of the side of hand movements from single-trial multi-channel EEG data using neural networks. Electroencephalogr Clin Neurophysiol 82(4):313–315

    Google Scholar 

  24. Jung TP, Makeig S, Stensmo M, Sejnowski TJ (1997) Estimating alertness from the EEG power spectrum. IEEE Trans Biomed Eng 44(1):60–69

    Google Scholar 

  25. Roberts S, Rezek I, Everson R, Stone H, Wilson S, Alford C (2000) Automated assessment of vigilance using committees of radial basis function analysers. IEE Proc Sci Meas Technol 147(6):333–338

    Google Scholar 

  26. Vuckovic A, Radivojevic V, Chen AC, Popovic D (2002) Automatic recognition of alertness and drowsiness from EEG by an artificial neural network. Med Eng Phys 24(5):349–360

    Google Scholar 

  27. Purnamasari PD, Yustiana P, Ratna AAP, Sudiana D (2019) Mobile EEG based drowsiness detection using K-nearest neighbor. In: 2019 IEEE 10th international conference on awareness science and technology (iCAST). IEEE, pp 1–5

  28. He J, Liu D, Wan Z, Hu C (2014) A noninvasive real-time driving fatigue detection technology based on left prefrontal Attention and Meditation EEG. In: 2014 International conference on multisensor fusion and information integration for intelligent systems (MFI). IEEE, pp 1–6

  29. Almogbel MA, Dang AH, Kameyama W (2018) EEG-signals based cognitive workload detection of vehicle driver using deep learning. In: 2018 20th international conference on advanced communication technology (ICACT). IEEE, pp 256–259

  30. Yu S, Li P, Lin H, Rohani E, Choi G, Shao B, Wang Q (2013) Support vector machine based detection of drowsiness using minimum EEG features. In: 2013 international conference on social computing. IEEE, pp 827–835

  31. Bashivan P, Rish I, Heisig S (2016) Mental state recognition via wearable eeg. arXiv:1602.00985

  32. Karuppusamy NS, Kang BY (2017) Driver fatigue prediction using eeg for autonomous vehicle. Adv Sci Lett 23(10):9561–9564

    Google Scholar 

  33. Rohit F, Kulathumani V, Kavi R, Elwarfalli I, Kecojevic V, Nimbarte A (2017) Real-time drowsiness detection using wearable, lightweight brain sensing headbands. IET Intell Transp Syst 11(5):255–263

    Google Scholar 

  34. Bakshi V (2018) Towards practical driver cognitive workload monitoring via electroencephalography (Doctoral dissertation)

  35. Foong R, Ang KK, Zhang Z, Quek C (2019) An iterative cross-subject negative-unlabeled learning algorithm for quantifying passive fatigue. J Neural Eng 16(5):056013

    Google Scholar 

  36. Nissimagoudar PC, Nandi AV (2020) Precision enhancement of driver assistant system using eeg based driver consciousness analysis & classification. In: Pant M, Sharma TK, Basterrech S, Banerjee C (eds) Computational network application tools for performance management. Springer, Singapore, pp 247–257

    Google Scholar 

  37. Cortes C, Vapnik V (1995) Support-vector networks. Mach Learn 20(3):273–297

    MATH  Google Scholar 

  38. Alturki FA, AlSharabi K, Abdurraqeeb AM, Aljalal M (2020) EEG signal analysis for diagnosing neurological disorders using discrete wavelet transform and intelligent techniques. Sensors 20(9):2505

    Google Scholar 

  39. Hu B, Li X, Sun S, Ratcliffe M (2016) Attention recognition in EEG-based affective learning research using CFS+ KNN algorithm. IEEE/ACM Trans Comput Biol Bioinf 15(1):38–45

    Google Scholar 

  40. Vimala V, Ramar K, Ettappan M (2019) An intelligent sleep apnea classification system based on EEG signals. J Med Syst 43(2):36

    Google Scholar 

  41. Cao LJ, Chua KS, Chong WK, Lee HP, Gu QM (2003) A comparison of PCA, KPCA and ICA for dimensionality reduction in support vector machine. Neurocomputing 55(1–2):321–336

    Google Scholar 

  42. Zheng WL, Zhang YQ, Zhu JY, Lu BL (2015) Transfer components between subjects for EEG-based emotion recognition. In: 2015 international conference on affective computing and intelligent interaction (ACII). IEEE, pp 917–922

  43. Zhao C, Zheng C, Zhao M, Tu Y, Liu J (2011) Multivariate autoregressive models and kernel learning algorithms for classifying driving mental fatigue based on electroencephalographic. Expert Syst Appl 38(3):1859–1865

    Google Scholar 

  44. Goldberger AL, Amaral LA, Glass L, Hausdorff JM, Ivanov PC, Mark RG, Mietus JE, Moody GB, Peng CK, Stanley HE (2000) PhysioBank, PhysioToolkit, and PhysioNet: components of a new research resource for complex physiologic signals. Circulation 101(23):e215–e220

    Google Scholar 

  45. Sulaiman N, Taib MN, Aris SAM, Hamid NHA, Lias S, Murat ZH (2010) Stress features identification from EEG signals using EEG Asymmetry & Spectral Centroids techniques. In: 2010 IEEE EMBS conference on biomedical engineering and sciences (IECBES). IEEE, pp 417–421

  46. Gurudath N, Riley HB (2014) Drowsy driving detection by EEG analysis using wavelet transform and K-means clustering. Procedia Comput Sci 34:400–409

    Google Scholar 

  47. Strijkstra AM, Beersma DG, Drayer B, Halbesma N, Daan S (2003) Subjective sleepiness correlates negatively with global alpha (8–12 Hz) and positively with central frontal theta (4–8 Hz) frequencies in the human resting awake electroencephalogram. Neurosci Lett 340(1):17–20

    Google Scholar 

  48. Khare SK, Bajaj V (2020) Optimized tunable Q wavelet transform based drowsiness detection from electroencephalogram signals. IRBM

  49. Neffati S, Ben Abdellafou K, Taouali O, Bouzrara K (2020) Enhanced SVM–KPCA method for brain MR image classification. Comput J 63(3):383–394

    MathSciNet  Google Scholar 

  50. Scholkopf B, Smola AJ (2018) Learning with kernels: support vector machines, regularization, optimization, and beyond. Adaptive computation and machine learning series. The MIT Press, Cambridge

    Google Scholar 

  51. Abidi A, Nouira I, Assali I, Saafi MA, Bedoui MH (2021) Hybrid multi-channel EEG filtering method for ocular and muscular artifact removal based on the 3D spline interpolation technique. Comput J 2021:bxaa175. https://doi.org/10.1093/comjnl/bxaa175

    Article  Google Scholar 

  52. Rahma ON, Rahmatillah A (2019) Drowsiness analysis using common spatial pattern and extreme learning machine based on electroencephalogram signal. J Med Signals Sens 9(2):130

    Google Scholar 

  53. Belakhdar I, Kaaniche W, Djemal R, Ouni B (2018) Single-channel-based automatic drowsiness detection architecture with a reduced number of EEG features. Microprocess Microsyst 58:13–23

    Google Scholar 

  54. Tripathy RK, Acharya UR (2018) Use of features from RR-time series and EEG signals for automated classification of sleep stages in deep neural network framework. Biocybern Biomed Eng 38(4):890–902

    Google Scholar 

  55. Correa AG, Leber EL (2010) An automatic detector of drowsiness based on spectral analysis and wavelet decomposition of EEG records. In: 2010 annual international conference of the IEEE engineering in medicine and biology. IEEE, pp 1405–1408

  56. Albalawi H, Li X (2018) Single-channel real-time drowsiness detection based on electroencephalography. In: 2018 40th annual international conference of the IEEE engineering in medicine and biology society (EMBC). IEEE, pp 98–101

  57. Xiong YJ, Zhang R, Zhang C, Yu XL (2013) A novel estimation method of fatigue using EEG based on KPCA-SVM and complexity parameters. In: Applied mechanics and materials, vol 373. Trans Tech Publications Ltd., pp 965–969

  58. Anitha C (2019) Detection and analysis of drowsiness in human beings using multimodal signals. In: Patnaik S, Yang X-S, Tavana M, Popentiu-Vlădicescu F, Qiao F (eds) Digital business. Springer, Cham, pp 157–174

    Google Scholar 

  59. Ogino M, Mitsukura Y (2018) Portable drowsiness detection through use of a prefrontal single-channel electroencephalogram. Sensors 18(12):4477

    Google Scholar 

  60. Gwak J, Shino M, Hirao A (2018) Early detection of driver drowsiness utilizing machine learning based on physiological signals, behavioral measures, and driving performance. In: 2018 21st international conference on intelligent transportation systems (ITSC). IEEE, pp 1794–1800

  61. Breitenbach J, Baumgartl H, Buettner R (2020) Detection of excessive daytime sleepiness in resting-state EEG recordings: a novel machine learning approach using specific EEG sub-bands and channels. AMCIS’20 Proceedings

  62. Lan K-C, Chang D-W, Kuo C-E, Wei M-Z, Li Y-H, Shaw F-Z, Liang S-F (2015) Using off-theshelf lossy compression for wireless home sleep staging. J Neurosci Methods 246:142–152

    Google Scholar 

  63. Jeong JH, Yu BW, Lee DH, Lee SW (2019) Classification of drowsiness levels based on a deep spatio-temporal convolutional bidirectional LSTM network using electroencephalography signals. Brain Sci 9(12):348

    Google Scholar 

  64. Wang Q, Li Y, Liu X (2018) Analysis of feature fatigue EEG signals based on wavelet entropy. Int J Pattern Recogn Artif Intell 32:1854023

    Google Scholar 

  65. Hjorth B (1970) EEG analysis based on time domain properties. Electroencephalogr Clin Neurophysiol 29(3):306–310

    Google Scholar 

  66. Vourkas M, Micheloyannis S, Papadourakis G (2000) Use of ann and hjorth parameters in mental-task discrimination. In: 2000 first international conference advances in medical signal and information processing (IEE conference publication No. 476). IET, pp 327–332

  67. Krishnan P, Yaacob S (2019) Drowsiness detection using band power and log energy entropy features based on EEG signals. Int J Innov Technol Explor Eng 8:10

    Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Khaled Ben Khalifa.

Additional information

Publisher's Note

Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Rights and permissions

Reprints and permissions

About this article

Check for updates. Verify currency and authenticity via CrossMark

Cite this article

Abidi, A., Ben Khalifa, K., Ben Cheikh, R. et al. Automatic Detection of Drowsiness in EEG Records Based on Machine Learning Approaches. Neural Process Lett 54, 5225–5249 (2022). https://doi.org/10.1007/s11063-022-10858-x

Download citation

  • Accepted:

  • Published:

  • Issue Date:

  • DOI: https://doi.org/10.1007/s11063-022-10858-x

Keywords

Navigation