TL;DR
SkeletonMAE adapts the powerful Masked Autoencoder (MAE) framework to 3D skeleton-based action recognition using a novel spatial-temporal masking strategy. By randomly masking both entire frames and individual joints, and reconstructing them using a specialized skeleton transformer, it learns highly generalizable motion features. This self-supervised approach significantly outperforms existing state-of-the-art methods, especially when labeled training data is scarce.
What Problem Does This Paper Address?
3D skeleton-based action recognition uses lightweight sequences of human joint coordinates to identify actions like "drinking water" or "taking a selfie." While fully supervised deep learning models excel at this task, they require massive amounts of expensive, manually labeled data and are highly prone to overfitting.
Self-supervised learning (SSL) offers a solution by learning from unlabeled data via pretext tasks (like solving jigsaw puzzles of motion) or contrastive learning. However, existing skeleton SSL methods often fail to capture complex temporal dynamics or rely too heavily on data augmentation tricks that ignore the intricate correlations between different joints across different frames.
Meanwhile, Masked Autoencoders (MAE) have revolutionized computer vision by masking image patches and forcing networks to reconstruct them. But MAE cannot be directly applied to skeleton data because:
- Skeletons have an explicit, high-density spatial-temporal structure (joints across frames), unlike static image pixels.
- Standard Vision Transformers (ViT) lack the inductive biases needed to process coordinate-based human motion sequences effectively.
Methods
The authors introduce SkeletonMAE, a self-supervised framework consisting of a distinct masking pipeline and an encoder-decoder architecture optimized for skeleton sequences.
1. Spatial-Temporal Masking Strategy
Instead of masking random patches, SkeletonMAE uses a two-stage masking process:
- Temporal Masking (Frame-level): A percentage ($\alpha$) of entire frames is randomly discarded from the sequence.
- Spatial Masking (Joint-level): Within the remaining frames, a percentage ($\beta$) of individual joints is randomly masked.
Crucially, the authors utilize a random joint masking strategy where different joints are masked in different frames, rather than fixing the masked joint indices across the entire video.
2. Backbone Architecture
Instead of standard ViT, SkeletonMAE uses the Spatio-Temporal Tuples Transformer (STTFormer) as its backbone. STTFormer divides skeleton sequences into non-overlapping tuples and leverages Spatio-Temporal Tuples Attention (STTA) to better handle multi-joint representations across adjacent frames.
During pre-training, the encoder processes only the unmasked joints/frames. The decoder then takes these encoded features alongside positional embeddings to reconstruct the original coordinate sequence via Mean Squared Error (MSE) loss. For the final action recognition task, the decoder is discarded, and the encoder is fine-tuned with a simple classification head.
Datasets
The model was evaluated on two widely used benchmarks:
- NTU RGB+D 60 (NTU-60): Contains 56,578 skeleton videos across 60 action categories, evaluated using Cross-Subject (X-Sub) and Cross-View (X-View) protocols.
- NTU RGB+D 120 (NTU-120): An expansion of NTU-60 containing 113,945 sequences across 120 categories, evaluated using Cross-Subject (X-Sub) and Cross-Set (X-Set) protocols.
Key Insights and Ideas
- Random Masking Forces Better Feature Learning: Masking different joints across different frames (random masking) outperforms masking the same joints across all frames (fixed masking). Random masking forces the model to learn complex cross-frame joint correlations and temporal continuity to successfully rebuild the missing data.
- High Masking Ratios Work for Skeletons Too: Similar to images, skeleton autoencoders benefit from high masking rates. The authors found that a combination of 40-50% frame masking and 50% joint masking yielded the best downstream performance, proving that the network can learn robust semantic representations even from highly corrupted inputs.
Key Results
SkeletonMAE achieves state-of-the-art performance across both datasets, outperforming prominent contrastive learning methods like CrosSCLR and AimCLR.
- NTU-60 Performance: On the Cross-Subject split, SkeletonMAE achieves 86.6% accuracy, outperforming AimCLR (using the same STTFormer backbone) by 2.7%.
- Data Efficiency: When fine-tuned on a mere 5% of labeled data from NTU-60, SkeletonMAE achieves 64.4% (X-Sub) and 68.8% (X-View) accuracy, demonstrating superior generalization capabilities under extreme data constraints.
Limitations and Future Work
The authors do not include a dedicated limitations section. However, a notable constraint mentioned in the experimental setup is that the skeleton sequence length was limited to 20 frames for all experiments to ensure a fair comparison. Future work could explore how SkeletonMAE scales to much longer, more complex, or untrimmed video sequences where temporal dynamics span hundreds of frames.
Summary updated