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.
Results on validation data:
Accuracy = 0.9946492271105827 Precision = 0.9946679011299983 Recall = 0.9946492271105827
Confusion matrix