ArunKumar K E, Blake Nathan E, Walker Matthew, Yost Tylor J, Mata-Padrino Domingo, Holásková Ida, Yates Jarred W, Hatton Joseph, Wilson Matthew E
School of Agriculture and Food Systems, Davis College of Agriculture and Natural Resources, West Virginia University, Morgantown, WV, USA.
West Virginia Agricultural and Forestry Experiment Station, Morgantown, WV, USA.
J Anim Sci. 2025 Jan 4;103. doi: 10.1093/jas/skaf041.
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 datasets 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 GBR (XGB), and Gaussian process boosting (GPBoost) models and 2 baseline models: 1. Nutrient Requirements of Beef Cattle Equation 1 & 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 ML operations (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. The RMSE values on the test data of the optimized models ranged from 1.18 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 and 0.90 kg, respectively. We implemented an end-to-end MLOps pipeline with MLflow and Docker, enabling experiment tracking, model registry, reproducibility, 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.
干物质摄入量(DMI)是管理和评估牲畜的一项关键指标。在采用昂贵的摄入量系统的舍饲环境中,存在量化个体DMI的方法。但不存在准确测量放牧牛个体DMI的方法。利用机器学习(ML)准确预测DMI可提高生产和管理效率。这也为生产者验证和核实摄入量以参与提供生态系统服务信用的激励计划打开了大门。我们利用西弗吉尼亚大学2019年至2020年饲养的178头牛的12056条每日实际动物摄入量和气候数据集,探索了基于梯度提升的方法来预测肉牛的DMI。测试和开发的方法包括梯度提升回归(GBR)、轻量级梯度提升回归(LGB)、极端梯度提升回归(XGB)和高斯过程梯度提升(GPBoost)模型以及2个基线模型:1. 肉牛营养需求公式1和2、混合线性模型回归(MLM)。GPBoost模型的开发考虑了与动物ID和日期相关的随机效应。此外,我们开发了一个端到端的机器学习操作(MLOps)管道,以使用诸如MLflow和容器化等关键组件简化机器学习步骤。通过比较均方根误差(RMSE)、均方误差(MSE)、平均绝对误差(MAE)和平均绝对百分比误差等常见评估指标来确定性能最佳的模型。优化模型在测试数据上的RMSE值范围为1.18至1.54千克。重点是开发一种通用算法,该算法对与动物ID和日期相关的协变量进行建模,并且在未见数据上具有良好的泛化能力。与其他模型(MLM、GBR、LGB、XGB)相比,GPBoost模型表现出最佳的偏差和方差。GPBoost在训练数据集和测试数据集上的R2分别为0.58和0.55。GPBoost模型在测试数据集和训练数据集上的泛化能力良好,MAE值分别为0.92和0.90千克。我们使用MLflow和Docker实现了一个端到端的MLOps管道,实现了实验跟踪、模型注册、可重复性、可扩展性(可在多台计算机上部署)以及无缝部署。这种方法为准确的DMI预测、加强牲畜管理以及促进参与生态系统服务信用提供了一个可靠且可扩展的解决方案。