On the use of on-cow accelerometers for the classification of behaviours in dairy barns

Res Vet Sci. 2019 Aug:125:425-433. doi: 10.1016/j.rvsc.2017.10.005. Epub 2017 Oct 31.

Abstract

Analysing behaviours can provide insight into the health and overall well-being of dairy cows. Automatic monitoring systems using e.g., accelerometers are becoming increasingly important to accurately quantify cows' behaviours as the herd size increases. The aim of this study is to automatically classify cows' behaviours by comparing leg- and neck-mounted accelerometers, and to study the effect of the sampling rate and the number of accelerometer axes logged on the classification performances. Lying, standing, and feeding behaviours of 16 different lactating dairy cows were logged for 6h with 3D-accelerometers. The behaviours were simultaneously recorded using visual observation and video recordings as a reference. Different features were extracted from the raw data and machine learning algorithms were used for the classification. The classification models using combined data of the neck- and the leg-mounted accelerometers have classified the three behaviours with high precision (80-99%) and sensitivity (87-99%). For the leg-mounted accelerometer, lying behaviour was classified with high precision (99%) and sensitivity (98%). Feeding was classified more accurately by the neck-mounted versus the leg-mounted accelerometer (precision 92% versus 80%; sensitivity 97% versus 88%). Standing was the most difficult behaviour to classify when only one accelerometer was used. In addition, the classification performances were not highly influenced when only X, X and Z, or Z and Y axes were used for the classification instead of three axes, especially for the neck-mounted accelerometer. Moreover, the accuracy of the models decreased with about 20% when the sampling rate was decreased from 1Hz to 0.05Hz.

Keywords: Accelerometer; Behaviours classification; Dairy cows; Feature extraction; Machine learning.

MeSH terms

  • Accelerometry / veterinary*
  • Animal Welfare
  • Animals
  • Behavior, Animal*
  • Cattle / physiology*
  • Female
  • Monitoring, Physiologic / instrumentation
  • Monitoring, Physiologic / veterinary*
  • Video Recording