Dynamic Local Aggregation Network with Adaptive Clusterer for Anomaly Detection

Zhiwei Yang, Peng Wu, Jing Liu, Xiaotao Liu

Abstract

Unsupervised Video Anomaly Detection (VAD) typically relies on Autoencoders (AEs) to learn normal behavior patterns. However, standard AEs often generalize too well, inadvertently reconstructing abnormal events. While memory banks have been introduced to mitigate this, they suffer from high memory overhead and rigid, scene-agnostic prototype counts. This paper presents the Dynamic Local Aggregation Network with Adaptive Clusterer (DLAN-AC), a novel framework that replaces static memory banks with a dynamic aggregation mechanism. By utilizing an Adaptive Clusterer (AC) to determine scene-specific prototypes and a Dynamic Local Aggregation Network (DLAN) to learn these prototypes through network weights, the proposed method achieves state-of-the-art performance while significantly reducing computational requirements.

Introduction

Video Anomaly Detection (VAD) is a critical task in computer vision, often framed as an unsupervised learning problem where a model is trained to reconstruct or predict "normal" video frames. At inference, high reconstruction errors signify anomalies. A persistent challenge is the "over-generalization" of deep Autoencoders, which can successfully reconstruct abnormal frames, leading to missed detections.

Existing solutions often employ "memory banks" to store prototypes of normal behavior. However, these methods face two primary limitations: they require substantial extra storage and typically rely on a fixed, arbitrary number of prototypes. This fixed approach fails to account for the varying complexity of different video scenes—a quiet hallway requires fewer prototypes than a busy urban intersection.

Proposed Methodology

The DLAN-AC framework addresses these limitations through a four-part architecture designed for scene-aware feature aggregation.

Overview of the DLAN-AC architecture, featuring the Adaptive Clusterer (AC) and Dynamic Local Aggregation Network (DLAN).

Adaptive Clusterer (AC)

The AC module serves as the initialization engine for the network. It employs a Self-Organizing Map (SOM)—an unsupervised neural network—to pre-cluster features. Unlike static methods, the AC adaptively determines the optimal number of prototypes ($M$) and their initial cluster centers based on the specific data distribution of the scene. This ensures the model is neither under-fitted in complex environments nor over-fitted in simple ones.

Dynamic Local Aggregation Network (DLAN)

Inspired by the Vector of Locally Aggregated Descriptors (VLAD) algorithm, the DLAN module aggregates high-level features into representative prototypes online. Rather than maintaining a separate memory bank, DLAN learns and updates these prototypes directly through the network's weights. This shift from storage-based memory to computation-based aggregation allows the model to mine higher-level semantic information while saving memory.

Dynamic Redundant Clustering Strategy (DRCS)

To handle "background noise"—features that do not contribute to distinguishing normal from abnormal behavior—the authors introduced DRCS. This strategy automatically identifies and eliminates redundant clusters, focusing the model's capacity on meaningful behavioral prototypes.

Training Objectives

The model is optimized using a multi-faceted loss function. Intensity and Gradient losses ensure predicted frames remain sharp, while Compaction and Separation losses ensure that the learned prototypes are both representative of the data and distinct from one another.

Experimental Results

The DLAN-AC model was evaluated on three standard VAD benchmarks: UCSD Ped2, CUHK Avenue, and ShanghaiTech.

Quantitative Performance

DLAN-AC consistently outperformed previous state-of-the-art (SOTA) methods in terms of Area Under the Curve (AUC):

Dataset DLAN-AC AUC Previous SOTA (e.g., MPN/MNAD)
UCSD Ped2 97.6% 97.0%
CUHK Avenue 89.9% 88.5%
ShanghaiTech 74.7% 73.8%

Qualitative Analysis

Qualitative evaluations show that the model produces highly discriminative prediction error maps. Normal events result in low-error (dark) maps, while abnormal events—such as a person running in a walking zone—produce bright, localized error signals, facilitating precise anomaly localization.

Conclusion

DLAN-AC represents a significant advancement in VAD by moving away from rigid memory structures toward dynamic, scene-aware feature aggregation. The integration of the Adaptive Clusterer allows the model to tailor its prototype representation to the complexity of the environment, while the DLAN module provides a memory-efficient way to learn these representations. Future work may involve integrating temporal modeling, such as Transformers, to further enhance the detection of complex behavioral anomalies.

Summary updated

BibTeX
@inproceedings{yang2022dynamic,
  author = {Zhiwei Yang and Peng Wu and Jing Liu and Xiaotao Liu},
  title = {{Dynamic Local Aggregation Network with Adaptive Clusterer for Anomaly Detection}},
  booktitle = {European Conference on Computer Vision},
  year = {2022},
  doi = {10.1007/978-3-031-19772-7\_24},
}
Figure