HotSpotter to HardSpotter: Animal Re-Identification from Local Matches Above Chance

Fedor Zolotarev, Aleksandr Algasov, Ekaterina Nepovinnykh, Ankit Kumar Upadhyay, Tuomas Eerola, Pavel Zemčík, Heikki Kälviäinen, Charles V. Stewart, Enrico Di MininarXiv 2026

TL;DR

Training AI to recognize individual wild animals usually faces a catch-22: to automate identity labeling, you first need humans to painstakingly label thousands of training photos. HardSpotter escapes this trap entirely. By blending classic local feature matching with modern normalizing flows and foundation models, it achieves state-of-the-art accuracy without using a single identity label—and lets ecologists visually verify why two photos match.

What Problem Does This Paper Address?

Tracking individual animals—telling this ringed seal or giraffe apart from that one—is the bedrock of wildlife conservation and population estimation. Yet, animals twist, bend, grow older, and hide behind bushes.

Historically, computer vision tackled this using local feature matchers (like HotSpotter) that connected matching spots or stripes across images. These needed zero labeled training data and produced intuitive visual lines connecting matching patterns, though they eventually fell behind deep learning in accuracy.

Modern end-to-end deep models (like MegaDescriptor and MiewID) boosted accuracy, but at a steep cost: they act as black boxes and require massive, manually labeled datasets. Creating ground truth requires human experts to make a quadratic number of tedious pair-wise comparisons—the exact bottleneck we want AI to solve! The authors ask: can we resurrect the label-free, interpretable spirit of local matching while closing the accuracy gap with supervised deep learning?

Methods

HardSpotter uses frozen, general-purpose vision models and extracts species-specific statistics directly from an unlabeled gallery of photos.

Figure 1. Overview of HardSpotter. (1) SAM3 segments the animal. (2) Each keypoint gets a HardNet8 texture descriptor and a DINOv3 token for its place on the body. (3) A normalizing flow, fitted without labels, makes the texture descriptors approximately normal, so that the similarity of unrelated descriptors has a known distribution. (4) A match is accepted when its texture similarity exceeds the chance level uc and both keypoints lie on the same body part. Bottom: the score of an image pair sums its accepted matches, high for the same individual and near zero for a different one.
  1. Segmentation & Dual Descriptors (Standard): First, SAM3 segments the animal from the background. Next, generic keypoints and local texture descriptors are extracted using HesAffNet and HardNet8. Simultaneously, semantic tokens from DINOv3 are interpolated at each keypoint to capture where on the body that spot sits.
  2. Gaussianizing Textures for a Closed-Form Chance Level (Novel): A stripe edge looks like almost every other stripe edge, making raw descriptor distributions lumpy and hard to model statistically. HardSpotter trains an unsupervised normalizing flow (an invertible neural mapping) on the gallery's descriptors to transform them into a smooth, standard Gaussian distribution. On a Gaussian hypersphere, unrelated points point in uniformly random directions. Using a-contrario detection theory, the authors derive a closed-form similarity threshold where two different animals share, by pure coincidence, only about one matching keypoint. This threshold is further calibrated per-keypoint to handle overly common textures like plain fur.
  3. Semantic Location Gate (Novel): Traditional geometric verification checks if matches obey a rigid 2D transformation—a rough heuristic that fails when a seal bends its spine. Instead, HardSpotter projects DINOv3 tokens into the gallery's principal subspace to verify that two matching textures actually sit on the same body part (preventing a shoulder spot from matching a thigh spot).
  4. Scoring & Open-Set Rejection (Novel): An image pair's score is simply the sum of margins by which accepted matches clear their chance thresholds. Because scores carry statistical meaning, HardSpotter fits an exponential decay to background scores to automatically spot when a query animal is a brand-new individual absent from the gallery.

Datasets

HardSpotter requires no labeled training datasets—its normalizing flow fits directly to the unlabeled gallery of the target species.

For evaluation, the authors use 29 datasets from the WildlifeDatasets benchmark suite, spanning patterned species (e.g., SealID, GiraffeZebraID, ATRW), contour-identified marine life (HumpbackWhaleID, NDD20), faces (CZoo, MacaqueFaces), and subtly marked animals (BelugaID, NOAARightWhale). No new datasets are introduced, though the authors evaluate both standard closed-set splits and 7 open-set splits.

Key Insights and Ideas

  • Exact statistics beat heuristics: Classic heuristics like Lowe's ratio test guess at background noise locally. Mapping descriptors to a Gaussian via normalizing flows lets you compute the exact mathematical probability of an accidental match in closed form.
  • Anatomy over rigid geometry: Replacing rigid homography checks with DINOv3 body-part alignment boosted SealID accuracy from 93.4% to 95.1%, proving crucial for deformable, twisting bodies.
  • Zero-parameter open-set detection: Deciding "have we seen this animal before?" usually requires supervised threshold tuning. Modeling the tail of accidental match scores lets HardSpotter reject unknown individuals completely unsupervised.

Key Results

Across all 29 datasets, HardSpotter achieves 84.5% mean top-1 accuracy, decisively beating supervised multi-species heavyweights MegaDescriptor (80.1%) and MiewIDv3 (79.2%), as well as the best label-free matcher FlexGlue (79.2%). It trails only WildFusion (84.8%—which requires labeled queries for calibration) by a mere 0.3%.

  • Dominance on Patterns & Contours: HardSpotter takes first place overall on patterned species (91.9% mean) and contour species (69.4% mean). On challenging marine datasets like NOAARightWhale and NDD20, it leaps ahead of the next-best methods by 18.0 and 19.2 percentage points, respectively.
  • Open-Set Accuracy: Across 7 open-set benchmarks, it achieves 87.9% accuracy on known animals and 91.0% accuracy at flagging unknown individuals (89.2% geometric mean) with zero threshold tuning.
  • Interpretability: Every score decomposes into clean, visualizable keypoint correspondences—even capturing subtle skin textures on beluga whales that challenge the human eye.
Qualitative results showing matched keypoints glowing in corresponding anatomical colors across seals, whale flukes, chimpanzee faces, and belugas.

Limitations and Future Work

  • Faces vs. Markings: On animal face datasets (where identity lives in global 3D bone structure rather than local spots), HardSpotter averages 71.9%, trailing WildFusion (83.2%).
  • Left-Right Symmetry: Foundation vision models often confuse left and right body counterparts, occasionally letting a spot on a left flank pass the location gate against a right flank.
  • Quadratic Scaling: Scoring every keypoint pair scales quadratically with gallery size.
  • Future Work: HardSpotter currently ignores DINOv3's global image-level token. Fusing global image features (helpful for faces) without diluting crisp local match counts (crucial for seals) remains an open, promising frontier.

Summary updated

BibTeX
@misc{zolotarev2026hotspotter,
  author = {Fedor Zolotarev and Aleksandr Algasov and Ekaterina Nepovinnykh and Ankit Kumar Upadhyay and Tuomas Eerola and Pavel Zemčík and Heikki Kälviäinen and Charles V. Stewart and Enrico Di Minin},
  title = {{HotSpotter to HardSpotter: Animal Re-Identification from Local Matches Above Chance}},
  year = {2026},
  eprint = {2611.36112},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.36112},
}
Figure