Clustering Driven Deep Autoencoder for Video Anomaly Detection

Yunpeng Chang, Zhigang Tu, Wei Xie, Junsong Yuan

Introduction

Video anomaly detection is a critical task in automated surveillance, aimed at identifying unusual events that deviate from established "normal" patterns. Traditional deep learning approaches often rely on autoencoders to reconstruct normal video frames, assuming that anomalies will yield higher reconstruction errors. However, these methods frequently suffer from high computational costs due to their reliance on optical flow and a tendency to over-generalize, potentially reconstructing anomalous events too accurately. This paper introduces a Clustering Driven Deep Autoencoder that addresses these challenges through spatio-temporal dissociation and a deep clustering constraint.

Proposed Framework

The proposed architecture consists of a dual-stream autoencoder designed to decouple appearance and motion information. This dissociation allows the model to independently learn spatial and temporal characteristics of normalcy.

Architecture of the proposed dual-stream autoencoder with deep clustering.

Spatio-Temporal Dissociation

The Spatial Stream focuses on the "Last Individual Frame" (LIF) to capture the appearance of objects within a scene. Conversely, the Temporal Stream models motion. To maintain high processing speeds, the authors replace computationally expensive optical flow with RGB differences between consecutive frames. This proxy effectively captures motion dynamics at a fraction of the cost.

Visualization of motion features extracted by the temporal stream.

Variance-Based Attention and Deep Clustering

To mitigate the influence of static backgrounds, a variance-based attention module is employed. This module assigns higher weights to regions with significant motion, forcing the encoder to prioritize dynamic elements.

The core innovation lies in the integration of a Deep K-Means Clustering layer within the autoencoder's bottleneck. During training, the latent representations of normal video are forced to cluster around learned "prototypes." At inference, anomalies are detected not only by reconstruction error but also by their distance from these established cluster centers in the latent space.

Experimental Evaluation

The model was rigorously tested on three benchmark datasets: UCSD Ped2, CUHK Avenue, and ShanghaiTech.

Performance and Efficiency

The framework achieved state-of-the-art results, notably reaching a 96.5% AUC on the UCSD Ped2 dataset. Beyond accuracy, the system demonstrates exceptional efficiency, processing video at approximately 31.2 milliseconds per frame (roughly 32 FPS). This represents a 2.3x speed improvement over methods utilizing FlowNet2 for motion estimation, making it suitable for real-time applications.

Ablation Studies

Ablation experiments confirmed the necessity of each component. The combination of motion and appearance streams, coupled with attention and clustering, yielded the highest performance (e.g., 86.0% AUC on the Avenue dataset), significantly outperforming any single-component configuration.

Conclusion

The Clustering Driven Deep Autoencoder provides a robust and efficient solution for real-time video anomaly detection. By leveraging RGB differences as a motion proxy and enforcing a compact latent space through deep clustering, the model achieves high accuracy without the computational overhead of traditional optical flow-based methods. Future work will focus on improving performance in complex, multi-scene environments like ShanghaiTech and exploring weakly supervised learning to further refine anomaly definitions.

Summary updated

BibTeX
@inproceedings{chang2020clustering,
  author = {Yunpeng Chang and Zhigang Tu and Wei Xie and Junsong Yuan},
  title = {{Clustering Driven Deep Autoencoder for Video Anomaly Detection}},
  booktitle = {European Conference on Computer Vision},
  year = {2020},
  doi = {10.1007/978-3-030-58555-6\_20},
}
Figure