Coder Social home page Coder Social logo

varunsh20 / distracted-driver-detection Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 1.89 MB

The goal of this project is to train a deep learning model that takes the image of a driver as an input and predicts the likelihood of what the driver is doing in each picture.

License: MIT License

Jupyter Notebook 100.00%
keras-tensorflow neural-network cnn-keras

distracted-driver-detection's Introduction

Distracted-driver-detection

In this project a deep learning model is trained to classify the images of the driver captured by dashboard camera into 10 different classes based on their activity.The goal is to predict the likelihood of what the driver is doing in each picture.

The 10 classes are:

  • c0: safe driving
  • c1: texting - right
  • c2: talking on the phone - right
  • c3: texting - left
  • c4: talking on the phone - left
  • c5: operating the radio
  • c6: drinking
  • c7: reaching behind
  • c8: hair and makeup
  • c9: talking to passenger

The dataset is obtained from kaggle. Here is the link to the dataset https://www.kaggle.com/c/state-farm-distracted-driver-detection

Here no pre-trained model is used and a lot of models were trained until we got our best model that is able to achieve 99% accuracy on both training and validation data.

Structure of our model:

Screenshot (171) Screenshot (172)

Performance of model:

Results on validation data:

Accuracy = 0.9946492271105827 Precision = 0.9946679011299983 Recall = 0.9946492271105827

Confusion matrix

dd1

Some of the results predicted by our model are as follows:

Screenshot (134) Screenshot (135) Screenshot (136) Screenshot (137) Screenshot (138) Screenshot (139)

distracted-driver-detection's People

Contributors

varunsh20 avatar

Watchers

 avatar

distracted-driver-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.