Hostname: page-component-74656f9884-qr5l4 Total loading time: 0 Render date: 2026-11-04T17:58:05.900Z 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
Rights & Permissions [Opens in a new window]

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.
Figure 0

Table 1. Extracted features for each breeding cycle

Figure 1

Figure 1. Sequence length distribution pre- and post-augmentation, highlighting the substantial increase in the number of sequences.

Figure 2

Figure 2. An LSTM cell (Jiang et al., 2019).

Figure 3

Figure 3. Structure of a bidirectional LSTM (BiLSTM) model.

Figure 4

Figure 4. Final architecture of RNN models (LSTM and BiLSTM) and MLP.

Figure 5

Figure 5. Comparison of mean absolute error (MAE) for different models over 10 training runs, each initiated with distinct random weights and different shuffling of data splits.

Figure 6

Table 2. Average of evaluation metrics for 10 training runs