Unsupervised Synthesis of Anomalies in Videos: Transforming the Normal

Abhishek Joshi, Vinay P. Namboodiri

Introduction

In the field of computer vision, identifying anomalies is a "needle in a haystack" problem. Surveillance systems capture millions of hours of mundane activity for every one second of something unusual, such as a traffic violation or an accident. This inherent data imbalance makes training robust supervised models difficult and expensive. Traditional unsupervised methods often attempt to model the "normal" distribution and flag deviations, but they frequently struggle to distinguish between true anomalies and environmental noise like lighting changes.

Abhishek Joshi and Vinay P. Namboodiri from IIT Kanpur propose a novel solution in their paper, "Unsupervised Synthesis of Anomalies in Videos: Transforming the Normal." Instead of waiting for rare events to occur, their framework mathematically transforms normal video frames into synthetic anomalies by relocating objects to "illegal" or historically unobserved locations.

Methodology: The Synthesis-Training Pipeline

The proposed framework consists of two primary stages: a Synthesis Block to generate candidate anomalies and a Training Block to refine the dataset and train the detector.

1. The Synthesis Block

To create realistic yet anomalous frames, the system identifies moving objects and relocates them to areas where they are statistically unlikely to appear based on historical motion patterns.

  • Segmentation and Mapping: Using background subtraction (ViBe) and Fully Convolutional Networks (FCN), the system segments moving objects like pedestrians and vehicles. It then builds a "motion mask" to identify regions where specific objects typically travel.
  • Transformation and Inpainting: An object is "cut" from its original position in a normal frame and "pasted" into a region outside the established motion mask (e.g., moving a car onto a pedestrian plaza). Temporal inpainting fills the resulting gap in the original frame with background pixels from previous frames.
Figure 1: A frame from the Traffic Junction dataset. The framework uses such scenes to identify normal motion patterns and synthesize anomalies by relocating pedestrians or vehicles.

2. The Training Block and Iterative Refinement

Not all synthetic transformations result in high-quality anomalies. To address this, the authors employ a Bayesian CNN (VGG-19 with Monte Carlo Dropout) to evaluate the "uncertainty" of the generated data.

  • Uncertainty Filtering: The model is trained to classify frames as normal or anomalous. If the model is highly certain that a synthetic frame looks "normal," that frame is discarded. This iterative refinement ensures the final training set contains only the most statistically significant anomalies that the model finds indistinguishable from real-world deviations.

Experimental Results

The method was evaluated on several challenging datasets, including a complex Traffic Junction and high-speed Highway footage.

Figure 2: A busy urban scene featuring diverse traffic. The synthesis method is particularly effective in these high-density environments where manual labeling of rare events is labor-intensive.

The results demonstrate a significant performance leap over traditional probabilistic models:

  • Traffic Junction: The model achieved an AUC of 77.61%, vastly outperforming the Likelihood Model (54.47%) and the Projection Model (65.15%).
  • Highway Dataset: The system reached an AUC of 83.59%, setting a new benchmark for unsupervised detection in high-speed environments.

Discussion and Future Directions

While the "Transforming the Normal" approach excels at detecting spatial anomalies—objects in the wrong place—it currently struggles with semantic or contextual anomalies. For instance, a pedestrian crossing a road at a designated zebra crossing is "spatially normal" but becomes an anomaly if the traffic light is red. The current system lacks the high-level semantic understanding of traffic signals or complex social interactions.

Future research aims to incorporate spatio-temporal generation, potentially using Generative Adversarial Networks (GANs) to synthesize anomalies based on how an object moves over time, rather than just where it is located. This work represents a significant step toward fully autonomous surveillance systems that can learn to identify danger without human intervention.

Summary updated

BibTeX
@inproceedings{joshi2019unsupervised,
  author = {Abhishek Joshi and Vinay P. Namboodiri},
  title = {{Unsupervised Synthesis of Anomalies in Videos: Transforming the Normal}},
  booktitle = {IJCNN},
  year = {2019},
  doi = {10.1109/ijcnn.2019.8852035},
}
Figure