Welfare assessment of dairy cows by in-person farm visits provides only a snapshot of welfare and is time-consuming and costly. Possible solutions to reduce the need for in-person assessments would be to exploit sensor data and other routinely collected on-farm records. The aim of this study was to develop an algorithm to classify dairy cow welfare based on sensors (accelerometer and/or milk meter) and farm records (e.g. days in milk, lactation number). In total, 318 cows from six commercial farms located in Finland, Italy and Spain (two farms each) were enrolled for a pilot study lasting 135 days. During this time, cows were routinely scored using 14 animal-based measures of good feeding, health and housing based on the Welfare Quality® (WQ®) protocol. WQ® measures were evaluated daily or approximately every 45 days, using disease treatments from farm records and on-farm visits, respectively. WQ® measures were supplemented with daily temperature-humidity index to account for heat stress. The severity and duration of each welfare measure were evaluated, and the final welfare index was obtained by summing up the values for each cow on each pilot study day, and stratifying the result into three classes: good, moderate and poor welfare. For model building, a machine-learning (ML) algorithm based on gradient-boosted trees (XGBoost) was applied. Two model versions were tested: (1) a global model tested on unseen herd, and (2) a herd-specific model tested on unseen part of the data from the same herd. The version (1) served as an example on the model performance on a herd not previsited by the evaluator, while version (2) resembled a custom-made solution requiring in-person welfare evaluation for model training. Our results indicated that the global model had a low performance with average sensitivity and specificity of 0.44 and 0.68, respectively. For the herd-specific version, the model performance was higher reaching an average of 0.64 sensitivity and 0.80 specificity. The highest classification performance was obtained for cows in poor welfare, followed by cows in good and moderate welfare (balanced accuracy of 0.77, 0.71 and 0.68, respectively). Since the global model had low classification accuracy, the use of the developed model as a stand-alone system based solely on sensor data is infeasible, and a combination of in-person and sensor-based welfare evaluation would be preferable for a reliable welfare assessment. ML-based solutions, even with fair discriminative abilities, have the potential to enhance dairy welfare monitoring.

Measuring dairy cow welfare with real-time sensor-based data and farm records: a concept study / A.H. Stygar, L. Frondelius, G.V. Berteselli, Y. Gómez, E. Canali, J.K. Niemi, P. Llonch, M. Pastell. - In: ANIMAL. - ISSN 1751-7311. - 17:12(2023 Dec), pp. 101023.1-101023.11. [10.1016/j.animal.2023.101023]

Measuring dairy cow welfare with real-time sensor-based data and farm records: a concept study

G.V. Berteselli;E. Canali;
2023

Abstract

Welfare assessment of dairy cows by in-person farm visits provides only a snapshot of welfare and is time-consuming and costly. Possible solutions to reduce the need for in-person assessments would be to exploit sensor data and other routinely collected on-farm records. The aim of this study was to develop an algorithm to classify dairy cow welfare based on sensors (accelerometer and/or milk meter) and farm records (e.g. days in milk, lactation number). In total, 318 cows from six commercial farms located in Finland, Italy and Spain (two farms each) were enrolled for a pilot study lasting 135 days. During this time, cows were routinely scored using 14 animal-based measures of good feeding, health and housing based on the Welfare Quality® (WQ®) protocol. WQ® measures were evaluated daily or approximately every 45 days, using disease treatments from farm records and on-farm visits, respectively. WQ® measures were supplemented with daily temperature-humidity index to account for heat stress. The severity and duration of each welfare measure were evaluated, and the final welfare index was obtained by summing up the values for each cow on each pilot study day, and stratifying the result into three classes: good, moderate and poor welfare. For model building, a machine-learning (ML) algorithm based on gradient-boosted trees (XGBoost) was applied. Two model versions were tested: (1) a global model tested on unseen herd, and (2) a herd-specific model tested on unseen part of the data from the same herd. The version (1) served as an example on the model performance on a herd not previsited by the evaluator, while version (2) resembled a custom-made solution requiring in-person welfare evaluation for model training. Our results indicated that the global model had a low performance with average sensitivity and specificity of 0.44 and 0.68, respectively. For the herd-specific version, the model performance was higher reaching an average of 0.64 sensitivity and 0.80 specificity. The highest classification performance was obtained for cows in poor welfare, followed by cows in good and moderate welfare (balanced accuracy of 0.77, 0.71 and 0.68, respectively). Since the global model had low classification accuracy, the use of the developed model as a stand-alone system based solely on sensor data is infeasible, and a combination of in-person and sensor-based welfare evaluation would be preferable for a reliable welfare assessment. ML-based solutions, even with fair discriminative abilities, have the potential to enhance dairy welfare monitoring.
English
Accelerometer; Machine-learning; Monitoring; Precision livestock farming (PLF); Welfare label;
Settore AGR/19 - Zootecnica Speciale
Articolo
Sì, ma tipo non specificato
Ricerca applicata
Pubblicazione scientifica
Goal 12: Responsible consumption and production
   Co-designed Welfare Monitoring Platform for Pig and Dairy Cattle (ClearFarm)
   ClearFarm
   EUROPEAN COMMISSION
   H2020
   862919
dic-2023
Elsevier
17
12
101023
1
11
11
Pubblicato
Periodico con rilevanza internazionale
pubmed
scopus
crossref
Aderisco
info:eu-repo/semantics/article
Measuring dairy cow welfare with real-time sensor-based data and farm records: a concept study / A.H. Stygar, L. Frondelius, G.V. Berteselli, Y. Gómez, E. Canali, J.K. Niemi, P. Llonch, M. Pastell. - In: ANIMAL. - ISSN 1751-7311. - 17:12(2023 Dec), pp. 101023.1-101023.11. [10.1016/j.animal.2023.101023]
open
Prodotti della ricerca::01 - Articolo su periodico
8
262
Article (author)
Periodico con Impact Factor
A.H. Stygar, L. Frondelius, G.V. Berteselli, Y. Gómez, E. Canali, J.K. Niemi, P. Llonch, M. Pastell
File in questo prodotto:
File Dimensione Formato  
1-s2.0-S1751731123003403-main.pdf

accesso aperto

Tipologia: Publisher's version/PDF
Dimensione 1.8 MB
Formato Adobe PDF
1.8 MB Adobe PDF Visualizza/Apri
Pubblicazioni consigliate

I documenti in IRIS sono protetti da copyright e tutti i diritti sono riservati, salvo diversa indicazione.

Utilizza questo identificativo per citare o creare un link a questo documento: https://hdl.handle.net/2434/1023653
Citazioni
  • ???jsp.display-item.citation.pmc??? 0
  • Scopus 4
  • ???jsp.display-item.citation.isi??? 0
social impact