Paying attention to other animal detections improves camera trap classification models

Abstract In 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. We 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 mono‐specific ones. Compared with an independent classifier baseline, our multi‐crop model achieves higher accuracy on mono‐specific sequences, both real and synthetic. In multi‐species 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. By 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.

Authors

Institutions

Publication Details

Journal
Methods in Ecology and Evolution
Published
2026-03-04
DOI
https://doi.org/10.1111/2041-210x.70260
Primary Topic
Advanced Neural Network Applications
Type
article
Field-Weighted Citation Impact
0.00

Funders

Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Paying attention to other animal detections improves camera trap classification models

Gaspard Dussert, Vincent Mièle, Stéphane Dray, Simon Chamaillé‐Jammes
Methods in Ecology and Evolution
Advanced Neural Network Applications
article

Paying attention to other animal detections improves camera trap classification models

Gaspard Dussert, Vincent Mièle, Stéphane Dray, Simon Chamaillé‐Jammes
article en

Abstract

Abstract In 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. We 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 mono‐specific ones. Compared with an independent classifier baseline, our multi‐crop model achieves higher accuracy on mono‐specific sequences, both real and synthetic. In multi‐species 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. By 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.

Methods in Ecology and Evolution
Université Claude Bernard Lyon 1 (FR), Centre National de la Recherche Scientifique (FR), École Pratique des Hautes Études (FR), Université de Montpellier (FR), Centre d'Écologie Fonctionnelle et Évolutive (FR), Laboratoire de Biométrie et Biologie Evolutive (FR), Laboratoire d'Écologie Alpine (FR), Institut de Recherche pour le Développement (FR), Université Savoie Mont Blanc (FR), Université Grenoble Alpes (FR)
Biodiversa+, Grand Équipement National De Calcul Intensif
Life in Land
Openalex Percentile: Top 32%
Advanced Neural Network Applications
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.