A Self-Reasoning Framework for Anomaly Detection Using Video-Level Labels

Muhammad Zaigham Zaheer, Arif Mahmood, Hochul Shin, Seung-Ik Lee · DOI

Introduction

Detecting anomalous events such as robberies, fights, or car crashes in surveillance video is a significant challenge in computer vision. Ideally, models would be trained using frame-level labels that specify the exact start and end times of an event. However, manually annotating millions of frames is prohibitively expensive and time-consuming.

A more scalable alternative is weakly supervised learning, where only a single label is provided for an entire video (e.g., "Normal" or "Anomalous"). The difficulty lies in the fact that an "anomalous" video consists mostly of normal frames; the actual event may only last a few seconds. This leads to "noisy" training data that can confuse standard models. This paper introduces a "self-reasoning" framework designed to navigate this noise and pinpoint specific moments of interest without explicit frame-level guidance.

Methodology

The proposed framework iterates between two primary components: a Fully Connected (FC) Network and a Binary Clustering module.

Overview of the proposed self-reasoning framework, illustrating the flow from video fragments to feature extraction, the FC network, and the clustering-based pseudo-label generation.
  1. Feature Extraction: Videos are partitioned into small fragments. Spatio-temporal features are then extracted from these fragments using a pre-trained C3D (Convolutional 3D) model.
  2. The FC Network: This network processes the extracted features to predict an "anomaly score" (ranging from 0 for normal to 1 for anomalous) for each fragment.
  3. Self-Reasoning via Clustering: This core innovation uses k-means clustering to split intermediate features from the FC network into two groups. Because k-means is unsupervised, the system assigns pseudo-labels by calculating a similarity score between the clusters and the FC network's current predictions.
  4. Dual Loss Function: The model is optimized using two simultaneous goals:
  5. Regression Loss: Minimizing the discrepancy between predicted scores and the generated pseudo-labels.
  6. Clustering Distance Loss: Encouraging the "normal" and "anomalous" clusters to diverge in the feature space for anomalous videos, while pulling them together for normal videos.

This architecture creates a virtuous cycle: improved clustering leads to more accurate pseudo-labels, which helps the FC network learn more discriminative features.

Datasets and Evaluation

The framework was evaluated on three major public benchmarks:

  • UCF-crime: A large-scale dataset of real-world surveillance containing 13 classes of anomalies.
  • ShanghaiTech: A dataset recorded in a university setting with diverse anomaly types.
  • UCSD Ped2: A dataset focused on pedestrian walkways where anomalies include unauthorized vehicles or bikers.

Key Results and Insights

The self-reasoning method achieved state-of-the-art performance across all benchmarks, measured by the Area Under the Curve (AUC):

  • ShanghaiTech: Reached 84.16% AUC, representing a 7.72% improvement over previous leading methods.
  • UCSD Ped2: Achieved 94.47% AUC.
  • UCF-crime: Achieved 79.54% AUC, comparable to complex models while maintaining a simpler architecture.
Qualitative results showing anomaly scores for various categories. The red regions represent ground truth anomalies, demonstrating the model's ability to localize events accurately.

The "aha moment" of this research is the use of clustering as a "label cleaner." Instead of assuming every frame in an anomalous video is bad, the model leverages the natural structural grouping of features to identify outliers. The FC network provides semantic hints, while clustering provides structural evidence, allowing the two to complement each other effectively.

Conclusion and Future Work

While the framework demonstrates strong results, it currently relies on a binary assumption (normal vs. anomalous). Future research could explore multi-cluster approaches to handle complex scenes with multiple types of behaviors. Additionally, while the framework is generic, its performance is tied to the quality of the initial C3D feature extractor. Exploring different feature extractors or reducing the computational overhead of k-means during training are promising avenues for scaling this technology.

Summary updated

BibTeX
@article{zaheer2020self,
  author = {Muhammad Zaigham Zaheer and Arif Mahmood and Hochul Shin and Seung-Ik Lee},
  title = {{A Self-Reasoning Framework for Anomaly Detection Using Video-Level Labels}},
  journal = {IEEE Signal Processing Letters},
  year = {2020},
  doi = {10.1109/lsp.2020.3025688},
}
Figure