Attribute-based Representations for Accurate and Interpretable Video Anomaly Detection

Tal Reiss, Yedid Hoshen · DOI

Introduction

Video Anomaly Detection (VAD) is a critical task in automated surveillance, aimed at identifying rare and potentially significant events like accidents or security breaches. While deep learning has advanced the field, many state-of-the-art models function as "black boxes," making it difficult for operators to understand why a specific event was flagged. This paper presents an attribute-based approach that utilizes simple, interpretable features—velocity, pose, and deep visual embeddings—to achieve high accuracy while providing clear explanations for its detections.

The Problem: Interpretability in Surveillance

Most VAD systems are framed as One-Class Classification (OCC) problems, where a model learns the distribution of "normal" behavior from training data. Traditional deep learning methods often rely on frame reconstruction or future frame prediction; a high error rate indicates an anomaly. However, these errors are hard to diagnose. Is the model flagging an object because of its speed, its unusual posture, or its very presence in a restricted area? This lack of transparency is a major hurdle for real-world deployment.

An Attribute-Based Methodology

The authors propose a pipeline that explicitly defines the attributes used for detection, moving away from implicit self-supervised learning. The process involves three key stages:

  1. Object Extraction: A pre-trained Mask R-CNN detects and isolates individual objects within each frame.
  2. Feature Extraction: Each object is represented by three distinct, semantically meaningful vectors:
  3. Velocity: Calculated via optical flow and quantized into an 8-bin histogram of orientations to capture speed and direction.
  4. Pose: 2D skeletal landmarks extracted via AlphaPose and normalized for scale and position.
  5. Deep Features: CLIP image embeddings used to identify categorical anomalies, such as a vehicle appearing in a pedestrian-only zone.
  6. Anomaly Scoring: The system performs density estimation (using GMMs for low-dimensional velocity and kNN for high-dimensional pose/deep features). The final score is the sum of the most unusual attributes across all objects in a frame.
Examples of normal vs. anomalous events categorized by the three primary attributes: Velocity, Pose, and Deep features across the Avenue and ShanghaiTech datasets.

Key Insights and Results

The research highlights that simplicity can outperform complexity. On the challenging ShanghaiTech dataset, a model using only the 8-dimensional velocity vector surpassed several sophisticated deep learning architectures. This suggests that explicit priors—human-defined assumptions about what constitutes an anomaly—can be more effective than trying to learn everything from scratch.

Furthermore, the authors found that general-purpose image encoders like CLIP are often more effective for object-centric VAD than specialized video encoders. This is likely because video encoders may over-prioritize global temporal dynamics, whereas many anomalies are defined by the specific appearance or action of a single object.

The proposed method achieved state-of-the-art results on three major benchmarks:

  • ShanghaiTech: 85.9% AUROC
  • CUHK Avenue: 93.7% AUROC
  • UCSD Ped2: 99.1% AUROC
A concrete example of an anomaly detection in the ShanghaiTech dataset, where a motorized tricycle is correctly flagged in a pedestrian area.

Conclusion and Future Directions

By prioritizing interpretability, this attribute-based approach offers a more transparent alternative to traditional VAD models. While the system is efficient (running at approximately 12 FPS on an RTX 2080), it remains dependent on the accuracy of the initial object detector. Future work aims to address current limitations, such as modeling complex multi-object interactions (e.g., distinguishing a fight from a handshake) and adapting the system for moving camera platforms like drones.

Summary updated

BibTeX
@misc{reiss2022attribute,
  author = {Tal Reiss and Yedid Hoshen},
  title = {{Attribute-based Representations for Accurate and Interpretable Video Anomaly Detection}},
  year = {2022},
  eprint = {2212.00789},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2212.00789},
}
Figure