TL;DR
Gait recognition models have historically been kept shallow due to an overfitting illusion caused by simplistic laboratory datasets. This paper shatters that stereotype by demonstrating that deep CNNs and Transformers are essential for real-world, "in-the-wild" gait recognition, introducing novel architectures that achieve state-of-the-art performance on unconstrained outdoor benchmarks.
What Problem Does This Paper Address?
Gait recognition—identifying individuals by the unique way they walk—is highly valuable for long-distance, non-intrusive security and surveillance applications. However, traditional models suffer from a massive performance drop when moving from controlled laboratory environments to the real world.
The authors identify a systemic issue: the gait recognition community has relied on shallow networks under the assumption that gait is an "easy" task. In lab settings, shallow models simply memorize superficial, unchanged features (like specific clothing or shoes) rather than learning robust walking dynamics. When faced with real-world complexities like varying lighting, continuous viewpoints, diverse clothing, and natural occlusions, these shallow models fail.
Furthermore, attempts to apply Vision Transformers (ViTs) to gait recognition have stalled due to the "dumb patch" problem: binary gait silhouettes contain massive regions of solid black or white, which break the self-attention mechanism by generating useless or invalid gradients.
Methods
The authors propose two deep model families designed to overcome these limitations:
- DeepGaitV2: A deep CNN architecture scaling up to 30 layers using 2D, 3D, and Pseudo-3D (P3D) residual units to explicitly model spatial and temporal features.
- SwinGait: A deep, hybrid Transformer architecture based on Swin Transformers.
To solve the "dumb patch" problem for Transformers, SwinGait uses a hybrid approach: the first two stages use standard hierarchical convolution layers (CNN blocks) to transform sparse binary silhouettes into dense, float-encoded feature maps. Only then are these feature maps passed to the downstream 2D/3D Swin Transformer blocks to capture high-level spatiotemporal dependencies via local self-attention windows.
Datasets
The models were evaluated across both laboratory and real-world datasets:
- Constrained (Lab) Datasets: CASIA-B, OU-MVLP, CCPG, and SUSTech1K. These feature limited, human-controlled covariates.
- Real-World (In-the-Wild) Datasets: Gait3D and GREW. These contain unconstrained outdoor scenarios with continuous viewpoints, natural occlusions, and diverse real-world conditions.
Key Insights and Ideas
- The Depth Paradox: Increasing network depth causes severe overfitting on simple lab datasets like CASIA-B, creating the false impression that deep networks don't work for gait. However, on real-world datasets (Gait3D and GREW), performance scales dramatically with depth.
- The "Dumb Patch" Bottleneck: In datasets like GREW, up to 84.1% of patches are entirely black or white when using standard tokenization. This completely breaks pure transformer gradients. Pre-processing silhouettes with early CNN layers acts as a vital bridge for transformers.
- Time Order is Crucial: Shuffling the frame order of input sequences caused massive accuracy drops (up to 15.8% on GREW), proving that explicit temporal sequence modeling (3D/P3D convolutions) vastly outperforms unordered set-based approaches in complex environments.
Key Results
- State-of-the-Art Performance: DeepGaitV2 and SwinGait achieved new state-of-the-art results on real-world benchmarks. On the massive GREW dataset, SwinGait-3D achieved a 79.3% Rank-1 accuracy, while DeepGaitV2-3D reached 79.4%.
- Gait3D Breakthrough: On the Gait3D dataset, SwinGait-3D achieved a top Rank-1 accuracy of 75.0%, outperforming previous shallow baselines by a breakthrough margin.
- New Baselines: The authors recommend a 10-layer DeepGaitV2 model as the baseline for constrained datasets and a 22-layer model for real-world applications.
Limitations and Future Work
While these deep models deliver massive performance leaps, a significant gap remains before gait recognition is fully practical for open-world deployment. Additionally, the authors note that collecting and accurately labeling high-quality gait video data in the wild remains exceptionally expensive and difficult compared to other computer vision modalities. Future work will need to address data scarcity and further optimize spatiotemporal modeling efficiency.
Summary updated