Video Jigsaw: Unsupervised Learning of Spatiotemporal Context for Video Action Recognition

Unaiza Ahsan, Rishi Madhok, Irfan Essa

TL;DR

This paper introduces "Video Jigsaw," a novel self-supervised learning method that trains a network to solve jigsaw puzzles formed from shuffled patches of video frames. By jointly learning spatial and temporal context without heavy preprocessing, it achieves competitive results on action recognition tasks and demonstrates strong domain transfer capabilities.

What Problem Does This Paper Address?

Learning to recognize actions in videos typically requires large amounts of labeled data, which is expensive and time-consuming to create. While self-supervised learning offers a promising alternative by leveraging the inherent structure of unlabeled data, existing methods often focus on either spatial or temporal context separately. Combining these requires computationally intensive preprocessing like object tracking or optical flow estimation. This paper aims to bridge this gap by proposing a unified self-supervised framework that learns both spatial and temporal relationships from video frames without these demanding preprocessing steps.

Methods

The core of the proposed method, "Video Jigsaw," involves dividing multiple video frames into grids of patches and then shuffling these patches to create a "jigsaw puzzle." A convolutional neural network (CNN) is trained to predict the correct arrangement of these shuffled patches. This task inherently forces the network to learn:

  • Spatial Context: The relative positions of patches within a single frame.
  • Temporal Context: How patches evolve and relate to each other across different frames.

A key innovation is a novel permutation strategy that generates shuffled patch configurations. This strategy aims to preserve spatial coherence (patches within a frame tend to stay together) while still creating diverse puzzles, which is more computationally efficient and memory-friendly than purely random permutations. The network architecture is a multi-stream Siamese-like network where each stream processes a patch, and the final layers combine these features to predict the correct permutation.

Datasets

  • Training:
    • UCF101 [50]
    • Kinetics [24]
  • Evaluation (Transfer Learning):
    • UCF101 [50]
    • HMDB51 [27]
    • PASCAL VOC 2007 [13]

The authors emphasize that their self-supervised pretraining is performed on these large-scale, unlabeled video datasets, and the subsequent transfer learning is done on standard action recognition benchmarks.

Key Insights and Ideas

  • Joint Spatial-Temporal Learning without Heavy Preprocessing: The most significant insight is demonstrating that effective learning of both spatial and temporal context for action recognition can be achieved through a simple jigsaw puzzle task on video frames, bypassing the need for expensive optical flow or object tracking.
  • The Power of Jigsaw Puzzles for Video: The paper shows that extending the image-based jigsaw puzzle task to video frames, by considering patches across multiple frames, is a viable and effective self-supervised learning strategy.
  • Efficient Permutation Strategy: The proposed permutation strategy, which balances spatial coherence with diversity, is crucial for making the jigsaw task scalable and efficient, especially for videos with many patches. This is a practical improvement over existing methods that might require more computational resources.
  • Domain Transferability: The success of pretraining on a large, diverse dataset like Kinetics and then fine-tuning on smaller, distinct datasets (UCF101, HMDB51) highlights the generalizability of the learned representations.

Key Results

  • Competitive Action Recognition Performance: The Video Jigsaw network, after fine-tuning, achieves performance comparable to state-of-the-art methods on UCF101 and outperforms most existing unsupervised methods on HMDB51.
  • Improved Generalization with Larger Datasets: Pretraining on the large-scale Kinetics dataset leads to better generalization and transfer learning performance compared to pretraining on UCF101, even though the jigsaw puzzle solving accuracy might be lower.
  • Effectiveness of Proposed Permutation Strategy: The authors' proposed permutation strategy (Psp) performs comparably or better than the original random strategy (Porig) on both the jigsaw task and transfer learning, while being significantly faster to generate.
  • Patch Size Impact: Increasing patch size up to 80x80 generally improves finetuning accuracy, but beyond that, improvements plateau.

Limitations and Future Work

  • Dataset Size Dependency: The authors note that their approach requires a large-scale, diverse unlabeled video dataset to perform optimally. While they show good results with Kinetics, they believe even larger datasets could lead to better performance.
  • Oversampling Issues: Pretraining on UCF101 with oversampling led to easy jigsaw task learning but poorer transfer learning, suggesting that careful dataset curation or sampling is important.
  • Future Work: The paper implicitly suggests exploring even larger datasets and potentially more complex permutation strategies or task variations to further enhance representation learning. The authors also mention the potential for this method to be applied to other video understanding tasks beyond action recognition.

Summary updated

BibTeX
@inproceedings{ahsan2019video,
  author = {Unaiza Ahsan and Rishi Madhok and Irfan Essa},
  title = {{Video Jigsaw: Unsupervised Learning of Spatiotemporal Context for Video Action Recognition}},
  booktitle = {IEEE/CVF Winter Conference on Applications of Computer Vision},
  year = {2019},
  doi = {10.1109/wacv.2019.00025},
}
Figure