Effects of Vessel Distance and Sex on the Behavior of Endangered Killer Whales

Accurate knowledge of behavior is necessary to effectively manage the effects of human activities on wildlife, including vessel-based whale-watching. Yet, the wholly aquatic nature of cetaceans makes understanding their basic behavioral ecology quite challenging. An endangered population of killer whales faces several identified threats including prey availability and disturbance from vessels and sound. We used bio-logging tags that were temporally attached to individuals of the endangered Southern Resident killer whale population to more fully understand their subsurface behavior and to investigate vessel effects on behavior, including foraging behavior involving prey capture. We collected tag data over three field seasons in the waters surrounding the San Juan Islands, WA, United States, corresponding to the core summer area of the critical habitat of the population. Here, we used hidden Markov models to identify latent behavioral states that include characterization of different foraging states from sound and movement variables recorded by the multi-sensor tags. We tested a number of vessel variables (e.g., vessel counts, distance, and speed) on state transition probabilities, state occurrence and time spent within each behavioral state. Whales made fewer dives involving prey capture and spent less time in these dives when vessels had an average distance less than 400 yd (366 m). Additionally, we found both a sex and vessel distance effect on the state transition probabilities, suggesting that females and males respond differently to nearby vessels. Specifically, females were more likely to transition to a non-foraging state when vessels had an average distance less than 400 yd (366 m). A female’s decision to forego foraging states due to the close proximity of vessels could have cascading effects on the ability to meet energetic requirements to support reproductive efforts. This is particularly concerning in an endangered population that is in decline. Our findings, suggesting that female killer whales are at greater risk to close approaches by vessels, highlight the importance of understanding sex-specific responses to disturbance. These findings can inform future management decisions seeking to preserve foraging opportunities and enhance recovery efforts relevant to many cetacean species, including vulnerable and endangered populations.


INTRODUCTION
Nature-based tourism, including the viewing of free-ranging and often charismatic wildlife, is a well-established industry in many parts of the world. Human activity, however, can have negative consequences on animals, including subsequent effects on the behavior of individuals, social groups and populations, which is especially concerning for vulnerable or endangered species. Knowledge of the basic aspects of animal behavior can lead to the success or failure of wildlife management programs (Knight, 2001;Coleman et al., 2013;Berger-Tal and Saltz, 2016). For example, cetaceans rely on sound for basic life functions and odontocetes (dolphins, porpoises, and toothed whales) use echolocation for navigation and foraging. Vesselbased whale-watching often introduces noise from motor-based propulsion in addition to obstacles at the surface to these air-breathing mammals (Senigaglia et al., 2016). Furthermore, vessel traffic from other activities (e.g., commercial shipping) is common in well-populated coastal corridors and many vessels emit sonar signals to aid in navigation or fishing (e.g., depth sounders and fish finders). Yet, we know little about how introduced signals might affect the use of sound and behavior in these aquatically obligate marine mammals, particular for species that rely on sound at similar frequencies for biosonar-based foraging. Given their cryptic nature, which imparts considerable challenges in quantifying anthropogenic effects, only a limited number of studies have been able to investigate behavioral effects of anthropogenic disturbance in odontocetes, particularly whether all individuals are equally affected, given contextually dependent responses to disturbance (Ellison et al., 2012). Recent technological advances have enabled the use of smaller bio-logging instruments that are temporally attached to cetaceans, allowing researchers to better understand their subsurface behavior and investigate relevant anthropogenic effects (Johnson and Tyack, 2003;Quick et al., 2016;DeRuiter et al., 2017).
Killer whales (Orcinus orca) are the largest delphinid species. North Pacific ecotypes are differentiated by genetics, foraging ecology, physical appearance, and acoustic behavior (Ford et al., 2000(Ford et al., , 2011. The fish-eating "resident" ecotype consists of large matrilineal groups that heavily rely on echolocation for foraging (Barrett-Lennard et al., 1996;Au et al., 2004). Individuals produce slow repetition clicks while searching for prey, click faster during initial pursuit of individual prey, and produce buzzes (very rapid bout of clicks) immediately prior to prey capture attempts (Holt et al., 2019;Tennessen et al., 2019a). In the eastern North Pacific, Southern Resident killer whales are listed as Endangered in the United States and Canada (National Marine Fisheries Service [NMFS], 2016; Department of Fisheries Oceans Canada [DFO], 2017). They prefer salmonids, especially Chinook salmon (Oncorhynchus tshawytscha), but many stocks they rely on are also listed as endangered, threatened, or depleted (Ford and Ellis, 2006;Hanson et al., 2010;Ford et al., 2016). In addition, vessel traffic and associated noise from commercial shipping, whale-watching, fishing, and recreational activities, is pervasive in the core summer habitat that the whales use for feeding (Holt et al., 2009;Veirs et al., 2016;Cominelli et al., 2018).  (RCW 77.15.740), implemented in May 2019, prohibits approach within 300 yd (274 m) to the side and 400 yd in front/behind any Southern Resident killer whale, and vessel speed must be ≤ seven knots within one-half nautical mile (926 m 3 ). An interim order, effective June 2019, prohibits all vessels from approaching any killer whale within a 400 m distance and vessel speed must be ≤ seven knots within 1 km in Canadian waters 4 . Empirical evaluation of the effectiveness of these unaligned regulations are needed to inform future decision making within an adaptive management framework.
Earlier studies documented effects of vessels and noise on resident killer whales, including changes in surface active and vocal behavior, diving and movement parameters, and behavioral activity states (Williams et al., 2006Holt et al., 2009;Lusseau et al., 2009;Noren et al., 2009). A concerning finding of previous land-based observational studies was the reduction in time spent foraging in the presence of vessels (Williams et al., 2006;Lusseau et al., 2009). Indeed, a meta-analysis of several cetacean studies found disruptions of activity budget, in which individuals were less likely to rest and forage, to be one of the most consistent responses to whale-watching vessels (Senigaglia et al., 2016). Reduced foraging effort can have cascading effects on an individual's ability to meet energetic requirements to support growth, survival and reproduction, and is especially concerning in vulnerable populations (Farmer et al., 2018;Pirotta et al., 2018). Yet, many earlier findings rely on observations of behavior at the surface that can introduce bias (Tuyttens et al., 2014). Additionally, accurately identifying different phases of biosonarbased foraging are challenging without assessment of both the acoustic and movement behavior of the whales (Holt et al., 2019;Tennessen et al., 2019a,b). In this study, we utilized multi-sensor tags to test different vessel effects on the subsurface behavior of killer whales, including acoustic behavior and foraging outcomes, to inform future management actions. Effects on behavior that we tested include vessel count, distance and speed related to current regulations, and echosounder signal presence, tested alone or in combination with one another and other effects. Specifically, we implemented hidden Markov models (HMM) to identify unobservable behavioral states from the variables obtained by the tags that were temporally attached to Southern Resident killer whales. We then examined a number of vessel effects on the state transition probabilities and on the occurrence and time spent in each behavioral state.

Study Location and Data Collection
Data collection took place in the transboundary waters surrounding the San Juan Islands, WA, United States (approximate range: 48.2 • to 49.0 • N, 122.7 • to 123.6 • W, Supplementary Figure 1) during daylight hours in September 2010, 2012, and 2014. The study location is part of the population's critical habitat in both the United States and Canada, including their core summer habitat (National Oceanic Atmospheric Administration [NOAA], 2006). The area and season of data collection was chosen to reflect whale-watching activity by both commercial and private vessels. Twenty-three digital acoustic recording tags (Dtags) were temporarily attached to individually identified whales from photo-ID records (Center for Whale Research) using a pole from an inflatable research vessel. The Dtag is a suction cup-attached multi-sensor, biologging instrument containing two hydrophones, temperature, pressure and triaxial accelerometer and magnetometer sensors (Johnson and Tyack, 2003). Of the twenty-three tags deployed, we excluded data from 10 deployments in the analysis because of limited audio data quality, mainly due to high flow noise and/or suboptimal tag placement. All individuals were tagged only once, except for two individuals (K33 and L91) that were tagged twice but in separate years; thus, all deployment time series were considered independent of each other ( Table 1).
We used the larger version 2 tag in 2010 and 2014 which sampled audio data at 192 kHz and non-audio data at 50 Hz, and the smaller version 3 tag in 2012 which sampled audio data at 240 kHz and non-audio data at 200 Hz. During Dtag deployments, we conducted focal follows on the (1) tagged whale, collecting geo-referenced data during surfacing and (2) all vessels, including the research vessel, within 1.5 km of the focal whale until the tag released from programming or fell off on its own (Holt et al., 2017). As conditions allowed, we recorded focal follow data using two integrated equipment packages, each consisting of a GPS/data collector, a laser range finder, and compass (Giles, 2014). One unit recorded whale data, the other recorded vessel data. Attribute data recorded for each vessel included a date and time stamp, its latitude and longitude position, vessel name and class (commercial whale-watching, private, research, enforcement, etc.) and estimated speed (sensu Holt et al., 2017). We recorded vessel data in concentric rings starting with those closest to the focal whale at least every 5 min. During focal follows, the research vessel operated at distances and speeds consistent with vessels engaged in whale-watching.

Data Processing and Calculation of Variables
We used the Dtag Toolbox 5 , along with custom-written routines in Matlab 2017a (Mathworks, Natick, MA, United States), to 5 www.soundtags.org download, calibrate, and process tag data following established protocols (e.g., Holt et al., 2017;Tennessen et al., 2019a).
The unit of analysis was a dive derived from depth data downsampled to 5 Hz. We calculated the start and end times of each dive using an automated detector that identified excursions from the surface (≤0.5 m) to depths ≥ 1 m that were checked for error and corrected accordingly. Individual reactions to tagging ranged from none to moderate, the latter which included flinching upon tag contact or diving and remaining submerged for a few minutes, but for all deployments individuals returned to pretagging surfacing behavior within 5 min of tagging. We therefore excluded dives during the first 5 min of each deployment time series to address any potential short-term behavioral responses to tagging (sensu Tennessen et al., 2019a,b). We used other nonaudio tag data sampled at 50 Hz for analyses. For each dive, we populated six response variables described in Tennessen et al. (2019b), which were informed by previous studies (Holt et al., 2019;Tennessen et al., 2019a). These variables were (1) maximum depth, (2) jerk peak (3) median absolute roll (4) circular variance in heading (5) presence of echolocation clicks (slow/regular) (6) presence of buzzes. These variables were chosen to capture the different phases of foraging (including search and capture of prey) along with other behaviors. Only clicks and buzzes assigned to the tagged whale were included in the analysis (Holt et al., 2019). We calculated vessel variables from focal follow data as in Holt et al. (2017) using the midpoint in time of each dive to temporally align vessel (± 5 min) and dive data. If multiple observations of the same vessel occurred within the interval, we only used the observation closest in time to the dive midpoint. The horizontal distance from whale to each unique vessel was estimated from the latitude/longitude positions of the vessel relative to the whale's latitude/longitude that was closest in time to the dive midpoint. We also scored the presence of echosounder signals, i.e., sonar signals emitted by vessels to aid in navigation and fishing, received by the tag (both transmitted and reflected signals) for each dive (Holt et al., 2017).

Statistical Analysis
We used HMMs as a multivariate framework to categorize the subsurface behavior of killer whales. This statistical approach has been widely applied in studies that investigate movement and behavior using animal-borne tags that yield time series data, including those on cetaceans (Quick et al., 2016;DeRuiter et al., 2017). HMMs identify the most likely unobservable (hidden) state from observable behavior in sequences that follow a first order Markov process. The number of latent or hidden states, N, is specified a priori and the HMM approach estimates a time series of estimated states (allowing animals to transition between states at each time step) conditioned on the observed data. HMMs are flexible and allow for the inclusion of covariates, on both the intercept parameters ("state dependent distributions") and on the transition probability matrices. Our objective was to test vessel effects on killer whale behavior, using the six response variables described above. This approach consisted of (1) fitting several HMMs with different single covariates on the state transition probability matrix to determine the appropriate number of hidden states, (2) fitting additional models with up to two covariates on the state transition probabilities and comparing these with the original models to investigate vessel effects on killer whale likelihood of transitioning between behavioral states, and (3) investigating effects of vessel distance on state occurrence and time spent in each state. We used the depmixS4 package (Visser and Speekenbrink, 2010) in R v.3.3.3 (R Core Team) to fit several candidate models. Here, the specified number of states and response variables were informed by and described in detail in Tennessen et al. (2019b). Briefly, we explored 3-5 state models using the six response variables with individual sex as a covariate on the state dependent distributions, and different single covariates on the transition probabilities among states (unconstrained). Depth, jerk, roll and heading variance were natural log transformed and modeled using a Gaussian distribution while clicking and buzz presence were modeled using a binomial distribution. For simplicity, we did not consider random effects potentially associated with the individual or environmental context (but see DeRuiter et al., 2017). Covariates populated for each dive included vessel counts, mean distance of all vessels within 1.5 km, distance of closest vessel, and median speed of all vessels within 1.5 km of the tagged whale (as in Holt et al., 2017), presence/absence of echosounder signals, year and individual sex. Sex was included based on previous results (Tennessen et al., 2019b) and year was included to address potential inter-annual variability (Holt et al., 2017). Vessel count, speed and distance were binary categorical variables (high/low or close/far) using different breakpoints to define levels among competing models according to sample size, distribution of covariates and implications for management ( Table 2). For example, vessel distance was split into close/far categories by 200 (183 m) and 400 yd (366 m) to inform management actions related to vessel regulations. We attempted to populate received noise levels for each dive to investigate noise effects (Holt et al., 2017). However, tag-related flow noise contamination resulted in considerable missing noise data and thus, hindered the preservation of dive-by-dive time series required for the assumptions of HMMs.
Because estimation of HMMs may be sensitive to starting values, we re-fit each candidate model 200 times using random initial parameters, and we retained the one with lowest AIC score as the best across the 200 iterations (see Tennessen et al., 2019b). We first ran candidate models with 3 to 5 states, each with only one covariate on the state transition probabilities and used the lowest AIC score along with the ability to biologically interpret results as criteria for selecting the top-ranked models following Tennessen et al. (2019b). A challenge in working with HMMs is that increasing the number of states generally improves model performance metrics, such as AIC with an incurred trade-off of reduced biological interpretability of the resulting state-dependent distributions (Quick et al., 2016(Quick et al., , 2017DeRuiter et al., 2017;Tennessen et al., 2019b). We found the same to be true here: all 5-state models had lower AIC scores than 4-state models, which had lower AIC scores than 3-state models. However, in contrast to Tennessen et al. (2019b), 5state models were unusually complex with the available data and the state-dependent distributions were not easily interpretable in contrast to 4-state models. Thus, we took the top-ranked 4state models (delta AIC ≤ 30, Table 3) and then combined up to two covariates on the transition probabilities and re-ran 4-state model fitting to see if model ranking improved with combined covariates ( Table 4).
Using output from the HMMs, we used multinomial logistic regression models to ask whether vessel distance or sex affected state occurrence. We treated the estimated state assignment, based on the most likely (Viterbi) state sequence of the best model, as the response variable, and used vessel distance (2level fixed effect) and deployment number (random effect) as predictors. All multinomial logistic regression models were fit using the brms package (Bürkner, 2017) in R. We ran these models using four MCMC (Markov chain Monte Carlo) chains, a burn-in period of 2000 samples, and retained another 1000 samples (Rhat values of all parameters were 1.0, supporting model convergence). We also explored the effect of sex on state occurrence (Tennessen et al., 2019b) by running models with and without a sex predictor and comparing posterior estimates of the coefficient using 10-fold cross-validation (k = 10) and information criterion scores (R loo package, Vehtari et al., 2019). Estimates of 10-fold expected log posterior density with and without sex were qualitatively similar (differing by < 7 units) with overlapping standard errors (33 and 31.1), suggesting no strong effect of including sex. To investigate differences in time spent in each state, we treated dives as the sampling unit. We generated 1000 posterior samples, in which each vector of state assignments corresponded to the number of dives (n = 3609). For each posterior sample, we summarized the time spent in each state using the known duration (in minutes) of each dive and stratified this calculation by sex and vessel distance. To evaluate the effects of vessel distance, we calculated the difference between the amount of

Summary of Deployments and HMM Runs
We analyzed 13 tag deployments (7 female, 6 male) that totaled 40.5 h of on-animal time ( Table 1). The mean duration per deployment was 3.1 h (range = 0.5-6.2 h). From these deployments, we analyzed a total of 3609 dives (1299 dives of females, 2310 dives of males). The mean number of analyzed dives per deployment was 278 (range = 32-572). The mean number of vessels populated per dive was 4 (range 1-21) and most were commercial whale-watching or private vessels. Private vessels included those that appeared to be viewing whales, engaged in recreational fishing, or transiting the area.
Compared to the null model, model fit was significantly improved by including sex, year, vessel covariates or a combination of covariates on the transition probabilities (Tables 3, 5). The 4-state model with the lowest AIC values included the combined transition probability covariate of sex and mean vessel distance split into close and far categories by a 400 yd (366 m) threshold. The next best model included a single transition probability covariate of mean vessel distance split by a 200 yd (183 m) threshold with a delta AIC score of 6, followed by the third ranked model which included the combined transition probability covariate of sex and mean vessel distance split by a 200 yd (183 m) threshold (delta AIC = 8.5). The other models had delta AIC scores > 25 relative to the top-ranked model ( Table 5).

State Classification
The state-dependent distributions of the top-ranked model (Figure 1) were as follows: (1) State 1 dives were the shallowest

Transition Probabilities Among States
Whether the mean distance of vessels was < 400 yd (herein "close") or ≥ 400 yd (herein "far"), persistence was especially high in state 1 and 3 and to a lesser extent in State 4 for both sexes, illustrating the behavior assigned to three of the four states was clustered in time. In contrast, it was unlikely that whales persisted in state 2 (made back-to-back state 2 dives), especially for females (Figure 2 and Supplementary Table 1). The effect of vessel distance on state transition probabilities differed between the sexes. Males were more likely to switch from state 2 to state 1 and to a lesser extent state 3 with far vessels whereas they were more likely to switch from state 2 to state 4 with close vessels. Moreover, it was extremely unlikely that males would switch from state 2 to state 3 with close vessels (Figure 2 and Supplementary  Table 1). Females were more likely to switch from state 2 to state 3 or 4 as well as persist in state 4 with far vessels whereas they were more likely to switch from state 2 to state 1, and switch from state 4 to state 1 with close vessels (Figure 2 and Supplementary Table 1). Figure 3 illustrates state allocation on a dive-by-dive basis for each tag deployment (summary across deployments provided in Supplementary Table 2). Results of the multinomial logistic regression supported differences in state occurrence (Supplementary Table 3). The negative log odds ratio (with state 1 as the reference baseline) indicated that whales were less likely to be in states 2, 3 or 4 than in state 1. Additionally, the positive log odds ratio for far vessels supported an effect of vessel distance on state allocation and was most different for state 2 (estimate = 0.74, s.e. = 0.35), followed by state 4. That is, state 2 occurrence was higher when vessels were farther away. Both females and males spent substantially more time in state 2 when vessels were far compared to when vessels were close (Figure 4, note in the case of females with close vessels, error bars are not visible because dives assigned to state 2 had very little uncertainty in assignment resulting in very small error bars). In contrast, whales spent less time in state 3 and 4 when vessels were far (Figure 4). For both sexes, the 95% credible interval of the difference in time spent for each state was different from zero in all cases except state 1 (Figure 4).

DISCUSSION
In the current study, we used hidden Markov modeling of six observed sound and movement variables recorded from suction-cup tags attached to fish-eating killer whales, along with vessel data, to (1) characterize unobservable killer whale behavioral states and (2) identify vessel effects on foraging behavior. We found that females and males differed in their state transition probabilities depending on whether vessels were close (average vessel distance < 400 yd) or far (average vessel distance ≥ 400 yd). State frequency and cumulative time spent in these states also differed depending on vessel distance.
State 1 dives were characterized by the shallowest depth, with smallest values of heading variance, roll, and jerk, with very little clicking and no buzzing (Figure 1). State 1 involves traveling/respiratory dives given that persistence in state 1 was high for both males and females regardless of whether vessels were close or far. In contrast, state 2 was characterized by the deepest dives with the largest values of heading variance, roll, and jerk, with ubiquitous clicking and the greatest levels of buzzing. State 2 dives involve close pursuit, attempt to capture and successful capture of salmonid prey given the repeated direction changes in heading and rapid changes in acceleration (jerk) (Tennessen et al., 2019b). Indeed, the vast majority of FIGURE 2 | Transition probabilities among states for males (top plots) and females (bottom plots) by close (left plots, mean vessel distance < 400 yd) and far (right plots, mean vessel distance ≥ 400 yd) vessels. Arrows indicate direction of transitions from state of origin, arrow thickness scales with probability. See Supplementary Table 1 for details. state 2 dives mapped directly to predicted prey capture dives based on kinematic signatures, which were validated with direct observations of predation (Tennessen et al., 2019a).
Similar to state 1, state 3 was characterized by shallow depth, with small values of jerk and no buzzing. Average values of heading variance and roll were slightly greater in state 3 compared to state 1, especially in males (Figure 1), but there was considerable overlap in the two distributions. In contrast to state 1, state 3 dives had abundant clicking in males and higher values of clicking in females. High persistence in state 3 indicated that these dives reflect searching for prey whereby individuals produce echolocation click trains on repeated shallow dives to acoustically scan an area for prey targets (Holt et al., 2019;Tennessen et al., 2019b). FIGURE 3 | Dive profile by behavioral state for each deployments over time. Note the difference in both x-and y-axis scale among plots. Female = lavender box, male = light blue box, state 1 = dark blue, state 2 = purple, state 3 = red, state 4 = orange. Gray dives indicate omitted 5-min interval at start of deployment and periods which vessel data were not available.
Lastly, state 4 was characterized by dives with intermediate values of depth, heading variance, roll, jerk, and clicking and almost no buzzing. Persistence in state 4 was moderate relative to state 1 and 3. These response variable distributions suggest that state 4 is associated with several behaviors including searching for prey at deeper depths than in state 3 and initiating pursuit of prey that, given the absence of buzzes, does not involve close pursuit/capture attempts or prey capture (Holt et al., 2019). State 4 dives might also involve socializing and/or prey-sharing among group members (Ford and Ellis, 2006;Wright et al., 2016).
States 1 (traveling/respiratory) and 3 (acoustic search) and, to a lesser extent, state 4 (intermediate dives) were characterized by state persistence, demonstrating that most behaviors occurred in bouts as in other cetacean studies (Figures 2, 3; DeRuiter et al., 2017;Quick et al., 2017;Tennessen et al., 2019b). In contrast, persistence in state 2 (deep forage) was rare in males and virtually absent in females, likely because lengthy prey chases at depth can incur significant energetic costs that require recovery periods. Furthermore, state 2 dives resulting in prey capture are often followed by prey-handling and sharing events (Holt et al., 2019;Tennessen et al., 2019b).
In the current study, 5-state models were unusually complex with the available data and the state-dependent distributions were not biologically interpretable. In contrast, 4-state models adequately characterized the behavior of fish-eating killer whales, including different phases of foraging that we expected (Holt et al., 2019). Three of the four states (Figure 1) were similar to three of the five states reported by Tennessen et al. (2019b). The three similar states from the present study were the deep forage, acoustic search, and intermediate states; the difference was that state 1 of the current study is likely a combination of travel and respiratory dives that are differentiated into two separate states in the previous study (Tennessen et al., 2019b). Given the different focus of the current study, namely to test effects of vessel covariates on foraging behavior, these 4-state models captured the most important structure in the data that was biologically informative to address our scientific objectives.
Vessel distance and sex significantly affected state transition probabilities (Figure 2 and Supplementary Table 1), with close vessels reducing the likelihood of foraging-related behaviors. In particular, females were more likely to switch from state 2 (deep forage) to state 3 (acoustic search) or state 4 (intermediate dives) as well as persist in state 4 with far vessels whereas they were more likely to switch from state 2 (deep forage) to state 1 (travel/respiratory), and switch from state 4 (intermediate dives) to state 1 (travel/respiratory) with close vessels. Furthermore, males were more likely to switch from state 2 (deep forage) to state 1 (travel/respiratory) and to a lesser extent, to state 3 (acoustic search) with far vessels whereas they were more likely to switch from state 2 (deep forage) to state 4 (intermediate dives, but recall that this state includes searching and prey pursuit, but not prey capture) with close vessels. Male response to close vessels could reflect vertical avoidance of vessels (and/or noise) while acoustically searching for prey and failure to track prey after initial pursuit. Lusseau et al. (2009) used land-based surface observations of behavior to demonstrate that Southern Resident killer whales were more likely to switch from foraging to traveling in the presence of vessels. The aim of the current investigation was to use HMM to sufficiently characterize the subsurface behavior of fish-eating killer whales, including different phases of biosonarbased foraging, that are otherwise difficult to discriminate from surface observations, in order to test a variety of potential vessel effects on behavior. Our analysis, based on animal-borne tag data, characterized more foraging activity than had been reported in some previous studies based on surface-based observations (e.g., Noren and Hauser, 2016). Consistent with earlier studies, but unveiling a sex effect, we found that females switched to a state (state 1, traveling/respiratory) distinctly different from foraging when vessels were close, compared to when vessels were far. Our findings of a sex difference imply that females may experience risk to vessels differently than males, which might be related to group structure. Females are more likely to be associated with younger animals, including juveniles and dependent offspring. Furthermore, the energetic demand of deep diving to pursue prey is likely higher for females given their smaller body size compared to males (Schreer and Kovacs, 1997;Noren and Williams, 2000;Baird et al., 2005). Females of the Northern Resident killer whale population prefer to forage closer to shore compared to males that show no preference, perhaps because of their own physiological limitations or associations with younger individuals with limited dive capacity (Beerman et al., 2016). These findings suggest that females may simply have less three dimensional space to maneuver during prey chases. Thus, females may forego foraging altogether in the presence of close vessels as vessels might pose a higher risk to the group, which may hinder aspects of deep foraging, and/or cooperation, including prey sharing. Williams et al. (2002) found subtle sexbased differences in vessel avoidance in Northern Resident killer whales. Additionally, male and female bottlenose dolphins also respond differently in the presence of vessels (Lusseau, 2003;Symons et al., 2014).
We found that vessel distance affected state occurrence and time spent in each state (Figure 4). Overall, whales were less likely to be in states 2-4 (foraging states) than in state 1 (traveling/respiratory, a non-foraging state), and importantly, state 2-4 had a higher occurrence when vessels were far, with the biggest effect for state 2 (deep forage). Furthermore, when we considered time spent in each state, we found that both females and males spent less time in state 3 (acoustic search) and 4 (intermediate dives), and substantially more time in state 2 (deep forage, including prey capture) when vessels were far compared to when vessels were close (Figure 4). These findings suggest that deep foraging opportunities can be enhanced when vessels give whales, especially females, more space.
It is important to note that this is an observational study in which vessels that were engaged in whale-watching were subject to various vessel regulations over the course of the study and compliance varied (Eisenhardt and Koski, 2014;Shedd et al., 2018). Additionally, tag attachment sometimes failed before programmed release time. Thus, sample sizes were difficult to balance among covariates, including longer deployments in females. However, in a related study we found no statistical support for including deployment duration as a predictor or offset variable for modeling behavioral states (Tennessen et al., 2019b). Another limitation is that, relative to other dives, dives involving deep foraging and prey capture (state 2 dives reported here) are rare, and even rarer in females (Tennessen et al., 2019a,b), resulting in small sample sizes available for analysis and interpretation. It is also possible that vessel noise mediated the observed effect of vessel distance (via an avoidance response of the noise source). However, because water flow over the tag attached to a moving whale prevented us from calculating uncontaminated noise levels for all dives in a deployment time series, we could not specifically test for this. Lastly, data collection was limited to daylight hours to collect concurrent whale and vessel data, given the study's focus. Thus, time spent in different activities is not fully characterized over a 24-h cycle. Future work to investigate full activity budgets of killer whales with both day and nighttime tag data collection would be valuable to understand if whales made up lost foraging time during different periods of the diel cycle.
The focus of the current investigation was to use data from animal-borne tags to test several vessel effects on foragingrelated behavior in an endangered population. We found effects of vessel distance on the state transition probabilities, state occurrence, and time spent among states. Specifically, whales made fewer prey capture dives and spent less time in these dives when vessels had an average distance less than 400 yd. Reduction in foraging activity with vessels is consistent with findings of other cetacean studies (Senigaglia et al., 2016), including Southern Resident killer whales , and has substantial management implications, especially for a population with prey availability and vessel disturbance as risk factors. Furthermore, we found both a sex and vessel distance effect on the state transition probabilities, suggesting that females and males respond differently to nearby vessels. Specifically, females were more likely to transition to a nonforaging (travel/respiratory) state when vessels had an average distance less than 400 yd. A female's decision to forego foraging in the presence of close vessels could hinder her ability to meet energetic requirements to support reproductive efforts, including fetal growth in pregnancy and lactation costs after calving. This is particularly concerning in an endangered mammalian population because recovery cannot occur without successful reproductive outcomes among breeding individuals, particularly in long-lived females with birthing intervals of 3-7 years (Olesiuk et al., 2005). Our findings, suggesting that female killer whales are at greater risk from close vessel approaches than males, can inform future management decisions seeking to preserve foraging opportunities and enhance recovery efforts in endangered populations.

DATA AVAILABILITY STATEMENT
The datasets presented in this study can be found in online repositories. The names of the repository/repositories and accession number(s) can be found below: The NWFSC Public Access to Research Results (PARR)-Data Inventory, www.webapps.nwfsc.noaa.gov/apex/parrdata/inventory/datasets.

ETHICS STATEMENT
The animal study was reviewed and approved by the