DeepSegmenter: Temporal Action Localization for Detecting Anomalies in Untrimmed Naturalistic Driving Videos

Armstrong Aboah, Ulas Bagci, Abdul Rashid Mussah, Neema Jakisa Owor, Yaw Adu-Gyamfi · DOI

Abstract

Real-world driver monitoring requires identifying specific anomalous behaviors within continuous, untrimmed video streams. This paper presents DeepSegmenter, a hybrid framework designed for Temporal Action Localization (TAL) in naturalistic driving environments. By combining deep learning-based keypoint detection with geometric heuristics for segmentation and an efficient 3D Convolutional Neural Network (CNN) for classification, DeepSegmenter addresses the dual challenge of determining both the timing and the nature of unsafe driving actions. Evaluated on the 2023 AI City Challenge Track 3 dataset, the system demonstrates robust performance in identifying 15 distinct anomaly categories across diverse driving conditions.

Introduction

Most contemporary research in driver activity recognition focuses on classification within pre-clipped, short-duration video segments. However, Advanced Driver Assistance Systems (ADAS) operate in the real world, where video feeds are continuous and "untrimmed." In these scenarios, anomalous behaviors—such as texting, reaching for objects, or distracted driving—occur sporadically against a baseline of normal driving.

To be effective, a system must perform Temporal Action Localization (TAL). This involves accurately identifying the start and end timestamps of an event (segmentation) while simultaneously classifying the specific behavior. The primary challenges include the high variability of action durations, subtle differences between normal and anomalous movements, and the computational constraints of real-time processing.

Methodology

The DeepSegmenter framework utilizes a four-stage pipeline to transform raw pixels into localized action labels.

1. Data Module

The initial stage standardizes the input video. It performs resolution normalization and pixel value scaling to ensure consistency across various lighting conditions, camera hardware, and vehicle interiors. This preprocessing is critical for maintaining the accuracy of downstream feature extraction.

2. Activity Segmentation Module

Rather than relying on a computationally expensive end-to-end temporal model, DeepSegmenter employs a hybrid approach for the "where and when" problem. The system uses YOLOv7 to detect human keypoints (eyes, nose, and hands) in every frame. A heuristic-based algorithm then monitors the geometric angles of the driver's head and hands. When these angles exceed predefined thresholds—indicating the driver has looked away or moved their hands from the steering wheel—the system triggers an "event" segment for further analysis.

3. Classification Module

Once a segment is isolated, it is processed by an X3D (Expansion of 3D) architecture. X3D is a highly efficient 3D CNN that factorizes convolutions, allowing it to capture spatiotemporal features (movement over time) without the massive computational overhead associated with traditional 3D networks. This module classifies the isolated segment into one of 15 anomaly categories, such as "Texting (Right)" or "Reaching Behind."

4. Postprocessing Module

To ensure the reliability of the output, a postprocessing step filters out transient detections. Any identified event lasting less than one second is discarded as a potential false positive or "flicker." This step aligns the model's output with the logical duration of human actions.

Experimental Setup and Dataset

The model was trained and evaluated using the 2023 AI City Challenge Track 3 dataset (Naturalistic Driver Action Recognition). This dataset provides a rigorous testing ground for TAL systems:

  • Scale: 210 video clips totaling approximately 34 hours of footage.
  • Diversity: Features 35 different drivers performing 16 distinct tasks (15 anomalies plus normal driving).
  • Complexity: Each vehicle utilized three camera angles. Drivers performed tasks both with and without "appearance blocks," such as sunglasses or hats, which can obscure keypoints.
  • Anomaly Classes: Behaviors include texting (left/right), talking on the phone, eating, reaching behind, and singing/dancing.

Results and Discussion

DeepSegmenter achieved an activity overlap score of 0.5426 on the experimental validation data and earned 8th place in the 2023 AI City Challenge, Track 3.

A key finding of this research is the effectiveness of combining deep learning for feature extraction (keypoints) with geometric heuristics for segmentation. This hybrid approach significantly simplifies the search space for the classifier, allowing the X3D model to focus on high-quality, relevant segments. Furthermore, the system proved capable of differentiating between visually similar tasks, such as "Texting (Right)" versus "Phone Call (Right)," by leveraging the temporal context provided by the 3D CNN.

Conclusion and Future Work

DeepSegmenter provides a lean and effective framework for detecting anomalies in untrimmed driving videos. While the current reliance on fixed thresholds for head and hand angles is effective, it presents limitations if camera angles change significantly or if a driver’s movements are particularly subtle.

Future iterations of this work will explore adaptive thresholding to learn the "normal" range for individual drivers and the integration of a fully learnable temporal proposal network. Additionally, the authors aim to implement multi-camera fusion to better resolve occlusions, such as when a driver's hand is hidden from a single camera's perspective.

Summary updated

BibTeX
@misc{aboah2023deepsegmenter,
  author = {Armstrong Aboah and Ulas Bagci and Abdul Rashid Mussah and Neema Jakisa Owor and Yaw Adu-Gyamfi},
  title = {{DeepSegmenter: Temporal Action Localization for Detecting Anomalies in Untrimmed Naturalistic Driving Videos}},
  year = {2023},
  eprint = {2304.08261},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2304.08261},
}
Figure