Skip to main content
Log in

Eye Based Drowsiness Detection System for Driver

  • Original Article
  • Published:
Journal of Electrical Engineering & Technology Aims and scope Submit manuscript

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.

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

Similar content being viewed by others

References

  1. 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].

  2. National Highway Traffic Safety Administration, “NHTSA Drowsy Driving Research and Program Plan,” (2016)

  3. National Sleep Foundation, “Drowsy Driving Prevention Week,” (2006)

  4. 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

  5. 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

  6. 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

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

    Article  Google Scholar 

  8. Dange TK, Yengatiwar TS (2013) A review method on drowsiness detection system. Int J Eng Res Technol 2(1):1–6

    Article  Google Scholar 

  9. 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.

  10. Nakamura T, Maejima A, Morishima S (2010) Driver drowsiness estimation from facial expression features (2010)

  11. 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

  12. 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

    Article  Google Scholar 

  13. 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

  14. 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]

  15. Team OD, Canny Edge Detector. [Online]. https://docs.opencv.org/2.4/doc/tutorials/imgproc/imgtrans/canny_detector/canny_detector.html

  16. 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]

  17. Papari G, Petkov N (2011) Edge and line oriented contour detection: State of the art. Image Vis Comput 29(2–3):79–103

    Article  Google Scholar 

  18. 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

Download references

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

Authors

Corresponding author

Correspondence to Prima Dewi Purnamasari.

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

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

Download citation

  • Received:

  • Revised:

  • Accepted:

  • Published:

  • Issue Date:

  • DOI: https://doi.org/10.1007/s42835-021-00925-z

Keywords

Navigation