Abstract
Learning to detect real-world anomalous events through video-level labels is a challenging task due to the rare occurrence of anomalies as well as noise in the labels. In this work, we propose a weakly supervised anomaly detection method which has manifold contributions including 1) a random batch based training procedure to reduce inter-batch correlation, 2) a normalcy suppression mechanism to minimize anomaly scores of the normal regions of a video by taking into account the overall information available in one training batch, and 3) a clustering distance based loss to contribute towards mitigating the label noise and to produce better anomaly representations by encouraging our model to generate distinct normal and anomalous clusters. The proposed method obtains 83.03% and 89.67% frame-level AUC performance on the UCF-Crime and ShanghaiTech datasets respectively, demonstrating its superiority over the existing state-of-the-art algorithms.
Introduction
Detecting anomalies in surveillance footage—such as accidents, robberies, or fights—is a "needle in a haystack" problem. While deep learning has shown great promise in this domain, it typically requires frame-by-frame labels, which are prohibitively expensive to produce at scale.
To address this, researchers utilize Weakly Supervised Learning, where only video-level labels (indicating if a whole video contains an anomaly) are available. However, this introduces significant "label noise": an anomalous video is mostly composed of normal frames. Furthermore, video data is highly correlated temporally, which can lead to overfitting. The CLAWS (Clustering Assisted Weakly Supervised Learning) framework was developed to handle this noise and break the data correlation problem.
The CLAWS Framework
The CLAWS framework introduces three primary innovations to the standard anomaly detection pipeline:
1. Random Batch Selector (RBS)
Standard training often uses entire videos or long sequences, which are highly correlated. The RBS divides videos into small, temporally consecutive segments and randomly samples these batches from across the entire training set. This "shuffling" ensures that the training data is independent and identically distributed (i.e., i.i.d.), which significantly stabilizes the learning process. The authors found that the Backbone Network alone improved from ~69% to ~76% AUC simply by implementing this change.
2. Normalcy Suppression Module (NSM)
While most attention mechanisms attempt to "highlight" important features, CLAWS takes the opposite approach: it learns to suppress features corresponding to normal events. Since normal videos are "noise-free" (every frame is normal), the model can easily learn a baseline for normalcy. During training, the NSM pushes the scores of these normal regions toward zero, effectively allowing only the anomalous regions to remain active.
3. Clustering Distance Loss
To further mitigate label noise, the authors incorporate unsupervised clustering into the training loop. This acts as a powerful regularizer, forcing the network to learn more discriminative intermediate representations.
As shown in the clustering module, for a normal video, the model attempts to keep the centers of two clusters as close as possible. Conversely, for an anomalous video, it pushes them apart. This encourages the model to naturally separate "normal" from "abnormal" features even without frame-level supervision.
Experimental Results
The proposed method demonstrated clear superiority over previous state-of-the-art (SOTA) algorithms on two primary benchmarks:
- UCF-Crime: Achieved 83.03% frame-level AUC, outperforming previous SOTA methods by nearly 2%.
- ShanghaiTech: Achieved 89.67% frame-level AUC, a significant margin over previous methods using similar feature extractors.
Ablation studies confirmed that every component was vital; removing the Normalcy Suppression Module, for instance, resulted in a performance drop of over 5% AUC.
Conclusion and Future Work
CLAWS demonstrates that focusing on suppressing the known (normalcy) and utilizing clustering as a regularizer can effectively overcome the challenges of weak supervision. One remaining challenge is the "aftermath problem," where the model continues to show high anomaly scores after an event (like an explosion) has ended due to lingering visual cues like smoke. Future work may involve more advanced temporal modeling to distinguish between active anomalies and their lingering effects.
Summary updated