Transformer-based Fusion of 2D-pose and Spatio-temporal Embeddings for Distracted Driver Action Recognition

Erkut Akdag, Zeqi Zhu, Egor Bondarev, Peter H. N. de WithWorkshops @ CVPR 2023 · DOI

Abstract

Automated recognition of distracted driver behavior is a critical component for Advanced Driver-Assistance Systems (ADAS). This paper introduces a novel transformer-based architecture that recognizes distracted driver actions by fusing 2D-pose data with spatio-temporal video features. By treating human pose information as a "POSEition" embedding within a transformer encoder, the model effectively captures the structural and motion-based nuances of driver behavior. The proposed system achieved a competitive 0.5079 overlap score in the 2023 NVIDIA AI City Challenge.

Introduction

Distracted driving remains a leading cause of traffic fatalities globally. Developing robust systems to identify behaviors such as texting, drinking, or reaching behind is essential for improving road safety. However, automated recognition in a naturalistic driving environment faces significant challenges, including visual ambiguity between similar actions, temporal complexity in continuous video streams, and frequent occlusions caused by the vehicle's interior.

Overview of the multi-camera action recognition pipeline for various driver actions.

To address these issues, we propose a pipeline that bridges the gap between pure video-based recognition (capturing motion) and pose-based recognition (capturing body structure) through a robust fusion strategy. By integrating multiple camera views and specialized pose embeddings, the system provides a comprehensive view of driver activity.

Proposed Methodology

The proposed architecture consists of four primary stages: feature extraction, feature engineering, transformer-based fusion, and post-processing.

Feature Extraction and Engineering

The system extracts two distinct types of features to represent driver behavior:

  1. Spatio-temporal Features: A SlowFast network, pre-trained on Kinetics-400, is employed to extract high-level motion features from video segments.
  2. 2D-Pose Features: A Faster R-CNN detects the driver, followed by HRNet to extract 133 keypoints. To mitigate noise from common occlusions (e.g., the steering wheel blocking the driver's legs), the keypoints are filtered to a "critical" subset focusing on the face, shoulders, and hands.

Beyond raw coordinates, the model calculates specific "motion vectors," including head pose (via Perspective-n-Point), relative distances between hands and face, and lip positions. These derived features are crucial for distinguishing subtle actions like talking or eating from similar-looking movements.

Transformer-based Fusion

The core innovation of this work is the fusion of these features within a Transformer encoder. Rather than simple concatenation, the 2D-pose features are processed through an LSTM and then utilized as a "POSEition" embedding for the Transformer.

Detailed Transformer-based fusion architecture utilizing POSEition embeddings for multi-camera input.

In this setup, the spatio-temporal features serve as the primary input tokens, while the driver's physical pose provides the context (the "where" and "how" of the action). This allows the model to attend to specific video features based on the driver's physical configuration—for instance, paying closer attention to motion features near the face when hands are detected in that vicinity.

Post-Processing and Multi-Camera Fusion

The model generates frame-based probabilities for each camera view independently. To leverage the multi-camera setup common in modern vehicles (dash, rear, right-side), the system averages probabilities across all views. Final action boundaries are determined using median filtering and peak detection to ensure smooth temporal localization.

Experimental Results

The model was evaluated using the overlap score metric, which combines classification accuracy with temporal localization precision, on the 2023 NVIDIA AI City Challenge Track 3 dataset.

Performance and Ablation Studies

The system achieved a top overlap score of 0.5079 on the A2 test set. Ablation studies highlighted the effectiveness of the fusion strategy:

  • Fusion vs. Baseline: The Transformer fusion model (0.4493) significantly outperformed a baseline spatio-temporal model (0.3703).
  • Feature Impact: Incorporating derived motion vectors (head pose, hand-to-face distance) improved the score from 0.4322 to 0.4493 compared to using raw skeleton data alone.
  • Backbone Comparison: The proposed method also outperformed standard backbones like X3D (0.3136) and SlowFast (0.3459) when those models were used without the pose-fusion architecture.

Discussion and Conclusion

A key insight of this work is the utility of pose as a contextual "positional" embedding. By manually selecting keypoints and engineering domain-specific motion vectors, the model overcomes common pitfalls like leg-area occlusion. Furthermore, the camera-independent processing makes the solution highly generic and adaptable to different vehicle configurations.

Despite its success, the pipeline's multi-stage nature is computationally intensive. Future work will focus on optimizing the architecture for real-time edge deployment and exploring newer, more efficient backbones like VideoMAE to improve both speed and accuracy in resource-constrained environments.

Summary updated

BibTeX
@inproceedings{akdag2023transformer,
  author = {Erkut Akdag and Zeqi Zhu and Egor Bondarev and Peter H. N. de With},
  title = {{Transformer-based Fusion of 2D-pose and Spatio-temporal Embeddings for Distracted Driver Action Recognition}},
  booktitle = {Workshops @ CVPR},
  year = {2023},
  doi = {10.1109/cvprw59228.2023.00576},
}
Figure