• 文献检索
  • 文档翻译
  • 深度研究
  • 学术资讯
  • Suppr Zotero 插件Zotero 插件
  • 邀请有礼
  • 套餐&价格
  • 历史记录
应用&插件
Suppr Zotero 插件Zotero 插件浏览器插件Mac 客户端Windows 客户端微信小程序
定价
高级版会员购买积分包购买API积分包
服务
文献检索文档翻译深度研究API 文档MCP 服务
关于我们
关于 Suppr公司介绍联系我们用户协议隐私条款
关注我们

Suppr 超能文献

核心技术专利:CN118964589B侵权必究
粤ICP备2023148730 号-1Suppr @ 2026

文献检索

告别复杂PubMed语法,用中文像聊天一样搜索,搜遍4000万医学文献。AI智能推荐,让科研检索更轻松。

立即免费搜索

文件翻译

保留排版,准确专业,支持PDF/Word/PPT等文件格式,支持 12+语言互译。

免费翻译文档

深度研究

AI帮你快速写综述,25分钟生成高质量综述,智能提取关键信息,辅助科研写作。

立即免费体验

基于时间序列特征的奶牛乳腺炎预测模型研究

Research on the prediction model of mastitis in dairy cows based on time series characteristics.

作者信息

Guo Rui, Dai Yongqiang, Hu Junjie

机构信息

College of Information Science and Technology, Gansu Agricultural University, Lanzhou, China.

College of Veterinary Medicine, Gansu Agricultural University, Lanzhou, China.

出版信息

Front Vet Sci. 2025 Apr 24;12:1575525. doi: 10.3389/fvets.2025.1575525. eCollection 2025.

DOI:10.3389/fvets.2025.1575525
PMID:40343367
原文链接:https://pmc.ncbi.nlm.nih.gov/articles/PMC12058853/
Abstract

INTRODUCTION

Mastitis in dairy cows is a significant challenge faced by the global dairy industry, significantly affecting the quality and output of milk from dairy enterprises and causing them to suffer severe economic losses. With the increasing public concern over food safety and the rational use of antibiotics, how to identify cows at risk of disease early has become a key issue that needs to be urgently addressed. Especially subclinical mastitis, due to the lack of obvious external symptoms, makes detection more difficult, so early warning of it is particularly important.

METHODS

In this study, a time series prediction method, combined with machine learning techniques, was used to predict the risk of mastitis in dairy cows. The study data were obtained from the production records of 4000 dairy cows in a large farm in Hexi region of Gansu. By constructing time-series features, production indicators such as milk yield, fat rate and protein rate of each cow in two consecutive months, April and May, were utilized to predict its health status in June. To fully exploit the value of the time series features, we designed a multidimensional feature set that included raw indicator values, monthly change rates, and statistical features. After data preprocessing and sample balancing, data from 2821 cows were selected for model training. Finally, the applicability of each model was assessed by comparing and analyzing the prediction performance of six models, namely eXtreme Gradient Boosting(XGBoost), Gradient Boosting Decision Tree (GBDT), Support Vector Machine (SVM), K Nearest Neighbors (KNN), Logistic Regression, and Long Short-Term Memory Network (LSTM).

RESULTS

The XGBoost model demonstrated optimal performance, achieving an area under the ROC curve (AUC) of 0.75 with an accuracy rate of 71.36%. Feature importance analysis revealed three key temporal indicators significantly influencing prediction outcomes: May milk yield (22.29%), standard deviation of fat percentage (20.27%), and fat percentage change rate (19.87%). SHapley Additive exPlanations (SHAP) value analysis further validated the predictive value of these temporal features, providing dairy farm managers with clearly defined monitoring priorities.

DISCUSSION

The XGBoost model demonstrates strong potential as an accurate predictive tool for subclinical mastitis in dairy cows. This study presents an effective early-warning approach through time-series modeling that offers significant practical value for mastitis prevention in dairy farm management.

摘要

引言

奶牛乳腺炎是全球乳制品行业面临的一项重大挑战,严重影响乳制品企业的牛奶质量和产量,给企业造成严重经济损失。随着公众对食品安全和抗生素合理使用的关注度不断提高,如何早期识别患病风险奶牛已成为亟待解决的关键问题。尤其是隐性乳腺炎,由于缺乏明显的外部症状,使得检测更加困难,因此对其进行早期预警尤为重要。

方法

本研究采用一种时间序列预测方法,并结合机器学习技术,对奶牛乳腺炎风险进行预测。研究数据来自甘肃河西地区某大型养殖场4000头奶牛的生产记录。通过构建时间序列特征,利用4月和5月连续两个月每头奶牛的产奶量、脂肪率和蛋白率等生产指标来预测其6月份的健康状况。为充分挖掘时间序列特征的价值,我们设计了一个多维特征集,包括原始指标值、月变化率和统计特征。经过数据预处理和样本均衡后,选取2821头奶牛的数据进行模型训练。最后,通过比较分析极端梯度提升(XGBoost)、梯度提升决策树(GBDT)、支持向量机(SVM)、K近邻(KNN)、逻辑回归和长短期记忆网络(LSTM)六种模型的预测性能,评估各模型的适用性。

结果

XGBoost模型表现出最优性能,受试者工作特征曲线下面积(AUC)达到0.75,准确率为71.36%。特征重要性分析揭示了三个显著影响预测结果的关键时间指标:5月份产奶量(22.29%)、脂肪百分比标准差(20.27%)和脂肪百分比变化率(19.87%)。SHapley加性解释(SHAP)值分析进一步验证了这些时间特征的预测价值,为奶牛场管理人员提供了明确的监测重点。

讨论

XGBoost模型作为一种准确预测奶牛隐性乳腺炎的工具具有很大潜力。本研究通过时间序列建模提出了一种有效的早期预警方法,为奶牛场乳腺炎预防管理提供了重要的实用价值。

https://cdn.ncbi.nlm.nih.gov/pmc/blobs/4185/12058853/4942b94b77b1/fvets-12-1575525-g008.jpg
https://cdn.ncbi.nlm.nih.gov/pmc/blobs/4185/12058853/9d57c110eb24/fvets-12-1575525-g001.jpg
https://cdn.ncbi.nlm.nih.gov/pmc/blobs/4185/12058853/c9227e3b0c2f/fvets-12-1575525-g002.jpg
https://cdn.ncbi.nlm.nih.gov/pmc/blobs/4185/12058853/404d247a4366/fvets-12-1575525-g003.jpg
https://cdn.ncbi.nlm.nih.gov/pmc/blobs/4185/12058853/7dd8cfb1afa6/fvets-12-1575525-g004.jpg
https://cdn.ncbi.nlm.nih.gov/pmc/blobs/4185/12058853/82e96ed3ad10/fvets-12-1575525-g005.jpg
https://cdn.ncbi.nlm.nih.gov/pmc/blobs/4185/12058853/28c752090f4c/fvets-12-1575525-g006.jpg
https://cdn.ncbi.nlm.nih.gov/pmc/blobs/4185/12058853/4b20e23d58f9/fvets-12-1575525-g007.jpg
https://cdn.ncbi.nlm.nih.gov/pmc/blobs/4185/12058853/4942b94b77b1/fvets-12-1575525-g008.jpg
https://cdn.ncbi.nlm.nih.gov/pmc/blobs/4185/12058853/9d57c110eb24/fvets-12-1575525-g001.jpg
https://cdn.ncbi.nlm.nih.gov/pmc/blobs/4185/12058853/c9227e3b0c2f/fvets-12-1575525-g002.jpg
https://cdn.ncbi.nlm.nih.gov/pmc/blobs/4185/12058853/404d247a4366/fvets-12-1575525-g003.jpg
https://cdn.ncbi.nlm.nih.gov/pmc/blobs/4185/12058853/7dd8cfb1afa6/fvets-12-1575525-g004.jpg
https://cdn.ncbi.nlm.nih.gov/pmc/blobs/4185/12058853/82e96ed3ad10/fvets-12-1575525-g005.jpg
https://cdn.ncbi.nlm.nih.gov/pmc/blobs/4185/12058853/28c752090f4c/fvets-12-1575525-g006.jpg
https://cdn.ncbi.nlm.nih.gov/pmc/blobs/4185/12058853/4b20e23d58f9/fvets-12-1575525-g007.jpg
https://cdn.ncbi.nlm.nih.gov/pmc/blobs/4185/12058853/4942b94b77b1/fvets-12-1575525-g008.jpg

相似文献

1
Research on the prediction model of mastitis in dairy cows based on time series characteristics.基于时间序列特征的奶牛乳腺炎预测模型研究
Front Vet Sci. 2025 Apr 24;12:1575525. doi: 10.3389/fvets.2025.1575525. eCollection 2025.
2
Performance comparison of machine learning models used for predicting subclinical mastitis in dairy cows: Bagging, boosting, stacking, and super-learner ensembles versus single machine learning models.用于预测奶牛亚临床乳腺炎的机器学习模型的性能比较:装袋法、提升法、堆叠法和超级学习器集成与单机学习模型的比较
J Dairy Sci. 2024 Jun;107(6):3959-3972. doi: 10.3168/jds.2023-24243. Epub 2024 Feb 2.
3
Risk prediction model of clinical mastitis in lactating dairy cows based on machine learning algorithms.基于机器学习算法的泌乳奶牛临床乳腺炎风险预测模型
Prev Vet Med. 2023 Dec;221:106059. doi: 10.1016/j.prevetmed.2023.106059. Epub 2023 Oct 28.
4
Early detection of subclinical mastitis in lactating dairy cows using cow-level features.利用奶牛个体特征对泌乳奶牛亚临床乳腺炎进行早期检测。
J Dairy Sci. 2023 Jul;106(7):4978-4990. doi: 10.3168/jds.2022-22803. Epub 2023 Jun 1.
5
Evaluating the performance of herd-specific long short-term memory models to identify automated health alerts associated with a ketosis diagnosis in early-lactation cows.评估特定牛群的长短期记忆模型的性能,以识别与早期泌乳奶牛酮病诊断相关的自动健康警报。
J Dairy Sci. 2024 Dec;107(12):11489-11501. doi: 10.3168/jds.2023-24513. Epub 2024 Sep 7.
6
The use of machine learning to predict somatic cell count status in dairy cows post-calving.利用机器学习预测奶牛产后体细胞计数状态。
Front Vet Sci. 2023 Dec 8;10:1297750. doi: 10.3389/fvets.2023.1297750. eCollection 2023.
7
Investigation of dairy cow performance in different udder health groups defined based on a combination of somatic cell count and differential somatic cell count.基于体细胞计数和差异体细胞计数组合定义的不同乳房健康组奶牛生产性能的研究。
Prev Vet Med. 2020 Oct;183:105123. doi: 10.1016/j.prevetmed.2020.105123. Epub 2020 Aug 27.
8
Prediction of metabolic status of dairy cows in early lactation with on-farm cow data and machine learning algorithms.利用农场奶牛数据和机器学习算法预测奶牛产奶早期的代谢状况。
J Dairy Sci. 2019 Nov;102(11):10186-10201. doi: 10.3168/jds.2018-15791. Epub 2019 Aug 30.
9
The effect of dry cow therapy using systemic tylosin in combination with common intramammary medications on mastitis rate, cull rate, somatic cell count, and milk production in dairy cows affected with subclinical mastitis.使用全身性泰乐菌素联合常用乳房内用药进行干奶期治疗对患有亚临床型乳腺炎的奶牛的乳腺炎发病率、淘汰率、体细胞计数和产奶量的影响。
Vet World. 2018 Sep;11(9):1266-1271. doi: 10.14202/vetworld.2018.1266-1271. Epub 2018 Sep 15.
10
Sensitivity and Specificity for the Detection of Clinical Mastitis by Automatic Milking Systems in Bavarian Dairy Herds.巴伐利亚奶牛场中自动挤奶系统检测临床型乳腺炎的敏感性和特异性
Animals (Basel). 2022 Aug 19;12(16):2131. doi: 10.3390/ani12162131.

本文引用的文献

1
Amikacin-loaded selenium nanoparticles improved antibacterial and antibiofilm activity of amikacin against bovine mastitis-causing .负载阿米卡星的硒纳米颗粒提高了阿米卡星对引起牛乳腺炎的细菌的抗菌和抗生物膜活性。
Heliyon. 2024 Dec 11;11(1):e41103. doi: 10.1016/j.heliyon.2024.e41103. eCollection 2025 Jan 15.
2
A comprehensive review on genomic insights and advanced technologies for mastitis prevention in dairy animals.关于奶牛乳腺炎预防的基因组学见解和先进技术的综合综述。
Microb Pathog. 2025 Feb;199:107233. doi: 10.1016/j.micpath.2024.107233. Epub 2024 Dec 16.
3
Frequency-specific dual-attention based adversarial network for blood oxygen level-dependent time series prediction.
基于频域双注意力对抗网络的血氧水平相关时间序列预测。
Hum Brain Mapp. 2024 Oct;45(14):e70032. doi: 10.1002/hbm.70032.
4
Utility of an in-line somatic cell count sensor for selecting cows for dry-cow therapy.在线体细胞计数传感器在选择干奶牛进行干奶期治疗中的应用。
J Dairy Sci. 2024 Dec;107(12):11342-11352. doi: 10.3168/jds.2024-24898. Epub 2024 Jul 26.
5
Dairy Cow Mastitis Detection by Thermal Infrared Images Based on CLE-UNet.基于CLE-UNet的热红外图像奶牛乳腺炎检测
Animals (Basel). 2023 Jul 5;13(13):2211. doi: 10.3390/ani13132211.
6
Exploiting machine learning methods with monthly routine milk recording data and climatic information to predict subclinical mastitis in Italian Mediterranean buffaloes.利用机器学习方法结合月度常规牛奶记录数据和气候信息来预测意大利地中海水牛的亚临床乳腺炎。
J Dairy Sci. 2023 Mar;106(3):1942-1952. doi: 10.3168/jds.2022-22292. Epub 2022 Dec 29.
7
Association of pre-treatment somatic cell counts with bacteriological cure following diagnosis of intramammary infection.治疗前体细胞计数与诊断为乳房内感染后的细菌学治愈率的关系。
Res Vet Sci. 2022 Dec 20;152:537-545. doi: 10.1016/j.rvsc.2022.09.015. Epub 2022 Sep 22.
8
The Early Prediction of Common Disorders in Dairy Cows Monitored by Automatic Systems with Machine Learning Algorithms.利用机器学习算法通过自动系统监测奶牛常见疾病的早期预测
Animals (Basel). 2022 May 12;12(10):1251. doi: 10.3390/ani12101251.
9
Economics of reducing antibiotic usage for pathogen-specific clinical mastitis through genomic selection and disease management.通过基因组选择和疾病管理降低特定病原体临床乳腺炎抗生素使用的经济学。
Prev Vet Med. 2022 Jul;204:105642. doi: 10.1016/j.prevetmed.2022.105642. Epub 2022 Apr 6.
10
Bayesian estimation of diagnostic accuracy of somatic cell counts history and on-farm milk culture using Petrifilm® to identify quarters or cows that should be treated with antimicrobials in selective treatment protocols at dry off.干奶期采用 Petrifilm® 对体细胞计数历史和牧场奶培养物进行贝叶斯诊断准确性估计,以确定应根据选择性治疗方案用抗生素治疗的牛或牛的乳区。
Prev Vet Med. 2021 Oct;195:105452. doi: 10.1016/j.prevetmed.2021.105452. Epub 2021 Jul 30.