[Paper Review] Video Anomaly Detection by Solving Decoupled Spatio-Temporal Jigsaw Puzzles
This paper proposes a self-supervised video anomaly detection method that solves decoupled spatio-temporal jigsaw puzzles—spatial puzzles for appearance and temporal puzzles for motion—using full permutations to generate diverse, challenging training signals. The approach achieves state-of-the-art performance on three benchmarks, outperforming reconstruction and prediction-based methods by a large margin, especially on ShanghaiTech Campus with 84.3% AUROC.
Video Anomaly Detection (VAD) is an important topic in computer vision. Motivated by the recent advances in self-supervised learning, this paper addresses VAD by solving an intuitive yet challenging pretext task, i.e., spatio-temporal jigsaw puzzles, which is cast as a multi-label fine-grained classification problem. Our method exhibits several advantages over existing works: 1) the spatio-temporal jigsaw puzzles are decoupled in terms of spatial and temporal dimensions, responsible for capturing highly discriminative appearance and motion features, respectively; 2) full permutations are used to provide abundant jigsaw puzzles covering various difficulty levels, allowing the network to distinguish subtle spatio-temporal differences between normal and abnormal events; and 3) the pretext task is tackled in an end-to-end manner without relying on any pre-trained models. Our method outperforms state-of-the-art counterparts on three public benchmarks. Especially on ShanghaiTech Campus, the result is superior to reconstruction and prediction-based methods by a large margin.
Motivation & Objective
- Address the challenge of video anomaly detection (VAD) in the absence of labeled abnormal data by leveraging self-supervised learning.
- Overcome limitations of existing reconstruction and prediction-based methods, which often fail to detect subtle anomalies due to strong generalization on normal patterns.
- Design a more discriminative pretext task than binary classification or simple contrastive learning to capture fine-grained spatio-temporal differences between normal and abnormal events.
- Eliminate dependency on ImageNet or Kinetics pre-training by training the model end-to-end from scratch using only normal video data.
- Improve model optimization and feature learning by decoupling spatial and temporal jigsaw puzzles and using full permutations to increase task diversity and difficulty.
Proposed method
- Decouple spatio-temporal jigsaw puzzles into two separate tasks: spatial jigsaw (reordering patches within frames) and temporal jigsaw (reordering consecutive frames in a clip), enabling focused learning of appearance and motion patterns.
- Use all $n!$ possible permutations (rather than a subset) to generate diverse jigsaw puzzles, increasing the difficulty and providing fine-grained supervisory signals for distinguishing subtle anomalies.
- Reformulate the jigsaw solving task as a multi-label classification problem: predict the original position of each patch (spatial) or frame (temporal), rather than a single permutation class.
- Train the model end-to-end without any pre-trained backbones, directly optimizing for spatio-temporal reconstruction from shuffled inputs.
- Apply both spatial and temporal jigsaw solvers during training and inference, with ablation studies showing that multi-task learning improves performance.
- Use a standard I3D or similar backbone network to extract features, with separate heads for spatial and temporal jigsaw prediction, trained via cross-entropy loss on the multi-label position prediction task.
Experimental results
Research questions
- RQ1Can solving decoupled spatio-temporal jigsaw puzzles serve as a strong, self-supervised pretext task for video anomaly detection?
- RQ2Does using full permutations instead of heuristic subsets improve the model's ability to detect subtle spatio-temporal anomalies?
- RQ3Is multi-task learning—simultaneously solving spatial and temporal puzzles—more effective than single-task learning for anomaly detection?
- RQ4How does the proposed method compare to other self-supervised pretext tasks (e.g., rotation prediction, arrow of time) in terms of VAD performance?
- RQ5Can the method generalize to both object-level and frame-level anomaly detection without relying on pre-trained models?
Key findings
- The proposed method achieves 92.2% AUROC on Avenue and 84.3% AUROC on ShanghaiTech Campus (STC), significantly outperforming prior state-of-the-art methods, especially reconstruction and prediction-based models.
- On STC, the method achieves 84.3% AUROC when both spatial and temporal jigsaw puzzles are solved during training and inference (C5), outperforming the single-task variant (C1) by 6.1 percentage points (78.6% AUROC).
- The ablation study confirms that solving both spatial and temporal puzzles during training is crucial: performance drops significantly when only one type is used, indicating that anomalies often involve both appearance and motion abnormalities.
- The method outperforms alternative pretext tasks such as rotation prediction, arrow of time, and temporal order verification, with the best result (84.3% AUROC) achieved when combining spatial and temporal jigsaw puzzles.
- On the RetroTrucks dataset, the method achieves 72.8% AUROC in frame-level detection, surpassing the prior state-of-the-art method (71.5% AUROC) that uses object interaction reasoning.
- The model achieves strong performance without any pre-trained weights, demonstrating that the proposed pretext task is effective enough to learn discriminative representations from scratch.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.