Structural Attention-Based Recurrent Variational Autoencoder for Highway Vehicle Anomaly Detection

Neeloy Chakraborty, Aamir Hasan, Shuijing Liu, Tianchen Ji, Weihang Liang, D. Livingston McPherson, Katherine Rose Driggs-Campbell · DOI

Introduction

Detecting anomalous driving behavior is a cornerstone of safety for autonomous vehicles (AVs) and intelligent transportation systems. While identifying erratic swerving is relatively straightforward for modern AI, detecting context-dependent anomalies—such as a vehicle driving at a normal speed but in the wrong direction or off the designated roadway—remains a significant challenge. These "contextual anomalies" require a deep understanding of both social interactions between vehicles and the underlying road geometry.

Researchers have addressed these challenges by developing the Structural Attention-Based Recurrent Variational Autoencoder (SABeR-VAE). This unsupervised framework explicitly models vehicle-to-vehicle interactions and road structures while utilizing Koopman operator theory to linearize complex driving dynamics in a latent space.

Problem Statement

Existing trajectory-based anomaly detection models often suffer from two primary limitations:

  1. Context Blindness: Many models treat vehicle trajectories as isolated coordinate sequences, ignoring the "rules of the road" defined by lane boundaries and permissible routes.
  2. The Black Box Problem: Deep learning models are frequently "black boxes." In safety-critical applications, it is essential for engineers to understand why a system flags a specific behavior as anomalous to ensure the decision-making process is robust and reliable.

Proposed Methodology: SABeR-VAE

The SABeR-VAE architecture integrates several innovative components to provide a context-aware and interpretable detection system.

Dual Attention Mechanisms

To capture the environmental context, the model employs two distinct attention modules:

  • Vehicle-Vehicle Attention: This module models social interactions, allowing the system to understand how the movement of one vehicle is influenced by its neighbors.
  • Lane-Vehicle Attention: This module incorporates road geometry by weighing the importance of permissible lanes. By explicitly masking "illegal" lane nodes, the model learns that certain spatial regions are fundamentally off-limits for standard driving behavior.

Recurrent Encoding and Latent Dynamics

The model uses a Gated Recurrent Unit (GRU) to process historical interaction data, creating a probabilistic summary of the vehicle's state. The core innovation is the integration of the Koopman Operator. In physics, Koopman theory allows for the representation of complex, non-linear dynamical systems as linear systems within a higher-dimensional latent space. By learning a Koopman operator to propagate the latent state forward in time, SABeR-VAE ensures that transitions in the latent space are predictable and linear, facilitating easier analysis and anomaly detection.

Unsupervised Detection

SABeR-VAE is trained exclusively on "normal" driving data. During inference, the model predicts the future state of a vehicle. If the actual observed position deviates significantly from the model's prediction (measured by reconstruction/prediction error), the behavior is flagged as an anomaly.

Experimental Setup

The framework was evaluated using the Multi-Agent Anomaly Detection (MAAD) highway dataset, which contains 2D trajectories from a two-lane highway. To provide the model with "lane-aware" features, the researchers discretized the highway into blocks representing front, left, and right lane nodes. The test set included 11 types of abnormal behaviors, ranging from aggressive overtaking and tailgating to wrong-way and off-road driving.

Key Results and Insights

SABeR-VAE, along with its deterministic variant (SABeR-AE), demonstrated superior performance compared to state-of-the-art baselines like STGAE-KDE.

  • Accuracy Gains: The model achieved an 18% to 25% improvement in the Area Under Precision-Recall (AUPR) curve for abnormal behaviors.
  • Wrong-Way Detection: The system was particularly adept at identifying wrong-way driving, showing a 35% improvement over previous methods in this specific category.
  • Computational Efficiency: Unlike methods requiring expensive Kernel Density Estimation (KDE) during deployment, SABeR-VAE relies on straightforward prediction error, making it more suitable for real-time applications.
  • Interpretability via Geometry: The Koopman-based latent space naturally clusters into distinct regions based on vehicle direction and interaction types. This geometric organization allows human operators to visually verify how the model distinguishes between normal transitions and anomalous "jumps" in behavior.

Conclusion and Future Work

SABeR-VAE represents a significant step toward autonomous systems that understand the intent and context of driving behavior. By combining structural attention with the mathematical rigor of Koopman operators, the model provides a high-performance, interpretable solution for highway safety.

While powerful, the authors note that future work must address the stochasticity of VAEs and extend the framework to more complex environments, such as urban intersections and roundabouts. Additionally, integrating raw sensor data (LiDAR/Camera) will be necessary to handle the noise and occlusions inherent in real-world driving environments.

Summary updated

BibTeX
@inproceedings{chakraborty2023structural,
  author = {Neeloy Chakraborty and Aamir Hasan and Shuijing Liu and Tianchen Ji and Weihang Liang and D. Livingston McPherson and Katherine Rose Driggs-Campbell},
  title = {{Structural Attention-Based Recurrent Variational Autoencoder for Highway Vehicle Anomaly Detection}},
  booktitle = {AAMAS},
  year = {2023},
  url = {https://openreview.net/forum?id=kcpeHtAvtdY},
}
Figure