Code Monkey home page Code Monkey logo

driver-drowsiness-detection's Introduction

Driver-Drowsiness-Detection

Drowsy driving is the dangerous combination of driving when sleepy. This usually happens when a driver has not slept enough, but it can also happen because of untreated sleep disorders or shift work. Prescription and over-the-counter medications can also cause drowsiness, and alcohol can interact with sleepiness to increase both impairment and drowsiness.

This ML Model Detects a Drowsy Driver, and alet them about the danger.

Accuracy

Validation Accuracy = 0.9225 (92%). Data Set Of 48K images.

Dataset

This dataset is just one part of The MRL Eye Dataset, Our dataset includes 24K images for both closed and open eye categories.

Training images : 38400

Validation images : 9600

Dataset has been already balanced,i.e both categories have same num of images. Thus, we shall only look at Accuracy metric.

Key metric to consider model performance -> val_categorical_accuracy.

Limitation

Model have a set value of drowsyness scale at 23, when actual Score should be 13. This is because dataset of eyes with spectacles is have less dataset which tend to give "Not so good Results" when score =13.

ConvNet Model

A convolutional neural network can have tens or hundreds of layers that each learn to detect different features of an image. Filters are applied to each training image at different resolutions, and the output of each convolved image is used as the input to the next layer. The filters can start as very simple features, such as brightness and edges, and increase in complexity to features that uniquely define the object.

1669126552865

Consider using CNNs when you have a large amount of complex data (such as image data). You can also use CNNs with signal or time-series data when preprocessed to work with the network structure. 1669126552882

Model: "sequential" pipeline

No, of layers: 10

image

image

Model Accuracy

download

Model Loss

download

driver-drowsiness-detection's People

Contributors

viratsrivastava avatar jv456 avatar sandeepanchakraborty avatar devanshmittalexe avatar saubhagya02 avatar

Stargazers

 avatar  avatar

Watchers

 avatar

driver-drowsiness-detection's Issues

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.