Source-linked AI summary

Visual-Prompt Guided Wildlife Instance-Level Recognition

Mufhumudzi Muthivhi, Jiahao Huo, Terence van Zyl, Fredrik Gustafsson

arXiv:2608.18246v1cs.CVcs.AIcs.LG

TL;DR

Fine-grained wildlife re-identification requires distinguishing individuals from subtle visual patterns, while current systems typically separate detection from re-identification. This paper presents an end-to-end latent-space model using visual identity prompts, achieving competitive preliminary mAP and tight bounding boxes in challenging scenes.

  • Problem

    Instance-level wildlife re-identification must distinguish individuals through fine-grained visual patterns, but current approaches typically use separate detection and re-identification models.

  • Method

    The framework combines scene and re-identification features with prompt-enhanced object queries and cross-attention detection to search for target identities end to end.

  • Results

    The model achieves competitive preliminary mAP relative to a two-stage approach and produces tight bounding boxes around target animals in challenging scenes.

  • Takeaways & Limitations

    The findings suggest visual identity prompts can reduce reliance on traditional detect-and-crop ReID pipelines by enabling direct localization and matching within full scenes.

  • Takeaways & Limitations

    The proposed approach has not yet achieved state-of-the-art performance.

Abstract

from arXiv · show

Fine-grained wildlife re-identification remains a challenging area in research. Current state-of-the-art approaches apply a detection and re-identification pipeline. We propose a one-stage end-to-end detection and re-identification model that performs identity searching within the latent space. We adopt DINOv2 for robust spatial geometry and MegaDescriptor for wildlife re-identification. We enhance latent queries with prompt re-identification features. A detection decoder queries the scene latent space to establish object boundaries around the target identity. Preliminary findings reflect a competitive mean average precision score of 30.584% compared to the state-of-the-art two stage approach of 44.89%. Qualitative results depict effective bounding and identification of animal identities.

1 Introduction

Instance-level wildlife re-identification must distinguish fine-grained individual patterns, unlike species-level detection. The proposed framework combines robust spatial features with specialist re-identification features, yielding competitive preliminary mAP and tight target bounding boxes in challenging scenes.

  • Problem: Instance-level re-identification distinguishes individuals through fine-grained patterns such as zebra stripe configurations and cheetah spot patterns.Generic detection instead categorizes wildlife at the species level.
  • Existing approach: Current state-of-the-art wildlife systems use separate detection and re-identification models in an isolated two-stage pipeline.The detector isolates individuals before re-identification operates on cropped subjects.
  • Proposed framework: The proposed framework combines a foundation model for robust spatial features with a specialist re-identification model for fine-grained identity features.DINOv2 encodes full scenes, while MegaDescriptor encodes reference crops as visual prompts for target matching.
  • Results: Preliminary results show competitive mean average precision against a two-stage approach and tight target bounding boxes in dense, occluded, and distant scenes.The qualitative results cover challenging herd environments and distant subjects.

2 Methodology

The methodology combines frozen scene and re-identification features with prompt-enhanced object queries and a cross-attention decoder for identity-focused animal detection. DINOv2 supplies multi-scale scene features, MegaDescriptor supplies visual prompts, and four objectives optimize detection and query diversity.

  • Framework Overview: The framework extracts scene and re-identification features from a frozen encoder, enhances object queries with prompt features, and searches for the target identity using a cross-attention detector.These are the framework’s three primary components.
  • Multi-Scale Scene Encoder: DINOv2 processes the full scene, extracting intermediate features from layers 3, 6, and 10 into a compressed, uniform-resolution feature pyramid.The pyramid uses varying convolutional strides, spatial interpolation, concatenation, and a 1 × 1 convolution.
  • Visual Prompt: MegaDescriptor provides the visual prompt through a pretrained fine-grained wildlife re-identification model.The prompt supplies re-identification information for subsequent query enhancement.
  • Feature Enhancer: Learnable object queries serve as region proposals and self- and cross-attention enrich them with identity-related visual-prompt information.The feature enhancement layer makes the queries cross-attend directly with the visual prompt features.
  • Cross-Attention Decoder: The decoder applies Deformable Attention to enriched proposals and outputs queries whose feed-forward predictions include animal bounding boxes and objectiveness scores.The objectiveness score indicates whether a valid foreground animal is present.
  • Loss Function: The optimization uses focal, L1, Generalized Intersection over Union, and query-diversity objectives for objectness, bounding boxes, and embedding diversity.The focal loss operates on objectness scores, while L1 and Generalized Intersection over Union losses compare predicted and ground-truth boxes.

3 Experimental Setup

The experiments use full-scene wildlife re-identification datasets with bounding-box metadata and combine DINOv2 scene encoding with MegaDescriptor prompt encoding. Training selectively synchronizes the encoders’ latent manifolds through end-to-end optimization with specified preprocessing and loss settings.

  • Datasets: Experiments use the GiraffeZebraID and ATRW datasets, which provide full-scene images and bounding-box metadata.Both datasets come from a curated re-identification collection assembled through WildlifeDatasets.
  • Implementation: The model uses ViT-S/14 DINOv2 for multi-scale scene encoding and MegaDescriptor-T for prompt encoding.Scene images are resized to 518 × 518, while prompt crops are resized to 224 × 224.
  • Implementation: The final transformer block and normalization layers of both encoders are selectively unfrozen so their distinct latent manifolds can synchronize during training.Training uses PyTorch Lightning.
  • Hyperparameters: 1 × 10−4 is used for both the AdamW base learning rate and weight decay, with MultiStepLR decaying the rate by γ = 0.1.The network is optimized end-to-end.
  • Hyperparameters: 2.0, 2.0, 5.0, and 2.0 weight objectness, identity matching, bounding box L1 distance, and Generalized IoU, respectively.These settings define the relative contributions of the four optimization terms.

4 Preliminary Results

Preliminary results show that the proposed one-stage latent grounding framework localizes target animals and is evaluated for retrieval against a two-stage detection-and-re-identification pipeline. Qualitative findings indicate robustness across challenging wildlife conditions, including herds, domain shifts, occlusion, distance, and camouflage.

  • Retrieval performance: The one-stage latent grounding method is compared with a two-stage pipeline using MegadetectorV6 for detection and MegaDescriptor for retrieval.The evaluation uses the combined test set from GiraffeZebraID and ATRW.
  • Qualitative findings: The framework produces bounding boxes that encapsulate the target animal.These qualitative preliminary findings are presented in Figure 2.
  • Qualitative findings: The model handles herds, domain shifts, occlusion, distance, and camouflage.These conditions are identified as settings covered by the qualitative results.

5 Conclusion

The paper proposes an end-to-end framework combining visual identity prompts with global scene features for joint object detection and re-identification. Preliminary findings suggest this approach can localize and match targets directly within full-scene images, reducing reliance on traditional two-stage pipelines.

  • Framework: The framework combines visual prompts with global scene features for end-to-end object detection and re-identification.It is designed to perform both tasks within a unified model.
  • Framework: Visual identity prompts enable the model to localize and match a target directly within the full scene image.This avoids requiring a separate detect-and-crop step before re-identification.
  • Implications: The proposed direction may reduce reliance on traditional two-stage detect-and-crop followed by ReID pipelines.The authors identify continued work as a possible path toward state-of-the-art performance.
Loading 2608.18246v1…