Professional Documents
Culture Documents
Real-time Driver Drowsiness Detection System Based on PERCLOS and Grayscale Image
Processing
Abstract: This study develops a real-time drowsiness detection system based on grayscale image
processing and PERCLOS to determine if the driver is fatigued. The proposed system comprises three
parts: first, it calculates the approximate position of the driver’s face in grayscale images, and then uses
a small template to analyze the eye positions; second, it uses the data from the previous step and
PERCLOS to establish a fatigue model; and finally, based on the driver’s personal fatigue model, the
system continuously monitors the driver’s state. Once the driver exhibits fatigue, the system alerts the
driver to stop driving and take a rest.
products use visible light to achieve face Facial Region Data Collection Histogram
detection [2-4]. During the day, they do not Detection
Template
affect drivers; nevertheless, at night, since these Quick Sort Matching
R ^ j max ^h `` (h z 0, CF d i d j)
i i : Center of two eyes
w RL Figure 4. Template matching.
where i, j, L, R and w are points on the x-axis.
ġ ġ ġ ġ ġ ġ ġ Quicksort and Median Filter
w Following the previous steps, each image
needs only to retain two data sets: c, the center
position of the eyes, and w, the face width.
However, these data may contain some errors;
therefore, the two kinds of data need to be sorted
to identify the erroneous information. w and c
can together compose a sequence. After sorting,
it can be easily organized from small to large.
A median filter can remove the very large
or small data from the c and w sequences;
therefore, it can enhance the accuracy of the
results. The previous steps lead to the eyes
region being located.
244
243
Authorized licensed use limited to: VIT University. Downloaded on October 06,2023 at 17:17:46 UTC from IEEE Xplore. Restrictions apply.
Image
where n is the sorted number of black pixels, in
Capture Locate small to large order, and i is the sorted image
number. The average of the largest 1/20 of the
Data
Collection
Image
Preprocessing Analysis rest of the data is chosen and marked as O,
which means open state. Otherwise, C, closed
Fatigue
Data Collection Summation
state, is defined by the smallest 1/20 of the rest
Modeling
of the data.
245
244
Authorized licensed use limited to: VIT University. Downloaded on October 06,2023 at 17:17:46 UTC from IEEE Xplore. Restrictions apply.
the time proportion is higher than the standard, monitor the drivers’ physical state, and remind
TP , the fatigue level is increased. drivers if they are tired, which they themselves
Sometimes, people briefly close their eyes may not noticed. The biggest difference between
for one second or less, but they do not actually commercially available products and the system
feel tired. As a result, the system would not proposed in this study is the use of gray-scale
sound the alarm immediately when the images, which means that detection of skin color
proportion increases. Further, if the driver’s is not required. Although the proposed system
eyelid closure proportion becomes normal, as the features additional calculation steps, it requires
standard, TP , the fatigue level would be set less memory and could be applied in different
back to the normal condition. However, if the environmental conditions. For example, it could
fatigue level keeps increasing, the system will be used even when the driver is wearing glasses
sound the alarm to alert the driver of their or a respiratory mask.
fatigued state. Additionally, the sensitivity of the
alarm standard can be adjusted according to user. Acknowledgments
As a final safety feature, if the driver closes The authors gratefully acknowledge the support
their eyes for more than several seconds, the of Ministry of Science and Technology of
system will consider the driver is drowsy and Taiwan through the grant
immediately sound the alarm. MOST-103-2221-E-006-186-MY2 and
MOST-102-2221-E-006-207-MY2.
3. Resutls
The proposed detection method has no References
negative impact on the driver and is contactless. [1] Lal SKL, Craig A. A critical review of the
Furthermore, this system uses grayscale images, psychophysiology of driver fatigue.
which can significantly reduce the required Biological psychology 2001; 55(3):
memory space compared to a color image based 173-194.
system. [2] Abate AF, Nappi M, Riccio D, Sabatino G.
In general, a RGB image needs 24bits for 2D and 3D face recognition: a survey.
each pixel. For red, green, and blue, each Pattern recognition letters 2007; 28:
channel needs 8 bits. In other words, a RGB 1885-906.
image is composed by three images. However, [3] Kim M, Lee D, Kim KY. System
the system only needs 8 bits for each pixel, since Architecture for Real-Time Face Detection
the grayscale image is consist of one image. on Analog Video Camera. International
Therefore, the system only demand Journal of Distributed Sensor Networks
one-third of the memory while using a color 2015: Article ID 251386, 11 pages
image, as Table 1 shown. [4] Liu YH, Ting Y, Shyu SS, Chen CK, Lee
Besides, using the eyes-and-cheek template CL, Jeng MD. A Support Vector Data
could find the region of concern in a reasonable Description Committee for Face Detection
time and highly acceptable accuracy, which is Mathematical Problems in Engineering,
listed in Table 2. 2014, Article ID 478482, 9 pages.
[5] Kong SG, Heo J, Abidi BR, Paik J, Abidi
Table 1. Comparison of Required Memory. MA. Recent advances in visual and
Image RGB Grayscale infrared face recognition — a review.
QVGA 225 KB 75 KB Computer vision and image understanding
VGA 900 KB 300 KB 2005; 97(1): 103-35.
SVGA 1.38 MB 0.46 MB [6] Zhang B, Zhang L, Zhang D, Shen L.
XGA 2.25 MB 0.75 MB Directional binary code with application to
PolyU near-infrared face database. Pattern
Table 2. Accuracy of Different Conditions. recognition letters 2010; 31(14): 2337-44.
Open Without [7] Dinges DF, Grace R. PERCLOS: a valid
With glasses psychophysiological measure of alertness
Proportion glasses
50% ɥ 92.67% 94.36% as assessed by psychomotor vigilance.
USA Department of Transportation,
50% ɧ 72.66% 77.84% Federal Highway Administration 1998.
0% 84.29% 86.35% [8] Trutschel U, Sirois B, Sommer D, Golz M,
Edwards D. PERCLOS: an alertness
4. Conclusion measure of the past. International driving
This study proposed a real-time, gray-scale symposium on human factors in driver
simulation system to detect driver drowsiness by assessment, training and vehicle design
image processing. In testing and results, and 2011; 6: 172-9
based on the fatigue model, the system can help
246
245
Authorized licensed use limited to: VIT University. Downloaded on October 06,2023 at 17:17:46 UTC from IEEE Xplore. Restrictions apply.