Machine Learning and SHapley Additive exPlanation-Based Interpretation for Predicting Mastitis in Dairy Cows
Animals · 09.01.2026 · 16 (2) · 204
DOI: 10.3390/ani16020204 ↗Kurz gefasst
Fachartikel in der Zeitschrift Animals, online erschienen am 09.01.2026. Verfasst von Xiaojing Zhou und 6 weiteren Autor:innen. Beteiligte Einrichtung: Department of Information and Computing Science, Heilongjiang Bayi Agricultural University, No. 5 Xinyang Road, Daqing 163319, China. Die Arbeit wurde bisher 7-mal zitiert (Crossref) und nennt 29 Literaturangaben. Der Volltext ist frei zugänglich (Open Access, CC BY 4.0). Gefördert von: Open Recruitment for Key Scientific and Technological Projects" program of Heilongjiang Province, Ecological and environmental protection scientific research project of Heilongjiang Province, “Open Recruitment for Key Scientific and Technological Projects” program of Heilongjiang Province.
Abstract (Originalsprache)
SHapley Additive exPlanations (SHAP) analysis has been applied in disease diagnosis and treatment effect evaluation. However, its application in the prediction and diagnosis of dairy cow diseases remains limited. We investigated whether the variance and autocorrelation of deviations in daily activity, rumination time, and milk electrical conductivity, along with daily milk yield, could be used to predict clinical mastitis in dairy cows using popular machine learning (ML) algorithms and identifying key predictive features using SHAP analysis. Quantile regression (QR) with second- or third-order polynomial models with the median or upper quantiles was used to process raw data from mastitic and healthy cows. Nine variables from the 14-day period preceding mastitis onset were identified as significantly associated with mastitis through logistic regression. These variables were used to train and validate prediction models using eleven classical ML algorithms. Among them, the partial least squares model demonstrated superior performance, achieving an AUC of 0.789, sensitivity of 0.500, specificity of 0.947, accuracy of 0.793, precision of 0.833, and F1-score of 0.625. SHAP analysis results revealed positive contributions of three features to mastitis prediction, whereas two features had negative contributions. These findings provide a theoretical basis for developing clinical decision-support tools in commercial farming settings.
Schlagwörter
Stichwörter der Autor:innen
Autor:innen und Institutionen
- Department of Information and Computing Science, Heilongjiang Bayi Agricultural University, No. 5 Xinyang Road, Daqing 163319, China.
- The Key Laboratory of Green and Low-Carbon Agriculture in the Northeast Plain, Ministry of Agriculture and Rural Affairs, Heilongjiang Bayi Agricultural University, No. 5 Xinyang Road, Daqing 163319, China.
- National Key Laboratory of Veterinary Public Health and Safety, College of Veterinary Medicine, China Agricultural University, 2 Yuanmingyuan West Road, Beijing 100193, China.
- Animal Husbandry and Veterinary Branch of Heilongjiang Academy of Agricultural Science, Qiqihar 161005, China.
ORCID-Profile: Xiaojing Zhou, Yongli Qu, Chuang Xu, Hao Wang, Di Lang, Bin Jia, Nan Jiang
Förderung
- Open Recruitment for Key Scientific and Technological Projects" program of Heilongjiang Province
- Ecological and environmental protection scientific research project of Heilongjiang Province
- “Open Recruitment for Key Scientific and Technological Projects” program of Heilongjiang Province
Zitieren
APA
Zhou, X., Qu, Y., Xu, C., Wang, H., Lang, D., Jia, B., & Jiang, N. (2026). Machine Learning and SHapley Additive exPlanation-Based Interpretation for Predicting Mastitis in Dairy Cows. Animals, 16(2), 204. https://doi.org/10.3390/ani16020204
Vancouver
Zhou X, Qu Y, Xu C, Wang H, Lang D, Jia B, et al. Machine Learning and SHapley Additive exPlanation-Based Interpretation for Predicting Mastitis in Dairy Cows. Animals. 2026;16(2):204. doi:10.3390/ani16020204
BibTeX
@article{Zhou2026,
author = {Zhou, Xiaojing and Qu, Yongli and Xu, Chuang and Wang, Hao and Lang, Di and Jia, Bin and Jiang, Nan},
title = {Machine Learning and SHapley Additive exPlanation-Based Interpretation for Predicting Mastitis in Dairy Cows},
journal = {Animals},
year = {2026},
volume = {16},
number = {2},
pages = {204},
doi = {10.3390/ani16020204}
}
EUVIMED