Introduction
Person re-identification (re-ID) is the task of matching individuals across non-overlapping camera views. While traditionally dominated by RGB-based methods, these approaches often struggle with lighting variations, changes in clothing, and significant privacy concerns. 3D skeleton data, consisting of joint coordinates, has emerged as a robust, privacy-preserving alternative. However, effectively modeling the complex spatial-temporal dynamics of human gait remains a challenge. Existing methods often oversimplify skeletons as sequences or rely on hand-crafted descriptors, failing to capture the intricate "structural" (physical connections) and "actional" (coordinated movements) relationships between joints.
Methodology: The TranSG Framework
TranSG addresses these limitations through a novel Transformer-based architecture designed specifically for skeleton graphs. It integrates three innovative components to learn highly discriminative gait signatures.
Skeleton Graph Transformer (SGT)
The SGT rethinks the skeleton not as a sequence, but as a graph. To preserve the inherent body structure within the Transformer's attention mechanism, it utilizes Laplacian eigenvectors as positional encodings. The core of the SGT is the "Full-Relation" (FR) head, which enables the model to simultaneously attend to both physically adjacent joints (capturing structural constraints) and non-adjacent joints (capturing actional correlations, such as the synchronized movement of arms and legs during a stride).
Graph Prototype Contrastive Learning (GPC)
Moving beyond standard instance-to-instance contrastive learning, TranSG introduces Graph Prototype Contrastive Learning. This method computes "prototypes"—representative feature centroids—for each person's identity. By pulling individual skeleton frames and entire sequences toward their corresponding identity prototypes while pushing them away from others, the model learns representations that are significantly more robust to intra-class variations, such as changes in walking speed or viewpoint.
Structure-Trajectory Prompted Reconstruction (STPR)
To further refine the learned features, TranSG employs a self-supervised pretext task called Structure-Trajectory Prompted Reconstruction. The model is "prompted" to reconstruct missing information after randomly masking out specific joint positions (spatial structure masking) or segments of a joint's movement path (temporal trajectory masking). This process forces the network to internalize the underlying semantics of human anatomy and the unique patterns of an individual's gait.
Key Results and Evaluation
The performance of TranSG was rigorously evaluated on five major benchmarks, including Kinect-captured datasets (IAS-Lab, KS20, BIWI, KGBD) and the RGB-estimated CASIA-B dataset.
TranSG established a new state-of-the-art across the board. Notably, on the BIWI-S dataset, it achieved a mean Average Precision (mAP) of 30.1%, a staggering improvement over the 7.6% mAP of previous graph-based methods like MG-SCR. In terms of Rank-1 accuracy, the model reached 73.6% on KS20 and 68.7% on BIWI-S.
The model's efficacy on the CASIA-B dataset demonstrates its practical utility; it can successfully perform re-ID using 3D skeletons estimated from standard RGB video, removing the requirement for specialized 3D sensors in real-world deployments. Furthermore, t-SNE visualizations confirm that TranSG produces much tighter and more distinct identity clusters compared to existing methods.
Conclusion
TranSG represents a significant leap forward in skeleton-based person re-identification. By treating the skeleton as a graph and leveraging the power of Transformers with prototype-based contrastive learning and prompted reconstruction, it captures the fine-grained nuances of human gait. While the model's complexity is higher than simpler recurrent architectures, the massive gains in accuracy and its robustness to environmental factors make it a compelling solution for privacy-sensitive surveillance and forensic applications. Future work may explore scaling this prompted reconstruction approach to broader human-centric tasks like action recognition and motion synthesis.
Summary updated