A Benchmark for Unsupervised Anomaly Detection in Multi-Agent Trajectories

Julian Wiederer, Julian Schmidt, Ulrich Kressel, Klaus Dietmayer, Vasileios Belagiannis · DOI

Introduction

Autonomous driving systems have achieved remarkable proficiency in standard traffic scenarios by adhering to established rules and predicting the behavior of predictable agents. However, the "long tail" of rare, dangerous, and erratic behaviors—such as a vehicle driving against traffic ("ghost driving"), sudden aggressive swerving, or extreme tailgating—remains a significant safety challenge. These anomalies are difficult to address through traditional supervised learning because real-world examples of crashes or illegal maneuvers are inherently rare and difficult to collect at scale.

To address this gap, this research introduces R-U-MAAD, a novel benchmark designed for unsupervised anomaly detection in multi-agent traffic trajectories. By shifting the focus to unsupervised learning, the framework enables models to learn the characteristics of "normal" driving and identify deviations as potential threats, providing a standardized way to evaluate how well self-driving systems can navigate the unexpected.

The R-U-MAAD Benchmark

The primary contribution of this work is the creation of a structured evaluation dataset that bridges the gap between massive real-world datasets and the need for controlled anomalous scenarios.

Data Sources and Annotation

  • Training and Validation: The models are trained on the Argoverse Motion Forecasting dataset, which contains over 240,000 sequences of standard, real-world driving behavior. This serves as the baseline for "normal" motion.
  • Test Set (R-U-MAAD): The test set consists of 160 sequences, split evenly between 80 normal and 80 abnormal scenarios. To generate realistic anomalies safely, the researchers utilized a hybrid approach: they selected real-world Argoverse scenes and "hijacked" a single vehicle, which was then operated by a human controller in a simulation.

This method allowed for the creation of 13 distinct types of anomalies, categorized into actor-interactive (e.g., aggressive shearing or tailgating) and map-interactive (e.g., driving on a sidewalk or wrong-way driving). The dataset includes frame-wise human annotations and incorporates "ignore" regions for transition phases to ensure evaluation accuracy.

Methodology

The study evaluates 11 baseline models, categorized into two primary unsupervised paradigms:

1. Reconstruction-Based Methods

These models, such as Deep Auto-encoders, are trained to compress and then reconstruct trajectories. The underlying hypothesis is that a model trained exclusively on normal data will fail to accurately reconstruct abnormal paths. A high "reconstruction error" thus serves as a proxy for an anomaly score. Baselines in this category range from simple linear models (Constant Velocity) to complex interaction-aware models like the Spatio-Temporal Graph Auto-Encoder (STGAE) and LaneGCN-AE, which integrates HD-map data.

2. One-Class Classification

These models attempt to define a tight boundary around normal data within a high-dimensional latent space. The study tested two-stage models using One-Class SVM (OC-SVM) and end-to-end models utilizing Deep SVDD objectives. If a test trajectory falls outside the learned "normal" boundary, it is flagged as an anomaly.

Key Insights and Results

The models were evaluated using the Area Under the Precision-Recall curve (AUPR) for the abnormal class, a metric better suited for the imbalanced nature of anomaly detection than standard accuracy.

  • The Superiority of Reconstruction: Deep auto-encoders generally outperformed one-class classifiers. The results suggest that the difficulty a model experiences when attempting to "imagine" an abnormal path is a more reliable indicator of an anomaly than the distance-based metrics used in latent space mapping.
  • The Importance of Multi-Agent Interaction: The STGAE model emerged as the top performer, achieving an AUPR-Abnormal of 59.65%. By using graph convolutions to model how agents relate to one another, STGAE demonstrated that many anomalies are defined not just by an individual vehicle's speed or direction, but by its behavior relative to surrounding traffic.
  • The Role of Context: Interestingly, while LaneGCN-AE incorporates HD-map data, it did not significantly outperform the STGAE. This indicates that current architectures may not yet be fully leveraging road geometry for anomaly detection as effectively as they do for standard trajectory prediction.
  • Failure of Linear Baselines: Simple physics-based models (like Constant Velocity) proved insufficient, as they lack the nuance to distinguish between a legitimate sharp turn and an illegal or erratic maneuver.

Limitations and Future Work

While R-U-MAAD provides a critical foundation, several areas for improvement remain. The "simulation gap" persists; although background agents are real, the anomalous vehicle is human-controlled in a simulation, which may introduce subtle differences in motion dynamics. Additionally, the test set of 160 sequences is relatively small compared to standard prediction benchmarks.

Future research should focus on expanding the diversity of scenarios and developing more sophisticated "map-aware" models that can specifically flag trajectories that violate the topological rules of the lane graph.

Conclusion

The R-U-MAAD benchmark establishes a vital baseline for the unsupervised detection of dangerous traffic behaviors. By demonstrating that interaction-aware reconstruction models like STGAE offer the most promise, this work paves the way for more robust and intuitive safety systems in autonomous vehicles.

Summary updated

BibTeX
@inproceedings{wiederer2022benchmark,
  author = {Julian Wiederer and Julian Schmidt and Ulrich Kressel and Klaus Dietmayer and Vasileios Belagiannis},
  title = {{A Benchmark for Unsupervised Anomaly Detection in Multi-Agent Trajectories}},
  booktitle = {ITSC},
  year = {2022},
  doi = {10.1109/itsc55140.2022.9922440},
}
Figure