Methods in Ecology and EvolutionEcologyPeer-reviewed journal article
Paying Attention to Other Animal Detections Improves Camera Trap Classification Models
Gaspard DussertiD, Stéphane DrayiD, Simon Chamaillé‐JammesiD, Vincent MieleiD
Abstract
O_LIIn ecological studies, automated species classification models are increasingly used to process large volumes of camera trap images. Most current classification models rely on a two-step pipeline: a detector first locates and crops animals, followed by a classifier that predicts species independently for each crop. While effective, these models still struggle under challenging conditions and ignore temporal context or information from nearby animals available in sequences of camera trap images, whereas human annotators often use it in difficult cases. C_LIO_LIWe propose to leverage self-attention, a core mechanism of Large Language Models and Vision Transformers, to enable the model to learn relationships between crops occurring in similar contexts. Our self-attention module operates directly on the set of crop embeddings, producing new representations enriched with information from other crops, improving species classification. The module fits into the two-step pipeline without requiring structural change and adds only minimal computational overhead. To address the lack of annotated multi-species sequences, we develop a training strategy that synthetically generates multi-species sequences from monospecific ones. C_LIO_LICompared to an independent classifier baseline, our multi-crop model achieves higher accuracy on mono-specific sequences, both real and synthetic. In multispecies settings, evaluated using synthetic test sets, we also observe a substantial improvement in accuracy. Using real but weakly annotated multi-species sequences, we reformulate the task as multi-label set classification, and conduct a visual analysis, to highlight the benefits of our approach. C_LIO_LIBy leveraging the information brought by all detections of animals in the image and others of the same sequence, our approach reduces species misclassifications and enables more accurate estimates for downstream ecological analyses focusing on, for instance, species richness, occupancy, and species interaction. C_LI
- assay: imaging
- research focus: cell type annotation
- research focus: clustering
- approach: deep learning
- approach: transformer / foundation model
- Citations
- 4
- FWCI
- 11.34
- Field percentile
- top 2%
Reproducibility ledger
Nobody has reported trying to reproduce this paper yet. Did you replicate an experiment or run the code? Your report saves the next lab a week.
Sign in to file a reproducibility report.
Related papers
- A versatile semiautomated image analysis workflow for time-lapsed camera trap image classification.
G. Celis, P. S. Ungar, … D. Ehrich·bioRxiv·Dec 28, 2022
- Advancing Wildlife Image Analysis: A Graph Attention Contrastive Learning Approach for Region-Specific Mammal Classification
Youngmin Kim, Cheol‐Han Kim, … Gea‐Jae Joo·Ecological Solutions and EvidencePeer-reviewed·Sep 27, 2026
- WildCLIP: Scene and animal attribute retrieval from camera trap data with domain-adapted vision-language models
V. Gabeff, M. Russwurm, … A. Mathis·bioRxiv·Dec 22, 2023
- CameraTrapDetectoR: Automatically detect, classify, and count animals in camera trap images using artificial intelligence
M. A. Tabak, D. Falbel, … R. S. Miller·bioRxiv·Feb 7, 2022
- Zero-shot animal behavior classification with vision-language foundation models
Gaspard Dussert, Vincent Miele, … Simon Chamaillé‐Jammes·Methods in Ecology and EvolutionPeer-reviewed·May 20, 2025
- Improving the accessibility and transferability of machine learning algorithms for identification of animals in camera trap images: MLWIC2
M. A. Tabak, M. S. Norouzzadeh, … R. S. Miller·bioRxiv·Mar 18, 2020