Estimation of body condition score change in dairy cows in a seasonal calving pasture-based system using routinely available milk mid-infrared spectra and machine learning techniques

J Dairy Sci. 2023 Jun;106(6):4232-4244. doi: 10.3168/jds.2022-22394. Epub 2023 Apr 25.

Abstract

Body condition score (BCS) is a subjective estimate of body reserves in cows. Body condition score and its change in early lactation have been associated with cow fertility and health. The aim of the present study was to estimate change in BCS (ΔBCS) using mid-infrared spectra of the milk, with a particular focus on estimating ΔBCS in cows losing BCS at the fastest rate (i.e., the cows most of interest to the producer). A total of 73,193 BCS records (scale 1 to 5) from 6,572 cows were recorded. Daily BCS was interpolated from cubic splines fitted through the BCS records, and subsequently used to calculate daily ΔBCS. Body condition score change records were merged with milk mid-infrared spectra recorded on the same week. Both morning (a.m.) and evening (p.m.) spectra were available. Two different statistical methods were used to estimate ΔBCS: partial least squares regression and a neural network (NN). Several combinations of variables were included as model features, such as days in milk (DIM) only, a.m. spectra only and DIM, p.m. spectra only and DIM, and a.m. and p.m. spectra as well as DIM. The data used to estimate ΔBCS were either based on the first 120 DIM or all 305 DIM. Daily ΔBCS had a standard deviation of 1.65 × 10-3 BCS units in the 305 DIM data set and of 1.98 × 10-3 BCS units in the 120 DIM data set. Each data set was divided into 4 sub-data sets, 3 of which were used for training the prediction model and the fourth to test it. This process was repeated until all the sub-data sets were considered as the test data set once. Using all 305 DIM, the lowest root mean square error of validation (RMSEV; 0.96 × 10-3 BCS units) and the strongest correlation between actual and estimated ΔBCS (0.82) was achieved with NN using a.m. and p.m. spectra and DIM. Using the 120 DIM data, the lowest RMSEV (0.98 × 10-3 BCS units) and the strongest correlation between actual and estimated ΔBCS (0.87) was achieved with NN using DIM and either a.m. spectra only or a.m. and p.m. spectra together. The RMSEV for records in the lowest 2.5% ΔBCS percentile per DIM in early lactation was reduced up to a maximum of 13% when spectra and DIM were both considered in the model compared with a model that considered just DIM. The performance of the NN using DIM and a.m. spectra only with the 120 DIM data was robust across different strata of farm, parity, year of sampling, and breed. Results from the present study demonstrate the ability of mid-infrared spectra of milk coupled with machine learning techniques to estimate ΔBCS; specifically, the inclusion of spectral data reduced the RMSEV over and above using DIM alone, particularly for cows losing BCS at the fastest rate. This approach can be used to routinely generate estimates of ΔBCS that can subsequently be used for farm decisions.

Keywords: days in milk; energy status; machine learning; mid-infrared spectroscopy.

MeSH terms

  • Animals
  • Cattle
  • Female
  • Lactation*
  • Machine Learning
  • Milk*
  • Parity
  • Pregnancy
  • Seasons