Hostname: page-component-89b8bd64d-ksp62 Total loading time: 0 Render date: 2026-05-06T12:14:42.218Z Has data issue: false hasContentIssue false

Using machine learning methods to predict dry matter intake from milk mid-infrared spectroscopy data on Swedish dairy cattle

Published online by Cambridge University Press:  01 March 2023

Suraya Mohamad Salleh*
Affiliation:
Department of Animal Nutrition and Management, Swedish University of Agricultural Science, SE-750 07 Uppsala, Sweden Department of Animal Science, Faculty of Agriculture, Universiti Putra Malaysia, 43400 Serdang, Selangor, Malaysia
Rebecca Danielsson
Affiliation:
Department of Animal Nutrition and Management, Swedish University of Agricultural Science, SE-750 07 Uppsala, Sweden
Cecilia Kronqvist
Affiliation:
Department of Animal Nutrition and Management, Swedish University of Agricultural Science, SE-750 07 Uppsala, Sweden
*
Author for correspondence: Suraya Mohamad Salleh: Email: suraya.mohamad.salleh@slu.se, surayams@upm.edu.my
Rights & Permissions [Opens in a new window]

Abstract

In this research communication we compare three different approaches for developing dry matter intake (DMI) prediction models based on milk mid-infrared spectra (MIRS), using data collected from a research herd over five years. In dairy production, knowledge of individual DMI could be important and useful, but DMI can be difficult and expensive to measure on most commercial farms as cows are commonly group-fed. Instead, this parameter is often estimated based on the age, body weight, stage of lactation and body condition score of the cow. Recently, milk MIRS have also been used as a tool to estimate DMI. There are different methods available to create prediction models from large datasets. The main data used were total DMI calculated as a 3-d average, coupled with milk MIRS data available fortnightly. Data on milk yield and lactation stage parameters were also available for each animal. We compared the performance of three prediction approaches: partial least-squares regression, support vector machine regression and random forest regression. The full milk MIRS alone gave low to moderate prediction accuracy (R2 = 0.07–0.40), regardless of prediction modelling approach. Adding more variables to the model improved R2 and decreased the prediction error. Overall, partial least-squares regression proved to be the best method for predicting DMI from milk MIRS data, while MIRS data together with milk yield and concentrate DMI at 3–30 d in milk provided good prediction accuracy (R2 = 0.52–0.65) regardless of the prediction tool used.

Information

Type
Research Article
Creative Commons
Creative Common License - CCCreative Common License - BY
This is an Open Access article, distributed under the terms of the Creative Commons Attribution licence (https://creativecommons.org/licenses/by/4.0/), which permits unrestricted re-use, distribution, and reproduction in any medium, provided the original work is properly cited.
Copyright
Copyright © The Author(s), 2023. Published by Cambridge University Press on behalf of Hannah Dairy Research Foundation
Figure 0

Table 1. Prediction accuracy of PLS, SVM and RF regression analysis. Coefficient of determination (R2) for validation/test dataset, RMSEP (kg/d) and MAE (kg/d) between predicted and actual observations of DMI (kg/d)

Supplementary material: PDF

Salleh et al. supplementary material

Salleh et al. supplementary material

Download Salleh et al. supplementary material(PDF)
PDF 192.6 KB