Abstract
Most traffic accidents are caused by human error, i.e. drowsiness. A drowsiness detection system is then developed to respond to this situation. In this work, the drowsiness detection system is built through the OpenCV library by combining the Haar Cascade Classifier algorithm with Blur, Canny, and Contour function. Haar Cascade Classifier was used to detect areas of face and eyes whereas the combination of Blur, Canny, and Contour functions are used to detect the driver's eyes and analyze the opening or closing of the driver's eyes. The performance of the drowsiness detection system was tested through four variables; kernel size, threshold value, lighting condition (morning, noon, afternoon, and night), and eye's characteristic (eyeglasses or not). Based on the experiments, the best kernel size to detect the driver's eyes is 4,4. Then, the best lower threshold and upper thresholds are 70–110 and 210–240. Subsequently, the light conditions have a 20% error rate to the system. The eye's characteristic has a 16,7% error rate to the system.
![](http://media.springernature.com/m312/springer-static/image/art%3A10.1007%2Fs42835-021-00925-z/MediaObjects/42835_2021_925_Fig1_HTML.png)
![](http://media.springernature.com/m312/springer-static/image/art%3A10.1007%2Fs42835-021-00925-z/MediaObjects/42835_2021_925_Fig2_HTML.png)
![](http://media.springernature.com/m312/springer-static/image/art%3A10.1007%2Fs42835-021-00925-z/MediaObjects/42835_2021_925_Fig3_HTML.png)
![](http://media.springernature.com/m312/springer-static/image/art%3A10.1007%2Fs42835-021-00925-z/MediaObjects/42835_2021_925_Fig4_HTML.png)
![](http://media.springernature.com/m312/springer-static/image/art%3A10.1007%2Fs42835-021-00925-z/MediaObjects/42835_2021_925_Fig5_HTML.png)
![](http://media.springernature.com/m312/springer-static/image/art%3A10.1007%2Fs42835-021-00925-z/MediaObjects/42835_2021_925_Fig6_HTML.png)
![](http://media.springernature.com/m312/springer-static/image/art%3A10.1007%2Fs42835-021-00925-z/MediaObjects/42835_2021_925_Fig7_HTML.png)
![](http://media.springernature.com/m312/springer-static/image/art%3A10.1007%2Fs42835-021-00925-z/MediaObjects/42835_2021_925_Fig8_HTML.jpg)
![](http://media.springernature.com/m312/springer-static/image/art%3A10.1007%2Fs42835-021-00925-z/MediaObjects/42835_2021_925_Fig9_HTML.jpg)
Similar content being viewed by others
References
Statistics Indonesia (Badan Pusat Statistik), “Number of Accidents, Death Victims, Severe Injuries, Minor Injuries, and Loss of Material Suffered in 1992–2017 (Jumlah Kecelakaan, Korban Mati, Luka Berat, Luka Ringan, dan Kerugian Materi yang Diderita Tahun 1992–2017),” 2019. [Online]. Available: https://www.bps.go.id/linkTableDinamis/view/id/1134. [Accessed: 27 Mar 2019].
National Highway Traffic Safety Administration, “NHTSA Drowsy Driving Research and Program Plan,” (2016)
National Sleep Foundation, “Drowsy Driving Prevention Week,” (2006)
Teyeb I, Jemai O, Zaied M, Ben Amar C (2014) A novel approach for drowsy driver detection using head posture estimation and eyes recognition system based on wavelet network. In: IISA 2014—5th International Conference on Information, Intelligence, Systems and Applications, pp. 379–384
Garg R, Gupta V, Agrawal V (2009) A drowsy driver detection and security system. In: 2009 International Conference on Ultra Modern Telecommunications and Workshops, pp 1–8
Lin SD, Lin J-J, Chung C-Y (2013) Sleepy eye’s recognition for drowsiness detection. In: 2013 International Symposium on Biometrics and Security Technologies, pp 176–179
Zhang W, Cheng B, Lin Y (2012) Driver drowsiness recognition based on computer vision technology. Tsinghua Sci Technol 17(3):354–362
Dange TK, Yengatiwar TS (2013) A review method on drowsiness detection system. Int J Eng Res Technol 2(1):1–6
Yang S, Xi J, Wang W (2019) Driver drowsiness detection through a vehicle’s active probe action. In: 2019 IEEE 2nd Connected and Automated Vehicles Symposium, CAVS 2019 - Proceedings.
Nakamura T, Maejima A, Morishima S (2010) Driver drowsiness estimation from facial expression features (2010)
Zhao Z, Zhou N, Zhang L, Yan H, Xu Y, Zhang Z (2020) Driver fatigue detection based on convolutional neural networks using EM-CNN. Comput Intell Neurosci, vol 2020
Chaabene S, Bouaziz B, Boudaya A, Hökelmann A, Ammar A, Chaari L (2021) Convolutional neural network for drowsiness detection using EEG signals. Sensors 21(5):1–19
Viola MJP (2001) Rapid object detection using a boosted cascade of simple features. In: Proceedings of the 2001 IEEE Computer Society Conference on Computer Vision and Pattern Recognition, no. 1, pp 511–518
Opencv Dev Team, “Smoothing Images.” [Online]. https://docs.opencv.org/2.4/doc/tutorials/imgproc/gausian_median_blur_bilateral_filter/gausian_median_blur_bilateral_filter.html. [Accessed: 29 Mar 2019]
Team OD, Canny Edge Detector. [Online]. https://docs.opencv.org/2.4/doc/tutorials/imgproc/imgtrans/canny_detector/canny_detector.html
Mordvintsev A (2013) Contours : Getting Started. [Online]. https://opencv-python-tutroals.readthedocs.io/en/latest/py_tutorials/py_imgproc/py_contours/py_contours_begin/py_contours_begin.html. [Accessed: 01 Apr 2019]
Papari G, Petkov N (2011) Edge and line oriented contour detection: State of the art. Image Vis Comput 29(2–3):79–103
Bayrakdar S, Yucedag I, Akgun D (2016) A multicore accelerated implementation for statistical analysis of facial expressions in video. In: 2016 XIth International Scientific and Technical Conference Computer Sciences and Information Technologies (CSIT), pp 62–65
Acknowledgements
The author would like to thank the Directorate General of Higher Education and Research of Indonesia for supporting this research under PDUPT Grant No.417/UN2.R3.1/HKP.05.00/2018.
Author information
Authors and Affiliations
Corresponding author
Additional information
Publisher's Note
Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.
Rights and permissions
About this article
Cite this article
Purnamasari, P.D., Kriswoyo, A., Ratna, A.A.P. et al. Eye Based Drowsiness Detection System for Driver. J. Electr. Eng. Technol. 17, 697–705 (2022). https://doi.org/10.1007/s42835-021-00925-z
Received:
Revised:
Accepted:
Published:
Issue Date:
DOI: https://doi.org/10.1007/s42835-021-00925-z