Manuscript Offprint

arXiv:2608.30789

Camera trap classification with deep learning under ground truth uncertainty

Leonard Hockerts, Peter S. Stewart, Sarthak Arora, Tiffany J. Vlaar

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

Leonard Hockerts1†^{1\dagger}, Peter S. Stewart1∗†^{1*\dagger}, Sarthak Arora2^{2}, and Tiffany J. Vlaar1^{1}

1^{1}School of Mathematics & Statistics, University of Glasgow, Glasgow, G12 8QQ,

United Kingdom.

2^{2}Collaborative Earth, Berkeley, California, United States

*Corresponding author: peter.s.stewart@glasgow.ac.uk

†^{\dagger}Joint first author

ORCIDs: Leonard Hockerts (https://orcid.org/0009-0003-0175-2546); Peter S. Stewart (https://orcid.org/0000-0001-6338-6279); Sarthak Arora (https://orcid.org/0009-0002-5769-4747); Tiffany J. Vlaar (https://orcid.org/0000-0002-0885-2393)

Keywords: Camera trap images, Class imbalance, Computer vision, Convolutional neural networks, Deep learning, Ground truth uncertainty, Pre-training

Running head: Camera traps and ground truth uncertainty

Word count: 7995 words

Data availability statement: We used open-access camera trap image datasets available at https://doi.org/10.5061/dryad.5pt92 and https://doi.org/10.5281/zenodo.14389489. All analysis code is available at: https://github.com/Leonard-H/prickly-pear-cnn.

Author contributions: PSS and TJV conceived and led the project, including the methodological design and analyses; LH and SA contributed to the methodological design and conducted the analyses; LH and PSS created the figures; PSS led the writing of the manuscript, with substantial contributions from TJV; all authors contributed critically to the drafts and gave final approval for publication.

Conflict of interest statement: The authors have no conflict of interest to declare.

Acknowledgements: For the purpose of open access, the authors have applied a Creative Commons Attribution (CC BY) licence to any Author Accepted Manuscript version arising from this submission. LH was supported by the EPSRC summer vacation internship.

Abstract

  1. Supervised deep learning methods enable the rapid processing of large quantities of ecological image data, but depend on a costly and time-consuming annotation process. Consequently, training labels are commonly derived from volunteer citizen science projects. However, disagreement among volunteers introduces uncertainty in the “ground truth” data that are assumed to be correct for model training and validation. The consequences of this ground truth uncertainty are poorly understood, yet potentially important across the broad range of applications where data have multiple labels.
  2. Using two datasets containing camera trap images with associated volunteer and expert classifications, we investigated the effects of training under higher ground truth uncertainty on model performance across a range of image difficulties, species-level classification accuracy, and generalisation across datasets. We also explored the interaction between ground truth uncertainty and pre-training, as well as class imbalance.
  3. Training under higher ground truth uncertainty improved overall test accuracy, particularly for images that were more difficult for human volunteers. Species-level accuracy also generally improved, including for several classes with relatively poor volunteer accuracy. However, generalisation to a different dataset did not improve. The benefits of ground truth uncertainty were enhanced by pre-training on ImageNet. Additionally, pre-training substantially reduced the number of training epochs required; further reductions in computational cost, but not gains in accuracy, resulted from additional pre-training on other camera trap images. With unbalanced training data, we still observed a clear benefit of increased ground truth uncertainty for overall accuracy, especially on difficult images. However, class imbalance affected species-level classification performance, improving accuracy for common species, reducing rare species accuracy, and changing patterns of misclassification to more closely resemble mistakes made by human volunteers.
  4. Our findings have implications for the application of deep learning across ecological image types with multiple labels. Practitioners can improve classification accuracy, especially on difficult examples, by including moderate levels of label disagreement during training and using models pre-trained on general image data. In addition to improving the use of citizen science-derived labels in model training, our study suggests avenues for more effectively integrating human and deep learning classifications in combined workflows.

1 Introduction

Deep learning is transforming ecological research by enabling the rapid processing of vast quantities of image data, which would otherwise take researchers months or years to manually classify (Borowiec et al., 2022; Christin et al., 2019; Pichler & Hartig, 2023). These approaches have been used to classify animals in camera trap images (e.g., Beery et al., 2019; Norouzzadeh et al., 2021), plants in leaf photographs collected in the field (e.g., Rzanny et al., 2017) and from herbarium records (e.g., Shirai et al., 2022), and plankton and bacteria in microscope images (Al-Jumaili et al., 2026; Bachimanchi et al., 2024). Deep learning is also commonly applied to satellite imagery and other remote sensing data, for tasks such as counting animals (Bowler et al., 2020), classifying land cover types (e.g., Mashraqi et al., 2025) and monitoring large-scale changes over time (e.g., Sefrin et al., 2021). Additionally, deep learning has been applied to spectrogram images to classify species from acoustic data (Lauha et al., 2022). These applications support fundamental ecological research in an increasingly data-rich field, and can facilitate rapid processing of data in applied conservation settings where timely action may be vital (Borowiec et al., 2022; Christin et al., 2019; Pichler & Hartig, 2023).

In image classification tasks, convolutional neural networks (CNNs; He et al., 2016; Li et al., 2021) are the dominant paradigm. However, the use of supervised learning approaches depends on a costly annotation process to generate training examples (Norouzzadeh et al., 2021). To mitigate this cost, it is common to use training image labels derived from volunteer citizen science projects (Dickinson et al., 2012; Green et al., 2020; Pocock et al., 2018; Willi et al., 2019). To improve the accuracy of this labelling process it is typical for each image to be classified by multiple volunteers, with a label being accepted when the proportion of volunteers in agreement passes a given threshold. To retain images for which there is no unanimous agreement – there are usually significant differences amongst volunteer annotators' skillset, experience, interests, and behaviour that affect classification accuracy (Johnston et al., 2023; Kosmala et al., 2016; Welinder et al., 2010) – a threshold below 100% can be used. The consequence of lowering this threshold is uncertainty in the “ground truth” data (i.e., image labels which are assumed to be correct, and which are used to train and validate the model; Bowler et al., 2020).

Ground truth uncertainty arising from disagreements among volunteers has several potential consequences for the training of deep learning models. First, because volunteers are expected to disagree more frequently on images which are more difficult (e.g., where images are poor quality, visibility is poor or partially obscured, the class is intrinsically difficult to identify or may be confused with similar classes), training on these data allows the model to gain experience with more difficult examples. This is potentially important for addressing poor model performance on challenging images which are commonly obtained in ecology, but which remain under-represented in many datasets which are used to develop deep learning models (Kitzes et al., 2026). In addition, retaining uncertain examples maximises the quantity of training data available. However, this also increases the risk of introducing incorrect training labels, which may damage model performance by training the model to associate the example with the wrong class. For instance, Bevan et al., 2026 showed that incorrect labels can impact the accuracy of ecological metrics (species richness, occupancy, and activity) derived from camera trap data. However, as highlighted by the authors, since their study design applied incorrect labels uniformly across their dataset, their approach fails to capture realistic aspects of ground truth uncertainty such as the association of incorrect labels with certain classes or more difficult images. Consequently, the overall effect of ground truth uncertainty on the accuracy of classifications produced by deep learning models, and how this effect may vary among examples of different difficulty and across different classes, is not well understood.

Ground truth uncertainty also has the potential to interact with two other key issues in the application of deep learning to ecological image data: generalisation to new contexts, and class imbalance. Classification models often fail to generalise well to new contexts or environments (Beery et al., 2018; Shepley et al., 2021), due to overfitting to the background or other irrelevant features. For example, Sharpe et al., 2025 found that Conservation AI's UK Mammal model (Fergus et al., 2024) was substantially less accurate than expected when applied to their camera trap data. This poses a challenge for ecologists who wish to deploy pre-trained models on their own data, particularly if they do not have the computational resources or expertise to train their own model. As images with higher ground truth uncertainty may represent less typical examples of a class or background features (e.g., due to low visibility), it is possible that training on these images may improve performance on images from new contexts.

Class imbalance refers to an imbalance in the relative frequency of the examples for each class (e.g., species) in the training data. This is ubiquitous in ecological image datasets, for reasons including variation in species' abundance and detectability. Class imbalance represents a challenge for deep learning models because performance on abundant classes can dominate the loss function, incentivising the model to improve only on these classes and potentially harming performance on the rarer classes (Prince, 2024 p.73). Various approaches have been used to mitigate class imbalance (Shwartz-Ziv et al., 2023), including data resampling and data augmentation schemes (e.g., Trivial Augment; Müller and Hutter, 2021). Ground truth uncertainty is expected to interact with class imbalance because some classes are intrinsically more likely to be uncertain – for example, a familiar and visually distinctive species like the elephant (Loxodonta africana) may be less likely to be misidentified than a Grant's gazelle (Nanger grantii), which could be mistaken for another antelope species like impala (Aepyceros melampus). Consequently, changing the volunteer agreement threshold can alter the degree of class imbalance in the dataset.

Here, we leverage two datasets which comprise camera trap images with associated volunteer and expert labels to explore the effects of ground truth uncertainty on deep learning models for classifying ecological image data. Camera traps are one of the key sources of image data in ecology; they can be deployed in remote locations, are effective at monitoring rare and elusive animals, operate over all hours, and are often more cost-effective than other approaches (Bruce et al., 2025). We address the following questions: 1) Does training under higher ground truth uncertainty improve performance on difficult images? 2) How is species-level classification accuracy affected by ground truth uncertainty? 3) Does training on more uncertain images improve generalisation between datasets? 4) Does ground truth uncertainty interact with class imbalance? Our findings offer insights into any setting where labels are provided by multiple annotators.

References (48)