[Paper Review] Weakly-supervised Video Anomaly Detection with Robust Temporal Feature Magnitude Learning
This paper proposes Robust Temporal Feature Magnitude (RTFM) learning, a novel method for weakly-supervised video anomaly detection that improves MIL-based models by learning feature magnitudes to better identify rare abnormal snippets. RTFM enhances robustness to normal snippets in abnormal videos and achieves state-of-the-art performance on four benchmarks with improved detection of subtle anomalies and sample efficiency.
Anomaly detection with weakly supervised video-level labels is typically formulated as a multiple instance learning (MIL) problem, in which we aim to identify snippets containing abnormal events, with each video represented as a bag of video snippets. Although current methods show effective detection performance, their recognition of the positive instances, i.e., rare abnormal snippets in the abnormal videos, is largely biased by the dominant negative instances, especially when the abnormal events are subtle anomalies that exhibit only small differences compared with normal events. This issue is exacerbated in many methods that ignore important video temporal dependencies. To address this issue, we introduce a novel and theoretically sound method, named Robust Temporal Feature Magnitude learning (RTFM), which trains a feature magnitude learning function to effectively recognise the positive instances, substantially improving the robustness of the MIL approach to the negative instances from abnormal videos. RTFM also adapts dilated convolutions and self-attention mechanisms to capture long- and short-range temporal dependencies to learn the feature magnitude more faithfully. Extensive experiments show that the RTFM-enabled MIL model (i) outperforms several state-of-the-art methods by a large margin on four benchmark data sets (ShanghaiTech, UCF-Crime, XD-Violence and UCSD-Peds) and (ii) achieves significantly improved subtle anomaly discriminability and sample efficiency. Code is available at https://github.com/tianyu0207/RTFM.
Motivation & Objective
- Address the challenge of detecting rare abnormal snippets in videos labeled only at the video level, where normal snippets dominate and obscure abnormal events.
- Improve the robustness of multiple instance learning (MIL) methods to negative instances from abnormal videos, especially for subtle anomalies.
- Enhance feature learning by capturing both short- and long-range temporal dependencies using dilated convolutions and self-attention.
- Enable better exploitation of abnormal video data by using feature magnitude as a stronger training signal than classification scores.
- Achieve improved discriminability for subtle anomalies and higher sample efficiency compared to existing state-of-the-art methods.
Proposed method
- Propose a feature magnitude learning function that maps video snippets to scalar magnitudes, where high magnitudes indicate abnormality and low magnitudes indicate normality.
- Integrate dilated convolutions and self-attention mechanisms to model long- and short-range temporal dependencies in video snippets.
- Formulate the training objective based on top-k instance MIL, maximizing the difference between mean feature magnitudes of top-k abnormal and normal snippets.
- Jointly optimize the feature magnitude learning and MIL classification to enforce large margins between normal and abnormal snippets in the feature space.
- Use the ℓ₂-norm of features as a proxy for anomaly score, enabling effective detection even when anomalies are subtle.
- Design a theoretically grounded framework where the mean magnitude of top-k abnormal snippets is expected to exceed that of normal snippets, ensuring better separability.
Experimental results
Research questions
- RQ1Can feature magnitude learning improve the robustness of MIL-based video anomaly detection to dominant normal snippets in abnormal videos?
- RQ2Does capturing long- and short-range temporal dependencies enhance the discriminability of subtle anomalies in weakly-supervised settings?
- RQ3Can feature magnitude serve as a stronger training signal than classification scores for identifying positive instances in MIL?
- RQ4To what extent does RTFM improve sample efficiency and detection of rare or subtle anomalies compared to existing state-of-the-art methods?
- RQ5Is the assumption that top-k abnormal snippets have higher mean feature magnitude than normal snippets empirically valid in real-world datasets?
Key findings
- RTFM achieves 97.21% AUC on ShanghaiTech and 84.30% AUC on UCF-Crime, significantly outperforming the baseline and state-of-the-art methods.
- The ablation study shows that adding the feature magnitude (FM) module alone boosts AUC by over 7% on ShanghaiTech and 4% on UCF-Crime, demonstrating its strong impact.
- Combining dilated convolutions (PDC) and temporal self-attention (TSA) with FM yields 92.32% AUC on ShanghaiTech and 82.12% on UCF-Crime, showing complementary benefits.
- Empirical validation confirms that the mean feature magnitude of top-k abnormal snippets (53.4) is significantly higher than that of normal snippets (7.7), supporting the theoretical assumption.
- The model successfully detects multiple anomalous events in a single video, including subtle actions like stealing and shoplifting, even when visual differences are minimal.
- The anomaly scores show a large margin between abnormal (mean 0.85) and normal (mean 0.13) snippets, indicating effective separation in the feature space.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.