Part Aware Contrastive Learning for Self-Supervised Action Recognition

Yilei Hua, Wenhan Wu, Ce Zheng, Aidong Lu, Mengyuan Liu, Chen Chen, Shiqian Wu

Abstract

Self-supervised action recognition from skeleton data has traditionally relied on global contrastive learning, which often fails to capture the nuanced local movements that define specific actions. We present SkeAttnCLR, a novel framework that introduces part-aware contrastive learning. By utilizing a Multi-Head Self-Attention Mask (MHSAM), the model identifies and focuses on salient body parts—such as moving limbs—while ignoring non-contributory joints. This approach bridges the feature gap between different subjects performing the same action. Our experiments demonstrate that SkeAttnCLR achieves state-of-the-art performance on major benchmarks, including NTU RGB+D 60, NTU RGB+D 120, and PKU-MMD, notably improving joint-stream accuracy by 12% over previous baselines.

Introduction

Skeleton-based action recognition represents human movement as a sequence of 3D joint coordinates, offering a robust alternative to video-based methods by focusing on pose rather than background or lighting. Recent advancements have leveraged self-supervised contrastive learning, where models learn representations by maximizing the similarity between different views of the same sequence (positive pairs) and minimizing it between different sequences (negative pairs).

However, a significant limitation of current methods is their reliance on global skeleton representations. Two individuals performing the same action, such as "kicking," may have vastly different global poses due to variations in height, initial orientation, or camera angles. While the global features may appear dissimilar, the local movement—the extension of the leg—remains semantically identical. SkeAttnCLR addresses this by shifting the focus from the entire body to these local, action-defining regions.

Proposed Method: SkeAttnCLR

The SkeAttnCLR framework integrates local feature similarity into the standard global contrastive learning pipeline through several key innovations:

Multi-Head Self-Attention Mask (MHSAM)

At the core of the architecture is the MHSAM module. This component processes feature-level embeddings to generate a "soft mask" that distinguishes between salient features (joints actively involved in the action) and non-salient features (stationary or irrelevant joints). This allows the model to dynamically prioritize the most informative parts of the skeleton for any given action.

Local Contrastive Learning

Using the masks generated by the MHSAM, the model partitions features into salient and non-salient groups. It then performs contrastive learning at multiple levels:

  • Local-to-Local: Comparing salient parts across different views.
  • Local-to-Global: Comparing the salient parts of one view against the global representation of another.

This hierarchical approach forces the network to recognize that even if the global pose is distorted by noise or perspective, the underlying "action parts" remain consistent.

Data Augmentation and Backbone Flexibility

To further enhance the model's ability to generalize, the authors introduce Data Mixing, a strategy that randomly combines segments of different motion samples. This encourages the model to explore a wider variety of local variations. While the primary experiments utilize a Spatial-Temporal Graph Convolutional Network (ST-GCN) as the backbone, the method is backbone-agnostic and has proven effective with BiGRU and Transformer architectures.

Experimental Evaluation

Datasets

The framework was rigorously tested on three primary 3D action recognition benchmarks:

  1. NTU RGB+D 60: 56,000 videos across 60 classes.
  2. NTU RGB+D 120: 114,000 sequences across 120 classes.
  3. PKU-MMD: A dataset focused on continuous action comprehension.

Key Results

SkeAttnCLR consistently outperformed existing state-of-the-art (SOTA) methods across various protocols:

  • Accuracy Gains: On the NTU-60 Cross-Subject (X-Sub) protocol, the joint-stream accuracy reached 80.3%, representing a significant +12% improvement over the SkeletonCLR baseline.
  • Multi-Stream Fusion: By fusing joint, bone, and motion data, the model achieved 82.0% on NTU-60 X-Sub and 77.1% on NTU-120 X-Sub.
  • Label Efficiency: In semi-supervised settings with only 1% of labeled data, SkeAttnCLR achieved 59.6% accuracy on NTU-60, demonstrating the high quality of the learned representations.
  • Generalization: Pre-trained models showed strong transferability when evaluated on the PKU-MMD dataset, indicating that the learned features are not overfit to a specific data distribution.

Discussion and Conclusion

The success of SkeAttnCLR highlights a fundamental insight: for many human actions, semantic meaning is concentrated in specific joints rather than the whole body. By focusing on these salient parts, the model effectively ignores the "noise" of non-contributing joints and bridges the feature gap between disparate global poses.

Despite its success, the authors note that the performance margin narrows on the NTU-120 dataset, suggesting that extremely large category sets may introduce local similarity biases that are more difficult to resolve. Additionally, the multi-head attention module introduces some computational overhead. Future research may explore more granular part divisions or the application of part-aware logic to multi-modal data, such as combining skeleton data with raw video or depth maps. Overall, SkeAttnCLR represents a significant step forward in robust, self-supervised human action understanding.

Summary updated

BibTeX
@inproceedings{hua2023part,
  author = {Yilei Hua and Wenhan Wu and Ce Zheng and Aidong Lu and Mengyuan Liu and Chen Chen and Shiqian Wu},
  title = {{Part Aware Contrastive Learning for Self-Supervised Action Recognition}},
  booktitle = {International Joint Conference on Artificial Intelligence},
  year = {2023},
  doi = {10.24963/ijcai.2023/95},
}
Figure