Skip to main content
QUICK REVIEW

[Paper Review] Video Anomaly Detection By The Duality Of Normality-Granted Optical Flow

Hongyong Wang, Xinjian Zhang|arXiv (Cornell University)|May 10, 2021
Anomaly Detection Techniques and ApplicationsComputer Science43 references5 citations
TL;DR

This paper proposes a novel prediction-based video anomaly detection method that leverages the duality of normality-granted optical flow to distinguish abnormal from normal frames. By predicting optical flow from a single frame to guide next-frame prediction, the model exploits the fact that normal motion patterns are consistently predicted, while abnormal motions introduce errors—enabling anomaly detection via prediction quality. The approach achieves state-of-the-art performance on standard benchmarks.

ABSTRACT

Video anomaly detection is a challenging task because of diverse abnormal events. To this task, methods based on reconstruction and prediction are wildly used in recent works, which are built on the assumption that learning on normal data, anomalies cannot be reconstructed or predicated as good as normal patterns, namely the anomaly result with more errors. In this paper, we propose to discriminate anomalies from normal ones by the duality of normality-granted optical flow, which is conducive to predict normal frames but adverse to abnormal frames. The normality-granted optical flow is predicted from a single frame, to keep the motion knowledge focused on normal patterns. Meanwhile, We extend the appearance-motion correspondence scheme from frame reconstruction to prediction, which not only helps to learn the knowledge about object appearances and correlated motion, but also meets the fact that motion is the transformation between appearances. We also introduce a margin loss to enhance the learning of frame prediction. Experiments on standard benchmark datasets demonstrate the impressive performance of our approach.

Motivation & Objective

  • To address the challenge of detecting diverse, rarely labeled abnormal events in video surveillance using unsupervised learning.
  • To overcome temporal conflicts in prior methods that share latent spaces between frame and optical flow prediction.
  • To exploit the duality of normality-granted optical flow—helpful for normal motion but detrimental for abnormal motion—to enhance anomaly discrimination.
  • To extend appearance-motion correspondence from reconstruction to prediction, aligning with the physical nature of optical flow as pixel displacement.
  • To improve frame prediction robustness through a margin loss that emphasizes inter-frame differences.

Proposed method

  • Predicts next-frame appearance from a single current frame, guided by optical flow predicted from the same frame.
  • Uses a normality-granted optical flow network trained solely on normal data to generate motion patterns consistent with normal behavior.
  • Applies a region-correspondence learning strategy with convolutional layers to align appearance and motion features, improving robustness over direct warping.
  • Introduces a margin loss that forces the predicted frame to differ from the input frame, enhancing sensitivity to motion changes.
  • Employs PSNR-based patch evaluation to score prediction quality, with lower PSNR indicating higher anomaly confidence.
  • Uses the duality of optical flow: helpful for normal frames (improving prediction), harmful for abnormal frames (increasing errors), enabling anomaly detection.

Experimental results

Research questions

  • RQ1Can the duality of normality-granted optical flow improve anomaly detection by making predictions more accurate for normal events and less accurate for abnormal ones?
  • RQ2How does predicting optical flow from a single frame improve motion modeling compared to joint frame and flow prediction?
  • RQ3To what extent does the margin loss enhance the model's ability to distinguish motion changes between consecutive frames?
  • RQ4Does extending appearance-motion correspondence from reconstruction to prediction improve anomaly detection performance?
  • RQ5How does the proposed method compare to state-of-the-art approaches on standard video anomaly detection benchmarks?

Key findings

  • The proposed method achieves state-of-the-art performance on three standard benchmarks: UCSD Ped2, CUHK Avenue, and ShanghaiTech.
  • On CUHK Avenue, the model achieves an AUC of 88.41, with ablation showing a 3% improvement from optical flow guidance and 1% from margin loss.
  • The model runs at 77 fps for prediction and 47 fps for full detection, enabling real-time inference on a single GPU.
  • Visual analysis confirms that abnormal regions in predicted frames are more blurred and less accurate, especially in cases like a jumping child or a bicycle, where parts vanish or are distorted.
  • The PSNR-based anomaly score mask effectively highlights abnormal regions, with darker patches indicating higher confidence in anomaly detection.
  • The ablation study confirms that both optical flow guidance and margin loss are critical, with the former contributing significantly to performance gain.

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.