Skip to main content

ORIGINAL RESEARCH article

Front. Vet. Sci.
Sec. Veterinary Epidemiology and Economics
Volume 11 - 2024 | doi: 10.3389/fvets.2024.1401007

Investigating the use of machine learning algorithms to support riskbased animal welfare inspections of cattle and pig farms

Provisionally accepted
Beat Thomann Beat Thomann 1*Thibault Kuntzer Thibault Kuntzer 2Gertraud Schüpbach-Regula Gertraud Schüpbach-Regula 1Stefan Rieder Stefan Rieder 2*
  • 1 Veterinary Public Health Institute, Vetsuisse Faculty, University of Bern, Bern, Switzerland
  • 2 Identitas AG, R&D, Bern, Switzerland

The final, formatted version of the article will be published soon.

    In livestock production, animal-related data are often registered in specialised databases and are usually not interconnected, except for a common identifier. Analysis of combined datasets and the possible inclusion of third-party information can provide a more complete picture or reveal complex relationships.The aim of this study was to develop a risk index to predict farms with an increased likelihood for animal welfare violations, defined as non-compliance during on-farm welfare inspections. A datadriven approach was chosen for this purpose, focusing on the combination of existing Swiss government databases and registers. Individual animal-level data were aggregated at the herd level. Since data collection and availability were best for cattle and pigs, the focus was on these two livestock species. We present machine learning models that can be used as a tool to plan and optimise risk-based on-farm welfare inspections by proposing a consolidated list of priority holdings to be visited. The results of previous on-farm welfare inspections were used to calibrate a binary welfare index, which is the prediction goal. The risk index is based mostly on proxy information such as the participation in animal welfare programmes with structured housing and outdoor access, herd type and size, or animal movement data.Since transparency of the model is critical both for public acceptance of such a data-driven index and for farm control planning, the Random Forest model, for which the decision process can be illustrated, was investigated in depth. Using historical inspection data with an overall low prevalence of violations of about 4% for both species, the developed index was able to predict violations with a sensitivity of 81.2% and 79.5% for cattle and pig farms, respectively.The study has shown that combining multiple and heterogeneous data sources improves the quality of the models. Furthermore, privacy-preserving methods can be applied in a research environment to fully explore the available data, before restricting the feature space to the most relevant. This study demonstrates that data-driven monitoring of livestock populations is already possible with the existing datasets and that the models developed can be a useful tool to plan and conduct risk-based animal welfare inspections.

    Keywords: Data-driven, random forest, Animal Health, Animal Welfare, Monitoring

    Received: 14 Mar 2024; Accepted: 29 Jul 2024.

    Copyright: © 2024 Thomann, Kuntzer, Schüpbach-Regula and Rieder. This is an open-access article distributed under the terms of the Creative Commons Attribution License (CC BY). The use, distribution or reproduction in other forums is permitted, provided the original author(s) or licensor are credited and that the original publication in this journal is cited, in accordance with accepted academic practice. No use, distribution or reproduction is permitted which does not comply with these terms.

    * Correspondence:
    Beat Thomann, Veterinary Public Health Institute, Vetsuisse Faculty, University of Bern, Bern, Switzerland
    Stefan Rieder, Identitas AG, R&D, Bern, Switzerland

    Disclaimer: All claims expressed in this article are solely those of the authors and do not necessarily represent those of their affiliated organizations, or those of the publisher, the editors and the reviewers. Any product that may be evaluated in this article or claim that may be made by its manufacturer is not guaranteed or endorsed by the publisher.