Adaptive High-Frequency Transformer for Diverse Wildlife Re-Identification

Chenyue Li, Shuoyi Chen, Mang Ye · DOI

Abstract

Wildlife Re-Identification (ReID) is a critical task for ecological monitoring, requiring the identification of specific individual animals across different camera views and time periods. Traditional methods often struggle with species-specific constraints and environmental noise. This paper presents the Adaptive High-Frequency Transformer (AdaFreq), a unified framework designed to generalize across diverse species—from terrestrial mammals to aquatic life. By leveraging high-frequency image components such as fur textures and contours while adaptively filtering out background noise, AdaFreq achieves state-of-the-art performance. Our standardized evaluation across seven diverse datasets demonstrates superior accuracy and robust domain generalization, even when identifying species not seen during training.

Introduction

Wildlife Re-Identification (ReID) involves distinguishing a specific individual (e.g., "Elephant #402") from others of the same species. Unlike person ReID, which can rely on clothing or consistent human proportions, wildlife ReID faces two primary challenges. First, most existing models are species-specific, making them difficult to scale for general ecological research. Second, the distinguishing features of animals—fine textures, spots, or sharp edges—reside in high-frequency visual information. In natural environments, these details are often confounded by high-frequency noise from the background, such as rustling leaves, grass, or complex lighting conditions.

To address these hurdles, we introduce the Adaptive High-Frequency Transformer (AdaFreq). This model utilizes a Vision Transformer (ViT) backbone enhanced with frequency-domain strategies to isolate and prioritize the essential features of an animal's identity while ignoring environmental clutter.

Methodology

The AdaFreq framework introduces three novel strategies to improve the robustness and accuracy of wildlife identification:

1. Frequency-Domain Mixed Augmentation (FMA)

Rather than relying solely on standard spatial cropping, FMA transforms images into the frequency domain using a Fourier Transform. By blending high-frequency components with the original image, the model is forced to learn stable features that remain consistent despite variations in lighting or seasonal changes in an animal's coat.

2. Object-aware Dynamic Selection (ODS)

To prevent the model from focusing on "noisy" high-frequency details in the background (e.g., the texture of a tree behind a panda), ODS utilizes the Transformer’s global attention mechanism. By using the [CLS] token’s attention map as a guide, the model dynamically selects only the high-frequency tokens that overlap with the actual animal. This ensures the model prioritizes the sharpest details within the animal's silhouette rather than the surrounding environment.

3. Feature Equilibrium Loss ($L_F$)

Focusing too heavily on high-frequency details can sometimes lead to a loss of global context. The Feature Equilibrium Loss acts as a stabilizer, ensuring that high-frequency features and global visual features remain consistent in the embedding space. This prevents the model from deviating too far from the overall structure of the subject.

Experimental Setup and Datasets

A significant contribution of this work is the unification of experimental settings for wildlife ReID. Previously, datasets were fragmented with inconsistent training and testing splits. We standardized seven datasets into a 70% training and 30% testing split, covering a wide range of biological categories:

  • Terrestrial: Giant Pandas, Elephants, Zebras, Giraffes, and Amur Tigers.
  • Aquatic: Saimaa Ringed Seals and Whale Sharks.
  • Aerial: Pigeons.

Additionally, we utilized the Wildlife-71 dataset to test domain generalization, training the model on one set of species and testing it on entirely unknown ones to evaluate its "zero-shot" capabilities.

Key Insights and Results

High Frequency as a Universal Descriptor

The core insight of this research is that while different species look vastly different, the mechanism for identifying individuals remains consistent: fine-grained textures and contours. High-frequency information serves as a common denominator across the animal kingdom, allowing a single architecture to succeed where previous species-specific models failed.

Performance Metrics

AdaFreq consistently outperformed state-of-the-art methods, including TransReID and CLIP-ReID:

  • Accuracy Gains: On the Giant Panda dataset, AdaFreq achieved a 44.5% mAP, a significant improvement over the 38.8% achieved by the nearest competitor.
  • Robustness to Challenging Matches: Using the mINP metric (mean Inverse Negative Penalty), which measures the difficulty of finding the hardest match, the model showed marked improvement. This indicates superior performance in identifying individuals in challenging poses or poor lighting.
  • Domain Generalization: When trained on a multi-species pool and tested on unknown species (e.g., training on seals and pandas but testing on tigers), the model maintained a high Rank-1 accuracy of 88.5%. This suggests that AdaFreq learns a general concept of "individuality" that transcends specific biological traits.

Limitations and Future Work

While AdaFreq represents a significant step forward, it remains dependent on the baseline attention of the Transformer. If the initial model fails to locate the animal due to extreme occlusion or camouflage, the ODS mechanism may fail to select the correct high-frequency patches. Furthermore, the optimal selection ratio ($\mu$) for high-frequency tokens currently varies by dataset depending on how much of the frame the animal occupies. Future research will focus on developing automated, adaptive strategies to tune these parameters dynamically based on the visual features of the input data.

Conclusion

The Adaptive High-Frequency Transformer provides a robust, unified framework for wildlife re-identification. By focusing on the high-frequency details that define individual identity and using attention-based filtering to ignore environmental noise, AdaFreq sets a new standard for accuracy and generalization in ecological monitoring technology.

Summary updated

BibTeX
@inproceedings{li2024adaptive,
  author = {Chenyue Li and Shuoyi Chen and Mang Ye},
  title = {{Adaptive High-Frequency Transformer for Diverse Wildlife Re-Identification}},
  booktitle = {European Conference on Computer Vision},
  year = {2024},
  doi = {10.1007/978-3-031-72784-9\_17},
}
Figure