arXiv:2610.07384cs.CVOct 2026

Manuscript Offprint

arXiv:2610.07384

WildMatch: Weakly Supervised Image Matcher Adaptation for Wildlife Re-Identification

Turhan Can Kargin, Piotr Kubaty, Ekaterina Rostovskaya, Izabela Wierzbowska, Bartosz Zieliński, Marcin Przewięźlikowski

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Turhan Can Kargin 1,2^{1,2} ID∗^{ID*}, Piotr Kubaty 1,2^{1,2}, Ekaterina Rostovskaya 2,5^{2,5} ID^{ID}, Izabela Wierzbowska 5^{5} ID^{ID}, Bartosz Zieliński 1,3^{1,3} ID^{ID}, and Marcin Przewieźlikowski 1,4^{1,4} ID^{ID}

1^{1} Faculty of Mathematics and Computer Science, Jagiellonian University, Poland

2^{2} Doctoral School of Exact and Natural Sciences, Jagiellonian University, Poland

3^{3} Jagiellonian Center for Artificial Intelligence, Kraków, Poland

4^{4} NASK National Research Institute, Warsaw, Poland

5^{5} Institute of Environmental Sciences, Faculty of Biology, Jagiellonian University, Kraków, Poland

{turhancan.kargin, piotr.kubaty, e.rostovskaya}@doctoral.uj.edu.pl

{bartosz.zielinski, marcin.przewiezlikowski, i.wierzbowska}@uj.edu.pl

Abstract. Individual animal re-identification from camera-trap imagery is an instance retrieval problem central to non-invasive wildlife monitoring: a query image must retrieve the correct individual from a reference set of known animals. This requires computer vision models to recognize distinctive local patterns in fur, skin, or other visual markings. Current approaches either learn global embeddings as a classification problem, requiring many labeled images per individual while largely ignoring local evidence, or apply off-the-shelf, domain-agnostic image matchers. Although such matchers are pretrained on large and diverse image collections, adapting them to wildlife imagery is challenging because available datasets are small and lack correspondence-level annotations. We study weakly supervised adaptation of a pretrained keypoint matcher using only identity labels, without keypoint-level or geometric correspondence ground truth. We mine informative image pairs with the pretrained matcher, derive weak positive and negative supervision from identity agreement, and contrastively fine-tune the matching network to strengthen correspondences for same-identity pairs and suppress them for different identities. Across open-source wildlife re-identification datasets, our approach improves accuracy over off-the-shelf matchers and a state-of-the-art local-global fusion method. Under an open-world protocol with held-out individuals, it learns a transferable correspondence prior rather than memorizing training identities. To our knowledge, this is the first study of matcher-level, identity-supervised adaptation for animal re-identification. Our method enables data-efficient specialization of image matching models to wildlife domains using identity annotations already available in typical monitoring datasets. Our project page can be found at wildmatch.gmum.net.

Keywords: Animal re-identification · Instance retrieval · Local feature matching · Weak supervision · Camera traps.

  • T. C. Kargin and P. Kubaty contributed equally.

T. C. Kargin, P. Kubaty et al.

Figure

Fig. 1. Wildlife re-identification as instance retrieval. A camera-trap query is compared with every known individual, and a local feature matcher ranks them by the summed confidence of point pairs that both images agree on, giving a short list for an expert. The database holds hundreds of individuals, of which six are shown. WildMatch performs weakly supervised adaptation of the matcher using only the identity labels of the database (Fig. 2), without keypoint or correspondence annotation. Images are synthetic CzechLynx renders [20], with illustrative matches and scores.

1 Introduction

Ecological studies on wildlife monitoring and conservation require knowledge of demographic parameters, such as population size and structure. Whereas non-invasive monitoring methods, such as camera-trapping, allow for minimized anthropogenic disturbance, estimating animal densities and turnover rates depends on capture-recapture modelling [12]. Individuals with explicit and unique coat patterns get distinguished, and their long-term well-being can be assessed [10]. Recognizing an individual means deciding which known animal a new photograph shows. Individual animal re-identification can therefore be formulated as an instance retrieval problem, where a query image must match the correct individual from a reference set of known animals, as shown in Figure 1. When recognizing individuals, human experts rely on distinctive local markings, such as the arrangement of spots on a lynx's coat [10]. They use extensive opportunistic camera-trapping or dual camera-trap setup to assign both body flanks to one individual and to compare coat patterns between multiple individuals [12,23].

This naturally motivates local feature matching as a computational approach to wildlife re-identification [27]. Global image embeddings discard much of this local evidence, since in visual models spatial information resides mainly in patch-level features and is largely obscured by global pooling [15]. A pairwise matcher has no identity-specific parameters and can in principle learn visual evidence that remains useful for previously unseen individuals [18]. Adapting such a matcher to a particular species has the potential to further improve identification accuracy, but presents practical challenges. Wildlife re-identification datasets usually provide image-level identity labels, whereas local matchers are conventionally trained using geometric or keypoint-level correspondence supervision [8]. An identity label establishes that two images depict the same individual, but does not reveal which local structures correspond between them. Moreover, due to bilateral asymmetry of flanks, two images of the same animal may contain little or no shared local evidence [23]. The central question we address is therefore: Can a general-purpose image matcher be specialized to a wildlife domain using only the sparse identity annotations already available in re-identification datasets?

We introduce WildMatch, a weakly supervised approach for adapting pretrained local image matchers using identity labels alone. Our key idea is to use the pretrained matcher itself to identify image pairs for which informative local evidence is likely to exist. For each training image, we mine high-scoring images of the same individual as positive pairs and high-scoring images of different individuals as hard negatives. Identity agreement then provides weak pair-level supervision without requiring manual annotation of keypoints or geometric correspondences. We contrastively fine-tune the matching module, encouraging higher correspondence scores for same-identity pairs and lower scores for different-identity pairs. Intuitively, the pretrained matcher identifies where correspondence is plausible, while identity labels determine whether such correspondence should be encouraged or suppressed.

We evaluate WildMatch across eight wildlife re-identification datasets spanning multiple species and substantially different visual domains. Our experiments show that identity-supervised adaptation improves over both off-the-shelf local matchers and a state-of-the-art local–global fusion approach across most datasets and candidate budgets (see Figure 4). We further investigate where the limited identity supervision is most effectively used, finding that adapting the matching module improves both evaluated matcher architectures, whereas applying the same supervision to the descriptor branch does not provide the same benefit. Finally, an open-world evaluation on individuals completely absent from matcher training shows that the gains persist beyond the identities used for adaptation, indicating that WildMatch learns a transferable correspondence prior rather than a closed-set identity classifier.

Our contributions can be summarized as follows:

– We introduce WildMatch, a weakly supervised method for adapting pre-trained local image matchers to wildlife re-identification using only identity labels, without keypoint-level or geometric correspondence annotations.

– We demonstrate across eight wildlife re-identification datasets that adapting the matching module improves identification accuracy over off-the-shelf matchers and competitive local–global baselines.

– We show that the learned adaptation transfers to previously unseen individuals and analyze where identity supervision should be applied within the matching pipeline.

T. C. Kargin, P. Kubaty et al.

Figure

Fig. 2. Weakly supervised matcher adaptation with WildMatch. Before training, the pretrained matcher selects top-scoring positives and hard negatives. A triplet loss then fine-tunes the matcher to score positive pairs above hard negatives.

References (23)