Abstract
Gait recognition aims to distinguish different walking patterns by analyzing video-level human silhouettes, rather than relying on appearance information. Previous research on gait recognition has primarily focused on extracting local or global spatial-temporal representations, while overlooking the intrinsic periodic features of gait sequences, which, when fully utilized, can significantly enhance performance. In this work, we propose a plug-and-play strategy, called Temporal Periodic Alignment (TPA), which leverages the periodic nature and fine-grained temporal dependencies of gait patterns. The TPA strategy comprises two key components: Adaptive Fourier-transform Position Encoding (AFPE) and the Temporal Aggregation Module (TAM). AFPE adaptively converts features and discrete-time signals into embeddings that are sensitive to periodic walking patterns. TAM separates embeddings into trend and seasonal components, extracting meaningful temporal correlations to identify primary components while filtering out random noise. Extensive experiments conducted on three popular public datasets (CASIA-B, OU-MVLP, and GREW) demonstrate that our proposed method achieves state-of-the-art performance on multiple benchmark tests.
Introduction
Gait recognition—identifying individuals by the way they walk—is a powerful biometric because it works at a distance without subject cooperation. However, it is notoriously difficult due to "covariates": changes in camera angle (cross-view), clothing, carrying bags, and lighting. While deep learning has advanced the field, most existing models treat a gait sequence either as a set of independent frames or a generic video sequence, failing to explicitly model the fundamental property of walking: periodicity.
The Periodicity Problem
The authors argue that standard Transformers or 3D-CNNs overlook the fact that a human stride is a repeating cycle, typically lasting about 30 frames. Standard Transformers use positional encodings that treat every frame index as unique, which doesn't capture the "rhythm" of a walk where frame 1 and frame 31 might represent the exact same phase of a stride.
By treating gait as a rhythmic signal, models can better align sequences based on their phase (e.g., matching the point where the left foot hits the ground), even if the videos start at different times or are captured from different viewpoints. This periodic alignment is crucial for distinguishing between different individuals (Person 1 vs. Person 2) who may have similar silhouettes but distinct walking cadences.
Methodology: GaitFormer and TPA
The researchers propose a plug-and-play strategy called Temporal Periodic Alignment (TPA), integrated into a new baseline called GaitFormer. The architecture consists of three main stages:
- Spatial Encoder: A standard CNN backbone extracts spatial features from human silhouettes.
- Adaptive Fourier-transform Position Encoding (AFPE): Instead of using vanilla sine/cosine positional encodings, AFPE uses the Discrete Fourier Transform (DFT) to generate a series of base sequences at different frequencies. An MLP then adaptively aggregates these to create "period-aware" embeddings. This allows the model to understand where a frame sits within a stride cycle rather than just its absolute position in a video.
- Temporal Aggregation Module (TAM): Inspired by time-series forecasting, this module decomposes the embeddings into two parts:
- Trend-cyclical: Captures the long-term progression (the "average" look of the person walking).
- Seasonal: Captures the high-frequency, periodic leg and arm movements. These are processed via Multi-Head Cross-Attention (MHCA) to filter out random noise and focus on discriminative walking patterns.
Experimental Evaluation
The authors evaluated GaitFormer on three major benchmarks, setting new state-of-the-art (SOTA) records:
- OU-MVLP: On this massive dataset of 10,307 subjects, GaitFormer achieved 91.6% Rank-1 accuracy, outperforming the previous best (3DLocal) by 0.7%.
- CASIA-B: Reached 98.9% accuracy for normal walking conditions using a two-stage training process (pre-training on OU-MVLP).
- GREW: In this challenging "in the wild" dataset, GaitFormer achieved 65.53% Rank-1 accuracy, a significant jump over the previous SOTA (TransGait at 56.27%).
Key Insights and Discussion
- Fourier vs. Vanilla PE: Standard positional encodings struggle with gait because they assume every frame is unique. By using Fourier-based encoding, the model can "align" different sequences based on their phase, even if the videos start at different times.
- TPA is Universal: One of the most impressive findings was that TPA is "plug-and-play." When added to existing SOTA models like GaitPart and GaitGL, those models saw immediate performance boosts on the OU-MVLP dataset.
- Trend-Seasonal Decomposition: By separating the "how they look overall" (trend) from "how they move rhythmically" (seasonal), the model effectively filters out the random noise inherent in low-resolution silhouettes.
- Efficiency: Despite using Transformers, GaitFormer is relatively efficient, requiring fewer parameters (51.0M) and FLOPs (9.62G) than some 3D-CNN-based competitors like GaitGL.
Conclusion
GaitFormer demonstrates that revisiting the intrinsic periodicity of human walking is key to robust gait recognition. By combining Fourier-transform-based encoding with trend-seasonal decomposition, the TPA strategy provides a powerful, efficient, and universal enhancement for modern gait recognition architectures.
Summary updated