Abstract
This paper presents a hybrid framework for video anomaly detection (VAD) that integrates deep learning-based feature extraction with statistical sequential detection. Unlike traditional models that require extensive training on nominal data, the proposed "any-shot" system can operate with minimal examples of normal behavior and improves continuously as more data is collected. By leveraging pre-trained models for object detection and motion analysis, the system achieves real-time performance and state-of-the-art accuracy on standard benchmarks.
Introduction
Video anomaly detection in surveillance is often hindered by high data requirements, offline processing constraints, and the inability to adapt to new environments without retraining. Most existing models suffer from "catastrophic forgetting" or require future frames for normalization, making them impractical for real-time deployment. This work addresses these challenges by bridging the gap between few-shot and many-shot learning, creating a system that is deployable immediately and refines its understanding of "normalcy" over time.
Methodology
The proposed framework consists of two primary stages: feature extraction via transfer learning and statistical sequential detection.
Feature Extraction (Transfer Learning)
To avoid the computational cost of training from scratch, the system utilizes pre-trained models. YOLOv3 is employed for object detection, capturing spatial coordinates and class probabilities. Simultaneously, FlowNet 2 calculates optical flow, from which statistical measures—mean, variance, skewness, and kurtosis—are derived to represent motion characteristics. These features are concatenated into a $D$-dimensional vector ($D = n + 7$, where $n$ is the number of object classes).
Statistical Detection (Any-Shot Sequential Detection)
The core engine utilizes a $k$-Nearest Neighbor ($k$NN) approach combined with a Cumulative Sum (CUSUM)-like procedure. By measuring the Euclidean distance to known nominal features and maintaining a running decision statistic, the model filters noise and identifies persistent anomalies. This approach allows for a mathematically grounded threshold based on a target False Alarm Rate (FAR), avoiding the "black box" thresholding common in deep learning models.
Experimental Results
The framework was evaluated on three standard benchmarks: CUHK Avenue, UCSD Ped 2, and ShanghaiTech. It achieved competitive results, including a 97.8% Area Under Curve (AuC) on UCSD Ped 2 and 86.4% on CUHK Avenue, outperforming several complex deep learning baselines despite lower training complexity.
A key strength of the model is its "any-shot" capability. As demonstrated in experimental evaluations, the system significantly outperforms existing few-shot methods when provided with only 1 to 10 samples of a new normal behavior. This rapid adaptation allows the system to transition smoothly from a few-shot scenario to a many-shot regime as more data becomes available.
Conclusion
The proposed hybrid framework offers a robust solution for real-time video anomaly detection. By decoupling feature extraction from detection logic, the system provides interpretability and efficiency. While dependent on the quality of pre-trained models, its ability to learn from minimal data and avoid retraining makes it highly suitable for dynamic surveillance environments. Future work will explore automated feature weighting and modeling complex multi-object interactions to detect more sophisticated social anomalies.
Summary updated