Gait Recognition in the Wild with Multi-hop Temporal Switch

Jinkai Zheng, Xinchen Liu, Xiaoyan Gu, Yaoqi Sun, Chuang Gan, Jiyong Zhang, Wu Liu, Chenggang Yan

Abstract

Gait recognition in unconstrained "in-the-wild" environments faces significant challenges due to feature misalignment, high computational costs, and optimization difficulties associated with traditional 3D convolutions. We present MTSGait, a novel framework that utilizes a Multi-hop Temporal Switch (MTS) module to efficiently capture temporal dynamics using 2D convolutions. By shifting feature channels across frames and employing a non-cyclic continuous sampling strategy, MTSGait achieves state-of-the-art performance on large-scale datasets like GREW and Gait3D while maintaining a lean parameter profile.

Introduction

Identifying individuals by their gait has traditionally relied on controlled laboratory settings with clean silhouettes and fixed viewpoints. In real-world scenarios—characterized by occlusions, varying walking speeds, and diverse camera angles—standard temporal modeling techniques like 3D Convolution (3D Conv) often fail. 3D Convs are computationally expensive and struggle with spatial-temporal misalignment when body parts shift rapidly between frames. Furthermore, the lack of massive pre-trained gait datasets makes training large 3D models from scratch difficult.

Methodology

The core of our approach is the Multi-hop Temporal Switch (MTS) module. Unlike 3D kernels that scan across spatial and temporal dimensions simultaneously, MTS leverages standard 2D convolutions by strategically "switching" or shifting a subset of feature channels between adjacent and distant frames.

Comparison between 3D Conv-based temporal modeling and the proposed MTS mechanism.

Multi-hop Temporal Switch (MTS)

The MTS module partitions feature channels and swaps them across the temporal axis. This allows a 2D convolution to "see" temporal changes without the overhead of a 3D kernel. To capture both short-term and long-term motion dynamics, we perform these switches across multiple "hops" (e.g., shifting channels by 1 frame versus $k$ frames). This multi-scale approach makes the model more robust to the irregular walking patterns typical of unconstrained environments.

Framework Architecture

MTSGait processes spatial and temporal features in parallel branches. The Spatial Branch preserves static body shape information, while the Multi-hop Temporal Switch Branch captures movement dynamics. This dual-pathway design ensures that temporal switching does not degrade the quality of spatial features. The features are then fused and passed through a mapping head for final identification.

The overall MTSGait architecture, featuring the Spatial and Temporal Feature Extractor and the Feature Mapping Head.

Non-cyclic Continuous Sampling

Traditional models often use cyclic sampling, looping short clips to reach a fixed length, which introduces artificial "jumps" in motion. We propose a non-cyclic continuous sampling strategy that uses consecutive frames with simple padding and sorting, maintaining a natural temporal flow and reducing noise in the learned features.

Experiments and Results

We evaluated MTSGait on two major "in-the-wild" benchmarks: GREW (128,000 sequences, 882 cameras) and Gait3D (25,000 sequences, complex 3D viewpoints).

Performance Comparison

MTSGait consistently outperforms existing state-of-the-art (SOTA) methods:

  • GREW: Achieved a Rank-1 accuracy of 55.32%, significantly surpassing the previous SOTA, GaitGL (47.28%).
  • Gait3D: Reached 48.70% Rank-1 accuracy, outperforming SMPLGait (46.30%) without requiring additional 3D mesh data.

Efficiency and Visualization

Despite its superior performance, MTSGait remains computationally efficient with approximately 3.18M parameters. Qualitative analysis via heatmaps reveals that the model focuses more on the lower limbs and feet—the most discriminative regions for gait—compared to previous methods which often focus on less relevant upper-body features.

Conclusion

MTSGait demonstrates that efficient 2D-based channel switching can replace heavy 3D convolutions for robust gait recognition in the wild. By addressing feature misalignment and sampling noise, the framework sets a new benchmark for accuracy and efficiency. Future work will explore the integration of 3D human mesh data to further enhance viewpoint invariance and handle extreme occlusions.

Summary updated

BibTeX
@inproceedings{zheng2022gait,
  author = {Jinkai Zheng and Xinchen Liu and Xiaoyan Gu and Yaoqi Sun and Chuang Gan and Jiyong Zhang and Wu Liu and Chenggang Yan},
  title = {{Gait Recognition in the Wild with Multi-hop Temporal Switch}},
  booktitle = {ACM Multimedia},
  year = {2022},
  url = {https://openreview.net/forum?id=oQW_oMm9VUT},
}
Figure