📞 +91-7667918914 | ✉️ iarjset@gmail.com
International Advanced Research Journal in Science, Engineering and Technology
International Advanced Research Journal in Science, Engineering and Technology A Monthly Peer-Reviewed Multidisciplinary Journal
ISSN Online 2393-8021ISSN Print 2394-1588Since 2014
IARJSET aligns to the suggestive parameters by the latest University Grants Commission (UGC) for peer-reviewed journals, committed to promoting research excellence, ethical publishing practices, and a global scholarly impact.
← Back to VOLUME 13, ISSUE 9, SEPTEMBER 2026

Machine Learning-Based Predictive Modeling for Early Detection of Subclinical Mastitis in Dairy Herds

Chethan M.S, Anand Inamdar, Chinmay P Gowda, Samarth Biradar, Prof. Dinesh Babu K B

👁 1 view📥 0 downloads
Share: 𝕏 f in
Abstract: Subclinical mastitis (SCM) is a symptomless yet economically damaging udder infection that silently reduces milk yield and quality in dairy cattle, making early identification difficult through conventional visual inspection. This paper presents a machine-learning based predictive framework for early SCM detection using three routinely measurable and low-cost milk parameters: Somatic Cell Count (SCC), pH, and Electrical Conductivity (EC). A dataset of 5,000 milk samples (14.6% mastitis-positive) was enhanced through feature engineering, including logarithmic transformation and SCC-to-EC ratio, and rolling statistical features that capture infection trends over time. Logistic Regression and LightGBM classifiers were trained and compared, and the tuning of LightGBM using Optuna-based automated hyperparameter tuning achieved a test accuracy of approximately 98.8%, with precision of 0.93, recall of 0.96, and an F1-score of 0.94, outperforming Logistic baseline. The SHAP (Shapley Additive Explanations) analysis confirmed SCC and EC as the dominant predictive features, consistent with established veterinary knowledge, and validated the biological relevance of the engineered features. The resulting framework provides an accurate, interpretable, and cost- effective decision-support tool suitable for real-world dairy farm deployment.

Keywords: subclinical mastitis, machine learning, LightGBM, somatic cell count, electrical conductivity, explainable AI, SHAP, precision dairy farming

How to Cite:

[1] Chethan M.S, Anand Inamdar, Chinmay P Gowda, Samarth Biradar, Prof. Dinesh Babu K B, “Machine Learning-Based Predictive Modeling for Early Detection of Subclinical Mastitis in Dairy Herds,” International Advanced Research Journal in Science, Engineering and Technology (IARJSET), DOI: 10.17148/IARJSET.2026.13906

Creative Commons License This work is licensed under a Creative Commons Attribution 4.0 International License.