Related Experiment Video
Updated: May 2, 2026

A Step-by-Step Implementation of DeepBehavior, Deep Learning Toolbox for Automated Behavior Analysis
Published on: February 6, 2020
Love thy neighbour: automatic animal behavioural classification of acceleration data using the K-nearest neighbour
Owen R Bidder1, Hamish A Campbell2, Agustina Gómez-Laich3
1College of Science, Swansea University, Swansea, Wales.
Researchers can now automatically classify animal behavior using accelerometer data with the k-nearest neighbour (KNN) machine learning method. This approach simplifies analysis and offers comparable accuracy to complex techniques.
Area of Science:
- Movement Ecology
- Bio-telemetry
- Machine Learning in Ecology
Background:
- Biotelemetry, particularly accelerometers, aids in studying elusive species' behavior.
- Manual inspection of high-frequency accelerometer data is impractical for behavior classification.
- Existing machine learning methods for accelerometer data are complex and obscure decision-making.
Purpose of the Study:
- To present an accessible machine learning method for automatic accelerometer data classification.
- To enable researchers with limited computational skills to analyze animal behavior.
- To classify behavioral modes using raw accelerometer data without summary statistics.
Main Methods:
- Utilized the k-nearest neighbour (KNN) machine learning algorithm.
- Applied KNN to raw accelerometer data, avoiding summary statistics.
- Implemented the method using the freeware program R for accessibility.
Main Results:
- Successfully classified 5 behavioral modes across 8 diverse species (quadrupedal, bipedal, volant).
- Achieved accuracy and precision comparable to more complex machine learning methods.
- Provided R script to facilitate the application of the KNN method.
Conclusions:
- The KNN method offers a practical and effective solution for automatic behavioral classification from accelerometer data.
- This approach lowers the barrier to entry for using advanced analytics in animal behavior research.
- KNN can be integrated with positioning methods like GPS for comprehensive movement ecology studies.
Related Concept Videos
Automatic Processing and Automatic Social Behavior
Relative Motion Analysis - Acceleration
Force Classification
Contact and non-contact forces are two of the most widely used categories of forces. As the name suggests, contact forces require physical contact between two objects to act upon each other. Examples of contact forces include frictional,...
Relative Motion Analysis using Rotating Axes - Acceleration
Time differentiation is...
Aggregates Classification
Petrographic classification groups aggregates based on common mineralogical characteristics. Some of the common mineral groups found in aggregates are...

