Hostname: page-component-68c7f8b79f-gx2m9 Total loading time: 0 Render date: 2025-12-23T10:29:06.268Z Has data issue: false hasContentIssue false

Prediction of calving to conception interval (days open) in dairy cows using recurrent neural networks

Published online by Cambridge University Press:  23 December 2025

Mahdi Ravakhah*
Affiliation:
Department of Computer Engineering, Mashhad Branch, Islamic Azad University, Mashhad, Iran Research Center of Smart Distribution Networks, Mashhad Branch, Islamic Azad University, Mashhad, Iran
Mohammad Alishahi
Affiliation:
Department of Computer Engineering, Mashhad Branch, Islamic Azad University, Mashhad, Iran Research Center of Smart Distribution Networks, Mashhad Branch, Islamic Azad University, Mashhad, Iran
Mohammad Mahdi Gheysari Gholami
Affiliation:
Department of Computer Engineering, Ferdowsi University of Mashhad, Mashhad, Iran
*
Corresponding author: Mahdi Ravakhah; Email: ravakhah@iau.ac.ir

Abstract

This research paper addresses the hypothesis that sequence-based long short-term memory (LSTM) architectures improve the prediction of the next DO (days open) relative to a feed-forward multi-layer perceptron and a Cox model under strictly temporally valid predictors. Modern dairy farming can heavily benefit from optimising ‘days open’ for profitability and animal welfare. Machine learning can forecast this metric, improving farm management, disease prevention and culling decisions. This study used a dataset of 16,472 breeding records. The study compared the performance of feed-forward neural networks and two types of recurrent neural networks (RNNs). The results showed that LSTM most accurately forecasted the next ‘days open’. This demonstrates that RNN models, due to their ability to capture temporal patterns in the data, significantly outperform feed-forward and traditional statistical methods in terms of mean absolute error and concordance.

Information

Type
Research Article
Copyright
© The Author(s), 2025. Published by Cambridge University Press on behalf of Hannah Dairy Research Foundation.

Access options

Get access to the full version of this content by using one of the access options below. (Log in options will check for institutional or personal access. Content may require purchase if you do not have access.)

Article purchase

Temporarily unavailable

References

Bahonar, A, Azizzadeh, M, Stevenson, M, Vojgani, M and Mahmoud, M (2009) Factors affecting days open in Holstein dairy cattle in Khorasan Razavi Province, Iran; A Cox proportional hazard model. Journal of Animal and Veterinary Advances 8, 747754.Google Scholar
Cox, DR (1972) Regression models and life-tables. Journal of the Royal Statistical Society: Series B (Methodological) 34, 187202.10.1111/j.2517-6161.1972.tb00899.xCrossRefGoogle Scholar
Eicker, SW, Gröhn, YT and Hertl, JA (1996) The association between cumulative milk yield, days open, and days to first breeding in New York Holstein Cows. Journal of Dairy Science 79, 235241.10.3168/jds.S0022-0302(96)76356-7CrossRefGoogle ScholarPubMed
Ekonomou, L, Fotis, GP, Maris, TI and Liatsis, P (2007) Estimation of the electromagnetic field radiating by electrostatic discharges using artificial neural networks. Simulation Modelling Practice and Theory 15, 10891102.10.1016/j.simpat.2007.07.003CrossRefGoogle Scholar
Farin, PW, Slenning, BD, Correa, MT and Britt, JH (1994) Effects of calving season and milk yield on pregnancy risk and income in North Carolina Holstein Cows1. Journal of Dairy Science 77, 18481855.10.3168/jds.S0022-0302(94)77126-5CrossRefGoogle Scholar
Fotis, GP, Ekonomou, L, Maris, TI and Liatsis, P (2007) Development of an artificial neural network software tool for the assessment of the electromagnetic field radiating by electrostatic discharges. IET Science, Measurement & Technology 1, 261269.10.1049/iet-smt:20060137CrossRefGoogle Scholar
Harman, JL, Casella, G and Gröhn, YT (1996) The application of event-time regression techniques to the study of dairy cow interval-to-conception. Preventive Veterinary Medicine 26, 263274.10.1016/0167-5877(95)00553-6CrossRefGoogle Scholar
Hochreiter, S and Schmidhuber, J (1997) Long short-term memory. Neural Computation 9, 17351780.10.1162/neco.1997.9.8.1735CrossRefGoogle ScholarPubMed
Jiang, C, Chen, Y, Chen, S, Bo, Y, Li, W, Tian, W and Guo, J (2019) A mixed deep recurrent neural network for MEMS gyroscope noise suppressing. Electronics 8, https://doi.org/10.3390/electronics8020181CrossRefGoogle Scholar
Keceli, AS, Catal, C, Kaya, A and Tekinerdogan, B (2020) Development of a recurrent neural networks-based calving prediction model using activity and behavioral data. Computers and Electronics in Agriculture 170, 105285.10.1016/j.compag.2020.105285CrossRefGoogle Scholar
Kingma, DP and Ba, J (2014) Adam: a method for stochastic optimization. arXiv:1412.6980. Available at https://ui.adsabs.harvard.edu/abs/2014arXiv1412.6980K (accessed August 2023).Google Scholar
Kolacz, R, Jaśkowski, J and Ciorga, M (2020) Effects of health disorders, genetic modifications and new technologies on the welfare of dairy cattle. Medycyna Weterynaryjna 76, 6468–2020.10.21521/mw.6468CrossRefGoogle Scholar
Lee, LA, Ferguson, JD and Galligan, DT (1989) Effect of disease on days open assessed by survival analysis. Journal of Dairy Science 72, 10201026.10.3168/jds.S0022-0302(89)79197-9CrossRefGoogle ScholarPubMed
Lin, D, Kenéz, Á, McArt, JAA and Li, J (2023) Transformer neural network to predict and interpret pregnancy loss from activity data in Holstein dairy cows. Computers and Electronics in Agriculture 205, 107638.10.1016/j.compag.2023.107638CrossRefGoogle Scholar
Liseune, A, Salamone, M, Van den Poel, D, van Ranst, B and Hostens, M (2021) Predicting the milk yield curve of dairy cows in the subsequent lactation period using deep learning. Computers and Electronics in Agriculture 180, 105904.10.1016/j.compag.2020.105904CrossRefGoogle Scholar
Louca, A and Legates, JE (1968) Production losses in dairy cattle due to days open1. Journal of Dairy Science 51, 573583.10.3168/jds.S0022-0302(68)87031-6CrossRefGoogle Scholar
Ma, N, Pan, L, Chen, S and Liu, B (2020) NB-IoT estrus detection system of dairy cows based on LSTM networks. 2020 IEEE 31st Annual International Symposium on Personal, Indoor and Mobile Radio Communications.10.1109/PIMRC48278.2020.9217214CrossRefGoogle Scholar
Maizon, DO, Oltenacu, PA, Gröhn, YT, Strawderman, RL and Emanuelson, U (2004) Effects of diseases on reproductive performance in Swedish Red and White dairy cattle. Preventive Veterinary Medicine 66, 113126.10.1016/j.prevetmed.2004.09.002CrossRefGoogle ScholarPubMed
Olds, D, Cooper, T and Thrift, FA (1979) Effect of days open on economic aspects of current lactation1. Journal of Dairy Science 62, 11671170.10.3168/jds.S0022-0302(79)83391-3CrossRefGoogle Scholar
Pascanu, R, Mikolov, T and Bengio, Y (2012) On the difficulty of training recurrent neural networks. arXiv:1211.5063. Available at https://ui.adsabs.harvard.edu/abs/2012arXiv1211.5063P (accessed August 2023).Google Scholar
Peng, Y, Kondo, N, Fujiura, T, Suzuki, T, Wulandari, YH and Itoyama, E (2019) Classification of multiple cattle behavior patterns using a recurrent neural network with long short-term memory and inertial measurement units. Computers and Electronics in Agriculture 157, 247253.10.1016/j.compag.2018.12.023CrossRefGoogle Scholar
Pinedo, PJ and De Vries, A (2010) Effect of days to conception in the previous lactation on the risk of death and live culling around calving. Journal of Dairy Science 93, 968977.10.3168/jds.2009-2408CrossRefGoogle ScholarPubMed
Plaizier, JCB, King, GJ, Dekkers, JCM and Lissemore, K (1997) Estimation of economic values of indices for reproductive performance in dairy herds using computer simulation. Journal of Dairy Science 80, 27752783.10.3168/jds.S0022-0302(97)76240-4CrossRefGoogle ScholarPubMed
Rafael, JSSB (2023) LSTM models to support the selective antibiotic treatment strategy of dairy cows in the dry period. Available at http://hdl.handle.net/10362/148602 (accessed August 2023).Google Scholar
Rumelhart, DE, Hinton, GE and Williams, RJ (1988) Learning representations by back-propagating errors. In Anderson, JA and Rosenfeld, E (eds), Neurocomputing. Foundations of Research. Cambridge, MA, USA: The MIT Press, Vol. 1, p. 0.Google Scholar
Singla, B, Jain, AK, Tiwari, RG, Kukreja, V and Sharma, V (2023) Classification model using CNN and LSTM for cow pregnancy. 2023 10th International Conference on Signal Processing and Integrated Networks (SPIN).10.1109/SPIN57001.2023.10117172CrossRefGoogle Scholar
Temesgen, MY, Assen, AA, Gizaw, TT, Minalu, BA and Mersha, AY (2022) Factors affecting calving to conception interval (days open) in dairy cows located at Dessie and Kombolcha towns, Ethiopia. PLoS One 17, e0264029.10.1371/journal.pone.0264029CrossRefGoogle ScholarPubMed
Tieleman, T and Hinton, G (2012) Lecture 6.5-rmsprop: divide the gradient by a running average of its recent magnitude. YouTube. Available at https://youtu.be/SJ48OZ_qlrc?si=ps-5-cCGXnBj8Ijs (accessed August 2023).Google Scholar
Tyrrell, HF and Reid, JT (1965) Prediction of the energy value of cow's milk1, 2. Journal of Dairy Science 48, 12151223.10.3168/jds.S0022-0302(65)88430-2CrossRefGoogle Scholar
Wang, R, Bai, Q, Gao, R, Li, Q, Zhao, C, Li, S and Zhang, H (2022) Oestrus detection in dairy cows by using atrous spatial pyramid and attention mechanism. Biosystems Engineering 223, 259276.10.1016/j.biosystemseng.2022.08.018CrossRefGoogle Scholar
Wu, D, Wu, Q, Yin, X, Jiang, B, Wang, H, He, D and Song, H (2020) Lameness detection of dairy cows based on the YOLOv3 deep learning algorithm and a relative step size characteristic vector. Biosystems Engineering 189, 150163.10.1016/j.biosystemseng.2019.11.017CrossRefGoogle Scholar
Yin, X, Wu, D, Shang, Y, Jiang, B and Song, H (2020) Using an EfficientNet-LSTM for the recognition of single Cow's motion behaviours in a complicated environment. Computers and Electronics in Agriculture 177, 105707.10.1016/j.compag.2020.105707CrossRefGoogle Scholar
Zhang, W, Yang, K, Yu, N, Cheng, T and Liu, J (2020) Daily milk yield prediction of dairy cows based on the GA-LSTM algorithm. 2020 15th IEEE International Conference on Signal Processing (ICSP).10.1109/ICSP48669.2020.9320926CrossRefGoogle Scholar