Comparison of goodness of fit in lactation curve modeling in Holstein dairy cows

Document Type : Research Paper

Authors

1 Department of Animal Science and Fisheries, Sari Agricultural Sciences and Natural Resources University, Sari, Iran

2 Department of Economic Science, Faculty of Agriculture, University of Tehran, Karaj, Iran

Abstract

Introduction: Lactation curves are essential tools for understanding milk production patterns in dairy cattle, providing critical insights for herd management and genetic improvement. Modeling these curves accurately is vital to predict yield, optimize feeding strategies, and enhance overall productivity. Among the various approaches, non-linear models such as Wood, Wilmink, Dhanoa, Cappio-Borlino, and Cobby & Le Du have been widely used to describe the lactation kinetics in Holstein cattle. However, comparative evaluations of these models' performance under similar conditions remain limited. This study aimed to assess and compare the goodness-of-fit of these five established models to identify the most suitable for characterizing lactation curves in Holstein cows, ensuring more precise and reliable production forecasting. Additionally, the possibility of utilizing the Dynamic Ordinary Least Squares (DOLS) method instead of the traditional nonlinear least squares (LS) approach for the best-fitted model was investigated to explore potential improvements in estimation accuracy.
Materials and methods: This study utilized milk production records from a dairy farm in Tehran Province, Iran, under the supervision of the National Animal Breeding Center. The dataset included 1050 test-day records from the first three lactation periods (1st to 3rd), spanning 305 days in milk (DIM). Only cows with a minimum of 10 valid test-day records and lactations exceeding 200 days were considered. Lactation curves were fitted using five non-linear models, Wood, Wilmink, Dhanoa, Cappio-Borlino, and Cobby & Le Du, implemented in R software (packages nlme and minpack.lm). Model performance was assessed using goodness-of-fit criteria, including the coefficient of determination (R²), root mean square error (RMSE), and Akaike Information Criterion (AIC). Upon identifying the best-performing model, the DOLS method was applied to evaluate its potential for improving parameter estimation accuracy. This analysis was conducted using records from the first three lactations of eight Holstein dairy cows.
Results and discussion: Comparative analysis of the five non-linear models revealed the Wood model as the most statistically suitable for characterizing Holstein lactation curves. While effective, the Wood model demonstrated limitations under traditional LS estimation, particularly in accurately predicting peak yield magnitude and timing. These shortcomings stemmed from the LS method's sensitivity to initial parameter values and its inability to properly synchronize estimated events with observed farm data. Implementation of the DOLS method substantially enhanced model performance. The DOLS-adapted Wood model showed improved goodness-of-fit metrics and, crucially, provided more biologically accurate estimates of key lactation events, including initial yield, peak timing, and peak magnitude. These estimates closely matched actual farm records, demonstrating superior predictive capability compared to the LS approach. The study confirmed established biological patterns: third-lactation cows exhibited higher initial yields (α parameter) and greater persistence (lower c parameter values) compared to first-lactation animals. These findings align with known metabolic adaptations in mature cows and previous reports of lactation curve dynamics. Visual and statistical comparisons revealed distinct advantages of the DOLS approach. While both methods achieved reasonable goodness-of-fit, the DOLS-generated curve showed better alignment with critical lactation points and lower standard errors, particularly for peak-related parameters. This temporal calibration is essential for practical applications, as even models with high R² values may yield misleading recommendations if event timing is inaccurate. The results substantiate theoretical advantages of DOLS in production function estimation, demonstrating its capacity to generate properly calibrated, differentiable concave functions that faithfully represent biological reality while maintaining statistical rigor.
Conclusions: This study demonstrates that the DOLS method offers substantial improvements over traditional nonlinear LS for modeling Holstein lactation curves using Wood’s equation. The DOLS approach effectively addresses critical limitations of conventional nonlinear estimation, particularly its dependence on manual parameter initialization and its tendency for temporal miscalibration. By providing parameter estimates that align more closely with biological reality, DOLS enables superior prediction of key lactation traits, including peak yield and persistence, crucial factors for genetic selection and herd management decisions. The methodological advantages of DOLS extend beyond statistical performance to practical implementation; its ability to estimate marginal productivity within the actual lactation timeline while preserving biological plausibility makes it especially valuable for dairy management applications. These findings suggest that adopting DOLS in breeding programs and farm management systems could enhance both the accuracy and economic outcomes of production decisions. While this research presents a novel application of DOLS to lactation modeling, certain limitations merit consideration. The relatively small sample size, the absence of formal cointegration testing, and unexamined econometric assumptions, such as stationarity and residual independence, highlight the need for validation with larger and more diverse datasets. Future studies should examine DOLS performance across different breeds, management systems, and lactation stages while incorporating appropriate econometric validation procedures. Nevertheless, this work establishes DOLS as a promising alternative to conventional nonlinear approaches, offering both theoretical rigor and practical utility for lactation curve analysis in dairy science.

Keywords

Main Subjects


Arianfar, M., Rokouei, M., Dashab, G. R., & Faraji-Arough, H. (2022). Investigating the relationship between lactation curve parameters and some economic traits of Iranian Holstein cows. Animal Production Research, 11(1), 1-13. doi: 10.22124/ar.2022.18691.1590 [In Persian]
Atashi, H. (2003). Determining the best equation for describing the lactation curve in Iranian Holstein cows. Doctoral dissertation, Msc dissertation. Faculty of Agriculture, University of Tehran, Karaj, Iran. [In Persian]
Cannas, A., & Pulina, G. (Eds.). (2008). Dairy goats feeding and nutrition. CAB International.
Cappio-Borlino, A., Pulina, G., & Rossi, G. (1995). A non-linear modification of Wood's equation fitted to lactation curves of Sardinian dairy ewes. Small Ruminant Research, 18(1), 75-79. doi:10.1016/0921-4488(95)00713
Cobby, J. M., & Le Du, Y. L. P. (1978). On fitting curves to lactation data. Animal Science26(2), 127-133.
Elahi Torshizi, M., Aslamenejad, A. A., Nassiri, M. R., & Farhangfar, H. (2011). Comparison and evaluation of mathematical lactation curve functions of Iranian primiparous Holsteins. South African Journal of Animal Science, 41(2), 104-115. doi: 10.4314/sajas.v41i2.71013
Farhanfar, H. (2015). On the lactation curve and its application in dairy cattle breeding. In: 1st National Congress on Advanced Research in Animal Science, Birjand University, Iran. [In Persian]
Farhangfar, S. H. , Rashidi Toghroljerdi, M. S. , Montazar Torbati, M. B. and Sayyadnezhad, M. B. (2023). A study on the lactation curve characteristics of grade and Iranian purebred Holstein cows with the use of raw, fat-corrected, and energy-corrected milk test day records. Animal Production Research12(2), 71-84. doi: 10.22124/ar.2023.22771.1718 [In Persian]
Fathi Nasri, M. H., France, J., Odongo, N. E., Lopez, S., Bannink, A., & Kebreab, E. (2008). Modelling the lactation curve of dairy cows using the differentials of growth functions. Journal of Agriculture Science, 146, 633-641.
Fernández, C., Sánchez, A., & Garcés, C. (2002). Modeling the lactation curve for test-day milk yield in Murciano-Granadina goats. Small Ruminant Research, 46(1), 29-41. doi: 10.1016/S0921-4488(02)00179-7
Gengler, N., Tijani, A., Wiggans, G. R., & Philpot, J. C. (2001). Estimation of (co) variance functions for test-day yields during first and second lactations in the United States. Journal of Dairy Science, 84(2), 542-e1. doi: 10.3168/jds.S0022-0302(01)74505-5
Ghavi Hossein-Zadeh, N. (2014). Comparison of non-linear models to describe the lactation curves of milk yield and composition in Iranian Holsteins. The Journal of Agricultural Science, 152(2), 309-324. doi: 10.1017/S0021859613000415
Ghavi Hossein-Zadeh, N. (2015). Modeling the growth curve of Iranian Shall sheep using non-linear growth models. Small Ruminant Research, 130, 60-66. doi: 10.1016/j.smallrumres.2015.07.014
Ghavi Hossein-Zadeh, N. (2016). Comparison of non-linear models to describe the lactation curves for milk yield and composition in buffaloes (Bubalus bubalis). Animal, 10(2), 248-261. doi: 10.1017/S1751731115001846
Ghavi Hossein-Zadeh, N. (2017). Application of growth models to describe the lactation curves for test-day milk production in Holstein cows. Journal of Applied Animal Research, 45(1), 145-151. doi: 10.1080/09712119.2015.1124336
Gholizadeh, M., & Tajikkhari, M. (2024). Growth curve modeling in Holstein dairy calves using non-linear functions. Research On Animal Production, 15(3), 1-9. doi: 10.61186/rap.15.3.1 [In Persian]
Grossman, M., Kuck, A. L., & Norton, H. W. (1986). Lactation curves of purebred and crossbred dairy cattle. Journal of Dairy Science, 69(1), 195-203. doi: 10.3168/jds.S0022-0302(86)80386-1
Grossman, M., & Koops, W. J. (1988). Multiphasic analysis of lactation curves in dairy cattle. Journal of Dairy Science, 71(6), 1598-1608. doi: 10.3168/jds.S0022-0302(88)79723-4
Hasanpur, K., Aslaminejad, A. A., & Moradi Shahrbabak, M. (2012). Study of milk production and milk fat percentage curves in different lactation periods in Holstein cows of Iran. Journal of Animal Production, 14(1), 19-31. doi: 10.22059/jap.2012.28890 [In Persian]
Khorshidie, R., Shadparvar, A. A., Ghavi Hossein-Zadeh, N., & Joezy Shakalgurabi, S. (2012). Genetic trends for 305-day milk yield and persistency in Iranian Holsteins. Livestock Science, 144, 211-217. doi: 10.1016/j.livsci.2011.11.016
Lotfi, S., Lotfi, R., Vahidian Kamyad, A., & Farhangfar, H. (2014). Modeling the lactation curve of Holstein dairy cows using the Sine function and comparing it with Dijekstra and Wood’s functions in a herd of Holstein dairy cow. Iranian Journal of Animal Science, 45(1), 59-68. doi: 10.22059/ijas.2014.51750 [In Persian]
Mahaboob, B., Venkateswarlu, B., Narayana, C., Sankar, J. R., & Balasiddamuni, P. (2018). A treatise on ordinary least squares estimation of parameters of linear model. International Journal of Engineering & Technology, 7(4.10), 518-522. doi: 10.14419/ijet.v7i4.10.21216
Macciotta, N. P. P., Vicario, D., & Cappio-Borlino, A. (2005). Detection of different shapes of lactation curve for milk yield in dairy cattle by empirical mathematical models. Journal of Dairy Science, 88(3), 1178-1191. doi: 10.3168/jds.S0022-0302(05)72784-3
Masoudi, A., & Rashedi Dehsahraei, A. (2019). Comparison of lactation descriptive models and the study of the effect of some non-genetic factors on lactation parameters in Buffalo. Animal Sciences Journal, 31(121), 131-140. doi: 10.22092/asj.2018.116366.1577 [In Persian]
Papajcsik, I. A., & Bodero, J. (1988). Modelling lactation curves of Friesian cows in a subtropical climate. Animal Science, 47(2), 201-207. doi: 10.1017/S0003356100003275
Pinheiro, J., Bates, D., DebRoy, S., Sarkar, D., Heisterkamp, S., & Van Willigen, B. (2016). R Core Team. nlme: linear and nonlinear mixed effects models. R package version 3.1-128. Available at http://CRAN.Rproject.org/package=nlme/ (accessed 15 May 2021).
Saikkonen, P. (1991). Asymptotically efficient estimation of cointegration regressions. Econometric Theory, 7(1), 1-21.
Shahroodi, N. , Rokouei, M. , Faraji- Arough, H. , Maghsoudi, A. and Kykha Saber, M. (2021). Comparison of some non-linear mathematical models to describe the growth curve of Sistani calves. Journal of Animal Production, 23(4), 491-500. doi: 10.22059/jap.2021.326557.623626 [In Persian]
Stock, J. H., & Watson, M. W. (1993). A simple estimator of cointegrating vectors in higher order integrated systems. Econometrica: Journal of the Econometric Society, 783-820.
Tajik khari, M., Salehi, A., Peykani Macciani, Gh., & Asadi Alamuti, A. (2024). Analysis of profitability opportunities derived from breeding a dairy cattle herd (Case study: An industrial dairy cattle herd unit in Tehran province. Journal of Animal Production, 26(1), 111-121. doi: 10.22059/jap.2024.360422.623745 [In Persian]
Takma, Ç. İ. Ğ. D. E. M., & Akbaş, Y. A. V. U. Z. (2007). Estimates of genetic parameters for test day milk yields of a Holstein Friesian herd in Turkey with random regression models. Archives Animal Breeding, 50(4), 327-336.
Tawhidi Mehr, H. (2021). Determining the optimal economic age of fattening in calf fattening units (case study: livestock breeding complex of Qom province). Master's thesis in Agricultural Economics. University of Tehran, Karaj, Iran.
Wilmink, J. B. M. (1987). Adjustment of test-day milk, fat and protein yield for age, season and stage of lactation. Livestock Production Science, 16(4), 335-348. doi: 10.1016/0301-6226(87)90003-0
Wood, P. D. P. (1967). Algebraic model of the lactation curve in cattle. Nature, 216(5111), 164-165.
Zakizadeh, S. , Saghi, D. A., & Memarian, H. (2020). Mathematical description of growth curve in Kurdish sheep using artificial neural network and its comparison with non-linear models. Animal Production Research9(1), 45-59. doi: 10.22124/ar.2020.13212.1411 [In Persian]