Classifier architecture and data preprocessing jointly shape accelerometer-based behavioural inference
Preprint
Abstract
Although the use of accelerometer-based behavioural classification to quantify animal activity budgets is gaining widespread traction, the interactions between key preprocessing decisions and modern classification algorithms remain poorly understood. Moreover, classification pipelines are commonly assessed using global performance metrics, despite increasing evidence that such metrics poorly reflect behaviour-specific patterns and ecological reliability. Using a free-ranging primate ( Chlorocebus pygerythrus ) as a case study, we benchmarked how temporal segmentation (burst length), collar orientation correction, and model architecture jointly shape behavioural inference. We compared nine supervised algorithms spanning classical machine learning, feature-based deep learning including a tabular foundation model (TabPFN), and state of the art time-series architectures (HydraMultiROCKET). Beyond conventional metrics, performance was further evaluated using ecological validation against independent focal observations to assess model stability and biological plausibility. Model architecture exerted the strongest influence on classification outcomes. Modern deep-learning approaches substantially outperformed classical models, doubling recall for rare behaviours (e.g., grooming, self-scratching) without compromising precision. In contrast, burst length and collar orientation correction had little effect on global metrics but produced substantial, behaviour-specific trade-offs. Shorter bursts improved the detection of rare events by increasing training instances, while orientation correction suppressed dataset-specific artifacts at the cost of degrading common behaviours. Crucially, models with similar global and behaviour-level validation metrics produced divergent predictions when applied outside the annotated context. Our findings reveal that global metrics are insufficient for optimizing behavioural inference in complex wild systems. We demonstrate that modern deep-learning architectures, such as the ROCKET family, provide a robust, accessible baseline that handles class imbalance more effectively than traditional methods. We propose that reliable inference requires behaviour-aware evaluation frameworks that integrate ecological validation, and advocate for ensemble or hierarchical strategies to leverage the complementary strengths of different preprocessing and modelling configurations.Keywords
Funding Information
- European Research Council (ERC KNOWLEDGE MOVES starting grant 949379)
This publication has 45 references indexed in Scilit:
- Moving towards more holistic machine learning-based approaches for classification problems in animal studiesAnimal Behaviour, 2025
- Practical guidelines for validation of supervised machine learning models in accelerometer‐based animal behaviour classificationJournal of Animal Ecology, 2025
- Accurate predictions on small data with a tabular foundation modelNature, 2025
- Hydra: competing convolutional kernels for fast and accurate time series classificationData Mining and Knowledge Discovery, 2023
- Quantifying allo-grooming in wild chacma baboons (Papio ursinus) using tri-axial acceleration data and machine learningRoyal Society Open Science, 2023
- Array programming with NumPyNature, 2020
- Applications of machine learning in animal behaviour studiesAnimal Behaviour, 2017
- Integrating animal behavior and conservation biology: a conceptual frameworkBehavioral Ecology, 2011
- A better lemon squeezer? Maximum-likelihood regression with beta-distributed dependent variables.Psychological Methods, 2006
- Biotelemetry: a mechanistic approach to ecologyTrends in Ecology & Evolution, 2004