Skip to main content
QUICK REVIEW

[Paper Review] MGFN: Magnitude-Contrastive Glance-and-Focus Network for Weakly-Supervised Video Anomaly Detection

Yingxian Chen, Zhengzhe Liu|arXiv (Cornell University)|Nov 28, 2022
Anomaly Detection Techniques and ApplicationsComputer Science7 citations
TL;DR

This paper proposes MGFN, a novel glance-and-focus network with feature amplification and magnitude-contrastive loss for weakly-supervised video anomaly detection. By mimicking human visual attention to first capture global context then focus on local anomalies, and by learning scene-adaptive feature magnitudes via contrastive loss, MGFN achieves state-of-the-art performance with 86.98% AUC on UCF-Crime and 80.11% AP on XD-Violence.

ABSTRACT

Weakly supervised detection of anomalies in surveillance videos is a challenging task. Going beyond existing works that have deficient capabilities to localize anomalies in long videos, we propose a novel glance and focus network to effectively integrate spatial-temporal information for accurate anomaly detection. In addition, we empirically found that existing approaches that use feature magnitudes to represent the degree of anomalies typically ignore the effects of scene variations, and hence result in sub-optimal performance due to the inconsistency of feature magnitudes across scenes. To address this issue, we propose the Feature Amplification Mechanism and a Magnitude Contrastive Loss to enhance the discriminativeness of feature magnitudes for detecting anomalies. Experimental results on two large-scale benchmarks UCF-Crime and XD-Violence manifest that our method outperforms state-of-the-art approaches.

Motivation & Objective

  • Address the limitation of existing weakly-supervised video anomaly detection methods in localizing anomalies within long videos due to insufficient global context awareness.
  • Overcome the inconsistency of feature magnitudes across scenes, which undermines anomaly detection performance when relying solely on magnitude-based supervision.
  • Improve feature discriminativeness by learning a scene-adaptive distribution of feature magnitudes that better separates normal from abnormal events.
  • Develop a unified framework that integrates global temporal context with local spatial detail for more accurate and robust anomaly localization.

Proposed method

  • Propose a Glance-and-Focus (GF) network architecture that first processes the entire video sequence to capture long-term temporal context (glance), then refines detection on local segments (focus).
  • Introduce the Feature Amplification Mechanism (FAM) to enhance the model's sensitivity to feature magnitude variations, improving representation learning for anomaly detection.
  • Design a Magnitude Contrastive (MC) loss that encourages higher similarity in feature magnitudes across videos of the same category (normal or abnormal), while maximizing separability between categories.
  • Train the model using video-level weak supervision, leveraging the MC loss to learn discriminative feature magnitudes without requiring frame-level annotations.
  • Integrate the GF module with FAM and MC loss in an end-to-end trainable framework, enabling joint optimization of global context modeling and local anomaly sensitivity.
  • Use a two-stream feature extraction strategy where global and local features are processed separately before fusion, with the GF mechanism ensuring effective flow of information from global to local levels.

Experimental results

Research questions

  • RQ1Can a glance-and-focus mechanism improve anomaly localization in long videos by integrating global context and local detail?
  • RQ2Does the inconsistency of feature magnitudes across scenes degrade the performance of magnitude-based anomaly detection methods?
  • RQ3Can a contrastive loss that learns scene-adaptive feature magnitude distributions improve the separability of normal and abnormal features?
  • RQ4To what extent does the proposed Feature Amplification Mechanism enhance the model’s ability to detect subtle or low-magnitude anomalies?
  • RQ5How does the combination of Glance-and-Focus, FAM, and MC loss outperform existing state-of-the-art methods in weakly-supervised settings?

Key findings

  • MGFN achieves 86.98% AUC on the UCF-Crime dataset and 80.11% AP on the XD-Violence dataset, outperforming state-of-the-art methods.
  • The ablation study shows that adding the Glance-and-Focus mechanism improves AUC from 82.66% (FF) to 85.80% on UCF-Crime, demonstrating its effectiveness in integrating global and local features.
  • The Feature Amplification Mechanism (FAM) alone boosts AUC by 1.65 percentage points on UCF-Crime and AP by 1.02 points on XD-Violence, indicating improved feature sensitivity.
  • The Magnitude Contrastive (MC) loss alone improves AUC by 2.85 points on UCF-Crime and AP by 3.69 points on XD-Violence, confirming its role in enhancing feature discriminativeness.
  • Combining FAM and MC loss yields the best performance (86.98% AUC and 80.11% AP), showing their complementary effect in improving detection robustness.
  • Qualitative results show that MGFN accurately localizes anomalies even in complex scenes with multiple abnormal clips, and maintains low false positives in normal videos with dynamic movements.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.