TrackletGait: A Robust Framework for Gait Recognition in the Wild

Shaoxiong Zhang, Jinkai Zheng, Shangdong Zhu, Chenggang Yan

Introduction

Gait recognition—the ability to identify individuals by their unique walking patterns—holds significant promise for long-range biometric identification in surveillance. However, the field has long been constrained by a "laboratory gap." While models perform exceptionally well in controlled environments with green screens and steady walking paths, they often fail when deployed in the "wild." TrackletGait is a new, lightweight framework designed to bridge this gap. By integrating a novel temporal sampling strategy, wavelet-based spatial downsampling, and a noise-rejecting loss function, it achieves state-of-the-art accuracy on major benchmarks while maintaining a significantly smaller footprint than its predecessors.

The Challenge of Real-World Gait Recognition

Traditional gait recognition models are typically trained on datasets like CASIA-B or OU-MVLP, which feature subjects walking in straight lines under ideal lighting. Real-world surveillance is far more chaotic: pedestrians change direction, stop abruptly, carry various items, or are partially obscured by environmental obstacles.

Comparison between gait recognition in real-world surveillance (wild) and controlled laboratory environments.

Existing deep learning models struggle with these "in the wild" scenarios due to three primary factors:

  1. Temporal Noise: Standard sampling methods often pick too few frames (missing essential motion dynamics) or too many (incorporating non-periodic movements that confuse the model).
  2. Information Loss: Common downsampling techniques, such as max-pooling, tend to discard fine edge details of a person's silhouette. In gait recognition, these edges are the primary source of identity information.
  3. Outliers and "Dirty" Data: Real-world silhouettes are often low-quality due to poor background subtraction or occlusion. Standard loss functions force models to learn from these low-quality samples, which introduces noise into the feature space.

Methodology

The authors propose three key innovations to enhance robustness and efficiency:

Random Tracklet Sampling (RTS)

Instead of selecting isolated random frames or a single continuous clip, RTS samples multiple short "tracklets" (consecutive frame sequences) from across a walking video. This approach strikes a critical balance: the consecutive frames within a tracklet capture local motion dynamics, while sampling multiple tracklets ensures the model sees the diversity of the entire walking sequence.

Haar Wavelet-based Downsampling (HWD)

To reduce image resolution without sacrificing structural integrity, TrackletGait employs Haar Discrete Wavelet Transforms. Unlike standard strided convolutions or pooling, HWD decomposes the silhouette into low-frequency and high-frequency components (capturing horizontal, vertical, and diagonal details). This preserves the "shape" of the gait more effectively, ensuring that identity-defining edges are not lost during processing.

Hardness Exclusion (HE) Triplet Loss

In the wild, the "hardest" samples are often not the most informative—they are frequently just noise. The HE Triplet Loss acts as a quality control mechanism. If the distance between an "anchor" and its "positive" match exceeds a specific threshold, the model identifies it as potentially corrupt data and ignores it during that training step. This prevents the model from overfitting to "garbage" data.

Experimental Validation

The researchers introduced the Average Inter-Frame Variation (AIFV) metric to quantify the complexity of different datasets. Their analysis confirmed that "in-the-wild" datasets like Gait3D and GREW exhibit significantly higher variability in silhouette size and shape compared to lab datasets, justifying the need for more robust architectures.

TrackletGait was evaluated across six major public datasets, ranging from pure laboratory settings to complex outdoor environments:

  • In-the-wild: Gait3D and GREW.
  • In-the-lab: OU-MVLP and CASIA-B.
  • Hybrid/Outdoor: CCPG and SUSTech1K.

Key Results and Efficiency

TrackletGait sets a new benchmark for both performance and deployment feasibility:

  • State-of-the-Art Accuracy: The model achieved 77.8% rank-1 accuracy on Gait3D and 80.4% on GREW, outperforming significantly larger architectures like DeepGaitV2.
  • Parameter Efficiency: The backbone utilizes only 10.3 million parameters. This is approximately 10% of the parameters used by competing SOTA models (such as DeepGaitV2-3D-128), making it an ideal candidate for real-time edge deployment.
  • Versatility: Despite its focus on "wild" data, it maintained a competitive 91.9% accuracy on OU-MVLP, proving that it does not sacrifice performance in clean environments to handle noise.

Conclusion and Future Directions

TrackletGait demonstrates that smarter feature extraction and data handling are more effective than simply increasing model depth. By acknowledging that real-world data is inherently noisy and adopting strategies to sample and filter that noise, the framework moves gait recognition closer to practical utility.

However, challenges remain. The authors noted that cross-dataset performance—training on one environment and testing in another—remains a significant hurdle due to the "domain gap." Future work will likely focus on domain adaptation techniques and improving model interpretability for use in professional security contexts.

Summary updated

BibTeX
@article{zhang2025trackletgait,
  author = {Shaoxiong Zhang and Jinkai Zheng and Shangdong Zhu and Chenggang Yan},
  title = {{TrackletGait: A Robust Framework for Gait Recognition in the Wild}},
  journal = {IEEE Trans. Multimedia},
  year = {2025},
  doi = {10.1109/tmm.2025.3607705},
}
Figure