Skip to content
AI.info

Research

Active Learning for Animal Re-Identification with Ambiguity-Aware Sampling

Overview Research area: Computer vision, specifically animal re-identification (Re-ID), combined with active learning (AL) and unsupervised representation learning. Technical level: Advanced. The pape

arXiv
2511.06658
Published
2025-11-10
Authors
Depanshu Sani, Mehar Khurana, Saket Anand

AI summary

Overview

  • Research area: Computer vision, specifically animal re-identification (Re-ID), combined with active learning (AL) and unsupervised representation learning.
  • Technical level: Advanced. The paper assumes familiarity with embedding spaces, clustering algorithms, pseudo-labeling, constrained clustering, and Re-ID evaluation metrics.
  • Scope: The paper proposes an active learning framework, Ambiguity-Aware Sampling (AAS), that uses disagreements between two clustering algorithms to select a small number of image pairs for human annotation, and a constrained clustering algorithm (NP3) that folds that feedback back into an unsupervised Re-ID training pipeline.

What This Paper Is About

Animal re-identification means matching images of the same individual animal across different photos, which is hard because distinguishing features (stripes, spots, rosettes) vary by species and because new individuals keep appearing. Fully annotating a new dataset is expensive and needs domain expertise, while existing foundation models and unsupervised methods perform poorly when applied to unfamiliar wildlife datasets. The paper's goal is to hit high Re-ID accuracy by annotating only a tiny fraction of all possible image pairs, choosing the pairs that resolve the most confusion in the model's feature space.

Key Contributions

  1. Ambiguity-Aware Sampling (AAS): A sampling strategy that runs two complementary clustering algorithms, DBSCAN (density-based) and FINCH (nearest-neighbor-based), and treats their disagreements as regions of uncertainty from which the most informative and diverse image pairs are drawn for annotation. The pool is split into pairs that address over-segmentation (same identity wrongly split apart) and under-segmentation (different identities wrongly merged).
  2. NP3 (Non-Parametric, Plug-and-Play): A post-hoc constrained clustering algorithm that takes any existing cluster partition plus must-link and cannot-link constraints and refines the partition, using graph coloring and Hungarian matching to purify clusters that violate the constraints.
  3. A benchmarking study showing weaknesses of existing methods: The authors report that foundation models, unsupervised learning (USL) methods, and existing AL Re-ID methods all show limited gains over a pre-trained ResNet-50 baseline on animal Re-ID benchmarks, and that no prior AL Re-ID method had been tested on wildlife datasets.
  4. Empirical state-of-the-art results: AAS reaches state-of-the-art performance on 13 wildlife datasets and 2 person Re-ID datasets (Market-1501 and Person-X) using only 0.033% of all possible pairwise annotations.

Main Findings

  • Record low annotation cost: AAS uses only 0.033% of all possible annotations, while all AL baselines were allotted a maximum budget of 0.1%; AAS inherently used less because of its design.
  • Average gains on 13 wildlife datasets (mAP): 10.49% over foundation methods, 11.19% over USL methods, and 3.99% over AL methods, with state-of-the-art results on each dataset.
  • Average gains for unknown individuals (AUC ROC): 11.09% over foundation methods, 8.2% over USL methods, and 2.06% over AL methods in an open-world setting.
  • Averaged wildlife table results for AAS: 56.14% mAP, 38.17% mINP, 67.15% BAKS, 75.21% AUC ROC, 67.71% Top-1, 79.08% Top-3, 85.04% Top-5, 91.18% Top-10, using 0.033% budget. This compares with 44.95% mAP for the base SpCL, 52.15% mAP for the best AL baseline LBAS, 45.65% mAP for MegaDescriptor, 41.16% mAP for MiewID, and a ResNet-50 baseline of 38.88% mAP.
  • Close to full supervision: AAS reaches 85.04% Top-5 accuracy against the Skyline model's 85.38%, where the Skyline uses 100% of annotations.
  • Statistical significance: A Wilcoxon signed-rank test on mAP values across all wildlife datasets gives a p-value of at most 1.22e-4 when comparing AAS with all other AL baselines.
  • Person Re-ID gains: Average gains of 7.96% and 2.86% (mAP) over existing USL and AL Re-ID methods across 2 public person Re-ID datasets. On Market-1501, AAS improves mAP by 1.95% and Top-1 by 1.05% over LBAS; on Person-X, it improves mAP by 3.77% and Top-1 by 2.68% over LBAS.
  • Better than baselines at every cycle: AAS outperforms base SpCL and all AL Re-ID baselines after every active learning cycle, and the budget it consumes decreases as training progresses, which the authors attribute to noisier pseudo-labels early in training.
  • Extended budget experiment (supplementary): With more AL cycles, training iterations, and a much higher budget of 10% available, AAS still samples only 0.037% of pairs and reaches near-skyline performance of 61% mAP, outperforming LBAS.

Methodology in Plain English

The pipeline works in three repeating stages.

First, a feature extractor (ResNet-50 in all experiments) converts every unlabeled image into a vector. Two different clustering algorithms are then run on those vectors: DBSCAN, which groups points by density, and FINCH, which groups points by nearest-neighbor relationships. Because the two methods have different inductive biases, they disagree in interesting places. The authors find "regions of uncertainty" by taking clusters from the two methods that partially overlap and chaining them together through transitive closure.

Second, those uncertain regions are turned into a pool of candidate image pairs for a human to label. Some pairs come from different regions but look similar (the medoids of regions and their nearest neighboring medoids), which tests whether an identity got split apart. Other pairs come from within a region and are exactly where the two clustering methods disagree, which tests whether an identity got merged incorrectly. Redundant pairs that resolve the same ambiguity are filtered out by keeping only the closest cross-cluster neighbor pairs. A probability distribution over this pool, weighted by a parameter epsilon and by similarity scores, decides which pairs get sampled for annotation under the budget. The annotator only answers a simple same-or-not-same question, giving a must-link or cannot-link constraint.

Third, the constraints are folded back into the pseudo-labels through NP3. It merges any clusters connected by must-link constraints, then checks whether the merged clusters contain cannot-link violations. Inside each impure cluster it builds a conflict graph of must-link groups, colors the graph so conflicting groups get different labels (assigning labels to the group with the highest chromatic number by coloring), and uses Hungarian matching to label the remaining groups. The refined pseudo-labels then train the Re-ID model through the base unsupervised method, SpCL. In the experiments, models are trained for 50 epochs with new pairs sampled every 10 epochs, giving 5 AL cycles, and each cycle uses a budget of 0.02%. Fixed hyperparameters are epsilon = 0.6, k_max = 5, and s_min = 0.3. Evaluation holds out 20% of the individuals in the training set, builds a gallery from up to five exemplars per ID from the remaining 80%, and uses the test set as the query in an open-set protocol.

Why This Matters

Impact on research. The paper shows that foundation models trained on millions of images across many species (MegaDescriptor with 2.8M images and 30K identities, MiewID with 2.3M images and 37K individuals) still underperform when moved to unseen wildlife domains, and that a small amount of well-chosen pairwise supervision closes much of that gap. It also introduces NP3 as a general-purpose mechanism for injecting pairwise constraints into any clustering pipeline, and it is described as the first work to apply AL specifically to animal Re-ID.

Real-world applications.

  • Camera-trap based wildlife monitoring, where ecologists need to track individual animals over time without manual review of every image.
  • Population estimation and conservation planning for species such as tigers, cheetahs, and leopards, where individuals are identified by stripes, spots, or rosettes.
  • Behavioral tracking studies that follow specific individuals across seasons or territories.
  • Person Re-ID deployments in surveillance and security, where the same pairwise annotation interface and constrained clustering refinement can be reused.

Industry relevance. Organizations that build or deploy camera-trap analytics, biodiversity-monitoring platforms, and multi-camera surveillance systems can cut labeling costs dramatically, since the method reaches near-skyline accuracy using a small fraction of the annotations. Vendors of animal Re-ID foundation models can use AAS as a cheap domain-adaptation step for new geographies or species.

Future Directions

  • Generalizing the clustering pair: The framework is demonstrated with DBSCAN and FINCH as the two complementary clusterers; testing other combinations, or more than two views, is a natural extension.
  • Broader backbone and USL integration: All USL and AL results use a ResNet-50 backbone and SpCL as the base trainer, so the authors explicitly note that more recent USL methods could be integrated instead. Whether the gains hold with different backbones is not reported.
  • Dataset scope: Evaluation covers 13 wildlife datasets drawn from WildlifeReID-10k and 2 person Re-ID datasets (Market-1501, Person-X). Applicability to other modalities, such as video or non-camera-trap imagery, is not explored.
  • Automatic hyperparameter selection: The method fixes epsilon, k_max, and s_min to (0.6, 5, 0.3) across all experiments; making these adaptive to the dataset is left open.

Target Audience

Researchers and practitioners in computer vision working on re-identification, active learning, or constrained clustering, especially those applying these methods to wildlife and ecology. It is also useful for conservation technologists and engineers building camera-trap pipelines who need a practical way to reduce annotation effort, and for machine learning engineers adapting foundation models to new domains or new species with limited labeled data. Readers without background in clustering or embedding-based retrieval will find the method sections dense; the introduction, figures, and results tables are the most accessible entry points.

Authors’ abstract

Animal Re-ID has recently gained substantial attention in the AI research community due to its high impact on biodiversity monitoring and unique research challenges arising from environmental factors. The subtle distinguishing patterns, handling new species and the inherent open-set nature make the problem even harder. To address these complexities, foundation models trained on labeled, large-scale and multi-species animal Re-ID datasets have recently been introduced to enable zero-shot Re-ID. However, our benchmarking reveals significant gaps in their zero-shot Re-ID performance for both known and unknown species. While this highlights the need for collecting labeled data in new domains, exhaustive annotation for Re-ID is laborious and requires domain expertise. Our analyses show that existing unsupervised (USL) and AL Re-ID methods underperform for animal Re-ID. To address these limitations, we introduce a novel AL Re-ID framework that leverages complementary clustering methods to uncover and target structurally ambiguous regions in the embedding space for mining pairs of samples that are both informative and broadly representative. Oracle feedback on these pairs, in the form of must-link and cannot-link constraints, facilitates a simple annotation interface, which naturally integrates with existing USL methods through our proposed constrained clustering refinement algorithm. Through extensive experiments, we demonstrate that, by utilizing only 0.033% of all annotations, our approach consistently outperforms existing foundational, USL and AL baselines. Specifically, we report an average improvement of 10.49%, 11.19% and 3.99% (mAP) on 13 wildlife datasets over foundational, USL and AL methods, respectively, while attaining state-of-the-art performance on each dataset. Furthermore, we also show an improvement of 11.09%, 8.2% and 2.06% for unknown individuals in an open-world setting.

Read the original paper