Long-term Multi-granularity Deep Framework for Driver Drowsiness Detection

Jie Lyu, Zejian Yuan, Dapeng ChenarXiv 2018

TL;DR

The authors present a Long-term Multi-granularity Deep Framework (LMDF) that achieves state-of-the-art driver drowsiness detection by combining parallel CNNs for spatial feature extraction with LSTMs for temporal modeling. By using well-aligned facial patches at multiple granularities, the system remains robust to large head pose variations while accurately distinguishing between similar-looking states like yawning and laughing.

What Problem Does This Paper Address?

Detecting driver drowsiness from video is challenging due to two main factors: spatial deformation and temporal ambiguity.

First, drivers frequently change their head pose (e.g., looking aside or down), which causes significant deformation of facial features and makes global face representations unreliable. Second, many facial expressions are visually similar in a single frame but differ over time—for instance, a quick blink versus a drowsy eye closure, or yawning versus laughing/speaking. Previous methods often failed to handle these large pose variations or lacked the temporal depth to model variable-length dependencies effectively.

Methods

The proposed LMDF architecture consists of three integrated stages:

  1. Well-aligned Multi-granularity Patches: Using face alignment technology, the system identifies 51 landmarks to crop patches at three levels of detail: a global face view, main parts (eyes, nose, mouth), and fine-grained local regions (corners of eyes, sides of nose). This ensures that the input features are consistently aligned regardless of the driver's pose.
  2. Multi-granularity CNN (MCNN): A set of parallel CNN paths processes these patches independently. The resulting features are then fused by a fully-connected layer to create a comprehensive spatial representation vector that captures both local details and global spatial constraints.
  3. Deep LSTM Network: A three-layer Long Short-Term Memory (LSTM) network takes the sequence of MCNN features to model temporal dynamics. This allows the framework to "remember" previous frames and distinguish between transient actions and sustained drowsy states.
Fig. 2. The procedure of extracting multi-granularity facial patches which include the main parts, local regions and global face such three granularities.
Fig. 1. The long-term multi-granularity deep framework for driver drowsiness detection. The first stage is well-aligned multi-granularity patches which consist of local regions, main parts and global face. Parallel convolutional layers are well-applied to process patches respectively and fully connected layer fuses local and global clues and generates a representation, which is the second stage of the framework. The first two stages construct the Multi-granularity CNN (MCNN). Recurrent Neural Network (RNN) with multiple LSTM blocks mining the clues in temporal dimension together with a fully connected layer form the third stage.

Datasets

  • NTHU-DDD: The standard public benchmark for driver drowsiness, featuring 18 volunteers in five scenarios (e.g., night driving, wearing sunglasses).
  • FI-DDD (Forward Instant Driver Drowsiness Detection): A new dataset introduced by the authors. They relabeled NTHU-DDD videos using an "instant principle" to provide higher temporal precision, ensuring that labels reflect the driver's state within a tight 0.5-second window. This dataset was used to analyze the sub-networks more effectively.
  • Static Image Set: A collection of frames sampled from FI-DDD used specifically to train and evaluate the spatial MCNN component.

Key Insights and Ideas

  • The Power of Alignment: The authors demonstrate that aligned sampling (AS) is significantly more accurate than uniform or specific non-aligned sampling. Even with small errors in landmark detection (up to 5 pixels), the MCNN remains robust.
  • Granularity Synergy: While the "main parts" (eyes, nose, mouth) are the most critical for detection, fusing them with global and local clues provides the best overall performance. Different physiological parts have different optimal scales, and a multi-granularity approach captures this naturally.
  • Temporal Context is Essential: The addition of LSTMs provided a massive 15.6% accuracy boost over using CNN features alone. This highlights that drowsiness detection is not just about what the face looks like, but how it changes over time.

Key Results

  • State-of-the-Art Accuracy: The framework achieved 90.05% accuracy on the NTHU-DDD evaluation set, outperforming previous methods like MSTN (85.52%).
  • Real-Time Performance: The system runs at approximately 37 fps on a GPU (Tesla M40), meeting real-world deployment requirements.
  • Ablation Study: On the FI-DDD dataset, the full MCNN+LSTM model reached 88.3% accuracy, compared to just 72.7% for the MCNN-only version, proving the necessity of temporal modeling.
Comparison of accuracies achieved via MCNN only and MCNN+LSTMs across different granularities.

Limitations and Future Work

The authors note that while the system is highly effective for frontal and near-frontal faces, extreme pose variations might still pose a challenge. Additionally, while the framework achieves real-time speeds on a high-end GPU, the current CPU implementation (~3 fps) is too slow for many embedded automotive systems. Future work could focus on model compression or more efficient architectures to bring this high-level performance to low-power hardware.

Summary updated

BibTeX
@misc{lyu2018long,
  author = {Jie Lyu and Zejian Yuan and Dapeng Chen},
  title = {{Long-term Multi-granularity Deep Framework for Driver Drowsiness Detection}},
  year = {2018},
  eprint = {1801.02325},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1801.02325},
}
Figure