Hostname: page-component-5db58dd55d-4jdj6 Total loading time: 0 Render date: 2026-05-31T23:01:05.776Z Has data issue: false hasContentIssue false

The relationship between dry period length and milk production of Holstein dairy cows in tropical climate: a machine learning approach

Published online by Cambridge University Press:  02 June 2022

Gabriel Machado Dallago*
Affiliation:
Animal Science Department, McGill University, Sainte-Anne-de-Bellevue, Quebec, Canada
Juscilene Aparecida Silva Pacheco
Affiliation:
Animal Science Department, Universidade Federal dos Vales do Jequitinhonha e Mucuri – Campus JK, Diamantina, Minas Gerais, Brazil
Roseli Aparecida dos Santos
Affiliation:
Animal Science Department, Universidade Federal dos Vales do Jequitinhonha e Mucuri – Campus JK, Diamantina, Minas Gerais, Brazil
Gustavo Henrique de Frias Castro
Affiliation:
Animal Science Department, Universidade Federal dos Vales do Jequitinhonha e Mucuri – Campus JK, Diamantina, Minas Gerais, Brazil
Lucas Lima Verardo
Affiliation:
Animal Science Department, Universidade Federal dos Vales do Jequitinhonha e Mucuri – Campus JK, Diamantina, Minas Gerais, Brazil
Leonardo Rabello Guarino
Affiliation:
Associação dos Criadores de Gado Holandês de Minas Gerais, Juiz de Fora, Minas Gerais, Brazil
Eduardo Uba Moreira
Affiliation:
Associação dos Criadores de Gado Holandês de Minas Gerais, Juiz de Fora, Minas Gerais, Brazil
*
Author for correspondence: Gabriel Machado Dallago, Email: gabriel.dallago@mail.mcgill.ca
Rights & Permissions [Opens in a new window]

Abstract

The objective of this retrospective longitudinal study was to evaluate the relationship between dry period length and the production of milk, fat, protein, lactose and total milk solids in the subsequent lactation of Holstein dairy cows under tropical climate. After handling and cleaning of the data provided by the Holstein Cattle Breeders Association of Minas Gerais, data from 32 867 complete lactations of 19 535 Holstein animals that calved between 1993 and 2017 in 122 dairy herds located in Minas Gerais state (Brazil) were analysed. In addition to dry period length, calving age, lactation length, milking frequency, parity, calf status at birth, herd, year, and season of calving were included in the analysis as covariables to account for additional sources of variation. The machine learning algorithms gradient boosting machine, extreme gradient boosting machine, random forest and artificial neural network were used to train models using cross validation. The best model was selected based on four error metrics and used to evaluate the variable importance, the interaction strength between dry period length and the other variables, and to generate partial dependency plots. Random forest was the best model for all production outcomes evaluated. Dry period length was the third most important variable in predicting milk production and its components. No strong interactions were observed between the dry period and the other evaluated variables. The highest milk and lactose productions were observed with a 50-d long dry period, while fat, protein, and total milk solids were the highest with dry period lengths of 38, 38, and 44 d, respectively. Overall, dry period length is associated with the production of milk and its components in the subsequent lactation of Holstein cows under tropical climatic conditions, but the optimum length depends on the production outcome.

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), 2022. Published by Cambridge University Press on behalf of Hannah Dairy Research Foundation
Figure 0

Table 1. Distribution of numeric variables used in this study

Figure 1

Table 2. Distribution of categorical variables used in this study

Figure 2

Table 3. Results of gradient boosting machine (GBM), extreme gradient boosting machine (XGBM), random forest (RF), and artificial neural network (ANN) models obtained on the validation data set of each response variable (milk, fat, protein, lactose, and total solids)

Figure 3

Fig. 1. Importance (x axis) of explanatory variables (y axis) to predict complete lactation production of milk (a), fat (b), protein (c), lactose (d), and total milk solids (e) based on random forest models. Variable importance indicates the increase in model error prediction, measured as root mean squared error, when shuffling the values of explanatory variables (Molnar, 2019).

Figure 4

Fig. 2. Overall interaction strength (x axis) of explanatory variables (y axis) to predict complete lactation production of milk (a), fat (b), protein (c), lactose (d), and total milk solids (e). The higher the value -.

Figure 5

Fig. 3. Partial dependence plots depicting the relationship between dry period length and complete lactation production of milk (a), fat (b), protein (c), lactose (d), and total milk solids (e). Partial dependence is represented by the black line. A loess trend (blue line) along with the standard error (shade) was included to facilitate the interpretation of the partial dependence shape and a rug at the bottom of each plot indicates the distribution of the observations.