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 dataset 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.

Authors

Institutions

Publication Details

Journal
Journal of Dairy Science
Published
2025-10-10
DOI
https://doi.org/10.3168/jds.2025-27193
Primary Topic
Effects of Environmental Stressors on Livestock
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

An effective way to incorporate temperature–humidity index to study effect of heat stress on milk yield by an XGBoost machine learning model

Md. Fakhrul Hasan, Emre Çelik, S.R.O. Williams, Leah C. Marett et al.
Journal of Dairy Science
Effects of Environmental Stressors on Livestock
article

An effective way to incorporate temperature–humidity index to study effect of heat stress on milk yield by an XGBoost machine learning model

Md. Fakhrul Hasan, Emre Çelik, S.R.O. Williams, Leah C. Marett, Yvette M. Williams
article en

Abstract

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 dataset 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.

Journal of Dairy ScienceVol. 108(12)
La Trobe University (AU), Agriculture Victoria (AU)
Openalex Percentile: Top 67%
Effects of Environmental Stressors on Livestock
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.