A Generically Contrastive Spatiotemporal Representation Enhancement for 3d Skeleton Action Recognition

Shaojie Zhang, Jianqin Yin, Yonghao Dang

TL;DR

This paper introduces a novel framework called Contrastive Spatiotemporal Representation Enhancement (CSRE) to improve 3D skeleton-based action recognition. CSRE decomposes skeleton representations into spatial and temporal components and uses contrastive learning to explicitly model intra-class variations and inter-class relationships, leading to more discriminative features and better recognition of ambiguous actions.

What Problem Does This Paper Address?

Skeleton-based action recognition is a crucial task in computer vision, with applications ranging from human-computer interaction to robotics. While existing methods use skeleton encoders to extract features and classify actions, they often overlook the underlying data distributions. This leads to confusion between similar actions (e.g., "take off glasses" vs. "take off a hat") and difficulty in distinguishing actions with high intra-class variation (due to individual differences or environmental factors). The paper argues that explicitly modeling these latent data distributions is key to overcoming these limitations and achieving more robust action recognition.

Methods

The core of the proposed CSRE framework is a Contrastive Spatiotemporal Representation Enhancement module. This module works in conjunction with existing skeleton encoders and can be seamlessly removed during testing.

Here's a breakdown of the key techniques:

  • Spatial-Temporal Feature Decomposition (STFD): The framework first decomposes the spatiotemporal features extracted by the skeleton encoder into spatial-specific and temporal-specific components. This allows for a more granular exploration of motion patterns along each dimension.
  • Contrastive Learning with Memory Banks: Two memory banks are introduced to store these decomposed spatial and temporal features. Contrastive learning is then applied to these features. The goal is to pull together features from "positive pairs" (different views of the same action) and push apart features from "negative pairs" (different actions). This process explicitly models the relationships between different action sequences and encourages the learning of discriminative representations.
  • Hybrid Sampling Strategy: To efficiently sample positive and negative pairs from the memory banks, the paper adopts a hybrid strategy combining hard mining (focusing on the most similar/dissimilar samples) and random sampling.

Datasets

The paper evaluates its proposed CSRE framework on three widely used benchmark datasets for skeleton-based action recognition:

  • NTU RGB+D 60: This dataset contains 56,880 samples across 60 action classes.
  • NTU RGB+D 120: An extension of NTU RGB+D, this dataset includes 57,367 new skeleton sequences and 60 new action classes, offering more diverse scenarios.
  • Northwestern-UCLA (NW-UCLA): This dataset comprises 1494 video clips of 10 different actions captured from three Kinect cameras.

The authors follow standard evaluation protocols for these datasets, including cross-subject (X-Sub) and cross-view (X-View) splits.

Key Insights and Ideas

  • Decomposition is Key: Explicitly decomposing spatiotemporal features into spatial and temporal components allows for a finer-grained understanding of motion, which is crucial for distinguishing subtle differences between actions.
  • Contrastive Learning for Latent Distributions: Applying contrastive learning to these decomposed features is highly effective in modeling the complex relationships between different action instances and categories, especially for ambiguous samples.
  • Plug-and-Play Generality: The CSRE framework is designed to be generic, meaning it can be easily integrated with various existing skeleton encoders (CNN-based, GCN-based, and Transformer-based) without requiring significant architectural changes. This makes it a versatile tool for improving existing models.
  • Bridging the Gap for Ambiguous Actions: The core idea that CSRE addresses the limitations of previous methods by explicitly modeling latent data distributions is a significant insight. This directly tackles the problem of confusing samples and leads to improved performance on challenging action categories.

Key Results

The CSRE framework demonstrates significant improvements across various baseline models and datasets.

  • Consistent Gains: When combined with five different skeleton encoders (HCN, 2S-AGCN, CTR-GCN, Hyperformer, and BlockGCN), CSRE consistently achieves solid performance gains on the NTU60, NTU120, and NW-UCLA benchmarks.
  • State-of-the-Art Performance: The paper reports that CSRE, when integrated with recent models like BlockGCN, achieves state-of-the-art results. For instance, on the NTU120 X-Sub benchmark, CSRE combined with CTR-GCN improves accuracy by up to 1.0% in the bone stream and 0.7% in the joint stream.
  • Improved Performance on Difficult Actions: Ablation studies show that CSRE particularly benefits actions categorized as "hard" and "medium" difficulty, indicating its effectiveness in handling more complex and fine-grained actions.
  • Competitive with Other Contrastive Methods: On the NTU120 X-Sub benchmark, CSRE achieves competitive or superior results compared to other recent contrastive learning methods.

Limitations and Future Work

  • Performance Decline in Some Categories: The authors acknowledge that while CSRE shows overall improvements, it might lead to a decline in performance for some specific action categories that originally performed poorly. They hypothesize this could be due to insufficient spatiotemporal modeling by the underlying skeleton encoders.
  • Future Research Directions: The paper suggests future work should focus on improving the spatiotemporal modeling capabilities of skeleton encoders to further enhance CSRE's performance, especially for challenging action categories. They also mention the need to balance computational consumption and performance by optimizing memory bank capacity as datasets grow.

Summary updated

BibTeX
@article{zhang2024generically,
  author = {Shaojie Zhang and Jianqin Yin and Yonghao Dang},
  title = {{A Generically Contrastive Spatiotemporal Representation Enhancement for 3d Skeleton Action Recognition}},
  journal = {Pattern Recognition},
  year = {2024},
}
Figure