Context-aware Video Anomaly Detection in Long-Term Datasets
Zhengye Yang, Richard Radke
TL;DR
This paper tackles video anomaly detection in long-term, context-rich environments by introducing Trinity, a context-aware VAD framework that learns joint embeddings across context, appearance, and motion through global and local contrastive alignments. By integrating a context branch, a motion branch with vector-quantized flow tokens, and an appearance branch based on a U-net, Trinity detects context-dependent anomalies and also remains capable of addressing context-free anomalies on standard benchmarks. The authors contribute a new WF long-term dataset with rich contextual metadata, plus a Biker Day variant for benchmark-style evaluation, and demonstrate that context-aware global alignment substantially improves anomaly detection, especially for out-of-context events. Their approach offers practical impact for real-world camera networks by enabling robust detection of behavior that is anomalous only within a given temporal or scheduled context, and it provides a foundation for further research into long-term, context-sensitive video understanding.
Abstract
Video anomaly detection research is generally evaluated on short, isolated benchmark videos only a few minutes long. However, in real-world environments, security cameras observe the same scene for months or years at a time, and the notion of anomalous behavior critically depends on context, such as the time of day, day of week, or schedule of events. Here, we propose a context-aware video anomaly detection algorithm, Trinity, specifically targeted to these scenarios. Trinity is especially well-suited to crowded scenes in which individuals cannot be easily tracked, and anomalies are due to speed, direction, or absence of group motion. Trinity is a contrastive learning framework that aims to learn alignments between context, appearance, and motion, and uses alignment quality to classify videos as normal or anomalous. We evaluate our algorithm on both conventional benchmarks and a public webcam-based dataset we collected that spans more than three months of activity.
