Machine learning based canine posture estimation using inertial data

PLoS One. 2023 Jun 21;18(6):e0286311. doi: 10.1371/journal.pone.0286311. eCollection 2023.

Abstract

The aim of this study was to design a new canine posture estimation system specifically for working dogs. The system was composed of Inertial Measurement Units (IMUs) that are commercially available, and a supervised learning algorithm which was developed for different behaviours. Three IMUs, each containing a 3-axis accelerometer, gyroscope, and magnetometer, were attached to the dogs' chest, back, and neck. To build and test the model, data were collected during a video-recorded behaviour test where the trainee assistance dogs performed static postures (standing, sitting, lying down) and dynamic activities (walking, body shake). Advanced feature extraction techniques were employed for the first time in this field, including statistical, temporal, and spectral methods. The most important features for posture prediction were chosen using Select K Best with ANOVA F-value. The individual contributions of each IMU, sensor, and feature type were analysed using Select K Best scores and Random Forest feature importance. Results showed that the back and chest IMUs were more important than the neck IMU, and the accelerometers were more important than the gyroscopes. The addition of IMUs to the chest and back of dog harnesses is recommended to improve performance. Additionally, statistical and temporal feature domains were more important than spectral feature domains. Three novel cascade arrangements of Random Forest and Isolation Forest were fitted to the dataset. The best classifier achieved an f1-macro of 0.83 and an f1-weighted of 0.90 for the prediction of the five postures, demonstrating a better performance than previous studies. These results were attributed to the data collection methodology (number of subjects and observations, multiple IMUs, use of common working dog breeds) and novel machine learning techniques (advanced feature extraction, feature selection and modelling arrangements) employed. The dataset and code used are publicly available on Mendeley Data and GitHub, respectively.

Publication types

  • Research Support, Non-U.S. Gov't

MeSH terms

  • Algorithms
  • Animals
  • Dogs
  • Machine Learning*
  • Posture*
  • Random Forest
  • Walking

Grants and funding

This publication has emanated from research supported in part by a grant from The Ireland-Wales INTERREG Programme under the CALIN project [PG; grant number 80885; https://irelandwales.eu/projects/calin], from Science Foundation Ireland (SFI) [PG, BO; grant number 12/RC/2289-P2; https://www.sfi.ie/]; from SFI and Department of Agriculture, Food and Marine [PG, BO; grant number 16/RC/3835; https://www.sfi.ie/, https://www.gov.ie/en/organisation/department-of-agriculture-food-and-the-marine/]. The funders had no role in study design, data collection and analysis, decision to publish, or preparation of the manuscript.