Hierarchically Self-supervised Transformer for Human Skeleton Representation Learning

Yuxiao Chen, Long Zhao, Jianbo Yuan, Yu Tian, Zhaoyang Xia, Shijie Geng, Ligong Han, Dimitris N. Metaxas

Introduction

Human skeleton data, represented as sequences of 2D or 3D joint coordinates, offers a lightweight and robust modality for activity understanding, resistant to variations in lighting and background. However, the high cost of manual annotation for large-scale skeleton datasets has hindered the development of deep learning models. While self-supervised learning (SSL) provides a path forward by leveraging unlabeled data, existing approaches often treat skeleton sequences as "flat" temporal data. This ignores the inherent hierarchical structure of human movement, which spans from spatial joint correlations within a single frame to long-term patterns across an entire video.

To address this, we present Hi-TRS, a hierarchical Transformer-based framework designed to learn versatile skeleton representations through multi-level self-supervised pre-training.

Methodology

The Hi-TRS Architecture

The Hi-TRS model is structured to mirror the hierarchical nature of human actions. It consists of three specialized Transformer modules:

  1. Frame Transformer (F-TRS): This module focuses on learning spatial dependencies between joints within individual frames.
  2. Clip Transformer (C-TRS): It captures short-term, fine-grained temporal dynamics by processing small windows (clips) of frames.
  3. Video Transformer (V-TRS): This final stage summarizes long-term abstract information across the entire sequence.
The Hi-TRS architecture processes skeleton data through hierarchical Transformer modules, each supervised by a specific pretext task.

Hierarchical Pre-training Tasks

To effectively train the model at each level of the hierarchy, three distinct pretext tasks are employed:

  • Spatial Pretext Task: Similar to masked language modeling in BERT, the model masks 15% of joint coordinates and is tasked with reconstructing them using spatial context from the same frame.
  • Temporal Pretext Task: This is a binary classification task where the model must identify whether a motion sequence is in its original temporal order or has been permuted (shuffled).
  • Discriminative Pretext Task: Using a contrastive InfoNCE loss, the model learns to predict the embedding of a future clip based on past information, fostering the learning of discriminative features.
Visual representation of the Spatial (reconstruction) and Temporal (order permutation) pretext tasks used for hierarchical pre-training.

Experiments and Results

The Hi-TRS framework was evaluated on three major benchmarks: NTU RGB+D 60, NTU RGB+D 120, and the PKU Multi-Modality Dataset (PKUMMD).

Action Recognition and Detection

Hi-TRS achieved state-of-the-art (SOTA) performance in action recognition. On the NTU-60 cross-subject benchmark, a three-stream (3S) version of the model reached 90.0% accuracy, surpassing previous SSL methods like CrosSCLR. In action detection tasks on the PKUMMD dataset, Hi-TRS showed significant improvements in mean Average Precision (mAP), particularly in semi-supervised settings where only 10% of labels were available.

Motion Prediction

The model's ability to learn fine-grained temporal features was further validated through motion prediction. Hi-TRS reduced the Mean Per Joint Position Error (MPJPE) by 4.6mm in semi-supervised protocols, demonstrating its capability to accurately forecast future human poses.

Discussion

A key insight from this work is the versatility afforded by hierarchical supervision. By supervising every stage of the encoder, the model produces features suitable for a wide range of tasks: clip-level embeddings for detection and video-level embeddings for recognition. Ablation studies confirmed that lower-level pre-training (joints) benefits high-level tasks (recognition), while high-level context (video) aids low-level tasks (detection).

Despite its strengths, the model faces challenges in extremely low-data regimes (e.g., 1% of training data) due to the high parameter count of Transformers compared to simpler architectures. Additionally, the computational complexity of processing long sequences remains a consideration for future optimization.

Conclusion

Hi-TRS demonstrates that a hierarchical approach to self-supervised learning can capture the complex structural domain knowledge inherent in human movement. By pre-training at the joint, clip, and video levels, the model achieves superior performance and strong transferability across diverse skeleton-based downstream tasks.

Summary updated

BibTeX
@inproceedings{chen2022hierarchically,
  author = {Yuxiao Chen and Long Zhao and Jianbo Yuan and Yu Tian and Zhaoyang Xia and Shijie Geng and Ligong Han and Dimitris N. Metaxas},
  title = {{Hierarchically Self-supervised Transformer for Human Skeleton Representation Learning}},
  booktitle = {European Conference on Computer Vision},
  year = {2022},
  doi = {10.1007/978-3-031-19809-0\_11},
}
Figure