Self-Supervised Spatiotemporal Representation Learning by Exploiting Video Continuity

Hanwen Liang, Niamul Quader, Zhixiang Chi, Lizhe Chen, Peng Dai, Juwei Lu, Yang Wang

Introduction

Self-supervised learning (SSL) has emerged as a powerful paradigm for learning video representations without manual annotations. Traditional pretext tasks, such as predicting playback speed, temporal order, or video rotation, often rely on coarse-grained, temporally invariant signals. These methods frequently fail to capture the fine-grained, local motion dynamics essential for complex video understanding.

This paper introduces the Continuity Perception Network (CPNet), which leverages "video continuity" as a novel self-supervised signal. Video continuity refers to the inherent smoothness and persistence of objects and actions over time. By training a model to identify and localize temporal disruptions, CPNet learns to perceive both local and long-range motion patterns, achieving state-of-the-art performance across multiple downstream tasks, including action recognition and video retrieval.

Methodology

The core of CPNet is a shared 3D-ConvNet backbone (e.g., R(2+1)D or I3D) trained to solve three interrelated pretext tasks simultaneously:

  1. Continuity Justification: A binary classification task where the model determines if a given video clip is continuous or contains a synthetic "cut-off" (a removed middle segment).
  2. Discontinuity Localization: A more granular task requiring the model to pinpoint the exact frame index where a break-point occurs. This forces the network to attend to subtle frame-to-frame transitions.
  3. Missing Section Approximation (MSA): Instead of pixel-level reconstruction, CPNet learns to approximate the semantic features of the missing segment. This is achieved through a contrastive learning framework using a triplet loss, which aligns the features of a "cut" clip with its missing counterpart.
Overview of the CPNet architecture and its three pretext tasks: continuity justification, discontinuity localization, and missing section approximation.

Experimental Setup

CPNet was pretrained on the UCF101 and Kinetics-400 datasets in an unsupervised manner. Its performance was evaluated across several downstream tasks:

  • Action Recognition: Benchmarked on UCF101, HMDB51, and Diving48.
  • Video Retrieval: Evaluated on UCF101 and HMDB51.
  • Temporal Action Localization: Tested on ActivityNet-v1.3.

The Diving48 dataset was specifically included to assess the model's ability to handle fine-grained motion, where temporal consistency is paramount.

Results and Discussion

CPNet achieves state-of-the-art performance across multiple benchmarks. When pretrained on Kinetics-400, it reached 83.8% accuracy on UCF101 and 57.1% on HMDB51 using an R(2+1)D backbone. Notably, on the fine-grained Diving48 dataset, CPNet achieved 67.1% accuracy, significantly outperforming other SSL methods like MoCo+BE (58.3%) and approaching supervised baselines.

In video retrieval, CPNet demonstrated a substantial lead, achieving an R@1 of 33.2% on UCF101 with a C3D backbone—a nearly 10% improvement over previous methods like PRP.

Class Activation Map (CAM) visualizations demonstrating that CPNet focuses on moving objects and their trajectories to perceive continuity.

Qualitative analysis using Class Activation Maps (CAM) reveals that the model focuses on the trajectories of moving objects, such as a crawling baby or a lifted barbell, to justify continuity. Ablation studies further highlight that discontinuity localization provides the most potent supervision signal, as it requires the densest understanding of motion dynamics.

Limitations and Future Work

While CPNet shows strong results, it assumes that source videos are single continuous shots. Natural cuts in edited videos (e.g., movie trailers) could introduce noise into the pretext tasks, necessitating pre-processing steps like shot-boundary detection. Additionally, the current model relies solely on RGB data; incorporating optical flow or audio could further enhance the continuity signal. Future research could also explore explicitly modeling the physics of motion transitions to create more robust "world models."

Conclusion

By exploiting video continuity, CPNet provides a robust framework for learning spatiotemporal representations. The combination of global continuity justification, local discontinuity localization, and semantic feature approximation allows the model to capture complex motion patterns that traditional pretext tasks overlook.

Summary updated

BibTeX
@inproceedings{liang2022self,
  author = {Hanwen Liang and Niamul Quader and Zhixiang Chi and Lizhe Chen and Peng Dai and Juwei Lu and Yang Wang},
  title = {{Self-Supervised Spatiotemporal Representation Learning by Exploiting Video Continuity}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2022},
  doi = {10.1609/aaai.v36i2.20047},
}
Figure