Computer Vision · AI/MLIn Development — Research & Implementation

DriveGuard

Computer Vision & Real-Time Driver Inattention Detection System

DisciplineComputer Vision · AI
StatusIn Development — Research & Implementation
Lead EngineerMichael Umoize
ArchitectureDocumented
DriveGuard - Display Image

Engineering Overview

DriveGuard is an intelligent vehicular safety and computer vision system engineered to mitigate road accidents caused by driver fatigue and inattention. The project monitors driver alertness in real time through an optimized video inference pipeline. The system utilizes facial landmark tracking to continuously measure Eye Aspect Ratio (EAR) over temporal sliding windows, differentiating natural blinks from dangerous microsleep episodes and prolonged eye closures. Concurrently, head pose estimation computes 3D head rotation (yaw, pitch, roll) to flag cognitive distraction when the driver looks away from the road for sustained durations. A yawning detection module computes Mouth Aspect Ratio (MAR) to evaluate cumulative fatigue. Built in Python with OpenCV and PyTorch, DriveGuard is architected into modular stages separating video frame acquisition, landmark inference, temporal metric smoothing, and decision-logic alerting. Ongoing research focuses on edge hardware deployment and infrared (IR) camera calibration for low-light cabin environments.
System Architecture Pipeline
Data Flow Contract
Live Video Stream → Facial Landmark Extraction (MediaPipe / OpenCV) → Geometric Feature Vectors (EAR, MAR, 3D Head Pose) → Temporal Moving-Average Filter → Real-Time Fatigue Decision Logic → Acoustic / Visual Alert Engine

Key Implementations & Technical Features

Real-time facial landmark detection and continuous eye boundary tracking
Temporal Eye Aspect Ratio (EAR) computation to detect microsleep events and severe drowsiness
3D head pose estimation (yaw, pitch, roll) to detect sustained driver distraction from the roadway
Mouth Aspect Ratio (MAR) tracking to identify fatigue indicators such as yawning
Temporal moving-average smoothing to prevent false positives from natural eye blinks
Research
Distinction between implemented landmark vision pipelines and ongoing hardware bench research
Research
Ongoing research: Bench testing with IR illumination for nighttime cabin reliability
Research
Ongoing research: Lightweight ONNX model quantization for edge deployment

Technologies & Libraries

PythonOpenCVPyTorchMediaPipeNumPyFastAPI