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.7 2区 农林科学 Q1 AGRICULTURE, DAIRY & ANIMAL SCIENCE
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.7000,"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.
求助全文
约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.
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
确定
请完成安全验证×
copy
已复制链接
快去分享给好友吧!
我知道了
右上角分享
点击右上角分享
0
联系我们:info@booksci.cn Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。 Copyright © 2023 布克学术 All rights reserved.
京ICP备2023020795号-1
ghs 京公网安备 11010802042870号
Book学术文献互助
Book学术文献互助群
群 号:481959085
Book学术官方微信