A two stage pipeline for driver drowsiness detection. YOLOv8n detects the face region. A CNN predicts active vs drowsy. Grad-CAM shows which region influenced the CNN output. Fuzzy logic converts the probability into risk levels to reduce false alarms.
|-- results/
| |-- gradcam_samples/
| |-- report.txt
| |-- confusion_matrix.png
|-- src/
| |-- Drowsiness Detection.ipynb
|-- docs/
| |-- methodology.md
| |-- train.md
| |-- dataset.md
| |-- inference.md
|-- requirements.txt
|-- README.md
- Dataset details:
docs/dataset.md - Full methodology:
docs/methodology.md - Training steps:
docs/train.md - Inference steps:
docs/inference.md
| Sample | Preview |
|---|---|
| 1 | ![]() |
| 2 | ![]() |
See: results/report.txt
- All steps are implemented in
src/Drowsiness Detection.ipynb. - The docs explain the same pipeline in paper friendly form.



