Species identification in camera trap images has been widely studied, but key ecological modeling tasks such as species abundance or density estimation also require counting individual animals. However, the lack of counting labels in most datasets and low frame rates (typically ~1 frame per second) make sequence-level tracking and count estimation particularly challenging. In this work, we present PuTR-CouT, a counting-by-tracking framework built on a transformer-based learned association mechanism for sequence-level animal counting in camera trap images. To address the scarcity of annotated tracking data, we generate synthetic training data by exploiting structural priors, such as static backgrounds and short temporal bursts, to heuristically create pseudo-tracking labels in a weakly supervised manner. The resulting tracker associates detections across frames, using these tracks to estimate per-species counts. We also refine the MaxBoxCount heuristic used by the top solutions of the iWildCam 2021 challenge as a strong baseline, setting the highest score reported to date. When evaluated on the iWildCam 2021 benchmark, our framework PuTR-CouT delivers competitive counting results compared to the improved MaxBoxCount, with the added capability of multi-species predictions and track-level verification.
Figures & tables
Figure 1: The PuTR-Cout framework first detects bounding boxes using MegaDetectorV1000, connects frame-to-frame detections via a synthetic-trained Transformer tracker to form single-animal tracks, and finally classifies each track independently to output per-species animal counts for the sequence.
Figure 2: Illustration of the proposed synthetic sequence generation. Base-case tracks captured at the same location and within the same coarse timeslot can be merged to simulate a multi-individual sequence. Each cropped box is treated as a token by PuTR, removing the need to reconstruct composite images.
Strategy
BBoxes
Classifier
Re-ID
Counting
Classif.
Public ↓
Private ↓
2021 Winning solution [ 9 ]
MDv4
Eff.-B2
–
Boxes
Sequence
0.0300970
0.0293278
2nd place solution
MDv3
Eff.-B2
–
Boxes
Sequence
0.0297267
0.0293786
3rd place solution
MDv4
ResNet152 + Eff.-B3 + Eff.-B7
–
Boxes
Sequence
0.0315964
0.0308570
MaxBoxCount (ours)
MDv4
Swin-B
–
Boxes
Sequence
0.0269689
0.0256999
MaxBoxCount (ours)
MDv1000
Swin-B
–
Boxes
Sequence
0.0254706
0.0238785
ByteTrack
MDv1000
Swin-B
–
Tracks
Sequence
0.0297142
0.0282785
Table 1: Main results on iWildCam 2021 for animal counting (MCRMSE). We compare the top-3 challenge submissions, the improved MaxBoxCount baseline, classical multi-object trackers, and PuTR-CouT. All classifier entries are ensembles of the specified architecture. Bold and underlined values indicate the best and second-best scores, respectively. Lower is better.
Figure 3: Illustrative examples of counting predictions. Bounding box colors denote the tracks generated by PuTR-CouT. Only the first three images of each sequence are displayed. The first row demonstrates a key advantage of PuTR-CouT over MaxBoxCount in handling multi-species counting scenarios. Best viewed in color.
Tracker
Reorder
Filter
Private ↓
Train
Test
BBoxes
ByteTrack
0.0282683
ByteTrack
✓
0.0284988
BoT-SORT (MegaDesc.)
0.0270292
BoT-SORT (MegaDesc.)
✓
0.0272918
PuTR (MegaDesc.)
0.0256394
Table 2: Effect of reordering camera-trap sequences based on EXIF information for the training and test sets, and pre-filtering empty bounding boxes. Results are reported on the private test set. Lower is better.
Tracker
IoU comp.
HMIOU
HIOU
Traj. conf.
Det. conf.
Private ↓
PuTR
0.0250820
PuTR
✓
0.0252154
PuTR
✓
0.0253234
PuTR
✓
0.0253234
PuTR
✓
0.0254082
PuTR
✓
0.0251428
Table 3: Ablation of affinity-matrix components in PuTR on camera-trap sequences. Results are reported on the private test set. Lower is better.
Camera traps have become an essential tool for wildlife monitoring, motivating the development of computer vision methods for the automated extraction of information from these data. While most prior work has focused on species identification, many ecological applications also require estimating the number of unique individuals appearing across short image sequences. This task is particularly challenging because camera traps typically acquire bursts of images at approximately one frame per second, creating large temporal discontinuities that may make conventional multi-object tracking methods unreliable, and because manually collecting individual count annotations is prohibitively expensive. In this work, we describe the winning solution to the iWildCam 2021 Challenge, which introduced a benchmark for counting animals at the sequence level under realistic annotation constraints where count annotations are unavailable for training. Our approach, MaxBoxCount, combines a strong species classification pipeline with a simple yet effective counting heuristic based on MegaDetector detections to estimate the number of unique individuals without requiring count annotations. Code is available at https://github.com/alcunha/iwildcam2021ufam.
Fagner Cunha, Juan G. Colonna, Eulanda M. dos Santos
Federal University of Amazonas · Manaus, Amazonas, Brazil
Camera traps have become a common tool for wildlife monitoring efforts in ecological research and biodiversity conservation. Wildlife classification models have benefited from the increase in wildlife visual data. These models reach high levels of accuracy on curated, high-quality datasets. However, their performance remains sensitive to real-world environmental constraints. They often produce inconsistent predictions when performing inference on temporally coherent sequences. The predicted label for a single individual shifts rapidly between frames. This study exploits the temporal nature of camera-trap data to augment inferred predictions from a wildlife classification model. Specifically, we adopt several standard Multi-Object Tracking (MOT) models to link detections across consecutive frames. The curated trajectories are used to fuse the softmax class probabilities. The fused probability score produces a single consensus class label estimate that overrides misclassifications caused by noise. The analysis of the experimental results shows that our proposed strategy improves over a standalone classifier over all datasets and for each metric. Specifically, the best-performing MOT models gain a weighted F1-Score of 5.1%, 3.1% and 2.0% over the classifier across three MOT datasets.
Mufhumudzi Muthivhi, Jiahao Huo, Fredrik Gustafsson +1
Academy of Computer Science and Software Engineering University of Johannesburg Johannesburg, South Africa · Department of Electrical Engineering Linköping University Linköping, Sweden
Animal pose estimation and tracking is important for wildlife monitoring and conservation research, and with limited expert time for labelling automated approaches are imperative. While human pose estimation and tracking has seen rapid progress thanks to large annotated datasets, animal pose remain challenging, due to large morphological and behavioural differences between species and limited annotated data. Existing approaches either optimise generic keypoint localisation from annotated datasets (such as APTv2) with poor generalisation, or track custom keypoints using visual tracking, at the cost of performance. In this paper, we demonstrate that vision foundation models trained on large datasets can be used effectively to track animal pose with limited labelled data. We propose two models, one unsupervised and the other supervised, to track user-selected keypoints in videos. The supervised approach delivers superior tracking accuracy by employing a keypoint prompt encoder to explicitly inject structural priors from a reference frame into feature matching. In parallel, the unsupervised route provides strong cross-species robustness by leveraging diverse foundation-model features for training-free correspondence matching. Extensive evaluation on challenging animal video benchmarks APTv2 and TigDog demonstrates that our framework achieves strong performance while maintaining an effective balance between accuracy and generalisation, offering a practical solution for real-world animal behaviour analysis and conservation applications.