Learning Appearance-Motion Normality for Video Anomaly Detection

Yang Liu, Jing Liu, Mengyang Zhao, Dingkang Yang, Xiaoguang Zhu, Liang Song

Abstract

Video Anomaly Detection (VAD) remains a significant challenge in computer vision due to the context-dependent nature of "abnormal" events. This paper introduces the Spatial-Temporal Memories Augmented Two-Stream Auto-Encoder (STM-AE), a framework designed to learn distinct appearance and motion patterns. By utilizing decoupled memory pools and adversarial learning, the system effectively identifies deviations from learned normal behavior, achieving state-of-the-art performance on major benchmarks.

Introduction

In surveillance contexts, an anomaly is often defined as an event that deviates from the established "normal" distribution of a scene—for instance, a vehicle driving through a pedestrian-only zone. Most contemporary VAD systems rely on unsupervised learning, training exclusively on normal data to flag anything they cannot accurately reconstruct or predict. However, these systems often struggle with two primary issues: feature entanglement, where spatial and temporal features are conflated, and a lack of correlation, where the relationship between an object's appearance and its motion is ignored.

The STM-AE Framework

The proposed STM-AE architecture addresses these limitations through a multi-stage, two-stream approach that isolates and then fuses appearance and motion data.

Two-Stream Proxy Tasks

Rather than relying on simple reconstruction, the model employs specialized proxy tasks to force the extraction of high-quality features:

  • Appearance Stream ($AE_a$): Utilizes a denoising task. By reconstructing clean images from noisy inputs, the encoder is forced to understand the underlying structural geometry of the scene.
  • Motion Stream ($AE_m$): Performs optical flow reconstruction to capture the dynamics of movement within the frame.

Prototypical Memory Pools

At the heart of the framework are two memory modules: S-Mem (Spatial) and T-Mem (Temporal). These modules store representative "prototypes" of normal features encountered during training. To ensure the purity of these memories, the authors implement a top-k attention update mechanism. This ensures that only the most relevant and frequent normal variations are stored, preventing the model from memorizing rare noise that might otherwise blur the boundary of normality.

Adversarial Prediction

The features retrieved from both memory pools are passed to a shared decoder. This decoder attempts to predict the subsequent video frame based on the retrieved normal prototypes. To ensure the realism of these predictions, a Patch Discriminator is employed in an adversarial training setup, forcing the predicted frames to match the distribution of the actual normal training data.

Experimental Results

The STM-AE framework was evaluated against three standard VAD benchmarks, demonstrating superior accuracy and real-time viability.

Quantitative Performance

  • UCSD Ped2: Achieved a state-of-the-art 98.1% AUC.
  • CUHK Avenue: Achieved a state-of-the-art 89.8% AUC.
  • ShanghaiTech: Achieved 73.8% AUC, representing the second-best result in current literature for this complex, multi-scene dataset.

Efficiency and Ablation

The model maintains high operational efficiency, running at approximately 40 FPS on an NVIDIA RTX 2080Ti. This makes it highly suitable for real-time surveillance applications. Ablation studies highlighted the necessity of the memory modules; removing them resulted in a significant 2.6% drop in AUC on the Ped2 dataset, confirming their role as a critical "normality filter."

Discussion: Memory as a Filter

The effectiveness of STM-AE lies in its "rewriting" capability. During inference, when the model encounters an anomaly (e.g., a bicycle on a sidewalk), the memory modules retrieve the closest normal prototypes (e.g., a walking pedestrian). Because the model is forced to predict the next frame using these normal prototypes rather than the actual anomalous input, the prediction fails significantly. This failure generates a high anomaly score, allowing for precise detection.

Conclusion and Future Work

While STM-AE sets new benchmarks for VAD, the authors noted challenges with the ShanghaiTech dataset due to its diverse scene environments. The current global memory pools can struggle to adapt to the specific normality of 13 different scenes simultaneously. Future research will focus on hierarchical memories, which could potentially store both scene-specific and global prototypes to improve adaptability in complex, large-scale environments.

Summary updated

BibTeX
@inproceedings{liu2022learning,
  author = {Yang Liu and Jing Liu and Mengyang Zhao and Dingkang Yang and Xiaoguang Zhu and Liang Song},
  title = {{Learning Appearance-Motion Normality for Video Anomaly Detection}},
  booktitle = {ICME},
  year = {2022},
  doi = {10.1109/icme52920.2022.9859727},
}
Figure