Abstract
Weakly supervised Video Anomaly Detection (wVAD) aims to distinguish anomalies from normal events based on video-level supervision. Most existing works utilize Multiple Instance Learning (MIL) with ranking loss to tackle this task. These methods, however, rely on noisy predictions from a MIL-based classifier for target instance selection in ranking loss, degrading model performance. To overcome this problem, we propose Normality Guided Multiple Instance Learning (NG-MIL) framework, which encodes diverse normal patterns from noise-free normal videos into prototypes for constructing a similarity-based classifier. By ensembling predictions of two classifiers, our method could refine the anomaly scores, reducing training instability from weak labels. Moreover, we introduce normality clustering and normality guided triplet loss constraining inner bag instances to boost the effect of NG-MIL and increase the discriminability of classifiers. Extensive experiments on three public datasets (ShanghaiTech, UCF-Crime, XD-Violence) demonstrate that our method is comparable to or better than existing weakly supervised methods, achieving state-of-the-art results.
Introduction
Detecting anomalies in surveillance video—such as fights, accidents, or thefts—is a critical yet challenging task. The primary difficulty lies in the fact that while "normal" behavior is diverse, it is generally consistent, whereas "anomalies" are broad and unpredictable. Most current systems employ Weakly Supervised Video Anomaly Detection (wVAD), where labels are provided only at the video level (e.g., "this video contains an anomaly") rather than for every specific segment.
The standard approach for wVAD is Multiple Instance Learning (MIL), which treats a video as a "bag" of segments. If a video is labeled abnormal, the model assumes at least one segment is anomalous. However, MIL is inherently noisy. During training, a standard MIL classifier might incorrectly select a normal segment as the most "abnormal" part of a crime video, leading to a cycle of incorrect learning. Furthermore, these models often fail to leverage the rich, noise-free information available in purely normal videos.
Methodology
To address the limitations of standard MIL, we propose the Normality Guided Multiple Instance Learning (NG-MIL) framework. The core idea is to build a robust "Anchor of Normality" from guaranteed noise-free normal videos to provide a more stable training signal.
Normality Guided Refinement Module (NGRM)
Instead of relying solely on a binary classifier, NG-MIL learns a set of normality prototypes—mathematical representations of common normal patterns (e.g., walking, standing) derived from normal videos. The system generates two scores for every video segment:
- Initial Score: From a standard MIL classifier.
- Similarity Score: Based on how dissimilar the segment is to the learned normal prototypes.
By ensembling these scores, the model can effectively filter out "false alarms" that a standard MIL classifier might misidentify.
Novel Loss Functions
The framework is further enhanced by two specific loss functions:
- Normality Clustering Loss ($L_{clst}$): This forces normal segments to cluster tightly around their nearest prototypes, ensuring the definition of "normal" is compact and well-defined.
- Normality Guided Triplet Loss ($L_{tri}$): This loss targets segments within an "abnormal" video. It pushes segments identified as likely anomalies away from normal prototypes in the feature space, while pulling the "normal-looking" segments in that same video closer to the prototypes. This addresses the "inner bag" problem, ensuring the model correctly identifies normal segments even within a video tagged as abnormal.
Experiments and Results
We evaluated NG-MIL on three major benchmarks: ShanghaiTech (campus surveillance), UCF-Crime (real-world crime), and XD-Violence (diverse "in-the-wild" scenes).
The NG-MIL framework achieved state-of-the-art (SOTA) performance across all datasets:
- ShanghaiTech: Achieved an AUC of 97.43%, a significant improvement over previous methods.
- UCF-Crime: Reached 85.63% AUC, outperforming the previous best of approximately 84%.
- XD-Violence: Achieved 78.51% Average Precision (AP), demonstrating robustness in diverse environments.
Qualitative analysis shows that the model is significantly better at maintaining low anomaly scores for confusing but normal events (e.g., a person running) compared to baseline MIL models.
Discussion and Conclusion
The success of NG-MIL highlights that "normal" is a safer and more reliable signal than "abnormal" in weakly supervised settings. By combining a discriminative approach (MIL) with a representative approach (Prototypes), the model becomes resilient to label noise.
However, the method is sensitive to the number of prototypes ($M$). Complex datasets like UCF-Crime require a higher $M$ (64) to capture the diversity of normal behavior compared to simpler datasets like ShanghaiTech (32). While the refinement module adds some computational overhead, the performance gains justify the complexity. Future work could explore extending this normality-guided logic to other noisy-label tasks like video action recognition.
Summary updated