Abstract Surveillance videos are able to capture a variety of realistic anomalies. In this paper, we propose to learn anomalies by exploiting both normal and anomalous videos. To avoid annotating the anomalous segments or clips in training videos, which is very time consuming, we propose to learn anomaly through the deep multiple instance ranking framework by leveraging weakly labeled training videos, i.e. the training labels (anomalous or normal) are at video-level instead of clip-level. In our approach, we consider normal and anomalous videos as bags and video segments as instances in multiple instance learning (MIL), and automatically learn a deep anomaly ranking model that predicts high anomaly scores for anomalous video segments. Furthermore, we introduce sparsity and temporal smoothness constraints in the ranking loss function to better localize anomaly during training. We also introduce a new large-scale first of its kind dataset of 128 hours of videos. It consists of 1900 long and untrimmed real-world surveillance videos, with 13 realistic anomalies such as fighting, road accident, burglary, robbery, etc. as well as normal activities. Experimental results show that our MIL method for anomaly detection achieves significant improvement on anomaly detection performance as compared to the state-of-the-art approaches.
Introduction
Traditional anomaly detection in surveillance often relies on one-class classification, attempting to model "normal" behavior and flagging deviations. However, defining "normal" is difficult in dynamic real-world environments. Moreover, training supervised models typically requires labor-intensive frame-level annotations. This paper addresses these challenges by introducing a Deep Multiple Instance Learning (MIL) framework that utilizes only video-level labels, significantly reducing the annotation burden while improving detection accuracy in realistic scenarios.
Proposed Method: Deep Multiple Instance Ranking
The proposed framework treats anomaly detection as a regression problem using a ranking cost function. By adopting an MIL approach, the authors treat an entire anomalous video as a "positive bag" and a normal video as a "negative bag." Each video is partitioned into 32 temporal segments, which serve as "instances" within the bags.
The architecture utilizes a pre-trained C3D (Convolutional 3D) network to extract both motion and appearance features from these segments. These features are then processed by a 3-layer fully connected neural network. The ranking loss is designed to ensure that the highest anomaly score in a positive bag is significantly higher than the highest score in a negative bag. To further refine the output, the authors incorporate two key priors:
- Sparsity: Anomalies are typically short-lived relative to the total video length.
- Temporal Smoothness: Anomalous events usually occur over a continuous sequence of frames rather than flickering.
The UCF-Crime Dataset
A major contribution of this work is the introduction of the UCF-Crime dataset. This large-scale dataset consists of 1,900 untrimmed videos totaling 128 hours of footage. It covers 13 distinct real-world anomaly categories, including fighting, road accidents, burglary, and robbery. Unlike previous datasets that were often staged or limited in scope, UCF-Crime provides a rigorous "in the wild" benchmark for evaluating anomaly detection systems.
Experimental Results
The proposed MIL framework demonstrates superior performance on the UCF-Crime dataset. It achieves an Area Under the Curve (AUC) of 75.41%, outperforming previous state-of-the-art methods such as Lu et al. (65.51%) and Hasan et al. (50.6%).
Beyond overall accuracy, the method maintains a low false alarm rate of 1.9% at a 50% threshold, which is vital for practical surveillance applications. Despite the lack of frame-level training labels, the model effectively learns to localize anomalies, producing high scores specifically during the actual occurrence of anomalous events.
Conclusion and Future Work
This research demonstrates that weak supervision via video-level labels is sufficient for high-performance anomaly detection. While the model excels at detection, categorizing the specific type of anomaly remains a significant challenge, with baseline recognition accuracy currently around 23-28%. Future research will focus on improving performance in low-light conditions and reducing false alarms caused by complex but normal group activities.
Summary updated