Animals (Jun 2022)

The Potentialities of Machine Learning for Cow-Specific Milking: Automatically Setting Variables in Milking Machines

  • Jintao Wang,
  • Daniela Lovarelli,
  • Nicola Rota,
  • Mingxia Shen,
  • Mingzhou Lu,
  • Marcella Guarino

DOI
https://doi.org/10.3390/ani12131614
Journal volume & issue
Vol. 12, no. 13
p. 1614

Abstract

Read online

In dairy farming, milking-related operations are time-consuming and expensive, but are also directly linked to the farm’s economic profit. Therefore, reducing the duration of milking operations without harming the cows is paramount. This study aimed to test the variation in different parameters of milking operations on non-automatic milking machines to evaluate their effect on a herd and finally reduce the milking time. Two trials were set up on a dairy farm in Northern Italy to explore the influence of the pulsation ratio (60:40 vs. 65:35 pulsation ratio) and that of the detachment flow rate (600 g/min vs. 800 g/min) on milking performance, somatic cell counts, clinical mastitis, and teats score. Moreover, the innovative aspect of this study relates to the development of an optimized least-squares support vector machine (LSSVM) classification model based on the sparrow search algorithm (SSA) to predict the proper pulsation ratio and detachment flow rate for individual cows within the first two minutes of milking. The accuracy and precision of this model were 92% and 97% for shortening milking time at different pulsation ratios, and 78% and 79% for different detachment rates. The implementation of this algorithm in non-automatic milking machines could make milking operations cow-specific.

Keywords