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

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

Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

An IWMA-Optimized LightGBM Model for Early Ketosis Risk Screening in Dairy Cows Using DHI Data

Applied Sciences
Reproductive Physiology in Livestock
article

An IWMA-Optimized LightGBM Model for Early Ketosis Risk Screening in Dairy Cows Using DHI Data

article en

Abstract

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.

Applied SciencesVol. 16(10)
Gansu Agricultural University (CN)
Natural Science Foundation of Gansu Province
Openalex Percentile: Top 5%
Reproductive Physiology in 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.