HOME JOURNALS CONTACT

Asian Journal of Applied Sciences

Year: 2015 | Volume: 8 | Issue: 2 | Page No.: 149-157
DOI: 10.3923/ajaps.2015.149.157
Automatic Driver Drowsiness Detection Using Haar Algorithm and Support Vector Machine Techniques
Ghassan Jasim AL-Anizy, Md. Jan Nordin and Mohammed M. Razooq

Abstract: Driver drowsiness is the most critical cause of traffic accidents, thus drowsiness detection play a vital role in preventing traffic accidents. By developing an automatic solution for alerting drivers of drowsing, before an accident occurs, this could reduce the number of traffic accidents. Therefore, this research proposes a real-time detection approach for driver drowsiness. The proposed approach has two phases: image processing and machine learning. The role of image processing phase is to recognize the face of the driver and then extracts the image of the eyes of the driver. This phase uses Haar face detection algorithm that takes captured frames of image as input and then the detected face as output. Next, Haar is also used to extract the eyes image from the detected face which will be used as an input for the machine learning phase. The main role of the machine learning is to classify either the eyes of the driver are closed or opened using Support Vector Machine (SVM). If the result of the classification indicates that the driver’s eyes is closed for a predefined period of time, the eyes of the driver will be considered closed and hence an alarm will be started to alert the driver. The proposed methodology has been tested on available benchmark data. The result demonstrates the accuracy and robustness of the hybridized of image processing technique with machine learning technique. Thus, it can be concluded that the proposed approach is an effective solution method for a real-time of driver drowsiness detection.

Fulltext PDF Fulltext HTML

How to cite this article
Ghassan Jasim AL-Anizy, Md. Jan Nordin and Mohammed M. Razooq, 2015. Automatic Driver Drowsiness Detection Using Haar Algorithm and Support Vector Machine Techniques. Asian Journal of Applied Sciences, 8: 149-157.

Keywords: face detection, support vector machine, Haar classifier, Driver fatigue detection, Driver fatigue detection, face detection, classification and computer vision

INTRODUCTION

Driver fatigue is one of the most significant factors in a large number of car accidents. Each year, there are about 100,000 crashes in the USA alone due to driver drowsiness or fatigue (Knipling and Wang, 1995). Those accidents are estimated by NHTSA (US National Highway Traffic Safety Administration). Developing various technologies for monitoring and preventing drowsiness while driving is a major trend and challenge in the domain of accidence avoidance systems. There are many technologies for drowsiness detection and can be divided into three main sections. The first one is the biological indicators. This type measures biological factors such as eyes movement, brain waves and heart rate. These techniques are generally characterized with the best detection accuracy but they require physical contact with the human (the driver). They are intrusive. Hence, they are not flexible to use in practical situation (Kokonozi et al., 2008; Khushaba et al., 2011; Yang et al., 2010). The second one is vehicle behavior. This type measures vehicle behaviors such as speed, exacerbation angle and position. These techniques may be considered as non-intrusively but they have multiple limitations such as the type of the car, the driving conditions, etc. Furthermore, it needs special equipment and preparation and can be expensive and not practical (Liu et al., 2009; Lee et al., 2011; Khan and Aadil, 2012). Third one is computer vision analysis. This type benefit from the dynamic behavior of the human face and eye since they have a high degree of variability, face detection is considered to be a difficult problem in computer vision research, whereas the eyes can be considered salient and relatively stable feature on the face in comparison with other facial features. Those features will be provided to a machine learning classifier to determine whether those features represent an opened or closed eye (Kumari, 2014; Fan et al., 2009; Zhang and Zhang, 2010; Yin et al., 2009).

Many researches have been developed based on analyzing the eye-image. Khushaba et al. (2011) proposed a method that detected the face using the facial features such as lip contour, jaw contour and the shape of the entire face and the eyes were located and tracked using the Eigen eye method and finally the eye status is detected using edge detection and correlation methods.

A method for driver fatigue detection using image processing techniques has been proposed by Eriksson and Papanikotopoulos (1997) and Singh and Papanikolopoulos (1999). The presented method by Eriksson and Papanikotopoulos (1997) detected the facial areas of an image using symmetric property of faces and then it located the vertical position of the eyes using the pixels differences. While the proposed method by Singh and Papanikolopoulos (1999) used the Gaussian distribution of skin color in order to locate the face and then it located the eye using the Sobel vertical edge operator. In addition, they used template matching for detecting and tracking the eye images.

A vision-based real time driver fatigue detection system based on the distance of the eyelid has built by Dong and Wu (2005). It located the face using the characteristics of skin colors and then it detected the eyes using projection and dynamic template matching.

Regarding to the issue of variable lighting conditions in real time feature recognition; a solution presented by Albu et al. (2008) which detected the eye-states using a customized template matching technique on a frame-by-frame basis. It provided an approach that tolerated some variability in the distance from the eye plane to the webcam.

A method for handling the eye images captured using IR camera and IR illumination has been proposed by Bhardwaj et al. (2013). They first got the bright pupil and then detected the eye image and the fatigue status using the SVM and the Kalman filter.

An approach for computer vision-based automatic driver drowsiness detection has been presented by Ji et al. (2004). It used Support Vector Machine in order to increase the accuracy of eye detection and then he used a method that’s based on eye closure (PERCLOS) to detect the driver drowsiness. PERCLOS was used as an important symptom for detection drowsiness.

A detecting system for vision-based automatic driver drowsiness detection has been proposed by Sacco and Farrugia (2012); it used the Viola-Jones object detection framework to detect the face, eyes and mouth in successive frames, along with correlation coefficient template matching to determine the state of features. Then they used Support Vector Machine classification on the combination of the three features to detect the overall fatigue level of the driver.

An approach for vision-based automatic driver drowsiness detection has been developed by Park et al. (2011) which is similar to the approach proposed by Sacco and Farrugia (2012). It proposed an algorithm that consists of two processes, face tracking process and drowsiness detection process. The first process finds face regions and monitors the motion data which is the driver’s facial feature change (eye and mouth state) and head gesture using the Active Shape Model (ASM). At the same time, the drowsiness detection process determines a driver’s drowsiness state using the extracted facial features from both eye and mouth regions based on Support Vector Machine (SVM).

An approach for vision-based automatic driver drowsiness detection using Haar-Cascade classifier and Support Vector Machine classifier has been proposed by Patil et al. (2013). The proposed approach starts first by detecting the face then the eye using Haar-Cascade classifier, then the method extracts the features of eye parameters like eyelid movement and eyebrow and finally the method classify whether the eye is opened or closed using SVM function.

The vision-based systems have been widely used because of its accuracy and effectiveness (Zhu and Ji, 2004). Visual cues such as eye states (i.e., whether they are open or closed) can generally give a strong indication about the driver’s level of fatigue (drowsiness). Therefore, an automatic and robust approach to extract the eye states from input images is very important and essential task to our works. The focus will be emphasized on designing a system that will accurately monitor the open or closed state of the driver’s eyes by continues monitoring and analysis of the detected eye images.

The aim of this study is to develop a drowsiness detection system. The present study basically used the same general approach of starting with basic facial feature detection like face and eyes but our research differs in that it simplifies the process further in order to run efficiently in real time situation, so it doesn’t detect additional features like mouth or head gesture, nor it uses additional technique such as template matching to keep tracking the detected eye and also the present study used the pre-processed eye image as a direct input to the SVM classifier instead of selecting certain features, this also has provided more simplicity and efficiency to the end drowsiness detection system.

MATERIALS AND METHODS

The selected methodology in this study is divided into two main parts:

•  The first part is responsible for processing the video frames, detecting the face image and then detecting the eye image
•  The second part is responsible for building and using the classification model

Flowchart in Fig. 1 describes the overall methodology that was used. The proposed system will start by capturing the video frames one by one. For each frame, the system will detect the face in the frame image and then it will detect the eye image in the face image.

The eye-image will be pre-processed (by converting it into gray scale) and then the eye-image will be classified using a machine learning classifier to detect whether it was opened or closed. If the eye is closed for a certain amount of time, then the system will start an alarm to notify the driver.

First part-face and eye detection: Regarding detecting the face and the eye image, the Haar algorithm will be used, Haar algorithm is a well-known robust feature-based algorithm that can detect the face image efficiently (Viola and Jones, 2001).

Fig. 1:Methodology flowchart

The face detection algorithm looks for specific Haar features of the face. When one of the features is found, the algorithm will allow the face candidate to pass to the next stage of detection.

Haar algorithm uses a cascade of stages that is used to remove the candidates that are non-face. And each stage consists of many different Haar features. And each feature in turn is classified by a Haar feature classifier (Viola and Jones, 2001). Also, there is a variant of the Haar algorithm that can detect the eye image efficiently (Zhou et al., 2009).

Second part-classifying the eye image: To classify the pre-processed eye image, a machine learning classifier was first built using the SVM algorithm. SVMs can efficiently solve linear or non-linear classification problems, it maximizes the margin around the separating hyper-plane and hence it can find an optimal classifier (Fig. 2) (Berwick and Idiot, 2003).

Fig. 2:Support vector machines

The training set was consist of a set of eye-images that are opened and a set of eye-images that are closed, when the training model is built, it will be ready to use to classify any new pre-processed eye-image.

RESULTS AND DISCUSSION

The selected and used hardware in the experiments of this thesis consists of the following:

•  The standards webcam of the HP laptops
•  HP laptop (Pavilion DV6)
CPU-Core-I5, 2.4 GH
RAM-4.0 GB
Graphic card: GeForce GT 230M
64-bit windows operating system
The video frames were acquired at 60 frames per second (also the system was tested on lower and higher frame rates)

The inexpensive hardware was selected in order to demonstrate that the proposed approach is efficient and can work under low-quality images generated by the standard laptop webcam.

Table 1 describes the results of the proposed system in this study for six test instances (each experiment instance has been conducted by a different user); the following terms describe the used measures in the experiments:

•  Total frame means the total number of frames in each produced experiment instance
Detection failure means the count of drowsiness detection failures

Table 1:Experiment instances, measures 1

Table 2:Experiment instances, measures 2

Correct rate of drowsiness detection is defined as in the below equation which is ratio of (Total Frame-Detection Failure) to total frames. Figure 3 represents the calculated values of the correct rate for each tested instance:

As described in Table 1, the correct rate of drowsiness detection is higher than 99.2% and the average correct rate can achieve 99.45%.

Table 2 describes other measures regarding the conducted experiments (same instances of measure (1) to find the precision rate. Figure 4 represents the calculated ratio of precision for each instance:

The gained result shows the efficiency of the proposed learning system. The result varies with respect to the following factors:

No. of captured frames
Size of the eye
Eye clearance (with or without eyeglass)

Furthermore, the training data play the main role in indicating the performance of the system. The performance directly proportional with quantity (number of the eye images) and the quality (variety of eye images) of the training data.

Fig. 3: Correct rate for each experiment instance

Fig. 4:Precision rate for each experiment instance

The experiment results demonstrated the effectiveness of the proposed methodology. In this methodology the most promising and efficient techniques have been selected and used in the developed system (Haar Face detection algorithm, Haar cascade eye detection algorithm, Support Vector Machine for machine learning classification). As compared with other similar researches in the literature (Park et al., 2011) achieved a correct rate of 93.74%, whereas our approach achieved correct rate of 99.45%.

CONCLUSION

The aim of this study is to address a solution to one of the major causes of the road accident, the driver drowsiness; the proposed solution does track the driver’s eyes and then notify him when his eyes get closed in order to avoid losing the control of the car and causing traffic accidents.

The present proposed method based mainly on two main phases, the first phase is to detect and pre-process the eye images using the image processing technique and the second phase is to build a classification model that will be able to classify whether the eye is opened or closed and then start an alarm accordingly.

The most important value this research has added to the literature in this domain is to find the simplest and most efficient approach to solve the automatic drowsiness detection problem; using simplest approach in order to utilize this system in the real time situation, so the processing time will be minimized. This study has achieved this simplicity and efficiency through the following:

The most promising and efficient approach to locate the eye image efficiently, using Haar Cascade techniques were used
This study bypassed the template matching step used in the literature and instead performed histogram equalization and then entered the pre-proceed eye image directly to the SVM classifier

The results show that this method is flexible for developing practical and ready to use drowsiness detection application and comprehensive solution.

ACKNOWLEDGMENT

The authors would like to express their gratitude to the National University of Malaysia for supporting this research.

REFERENCES

  • Albu, A.B., B. Widsten, T. Wang, J. Lan and J. Mah, 2008. A computer vision-based system for real-time detection of sleep onset in fatigued drivers. Proceedings of the IEEE Intelligent Vehicles Symposium, June 4-6, 2008, Eindhoven, pp: 25-30.


  • Berwick, R. and V. Idiot, 2003. An Idiot's guide to Support Vector Machines (SVMs). http://web.mit.edu/6.034/wwwbob/svm-notes-long-08.pdf.


  • Bhardwaj, A., P. Aggarwal, R. Kumar and N. Chandra, 2013. Image filtering techniques used for monitoring driver fatigue: A survey. Int. J. Scient. Res. Publ., 3: 1-4.
    Direct Link    


  • Dong, W. and X. Wu, 2005. Fatigue detection based on the distance of eyelid. Proceedings of the IEEE International Workshop on VLSI Design and Video Technology, May 28-30, 2005, Suzhou, China, pp: 365-368.


  • Eriksson, M. and N.P. Papanikotopoulos, 1997. Eye-tracking for detection of driver fatigue. Proceedings of the IEEE Conference on Intelligent Transportation System, November 9-12, 1997, Boston, MA., USA., pp: 314-319.


  • Ji, Q., Z. Zhu and P. Lan, 2004. Real-time nonintrusive monitoring and prediction of driver fatigue. IEEE Trans. Veh. Technol., 53: 1052-1068.
    CrossRef    Direct Link    


  • Khan, M.F. and F. Aadil, 2012. Efficient car alarming system for fatigue detection during driving. Int. J. Innov. Manage. Technol., 3: 480-486.
    CrossRef    Direct Link    


  • Khushaba, R.N., S. Kodagoda, S. Lal and G. Dissanayake, 2011. Driver drowsiness classification using fuzzy wavelet-packet-based feature-extraction algorithm. IEEE Trans. Biomed. Eng., 58: 121-131.
    CrossRef    


  • Knipling, R.R. and J.S. Wang, 1995. Revised estimates of the U.S. drowsy driver crash problem size based on general estimates system case reviews. Proceedings of the 39th Annual of Association for the Advancement of Automotive Medicine, October 16-18, 1995, Chicago, IL., USA., pp: 451-466.


  • Kokonozi, A.K., E.M. Michail, I.C. Chouvarda and N.M. Maglaveras, 2008. A study of heart rate and brain system complexity and their interaction in sleep-deprived subjects. Proceedings of the Conference Computers in Cardiology, September 14-17, 2008, Bologna, pp: 969-971.


  • Kumari, K.B.M., 2014. Real time detecting driver's drowsiness using computer vision. Int. J. Res. Eng. Technol., 3: 147-151.
    Direct Link    


  • Lee, B.G., S.J. Jung and W.Y. Chung, 2011. Real-time physiological and vision monitoring of vehicle driver for non-intrusive drowsiness detection. IET Commun., 5: 2461-2469.
    CrossRef    


  • Liu, C.C., S.G. Hosking and M.G. Lenne, 2009. Predicting driver drowsiness using vehicle measures: Recent insights and future challenges. J. Saf. Res., 40: 239-245.
    CrossRef    Direct Link    


  • Park, S., S. Yun, D. Lee and C.D. Yoo, 2011. Efficient drowsiness detection algorithm for active safety driving system. Proceedings of the 26th International Technical Conference on Circuits/Systems, Computers and Communications, June 19-22, 2011, Gyeongju, Korea, pp: 480-482.


  • Patil, B., P. Gundgurti, V.B. Hemadri and U.P. Kulkarni, 2013. Experimental study on assessment on impact of biometric parameters on drowsiness detection. Int. J. Adv. Trends Comput. Sci. Eng., 2: 1-6.
    Direct Link    


  • Sacco, M. and R.A. Farrugia, 2012. Driver fatigue monitoring system using support vector machines. Proceedings of the 5th International Symposium on Communications Control and Signal Processing, May 2-4, 2012, Rome, pp: 1-5.


  • Singh, S. and N.P. Papanikolopoulos, 1999. Monitoring driver fatigue using facial analysis techniques. Proceedings of the IEEE/IEEJ/JSAI International Conference on Intelligent Transportation Systems, October 5-8, 1999, Tokyo, pp: 314-318.


  • Viola, P. and M. Jones, 2001. Rapid object detection using a boosted cascade of simple features. Proceedings of the Computer Society Conference on Computer Vision and Pattern Recognition, Volume 1, December 8-14, 2001, Kauai, HI., USA., pp: 511-518.


  • Fan, X., B.C. Yin and Y.F. Sun, 2009. Yawning detection based on Gabor wavelets and LDA. J. Beijing Univ. Technol., 35: 409-413.
    Direct Link    


  • Yang, G., Y. Lin and P. Bhattacharya, 2010. A driver fatigue recognition model based on information fusion and dynamic Bayesian network. Inform. Sci., 180: 1942-1954.
    CrossRef    Direct Link    


  • Yin, B.C., X. Fan and Y.F. Sun, 2009. Multiscale dynamic features based driver fatigue detection. Int. J. Pattern Recognit. Artificial Intell., 23: 575-589.
    CrossRef    


  • Zhang, Z. and J. Zhang, 2010. A new real-time eye tracking based on nonlinear unscented Kalman filter for monitoring driver fatigue. J. Control Theory Applic., 8: 181-188.
    CrossRef    Direct Link    


  • Zhou, J., L. Jiang, Z. Ji and L. Shen, 2009. Haar-like features based eye detection algorithm and its implementation on TI TMS320DM6446 platform. Proceedings of the IEEE International Workshop on Imaging Systems and Techniques, May 11-12, 2009, Shenzhen, pp: 89-93.


  • Zhu, Z. and Q. Ji, 2004. Real time and non-intrusive driver fatigue monitoring. Proceedings of the 7th International IEEE Conference on Intelligent Transportation Systems, October 3-6, 2004, Washington, DC., USA., pp: 657-662.

  • © Science Alert. All Rights Reserved