Skip to main content
QUICK REVIEW

[Paper Review] Weakly-supervised Video Anomaly Detection with Contrastive Learning of Long and Short-range Temporal Features.

Yu Tian, Guansong Pang|arXiv (Cornell University)|Jan 25, 2021
Anomaly Detection Techniques and ApplicationsComputer Science44 references7 citations
TL;DR

This paper proposes MTN-KMIL, a weakly-supervised video anomaly detection method that combines a pyramid of dilated convolutions and self-attention to model multi-scale short- and long-range temporal dependencies, while using top-K contrastive multiple instance learning to enforce large margins between top-K normal and abnormal snippets at both feature and score levels, achieving state-of-the-art performance on ShanghaiTech, UCF-Crime, and XD-Violence datasets.

ABSTRACT

In this paper, we address the problem of weakly-supervised video anomaly detection, in which given video-level labels for training, we aim to identify in test videos, the snippets containing abnormal events. Although current methods based on multiple instance learning (MIL) show effective detection performance, they ignore important video temporal dependencies. Also, the number of abnormal snippets can vary per anomaly video, which complicates the training process of MIL-based methods because they tend to focus on the most abnormal snippet -- this can cause it to mistakenly select a normal snippet instead of an abnormal snippet, and also to fail to select all abnormal snippets available. We propose a novel method, named Multi-scale Temporal Network trained with top-K Contrastive Multiple Instance Learning (MTN-KMIL), to address the issues above. The main contributions of MTN-KMIL are: 1) a novel synthesis of a pyramid of dilated convolutions and a self-attention mechanism, with the former capturing the multi-scale short-range temporal dependencies between snippets and the latter capturing long-range temporal dependencies; and 2) a novel contrastive MIL learning method that enforces large margins between the top-K normal and abnormal video snippets at the feature representation level and anomaly score level, resulting in accurate anomaly discrimination. Extensive experiments show that our method outperforms several state-of-the-art methods by a large margin on three benchmark data sets (ShanghaiTech, UCF-Crime and XD-Violence). The code is available at this https URL

Motivation & Objective

  • To address the limitations of existing MIL-based methods in weakly-supervised video anomaly detection, which often overlook temporal dependencies and struggle with variable numbers of abnormal snippets.
  • To improve anomaly detection by modeling both short-range and long-range temporal dependencies in video snippets.
  • To develop a contrastive learning strategy that enforces large margins between top-K normal and abnormal snippets at both feature and score levels.
  • To enable accurate discrimination of all abnormal snippets despite class imbalance and variable anomaly duration.

Proposed method

  • A multi-scale temporal network (MTN) is designed using a pyramid of dilated convolutions to capture short-range temporal dependencies across multiple receptive fields.
  • Self-attention mechanisms are integrated into MTN to model long-range temporal dependencies between distant video snippets.
  • A top-K contrastive multiple instance learning (KMIL) framework is proposed to compare the top-K most anomalous snippets against the top-K most normal snippets.
  • The method enforces large margin constraints at both the feature representation level and the anomaly score level to improve discrimination between normal and abnormal snippets.
  • The contrastive loss is applied to ensure that the features of top-K abnormal snippets are separated from those of top-K normal snippets in the embedding space.
  • The model is trained end-to-end using video-level labels, enabling weakly-supervised learning without snippet-level annotations.

Experimental results

Research questions

  • RQ1Can modeling both short- and long-range temporal dependencies improve weakly-supervised video anomaly detection?
  • RQ2How can contrastive learning be adapted to multiple instance learning to better separate normal and abnormal snippets?
  • RQ3Can enforcing large margins at both feature and score levels improve anomaly discrimination in videos with variable anomaly durations?
  • RQ4Does the proposed MTN-KMIL method outperform existing state-of-the-art methods on standard benchmarks?

Key findings

  • MTN-KMIL achieves state-of-the-art performance on the ShanghaiTech dataset, significantly outperforming previous methods.
  • On the UCF-Crime dataset, the proposed method achieves a higher mean average precision (mAP) than existing SOTA approaches.
  • On the XD-Violence dataset, MTN-KMIL demonstrates superior detection accuracy, especially in identifying multiple or long-duration anomalies.
  • The ablation study confirms that both the multi-scale temporal modeling and the contrastive KMIL loss contribute significantly to performance gains.
  • The model is robust to variable numbers of abnormal snippets, avoiding the common issue of focusing only on the most abnormal snippet.

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.