Abstract
Individual animal re-identification (Re-ID) is a vital tool for wildlife conservation, yet it remains a challenging computer vision task due to limited data, significant pose variations, and environmental "background bias." This paper introduces a robust framework that mitigates these issues by combining automated background removal with unsupervised part-based feature alignment. By leveraging a hybrid segmentation strategy and Descriptor Vector Exchange (DVE), our model learns to focus on intrinsic animal features rather than surrounding scenery. Experimental results on tiger, yak, and elephant datasets demonstrate that our approach sets new state-of-the-art benchmarks and exhibits remarkable cross-species transferability without the need for costly manual pose annotations.
Introduction
Identifying specific animals in the wild is significantly more complex than human "Person Re-ID." While human datasets are vast and typically feature upright poses, animal datasets are often small, and subjects appear in diverse, four-legged postures. Two primary obstacles, termed the "elephants in the room," hinder progress:
- Background Bias: Models often overfit to specific locations (e.g., a particular rock or watering hole) rather than learning the animal's unique physical traits.
- Pose Variation: The complex movement of animals makes it difficult to compare features across different images. Traditional solutions require manual body-part labeling, which is prohibitively expensive for large-scale conservation efforts.
Methodology
We propose a two-stage pipeline designed to make Re-ID robust to environmental and postural changes.
Refined Background Removal
To eliminate background bias, we remove the scenery entirely. We utilize a hybrid approach combining ISNet for segmentation completeness and the Segment Anything Model (SAM) for boundary precision. This ensures that critical identifying features, such as tusks, horns, or tail shapes, are preserved while the distracting background is discarded.
Unsupervised Part-Based Feature Alignment
To handle pose changes without manual labels, we integrate Descriptor Vector Exchange (DVE). This technique enables the model to learn semantically similar body parts (e.g., identifying a "shoulder" or "flank") across different images in an unsupervised manner. By using a warping function and auxiliary images, the model ensures that local descriptors remain invariant to pose and lighting conditions.
Model Architecture
The system utilizes an SE-ResNet50 backbone. For optimization, we employ Circle Loss, which provides superior convergence for similarity learning compared to traditional triplet loss functions.
Experimental Evaluation
The framework was evaluated on three distinct wildlife benchmarks:
- ATRW (Amur Tiger Re-identification in the Wild): 182 entities.
- YakReID-103: 121 yaks, specifically the "hard-testing" subset with high background and pose variability.
- ELPephants: 276 elephants. The authors enhanced this dataset by completing heading direction annotations to improve its utility.
Results
Our method established new state-of-the-art (SOTA) performance across all datasets:
- Tigers (ATRW): Achieved 68.6 mAP, outperforming previous SOTA models, including those utilizing manual pose labels.
- Yaks (YakReID-103): Reached 61.0 mAP, matching high-performance Vision Transformer (ViT) baselines.
- Elephants (ELPephants): Demonstrated the most significant improvement with 24.3 mAP, a 5.8 point lead over the previous best model.
Discussion and Key Insights
The Scenery Trap
Our experiments confirmed that models trained on original images often fail when tested on background-free images. This proves that many existing Re-ID systems are inadvertently functioning as "scenery identifiers." By forcing the model to learn from masked images, we ensure it focuses on the animal's unique morphology.
Cross-Species Transferability
A significant finding was the model's ability to generalize. A model trained exclusively on tigers could successfully align body parts on yaks and elephants. This suggests that the underlying "geometry" of quadrupedal animals is consistent enough for a model to learn a generalized representation of animal anatomy.
Conclusion
By addressing background bias and pose variation through unsupervised alignment and precise segmentation, we have developed a highly effective and practical tool for wildlife monitoring. Future work will focus on creating a "universal" animal Re-ID foundation model by leveraging multi-species unsupervised training to further improve generalization across diverse wildlife populations.
Summary updated