Abstract
Capturing the dependencies between joints is critical in skeleton-based action recognition. While Transformers show great potential in modeling joint correlations, existing methods often fail to capture the relationships between different joints across different frames—a phenomenon known as "co-movement." To address this, we propose the Spatio-Temporal Tuples Transformer (STTFormer). By dividing skeleton sequences into tuples of consecutive frames and employing a novel spatio-temporal tuples self-attention module, STTFormer effectively captures complex cross-joint temporal dependencies. Additionally, an inter-frame feature aggregation module enhances the model's ability to distinguish between similar actions. Our method achieves state-of-the-art performance on the NTU RGB+D 60 and 120 datasets.
Introduction
Skeleton-based action recognition, which utilizes 3D joint coordinates, offers a computationally efficient and robust alternative to traditional video-based methods. However, accurately modeling human movement remains a challenge. Existing approaches, such as Recurrent Neural Networks (RNNs) and Graph Convolutional Networks (GCNs), often struggle with long-range dependencies or are constrained by the physical bone structure of the human body.
Standard Transformer-based models, while capable of global modeling, typically treat spatial (joint) and temporal (frame) dimensions independently. This separation overlooks vital cross-joint temporal correlations. For instance, in a "long jump," the movement of the arms in one frame is intrinsically linked to the movement of the legs in subsequent frames. This "co-movement" is the key to understanding complex human activities.
Methodology: The STTFormer Architecture
The STTFormer introduces a "tuple" encoding strategy to capture these intricate co-movements. The overall pipeline involves sequence division, tuple encoding, and a specialized Transformer layer.
1. Spatio-Temporal Tuples Attention (STTA)
Instead of processing frames individually, the skeleton sequence is divided into tuples—small windows of $n$ consecutive frames. Within each tuple, all joints from all frames are flattened into a single sequence. The STTA module then applies self-attention across this entire sequence, allowing the model to compute the relationship between any joint at any time within that window. This mechanism enables the detection of coordination between disparate body parts over short temporal spans.
2. Inter-Frame Feature Aggregation (IFFA)
While STTA handles local dependencies within a tuple, the IFFA module is designed to aggregate features across non-adjacent tuples. This allows the model to stitch together "sub-actions" (e.g., the take-off and landing phases of a jump) into a coherent global representation. This global context is crucial for distinguishing between actions that share similar local movements but differ in their long-term progression.
3. Positional Encoding and Multi-Mode Fusion
To preserve structural and chronological context, unique positional encodings are assigned to each joint and frame. Furthermore, the model leverages "multi-mode fusion," combining joint positions, bone lengths/orientations, and joint velocities to provide a holistic view of the action.
Experiments and Results
The STTFormer was evaluated on two large-scale benchmarks: NTU RGB+D 60 and NTU RGB+D 120.
- NTU RGB+D 60: The model achieved a Cross-Subject (X-Sub) accuracy of 92.3%, outperforming previous state-of-the-art models like MS-G3D (91.5%) and DSTA-Net (91.5%).
- NTU RGB+D 120: On this more challenging dataset, STTFormer reached 88.3% accuracy.
Ablation studies highlighted the importance of the IFFA module; its removal led to a significant drop in accuracy (from 89.9% to 84.5% on NTU-60 X-Sub), confirming that long-term feature integration is as vital as local tuple attention.
Discussion and Conclusion
The success of STTFormer underscores the importance of modeling cross-joint temporal correlations. By moving beyond the physical constraints of GCNs and the dimensional separation of standard Transformers, STTFormer learns "hidden" correlations purely from data.
Empirical results suggest that a tuple length of $n=6$ frames is optimal, balancing the need for temporal context with the risk of introducing noise. While the model currently uses a fixed window size, future iterations could explore adaptive tuple lengths to better accommodate actions performed at varying speeds. STTFormer represents a significant step forward in enabling AI to understand the complex, coordinated nature of human movement.
Summary updated