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

Read original: arXiv:2409.00053 - Published 9/4/2024 by Oshana Dissanayake, Sarah E. McPherson, Joseph Allyndree, Emer Kennedy, Padraig Cunningham, Lucile Riaboff
Total Score

0

🏷️

Sign in to get full access

or

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

Overview

  • Getting insights on how pre-weaned calves adapt their behavior to challenges and diseases can improve calf welfare on dairy farms.
  • Monitoring calf behavior using accelerometers and machine learning is a promising approach, but requires labeled data, which is time-consuming to obtain.
  • To address this challenge, the researchers present the ActBeCalf dataset, which contains 27.4 hours of accelerometer data aligned with manually annotated calf behaviors.
  • The dataset was used to develop machine learning models for classifying calf behaviors, demonstrating its reliability.

Plain English Explanation

Observing how young dairy calves change their behavior when faced with challenges, like transport or illness, can help farmers improve the animals' well-being. One way to monitor calf behavior is by using accelerometers (motion sensors) attached to their neck collars and then using machine learning to analyze the sensor data.

However, to train the machine learning models, researchers need "labeled" data - information that clearly identifies what the calves were doing when the sensor data was recorded. Obtaining these labels is difficult, as it requires someone to closely watch and manually record the calves' behaviors, which is time-consuming and labor-intensive.

To solve this problem, the researchers created the ActBeCalf dataset. They equipped 30 young dairy calves with accelerometer sensors and filmed them for 13 weeks. Then, they carefully watched the videos and annotated the calves' behaviors, such as lying down, standing, walking, and running, as well as less obvious behaviors like sniffing, social interactions, and grooming.

This comprehensive dataset, with both the accelerometer data and the labeled behaviors, can now be used to train machine learning models to automatically recognize and classify calf behaviors from the sensor data alone. The researchers demonstrated the reliability of the dataset by training two different behavior classification models, which achieved high accuracy.

Technical Explanation

The researchers used a 3D-accelerometer sensor attached to a neck collar to record the movements of 30 pre-weaned dairy calves (Holstein Friesian and Jersey) from one week of birth for 13 weeks. Simultaneously, the calves were filmed in their pens.

After the trial, three observers manually annotated the calves' behaviors from the videos using the Behavioral Observation Research Interactive Software (BORIS) and an ethogram with 23 different behaviors. This resulted in the ActBeCalf dataset, which contains 27.4 hours of accelerometer data aligned with the annotated calf behaviors.

The researchers then used the ActBeCalf dataset to develop and evaluate two machine learning models for classifying calf behaviors. The first model classified behaviors into two classes: active and inactive. The second model classified behaviors into four classes: running, lying, drinking milk, and an "other" class.

The first model achieved a balanced accuracy of 92%, while the second model achieved an accuracy of 84%. These results demonstrate the reliability of the ActBeCalf dataset for training machine learning models to classify pre-weaned calf behaviors from accelerometer data.

Critical Analysis

The researchers acknowledge that the manual annotation of calf behaviors from video recordings, while necessary to create the ActBeCalf dataset, is a time-consuming and labor-intensive process. This may limit the scalability of the dataset and the approach, as obtaining labeled data can be a significant bottleneck for developing and deploying behavior classification models in real-world dairy farm settings.

Additionally, the dataset is limited to 30 calves, which may not capture the full diversity of individual calf behaviors and adaptations. Expanding the dataset with more animals and diverse farming environments could improve the generalizability of the machine learning models.

The researchers also note that the ActBeCalf dataset does not include data on calf health or performance, which could be valuable for understanding the relationship between behavior and overall calf welfare. Integrating such data could further enhance the utility of the dataset for dairy farm management and calf care.

Conclusion

The ActBeCalf dataset provides a comprehensive and reliable resource for classifying pre-weaned calf behaviors from accelerometer data using machine learning. This tool has the potential to help dairy farmers gain insights into calf adaptation and welfare, which could lead to improved management practices and better outcomes for the animals.

While the manual labeling process is a limitation, the dataset demonstrates the feasibility of using accelerometer-based behavior monitoring to support calf care and welfare on dairy farms. Future research could explore ways to streamline the data collection and annotation process, as well as integrate additional data sources to provide a more holistic understanding of calf health and well-being.



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

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

🔄

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

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