Skeleton-Based Action Recognition Through Contrasting Two-Stream Spatial-Temporal Networks

Chen Pang, Xuequan Lu, Lei Lyu

Introduction

Action recognition—the ability of a system to identify human activities such as "clapping," "sitting," or "throwing"—is a foundational challenge in computer vision. Among various modalities, skeleton-based action recognition has gained prominence due to its computational efficiency and robustness against complex backgrounds. By focusing on the 3D coordinates of human joints, models can concentrate on the dynamics of human movement rather than irrelevant environmental pixels.

However, effectively modeling these movements requires balancing two distinct types of information: the natural physical structure of the human body (topology) and the long-range relationships between joints that may not be physically connected. This paper introduces ConGT, a novel Contrastive GCN-Transformer Network designed to harmonize these perspectives through a parallel architecture and contrastive learning.

The Challenge: Topology vs. Global Context

Existing research typically employs one of two architectures, each with inherent strengths and weaknesses:

  1. Graph Convolutional Networks (GCNs): These are excellent at respecting the natural "bones" of the human body. However, they struggle to capture long-distance relationships (e.g., the interaction between two hands during a clap) and are prone to "over-smoothing," where joint representations become indistinguishable as the network depth increases.
  2. Transformers: These excel at capturing global relationships across the entire skeleton regardless of physical distance. Yet, they often ignore the body's structural constraints, treating every joint as if it is equally connected to every other joint.

Most current methods attempt to bridge this gap by stacking these modules serially. The authors of this paper argue that such serial approaches force the model to treat the skeleton as a "complete graph," which inadvertently washes out the unique structural variations essential for defining specific actions.

The ConGT Framework

To address the "Goldilocks" problem of balancing local structure and global context, the authors propose the Contrastive GCN-Transformer Network (ConGT). Unlike serial models, ConGT utilizes a parallel two-stream architecture:

1. The Spatial-Temporal Graph (STG) Stream

This stream utilizes an Adaptive GCN to learn action representations while strictly maintaining the natural topology of the human skeleton. It focuses on how local neighborhoods of joints move in coordination, preserving the physical integrity of the motion.

2. The Spatial-Temporal Transformer (STT) Stream

Operating in parallel, the STT stream uses self-attention mechanisms to capture global relationships between any two joints, regardless of their physical distance or temporal separation. This allows the model to recognize patterns that span the entire body and duration of the action.

3. Contrastive Learning Paradigm

The "secret sauce" of ConGT is the use of a contrastive loss (InfoNCE) to synchronize these two streams. By maximizing the mutual information between the STG and STT outputs, the model forces the GCN to learn global context from the Transformer, while the Transformer learns structural constraints from the GCN. Each stream effectively acts as a teacher for the other.

4. Cyclical Focal Loss (CFL)

To optimize the training process, the researchers introduced the Cyclical Focal Loss. This function acts as a training curriculum: it focuses on "easy," confident samples during the early stages of training and gradually shifts its focus to "harder" samples in the middle epochs. This approach improves both the speed of convergence and the final accuracy of the model.

Experimental Results

The ConGT model was evaluated on three major industry-standard benchmarks, achieving state-of-the-art (SOTA) performance:

  • NTU-RGBD 60: Reached 92.0% accuracy on the Cross-View (X-View) protocol, outperforming previous leading models like BRL and 3s-AimCLR.
  • NTU-RGBD 120: Achieved 80.5% on the Cross-Setup (X-Set) protocol, establishing a significant lead over other unsupervised and self-supervised methods.
  • Northwestern-UCLA (NW-UCLA): Hit 85.3% accuracy, surpassing the previous benchmark of 83.8%.

Beyond raw accuracy, the paper demonstrates that the parallel approach effectively mitigates the over-smoothing problem common in deep GCNs. Visual evidence via t-SNE plots confirms that joint representations remain distinct and meaningful even as the network depth increases.

Conclusion and Future Work

ConGT demonstrates that parallelism, rather than serialism, is key to capturing the nuance of human motion. By allowing a GCN and a Transformer to learn in tandem and inform one another through contrastive learning, the model preserves structural integrity without sacrificing global awareness.

One identified limitation is the potential for "gradient conflict" if the contrastive learning weight is set too high; if the model is forced to make the two streams identical, it can degrade recognition performance. Future research may focus on more sophisticated balancing mechanisms or extending this parallel contrastive paradigm to other forms of sequential data beyond human skeletal coordinates.

Summary updated

BibTeX
@article{pang2023skeleton,
  author = {Chen Pang and Xuequan Lu and Lei Lyu},
  title = {{Skeleton-Based Action Recognition Through Contrasting Two-Stream Spatial-Temporal Networks}},
  journal = {IEEE Trans. Multimedia},
  year = {2023},
  doi = {10.1109/tmm.2023.3239751},
}
Figure