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.
The automatic milking system (AMS) provides a large amount of information characterizing the course of each milking cow, which is not available in the conventional system. The aim of our study was to estimate heritability and genetic correlations for milk yield (MY), milking frequency (MF), and speed (MS) for 1713 Polish Holstein-Friesian primiparous cows milked in barns with an AMS. Daily heritability indicators estimated using second-order Legendre polynomials and Random Regression Models showed high variation during lactation, ranging 0.131–0.345 for MY, 0.153–0.322 for MF, and 0.336–0.493 for MS. The rates of genetic correlation between traits ranged: 0.561–0.929 for MY-MF, (−0.255)−0.090 for MF-MS, (−0.174)−0.020 for MY-MS. It is possible to carry out effective selection for milking speed, which provides an opportunity to increase the number of cows per milking robot, and thus increase the profitability of production in the herd. The results proved that selection for milk yield and daily milking frequency is also feasible. The research showed a high, positive genetic correlation between milking frequency and milk yield, which allows us to conclude that preferring breeding cows with a natural tendency to frequent visits to the milking robot should indirectly improve the genetic basis of milking.