[Paper Review] Learning Normal Dynamics in Videos with Meta Prototype Network
This paper proposes a Meta-Prototype Network (MPN) that learns normal video dynamics through a Dynamic Prototype Unit (DPU) using attention-based prototype mining, enabling memory-efficient, end-to-end normality modeling without extra storage. By integrating meta-learning, MPN achieves fast few-shot adaptation to new scenes, outperforming SOTA methods on multiple benchmarks with 96.9% AUC on Ped2 and 166.8 FPS inference speed.
Frame reconstruction (current or future frame) based on Auto-Encoder (AE) is a popular method for video anomaly detection. With models trained on the normal data, the reconstruction errors of anomalous scenes are usually much larger than those of normal ones. Previous methods introduced the memory bank into AE, for encoding diverse normal patterns across the training videos. However, they are memory-consuming and cannot cope with unseen new scenarios in the testing data. In this work, we propose a dynamic prototype unit (DPU) to encode the normal dynamics as prototypes in real time, free from extra memory cost. In addition, we introduce meta-learning to our DPU to form a novel few-shot normalcy learner, namely Meta-Prototype Unit (MPU). It enables the fast adaption capability on new scenes by only consuming a few iterations of update. Extensive experiments are conducted on various benchmarks. The superior performance over the state-of-the-art demonstrates the effectiveness of our method.
Motivation & Objective
- To address the limitations of memory-intensive methods in video anomaly detection by replacing large memory banks with a compact, differentiable prototype learning mechanism.
- To improve generalization across diverse real-world scenes by enabling fast adaptation to new environments with only a few support frames.
- To develop a memory-free, end-to-end trainable framework that models diverse normal dynamics in videos without overfitting to specific patterns.
- To enhance reconstruction-based anomaly detection by explicitly encoding normal dynamics as prototypes, improving detection accuracy on unseen anomalies.
Proposed method
- A Dynamic Prototype Unit (DPU) is introduced to learn compact, diverse prototypes from encoded features of consecutive normal frames using multi-head attention to assign normalcy weights.
- The DPU generates a pool of prototypes by aggregating feature vectors under attention weights, with a compactness and diversity loss to ensure representative and non-redundant prototypes.
- A meta-learning strategy is applied to the DPU, enabling fast adaptation to new scenes by updating prototype parameters with only a few support frames during inference.
- The DPU is integrated into an Auto-Encoder backbone, where the reconstructed feature map is fused with prototype-based encoding for improved frame prediction or reconstruction.
- The model is trained end-to-end using a combination of reconstruction loss and a novel prototype-based loss that encourages compact and diverse prototype learning.
- Inference uses few-shot adaptation via meta-optimized initialization, allowing rapid parameter updates on new scenes without retraining.
Experimental results
Research questions
- RQ1Can a memory-free, differentiable prototype learning mechanism effectively model diverse normal dynamics in video sequences?
- RQ2How can a video anomaly detection model achieve fast adaptation to new, unseen scenes with only a few support frames?
- RQ3Does attention-based prototype mining outperform traditional memory bank approaches in terms of accuracy and efficiency?
- RQ4Can meta-learning be effectively leveraged to initialize a prototype network for few-shot adaptation in unsupervised video anomaly detection?
Key findings
- The proposed Meta-Prototype Network (MPN) achieves 96.9% AUC on the Ped2 benchmark, outperforming state-of-the-art methods including MemAE and LMN.
- With 10 prototypes, the DPU achieves optimal performance, as increasing the number beyond 10 leads to performance degradation due to noise and reduced diversity.
- The model achieves 166.8 FPS inference speed on a single RTX-2080Ti GPU, significantly faster than prior methods like rGAN (2.1 FPS) and MemAE (86.7 FPS).
- Placing the DPU at higher-resolution layers of the Auto-Encoder improves performance, with AUC increasing from 81.18 at 1/8 resolution to 89.19 at 1/1 resolution on Ped2.
- The normalcy maps generated by the DPU effectively highlight scene-specific normal attributes such as roads, grass, and buildings, with low weights in anomalous regions.
- The ablation study confirms that combining feature reconstruction and frame prediction scores yields the best performance (96.9% AUC), demonstrating the complementary nature of the two loss components.
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.