WITS 2020 pp 57-64 | Cite as

Detection and Prediction of Driver Drowsiness for the Prevention of Road Accidents Using Deep Neural Networks Techniques

Conference paper
Part of the Lecture Notes in Electrical Engineering book series (LNEE, volume 745)


Driver drowsiness is one of the reasons for a large number of road accidents in the world. In this paper, we have proposed an approach for the detection and prediction of the driver’s drowsiness based on his facial features. This approach is based on deep learning techniques using convolutional neural networks CNN, with Transfer learning and Training from Scratch, to train a CNN model. A comparison between the two methods based on model size, accuracy and training time has also been made. The proposed algorithm uses the cascade object detector (Viola-Jones algorithm) for detecting and extracting the driver’s face from images, the images extracted from the videos of the Real-Life Drowsiness Dataset RLDD will act as the dataset for training and testing the CNN model. The extracted model can achieve an accuracy of more than 96% and can be saved as a file and used to classify images as driver Drowsy or Non-Drowsy with the predicted label and probabilities for each class.


Driver drowsiness detection Deep learning Convolutional neural networks Transfer learning Training from scratch 


  1. 1.
    Drowsy driving 19 states and the District of Columbia (2009–2010). Retrieved from
  2. 2.
    Drowsy driving and risk behaviors 10 states and Puerto Rico (2011–2012). Retrieved from
  3. 3.
    National Highway Traffic Safety Administration. Research on Drowsy Driving external icon (October 20, 2015). Retrieved from
  4. 4.
    The Impact of Driver Inattention on Near-Crash/Crash Risk (April 2006). Retrieved from
  5. 5.
  6. 6.
    Ghoddoosian R, Galib M, Athitsos V (2019) A realistic dataset and baseline temporal model for early drowsiness detection. In: The IEEE conference on computer vision and pattern recognition workshopsGoogle Scholar
  7. 7.
    Viola P, Jones M (2001) Rapid object detection using a boosted cascade of simple features. In: The 2001 IEEE computer society conference on computer vision and pattern recognition. CVPR 2001, vol 1. IEEEGoogle Scholar
  8. 8.
    Viola P, Jones M (2001) Robust real-time object detection. Int J Comput Vis 4(34–47):4Google Scholar
  9. 9.
    Jabbar R, Al-Khalifa K, Kharbeche M, Alhajyaseen W, Jafari M, Jiang S (2018) Real-time driver drowsiness detection for android application using deep neural networks techniques. Procedia Comput Sci 130:400–407CrossRefGoogle Scholar
  10. 10.
    Dlib C++ toolkit. Retrieved from (2018 Jan 08)
  11. 11.
    Danisman T, Bilasco IM, Djeraba C, Ihaddadene N (2010) Drowsy driver detection system using eye blink patterns. In: 2010 international conference on machine and web intelligence. IEEE, pp 230–233Google Scholar
  12. 12.
    Åkerstedt T, Mats G (1990) Subjective and objective sleepiness in the active individual. Int J Neurosci 52(1–2):29–37CrossRefGoogle Scholar
  13. 13.
    O'Shea K, Nash R (2015) An introduction to convolutional neural networks. arXiv preprint arXiv:1511.08458
  14. 14.
    Krizhevsky A, Sutskever I, Hinton GE (2012) Imagenet classification with deep convolutional neural networks. In: Advances in neural information processing systemsGoogle Scholar

Copyright information

© Springer Nature Singapore Pte Ltd. 2022

Authors and Affiliations

  1. 1.Electrical Engineering and Maintenance LaboratoryHigh School of Technology, Mohammed First UniversityOujdaMorocco

Personalised recommendations