An IWMA-Optimized LightGBM Model for Early Ketosis Risk Screening in Dairy Cows Using DHI Data
Ketosis is a prevalent metabolic disorder in early-lactation dairy cows, significantly affecting animal health, milk production, and farm profitability. Developing accurate and non-invasive methods for early risk detection is therefore of critical importance. In this study, a hybrid optimization framework integrating an Improved Whale Migration Algorithm (IWMA) with a Light Gradient Boosting Machine (LightGBM) is proposed to predict ketosis risk based on the milk fat-to-protein ratio (F/P) using Dairy Herd Improvement (DHI) records. The proposed IWMA enhances optimization performance through cubic chaotic initialization, elite opposition-based learning, and a Cauchy–Gaussian hybrid mutation strategy, enabling improved global exploration and convergence stability. A dataset comprising 25,155 DHI records collected from multiple commercial dairy farms over seven months was used for model development and evaluation. Experimental results demonstrate that the IWMA–LightGBM model achieves a classification accuracy of 0.8997 and a mean squared error of 0.289, consistently outperforming six benchmark optimization methods. Feature analysis identifies Herd Within Index (WHI), Energy Corrected Milk (ECM), Days in Milk (DIM), Milk Urea Nitrogen, and Foremilk as key predictors associated with metabolic risk. Overall, the proposed approach provides a robust and effective non-invasive solution for early-stage metabolic risk screening at the herd level, offering practical value for precision dairy management. It should be noted that the model is intended for risk assessment rather than clinical diagnosis of ketosis.
Institutions
- Gansu Agricultural University (CN)
Publication Details
- Journal
- Applied Sciences
- Published
- 2026-05-19
- DOI
- https://doi.org/10.3390/app16105050
- Primary Topic
- Reproductive Physiology in Livestock
- Type
- article
- Field-Weighted Citation Impact
- 0.00
Funders
- Natural Science Foundation of Gansu Province