Predicting Early-lactation Diseases in Cows with Milk FTIR

Milk FTIR Spectra Analysis

This study aims to predict subsequent postpartum diseases in dairy cows using milk spectra collected from daily milking procedures, with a long goal of supporting large-scale health monitoring program in modern dairy farms. We found during early lactation, milk FTIR spectra in high-risk cows initially followed trends similar to healthy cows—rising then slightly declining fat absorbance, decreasing protein, and increasing lactose. As disease progressed, spectral patterns diverged, with higher fat and lower protein and lactose absorbance in diseased cows. Cows with or at risk of metritis may show greater spectral deviation from healthy cows than those with or at risk of mastitis.

These findings highlight the potential of milk FTIR spectra for both early disease prediction and disease-type classification during the transition period. Across two complementary analyses, we applied distinct validation frameworks tailored to different clinical use cases: a retrospective setting using repeated down-sampled double cross-validation anchored to diagnosis date, and a prospective setting using repeated leave-one-out cross-validation under varying modeling strategies relative to parturition. Both frameworks incorporated permutation tests and enabled efficient spectral preprocessing and model training. Together, they demonstrate the feasibility of milk FTIR-based prediction of overall health status, metritis, and clinical mastitis on a commercial dairy farm in upstate New York.

Why We Do This Research

Milk FTIR Analysis

Milk FTIR could be a non-invasive, direct and cheap health indicator.

Considering that the alterations in milk composition throughout lactation mirror the physiological state of dairy cows, as well as the advantages of large-scale milk analysis without additional farm management changes, milk FTIR spectroscopy shows potential to assist health monitoring and disease warning in practice.

Machine Learning Analysis

Daily FTIR + Machine Learning = Real-time and Precise Health Condition Prediction!

Our projects combine daily milk FTIR spectra for each dairy cow with ensembles machine learning models to support a real-time and precise prediction. Under this overarching goal, we are conducting a series of research that further validates the feasibility of spectra and technology, generates benchmark dataset, and proposes computing systems.

Publications

Dan Lin, Jessica McArt
Prediction and classification of metritis and mastitis in Holstein cows using transition milk spectra under different modeling strategies – prospective assessment following parturition
Dan Lin, Jun Li, Jackson Seminara, Jessica McArt
Predicting postpartum diseases in Holstein cows using milk spectra and machine learning – retrospective assessment from diagnosis date

What We Can Help

Pre-Processing Visualization

Pre-Processing

Tutorial
Machine Learning Visualization

Machine Learning

Tutorial
Machine Learning + Repeated double cross-validation + Permutation test Visualization

Machine Learning + Repeated double cross-validation + Permutation test

Tutorial
PLS-DA + Repeated LOOCV + Permutation test Visualization

PLS-DA + Repeated LOOCV + Permutation test

Tutorial

Research Team

Note that the affiliations of the authors are based on the period of participation in the project and may not reflect the latest information.

Jessica McArt

Jessica McArt

Associate Professor

Cornell University

jmcart@cornell.edu

Dan Lin

Dan Lin

Post Doc

Cornell University

dl862@cornell.edu

Jackson Seminara

Jackson Seminara

Graduate Student

Cornell University

jas927@cornell.edu

Acknowledgment

Illustrations on this website were created using free vector images from Freepik and Vecteezy.