Real-Time In-Cabin Driver Behavior Recognition on Low-Cost Edge Hardware

Vesal Ahsani, Babak Hossein KhalajarXiv 2025 · DOI

Abstract

Driver Monitoring Systems (DMS) are essential for modern Advanced Driver Assistance Systems (ADAS), yet deploying them on low-cost edge hardware remains challenging due to computational constraints and real-world environmental noise. This paper introduces a robust, real-time DMS designed for devices like the Raspberry Pi 5 and Google Coral Edge TPU. The system employs a lightweight YOLOv8-based vision model, a confounder-aware taxonomy of 17 classes, and a temporal decision head to ensure alert stability. Results show that this integrated approach achieves up to 25 FPS on edge hardware while reducing false alerts by 83% compared to baseline models.

Introduction

Modern vehicle safety standards increasingly mandate Driver Monitoring Systems to detect distraction and drowsiness. However, moving from high-accuracy offline benchmarks to reliable real-world deployment is non-trivial. In-cabin environments present significant challenges, including abrupt lighting changes, camera vibrations, and visual occlusions like sunglasses or masks. Furthermore, standard frame-level models often suffer from "jitter"—rapidly flickering predictions—and confuse benign actions (e.g., grooming) with dangerous distractions (e.g., phone use). To address these issues, we propose an end-to-end pipeline optimized for low-latency, privacy-preserving on-device execution.

System Architecture

The proposed system treats driver monitoring as a holistic pipeline rather than a simple classification task. The architecture consists of six primary stages designed to minimize latency while maximizing alert reliability.

  1. Capture and Preprocessing: RGB frames are captured and subjected to resizing, normalization, and optional Region of Interest (ROI) cropping to focus on the driver.
  2. Per-Frame Inference: A compact vision model (YOLOv8-based, ~15.8M parameters) generates probabilities for 17 distinct classes. The model is quantized to INT8 for edge compatibility.
  3. Confounder-Aware Taxonomy: By explicitly training on "confounder" classes—actions that look like distractions but are benign (e.g., adjusting a GPS or grooming)—the model learns to distinguish between similar visual patterns, reducing false positives.
  4. Temporal Decision Head: To prevent jitter, the system uses a confidence and persistence gate. An alert event is only triggered if a behavior is detected with high confidence over a sustained temporal window (e.g., ~1 second).

Dataset and Training

The model was trained on a diverse dataset of over 800,000 labeled frames. This collection includes data from more than 10 vehicle types and covers various lighting conditions (day, night, infrared) and driver appearances. To ensure generalization, the authors utilized a strict 80/10/10 driver-disjoint split. The dataset was specifically enriched with "hard examples," such as small objects (phones, cigarettes) and mirror-gaze scenarios, to improve the model's ability to differentiate between safe driving behaviors and subtle distractions.

Experimental Results

The system was evaluated on low-cost edge hardware to measure real-world performance and latency.

Hardware Acceleration Latency (ms) Throughput (FPS)
Raspberry Pi 5 CPU-only (INT8) < 60 ~16
Google Coral Edge TPU (INT8) ~40 ~25

Beyond throughput, the impact of the system-level innovations was measured via an ablation study. The baseline per-frame model achieved a Macro-F1 score of 0.71 with a high false alert rate of 1.80 per minute. Integrating the confounder-aware taxonomy and the temporal decision head improved the Macro-F1 to 0.82 and reduced the false alert rate to 0.30 per minute, a significant improvement for driver acceptance.

Conclusion

This work demonstrates that reliable, real-time driver monitoring is achievable on sub-$100 edge hardware. By shifting focus from pure frame-level accuracy to temporal event stability and confounder handling, the system provides a deployable solution for enhancing vehicle safety. Future work aims to expand this framework into a comprehensive Occupant Monitoring System (OMS), capable of tracking multiple passengers to provide a more holistic understanding of the in-cabin environment.

Summary updated

BibTeX
@misc{ahsani2025real,
  author = {Vesal Ahsani and Babak Hossein Khalaj},
  title = {{Real-Time In-Cabin Driver Behavior Recognition on Low-Cost Edge Hardware}},
  year = {2025},
  eprint = {2512.22298},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2512.22298},
}
Figure