NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Spatial Temporal Transformer Network for Skeleton-Based Action Recognition

Chiara Plizzari, Marco Cannici, Matteo Matteucci

Abstract

Skeleton-based action recognition is a critical task in computer vision, traditionally dominated by Graph Convolutional Networks (GCNs). However, GCNs are often limited by fixed graph topologies and local receptive fields. This paper presents the Spatial-Temporal Transformer Network (ST-TR), which utilizes self-attention mechanisms to dynamically learn joint relationships and temporal dependencies. By treating the human skeleton as a fully connected graph and applying temporal attention across frames, ST-TR captures long-range interactions more effectively than standard convolutions. Experimental results on the NTU RGB+D datasets demonstrate that ST-TR achieves state-of-the-art performance while maintaining high parameter efficiency.

Introduction

Identifying human activities from 3D joint coordinates is robust against environmental factors like lighting and background clutter. While the Spatial-Temporal Graph Convolutional Network (ST-GCN) has been a benchmark in this field, it suffers from several "locality" flaws. Specifically, ST-GCNs rely on a predefined physical skeleton, which restricts the model's ability to learn interactions between non-adjacent joints (e.g., hands during clapping). Furthermore, standard convolutions are limited by local receptive fields in both spatial and temporal dimensions. To overcome these constraints, the ST-TR architecture proposes a Transformer-based approach that allows for dynamic, global connectivity.

Methods

The proposed architecture, 2s-ST-TR, is a two-stream network designed to capture both spatial and temporal dynamics through specialized self-attention modules.

Spatial Self-Attention (SSA)

SSA moves beyond the fixed physical skeleton. It treats joints within a single frame as nodes in a fully connected graph. By computing query-key dot products, the model determines the relevance of each joint pair for a specific action, effectively "rewiring" the body dynamically based on the movement being performed.

Temporal Self-Attention (TSA)

TSA focuses on the evolution of a single joint across the entire sequence. Unlike temporal convolutions that operate on small windows, TSA correlates frames across the whole timeline, capturing long-term dynamics essential for complex actions.

Two-Stream Architecture

The final model integrates these modules into two distinct streams: the S-TR Stream, which employs SSA for spatial feature extraction followed by standard temporal convolutions, and the T-TR Stream, which uses standard graph convolutions for spatial features followed by TSA for temporal dynamics. The outputs of these streams are fused to produce the final action prediction.

The 2s-ST-TR architecture showing the S-TR and T-TR streams and their internal module configurations.

Experiments and Results

The model was evaluated on the NTU RGB+D 60 and NTU RGB+D 120 benchmarks, using metrics such as Cross-Subject (X-Sub) and Cross-View (X-View).

Key Performance Metrics

ST-TR consistently outperforms the ST-GCN baseline. On the NTU-60 dataset, the model achieved an accuracy of 89.9% on Cross-Subject and 96.1% on Cross-View when utilizing both joint and bone information. Ablation studies showed that replacing GCN with SSA improved accuracy by roughly 0.7% to 1.3%.

Performance comparison of ST-TR variants against the ST-GCN baseline on the NTU-60 dataset.

Efficiency and Context

A notable finding is the efficiency of the attention modules. The TSA module uses significantly fewer parameters ($17.7 \times 10^4$) compared to standard temporal convolutions ($59.0 \times 10^4$), yet provides superior performance. This efficiency stems from the Transformer's ability to model long-range context without the need for deep stacks of local filters. The model particularly excels in actions involving multi-person interactions (e.g., "hugging") or complex tool usage, where distant spatial or temporal relationships are defining features.

Discussion and Conclusion

The ST-TR framework demonstrates that the physical human skeleton can be a limitation for deep learning models. By allowing for functional, dynamic connectivity, the model captures nuances that fixed-graph methods miss. While Transformers introduce quadratic complexity relative to sequence length, the reduction in parameter count for specific modules suggests a favorable trade-off. Future work may explore scaling these models to multi-person scenarios and integrating additional data modalities like RGB or depth maps to further enhance robustness.

Summary updated

BibTeX
@inproceedings{plizzari2020spatial,
  author = {Chiara Plizzari and Marco Cannici and Matteo Matteucci},
  title = {{Spatial Temporal Transformer Network for Skeleton-Based Action Recognition}},
  booktitle = {Workshops @ ICPR},
  year = {2020},
  doi = {10.1007/978-3-030-68796-0\_50},
}
Figure