Preventive Detection of Driver Drowsiness from EEG Signals using Fuzzy Expert Systems


  • Rony Almiron Universidad Nacional de San Agustín de Arequipa, Perú
  • Bruno Adolfo Castillo Universidad Nacional de San Agustín de Arequipa, Perú
  • Andrés Montoya Angulo Universidad Nacional de San Agustín de Arequipa, Perú
  • Elvis Supo Universidad Nacional de San Agustín de Arequipa, Perú
  • Jesús José Fortunato Talavera Universidad Nacional de San Agustín de Arequipa, Perú
  • Daniel Domingo Yanyachi Aco Cardenas Universidad Nacional de San Agustín de Arequipa, Perú



drive drowsiness, electroencephalogram, expert systems, sleepiness detection


Currently, the percentage of traffic accidents has increased, and according to statistics, this percentage will continue to increase every year, so it is necessary to develop new technologies to prevent this kind of accidents. This paper presents a drowsiness detection system based on electroencephalogram (EEG) signals using a pair of channels (Fp1 and Fp2) applied to drivers before entering their vehicles. First, this model detects the relationship between the area under the curve (AUC) of alpha brain waves, an effective parameter for detecting drowsiness. Then, the extracted information is passed to a fuzzy expert system (FES) that classifies the subject's state as "alert" or "sleepy"; the criterion used was a threshold and training with subjective levels. The proposed system was compared with neural network models, such as support vector machine (SVM), K nearest neighbors (KNN), and random forest (RF). Measurements of one hundred and twenty minutes were performed on each of the ten drivers for two days to test the system. The tests confirm that this system is suitable for preventive measures and that the fuzzy system is superior to traditional neural network methods.


Download data is not yet available.


World Health Organization, “Global status report on road safety 2018,” WHO. France, 2018 Accessed: Dec. 21, 2023. [Online]. Available:

Pan American Health Organization, World Health Organization, “Road Safety,” PAHO/WHO. Accessed: Dec. 21, 2023. [Online]. Available:

D. Carhuavilca, Perú: Natalidad, Mortalidad y Nupcialidad, 2019, Lima, Perú: Instituto Nacional de Informática y Estadística, 2020. [Online]. Available:

Policía Nacional del Perú, “Muertos por Accidentes de Tránsito 2006 – 2017,” Ministerio de transportes y Comunicaciones. Accessed: Dec. 21, 2023. [Online]. Available:

E. Huerta. “La preocupante cifra de muertes por accidentes de tránsito en el Perú y sus principales causas.” El Comercio Perú. (accessed Dec. 21, 2023).

J. Rey de Castro, “Drowsy drivers on the roads of Peru: findings and proposals,” Rev. Med. Hered., vol. 22, no. 4, pp. 155–156, Oct. 2011. [Online]. Available:

A. A. Putilov and O. G. Donskaya, “Construction and validation of the EEG analogues of the Karolinska sleepiness scale based on the Karolinska drowsiness test,” Clin. Neurophysiol., vol. 124, no. 7, pp. 1346–1352, Jul. 2013, doi:

V. Riethmeister, R. W. Matthews, D. Dawson, M. R. de Boer, S. Brouwer, and U. Bültmann, “Time-of-day and days-on-shift predict increased fatigue over two-week offshore day-shifts,” Appl. Ergon., vol. 78, pp. 157–163, Jul. 2019, doi:

A. Sahayadhas, K. Sundaraj, and M. Murugappan, “Detecting Driver Drowsiness Based on Sensors: A Review,” Sensors, vol. 12, no. 12, pp. 16937–16953, Dec. 2012, doi:

V. Bajaj, S. Taran, S. K. Khare, and A. Sengur, “Feature extraction method for classification of alertness and drowsiness states EEG signals,” Appl. Acoust., vol. 163, art. no. 107224, Jun. 2020, doi:

U. Budak, V. Bajaj, Y. Akbulut, O. Atila, and A. Sengur, “An Effective Hybrid Model for EEG-Based Drowsiness Detection,” IEEE Sens. J., vol. 19, no. 17, pp. 7624–7631, Sep. 2019, doi:

M. Fernandes, “Driver drowsiness detection using non-intrusive eletrocardiogram and steering wheel angle signals,” M. S. thesis, Univ. Porto, Porto, Portugal, 2019. [Online]. Available:

S. Arefnezhad, S. Samiee, A. Eichberger, and A. Nahvi, “Driver Drowsiness Detection Based on Steering Wheel Data Applying Adaptive Neuro-Fuzzy Feature Selection,” Sensors, vol. 19, no. 4, art. no. 943, Feb. 2019, doi:

M. Chai, s.-w. Li, w.-c. Sun, m.-z. Guo, and m.-y. Huang, “Drowsiness monitoring based on steering wheel status,” Transp. Res. D Transp. Environ., vol. 66, pp. 95–103, Jan. 2019, doi:

C. Fors, C. Ahlström, P. Sörner, J. Kovaceva, et al., “Camera-based sleepiness detection Final report of the project SleepEYE,” Virtual Prototyping and Assessment by Simulation, 2011. Accessed: Aug. 23, 2023. [Online]. Available:

M. H. Baccour, F. Driewer, E. Kasneci, and W. Rosenstiel, “Camera-Based Eye Blink Detection Algorithm for Assessing Driver Drowsiness,” in 2019 IEEE Intelligent Vehicles Symposium (IV), Paris, France, 2019, pp. 987-993, doi:

T. Azim, M. A. Jaffar, and A. M. Mirza, “Fully automated real time fatigue detection of drivers through Fuzzy Expert Systems,” Appl. Soft Comput., vol. 18, pp. 25–38, May 2014, doi:

V. Vijayan and E. Sherly, “Real time detection system of driver drowsiness based on representation learning using deep neural networks,” J. Intell. Fuzzy Syst., vol. 36, no. 3, pp. 1977–1985, Mar. 2019, doi:

B.-G. Lee, B.-L. Lee, and W.-Y. Chung, “Mobile Healthcare for Automatic Driving Sleep-Onset Detection Using Wavelet-Based EEG and Respiration Signals,” Sensors, vol. 14, no. 10, pp. 17915–17936, Sep. 2014, doi:

Y. Jiao, Y. Deng, Y. Luo, and B.-L. Lu, “Driver sleepiness detection from EEG and EOG signals using GAN and LSTM networks,” Neurocomputing, vol. 408, pp. 100–111, Sep. 2020, doi:

Y. Jiao and B.-L. Lu, “Detecting driver sleepiness from EEG alpha wave during daytime driving,” in 2017 IEEE International Conference on Bioinformatics and Biomedicine (BIBM), Kansas City, MO, USA, 2017, pp. 728-731, doi:

Y. Jiao and B.-L. Lu, “An alpha wave pattern from attenuation to disappearance for predicting the entry into sleep during simulated driving,” in 2017 8th International IEEE/EMBS Conference on Neural Engineering (NER), Shanghai, China, 2017, pp. 21-24, doi:

A. A. Putilov and O. G. Donskaya, “Alpha attenuation soon after closing the eyes as an objective indicator of sleepiness,” Clin. Exp. Pharmacol. Physiol., vol. 41, no. 12, pp. 956–964, Dec. 2014, doi:

S.-C. Ng and P. Raveendran, “EEG Peak Alpha Frequency as an Indicator for Physical Fatigue,” in 11th Mediterranean Conference on Medical and Biomedical Engineering and Computing 2007. IFMBE Proceedings, vol 16. Springer, Heidelberg, Germany, 2007, pp. 517–520, doi:

S. Hanslmayr, J. Gross, W. Klimesch, and K. L. Shapiro, “The role of alpha oscillations in temporal attention,” Brain Res. Rev., vol. 67, no. 1–2, pp. 331–343, Jun. 2011, doi:

J. Katona, I. Farkas, T. Ujbanyi, P. Dukan, and A. Kovari, “Evaluation of the NeuroSky MindFlex EEG headset brain waves data,” in 2014 IEEE 12th International Symposium on Applied Machine Intelligence and Informatics (SAMI), Herl'any, Slovakia, 2014, pp. 91-94, doi:

M. Pathak and A. K. Jayanthy, “Designing of a single channel EEG acquisition system for detection of drowsiness,” in 2017 International Conference on Wireless Communications, Signal Processing and Networking (WiSPNET), Chennai, India, 2017, pp. 1364-1368, doi:

M. Pathak and A. K. Jayanthy, “Development of a Real- Time Single Channel Brain–Computer Interface System for Detection of Drowsiness,” Biomed. Eng. Appl. Basis Commun., vol. 29, no. 3, art no. 1750019, Jun. 2017, doi:

D. L. Schomer, “The Normal EEG in an Adult,” in The Clinical Neurophysiology Primer, A. S. Blum, S. B. Rutkove, Eds., Totowa, NJ, USA: Humana Press eBooks, 2007, ch. 5, pp. 57–71, doi:

S.-H. Hwang, M. Park, J. Kim, Y. Yun, and J. Son, “Driver Drowsiness Detection Using EEG Features,” in HCI International 2018 – Posters' Extended Abstracts. HCI 2018. Communications in Computer and Information Science, vol. 852, Las Vegas, NV, USA, 2018, pp. 367-374, doi:

C. Dissanayaka, E. Ben-Simon, M. Gruberger, A. Maron-Katz, H. Sharon, T. Hendler, D. Cvetkovic, “Comparison between human awake, meditation and drowsiness EEG activities based on directed transfer function and MVDR coherence methods,” Med. Biol. Eng. Comput., vol. 53, no. 7, pp. 599–607, Jul. 2015, doi:

R. Vallat, M. Eskinazi, A. Nicolas, and P. Ruby, “Sleep and dream habits in a sample of French college students who report no sleep disorders,” J. Sleep Res., vol. 27, no. 5, art. no. e12659, Feb. 2018, doi:

E. Combrisson, R. Vallat, C. O'Reilly, M. Jas, et al., “Visbrain: A Multi-Purpose GPU-Accelerated Open-Source Suite for Multimodal Brain Data Visualization,” Front. Neuroinform., vol. 13, art. no. 14, Mar. 2019, doi:

P. A. M. Kanda, E. F. Oliveira, and F. J. Fraga, “EEG epochs with less alpha rhythm improve discrimination of mild Alzheimer’s,” Comput. Methods Programs Biomed., vol. 138, pp. 13–22, Jan. 2017, doi:

J.-D. Wu and T.-R. Chen, “Development of a drowsiness warning system based on the fuzzy logic images analysis,” Expert Syst. Appl., vol. 34, no. 2, pp. 1556–1561, Feb. 2008, doi:

Y. Albadawi, M. Takruri, and M. Awad, “A Review of Recent Developments in Driver Drowsiness Detection Systems,” Sensors, vol. 22, no. 5, art. no. 2069, Mar. 2022, doi:

G. Li and W.-Y. Chung, “Electroencephalogram-Based Approaches for Driver Drowsiness Detection and Management: A Review,” Sensors, vol. 22, no. 3, art. no. 1100, Jan. 2022, doi:




How to Cite

Almiron, R., Castillo, B. A., Montoya Angulo, A., Supo, E., Talavera, J. J. F., & Yanyachi Aco Cardenas, D. D. (2024). Preventive Detection of Driver Drowsiness from EEG Signals using Fuzzy Expert Systems. Revista Mexicana De Ingenieria Biomedica, 45(1), 6–20.



Research Articles

Share on:

Dimensions Citation