Coder Social home page Coder Social logo

matjaz12 / driver-drowsiness-prediction Goto Github PK

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

Frame Level Driver Drowsiness Prediction

License: Creative Commons Attribution 4.0 International

Jupyter Notebook 76.94% Python 22.61% Shell 0.44%
computer-vision deep-learning drowsiness-detection residual-masking-network resmasknet retinaface ensamble-methods

driver-drowsiness-prediction's Introduction

Frame Level Driver Drowsiness Prediction

Implementation of a driver drowsiness prediction system. The Prediction Pipeline has two stages. In stage one we detect the drivers face, using a pre-trained retinaface model, the detected face is than fed into a ResMaskNet model, which was pretrained on the FER2013 dataset, and finetuned for Driver Drowsiness Prediction. We fine-tune the model on a custom dataset called FL3D (dataset consisting of frames from NITYMED, hand annotated by us). For more information please read Frame Level Driver Drowsiness Prediction.

OOD Test

To evaluate models ability to generalize to out of distribution data, we used the following dataset: roboflow-driver-drowsiness-detection.

Example predictions

You can take a look at the rest of predictions, including failure cases in: Predicitons.

Alert

Microsleep

Yawn

Performance Evaluation

The following is the performance on the ood dataset:

(face-detector) mean_iou: 0.51, n_detector_fails: 2
(driver-state predictor) acc: 0.83, precision: 0.83, recall: 0.76, f1-score: 0.78

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.