A Dynamic Spatial-temporal Attention Network for Early Anticipation of Traffic Accidents

Muhammad Monjurul Karim, Yu Li, Ruwen Qin, Zhaozheng Yin
6/18/2021
cs.CVcs.AI

Official code: monjurulkarim/DSTA (40 stars, Python, MIT, PyTorch, last commit 2023-04-13).

Abstract

The rapid advancement of sensor technologies and artificial intelligence are creating new opportunities for traffic safety enhancement. Dashboard cameras (dashcams) have been widely deployed on both human driving vehicles and automated driving vehicles.

Show full abstract

A computational intelligence model that can accurately and promptly predict accidents from the dashcam video will enhance the preparedness for accident prevention. The spatial-temporal interaction of traffic agents is complex. Visual cues for predicting a future accident are embedded deeply in dashcam video data. Therefore, the early anticipation of traffic accidents remains a challenge. Inspired by the attention behavior of humans in visually perceiving accident risks, this paper proposes a Dynamic Spatial-Temporal Attention (DSTA) network for the early accident anticipation from dashcam videos. The DSTA-network learns to select discriminative temporal segments of a video sequence with a Dynamic Temporal Attention (DTA) module. It also learns to focus on the informative spatial regions of frames with a Dynamic Spatial Attention (DSA) module. A Gated Recurrent Unit (GRU) is trained jointly with the attention modules to predict the probability of a future accident. The evaluation of the DSTA-network on two benchmark datasets confirms that it has exceeded the state-of-the-art performance. A thorough ablation study that assesses the DSTA-network at the component level reveals how the network achieves such performance. Furthermore, this paper proposes a method to fuse the prediction scores from two complementary models and verifies its effectiveness in further boosting the performance of early accident anticipation.

View on arXivView PDF

Code Implementations(1)

monjurulkarim/DSTAOfficial100%
PyTorchMIT

This is the implementation code for the paper, "A Dynamic Spatial-temporal Attention Network for Early Anticipation of Traffic Accidents"

408Python, ShellJul 4, 20213 years agoMIT
accident-predictionattention-mechanismdeep-learningdynamic-attentionpytorch

Similar Papers

Cite this paper

@article{karim2021dynamic,
  title  = {A Dynamic Spatial-temporal Attention Network for Early Anticipation of Traffic Accidents},
  author = {Muhammad Monjurul Karim and Yu Li and Ruwen Qin and Zhaozheng Yin},
  year   = {2021},
  eprint = {2106.10197},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2106.10197}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2106.10197.svg)](https://codeofpaper.com/paper/2106.10197)

Discussion