Benha University

Dina Nasser Abdallah Mohammed Abdallah

Lecturer

Faculty of Veterinary Medicine Animal wealth development

Machine learning algorithms for clinical mastitis prediction in a dairy herd use automated milking system data

Journal of Advanced Veterinary Research • 2024
Back
Publication Information
Authors Dina N. Faris, Ahmed M. Gad, Mahmoud S. El-Tarabany, Sherif I. Ramadan, Ghada G. Afifi, Eman A. Manaa
Keywords Automatic milking system, Clinical Mastitis, Decision tree, Machine learning.
Journal Journal of Advanced Veterinary Research
Publisher Not Available
Volume 14
Issue 6
Pages 975-981
publication.type International
Paper Link Open Link
Supplementary Materials Not Available
Abstract
Bovine clinical Mastitis (CM) is the most important disease in the dairy industry affecting both animal welfare and farm profitability. Therefore, early and accurate detection of the disease is a valuable timely intervention. In this article, six different machine learning classification algorithms were compared to obtain a prediction model for early detection of the disease. These algorithms are Support Vector Machine, Logistic Regression, Gaussian Naïve Bayes, K-Nearest Neighbor, Classification and Regression Decision Tree, and Random Forest. The algorithms are applied to the milk production of Holstein Friesian cows milked by an automated milking system using the dairy records and disease events. This includes 1493 cows with clinical Mastitis and 2387 healthy cows. The six models were evaluated based on five performance metrics criteria: accuracy, precision, recall, F1-score, and area under the curve (AUC). The accuracy rate ranged from 62% to 74%. The AUC is used to choose the best model. The Decision Tree algorithm and Gaussian Naïve Bayes scored the highest AUC of 71%. However, the Decision Tree algorithm is more stable with respect to other metrics (73% for accuracy and 64% for Precision, Recall, and F1-score). Hence, it can be considered the best predictive CM model with moderate accuracy. Out of the 15 input features, days in milk, age of the animal, lactation order, 305 days mature herd equivalent, and average daily milk yield were the only important features shared in establishing the Decision Tree model.
جميع الحقوق محفوظة © 2026 جامعة بنها - دليل أعضاء هيئة التدريس