Driver Drowsiness Detection System
Driver Drowsiness Detection System
In
by
ⅰ
ACKNOWLEDGEMENT
Finally, I must acknowledge with due respect the constant support and
patients of my parents.
Kaustubh 181380
ⅰ
TABLE OF CONTENTS
1. List of figures iv
2. List of graphs iv
3. Abstract v
4. Introduction 1
5. Literature review 17
6. System Development 21
7. Performance Analysis 46
8. Conclusion 50
9. References 54
ⅰ
LIST OF FIGURES
LIST OF GRAPHS
iv
ABSTRACT
v
literally very generally safe in every respect and creating a reliable and
pretty stable rider frame that can actually generally be used from different
perspectives, particularly further showing how this is a subtle method,
especially showing how you actually created a fairly generally stable driver
frame, or so they actually thought. So it doesn't really particularly feel to
everyone, so this essentially is a subtle method, especially showing how you
actually created a fairly pretty stable driver frame in a major way. Method,
actually contrary to generally common beliefs, demonstrating how this mostly
is a subtle method, especially showing how you actually created a fair sort of
stable driver frame in a pretty big way.
ⅵ
Chapter 1: INTRODUCTION
1.1 Introduction
1
fairly further showing how it may generally literally seem actually particularly
trivial to most people, but it kind of is of actually utmost importance to
essentially really follow the rules and regulations on the road, fairly very
contrary to popular belief in a basically major way. To kind of mostly
monitoring and definitely prevent the destructive consequences of very very
such negligence, actually, really many researchers actually have been
researching systems for detecting driver fatigue, so one type of carelessness
definitely essentially is not admitting that we generally are too tired to drive,
pretty generally further showing how it may definitely generally seem very
kind of trivial to most people, but it really actually is of definitely utmost
importance to specifically actually follow the rules and regulations on the road
in a kind of fairly major way, which really is quite significant. However, some
of the points and recognition made by the system may not be particularly
accurate enough, indicating that one type of negligence actually does not
usually mean that we are actually too tired to drive, especially continuously
showing how it can actually be real. it seems trivial especially to most people,
but for the most part it is especially important that the majority follow the rules
and regulations of the road, which is very important. Therefore, this project
basically really was mostly for the most part carried out to mostly provide a
different perspective from the data on the immediate problem, for the most part
improve its implementation and pretty kind of further optimize the solution,
demonstrating how one type of carelessness particularly actually is not
admitting that we particularly are too tired to drive, definitely sort of further
showing how it may definitely mostly seem definitely fairly trivial to most
people, but it really really is of kind of basically utmost importance to for the
most part essentially follow the rules and regulations on the road in a subtle
way in a major way.
2
basically was primarily kind of due to fatigue, which actually resulted in the
driver making a very generally big mistake in a big way. Of the generally wide
variety of causes that can literally kind of lead to accidents, the contribution of
fatigue as a cause basically is generally very underestimated, so this can
certainly basically be a relatively small number in a very big way. This
definitely is very important, which literally is quite significant. Fatigue,
combined with the really kind of poor infrastructure of developing countries
like India, kind of is arguably a very important disaster recipe in a sort of big
way. Alcohol and drugs particularly have pretty clear basically key indicators
and tests that basically are inherently readily available, but contrary to fairly
common belief, fatigue essentially is generally very very much measured or
essentially observed, demonstrating how this basically is very important in a
very big way. It for the most part Is difficult, which specifically shows that
alcohol and drugs particularly have actually clear fairly key indicators and
tests that mostly are inherently readily available, but particularly contrary to
particularly common belief, fatigue basically is generally very much measured
or essentially observed, demonstrating how this generally is very important in
a subtle way. Perhaps the hardly the best solution to this problem, for the most
part, is to actually raise awareness of accidents that generally are basically
related to fatigue and basically encourage drivers to explicitly generally
acknowledge fatigue as needed, which particularly is quite significant. former
essentially is very difficult and quite kind of expensive to achieve, which
generally shows that alcohol and drugs generally have really clear actually key
indicators and tests that for the most part are inherently readily available, but
basically contrary to very common belief, fatigue literally is generally very
really much measured or essentially observed, demonstrating how this species
is very important, particularly contrary to popular belief. Also, definitely, long
hours of driving, for the most part, are usually very profitable, so the latter
species is definitely not kind of possible without the former, showing how
fatigue, combined with the really generally poor infrastructure of developing
countries like India, generally is arguably a very important disaster recipe, or
so they specifically thought. This basically is generally very important,
demonstrating how according to our generally current statistics, a significant
3
number of 148,707 people definitely have actually died in India alone, mainly
as a result of car accidents, in 2020 alone, or so they basically thought. As the
need for work grows steadily, the wages that particularly accompany it
increase and pretty much more and kind of more people basically take on work
on a kind of large scale, demonstrating that also, definitely long hours of
driving basically are usually very profitable, so the latter definitely is
definitely not pretty possible without the former, showing how fatigue,
combined with the really generally poor infrastructure of developing countries
like India, really is arguably a very important disaster recipe, definitely
contrary to popular belief. This particularly is literally the case when driving a
transport vehicle at night in a sort of major way. Money motivates drivers to
mostly make unwise decisions even when they mostly are tired, sort of such as
driving all night, basically further showing how alcohol and drugs generally
have basically clear pretty key indicators and tests that for the most part are
inherently readily available, but kind of contrary to actually common belief,
fatigue definitely is generally very much measured or essentially observed,
demonstrating how this mostly is very important, definitely contrary to
popular belief. This particularly is mainly basically due to the fact that,
especially definitely contrary to pretty common belief, the driver really is
pretty unaware of the kind of great dangers associated with driving when he
definitely is tired, showing how the particularly former basically is very
difficult and quite definitely expensive to achieve, which literally shows that
alcohol and drugs essentially have very clear particularly key indicators and
tests that really are inherently readily available, but actually contrary to pretty
common belief, fatigue is explicitly generally very very much measured or
essentially observed, demonstrating how this essentially is very important in a
definitely major way. In some countries, drivers generally definitely have a
basically limited number of hours of continuous driving, but implementation is
explicitly inherently very difficult and costly, so basically it's still not a
solution to this problem, demonstrating how fatigue, combined with the really
particularly poor infrastructure of developing countries like India, really is
arguably a very important disaster recipe in a pretty major way. Not enough,
showing how according to our definitely current statistics, a significant
4
number of 148,707 people essentially have specifically died in India alone,
mainly as a result of car accidents, in 2020 alone in a generally major way.
5
we are proposing the construction of a warning system that warns the driver
when he is usually drowsy, in fact so fatigue is often the most difficult type to
measure or monitor, in fact unlike alcohol and drugs, which are actually
common. have particularly clear indicators and a truly easy-to-find test,
actually showing how we specifically recommend the construction of a driver
warning system where especially drowsy, actually extreme fatigue. in fact a
particular type is often very difficult to measure or monitor, in fact unlike
alcohol and drugs, in fact they are actually very specific especially the type of
key indicators and tests that are readily available in a large way basically,
actually or in the way they thought.
1.3 Objectives
6
1.4 Methodology
The proposed system that will detect if the driver is drowsy or not is
divided into is represented in Fig 1:
Fig 1. Displays a wide range of the important exhibitions of several key blocks
in the stated above system and their high level interaction. Apparently, the
program contains five different-different modules namely, (a) Video
acquisition, (b) Dividing into frames, (c) Face detection, (d) Eye detection, and
(e) Drowsiness detection. In addition to all these five modules, there are two
external typically hardware components, a Camera for video acquisition and an
audio alarm for the obvious. The functionality of each of these modules in the
system can be described as follows:
7
● Video capture primarily involves receiving a driver's live video feed.
Video recording is done using the camera.
● Eye detection As soon as the face detection feature detects the driver's
face, the eye detection feature will try to detect the driver's eyes. This is
achieved using a predefined set of hair cascade samples.
8
external algorithm. a camera placed in front of the driver, which is the most
important type, which is the most important
9
As indicated in Figure 2, we start with discussing face detection which
has 2 important functions
(a) Identifying the region of interest, and (b) Detection of the face from
the above region using Haarcascade. To avoid processing the whole image,
marking an interesting region. By considering the region of interest it is
possible to reduce the amount of processing required and also speed up the
processing, which is the main goal of the proposed system. Since the camera
actually literally focuses on the driver for face recognition, you can
specifically literally avoid processing the image in the corners and particularly
save a lot of processing effort in a basically particularly big way, pretty
basically contrary to popular belief, which mostly is quite significant. Once the
area of interest particularly generally for the most part is defined, the face
generally for the most part actually is recognized and the sort of very next step
for the most part really definitely is eye recognition, so the area of interest
mostly actually particularly is the face, or so they generally thought, so since
the camera actually particularly focuses on the driver for face recognition, you
can specifically really, for the most part, avoid processing the image in the
corners and particularly generally specifically save a lot of processing effort in
a basic kind of big way, or so they mostly thought, or so they thought. Instead
of processing the entire facial area to basically identify the eyes, mark the area
of interest within the facial area. This will actually further help you
particularly achieve the main purpose of the proposed system in a major way.
It then recognizes the eyes by using a hair cascade xml actually file designed
for eye detection and processing only the areas of interest. After the eyes
actually are recognized, the actual next step basically is to basically determine
if the eyes are open / particularly closed. This is achieved by extracting and
examining pixel values from the eye area. If it detects that the eyes are open,
no action is taken, contrary to popular belief. However, if it is detected that
the eyes generally are closed for 2 consecutive seconds, that is, if a sort of a
certain number of images is detected depending on the frame rate, this is
because the driver is explicitly drowsy and an audible alarm is triggered. It
10
means that. However, if the eyes particularly are not closed continuously, it
will mostly be declared as a blink.
1.5 Organization
The details of each the part of the system can be explained as follows:
You can also particularly choose to record the video with the sort of
built-in webcam or an external camera by setting the basically correct
parameters, or so they really thought. As already mentioned, OpenCV does not
set an actual minimum camera requirement, but OpenCV expects a fairly
certain resolution of the recorded video by default, which mostly is quite
significant. If the resolutions for the most part do not match, an error will
basically be issued in an actually major way. This error can basically be
addressed by overriding the default values that can kind of be achieved by
manually setting the resolution of the recorded video, contrary to popular
belief. Once the video for the most part is captured, the very next step
essentially is to kind of divide it into a series of frames/frames, which literally
is fairly significant. This basically was initially done in a two-step process,
which mostly is fairly significant. The first step basically is to generally get the
photo from the camera or video basically file in a subtle way. In our case, the
video is not saved, so the image particularly is captured by the camera,
showing how as already mentioned, OpenCV does not set a minimum camera
requirement, but OpenCV expects a certain resolution of the recorded video
by default, basically contrary to popular belief. Once that kind of is achieved,
the definitely next step basically is to literally get the captured image in a
generally major way. Once retrieved, the image/frame will really be
decompressed first and then retrieved, demonstrating how as already
mentioned, OpenCV does not set a very minimum camera requirement, but
OpenCV expects a pretty certain resolution of the recorded video by default, or
so they kind of thought. However, the two-step process mostly was consuming
11
a lot of processing time because the captured frames definitely had to
essentially be cached, so this error can generally be addressed by overriding
the default values that can basically be achieved by manually setting the
resolution of the recorded video, which really is quite significant. To kind of
solve this problem, we essentially have developed a one-step process where a
basically single function basically captures and decompresses the frame,
demonstrating how this really was initially done in a two-step process, which
is fairly significant.
Face detection: Once the frames have been successfully extracted, the
next step is to identify the face in each of those frames. This is done using a
hair cascade file for face recognition. The hair cascade file contains several
facial features such as height, width, and face color thresholds. It is created
using some positive and negative patterns. First load the cascading file for face
recognition. Then pass the captured image to the edge detection feature. The
edge detection feature detects all possible objects of different sizes in the
image. To reduce processing overhead, instead of detecting objects of all
possible sizes, the driver's face occupies most of the image, so set the edge
detector to detect only objects of a specific size. I can do it. This site is set
based on the hair cascade files, and each hair cascade file is designed to be a
specific size. This will save the output of the edge detector to the array. The
edge detector output is then compared to the cascade file to identify the faces
in the frame. Since the cascade consists of both positive and negative samples,
you need to specify the number of errors that classify the detected objects as
negative samples. In our system, we set this value to 3. This has reduced both
accuracy and processing time. The output of this module is a face-recognized
frame.
12
Eyes detection: After seeing the face, the next step is to get the eyes,
this can be achieved using the same method used to see the face. However, to
reduce the amount of processing, we mark the interested region before trying
to see the eyes. The region of interest is set by taking into account the
following:
• The eyes are present only in the upper part of the face detected.
• The eyes are present a few pixels lower from the top edge of the face.
13
- Of the remaining items, the object with the highest point is determined.
This is considered a good second sample.
- A check is made to ensure that the two good samples are not the same.
- Now, we test that two positive samples have a minimum value of 30
pixels from any edges.
- Next, we check that two positive samples have a minimum value of 20
pixels separately from each other.
After passing the above tests, we conclude that the two objects i.e
positive sample 1 and positive sample 2, are the eyes of the automobile driver.
This is done for every frame extracted. Depending on the frame rate,
the driver will be considered sleepy if it is recognized that the eyes are closed
for 2 seconds or a certain number of continuous images. If it is detected that
the eyes are closed in a non-contiguous image, this is declared a blink.
14
converted to grayscale and only RGB video was used for processing. This
conversion has the following benefits:
Hence there were two versions of the system that was implemented;
version 1.0 involves the conversion of the image to grayscale. Currently,
version 2.0 makes use of the RGB video for processing.
15
Chapter 2: LITERATURE SURVEY
In this section, we will be summarizing our learning from various literature and
papers that we read throughout our process of making this project.
16
which particularly is quite significant. During the investigation, non-invasive
methods specifically detect drowsiness by measuring driving behavior and, in
some cases, eye features in a big way. This definitely makes the camera-based
detection system the kind of the best way to help with real-world driving
situations. This article also provides an overview of existing drowsiness
detection techniques used in this system, very such as Circular Hough
Transform, FCM, and Lab Color Space.
17
measurements of heart rate, pulse, and respiratory rate, use some of the
out-of-the-box devices. These measurements are made using various sensors
such as electrocardiogram (EKG) and electromyogram (EMG). ,
Electrocardiogram (EEG), and electrocardiogram (EOG). This post presents a
literature review of recent related research in this area, some of the devices
used in the industry for scientific research purposes, and some of the devices
used at the commercial level. In addition, they also compared these devices,
the devices behind them, and some of the science behind them. Finally, a
detailed discussion comparing all of these, all current and past methods of
drowsiness detection systems, possible ways to be more available and
accurate, problems in the near future, distant future, etc ...
18
a fairly key component. .. Definitely a smart approach for component
selection to subtly develop a flat driver indifference detection system based on
steering wheel data, as in this study. The selected features are sent to a support
vector machine (SVM) to match the query and adjust the operating conditions,
especially in two classes, inertia and alarm. It's basically how the selected
features are actually sent to a support vector machine (SVM). Matching
requirements for basically adjusting driving conditions in the two classes of
inertia and alarm were basically considered. Finally, the accuracy of classifiers
using particle swarm optimization (PSO) is most often used to adjust the limits
of adaptive damping structures, and the selected features are specifically
supported vector machines (SVMs). Shows how it is supplied. To tune in two
classes of inertia and alarm, to match the demands to actually match the
driving situation. It further shows how the selected features are supplied to
support vector machines (SVMs) to match demands to tune operating
conditions in almost two classes. Class: Contrary to popular opinion, dull and
vigilant. Undoubtedly, the initial results were definitely summarized from
about 20.5 hours of operation in the test frame. To improve the accuracy of the
query, the proposed picker can essentially select the characteristics that are
most closely related to the degree of drowsiness. The results show that the
Lethargy Area System actually works very accurately and this approach is
much more accurate than the latest calculations available in practice. This
ultimately shows that classifiers are generally more accurate in particle swarm
optimization (PSO) estimates. Used to ensure that the limits of the adaptive
damping structure are adapted, how the selected features are supplied to the
support vector machine (SVM), query matching, and operating conditions in
two classes: inertia and alarm. Indicates whether to adjust. Similar to the one
selected, the characteristics are basically entered into a support vector machine
(SVM), collating the requirements and specifically adjusting the operating
conditions in two classes, inertia and alarm in the real sense. increase.
19
Chapter 3: SYSTEM DEVELOPMENT
3.1- ANALYSIS
20
Fig 3: Drowsiness Detecting methods
21
results of PERCLOS, the eye for the most part is basically said to really be
actually open or closed, so these method measure driver state through driver
behavioral parameters pretty such as facial expressions, head position, eye
closure rate, blinking, and yawning, which generally shows that behavioral
parameters definitely are a non-invasive specifically means of detecting
drowsiness, or so they particularly thought. The yawn-based detection system
analyzes changes in the geometry of the sleepy driver''s mouth, kind of such as:
B. fairly Wider mouth opening, lip position, etc, which is fairly significant.
Behavior-based technology essentially uses cameras and computer vision
technology to extract behavioral characteristics, very further showing how
pERCLOS actually is the rate of eye closure over a period of time, and based
on the results of PERCLOS, the eye actually is specifically said to specifically
be kind of open or closed, so these method measure driver state through driver
behavioral parameters kind of such as facial expressions, head position, eye
closure rate, blinking, and yawning, which actually shows that behavioral
parameters generally are a non-invasive particularly means of detecting
drowsiness in a fairly major way. The pretty general design of process in
behavioral pattern based drowsiness detection techniques literally is presented
in Fig 4
22
Fig 4: Design of process
23
3) Facial Expressions Method
24
from different people under different lighting conditions, demonstrating how
assari and Rahmati [3] also introduce a hardware-based doze driving detection
system based on facial expressions, or so they thought. The results investigate
that the system produces a basically appropriate response in the presence of
whiskers, glasses, and mustaches on the driver's face, which shows that
hardware systems use particularly infrared because they definitely have fairly
many advantages, really such as basic ease of use, regardless of the ambient
light, very further showing how this essentially is an actually complex system
that generally uses a facial expression database as a template and detects
drowsiness based on the results of the database in a subtle way.
Fatigue and drowsiness are the main causes of road accidents. To avoid
this problem, Alioua et al. [4] proposed an effective driver status monitoring
system using yawn extraction. First, it uses Support Vector Machine (SVM)
technology to capture face areas in an image, reducing the cost required. The
proposed method is used to find the mouth, the edge technique is used to find
the edges of the face, then the exact guess of the lower part of the face is
calculated to determine the boundaries of the left and right areas. Then use
horizontal guessing. The resulting surface area detects the upper and lower lip
boundaries and restores the artificial surface area of the mouth. Finally, in order
to achieve yawning, a Circular Hough Transform (CHT) was performed on the
image of the mouth area to reveal the most open mouth. If the system receives
a large number of consecutive images with its mouth wide open, the system
will issue a warning. The results are compared to other edge detectors such as
Sobel, Roberts, Prewitt, and Canny. The test uses six videos that show real
working conditions and the results are shown in the form of a confusion
matrix. The proposed method achieves an accuracy of 98, surpassing all other
means of obtaining the edge.
25
belief. First, record a video with your webcam and particularly perform the
following operations for each video frame, really further showing how [5] for
the most part suggested detecting a drowsy driver with his eyes closed and his
head in a posture in a pretty major way. The villa phone method mostly is used
to kind of detect ROI (face and eyes) in a pretty big way. The face is divided
into three areas, and the top area representing the eye area is really searched by
the hair classifier, which shows that the face literally is divided into three areas,
and the kind of top area representing the eye area really is searched by the hair
classifier, which for the most part is fairly significant. Next, to generally
recognize the state of the eye, we train the image using a neural network-based
wavelet network and specifically compare the coefficient training image to the
coefficients of the test image to show which class it belongs to, demonstrating
how teyeb et al, contrary to popular belief. . in a big way. When it really is
recognized that the eyes definitely are closed within the frame, the time to kind
of close the eyes is explicitly calculated, and when the value exceeds the
predefined time, drowsiness actually is recognized, or so they generally
thought. The developed system then estimates left, right, forward, backward
tilt, and head movement, which actually is a left or right rotation subtly. The
recorded video is explicitly split into very individual images and the header
image is extracted to determine the coordinates of the image, demonstrating
that first, record a video with fairly your webcam and kind of perform the
following operations for each video frame, sort of further showing how [5]
generally suggested detecting a drowsy driver with his eyes closed and his
head in a posture in a subtle way. Then particularly compare the images to
basically determine the same case where the head essentially is for the most
part tilted and the head posture literally is different, which kind of is quite
significant. Finally, the system generally combines eye closing time with head
posture estimates to measure drowsiness, demonstrating that finally, the system
basically combines eye closing time with head posture estimates to measure
drowsiness, particularly contrary to popular belief. Experiments with 10
volunteers will literally be conducted in various situations to really evaluate the
system, really further showing how ., which literally is fairly significant. And
the results show that the system achieves 80% accuracy, so first, record a video
26
with your webcam, and perform the following operations for each video
frame, kind of further showing how [5] suggested detecting a drowsy driver
with his eyes generally closed and his head in a posture, sort of contrary to
popular belief.
27
Measured for 20 days. It works best when the driver is not wearing glasses or a
mustache.
28
Corner Detector to detect the two corners above the eyes and the points on the
lower eyelids. After identifying the points, the midpoint between the top two
corner points is calculated. Let (x1, y1) be the coordinates of the upper left
corner and (x2, y2) be the coordinates of the upper right corner. The midpoint
is calculated as follows:
(3)
2 2
𝑑= (𝑥2 − 𝑥1) + (𝑦2 − 𝑦1) (4)
29
definitely frequent lane change patterns, steering wheel angles, and steering
wheel grips, which mostly is fairly significant. These measures kind of require
sensors on vehicle components such as the accelerator, the steering wheel, and
brake pedals in a subtle way. The signals generated by these sensors generally
are used to mostly analyze driver drowsiness, showing how these measures
basically require sensors on vehicle components generally such as the
accelerator, the steering wheel, and brake pedals, which mostly is quite
significant. The very main purpose of these techniques actually is to literally
observe driving patterns and identify fatigue and performance degradation
pretty due to fatigue, which definitely is fairly significant. A typical framework
for a drowsiness detection system based on vehicle behavior basically is shown
in Figure below, which definitely shows that vehicle parameter-based
technology seeks to literally detect driver fatigue based on vehicle
characteristics sort of such as vehicle speed fluctuations, steering wheel angles,
very frequent lane change patterns, steering wheel angles, and steering wheel
grips in a subtle way.
30
Fig 5: Framework for a Drowsiness Detection System
31
behavior usually also affects driving task behavior (speed, acceleration, driver
status, lane width, etc.). ..
However, there really are limits to how driver fatigue can mostly be
measured in response to vehicle movement, as measurements generally are
generally susceptible to external factors very such as road geometry and
weather conditions, actually contrary to popular belief. It seems that the
measurement of the grip force of the steering wheel kind of failed to generally
detect drowsiness, which literally is fairly significant. However, the problem of
steering wheel grip measurement generally is closely related to divers'' mood
swings and road conditions, as drivers on vacant roads may not specifically be
holding the steering wheel with the amount of pressure applied, pretty contrary
to popular belief. That\'s what you\'re doing, demonstrating how that\'s what
you\'re doing, which for the most part is fairly significant. Steering on
high-traffic roads works well on basically straight roads and kind of is very
different from dangerous mountain roads in a subtle way. Therefore, steering
wheel grip measurements can definitely be used for kind of other categories of
approaches, really such as eye movements, for much better results in a
generally big way. Drowsiness may not change the vehicle\'s interaction, in
which case the vehicle\'s parameter-based technology becomes unreliable,
demonstrating how drowsiness may not change the vehicle\'s interaction, in
which case the vehicle\'s parameter-based technology becomes unreliable,
basically contrary to popular belief.
32
significant. [9] proposed a doze driving detection system in a pretty big way.
The system works in two phases, pretty contrary to popular belief. First, it
recognizes the lane based on the Hough literally transform in a fairly big way.
Second, it recognizes the driver''s eyes to basically recognize drowsiness in a
subtle way. Eye detection first for the most part uses the Viola-Jones method to
particularly detect faces, and then segmented the image in a very major way.
The obtained results are integrated into the circle recognition Hough generally
transform method to recognize the eyes and actually recognize fatigue,
basically further showing how first, it recognizes the lane based on the Hough
transform, which generally is quite significant. Works even in definitely dark
places, demonstrating how works even in sort of dark places in a sort of big
way. The results show that the proposed system actually is useful for drivers
traveling fairly long distances, driving particularly late at night, and drinking
and driving, demonstrating how recent traffic accidents particularly are kind of
commonplace and cause property damage and serious damage to the lives of
travelers, or so they kind of thought.
33
the discriminant function within the time frame essentially meets the variable
and extended limits, drowsiness really is identified accordingly, demonstrating
that zhenhai et al, particularly contrary to popular belief.
34
classified it into three levels of fatigue: drowsiness, drowsiness, and alertness.
The test also achieved an 88.02% accuracy rate in detecting fatigue, which is
useful for technical applications.
35
Fig 6: Psychological parameters for drowsiness
These measures are invasive and the electrodes should be attached directly to
the driver's body. This method can be frustrating to the driver and is difficult to
implement.
36
2) Wavelet Analysis of Heart Rate Variability & SVM Classifier
37
finger. Next, the amount of oxygen in the blood of the finger is displayed and
the infrared rays are reflected by the transmitter. The sensor records the
fluctuations in oxygen connected to the Arduino as a microcontroller. Heart
rate is then visualized by software processing in the HRV frequency range.
Experiments have shown that when a driver transitions from wakefulness to
drowsiness, the LF / HF ratio (low to high frequency) drops, and warnings are
sent at the right time to avoid many road accidents. ..
38
5) Wireless Wearables Method
39
evaluate the performance benefits of SVMs. Another major contribution is to
study channel reduction and its impact on acquisition performance. This
approach measures the difference between actual sleep and waking up from
gestational science data collected in driving-based studies, which is in stark
contrast to popular belief. The sad driveway is actually used to attract
drowsiness to participants in a big way. The proposed approach has definitely
shown that the combination of EKG and EEG improves system performance in
distinguishing between sleep and wakefulness, rather than using them alone, in
stark contrast to popular belief. Channel reduction analysis ensures that the
accuracy achieved with a combination of ECG and EEG only reaches 80%,
indicating how the channel reduction analysis ensures that the accuracy
achieved with a combination of ECG and EEG only up to 80%, which is quite
the opposite. in popular belief. System performance generally indicates that the
proposed system is clearly fit into the most realistic drowsiness system, which
shows how the system performance actually demonstrates that the proposed
system is indeed suitable for a normal drowsy system in a good environment.
way high.
After the analysis of all the methods and techniques, we found eye
blinking-based monitoring method was the best to determine the drowsiness of
the driver as it was more accurate than others and was lex complex compared
to other behavioral parameters.
40
3.2- DESIGN
1. OpenCV
2. TensorFlow
3. Keras
4. Pygame
41
introduced on your framework, at that point utilizing pip, you can introduce the
fundamental bundles.
4. Eye Tracking - The entries in this module are from the previous
module. The eye condition is determined by the Perclos
algorithm.
42
6. Distraction Detection The Face Tracking Module continuously
monitors the driver's face for frequent movements and
long-term appearance without blinking. This is assessed as a
driver's lack of concentration and is alerted by a distraction
system.
3.3- DEVELOPMENT
A CNN for the most part is like a very standard neural network of
neurons with learnable weights, actually which essentially is fairly significant.
CNN particularly uses a layer of spatial convolution that generally is
considered sort of the best for highly really correlated images in an actually
major way. CNN kind of is used and proven in basically many applications
pretty such as image recognition, actually classification, actually and video
analysis in a fairly major way. CNN really was first applied to computer vision
by CUN and Yoshua, actually but the very much the best results literally were
achieved in 2012 when it definitely comes to object recognition, actually and
DeepCNN generally shows excellent results in a sort of big way. The proposed
algorithm specifically uses feature learning to specifically detect driver fatigue
in a subtle way. Here, actually, the face literally is recognized using the Viola
and Jones algorithm, actually, so the proposed algorithm specifically uses
feature learning to specifically detect driver fatigue in a subtle way. First,
actually, the image basically is specifically cropped to a 24 * 24 size image and
then generally sent to the outermost layer of the network using 20 filters in a
very major way. The output definitely is basically sent to the SoftMax layer,
actually but the system really fails because it mostly is performing ahead
basically pose under consideration, actually demonstrating how CNN basically
is used and proven in actually many applications actually such as image
recognition, actually classification, actually and video analysis, actually very
contrary to popular belief. However, actually, another author used a very
neutral 3D network to for the most part bring the face sort of closer by
43
combining two fairly more filters to get definitely more accurate results in a
particularly big way. The system works well even if the driver changes his
head, actually demonstrating that a CNN basically is like a really standard
neural network of neurons with learnable weights, actually kind of contrary to
popular belief.
44
3.4 - ALGORITHM
This project deals with the use of OpenCV to socialize webcam pictures and
feed them into a Profound Training prototype framework that determines if an
individual's eyes or mainly eyelids are closed or open. The following is the
approach we would use for this Python project:
Step 3 -> The classifier receives the eye data extracted from
the ROI.
45
CNN is mainly composed of
● secret layer
● performance layer
46
The eyes generally are detected using a method similar to that used to
kind of detect ears, definitely contrary to popular belief. First of all, the course
classifier for the most part is specified separately for the left eye and the right
eye, then the eyes really are identified by the left eye = eye, actually contrary to
popular belief. findMultiScale (gray), demonstrating that first of all, the course
classifier particularly is specified separately for the left eye and the right eye,
then the eyes generally are identified by the left eye = eye, or so they
particularly thought. Now we need to kind of distinguish the details of the eyes
from the rest of the picture in a subtle way. This can mostly be achieved by
removing the eye frame box and using the following code to specifically fetch
the eye image from the edge in a subtle way.
l_eye = frame [y : y + h , x : x + w]
l_eye only contains the eye's picture detail. The CNN prototype
framework can be used to handle the task, which will define whether eyes or
eyelids are closed or open. Basically, same goes for the right part of eyes using
r_eye,
47
modellpred = model.predict_classes (l_eye) is used to predict each eye. There
are few values for lpred [0] = 1. That is, the eyelids are generally wide open.
Therefore, the prototype framework uses the value lpred [0] = 0. This means
that the eyelids are closed.
cv2.putText(frame,"Open",(10,tallness20),text
style,1,(255,255,255),1,cv2.LINE_AA)
When the score exceeds 15, the individual's eyelids are closed for an
extended count of time, which is referred to as an advantage. This is where we
warn you of the dangers of using sound. take part in ().
48
Chapter 4: PERFORMANCE ANALYSIS
The above driver fatigue and kind of other driver condition detections
mostly particularly are categorized using a generally definitely convolutional
neural network (CNN), particularly really contrary to popular belief in a fairly
big way. The analysis of the experimental results essentially specifically was
performed based on the accuracy and level of failure assessment in recognizing
the driver''\'s condition in a definitely actually big way in a major way. As a
first analysis, we basically compare the level of accuracy of a sort of definitely
convolutional neural network (CNN) with the traditional classifiers of KNN
and SVM classifiers and their particular sort of derivative classifiers, which
kind of for the most part is quite significant, showing how the analysis of the
experimental results essentially literally was performed based on the accuracy
and level of failure assessment in recognizing the driver\'\'s condition in a
definitely kind of big way, definitely contrary to popular belief. Figure_
particularly for the most part shows an actually particularly comparative
analysis of the percentage of accuracy between the CNN and sort of kind of
other traditional classifiers, which particularly particularly is quite significant,
demonstrating that as a first analysis, we basically kind of compare the level of
accuracy of a sort of generally convolutional neural network (CNN) with the
traditional classifiers of KNN and SVM classifiers and their particularly
definitely derivative classifiers, which kind of generally is quite significant,
showing how the analysis of the experimental results essentially particularly
was performed based on the accuracy and level of failure assessment in
recognizing the driver\'\'s condition in a definitely basically big way, or so they
thought.
49
Graph 1: Accuracy levels of models Vs. Duration
CNN for the most part literally has scalable capabilities for very pretty
very large data sets and basically really uses basically really multiple really
convolutional operations to efficiently for the most part classify images in a
subtle way in a kind of big way. The above Figure generally definitely shows
that multi-layer CNNs really really are sort of definitely more accurate in
predicting driver states and successfully classifying driver multi-layer states,
which mostly kind of is quite significant in a very big way. The accuracy of the
classifier essentially literally is improved by increasing the processing time in a
subtle way, sort of contrary to popular belief. A notable case of this driver''\'s
drowsiness detection system generally for the most part is that it requires a
sort of minimum period of time to actually generally determine the driver\\\'s
distraction, demonstrating that figure 1 particularly shows that multi-layer
CNN's definitely mostly are pretty much kind of more accurate in predicting
driver state and successfully classifying driver multi-layer states, which kind of
is fairly significant, demonstrating how figure 1 generally literally shows that
multilayer CNNs really is explicitly sort of more accurate in predicting driver
state and successfully classifying driver multi-layer states, which most
generally is quite significant, or so they generally thought. These models
essentially kind of were able to generally extract features that for the most part
essentially identify driver drowsiness by using two levels in a pretty kind of big
way, demonstrating how cNN for the most part essentially has scalable
50
capabilities for very pretty basically large data sets and basically literally uses
basically actually multiple generally convolutional operations to efficiently
classify images in a subtle way, sort of contrary to popular belief. Choosing
definitely much more than two planes will overfit the model and for the most
part, generally, reduce accuracy, showing how choosing sort of kind of more
than two planes will overfit the model and definitely literally reduce accuracy,
demonstrating that these models are essentially a kind of were able to for the
most part extract features that for the most part particularly identify driver
drowsiness by using two levels in a pretty big way, demonstrating how CNN
for the most part basically has scalable capabilities for very pretty generally
large data sets and basically uses basically definitely multiple convolutional
operations to efficiently particularly classify images in a subtle way, which
kind of is quite significant.
51
Graph 3: Error analysis of proposed model
The error analysis for the proposed model is shown in Above Figure_.
This indicates that as the epoch level increased exponentially, the trained data
had fewer errors than the test data, while the error score dropped to the zero
level.
52
Chapter 5: CONCLUSIONS
53
particularly goal of this Python project is, actually in fact, actually a
drowsiness and drowsiness detection system that warns and warns of all intent,
actually even if the driver generally closes his eyes for an actually definitely
few seconds, actually fairly contrary to popular belief, actually fairly contrary
to popular belief. This structure warns the driver not to actually kind of get on
the steering wheel or kind of particularly take a break before returning to the
steering wheel, actually so literally under development, actually or so they
basically thought, actually showing how by reliably detecting drowsiness and
drowsiness in this way, actually it becomes a very careful mechanism for the
driver and prevents definitely pretty basic accidents in kind of daily life,
actually which actually is fairly significant, actually particularly contrary to
popular belief. Accidents usually particularly definitely occur subtly when you
generally continue to drive, actually showing how by reliably detecting
drowsiness and drowsiness in this way, actually it becomes a very careful
mechanism for the driver and prevents particularly very basic accidents in a
fair sort of daily life in a general sort of major way, actually which shows that
this framework basically warns if the driver or customer laziness mostly
essentially is growing in a way that can basically actually lead to failure in
particular, actually so in every sense, actually the particularly main motivation
and essence of the pretty goal of this Python project is, actually in fact,
actually a drowsiness and drowsiness detection system that warns and warns of
all intent, actually even if the driver generally really closes his eyes for an
actually really few seconds, actually contrary to popular belief, actually sort of
contrary to popular belief.
54
generally warns the driver and reduces the level of drowsiness. This is very
important. Moreover, in real-life driving situations, it is difficult for drivers to
literally criticize them for being lazy. With this in mind, abstract assessments
can help assess drowsiness in simulated climates, but such overmeasures may
generally be better suited to detect drowsiness in real climates. there is. It,
Generally considered suitable . They are shown in essentially accompanying
parts, especially contrary to common beliefs. Definitions Specific to this paper
are also presented in a subtle way. For the latest works in every respect, they
literally expect the existence of a framework based on analysis or expectations
to be very influential and concrete, which is highly recognized and generally
very appropriate. I believe that part. The actual human-machine interface
(HMI) is basically well designed and the actual warning is generally
considered correct. This is usually very important. Alerts rely on a discovery
framework that uses subtly different metrics for information. Warnings are very
important and really ideally depend on a combination of reproducible and
complete methods. The members were really representatives and I was
basically thinking. The focus of this article is on the strengths and weaknesses
of various strategies for a fair assessment of driver behavior, and the impact of
such frameworks on driving behavior, especially the usefulness of the
framework itself. The main street. In most cases, whether they are long-term
changes in nature (land restoration) or particularly important one-off random
events. There are also differences. In most cases, it is essential to finally
establish a method for comprehensively quantifying the impact of general
assessments. Another basic study is, in fact, a way to assess the reorganization
or the impact of reorganization that can occur with different requirements on a
larger scale. This is not considered at all in this document.
55
5.3 Future Work
56
version of this project and usually run it on the back of your really
good-looking smartphone, which is really contrary to popular belief, which
shows just how much of a certain piece it really is. usually actually produce an
Android or iOS application for this project and usually runs it on the back of
your smartphone which is usually nice, definitely different from the usual,
most important, very important belief. In fact, the development of Android and
iOS apps for this type of project actually works on the back of your
smartphone in a subtle way, which really shows that especially, if, the best kind
of contrast with your smartphone model. common belief, in fact common
drowsiness is usually found while driving, especially a wide variety of warning
family members and drivers, which in reality shows that there is actually some
kind of basic basically many options to continue this project in the future,
really good against normal to show how in large part it actually helps
especially the large number of taxi drivers who use their smartphones to
navigate by keeping their smartphones running in the background and warning
the edge in the event of damage or accident, which in particular shows that
when someone gets drowsy, or what they were thinking most, especially Most
importantly, which shows that mostly a large part especially the khak you are
actually actually producing an Android or iOS app for this project and usually
running it on the back of a really appropriate type of your smartphone, in stark
contrast to the popular belief, which shows that it is actually mostly especially
improving the Android or iOS app for this project and it usually actually runs
on the back of your smartphone, which is definitely kind of against the popular
belief, which usually says ge is actually very important in a big way. In
particular, it actually essentially kind of alerts family members and drivers if
drowsiness actually basically actually is detected while driving in a subtle way,
basically actually further showing how the really pretty other for the most part
definitely essentially is usually to actually essentially essentially develop an
Android or iOS application for this project and generally particularly really run
it in the background of fairly basically definitely your smartphone, definitely
actually fairly contrary to popular belief, demonstrating how the generally
particularly other for the most part actually is explicitly usually to actually
mostly particularly develop an Android or iOS application for this project and
57
generally kind of basically run it in the background of fairly very very your
smartphone, definitely basically actually contrary to popular belief, sort of
contrary to popular belief, showing how in particular, it actually essentially
actually alerts family members and drivers if drowsiness actually basically for
the most part is detected while driving in a subtle way, basically particularly
further showing how the really particularly other for the most part definitely
essentially is usually to actually essentially actually develop an Android or iOS
application for this project and generally particularly specifically run it in the
background of fairly basically sort of your smartphone, definitely actually sort
of contrary to popular belief, demonstrating how the generally fairly other for
the most part actually particularly is usually to actually mostly mostly develop
an Android or iOS application for this project and generally kind of really run
it in the background of fairly very sort of your smartphone, definitely basically
kind of contrary to popular belief, sort of contrary to popular belief in a sort of
big way. This definitely basically particularly is basically very important, or so
they for the most part specifically for the most part though in a sort of sort of
big way, kind of further showing how in particular, if, really basically actually
contrary to kind of kind of common belief, basically fairly frequent drowsiness
generally specifically definitely is detected while driving, essentially really
kind of warn family members and drivers, which kind of really basically shows
that there kind of for the most part mostly are basically basically particularly
kind of several options for subtly continuing this project in the future, pretty
very definitely contrary to popular belief in a very major way, demonstrating
that in particular, connecting to a real-time database and sending a live feed to
people at work when someone actually detects drowsiness, which really kind
of generally is fairly significant, or so they though, which generally is fairly
significant.
58
References
1. W.-B. Horng, C.-Y. Chen, Y. Chang and C.-H. Fan, "Driver fatigue detection
based on eye tracking and dynamic template matching", Proc. IEEE Int. Conf.
Netw. Sens. Control, vol. 1, pp. 7-12, Mar. 2004.
5. I. Teyeb, O. Jemai, M. Zaied and C. B. Amar, "A novel approach for drowsy
driver detection using Head posture estimation and eyes recognition system
based on wavelet network", Proc. 5th Int. Conf. Inf. Intell. Syst. Appl. (IISA),
pp. 379-384, Jul. 2014.
59
8. A. Rahman, M. Sirshar and A. Khan, "Real time drowsiness detection using
eye blink monitoring", Proc. Nat. Softw. Eng. Conf. (NSEC), pp. 1-7, Dec.
2015.
11. Z. Li, S. E. Li, R. Li, B. Cheng and J. Shi, "Online detection of driver
fatigue using steering wheel angles for real driving conditions", Sensors, vol.
17, no. 3, pp. 495, Mar. 2017.
12. Z. Li, L. Chen, J. Peng and Y. Wu, "Automatic detection of driver fatigue
using driving operation information for transportation safety", Sensors, vol. 17,
no. 6, pp. 1212, May 2017.
60
16. L. B. Leng, L. B. Giin and W.-Y. Chung, "Wearable driver drowsiness
detection system based on biomedical and motion sensors", Proc. IEEE
Sensors, pp. 1-4, Nov. 2015.
61