Abstract
Video Anomaly Detection (VAD) is a critical task in surveillance, traditionally divided into one-class (oVAD) and weakly-supervised (wVAD) paradigms. We introduce the Self-Supervised Sparse Representation (S3R) framework, a unified solution that models normal patterns through dictionary learning. S3R isolates anomalies by reconstructing normal features and filtering them out via a dedicated de-Normal module. Furthermore, a novel self-supervised pseudo-anomaly generation strategy allows the model to learn robust decision boundaries even in the absence of real anomaly labels. S3R achieves state-of-the-art results across major benchmarks, including UCF-Crime and ShanghaiTech.
Introduction
The primary challenge in Video Anomaly Detection (VAD) lies in the inherent rarity and unpredictable nature of anomalous events, such as accidents or crimes. Current research typically focuses on two settings: oVAD, where only normal data is available for training, and wVAD, where video-level labels are provided without precise temporal annotations.
The S3R framework addresses the need for a unified approach by treating VAD as an out-of-distribution problem. If a video snippet cannot be accurately represented by a dictionary of "normal" behaviors, it is flagged as a potential anomaly. This approach allows for high flexibility across different supervision levels.
The S3R Framework
The S3R architecture is built upon the synergy between dictionary learning and feature-level filtering.
Dictionary Learning and en-Normal Module
The framework begins by learning a task-specific dictionary ($D_T$) composed of "atoms" representing common normal feature patterns. The en-Normal module utilizes an attention mechanism to reconstruct a "normal version" ($\hat{F}$) of any input video snippet ($F$) by selectively combining these atoms.
de-Normal Module
The de-Normal module acts as a semantic filter. It computes the difference between the original input feature and the reconstructed normal feature. By employing a SENet-style channel attention mechanism, it suppresses normal-event semantics while highlighting anomalous signals, effectively isolating the "abnormality" for the classifier.
Self-Supervised Pseudo-Anomaly Generation
A key innovation of S3R is its ability to train effectively in one-class settings through self-supervision. Since real anomalies are unavailable during oVAD training, the authors propose a method to synthesize pseudo-anomalies.
The dictionary is divided into "relevant" and "irrelevant" atoms based on their cosine similarity to the current video feature. By mixing the video features with these "irrelevant" atoms, the system generates realistic feature-level noise that mimics anomalous behavior. This allows the model to learn a clear decision boundary between normal patterns and synthesized outliers.
Experimental Evaluation
S3R was evaluated on three major benchmarks: ShanghaiTech, UCF-Crime, and XD-Violence. The system utilizes I3D features and the Real-Time Feature Magnitude (RTFM) backbone.
Key Results
S3R demonstrated significant performance improvements, establishing new state-of-the-art (SOTA) benchmarks:
- One-Class VAD: On UCF-Crime, S3R achieved an AUC of 79.58%, representing a 6.9% improvement over previous methods. On ShanghaiTech, it reached 80.47% AUC.
- Weakly-Supervised VAD: The framework achieved 97.48% AUC on ShanghaiTech and 80.26% Average Precision (AP) on the XD-Violence dataset, outperforming established methods like RTFM and MSL.
Ablation studies confirmed that both the de-Normal module and the dictionary-based pseudo-labeling are critical to the framework's success.
Conclusion and Future Work
The S3R framework provides a robust, unified solution for VAD by leveraging sparse representation and self-supervision. While highly effective, the model currently relies on pre-trained I3D features and an offline dictionary. Future research directions include developing end-to-end, dynamically updated dictionaries and incorporating multi-modal data, such as audio signals, to further enhance detection accuracy in complex environments.
Summary updated