SlideShare a Scribd company logo
4
Most read
International Research Journal of Engineering and Technology (IRJET) e-ISSN: 2395-0056
Volume: 10 Issue: 12 | Dec 2023 www.irjet.net p-ISSN: 2395-0072
© 2023, IRJET | Impact Factor value: 8.226 | ISO 9001:2008 Certified Journal | Page 946
DRIVER DROWSINESS DETECTION USING DEEP LEARNING
Mr.R.L.Phani Kumar1, R.Akshaya2, V.S.N.Tanuja3, M.Lok Satish4, K.Siva Ganapathi5,
M.H.V.Satya Sai6
1Faculty, Department of Artificial Intelligence and Machine Learning,
Sri Vasavi Engineering College, Pedatadepalli, Tadepalligudem, Andhra Pradesh, India
2-6Student, Department of Computer Science and Engineering,
Sri Vasavi Engineering College, Pedatadepalli, Tadepalligudem, Andhra Pradesh, India
---------------------------------------------------------------------***---------------------------------------------------------------------
Abstract - Drowsiness detection is an important
research area in the field of computer vision and driversafety.
It involves the use of image and video processingtechniques to
detect signs of drowsiness in drivers, such as drooping eyelids
or changes in facial expression. This can help to prevent
accidents caused by driver fatigue, which is a leading cause of
road accidents worldwide. Drowsiness detection systems
typically use machine learning algorithms and computer
vision techniques to analyze the driver's face in real-time and
identify signs of fatigue. This can involve detecting changes in
facial expressions, such asdroopingeyelidsoryawning, aswell
as tracking the driver's eye movements to detect signs of
drowsiness. Recent advances in deep learning and neural
networks have led to significantimprovementsintheaccuracy
and reliability of drowsiness detection systems, making them
an increasingly important tool for improving road safety.
These systems are now widely usedintheautomotive industry,
and are also being explored for use in other applications, such
as aviation and industrial safety.
Key Words: Computer vision, drowsiness,
Convolutional Neural Networks, Eye Aspect Ratio,
OpenCV, Haarcascade classifier.
1.INTRODUCTION
Every day, on average, 1200 traffic accidentsarerecorded in
India, of which 400 result in immediate fatalities and the
others have serious consequences. The main factors include
both alcohol and sleep. Driversmayexperiencesleepiness as
a result of lengthy periods of driving or being intoxicated,
which is their main source of distraction. This distraction
risks the life of driver, other passengers, and pedestrians in
addition to those in the other cars and on the road. To avoid
these circumstances, our team suggests a solution that uses
CNN (Convolutional Neural Network), Python, and OpenCV
to identify driver sleepiness. Here, we builta systemthatcan
recognise characteristics on a driver's face and warn them if
they ever nod off while driving using Python, Open CV, and
Keras (Tensor flow Library). The technology recognizes the
eyeballs and asks whether they are closed or open.
The alarm will sound to alert the driver to stop becausethey
are drowsy if their eyes are closed for more than three
seconds or if they blink more than ten times in one minute.
We created a CNN network that is trained using data that
can distinguish between closed and open eyes. The CNN
model is then applied to the live feed from the camera in
order to process it and determine whethertheeyesareopen
or closed.
2. LITERATURE REVIEW:
This study uses OpenCV to demonstrate a real-time system
for identifying eye blinks in video sequences.Itestimatesthe
eye aspect ratio (EAR), which describes the condition of the
eyes being open, using facial landmark detection. The study
explores several techniques, such as motion estimates and
decision-making based on eyelid coverage,forautomatically
recognising eye blinks. The suggested strategy beats
threshold-based techniques and employs SVM for
classification. The research emphasises how adaptable
contemporary facial landmark detectors are to changes in
head tilt, lighting, and facial emotions.[1]
The SVM (Support VectorMachine)methodisthefoundation
of the real-time driver tiredness detection system proposed
in this paper. The system collects information from video
recordings such as the percentage ofclosedeyes(PERCLOS),
the number of mouth openings, the number of blinks, and
head detection. SVM is used to categorise data and separate
drivers who are weary from those who are not. The system
will be trained using a dataset for the study, and real-time
video recordings will be used to assess the system's
performance. According to reports, the accuracy of the
system for detecting weariness can reach 97.93%.[2]
The creation of a driver drowsiness detection system based
on electroencephalography, electrooculography, and image
processing techniques is examined in this research. EOG
tracks eye movements, whereasEEGmeasuresbrainactivity.
The usage of electrodes and sensors for signal acquisition is
discussed in the study, along with improvementsinmaterial
science and MEMS (Microelectromechanical Systems)
technology. Through picture categorization, the open or
closed eye state is also examined. Deep learning methods,
including artificial neural networks, are used for
classification. In order to classify images for sleepiness
detection, the paper mentions the use of Deep Belief
International Research Journal of Engineering and Technology (IRJET) e-ISSN: 2395-0056
Volume: 10 Issue: 12 | Dec 2023 www.irjet.net p-ISSN: 2395-0072
© 2023, IRJET | Impact Factor value: 8.226 | ISO 9001:2008 Certified Journal | Page 947
Networks, Restricted Boltzmann Machines, and Deep
Autoencoders.[3]
In this article, eye state is used to detect tiredness. This
assesses if the eye is in an alert or drowsy condition, with an
alarm sounding when the eye is in an alert state. Using the
Viola-Jones detection technique, the face and eye region are
identified. To extract features, stacked deep convolution
neural networks were developed and employed throughout
the learning phase. The CNN classifier uses a SoftMax layer
to classify the driver as either asleep or awake.In this, the
proposed system has an accuracy rate of 96.42%. When the
model predicts that the output state will be consistently
drowsy, this effectively identifies the driver's alertnesslevel
and sounds an alarm.[4]
The purpose of the paper is to analyse human eye blinks
using a recent facial landmark recognition and to apply
E.A.R. (eye aspect ratio) for simple, quick, and effectiveblink
detection. The system's ability to dependably and precisely
estimate the degree of eye opening indicated that it was
effective in detecting driver drowsiness. Because facial
landmark detection only incurs a very little performance
cost, this alert system can be employed in real-time.Because
a fixed blink time is assumed despite the fact thateveryone's
blink duration varies, this paperhassomedrawbacks.EARis
calculated using two-dimensional data, which cannot take
into account out-of-plane head orientation, and the model
only uses the eyes to detect tiredness.[5]
3. PROPOSED SYSTEM:
3.1 Proposed system algorithm:
1. Haar Cascade classifier is used for object detection. It is
used to extract eyes from the driver’s face and givenasinput
to CNN.
2. Deep features are extracted using CNN with four
convolutional layers, and thosefeaturesarethensenttofully
connected layer.
3. CNN classifies the photographs as having closed or open
eyes using the Soft Max layer.
The proposed system’s architecture is given in Fig- 3.1.1.
Fig- 3.1.1: System Architecture
3.2 Face detection and Eye Tracking:
Haar Cascade classifiers, which are based on the Viola-Jones
algorithm, are used to achieve face detection. The patterns
connected to faces, left eyes, and right eyes are already
known to these classifiers. In order to identify faces in the
video frames, the haarcascade_frontalface_default.xml is
used. It pinpoints areas of the picture that most likely have
faces. A bounding box is created around a face usingOpenCV
methods after it has been identified. Separate Haar Cascade
classifiers are utilised to identify the left and right eyes
within the detected face region. When eyes are found, the
eye areas are cropped and resized to a uniform size. These
resized images are prepared for further analysis.
Fig-3.2.1: Images of face detection and eye tracking
3.3 Feature Extraction and Classification
A pre-trained deep learning model (a Convolutional Neural
Network or CNN) is used to predict the state of the driver's
eyes based on the cropped and resized eye images. The
model has been trained to classify eye images as either
"open" or "closed". If both eyes are predicted to be "closed"
International Research Journal of Engineering and Technology (IRJET) e-ISSN: 2395-0056
Volume: 10 Issue: 12 | Dec 2023 www.irjet.net p-ISSN: 2395-0072
© 2023, IRJET | Impact Factor value: 8.226 | ISO 9001:2008 Certified Journal | Page 948
(the CNN model predicts "closed" status for both eyes), it
indicates that the driver's eyes are closed, which may
suggest drowsiness. A counter is maintained, and if the eyes
remain closed for a certain number of consecutive frames
(e.g., 10 frames), a drowsiness alert is triggered. This alert
can be in the form of a visual message and an alarm sound.
3.3.1 Convolutional Neural Network:
The proposedsystemusesConvolutional Neural Network for
detecting driver’s drowsiness. At First, ASequential model is
created. This type of model allows you to build a neural
network by adding layers sequentially. First convolutional
layer is added to the model. It consists of 256 filters, each
with a 3x3 kernel size. The activation function used is
Rectified Linear Unit (ReLU). The input dimensions of the
image are 145x145 pixels with 3 color channels (RGB). After
each convolutional layer, a max-pooling layer is added. The
max-pooling layer reduces the spatial dimensions of the
feature maps, in this case, by a factor of 2 in both
dimensions. This helps reduce computational complexity
and retain the most important features. The pattern of
adding convolutional layers followed by max-pooling layers
is repeated. In this case, there are three more pairs of
convolutional and max-pooling layers with decreasing filter
sizes: 128, 64, and 32.
Fig- 3.3.1.1: CNN layers
After the convolutional and max-pooling layers, a flatten
layer is added. This layer reshapestheoutputoftheprevious
layers into a one-dimensional vector. This is necessary to
connect the convolutional layers to fully connected (dense)
layers. a dropout rate of 0.5 is specified, which means that
during training, half of the neurons in the dropout layer will
be randomly "dropped out," i.e., set to zero, at each training
step. Two fully connected (dense) layers are added. Thefirst
dense layer has 64 neurons with ReLU activation, and the
final dense layer has 4 neurons with softmax activation. The
softmax activation is usedformulti-classclassification,andit
outputs probability distributions over the classes.
4. EXPERIMENTAL RESULTS:
4.1 Experimental dataset:
The experimental dataset used in our project is kaggle
dataset consisting 726 pictures of closed eyes and 726
pictures of open eyes. This dataset also consists of eye
images with spectacles.
4.2 Performance Analysis:
1. We did 50 epochs, to get good accuracy from themodel i.e.
98% for training accuracy and 96% for validation accuracy.
Chart-1: Accuracy Graph
reaches maximum threshold value , gives alert.
OUTPUT:
Figure 4.1 Accuracy graph
2. System will capture the video directly from webcam and
pedicts the output as labels-Eyes Open and Eyes Closed.
3. It displays frame count if the eyes are closed and if it
International Research Journal of Engineering and Technology (IRJET) e-ISSN: 2395-0056
Volume: 10 Issue: 12 | Dec 2023 www.irjet.net p-ISSN: 2395-0072
© 2023, IRJET | Impact Factor value: 8.226 | ISO 9001:2008 Certified Journal | Page 949
4.2 System Testing:
The following table represents test cases observed while
doing the project to detect the driver’s drowsiness.
Test cases Eyes
detected
Eyes
closure
Result
Case 1 No No No result
Case 2 No Yes No result
Case 3 Yes No Eyes open
Case 4 Yes Yes Eyes closed,Voice
alert
Table-1: System Testing
The system's approach states that the driver is feeling
fatigued if their eyes are closed for an extended period of
time (greater than the specified number of frames). From
this point on, one of these exceptional cases occurs, and the
related outcome occurs.When the face is correctly oriented
and there are no wearing obstructions, the accuracy as
determined during the performance analysis step is almost
found to be 100%. When there is an obstruction, accuracy
slightly decreases. The right results depend greatly on the
ambient lighting conditions.
5. CONCLUSIONS:
Face and eyes were recognized on the footage of a person
driving in order to determine whether they were drowsy or
not. We employed a haar cascade classifier with OpenCV to
find faces and eyes. Eyes were categorized as open or closed
using a convolutional neural network. Based on how
frequently eyelids were closed, drowsiness was assessed.
The driver was warned by an alarmthatwasprogrammed to
sound following the detection. Due to variables such as
darkness, light reflection, obstructions caused by drivers'
hands, and the wearing of sunglasses, it will bemoredifficult
to discern drivers' situations and facial expressions. In
addition to being a drowsiness detection approach that is
frequently employed with other facial extraction methods,
convolutional neural provides greater performance.
6. REFERENCES:
[1] Rosebrock, Adrian. "Drowsiness detection with
OpenCV." Py Image Search (2017).
[2] Savaş, Burcu Kır, and Yaşar Becerikli. "Real time driver
fatigue detection based on SVM algorithm." 2018 6th
International Conference on Control Engineering &
Information Technology (CEIT). IEEE, 2018.
[3] Vesselenyi, Tiberiu, et al. "Driver drowsiness detection
using ANN image processing." IOP conference series:
International Research Journal of Engineering and Technology (IRJET) e-ISSN: 2395-0056
Volume: 10 Issue: 12 | Dec 2023 www.irjet.net p-ISSN: 2395-0072
© 2023, IRJET | Impact Factor value: 8.226 | ISO 9001:2008 Certified Journal | Page 950
materials science and engineering. Vol. 252. No. 1. IOP
Publishing, 2017.
[4] Chirra, Venkata Rami Reddy, Srinivasulu Reddy Uyyala,
and Venkata Krishna Kishore Kolli. "Deep CNN: A Machine
Learning Approach for Driver Drowsiness Detection Based
on Eye State." Rev. d'Intelligence Artif. 33.6 (2019):461-466.
[5] Aditya Ranjan, Karan Vyas, Sujay Ghadge, Siddharth
Patel, Suvarna Sanjay Pawar, “Driver Drowsiness Detection
System Using Computer Vision.”, in International Research
Journal of Engineering and Technology(IRJET), 2020.
[6] Saini, Vandna, and Rekha Saini. "Driver drowsiness
detection system and techniques: a review." International
Journal of Computer Science and Information Technologies
5.3 (2014): 4245-4249.
[7] Alshaqaqi, Belal, et al. "Driver drowsiness detection
system." 2013 8thinternational workshoponsystems,signal
processing and their applications (WoSSPA). IEEE, 2013.
[8] Deng, Wanghua, and Ruoxue Wu. "Real-time driver-
drowsiness detection system using facial features." Ieee
Access 7 (2019): 118727-118738.
[9] Park, Sanghyuk, et al. "Driver drowsiness detection
system based on feature representation learning using
various deep networks." Asian Conference on Computer
Vision. Cham: Springer International Publishing, 2016.
[10] Hashemi, Maryam, Alireza Mirrashid, and Aliasghar
Beheshti Shirazi. "Driver safety development: Real-time
driver drowsiness detection system based on convolutional
neural network." SN Computer Science 1 (2020): 1-10.

More Related Content

PDF
Problems in parallel computations of tree functions
PPT
OpenGL Basics
PPT
Michal Erel's SIFT presentation
PDF
Introduction to Agents and Multi-agent Systems (lecture slides)
PDF
Amazon VPC Lattice: The Service Mesh you actually want!!
PPT
Amortized Analysis
PDF
Video Summarization
PPT
Z buffer
Problems in parallel computations of tree functions
OpenGL Basics
Michal Erel's SIFT presentation
Introduction to Agents and Multi-agent Systems (lecture slides)
Amazon VPC Lattice: The Service Mesh you actually want!!
Amortized Analysis
Video Summarization
Z buffer

What's hot (20)

PPT
3 d geometric transformations
PPTX
Daa unit 4
PPTX
REST APIs in Laravel 101
PDF
TOC 5 | Regular Expressions
PPT
Computer Vision - Image Filters
PPT
Histogram equalization
PPTX
3D Graphics : Computer Graphics Fundamentals
PDF
Color models in Digitel image processing
ODP
Image Processing with OpenCV
PPT
SINGLE-SOURCE SHORTEST PATHS
PPTX
الضرائب المباشرة والضرائب غير المباشرة
PPT
Recognition as Graph Matching
PPTX
Regular Expressions To Finite Automata
PDF
Cahier de veille intelligence artificielle
PPT
Dip Morphological
PDF
Face Liveness Detection for Biometric Antispoofing Applications using Color T...
PDF
Roughset & it’s variants
PDF
Biometric encryption
PDF
Counting Triangles and the Curse of the Last Reducer
PPT
Three dimensional concepts - Computer Graphics
3 d geometric transformations
Daa unit 4
REST APIs in Laravel 101
TOC 5 | Regular Expressions
Computer Vision - Image Filters
Histogram equalization
3D Graphics : Computer Graphics Fundamentals
Color models in Digitel image processing
Image Processing with OpenCV
SINGLE-SOURCE SHORTEST PATHS
الضرائب المباشرة والضرائب غير المباشرة
Recognition as Graph Matching
Regular Expressions To Finite Automata
Cahier de veille intelligence artificielle
Dip Morphological
Face Liveness Detection for Biometric Antispoofing Applications using Color T...
Roughset & it’s variants
Biometric encryption
Counting Triangles and the Curse of the Last Reducer
Three dimensional concepts - Computer Graphics
Ad

Similar to DRIVER DROWSINESS DETECTION USING DEEP LEARNING (20)

PDF
Stay Awake Alert: A Driver Drowsiness Detection System with Location Tracking...
PPTX
Smart Driver Alert: Predictive Fatigue Detection Technology
PPTX
Smart Driver Alert: Revolutionizing Road Safety with Predictive Fatigue Detec...
PDF
Human Driver’s Drowsiness Detection System
PDF
DRIVER DROWSINESS DETECTION SYSTEMS
PDF
REAL-TIME DRIVER DROWSINESS DETECTION
PDF
REAL-TIME DRIVER DROWSINESS DETECTION
PDF
Real-Time Driver Drowsiness Detection System
PDF
IRJET- Drowziness Detection with Alarm Monitoring
PDF
REAL TIME DROWSINESS DETECTION
PPTX
Drowsi(1).pptx
PDF
Driver Drowsiness Detection System Using Image Processing
PDF
Drowsiness and Alcohol Detection for Accident Prevention using Machine Learning
PDF
Driver Dormant Monitoring System to Avert Fatal Accidents Using Image Processing
PDF
Driver Dormant Monitoring System to Avert Fatal Accidents Using Image Processing
PPTX
Drowsiness State Detection of Driver using Eyelid Movement- IRE Journal Confe...
PDF
MACHINE LEARNING BASED DRIVER MONITORING SYSTEM
PDF
Convolutional neural network-based real-time drowsy driver detection for acci...
PDF
Real Time Driver Drowsiness Detection System for Road Safety
PDF
Towards a system for real-time prevention of drowsiness-related accidents
Stay Awake Alert: A Driver Drowsiness Detection System with Location Tracking...
Smart Driver Alert: Predictive Fatigue Detection Technology
Smart Driver Alert: Revolutionizing Road Safety with Predictive Fatigue Detec...
Human Driver’s Drowsiness Detection System
DRIVER DROWSINESS DETECTION SYSTEMS
REAL-TIME DRIVER DROWSINESS DETECTION
REAL-TIME DRIVER DROWSINESS DETECTION
Real-Time Driver Drowsiness Detection System
IRJET- Drowziness Detection with Alarm Monitoring
REAL TIME DROWSINESS DETECTION
Drowsi(1).pptx
Driver Drowsiness Detection System Using Image Processing
Drowsiness and Alcohol Detection for Accident Prevention using Machine Learning
Driver Dormant Monitoring System to Avert Fatal Accidents Using Image Processing
Driver Dormant Monitoring System to Avert Fatal Accidents Using Image Processing
Drowsiness State Detection of Driver using Eyelid Movement- IRE Journal Confe...
MACHINE LEARNING BASED DRIVER MONITORING SYSTEM
Convolutional neural network-based real-time drowsy driver detection for acci...
Real Time Driver Drowsiness Detection System for Road Safety
Towards a system for real-time prevention of drowsiness-related accidents
Ad

More from IRJET Journal (20)

PDF
Enhanced heart disease prediction using SKNDGR ensemble Machine Learning Model
PDF
Utilizing Biomedical Waste for Sustainable Brick Manufacturing: A Novel Appro...
PDF
Kiona – A Smart Society Automation Project
PDF
DESIGN AND DEVELOPMENT OF BATTERY THERMAL MANAGEMENT SYSTEM USING PHASE CHANG...
PDF
Invest in Innovation: Empowering Ideas through Blockchain Based Crowdfunding
PDF
SPACE WATCH YOUR REAL-TIME SPACE INFORMATION HUB
PDF
A Review on Influence of Fluid Viscous Damper on The Behaviour of Multi-store...
PDF
Wireless Arduino Control via Mobile: Eliminating the Need for a Dedicated Wir...
PDF
Explainable AI(XAI) using LIME and Disease Detection in Mango Leaf by Transfe...
PDF
BRAIN TUMOUR DETECTION AND CLASSIFICATION
PDF
The Project Manager as an ambassador of the contract. The case of NEC4 ECC co...
PDF
"Enhanced Heat Transfer Performance in Shell and Tube Heat Exchangers: A CFD ...
PDF
Advancements in CFD Analysis of Shell and Tube Heat Exchangers with Nanofluid...
PDF
Breast Cancer Detection using Computer Vision
PDF
Auto-Charging E-Vehicle with its battery Management.
PDF
Analysis of high energy charge particle in the Heliosphere
PDF
A Novel System for Recommending Agricultural Crops Using Machine Learning App...
PDF
Auto-Charging E-Vehicle with its battery Management.
PDF
Analysis of high energy charge particle in the Heliosphere
PDF
Wireless Arduino Control via Mobile: Eliminating the Need for a Dedicated Wir...
Enhanced heart disease prediction using SKNDGR ensemble Machine Learning Model
Utilizing Biomedical Waste for Sustainable Brick Manufacturing: A Novel Appro...
Kiona – A Smart Society Automation Project
DESIGN AND DEVELOPMENT OF BATTERY THERMAL MANAGEMENT SYSTEM USING PHASE CHANG...
Invest in Innovation: Empowering Ideas through Blockchain Based Crowdfunding
SPACE WATCH YOUR REAL-TIME SPACE INFORMATION HUB
A Review on Influence of Fluid Viscous Damper on The Behaviour of Multi-store...
Wireless Arduino Control via Mobile: Eliminating the Need for a Dedicated Wir...
Explainable AI(XAI) using LIME and Disease Detection in Mango Leaf by Transfe...
BRAIN TUMOUR DETECTION AND CLASSIFICATION
The Project Manager as an ambassador of the contract. The case of NEC4 ECC co...
"Enhanced Heat Transfer Performance in Shell and Tube Heat Exchangers: A CFD ...
Advancements in CFD Analysis of Shell and Tube Heat Exchangers with Nanofluid...
Breast Cancer Detection using Computer Vision
Auto-Charging E-Vehicle with its battery Management.
Analysis of high energy charge particle in the Heliosphere
A Novel System for Recommending Agricultural Crops Using Machine Learning App...
Auto-Charging E-Vehicle with its battery Management.
Analysis of high energy charge particle in the Heliosphere
Wireless Arduino Control via Mobile: Eliminating the Need for a Dedicated Wir...

Recently uploaded (20)

PDF
SM_6th-Sem__Cse_Internet-of-Things.pdf IOT
DOCX
573137875-Attendance-Management-System-original
PPTX
OOP with Java - Java Introduction (Basics)
PPTX
CH1 Production IntroductoryConcepts.pptx
PPTX
CARTOGRAPHY AND GEOINFORMATION VISUALIZATION chapter1 NPTE (2).pptx
PDF
R24 SURVEYING LAB MANUAL for civil enggi
PPTX
Construction Project Organization Group 2.pptx
PDF
Automation-in-Manufacturing-Chapter-Introduction.pdf
PPTX
M Tech Sem 1 Civil Engineering Environmental Sciences.pptx
PDF
Evaluating the Democratization of the Turkish Armed Forces from a Normative P...
PPTX
UNIT 4 Total Quality Management .pptx
PPTX
Sustainable Sites - Green Building Construction
PPT
introduction to datamining and warehousing
PPTX
MET 305 2019 SCHEME MODULE 2 COMPLETE.pptx
PPTX
Safety Seminar civil to be ensured for safe working.
PPT
Introduction, IoT Design Methodology, Case Study on IoT System for Weather Mo...
PDF
TFEC-4-2020-Design-Guide-for-Timber-Roof-Trusses.pdf
PDF
Model Code of Practice - Construction Work - 21102022 .pdf
PPTX
Lecture Notes Electrical Wiring System Components
DOCX
ASol_English-Language-Literature-Set-1-27-02-2023-converted.docx
SM_6th-Sem__Cse_Internet-of-Things.pdf IOT
573137875-Attendance-Management-System-original
OOP with Java - Java Introduction (Basics)
CH1 Production IntroductoryConcepts.pptx
CARTOGRAPHY AND GEOINFORMATION VISUALIZATION chapter1 NPTE (2).pptx
R24 SURVEYING LAB MANUAL for civil enggi
Construction Project Organization Group 2.pptx
Automation-in-Manufacturing-Chapter-Introduction.pdf
M Tech Sem 1 Civil Engineering Environmental Sciences.pptx
Evaluating the Democratization of the Turkish Armed Forces from a Normative P...
UNIT 4 Total Quality Management .pptx
Sustainable Sites - Green Building Construction
introduction to datamining and warehousing
MET 305 2019 SCHEME MODULE 2 COMPLETE.pptx
Safety Seminar civil to be ensured for safe working.
Introduction, IoT Design Methodology, Case Study on IoT System for Weather Mo...
TFEC-4-2020-Design-Guide-for-Timber-Roof-Trusses.pdf
Model Code of Practice - Construction Work - 21102022 .pdf
Lecture Notes Electrical Wiring System Components
ASol_English-Language-Literature-Set-1-27-02-2023-converted.docx

DRIVER DROWSINESS DETECTION USING DEEP LEARNING

  • 1. International Research Journal of Engineering and Technology (IRJET) e-ISSN: 2395-0056 Volume: 10 Issue: 12 | Dec 2023 www.irjet.net p-ISSN: 2395-0072 © 2023, IRJET | Impact Factor value: 8.226 | ISO 9001:2008 Certified Journal | Page 946 DRIVER DROWSINESS DETECTION USING DEEP LEARNING Mr.R.L.Phani Kumar1, R.Akshaya2, V.S.N.Tanuja3, M.Lok Satish4, K.Siva Ganapathi5, M.H.V.Satya Sai6 1Faculty, Department of Artificial Intelligence and Machine Learning, Sri Vasavi Engineering College, Pedatadepalli, Tadepalligudem, Andhra Pradesh, India 2-6Student, Department of Computer Science and Engineering, Sri Vasavi Engineering College, Pedatadepalli, Tadepalligudem, Andhra Pradesh, India ---------------------------------------------------------------------***--------------------------------------------------------------------- Abstract - Drowsiness detection is an important research area in the field of computer vision and driversafety. It involves the use of image and video processingtechniques to detect signs of drowsiness in drivers, such as drooping eyelids or changes in facial expression. This can help to prevent accidents caused by driver fatigue, which is a leading cause of road accidents worldwide. Drowsiness detection systems typically use machine learning algorithms and computer vision techniques to analyze the driver's face in real-time and identify signs of fatigue. This can involve detecting changes in facial expressions, such asdroopingeyelidsoryawning, aswell as tracking the driver's eye movements to detect signs of drowsiness. Recent advances in deep learning and neural networks have led to significantimprovementsintheaccuracy and reliability of drowsiness detection systems, making them an increasingly important tool for improving road safety. These systems are now widely usedintheautomotive industry, and are also being explored for use in other applications, such as aviation and industrial safety. Key Words: Computer vision, drowsiness, Convolutional Neural Networks, Eye Aspect Ratio, OpenCV, Haarcascade classifier. 1.INTRODUCTION Every day, on average, 1200 traffic accidentsarerecorded in India, of which 400 result in immediate fatalities and the others have serious consequences. The main factors include both alcohol and sleep. Driversmayexperiencesleepiness as a result of lengthy periods of driving or being intoxicated, which is their main source of distraction. This distraction risks the life of driver, other passengers, and pedestrians in addition to those in the other cars and on the road. To avoid these circumstances, our team suggests a solution that uses CNN (Convolutional Neural Network), Python, and OpenCV to identify driver sleepiness. Here, we builta systemthatcan recognise characteristics on a driver's face and warn them if they ever nod off while driving using Python, Open CV, and Keras (Tensor flow Library). The technology recognizes the eyeballs and asks whether they are closed or open. The alarm will sound to alert the driver to stop becausethey are drowsy if their eyes are closed for more than three seconds or if they blink more than ten times in one minute. We created a CNN network that is trained using data that can distinguish between closed and open eyes. The CNN model is then applied to the live feed from the camera in order to process it and determine whethertheeyesareopen or closed. 2. LITERATURE REVIEW: This study uses OpenCV to demonstrate a real-time system for identifying eye blinks in video sequences.Itestimatesthe eye aspect ratio (EAR), which describes the condition of the eyes being open, using facial landmark detection. The study explores several techniques, such as motion estimates and decision-making based on eyelid coverage,forautomatically recognising eye blinks. The suggested strategy beats threshold-based techniques and employs SVM for classification. The research emphasises how adaptable contemporary facial landmark detectors are to changes in head tilt, lighting, and facial emotions.[1] The SVM (Support VectorMachine)methodisthefoundation of the real-time driver tiredness detection system proposed in this paper. The system collects information from video recordings such as the percentage ofclosedeyes(PERCLOS), the number of mouth openings, the number of blinks, and head detection. SVM is used to categorise data and separate drivers who are weary from those who are not. The system will be trained using a dataset for the study, and real-time video recordings will be used to assess the system's performance. According to reports, the accuracy of the system for detecting weariness can reach 97.93%.[2] The creation of a driver drowsiness detection system based on electroencephalography, electrooculography, and image processing techniques is examined in this research. EOG tracks eye movements, whereasEEGmeasuresbrainactivity. The usage of electrodes and sensors for signal acquisition is discussed in the study, along with improvementsinmaterial science and MEMS (Microelectromechanical Systems) technology. Through picture categorization, the open or closed eye state is also examined. Deep learning methods, including artificial neural networks, are used for classification. In order to classify images for sleepiness detection, the paper mentions the use of Deep Belief
  • 2. International Research Journal of Engineering and Technology (IRJET) e-ISSN: 2395-0056 Volume: 10 Issue: 12 | Dec 2023 www.irjet.net p-ISSN: 2395-0072 © 2023, IRJET | Impact Factor value: 8.226 | ISO 9001:2008 Certified Journal | Page 947 Networks, Restricted Boltzmann Machines, and Deep Autoencoders.[3] In this article, eye state is used to detect tiredness. This assesses if the eye is in an alert or drowsy condition, with an alarm sounding when the eye is in an alert state. Using the Viola-Jones detection technique, the face and eye region are identified. To extract features, stacked deep convolution neural networks were developed and employed throughout the learning phase. The CNN classifier uses a SoftMax layer to classify the driver as either asleep or awake.In this, the proposed system has an accuracy rate of 96.42%. When the model predicts that the output state will be consistently drowsy, this effectively identifies the driver's alertnesslevel and sounds an alarm.[4] The purpose of the paper is to analyse human eye blinks using a recent facial landmark recognition and to apply E.A.R. (eye aspect ratio) for simple, quick, and effectiveblink detection. The system's ability to dependably and precisely estimate the degree of eye opening indicated that it was effective in detecting driver drowsiness. Because facial landmark detection only incurs a very little performance cost, this alert system can be employed in real-time.Because a fixed blink time is assumed despite the fact thateveryone's blink duration varies, this paperhassomedrawbacks.EARis calculated using two-dimensional data, which cannot take into account out-of-plane head orientation, and the model only uses the eyes to detect tiredness.[5] 3. PROPOSED SYSTEM: 3.1 Proposed system algorithm: 1. Haar Cascade classifier is used for object detection. It is used to extract eyes from the driver’s face and givenasinput to CNN. 2. Deep features are extracted using CNN with four convolutional layers, and thosefeaturesarethensenttofully connected layer. 3. CNN classifies the photographs as having closed or open eyes using the Soft Max layer. The proposed system’s architecture is given in Fig- 3.1.1. Fig- 3.1.1: System Architecture 3.2 Face detection and Eye Tracking: Haar Cascade classifiers, which are based on the Viola-Jones algorithm, are used to achieve face detection. The patterns connected to faces, left eyes, and right eyes are already known to these classifiers. In order to identify faces in the video frames, the haarcascade_frontalface_default.xml is used. It pinpoints areas of the picture that most likely have faces. A bounding box is created around a face usingOpenCV methods after it has been identified. Separate Haar Cascade classifiers are utilised to identify the left and right eyes within the detected face region. When eyes are found, the eye areas are cropped and resized to a uniform size. These resized images are prepared for further analysis. Fig-3.2.1: Images of face detection and eye tracking 3.3 Feature Extraction and Classification A pre-trained deep learning model (a Convolutional Neural Network or CNN) is used to predict the state of the driver's eyes based on the cropped and resized eye images. The model has been trained to classify eye images as either "open" or "closed". If both eyes are predicted to be "closed"
  • 3. International Research Journal of Engineering and Technology (IRJET) e-ISSN: 2395-0056 Volume: 10 Issue: 12 | Dec 2023 www.irjet.net p-ISSN: 2395-0072 © 2023, IRJET | Impact Factor value: 8.226 | ISO 9001:2008 Certified Journal | Page 948 (the CNN model predicts "closed" status for both eyes), it indicates that the driver's eyes are closed, which may suggest drowsiness. A counter is maintained, and if the eyes remain closed for a certain number of consecutive frames (e.g., 10 frames), a drowsiness alert is triggered. This alert can be in the form of a visual message and an alarm sound. 3.3.1 Convolutional Neural Network: The proposedsystemusesConvolutional Neural Network for detecting driver’s drowsiness. At First, ASequential model is created. This type of model allows you to build a neural network by adding layers sequentially. First convolutional layer is added to the model. It consists of 256 filters, each with a 3x3 kernel size. The activation function used is Rectified Linear Unit (ReLU). The input dimensions of the image are 145x145 pixels with 3 color channels (RGB). After each convolutional layer, a max-pooling layer is added. The max-pooling layer reduces the spatial dimensions of the feature maps, in this case, by a factor of 2 in both dimensions. This helps reduce computational complexity and retain the most important features. The pattern of adding convolutional layers followed by max-pooling layers is repeated. In this case, there are three more pairs of convolutional and max-pooling layers with decreasing filter sizes: 128, 64, and 32. Fig- 3.3.1.1: CNN layers After the convolutional and max-pooling layers, a flatten layer is added. This layer reshapestheoutputoftheprevious layers into a one-dimensional vector. This is necessary to connect the convolutional layers to fully connected (dense) layers. a dropout rate of 0.5 is specified, which means that during training, half of the neurons in the dropout layer will be randomly "dropped out," i.e., set to zero, at each training step. Two fully connected (dense) layers are added. Thefirst dense layer has 64 neurons with ReLU activation, and the final dense layer has 4 neurons with softmax activation. The softmax activation is usedformulti-classclassification,andit outputs probability distributions over the classes. 4. EXPERIMENTAL RESULTS: 4.1 Experimental dataset: The experimental dataset used in our project is kaggle dataset consisting 726 pictures of closed eyes and 726 pictures of open eyes. This dataset also consists of eye images with spectacles. 4.2 Performance Analysis: 1. We did 50 epochs, to get good accuracy from themodel i.e. 98% for training accuracy and 96% for validation accuracy. Chart-1: Accuracy Graph reaches maximum threshold value , gives alert. OUTPUT: Figure 4.1 Accuracy graph 2. System will capture the video directly from webcam and pedicts the output as labels-Eyes Open and Eyes Closed. 3. It displays frame count if the eyes are closed and if it
  • 4. International Research Journal of Engineering and Technology (IRJET) e-ISSN: 2395-0056 Volume: 10 Issue: 12 | Dec 2023 www.irjet.net p-ISSN: 2395-0072 © 2023, IRJET | Impact Factor value: 8.226 | ISO 9001:2008 Certified Journal | Page 949 4.2 System Testing: The following table represents test cases observed while doing the project to detect the driver’s drowsiness. Test cases Eyes detected Eyes closure Result Case 1 No No No result Case 2 No Yes No result Case 3 Yes No Eyes open Case 4 Yes Yes Eyes closed,Voice alert Table-1: System Testing The system's approach states that the driver is feeling fatigued if their eyes are closed for an extended period of time (greater than the specified number of frames). From this point on, one of these exceptional cases occurs, and the related outcome occurs.When the face is correctly oriented and there are no wearing obstructions, the accuracy as determined during the performance analysis step is almost found to be 100%. When there is an obstruction, accuracy slightly decreases. The right results depend greatly on the ambient lighting conditions. 5. CONCLUSIONS: Face and eyes were recognized on the footage of a person driving in order to determine whether they were drowsy or not. We employed a haar cascade classifier with OpenCV to find faces and eyes. Eyes were categorized as open or closed using a convolutional neural network. Based on how frequently eyelids were closed, drowsiness was assessed. The driver was warned by an alarmthatwasprogrammed to sound following the detection. Due to variables such as darkness, light reflection, obstructions caused by drivers' hands, and the wearing of sunglasses, it will bemoredifficult to discern drivers' situations and facial expressions. In addition to being a drowsiness detection approach that is frequently employed with other facial extraction methods, convolutional neural provides greater performance. 6. REFERENCES: [1] Rosebrock, Adrian. "Drowsiness detection with OpenCV." Py Image Search (2017). [2] Savaş, Burcu Kır, and Yaşar Becerikli. "Real time driver fatigue detection based on SVM algorithm." 2018 6th International Conference on Control Engineering & Information Technology (CEIT). IEEE, 2018. [3] Vesselenyi, Tiberiu, et al. "Driver drowsiness detection using ANN image processing." IOP conference series:
  • 5. International Research Journal of Engineering and Technology (IRJET) e-ISSN: 2395-0056 Volume: 10 Issue: 12 | Dec 2023 www.irjet.net p-ISSN: 2395-0072 © 2023, IRJET | Impact Factor value: 8.226 | ISO 9001:2008 Certified Journal | Page 950 materials science and engineering. Vol. 252. No. 1. IOP Publishing, 2017. [4] Chirra, Venkata Rami Reddy, Srinivasulu Reddy Uyyala, and Venkata Krishna Kishore Kolli. "Deep CNN: A Machine Learning Approach for Driver Drowsiness Detection Based on Eye State." Rev. d'Intelligence Artif. 33.6 (2019):461-466. [5] Aditya Ranjan, Karan Vyas, Sujay Ghadge, Siddharth Patel, Suvarna Sanjay Pawar, “Driver Drowsiness Detection System Using Computer Vision.”, in International Research Journal of Engineering and Technology(IRJET), 2020. [6] Saini, Vandna, and Rekha Saini. "Driver drowsiness detection system and techniques: a review." International Journal of Computer Science and Information Technologies 5.3 (2014): 4245-4249. [7] Alshaqaqi, Belal, et al. "Driver drowsiness detection system." 2013 8thinternational workshoponsystems,signal processing and their applications (WoSSPA). IEEE, 2013. [8] Deng, Wanghua, and Ruoxue Wu. "Real-time driver- drowsiness detection system using facial features." Ieee Access 7 (2019): 118727-118738. [9] Park, Sanghyuk, et al. "Driver drowsiness detection system based on feature representation learning using various deep networks." Asian Conference on Computer Vision. Cham: Springer International Publishing, 2016. [10] Hashemi, Maryam, Alireza Mirrashid, and Aliasghar Beheshti Shirazi. "Driver safety development: Real-time driver drowsiness detection system based on convolutional neural network." SN Computer Science 1 (2020): 1-10.