Recent feeding history drives prediction of daily feed intake in lactating sows.

IF 1.9 Q3 AGRICULTURE, DAIRY & ANIMAL SCIENCE
Translational Animal Science Pub Date : 2026-08-05 eCollection Date: 2026-01-01 DOI:10.1093/tas/txag118
Maria Victoria Souza, Alex Batista Trentin, Qianqian Huang, Hinayah Rojas de Oliveira, Brian Richert, Luiz Fernando Brito, Hyatt Frobose, Allan Schinckel
{"title":"Recent feeding history drives prediction of daily feed intake in lactating sows.","authors":"Maria Victoria Souza, Alex Batista Trentin, Qianqian Huang, Hinayah Rojas de Oliveira, Brian Richert, Luiz Fernando Brito, Hyatt Frobose, Allan Schinckel","doi":"10.1093/tas/txag118","DOIUrl":null,"url":null,"abstract":"<p><p>Accurate prediction of feed intake (FI) in lactating sows is essential for precision nutrition, welfare monitoring, and sustainable production. Feed intake during lactation is influenced by both physiological and environmental factors, but the complexity of individual FI makes traditional modeling approaches challenging. Machine learning (ML) provides flexible tools for capturing nonlinear dynamics in sow-feeding datasets. This study evaluated multiple ML algorithms to predict and forecast FI using 17,171 daily observations from 898 lactating sows. Five ML algorithms were tested: Generalized Additive Model (GAM), Elastic Net Regression (ENET), Random Forest (RDF), Extreme Gradient Boosting (XGB), and Light Gradient Boosting Machine (LGB). Predictors included environmental variables (daily maximum air temperature and daily maximum dew point), biological variables (parity and lactation day), and historical data derived from recent FI events (moving averages, lag variables, and intake variability), along with their interactions. An 8:2 sow-level train/test split was employed, along with grouped 5-fold cross-validation (CV) to prevent data leakage. Model performance, feature importance, and forecasting ability were assessed. All models performed similarly, with <i>R</i> <sup>2</sup> values between 0.818 (ENET) and 0.828 (LGB) on the test sets and root mean squared errors (RMSE) between 0.993 kg (RDF) and 1.014 kg (ENET). However, GAM, ENET, and LGB showed less overfitting than XGB and RDF, evidenced by a train-test performance gap of over 5 percentage points. Forecasting accuracy remained strong for 1- to 3-day-ahead predictions (<i>R</i> <sup>2</sup> = 0.61 to 0.71) but declined progressively thereafter, suggesting that ML models captured short-term individual dynamics but gradually reverted toward lactation-specific averages over longer periods. Historical variables contributed to 71.6% of the total predictive power, with the three-day moving average being the most influential feature, according to its mean absolute Shapley additive explanatory value (SHAP) of 0.728, followed by the one-day lag (SHAP = 0.715). Models without historical variables showed decreased performance, with errors increasing from + 0.294 to + 0.316 kg/d. Overall, this study demonstrates that ML models can accurately predict daily FI when incorporating historical data, highlighting the potential of ML-driven forecasting to facilitate personalized, data-driven feeding strategies in precision swine production systems.</p>","PeriodicalId":23272,"journal":{"name":"Translational Animal Science","volume":"10 ","pages":"txag118"},"PeriodicalIF":1.9000,"publicationDate":"2026-08-05","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"https://www.ncbi.nlm.nih.gov/pmc/articles/PMC13489702/pdf/","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"Translational Animal Science","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1093/tas/txag118","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"2026/1/1 0:00:00","PubModel":"eCollection","JCR":"Q3","JCRName":"AGRICULTURE, DAIRY & ANIMAL SCIENCE","Score":null,"Total":0}
引用次数: 0

Abstract

Accurate prediction of feed intake (FI) in lactating sows is essential for precision nutrition, welfare monitoring, and sustainable production. Feed intake during lactation is influenced by both physiological and environmental factors, but the complexity of individual FI makes traditional modeling approaches challenging. Machine learning (ML) provides flexible tools for capturing nonlinear dynamics in sow-feeding datasets. This study evaluated multiple ML algorithms to predict and forecast FI using 17,171 daily observations from 898 lactating sows. Five ML algorithms were tested: Generalized Additive Model (GAM), Elastic Net Regression (ENET), Random Forest (RDF), Extreme Gradient Boosting (XGB), and Light Gradient Boosting Machine (LGB). Predictors included environmental variables (daily maximum air temperature and daily maximum dew point), biological variables (parity and lactation day), and historical data derived from recent FI events (moving averages, lag variables, and intake variability), along with their interactions. An 8:2 sow-level train/test split was employed, along with grouped 5-fold cross-validation (CV) to prevent data leakage. Model performance, feature importance, and forecasting ability were assessed. All models performed similarly, with R 2 values between 0.818 (ENET) and 0.828 (LGB) on the test sets and root mean squared errors (RMSE) between 0.993 kg (RDF) and 1.014 kg (ENET). However, GAM, ENET, and LGB showed less overfitting than XGB and RDF, evidenced by a train-test performance gap of over 5 percentage points. Forecasting accuracy remained strong for 1- to 3-day-ahead predictions (R 2 = 0.61 to 0.71) but declined progressively thereafter, suggesting that ML models captured short-term individual dynamics but gradually reverted toward lactation-specific averages over longer periods. Historical variables contributed to 71.6% of the total predictive power, with the three-day moving average being the most influential feature, according to its mean absolute Shapley additive explanatory value (SHAP) of 0.728, followed by the one-day lag (SHAP = 0.715). Models without historical variables showed decreased performance, with errors increasing from + 0.294 to + 0.316 kg/d. Overall, this study demonstrates that ML models can accurately predict daily FI when incorporating historical data, highlighting the potential of ML-driven forecasting to facilitate personalized, data-driven feeding strategies in precision swine production systems.

最近的饲养历史驱动预测日采食量在哺乳母猪。
哺乳母猪采食量的准确预测对于精确营养、福利监测和可持续生产至关重要。哺乳期间的采食量受到生理和环境因素的影响,但个体FI的复杂性使得传统的建模方法具有挑战性。机器学习(ML)为捕获母猪饲养数据集中的非线性动态提供了灵活的工具。本研究利用898头哺乳期母猪的17171次日常观察,评估了多种ML算法来预测和预测FI。测试了五种ML算法:广义加性模型(GAM)、弹性网络回归(ENET)、随机森林(RDF)、极端梯度增强(XGB)和光梯度增强机(LGB)。预测因素包括环境变量(每日最高气温和每日最高露点)、生物变量(胎次和哺乳日)、近期FI事件的历史数据(移动平均线、滞后变量和摄入变异性)及其相互作用。采用8:2母猪水平训练/测试分割,以及分组5倍交叉验证(CV),以防止数据泄露。评估了模型性能、特征重要性和预测能力。所有模型的表现相似,测试集的r2值在0.818 (ENET)和0.828 (LGB)之间,均方根误差(RMSE)在0.993 kg (RDF)和1.014 kg (ENET)之间。然而,GAM、ENET和LGB表现出比XGB和RDF更少的过拟合,训练测试的性能差距超过5个百分点。对于1- 3天前的预测,预测精度仍然很高(r2 = 0.61 - 0.71),但此后逐渐下降,这表明ML模型捕获了短期个体动态,但在较长时间内逐渐恢复到哺乳期特定的平均值。历史变量贡献了总预测能力的71.6%,其中三天移动平均线的影响最大,其平均绝对Shapley加性解释值(SHAP)为0.728,其次是一天滞后(SHAP = 0.715)。没有历史变量的模型表现出性能下降,误差从+ 0.294增加到+ 0.316 kg/d。总的来说,本研究表明,当结合历史数据时,机器学习模型可以准确地预测每日FI,突出了机器学习驱动的预测在精准养猪生产系统中促进个性化、数据驱动的喂养策略的潜力。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约1分钟内获得全文 求助全文
来源期刊
Translational Animal Science
Translational Animal Science Veterinary-Veterinary (all)
CiteScore
2.80
自引率
15.40%
发文量
149
审稿时长
8 weeks
期刊介绍: Translational Animal Science (TAS) is the first open access-open review animal science journal, encompassing a broad scope of research topics in animal science. TAS focuses on translating basic science to innovation, and validation of these innovations by various segments of the allied animal industry. Readers of TAS will typically represent education, industry, and government, including research, teaching, administration, extension, management, quality assurance, product development, and technical services. Those interested in TAS typically include animal breeders, economists, embryologists, engineers, food scientists, geneticists, microbiologists, nutritionists, veterinarians, physiologists, processors, public health professionals, and others with an interest in animal production and applied aspects of animal sciences.
×
引用
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学术文献互助群
群 号:604180095
Book学术官方微信
小红书