[Paper Review] Video Event Restoration Based on Keyframes for Video Anomaly Detection
This paper proposes a novel video anomaly detection (VAD) paradigm based on video event restoration from keyframes, introducing a U-shaped Swin Transformer Network with Dual Skip Connections (USTN-DSC) to learn high-level visual features and temporal context. The method achieves state-of-the-art performance on three benchmark datasets, with AUC scores of 98.1% (Ped2), 89.9% (Avenue), and 73.8% (ShanghaiTech), demonstrating superior anomaly detection sensitivity and motion consistency through a novel adjacent frame difference loss.
Video anomaly detection (VAD) is a significant computer vision problem. Existing deep neural network (DNN) based VAD methods mostly follow the route of frame reconstruction or frame prediction. However, the lack of mining and learning of higher-level visual features and temporal context relationships in videos limits the further performance of these two approaches. Inspired by video codec theory, we introduce a brand-new VAD paradigm to break through these limitations: First, we propose a new task of video event restoration based on keyframes. Encouraging DNN to infer missing multiple frames based on video keyframes so as to restore a video event, which can more effectively motivate DNN to mine and learn potential higher-level visual features and comprehensive temporal context relationships in the video. To this end, we propose a novel U-shaped Swin Transformer Network with Dual Skip Connections (USTN-DSC) for video event restoration, where a cross-attention and a temporal upsampling residual skip connection are introduced to further assist in restoring complex static and dynamic motion object features in the video. In addition, we propose a simple and effective adjacent frame difference loss to constrain the motion consistency of the video sequence. Extensive experiments on benchmarks demonstrate that USTN-DSC outperforms most existing methods, validating the effectiveness of our method.
Motivation & Objective
- To address the limitation of existing DNN-based VAD methods that fail to effectively learn high-level visual features and comprehensive temporal context.
- To overcome the shortcomings of frame reconstruction and prediction-based VAD approaches, which struggle with anomalous samples due to overfitting to low-level patterns.
- To propose a new VAD paradigm inspired by video codec theory, where DNNs restore full video events from sparse keyframes.
- To design a USTN-DSC model that actively mines spatio-temporal relationships and improves restoration of complex static and dynamic motion objects.
- To validate the effectiveness of a novel adjacent frame difference loss in enforcing motion consistency in restored video sequences.
Proposed method
- Proposes a new VAD paradigm: video event restoration from keyframes, where DNNs infer missing frames using only keyframes as input.
- Designs a U-shaped Swin Transformer Network with Dual Skip Connections (USTN-DSC), combining encoder-decoder architecture with multi-scale feature learning.
- Introduces a cross-attention skip connection to enhance feature interaction between encoder and decoder features across spatial and temporal dimensions.
- Incorporates a temporal upsampling residual skip connection to preserve fine-grained motion details during video frame reconstruction.
- Employs a novel adjacent frame difference loss (AFDL) to enforce motion consistency by minimizing pixel differences between consecutive restored frames.
- Trains the model end-to-end using reconstruction loss and AFDL, with keyframes as input and full video sequences as targets.
Experimental results
Research questions
- RQ1Can video event restoration from keyframes serve as a more effective paradigm for unsupervised video anomaly detection than traditional reconstruction or prediction-based methods?
- RQ2How do dual skip connections—specifically cross-attention and temporal upsampling—improve the modeling of complex motion and static features in video restoration?
- RQ3To what extent does the adjacent frame difference loss enhance motion consistency and detection performance in video restoration-based VAD?
- RQ4How does the depth of Swin Transformer blocks affect the model’s ability to capture spatio-temporal dependencies across diverse video scenes?
- RQ5Does the proposed method generalize well across datasets with varying scene complexity and motion patterns?
Key findings
- The USTN-DSC model achieves state-of-the-art performance on three benchmark datasets, with AUC scores of 98.1% on Ped2, 89.9% on Avenue, and 73.8% on ShanghaiTech.
- The addition of dual skip connections improves AUC by 7.0, 6.7, and 6.4 percentage points on Ped2, Avenue, and ShanghaiTech, respectively, demonstrating their critical role.
- The cross-attention skip connection contributes most significantly, boosting performance by 5.3%, 4.7%, and 3.8% on the three datasets.
- The adjacent frame difference loss (AFDL) improves AUC by 0.9, 1.4, and 2.3 points on Ped2, Avenue, and ShanghaiTech, respectively, with the largest gain on ShanghaiTech due to complex motion patterns.
- Increasing the depth of Swin Transformer blocks (N) from 2 to 6 improves AUC by 1.0, 2.1, and 2.3 points on Ped2, Avenue, and ShanghaiTech, respectively, indicating stronger modeling capacity is needed for complex scenes.
- The method shows strong sensitivity to anomalies, with sharp increases in anomaly scores at the onset of anomalous events and rapid return to baseline after their disappearance.
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.