M F Hasan, N Celik, Y Williams, S R O Williams, L C Marett
{"title":"利用XGBoost机器学习模型结合温湿度指数研究热应激对产奶量影响的有效方法。","authors":"M F Hasan, N Celik, Y Williams, S R O Williams, L C Marett","doi":"10.3168/jds.2025-27193","DOIUrl":null,"url":null,"abstract":"<p><p>Commercial dairy farms face major challenges in safeguarding animal welfare and overall farm sustainability from environmental heat stressors. As climate change drives increased temperatures in many places, it is essential to predict the potential effects of heat stress on dairy cows to mitigate the adverse impact. This study aimed to develop an eXtreme Gradient Boosting (XGBoost) machine learning model to predict the daily milk production of 3,369 lactating dairy cows under different climatic conditions across 10 different commercial dairy farms in Australia. The duration of the data set covered early 2019 to mid-2023, with seasonal variations. The model considered a total of 8 input parameters combining the physiological properties of cows as well as temporal and climate variables. In this study, the temperature-humidity index (THI) was incorporated, using a novel approach in which THI mean values of 5 accumulating days were considered. The model considered a mean daily THI ≥55 as a threshold point to identify a potential heat stress day (THI ≥60) and then combined the THI mean of 2 d before and 2 d after to incorporate the before- and after-effects of a potential heat stress day, defined as THI composite. The model was evaluated using combined farm data, regional farm data, and leave-one-farm-out validations, achieving high predictive accuracy (R<sup>2</sup> up to 0.73; Lin's concordance correlation coefficient up to 0.84). The THI composite metric improved prediction accuracy by up to 21% compared with conventional rolling THI averages, demonstrating its value in forecasting milk yield under heat stress conditions. The model from this study offers a foundation for strategic planning using projected climate data to mitigate future heat-related impacts on dairy productivity.</p>","PeriodicalId":354,"journal":{"name":"Journal of Dairy Science","volume":" ","pages":""},"PeriodicalIF":4.4000,"publicationDate":"2025-10-09","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":"{\"title\":\"An effective way to incorporate temperature-humidity index to study effect of heat stress on milk yield by an XGBoost machine learning model.\",\"authors\":\"M F Hasan, N Celik, Y Williams, S R O Williams, L C Marett\",\"doi\":\"10.3168/jds.2025-27193\",\"DOIUrl\":null,\"url\":null,\"abstract\":\"<p><p>Commercial dairy farms face major challenges in safeguarding animal welfare and overall farm sustainability from environmental heat stressors. As climate change drives increased temperatures in many places, it is essential to predict the potential effects of heat stress on dairy cows to mitigate the adverse impact. This study aimed to develop an eXtreme Gradient Boosting (XGBoost) machine learning model to predict the daily milk production of 3,369 lactating dairy cows under different climatic conditions across 10 different commercial dairy farms in Australia. The duration of the data set covered early 2019 to mid-2023, with seasonal variations. The model considered a total of 8 input parameters combining the physiological properties of cows as well as temporal and climate variables. In this study, the temperature-humidity index (THI) was incorporated, using a novel approach in which THI mean values of 5 accumulating days were considered. The model considered a mean daily THI ≥55 as a threshold point to identify a potential heat stress day (THI ≥60) and then combined the THI mean of 2 d before and 2 d after to incorporate the before- and after-effects of a potential heat stress day, defined as THI composite. The model was evaluated using combined farm data, regional farm data, and leave-one-farm-out validations, achieving high predictive accuracy (R<sup>2</sup> up to 0.73; Lin's concordance correlation coefficient up to 0.84). The THI composite metric improved prediction accuracy by up to 21% compared with conventional rolling THI averages, demonstrating its value in forecasting milk yield under heat stress conditions. The model from this study offers a foundation for strategic planning using projected climate data to mitigate future heat-related impacts on dairy productivity.</p>\",\"PeriodicalId\":354,\"journal\":{\"name\":\"Journal of Dairy Science\",\"volume\":\" \",\"pages\":\"\"},\"PeriodicalIF\":4.4000,\"publicationDate\":\"2025-10-09\",\"publicationTypes\":\"Journal Article\",\"fieldsOfStudy\":null,\"isOpenAccess\":false,\"openAccessPdf\":\"\",\"citationCount\":\"0\",\"resultStr\":null,\"platform\":\"Semanticscholar\",\"paperid\":null,\"PeriodicalName\":\"Journal of Dairy Science\",\"FirstCategoryId\":\"97\",\"ListUrlMain\":\"https://doi.org/10.3168/jds.2025-27193\",\"RegionNum\":1,\"RegionCategory\":\"农林科学\",\"ArticlePicture\":[],\"TitleCN\":null,\"AbstractTextCN\":null,\"PMCID\":null,\"EPubDate\":\"\",\"PubModel\":\"\",\"JCR\":\"Q1\",\"JCRName\":\"AGRICULTURE, DAIRY & ANIMAL SCIENCE\",\"Score\":null,\"Total\":0}","platform":"Semanticscholar","paperid":null,"PeriodicalName":"Journal of Dairy Science","FirstCategoryId":"97","ListUrlMain":"https://doi.org/10.3168/jds.2025-27193","RegionNum":1,"RegionCategory":"农林科学","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"Q1","JCRName":"AGRICULTURE, DAIRY & ANIMAL SCIENCE","Score":null,"Total":0}
An effective way to incorporate temperature-humidity index to study effect of heat stress on milk yield by an XGBoost machine learning model.
Commercial dairy farms face major challenges in safeguarding animal welfare and overall farm sustainability from environmental heat stressors. As climate change drives increased temperatures in many places, it is essential to predict the potential effects of heat stress on dairy cows to mitigate the adverse impact. This study aimed to develop an eXtreme Gradient Boosting (XGBoost) machine learning model to predict the daily milk production of 3,369 lactating dairy cows under different climatic conditions across 10 different commercial dairy farms in Australia. The duration of the data set covered early 2019 to mid-2023, with seasonal variations. The model considered a total of 8 input parameters combining the physiological properties of cows as well as temporal and climate variables. In this study, the temperature-humidity index (THI) was incorporated, using a novel approach in which THI mean values of 5 accumulating days were considered. The model considered a mean daily THI ≥55 as a threshold point to identify a potential heat stress day (THI ≥60) and then combined the THI mean of 2 d before and 2 d after to incorporate the before- and after-effects of a potential heat stress day, defined as THI composite. The model was evaluated using combined farm data, regional farm data, and leave-one-farm-out validations, achieving high predictive accuracy (R2 up to 0.73; Lin's concordance correlation coefficient up to 0.84). The THI composite metric improved prediction accuracy by up to 21% compared with conventional rolling THI averages, demonstrating its value in forecasting milk yield under heat stress conditions. The model from this study offers a foundation for strategic planning using projected climate data to mitigate future heat-related impacts on dairy productivity.
期刊介绍:
The official journal of the American Dairy Science Association®, Journal of Dairy Science® (JDS) is the leading peer-reviewed general dairy research journal in the world. JDS readers represent education, industry, and government agencies in more than 70 countries with interests in biochemistry, breeding, economics, engineering, environment, food science, genetics, microbiology, nutrition, pathology, physiology, processing, public health, quality assurance, and sanitation.