Classification of cattle behaviour using convolutional neural networks

Dejan Pavlovic, Christos Tachtatzis, Andrew Hamilton, Oskar Marko, Robert Atkinson, Christopher Davison, Craig Michie, Vladimir Crnojevic, Ivan Andonovic

Research output: Contribution to conferenceAbstractpeer-review

123 Downloads (Pure)


The monitoring of cattle behaviour through sensor systems is gaining importance in the improvement of animal health, fertility and management of large herds. Commercial farms commonly implement accelerometer-based systems to monitor the time an animal spends ruminating, eating and overall activity which informs farmers on the health and fertility status of individual cattle. Ill or injured cattle feed and ruminate less, so tracking the duration and frequency of these states provide key indicators of animal health. Activity is used as a metric for the detection of oestrus (heat) which promotes more efficient fertilisation of dairy and beef cattle, reducing operating costs and increasing profits for farmers. The aim of the study was to determine the feasibility of enhancing the accuracy of estimating multiple classifications derived from acceleration-based activity collars can through Convolutional Neural Networks (CNN). CNN models are typically used to classify objects within images, but have been demonstrated to be effective at classifying time-series data across different domains. To evaluate their effectiveness for cattle behaviours classifications, acceleration data was collected from 18 cows across 3 farms using neck-mounted collars which provided 3-axis acceleration values at 10Hz sampling frequency. Each cow was equipped with pressure sensor halters which provided ground truth data of the animal behavioural state, also at 10Hz sampling frequency. The ground truth from the halter allowed the CNN model to be trained to predict a number of key cattle behaviours. The model was then tested on separate data to assess performance. The CNN was able to classify the 3 activity states (rumination, eating and other) with an overall F1 score of 82% compared to reported collar classifications with an overall F1 score of 72%.
Original languageEnglish
Number of pages1
Publication statusPublished - 4 Dec 2020
EventEuropean Federation of Animal Science (EAAP) Annual Meeting - Online (due to Covid-19 pandemic), Porto (originally)
Duration: 1 Dec 20204 Dec 2020


ConferenceEuropean Federation of Animal Science (EAAP) Annual Meeting
CityPorto (originally)
Internet address


  • monitoring
  • sensor systems
  • animal health


Dive into the research topics of 'Classification of cattle behaviour using convolutional neural networks'. Together they form a unique fingerprint.

Cite this