Drowsinessdetectionusingmachinelearning1 221112025334 3f8f2434
Drowsinessdetectionusingmachinelearning1 221112025334 3f8f2434
• The face, an important part of the body, conveys a lot of information. When a
driver is in a state of fatigue, the facial expressions, e.g., the frequency of blinking
and yawning, are different from those in the normal state.
• In this project, we propose a system, which detects the drivers' fatigue status,
such as yawning, blinking, and duration of eye closure, using video images,
without equipping their bodies with devices.
• In this study, we propose a computer vision based method to detect driver’s
drowsiness from a video taken by a camera. The method attempts to recognize
the face and then detecting the eye in every frame.
• Further, we designed a new detection method for facial regions based on 68 key
points. Then we use these facial regions to evaluate the drivers' state.
• By combining the features of the eyes and mouth, we can alert the driver using a
fatigue warning with the alarm sound.
EXISTING SYSTEM:
• Fatigue is a safety problem that has not yet been deeply tackled by any country in the
world mainly because of its nature. Fatigue, in general, is very difficult to measure or
observe unlike alcohol and drugs, which have clear key indicators and tests that are
available easily. Probably, the best solutions to this problem are awareness about fatigue-
related accidents and promoting drivers to admit fatigue when needed. The former is
hard and much more expensive to achieve, and the latter is not possible without the
former as driving for long hours is very lucrative.
• Most of the existing systems use external factors and inform the user about the problem
and save users after an accident is accord but from research most of the accidents are
due to faults in users like drowsiness, sleeping while driving.
• These methods can’t able to detect the facial expressions, yawning head nods, and
majorly on eye blink frequencies.
• Accuracy of the existing method is not good when comapred to the proposed model
PROPSOED SYTEM:
• Visual object tracking
• Facial landmarks recognition
• Driver drowsiness detection
• Determination of eyes and mouth regions : The region of the eyes, Evaluation of the
driver’s fatigue state
• Eye status recognition: (Recognition based on cnn and recognition based on angle)
• Mouth status recognition
• Alarm Sound
• Self Mode alert
Technology Used
• PYTHON - Python is an interpreted, high-level, general-purpose programming language.
Python's design philosophy emphasizes code readability with its notable use of
significant whitespace. Its language constructs and object-oriented approach aim to help
programmers write clear, logical code for small and large-scale projects. Python is
dynamically typed AND supports multiple programming paradigms, including procedural,
object-oriented, and functional programming.
• Pycharm IDE- created to develop open-source software, open-standards, and services for
interactive computing across dozens of programming languages.
• IMAGE PROCESSING - In computer science, digital image processing is the use of
computer algorithms to perform image processing on digital images.
• MACHINE LEARNING - Machine learning is the scientific study of algorithms and
statistical models that computer systems use in order to perform a specific task
effectively without using explicit instructions, relying on patterns and inference instead.
It is seen as a subset of artificial intelligence. Machine learning algorithms build a
mathematical model based on sample data, known as "training data", in order to make
predictions or decisions without being explicitly told.
ADVANTAGES:
• This method will detect a problem before any problem accord and
inform the driver and other passengers by raising an alert.
camera
Flow diagram:
Hog algorithm:
• initially, the faces are detected using a Haar Cascade Classifier on an
image in conjunction with the cropping of the cardinal section of the
face. ... The H.O.G(Histogram of Oriented Gradients) is a feature
descriptor used in computer vision for image processing for the
purpose of object detection.
• HOG, or Histogram of Oriented Gradients, is a feature descriptor that
is often used to extract features from image data. It is widely used in
computer vision tasks for object detection. ... This is done by
extracting the gradient and orientation (or you can say magnitude
and direction) of the edges.
CON……………….
• The eye aspect Ratio is an estimate of the eye opening state. Based
on Figure 2, the eye aspect ratio can be defined by the below
equation. ... A program can determine if a person's eyes are closed if
the Eye Aspect Ratio falls below a certain threshold. Clmtrackr is
another facial landmark plotter.
SOFTWARE REQUIREMENTS