Peer-reviewed veterinary case report
Machine learning-based clinical mastitis detection in dairy cows using milk electrical conductivity and somatic cell count.
- Journal:
- Frontiers in veterinary science
- Year:
- 2025
- Authors:
- Pan, Lihong et al.
- Affiliation:
- Aerospace Information Research Institute · China
Abstract
Bovine mastitis, a prevalent disease causing substantial economic losses in dairy production, requires accurate and robust detection methods. Traditional threshold-based approaches using electrical conductivity (EC) are limited by low specificity and farm-specific variability. While somatic cell count (SCC) offers a more reliable biomarker for intramammary inflammation, current SCC sensors often yield imprecise data and are costly to implement, resulting in a lack of accurate, quantitative, and widely applicable models for mastitis monitoring. This study presents an machine learning-based diagnostic framework integrating logistic regression (LR), support vector machines (SVM), and feedforward neural networks (FNN) to evaluate mastitis detection performance with EC, SCC, and their combined inputs. Using data from 93 cows across four dairy farms, we demonstrate that SCC-based models consistently outperform EC-based approaches. The SVM model achieved 95.6% accuracy and 100% sensitivity when utilizing SCC as input feature. The FNN model attained the highest AUC (0.981), highlighting neural networks' capability to capture complex patterns. Although the addition of EC to SCC did not improve performance across all metrics, it showed potential to enhance robustness in contexts where accurate SCC data are limited. These findings underscore the diagnostic superiority of SCC and the potential of tailored machine learning solutions in modern dairy production settings. Future work should focus on expanding datasets across multiple regions and integrating high-precision SCC sensors for real-time deployment in automated detection systems.
Find similar cases for your pet
PetCaseFinder finds other peer-reviewed reports of pets with the same symptoms, plus a plain-English summary of what was tried across them.
Search related cases →Original publication: https://pubmed.ncbi.nlm.nih.gov/41321576/