Giter Club home page Giter Club logo

hackulus21-drowsiness-detection-web-app's Introduction

Drowsiness-Detection-Web-app

Prevents sleep deprivation road accidents, by alerting drowsy drivers. In this project, we have trained a convolutional neural network, to determine whether the eyes are closed or not, further, eye-patches are extracted from the face image to make all predictions. The dataset used for the training process can be accessed from here.
This app can be tested live by cliking on the link below
Click Here

Working Demo

Here is the link for a demo video.

Click Here

Understanding The Problem Statement

According to the survey done by 'The Times of Inidia', nearly 40% of road accidents are caused by sleep deprivation. Fatigued drivers, long-duty driving are the major causes for the same. To solve this issue, this app primarily aims to predict whether or not the driver is sleeping, if found sleeping, it alerts the driver by making a high-frequency sound. This project is to avoid such sleep deprivation accidents!

Implementation

  1. A Deep Learning Model will be trained to detect whether the driver's eyelids are open or not. This will be achieved by training a Convolutional Neural Network using Tensorflow.
  2. A web-cam will take a picture of the driver's face at regular intervals of time and the patch of the driver's eye will be extracted from that picture. This task will be achieved by using OpenCV.
  3. This patch will be further used for the prediction purpose with the model trained in step 1.
  4. Using this prediction, if the driver's eyes are closed a beep sound will be played, to alert the driver.

Drowsiness Detetction Model Insights

This model is trained with the help of TensorFlow and is based upon convolutional neural networks. It takes RGB images with the dimensions (86 * 86 * 3).

Model Architecture

Layer NumberLayer TypeOutput ShapeTrainable ParametersActivation Funtion
1CONV2D(None, 84, 84, 75)2,100Relu
2MaxPooling2D(None, 16, 16, 75)0None
3Conv2D(None, 15, 15, 64)19,264Relu
4MaxPooling2D(None, 7, 7, 64)0None
5Conv2D(None, 5, 5, 128)73,856Relu
6MaxPooling2D(None, 2, 2, 128)0None
7Flattern(None, 512)0None
8Dense(None, 64)32,832Sigmoid
9Dense(None, 2)130Softmax

Eye_patch_Extractor_and_predictor Insights

This model uses OpenCV's "Haar Cascade Classifier" for face detection and after the proposal of the region of interest, it extracts the eye patch by the "Centroid Method" developed by us. These extracted features will be then passed to the trained model for Drowsiness Detection.

hackulus21-drowsiness-detection-web-app's People

Contributors

mayureshagashe2105 avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.