Application overview
Driver Monitoring Systems (DMS) are becoming mandatory safety features in modern vehicles, with regulations such as Euro NCAP requiring driver attention monitoring in order to achieve top safety ratings. Traditionally, automotive manufacturers have used vision-based systems to meet these requirements. The systems use cabin-facing cameras to continuously monitor the driver’s state to detect drowsiness, distraction and improper driving posture.
DMS applications must perform multiple concurrent tasks such as face detection and tracking, facial landmark localization for head pose estimation, eye gaze direction tracking, eyelid closure detection (PERCLOS – percentage of eye closure) and distraction classification (looking at phone, adjusting controls, etc.). AI and machine learning algorithms are well suited for accomplishing these tasks accurately.
TI’s processors equipped with C7™ NPU deliver the computational performance needed for real-time multi-task DMS while operating within the thermal and power constraints of automotive cabin environments.
Privacy is also a critical consideration for DMS. On-device edge AI processing ensures that all monitoring occurs locally without transmitting facial images to the cloud, protecting driver privacy while meeting regulatory requirements.
Starting evaluation
Data collection
Face detection is a common vision AI task with multiple public datasets available. TI’s face detection models were pretrained on the WIDER FACE dataset, a popular face detection benchmark dataset consisting of over 32,000 images with more than 393,000 labeled faces.
Data can be collected manually if your use-case requires maximal accuracy in specific scenes or conditions. It is best to collect data with the same type of camera (lens included) planned for production.
Data quality assessment
Driver monitoring systems must operate reliably under varying cabin lighting conditions and across all driver demographics, and thus the training data must capture the diversity of real-world drivers and cabin environments.
Build and train your model
Developers may start with face detection models in the TI Model Zoo. These models are pretrained on the WIDER FACE dataset, and then can be trained on a custom dataset, which significantly reduces the number of data samples needed (by several orders of magnitude). Though a proof-of-concept model may only need a few dozen images, following this format is extremely beneficial for production models which may require several hundreds to thousands of samples for robustness.
Advanced developers may choose to instead train their own models for face detection and other DMS tasks using frameworks such as PyTorch and Tensorflow. The models can then be exported to ONNX or LiteRT formats and compiled with our deep learning software like edgeai-tidl-tools to be accelerated on the C7™ NPU for TI processors.
Find the right model for your needs
Model selection depends on the specific DMS features required and regulatory compliance targets. Regulatory requirements drive many DMS specifications. For example, to achieve Euro NCAP compliance for driver engagement, the system must detect specific distraction types. These include long distractions (a gaze away from the road for 3-4 seconds), visual attention time sharing (VATS) events (accumulation of repeated short glances away from the road), phone use and signs of drowsiness or even non-fatigue related impairment.
Benchmark data in Edge AI Studio shows model performance on TDAx hardware. Key metrics include latency per frame, FPS throughput and detection accuracy.
Deploying your model
DMS deployment requires compiling all pipeline stage models for TIDL acceleration on C7x+MMA cores. Models in ONNX or LiteRT format are compiled to run on the C7™ NPU using edgeai-tidl-tools. Multi-model pipelines must be scheduled efficiently. For example, face detection runs on every frame, while downstream tasks, such as landmark detection and gaze estimation, operate only on detected face regions.
A DMS pipeline may integrate multiple processing stages, for example:
1. Camera capture
2. VPAC preprocessing
3. TIDL inference stage 1 – Face detection (every frame)
4. TIDL inference stage 2 – Facial landmark detection (on detected faces)
5. TIDL inference stage 3 – Gaze estimation and drowsiness classification
6. CPU post-processing
For application development, TI’s SDK provides GStreamer and OpenVX based frameworks for composing the complete pipeline. Demo applications implementing full DMS solutions on TI hardware are also available from TI’s Partners SmartEye, SeeingMachines and Tobii.
Choosing the right device for you
Device selection for DMS depends on the number of concurrent AI tasks, camera resolution, frame rate and functional safety requirements. For example, a 2MP camera works well with the AM62A, while higher resolution cameras may need a TDA4x device such as TDA4AEN. Refer to the table below for performance comparison across different devices (benchmarks produced using SDK version 10.1). Note: For comprehensive benchmarks of these devices, use the model selection tool available on Edge AI Studio.
| Product number | Processing core | NPU performance | DMS model benchmarks | |
| YOLOX S Lite (WIDERFACE) (640x640) | YOLOX Tiny Lite (WIDERFACE) (416x416) | |||
| AM62A7 | 4x Arm® Cortex®-A53 + C7™ NPU | 2 TOPS | 37.84 ms 26 FPS | |
| TDA4AEN-Q1 | 4x Arm® Cortex®-A53 + C7™ NPU | 4 TOPS | 27.28 ms 36 FPS | 10.29 ms 97.18 FPS |
| TDA4AL-Q1 | 2x Arm® Cortex®-A72 + C7™ NPU | 8 TOPS | 9.92 ms 100 FPS | 4.9 ms 204 FPS |
| TDA4VH-Q1 | 8x Arm® Cortex®-A72 + 4x C7™ NPU | 32 TOPS | 6.47 ms 154 FPS | 4.92 ms 203 FPS |
All the hardware, software and resources you’ll need to get started
Hardware
AM62A
The AM62A is the lowest-cost AI-accelerated device in the AM6xA family, and is well suited for evaluation. A generic USB camera or webcam can be used for image capture and model evaluation on live data.
TDA4AEN
The TDA4AEN is the entry level device in the TDA4x family. The 4 TOPS of AI performance enable running complex DMS models with low latency.
Software & development tools
The Edge AI processor SDK is Linux-based and includes the necessary software components to run a compiled model with hardware acceleration. Other Edge AI accelerated processors may be substituted for AM62A.
This tool contains tools for training, compiling and deploying a model to TI Edge AI processors. A model selection tool is available to view pre-generated benchmarks of popular models.
Tools for micro processor devices with Linux and TIDL support. TI's edge AI solution simplifies the whole product life cycle of DNN development and deployment by providing a rich set of tools and optimized libraries.
Supporting resources
The Vision Apps framework included in the Processor SDK provides demo applications giving a reference implementation for various edge AI use cases.
This technical white paper describes how the AM62A processor can be used to build automotive grade driver and occupancy monitoring systems.
Bird's Eye View (BEV) in L2/L2+ advanced driver assistance systems (ADAS)
High-performance whole-vehicle perception with BEV networks on TI's AI-accelerated processors
Object detection in vision systems with 25x lower latency
Find and localize specific objects, people in real-time at high framerate with AI-accelerated processors and industry-standard software
Front camera object detection for ADAS
Enable entry ADAS and mandatory features with real-time multi-object detection and classification at greater than 30 FPS using automotive-grade AI-accelerated processors.