Next Article in Journal
Functional Characterization of 11 Tentative Microneme Proteins in Type I RH Strain of Toxoplasma gondii Using the CRISPR-Cas9 System
Previous Article in Journal
Morpho-Geometric Description of the Skulls and Mandibles of Brown Bears (Ursus arctos) from the Dancing Bear Belitsa Park
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Discrete Homogeneous and Non-Homogeneous Markov Chains Enhance Predictive Modelling for Dairy Cow Diseases

1
Department of Systems Engineering, Faculty of Economics and Management, Czech University of Life Sciences Prague, Kamycka 129, Suchdol, 165 00 Prague, Czech Republic
2
Department of Animal Science, Faculty of Agrobiology, Food and Natural Resources, Czech University of Life Sciences Prague, Kamycka 129, Suchdol, 165 00 Prague, Czech Republic
*
Author to whom correspondence should be addressed.
Animals 2024, 14(17), 2542; https://doi.org/10.3390/ani14172542 (registering DOI)
Submission received: 6 August 2024 / Revised: 29 August 2024 / Accepted: 30 August 2024 / Published: 1 September 2024

Abstract

:

Simple Summary

Managing cow diseases effectively remains a major challenge in dairy farming. Our study introduces a simple model for predicting dairy cow diseases. To develop this model, we used categorized data and Markov chains to select the best prediction model based on minimal error distance. The results show that our model is not only highly accurate and reliable but also easy to use, even in low-tech farms. Our methodological approach can capture various data structures in different volumes and qualities, demonstrating its versatility and adaptability to a wide range of herd sizes. This universal applicability enables us to evaluate entire herds, regardless of size. Furthermore, while each farm records diseases differently, our model can accommodate these variations. As such, this model may help dairy farmers manage herd health, predict antibiotic costs, and plan farming strategies.

Abstract

Modelling and predicting dairy cow diseases empowers farmers with valuable information for herd health management, thereby decreasing costs and increasing profits. For this purpose, predictive models were developed based on machine learning algorithms. However, machine-learning based approaches require the development of a specific model for each disease, and their consistency is limited by low farm data availability. To overcome this lack of complete and accurate data, we developed a predictive model based on discrete Homogeneous and Non-homogeneous Markov chains. After aggregating data into categories, we developed a method for defining the adequate number of Markov chain states. Subsequently, we selected the best prediction model through Chebyshev distance minimization. For 14 of 19 diseases, less than 15% maximum differences were measured between the last month of actual and predicted disease data. This model can be easily implemented in low-tech dairy farms to project costs with antibiotics and other treatments. Furthermore, the model’s adaptability allows it to be extended to other disease types or conditions with minimal adjustments. Therefore, including this predictive model for dairy cow diseases in decision support systems may enhance herd health management and streamline the design of evidence-based farming strategies.

1. Introduction

Dairy farming improves human welfare globally. Directly or indirectly, the dairy sector employs approximately 240 million people and provides a livelihood for up to one billion people worldwide. Furthermore, milk production promotes female empowerment [1], as well as sustainable production and consumption patterns [2] and water and sanitation management [3], in line with sustainable development goals (SDGs) 10, 12 and 6, respectively. In turn, increasing dairy intake reduces healthcare costs [4] and inequalities in food security and nutrition [5]. The need for sustainable livestock production in response to challenges is using a farm animal algorithm in order to address the population increase and avoid food problems in the future [6].
Milk production and reproduction are influenced by a multitude of factors that complement each other [7,8] and can be useful in diagnosing various problems and diseases. In dairy cattle, a wide range of diseases occur, from reproductive tract issues to problems with the mammary gland [9,10] and limbs [11], and even metabolic diseases [12] affecting the general resilience of dairy cows [13]. Most of these diseases have significant economic implications due to reduced milk yield and, for example, the necessity for early culling of dairy cows. Dairy cow diseases considerably decrease farm productivity [14]. In addition to adversely affecting animal welfare by causing pain and discomfort [15], dairy cow diseases such as digital dermatitis decrease milk yield [16] and lead to fertility problems [17]. Making matters worse, diseases like mastitis can affect milk quality and safety, posing risks to human health [18]. Due to increased veterinary costs and loss of livestock, these diseases financially strain dairy farms, which incur high economic losses [19]. Minimizing such economic losses may require a one-health approach to dairy production [20], including research on disease prevention and modelling.
Modelling and predicting dairy cow diseases using precision livestock farming approaches [21] and/or enhancing cattle production and management through convolutional neural networks [22] provides dairy farmers with valuable information for effective herd health management through strategies specifically designed to tackle each disease individually [23,24]. Projecting disease occurrences enables dairy farmers to improve animal health [25]. As a result, dairy farmers not only observe a positive impact on animal health [26] but also increase their profitability [27], primarily by decreasing costs with antibiotics [28].
Predictive models for dairy cow diseases were developed based on several research directions. Dairy diseases can be detected with wearable precision dairy technologies [29,30] and processed at the disease with machine learning [31]. In practice, machine learning algorithms were applied to project lameness [32] and combined with sensor data to predict mastitis [33]. However, machine learning-based approaches require developing a specific model for each disease. Conversely, other models can predict diseases at the herd level by regularly collecting herd summary data and applying parametric and nonparametric approaches to forecast herd health conditions, but not at the disease level [34]. Therefore, developing a model for simultaneously predicting several diseases may demand alternative approaches, such as Markov chains.
Markov chains have already been applied for cow behavior analysis and calving time prediction [35]. A Markov chain model with two states, shedding and non-shedding, was developed to analyze Listeria monocytogenes fecal shedding in dairy cattle [36]. Furthermore, Hidden Markov models were used to project healthy or diseased states based on monthly somatic cell scores of dairy cows with or without clinical mastitis [37] and to detect lameness in image records of cow movements [38]. However, as in the machine learning studies described above, low data availability limits the consistency of these models [39]. Nevertheless, a Markov chain model was integrated with a daily dynamic programming model to assess the effect of reproductive performance on dairy cattle herd value [40].
The present study aims at leveraging Markov chains to effectively model and predict the progression and occurrence of dairy cow diseases during lactation towards improving decision-making [41,42,43], and farm management about herd health and cutting costs [44].

2. Materials and Methods

2.1. Data Description

A dataset of 36 diseases was collected for 750 dairy cows of a herd housed in a farm located in the Czech Republic during the six-year period from 1 January 2018 to 7 December 2023, totaling 2167 days. This dataset contained the count of occurrences of each dairy cow disease monitored daily during the study period.
The data were continuously collected by the dairy farm’s zootechnician and subsequently processed using Python scripts. During the data pre-processing stage, it was essential to carry out extensive data cleaning, including the standardization of data formats and the removal of duplicate entries. These steps were critical to ensure the reliability and consistency of the dataset used in our analysis.
Table 1 presents a statistical summary of these disease data.
The data outlined in Table 1 highlight the low occurrence of most diseases in this dairy farm.

2.2. Statistical Methods

To assess differences in dairy cow disease occurrences during the study period, we performed the nonparametric Kruskal–Wallis test using time series data for each disease. Based on the results from this test, we identified significant quarterly differences in variables for each disease (the significance level for this study is set to 5%).

2.3. Criteria for Model Selection

Initially, we analyzed the data to identify frequent diseases. For such diseases, we applied the Markov Chain model; otherwise, we used the Elementary probability model.
For each disease i = 1 , 2 , , D , quarter q = 1 , 2 , , Q , and day t = 1 , 2 , , N , two markers are calculated, namely O 1 i , q and O 2 i .
The marker O 1 i , q is equal to zero when disease i does not occur in quarter q ; otherwise, the marker is equal to one. The marker O 1 i , q is calculated according to the following formula:
O 1 i , q = s g n t Q q d i , t
where d i , t is the number of occurrences of dairy disease i on day t , the set Q q consists of all days in quarter q .
The marker O 2 i expresses the number of days disease i occurs throughout the monitoring period. This marker is calculated according to the following formula:
O 2 i = t N s g n d i , t
where d i , t is the number of occurrences of dairy disease i on day t and N represents the set of all monitoring days.
The decision to use the Elementary probability model or the Markov Chain model is made based on the relative number of quarters i and on the relative number of days i during which the disease occurs. Two indexes are calculated F 1 i and F 2 i as follows:
F 1 i = k = 1 n O 1 i , k Q
where Q is number of monitored quarters.
F 2 i = O 2 i N
where N is total number of monitored days.
The following rule for model selection is applied:
I f   F 1 i > 0.5   a n d   F 2 i > 0.01 ,   t h e n   t h e   M a r k o v   C h a i n   m o d e l   i s   u s e d ; o t h e r w i s e   i f   F 1 i 0.5   o r   F 2 i 0.01 ,   t h e   E l e m e n t a r y   P r o b a b i l i t y   m o d e l   i s   u s e d .

2.4. Description of the Model

2.4.1. Classical Probabilistic Model

The classical probability model is chosen if a rare disease occurrence is assumed based on the Formula (5). Two states are then considered: 0—the disease does not occur, and 1—the disease occurs. The probability p ^ i , 1 of the occurrence of the disease i is calculated as a relative frequency using the following formula:
p ^ i , 1 = t = 1 N T d ( i , t ) N T
where d i , t is the number of occurrences of dairy disease i on day t , N is the total number of days, and T is the number of the last days used to test the prediction (Figure 1 and Figure 2).
Accordingly, the probability p ^ i , 0 of non-occurrence of disease i is calculated using the following formula:
p ^ i , 0 = 1 p ^ i , 1
The accuracy of this model is tested by comparing its results with real data using Chebyshev distance, which is particularly suitable for highlighting the maximum deviation between predicted and actual values, thereby providing a clear measure of the model’s worst-case error performance.

2.4.2. Discrete Markov Chain Model

A Markov chain is a stochastic process that models the probability of transition from one state to another, where the next state depends only on the current state and not on the sequence of events that preceded it (the “memoryless” property). If the Discrete Markov chain model was selected in the previous phase to predict disease occurrence based on Formula (5), discrete Homogeneous (HMC) or Non-homogeneous (NHMC) Markov chain model accuracy is tested using Chebyshev distance. For this purpose, the Markov chain states are defined first, and then either the Transition matrix is calculated for the HMC model or the four Transition matrices are calculated for the NHMC model and each season. After the predictions, the accuracy of the model is calculated using Chebyshev distance to compare the results with real data.
To clarify the differences between the models, a Homogeneous Markov Chain (HMC) assumes that the transition probabilities remain constant over quarters, which simplifies the modeling process when disease occurrence patterns are relatively stable throughout the year. On the other hand, a Non-homogeneous Markov Chain (NHMC) allows transition probabilities to vary over quarters, capturing temporal or seasonal variations in disease dynamics. This flexibility in the NHMC model is crucial for scenarios where disease progression is influenced by seasonal factors, making it a more suitable choice when the data suggest periodic changes in disease occurrence.
  • Step 1—Definition of the states of the Markov chain model
The states of the Markov chain model are defined as the number of dairy cows affected by the disease per day. All states form the set 0 , 1 , 2 , , M , where M is the number of dairy cows, 0 means that no dairy cow is affected by the disease per day, and M means that all dairy cows are affected by the disease per day. However, only a smaller number k M of cows is affected usually. Therefore, the real set of states of disease i is
S ( i ) = s 0 , s 1 , , s K 1 , s K = 0 ,   1 , , max t = 1 , , N T ( d i , t ) 1 , max t = 1 , , N T ( d i , t )
where d i , t is the number of occurrences of dairy cow disease i on day t .
If the probability of states referring to the highest number of disease occurrences per day is very low, the following subset S R ( i ) of the set of states S ( i ) of the Markov chain model is used:
S R ( i ) S ( i )
where 0, 1, …, R are elements of S R ( i ) ,   R K , and state R aggregates all other { s R , s R + 1 , , s K } states.
  • Step 2—Homogenous Markov Chain
Assuming the homogeneity of the process during the monitoring period, we first determine the Transition matrices for all possible numbers of states R (Figure 1). For each disease i , the transition probabilities are calculated using the following formula:
P R i = p R i , 1 , 1 p R i , 1 , 2 p R i , 1 , R p R i , 2 , 1 p R i , R , 1 p R i , R , R where   p R i , a , b = t = 1 N T c a b i , t b S R i t = 1 N T c a b i , t
where p R i , a , b , a , b = 1 , 2 , , R , is the probability of the transition from state a sick dairy cows to state b sick dairy cows, N is the count of all days, T is the length of the predicted period, and c a b i , t is equal to either 1 if the transition from state a to state b occurs in time t or 0 otherwise.
At the end, the transition matrix is calculated for all reasonable R for which K / 2 R K because a smaller number of states would not describe the numbers of sick cows well enough.
State probabilities for each disease i = 1 , , N are predicted as follows:
p ^ R T i = p i n i t · P R T i = p i n i t · P R i · P R i · · P R i
where p ^ R T ( i ) = ( p ^ R i , 0 , p ^ R i , 1 , , p ^ R i , R ) is the predicted distribution of states probabilities in predicted period T , p i n i t is vector of initial state probabilities with dimension R with all zeros, except the state describing the last count of occurrences of disease i , where its value is 1, P R T i = P R i · P R i · · P R i is the transition matrix from time N T + 1 to N , i.e., T -th power of matrix P R i , and T is the length of the predicted period.
The best value R * is selected based on Chebyshev distance minimization to identify the best predictive accuracy:
R * = a r g min R = K / 2 , , K max j = 1 , , R p ^ r T i , j t = N T + 1 N c j i , t T
where p ^ r T ( i , j ) is a j -th element of the vector p ^ R T i , i.e., predicted probability of state j , and c j i , t is equal to either 1 if j dairy cows were sick with disease i in time t or 0 otherwise.
Based on predicted state probabilities the mean value of disease occurrences per day can be calculated as:
m ^ i = p ^ R T i · ( 0 , 1 , 2 , , R * )
The mean value of disease occurrences per day, m ^ i , is calculated as the scalar product of two vectors: the vector of predicted state probabilities p ^ R T i and the transposed vector of possible disease occurrence states ( 0 , 1 , 2 , , R * ) .
  • Step 3—Non-Homogenous Markov Chain
If the quarter data show a non-homogeneous process, all four quarterly transition matrices must be calculated, that is, one for each predicted quarter (Figure 2).
These four transition matrices are then tested using Formulas (10)–(12) regarding the split time span.

2.5. Calculation of the Prediction Model for Dairy Cow Diseases

Figure 3 shows a flow diagram of the individual steps taken in the process of predicting the number of sick cows in a specific period.
Markov chain model was implemented, calculated, and tested using Python programming language.

3. Results

In this study, we used three mathematical models, namely Elementary Probability and discrete HMC and NHMC models, to predict the probability distribution of dairy cow diseases in the next one and two months.

3.1. Rare Diseases

The results of the prediction of disease occurrences in the next month, assuming that F 1 i 0.5   o r   F 2 i 0.01 , are presented in Table 2. The predicted probabilities of disease occurrences are computed using the Elementary probability model expressed by Formulas (6) and (7).

3.2. Prevalent Diseases

The HMC model was first applied to predict the state probabilities in the next one (model HMC30) and two (model HMC60) months. The results of the prediction of disease occurrences in the next months, assuming that F 1 i > 0.5   a n d   F 2 i > 0.01 , are presented in Table 3.
For the next month, the mean Chebyshev distance was 0.132, and the median value was 0.104. For the next two months, the predictive performance of the Markov chain model reached a mean Chebyshev distance of 0.189, with a median value of 0.2. The maximum deviations of Chebyshev distance were observed when predicting the occurrence of ‘Necrobacillosis’ and ‘Mastitis LF’ using the HMC model.
As shown in Appendix A, the mean value of the first state (healthy herd) across all records was approximately 0.761 for one month and 0.761 for two months. These values highlight the healthy state of the dairy herd.
The NHMC model was then applied to predict the probability distribution for the next one and two months. The NHMC results are presented in Table 4. Transition matrices were calculated separately for each quarter. The mean Chebyshev distance was 0.12, and the median value was 0.088 for one month of prediction. The predictive performance of the NHMC model for the next two months reached a mean Chebyshev distance of 0.101, with a median value of 0.074. As shown in Appendix A, the mean value of the first state was approximately 0.731 for the next month and 0.732 for the next two months, across all records. These results demonstrate the healthy state of the dairy herd.
The results enabled us to compare two approaches, namely the HMC and the NHMC models, to assess their accuracy using Chebyshev distance. For one and two months, the predictive accuracy of the HMC model was 0.132 and 0.189, respectively. In turn, for the same intervals, the predictive accuracy of the NHMC model was 0.144 and 0.101, respectively. Thus, HMC is more accurate than NHMC. For all diseases, the mean probability of the non-occurrence of the disease was higher than 79%.

3.3. Analysis of the Results

In this section, we analyze the results from the predictive model for diseases Metabolic problems, Mastitis RB and Reproduction problems, respectively.

3.4. Metabolic Problems

The mean value of the expected number of occurrences per day is 0.482, according to the HMC model. Even the histogram (Figure 4) of the probability of the number of metabolic problems shows that the state of no disease occurs on more than 72% of the days and the result accuracy of the HMC model has 0.05 measured by the Chebyshev distance.

3.5. Mastitis RB

The expected mean value of Mastitis RB disease occurrences per day is 1.196. According to the histogram (Figure 5) of probabilities of the number of sick dairy cows shown in Figure 5, the state of no disease occurs in less than 52% of the days rounded on decimals.

3.6. Reproduction Problems

The expected number of these diseases was 10.892 per day predicted by the homogenous Markov chain model for the next 30 days with an accuracy of 0.145 measured by Chebyshev distance. According to the histogram shown in Figure 6 of the probabilities of the number of dairy disease occurrences per day, the state of no disease occurs in less than 46% of the days. These results highlight the need to prepare for a relatively high number of 10 sick dairy cows per day.

4. Discussion

To effectively model and predict the progression and occurrence of dairy cow diseases during lactation, we selected Markov chain models because the number of dairy cows with a disease in a forecasted period depends on the number of cows with this disease in the previous period [45]. Based on our data analysis and on the accuracy of the results, we further selected HMC rather than NHMC. The HMC model can be used to support the decision-making process in estimating the number of individual diseases, monitoring the development of herd health status and determining the appropriate intensity of veterinary services in dairy farms.
Our HMC model is applicable as a prediction tool for dairy cow diseases in a wide range of dairy farms, regardless of their technological level [46]. As a predictive component, this model may also be integrated into a decision support system to improve our ability to predict and manage the health conditions of dairy herds [47], in addition to supporting effective decision-making by predicting potential health outcomes. Leveraging advanced statistical methods for short-term forecasting, this new methodological approach can significantly enhance decision support by capturing various data structures in different volumes and qualities. In addition, this model can be applied to herds of different sizes worldwide to evaluate entire herds from a specific number of animals. Thus, our model enables proactive dairy health management strategies.
During its use, the Markov chain must be updated, which entails updating the values of the matrix of transition probabilities either immediately with each forecast query or after a predetermined period. Because the former approach has the disadvantage of overestimating even instantaneous fluctuations, the latter seems more appropriate. However, this approach requires moving the time window. To this end, the recommended length of forecasts is one-fifth of the length of the time series, but predictions over longer periods are also feasible, up to a quarter.
The accuracy of our HMC and NHMC models in predicting the number of diseases of dairy cows did not significantly differ from that of a similar study using an NHMC model in different time periods [48]. However, nonhomogeneous Markov chain prediction [49] using appropriate intervals is a feasible alternative for further research and experiments with disease time series aimed at detecting sub-trends.

Practical Use

Our model may be used as a Markov Chain Decision Process (MCDP) to project individual diseases, thereby assessing veterinarian needs in dairy farms. Based on two different actions, our model enables us to measure differences in two mean values and to increase health state probability. As a prediction tool for dairy cow diseases, this framework is applicable to a wide range of dairy farms, including low-tech farms [46]. Unlike precision livestock farming (PLF) applications, which often require substantial investment in technological infrastructure and real-time sensor data, our model provides a statistically robust alternative that remains accessible and effective for farms with limited resources or lower levels of technological advancement. This makes it particularly suitable for low-tech or smaller-scale operations, where the implementation of PLF systems may be cost-prohibitive. As a predictive component, its incorporation into a Dairy Disease Decision Support System (DSS) may enhance dairy herd health prediction and management [47], effectively supporting decision-making by forecasting potential health outcomes and, therefore, enabling proactive management strategies. This novel approach to statistically leverage data to predict short-term trends supports decision-making processes.

5. Conclusions

Our Markov chain model is a promising tool for predicting the occurrence of dairy cow diseases in the next month. With practical adaptations, this model can be efficiently implemented in dairy farms for farmers to gather useful information for farm health management. One of the key advantages of the Markov chain model is its ability to provide accurate predictions even with limited or incomplete data, making it highly applicable in real-world farming conditions. This model can be incorporated into decision support systems for disease prognosis and strategy design in dairy farms to cut costs with antibiotics for individual diseases, monitor the quality of veterinary services and develop dairy health programs based on disease occurrence. Based on the achieved results, extending the design and development of new applications will be an objective for further research.

Author Contributions

Conceptualization, J.S. and L.S.; methodology, J.S. and H.B.; software, J.S. and H.B.; validation, H.B., L.S., J.S. and R.H.; formal analysis, J.S., H.B., J.D. and L.S.; investigation, J.S., J.D., H.B., L.S. and R.H.; resources, L.S. and J.S.; data curation, J.S., J.D., H.B., P.B., R.H. and T.H.; writing—original draft preparation, J.D. and L.S.; writing—review and editing, J.D. and L.S.; visualization, J.S. and P.B.; supervision, H.B. and L.S.; project administration, J.D. and L.S.; funding acquisition, J.D., L.S. and J.S. All authors have read and agreed to the published version of the manuscript.

Funding

This research was funded by the Ministry of Agriculture of the Czech Republic (projects NAZV QK22010270).

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

The data presented in this study are available on request from the corresponding author.

Conflicts of Interest

The authors declare no conflicts of interest.

Appendix A

Table A1. Predicted probability distributions of states with homogeneous and non-homogeneous Markov chains.
Table A1. Predicted probability distributions of states with homogeneous and non-homogeneous Markov chains.
DiseasesHMC 30
Optimal Number of States
HMC 30
Predicted
Distribution
HMC 60
Optimal Number of States
HMC 60
Predicted
Distribution
NHMC 30
Optimal Number of States
NHMC 30
Predicted
Distribution
NHMC 60
Optimal Number of States
NHMC 60
Predicted
Distribution
Eye Injury3[   0.981   0.015   0.004   ]4[   0.981   0.015   0.002   0.002   ]4[   0.947   0.019   0.004   0.03   ]4[   0.945   0.02   0.004   0.031   ]
Postpartum hypocalcemia5[   0.979   0.004   0.01   0.006   0.001   ]4[   0.979   0.004   0.01   0.007   ]4[   0.9 0.007   0.005   0.088   ]4[   0.897   0.007   0.006   0.09   ]
Laminitis4[   0.926   0.05   0.019   0.005   ]4[   0.928   0.05   0.018   0.004   ]4[   0.906   0.057   0.025   0.012   ]5[   0.901   0.055   0.022   0.004   0.018   ]
Retained placenta3[   0.889   0.091   0.02   ]3[   0.89   0.091   0.019   ]3[   0.885   0.092   0.023   ]4[   0.869   0.087   0.02   0.024   ]
Limb Edema4[   0.884   0.082   0.031   0.003   ]3[   0.883   0.083   0.034   ]3[   0.865   0.094   0.041   ]3[   0.859   0.1 0.041   ]
Diarrhea8[   0.896   0.059   0.03   0.008   0.004   0.001   0.001   0.001   ]5[   0.899   0.057   0.029   0.008   0.007   ]5[   0.825   0.072   0.037   0.013   0.053   ]5[   0.837   0.063   0.033   0.014   0.053   ]
High temperature after calving4[   0.818   0.127   0.044   0.011   ]4[   0.816   0.128   0.044   0.012   ]4[   0.82   0.123   0.046   0.011   ]4[   0.813   0.128   0.047   0.012   ]
Uterus9[   0.905   0.041   0.018   0.007   0.01   0.005   0.007   0.004   0.003   ]9[   0.905   0.041   0.017   0.007   0.01   0.005   0.007   0.004   0.004   ]9[   0.875   0.05   0.017   0.004   0.011   0.002   0.002   0.004   0.035   ]9[   0.875   0.051   0.014   0.004   0.012   0.002   0.002   0.004   0.036   ]
High temperature6[   0.765   0.132   0.073   0.02   0.007   0.003   ]4[   0.77   0.132   0.069   0.029   ]6[   0.735   0.124   0.099   0.026   0.011   0.005   ]4[   0.754   0.121   0.086   0.039   ]
Phlegmon4[   0.948   0.034   0.015   0.003   ]4[   0.949   0.032   0.015   0.004   ]5[   0.856   0.049   0.02   0   0.075   ]5[   0.861   0.043   0.021   0   0.075   ]
Respiration5[   0.948   0.032   0.017   0.002   0.001   ]4[   0.947   0.033   0.017   0.003   ]4[   0.921   0.03   0.02   0.029   ]4[   0.918   0.031   0.021   0.03   ]
Endometritis9[   0.891   0.032   0.016   0.011   0.014   0.015   0.007   0.004   0.01   ]9[   0.891   0.033   0.016   0.011   0.014   0.015   0.007   0.004   0.009   ]9[   0.791   0.039   0.023   0.009   0.009   0.014   0.011   0.011   0.093   ]9[   0.788   0.041   0.022   0.009   0.007   0.015   0.007   0.011   0.1   ]
Necrobacillosis5[   0.719   0.173   0.073   0.02   0.015   ]5[   0.721   0.172   0.073   0.019   0.015   ]7[   0.677   0.164   0.067   0.022   0.013   0.002   0.055   ]7[   0.686   0.159   0.065   0.019   0.013   0.002   0.056   ]
Metabolic problems5[   0.721   0.145   0.083   0.033   0.018   ]5[   0.726   0.143   0.084   0.032   0.015   ]6[   0.776   0.117   0.063   0.027   0.011   0.006   ]7[   0.756   0.103   0.061   0.021   0.008   0   0.051   ]
Mastitis RB10[   0.522   0.222   0.105   0.045   0.034   0.018   0.015   0.013   0.012   0.014   ]10[   0.52   0.222   0.104   0.045   0.035   0.018   0.015   0.014   0.012   0.015   ]14[   0.488   0.154   0.09   0.046   0.02   0.019   0.019   0.023   0.02   0.007   0.006   0.001   0.001   0.106   ]10[   0.543   0.171   0.096   0.054   0.023   0.023   0.022   0.027   0.023   0.018   ]
Mastitis RF17[   0.507   0.221   0.112   0.057   0.036   0.017   0.013   0.008   0.007   0.006   0.003   0.004   0.001   0.002   0.001   0.002   0.003   ]16[   0.506   0.219   0.112   0.057   0.036   0.018   0.014   0.008   0.008   0.007   0.003   0.004   0.001   0.002   0.001   0.004   ]11[   0.479   0.191   0.107   0.047   0.025   0.015   0.019   0.008   0.008   0.019   0.082   ]11[   0.48   0.182   0.106   0.049   0.024   0.016   0.021   0.008   0.008   0.02   0.086   ]
Mastitis LB11[   0.503   0.213   0.1 0.05   0.046   0.021   0.017   0.013   0.011   0.007   0.019   ]11[   0.504   0.211   0.099   0.05   0.046   0.021   0.017   0.013   0.012   0.007   0.02   ]11[   0.504   0.229   0.101   0.035   0.04   0.012   0.016   0.015   0.013   0.007   0.028   ]11[   0.508   0.22   0.099   0.035   0.04   0.013   0.017   0.016   0.014   0.007   0.031   ]
Mastitis LF22[   0.195   0.212   0.153   0.121   0.077   0.056   0.042   0.033   0.025   0.019   0.018   0.012   0.009   0.01   0.005   0.006   0.003   0.001   0.002   0   0.001   0   ]13[   0.194   0.209   0.151   0.123   0.078   0.057   0.043   0.033   0.025   0.019   0.018   0.012   0.038   ]14[   0.206   0.206   0.138   0.109   0.061   0.049   0.038   0.028   0.019   0.019   0.016   0.019   0.011   0.081   ]14[   0.204   0.191   0.13   0.115   0.064   0.052   0.04   0.03   0.02   0.02   0.016   0.02   0.012   0.086   ]
Reproduction problems36[   0.456   0   0.001   0.002   0.004   0.009   0.012   0.015   0.025   0.022   0.015   0.017   0.026   0.015   0.023   0.023   0.022   0.021   0.015   0.015   0.015   0.013   0.016   0.016   0.017   0.013   0.012   0.014   0.014   0.015   0.014   0.01   0.01   0.008   0.009   0.066   ]36[   0.456   0   0.001   0.002   0.004   0.009   0.012   0.015   0.026   0.022   0.014   0.018   0.026   0.015   0.022   0.023   0.022   0.021   0.016   0.014   0.015   0.013   0.016   0.016   0.017   0.012   0.012   0.014   0.013   0.016   0.014   0.01   0.01   0.009   0.009   0.066   ]40[   0.425   0   0.002 0.002   0.004   0.007   0.018   0.015   0.009   0.023   0.021   0.034   0.036   0.01   0.017   0.021   0.015   0.018   0.014   0.012   0.007   0.015   0.014   0.016   0.016   0.014   0.011   0.016   0.01   0.011   0.011   0.009   0.009   0.013   0.005   0.007   0.005   0.011   0.005   0.092   ]40[   0.425   0   0.002   0.002   0.004   0.007   0.019   0.016   0.01   0.024   0.019   0.035   0.035   0.01   0.013   0.021   0.015   0.019   0.015   0.011   0.008   0.016   0.013   0.017   0.017   0.013   0.009   0.017   0.009   0.012   0.011   0.008   0.008   0.014   0.006   0.008   0.006   0.011   0.004   0.091   ]
Diseases—names of dairy diseases; HMC30 Opt. number of states R * —Optimal number of states calculated for Homogenous Markov chain model for next 30 days; HMC 30 Predicted Distribution—predicted probability distribution of optimal states for Homogenous Markov chain model for next 30 days; HMC 60 Opt. number of states R * —Optimal number of states calculated for Homogenous Markov chain model for next 60 days; HMC 60 Predicted Distribution—predicted probability distribution of optimal states for Homogenous Markov chain model for next 60 days; NHMC 30 Opt. number of states R * —Optimal number of states calculated for Non-Homogenous Markov chain model for next 30 days; NHMC 30 Predicted Distribution—predicted probability distribution of optimal states for Non-Homogenous Markov chain model for next 30 days; NHMC 60 Opt. number of states R * —Optimal number of states calculated for Non-Homogenous Markov chain model for next 60 days; NHMC 60 Predicted Distribution—predicted probability distribution of optimal states for Non-Homogenous Markov chain model for next 60 days.

References

  1. Kaluwa, C.; Oduma, J.; Abdirahman, F.A.; Kitoga, B.K.; Opondoh, A.A.; Muchibi, J.; Bagnol, B.; Rosenbaum, M.; Onchaga, S.; Stanley, M.; et al. Using the Women Empowerment in Livestock Index (WELI) to Examine Linkages between Women Smallholder Livestock Farmers’ Empowerment and Access to Livestock Vaccines in Machakos County of Kenya: Insights and Critiques. Vaccines 2022, 10, 1868. [Google Scholar] [CrossRef] [PubMed]
  2. Testa, R. Consumption and Production Patterns for Agricultural Sustainable Development. Agronomy 2021, 11, 814. [Google Scholar] [CrossRef]
  3. Shamsuddoha, M.; Nasir, T.; Hossain, N.U.I. A Sustainable Supply Chain Framework for Dairy Farming Operations: A System Dynamics Approach. Sustainability 2023, 15, 8417. [Google Scholar] [CrossRef]
  4. Scrafford, C.G.; Bi, X.; Multani, J.K.; Murphy, M.M.; Schmier, J.K.; Barraj, L.M. Health Care Costs and Savings Associated with Increased Dairy Consumption among Adults in the United States. Nutrients 2020, 12, 233. [Google Scholar] [CrossRef]
  5. Consumption of Meat and Dairy Products in China: A Review|Proceedings of the Nutrition Society|Cambridge Core. Available online: https://www.cambridge.org/core/journals/proceedings-of-the-nutrition-society/article/consumption-of-meat-and-dairy-products-in-china-a-review/346E831729B0A5C1E055A13911A31696 (accessed on 10 July 2024).
  6. Park, S.-O. Application Strategy for Sustainable Livestock Production with Farm Animal Algorithms in Response to Climate Change up to 2050: A Review. Czech J. Anim. Sci. 2022, 67, 425–441. [Google Scholar] [CrossRef]
  7. Vacek, M.; Stádník, L.; Štípková, M. Relationships between the Incidence of Health Disorders and the Reproduction Traits of Holstein Cows in the Czech Republic. Czech J. Anim. Sci. 2007, 52, 227–235. [Google Scholar] [CrossRef]
  8. Vrhel, M.; Ducháček, J.; Gašparík, M.; Vacek, M.; Codl, R.; Pytlík, J. Association between Production and Reproduction Parameters Based on Parity and Breed of Dairy Cows in the Czech Republic. Arch. Anim. Breed. 2024, 67, 197–205. [Google Scholar] [CrossRef]
  9. Kašná, E.; Zavadilová, L.; Krupová, Z.; Šlosárková, S.; Fleischer, P. The Most Common Reproductive Disorders of Cows in Holstein Cattle Breeding. Czech J. Anim. Sci. 2023, 68, 433–442. [Google Scholar] [CrossRef]
  10. Zigo, F.; Vasil’, M.; Ondrašovičová, S.; Výrostková, J.; Bujok, J.; Pecka-Kielb, E. Maintaining Optimal Mammary Gland Health and Prevention of Mastitis. Front. Vet. Sci. 2021, 8, 607311. [Google Scholar] [CrossRef]
  11. Langova, L.; Novotna, I.; Němcová, P.; Machacek, M.; Havlíček, Z.; Zemanová, M.; Chrast, V. Animals Impact of Nutrients on the Hoof Health in Cattle. Animals 2020, 10, 1824. [Google Scholar] [CrossRef]
  12. Kabir, M.; Hasan, M.M.; Tanni, N.S.; Parvin, M.S.; Asaduzzaman, M.; Ehsan, M.A.; Islam, M.T. Metabolic Profiling in Periparturient Dairy Cows and Its Relation with Metabolic Diseases. BMC Res. Notes 2022, 15, 231. [Google Scholar] [CrossRef] [PubMed]
  13. Kašná, E.; Zavadilová, L.; Vařeka, J.; Kyselová, J. General Resilience in Dairy Cows: A Review. Czech J. Anim. Sci. 2022, 67, 475–482. [Google Scholar] [CrossRef]
  14. Fukushima, Y.; Kino, E.; Furutani, A.; Minamino, T.; Honkawa, K.; Horii, Y.; Sasaki, Y. Effect of Major Diseases on Productivity of a Large Dairy Farm in a Temperate Zone in Japan. Dairy 2022, 3, 789–798. [Google Scholar] [CrossRef]
  15. Mainau, E.; Llonch, P.; Temple, D.; Goby, L.; Manteca, X. Alteration in Activity Patterns of Cows as a Result of Pain Due to Health Conditions. Animals 2022, 12, 176. [Google Scholar] [CrossRef] [PubMed]
  16. Relun, A.; Lehebel, A.; Chesnin, A.; Guatteo, R.; Bareille, N. Association between Digital Dermatitis Lesions and Test-Day Milk Yield of Holstein Cows from 41 French Dairy Farms. J. Dairy Sci. 2013, 96, 2190–2200. [Google Scholar] [CrossRef]
  17. Mellado, M.; Saavedra, E.; Gaytán, L.; Veliz, F.G.; Macías-Cruz, U.; Avendaño-Reyes, L.; García, E. The Effect of Lameness-Causing Lesions on Milk Yield and Fertility of Primiparous Holstein Cows in a Hot Environment. Livest. Sci. 2018, 217, 8–14. [Google Scholar] [CrossRef]
  18. Garvey, M. Chronic Bovine Mastitis: A Food Safety Issue and Public Health Hazard. Nutr. Food Sci. Int. J. 2019, 8, 1–6. [Google Scholar] [CrossRef]
  19. Kappes, A.; Tozooneyi, T.; Shakil, G.; Railey, A.F.; McIntyre, K.M.; Mayberry, D.E.; Rushton, J.; Pendell, D.L.; Marsh, T.L. Livestock Health and Disease Economics: A Scoping Review of Selected Literature. Front. Vet. Sci. 2023, 10, 1168649. [Google Scholar] [CrossRef]
  20. Garcia, S.N.; Osburn, B.I.; Cullor, J.S. A One Health Perspective on Dairy Production and Dairy Food Safety. One Health 2019, 7, 100086. [Google Scholar] [CrossRef]
  21. Loučka, R.; Jančík, F.; Kumprechtová, D.; Koukolová, V.; Kubelková, P.; Tyrolová, Y.; Výborná, A.; Joch, M.; Jambor, V.; Synková, H.; et al. Using Precision Livestock Farming for Dairy Herd Management. Czech J. Anim. Sci. 2023, 68, 111–121. [Google Scholar] [CrossRef]
  22. de Dieu Marcel Ufitikirezi, J.; Bumbálek, R.; Zoubek, T.; Bartoš, P.; Havelka, Z.; Kresan, J.; Stehlík, R.; Kuneš, R.; Olšan, P.; Strob, M.; et al. Enhancing Cattle Production and Management through Convolutional Neural Networks. A Review. Czech J. Anim. Sci. 2024, 69, 75–88. [Google Scholar] [CrossRef]
  23. Ries, J.; Jensen, K.C.; Müller, K.E.; Thöne-Reineke, C.; Merle, R. Impact of Veterinary Herd Health Management on German Dairy Farms: Effect of Participation on Farm Performance. Front. Vet. Sci. 2022, 9, 841405. [Google Scholar] [CrossRef] [PubMed]
  24. Ries, J.; Jensen, K.C.; Müller, K.-E.; Thöne-Reineke, C.; Merle, R. Benefits of Veterinary Herd Health Management on German Dairy Farms: Status Quo and Farmers’ Perspective. Front. Vet. Sci. 2022, 8, 773779. [Google Scholar] [CrossRef]
  25. Tremetsberger, L.; Winckler, C. Effectiveness of Animal Health and Welfare Planning in Dairy Herds: A Review. Anim. Welf. 2015, 24, 55–67. [Google Scholar] [CrossRef]
  26. Krpalkova, L.; Cabrera, V.E.; Kvapilik, J.; Burdych, J. Associations of Reproduction and Health with the Performance and Profit of Dairy Cows. Agric. Econ. 2016, 62, 385–394. [Google Scholar] [CrossRef]
  27. Zakova Kroupova, Z. Profitability Development of Czech Dairy Farms. Agric. Econ. 2016, 62, 269–279. [Google Scholar] [CrossRef]
  28. Lhermie, G.; Tauer, L.W.; Gröhn, Y.T. The Farm Cost of Decreasing Antimicrobial Use in Dairy Production. PLoS ONE 2018, 13, e0194832. [Google Scholar] [CrossRef]
  29. Eckelkamp, E.A. Invited Review: Current State of Wearable Precision Dairy Technologies in Disease Detection*. Appl. Anim. Sci. 2019, 35, 209–220. [Google Scholar] [CrossRef]
  30. Magana, J.; Gavojdian, D.; Menahem, Y.; Lazebnik, T.; Zamansky, A.; Adams-Progar, A. Machine Learning Approaches to Predict and Detect Early-Onset of Digital Dermatitis in Dairy Cows Using Sensor Data. Front. Vet. Sci. 2023, 10, 1295430. [Google Scholar] [CrossRef]
  31. Slob, N.; Catal, C.; Kassahun, A. Application of Machine Learning to Improve Dairy Farm Management: A Systematic Literature Review. Prev. Vet. Med. 2021, 187, 105237. [Google Scholar] [CrossRef]
  32. Shahinfar, S.; Khansefid, M.; Haile-Mariam, M.; Pryce, J.E. Machine Learning Approaches for the Prediction of Lameness in Dairy Cows. Animal 2021, 15, 100391. [Google Scholar] [CrossRef] [PubMed]
  33. Tian, H.; Zhou, X.; Wang, H.; Xu, C.; Zhao, Z.; Xu, W.; Deng, Z. The Prediction of Clinical Mastitis in Dairy Cows Based on Milk Yield, Rumination Time, and Milk Electrical Conductivity Using Machine Learning Algorithms. Animals 2024, 14, 427. [Google Scholar] [CrossRef]
  34. Parker Gaddis, K.L.; Cole, J.B.; Clay, J.S.; Maltecca, C. Benchmarking Dairy Herd Health Status Using Routinely Recorded Herd Summary Data. J. Dairy Sci. 2016, 99, 1298–1314. [Google Scholar] [CrossRef]
  35. Maw, S.Z.; Zin, T.T.; Tin, P.; Kobayashi, I.; Horii, Y. An Absorbing Markov Chain Model to Predict Dairy Cow Calving Time. Sensors 2021, 21, 6490. [Google Scholar] [CrossRef]
  36. Ivanek, R.; Gröhn, Y.T.; Jui-Jung Ho, A.; Wiedmann, M. Markov Chain Approach to Analyze the Dynamics of Pathogen Fecal Shedding—Example of Listeria Monocytogenes Shedding in a Herd of Dairy Cattle. J. Theor. Biol. 2007, 245, 44–58. [Google Scholar] [CrossRef]
  37. Detilleux, J.C. A Hidden Markov Model to Predict Early Mastitis from Test-Day Somatic Cell Scores. Animal 2011, 5, 175–181. [Google Scholar] [CrossRef]
  38. Magee, D.R.; Boyle, R.D. Detecting Lameness Using ‘Re-Sampling Condensation’ and ‘Multi-Stream Cyclic Hidden Markov Models’. Image Vis. Comput. 2002, 20, 581–594. [Google Scholar] [CrossRef]
  39. Trapanese, L.; Hostens, M.; Salzano, A.; Pasquino, N. Short Review of Current Limits and Challenges of Application of Machine Learning Algorithms in the Dairy Sector. Acta IMEKO 2024, 13, 1–7. [Google Scholar] [CrossRef]
  40. Kalantari, A.S.; Cabrera, V.E. The Effect of Reproductive Performance on the Dairy Cattle Herd Value Assessed by Integrating a Daily Dynamic Programming Model with a Daily Markov Chain Model. J. Dairy Sci. 2012, 95, 6160–6170. [Google Scholar] [CrossRef]
  41. de Lauwere, C.; van Asseldonk, M.; Bergevoet, R.; Bondt, N. Understanding Decision-Making of Dairy Farmers with Regard to Participation in a Dairy Health Programme. Livest. Sci. 2020, 239, 104061. [Google Scholar] [CrossRef]
  42. Krpalkova, L.; O’ Mahony, N.; Carvalho, A.; Campbell, S.; Corkery, G.; Broderick, E.; Walsh, J. Decision-Making Strategies on Smart Dairy Farms: A Review. Animals 2021, 11, 302. [Google Scholar] [CrossRef]
  43. Saro, J.; Stádník, L.; Bláhová, P.; Huguet, S.; Brožová, H.; Ducháček, J. A Decision Support System Based on Disease Scoring Enables Dairy Farmers to Proactively Improve Herd Health. Czech J. Anim. Sci. 2024, 69, 165–177. [Google Scholar] [CrossRef]
  44. Van Hertem, T.; Maltz, E.; Antler, A.; Romanini, C.E.B.; Viazzi, S.; Bahr, C.; Schlageter-Tello, A.; Lokhorst, C.; Berckmans, D.; Halachmi, I. Lameness Detection Based on Multivariate Continuous Sensing of Milk Yield, Rumination, and Neck Activity. J. Dairy Sci. 2013, 96, 4286–4298. [Google Scholar] [CrossRef] [PubMed]
  45. Serfozo, R. Markov Chains. In Basics of Applied Stochastic Processes; Serfozo, R., Ed.; Springer: Berlin/Heidelberg, Germany, 2009; pp. 1–98. ISBN 978-3-540-89332-5. [Google Scholar]
  46. Cockburn, M. Review: Application and Prospective Discussion of Machine Learning for the Management of Dairy Farms. Animals 2020, 10, 1690. [Google Scholar] [CrossRef] [PubMed]
  47. Alawneh, J.I.; Henning, J.; Olchowy, T.W.J. Functionality and Interfaces of a Herd Health Decision Support System for Practising Dairy Cattle Veterinarians in New Zealand. Front. Vet. Sci. 2018, 5, 21. [Google Scholar] [CrossRef]
  48. Brožová, H.; Růžička, M. The Prediction of Parking Space Availability. Transport 2020, 35, 462–473. [Google Scholar] [CrossRef]
  49. Wilinski, A. Time Series Modeling and Forecasting Based on a Markov Chain with Changing Transition Matrices. Expert Syst. Appl. 2019, 133, 163–172. [Google Scholar] [CrossRef]
Figure 1. Quarters used across multiple years to calculate a single transition matrix for the HMC, with the final set of quarters in 2023 used for model testing.
Figure 1. Quarters used across multiple years to calculate a single transition matrix for the HMC, with the final set of quarters in 2023 used for model testing.
Animals 14 02542 g001
Figure 2. Grouping of quarters across years used to calculate four quarterly transition matrices for the NHMC, with the final set of quarters in 2023 used for model testing.
Figure 2. Grouping of quarters across years used to calculate four quarterly transition matrices for the NHMC, with the final set of quarters in 2023 used for model testing.
Animals 14 02542 g002
Figure 3. Flow diagram of the calculation of the prediction model for dairy cow diseases.
Figure 3. Flow diagram of the calculation of the prediction model for dairy cow diseases.
Animals 14 02542 g003
Figure 4. Predicted probability distribution of metabolic problems—homogenous Markov chain model for next 30 days.
Figure 4. Predicted probability distribution of metabolic problems—homogenous Markov chain model for next 30 days.
Animals 14 02542 g004
Figure 5. Predicted state probability using HMCH of Mastitis RB for next 30 days.
Figure 5. Predicted state probability using HMCH of Mastitis RB for next 30 days.
Animals 14 02542 g005
Figure 6. Predicted state probability using HMCH of Reproduction problems for next 30 days.
Figure 6. Predicted state probability using HMCH of Reproduction problems for next 30 days.
Animals 14 02542 g006
Table 1. Basic statistics—summary data of occurrences of dairy cow disease over 5 years.
Table 1. Basic statistics—summary data of occurrences of dairy cow disease over 5 years.
DiseasesMin
Occurrence
Max OccurrenceSum of All
Occurrences
Mean
Occurrence
SDF1F2
Abscess01.01.00.0000.0210.9580.000
Acidosis01.03.00.0010.0370.9170.001
Tympani03.04.00.0020.0680.9170.001
Bleeding02.05.00.0020.0570.8750.002
Dermatitis02.06.00.0030.0610.8750.002
Pneumonia02.07.00.0030.0710.9580.002
Udder Edema01.07.00.0030.0570.8750.003
Pain01.011.00.0050.0710.8330.005
Nerve Damage02.014.00.0060.0910.7080.006
Jaw Edema02.015.00.0070.0980.8750.006
Postpartum Sepsis04.017.00.0080.1300.8750.005
Damaged Teat02.021.00.0100.1030.7080.009
Torn During Birth03.025.00.0120.1270.6670.010
Digestive Troubles04.028.00.0130.1600.8330.008
Abomasal Dilatation03.032.00.0150.1570.6250.010
Peritonitis02350.0160.1560.7920.012
Mastitis05390.0180.2380.7080.008
Eye Injury03510.0240.1900.4580.018
High somatic in milk06700.0320.3590.8750.011
Postpartum hypocalcemia04970.0450.3310.3330.020
Phlegmon041590.0730.3460.2080.052
Respiration041620.0750.3500.3750.052
Laminitis042260.1040.4150.0830.074
Retained placenta032870.1320.4030.0420.111
Limb Edema033300.1520.4560.0420.116
Diarrhea073720.1720.6040.4170.102
High temperature after calving055410.2500.6040.0000.180
Uterus0145820.2691.1110.1670.096
High temperature058210.3790.7980.0000.235
Endometritis0158340.3851.3690.2080.111
Necrobacillosis069960.4600.8770.0000.287
Metabolic problems0610470.4830.9270.0000.278
Mastitis RB01626431.2202.0070.0000.482
Mastitis RF01928061.2952.2110.0000.493
Mastitis LB01831031.4322.3630.0420.499
Mastitis LF02368513.1623.4880.0000.800
Diseases—names of dairy diseases; Min Occurrence—minimal daily occurrence of dairy disease; Max Occurrence—minimal daily occurrence of dairy disease; Sum of all Occurrences—sum of all occurrences of dairy disease per the whole time period; Mean Occurrence—mean value of occurrences of dairy disease per the whole time period; SD—standard deviation of dairy occurrences per the whole time period; F1—the relative number of quarters i during which the disease occurs (described below); F2—a relative number of occurrence of disease per a total number of monitored days (described below).
Table 2. Basic probability model for predicting rare diseases that do not meet the selection criteria.
Table 2. Basic probability model for predicting rare diseases that do not meet the selection criteria.
DiseasesTotal Sum of Disease
Occurrence
p ^ i , 0 p ^ i , 1
Abscess110.000
Acidosis30.9990.001
Tympani40.9980.002
Bleeding50.9980.002
Dermatitis60.9970.003
Pneumonia70.9970.003
Udder Edema70.9970.003
Pain110.9960.004
Nerve Damage140.9940.006
Jaw Edema150.9930.007
Postpartum Sepsis170.9920.008
Damaged Teat210.990.010
Torn During Birth250.9880.012
Digestive Troubles280.9870.013
Abomasal Dilatation320.9850.015
Peritonitis350.9840.016
Mastitis390.9820.018
High somatic700.9680.032
Diseases—names of dairy diseases; Total sum of disease occurrence; p ^ i , 0 —a predicted probability of non-occurrence of disease i ; p ^ i , 1 —a predicted probability of an occurrence of disease i .
Table 3. Basic probability model for predicting prevalent diseases that meet the selection criteria.
Table 3. Basic probability model for predicting prevalent diseases that meet the selection criteria.
DiseasesMin Number of StatesMax Number of StatesHMC30
Opt.
Number   of   States   R *
HMC30
Chebyshev Distance
HMC30
Mean Value of Dairy Disease
Occurrences
HMC60
Opt .   Number   of   States   R *
HMC60
Chebyshev Distance
HMC60
Mean Value of Dairy Disease Occurrences
Eye Injury2430.0190.02340.2500.025
Postpartum hypocalcemia2550.0210.04640.2500.045
Phlegmon2540.0520.07340.2500.074
Respiration2550.0320.07640.2500.076
Laminitis2540.0190.10340.2500.098
Retained placenta2430.0250.13130.3330.129
Limb Edema2440.0310.15330.3330.151
Diarrhea2880.1040.17750.2000.167
High temperature after calving2640.1490.24840.2500.252
Uterus21590.0920.25790.1110.263
High temperature2660.1680.38140.2500.357
Endometritis21690.1340.37890.1110.371
Necrobacillosis2750.4520.43950.2000.435
Metabolic problems2750.0500.48250.2000.467
Mastitis RB217100.2221.196100.1001.214
Mastitis RF220170.1931.293160.0631.301
Mastitis LB219110.1211.386110.0911.4
Mastitis LF224220.4723.154130.0773.105
Reproduction problems270360.14510.892360.02810.895
Diseases—names of dairy diseases; Min number of states—minimal number of states of Markov chain; Max number of states—maximum number of states of Markov chain; HMC30 Opt. number of states R * —Optimal number of states calculated for Homogenous Markov chain model for next 30 days; HMC30 Opt. number of states Chebyshev distance—Chebyshev distance for an Optimal number of states calculated for Homogenous Markov chain model for next 30 days; HMC30 Mean value of dairy disease occurrences—Mean value calculated for next 30 days of dairy disease occurrence; HMC60 Opt. number of states R * —Optimal number of states calculated for Homogenous Markov chain model for next 60 days; HMC60 Opt. number of states Chebyshev distance—Chebyshev distance for an Optimal number of states calculated for Homogenous Markov chain model for next 60 days; HMC60 Mean value of dairy disease occurrences—Mean value calculated for next 60 days of dairy disease occurrence.
Table 4. Results of non-homogenous Markov chains.
Table 4. Results of non-homogenous Markov chains.
DiseasesMin Number of StatesMax Number of StatesNHMC30
Opt.
Number   of   States   R *
NHMC30
Chebyshev Distance
NHMC30
Mean Value of Dairy Disease Occurrences
NHMC60
Opt .   Number   of   States   R *
NHMC60
Chebyshev Distance
NHMC60
Mean Value of Dairy Disease Occurrences
Eye Injury2440.0530.11740.0550.121
Postpartum hypocalcemia2540.1000.28140.1030.289
Phlegmon2550.1440.38950.0560.385
Respiration2540.0450.15740.0650.163
Laminitis2540.0270.14350.0340.183
Retained placenta2430.0250.13840.0130.199
Limb Edema2430.0410.17630.0740.182
Diarrhea2850.1750.39750.0540.383
High temperature after calving2640.1470.24840.1370.258
Uterus21590.0830.4790.0360.477
High temperature2660.1760.46940.1710.41
Endometritis21690.1281.10590.0421.134
Necrobacillosis2770.4100.75670.2690.744
Metabolic problems2760.0700.39870.1560.626
Mastitis RB217140.1882.606100.1041.399
Mastitis RF220110.2211.946110.0862.003
Mastitis LB219110.1041.404110.1301.447
Mastitis LF224140.4603.599140.2633.744
Reproduction problems270400.14412.566400.07112.55
Diseases—names of dairy diseases; Min number of states—minimal number of states of Markov chain; Max number of states—maximum number of states of Markov chain; NHMC30 Opt. number of states R * —Optimal number of states calculated for Non-Homogenous Markov chain model for next 30 days; NHMC30 Opt. number of states Chebyshev distance—Chebyshev distance for an Optimal number of states calculated for Non-Homogenous Markov chain model for next 30 days; NHMC30 Mean value of dairy disease occurrences—Mean value calculated for next 30 days of dairy disease occurrence; NHMC60 Opt. number of states R * —Optimal number of states calculated for Non-Homogenous Markov chain model for next 60 days; NHMC60 Opt. number of states Chebyshev distance—Chebyshev distance for an Optimal number of states calculated for Non-Homogenous Markov chain model for next 60 days; NHMC60 Mean value of dairy disease occurrences—Mean value calculated for next 60 days of dairy disease occurrence.
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Saro, J.; Ducháček, J.; Brožová, H.; Stádník, L.; Bláhová, P.; Horáková, T.; Hlavatý, R. Discrete Homogeneous and Non-Homogeneous Markov Chains Enhance Predictive Modelling for Dairy Cow Diseases. Animals 2024, 14, 2542. https://doi.org/10.3390/ani14172542

AMA Style

Saro J, Ducháček J, Brožová H, Stádník L, Bláhová P, Horáková T, Hlavatý R. Discrete Homogeneous and Non-Homogeneous Markov Chains Enhance Predictive Modelling for Dairy Cow Diseases. Animals. 2024; 14(17):2542. https://doi.org/10.3390/ani14172542

Chicago/Turabian Style

Saro, Jan, Jaromir Ducháček, Helena Brožová, Luděk Stádník, Petra Bláhová, Tereza Horáková, and Robert Hlavatý. 2024. "Discrete Homogeneous and Non-Homogeneous Markov Chains Enhance Predictive Modelling for Dairy Cow Diseases" Animals 14, no. 17: 2542. https://doi.org/10.3390/ani14172542

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Article metric data becomes available approximately 24 hours after publication online.
Back to TopTop