Abstract
Video Anomaly Detection (VAD) is a critical yet complex task in computer vision, typically addressed through unsupervised proxy tasks. This paper introduces a novel Multi-Task Learning (MTL) framework that combines future semantic segmentation prediction with optical flow magnitude estimation. A key contribution is the integration of a context-aware attention mechanism that utilizes depth information and motion vectors to improve anomaly localization. Experimental results demonstrate state-of-the-art performance on major benchmarks, including an 89.1% AUC on the ShanghaiTech dataset.
Introduction
Detecting unusual events in surveillance video is a "needle in a haystack" problem. Due to the rarity of anomalies, supervised training is impractical. Instead, researchers utilize proxy tasks—training models on "normal" data to perform tasks like frame prediction. High error in these tasks during inference signals a potential anomaly. However, existing methods often fail to account for object identity, perspective-induced motion variations, and sudden changes in direction. This work addresses these limitations by making proxy tasks more explainable and context-aware.
System Architecture
The proposed framework utilizes a two-branch architecture designed to capture both appearance and motion dynamics through distinct proxy tasks.
Appearance-Motion Branch
Unlike traditional methods that predict raw pixels, this branch performs Future Semantic Segmentation Prediction. By predicting the semantic map of the next frame based on previous frames, the model is forced to learn high-level object identities and their expected trajectories, filtering out environmental noise like lighting changes or flickering.
Motion Branch and Attention Mechanism
The motion branch focuses on Optical Flow Magnitude (OFM) using a student-teacher paradigm. To enhance this, the researchers introduced a sophisticated attention mechanism that incorporates spatial, channel, and contextual information.
The "secret sauce" of the framework lies in its Contextual Attention. By incorporating depth estimation via the MiDaS model, the network learns that motion magnitude is relative to distance from the camera. Furthermore, by analyzing the sine and cosine of motion angles, the model becomes sensitive to sudden, non-linear directional changes—a common indicator of anomalous behavior like falling or jumping.
Experimental Results
The framework was evaluated on the ShanghaiTech Campus and UCSD-Ped2 datasets, two gold-standard VAD benchmarks.
- ShanghaiTech: The model achieved a frame-level AUC of 89.1%, a significant improvement over the previous state-of-the-art of 86.18%.
- UCSD-Ped2: The model reached 97.8% AUC, maintaining top-tier performance even on lower-quality, grayscale footage.
Ablation studies confirmed the efficacy of the attention components. Specifically, adding the attention mechanism to the motion branch improved its individual AUC from 69.7% to 79.19%.
Discussion and Conclusion
The proposed MTL framework significantly advances VAD by making proxy tasks more context-aware. While the model showed exceptional results on most benchmarks, it faced challenges with the Avenue dataset due to low camera heights and occlusions that complicated motion direction estimation. Future research will focus on improving robustness to heavy occlusions and testing the framework in even more diverse, real-world surveillance environments.
Summary updated