{'fraction_non_alphanumeric': 0.0431576072111445, 'fraction_numerical': 0.028475826276973506, 'mean_word_length': 5.099333610995418, 'pattern_counts': {'":': 0, '<': 10, '<?xml version=': 0, '>': 4, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 1, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
Pasture Access Affects Behavioral Indicators of Wellbeing in Dairy Cows

Simple Summary Dairy cows in Europe and the United States are increasingly housed indoors year-round. Even cows with pasture access are usually kept inside during the winter and around calving. However, animal welfare scientists and dairy consumers are concerned that full-time housing impacts cattle welfare. We investigated how pasture influences behavioral indicators of wellbeing. Using cow pedometers, we recorded 29 animals’ lying and walking activity during 18 days of pasture access and 18 days of indoor housing. Cattle at pasture had fewer lying bouts but longer lying times, indicating they were more comfortable and less restless. Lying behavior was also more synchronous outdoors, with most of the herd lying at the same time. These results indicate pasture provides a comfortable surface and reduces competition for lying space. Furthermore, cows at pasture walked farther, with potential benefits for their physical health and psychological wellbeing. Our findings contribute to the growing body of evidence that pasture access improves dairy cow welfare. As a society, we must decide whether full-time housing is a price worth paying for dairy products. Abstract Dairy cows are increasingly housed indoors, either year-round or for long stretches over the winter and around parturition. This may create health and welfare issues. In cattle, lying and walking are highly motivated, and herds synchronize lying behavior when they have comfortable surfaces and little competition for space. Lying and walking activity can, therefore, indicate good welfare. Using a repeated measures crossover design, we gave 29 Holstein–Friesian dairy cows 18 days of overnight pasture access (PAS treatment) and 18 days of indoor housing (PEN treatment). Accelerometers recorded their lying and locomotory behavior. We measured behavioral synchrony with Fleiss’ Kappa and analyzed the accelerometry data using linear mixed models. Compared to the PEN treatment, the PAS treatment had longer overnight lying durations (χ21 = 27.51, p < 0.001), fewer lying bouts (χ21 = 22.53, p < 0.001), longer lying bouts (χ21 = 25.53, p < 0.001), and fewer transitions up or down (χ21 = 16.83, p < 0.001). Herd lying behavior was also more synchronous at pasture (χ21 = 230.25, p < 0.001). In addition, nightly step counts were higher in the PAS treatment than the PEN treatment (χ21 = 2946.31, p < 0.001). These results suggest pasture access improves dairy cow welfare by increasing comfort, reducing competition and boredom, and facilitating motivated behavior.

welfare outcome in itself. Walking also has physical benefits, especially for cows' legs, feet, and hooves [50,[68][69][70]. Gustafson and Lund-Magnussen [71] suggested exercise improves the condition of joints, tendons, and ligaments in dairy cows, easing transitions up and down. Regular walking on a treadmill reduced gestating cows' working heartrate and plasma lactate concentrations, indicating reduced metabolic stress [72]. Therefore, higher step counts improve health, as well as demonstrating increased grazing if cows have access to pasture.
To date, limited research has investigated the welfare impacts of restricted pasture access, where cows are fed indoors for part of the day [26,73]. Moreover, few experimental studies have compared behavioral welfare indicators at pasture and in indoor housing [8]. Using a repeated measures crossover experiment, we addressed these gaps by recording dairy cows' lying and walking activity during 18 days of overnight pasture access and 18 days of full-time housing. We predicted that cows at pasture would have longer total lying durations, fewer and longer lying bouts, more synchronous lying behavior, and higher step counts. These results would suggest pasture access improves dairy cattle welfare.

Ethics
This study was approved by Queen's University Belfast's School of Biological Sciences Animal Research Ethics Committee (approval number: QUB-BS-AREC-18-005). In accordance with the Animals (Scientific Procedures) Act 1986, experimental procedures were described to a Home Office inspector beforehand and deemed not to require a license. Animal welfare was prioritized throughout.

Subjects and Housing
This study was carried out during summer 2018 at the Agri-Food and Biosciences Institute (AFBI), Hillsborough, County Down, Northern Ireland (54 • 5' N; 6 • 1' W). The experiment involved 29 autumn-calving, lactating, Holstein-Friesian dairy cows (mean of 4.34 years, range 2.69-8.72 years; mean of 241 days calved, range 209-273 days). We performed a power analysis to determine sample size; an effect size of 0.5, significance level of 0.05, and power of 0.8 required 27 individuals. All subjects were kept at pasture prior to the study, but they were housed inside for eight weeks pre-testing to standardize conditions (see below). The indoor housing consisted of two adjoining pens (each 13.3 × 8.5 m). Both pens had 16 cubicles, fitted with rubber mats, and concrete standing and walking areas, cleaned by an automatic scraper system six times per day. The building was naturally ventilated, with no additional ventilators servicing the pens. Cows had ad libitum access to grass silage offered daily at approximately 09:00 via an open feed barrier along the front of each pen, and ad libitum access to fresh water. They were milked in a rotary parlor twice daily (06:30 and 15:00).
Before the experiment, all 29 subjects were fitted with an IceTag (IceRobotics Ltd., Edinburgh, UK). IceTags are commercially available hind-leg activity monitor sensors that distinguish lying from standing and record step counts using a tri-axial accelerometer (sampling rate: 16 Hz; time resolution: 1 s; dimensions: 95.0 × 82.3 × 31.5 mm; weight: 130 g; validated by [74][75][76][77]). As well as the study animals, the herd included three cows whose behavior was not recorded, due to lack of IceTag availability (total herd size: 32). These three additional animals allowed us to maintain a consistent 1:1 cow/cubicle ratio. Four days before testing, a veterinary graduate scored each subject's mobility, following a standard four-point system developed by the Agriculture and Horticulture Development Board [78] (Table 1). Cattle were individually observed from the front and side, whilst walking and standing on a flat surface. Scores of 0 or 1 were classified as non-lame; scores of 3 or 4 were classified as lame (for results, see Table 1).

Procedure and Treatments
Before the study, all 32 cows were housed in the indoor pens without pasture access for eight weeks. The pens were connected and the animals were managed as one group. When the experiment began, cows were pseudorandomly divided into two groups of 16 (balanced for lameness) and the pens were visually isolated from each other using plywood sheeting. The experiment used a two-period crossover design with two concurrent treatments: 18 days of overnight pasture access (PAS) and 18 days of full-time housing (PEN) (first period: June 25, 2018-July 13, 2018; second period: July 16, 2018-August 03, 2018). Throughout the study, both groups were kept in the indoor pens with the same silage type from 10:00 to 16:00. Cows in the PEN treatment were also housed overnight, with ad libitum access to silage. Cows in the PAS treatment had 18 h of daily pasture access, from approximately 16:00 (post-afternoon milking) until 10:00 the next morning. This covered the main grazing times (dawn and dusk [26,73,79,80]) and is when cattle choose to access pasture [24][25][26][27]30,31]. PAS cows were managed in a rotational grazing system, so the treatment groups were kept on different pastures. Area grazed ranged 1370-3950 m 2 and distance to parlor ranged 190-295 m. We analyzed grass samples three times during each period (six times in total). The herbage was generally high quality, although lower quality in the second period. Across the study, mean oven dry matter (DM) content was 226.8 (SD 27.8) g/kg, mean crude protein content was 216.5 (SD 24.2) g/kg DM, and mean metabolizable energy content was 11.4 MJ/kg DM (first period: 238.5, SD 8.6, g/kg; 226.0, SD 11.5, g/kg DM; and 12.0 MJ/kg DM, respectively; second period: 215.0, SD 8.6, g/kg; 207.0, SD 11.5, g/kg DM, 10.9 MJ/kg DM, respectively). When the first period was complete, the cows swapped treatments and the procedure was repeated. The group at pasture first (PAS-first) had 14 study animals (mean of 4.47 years, range 2.69-8.72 years; mean of 240 days calved, range 219-260 days) and the group at pasture second (PAS-second) had 15 study animals (mean of 4.22 years, range 2.74-7.76 years; mean of 242 days calved, range 209-273 days). Including the three individuals without IceTags, both groups contained 16 cows in total. As part of a larger project, other welfare measures were collected during daytime housing, including performance in cognitive bias tasks, eye temperature, and health scores [81].

Data Preparation
Using the IceTags, we measured seven variables: overnight lying duration (h/night), daytime lying duration (h/daytime), number of lying bouts (bouts/24 h), lying bout duration (total duration/bouts), overnight transitions up or down (transitions/night), daytime transitions (transitions/daytime), and overnight step count (steps/night). Overnight data were analyzed from 16:30 to 09:30 and daytime data from 10:00 to 15:00, so effects of walking to and from pasture were eliminated. Lying duration was the total time the IceTag was horizontal, lying bouts were the duration from vertical to horizontal and back again, and steps were counted whenever cows lifted their tagged leg. Lying duration, transitions, and step counts were recorded in 15-min intervals; bout length data were only available per day. To measure synchrony, we classified cows as lying if they spent over half the 15-min interval lying (>449 s). We compared the binary lying data (either lying or not) between herd members within each interval. To our knowledge, this automated method is a novel way to assess behavioral synchrony (further detailed below).

Statistical Analyses
We analyzed the data in R (R Core Team, Cran-r-project, Vienna, Austria, version 3.4.4). Data were checked for normality by plotting histograms; transformations were applied where these improved the distribution. We fitted general linear mixed effects models (GLMMs) using maximum likelihood (ML), including all interactions. To improve the models' fit to the data, we removed interactions in a stepwise fashion and selected models with the lowest Akaike information criterion (AIC) values. We re-ran these models using the restricted maximum likelihood (REML) approach. P-values were extracted using a Wald's test, with p < 0.05 considered statistically significant. Data are presented as means ± standard error.
We fitted separate models for the following response variables: overnight and daytime lying duration, number of lying bouts, lying bout duration, overnight and daytime transitions, and overnight step count. The fixed effects were treatment, treatment order (either PAS first or second), and cow age (column scaled and centered in R), whilst cow ID and day number were random effects. Based on AIC values, we removed interactions from the models for overnight lying duration (treatment × treatment order × age, treatment × age, treatment order × age), number of lying bouts (treatment × treatment order × age, treatment × age, treatment order × age), overnight transitions (treatment × treatment order × age, treatment × age), daytime lying duration (treatment × treatment order × age, treatment × age, treatment order × age), and overnight step count (treatment × treatment order × age, treatment order × age). Lying bout data included substantial outliers: the longest was 14.25 h, but the second longest was 7.77 h. As both values were from the same individual on consecutive days, we ran the bout models on both the original dataset and data within two SD of the mean. This did not change the significance level of any results, so only the original dataset model is reported. Because overnight step counts were positively skewed, we applied a square-root transformation to these data.
Step counts are provided alongside walking distance, based on a stride length of 1.5 m [82].
We measured lying synchrony using Fleiss' Kappa coefficient of agreement (K F ), a test of inter-observer reliability for >2 raters [83]. Treating each cow as a rater, we measured synchrony as intra-herd "agreement" in lying behavior during each 15-min interval [61]. K F > 0 indicates agreement greater than chance, K F = 0 indicates chance levels, and K F < 0 indicates disagreement greater than chance. Fleiss' Kappa assumes independent data [84], which we determined with the IceTags' recordings of maximum bout lengths. However, given the outliers in the lying bout data, we defined maximum bout length as two SD above the mean (3.75 h). This provided five intervals per night (17:00-17:15, 21:00-21:15, 01:00-01:15, 05:00-05:15, 09:00-09:15). Using the "IRR" package in R (Various Coefficients of Interrater Reliability and Agreement), we calculated daily K F values for each treatment group and analyzed them as the response variable in a GLMM (fixed effects: treatment and treatment order; random effect: day number).

Results
We collected data from 29 cows across 36 days. However, the IceTags did not record every study day or 15-min interval for every subject, reducing the number of measurement days (number of cows × number of study days) and measurement intervals (number of cows × number of study intervals) available for analysis. For both overnight and daytime lying duration, we collected data from all individuals for every day (1044 measurement days). Overnight lying durations were compiled from 70,429 measurement intervals (563 measurement intervals unrecorded) and daytime lying durations were compiled from 20,759 measurement intervals (121 measurement intervals unrecorded). We gathered data on lying bout frequency and duration from 1034 measurement days (106 measurement days unrecorded). To measure transitions, we collected data for all subjects from every study day (1044 measurement days). Overnight transition data came from 70,429 measurement intervals (563 measurement intervals unrecorded) and daytime transition data came from 20,759 measurement intervals (121 measurement intervals unrecorded). For lying synchrony, we calculated 36 herd K F values for both groups, with 18 per herd per treatment. These scores were based on 5140 measurement intervals from individual cows (80 measurement intervals unrecorded). Finally, we extracted step counts from 70,429 measurement intervals (563 measurement intervals unrecorded).

Discussion
We investigated how pasture access and indoor housing affect dairy cows' lying and walking behavior as indicators of their welfare. In a two-period repeated measures crossover experiment, we compared activity between these two management systems using accelerometers. Pasture access increased behaviors associated with wellbeing in cattle and reduced signs of discomfort, displacements, and poor health. Overnight lying durations were longer at pasture, whilst there was no difference in daytime lying durations when both groups were in indoor housing. Lying is a highly motivated behavior which is important for cow welfare, so our results support previous work that cattle are more comfortable at pasture [38][39][40][41]43]. At pasture, cows also rested in fewer and longer lying bouts with fewer transitions and greater herd synchrony. This suggests pasture access reduces restlessness and competition for lying space [48,51]. Finally, cows had higher overnight step counts at pasture, likely because they spent more time grazing.
The lying data indicate that pasture provided a more comfortable surface than cubicles, and more lying space than fully-stocked indoor housing. Cows in the PAS treatment were less restless, with fewer but longer lying bouts, and fewer overnight transitions. Longer lying bouts reflect increased cow comfort [85]. Moreover, low-ranking individuals often cannot access cubicles at preferred times [12,48,49,58]. The treatment difference in overnight lying duration suggests additional lying bouts did not compensate for this disruption. In addition, we found no difference in lying duration or transitions during the daytime, when both treatments were housed indoors, implying pasture access was responsible. Our study also supports previous findings that pasture access increases herd synchrony in lying behavior [53][54][55]. Cattle synchronize under semi-natural conditions, indicating this is their preferred behavior pattern [52,57]. Whether animals have what Step counts also decreased with age (χ 2 1 = 4.68, p = 0.031). Furthermore, the treatment × treatment order interaction was highly significant (χ 2 1 = 12.57, p < 0.001). PAS-first cows had a smaller increase in step count at pasture than PAS-second cows. The treatment × age interaction was also significant (χ 2 1 = 51.00, p < 0.001). At pasture, step counts decreased with age, whereas they increased with age indoors.

Discussion
We investigated how pasture access and indoor housing affect dairy cows' lying and walking behavior as indicators of their welfare. In a two-period repeated measures crossover experiment, we compared activity between these two management systems using accelerometers. Pasture access increased behaviors associated with wellbeing in cattle and reduced signs of discomfort, displacements, and poor health. Overnight lying durations were longer at pasture, whilst there was no difference in daytime lying durations when both groups were in indoor housing. Lying is a highly motivated behavior which is important for cow welfare, so our results support previous work that cattle are more comfortable at pasture [38][39][40][41]43]. At pasture, cows also rested in fewer and longer lying bouts with fewer transitions and greater herd synchrony. This suggests pasture access reduces restlessness and competition for lying space [48,51]. Finally, cows had higher overnight step counts at pasture, likely because they spent more time grazing.
The lying data indicate that pasture provided a more comfortable surface than cubicles, and more lying space than fully-stocked indoor housing. Cows in the PAS treatment were less restless, with fewer but longer lying bouts, and fewer overnight transitions. Longer lying bouts reflect increased cow comfort [85]. Moreover, low-ranking individuals often cannot access cubicles at

Discussion
We investigated how pasture access and indoor housing affect dairy cows' lying and walking behavior as indicators of their welfare. In a two-period repeated measures crossover experiment, we compared activity between these two management systems using accelerometers. Pasture access increased behaviors associated with wellbeing in cattle and reduced signs of discomfort, displacements, and poor health. Overnight lying durations were longer at pasture, whilst there was no difference in daytime lying durations when both groups were in indoor housing. Lying is a highly motivated behavior which is important for cow welfare, so our results support previous work that cattle are more comfortable at pasture [38][39][40][41]43]. At pasture, cows also rested in fewer and longer lying bouts with fewer transitions and greater herd synchrony. This suggests pasture access reduces restlessness and competition for lying space [48,51]. Finally, cows had higher overnight step counts at pasture, likely because they spent more time grazing.
The lying data indicate that pasture provided a more comfortable surface than cubicles, and more lying space than fully-stocked indoor housing. Cows in the PAS treatment were less restless, with fewer but longer lying bouts, and fewer overnight transitions. Longer lying bouts reflect increased cow comfort [85]. Moreover, low-ranking individuals often cannot access cubicles at preferred times [12,48,49,58]. The treatment difference in overnight lying duration suggests additional lying bouts did not compensate for this disruption. In addition, we found no difference in lying duration or transitions during the daytime, when both treatments were housed indoors, implying pasture access was responsible. Our study also supports previous findings that pasture access increases herd synchrony in lying behavior [53][54][55]. Cattle synchronize under semi-natural conditions, indicating this is their preferred behavior pattern [52,57]. Whether animals have what they want is integral to welfare [86][87][88]. Our results suggest low-ranking cows in the PEN treatment could not lie when they wanted. Although cubicles were available for every animal, cattle exhibit longer lying durations, less daytime lying, fewer displacements, and greater lying synchrony when cubicle housing is understocked than fully-stocked [60]. This could be because limited cubicles prevent subordinates from lying where they want. Pasture, by contrast, provides ample lying space. As a result, we suggest pasture access promotes the animals' agency, an important aspect of welfare [89].
Our findings also suggest boredom can be a welfare issue for cattle housed indoors. In animals, boredom is an aversive state that arises from general under-stimulation, rather than the frustration of any specific need or motivation [90]. Subjects in the PAS treatment spent a greater proportion of the night lying and walking, and cattle in the PEN treatment were standing inactive for longer. "Idle standing" may indicate poor welfare in cattle and is associated with hard lying surfaces [36,91,92]. From a health perspective, standing inactive can cause lameness, especially when the animal is partially in a cubicle [93][94][95], as well as being a symptom of disease (e.g., mastitis [96] or metritis [97]). Cows at pasture also spend a greater proportion of the day feeding [98], although the IceTags did not record these data. As such, cattle housed indoors have little to do for long timespans. Burn [99] linked under-stimulation with restlessness and disrupted sleep patterns in mammals (e.g., humans [100] and rats [101]). Boredom could, therefore, explain the PEN treatment's disrupted lying behavior, compounded by abrasive surfaces and competition for cubicles. However, standing inactive has been attributed to depression-like states, as well as under-stimulation [102,103]. Isolating boredom requires specific behavioral indicators we did not record, such as measures of time perception and responses to novel stimuli [99,104].
Contrary to the overall lying results, both groups displayed signs of discomfort during the first testing period. The PAS-first group had longer daytime lying durations, more and shorter lying bouts, and more overnight transitions at pasture compared to indoor housing-results that were opposite to the PAS-second group. We attribute this to heat stress [17,105]. Despite similar mean daily temperatures in both periods, the maximum temperature was substantially higher in the first period ( Table 2). Thermal stress reduces walking [17], which may be why the PAS-first group exhibited a smaller increase in step count at pasture than the PAS-second group. Moreover, daily sunlight hours were longer in the first period. Shade was not provided in the PAS treatment, further explaining the cows' discomfort [5,[106][107][108]. On the other hand, the first period had fewer hours per day with relative humidity ≥ 90%. Increasing relative humidity worsens heat stress [105]. During hot weather, some preference studies have recorded cattle spending more time in their indoor housing [25,27]. However, Charlton et al. [24] observed high temperatures increasing durations at pasture, possibly reflecting their setup's temperate climate. This demonstrates the importance of context in dairy cow management. During extreme weather, pasture access may be detrimental to welfare if animals are forced to remain outside with no shelter. The PAS treatment's higher overnight step counts indicate that cows at pasture were healthier and satisfying a behavioral need, which indoor housing constrained. Previous studies have also found pasture access increases walking, because gait improves [50], feeding durations are longer [54,109], and cattle must continually walk whilst grazing [18]. Furthermore, treatment order had an effect, with less walking in the group that went out to pasture first. The increase in step counts in the PAS treatment was also smaller for the PAS-first group than the PAS-second group. This may reflect the higher quality herbage in the first period, which potentially reduced walking distances whilst grazing. Alternatively, PAS-first cows were indoors for 18 fewer days than PAS-second cows before going out to pasture. Longer indoor housing could have increased the PAS-second group's motivation to move [66][67][68]. In addition to improving physical health, motor activity may enhance cows' psychological wellbeing, as exercise can have antidepressant effects in humans [110][111][112][113]. To our knowledge, animal welfare scientists have not directly tested whether physical activity influences psychological indicators of wellbeing.
As lying and walking behavior indicated welfare was better when cows had access to pasture, we hope future research identifies the factors responsible [114]. This could lead to design and management practices that replicate the benefits of pasture in indoor housing [9]. For example, we linked restlessness to uncomfortable substrates and competition for cubicles. These issues can be partially addressed without pasture access. Tucker et al. [115] offered dairy cows three cubicle lying surfaces: deep-bedded sand, deep-bedded sawdust, and a rubber-filled mattress. Given the choice, subjects spent longer lying on sand and sawdust, and lying durations were shorter when only the mattress was available. Furthermore, Fregonesi et al. [58] reported that increasing stocking densities reduced lying durations and increased cubicle displacements. Fully or understocking cubicle housing can ameliorate this [60,116]. Additionally, enrichment could compensate for under-stimulating living conditions [117]. Brushes, for instance, increase total scratching time by over 500% in cubicle-housed cows, which may reduce boredom [118]. These findings indicate that cow welfare can be improved in indoor housing.
Nevertheless, going outdoors has health and welfare benefits, such as exposure to natural light [8]. Exercise yards have been proposed as an intensive alternative to pasture, because they require less space but allow cattle outside. However, cows with pasture access spend around twice as long outdoors compared to cows with exercise yards [26,119]. This indicates that pasture is preferred and implies that not all of pasture's welfare benefits are transferable to more intensive production systems. Restricted pasture access, as in our study, may be a practical alternative [26,73]. Using the Welfare Quality ® assessment protocol for dairy cattle [120], Wagner et al. [13] identified many of the same advantages for cows with 6-12 h of pasture per day as for cows with >12 h per day. Some features of indoor housing could also alleviate welfare issues at pasture, such as providing shade structures [5].
Finally, this study had several limitations. We did not control for grass intake in the PAS treatment, but diet influences cow behavior [121,122]. More generally, preference for pasture is modulated by factors both extrinsic (e.g., weather conditions [25,30]) and intrinsic to the cow (e.g., experience of pasture access [24,29]). Experiments such as ours are too small-scale to address whether the results apply to different herds on different farms at different times. Comparative observational studies are also necessary to understand how pasture and indoor housing influence welfare [13,[123][124][125].

Conclusions
We performed a repeated measures crossover experiment to determine how overnight pasture access affects behavioral indicators of dairy cow welfare. As predicted, lying durations were longer at pasture than in indoor housing. Herd lying behavior was also more synchronous outside, and partitioned into fewer but longer lying bouts, with fewer transitions up or down. This suggests pasture was a more comfortable lying surface, reduced competition for lying space, and allowed cows to lie when and where they wanted. However, we found several unexpected treatment × treatment order interactions. Cows that went outside first were more restless at pasture than in indoor housing. We attribute this to heat stress and recommend providing shelter at pasture, depending on local climatic conditions. Additionally, overnight step counts were higher in the pasture treatment, which may benefit cattle physically and psychologically. Reduced lying and walking durations also suggest boredom is an issue in indoor housing, as cows have nothing to do for much of the day. Collectively, our results indicate overnight pasture access improves dairy cattle welfare.