Answers are grounded in this paper and cite their sources.
Background Early detection of subclinical mastitis in dairy cattle is essential to aid pattern diagnosis and the implementation of control strategies to reduce new infection rates. This observational cross‐sectional study aimed to evaluate the ability of machine learning techniques to detect subclinical mastitis in dairy cattle using production and health indicators. Methods Six machine learning algorithms were evaluated: support vector machine, logistic regression, decision tree, random forest, XGBoost and multilayer perceptron neural network. Three response classifications were tested. Data were partitioned by cow, with 80% of cows used for development and hyperparameter tuning through 30 repeated cow‐grouped holdouts and 20% of cows used for independent testing. SHAP (SHapley Additive exPlanations) analysis identified influential variables in development data. Results The random forest model, using positive microbiological culture and/or somatic cell count ≥200 × 10 3 cells/mL to define affected quarters, performed the best, achieving a sensitivity of 0.6322, balanced accuracy of 0.6177, F1‐score of 0.5729 and ROC‐AUC of 0.6774 in the independent test dataset. Electrical conductivity, milk yield and mastitis detection index showed the greatest mean absolute SHAP contributions. Limitations Most models showed modest sensitivity, and the single‐herd design limited external generalisability. Conclusion Routinely recorded automatic milking system variables showed potential to support mammary‐quarter‐level classification of subclinical mastitis.
No takes yet. Share an insight, caveat, or question.
Fraga et al. (2026) studied this question.
Synapse has enriched 10 related papers. Consider them for comparative context: