Appearance-Motion Memory Consistency Network for Video Anomaly Detection

Ruichu Cai, Hao Zhang, Wen Liu, Shenghua Gao, Zhifeng Hao

Abstract

Video Anomaly Detection (VAD) is a challenging task due to the rarity and unpredictability of anomalous events. Traditional methods often treat appearance and motion as independent streams, failing to capture the intrinsic relationship between them. We present the Appearance-Motion Memory Consistency Network (AMMC-Net), which explicitly models the consistency between how an object looks and how it moves. By utilizing dual memory pools and a novel feature transfer module, AMMC-Net identifies anomalies not only by individual modal deviations but by detecting when the expected relationship between appearance and motion is violated.

Introduction

Video Anomaly Detection is fundamentally a "needle in a haystack" problem. Because anomalies are diverse and infrequent, models are typically trained in an unsupervised or semi-supervised manner on "normal" data to learn standard scene patterns. Any significant deviation from these learned patterns during inference is flagged as an anomaly.

Existing VAD methods frequently suffer from a major conceptual gap: they treat appearance (spatial features) and motion (temporal features) as independent information streams. However, in physical reality, these modalities are deeply coupled. For instance, a person standing still is normal, and a shopping cart moving is normal. However, a shopping cart moving autonomously without a person nearby represents a consistency-based anomaly. Previous models that simply fuse the outputs of separate streams often overlook these subtle, relationship-based deviations.

Methodology

The AMMC-Net architecture integrates three primary components into an encoder-decoder framework to capture endogenous consistency:

  1. Dual Memory Pools (AppMemPool & MotMemPool): Rather than using raw encoder features, the model maps inputs to a discrete set of learned "prototype" features stored in memory. This acts as a powerful regularizer, forcing the model to represent scenes using a dictionary of normal patterns and filtering out irrelevant background noise.
  2. Appearance-Motion Feature Transfer (AMFT): This core innovation involves learning two mapping functions: one predicting expected motion from appearance, and another predicting expected appearance from motion. By forcing these modalities to interact in the latent space, the model explicitly captures their consistency.
  3. Multi-Stage Feature Fusion: The model aggregates original encoder features, memory-retrieved prototypes, and transferred consistency features before the decoder predicts the subsequent frame.
Figure 1: The AMMC-Net architecture, highlighting the Dual Memory Pools and the Appearance-Motion Feature Transfer (AMFT) module.

During testing, anomaly scores are calculated using a hybrid approach combining pixel-level prediction error (PSNR) and latent-level commit error (the distance between input features and the nearest normal prototypes in memory).

Experimental Results

AMMC-Net was evaluated on three standard benchmarks: UCSD Pedestrian (Ped1 & Ped2), CUHK Avenue, and ShanghaiTech. The model achieved state-of-the-art or competitive results across all datasets, notably reaching 96.6% AUC on UCSD Ped2 and 73.7% AUC on the complex ShanghaiTech dataset.

A key finding is the improved discriminative power of the model. As shown in the comparison below, AMMC-Net creates a significantly larger "score gap" between normal and abnormal frames compared to standard two-stream baselines. This increased margin makes the detector more robust and easier to deploy in real-world scenarios where thresholding is required.

Figure 2: Comparison of the score gap between normal and abnormal frames for two-stream baselines versus AMMC-Net across different datasets.

Conclusion

AMMC-Net demonstrates that the relationship between modalities is often more informative than the modalities themselves. By using memory as a prior and modeling the correlation between appearance and motion, the system can detect subtle anomalies that appear normal when viewed in isolation. While the model involves a complex two-stage training process and sensitivity to hyperparameters like memory size, it sets a new standard for consistency-based video anomaly detection. Future work may extend this framework to include other signals, such as audio or depth information.

Summary updated

BibTeX
@inproceedings{cai2021appearance,
  author = {Ruichu Cai and Hao Zhang and Wen Liu and Shenghua Gao and Zhifeng Hao},
  title = {{Appearance-Motion Memory Consistency Network for Video Anomaly Detection}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2021},
  doi = {10.1609/aaai.v35i2.16177},
}
Figure