Copy‐Paste Augmentation Improves Automatic Species Identification in Camera Trap Images

Cédric Mesnage, Anne Corbett, Jake Curry, Sareh Rowlands, Anjan Dutta, Richard Everson, Benno I. Simmons

TL;DR

This paper introduces "copy-paste" augmentation for camera trap image analysis, a novel technique that significantly improves AI's ability to identify species in new, unseen locations. By isolating animal segments and pasting them onto diverse backgrounds, this method helps AI models generalize better, addressing a critical challenge in automated biodiversity monitoring.

What Problem Does This Paper Address?

Effective conservation hinges on accurate and scalable biodiversity monitoring. Traditional methods are labor-intensive and slow, making it difficult to keep pace with global biodiversity changes. Camera traps offer a technological solution, generating vast amounts of data. However, current AI models trained on this data struggle to generalize to new environments or locations not represented in their training sets. This "domain shift" problem limits the reliability of AI for widespread conservation efforts, as models often overfit to specific backgrounds encountered during training. Furthermore, camera trap datasets are typically "long-tailed," meaning a few species are abundant in images, while many others are rare, making it hard for AI to learn to identify these underrepresented species.

Methods

The core innovation is copy-paste augmentation. This technique involves:

  1. Segmentation: Using a pre-trained U²-NET model to automatically remove the background from images containing a single animal, isolating the animal as a "segment."
  2. Augmentation: Creating synthetic images by pasting these animal segments onto novel, empty background images. These synthetic images are then added to the original training dataset.
  3. Transformation: Before pasting, the animal segments are randomly scaled (±5%), rotated (±5°), and flipped horizontally to increase variability. Segments are pasted onto the bottom half of the background image.

The authors used a Monte Carlo cross-validation approach, repeatedly splitting their data into training and testing sets to assess generalization performance. They evaluated object detection models using mean average precision (mAP).

Datasets

The primary dataset used was the Snapshot Serengeti dataset. This dataset contains approximately 7 million camera trap images, with 74,616 images annotated with bounding boxes and species identities. The authors filtered this dataset to include only images with a single identified class and removed images with inconsistent scaling issues.

Key Insights and Ideas

  • Beyond Simple Transformations: The paper highlights that traditional augmentation methods (like rotation, flipping) are insufficient for the complex challenges of camera trap data. Generating entirely new, synthetic images is a more powerful approach.
  • Background Agnosticism: The theoretical underpinning of copy-paste augmentation is to make AI models less sensitive to specific backgrounds, thereby improving their ability to generalize to new locations.
  • Addressing the "Long Tail": Copy-paste augmentation can help rebalance skewed datasets by creating synthetic examples of rare species, potentially improving their identification accuracy.
  • Species-Specific Performance: While the method generally improves performance, there's variation across species, suggesting that some species' characteristics might pose unique challenges for segmentation or augmentation.

Key Results

  • Generalization Improvement: Copy-paste augmentation improved the AI's ability to identify species in new, unseen locations by 8% ± 2%.
  • Broad Applicability: The vast majority of species benefited from the augmentation approach.
  • Few-Shot Learning Impact: The method showed promise in few-shot learning scenarios. When trained with only 1 or 2 images per class, copy-paste augmentation significantly improved performance. However, with 4 or 8 images per class, it sometimes worsened performance, indicating a complex interaction with dataset size.
  • Correlation with Segments: Model performance showed a significant positive correlation with the number of available usable segments per species, suggesting that more diverse segments lead to better results.
  • Negative Impacts: For a subset of species (eight, or 17%), performance substantially decreased. The authors hypothesize this could be due to issues with nocturnal species, segmentation errors, or the need for greater image diversity for these specific animals.

Limitations and Future Work

  • Segmentation Imperfections: The current segmentation algorithm is not perfect, requiring manual filtering of segments. This is time-consuming and limits scalability. Future work should focus on improving segmentation accuracy to fully automate the process.
  • "Smart Pasting": The current random pasting of segments can lead to unrealistic compositions (e.g., animals pasted onto inappropriate backgrounds like grass). Future research could explore "smart pasting" techniques that consider animal behavior, territorial ranges, and realistic scene composition.
  • Time Synchronization: Synchronizing the time of day between segments and backgrounds could improve realism, especially for nocturnal species.
  • Few-Shot Learning Nuances: The mixed results in few-shot learning require further investigation. Exploring longer training times or higher augmentation factors might yield better outcomes.
  • External Datasets: Investigating the use of animal segments from external sources (beyond the camera trap dataset) could further increase the diversity of augmented data.
  • Dataset Validation: The authors emphasize the need to validate this approach on other datasets spanning diverse species, habitats, and locations.

Summary updated

Abstract

Effective conservation requires effective biodiversity monitoring. The pace of global biodiversity change far outstrips the ability of manual fieldwork to monitor it. Therefore, technological solutions, like camera traps, have emerged as a crucial way to meet biodiversity monitoring needs. Camera traps produce vast amounts of data, and so AI is increasingly used to label images with species identities. However, AI struggles to identify species from new locations that are not part of the training data ('generalisation'). Resolving this is crucial for the promise of automated biodiversity monitoring to be realised. Here we use 'copy-paste' augmentation to help resolve the generalisation challenge. Copy-paste augmentation refers to isolating animal 'segments' from existing images and pasting the segments onto novel backgrounds to create new, synthetic images that are then used as part of the training data. Theoretically, this could make a model agnostic to backgrounds and therefore more able to generalise to unseen locations. While generation of synthetic images is commonly used as an augmentation method in other fields, such as medicine, it has not been used before in biodiversity science. We found that copy-paste augmentation improved the ability of AI to identify species in new, unseen locations by 8% ± 2%. There was species-level variation in improvement, but the vast majority of species benefited from the approach. We found mixed results when using copy-paste augmentation on models trained with very small numbers of images (1-8 per species). Copy-paste augmentation improves the ability of AI models to generalise to new, unseen locations. Our method also shows promise for resolving the challenge of long-tailed camera trap data. AIs perform poorly on species in the 'long tail' of these distributions because there are very few images to train on. Copy-paste augmentation can help rebalance datasets by adding synthetic images of underrepresented species. Overall, our results suggest a promising role for augmentation methods that generate new, synthetic images in biodiversity science. Ecologists and conservationists must move beyond simple augmentation methods, such as image transformations, if we are to resolve key challenges in species identification AI.
BibTeX
@inproceedings{mesnage2025copypaste,
  author = {Cédric Mesnage and Anne Corbett and Jake Curry and Sareh Rowlands and Anjan Dutta and Richard Everson and Benno I. Simmons},
  title = {{Copy‐Paste Augmentation Improves Automatic Species Identification in Camera Trap Images}},
  booktitle = {Ecology},
  year = {2025},
  doi = {10.1002/ece3.72357},
}
Figure