{"title":"Evaluating machine learning algorithms based on thermal imaging and milk-based parameters to identify subclinical mastitis in dairy cows.","authors":"Sushil Paudyal, Rajesh Neupane, Bhuwan Shrestha, Hsin-I Chiang, Ashrant Aryal","doi":"10.1080/01652176.2026.2685619","DOIUrl":null,"url":null,"abstract":"<p><p>The objective was to evaluate the potential of machine learning algorithms utilizing thermal imaging and/or milk-based parameters for the identification of subclinical mastitis(SCM) in dairy cows. Holstein dairy cows (<i>n</i> = 194) were enrolled, and milk samples were collected from each quarter separately (<i>n</i> = 776 quarter-level samples) and analyzed for milk-based parameters. Four images per cow, representing all four quarters, were captured using a handheld infrared camera. Skin temperatures were extracted using Fluke Connect software, yielding 776 images for analysis. SCM was defined at the quarter level as SCC > 200,000 cells/mL, identifying 139 infected and 637 healthy quarters. The data were analyzed to test Random Forest Classifier(RFC), Logistic Regression Classifier, AdaBoost Classifier(ABC), and Naïve Bayes Classifier algorithms. The RFC models using milk features and temperature features achieved accuracy and precision scores of 0.88 and 0.88, respectively, yielding 0.90 AUC values, with high feature importance for milk lactose and SNF. Using only thermal imaging features, the ABC model yielded accuracy and precision of 0.82 and 0.67, respectively, with 0.56 AUC. We conclude that SCM prediction using machine learning algorithms is most promising when combined with thermal images and milk-based parameters. Future studies with larger datasets and refined methods for thermal image capture and analysis are warranted to validate these findings.</p>","PeriodicalId":51207,"journal":{"name":"Veterinary Quarterly","volume":"46 1","pages":"2685619"},"PeriodicalIF":3.9000,"publicationDate":"2026-12-31","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"https://www.ncbi.nlm.nih.gov/pmc/articles/PMC13248482/pdf/","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"Veterinary Quarterly","FirstCategoryId":"97","ListUrlMain":"https://doi.org/10.1080/01652176.2026.2685619","RegionNum":2,"RegionCategory":"农林科学","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"2026/6/8 0:00:00","PubModel":"Epub","JCR":"Q1","JCRName":"VETERINARY SCIENCES","Score":null,"Total":0}
引用次数: 0
Abstract
The objective was to evaluate the potential of machine learning algorithms utilizing thermal imaging and/or milk-based parameters for the identification of subclinical mastitis(SCM) in dairy cows. Holstein dairy cows (n = 194) were enrolled, and milk samples were collected from each quarter separately (n = 776 quarter-level samples) and analyzed for milk-based parameters. Four images per cow, representing all four quarters, were captured using a handheld infrared camera. Skin temperatures were extracted using Fluke Connect software, yielding 776 images for analysis. SCM was defined at the quarter level as SCC > 200,000 cells/mL, identifying 139 infected and 637 healthy quarters. The data were analyzed to test Random Forest Classifier(RFC), Logistic Regression Classifier, AdaBoost Classifier(ABC), and Naïve Bayes Classifier algorithms. The RFC models using milk features and temperature features achieved accuracy and precision scores of 0.88 and 0.88, respectively, yielding 0.90 AUC values, with high feature importance for milk lactose and SNF. Using only thermal imaging features, the ABC model yielded accuracy and precision of 0.82 and 0.67, respectively, with 0.56 AUC. We conclude that SCM prediction using machine learning algorithms is most promising when combined with thermal images and milk-based parameters. Future studies with larger datasets and refined methods for thermal image capture and analysis are warranted to validate these findings.
期刊介绍:
Veterinary Quarterly is an international open access journal which publishes high quality review articles and original research in the field of veterinary science and animal diseases. The journal publishes research on a range of different animal species and topics including: - Economically important species such as domesticated and non-domesticated farm animals, including avian and poultry diseases; - Companion animals (dogs, cats, horses, pocket pets and exotics); - Wildlife species; - Infectious diseases; - Diagnosis; - Treatment including pharmacology and vaccination