Contrastive Learning from Spatio-Temporal Mixed Skeleton Sequences for Self-Supervised Skeleton-Based Action Recognition

Zhan Chen, Hong Liu, Tianyu Guo, Zhengyan Chen, Pinhao Song, Hao Tang · DOI

Abstract

Self-supervised skeleton-based action recognition typically relies on contrastive learning with simple data augmentations. However, as training progresses, these standard augmentations often become too "easy" for the model, leading to a performance plateau where the encoder stops learning meaningful new features. We present SkeleMixCLR, a novel framework that introduces "hard" contrastive pairs by strategically mixing spatio-temporal fragments from different skeleton sequences. By partitioning skeletons into body-part subsets and performing topology-aware mixing, SkeleMixCLR forces the model to learn more robust, fine-grained motion representations. Our method achieves state-of-the-art results on major benchmarks, including NTU RGB+D 60, NTU RGB+D 120, and PKU-MMD.

Introduction

In self-supervised skeleton-based action recognition, models learn by comparing different "views" of the same data—a process known as contrastive learning. Typically, these views are created using simple augmentations like shearing, cropping, or rotation. While effective initially, these standard augmentations eventually become a bottleneck. As the model matures, it easily distinguishes between these simple variations, and the loss contribution from these pairs diminishes. To break through this plateau, the model requires hard contrastive pairs: samples that are semantically similar but structurally different enough to challenge the encoder and drive deeper feature extraction.

Methods

SkeleMixCLR builds upon the MoCov2 framework, integrating a unique augmentation strategy and a specialized pooling mechanism to handle complex, mixed sequences.

SkeleMix Augmentation

Unlike standard mixing techniques that might blend pixels or high-level features, SkeleMix operates directly on the skeleton's topology. The process involves partitioning joints into five distinct body parts (arms, legs, and trunk). As shown in the figure below, the system crops a specific fragment from one sequence (the trimmed view) and combines it with the remaining parts of a different sequence (the truncated view).

The SkeleMix augmentation process: partitioning joints into body parts, cropping fragments, and combining them with different sequences.

Spatio-Temporal Mask Pooling (STMP)

To process these mixed sequences effectively, the authors introduce STMP at the feature level. This allows the model to separate and generate distinct embeddings for the "trimmed" and "truncated" portions of the mixed skeleton, ensuring that the shared spatial context does not lead to feature collapse.

Hard Contrastive Learning

These generated views construct challenging learning tasks. For instance, a truncated view—which is missing parts of its original motion—is treated as a "hard positive" to its original sequence. Conversely, the trimmed and truncated views from the same mix serve as "hard negatives" to each other. Because they share spatial context but represent different actions, they provide a much stronger signal for the model to learn global versus local motion than standard independent augmentations.

Key Insights

  • Topology-Awareness: Mixing random joints is significantly less effective than mixing based on body-part subsets. Maintaining local structural integrity is vital for the model to recognize action context.
  • The "Hardness" Sweet Spot: Experiments showed that using multiple SkeleMix branches (R=3) improves performance, but adding more (R=4) causes a drop. This indicates a limit to how much structural noise a model can handle before the contrastive task becomes unsolvable.

Key Results

SkeleMixCLR achieved state-of-the-art (SOTA) performance across all major benchmarks. On the NTU-60 dataset, it improved the baseline (SkeletonCLR) by 8.0% to 11.3% in linear evaluation. The 3-stream ensemble (Joint + Motion + Bone) reached 82.7% (Xsub) and 87.1% (Xview) accuracy, as illustrated in the performance comparison below.

Comparison of SkeleMixCLR against state-of-the-art methods on the NTU-60 dataset.

On NTU-120, SkeleMixCLR outperformed previous SOTA methods like AimCLR and ISC, reaching 70.5% (Xsub). Notably, on the difficult PKU-MMD Part II subset, the Joint stream version jumped from a baseline of 35.2% to 55.0%, demonstrating exceptional robustness to view variation.

Conclusion and Future Work

SkeleMixCLR demonstrates that generating hard contrastive pairs through topology-aware mixing is a powerful strategy for self-supervised learning. While the current multi-stream fusion provides the best results, the streams are currently processed independently. Future work will explore "cross-stream" learning, potentially mixing fragments from the Joint stream of one action with the Motion stream of another to create even more complex and informative pretext tasks.

Summary updated

BibTeX
@misc{chen2022contrastive,
  author = {Zhan Chen and Hong Liu and Tianyu Guo and Zhengyan Chen and Pinhao Song and Hao Tang},
  title = {{Contrastive Learning from Spatio-Temporal Mixed Skeleton Sequences for Self-Supervised Skeleton-Based Action Recognition}},
  year = {2022},
  eprint = {2207.03065},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2207.03065},
}
Figure