Spatio-Temporal Relation Learning for Video Anomaly Detection

Hui Lv, Zhen Cui, Biao Wang, Jian YangarXiv 2022 · DOI

Abstract

Video Anomaly Detection (VAD) is a critical task in surveillance, yet traditional methods often struggle with context-dependent behaviors. A specific action, such as running, may be normal in one setting but anomalous in another. This paper introduces Spatio-Temporal Relation Learning (STRL), a framework designed to explicitly model the relationship between objects and their scenes. By combining a dual-branch Spatio-Temporal Auto-Encoder (STAE) with a Knowledge Graph Embedding (KGE) module, STRL achieves state-of-the-art accuracy across major benchmarks. Notably, the model is highly efficient, featuring a parameter count roughly 70 times smaller than previous leading methods while maintaining real-time processing speeds.

Introduction

The primary challenge in Video Anomaly Detection (VAD) lies in the definition of "normality." Most existing deep learning approaches treat VAD as a reconstruction or prediction problem, training models on normal data and flagging high error rates as anomalies. However, these models often ignore the semantic context of the scene. As illustrated in Figure 1, the same action—running—can be normal on a track but highly suspicious on a crowded avenue.

Contextual normality in video anomaly detection: running is considered anomalous on an avenue while walking is normal.

To address this, the authors propose that normality should be defined by the tuple (object, action, scene). By explicitly modeling the interaction between objects and their environment, VAD systems can move beyond simple motion tracking toward a more nuanced understanding of situational behavior.

Methodology

The STRL framework is composed of two main pillars: a feature extraction engine and a semantic relation module.

Spatio-Temporal Auto-Encoder (STAE)

The STAE serves as the backbone for feature extraction. It utilizes an encoder to process sequences of video frames and employs dual decoders to capture different data modalities. The Appearance branch predicts the next RGB frame, while the Motion branch predicts future optical flow. This dual-branch approach ensures the model learns a comprehensive representation of both how objects look and how they move over time.

Relation Learning (RL) Module

The core innovation of this work is the RL module, which treats scenes and objects as entities within a Knowledge Graph. Using Knowledge Graph Embedding (KGE) techniques, these entities are mapped into a continuous vector space. The module calculates a "plausibility score" for object-scene pairs. If a detected relationship (e.g., a bicycle on a pedestrian-only path) has not been encountered during training, the plausibility score decreases, triggering an anomaly alert.

The STRL framework architecture, highlighting the dual-branch STAE and the Knowledge Graph-based Relation Learning (RL) module.

To maintain high efficiency, the authors also introduced a lightweight pre-processing algorithm for the fast extraction of moving object regions based on pixel-distance maps, avoiding the computational heavy-lifting of traditional object detectors.

Experimental Results

The STRL framework was evaluated on three standard benchmarks: UCSD Ped2, CUHK Avenue, and ShanghaiTech.

  • Accuracy: The model achieved a near-perfect 99.0% AUC on UCSD Ped2 and 76.0% AUC on the complex ShanghaiTech dataset, setting new state-of-the-art (SOTA) benchmarks.
  • Efficiency: One of the most striking results is the model's compact size. With only 0.18 million parameters, STRL is approximately 70 times smaller than the previous SOTA model (Lv et al., 2021), which utilized 12.7 million parameters.
  • Speed: The system operates at 183.8 FPS on a standard NVIDIA RTX-2080Ti, making it ideal for real-time multi-camera surveillance deployments.

On the CUHK Avenue dataset, the model achieved 88.7% AUC. While slightly lower than some competitors, failure analysis indicated this was largely due to ambiguous ground truth labels in the dataset, such as subtle movements on grass being labeled as anomalies by humans but recognized as normal by the model's learned semantic relations.

Conclusion

STRL demonstrates that explicitly modeling object-scene relations is a powerful and efficient approach to video anomaly detection. By integrating Knowledge Graph Embeddings with a lightweight auto-encoder, the framework provides a semantic layer of understanding that traditional reconstruction-based models lack. Future research will focus on refining these relation models to handle more complex, multi-object interactions and resolving ambiguities in diverse surveillance environments.

Summary updated

BibTeX
@misc{lv2022spatio,
  author = {Hui Lv and Zhen Cui and Biao Wang and Jian Yang},
  title = {{Spatio-Temporal Relation Learning for Video Anomaly Detection}},
  year = {2022},
  eprint = {2209.13116},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2209.13116},
}
Figure