GaitEdge: Beyond Plain End-to-End Gait Recognition for Better Practicality

Junhao Liang, Chao Fan, Saihui Hou, Chuanfu Shen, Yongzhen Huang, Shiqi Yu

Abstract

Gait recognition—identifying individuals by their walking patterns—is a critical biometric for long-distance surveillance. While modern end-to-end (E2E) deep learning frameworks have improved efficiency, they often suffer from overfitting to gait-irrelevant features like clothing texture and background colors. This paper introduces GaitEdge, a novel framework designed to bridge the gap between the robustness of traditional two-step methods and the efficiency of E2E systems. By utilizing a "synthetic silhouette" approach and a differentiable alignment module, GaitEdge achieves state-of-the-art performance in challenging cross-domain scenarios.

Introduction

Unlike facial recognition or fingerprinting, gait recognition does not require subject cooperation and can function at significant distances. Historically, this was achieved through a two-step pipeline: first, extracting a binary silhouette (a black-and-white mask) and then feeding that mask into a recognition network. Recently, researchers have shifted toward end-to-end (E2E) models that process RGB frames directly.

However, these E2E models are often "lazy." Instead of learning the subtle biomechanics of a stride, they frequently overfit to "gait-irrelevant noise," such as the specific color of a jacket or the texture of a sidewalk. While this results in high accuracy within a single dataset (single-domain), the performance collapses when the model is tested in a new environment or when a subject changes clothes (cross-domain). GaitEdge addresses this "cross-domain trap" by forcing the model to focus exclusively on the human contour.

Methodology

GaitEdge introduces two primary innovations to ensure the model remains focused on actual gait patterns while maintaining the benefits of end-to-end training.

1. Gait Synthesis and the "Edge" Focus

The authors argue that the most discriminative information for gait resides in the contour of the body. To exploit this while blocking RGB noise, GaitEdge generates a "synthetic silhouette." The system uses a segmentation network to identify the subject, but it restricts the "trainable" area to the pixels at the very edges of the body. These edge pixels are represented as floating-point numbers, while the interior of the body and the background are treated as fixed binary values (0 or 1). This architecture effectively blocks the transmission of color and texture information from the original RGB image to the recognition network, forcing the model to learn from shape dynamics rather than appearance.

2. GaitAlign: Differentiable Pre-processing

Standard gait recognition requires silhouettes to be centered and normalized. Traditionally, this is a pre-processing step performed outside the neural network. GaitEdge introduces GaitAlign, a differentiable module based on RoIAlign. This allows the network to perform alignment internally during training. By keeping the alignment within the gradient flow, the model becomes significantly more resilient to the "jitter" and imperfections caused by real-world pedestrian detection systems.

Experimental Setup and Datasets

The framework was evaluated on two major benchmarks:

  • CASIA-B: A standard indoor dataset featuring 124 subjects under various conditions, including carrying bags and changing clothes.
  • TTG-200 (Ten Thousand Gaits 200): A new dataset introduced by the authors to facilitate more realistic research. It includes 200 subjects filmed outdoors in complex environments with 12 different camera viewpoints, including aerial drone footage. Crucially, TTG-200 provides original RGB videos, which are necessary for training E2E models.

Key Insights and Results

The Cross-Domain Advantage

GaitEdge’s primary strength lies in its robustness. In cross-domain evaluations—where a model is trained on one dataset and tested on another—standard E2E models like GaitGL-E2E saw their accuracy plummet. For instance, in the challenging "cloth-changing" (CL) scenario, GaitGL-E2E’s accuracy dropped to approximately 27%. In contrast, GaitEdge achieved 47.59% accuracy, nearly doubling the performance of its "plain" E2E counterparts.

Balancing Performance

While GaitEdge was slightly less accurate than standard E2E models in single-domain tests, this is largely because it was prevented from "cheating" using color and texture. Despite this, it consistently outperformed all traditional two-step methods, proving that the end-to-end training of edge features is more effective than using static, pre-processed silhouettes.

Optimal Edge Width

Ablation studies revealed that the width of the trainable edge area is crucial. The authors found that a 5x5 or 7x7 structuring element provided the ideal balance, capturing enough gait detail to be discriminative while remaining narrow enough to filter out high-frequency RGB noise.

Conclusion and Future Work

GaitEdge demonstrates that for gait recognition to be practical in the real world, models must be constrained to ignore irrelevant visual data. By focusing on the "edge" of the human form and integrating alignment into the neural architecture, GaitEdge provides a robust solution for cross-domain identification.

One current limitation is the requirement for RGB video during training, which is unavailable in some older, silhouette-only datasets. Future research may explore applying these edge-focused principles to other modalities, such as skeleton-based recognition, or further optimizing GaitAlign to handle the extreme viewpoint changes common in drone-based surveillance.

Summary updated

Abstract

Gait is one of the most promising biometrics to identify individuals at a long distance. Although most previous methods have focused on recognizing the silhouettes, several end-to-end methods that extract gait features directly from RGB images perform better. However, we demonstrate that these end-to-end methods may inevitably suffer from the gait-irrelevant noises, i.e. low-level texture and color information. Experimentally, we design the cross-domain evaluation to support this view. In this work, we propose a novel end-to-end framework named GaitEdge which can effectively block gait-irrelevant information and release end-to-end training potential. Specifically, GaitEdge synthesizes the output of the pedestrian segmentation network and then feeds it to the subsequent recognition network, where the synthetic silhouettes consist of trainable edges of bodies and fixed interiors to limit the information that the recognition network receives. Besides, GaitAlign for aligning silhouettes is embedded into the GaitEdge without losing differentiability. Experimental results on CASIA-B and our newly built TTG-200 indicate that GaitEdge significantly outperforms the previous methods and provides a more practical end-to-end paradigm. All the source code are available at https://github.com/ShiqiYu/OpenGait.
BibTeX
@inproceedings{liang2022gaitedge,
  author = {Junhao Liang and Chao Fan and Saihui Hou and Chuanfu Shen and Yongzhen Huang and Shiqi Yu},
  title = {{GaitEdge: Beyond Plain End-to-End Gait Recognition for Better Practicality}},
  booktitle = {European Conference on Computer Vision},
  year = {2022},
  doi = {10.1007/978-3-031-20065-6\_22},
}
Figure