Hostname: page-component-74656f9884-c52kr Total loading time: 0 Render date: 2026-11-07T00:18:23.678Z Has data issue: false hasContentIssue false

Evaluation of sensor measurements for early identification of clinical mastitis in an automatic milking system

Published online by Cambridge University Press:  18 September 2025

Ivens Navarro Haponiuk Prus
Affiliation:
Graduate Program in Animal Science, School of Medicine and Life Sciences, PontifÍcia Universidade CatÓlica do Paraná, Curitiba, PR, Brazil
Saulo Henrique Weber
Affiliation:
Graduate Program in Animal Science, School of Medicine and Life Sciences, PontifÍcia Universidade CatÓlica do Paraná, Curitiba, PR, Brazil
Andre Ostrensky
Affiliation:
Department of Veterinary Medicine, School of Medicine and Life Sciences, PontifiÍcia Universidade CatÓlica do Paraná, Curitiba, PR, Brazil
Ruan R. Daros
Affiliation:
Graduate Program in Animal Science, School of Medicine and Life Sciences, PontifÍcia Universidade CatÓlica do Paraná, Curitiba, PR, Brazil EthoLab – Applied Ethology and Animal Welfare Lab, Pontifícia Universidade Católica do Paraná, Curitiba, Brazil
R. Daniel Ollhoff
Affiliation:
Graduate Program in Animal Science, School of Medicine and Life Sciences, PontifÍcia Universidade CatÓlica do Paraná, Curitiba, PR, Brazil
Cristina Santos Sotomaior*
Affiliation:
Graduate Program in Animal Science, School of Medicine and Life Sciences, PontifÍcia Universidade CatÓlica do Paraná, Curitiba, PR, Brazil
*
Corresponding author: Cristina Santos Sotomaior; Email: cristina.sotomaior@pucpr.br
Rights & Permissions [Opens in a new window]

Abstract

This study aimed to identify the best automatic milking system (AMS) parameters and monitoring data for early detection of clinical mastitis in dairy cows and to determine the earliest possible detection within 30 days with the highest predictive accuracy. From August 2021 to February 2022, 55 Holstein cows were monitored for mastitis using physical examination, positive California mastitis test (CMT) and the AMS manufacturer’s software (Delpro®) criteria: milk electrical conductivity ≥ 5.37 mS/cm, milk yield ≤ 80%, somatic cell count (SCC) > 200,000 cells/mL and Mastitis Detection Index (MDi) ≥ 2.0. For every cow suspected of mastitis, two other lactating cows were randomly chosen for evaluation to provide a comparison with healthy herd companions. In total, 129 inspections were evaluated: 39 with clinical mastitis and 90 without. Data on milking, milk composition and production from the AMS, and behavioural data from monitoring collars were summarized for the 30 days leading up to the mastitis diagnosis. Thirty measurement parameters were analysed using generalized linear models. Sensitivity, specificity, accuracy, positive predictive value and negative predictive value were calculated. In the final model, significant parameters included: milk production per day (kg), SCC (cells/mL), average flow mean (kg/min), average conductivity (mS/cm), average flow peak (kg/min), average production per milking (kg), milking duration (s), rumination (min/day), panting (min/day) and feeding activity (min/day). From −30 to −10 days, accuracy, sensitivity and specificity varied without a defined pattern. However, from day −9, there was stabilization of the evaluated parameters. Results showed an average accuracy of 79.2%, a sensitivity of 82.5%, a specificity of 78.7%, a positive predictive value of 41.5% and a negative predictive value of 92.2% in predicting mastitis occurrence. In conclusion, using AMS parameters and behavioural data from monitoring collars, it was possible to predict clinical mastitis in dairy cows in an AMS with a 9-day advance notice.

Information

Type
Research Article
Copyright
© The Author(s), 2025. Published by Cambridge University Press on behalf of Hannah Dairy Research Foundation.
Figure 0

Table 1. Percentage and number (in parentheses) of cows with mastitis (M) and without mastitis (NM), according to parity, pregnancy group and DIM

Figure 1

Figure 1. Percentage of accuracy, sensitivity and specificity of the final model in the 30 days prior to the diagnosis of clinical mastitis, considering the variables: rumination (min/day), panting (min/day), feeding activity (min/day), daily milk production (kg/day), SCS (SCC Log2), average of mean flows (kg/min), average conductivity (mS/cm), average peak flow (kg/min), average production per milking (kg) and milking duration (s).

Figure 2

Figure 2. Percentage of positive predictive value (PPV) and negative predictive value (NPV) of the final model in the 30 days leading up to the diagnosis of clinical mastitis, considering the variables: rumination (min/day), panting (min/day), feeding activity (min/day), daily milk production (kg/day), SCS (SCC Log2), average of mean flows (kg/min), average conductivity (mS/cm), average peak flow (kg/min), average production per milking (kg) and milking duration (s).

Figure 3

Figure 3. Percentage of accuracy, positive predictive value (PPV) and negative predictive value (NPV), sensitivity and specificity of the final model, comparing MDi values, on day 0.

Supplementary material: File

Haponiuk Prus et al. supplementary material

Haponiuk Prus et al. supplementary material
Download Haponiuk Prus et al. supplementary material(File)
File 69.2 KB