Next Article in Journal
Light Sheet Fluorescence Microscopy Using Incoherent Light Detection
Previous Article in Journal
Novel Electrochemical Lactate Biosensors Based on Prussian Blue Nanoparticles
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Proceeding Paper

Advanced Driver Fatigue Detection by Integration of OpenCV DNN Module and Deep Learning †

by
Muzammil Parvez M.
1,*,
Srinivas Allanki
1,*,
Govindaswamy Sudhagar
2,
Ernest Ravindran R. S.
1,
Chella Santosh
1,
Ali Baig Mohammed
3 and
Mohd. Abdul Muqeet
4
1
Department of Electronics and Communication Engineering, Koneru Lakshmaiah Education Foundation, Guntur 522502, India
2
Department of Electronics and Communication Engineering, Bharath Institute of Higher Education and Research, Chennai 600126, India
3
School of Electronics and Communication Engineering, Reva University, Bangaluru 560064, India
4
Department of Electrical Engineering, Muffakham Jah College of Engineering and Technology, Hyderabad 500034, India
*
Authors to whom correspondence should be addressed.
Presented at the International Conference on “Holography Meets Advanced Manufacturing”, Online, 20–22 February 2023.
Eng. Proc. 2023, 34(1), 15; https://doi.org/10.3390/HMAM2-14158
Published: 13 March 2023

Abstract

:
Road safety is significantly impacted by drowsiness or weariness, which primarily contributes to auto accidents. If drowsy drivers are informed in advance, many fatal incidents can be avoided. Over the past 20 to 30 years, the number of road accidents and injuries in India has increased alarmingly. According to the experts, the main cause of this issue is that drivers who do not take frequent rests when travelling long distances run a great danger of becoming drowsy, which they frequently fail to identify early enough. Several drowsiness detection techniques track a driver’s level of tiredness while they are operating a vehicle and alert them if they are not paying attention to the road. This study describes a noncontact way of determining a driver’s tiredness utilising detecting techniques.

1. Introduction

An automotive safety system called driver drowsiness detection works to stop accidents when the driver is about to nod off. According to several studies, weariness may play a role in up to 50% of specific roads and about 20% of all traffic accidents. Numerous auto accidents are significantly influenced by driver drowsiness. According to recent figures, collisions caused by driver drowsiness result in an estimated 1200 fatalities and 76,000 injuries per year [1]. A significant obstacle in the development of accident-avoidance systems is the detection or prevention of tiredness. A biological condition known as drowsiness or sleepiness occurs when the body is transitioning from an alert state to a sleeping state [2]. At this point, a motorist may become distracted and be unable to make decisions like avoiding crashes or using the brakes in a timely manner. There are clear indicators that a motorist may be drowsy, such as eye blinking/inability to keep eyes open, wobbling the head forward, and frequent yawning. Three categories can be used to categorize drowsiness detection are vehicle-based, behavioral-based and physiological based [3].
Vehicle-based measure: Several measurements include lane deviations, steering wheel movement, abrupt pressure on the accelerator pedal, etc. [4]. These parameters are continuously tracked, and if they fluctuate or cross a predetermined threshold, it means the driver is drowsy. Behaviour-based measurement: The metrics used here are based on the driver’s actions, such as yawning, closing of the eyes, blinking, head posture, etc. A physiologically based measurement accesses the driver’s conditions by attaching electrical devices to the skin. Electroencephalogram, Electrocardiogram, and Electrooculogram are examples of this.
Convolutional networks with three carefully chosen levels are used to suggest a new strategy for approximating the positions of important face points [5]. Two advantages exist: To discover every important spot, texture context data applied to the entire face is used initially. Second, the geometric relationships between key points are implicitly embedded in networks since they are adept at concurrently predicting all the critical points. The drawback is that while regionally sharing the weights of neurons on a single map enhances performance, global sharing of the weights does not perform well on images like faces or in some unusual poses or emotions.
Milla et al. [6] create a system that is not light-sensitive. For object detection, they employed the Haar algorithm, and for face classification, they used the OpenCV libraries’ face classifier. Anthropometric parameters are used to determine the eye regions from the facial region. The amount of ocular closure is then determined by detecting the eyelid. The disadvantage is that this model performs poorly in dim lighting.
Omidyeganeh, M. et al. [7] used a camera to record face appearance. Face extraction from the image, eye detection, mouth detection, and alert creation are the four steps of the plan while asleep. Since a non-contact method is employed here, the system’s shortcoming is that it depends on elements such as light, the camera, and other things.
Warwick et al. [8] demonstrated a wireless wearable sensor for drowsy driver detection systems. A drowsiness system is developed in two steps: the collection of physiological data using a biosensor and the identification of the essential components of drowsiness through analysis of the data. In the second stage, drowsy people are alerted via a mobile app and an algorithm that detects their tiredness. The heart and respiration rates of a driver are reliable indicators of weariness.
This approach describes a noncontact method for determining a driver’s drowsiness by utilising OpenCV DNN module for detecting face and a convolution neural network model to classify his state.

2. Methodology

The entire process of the drowsiness detection system is carried out following image processing, which is a technique for carrying out some actions on an image. The traditional Drowsiness Detection System is depicted in Figure 1.
There are five steps in this system flow, and they basically consist of Acquiring video, detection of the face, detection of eyes and mouth, state assessment and at last categorisation into drowsy or non-drowsy. There are three fundamental steps in this approach. First, video is captured using the camera, then it is transformed into frames, then faces are identified, and last, deep learning is used to detect sleepiness. In comparison to contact-based methods, this technology is non-contact-based and will be inexpensive.

2.1. Acquiring Video

This uses the Kaggle Drowsiness dataset. This accessible dataset is meant to aid in research projects. The camera is used to capture the photographs. There are four classes in this dataset that are used to categorize the state of the individual. The dataset contains images with a resolution of 640 × 480 pixels.

2.2. Detection of Face

Due to its simplicity, the Viola–Jones algorithm is frequently employed for face detection. Here, Haar characteristics are retrieved to identify facial, bodily, skeletal, and other markers [9]. As illustrated in Figure 2, Edge, line, and four-sidedness are the three Haar-like properties. The Haar-like feature needs to provide you with a higher score because our faces have complicated forms with darker and brighter areas. Computation of Haar features comprises comparing pixel intensities within predefined rectangular regions which may be either non-negative (white) or negative (black).
For that integral picture calculates the sum of pixel values in an image or rectangular section of an image, which helps us accomplish these laborious computations fast and effectively. Even after using the integral image approach, each image sub-window still has more than 180,000 rectangle features. Even though it is very efficient to compute each feature individually, doing it for the entire collection of features is expensive.
To find the optimal features, the AdaBoost method is employed [10]. In the end, the algorithm creates a simple standard to determine if a property is considered to be valuable.
Another choice is to use the “Dlib” library for face detection. Dlib is an open-source platform for machine learning applications. The 68 coordinates (x, y) that map the facial locations on a person’s face are estimated using the Dlib. It is a facial detector with trained models for landmarks. The pre-trained model using the iBUG300-W dataset was used to locate these spots.
The multi-task cascaded convolutional network (MTCNN) model is an additional technique for face detection. This model [11] can retain real-time speed while outperforming several face-detection benchmarks. Three convolutional networks are present (P-Net, R-Net, and O-Net). High accuracy is possible when a deep neural network is used. Using three networks, each with many layers allows for more precision because each network can adjust the results of the one that came before it. This model also locates both large and small faces using an image pyramid. NMS, R-Net, and O-Net all assist in the rejection of several inaccurate bounding boxes despite the potentially overwhelming amount of data generated.
The most recent version of OpenCV has a deep neural network (DNN) module with an excellent pre-trained convolutional neural network (CNN) for face detection. The new model performs better in face detection when compared to earlier models like Haar. It is a Caffe model based on the single-shot multibox detector with ResNet-10 architecture at its heart (SSD).

2.3. Drowsiness Detection:

The system’s classification procedure involves drowsiness detection. For classification, many machine-learning techniques have previously been created. You can choose one of two classification kinds. (i) Determine if the mouth or eyes are open or closed by analysing the eye and mouth region of interest. (ii) Examine the full area of the face that is of interest. Here, using a modified convolution neural network [12], a novel training approach is developed. CNNs are crucial resources for deep learning and are particularly well-suited for studying picture data.
Convolutional networks are composed of input, output, and perhaps one or more hidden layers as shown in Figure 3. In contrast to a regular neural network, a convolutional network’s layers include neurons organized in three dimensions (width, height, and depth dimensions). On account of this, CNN can transform a three-dimensional input volume into an output volume. The hidden layers are composed of convolution layers, pooling layers, normalizing layers, and completely.

3. Result

In addition to other research projects, this effort requires a variety of deep learning techniques. The first goal of this effort is face detection with occlusions. There were four implemented algorithms on Figure 4. Red squares are utilized to provide a visual representation of the outcomes generated by the algorithms.
Although the Viola–Jones algorithm executes relatively quickly, it cannot recognize side faces and produces a greater number of false positives as shown in Figure 5.
Dlib cannot distinguish between small faces. Dlib’s facial detector had an issue because it cannot identify faces smaller than 80 × 80 pixels. Since the images were so small, the faces were even smaller, as illustrated in Figure 6. Because the face size cannot be very small and up-sampling the image may lengthen processing time, the image was scaled up by a factor of 2 for testing. However, this is a major issue when using Dlib.
MTCNN slightly outperformed Dlib in terms of outcomes, although Dlib cannot recognise very small faces. Additionally, MTCNN may produce the greatest results if the size of the images is sufficiently large and adequate illumination, minimal occlusion, and primarily front faces are guaranteed, as shown in Figure 7.
The Caffe model from OpenCV used by the DNN module is the best. It is also a helpful parameter in the sleepiness detection approach that has been developed, and as shown in Figure 8, it functions well with occlusion, fast head movements, and the ability to recognize side faces.
The results are acquired using an AMD Ryzen 7 5800H processor and an Nvidia RTX 3050 GPU, and the images passed are all 640 × 360 pixels, with the exception of the DNN module, which is still receiving 300 × 300 pixels as usual. Frame rate [14] for different methods is illustrated in the Table 1.
Figure 9 the model performance during training process. The red line indicates the validation accuracy per epoch and the blue line indicates training accuracy per epoch of the model.
Table 2 illustrates how the suggested system performs better than the current drowsiness detection techniques [15,16].

4. Conclusions

This approach will go through a method for determining a driver’s level of intoxication in this section. For face detection, it was shown that the OpenCV DNN module outperformed Viola–Jones, Dlib, and MTCNN. The categorization process employs a modified CNN. The accuracy rate of the system is 96.8%. By evaluating the validation accuracy while using the validation dataset for model training, the model was proven to be accurate. In the future, the detection can be improved by using an infrared camera for low-light situations. Counting the frequency of yawns over a certain amount of time might also help identify drowsiness. Further, one can utilize a multi-model machine-learning approach and include additional modalities, such as the audio channel, in addition to the video frames, to enhance performance.

Author Contributions

All authors contributed to the study conception and design. Data collection and analysis were performed by M.P.M., S.A., G.S., E.R.R.S., C.S., A.B.M. and M.A.M. The first draft of the manuscript was written by S.A. and M.P.M. and all authors commented on previous versions of the manuscript. All authors have read and agreed to the published version of the manuscript.

Funding

The authors declare that no funds, grants, or other support were received during the preparation of this manuscript.

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

Research Data sets for this submission was used from (https://www.kaggle.com/datasets/dheerajperumandla/drowsiness-dataset, accessed on 20 November 2022).

Conflicts of Interest

The authors declare that they have no known competing financial interest or personal relationship that could have appeared to influence the work reported in this paper.

References

  1. Dhawde, P.; Nagare, P.; Sadigale, K.; Sawant, D.; Mahajan, J.R. Drowsiness Detection System. Int. J. Eng. Res. Technol. (IJERT) Iconect 2015, 3, 1–2. [Google Scholar]
  2. Lal, S.K.; Craig, A. A critical review of the psychophysiology of driver fatigue. Biol. Psychol. 2001, 55, 173–194. [Google Scholar] [CrossRef] [PubMed]
  3. Ramzan, M.; Khan, H.U.; Awan, S.M.; Ismail, A.; Ilyas, M.; Mahmood, A. A Survey on State-of-the-Art Drowsiness Detection Techniques. IEEE Access 2019, 7, 61904–61919. [Google Scholar] [CrossRef]
  4. Sahayadhas, A.; Sundaraj, K.; Murugappan, M. Detecting Driver Drowsiness Based on Sensors: A Review. Sensors 2012, 12, 16937–16953. [Google Scholar] [CrossRef]
  5. Sun, Y.; Chen, Y.; Wang, X.; Tang, X. Deep learning face representation by joint identification-verification. Adv. Neural Inf. Process. Syst. 2014. [Google Scholar]
  6. Alshaqaqi, B.; Baquhaizel, A.S.; Ouis, M.E.A.; Boumehed, M.; Ouamri, A.; Keche, M. Driver Drowsiness Detection System. In Proceedings of the 2013 8th International Workshop on Systems, Signal Processing and their Applications (WoSSPA), Algiers, Algeria, 12–15 May 2013; IEEE: Piscataway, NJ, USA, 2013; pp. 151–155. [Google Scholar]
  7. Omidyeganeh, M.; Javadtalab, A.; Shirmohammadi, S. Intelligent driver drowsiness detection through fusion of yawning and eye closure. In Proceedings of the 2011 IEEE International Conference on Virtual Environments, Human-Computer Interfaces and Measurement Systems Proceedings, Ottawa, ON, Canada, 19–21 September 2011; IEEE: Piscataway, NJ, USA, 2011; pp. 1–6. [Google Scholar]
  8. Warwick, B.; Symons, N.; Chen, X.; Xiong, K. Detecting driver drowsiness using wireless wearables. In Proceedings of the 2015 IEEE 12th International Conference on Mobile ad Hoc and Sensor Systems, Dallas, TX, USA, 19–22 October 2015; IEEE: Piscataway, NJ, USA, 2015; pp. 585–588. [Google Scholar]
  9. Zhou, W.; Chen, Y.; Liang, S. Sparse Haar-Like Feature and Image Similarity-Based Detection Algorithm for Circular Hole of Engine Cylinder Head. Appl. Sci. 2018, 8, 2006. [Google Scholar] [CrossRef]
  10. Schapire, R.E. Explaining AdaBoost. In Empirical Inference; Schölkopf, B., Luo, Z., Vovk, V., Eds.; Springer: Heidelberg, Germany, 2013. [Google Scholar] [CrossRef]
  11. Zhang, K.; Zhang, Z.; Li, Z.; Qiao, Y. Joint Face Detection and Alignment Using Multitask Cascaded Convolutional Networks. IEEE Signal Process. Lett. 2016, 23, 1499–1503. [Google Scholar] [CrossRef]
  12. Suresh, M.; Sinha, A.; Aneesh, R.P. Real-Time Hand Gesture Recognition Using Deep Learning. Int. J. Innov. Implement. Eng. 2019, 1, 11–15. [Google Scholar]
  13. Mossholder, T. Photo by Tim Mossholder on Unsplash, Beautiful Free Images & Pictures. 2019. Available online: https://unsplash.com/photos/hOF1bWoet_Q (accessed on 15 February 2023).
  14. Danelljan, M.; Häger, G.; Khan, F.S.; Felsberg, M. Discriminative Scale Space Tracking. IEEE Trans. Pattern Anal. Mach. Intell. 2017, 39, 1561–1575. [Google Scholar] [CrossRef] [PubMed]
  15. Saini, V.; Saini, R. Driver drowsiness detection system and techniques: A review. Int. J. Comput. Sci. Inf. Technol. 2014, 5, 4245–4249. [Google Scholar]
  16. Albadawi, Y.; Takruri, M.; Awad, M. A Review of Recent Developments in Driver Drowsiness Detection Systems. Sensors 2022, 22, 2069. [Google Scholar] [CrossRef] [PubMed]
  17. Picot, A.; Charbonnier, S.; Caplier, A.; Vu, N.-S. Using retina modelling to characterize blinking: Comparison between EOG and video analysis. Mach. Vis. Appl. 2011, 23, 1195–1208. [Google Scholar] [CrossRef]
  18. Deng, W.; Wu, R. Real-Time Driver-Drowsiness Detection System Using Facial Features. IEEE Access 2019, 7, 118727–118738. [Google Scholar] [CrossRef]
  19. Akrout, B.; Mahdi, W. Spatio-temporal features for the automatic control of driver drowsiness state and lack of concentration. Mach. Vis. Appl. 2015, 26, 1–13. [Google Scholar] [CrossRef]
  20. Zhang, Y.; Hua, C. Driver fatigue recognition based on facial expression analysis using local binary patterns. Optik 2015, 126, 4501–4505. [Google Scholar] [CrossRef]
Figure 1. Proposed approach.
Figure 1. Proposed approach.
Engproc 34 00015 g001
Figure 2. Features of Haar (a) Edge (b) Line (c) Four rectangles (d) Face detection [9].
Figure 2. Features of Haar (a) Edge (b) Line (c) Four rectangles (d) Face detection [9].
Engproc 34 00015 g002
Figure 3. Modified CNN Model.
Figure 3. Modified CNN Model.
Engproc 34 00015 g003
Figure 4. Test image [13].
Figure 4. Test image [13].
Engproc 34 00015 g004
Figure 5. Face detection using Viola–Jones [13].
Figure 5. Face detection using Viola–Jones [13].
Engproc 34 00015 g005
Figure 6. Face detection using Dlib [13].
Figure 6. Face detection using Dlib [13].
Engproc 34 00015 g006
Figure 7. Face detection using MTCNN [13].
Figure 7. Face detection using MTCNN [13].
Engproc 34 00015 g007
Figure 8. Face detection using DNN [13].
Figure 8. Face detection using DNN [13].
Engproc 34 00015 g008
Figure 9. Model performance after 50 epochs of training.
Figure 9. Model performance after 50 epochs of training.
Engproc 34 00015 g009
Table 1. Frame rate.
Table 1. Frame rate.
MethodsFrame Rate
Haar38
Dlib32
MTCNN34
DNN46
Table 2. Examining Performance.
Table 2. Examining Performance.
AlgorithmAccuracy
Picot [17]82.1%
Akrout [18]90.2%
Dricare [19]93.6%
Zhang [20]85.9%
Proposed Algorithm96.8%
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Parvez M., M.; Allanki, S.; Sudhagar, G.; R. S., E.R.; Santosh, C.; Mohammed, A.B.; Muqeet, M.A. Advanced Driver Fatigue Detection by Integration of OpenCV DNN Module and Deep Learning. Eng. Proc. 2023, 34, 15. https://doi.org/10.3390/HMAM2-14158

AMA Style

Parvez M. M, Allanki S, Sudhagar G, R. S. ER, Santosh C, Mohammed AB, Muqeet MA. Advanced Driver Fatigue Detection by Integration of OpenCV DNN Module and Deep Learning. Engineering Proceedings. 2023; 34(1):15. https://doi.org/10.3390/HMAM2-14158

Chicago/Turabian Style

Parvez M., Muzammil, Srinivas Allanki, Govindaswamy Sudhagar, Ernest Ravindran R. S., Chella Santosh, Ali Baig Mohammed, and Mohd. Abdul Muqeet. 2023. "Advanced Driver Fatigue Detection by Integration of OpenCV DNN Module and Deep Learning" Engineering Proceedings 34, no. 1: 15. https://doi.org/10.3390/HMAM2-14158

Article Metrics

Back to TopTop