Abstract
Traditional weakly supervised video anomaly detection (WS-VAD) often treats anomalies as generic outliers, leading to high false alarm rates and poor generalization. This paper introduces the Learn suspected Anomalies from Prompts (LAP) framework, which leverages semantic event prompts to guide the detection process. By aligning visual features with textual descriptions of abnormal behaviors, LAP achieves state-of-the-art performance across multiple benchmarks and demonstrates superior robustness in cross-dataset scenarios.
Introduction
Video Anomaly Detection (VAD) is critical for automated surveillance, yet identifying "abnormal" events remains challenging due to their context-dependent nature. Most existing methods employ Weakly Supervised Video Anomaly Detection (WS-VAD) using Multiple Instance Learning (MIL). In this paradigm, models are trained on video-level labels (normal vs. abnormal) and tasked with identifying the most unusual snippets. However, without a concrete definition of "abnormality," these models often struggle to distinguish between true anomalies and benign but rare events, resulting in significant false positives.
Methodology: The LAP Framework
The LAP framework addresses the limitations of MIL by injecting semantic knowledge into the learning process through a "Prompt Dictionary"—a curated set of textual descriptions of potential anomalies (e.g., "fighting," "shooting," "arson").
The framework consists of several key components:
- Feature Synthesis: Visual features are extracted using CLIP, while a visual-to-text encoder (SwinBERT) generates captions for video snippets. These are fused into "synthetic features" that combine visual appearance with semantic context.
- Multi-Prompt Learning (MPL): Unlike traditional MIL that looks for the "top-k" scores within a single video, MPL uses a triplet loss to push snippets matching anomaly prompts away from normal snippets in the feature space across the entire training batch.
- Pseudo Anomaly Labeling (PAL): By measuring the similarity between video snippets and the prompt dictionary, the model generates fine-grained pseudo-labels. This allows the system to transition from coarse video-level supervision to more precise snippet-level training.
Experimental Evaluation
The LAP framework was evaluated on four major benchmarks: XD-Violence, UCF-Crime, TAD (Traffic Anomaly Dataset), and ShanghaiTech.
Key Results
- State-of-the-Art Accuracy: LAP achieved an Average Precision (AP) of 86.5% on XD-Violence and an AUC of 90.4% on UCF-Crime, outperforming previous leading methods like VadCLIP.
- Cross-Dataset Robustness: When trained on XD-Violence and tested on UCF-Crime, LAP maintained an AUC of 83.5%, significantly higher than the 68-69% achieved by traditional models. This suggests that LAP learns universal semantic concepts of abnormal behavior rather than dataset-specific visual patterns.
Discussion and Conclusion
The success of the LAP framework highlights the power of semantic guidance in video understanding. By moving from "black-box" outlier detection to concept-based recognition, the model gains significant robustness and interpretability.
However, the approach is currently dependent on the quality and breadth of the prompt dictionary. While it excels at high-action events, it may be less effective for subtle anomalies like pickpocketing that are harder to capture in simple textual prompts. Future research could explore the integration of Large Language Models (LLMs) to provide more nuanced contextual reasoning, such as distinguishing between a person running for exercise and a person running away from a crime scene.
Summary updated