Skip to content

An AI-powered web application built using Tensorflow and Streamlit to ensure a driver's safety by monitoring their levels of distraction and drowsiness.

License

Notifications You must be signed in to change notification settings

adityashukzy/SteerSecure

 
 

Repository files navigation

SteerSecure

Driver Safety and Security

Data

Dataset Used: State Farm Distracted Driver Detection.

You may find the dataset for distracted drivers below at:

https://www.kaggle.com/c/state-farm-distracted-driver-detection

Devfolio Project Page & Youtube Demo Video

SteerSecure was built as Pooja Ravi and Aditya Shukla's official submission at Octahacks 3.0, a 36 hour virtual hackathon, hosted by Chitkara University. Check out our Devfolio submission page and a Youtube video demonstrating SteerSecure below.

Devfolio Page: https://devfolio.co/submissions/steersecure

Youtube: https://www.youtube.com/watch?v=zp9t6rTe8Ws

Description

SteerSecure is a driver-safety app built using machine learning libraries such as Tensorflow and OpenCV, and scripted and deployed to the web using Streamlit. Our aim with SteerSecure is to make vehicular travel safer. Our three primary web-applications are:

  • Distraction Detection
  • Drowsiness Detection
  • Chatbot to provide insight into our web app

The data is very clear: more than 30% of accidents are caused due to fatigue caused by long, nonstop hours of driving and sleep-deprivation. A large majority of accidents are also caused by distracted drivers: texting, speaking to passengers, talking on the phone, etc. Such accidents cause more than 400 deaths everyday in India. Not only is it a tragic loss of life, but it also costs our economy upwards of 1 trillion rupees every year.

Our goal, very simply, is to curb this loss of life and property as best we can. SteerSecure aims to discourage distracted drivers and encourage drowsy drivers to take rest, or pull over before continuing on the journey later.

Problem Statement

As statistics show, there occur more than 400 deaths per day in India only due to drivers getting distracted or too drowsy to keep their eyes on the road. So, we decided to build an application called SteerSecure to tackle this problem. Our deep learning based web application is built for driver safety; it contains components like distraction detection, drowsiness detection and a chatbot for informing customers about information regarding driver safety, app usage and navigation through different components.

Features of SteerSecure

  • Detect 9 types of distractions faced by drivers like texting, adjusting hair or makeup, talking to a passenger etc.
  • Detect drowsiness and yawns among drivers using real time video from a camera
  • Chatbot provides useful statistics and information regarding our problem statement and usage of SteerSecure web app.

Screenshots of the Web-App

Welcome Page Screen Shot 2020-11-22 at 08 09 26

Distracted Detector Page Screen Shot 2020-11-22 at 08 11 25 Screen Shot 2020-11-22 at 08 11 45

Drowsiness Detector Page Screen Shot 2020-11-22 at 08 10 56 Screen Shot 2020-11-22 at 08 11 11

Nav ~ the Chatbot Screen Shot 2020-11-22 at 08 12 42

Challenges Faced

  1. Deploying to Streamlit and Heroku failed for a number of reasons, including working in different OSes and Conda environments but mostly due to size of the imports and the resource limits.
  2. Getting the webcam to shut off after Stop button is pressed on Streamlit to preserve user privacy.
  3. Getting correct predictions in notebook but incorrect ones in our web-app for distracted drivers.
  4. We were not able to solve the last issue entirely but definitely look forward to doing so in the future!

Future Developments to SteerSecure:

  1. Integrate with an interface inside your car, similar to a dashboard, for quick access to our services
  2. Chatbot automatically sends messages to your loved ones alerting them if it notices regular patterns of drowsiness or Distraction
  3. Car slows down and pulls over automatically when the SteerSecure app detects driver getting very drowsy
  4. Car can also automatically go into self-driving mode when it detects that the user is too exhausted

Contributors

Aditya Shukla

Aditya Shukla

Pooja Ravi

Ansh Sharma

License

MIT © Pooja Ravi

This project is licensed under the MIT License - see the License file for details

License

Made with ❤️ by Team Armada

About

An AI-powered web application built using Tensorflow and Streamlit to ensure a driver's safety by monitoring their levels of distraction and drowsiness.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 99.4%
  • Shell 0.6%