Predicting dry matter intake in cattle at scale using gradient boosting regression techniques and Gaussian process boosting regression with SHAP explainable AI, MLflow and its containerization

IF 2.9 2区 农林科学 Q1 AGRICULTURE, DAIRY & ANIMAL SCIENCE Journal of animal science Pub Date : 2025-02-10 DOI:10.1093/jas/skaf041
K E ArunKumar, Nathan E Blake, Matthew Walker, Tylor J Yost, Domingo Mata-Padrino, Ida Holásková, Jarred W Yates, Joseph Hatton, Matthew E Wilson
{"title":"Predicting dry matter intake in cattle at scale using gradient boosting regression techniques and Gaussian process boosting regression with SHAP explainable AI, MLflow and its containerization","authors":"K E ArunKumar, Nathan E Blake, Matthew Walker, Tylor J Yost, Domingo Mata-Padrino, Ida Holásková, Jarred W Yates, Joseph Hatton, Matthew E Wilson","doi":"10.1093/jas/skaf041","DOIUrl":null,"url":null,"abstract":"Dry matter intake (DMI) is a measure critical to managing and evaluating livestock. Methods exist for quantifying individual DMI in dry lot settings that employ expensive intake systems. No methods exist to accurately measure individual DMI of grazing cattle. Accurate prediction of DMI using machine learning (ML) promotes improved production and management efficiency. It also opens the door to empowering producers to validate and verify intakes in order to participate in incentive programs for delivering ecosystem service credits. We explored gradient boosting-based approaches to predict DMI in beef cattle using actual animal intake and climate dataset of 12,056 daily records from 178 cattle fed at West Virginia University from 2019 to 2020. The tested and developed methods include gradient boosting regression (GBR), Light boosting regression (LGB), extreme gradient boosting regression (XGB), and Gaussian process boosting (GPBoost) models and two baseline models: 1. Nutrient Requirements of Beef Cattle (NASEM 2016) Equation & 2. Mixed Linear Model Regression (MLM). The GPBoost models were developed considering the random effects associated with animal ID and date. Moreover, we developed an end-to-end MLoperations (MLOps) pipeline to streamline the ML steps using crucial components, such as MLflow and Dockerization. The best performing model was determined by comparing the common evaluation metrics such as root mean squared error (RMSE), mean squared error (MSE), mean absolute error (MAE) and mean absolute percentage error (MAPE). The RMSE values on the test data of the optimized models ranged from 1.18 kg to 1.54 kg. The focus was developing a generalized algorithm that models covariates associated with animal ID and date that would generalize well on unseen data. The GPBoost models exhibited the best bias and variance compared to the other models (MLM, GBR, LGB, XGB). The R2 of the GPBoost on the training and test datasets were 0.58 and 0.55 respectively. The GPBoost model generalized well on the test dataset and train dataset with MAE values of 0.92 kg and 0.90 kg respectively We implemented an end-to-end MLOps pipeline with MLflow and Docker, enabling experiment tracking, model registry, reproducibility and scalability (to deploy on multiple computers) and seamless deployment. This approach offers a reliable and scalable solution for accurate DMI prediction, enhancing livestock management and facilitating participation in ecosystem service credits.","PeriodicalId":14895,"journal":{"name":"Journal of animal science","volume":"8 1","pages":""},"PeriodicalIF":2.9000,"publicationDate":"2025-02-10","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"Journal of animal science","FirstCategoryId":"97","ListUrlMain":"https://doi.org/10.1093/jas/skaf041","RegionNum":2,"RegionCategory":"农林科学","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"Q1","JCRName":"AGRICULTURE, DAIRY & ANIMAL SCIENCE","Score":null,"Total":0}
引用次数: 0

Abstract

Dry matter intake (DMI) is a measure critical to managing and evaluating livestock. Methods exist for quantifying individual DMI in dry lot settings that employ expensive intake systems. No methods exist to accurately measure individual DMI of grazing cattle. Accurate prediction of DMI using machine learning (ML) promotes improved production and management efficiency. It also opens the door to empowering producers to validate and verify intakes in order to participate in incentive programs for delivering ecosystem service credits. We explored gradient boosting-based approaches to predict DMI in beef cattle using actual animal intake and climate dataset of 12,056 daily records from 178 cattle fed at West Virginia University from 2019 to 2020. The tested and developed methods include gradient boosting regression (GBR), Light boosting regression (LGB), extreme gradient boosting regression (XGB), and Gaussian process boosting (GPBoost) models and two baseline models: 1. Nutrient Requirements of Beef Cattle (NASEM 2016) Equation & 2. Mixed Linear Model Regression (MLM). The GPBoost models were developed considering the random effects associated with animal ID and date. Moreover, we developed an end-to-end MLoperations (MLOps) pipeline to streamline the ML steps using crucial components, such as MLflow and Dockerization. The best performing model was determined by comparing the common evaluation metrics such as root mean squared error (RMSE), mean squared error (MSE), mean absolute error (MAE) and mean absolute percentage error (MAPE). The RMSE values on the test data of the optimized models ranged from 1.18 kg to 1.54 kg. The focus was developing a generalized algorithm that models covariates associated with animal ID and date that would generalize well on unseen data. The GPBoost models exhibited the best bias and variance compared to the other models (MLM, GBR, LGB, XGB). The R2 of the GPBoost on the training and test datasets were 0.58 and 0.55 respectively. The GPBoost model generalized well on the test dataset and train dataset with MAE values of 0.92 kg and 0.90 kg respectively We implemented an end-to-end MLOps pipeline with MLflow and Docker, enabling experiment tracking, model registry, reproducibility and scalability (to deploy on multiple computers) and seamless deployment. This approach offers a reliable and scalable solution for accurate DMI prediction, enhancing livestock management and facilitating participation in ecosystem service credits.
查看原文
分享 分享
微信好友 朋友圈 QQ好友 复制链接
本刊更多论文
使用梯度增强回归技术和高斯过程增强回归预测牛的干物质采食量与SHAP可解释的AI, MLflow及其容器化
干物质采食量(DMI)是家畜管理和评价的重要指标。在采用昂贵进气系统的干地环境中,存在量化个体DMI的方法。目前还没有准确测量放牧牛个体DMI的方法。使用机器学习(ML)准确预测DMI可以提高生产和管理效率。它还为授权生产者验证和核实摄入量打开了大门,以便参与提供生态系统服务信用的激励计划。我们利用2019年至2020年在西弗吉尼亚大学饲养的178头牛的实际动物摄入量和12056条每日记录的气候数据集,探索了基于梯度增强的方法来预测肉牛的DMI。测试和开发的方法包括梯度增强回归(GBR)、轻度增强回归(LGB)、极端梯度增强回归(XGB)和高斯过程增强(GPBoost)模型,以及两个基线模型:1。肉牛营养需要量(NASEM 2016)公式2. 混合线性回归(MLM)。GPBoost模型的建立考虑了与动物ID和日期相关的随机效应。此外,我们开发了一个端到端的MLOps (MLOps)管道,使用关键组件(如MLflow和Dockerization)来简化ML步骤。通过比较常用的评价指标如均方根误差(RMSE)、均方误差(MSE)、平均绝对误差(MAE)和平均绝对百分比误差(MAPE)来确定表现最佳的模型。优化模型试验数据的RMSE值在1.18 ~ 1.54 kg之间。重点是开发一种通用算法,该算法可以对与动物ID和日期相关的协变量进行建模,从而可以很好地概括未见过的数据。与其他模型(MLM、GBR、LGB、XGB)相比,GPBoost模型表现出最好的偏差和方差。GPBoost在训练集和测试集上的R2分别为0.58和0.55。GPBoost模型在MAE分别为0.92 kg和0.90 kg的测试数据集和训练数据集上泛化良好。我们利用MLflow和Docker实现了端到端的MLOps管道,实现了实验跟踪、模型注册、可重复性和可扩展性(可部署在多台计算机上)和无缝部署。这种方法为准确预测DMI、加强牲畜管理和促进参与生态系统服务信贷提供了可靠和可扩展的解决方案。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约1分钟内获得全文 去求助
来源期刊
Journal of animal science
Journal of animal science 农林科学-奶制品与动物科学
CiteScore
4.80
自引率
12.10%
发文量
1589
审稿时长
3 months
期刊介绍: The Journal of Animal Science (JAS) is the premier journal for animal science and serves as the leading source of new knowledge and perspective in this area. JAS publishes more than 500 fully reviewed research articles, invited reviews, technical notes, and letters to the editor each year. Articles published in JAS encompass a broad range of research topics in animal production and fundamental aspects of genetics, nutrition, physiology, and preparation and utilization of animal products. Articles typically report research with beef cattle, companion animals, goats, horses, pigs, and sheep; however, studies involving other farm animals, aquatic and wildlife species, and laboratory animal species that address fundamental questions related to livestock and companion animal biology will be considered for publication.
期刊最新文献
Long non-coding RNA MLST Promotes Milk Fat Synthesis in Bovine Mammary Epithelial Cells by Sponging miR-7 to Activate the mTOR Signal Pathway. Using predictivity to estimate heritabilities and genetic correlations over time for growth traits in a large genotyped Angus cattle population. An integrated in vitro antioxidant/in vivo metabolomics approach unravels the synergistic effects between oregano essential oil and vitamin C as a nutritional strategy for alleviating heat stress in rabbits. Genetic parameter estimation and genome-wide association study of fiber characteristics for cashmere goats in the United States. Multiomics analysis reveals an association of ASIP with the gray coat color pattern in donkeys
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
现在去查看 取消
×
提示
确定
0
微信
客服QQ
Book学术公众号 扫码关注我们
反馈
×
意见反馈
请填写您的意见或建议
请填写您的手机或邮箱
已复制链接
已复制链接
快去分享给好友吧!
我知道了
×
扫码分享
扫码分享
Book学术官方微信
Book学术文献互助
Book学术文献互助群
群 号:604180095
Book学术
文献互助 智能选刊 最新文献 互助须知 联系我们:info@booksci.cn
Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。
Copyright © 2023 Book学术 All rights reserved.
ghs 京公网安备 11010802042870号 京ICP备2023020795号-1