Luo Wenkuo, Dong Qiang, Feng Yan
College of Information Engineering, Northwest A&F University, Yangling, Shaanxi, 712100, China.
College of Veterinary Medicine, Northwest A&F University, Yangling, Shaanxi, 712100, China.
Prev Vet Med. 2023 Dec;221:106059. doi: 10.1016/j.prevetmed.2023.106059. Epub 2023 Oct 28.
Mastitis is the most common disease among dairy cows and is known to have negative effects on both animal welfare and the profitability of dairy farms. Early detection of clinical mastitis cases is considered the best option for preventing cows from developing mastitis. In this study, we developed clinical mastitis prediction models that only required inputting common indicators from the automatic milking system. We utilized multidimensional data from the cow mastitis database of Afimilk (China) Agricultural Technology Co., Ltd. to predict mastitis in dairy cows. All data were screened for the period of 0-150 days of lactation. The data included parity, lactation day, period, mean and standard deviation of milk yield, of electrical conductivity, and of lying time, which were taken as input features. The classification of whether cows suffer from clinical mastitis was determined as output. We analyzed 426 cows with clinical mastitis and 2087 healthy cows by using four machine learning algorithms: Decision Tree, Random Forest, Back Propagation neural networks, and Support Vector Machines. In these four algorithms, the accuracy ranged from 94% to 98%, while the running times varied widely from seconds to minutes. The decision tree prediction model achieved an accuracy of 98% and the precision rate for healthy cows was 99%, while for mastitis cows it was 97%. Machine learning algorithms have played an important role in predicting cow mastitis, with the Decision Tree algorithm showing great performance and higher accuracy in our research.
乳腺炎是奶牛中最常见的疾病,已知会对动物福利和奶牛场的盈利能力产生负面影响。临床乳腺炎病例的早期检测被认为是预防奶牛患乳腺炎的最佳选择。在本研究中,我们开发了临床乳腺炎预测模型,该模型只需要输入自动挤奶系统的常见指标。我们利用了来自阿菲金(中国)农业科技有限公司奶牛乳腺炎数据库的多维数据来预测奶牛的乳腺炎。所有数据均筛选自泌乳0至150天的时间段。数据包括胎次、泌乳天数、时期、产奶量、电导率和躺卧时间的均值及标准差,这些被用作输入特征。奶牛是否患有临床乳腺炎的分类被确定为输出。我们使用决策树、随机森林、反向传播神经网络和支持向量机这四种机器学习算法对426头患有临床乳腺炎的奶牛和2087头健康奶牛进行了分析。在这四种算法中,准确率在94%至98%之间,而运行时间从几秒到几分钟差异很大。决策树预测模型的准确率达到了98%,健康奶牛的精确率为99%,乳腺炎奶牛的精确率为97%。机器学习算法在预测奶牛乳腺炎方面发挥了重要作用,在我们的研究中,决策树算法表现出色且准确率更高。