Anomaly Detection with Prototype-Guided Discriminative Latent Embeddings

Yuandu Lai, Yahong Han

TL;DR

This paper introduces a novel approach to video anomaly detection by using a "prototype-guided memory module" within a two-branch autoencoder. This module learns discriminative representations of normal events, enabling the model to better distinguish between normal and abnormal video sequences, leading to state-of-the-art performance.

What Problem Does This Paper Address?

Video anomaly detection (VAD) is crucial for applications like surveillance, but it's challenging due to the rarity and diversity of abnormal events. Traditional methods often rely on deep autoencoders (AEs) trained on normal data. The idea is that AEs will reconstruct normal videos with low error and abnormal ones with high error. However, powerful AEs can sometimes generalize too well, reconstructing even abnormal events with low error, thus failing to detect them. Furthermore, many existing methods overlook the inherent temporal and motion characteristics of video, which are vital for understanding event dynamics.

Methods

The proposed method tackles these issues with a novel two-branch autoencoder architecture and a specialized memory module.

  • Two-Branch Autoencoder: This architecture consists of two decoders sharing a common encoder. One decoder predicts the future frame (capturing appearance), and the other generates a stacked RGB difference (simulating motion information, akin to optical flow but computationally cheaper). This dual approach allows the model to learn both spatial and temporal regularities.
  • Prototype-Guided Memory Module: This is the core innovation. Instead of just learning general features, this module is designed to store "prototypes" of normal data. It uses a novel "discriminative criterion" to ensure that memory items (prototypes) are:
  • Discriminative: Far apart from each other in the latent space, representing diverse normal patterns.
  • Prototypical: Close to the query features they represent, capturing the essence of normal events. This is achieved through a specific loss function that encourages memory items to be distinct while keeping query features close to their nearest prototype. During inference, query features are transformed by these prototypes, making abnormal inputs less likely to be reconstructed accurately.

Datasets

The authors evaluate their method on three widely used benchmark datasets for video anomaly detection:

  • UCSD Ped2: Focuses on pedestrian anomalies.
  • CUHK Avenue: Captures anomalies in a campus avenue setting.
  • ShanghaiTech: A more challenging and diverse dataset with anomalies from various scenes.

Key Insights and Ideas

  • Memory as Prototypes: The key insight is that a memory module can be more than just a storage for past observations; it can actively learn and store representative "prototypes" of normal behavior.
  • Discriminative Learning for Memory: Simply storing normal patterns isn't enough. Making these stored patterns discriminative (far apart) is crucial for distinguishing subtle differences between normal and abnormal events.
  • RGB Difference for Motion: Using RGB difference as a proxy for motion information is an effective and computationally efficient alternative to optical flow for capturing temporal dynamics.
  • Transforming Anomalies: By transforming query features using learned prototypes, the model can "normalize" inputs, making it harder to reconstruct abnormal events accurately, thus flagging them as anomalies.

Key Results

The proposed method achieves state-of-the-art performance across the three benchmark datasets.

  • Performance: The paper reports AUC scores that outperform existing methods. For example, on UCSD Ped2, their method achieves 97.6% AUC, outperforming the previous best by a notable margin.
  • Efficiency: The use of RGB difference for motion simulation makes the method faster than approaches relying on optical flow, making it suitable for real-time applications.
  • Ablation Studies: Experiments demonstrate the effectiveness of each component: the RGB difference decoder improves performance, the memory module further enhances it, and the discriminative loss provides the most significant boost.

Limitations and Future Work

  • Memory Size Sensitivity: While the paper shows the model is not highly sensitive to memory size, further exploration into optimal memory configurations could be beneficial.
  • Generalization to New Anomaly Types: While the method excels at detecting anomalies within the learned "normal" patterns, its ability to generalize to entirely novel types of anomalies not represented in the training data might be a future research direction.
  • Real-time Performance: While faster than optical flow methods, achieving even higher real-time frame rates for extremely demanding applications could be a goal.

Summary updated

BibTeX
@inproceedings{lai2021anomaly,
  author = {Yuandu Lai and Yahong Han},
  title = {{Anomaly Detection with Prototype-Guided Discriminative Latent Embeddings}},
  booktitle = {ICDM},
  year = {2021},
  url = {https://openreview.net/forum?id=vhoXTHKvXVf},
}
Figure