Genetic parameters for longitudinal behavior and health indicator traits generated in automatic milking systems

Genetic (co)variance components were estimated for alternative functional traits generated by automatic milking systems (AMSs), and reflecting dairy cow behavior and health. Data recording spanned a period of 30 days and included 70 700 observations (visits to the AMS) from 922 Holstein cows kept in three German farms. The three selected farms used the same type of AMS and specific selection gates allowing “natural cow behavior on a voluntary basis”. AMS traits used as behavior indicator traits were AMS visits per cow and day as binary traits, with a threshold for equal to or greater than three visits (VIS3) and equal to or greater than four visits (VIS4), knocking off the milking device with a threshold of at least one udder quarter, also as a binary trait (KO), milking duration of each AMS visit in minutes (DUR), average milk flow in kg min−1 (AMF), and the interval between two consecutive milkings (INT). Electrical conductivity (EC) of milk from each udder quarter and in total was used as a health indicator trait. For genetic analyses, in univariate and bivariate models, linear and generalized linear mixed models (GLMMs) with a logit link function were applied to Gaussian distributed and binary traits, respectively. The heritability was 0.08± 0.03 for VIS3, 0.05± 0.05 for VIS4, 0.03± 0.03 for KO, 0.19± 0.07 for DUR, 0.25± 0.07 for AMF, and 0.07± 0.03 for INT. Heritabilities for EC varied between 0.37± 0.08 and 0.46± 0.09, depending on the udder quarter. On the genetic scale, an increased number of AMS visits (VIS3 and VIS4) were associated with an increase of KO (rg = 0.24 and rg = 0.55, respectively). From a genetic perspective, high-milk-yielding cows visited the AMS more often (rg = 0.49 for VIS3 and rg = 0.80 for VIS4), had a faster AMF (rg = 0.40), and shorter INT (rg =−0.51). When considering these traits as behavior indicator traits, selection of cows with desired temperament simultaneously increases milk yield. An increase of automatically and objectively recorded AMS traits with moderate heritabilities justifies modifications of dairy cattle breeding goals towards higher emphasis on behavioral traits, especially when developing specific robot indices. Nevertheless, ongoing research in this regard with a larger data is suggested in order to validate the results from the present pilot study.


Introduction
Over the past century, dairy cattle breeding has strongly focused on the improvement of production efficiency to satisfy growing consumer markets that demanded animal products at a low cost level (Oltenacu and Algers, 2005).More recently, the importance of functional traits such as fertility, longevity, and conformation has gradually increased in dairy cattle breeding (Miglior et al., 2005).Today, the eco-nomic competitiveness of the dairy industry is directly related to public acceptance of breeding techniques (Oltenacu and Algers, 2005).Increasing consumer demands towards animal welfare are forcing dairy breeders to further integrate trait categories that reflect animal health and behavior.Genetic improvements in animal behavior or temperament might contribute to correlated response in other functional traits.Temperament in response to human handlers (docil-Published by Copernicus Publications on behalf of the Leibniz Institute for Farm Animal Biology.L. V. Santos et al.: Genetic parameters for longitudinal behavior ity) has been used as a criterion for genetic selection in beef cattle (Le Neindre et al., 1995).In several countries, subjectively scored dairy cattle temperament is included in breeding indices (Pryce et al., 2000).However, due to challenges in time-efficient and objective trait recording, assumed low heritabilities as well as difficult economic evaluations, only a few studies addressed dairy cattle temperament from a quantitative-genetic or breeding goal perspective (Gutiérrez-Gil et al., 2008;Jensen et al., 2008;Haskell et al., 2014).
Accelerated installation of novel automated technical systems (e.g., automated calf feeders, cow activity monitors, and automatic milking systems (AMSs)) contributes to a growing amount of currently unused "big data", including phenotypes for health and behavior traits (Barkema et al., 2015).So far, regarding dairy cows' behavior, behavior traits used in official genetic evaluations include the temperament in the milking parlor based on a subjective farmer scoring system (Sewalem et al., 2002).Novel technologies, like AMSs, allow for automatic, repeated measures and objective phenotypic data recording.Behavior phenotypes can be subjectively scored or can be objectively measured with technical devices, e.g., the number of escapes, flight times, or AMS visits (Gutiérrez-Gil et al., 2008;Café et al., 2011;König et al., 2006).Milking and cow traffic records from AMS might also be suitable indicators for the development of novel behavior and milking efficiency traits (i.e., milking duration of each AMS visit in minutes (DUR) and average milk flow (AMF)).Due to their already existing importance, in general, as well as special breeding goals for AMS herds, traits like temperament and milking efficiency are turning into the main focus (Vosman et al., 2014).Regarding animal health, electrical conductivity on an udder quarter basis might be a valuable predictor for clinical mastitis (Fernando et al., 1982).To sum up, moderate to high heritabilities of objectively recorded behavior and health traits offer an interesting and currently unused potential to improve and enhance already implemented genetic evaluations for milkability (i.e., average milk flow), milking efficiency and udder health traits.Utilization of traits directly generated from the AMS could help to improve the German Holstein AMS breeding index "RZRobot".Until now, the RZRobot has been based only on the following indicator traits from official recording schemes: milking speed, somatic cell count, the overall type trait component for "feet and legs", udder component score, rear teat placement, and teat length (DHV, 2014).The aims of the present study were (1) to estimate genetic parameters for dairy cow behavior and health indicator traits generated in AMS, (2) to infer genetic relationships among those novel traits with production traits such as total milk yield per day, and (3) to estimate genetic parameters for milk yield and electrical conductivity from different udder quarters.

Data
Data recording spanned a period of 30 days and included 70 700 AMS observations (i.e., individual visits into the AMS) from 922 Holstein cows kept in three German farms.The requirement for farm selection was the utilization of the same AMS system: "FeedFirst" (DeLaval GmbH, Glinde, Germany) with a selective guided cow traffic and a similar herd size (∼ 300 cows).Selective guided cow traffic combines the advantages of both free and guided cow traffic, allowing the cows to show their "natural" behavior (Umstätter, 2002;Harms and Wendl, 2004).Hence, for the additional AMS visit beyond the typical herd average, it was assumed to be the cow's own decision to enter the milking system.In "FeedFirst" systems, cows have free access to the feeding area by one-way gates from the lying area.However, in order to reach the lying area from the feeding area, the cows have to pass a selection gate that directs the cows to the milking station or the lying area depending on the milking permission.With regard to the diets, all cows entering the AMS received concentrates, depending on the current milk yield level.Hence, the motivating component for all cows to visit the AMS was the same.If the time since last milking is long enough and a milking permission has been established, the cow is directed to the waiting area in front of the milking unit.If the cow has no milking permission, she is directed back to the lying area.With preselection, daily fetch rates are, on average, 1 to 5 % of the herd (Harms and Wendl, 2004).
Pedigree data were traced back to 1940, including 22 714 animals, and a total of 297 different bulls with daughter records.The most influential sire had 37 daughters, and the average number of daughters per sire was 2.99.
Two different datasets were merged.The first dataset included traits recorded in close intervals, leading to a longitudinal data structure for novel behavior (temperament) and health indicator traits (Table 1).The AMS traits used as behavior indicators were AMS visits per cow and day defined as two binary traits, with thresholds for (i) more than three visits per day (VIS3) and (ii) more than four visits per day (VIS4).If a cow had values equal to or above the threshold, she received the score "1"; otherwise, a "0" was assigned.Hence, VIS3 and VIS4 were defined as binary traits to emphasize the "extra" voluntary component, i.e., the additional AMS visit beyond the typical herd average.Usually, in selective guided cow traffic systems, only cows that voluntarily visited the AMS once per day are fetched and forced by the farmer to visit the AMS at least twice a day (Ketelaar-de Lauwere et al., 1998).Since fetching is time-consuming, we argue that farmers do not force the cows to visit the AMS more than twice a day, and that cows visiting the AMS at least three times a day (VIS3) do that on a voluntary basis due to food motivation or udder pressure (Nixon et al., 2009).Cows visiting the AMS more than four times a day (VIS4) may have other motivations than the primary motivation of being rewarded with food, such as curiosity.Further temperament traits were the knock off of the milking device (KO) from at least one udder quarter, also defined as a binary trait, milking duration of each visit in the AMS in minutes (DUR) and average milk flow in kg min −1 (AMF).DUR and AMF primarily reflect the same aspects of behavior and are also influenced by udder pressure and udder morphology.The traits VIS3 and VIS4 are affected by some common aspects, i.e., food motivation and udder pressure, but also temperament.KO due to stepping and kicking potentially reflects different important aspects of behavior, i.e., discomfort, nervousness, and fear (Rousing et al., 2004).The interval (INT), defined as the time span between two consecutive milkings, was used as a behavior and social dominance indicator (Table 1).A second AMS dataset included measurements for total milk yield per day (MY_total) and electrical conductivity (EC) of milk.Data for milk yield and EC were also available on an udder quarter basis: milk yield for the front left quarter (MY_fl), for the front right quarter (MY_fr), for the rear left quarter (MY_rl), and for the rear right quarter (MY_rr).Abbreviations for EC for each quarter were EC_fl, EC_fr, EC_rl, and EC_rr.Electrical milk conductivity was used as a health trait indicator reflecting the udder health status of individual udder quarters.

Impact of environmental and animal-related effects on behavior traits
Analyses of variance for the behavior indicator traits INT and DUR, and the estimation of least squares means within levels of fixed effects were performed using the software package PROC MIXED in SAS (version 9.2; SAS Institute Inc., Cary, NC, USA).The applied linear model was (Eq. 1) where y was the vector of observations; β was the vector of fixed effects including parities from 1 to 5, the day when the cow entered the AMS, days in milk in classes according to Huth (1995) (< 14 days = 1, 14-77 days = 2, 77-140 days = 3, 140-231 days = 4, and > 231 days = 5), time of day classes (ToD) when the cow visited the AMS (22:00-04:00 LT = 1, 04:00-10:00 LT = 2, 10:00-16:00 LT = 3, and 16:00-22:00 LT = 4), and explicitly for DUR-specific INT classes (< 8 h = 1, 8-10 h = 2, and > 10 h = 3); X was the corresponding incidence matrix for fixed effects; u was the vector of random cow effects for repeated measurements with the corresponding incidence matrix Z; and e was the vector for random residual effects.
L. V. Santos et al.: Genetic parameters for longitudinal behavior

Estimation of genetic parameters
A strategy of using an average information (AI) matrix is shown to be computationally convenient and efficient for estimation of variance components by restricted maximum likelihood (REML) in the mixed linear models (Gilmour et al., 1995).In this regard, model I was extended by including the pedigree based on the genetic relationship matrix.
Variance components and heritabilities for behavior, health, and production traits were estimated via single-trait animal models using the AI-REML procedure, as implemented in the DMU software package (Madsen and Jensen, 2000).
For the Gaussian distributed traits MY_total, MY_fl, MY_fr, MY_rl, MY_rr, EC_fl, EC_fr, EC_rl, EC_rr AMF, INT, and DUR, a linear animal repeatability model was applied (Eq.2): where y was the vector of observations, β was the vector of fixed effects with the corresponding incidence matrix X, u was the vector of random genetic effects with the corresponding incidence matrix Z, and p was the vector of random permanent environmental effects with the corresponding incidence matrix W, and e was the vector of random residual effects.Traits and their corresponding effects as considered in models I and II are given in Table 2.
Repeatabilities for the longitudinal traits were calculated as follows (Eq.3): where σ 2 a was the additive genetic variance, σ 2 pe was the permanent environmental variance, and σ 2 e was the residual variance.
For the binary traits VIS3, VIS4, and KO, a generalized linear mixed model (GLMM) with a logit link function was applied (Eq.4): where η was the vector of logits, β was the vector of fixed effects with the corresponding incidence matrix X, u was the vector of random genetic effects with the corresponding incidence matrix Z, p was the vector of random permanent environmental effects with the corresponding incidence matrix W. The binary traits along with their effects are given in Table 2. Heritabilities were calculated using the variance of the logit link function.This implies a correction of the residual variance by factor π 2 /3 (Southey et al., 2003).
The covariance structure of random effects for models II and III was (Eq.5) where G was the variance-covariance matrix for genetic effects, A u was an additive genetic relationship matrix for u animals in the whole pedigree, P was the variance-covariance matrix for permanent environmental effects, I was an identity matrix for n cows and r observations, R was the residual variance-covariance matrix, and ⊗ denotes the Kronecker product.
Because milk yield is an important factor influencing AMF, INT, DUR, VIS3, VIS4, and KO, univariate models with and without milk yield as a covariate were compared.
Furthermore, bivariate animal models were applied to all trait combinations in order to estimate genetic correlations.Bivariate GLMMs (model III) were applied to binary trait combinations (e.g., VIS3 with KO), bivariate GLMM-linear models (models III and II) for the combination of one binary with one Gaussian trait (e.g., VIS3 with MY), and linearlinear models (model II) for Gaussian-Gaussian trait combinations including EC, AMF, MY_total, INT, and DUR.
In some bivariate runs, standard errors (SEs) for genetic correlations were quite large.However, SEs for heritabilities from single-trait animal models were in an acceptable range.Hence, in addition, estimated breeding values (EBVs) from single-trait animal models were correlated, and EBV correlations were compared with genetic correlations.For this purpose, EBVs from the most influential sires with at least five daughters were considered (47 sires).

Descriptive statistics
Descriptive statistics for all traits used in this study after data editing are given in Table 3.The degree of individual variation in milking frequencies reflects the variation in milking intervals from 2 to 18 h.Some cows entered the AMS as soon as the minimum "milk allowing interval" has passed, whereas other cows only are milked when they are fetched by the stock person after 14:00 LT.A large variation in the range from 1 to 15 min (average of 6.3 min) was also observed for DUR.Such farm average with 6.3 min for DUR, associated with large individual variation, was observed for all three farms.A fraction of 52 % of all cows visited the AMS more than three times per day (VIS3), but only 10 % of all cows visited the AMS more than four times per day (VIS4).
The mean of the udder health indicator EC ranged from 4.92 to 4.96 mS cm −1 on an udder quarter level.Norberg et al. (2004) used an inter-quarter ratio (IQR) for EC and found out that IQR performed better than the absolute conductivity level, in order to distinguish between clinically and subclinically infected cows.In contrast, in early studies, Linzell and Peaker (1975) and Fernando et al. (1982) stated that absolute conductivity and IQR had similar accuracies for the detection of mastitis.In the present study, the analysis focused on the EC_fl, _fr, _rl, and _rr: electrical conductivity at a quarter basis: front left, front right, rear left, and rear right.AMF: average milk flow.MY_total: total milk yield per day.EC: electrical conductivity from all four quarters.INT: interval between two consecutive milkings.DUR: milking time during a visit in the milking robot.VIS3: at least three visits to the milking robot per day.VIS4: at least four visits to the milking robot per day.KO: knock off of the milking device from at least one udder quarter. 2 Robot: the AMS the cow used.Consecutively numbered across herds.Date: day the cow entered the AMS.INTcl: interval in classes; < 8 h = 1, 8-10 h = 2, and > 10 h = 3. DIMcl: days in milk (DIM) in classes; < 14 = 1, 14-77 = 2, 77-140 = 3, 140-231 = 4, and > 231 = 5.ToD: time of day when the cow visited the AMS in classes; 22:00-04:00 LT = 1, 04:00-10:00 LT = 2, 10:00-16:00 LT = 3, and 16:00-22:00 LT = 4. 3 CA: calving age in month is (calving date-birth date)/30.4375.
absolute EC, as generated by the AMS, instead of defining inter-quarter ratios.

Impact of environmental and animal-related effects on behavior traits
Table 2 shows the significance level of each effect for the traits DUR and INT (results from model I).DUR differed significantly (P < 0.05) for all ToD classes (Fig. 1a), apart from the comparison DUR in ToD 1 and DUR in ToD 3.
Cows spent the most time in the milking box between 4 and 10 (= ToD 2).Regarding INT, all ToD classes differed significantly (P < 0.05) from each other (Fig. 1b).The longest interval was found between 10:00 and 16:00 LT (Fig. 1b).This is the time of the day when cows usually eat or lie (Krohn and Munksgaard, 1993;DeVries and Keyserlingk, 2005).The shortest milking interval was found between 04:00 and 10:00 LT.Cows determine their activity rhythm according to environmental factors such as light.They are more active during daytime because of the circadian rhythm -the light change between day and night -which acts as a natural timer (Zeeb und Bammert, 1985).Hopster et al. (2002) demonstrated that low-ranking cows are forced by social competition to visit the AMS at times that are not preferred, particularly during the midnight hours, leading to irregular or long intervals between milkings.There was no significant impact (P > 0.05) of the parity on DUR (Fig. 2a), meaning that cows with different parities spent the same time in the AMS.With regard to the parity, least squares means for INT significantly differed (P < 0.05) (Fig. 2b).Longer INT for first parity cows were probably due to fearfulness and lower ranking; i.e., they were not allowed to visit the AMS in close intervals due to the social herd structure (Ketelaar-de Lauwere, 1996).The INT increase in the fifth parity (Fig. 2b) could be due to reduced mobility of older cows (Alban, 1995).Prescott et al. (1998) found that low-yielding cows did not significantly increase their level of voluntary AMS visits when changing feeding strategies, which indicates further motivations to visit the AMS (for example, curiosity).

Variance components and heritabilities for behavior traits
The heritability was 0.25 for AMF, 0.19 for DUR, 0.07 for INT, 0.03 for KO, 0.08 for VIS3, and 0.05 for VIS4 (Table 4).König et al. (2006) estimated a heritability for milking frequency in the range from 0.16 and 0.27, depending on the statistical modeling.Reported heritabilities for INT were in a range from 0.09 to 0.26 (Carlström et al., 2013).
The heritability for INT found in the present study was slightly lower (0.07).Also the heritability for AMF (0.25) was slightly lower compared to estimates based on conventional milking technique data (Santos et al., 2015)    indicate the possibilities for AMS milkability improvements via breeding.Heritabilities estimated with univariate models with and without milk yield as a covariate were comparable, with slightly larger heritabilities for some traits in models with milk yield as a covariate (0.17 for VIS3, 0.08 for VIS4, and 0.18 for INT).Heritabilities and additive genetic variance show that besides environmental components such as food, fetching and machine calibration (e.g., restriction of the INT) there is a genetic component behind the traits.Research showed that there is a possibility to automatically record behavior traits (König et al., 2006;Schwartzkopf-Genswein et al., 2012).The characterization of the traits in the context of animal welfare implies further studies including temperament and behavior tests as validated in animal ethology (e.g., Ebinghaus et al., 2017).
The heritability for milk yield per day (MY_total) was 0.18.For the different udder quarters, heritabilities ranged from 0.05 for MY_fr to 0.19 for MY_fl (Table 4).Tančin et al. (2006) suggested productivity improvements via consideration of specific udder quarter information.Also in the present study, identical traits from different udder quarters seem to have a different genetic background in terms of genetic (co)variance components, suggesting udder-quarterspecific selection strategies.As one example, sires will have udder-quarter-specific breeding values, allowing specific udder quarter improvements from a mating perspective.Information at an udder quarter level might be valuable information in future precision dairy farming applications.Eastwood et al. (2004) defined precision dairy farming as "the use of information technologies for assessment of fine-scale animal and physical resource variability aimed at improved management strategies for optimizing economic, social, and environmental farm performance."In this regard, electrical devices used in precision dairy farming analyzed different milk characteristics and produced indicators based on tempera-ture, conductivity, milk quantity, production balance across quarters, or milk flow (Boichard and Brochard, 2012).

Correlations among behavior indicator traits
Genetic correlations (r g ) as well as EBV correlations (r EBV ) between AMF and DUR were negative (−0.88 and −0.63, respectively) (Table 5), indicating that fast milking cows, i.e., cows with a good temperament, spent less time milking in the milking robot.Hence, genetic associations between AMF and DUR confirm farmers' observations at a phenotypic scale.Both temperament indicators (milking time and milk flow) are economically important, because they determine AMS capacity and efficiency.Explanations for the strong genetic relationship between AMF and DUR with acceptable standard errors can be as follows.The combative behavior of cows causes physiological changes, i.e., affecting the oxytocin hormone level and norepinephrine concentrations (Kondo and Hurnik, 1988), and in ongoing lactation, reduced milk flow.Szentléleki et al. (2015) reported a significantly higher milking speed if cows were calm in the premilking process compared to nervous cows.Another explanation is due to the fact that cows with faster AMF need less time to be milked and therefore spend less time in the milking box.
The genetic correlation between DUR and KO was also negative (r g = −0.25),with less knock offs of the milking device being associated with longer milk ejection.A hypothesis would be that nervous or fearful cows show more knock offs, leading to a shorter milk ejection because of negative impact on oxytocin release.As outlined by Rousing et al. (2004), kicking and stepping during milking resulted in knock off of the milking device, incomplete milking, and reduced milk yield.Stressed animals not only require more handling during milking (Rushen et al., 1999) but they may kick off the milking device during milking.Fearfulness in cows can result in slower milk let down and milk retention (Munksgaard et al., 2001).EBV correlations between DUR and KO were close to zero.EBV correlations were only based on EBV from influential sires, but due to EBV accuracies lower than 1, r EBV values are "less extreme", i.e., an underestimation of genetic correlations (Calo et al., 1973).
Low positive correlations were estimated between VIS3 and DUR (r g = 0.28, r EBV = 0.11), and between VIS4 and DUR (r g = 0.37, r EBV = 0.12), indicating that an increase of visiting frequencies was associated with a longer milking duration per visit.Extremely long DUR may reflect an inhibited milk flow, being supported on the genetic scale with r g = −0.88 between DUR and AMF.The genetic correlation between AMF and INT was positive, but close to zero (r g = 0.14, r EBV = 0.02), and estimated with quite large standard errors.Accordingly, Hogeveen et al. (2001) found that a longer milking interval was associated with an increase in the milk flow rate (on a phenotypic level), independent of the milk performance level.An increase in milking speed (e.g.,   AMF) will lead to a reduction of total milking time per cow, with a positive impact on AMS capacity and AMS efficiency (Gäde et al., 2007).
INT and KO were negatively correlated (r g = −0.19,r EBV = −0.13),meaning that shorter intervals were genetically associated with more knock offs.This might be associated with udder deformations, resulting in improper attachment of the milking device.Also, the correlation between DUR and INT was slightly negative (r g = −0.15,r EBV = −0.09),indicating that shorter intervals were associated with a longer milking duration.Milking duration depends not only on the amount of milk, but also on the temperament of the cow.Kaihilahti et al. (2006) stated that 19 % of the cows kicked off the teat cups during milking, with an impact on milk duration and milking time independent from the milk yield level.In most cases, EBV correlations were in agreement with genetic correlations.

Correlations between behavior and production traits
As indicated in Table 6, MY_total was positively correlated with DUR (r g = 0.87; r EBV = 0.25), with VIS3 (r g = 0.49; r EBV = 0.52), and with VIS4 (r g = 0.80; r EBV = 0.47).These findings suggest that sires with high EBV for milk yield tend to have daughters with longer milking duration but also daughters that come easily or voluntary into the milking box.These findings were also reported by König et al. (2006) when defining milking frequencies as a behavior indicator trait.In their models, milk yield was used as covariate in statistical models, showing that milk yield was not the only force determining voluntary visits.Kazlauckas et al. (2005) compared two groups of mice (with high and low exploration of an object) and concluded that although both groups were driven by food motivation, high exploratory mice showed increased locomotion.Results from such research, as conducted in other species, support our hypothesis that there are additional motivations to visit the AMS apart from the offered food.In accordance with Nixon et al. (2009), selection for increased milk production implies an increase of milking frequencies.Associations between calm temperament and high milk production were shown by Lawstuen et al. (1988) and Breuer et al. (2000).Also across species, temperament and behavior were favorably correlated with productivity.For example, in pigs, selection for calm temperament simultaneously improved carcass and meat quality traits (Reverter et al., 2003).Nevertheless, the definition of temperament differed, complicating the comparison of correlation coefficients from different studies.Accordingly, Hoppe et al. (2010) found that selection towards improved temperament in beef cattle simultaneously improved production traits.In the present study, milk yield was positively correlated with AMF (r g = 0.40; r EBV = 0.47), indicating that higher productivity was associated with a faster milk flow, supporting previous results from conventional milking systems (Santos et al., 2015).Selection towards desired temperament had a positive effect on the number of visits and on the duration in the milking box, as well as on milk production and milk efficiency (i.e., AMF).The correlation between MY_total and KO (r g = 0.21; r EBV = 0.05) was moderately positive, indicating antagonistic genetic relationships from a breeding perspective.Knocking off the milking device has different reasons, e.g., udder morphology, mastitis, or the temperament of the cow.More aggressive cows produce more knock offs of the milking device due to the agitation in the milking box.The behavior indicator INT was negatively correlated with MY_total (r g = −0.51;r EBV = −0.52).Shorter milking intervals, indicating a good individual behavior or temperament, were also associated with higher milk production per cow and hour (Hogeveen et al., 2001).Extended milking intervals cause practical problems in AMS, and so far, direct selection tools are missing.Nevertheless, some genetic correlation standard errors were quite large, encouraging further analyses in this regard.

Correlations between behavior and health traits
Genetic correlations among all behavioral traits and EC were positive, but also close to zero (Table 7).The strongest positive genetic correlation was found between INT and EC (0.19), indicating that longer milking intervals had a negative impact on animal health, or that animals having health problems have longer milking intervals.The number of AMS visits (VIS3) was positively correlated with EC (r g = 0.15).The risk of bacterial invasion into the mammary gland increased with the number of milkings per day (Hogeveen et al., 2001).The genetic correlation between AMF and EC was low, but again positive (r g = 0.11), confirming the unfavorable relationships between temperament and health traits (Santos et al., 2015).Increased AMF is also due to decreased tension of the teat sphincter.A weak sphincter decreases resistance to infection of the udder by specific major pathogens, causing clinical mastitis (Boettcher et al., 1998).Hence, from an animal breeding perspective, AMF should be treated as a trait with an intermediate optimum, as already suggested by Santos et al. (2015).Generally weak genetic correlations suggest that breeding on behavior indicator traits does not impair health indicator traits.Regarding the correlations between AMS behavior indicator traits with EC, all EBV correlations were close to zero, and partly differed in sign from genetic correlations.The genetic correlations between AMS behavior traits with other functional traits were estimated with quite large standard errors, suggesting ongoing studies with additional data.

Conclusions
This was a first pilot study to estimate genetic parameters for alternative functional traits based on data automatically generated by the AMS, free from subjective evaluations of classifiers.Furthermore, the applicability of AMS traits as indicators for dairy cow behavior and health was verified.
From such a perspective, with the inclusion of milk yield as a covariate in the statistical model, genetic variances of AMS traits even increased.The increase of genetic variance and heritability suggests a behavior or temperament background, instead of milk yield being the only force behind these traits, e.g., AMS visits.Behavior traits derived from data from the AMS like AMF and DUR had a moderate heritability.Heritabilities for the other AMS behavior indicator traits (INT, KO, VIS3, and VIS4) were quite small.Regarding genetic relationships, an increase of AMF, a decrease in DUR, and a decrease of INT might contribute to desired behavior without losing genetic gain for production.Different EC heritabilities for different udder quarters allow udder-quarter-specific breeding strategies.Hence, based on the genetic (co)variance components from the present study, results are encouraging to breed cows for AMS systems based on AMS data, but it is imperative to have a precise validation based on larger datasets.
yield at a quarter basis: front left, front right, rear left, and rear right.EC: electrical conductivity from all four quarters.EC_fl, _fr, _rl, and _rr: electrical conductivity at a quarter basis: front left, front right, rear left, and rear right.DUR: milking time during a visit in the milking robot.INT: interval between two consecutive milkings.VIS3: at least three visits to the milking robot per day.VIS4: at least four visits to the milking robot per day.KO: knock off of the milking device from at least one udder quarter.DIM: days in milk.CA: calving age.

Figure 1 .
Figure 1.Least squares means for (a) DUR (milking time during a visit in the automatic milking system) (±SE) and (b) INT (interval between two consecutive milkings) (±SE) with dependency on time of the day in classes.Significant differences of least squares means (< 0.05) are indicated with different letters above the bars.

Figure 2 .
Figure 2. Least squares means for (a) DUR (milking time during a visit in the automatic milking system) (±SE) and (b) INT (interval between two consecutive milkings) (±SE) with dependency on parity.Significant differences of least squares means (< 0.05) are indicated with different letters above the bars.

Table 1 .
Definition of the traits generated in the AMS and an explanation for their use as behavior and health trait indicators.

Table 2 .
Significance of fixed effects and of covariates for the different traits.MY_fl, _fr, _rl, and _rr: milk yield at a quarter basis: front left, front right, rear left, and rear right.

Table 3 .
Descriptive statistics for all traits and effects.

Table 5 .
Genetic correlations among behavior indicator traits (above the diagonal with standard errors in brackets) and corresponding correlations among breeding values from bulls with at least five daughters (below the diagonal).

Table 6 .
Genetic correlations (r g ) with standard errors and breeding value correlations (r EBV ) considering bulls with at least five daughters between milk yield and behavior indicator traits.See Table1.MY_total: total milk yield per day from the AMS. *

Table 7 .
Genetic correlations (r g ) with standard errors (in brackets) and breeding value correlations (r EBV ) considering bulls with at least five daughters between behavior indicator traits and electrical conductivity of the udder (EC).