Skip to main content
QUICK REVIEW

[Paper Review] Exploring Diffusion Models for Unsupervised Video Anomaly Detection

Anıl Osman Tur, Nicola Dall’Asen|arXiv (Cornell University)|Apr 12, 2023
Anomaly Detection Techniques and ApplicationsComputer Science5 citations
TL;DR

This paper proposes a novel unsupervised video anomaly detection method using diffusion models that leverage reconstruction error to identify anomalies without any labeled data. By applying k-diffusion with optimized noise scheduling and thresholding, the approach achieves state-of-the-art performance on UCF-Crime and ShanghaiTech, outperforming prior generative models and even more complex architectures in some cases.

ABSTRACT

This paper investigates the performance of diffusion models for video anomaly detection (VAD) within the most challenging but also the most operational scenario in which the data annotations are not used. As being sparse, diverse, contextual, and often ambiguous, detecting abnormal events precisely is a very ambitious task. To this end, we rely only on the information-rich spatio-temporal data, and the reconstruction power of the diffusion models such that a high reconstruction error is utilized to decide the abnormality. Experiments performed on two large-scale video anomaly detection datasets demonstrate the consistent improvement of the proposed method over the state-of-the-art generative models while in some cases our method achieves better scores than the more complex models. This is the first study using a diffusion model and examining its parameters' influence to present guidance for VAD in surveillance scenarios.

Motivation & Objective

  • To investigate the feasibility and effectiveness of diffusion models for unsupervised video anomaly detection (VAD) in surveillance.
  • To explore how key diffusion model hyperparameters—such as noise schedule and thresholding—impact anomaly detection performance.
  • To provide a practical guideline for deploying diffusion models in VAD, especially in real-world scenarios with no access to anomaly annotations.
  • To demonstrate that high reconstruction error in diffusion models can reliably indicate abnormal video frames.

Proposed method

  • The method uses a denoising diffusion model to reconstruct spatiotemporal features from unlabelled video clips, with reconstruction error used as an anomaly score.
  • A k-diffusion formulation is employed, where the reverse process starts at a user-defined timestep $ t $, allowing control over noise levels and information retention.
  • Timestep embeddings are incorporated via Fourier features and FiLM layers to condition the denoising process on the noise level.
  • Anomalies are detected using a data-driven threshold: $ L_{th} = \mu_p + k\sigma_p $, where $ \mu_p $ and $ \sigma_p $ are the mean and standard deviation of MSE losses over a batch.
  • The model is trained only on normal video clips, with no access to anomaly annotations during training.
  • The approach is evaluated using AUC scores on two large-scale benchmarks: UCF-Crime and ShanghaiTech.
Fig. 1 : The proposed method takes a batch of unlabeled video clips as the input and learns to determine whether each frame is anomalous or exhibits normal behavior. Our model is a generative one, which leverages the reconstruction capability of diffusion models for unsupervised VAD. Mean Squared Er
Fig. 1 : The proposed method takes a batch of unlabeled video clips as the input and learns to determine whether each frame is anomalous or exhibits normal behavior. Our model is a generative one, which leverages the reconstruction capability of diffusion models for unsupervised VAD. Mean Squared Er

Experimental results

Research questions

  • RQ1Can diffusion models effectively detect anomalies in video without any labeled data?
  • RQ2How does the starting timestep $ t $ of the reverse denoising process affect reconstruction error and anomaly detection performance?
  • RQ3What is the optimal value of the threshold multiplier $ k $ in the data-driven threshold $ L_{th} = \mu_p + k\sigma_p $ for anomaly detection?
  • RQ4How do different backbone architectures (e.g., 3D-ResNet18, 3D-ResNeXt101) interact with diffusion hyperparameters in VAD?
  • RQ5Does the proposed method generalize better than existing SOTA generative models in unsupervised VAD?

Key findings

  • The proposed method achieves state-of-the-art performance on both UCF-Crime and ShanghaiTech datasets, outperforming prior SOTA generative models based on autoencoders.
  • For 3D-ResNet18 on ShanghaiTech, the best performance was achieved with $ t=6 $, while $ t=4 $ was optimal for other configurations, indicating sensitivity to noise schedule.
  • The threshold multiplier $ k $ significantly affects performance: for 3D-ResNeXt101, $ k=0.5 $ yielded the best results on both datasets, while for 3D-ResNet18, $ k=0.7 $ (ShanghaiTech) and $ k=0.1 $ (UCF-Crime) were optimal.
  • The difference in AUC between the best and worst $ k $ values was up to 3 percentage points, highlighting the importance of hyperparameter tuning.
  • The method surpasses more complex models, including those using collaborative generative-discriminative learning, in certain settings, demonstrating the power of reconstruction-based anomaly detection with diffusion models.
  • Qualitative results show that anomaly scores rise sharply at the onset of ground-truth anomalies and drop afterward, confirming temporal alignment and sensitivity.
Fig. 2 : The effect of noise and the starting point of the reverse process while performing k-diffusion for VAD. The results (AUC %) belong to ShanghaiTech dataset [ 3 ] with 3D-ResNet18 backbone.
Fig. 2 : The effect of noise and the starting point of the reverse process while performing k-diffusion for VAD. The results (AUC %) belong to ShanghaiTech dataset [ 3 ] with 3D-ResNet18 backbone.

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.