Self-Supervised Transformer-Based Gait Recognition Under Clothing Variation
Clothing variation remains a major obstacle to gait recognition: bulky coats distort the appearance cues that silhouette-based methods rely on, and even pose-based methods suffer because clothing degrades the underlying pose estimates. We propose a factorized spatial–temporal transformer (∼813,000 parameters) that treats each (frame, joint) pair as an independent token with no explicit skeletal graph and no hierarchical body-part attention, and pretrain it with masked-joint reconstruction. On CASIA-B under the field-standard 74/50 subject-disjoint protocol with cross-view retrieval, the model reaches Rank-1 accuracies of 67.58%, 42.56%, and 29.66% on matched walking, carried-bag, and clothing-change conditions, averaged across seven random seeds. These numbers are substantially below the leading graph-based pose methods under clothing variation (MAST-GCN: 88.5%), and the contribution of this work is not peak performance but a controlled analysis of the design choices that shape it. Self-supervised pretraining on in-domain CASIA-B significantly outperforms random initialization on all three conditions (paired t-tests, p≤0.009), and a controlled data-subsampling experiment shows that the in-domain advantage over in-the-wild DenseGait pretraining persists at matched clip count (p≤0.003). Two parameter-matched architectural ablations further characterize the design: imposing the COCO-17 skeletal adjacency as a spatial-attention mask yields no significant improvement on any condition, while replacing the factorized spatial–temporal schedule with a spatial-only variant reduces accuracy significantly on normal walking and highly significantly on the carried-bag condition. A 2×2 region-by-initialization comparison shows that the lower-body region (R2) outperforms the upper-body region (R1) under CASIA-SSL but not at random initialization, and a direct test of the region × initialization interaction confirms that the R2−R1 difference depends on initialization on all three conditions (p≤0.0005). The best clothing-condition result on this test set (38.15%) is obtained under CASIA-SSL with R2; the comparison does not rule out upper-body pose noise under clothing as a contributing factor.
Authors
- Mohammed Ayoub Alaoui Mhamdi (ORCID: https://orcid.org/0009-0004-5740-2905)
- Madjid Állili (ORCID: https://orcid.org/0000-0003-1620-4350)
- Reza Ehsani
Institutions
- Bishop's University (CA)
Publication Details
- Journal
- Electronics
- Published
- 2026-12-01
- DOI
- https://doi.org/10.3390/electronics15235634
- Primary Topic
- Gait Recognition and Analysis
- Type
- article
- Field-Weighted Citation Impact
- 0.00