Development of a digital tool for monitoring the behaviour of pre-weaned calves using accelerometer neck-collars

Read original: arXiv:2406.17352 - Published 6/26/2024 by Oshana Dissanayake (UCD), Sarah E. Mcpherson (Teagasc, WUR), Joseph Allyndr'ee (UCD), Emer Kennedy (Teagasc), P'adraig Cunningham (UCD), Lucile Riaboff (GenPhySE, INRAE)
Total Score

0

🔄

Sign in to get full access

or

If you already have an account, we'll log you in

Overview

  • This study aimed to develop machine learning models to classify the main behaviors of pre-weaned calves from accelerometer data and create a digital monitoring tool.
  • Thirty calves were equipped with 3D accelerometers for two months, and their behaviors were annotated and aligned with the sensor data.
  • Two machine learning models were trained: one to classify active and inactive behaviors, and another to classify lying, running, drinking milk, and other behaviors.
  • The models achieved high accuracy in predicting calf behaviors, and the results were embedded into a Python dashboard for monitoring individual calf metrics.

Plain English Explanation

The researchers in this study wanted to find a way to automatically monitor the behavior of young calves on farms to better assess their welfare. They used a device called an accelerometer, which can measure movement in three dimensions, to track the calves' behavior over two months. At the same time, they filmed the calves so they could watch the videos and annotate, or label, what the calves were doing, like lying down, running, or drinking milk.

They then used this data to train two machine learning models. One model could tell if a calf was active or inactive, and the other model could identify more specific behaviors like lying down, running, and drinking milk. These models were able to accurately predict the calves' behaviors with high accuracy when tested on new data.

Finally, the researchers put all of this into a computer program, or dashboard, that can display the individual behavior of each calf, like how much time they spend active or lying down each day. This could be a useful tool for farmers to monitor the welfare of their young calves.

Technical Explanation

The researchers used data from 3D accelerometers attached to the necks of 30 pre-weaned calves over a two-month period, along with synchronized video footage, to develop machine learning models for classifying calf behaviors. The accelerometer data and video annotations were split into 3-second windows and used to train two models:

  1. A Random Forest model to classify active and inactive behaviors using 11 hand-crafted features.
  2. A RidgeClassifierCV model to classify lying, running, drinking milk, and other behaviors using ROCKET features.

The models were trained on data from 80% of the calves and tested on the remaining 20%. Model 1 achieved a balanced accuracy of 0.92, while Model 2 achieved a balanced accuracy of 0.84 in classifying the various behaviors.

From the model predictions, the researchers were able to derive behavioral metrics such as daily activity ratio and episodes of running, lying, drinking milk, and other behaviors over time. All of this was integrated into a Python dashboard, allowing individual calf behavior to be displayed directly from the raw accelerometer data.

Critical Analysis

The study presents a promising approach for automated monitoring of calf behavior and welfare using machine learning. The high accuracy of the models in classifying key behaviors suggests this technology could be a valuable tool for farmers and researchers.

However, the study has some limitations. The sample size of 30 calves may not be representative of the entire population, and the models were only tested on data from the remaining 20% of calves. Larger-scale validation and benchmarking against other animal behavior datasets would help strengthen the findings.

Additionally, the study does not address potential issues with sensor placement, data quality, or the impact of individual calf differences on the model performance. Further research is needed to understand how these factors may affect the reliability and practical implementation of the monitoring system.

Conclusion

This study demonstrates the potential of using machine learning and wearable sensors to automatically monitor the behavior of young calves on farms. The developed models and digital dashboard provide a tool for assessing calf welfare in a more objective and continuous way, which could lead to improved animal care and management practices. As the use of smartphones and other devices for human activity recognition has shown, this type of technology has promising applications for livestock as well.



This summary was produced with help from an AI and may contain inaccuracies - check out the links to read the original source documents!

Follow @aimodelsfyi on 𝕏 →

Related Papers

🔄

Total Score

0

Development of a digital tool for monitoring the behaviour of pre-weaned calves using accelerometer neck-collars

Oshana Dissanayake (UCD), Sarah E. Mcpherson (Teagasc, WUR), Joseph Allyndr'ee (UCD), Emer Kennedy (Teagasc), P'adraig Cunningham (UCD), Lucile Riaboff (GenPhySE, INRAE)

Automatic monitoring of calf behaviour is a promising way of assessing animal welfare from their first week on farms. This study aims to (i) develop machine learning models from accelerometer data to classify the main behaviours of pre-weaned calves and (ii) set up a digital tool for monitoring the behaviour of pre-weaned calves from the models' prediction. Thirty pre-weaned calves were equipped with a 3-D accelerometer attached to a neck-collar for two months and filmed simultaneously. The behaviours were annotated, resulting in 27.4 hours of observation aligned with the accelerometer data. The time-series were then split into 3 seconds windows. Two machine learning models were tuned using data from 80% of the calves: (i) a Random Forest model to classify between active and inactive behaviours using a set of 11 hand-craft features [model 1] and (ii) a RidgeClassifierCV model to classify between lying, running, drinking milk and other behaviours using ROCKET features [model 2]. The performance of the models was tested using data from the remaining 20% of the calves. Model 1 achieved a balanced accuracy of 0.92. Model 2 achieved a balanced accuracy of 0.84. Behavioural metrics such as daily activity ratio and episodes of running, lying, drinking milk, and other behaviours expressed over time were deduced from the predictions. All the development was finally embedded into a Python dashboard so that the individual calf metrics could be displayed directly from the raw accelerometer files.

Read more

6/26/2024

🏷️

Total Score

0

Accelerometer-Based Multivariate Time-Series Dataset for Calf Behavior Classification

Oshana Dissanayake, Sarah E. McPherson, Joseph Allyndree, Emer Kennedy, Padraig Cunningham, Lucile Riaboff

Getting new insights on pre-weaned calf behavioral adaptation to routine challenges (transport, group relocation, etc.) and diseases (respiratory diseases, diarrhea, etc.) is a promising way to improve calf welfare in dairy farms. A classic approach to automatically monitoring behavior is to equip animals with accelerometers attached to neck collars and to develop machine learning models from accelerometer time-series. However, to be used for model development, data must be equipped with labels. Obtaining these labels requires annotating behaviors from direct observation or videos, a time-consuming and labor-intensive process. To address this challenge, we propose the ActBeCalf (Accelerometer Time-Series for Calf Behaviour classification) dataset: 30 pre-weaned dairy calves (Holstein Friesian and Jersey) were equipped with a 3D-accelerometer sensor attached to a neck-collar from one week of birth for 13 weeks. The calves were simultaneously filmed with a camera in each pen. At the end of the trial, behaviors were manually annotated from the videos using the Behavioral Observation Research Interactive Software (BORIS) by 3 observers using an ethogram with 23 behaviors. ActBeCalf contains 27.4 hours of accelerometer data aligned adequately with calf behaviors. The dataset includes the main behaviors, like lying, standing, walking, and running, and less prominent behaviors, such as sniffing, social interaction, and grooming. Finally, ActBeCalf was used for behavior classification with machine learning models: (i)two classes of behaviors, [active and inactive; model 1] and (ii)four classes of behaviors [running, lying, drinking milk, and 'other' class; model 2] to demonstrate its reliability. We got a balanced accuracy of 92% [model1] and 84% [model2]. ActBeCalf is a comprehensive and ready-to-use dataset for classifying pre-weaned calf behaviour from the acceleration time series.

Read more

9/4/2024

Evaluating ROCKET and Catch22 features for calf behaviour classification from accelerometer data using Machine Learning models
Total Score

0

Evaluating ROCKET and Catch22 features for calf behaviour classification from accelerometer data using Machine Learning models

Oshana Dissanayake, Sarah E. McPherson, Joseph Allyndree, Emer Kennedy, Padraig Cunningham, Lucile Riaboff

Monitoring calf behaviour continuously would be beneficial to identify routine practices (e.g., weaning, dehorning, etc.) that impact calf welfare in dairy farms. In that regard, accelerometer data collected from neck collars can be used along with Machine Learning models to classify calf behaviour automatically. Hand-crafted features are commonly used in Machine Learning models, while ROCKET and Catch22 features are specifically designed for time-series classification problems in related fields. This study aims to compare the performance of ROCKET and Catch22 features to Hand-Crafted features. 30 Irish Holstein Friesian and Jersey pre-weaned calves were monitored using accelerometer sensors allowing for 27.4 hours of annotated behaviors. Additional time-series were computed from the raw X, Y and Z-axis and split into 3-second time windows. ROCKET, Catch22 and Hand-Crafted features were calculated for each time window, and the dataset was then split into the train, validation and test sets. Each set of features was used to train three Machine Learning models (Random Forest, eXtreme Gradient Boosting, and RidgeClassifierCV) to classify six behaviours indicative of pre-weaned calf welfare (drinking milk, grooming, lying, running, walking and other). Models were tuned with the validation set, and the performance of each feature-model combination was evaluated with the test set. The best performance across the three models was obtained with ROCKET [average balanced accuracy +/- standard deviation] (0.70 +/- 0.07), followed by Catch22 (0.69 +/- 0.05), surpassing Hand-Crafted (0.65 +/- 0.034). The best balanced accuracy (0.77) was obtained with ROCKET and RidgeClassifierCV, followed by Catch22 and Random Forest (0.73). Thus, tailoring these approaches for specific behaviours and contexts will be crucial in advancing precision livestock farming and enhancing animal welfare on a larger scale.

Read more

5/1/2024

A Comparison of Deep Learning and Established Methods for Calf Behaviour Monitoring
Total Score

0

A Comparison of Deep Learning and Established Methods for Calf Behaviour Monitoring

Oshana Dissanayake, Lucile Riaboff, Sarah E. McPherson, Emer Kennedy, P'adraig Cunningham

In recent years, there has been considerable progress in research on human activity recognition using data from wearable sensors. This technology also has potential in the context of animal welfare in livestock science. In this paper, we report on research on animal activity recognition in support of welfare monitoring. The data comes from collar-mounted accelerometer sensors worn by Holstein and Jersey calves, the objective being to detect changes in behaviour indicating sickness or stress. A key requirement in detecting changes in behaviour is to be able to classify activities into classes, such as drinking, running or walking. In Machine Learning terms, this is a time-series classification task, and in recent years, the Rocket family of methods have emerged as the state-of-the-art in this area. We have over 27 hours of labelled time-series data from 30 calves for our analysis. Using this data as a baseline, we present Rocket's performance on a 6-class classification task. Then, we compare this against the performance of 11 Deep Learning (DL) methods that have been proposed as promising methods for time-series classification. Given the success of DL in related areas, it is reasonable to expect that these methods will perform well here as well. Surprisingly, despite taking care to ensure that the DL methods are configured correctly, none of them match Rocket's performance. A possible explanation for the impressive success of Rocket is that it has the data encoding benefits of DL models in a much simpler classification framework.

Read more

8/26/2024