Abstract
Abnormal event detection in video is a complex computer vision problem that has attracted significant attention in recent years. The complexity of the task arises from the commonly-adopted definition of an abnormal event, that is, a rarely occurring event that typically depends on the surrounding context. Following the standard formulation of abnormal event detection as outlier detection, we propose a background-agnostic framework that learns from training videos containing only normal events. Our framework is composed of an object detector, a set of appearance and motion auto-encoders, and a set of classifiers. Since our framework only looks at object detections, it can be applied to different scenes, provided that normal events are defined identically across scenes and that the single main factor of variation is the background. This makes our method background agnostic, as we rely strictly on objects that can cause anomalies, and not on the background. To overcome the lack of abnormal data during training, we propose an adversarial learning strategy for the auto-encoders. We create a scene-agnostic set of out-of-domain pseudo-abnormal examples, which are correctly reconstructed by the auto-encoders before applying gradient ascent on the pseudo-abnormal examples. We further utilize the pseudo-abnormal examples to serve as abnormal examples when training appearance-based and motion-based binary classifiers to discriminate between normal and abnormal latent features and reconstructions. Furthermore, to ensure that the auto-encoders focus only on the main object inside each bounding box image, we introduce a branch that learns to segment the main object. We compare our framework with the state-of-the-art methods on four benchmark data sets, using various evaluation metrics. Compared to existing methods, the empirical results indicate that our approach achieves favorable performance on all data sets. In addition, we provide region-based and track-based annotations for two large-scale abnormal event detection data sets from the literature, namely ShanghaiTech and Subway.
Introduction
Most anomaly detection systems treat the problem as an outlier detection task: they learn what "normal" looks like (e.g., people walking in a park) and flag anything else as an anomaly. However, these models often overfit to the specific background of the scene. If a model trained on a sunny park is moved to a snowy street, the change in background might trigger constant false alarms. This "scene-specificity" limits the scalability and portability of current solutions.
Furthermore, because abnormal events are rare by definition, researchers usually only have "normal" data for training. This makes it difficult to use standard supervised learning. While auto-encoders are commonly used to learn normal patterns, they often become too good at reconstructing images, sometimes reconstructing abnormal events so well that the "reconstruction error" isn't large enough to trigger an alert.
Methods
The proposed framework addresses these challenges through a three-stream architecture (Appearance, Forward Motion, and Backward Motion) designed to be background-agnostic and robust to the lack of real abnormal training data.
The architecture relies on four main pillars:
- Object-Centric Cropping: Instead of processing the whole frame, the system uses YOLOv3 to detect objects, which are then cropped and fed into Convolutional Auto-encoders (CAEs). This focuses the model on the actors rather than the environment.
- Adversarial Training with Pseudo-Abnormalities: To simulate abnormal data, the authors use a "pseudo-abnormal" dataset of out-of-domain images (e.g., anime, textures). They employ adversarial gradient ascent to force the auto-encoders to produce poor reconstructions of these images while maintaining high-quality reconstructions for normal video data.
- Segmentation Branch: To ensure the auto-encoder ignores background noise within the bounding box, a decoder branch learns to segment the main object, using Mask R-CNN for ground truth during training.
- Binary Classifiers: Instead of relying solely on reconstruction error, binary classifiers are trained on the difference between the input and the reconstruction, using pseudo-abnormal data as the negative class.
Key Insights
- The "Pseudo-Abnormal" Trick: Using completely unrelated images (like anime) to represent "abnormality" helps the model define the boundaries of "normal" much more effectively than training on normal data alone.
- Intentional Failure: By using adversarial training to maximize error for non-normal samples, the framework creates a larger signal gap, making anomalies significantly easier to detect.
- Cross-Domain Robustness: Because the model is object-centric, it can be trained on one dataset (e.g., ShanghaiTech) and perform well on another (e.g., Avenue) without retraining, moving toward "plug-and-play" surveillance.
Key Results
The framework was evaluated on four major benchmarks: Avenue, ShanghaiTech, Subway, and UCSD Ped2. On the Avenue dataset, the model achieved a 92.3% micro-averaged AUC, surpassing previous state-of-the-art methods. Furthermore, using the Region-Based Detection Criterion (RBDC), the model showed a 23.85% boost on Avenue compared to prior object-centric methods, indicating superior localization of anomalies. The system maintains real-time viability, running at 18–24 FPS on an RTX 3090.
Limitations
The system's performance is heavily dependent on the initial object detector (YOLOv3). If an object is not detected—such as "papers thrown in the air"—the anomaly is missed. Additionally, the reliance on SelFlow for motion estimation is a computational bottleneck, accounting for 76% of processing time. Finally, the background-agnostic nature means the model may miss context-dependent anomalies (e.g., a person in a restricted area) unless spatial context is explicitly reintroduced.
Summary updated