Research
Accident Anticipation via Temporal Occurrence Prediction
Overview Research area: Computer vision for driving safety, specifically accident anticipation from dashcam video (ego-view collision prediction). Technical level: Advanced. The work assumes familiari
- arXiv
- 2510.22260
- Published
- 2025-10-25
- Authors
- Tianhao Zhao, Yiyang Zou, Zihao Mao, Peilun Xiao, Yulin Huang, Hongda Yang, Yuxuan Li, Qun Li, Guobin Wu, Yutian Lin
AI summary
Overview
- Research area: Computer vision for driving safety, specifically accident anticipation from dashcam video (ego-view collision prediction).
- Technical level: Advanced. The work assumes familiarity with 3D CNNs, Transformer decoders, ROC/AUC analysis, and the accident-anticipation benchmark literature (DAD, CCD, DoTA, CAP, DADA, MM-AU).
- Scope: The paper proposes replacing frame-level risk scoring with prediction of accident scores at multiple future time steps, plus a new encoder–decoder architecture and a revised evaluation protocol, evaluated on the CAP and DADA subsets of MM-AU.
What This Paper Is About
Existing accident anticipation systems output a single risk score for the current frame and are trained with binary labels that mark every frame in an accident video as positive, even though risk changes continuously as a crash approaches. This ambiguous supervision produces unreliable predictions and false alarms. The paper's goal is to instead predict when a future accident will occur, by outputting accident scores at multiple future horizons (0.1s to 2.0s ahead) supervised by precise accident timestamps.
Key Contributions
- A new anticipation paradigm. Instead of predicting an ambiguous per-frame risk score, the model predicts a sequence of accident scores at multiple future time steps (e.g., 0.1s, 0.2s, ..., 2.0s ahead), using exactly annotated accident timestamps as supervision. Only the score at the ground-truth accident time is labeled 1; all others are 0.
- An encoder–decoder architecture. A snippet-level encoder (3D CNN, SlowOnly) jointly captures spatial and temporal information across short clips of consecutive frames, while a Transformer-based temporal decoder predicts accident scores for all future time steps simultaneously using dedicated learnable temporal queries, enabling online frame-by-frame anticipation.
- A refined evaluation protocol. Recall and Time-to-Accident (TTA) are reported only when the false alarm rate (FAR) is within an acceptable range (threshold λ, set to 0.1 by default), recall is measured at multiple pre-accident intervals (0.5s, 1.0s, 1.5s), and an improved TTA calculation is introduced that does not count pre-anomaly alarms as valid early warnings.
- An identification of inflated TTA in prior work. The authors show that conventional TTA computation can produce values exceeding 3 seconds by counting false alarms far before the anomaly as valid early predictions.
Main Findings
- Strong detection at crash onset. On the CAP dataset, the method reaches AUC of 0.8381 at the 0.0s horizon, versus 0.6093 for the best prior method (GSC) and 0.4357 for the ResNet+LSTM baseline.
- Large gains at short horizons. At 0.5s before the accident, the method achieves AUC of 0.6747 on CAP (prior best GSC: 0.4177) and 0.5669 on DADA (prior best GSC: 0.3495).
- Diminishing but still leading gains at longer horizons. On CAP the method reports AUC of 0.3982 at 1.0s and 0.2141 at 1.5s; on DADA, 0.2877 and 0.1399. It still achieves the best mean AUC (mAUC) of 0.4290 on CAP and 0.3315 on DADA.
- Best mean Time-to-Accident. mTTA of 0.8644 s on CAP and 0.8848 s on DADA, compared with 0.5389 s and 0.4138 s for the baseline.
- Performance degrades as false alarm constraints tighten. When λ = 1 (no FAR constraint), CAP mAUC is 0.8310 and mTTA is 1.5908 s. At λ = 0.1, mAUC drops to 0.4290 and mTTA to 0.8644 s. At λ = 0.01, mAUC is 0.1494 and mTTA is 0.4394 s (AUC at the 0.5s horizon: 0.3371 on CAP, 0.1183 on DADA).
- Long-horizon predictions are the first to fail under tight FAR. As λ decreases, AUC drops more sharply at 1.0s–1.5s than at 0.0s–0.5s, indicating that early predictions are often spurious while near-crash anticipation remains reliable.
- Both components are complementary. In the ablation on CAP, adding the snippet encoder alone raises AUC at the 0.5s horizon from 0.3938 to 0.5550 and mTTA from 0.5389 s to 0.7330 s. Adding temporal occurrence prediction alone raises the 0.0s AUC from 0.4357 to 0.5700 but gives limited gains at longer horizons. Combining both yields the best results on every metric (AUC 0.8381, mAUC 0.4290, mTTA 0.8644 s).
- TTA is bounded by dataset structure. Under the revised TTA calculation, the maximum achievable average TTA is bounded by the average interval between anomaly appearance and accident, reported as 1.86 seconds on CAP and 1.66 seconds on DADA. Failed predictions are assigned a TTA of 0.
- Qualitative TTA matches realistic lead times. Across four qualitative CAP cases (collisions with a motorcyclist from a blind spot, a cyclist cutting across, a suddenly lane-changing car, and a rear-end collision with the lead car), the average TTA is 1.0s.
- Annotation noise exists in the data. The authors observe that the "anomaly appear" annotations are inconsistent, with some cases labeled too early and others too late.
Methodology in Plain English
The model watches a short clip of the five most recent frames (frames resized to 224×224, resampled at 10 FPS so each frame equals 0.1s). These frames go into a 3D CNN snippet encoder that preserves temporal resolution through spatial-only pooling, so each frame in the clip gets its own feature vector. That sequence of features is treated as memory in a Transformer decoder with 2 layers and cosine positional encodings. Twenty separate learnable temporal queries—one per future time step from 0.1s to 2.0s ahead—are fed to the decoder, and the decoder outputs twenty accident scores at once.
During training, snippets are sampled only from frames at or before the accident, and Binary Cross-Entropy loss is used with a positive-sample weight w+ = 10. If the accident falls inside the 2.0s prediction window, the label at that step is 1 and all others are 0. At test time the model slides a window across the whole video, including frames during and after the accident, and raises an alarm if any predicted score exceeds a preset threshold.
Optimization uses SGD with batch size 64 on 8 NVIDIA 4090 GPUs, an initial learning rate of 0.01 decayed to 10% every 20 epochs, for 50 total epochs. The encoder is a SlowOnly model initialized with ImageNet pre-trained weights. The authors train and test all comparison methods (CAP, DRIVE, DSTA, GSC, plus two baselines) on the same splits and metrics. MM-AU provides 58 accident categories and temporal labels for three key events ("anomaly appear", "accident occur", "accident end"); approximately 20% of the data was selected as the test set, with clips from the first frame to "anomaly appear" used as negatives for computing FAR and clips from "anomaly appear" to "accident occur" used as positives.
Why This Matters
Impact on research. The paper challenges a widely used supervision scheme in accident anticipation—labeling all pre-crash frames as positive with exponential loss decay—and argues that precise accident timestamps are a more reliable supervisory signal. It also argues that AP, AUC, and TTA as commonly reported can be misleading, and proposes computable alternatives (AUC^λ, mAUC^λ, mTTA^λ) plus a corrected TTA that prevents inflated values.
Real-world applications (drawn from the paper's framing and experiments):
- Driver warning systems that alert before a collision so the driver can take evasive action, reducing the likelihood or severity of a crash.
- Advanced driver assistance and automated driving safety layers that need hazard estimates with controlled false alarm rates, since the paper notes that exceeding roughly one false alarm per minute is unacceptable to drivers.
- Fleet and ride-hailing safety operations (the work is partly conducted with Didi Chuxing), where many vehicles produce continuous dashcam streams.
- Post-incident analysis and dataset annotation quality control, since the authors identify inconsistent "anomaly appear" labels.
Industry relevance. The emphasis on false alarm rate over raw recall, the ability to predict multiple future horizons simultaneously for online frame-by-frame use, and the concrete FAR-constrained metrics all point toward deployment conditions rather than leaderboard-only performance.
Future Directions
- Improving long-horizon anticipation. The authors state that performance beyond 1.0s ahead remains limited and that capturing subtle early precursors is an open challenge.
- Reducing residual spurious alerts. Even under constrained false alarm rates, the paper notes that false alerts still occur in complex scenes, which may affect user trust.
- Better temporal annotation. Inconsistent "anomaly appear" labels introduce noise into both training and evaluation, motivating more rigorous annotation standards.
- Human-in-the-loop design and driver education. The societal impact section warns that over-reliance on automated alerts could reduce driver vigilance, calling for careful interaction design.
Target Audience
Researchers and practitioners working on video-based risk prediction, accident anticipation, and driver-assistance or autonomous-driving perception, particularly those who evaluate models under false-alarm constraints. It is also relevant to dataset curators and safety engineers at mobility companies, and to readers interested in how evaluation protocols in a subfield can distort reported progress. Readers without background in Transformers, 3D CNNs, or ROC-based metrics will find the method section demanding, though the motivation and metric critiques are accessible.
Authors’ abstract
Accident anticipation aims to predict potential collisions in an online manner, enabling timely alerts to enhance road safety. Existing methods typically predict frame-level risk scores as indicators of hazard. However, these approaches rely on ambiguous binary supervision (labeling all frames in accident videos as positive) despite the fact that risk varies continuously over time, leading to unreliable learning and false alarms. To address this, we propose a novel paradigm that shifts the prediction target from current-frame risk scoring to directly estimating accident scores at multiple future time steps (e.g., 0.1s-2.0s ahead), leveraging precisely annotated accident timestamps as supervision. Our method employs a snippet-level encoder to jointly model spatial and temporal dynamics, and a Transformer-based temporal decoder that predicts accident scores for all future horizons simultaneously using dedicated temporal queries. Furthermore, we introduce a refined evaluation protocol that reports Time-to-Accident (TTA) and recall (evaluated at multiple pre-accident intervals (0.5s, 1.0s, and 1.5s)) only when the false alarm rate (FAR) remains within an acceptable range, ensuring practical relevance. Experiments show that our method achieves superior performance in both recall and TTA under realistic FAR constraints.