Self-Supervised Gait Encoding with Locality-Aware Attention for Person Re-Identification

Haocong Rao, Siqi Wang, Xiping Hu, Mingkui Tan, Huang Da, Jun Cheng, Bin Hu

TL;DR

This paper introduces a novel self-supervised approach for learning gait representations from 3D skeleton data, bypassing the need for labeled datasets. By reconstructing skeleton sequences in reverse and employing a locality-aware attention mechanism, the method effectively captures subtle gait patterns, achieving state-of-the-art performance in person re-identification.

What Problem Does This Paper Address?

Person re-identification (Re-ID) is crucial for applications like security and tracking, and gait is a promising biometric for this task. While 3D skeleton data offers a robust and compact representation of human motion, extracting discriminative gait features from it has been challenging. Existing methods either rely on tedious hand-crafted features or require large amounts of labeled data for supervised learning. This paper addresses the gap of learning effective gait representations from unlabeled 3D skeleton sequences, making gait-based Re-ID more accessible and efficient.

Methods

The core of the proposed method is a self-supervised learning framework. It comprises two main innovations:

  1. Self-Supervised Skeleton Reconstruction: The model is trained to reconstruct input skeleton sequences in reverse order. This task forces the model to learn higher-level semantic understanding of gait, such as the temporal order and body part movements, rather than just low-level pose information. An encoder-decoder architecture, utilizing LSTMs, is employed for this reconstruction.
  2. Locality-Aware Attention Mechanism: Recognizing that adjacent skeleton frames in a sequence are highly correlated due to the continuous nature of motion ("locality"), the authors introduce a novel attention mechanism. This mechanism encourages the model to focus more on temporally adjacent skeletons when reconstructing a current skeleton frame. This is achieved through a "locality mask" and a learned "locality-aware attention alignment" loss, which guides the attention weights to reflect this temporal locality.

Finally, the learned context vectors from the attention mechanism are used to construct Attention-based Gait Encodings (AGEs), which serve as the final gait representations for person Re-ID.

Datasets

The proposed method was evaluated on three public 3D skeleton-based person Re-ID datasets:

  • BIWI
  • IAS-Lab
  • Kinect Gait Biometry Dataset (KGBD)

The authors followed standard evaluation setups for these datasets, including specific training/testing splits and data augmentation strategies where applicable.

Key Insights and Ideas

  • Reverse Reconstruction for Semantics: Reconstructing sequences in reverse order is a surprisingly effective self-supervision signal for learning rich gait semantics, going beyond simple pose prediction.
  • Locality is Key for Gait: The continuous nature of human motion inherently provides temporal locality. Explicitly incorporating this locality into the attention mechanism significantly improves the model's ability to capture gait patterns.
  • Learned Locality Outperforms Hardcoded Masks: While a simple Gaussian mask can enforce locality, a learned locality-aware attention mechanism yields better results, suggesting that the model can discover more nuanced temporal relationships.
  • AGEs as Powerful Gait Signatures: The Attention-based Gait Encodings (AGEs) derived from the attention mechanism are highly discriminative and can be directly used for person Re-ID, even outperforming models that use multi-modal data.
  • Transferability of Learned Representations: The gait encoding model trained on one dataset can be effectively transferred to others, demonstrating its ability to learn generalizable high-level gait features.

Key Results

  • The proposed approach significantly improves existing skeleton-based methods, achieving 10-20% higher Rank-1 accuracy.
  • It achieves comparable or even superior performance to multi-modal methods (which use RGB or depth data) using only 3D skeleton data.
  • The locality-aware attention mechanism (LAS) leads to faster convergence and lower reconstruction loss compared to methods without attention or with basic attention.
  • The AGEs, when used for person Re-ID, consistently improve performance by up to 1.8% Rank-1 accuracy and 0.7% nAUC.
  • The model demonstrates strong transferability across datasets, with transferred models performing comparably or better than models trained from scratch on target datasets.

Limitations and Future Work

  • Limitations: The paper notes that while the locality mask (MBAS) can enforce locality, it degrades performance compared to the learned locality-aware attention (LAS). This suggests that a purely hardcoded locality is less effective than a learned one. The paper also mentions that the model's performance on KGBD is slightly inferior to the latest PoseGait, though PoseGait requires labeled data and hand-crafted features.
  • Future Work: The paper highlights the transferability of the learned gait encoding model as a promising direction. Future work could explore further applications of these transferable gait features, such as cross-dataset person Re-ID or other gait-related tasks. The authors also suggest that the model's ability to learn transferable high-level features from skeletons could be beneficial for other skeleton-based tasks.

Summary updated

BibTeX
@inproceedings{rao2020self,
  author = {Haocong Rao and Siqi Wang and Xiping Hu and Mingkui Tan and Huang Da and Jun Cheng and Bin Hu},
  title = {{Self-Supervised Gait Encoding with Locality-Aware Attention for Person Re-Identification}},
  booktitle = {International Joint Conference on Artificial Intelligence},
  year = {2020},
  url = {https://openreview.net/forum?id=-o7fccyaT9R},
}
Figure