Farm-level grouped multimodel analysis of dairy herd improvement variables associated with elevated somatic cell count in Holstein cows using interpretable machine learning.
Byungho Chae, Nag-Jin Choi
Department of AI in Agriculture, Jeonbuk National University, Jeonju, 54896, Republic of Korea. · Department of Animal Science, Jeonbuk National University, Jeonju, 54896, Republic of Korea. Electronic address: nagjin@jbnu.ac.kr.
Key points
From the paper's conclusion- We investigated which routine dairy herd improvement (DHI) variables are most consistently associated with elevated SCC, using 72,547 test-day records from 3,562 Holstein cows across 37 Korean dairy farms (2021-2025), where lactose was not available in DHI records.
Abstract
Subclinical mastitis, identified through elevated somatic cell count (SCC), remains the most prevalent and costly health issue in dairy cattle, yet milk lactose, biologically linked to udder health and routinely measurable by Fourier-transform infrared (FTIR) analyzers, is rarely utilized in routine herd management. We investigated which routine dairy herd improvement (DHI) variables are most consistently associated with elevated SCC, using 72,547 test-day records from 3,562 Holstein cows across 37 Korean dairy farms (2021-2025), where lactose was not available in DHI records. Four interpretable models (logistic regression, generalized additive model, extreme gradient boosting, and random forest with SHapley Additive exPlanations [SHAP]) were compared under farm-level grouped cross-validation. The solids-not-fat minus protein residual (SNF% - protein%), an unvalidated lactose proxy, was the top-ranked contributor to elevated SCC, and the top-3 ranking (residual, parity, milk yield) was consistent across random forest SHAP values, logistic regression standardized coefficients, and extreme gradient boosting SHAP values, as well as across 4 SCC thresholds, 5 lactation stages, and 5 years of data. Farm-level grouped validation reduced discrimination relative to random cross-validation by an amount larger than the entire model-class difference in performance, indicating that validation design matters more than model choice. External corroboration on an independent European open data set with directly measured FTIR lactose supported the inverse lactose-SCC association and ranked directly measured lactose as the top SHAP contributor; given the small single-farm Belgian cohort, this external evidence is supportive rather than confirmatory. Because milk composition and SCC were recorded on the same test day, the results describe concurrent associations rather than prospective prediction; the positive predictive value of 0.530 also precludes stand-alone individual-cow screening.
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
- Invited review: Herd-level udder health indices derived from repeated individual somatic cell count measurements.Journal of dairy science · 2026
- Predicting probability of cure in bovine clinical mastitis.Preventive veterinary medicine · 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
- Development of a Classification Model for Intramammary Infection at Dry-Off Using Indirect Cow-Level Indicators.Animals : an open access journal from MDPI · 2026
- Metabolic Profiling of Mammary Vein Blood and Coccygeal-to-Mammary Vein Ratios for Assessing Udder Health in Dairy CowsDairy · 2026