Leveraging machine learning and accelerometry to classify animal behaviours with uncertainty

Abstract Animal‐worn sensors have revolutionised the study of animal behaviour and ecology. Accelerometers, which measure changes in acceleration across planes of movement, are increasingly being used in conjunction with machine learning models to classify animal behaviours across taxa and research questions. However, the widespread adoption of these methods faces challenges from imbalanced training data, unquantified uncertainties in model outputs, shifts in model performance across contexts and noisy classifications in continuous data streams, where predicted behaviours change abruptly within a sequence. To address these challenges, we introduce an open‐source approach for classifying animal behaviour from raw acceleration data. Our approach integrates machine learning and statistical inference techniques to evaluate and mitigate class imbalances, changes in model performance across ecological settings and noisy classifications. Importantly, we extend predictions from single behaviour classifications to prediction sets: sets of behaviour labels guaranteed to contain the true behaviour with a pre‐specified probability, in a framework analogous to the use of prediction intervals in statistical analyses. We evaluate our approach via simulation and highlight its utility using data collected from a free‐ranging large carnivore, African wild dogs ( Lycaon pictus ), in the Okavango Delta, Botswana. We demonstrate significantly improved predictions along with associated uncertainty metrics in African wild dog behaviour classification, particularly for rare and ecologically important behaviours such as feeding, where correct classifications more than doubled following quality checks and data rebalancing introduced in our pipeline. Our approach is applicable across taxa and represents a key step towards advancing the burgeoning use of machine learning to remotely observe around‐the‐clock behaviours of free‐ranging animals. Future work could include the integration of multiple data streams, such as accelerometer, audio and GPS data, for model training and could be incorporated directly into our pipeline.

Authors

Institutions

Publication Details

Journal
Methods in Ecology and Evolution
Published
2025-12-08
DOI
https://doi.org/10.1111/2041-210x.70206
Primary Topic
Wildlife Ecology and Conservation
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Leveraging machine learning and accelerometry to classify animal behaviours with uncertainty

Ronak Mehta, Zaïd Harchaoui, Briana Abrahms, Kasim Rafiq et al.
Methods in Ecology and Evolution
Wildlife Ecology and Conservation
article

Leveraging machine learning and accelerometry to classify animal behaviours with uncertainty

Ronak Mehta, Zaïd Harchaoui, Briana Abrahms, Kasim Rafiq, Medha Agarwal
article en

Abstract

Abstract Animal‐worn sensors have revolutionised the study of animal behaviour and ecology. Accelerometers, which measure changes in acceleration across planes of movement, are increasingly being used in conjunction with machine learning models to classify animal behaviours across taxa and research questions. However, the widespread adoption of these methods faces challenges from imbalanced training data, unquantified uncertainties in model outputs, shifts in model performance across contexts and noisy classifications in continuous data streams, where predicted behaviours change abruptly within a sequence. To address these challenges, we introduce an open‐source approach for classifying animal behaviour from raw acceleration data. Our approach integrates machine learning and statistical inference techniques to evaluate and mitigate class imbalances, changes in model performance across ecological settings and noisy classifications. Importantly, we extend predictions from single behaviour classifications to prediction sets: sets of behaviour labels guaranteed to contain the true behaviour with a pre‐specified probability, in a framework analogous to the use of prediction intervals in statistical analyses. We evaluate our approach via simulation and highlight its utility using data collected from a free‐ranging large carnivore, African wild dogs ( Lycaon pictus ), in the Okavango Delta, Botswana. We demonstrate significantly improved predictions along with associated uncertainty metrics in African wild dog behaviour classification, particularly for rare and ecologically important behaviours such as feeding, where correct classifications more than doubled following quality checks and data rebalancing introduced in our pipeline. Our approach is applicable across taxa and represents a key step towards advancing the burgeoning use of machine learning to remotely observe around‐the‐clock behaviours of free‐ranging animals. Future work could include the integration of multiple data streams, such as accelerometer, audio and GPS data, for model training and could be incorporated directly into our pipeline.

Methods in Ecology and EvolutionVol. 17(2)
University of Washington (US), American Sentinel University (US), Botswana Predator Conservation Trust (BW)
Openalex Percentile: Top 62%
Wildlife Ecology and Conservation
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.