DeepFaune-UK v1.3: ONNX Model Weights for UK Mammal and Bird Species Detection and Classification
Description
Description
DeepFaune-UK is a two-stage detection and classification pipeline for automated identification of UK wildlife in camera-trap imagery, developed as part of the Trap Tracker platform. The first stage is MegaDetector v6 (YOLOv10-e, 1280-pixel input), used exactly as released and without fine-tuning. Animal detections are cropped and passed to a classifier that assigns one of 28 UK species labels. Both stages are exported in ONNX format for cross-platform inference.
What's New in v1.3
- Newer foundation backbone: the classifier is fine-tuned from the DeepFaune v1.5.0 classifier (ViT-L/16 with a DINOv3 backbone), replacing the DINOv2-based DeepFaune v1.4 starting point used in v1.2. Everything else is unchanged from v1.2: the detector, training data, splits, classes and training recipe.
- Better accuracy at unseen sites:
- Exact-species accuracy rose from 89.4% to 91.1% on the independent out-of-distribution set.
- At DeepFaune's coarser label resolution, accuracy rose from 89.5% to 91.2%, narrowing the gap to DeepFaune v1.5.0 from 2.3 to 0.6 percentage points. - Fewer deer confusions: roe deer predicted as fallow deer fell from 407 to 126 images.
- Model selection: three full-data models were trained with different random seeds, and the one with the highest validation macro-F1 was released. The out-of-distribution set played no part in this choice.
- Higher input resolution: 224 × 224 (v1.2 used 182 × 182). The stored ONNX metadata (input size, normalisation, crop padding, class groups) lets runtimes such as Trap Tracker pre-process crops automatically
Supported Classes (28)
Accipiter gentilis (goshawk), Bos taurus (cattle), Buteo buteo (buzzard), Canis familiaris (dog), Capercaillie (cock), Capercaillie (hen), Capra hircus (goat), Capreolus capreolus (roe deer), Cervus elaphus (red deer), Columba palumbus (wood pigeon), Corvus corone (carrion crow), Dama dama (fallow deer), Equus caballus (horse), Erinaceus europaeus (hedgehog), Felis catus (cat), Martes martes (pine marten), Meles meles (badger), Muntiacus reevesi (muntjac), Numenius arquata (curlew), Numenius arquata chick, Oryctolagus cuniculus (rabbit), Ovis aries (sheep), Passer domesticus (house sparrow), Phasianus colchicus (pheasant), Sciurus carolinensis (grey squirrel), Sciurus vulgaris (red squirrel), Sus scrofa (wild boar), Vulpes vulpes (fox).
Person and vehicle are reported by the detector.
Training Data
Identical to v1.2. The classifier was fine-tuned on UK camera-trap images collected through conservation deployments over nearly a decade. After restricting the data to animal classes, 45,931 annotated images remained. These were divided with leakage-controlled splitting into training (42,719 crops), validation (5,410 crops) and test (5,363 crops) sets. The dataset covers daylight RGB and infrared night imagery, motion blur, partial occlusion, multi-animal frames, juveniles and adults, manufacturer overlays and timestamps, and diverse UK habitats.
The raw training images are not released, because of partner-specific data agreements that predate this open release.
Training Setup
- Architecture: Vision Transformer ViT-L/16 with a DINOv3 backbone (class-token pooling), fine-tuned from the DeepFaune v1.5.0 European camera-trap classifier, with a new randomly initialised 28-class head.
- Approach: two-phase transfer learning.
- Phase 1 trains the head with the backbone frozen (5 epochs).
- Phase 2 unfreezes the last 4 of 24 transformer blocks at a low learning rate (1 × 10⁻⁵), with early stopping on validation macro-F1.
- Training used a class-balanced sampler and label smoothing of 0.1. - Input resolution: 224 × 224
- Training time: 34 epochs (best checkpoint at epoch 19 of phase 2), 107 minutes, peak GPU memory 4.4 GB
- Hardware, framework and export: NVIDIA RTX A6000; PyTorch / timm; ONNX (classifier outputs verified against PyTorch, max logit difference 2 × 10⁻⁵)
Performance
Held-out test set (sites seen in training): on 5,363 test crops, the classifier achieves a macro-averaged F1 of 0.994 and an overall accuracy of 0.994. The lowest-scoring classes are red deer (F1 0.978), horse (0.984) and curlew chick (0.985). Grey squirrel scores F1 0.993 and red squirrel 0.992.
Out-of-distribution set (unseen sites): the full pipeline was evaluated on 21,640 hand-verified MammalWeb citizen-science images.
- Exact species: named in 91.1% of images (95% CI 90.7–91.5%), compared with 89.4% for DeepFaune-UK v1.2, 55.2% for DeepFaune v1.5.0 and 60.5% for SpeciesNet.
- DeepFaune's coarser label resolution: v1.3 reached 91.2%, compared with 91.8% for DeepFaune v1.5.0, 89.5% for v1.2 and 74.7% for SpeciesNet. Macro-F1 at this resolution was 0.863, against 0.859 for DeepFaune v1.5.0.
Known Limitations
- Performance at new sites is lower than on the held-out test set.
- Empty frames: some are still labelled as an animal (most often cat, roe deer, grey squirrel or hedgehog). The empty-frame error rate is the same as v1.2's, because these errors come from detector false positives rather than from the classifier. Raising the detector threshold (0.5 was optimal on validation data) reduces them.
- Muntjac: the model over-predicts muntjac at new sites (242 out-of-distribution images labelled muntjac, none correctly). Treat muntjac labels with caution until they have been verified locally.
- Red squirrel: barely represented in the out-of-distribution set (three images), and all three were labelled grey squirrel. Grey squirrels labelled red fell from 14 in v1.2 to 8. Any application that acts automatically on the red/grey distinction, such as a species-selective trap or feeder, should apply a conservative confidence threshold and be validated with local imagery first.
- Accuracy should be checked against ground truth for new deployments.
- Compute: v1.3 is more expensive to fine-tune than v1.2 (about twice the training time). If you need the lightest model, v1.2 remains available.
Intended Use
For conservation practitioners, ecologists and citizen-science projects to automate species identification in camera-trap datasets, particularly under-resourced organisations that lack compute or machine-learning expertise. Military and other uses prohibited by the DINOv3 License are excluded (see the License section).
Acknowledgements
The classifier is fine-tuned from the DeepFaune v1.5.0 European camera-trap classifier, with full credit to the DeepFaune initiative. Its backbone derives from Meta's DINOv3. The detector is MegaDetector v6 (Microsoft AI for Good Lab / PyTorch-Wildlife), used without modification.
Related Publications
- Earlier DeepFaune-UK work: arXiv:2606.10940
- Previous version: DeepFaune-UK v1.2, https://doi.org/10.5281/zenodo.23314735
- A benchmark of v1.2 and v1.3 against DeepFaune v1.5.0 and SpeciesNet is in preparation.
License
- Classifier (deepfaune_uk_v1.3_stage2_classifier.onnx): CC BY-SA 4.0, as required by the ShareAlike terms of the DeepFaune weights it is derived from. The classifier's backbone weights originate from Meta's DINOv3 and are also subject to the DINOv3 License, a copy of which is included in this record. Users must comply with both, including the DINOv3 License's restrictions on prohibited uses.
- Detector (deepfaune_uk_v1.3_stage1_detector.onnx): an ONNX export of MegaDetector v6, redistributed under its original licence (AGPL-3.0). It is identical to the v1.2 detector file.
Citation: please cite arXiv:2606.10940 and this Zenodo record when using this model in published work. Please also cite DeepFaune, DINOv3 and MegaDetector.
Files
deepfaune_uk_v1.3_stage2_classifier.txt
Additional details
Software
- Repository URL
- https://github.com/traptracker-ai
- Programming language
- Python
- Development Status
- Active