The Impact of Heat Stress on Dairy Cattle: Effects on Milk Quality, Rumination Behaviour, and Reticulorumen pH Response Using Machine Learning Models
Open Access
- 15 September 2025
- journal article
- research article
- Published by MDPI AG in Biosensors
- Vol. 15 (9) , 608
Abstract
Heat stress has a major impact on dairy cow health and productivity, especially during early lactation. Conventional heat stress monitoring methods frequently rely on single indicators, such as the temperature–humidity index (THI), which may miss subtle physiological and metabolic responses. This study presents a novel threshold-based classification framework that integrates biologically meaningful combinations of environmental, behavioural, and physiological variables to detect early-stage heat stress responses in dairy cows. Six composite heat stress conditions (C1–C6) were developed using real-time THI, milk temperature, reticulorumen pH, rumination time, milk lactose, and milk fat-to-protein ratio. The study applied and assessed five supervised machine learning models (Partial Least Squares Discriminant Analysis (PLS-DA), Support Vector Machine (SVM), Random Forest (RF0, Neural Network (NN), and an Ensemble approach) trained on daily datasets gathered from early-lactation dairy cows fitted with intraruminal boluses and monitored through milking parlour sensor systems. The dataset comprised approximately 36,000 matched records from 200 cows monitored over 60 days. The highest classification performance was observed for RF and NN models, particularly under C1 (THI > 73 and milk temperature > 38.6 °C) and C6 (THI > 74 and milk temperature > 38.7 °C), with AUC values exceeding 0.90. SHAP analysis revealed that milk temperature, THI, rumination time, and milk lactose were the most informative features across conditions. This integrative approach enhances precision livestock monitoring by enabling individualised heat stress risk classification well before clinical or production-level consequences emerge.Keywords
This publication has 86 references indexed in Scilit:
- Climate change impacts on livestock in BrazilInternational Journal of Biometeorology, 2024
- Hyperparameter optimization: Foundations, algorithms, best practices, and open challengesWIREs Data Mining and Knowledge Discovery, 2023
- Impact of heat stress on milk yield, antioxidative levels, and serum metabolites in primiparous and multiparous Holstein cowsTropical Animal Health and Production, 2022
- Effects of dry period length on milk yield and content and metabolic status of high-producing dairy cows under heat stressTropical Animal Health and Production, 2021
- Robust Distribution-Based Winsorization in Composite Indicators ConstructionSocial Indicators Research, 2020
- Nutritional strategies for alleviating the detrimental effects of heat stress in dairy cows: a reviewInternational Journal of Biometeorology, 2019
- Environmental parameters to assessing of heat stress in dairy cattle—a reviewInternational Journal of Biometeorology, 2018
- Effect of feeding slowly fermentable grains on productive variables and amelioration of heat stress in lactating dairy cows in a sub-tropical summerTropical Animal Health and Production, 2018
- Sub-acute Ruminal Acidosis (SARA) and its Consequence in Dairy Cattle: A Review of Past and Recent Research at Global ProspectiveAchievements in the Life Sciences, 2016
- Partial least squares for discriminationJournal of Chemometrics, 2003