Skip to content

Real-Time Fatigue Monitoring with Dual CNN Models for Face & Eye Status. This is a real-time safety system designed to monitor driver alertness using Tensorflow. Built from scratch using Convolutional Neural Networks (CNNs), the system tracks eye and face status independently and triggers alerts when signs of drowsiness exceed a defined threshold.

Notifications You must be signed in to change notification settings

Venkat-023/Driver_Drowsiness_Alerting_System

Repository files navigation

๐Ÿ˜ด Driver Drowsiness Detection Using CNN High-Accuracy Real-Time Fatigue Monitoring with Deep Learning

A real-time Driver Drowsiness Detection System built using custom Convolutional Neural Networks (CNNs) to enhance road safety by monitoring driver alertness. The system independently analyzes facial state and eye state using deep learning models and triggers alerts when fatigue is detected.

๐Ÿš€ Key Highlights

๐Ÿ”ฌ Designed, trained, and evaluated 15+ custom CNN architectures

๐Ÿ“Š Final model performance:

๐Ÿ”น Face State Model Accuracy: 98.4%

๐Ÿ”น Eye State Model Accuracy: 98.71%

๐Ÿง  Researched and curated driver-focused datasets from Kaggle

๐ŸŽฅ Real-time video processing using OpenCV

โœ‚๏ธ MediaPipe-based face cropping during dataset preparation to remove background noise

๐Ÿšจ Intelligent alert system with user acknowledgment

โšก Optimized for real-time inference

๐Ÿง  System Architecture & Workflow

Live video feed captured using webcam

Face & eye detection using Haar Cascades

Preprocessed inputs:

Grayscale conversion

Resizing

Normalization

Independent CNN inference:

Eye State Model โ†’ Open / Closed

Face State Model โ†’ Alert / Drowsy

Decision logic with temporal smoothing

Threshold-based alert activation

User acknowledgment required to resume monitoring

๐Ÿงช Dataset Preparation

๐Ÿ“ฆ Datasets sourced from Kaggle

โœ‚๏ธ MediaPipe Face Detection used to:

Crop only the driverโ€™s face

Remove background clutter

Improve model generalization

๐Ÿงผ Cleaned, labeled, and balanced datasets for robust training

๐Ÿงฐ Tech Stack

Programming Language: Python 3.x

Deep Learning: TensorFlow, Keras

Computer Vision: OpenCV, Haar Cascades

Face Processing: MediaPipe

Data Handling: NumPy

Visualization: Matplotlib

๐Ÿšจ Alert Mechanism

Maintains a drowsiness score across frames

Triggers alarm if threshold is exceeded

Requires manual user confirmation to prevent false positives

Ensures continuous and reliable monitoring

๐Ÿ’ก Applications

๐Ÿš— In-vehicle driver monitoring systems

๐Ÿšš Fleet safety and fatigue management

๐Ÿง  AI-based behavioral analysis

๐Ÿ›ฃ๏ธ Accident prevention systems

๐Ÿ”ฎ Future Enhancements

๐Ÿ‘๏ธ Facial activity monitoring

Trigger alerts when facial movement falls below a threshold

๐ŸŽฏ Driver attention & distraction detection

Detect gaze diversion and prolonged inattention

๐Ÿ”Š Audio & vibration-based alert systems

๐Ÿ“ฑ Edge deployment for mobile and embedded systems

๐Ÿ Conclusion

This project demonstrates a robust, real-time AI-powered drowsiness detection system combining deep learning and computer vision. Its modular design, high accuracy, and intelligent alerting logic make it suitable for real-world safety applications.

About

Real-Time Fatigue Monitoring with Dual CNN Models for Face & Eye Status. This is a real-time safety system designed to monitor driver alertness using Tensorflow. Built from scratch using Convolutional Neural Networks (CNNs), the system tracks eye and face status independently and triggers alerts when signs of drowsiness exceed a defined threshold.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published