{"title":"Predicting postpartum diseases in Holstein cows using milk spectra and machine learning-Retrospective assessment from diagnosis date.","authors":"D Lin, J Li, J A Seminara, J A A McArt","doi":"10.3168/jds.2024-26216","DOIUrl":null,"url":null,"abstract":"<p><p>Dairy cows commonly experience health disorders in the early-lactation period. Although Fourier-transform infrared (FTIR) spectroscopy offers a noninvasive and cost-effective method for analyzing milk composition, its potential in predicting subsequent early-lactation diseases has yet to be adequately explored. This study aimed to uncover the ability of milk FTIR spectra to predict postpartum diseases in 1,162 Holstein cows from a commercial dairy farm in Cayuga County, NY. We collected proportional milk samples daily on cows in the early-lactation pen and stored milk at 4°C until analysis via FTIR spectroscopy. Cows were monitored through 30 DIM and classified as healthy (n = 825; no adverse health events) or diseased (n = 311; diagnosis of clinical ketosis, metritis, displaced abomasum, or mastitis, or any combination of these). We developed predictive models for 8 distinct time periods preceding the diagnosis date (>10 d, 10-8 d, 7-6 d, 5-4 d, 3 d, 2 d, 1 d, and 0 d), using regression, machine learning, and deep-learning methods applied to milk FTIR spectral data. Model performance was evaluated through a repeated down-sampled double cross-validation framework and permutation tests. Our results showed that progressive changes in spectral regions related to the absorbance peaks of fat, protein, and lactose are correlated with disease progression, leading to an increase in average area under the receiver operating characteristic curve (AUROC) from 0.50 (>10 d before diagnosis) to 0.72 (1 d prior) and 0.76 (the day of diagnosis) across all model types. Partial least squares-discriminant analysis (PLS-DA) models using milk FTIR spectra achieved an average AUROC of 0.71 from 7 d before diagnosis, outperforming models based on cow-level features (0.62) or combined with spectra-predicted milk major components (0.67). Among spectral models, PLS-DA reached the highest average AUROC (0.74), followed by long short-term memory (0.72), and surpassed ridge regression (0.71) and random forest (0.69). These findings highlight the effectiveness of using milk FTIR spectra to predict upcoming health conditions in early-lactation Holstein dairy cows, although broader evaluation is necessary to assess generalizability and on-farm utility.</p>","PeriodicalId":354,"journal":{"name":"Journal of Dairy Science","volume":" ","pages":""},"PeriodicalIF":4.4000,"publicationDate":"2025-10-01","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.2024-26216","RegionNum":1,"RegionCategory":"农林科学","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"Q1","JCRName":"AGRICULTURE, DAIRY & ANIMAL SCIENCE","Score":null,"Total":0}
引用次数: 0
Abstract
Dairy cows commonly experience health disorders in the early-lactation period. Although Fourier-transform infrared (FTIR) spectroscopy offers a noninvasive and cost-effective method for analyzing milk composition, its potential in predicting subsequent early-lactation diseases has yet to be adequately explored. This study aimed to uncover the ability of milk FTIR spectra to predict postpartum diseases in 1,162 Holstein cows from a commercial dairy farm in Cayuga County, NY. We collected proportional milk samples daily on cows in the early-lactation pen and stored milk at 4°C until analysis via FTIR spectroscopy. Cows were monitored through 30 DIM and classified as healthy (n = 825; no adverse health events) or diseased (n = 311; diagnosis of clinical ketosis, metritis, displaced abomasum, or mastitis, or any combination of these). We developed predictive models for 8 distinct time periods preceding the diagnosis date (>10 d, 10-8 d, 7-6 d, 5-4 d, 3 d, 2 d, 1 d, and 0 d), using regression, machine learning, and deep-learning methods applied to milk FTIR spectral data. Model performance was evaluated through a repeated down-sampled double cross-validation framework and permutation tests. Our results showed that progressive changes in spectral regions related to the absorbance peaks of fat, protein, and lactose are correlated with disease progression, leading to an increase in average area under the receiver operating characteristic curve (AUROC) from 0.50 (>10 d before diagnosis) to 0.72 (1 d prior) and 0.76 (the day of diagnosis) across all model types. Partial least squares-discriminant analysis (PLS-DA) models using milk FTIR spectra achieved an average AUROC of 0.71 from 7 d before diagnosis, outperforming models based on cow-level features (0.62) or combined with spectra-predicted milk major components (0.67). Among spectral models, PLS-DA reached the highest average AUROC (0.74), followed by long short-term memory (0.72), and surpassed ridge regression (0.71) and random forest (0.69). These findings highlight the effectiveness of using milk FTIR spectra to predict upcoming health conditions in early-lactation Holstein dairy cows, although broader evaluation is necessary to assess generalizability and on-farm utility.
期刊介绍:
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.