Conservation X Labs' MiewID-msv3 Identifies 64 Wildlife Species With 98.8% Accuracy
Conservation X Labs released MiewID-msv3, a 51M-parameter model that identifies individual animals across 64 species from a single photo.
Takeaways
- MiewID-msv3 is a 51.4M-parameter wildlife re-identification feature extractor covering 64 species.
- Built on EfficientNetV2-M with GeM pooling, outputs 2,152-dim embeddings at 440x440 input resolution.
- Trained with contrastive learning on Wildbook, Happywhale Kaggle, and other public wildlife datasets.
- Hits 98+ mAP on patterned species like giraffes and spinner dolphins, under 40 on blue whales and capuchins.
- Weights are open on Hugging Face but licensed only for Conservation X Labs-hosted apps in production.
- Known issue:
trust_remote_codebreaks on transformers v5, pin to v4 for now.
Conservation X Labs has expanded MiewID’s training coverage from 54 wildlife species in msv2 to 64 in msv3. The MiewID-msv3 model card describes a shared feature extractor for terrestrial and aquatic animals, including fins, flukes, flanks, and faces. The checkpoint has recorded more than 800,000 downloads on Hugging Face.
Wildlife teams use re-identification to determine whether photographs from different cameras, locations, or dates show the same individual. A humpback whale might be identified from its fluke, while a Grevy’s zebra can be matched by its stripe pattern. The process is the computer-vision counterpart of visual mark-recapture, which field ecologists have performed by eye for decades.
MiewID-msv3 uses contrastive learning, which pulls images of the same individual closer in the model’s embedding space and pushes different individuals farther apart. Identification comes from cosine similarity against a gallery of known animals. Adding an individual requires new reference embeddings rather than another round of classifier training.
A 2,152-value vector per image
The model combines an EfficientNetV2-M backbone with generalized mean, or GeM, pooling. Each 440 by 440-pixel input produces a 2,152-dimensional embedding. The published architecture lists 51.4 million parameters and 24.4 GMACs per inference, a measure of the multiply-accumulate operations required at that resolution.
The Transformers integration loads through AutoModel. The following example embeds two images, normalizes their vectors, and calculates cosine similarity:
from PIL import Image
import torch
import torch.nn.functional as F
import torchvision.transforms as T
from transformers import AutoModel
model = AutoModel.from_pretrained(
"conservationxlabs/miewid-msv3",
trust_remote_code=True,
)
model.eval()
preprocess = T.Compose([
T.Resize((440, 440)),
T.ToTensor(),
T.Normalize(
mean=[0.485, 0.456, 0.406],
std=[0.229, 0.224, 0.225],
),
])
paths = ["query.jpg", "reference.jpg"]
images = [
Image.open(path).convert("RGB")
for path in paths
]
batch = torch.stack([
preprocess(image)
for image in images
])
with torch.inference_mode():
embeddings = model(batch)
embeddings = F.normalize(embeddings, dim=-1)
cosine_score = torch.dot(
embeddings[0],
embeddings[1],
).item()
A production gallery stores normalized reference embeddings for known individuals. Query vectors can then be compared with a matrix multiplication, followed by a top-k search to return the most likely matches.
Accuracy follows visible texture
Published accuracy varies substantially by species and body region. Mean average precision, or mAP, summarizes the positions of correct identities across ranked retrieval results; higher values indicate that relevant matches appear earlier and more consistently. Rank-5 accuracy asks whether a correct identity appears among the first five candidates.
| Species or view | mAP (%) |
|---|---|
| Spinner dolphin | 98.8 |
| Reticulated giraffe | 98.7 |
| Fire salamander | 97.5 |
| Sperm whale fluke | 94.8 |
| Seal | 38.9 |
| Blue whale | 37.8 |
| Chimpanzee | 33.9 |
| Capuchin | 32.2 |
- High-contrast markings: Zebras, giraffes, sharks, tigers, and similar pattern-rich animals generally produce the strongest retrieval results.
- Distinctive edges: Cetacean fins and flukes benefit from persistent nicks, scars, and trailing-edge shapes.
- Low-texture subjects: Primate faces and uniformly colored marine mammals remain harder to separate.
- Candidate review: Rank-5 performance often exceeds top-ranked performance, making shortlists useful for human verification.
Teams should benchmark the exact species, camera angles, crop quality, lighting, and gallery size expected in deployment. The aggregate score cannot predict performance for every field setting.
Three constraints before deployment
- License: Conservation X Labs restricts MiewID deployment to applications it hosts, including hosted Wildbook platforms. Product integrations outside that environment require terms or authorization from the organization. Research, benchmarking, and redistribution should follow the current model-card conditions.
- Remote code: Setting
trust_remote_code=Trueexecutes Python supplied by the model repository. Production teams should review that code and pin an audited commit with therevisionargument. - Transformers compatibility: At the time of publication, Transformers v5 could raise an
AttributeErrorbecauseMiewIdNetlacksall_tied_weights_keys. Pinning the v4 release line avoids the issue while an upstream fix is pending.
pip install "transformers<5"
From checkpoint to field catalog
The Wild Me repository connects MiewID with Wildbook, a platform for maintaining wildlife catalogs and matching sightings. Wildbook deployments cover nearly 300 species, while MiewID-msv3 publishes per-species evaluation for its 64 training species. Catalog coverage therefore exceeds the scope of the reported validation.
An AnimalCLEF 2026 paper used MiewID as a global retrieval backbone alongside MegaDescriptor. Fusing their scores produced the strongest candidate-generation retrieval curve, which measures the quality of the initial identity shortlist. Additional graph-based controls did not consistently improve scores on the competition’s hidden test set.
MiewID-msv3 gives animal re-identification researchers a compact baseline for retrieval, clustering, and candidate generation across varied anatomy. Uses involving pets, unseen species, or different photographic conditions introduce domain shift, so those applications require local evaluation alongside the published wildlife benchmarks.