Next Article in Journal
Evaluation of a Water-Based Medium-Expansion Foam Depopulation Method in Suckling and Finisher Pigs
Previous Article in Journal
Fermentation Quality, In Vitro Digestibility, and Aerobic Stability of Total Mixed Ration Silage in Response to Varying Proportion Alfalfa Silage
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Forecasting Milking Efficiency of Dairy Cows Milked in an Automatic Milking System Using the Decision Tree Technique

1
Lely Services B.V., Cornelis van der Lelylaan 1, 3147 PB Maassluis, The Netherlands
2
Department of Animal Biotechnology and Genetics, Faculty of Animal Breeding and Biology, Bydgoszcz University of Science and Technology, 85-084 Bydgoszcz, Poland
3
Department of Animal Science, Ondokuz Mayis University, Samsun 55139, Turkey
*
Author to whom correspondence should be addressed.
Animals 2022, 12(8), 1040; https://doi.org/10.3390/ani12081040
Submission received: 21 February 2022 / Revised: 1 April 2022 / Accepted: 13 April 2022 / Published: 16 April 2022
(This article belongs to the Section Cattle)

Abstract

:

Simple Summary

Automatic milking systems are gaining popularity worldwide as they help in monitoring milk production traits, inter alia, milking efficiency defined as milk yield divided by box time. In our study we used a statistical method called the decision tree technique, which allows us to study the impact of specific factors on milking efficiency and display them as a simple graphical model. By studying the tree a farmer might identify the factors most affecting milking efficiency.

Abstract

In barns equipped with an automatic milking system, the profitability of production depends primarily on the milking efficiency of a cow (ME; kg/min) defined as cow milk yield per minute of box time. This study was carried out on 1823 Polish Holstein–Friesian cows milked by the automatic milking system (AMS) in 20 herds. Selected milking parameters recorded by the AMS were analyzed in the research. The aim of the study was to forecast ME using two statistical techniques (analysis of variance and decision trees). The results of the analysis of variance showed that the average ME was 1.67 kg/min. ME was associated with: year of AMS operation (being the highest in the first year), number of cows per robot (the highest in robots with 61–75 cows), lactation number (highest for multiparas), season of calving (the highest in spring), age at first calving (>36 months), days in milk (151–250 days) and finally, rear quarter to total milk yield ratio (the highest between 51% and 55%). The decision tree predicted that the highest ME (2.01 kg/min) corresponded with cows that produced more than 45 kg of milk per day, were milked less than four times/day, had a short teatcup attachment time (<7.65 s) and were milked in robots that had an occupancy lower than 56 cows.

1. Introduction

During recent decades milk production has changed greatly, due, among other reasons, to the implementation of new milking systems including the automatic milking system (AMS). Automatization in dairy farms has been introduced, for instance, in the form of milking robots, automated milking parlours and rotary milking parlours. The AMS is gaining in popularity in Europe [1,2] due to the possibility of reducing manual labour on dairy farms as the AMS aids farmers with teat-cleaning, attaching teat cups and disinfecting teats after each milking. One of the advantages of the AMS is that the milking frequency per day may increase as cows have access to the AMS regardless of farm employee presence and may use it when needed. This may result in higher milk yield [3,4,5]. It is well known that the profitability of milk production depends heavily on the milking efficiency of a cow. Milking efficiency may be affected by different factors, including: milking frequency (lower contributes to a lower yield), number of cows per robot (a high number of animals may increase competition in the herd and negatively affect yield) or type of barn in which the animals are milked (new barns built specifically for AMS use may be better adjusted to this purpose and therefore allow cows to use the AMS more efficiently, increasing yield) [6,7,8,9,10]. In the AMS milking efficiency is mostly described as milk yield per minute of box time [11]. The highest milking efficiency is obtained with the best ratio between high milk yield from a cow and the short time spent by said cow in a robot [12]. Heringstad and Bugten [13] noted that ME changes with days in milk (DIM). ME is the lowest during early lactation and highest in mid-lactation, after which it decreases. It is also worth noting that ME is affected by inter alia, the herd, season, milk yield, milking frequency and milking speed.
Many authors have pointed out that milking performance of cows is a complex issue affected by many factors such as number of cows per robot, robots per barn, box time, number of connection attempts or type of traffic (free/forced) [9,10]. ME is an important factor that affects profitability of production and therefore, studies aiming at forecasting ME using prediction models may be beneficial. One of the statistical methods used to forecast the milking efficiency is a decision tree technique, which helps visualise data in a simple tree-like graphical way. This technique creates structures that resemble trunk, branches and leaves. Division of the datasets starts with a root node that is further divided into child nodes, which may divide subsequently until no further division can be made thus creating a leaf. Once the tree is developed it consists of subsets that are maximally homogeneous in terms of the value of the tested traits. Such tree allows one to identify the factors and their levels that contribute to the highest and the lowest values of the tested trait [14]. The authors of the present study have shown that the decision tree technique may be an alternative to analysis of variance or multiple linear regression [15,16].
The aim of this study was to forecast the milking efficiency of Polish Holstein–Friesian cows using the decision tree technique, and at the same time to determine the sources of variability of milk speed and yield, milking frequency, attachment time and box time in automatic milking systems.

2. Material and Methods

2.1. Animals

The study included a total of 1823 Polish Holstein–Friesian cows kept in 20 dairy farms located in Poland (Table 1). Cows were milked using an automatic milking system (AMS; Astronaut A4 by Lely Industries N.V.: Cornelis van der Lelylaan 1, Maassluis, The Netherlands) and were fed a partial mixed ration (PMR), with concentrate feed that was given to animals individually in the milking box depending on their milk yields. Data were collected from dairy cows in their first to third lactation. Data on milking performance of cows milked in AMS were obtained from the T4 C management and data registration system by Lely East. A total of 713,206 records were obtained. The following milking performance variables were tested in this study:
  • Days in milk (days, DIM)—average number of milking days;
  • Milking frequency (number/day, MF)—number of milkings per cow milked by AMS per day;
  • Attachment time per milking (s, AT)—the average time per milking per cow that it took the robot to attach the teatcup;
  • Box time (min/day, BT)—the total time spent by a cow in the milking box during a day;
  • Milk speed (kg/min, MS)—average milk flow rate per cow per day of robot operation;
  • Milk yield (kg/day, MY)—total daily milk yield of a cow per day;
  • Ratio of rear quarter MY to total (front and rear quarter) MY (%, RTR),
  • Milking efficiency (ME, kg/min)—milk yield per day divided by box time.
Table 1. Characteristics of studied dairy herds milked with automatic milking system.
Table 1. Characteristics of studied dairy herds milked with automatic milking system.
HerNumber of Robots per HerdMean No.
of Cows per Robot
Laying
Area
Walking
Area
A154MatsGrates
B159MatsGrates
C166MatsGrates
D253StrawGrates
E155StrawConcrete
F251MatsGrates
G156MatsConcrete
H165MatsConcrete
I159MatsGrates
J344StrawGrates
K155MatsConcrete
L163MatsGrates
M158MatsGrates
N550StrawConcrete
O158MatsGrates
P253MatsConcrete
R159MatsGrates
S352MatsGrates
T156MatsGrates
W162MatsGrates

2.2. Statistical Analysis

Other variables that may affect milking efficiency were taken into consideration: year of AMS operation (yAMS: 1, 2 or 3 years), number of cows per one robot (noC: 45–50; 51–55; 56–60 or 61–75 cows), lactation number (noL: 1 or higher (2 or 3)), season of calving (SC: autumn, spring, summer or winter) and age at 1st calving (AFC). For the purposes of statistical analyses, the above-mentioned variables were categorized as follows: DIM: <50, 51–100, 101–150, 151–200, 201–250 and 251–305 days; MF: 1, 2, 3, 4 and ≥5); MY: <25, 25–30, 31–35 and 35–45 kg; RTR: 34–50%; 51–55%; 56–60% and 61–73%.
The statistical analysis of the collected data was performed in three stages. First, using the mixed model repeated measures analysis of variance (procedure mixed SAS) the analysis of milk yield variability and recorded milking parameters was performed [17]. For this purpose, the following mixed model was used (1):
yijklmnoprs = μ + yAMSi + Barnj + noCk + nLl + SCm + AFCn + DIMo + RTRp + (nL × SC)lm + ar + eijklmnoprs
where:
  • yijklmnopqrs—the phenotype value of the trait (ME, MF, AT, BT, MS, MY),
  • µ—a general average,
  • yAMSi—the fixed effect of the ith yAMS class,
  • Barnj—the fixed effect of the jth barn type,
  • noCk—the fixed effect of the kth class of noC,
  • nLl—the fixed effect of the lth noL,
  • SCm—the fixed effect of the mth SC,
  • AFCn—the fixed effect of the nth AFC class,
  • DIMo—the fixed effect of the oth DIM class,
  • RTRp—the fixed effect of the pth RTR class,
  • (nL × SC)lm—interaction nL × SC,
  • ar—the random effect of rth cows,
  • eijklmnoprs—random error.
The significance differences between the selected groups were established using the Scheffe test (SAS).
In the next step of the statistical procedure, the Pearson correlation coefficients between ME and MF, AT, BT, MS and MY were calculated. The aim of this task was to reduce the number of variables used in the next stage of analysis for prediction of ME.
Then, in the third stage of statistical analysis—the main stage of research—attempts were made to forecast ME using the decision tree technique [17]. All variables were taken into consideration; however, MS was excluded from the model as a high correlation (0.998) between ME and MS was noted.
In ME forecasting the CART (classification and regression trees) algorithm was ultimately used. This algorithm uses variance reduction as a tree division criterion. Due to the continuous nature of the tested variable (ME), two different division criteria were taken into consideration while creating the decision tree—F test statistic and variance reduction [18]. Subsequently trees constructed based on these criteria were compared in terms of the quality of forecasting of ME based on the average squared error. It is worth mentioning that the decreasing value of the average squared error indicated a higher quality of the model. During construction, mean square error was used as a measure to select the best tree based on validation data. Data were divided into training and validation sets. The “training set”, which was used to preliminarily fit the model, was constituted from 60% of all observations, while the “validation set” (the set that prevented modelling from overfitting, that is, it prevented an excessive fit of the tree model to the data on the basis of which it was created) was constituted from 40% of all observations. Cows were assigned to the training or validation sets by the random sampling method. It was assumed that the minimum size of a leaf should not be less than 5000 observations, and the maximum depth of a tree (number of branches) should not be deeper than 5.
Each node of the created tree was composed of the following data: node ID (1); milking efficiency (2); and number of observations in a given node or a leaf (3) (Figure 1). An “Importance” measure was used to create a ranking of different variables in terms of their importance in splitting the dataset [17,19]. The “Importance” measure and the way in which it was calculated are provided in the paper by Grochowska et al. [19]. The “Importance” measure takes values between 0 and 1, and a higher value indicates a greater importance during tree construction. This ranking also provides the data on the number of node divisions that were performed based on respective variables [16,17,18,19].

3. Results

3.1. Analysis of Milk Yield Variability and Recorded Milking Parameters with the Use of Multivariate Analysis of Variance

Descriptive statistics of analysed traits are presented in Table 2. Cows produced on average of 29 kg of milk per day. While the average box time per milking was 18.41 min, cows spent approximately 6.03 min attached to a robot and milked on the average 2.83 times a day. Results showed that 54.5% of the milk produced by the cows was collected from rear quarters. The results showed that the average milking efficiency in the analyzed population of cows was 1.67 kg/min (Table 2).
The analysis of variance showed a highly significant influence of yAMS, noC, noL, SC, AFC, DIM, RTR and noLx SC on ME, MF, AT, BT, MS and MY. Barn type was not significantly associated with ME, MF, MS or MY.
From the mixed-model analysis it was noted that ME was affected by the following factors: yAMS (being the highest in the first years), noC (the highest in robots with 61–75 cows), noL (highest for multiparas), SC (spring), AFC (>36 month), DIM (201–305 days) and finally by RTR (the highest between 51 and 55). It was also noted that the interaction between noL and SC affected ME (Table 3).
Higher levels of MF, AT, BT and MY were noted in barns that were adapted to AMS use although only for AT and BT were the differences in the levels of features between new and adapted barns significant. The highest MF and the longest BT were found in herds with 51 to 55 cows per robot. The longest AT and highest MS, MY, and ME were recorded in the herds with the highest density (over 60 cows per milking robot). The lowest MY, MS and ME were recorded in the herds with the lowest density per robot (fewer than 51 cows).
Lactations 2 and 3 were associated with higher ME, MF, BT, MS, and MY, and lower AT. Differences between lactations were statistically significant (Table 3).
Cows calving in the autumn and winter were characterized by significantly higher levels of MF, BT and MY compared to summer and spring. The highest values of AT, MS and ME were found in the spring. The lowest levels of MS, MY and ME were observed in summer.
Age at first calving significantly differentiated the level of the examined traits. MF, BT and MY were significantly higher with an AFC of 26–36 months and ME and MS with an AFC of more than 36 months. AT was significantly higher with an AFC of 24–25 months.
When analyzing days in milk, the highest levels of MF, AT, BT and MY were recorded up to the 100th day of lactation, and in subsequent stages the levels decreased. On the other hand, higher levels were noted later in lactation for ME (151–250 days) and MS (201–250 days). It was observed that the higher the share of rear quarter to total quarter MY ratio, the higher the levels of MF, AT, BT, MY and ME. The highest MS was found for milkings whose rear quarter to total quarter MY ratio was between 51 and 55% (Table 3).
Correlation between milking efficiency and other tested traits that characterized milking processes were investigated (Table 4). The results showed the high correlation between ME and MS (0.879), therefore MS was not included in the algorithm creating decision tree model.

3.2. Forecasting ME

The study found that the decision tree models built on the basis of the alternative two division criteria—F test statistic and variance reduction—had the same prognostic ability, as evidenced by the same mean standard error (0.18).
A decision tree method is of particular value to people who, not familiar with statistical analysis, would like to verify the influence of various factors on a tested trait solely on the basis of the graphical model [20]. Such people, following the graphical presentation of splits, may identify the factors and their levels that may contribute to improvement of the investigated trait.
The Importance measure, calculated on the basis of the validation set, indicated that the greatest impact on ME in the order of decreasing importance was MY, MF, AT, DIM, noL and noC (Table 5). One of the most important variables, with an Importance measure of 1 was MY, although it contributed only to 4 splits. The graphical representation of the decision tree (Figure 1, Figure 2, Figure 3, Figure 4, Figure 5 and Figure 6) showed that cows that were characterised by a higher MY also had a higher ME. The variable that caused the tree to split the most was the AT (10 splits) and DIM (5 splits).
The decision tree (Figure 2, Figure 3, Figure 4, Figure 5 and Figure 6) was 5 levels deep and resulted in the creation of 59 nodes out of which 29 were leaves. The first division in the graphical model of a decision tree was made based on MY, splitting data with MY below 35 kg (Node 2, the average ME at the level of 1.60 kg/min) and above (Node 3, with ME 1.75 kg/min). Node 3 contained data for which ME had a higher value and was further split by MF with 4 times/day as a threshold creating nodes 6 and 7. The leaf with the highest ME was Node 50 with ME of 2.01 kg/min. The leaf was created by splitting the original dataset by the following criteria: MY (≥35 kg/day), MF (<4 times/day), MY (≥45 kg/day), AT (<7.65 s) and number of cows per robot (<56 cows). In contrast, the leaf (Node 41) with the lowest ME (1.25 kg/min) was created by the following splits: MY (<35 kg/day), MF (≥3 times/day), MY (<30 kg/day), AT (≥6.60 s) and AT (≥8.79 s).

4. Discussion

Milking Efficiency and Parameters Affecting It

On average, ME in the present study was 1.67 kg/min. Lower efficiency was described by other authors, including Vosman et al. [21] who reported it to be at a level of 1.61 kg/min for Holstein–Friesian cows. Heringstad and Bugten [13] also reported lower values of ME (the average daily ME was 1.47 kg per min of box time for Norwegian Red cows). Higher ME in our study may have been caused by the fact that cows selected for this study came from herds that are considered to be one of the best in Poland.
The study predicted the creation of a graphical model with the use of decision tree techniques. These methods split datasets in order to indicate what variables affect ME. The algorithm creating the graphical model of a decision tree gave the highest importance in relation to ME to milk yield. Løvendahl et al. [11] concluded that in AMS a cow that gives the most milk in one minute of box time should be called the “AMS milking efficient cow”.
The decision tree algorithm indicated MF as second-most important variable (with an Importance of 0.984) that affected the tree creation. Castro et al. [9] reported that in their study on Holstein cows milked in an AMS, the optimal MF was between 2.40 and 2.60 milkings/day. In our study the best Node in the graphical presentation of the tree was created by a split where the threshold for MF was below 4; while the average MF for the whole tested population was 2.83 milkings/day. Some authors consider that a minimum accepted MF of a cow should be determined by a technician on the basis of the age of a cow and the lactation stage [5]. MF is a crucial parameter that affects MY as well as ME [7,11,22]. The automatic milking system allows the animals to independently choose the moment of milking almost all day long and may contribute to the increase of the frequency of milking [5,23]. Løvendahl and Chagunda [24] pointed out that cows (Red Dane and Holsteins) with higher MF gave 20% more milk than cows with lower MF.
The highest number of splits was caused by the variable AT, which suggests, along with the fact that the Importance was also high, that it greatly affects ME. Bach and Busto [25] suggested that attachment failures have a great effect on the overall milk yield. Failure to attach the cups to the target teat negatively affect milk ejection in other, unaffected, quarters. Piwczyński et al. [26] suggested that a short AT may improve the profitability of automatic milking. A rapid attachment of a teatcup to a target teat also reduces the stress on a cow as well as the time a cow stays in the milking robot. This also means that a cow frees up the space in the robot for the next animal increasing the number of cows using one robot, which also affects profitability of the farm.
DIM had an importance of 0.678. The tree showed that cows with DIM lower than 150 days had lower ME. This is in accordance with findings of Heringstad and Bugten [13] who reported that ME tended to be low at the beginning of lactation and increased with time, to start decreasing at the end of lactation when MY also decreased.
While the tree was split based on lactation number only twice, the Importance value was moderate. The study showed that higher ME was recorded in second and third lactations. These results are in accordance with those reported by Vosman et al. [21]. They noted that the difference between the average ME in the 1st and 3rd lactation was 0.25 kg/min. Carlström et al. [27] also reported higher values of milk yield per milking, which contributed to the results showing a higher ME in the 2nd lactation (2.58 kg/min) compared to the 1st lactation (2.36 kg/min), and Spolders et al. [28] confirmed that primiparas had a higher milking performance.
The graphical model indicates that the number of cows using the same robot is also very important and may affect ME. To our knowledge the literature does not provide direct information on the relationship between stocking rate and ME (described as milk yield per day divided by box time) in AMS, but other authors confirm that the occupancy rate affects MY, although not all authors confirmed statistical significance [29,30]. It may be concluded that the optimal stocking level per one AMS is crucial since some authors reported the positive effect of an increase in the number of cows per AMS (average occupancy rate at the level of 55.8 cows per AMS) [29] on MY (kg/cow), while others noted a decrease in MY (kg/cow per day) related to the increase of number of cows/robot [30]. Lee et al. [31] reported that the mean MY per AMS went up with an increase in the number of cows per AMS, however, only until it reached the number of 60 cows per robot; further increase of the stocking level did not improve MY. This suggests that while initial increasing of the number of cows using AMS may reduce the robot free-time, thus contributing to the increase of MY, the number of cows per robot cannot be increased indefinitely, as the maximum robot throughput will eventually be reached. Further increasing the occupancy rate will not improve MY, and on the contrary, may decrease MY due to increasing competition between cows.
RTR was used to split the tree three times. It is well known that different udder quarters have a different time of milking. The difference is especially seen between front and rear quarters [32]. Sitkowska et al. [32] pointed out that in their studies rear quarters took 43 s longer to be milked than front quarters. They also reported the total MY (10.65 kg) as MY per front (4.80 kg) and rear (5.85 kg) quarters. This allowed them to calculate RTR (55.02%) which is higher than that reported in the present study (54.49%). Nevertheless the importance (0.259) of this variable is not very high in tree creation, which suggests that it does not significantly affects ME.
AFC was used only once during the creation of the tree and the importance of that variable was low (0.131) suggesting that it did not affect ME. In Poland in 2020 the average AFC was 812 days [33]. The optimal age of the first calving determines the proper development of the udder and adaptation to automatic milking and may contribute to the reduction of reproductive and health-related disorders. Attempts have been made to indicate the optimal AFC at which a cow reaches its best production potential [34,35]. Nilforooshan and Edriss [36] indicated that for Iranian Holsteins the optimal AFC was 24 months. In our study analysis of variance indicated that the highest ME had cows whose AFC was higher than 36 months.
Also SC had a low Importance in tree creation and did not significantly affect ME; however, analysis of variance indicated that SC had a significant impact on ME (with the highest ME in the spring season and the lowest in summer). Speroni et al. [37] also reported that a hot season had a negative effect on MY in AMS (−4.5 ± 0.6 kg/d).
One of the main goals of a farmer running a dairy farm is a high level of profitability of their herd. Therefore, they are constantly endeavouring to increase the efficiency of milking in AMS. Vosman et al. [21] pointed out that to do so, farmers should breed only those cows that are suitable for AMS (active in the robot, visit it frequently, have high milk yield but at the same time have a relatively low box time). Løvendahl et al. [11] indicated that ME expressed a higher heritability than residual BT, and that it was also highly correlated to other investigated traits, therefore, it may be used in a selection programme aimed at obtaining cows with a high ME in AMS.

5. Conclusions

The decision tree model, in an easily comprehended graph, indicated the best combination of factors and their levels that contributed to the highest ME in herds milked in AMS. The results showed that the highest ME was recorded for cows that produced more than 35 kg per day, were milked in robots that had occupancy lower than 56 cows and were kept in new barns where AMS was installed at least 3 years prior. This research may be beneficial for farmers as it depicts, in a simple way, how different factors may contribute to the increase of the efficiency of their milk production.

Author Contributions

Conceptualization, J.A., D.P. and B.S.; methodology, J.A., M.K. and D.P.; validation, M.K., D.P. and B.S.; investigation, J.A. and D.P.; writing—original draft preparation, J.A. and M.K.; writing—review and editing, J.A., M.K., D.P., B.S. and H.Ö. All authors have read and agreed to the published version of the manuscript.

Funding

This article/material has been supported by the Polish National Agency for Academic Exchange under Grant No. PPI/APM/2019/1/00003, and the Ministry of Science and Higher Education of the Republic of Poland (funds for statutory activity BN-51/2019).

Institutional Review Board Statement

No ethical statement was required in these studies.

Data Availability Statement

Data is contained within the article.

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. De Koning, K.; Rodenburg, J. Automatic Milking: State of the Art in Europe and North America; Meijering, A., Hogeveen, H., de Koning, C.J.A.M., Eds.; Wageningen Academic Publishers: Wageningen, The Netherlands, 2004. [Google Scholar]
  2. Piwczyński, D.; Gondek, J.; Sitkowska, B.; Kolenda, M. Comparison of results coming from automatic milking system in selected countries in EUROPE and U.S. J. Cent. Eur. Agric. 2020, 21, 187–196. [Google Scholar] [CrossRef]
  3. Hogeveen, H.; Ouweltjes, W.; De Koning, C.J.A.M.; Stelwagen, K. Milking interval, milk production and milk flow-rate in an automatic milking system. Livest. Prod. Sci. 2001, 72, 157–167. [Google Scholar] [CrossRef]
  4. Wagner-Storch, A.M.; Palmer, R.W. Feeding behavior, milking behavior, and milk yields of cows milked in a parlor versus an automatic milking system. J. Dairy Sci. 2003, 86, 1494–1502. [Google Scholar] [CrossRef] [Green Version]
  5. Svennersten-Sjaunja, K.M.; Pettersson, G. Pros and cons of automatic milking in Europe. J. Anim. Sci. 2008, 86, 37–46. [Google Scholar] [CrossRef] [PubMed]
  6. Rotz, C.A.; Coiner, C.U.; Soder, K.J. Automatic Milking Systems, Farm Size, and Milk Production. J. Dairy Sci. 2003, 86, 4167–4177. [Google Scholar] [CrossRef] [Green Version]
  7. Gygax, L.; Neuffer, I.; Kaufmann, C.; Hauser, R.; Wechsler, B. Comparison of Functional Aspects in Two Automatic Milking Systems and Auto-Tandem Milking Parlors. J. Dairy Sci. 2007, 90, 4265–4274. [Google Scholar] [CrossRef] [PubMed]
  8. André, G.; Berentsen, P.B.M.; Engel, B.; de Koning, C.J.A.M.; Oude Lansink, A.G.J.M. Increasing the revenues from automatic milking by using individual variation in milking characteristics. J. Dairy Sci. 2010, 93, 942–953. [Google Scholar] [CrossRef] [Green Version]
  9. Castro, A.; Pereira, J.M.; Amiama, C.; Bueno, J. Estimating efficiency in automatic milking systems. J. Dairy Sci. 2012, 95, 929–936. [Google Scholar] [CrossRef]
  10. Tremblay, M.; Hess, J.P.; Christenson, B.M.; McIntyre, K.K.; Smink, B.; van der Kamp, A.J.; de Jong, L.G.; Döpfer, D. Factors associated with increased milk production for automatic milking systems. J. Dairy Sci. 2016, 99, 3824–3837. [Google Scholar] [CrossRef]
  11. Løvendahl, P.; Lassen, J.; Chagunda, M.G.G. Milking Efficiency—A Milkability Trait for Automatically Milked Cows. In Proceedings of the 10th World Congress on Genetics Applied to Livestock Production, Vancouver, BC, Canada, 17–22 August 2014. [Google Scholar]
  12. Odorčić, M.; Rasmussen, M.D.; Paulrud, C.O.; Bruckmaier, R.M. Review: Milking machine settings, teat condition and milking efficiency in dairy cows. Animal 2019, 13, S94–S99. [Google Scholar] [CrossRef] [Green Version]
  13. Heringstad, B.; Bugten, H.K. Genetic evaluations based on data from automatic milking systems. ICAR Berl. 2014 2014. [Google Scholar] [CrossRef]
  14. Piwczyński, D.; Nogalski, Z.; Sitkowska, B. Statistical modeling of calving ease and stillbirths in dairy cattle using the classification tree technique. Livest. Sci. 2013, 154, 19–27. [Google Scholar] [CrossRef]
  15. Piwczyński, D.; Sitkowska, B. Statistical modelling of somatic cell counts using the classification tree technique. Arch. Anim. Breed. 2012, 55, 332–345. [Google Scholar] [CrossRef]
  16. Ghiasi, H.; Piwczyński, D.; Khaldari, M.; Kolenda, M. Application of classification trees in determining the impact of phenotypic factors on conception to first service in Holstein cattle. Anim. Prod. Sci. 2015, 56, 1061. [Google Scholar] [CrossRef]
  17. SAS Institute Inc. SAS/STAT® 9.4 User’s Guide Cary; SAS Institute Inc.: Cary, NC, USA, 2014. [Google Scholar]
  18. Piwczyński, D.; Sitkowska, B.; Wiśniewska, E. Application of classification trees and logistic regression to determine factors responsible for lamb mortality. Small Rumin. Res. 2012, 103, 225–231. [Google Scholar] [CrossRef]
  19. Grochowska, E.; Piwczyński, D.; Portolano, B.; Mroczkowski, S. Analysis of the influence of the PrP genotype on the litter size in Polish sheep using classification trees and logistic regression. Livest. Sci. 2014, 159, 11–17. [Google Scholar] [CrossRef]
  20. Piwczyński, D.; Sitkowska, B.; Kolenda, M.; Brzozowski, M.; Aerts, J.; Schork, P.M. Forecasting the milk yield of cows on farms equipped with automatic milking system with the use of decision trees. Anim. Sci. J. 2020, 91, e13414. [Google Scholar] [CrossRef]
  21. Vosman, J.J.; De Jong, G.; Eding, H. Breeding of Cows Suitable for an Automatic Milking System. In Proceedings of the INTERBULL BULLETIN, Berlin, Germay, 20–21 May 2014. [Google Scholar]
  22. Carlström, C.; Pettersson, G.; Johansson, K.; Strandberg, E.; Stålhammar, H.; Philipsson, J. Feasibility of using automatic milking system data from commercial herds for genetic analysis of milkability. J. Dairy Sci. 2013, 96, 5324–5332. [Google Scholar] [CrossRef] [Green Version]
  23. John, A.J.; Clark, C.E.F.F.; Freeman, M.J.; Kerrisk, K.L.; Garcia, S.C.; Halachmi, I. Review: Milking robot utilization, a successful precision livestock farming evolution. Animal 2016, 10, 1484–1492. [Google Scholar] [CrossRef]
  24. Løvendahl, P.; Chagunda, M.G.G. Covariance among milking frequency, milk yield, and milk composition from automatically milked cows. J. Dairy Sci. 2011, 94, 5381–5392. [Google Scholar] [CrossRef] [Green Version]
  25. Bach, A.; Busto, I. Effects on milk yield of milking interval regularity and teat cup attachment failures with robotic milking systems. J. Dairy Res. 2005, 72, 101–106. [Google Scholar] [CrossRef] [PubMed]
  26. Piwczyński, D.; Sitkowska, B.; Ptak, E. Genetic relationship among somatic cell score and some milking traits in Holstein-Friesian primiparous cows milked by an automated milking system. Animal 2021, 15, 100094. [Google Scholar] [CrossRef] [PubMed]
  27. Carlström, C.; Strandberg, E.; Johansson, K.; Pettersson, G.; Stålhammar, H.; Philipsson, J. Genetic evaluation of in-line recorded milkability from milking parlors and automatic milking systems. J. Dairy Sci. 2014, 97, 497–506. [Google Scholar] [CrossRef] [PubMed]
  28. Spolders, M.; Meyer, U.; Flachowsky, G.; Coenen, M. Differences between primiparous and multiparous cows in voluntary milking frequency in an automatic milking system. Ital. J. Anim. Sci. 2004, 3, 167–175. [Google Scholar] [CrossRef] [Green Version]
  29. Siewert, J.M.; Salfer, J.A.; Endres, M.I. Factors associated with productivity on automatic milking system dairy farms in the Upper Midwest United States. J. Dairy Sci. 2018, 101, 8327–8334. [Google Scholar] [CrossRef]
  30. Tse, C.; Barkema, H.W.; DeVries, T.J.; Rushen, J.; Pajor, E.A. Impact of automatic milking systems on dairy cattle producers’ reports of milking labour management, milk production and milk quality. Animal 2018, 12, 2649–2656. [Google Scholar] [CrossRef]
  31. Lee, A.R.; Krawczel, P.D.; Ternman, E.; Schneider, L.G.; Løvendahl, P.; Munksgaard, L. Evaluating the effects of mean stocking density on automatic milking system use and total milk production in Holstein cows. In Proceedings of the 2nd International Precision Dairy Farming Conference, Denver, CO, USA, 18–20 June 2019; University of Minnesota: Minneapolis, MN, USA, 2019; pp. 71–72. [Google Scholar]
  32. Sitkowska, B.; Piwczyński, D.; Kolenda, M. The relationships between udder-quarter somatic-cell counts and milk and milking parameters in cows managed with an automatic milking system. Anim. Prod. Sci. 2020, 60, 1830. [Google Scholar] [CrossRef]
  33. PFHBiPM. Evaluation and Breeding of Dairy Cattle in 2020. 2021. Available online: https://pfhb.pl/fileadmin/user_upload/OCENA/publikacje/publikacje_2020/ENG/PFHBiPM_Evaluation_for_2019_eng_web_v02.pdf (accessed on 20 February 2022). (In Polish).
  34. Eslamizad, M.; Dehghan-Banadaky, M.; Rezayazdi, K.; Moradi-Shahrbabak, M. Effects of 6 times daily milking during early versus full lactation of Holstein cows on milk production and blood metabolites. J. Dairy Sci. 2010, 93, 4054–4061. [Google Scholar] [CrossRef]
  35. Mostert, B.E.; Theron, H.E.; Kanfer, F.H.J. The effect of calving season and age at calving on production traits of South African dairy cattle. S. Afr. J. Anim. Sci. 2001, 31, 205–214. [Google Scholar] [CrossRef]
  36. Nilforooshan, M.A.; Edriss, M.A. Effect of age at first calving on some productive and longevity traits in Iranian Holsteins of the Isfahan province. J. Dairy Sci. 2004, 87, 2130–2135. [Google Scholar] [CrossRef] [Green Version]
  37. Speroni, M.; Pirlo, G.; Lolli, S. Effect of automatic milking systems on milk yield in a hot environment. J. Dairy Sci. 2006, 89, 4687–4693. [Google Scholar] [CrossRef]
Figure 1. The description of the root node, including the node ID (1), milking efficiency (2) and number of observations in a node or a leaf (3).
Figure 1. The description of the root node, including the node ID (1), milking efficiency (2) and number of observations in a node or a leaf (3).
Animals 12 01040 g001
Figure 2. The graphical model of the decision tree—part 1. Abbreviations used in Figure 2, Figure 3, Figure 4, Figure 5 and Figure 6: cMY—milk yield; MF—milking frequency; AT—attachment time; DIM—days in milk; noL—lactation number; noC—number of cows per robot; RTR—rear quarter to total quarter MY ratio; AFC—age at 1st calving; SC—season of calving.
Figure 2. The graphical model of the decision tree—part 1. Abbreviations used in Figure 2, Figure 3, Figure 4, Figure 5 and Figure 6: cMY—milk yield; MF—milking frequency; AT—attachment time; DIM—days in milk; noL—lactation number; noC—number of cows per robot; RTR—rear quarter to total quarter MY ratio; AFC—age at 1st calving; SC—season of calving.
Animals 12 01040 g002
Figure 3. The graphical model of the decision tree—part 2.
Figure 3. The graphical model of the decision tree—part 2.
Animals 12 01040 g003
Figure 4. The graphical model of the decision tree—part 3.
Figure 4. The graphical model of the decision tree—part 3.
Animals 12 01040 g004
Figure 5. The graphical model of the decision tree—part 4.
Figure 5. The graphical model of the decision tree—part 4.
Animals 12 01040 g005
Figure 6. The graphical model of the decision tree—part 5.
Figure 6. The graphical model of the decision tree—part 5.
Animals 12 01040 g006
Table 2. Descriptive statistics of tested traits.
Table 2. Descriptive statistics of tested traits.
VariableNMeanSDCV (%)
Number of cows per robot (n)713,20655.378.3615.09
Age at 1st calving (days)713,206907.30237.2626.15
Days in milk (days)713,206149.6584.2256.28
Milking frequency (n/day)713,2062.830.9131.95
Attachment time (s)713,2066.033.9265.05
Box time (min/day)713,20618.417.5741.12
Milk speed (kg/min)713,2062.590.9134.93
Milk yield (kg/day)713,20629.039.9234.17
Rear quarter to total quarter MY ratio (%)658,15954.497.0212.88
Milking efficiency (kg/min)713,2061.670.4627.33
SD—standard deviation, CV—coefficient of variation.
Table 3. Impact of selected factors on tested traits (least square means).
Table 3. Impact of selected factors on tested traits (least square means).
FactorLevelMEMFATBTMSMY
Year of AMS operation11.71 A2.93 A5.91 A18.74 A2.67 A30.30 A
21.71 B2.88 AB6.08 AB18.65 AB2.65 AB30.29 B
31.69 AB2.77 AB6.00 AB18.36 AB2.59 AB29.56 AB
Barn typeAdapted1.692.886.15 A18.98 A2.6330.34
New1.722.845.82 A18.19 A2.6529.76
Number of cows per robot45–501.65 A2.89 A5.95 Aa18.62 A2.59 A29.26 A
51–551.69 AB2.91 AB5.93 B18.73 AB2.63 AB30.08 AB
56–601.71 ABC2.88 ABC6.00 BCa18.66 BC2.64 ABC30.26 ABC
61–751.76 ABC2.76 ABC6.12 ABC18.32 ABC2.70 ABC30.61 ABC
Lactation number11.61 A2.83 A6.12 A18.49 A2.52 A28.17 A
2 or 31.79 A2.88 A5.88 A18.68 A2.76 A31.93 A
Season of calvingAutumn1.70 A2.90 A5.9918.91 A2.63 A30.49 A
Spring1.74 AB2.77 AB6.06 A18.11 AB2.69 AB29.76 AB
Summer1.68 ABC2.85 BC5.9918.57 ABC2.60 ABC29.47 ABC
Winter1.70 BC2.91 BC5.97 A18.74 BC2.63 BC30.49 BC
Age at first calving (months)≤241.67 Aa2.76 A5.65 A18.43 A2.61 Aa28.03 A
[24–25)1.59 Ba2.66 B6.33 A15.92 AB2.38 B25.42 AB
[25–26)1.71 Bb2.90 ABC5.8918.86 BC2.64 BCa30.73 ABC
[26–36)1.76 AB3.08 ABCD5.9521.61 ABCD2.75 AB34.92 ABCD
≥361.80 ABb 2.88 ABD6.17 A18.09 BD2.82 ABC31.15 ABD
Days in milk
(days)
501.64 A3.00 A6.25 Aa21.25 A2.47 A32.63 A
51–1001.70 AB3.06 AB6.30 Ba21.51 AB2.55 AB34.24 AB
101–1501.72 ABC2.97 ABC6.05 ABC19.47 ABC2.65 ABC31.74 ABC
151–2001.73 ABCD2.87 BCD5.83 ABCD17.91 ABCD2.71 ABCD29.63 ABCD
201–2501.73 ABCE2.74 ABCDE5.77 ABCD16.53 ABCDE2.73 ABCDa27.49 ABCDE
251–3051.71 ABCDE2.51 ABCDE5.79 ABC14.83 ABCDE2.72 ABCDa24.58 ABCDE
Rear quarter to total quarter MY ratio (%)34–501.67 A2.76 A5.98 A18.03 A2.61 A28.57 A
51–551.73 AB2.87 AB5.92 AB18.44 AB2.70 AB30.49 AB
56–601.73 AC2.91 ABC5.94 C18.76 ABC2.68 ABC30.89 ABC
61–731.67 BC2.89 ABC6.15 ABC19.11 ABC2.57 ABC30.26 ABC
ME—milking efficiency (kg/min); MF—milking frequency (n); AT—attachment time (s); BT—box time (min); MS—milk speed (kg/min); MY—milk yield (kg); A-E—in columns, separately for each effect, values marked with the same letters vary significantly at p ≤ 0.01; a, b—in columns, separately for each effect, values marked with the same letters vary significantly at p ≤ 0.05.
Table 4. Pearson’s linear correlation between milking efficiency and number of cows per one robot, age at 1st calving, milking frequency, attachment time, box time, milk speed, milk yield and rear quarter to total quarter MY ratio.
Table 4. Pearson’s linear correlation between milking efficiency and number of cows per one robot, age at 1st calving, milking frequency, attachment time, box time, milk speed, milk yield and rear quarter to total quarter MY ratio.
TraitMilking Efficiencyp-Value
No. of cows per robot (n)−0.043<0.0001
Age at 1st calving (days)0.081<0.0001
Milking frequency (n/day)−0.0790.5544
Attachment time (s)−0.161<0.0001
Box time (min/day)−0.483<0.0001
Milk speed (kg/min)0.879<0.0001
Milk yield (kg/day)0.229<0.0001
Rear quarter to total quarter MY ratio (%)−0.020<0.0001
Table 5. Number of division rules and importance of tested variables in tree creation based on Importance measure.
Table 5. Number of division rules and importance of tested variables in tree creation based on Importance measure.
VariableNumber of SplitsImportanceImportance of Validation
Milk yield 41.0001.000
Milking frequency 20.9840.982
Attachment time 100.9170.921
Days in milk 50.6780.679
Lactation number 20.5500.547
Number of cows per robot 10.5310.529
Rear quarter to total quarter MY ratio 30.2590.265
Age at 1st calving 10.1310.125
Season of calving 10.1040.102
Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Share and Cite

MDPI and ACS Style

Aerts, J.; Kolenda, M.; Piwczyński, D.; Sitkowska, B.; Önder, H. Forecasting Milking Efficiency of Dairy Cows Milked in an Automatic Milking System Using the Decision Tree Technique. Animals 2022, 12, 1040. https://doi.org/10.3390/ani12081040

AMA Style

Aerts J, Kolenda M, Piwczyński D, Sitkowska B, Önder H. Forecasting Milking Efficiency of Dairy Cows Milked in an Automatic Milking System Using the Decision Tree Technique. Animals. 2022; 12(8):1040. https://doi.org/10.3390/ani12081040

Chicago/Turabian Style

Aerts, Joanna, Magdalena Kolenda, Dariusz Piwczyński, Beata Sitkowska, and Hasan Önder. 2022. "Forecasting Milking Efficiency of Dairy Cows Milked in an Automatic Milking System Using the Decision Tree Technique" Animals 12, no. 8: 1040. https://doi.org/10.3390/ani12081040

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

Article Metrics

Back to TopTop