Spatial-Temporal Decoupling Contrastive Learning for Skeleton-based Human Action Recognition

Shaojie Zhang, Jianqin Yin, Yonghao Dang · DOI

Introduction

Skeleton-based action recognition is a critical component of modern human-robot interaction and video analysis. By tracking 3D joint coordinates rather than raw pixels, these systems achieve robustness to lighting changes and background clutter. However, a persistent challenge remains: semantic ambiguity. When actions are reduced to joint movements, distinct behaviors like "taking off a hat" and "taking off glasses" appear nearly identical.

The Ambiguity Problem

Most existing models map skeleton sequences directly to labels, often failing to capture the underlying data distribution. This leads to "sub-optimum" solutions where the model cannot clearly distinguish between fine-grained categories. The lack of explicit modeling for intra-class variations and inter-class relationships results in overlapping feature representations for similar actions.

The CSRE Framework

To address this, researchers have developed Contrastive Spatiotemporal Representation Enhancement (CSRE), a "plug-and-play" framework designed to refine the feature space during training.

Comparison between standard skeleton-based recognition and the proposed CSRE framework.

The CSRE framework employs three core strategies:

  1. Spatial-Temporal Feature Decomposition (STFD): The model decouples representations into separate spatial-specific (joint topology) and temporal-specific (motion trajectory) branches.
  2. Memory-Bank-Driven Contrastive Learning: Two memory banks store features from the entire dataset. Using an InfoNCE loss, the model learns to "pull" similar action features together and "push" dissimilar ones apart.
  3. Hybrid Sampling: A combination of "hard mining" (focusing on confusing samples) and random sampling ensures a balanced global and local view of the data.

Crucially, CSRE is a training-time supervisor. Once training is complete, the auxiliary modules are discarded, providing a performance boost at zero additional inference cost.

Key Insights and Results

The effectiveness of CSRE lies in its ability to structure the feature space logically. By forcing the model to analyze spatial and temporal patterns independently before contrasting them, it learns to identify the subtle nuances that distinguish similar actions.

Visualization of action ambiguity and the resulting feature clustering improvement with CSRE.

As shown in the t-SNE visualizations, CSRE-enhanced models produce significantly tighter and more distinct clusters compared to baseline Graph Convolutional Networks (GCNs). This structural improvement translates directly to higher accuracy:

  • Broad Compatibility: Tested across five state-of-the-art encoders (e.g., CTR-GCN, Hyperformer), CSRE consistently improved performance.
  • Benchmark Success: On the NTU RGB+D 120 (X-Sub) benchmark, it boosted the CTR-GCN model from 84.9% to 85.6%.
  • Hard Action Mastery: The most notable gains occurred in "Hard" and "Medium" difficulty categories, where fine-grained motion patterns are most critical.

Limitations and Future Work

While CSRE excels at distinguishing motion patterns, it shows slight performance declines in object-related actions (e.g., "tearing paper" or "putting on a shoe"). This suggests that if the base skeleton data lacks the necessary detail to represent object interaction, contrastive learning alone cannot bridge the gap. Future research will focus on enhancing base spatiotemporal modeling to better handle these edge cases.

Conclusion

CSRE provides a robust, generalizable method for improving skeleton-based action recognition. By decoupling spatial and temporal features and applying contrastive learning, it effectively resolves semantic ambiguities without increasing the computational burden of real-time deployment.

Summary updated

BibTeX
@article{zhang2024spatial,
  author = {Shaojie Zhang and Jianqin Yin and Yonghao Dang},
  title = {{Spatial-Temporal Decoupling Contrastive Learning for Skeleton-based Human Action Recognition}},
  journal = {Pattern Recognition},
  year = {2024},
}
Figure