Driver fatigue causes serious road accidents, and drowsiness is usually noticed only when it is too late.
A camera-based AI system that detects drowsiness from facial cues and alerts the driver instantly.
Computer vision, facial landmark analysis, stacked ensemble learning.
Early warnings that give drivers time to react, rest or hand over - before an accident happens.
Driver fatigue is one of the most dangerous and least visible causes of road accidents. Long-haul truck drivers, cab and bus drivers, and delivery fleets often drive for long hours and at night, when the risk of drowsiness is highest. Unlike speeding, drowsiness is hard to measure and often goes unnoticed until it is too late.
TokenWave AI developed a real-time driver drowsiness detection system that uses an in-cabin camera to monitor the driver's eyes and facial cues. When signs of fatigue appear - such as prolonged eye closure, frequent blinking or yawning - the system immediately raises an alert, giving the driver time to react.
Transportation and logistics businesses depend on drivers covering long distances under tight delivery schedules. Night driving, monotonous highways and irregular sleep patterns all increase the likelihood of fatigue.
Most fleets have no reliable way to know when a driver is becoming drowsy. Supervisors cannot monitor drivers continuously, and drivers themselves often underestimate how tired they are. By the time fatigue is obvious, the risk of an accident is already high.
Drowsiness builds gradually and is rarely noticed by the driver until a dangerous moment occurs.
Commercial drivers often work extended shifts, increasing fatigue risk.
Fleet managers cannot observe driver alertness in real time.
Varying cabin lighting, head movement, spectacles and night conditions make detection difficult.
We followed a structured, problem-first process - understanding the real-world problem before choosing the technology, and validating every stage before moving to the next.
We identified the visual indicators most strongly associated with drowsiness - eye closure duration, blink frequency, yawning and head nodding.
Facial image and video data covering alert and drowsy states were prepared, including variations in lighting, head pose and eyewear.
Computer vision techniques were used to locate the face and extract eye and mouth features in each frame, tracking how they change over time.
Multiple base models were trained and combined through a stacked ensemble, so their strengths complement each other and predictions remain reliable across conditions.
The system was optimised for real-time performance, with alert logic designed to warn the driver promptly while avoiding false alarms from normal blinking.
A real-time AI system that monitors a driver's eyes and facial cues through an in-cabin camera and raises an alert the moment signs of drowsiness appear.
In-cabin camera captures the driver's face
Face, eyes and mouth are located
Eye closure, blinking and yawning are measured
Stacked ensemble assesses drowsiness
Drowsiness level is determined
Driver is alerted instantly
Continuously analyses the driver's face while the vehicle is moving.
Combines eye closure, blink rate and yawning for reliable detection.
Combines several models for higher reliability than any single model.
Audible and visual warnings the moment drowsiness is detected.
Designed to handle changes in lighting, head movement and eyewear.
Drowsiness events can be logged for fleet safety analysis.
Drivers are alerted at the first signs of fatigue, before control is lost.
Operators gain visibility into fatigue risk across their drivers.
Timely alerts help prevent accidents that endanger drivers, passengers and the public.
“Most drowsy drivers do not realise how tired they are. A timely alert can be the difference between a safe journey and a tragedy.”
— TokenWave AI Project Team
This case study describes an in-house research and development project by TokenWave AI. Outcomes are described qualitatively; actual performance depends on the data, environment and scale of each deployment. Want to apply this solution to your business? Book a free consultation.
Tell us about it in a free, no-obligation working session. We will show you where an agent fits, what it would take and how you would measure the result.
Book a Free Session