[Paper Review] A Hybrid Video Anomaly Detection Framework via Memory-Augmented Flow Reconstruction and Flow-Guided Frame Prediction
This paper proposes HF²-VAD, a hybrid video anomaly detection framework that enhances anomaly detection by first reconstructing optical flows using a multi-level memory-augmented autoencoder with skip connections (ML-MemAE-SC), then using the reconstructed flows to condition a conditional variational autoencoder (CVAE) for future frame prediction. The method achieves state-of-the-art performance, with a 99.31% AUROC on the UCSD Ped2 dataset, by amplifying prediction errors for abnormal events through degraded flow reconstruction.
In this paper, we propose $ ext{HF}^2$-VAD, a Hybrid framework that integrates Flow reconstruction and Frame prediction seamlessly to handle Video Anomaly Detection. Firstly, we design the network of ML-MemAE-SC (Multi-Level Memory modules in an Autoencoder with Skip Connections) to memorize normal patterns for optical flow reconstruction so that abnormal events can be sensitively identified with larger flow reconstruction errors. More importantly, conditioned on the reconstructed flows, we then employ a Conditional Variational Autoencoder (CVAE), which captures the high correlation between video frame and optical flow, to predict the next frame given several previous frames. By CVAE, the quality of flow reconstruction essentially influences that of frame prediction. Therefore, poorly reconstructed optical flows of abnormal events further deteriorate the quality of the final predicted future frame, making the anomalies more detectable. Experimental results demonstrate the effectiveness of the proposed method. Code is available at \href{https://github.com/LiUzHiAn/hf2vad}{https://github.com/LiUzHiAn/hf2vad}.
Motivation & Objective
- To address the challenge of detecting rare, unbounded abnormal events in videos where labeled anomalies are scarce.
- To improve anomaly detection by combining flow reconstruction and frame prediction in a unified, synergistic framework.
- To enhance detection sensitivity by leveraging reconstruction errors in optical flows to amplify prediction errors for abnormal events.
- To design a memory-augmented architecture that better memorizes normal spatiotemporal patterns in optical flow for improved reconstruction fidelity.
Proposed method
- The ML-MemAE-SC network uses multiple memory modules at different feature levels to memorize normal optical flow patterns, improving reconstruction quality for normal events.
- Skip connections are incorporated between encoder and decoder blocks to mitigate information loss caused by memory compression.
- Optical flows are reconstructed using ML-MemAE-SC before being fed into a CVAE-based future frame prediction model.
- The CVAE predicts future frames conditioned on past frames and reconstructed flows, leveraging the consistency between frames and flows to improve prediction accuracy.
- Anomaly scores are computed as the sum of flow reconstruction error and frame prediction error, with higher errors indicating abnormal events.
- The model is trained end-to-end on normal video data only, using reconstruction and prediction losses to learn normal dynamics.
Experimental results
Research questions
- RQ1Can a hybrid framework combining optical flow reconstruction and flow-guided frame prediction improve video anomaly detection beyond standalone reconstruction or prediction methods?
- RQ2How does memory-augmented flow reconstruction enhance the detection of abnormal events through increased reconstruction error?
- RQ3To what extent does using reconstructed flows instead of raw flows improve the quality and sensitivity of frame prediction in anomaly detection?
- RQ4What is the contribution of multi-level memory modules and skip connections in improving flow reconstruction and downstream prediction?
Key findings
- On the UCSD Ped2 dataset, the full HF²-VAD model achieved a 99.31% AUROC, outperforming all ablation variants and state-of-the-art baselines.
- The ablation study showed that using ML-MemAE-SC with three memory modules and CVAE for prediction yielded the highest performance, confirming the effectiveness of the hybrid design.
- Reconstruction-only models achieved AUROC scores of 98.81% with ML-MemAE-SC (3 memories), indicating strong anomaly sensitivity through flow reconstruction alone.
- Prediction-only models using CVAE with reconstructed flows achieved 98.28% AUROC, significantly outperforming VAE-based prediction without flow conditioning.
- The failure case analysis revealed that distant objects with low absolute flow values are harder to detect, suggesting depth-aware modeling is needed for future improvement.
- The model runs at approximately 10 frames per second, with inference taking 0.015s per frame, making it suitable for real-time applications.
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.