Person Re-identification (person Re-ID) plays an important role in dynamic evacuation path planning and person tracking in emergency scenarios. However, its robustness is severely challenged in such conditions, where persons’ appearances may change rapidly due to stress responses or environmental interventions. Meanwhile, privacy regulations and data access constraints limit the availability of long-term surveillance data, hindering the generalization capability of re-identification models. Virtual try-on technologies offer a promising means of enriching appearance diversity under limited data conditions. In this study, a virtual try-on–based data augmentation method for person Re-ID is developed. To address inaccurate clothing mask extraction caused by low image resolution, occlusions, and complex backgrounds, the original mask generation module used in existing virtual try-on pipelines is replaced with a composite framework integrating Grounding DINO and the Segment Anything Model (SAM). The proposed framework enables precise extraction of clothing regions using text-based prompts, through which appearance-diverse person images are generated. Extensive comparative experiments and multi-level analyses demonstrate that the generated images exhibit high visual realism, preserve identity-related information, and do not introduce systematic distribution shifts. Controlled experiments on a ResNet-50–based benchmark further confirm that the proposed data augmentation strategy consistently improves re-identification performance.
Person Re-identification (Re-ID) plays an important role in dynamic evacuation path planning and safety monitoring. However, rapid appearance changes and limited long-term surveillance data significantly degrade model robustness in emergency scenarios. To address this issue, a virtual try-on-based data augmentation framework is proposed for person Re-ID. A prompt-based automatic clothing mask generation (PACMG) module integrating Grounding DINO and the Segment Anything Model (SAM) is developed to improve clothing mask accuracy under low-resolution, occlusion, and complex background conditions. A tiered augmentation strategy is further designed to alleviate identity-level imbalance. Experimental results demonstrate that the proposed method increases the clothing replacement validity rate from to while preserving identity consistency and distribution stability, as verified through multi-level analyses. When the augmented data are incorporated into the training set, consistent improvements in Rank-1 accuracy and mAP are observed on a ResNet-50-based person Re-ID benchmark. These results indicate that the augmented data enhance robustness to appearance variation, providing practical support for robust person tracking in evacuation scenarios.