arXiv:2609.05038cs.CVSep 2026

Manuscript Offprint

arXiv:2609.05038

PuTR-CouT: Counting-by-Tracking in Camera-Trap Image Sequences

Fagner Cunha, Juan G. Colonna, Eulanda M. dos Santos

Abstract

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.

1. Introduction

Camera traps are a non-invasive and cost-effective tool for wildlife monitoring and ecological research [2, 11, 30]. However, they produce large volumes of image data whose manual processing is expensive and time-consuming [21, 27]. In the last decade, the computer vision community has investigated diverse approaches to improve automated information extraction from these data. Much effort has been dedicated to species identification [3, 21, 25, 29, 33], which enables scientists to model species richness, occurrence, and distribution [5, 30]. Yet, certain ecological modeling tasks, such as estimating species abundance or density, also require counting the number of individuals captured across

image sequences [5, 20, 23].

Counting the number of individuals in a single image can be proxied using an object detector, such as MegaDetector [4, 22]. However, most camera trap projects capture multiple images per event to ensure a clear shot for identifying the photographed animal [3, 21]. Therefore, simply counting bounding boxes can over- or underestimate the actual number of individuals, as the same individual may appear in multiple images, or different individuals may appear across different images of the same sequence. This motivates more sophisticated approaches for sequence-level counting, which may require tracking or re-identification (re-ID) methods [5].

Nevertheless, we observe that camera-trap data present several challenges for animal counting. First, image sequences are typically captured at low frame rates (e.g., 1 frame per second), causing large displacements between consecutive frames and low bounding box overlap. This can limit the effectiveness of traditional multi-object tracking (MOT) methods that rely primarily on geometric cues. Second, significant appearance changes from varying poses, illumination, or occlusions complicate re-ID across frames. Third, most camera-trap datasets lack counting or tracking labels.

The iWildCam 2021 Challenge [5] introduced a benchmark addressing this setting: sequence-level counting at low frame rates without training count labels, which were only collected for the private test set. Top challenge solutions relied on simple heuristics, such as taking the maximum count of bounding boxes (MaxBoxCount) across images, but restricting the prediction to a single species per sequence. Despite their simplicity, these heuristic approaches have proven to be strong baselines, with top solutions in the 2022 challenge continuing to adopt similar strategies [31]. In this work, we revisit MaxBoxCount using stronger detection and classification models to establish an improved baseline for this counting challenge.

Recent work further demonstrates the potential of combining temporal correspondence with individual-level wildlife monitoring. Schall et al. [24] introduced Go-rillaWatch, an end-to-end system integrating detection, multi-object tracking, and individual re-identification for in-the-wild gorilla monitoring. While their work focuses primarily on video sequences of a single species and relies on re-ID for counting, our approach is complementary: we investigate sequence-level counting in low-frame-rate camera traps, leveraging tracking as an explicit intermediate representation for count estimation.

In this work, we present 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. When evaluated on the iWildCam 2021 benchmark, our improved version of MaxBoxCount achieves the highest score reported to date, while our learned counting-by-tracking framework yields competitive results enabling full sequence-level tracking and multi-species predictions.

As the main contributions of this paper, we can highlight:

  • A novel strategy for generating synthetic labeled data for multi-object tracking that takes advantage of camera trap image sequence priors, allowing supervised training of trackers with learned association modules.

  • The development of a transformer-based counting-by-tracking framework that estimates the number of individuals via tracklets, enabling multi-species predictions across sequences and species classification based on multiple views per individual.

  • An improved maximum bounding box counting heuristic leveraging state-of-the-art detection and classification models, which achieves the top result reported to date on the iWildCam 2021 benchmark private score.

References (34)