Presentation On Sleep Alarm System by Aayushi Dadore

Download as pptx, pdf, or txt
Download as pptx, pdf, or txt
You are on page 1of 17

Presentation

PresentationOn
OnSleep
SleepAlarm
Alarm
System
SystemByBy
Aayushi Dadore
Aayushi Dadore
Under The Guidance By
Prof. Dr. Naziya Hussian

School Of Computers IPS Academy, Indore


Introduction of the project

Feeling sleepy while driving could causes hazardous traffic accident. However, when driving alone on highway or
driving over a long period of time, drivers are inclined to bored and feel sleepy or even fall asleep. Now days most
of the products of driver anti-sleep detection sold in the market is simply earphone making intermittent noises,
which is quite annoying and inefficient. As such, there is high demand for cheap and efficient driver sleep
detection. Therefore, we came up with an idea to develop a sleep alarm system , which could effectively meet this
demand. Humans have always invented machines and devised techniques to ease and protect their lives, for
mundane activities like traveling to work, or for more interesting purposes like aircraft travel. With the
advancement in technology, modes of transportation kept on advancing and our dependency on it started increasing
exponentially. It has greatly affected our lives as we know it. However, there are some rules and codes of conduct
for those who drive. One of them is staying alert and active while driving. Neglecting our duties towards safer
travel has enabled hundreds of thousands of tragedies .It may seem like a trivial thing to most folks but following
rules and regulations on the road is of utmost importance. One kind of carelessness is not admitting when we are
too tired to drive. In order to monitor and prevent a destructive outcome from such negligence, Sleep alarm system
is a safety technology that can prevent accidents that are caused by drivers who fell asleep while driving.
Objective:
•The main aim of this is to develop a Sleep Alarm System by monitoring the eyes.

• It is believed that the symptoms of driver fatigue can be detected early enough to avoid a car
accident.

• Detection of fatigue involves the observation of eye movements and blink patterns.
SYSTEM REQUIREMENTS
Hardware Specification :

 Laptop: Used to run our code.


 Webcam/USB camera: An USB camera is used to continuously track the facial landmark
and movement of eyes and lips of the driver. This project mainly targets the landmarks of lips
and eyes of the driver. For detection of Tiredness, landmarks of eyes are tracked
continuously.
Software Specification :

Python :Python is an object-oriented programming language created by Guido Rossum in


1989. It is ideally designed for rapid prototyping of complex applications. It has interfaces to
many OS system calls and libraries and is extensible to C or C++. Many large companies use
the Python programming language include NASA, Google, YouTube, BitTorrent, etc. Python is
widely used in Artificial Intelligence, Natural Language Generation, Neural Networks and other
advanced fields of Computer Science. Python had deep focus on code readability. Python
language is used by author due to his cross platform compatibility as main coding language for
algorithm.
Tools And Technology Used:
Jupyter notebook: The Jupyter Notebook is an open-source web application that allows
you to create and share documents that contain live code, equations, visualizations and
narrative text.

OpenCV: OpenCV is a huge open-source library for computer vision, machine learning,
and image processing. OpenCV supports a wide variety of programming languages like
Python, C++, Java, etc. It can process images and videos to identify objects, faces, or
even the handwriting of a human.

Dlib: DLib is an open source C++ library implementing a variety of machine learning
algorithms, including classification, regression, clustering, data transformation, and structured
prediction.
DLib also features utility functionality including
-Threading
-Networking
-Numerical Algorithms
-Image Processing
-Data Compression and Integrity algorithms
Scipy : SciPy, a scientific library for Python is an open source, BSD-licensed library for
mathematics, science and engineering. The SciPy library depends on NumPy, which provides
convenient and fast N-dimensional array manipulation. The main reason for building the SciPy
library is that, it should work with NumPy arrays. It provides many user-friendly and efficient
numerical practices such as routines for numerical integration and optimization. This is an
introductory tutorial, which covers the fundamentals of SciPy and describes how to deal with its
various modules.

Play sound : The play sound module is a cross platform module that can play audio files.
System analysis:
Feasibility Study

 Technical Feasibility

The project covers all the scope of practicality and is technically feasible.

It will be built considering industry standards, and using the latest technologies which
will ensure its smooth functioning.

The project will run on users devices over internet.

Economical Feasibility

The hardware requirements to access this project are appropriate computing device and a USB
camera
DESIGN
1. Face Detection
In computer vision, one essential problem we are trying to figure out is to automatically
detect objects in an image without human intervention. Face detection can be thought
of as such a problem where we detect human faces in an image. There may be slight
differences in the faces of humans but overall, it is safe to say that there are certain
features that are associated with all the human faces.
OpenCV is an image and video processing library and is used for image and video
analysis, like facial detection, license plate reading, photo editing, advanced robotic
vision, optical character recognition, and a whole lot more.
The dlib library, maintained by Davis King, contains our implementation of “deep metric
learning” which is used to construct our face embeddings used for the actual
recognition process .The face recognition library, created by Adam Geitgey , wraps
around dlib’s facial recognition functionality, and this library is super easy to work with
and we will be using this in our code.
1.Facial Landmarks
Facial landmark is a technique which can be applied to applications like face alignment,
head pose estimation, face swapping, blink detection, drowsiness detection, etc. In this
context of facial landmarks, our vital aim is to detect facial structures on the person's face
using a method called shape prediction.

Facial Landmarks
1.Eye Detection
After detecting the face of the driver, the calculation of drowsiness level of the driver is based on eye blink
rate. The Eye Aspect Ratio (EAR) formula, which was proposed is able to detect the eye blink using the scalar
value. For instance, if driver blinks eyes more frequently, it means that the drivers are in the state of
drowsiness. Thus, it is necessary to detect the eyes shape accurately in order to calculate the eye blink
frequency. From the landmarks detected in the image with face, the EAR is used as an estimate of the eye
openness state. For every video frame, the eye landmarks are detected between height and width of the eye
that had been computed. The eye aspect ratio can be defined as : EAR = (p2- p6 + p3- p5) / 2 (p1- p4 )
Mouth Detection :

To determine the yawning parameter the aspect ratio of the mouth is calculated. It is calculated by
the following formula : MAR = (|CD| + |EF| + |GH| ) / (3 * |AB|)
Information Flow Representation :
Activity Diagram :

Activity diagram
State-chart Diagram :

State -Chart diagram


Class Diagram :

Class diagram
Testing Objectives :

The main objective of the tests was to acquire behavioral and biomedical signals of the
drowsy drivers while driving, but keeping them safe in a controlled environment.
Therefore, the task of stopping the vehicle depended entirely on the system.
Thank You

You might also like