Use of infrared thermography and machine learning to predict the infectious etiology of subclinical bovine mastitis in a robotic milking system.
Fernando David Caracuschanski, Raul Costa Mascarenhas Santana, Larissa Cristina Brassolatti, Maria Laura da Silva, Christine Elisabeth Grudzinski, Marcos Veiga Dos Santos, Teresa Cristina Alves, Alexandre Rossetto Garcia,
Graduate Program in Veterinary Sciences, Faculty of Agrarian and Veterinary Sciences, São Paulo State University "Júlio de Mesquita Filho" (UNESP), Jaboticabal, São Paulo, Brazil. · Graduate Program in Animal Reproduction, Faculty of Veterinary Medicine and Animal Science, University of São Paulo (USP), Pirassununga, São Paulo, Brazil.
Key points
From the paper's conclusion- This study evaluated whether thermal information obtained by IRT, combined with animal, production, and environmental variables, could be used in supervised machine learning models to predict subclinical mastitis (SCM) and its most probable infectious etiology in pasture-raised cows managed under a voluntary milking system.
Abstract
Mastitis is a major challenge for dairy production, and infrared thermography (IRT) is a promising non-invasive tool for monitoring udder health. This study evaluated whether thermal information obtained by IRT, combined with animal, production, and environmental variables, could be used in supervised machine learning models to predict subclinical mastitis (SCM) and its most probable infectious etiology in pasture-raised cows managed under a voluntary milking system. Eighty-nine lactating cows from a single herd underwent thermographic evaluation over six months, and milk samples from 530 mammary quarters were analyzed, of which 61 (11.5%) were positive for SCM. Mean (TMED), minimum (TCOLD), and maximum (THOT) udder surface temperatures, somatic cell count (SCC), milk composition, animal characteristics, and environmental data were used to develop a multilevel binary logistic model and a multinomial logistic model. The binary model, including SCC and TCOLD, showed an apparent area under the receiver operating characteristic (ROC) curve (AUC) of 0.96. However, using a ten-fold internal cross-validation, AUC decreased to 0.81 and sensitivity decreased from 0.90 to 0.33. The thermographic variables improved model fit modestly but significantly, whereas SCC accounted for most of the predictive information. In the multinomial model, apparent AUC values ranged from 0.78 to 0.99 across microorganism categories, but sensitivity was low for coagulase-negative staphylococci (0.03) and Staphylococcus aureus (0.30) and decreased further in leave-one-animal-out internal cross-validation. IRT-derived variables may be a complementary component of multivariable predictive models, but the validation of the present models in independent herds and under different management conditions is required previous its use for SCM diagnosis.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- Evaluation of machine learning models for predicting mastitis in dairy cows using dielectric properties and other milk quality parameters.Research in veterinary science · 2026
- Development of a Classification Model for Intramammary Infection at Dry-Off Using Indirect Cow-Level Indicators.Animals : an open access journal from MDPI · 2026
- Evaluating the relationship between infrared thermography and somatic cell count in healthy lactating ewes.Research in veterinary science · 2026
- Supervised machine learning approaches for early detection of metabolic and udder health disorders in dairy cows using sensor-derived dataFrontiers in Veterinary Science · 2025
- Deep Learning and Explainable Artificial Intelligence for Infrared-Thermography-Based CMT-Status Classification in Dairy Cows: A Comparative Evaluation in Egyptian Farms.Veterinary sciences · 2026
- Detecting subclinical mastitis in dairy cattle by using machine learning techniques to analyse automated milking system data.The Veterinary record · 2026