<?xml-model href='http://www.tei-c.org/release/xml/tei/custom/schema/relaxng/tei_all.rng' schematypens='http://relaxng.org/ns/structure/1.0'?><TEI xmlns="http://www.tei-c.org/ns/1.0">
	<teiHeader>
		<fileDesc>
			<titleStmt><title level='a'>Spatial dynamics of pathogen transmission in communally roosting species: Impacts of changing habitats on bat‐virus dynamics</title></titleStmt>
			<publicationStmt>
				<publisher></publisher>
				<date>06/30/2021</date>
			</publicationStmt>
			<sourceDesc>
				<bibl> 
					<idno type="par_id">10291959</idno>
					<idno type="doi">10.1111/1365-2656.13566</idno>
					<title level='j'>Journal of Animal Ecology</title>
<idno>0021-8790</idno>
<biblScope unit="volume"></biblScope>
<biblScope unit="issue"></biblScope>					

					<author>Tamika J. Lunn</author><author>Alison J. Peel</author><author>Hamish McCallum</author><author>Peggy Eby</author><author>Maureen K. Kessler</author><author>Raina K. Plowright</author><author>Olivier Restif</author>
				</bibl>
			</sourceDesc>
		</fileDesc>
		<profileDesc>
			<abstract><ab><![CDATA[1. The spatial organization of populations determines their pathogen dynamics. This is particularly important for communally roosting species, whose aggregations are often driven by the spatial structure of their environment.
We develop a spatially explicit model for virus transmission within roosts ofAustralian tree-dwelling bats (Pteropus spp.), parameterized to reflect Hendra virus. The spatial structure of roosts mirrors three study sites, and viral transmission between groups of bats in trees was modelled as a function of distance between roost trees. Using three levels of tree density to reflect anthropogenic changes in bat habitats, we investigate the potential effects of recent ecological shifts in Australia on the dynamics of zoonotic viruses in reservoir hosts.3. We show that simulated infection dynamics in spatially structured roosts differ from that of mean-field models for equivalently sized populations, highlighting the importance of spatial structure in disease models of gregarious taxa. Under contrasting scenarios of flying-fox roosting structures, sparse stand structures (with fewer trees but more bats per tree) generate higher probabilities of successful outbreaks, larger and faster epidemics, and shorter virus extinction times, compared to intermediate and dense stand structures with more trees but fewer bats per tree. These observations are consistent with the greater force of infection generated by structured populations with less numerous but larger infected groups, and may flag an increased risk of pathogen spillover from these increasingly abundant roost types. 4. Outputs from our models contribute insights into the spread of viruses in structured animal populations, like communally roosting species, as well as specific insights into Hendra virus infection dynamics and spillover risk in a situation of changing host ecology. These insights will be relevant for modelling other zoonotic O RCI D]]></ab></abstract>
		</profileDesc>
	</teiHeader>
	<text><body xmlns="http://www.tei-c.org/ns/1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xlink="http://www.w3.org/1999/xlink">
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="1">| INTRODUC TI ON</head><p>Communal roosting, wherein animals gather for inactive periods of the diurnal cycle <ref type="bibr">(Grether et al., 2014)</ref>, occurs in a wide variety of taxa, including primates <ref type="bibr">(Ansorge et al., 1992)</ref>, bats <ref type="bibr">(Kerth, 2008)</ref>, birds <ref type="bibr">(Goodenough et al., 2017)</ref> and invertebrates <ref type="bibr">(Seeley, 1997)</ref>.</p><p>Aggregations can range in size from a few individuals-for example, tent-making bats <ref type="bibr">(Brooke, 1990</ref>) and some 'loosely colonial' seabirds <ref type="bibr">(Coulson, 2002)</ref>-to hundreds or hundreds-of-thousands of individuals-for example, colonial seabirds <ref type="bibr">(Coulson, 2002)</ref>, pre-murmuration roosts of European starlings <ref type="bibr">(Goodenough et al., 2017)</ref>, cave-roosting bats <ref type="bibr">(Willoughby et al., 2017)</ref> and social bees <ref type="bibr">(Seeley, 1997)</ref>. Aggregations can vary in density according to roosting behaviour (e.g. attachment to individuals or a roosting substrate) and the structure of roosting substrates (e.g. size of caves and hollows or distribution of vegetation; <ref type="bibr">Dollin et al., 1997;</ref><ref type="bibr">Lunn, Eby, et al., 2021)</ref>. Patterns of communal roosting are particularly important in the context of infectious diseases, as the rate of contacts will influence the propensity for infection and spread of pathogens.</p><p>Clustering within communal species has been demonstrated to facilitate transmission of pathogens, including the fungal agent of white-nose syndrome in bats Pseudogymnoascus destructans <ref type="bibr">(Hoyt et al., 2021)</ref>, phocine distemper virus in harbour seals <ref type="bibr">(Swinton et al., 1998)</ref> and West Nile virus in American crows and robins <ref type="bibr">(Diuk-Wasser et al., 2010)</ref>.</p><p>Importantly, habitat modification has the potential to change both spatial and temporal aspects of communal roosting, which could be a major contributor to altered infection dynamics. Habitat modification can affect aggregations through the addition or loss of roosting structures (e.g. <ref type="bibr">Feldhamer et al., 2003)</ref>, alteration of group or community population sizes (e.g. <ref type="bibr">Davis et al., 2012)</ref> or the creation of structural or behavioural barriers to movement <ref type="bibr">(Tucker et al., 2018)</ref>.</p><p>The seasonal ecology of some species may also be impacted, for example through altered distribution of seasonal resources (e.g. <ref type="bibr">Leveau et al., 2018)</ref>. These ecological changes are known to have broad impacts on pathogen dynamics: for example, fragmentation of species into smaller, disconnected populations can drive local extinction of pathogens through stochastic processes first described in human populations <ref type="bibr">(Bartlett, 1956)</ref> and more recently in animal populations <ref type="bibr">(Lloyd-Smith et al., 2005)</ref>. Periods of local pathogen extinction can then cause total loss of immunity in populations, and subsequently increase the magnitude of epidemics in events when the pathogen is reintroduced <ref type="bibr">(Bartlett, 1956;</ref><ref type="bibr">Plowright et al., 2011)</ref>. Despite the recognized importance of ecological dynamics on transmission, the epidemiological consequences of fine-scale animal aggregations, and changes to both with habitat modification, have not been well studied <ref type="bibr">(Altizer et al., 2006)</ref>. Work by <ref type="bibr">Laughlin et al. (2019)</ref> has moved this topic forward, by exploring general theory for how interroost movements and host attributes can influence pathogen spread among roosts. However, fine-scale intra-roost aggregations remain unexplored.</p><p>Hendra virus (HeV) is one of several zoonotic viruses that have emerged from bats in recent decades <ref type="bibr">(Eaton et al., 2006)</ref>. It is a paramyxovirus (Genus: Henipavirus) that causes highly lethal disease in horses and humans in eastern Australia <ref type="bibr">(Plowright et al., 2011)</ref>.</p><p>Surveillance of virus excretion from fruit bats (Pteropus alecto, the primary host in subtropical eastern Australia) has shown strong spatio-temporal variation in virus detections in this region <ref type="bibr">(Field et al., 2015)</ref>, and spillover events in horses <ref type="bibr">(Plowright et al., 2015)</ref>, both of which tend to peak in winter months. Two distinct processes have been hypothesized to drive this seasonal pattern in bat-virus shedding: 'within-host processes' in which the virus could persist within individuals, with seasonal changes in immune function driving the reactivation and shedding of virus; and 'between-host processes' in which host population dynamics drive transmission cycles through changes in the density of susceptible individuals, with virus re-introduction to roosts occurring through immigration <ref type="bibr">(Plowright et al., 2016)</ref>. Concurrent with the emergence of Hendra virus has been the observation of dramatic ecological shifts in flying-fox populations <ref type="bibr">(Eby et al., in review;</ref><ref type="bibr">Williams et al., 2006)</ref>. Wide-spread land clearing in south-eastern Australia has resulted in large-scale fragmentation of flying-fox roosts, and has seen an increasing transition from bats forming large roosts of nomadic individuals in areas with dense roosting habitat, to small, continuously occupied roosts of resident bats in urban areas with sparse roosting habitat <ref type="bibr">(Eby et al., in review;</ref><ref type="bibr">Eby et al., 1999;</ref><ref type="bibr">Tait et al., 2014)</ref>. Increased incidence of spillover has been correlated with the rise of these smaller, continuously occupied roosting sites <ref type="bibr">(Eby et al., in review;</ref><ref type="bibr">Plowright et al., 2011)</ref>. Previous studies that have modelled between-host processes in pteropodid bats have considered infection in homogenous populations (e.g. birth pulses <ref type="bibr">Peel et al., 2014)</ref>, or population heterogeneity at large landscape scales <ref type="bibr">(Plowright et al., 2011)</ref>, but the role of fine-scale roost habitat structure remains unexplored, particularly in the context of anthropogenic habitat change.</p><p>The goal of the present study is to investigate how infection dynamics (including the probability of an outbreak, the magnitude and speed of epidemics and persistence of pathogens) is influenced by roost stand structure and total bat abundance. To do this, we use viruses in wildlife reservoir hosts in response to habitat modification and changing populations, including coronaviruses like SARS-CoV-2.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>K E Y W O R D S</head><p>aggregative behaviour, animal aggregation, communal roost, conspecific attraction, Henipavirus, heterogenous mixing, pathogen transmission, roost size empirical data on roost stand structure and flying-fox aggregation to develop spatially explicit compartmental models, and simulate the spread of Hendra virus within isolated roosts of different sizes. We measure the effect of several model features, such as the presence of a latent infection period, the strength of connectivity between groups and the existence of pre-existing immunity within the population. Outputs from our models extend from works by <ref type="bibr">Laughlin et al. (2019)</ref> to contribute understanding of epidemic dynamics inside structured roosts, and to provide insights from an empirical system in a situation of changing host ecology. These findings will be relevant for modelling other communally roosting zoonotic reservoir hosts and will be particularly relevant for gregarious bat species as they, once again, return to the forefront of zoonotic emerging infectious disease research.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="2">| MATERIAL S AND ME THODS</head></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="2.1">| Model description</head><p>We use a set of spatially explicit and stochastic compartmental models to simulate Hendra virus epidemics within isolated flying-fox roosts consisting of multiple trees within a square area. We consider closed roosts without demographic processes to focus on the effects of spatial structure on infection dynamics. Moreover, as we are mainly interested in short-term dynamics (a single year cycle), and flying foxes have synchronous reproduction (a single birth pulse per year) and long life spans <ref type="bibr">(McIlwee &amp; Martin, 2002)</ref>, we consider the dynamics in the period between annual birth pulses and ignore births and deaths, as a first approximation. Because the community structure of tree-roosting pteropodid species is driven by the spatial structure of tree stands <ref type="bibr">(Lunn, Eby, et al., 2021)</ref>, and individual bats show tree-level fidelity with moderate movement between trees <ref type="bibr">(Markus, 2002)</ref>, we use a spatial framework where each tree hosts a group of bats and transmission occurs among individuals within and among these groups ('tree-groups'). We specify that transmission is a function of distance, and assume (a) the route of transmission is through direct contact with infectious urine droplets (as it falls towards the ground contacting animals in the three-dimensional roost structure) or by exposure to clouds of aerosolized urine over small (within-tree) distances <ref type="bibr">(Plowright et al., 2015)</ref>, (b) that there is more mixing within tree-groups than between tree-groups <ref type="bibr">(Markus, 2002)</ref>, (c) mixing between tree-groups decreases with distance between trees and (d) mixing within tree-groups (or between interlocking neighbouring trees) is homogenous.</p><p>The force of infection experienced by bats in a given tree i is modelled as:</p><p>where ij is the rate at which susceptible individuals in tree i acquire infection from infectious individuals in tree j. The rate of new infections in tree i is i (t)S i (t), where S i is the number of susceptible individuals in the ith tree-group, and I j is the number of infectious individuals in the jth tree-group. We assume that transmission is density dependent within tree-groups (see Appendix S1 for a description of contact scaling within tree-groups).</p><p>In the absence of data on the force of infection within roosts, we explore the assumption that contact rates between bats from different groups decreases with the distance between their respective trees. Specifically, we model transmission rate between tree-groups (denoted i and j) as follows <ref type="bibr">(Lloyd &amp; Jansen, 2004)</ref>:</p><p>where is the within-tree transmission rate, d ij is the distance between trees i and j and &#952; is a scaling parameter that controls the decay of transmission with distance (with &#952; ranging between 0.1 and 10 m).</p><p>Low values of &#952; correspond to weaker coupling between tree-groups, as there is fast decay in transmission with distance. This represents a scenario where bats mix freely within their individual roost trees but rarely come into contact with bats in other trees. As &#952; increases, mixing becomes more homogenous as transmission between tree-groups becomes as likely as transmission within tree-groups. High values of &#952; hence represent a free flow of bats across the roost. In the Supporting Information, we consider an alternative mathematical function whereby transmission rate decreases with the square of the distance (Appendix S2); both functions generate similar results for comparable values of &#952; (Appendix S3).</p><p>Because within-host dynamics of henipaviruses in bats are not well characterized, we compare two plausible compartmental model structure types: a susceptible-infected-recovered (SIR) model, and a susceptible-exposed-infected-recovered (SEIR) model, which only differ by the inclusion of a latent, non-infectious initial stage following exposure to the virus (E). Our focus is on short-term invasion dynamics (up to 365 days), therefore we do not consider models with waning immunity or cycles of reactivation in persistent infections <ref type="bibr">(Plowright et al., 2016)</ref> that would only affect longer term infection dynamics: indeed, henipavirus antibodies in African fruit bats may persist for ~1,500 days <ref type="bibr">(Peel et al., 2018)</ref>, and reactivation of latent infection is likely to occur in annual cycles <ref type="bibr">(Kessler et al., 2018)</ref>.</p><p>Consistent with empirical evidence, we assume no disease-induced mortality <ref type="bibr">(Edson et al., 2015)</ref>. A visual representation of the model is given in Figure <ref type="figure">1</ref>.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="2.2">| Basic reproductive number</head><p>Similar to meta-population models, our spatially structured compartmental model has two levels to infection dynamics: infection within groups, and infection of the global population <ref type="bibr">(Jesse et al., 2008)</ref>.</p><p>The basic reproductive number (R 0 ) is therefore defined at two levels: within-group R 0 (calculated per group) and the global R 0 <ref type="bibr">(Colizza &amp; Vespignani, 2008</ref>). For our models, which have a spatially explicit, (1)</p><p>heterogenous structure, the global R 0 depends on the index group where the virus is introduced, its location within the spatial structure, and its local population size <ref type="bibr">(Liu &amp; Hu, 2005)</ref>. We therefore calculate global R 0 as the average of within-group R 0 values in the global population, given that any tree-group could be selected as the index case. For our models the global R 0 is calculated as:</p><p>where n is the number of tree-groups, N i is the number of individuals in the ith tree-group and &#947; is the rate of recovery. The expression for within-group R 0 values is contained within Equation 3, as 1 &#8721; n i = 1 ij N i . Note that the expression of R 0 is the same for SIR and SEIR model structures because roosts are closed and there is no mortality (i.e. the probability of surviving the latent period is one).</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="2.3">| Roost structure and model parameterization</head><p>To explore how infection dynamics are influenced by heterogeneity in stand structure, we apply the above models to three empirical examples of flying-fox roost stand structures, representing sparse, intermediate and dense stand structures respectively (collectively referred to as 'heterogenous' models; Figure <ref type="figure">1</ref>). For details on how these stand structures were mapped, see details in <ref type="bibr">Lunn, Eby, et al. (2021)</ref>. Because the focus of this study is on spatial structure and tree density rather than spatial extent, the modelled roosts are contained in 20 &#215; 20 m squares, even though in reality the roosts span different areas. Within this area, the dense roost comprises of 72 trees (with a median pairwise distance of 10.5 m), the intermediate roost 32 trees (median pairwise distance 10.7 m) and the sparse roost four trees (median pairwise distance 12.3 m). See Appendix S4 for a complete description.</p><p>To explore the influence of bat abundance, we populate each roost with 288, 2,880 or 4,320 bats in turn, evenly split among trees (hence the choice of bat numbers for arithmetic reasons). We chose this set of scenarios to reflect empirical observations of bat roost sizes and roosting behaviour, where the number of bats per occupied tree is typically higher in sparse stand structures than dense structures <ref type="bibr">(Lunn, Peel, Eby, et al., 2021)</ref>. Lastly, previous works on metapopulation models have highlighted the distinct roles of between-group coupling and structural heterogeneity on infection dynamics (e.g. <ref type="bibr">Colizza &amp; Vespignani, 2008;</ref><ref type="bibr">Park et al., 2002)</ref>. We explore the effect of coupling strength (here being the decay of transmission rate with distance, &#952;) and the effect of heterogeneity (stand structure scenarios) in the model structure separately, by simulating replicate epidemics with a range of values for the distance tuning parameter, &#952;. Specifically, values of &#952; within a range of 0.1-10 m represent a gradient of spatial heterogeneity, which we contrast with a homogenous</p><p>Conceptual diagram of the modelling approach. Empirical data on the structure of roosting trees forms the base of the spatial framework (1), with transmission between groups of bats in trees (grey circles). We include three scenarios of stand structure density to reflect ecological shifts in Australian flying-foxes <ref type="bibr">('sparse', 'intermediate' and 'dense' structures)</ref>. Realistic values of total abundance are applied to models (N = 288, 2,880 and 4,320), and simulated individuals are divided equally between tree-groups (2). We model transmission as ij , being the rate at which susceptible individuals in tree i acquire infection from infectious individuals in tree j. Transmission is underlain by roost stand structure in heterogenous models (3). Specifically, transmission is a function of distance between tree-groups, and a scaling parameter that controls the decay in transmission with distance (&#952;). The influence of &#952; is represented in the figure as 'transmission strength': at low values of &#952; there is fast decay in transmission with distance, shown by the intensity of yellow shading from an index case. As &#952; increases transmission becomes more homogenous, as transmission between tree-groups becomes as likely as transmission within treegroups. In homogenous models (4) transmission is constant (equivalent to mean-field models). From this model framework we calculate the basic reproductive number (R 0 ) of each model ( <ref type="formula">5</ref>), and use stochastic simulations to investigate the infection dynamics for each scenario (6). For all summary measures, we report the median of successful simulations (dark purple), together with the interquartile range to indicate the variation between simulations (light purple shading)</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>TA B L E 1 Model parameters</head></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Parameters Value Description (reference)</head><p>Infectious period (1/&#947;) 7 days Shedding duration <ref type="bibr">(Halpin et al., 2011)</ref> Incubation period (1/&#948;) 6 days Time between infection and shedding <ref type="bibr">(Halpin et al., 2011)</ref> Mean seroprevalence 0.25; 0.5; 0.75 Seroprevalence values from wild Pteropus alecto <ref type="bibr">(Breed et al., 2011;</ref><ref type="bibr">Edson et al., 2019;</ref><ref type="bibr">Field, 2004)</ref> Transmission rate (&#946;) 0.001984 (0. Radius scaling factor (1/&#945;) 3 m Mean tree radii for roost trees <ref type="bibr">(Lunn, Peel, Eby, et al., 2021)</ref> scenario where &#952; tends to infinity, such that every inter-tree transmission rate &#946; i,j is equal to the within-tree rate &#946;. Mixing in homogenous models is random (all bats have an equal probability of coming into contact, regardless of underlying stand structure), and are equivalent to standard, mean-field models. As underlying stand structure does not matter here, outputs from 'dense', 'intermediate' and 'sparse' homogenous models are combined into one group for presentation.</p><p>Hendra virus epidemiological parameters were derived from experimental, field and captive studies of Pteropus alecto (Table <ref type="table">1</ref>).</p><p>Direct empirical estimates of transmission rates have not been obtained, so we inferred a range of plausible values from field seroprevalence data <ref type="bibr">(Breed et al., 2011;</ref><ref type="bibr">Edson et al., 2019;</ref><ref type="bibr">Field, 2004)</ref>.</p><p>Seroprevalence reports typically range between 25% and 75%.</p><p>Assuming Hendra virus in natural populations is stationary, we can approximate R 0 as the inverse of the proportion of seronegative bats (Appendix S2; also see <ref type="bibr">Plowright et al., 2011)</ref>, hence a range of 2-4.</p><p>We chose three values for R 0 (2, 3 or 4), from which we derived corresponding values of &#946; under each set of roost structure and population size (see Appendix S2).</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="2.4">| Stochastic simulations</head><p>The model is implemented as a continuous-time, discrete-event Markov stochastic process with exponentially distributed time to next event. Simulations were run using a tau-leap algorithm <ref type="bibr">(Gillespie, 2001)</ref> implemented in R. Because of the heterogenous structure of the roosts, simulation outputs depended on the choice of index location relative to the structure of the roost <ref type="bibr">(Liu &amp; Hu, 2005)</ref>. Therefore, at the start of each simulation we introduced one infected individual into a randomly selected tree-group. Data and annotated R code are available at <ref type="url">https://github.com/Tamik   aLunn/ spati al-model -HeV</ref>.</p><p>For each scenario and parameter combination, we ran 500 simulations from which we calculated summary statistics, including the probability of virus extinction within a year of its introduction. In each simulation, virus introduction was considered successful if the number of total infections exceeded a threshold of 10 bats. The threshold was chosen as a standard mid-point in the bimodal distribution of final epidemic sizes across a broad set of parameter values.</p><p>We then calculated time to extinction, given as the time (in days)</p><p>when the last infected bat recovered. We calculated the magnitude of the epidemic peak as the proportion of infections at the infection peak, as well as the duration (the number of days spanning the interquartile range of the curve) and timing of the epidemic peak. For all summary measures, we report the median of successful simulations, together with the first and third quartile to indicate the variation between simulations.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="3">| RE SULTS</head><p>The effects of stand structure, total abundance and between-tree coupling on infection dynamics are largely conserved between scenarios of pre-existing immunity (25%, 50% and 75% initial seroprevalence) and model compartmental structure (SIR and SEIR). For simplicity in reporting general patterns, we focus on outputs from models with an SIR structure and 50% starting seroprevalence, but highlight differences in absolute values between scenarios of immunity and model structure at the end of this section. Figures for additional model outputs are given in the Supporting Information. As expected, heterogenous models became more indistinguishable to homogenous models when they approached free mixing (increasing values of &#952;). This can be seen in the outbreak success of simulations, for example-in medium and large roosts, the proportion of successful outbreaks was ~90% for all models (sparse, intermediate, dense and homogenous bars) in medium and large roosts with free mixing (Figure <ref type="figure">2f</ref>,i). Moreover, for small roosts, successful outbreaks in heterogenous models (three left-hand bars) were only observed with freer mixing (Figure <ref type="figure">2c</ref>, but not Figure <ref type="figure">2a</ref>,<ref type="figure">b</ref>).</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="3.1">| Effect of roost structure on infection dynamics</head><p>Additionally, the epidemic curve of simulated infections became more similar between models as mixing became more free, including the magnitude of the peak, timing of the peak and duration of the peak (Figure <ref type="figure">3</ref>, compare panels -i, -iv, -vii to panels -iii, -vi, -ix for each set). paragraphs, where there is some effect of distance on transmission, but this is not so exaggerated that there is either completely free transmission (high &#952;) or no transmission (low &#952;) between tree-groups.</p><p>Outputs for other values of &#952; can be viewed in the figures.</p><p>Sparse stand structures (with fewer trees but more bats per tree) are more likely to generate successful outbreaks, as well as larger and faster epidemics with shorter virus extinction times, compared with intermediate and dense stand structures with more trees but fewer bats per tree. The probability of successful outbreaks is highest in sparse roosts, with the average proportion of successful outbreaks being 0.75 (interquartile range 0.72-0.78, given &#952; = 1), versus 0.55 (0.49-0.60) and 0.47 (0.42-0.51) for intermediate and dense stand structures respectively (averaged across abundance scenarios, i.e. panels b, e and h in Figure <ref type="figure">2</ref>). Sparse stand structures also generate the largest epidemics, followed by intermediate, then dense stand structures. The mean prevalence of infection at the epidemic peak is: 0.20 (interquartile range: 0.16-0.23; 1,048 infected) for sparse structures, 0.10 (interquartile range 0.06-0.13; 998 infected) for intermediate structures and 0.08 (0.04-0.11, 885 infected) for dense structures (averaged across abundance scenarios-panels a-ii, a-v and a-viii, Figure <ref type="figure">3</ref>).</p><p>The epidemics also occur earlier (Figure <ref type="figure">3b</ref>) and are of shorter duration (Figure <ref type="figure">3c</ref>) for sparse structures (also see epidemic curves under sparse structure scenarios. This can be seen in Figure <ref type="figure">4</ref>, where the blue line (sparse structures) reaches saturation for every value of &#952;, under population sizes where successful outbreaks were consistently achieved (i.e. medium and large populations; Figure <ref type="figure">4d-i</ref>).</p><p>This contrasts with intermediate and dense structures, which range between 21%-100% and 7%-100% of tree-groups infected for the same population size scenarios and values of &#952; (red and green lines, Figure <ref type="figure">4d-i</ref>). In other words, in intermediate and dense stand structures, infections typically spread beyond the index tree-group, but do not necessarily reach all tree-groups.</p><p>Moreover, the proportion of infected tree-groups reaches its peak most quickly under sparse structure scenarios (shown by the timing of the peak in the blue curve relative to red and green curves, Figure <ref type="figure">4d-i</ref>). The duration of peak infection is also longest under sparse stand structure scenarios (45-59 days) compared with intermediate (1-30 days) and dense (1-18 days) stand structures (values reported across all values of &#952;). This is shown by the duration of the flat part of the peak in the blue curves relative to red and green curves in Figure <ref type="figure">4d</ref>-i. This is an important note, as the spread of infection to tree-groups can be thought of as essentially 'unlocking' groups of individuals exposed to infection and will drive the speed and magnitude of the epidemic.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="3.2">| Effect of total abundance on infection dynamics</head><p>Predictably, infection dynamics are highly dependent on population size. For heterogenous models, almost all simulations with small populations (total abundance of 288) fail to generate outbreaks of more than 10 infected bats. Simulations with medium populations Persistence for 3 months is ecologically relevant for Hendra virus, which has seasonal dynamics in prevalence, and a peak season over winter <ref type="bibr">(Field et al., 2015)</ref>. Virus persistence for more than 360 days (roughly 1 year) was not observed despite the maximum duration for simulations being set at 365 days. The longest duration of persistence of the virus occurs in intermediate to dense stand structures, with a medium to large bat abundance, and with a restricted to intermediate level of connectivity between tree-groups (&#952;: 0.1-1; see the proportion of orange/red bars in Figure <ref type="figure">S3b</ref>). We provide more detailed explorations into scenarios that promote outbreak success and virus persistence in the Supporting Information (Appendix S6).</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="3.3">| Effect of pre-existing immunity on infection dynamics</head><p>General patterns of the effect of stand structure, total bat abundance and effect of distance on infection dynamics are largely conserved between scenarios of pre-existing immunity (25%, 50% and 75% starting seroprevalence), but absolute values differ. When infection is introduced into a population with lower seroprevalence (25%), successful outbreaks are more likely, time to extinction is faster and epidemics are slightly larger, faster and of shorter duration (Appendix <ref type="table">S3</ref>). When infection is introduced into a population with higher seroprevalence (75%), successful outbreaks are much less likely but last longer (Appendix S3).</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="3.4">| Effect of compartmental structure on infection dynamics</head><p>General patterns of the effect of stand structure, total abundance and values of theta on infection dynamics are largely conserved be- </p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="4">| D ISCUSS I ON</head><p>This study was motivated by the hypothesis that recent trends in Hendra virus spillover have been driven by dramatic ecological changes in flying-fox populations in Australia, including shifts in their roosting behaviours <ref type="bibr">(Williams et al., 2006)</ref>. Integrating empirical data into models allows us to investigate how changing roost structures may affect the spread of pathogens within roosts, and provides a case study of epidemic dynamics in a high-profile communal host-pathogen system. Outputs from these models also contribute insights into the spread of viruses in structured populations more generally, adding to general theory posed by <ref type="bibr">Laughlin et al. (2019)</ref>. The outputs of our homogenous and heterogenous models demonstrate that infection dynamics of heterogenous models are qualitatively unlike that of mean-field models for equivalently sized populations, and will vary under increasing levels of heterogeneity.</p><p>The observation that spatially explicit stand structures had lower probabilities of outbreak success, with slower and smaller outbreaks, is consistent with comparable studies on network models that compare infection propagation in random versus community networks <ref type="bibr">(Huang &amp; Li, 2007;</ref><ref type="bibr">Liu &amp; Hu, 2005)</ref>. When mixing is homogenous, all individuals have an equal likelihood of exposure, and global infection in the population is more likely. By contrast, structured populations have a higher probability that pockets of the population could remain uninfected. This highlights the importance of including spatial structure in disease models for communally roosting species whose patterns of aggregation are driven by the spatial structure of their environment.</p><p>Within heterogenous models, the higher probabilities of success, faster extinction times and higher magnitudes of epidemics observed in sparse structures compared with intermediate and dense structures are likely attributable to differences in the rate and spread of infection between tree-groups. In sparse structures, infection spreads quickly and consistently throughout the whole population.</p><p>In contrast, while infections in intermediate and dense structures typically spread beyond the index tree-group, they do not necessarily reach all tree-groups, and the rate of spread is consistently slower. Sparse structures had a higher abundance of individuals per tree than intermediate and dense structures, chosen to reflect expected packing patterns of bats <ref type="bibr">(Lunn, Peel, Eby, et al., 2021)</ref>. This yields higher values of group-level R 0 within sparse structures, and consequently a higher force of infection from these infected groups.</p><p>Because of the specificities of bat roost structures, our results contrast with <ref type="bibr">Bartlett's (1956)</ref> seminal classification of disease dynamics in spatially structured systems. In particular, he predicted irregular epidemics in systems with a small number of groups, predictable epidemics interspersed with periods of pathogen extinction for systems with an intermediate number of groups, and regular epidemics in systems with many groups. In our models increasing group-level R 0 increases the probability of infection transmission between groups, because there are a larger number of infected hosts to spread the infection <ref type="bibr">(Park et al., 2002)</ref>. Higher group-level R 0 values within sparse structures would therefore (a) increase the probability of transmission between groups, and therefore the probability of success and magnitude of epidemics, and (b) increase the frequency of transmission between groups, consequently accelerating the epidemic and decreasing the extinction time. In contrast, intermediate and dense structures, having a smaller proportion of the population exposed to infection, produce a dampened epidemic peak (a mechanism similarly described by <ref type="bibr">Jesse et al., 2008)</ref>, and a lower rate of transmission between groups likely slowed the epidemic and increased extinction time (a mechanism similarly described by <ref type="bibr">Park et al., 2002)</ref>. This example reflects the importance of considering both infection spread (dependent on the total number of groups and the strength of coupling between groups, as in <ref type="bibr">Bartlett (1956)</ref>), as well as the force of infection from infected groups, for understanding infection dynamics in spatially structured populations <ref type="bibr">(Park et al., 2002)</ref>.</p><p>Observed differences in the pattern of infection between roost structure types will be important for understanding local infection dynamics of Hendra virus, and may be important when considering the potential impact of urbanization on infection dynamics and spillover risk from roosts. In our data-driven stand structure scenarios, sparse structures promote a higher probability of outbreak success, indicating that roosts of this type may be more susceptible to local epidemics once an infection is introduced, and so, may contribute to spillover more frequently than other roost structure types. Introduction of infection into the roost population could occur through migration from another roost <ref type="bibr">(Plowright et al., 2011)</ref> or reactivation of a latent infection within bats occupying the roost <ref type="bibr">(Glennon et al., 2019)</ref>. Importantly, roosts of this type are common to human-dominated landscapes, where exacerbated stressors may increase the rate of reactivation of latent infections within bats <ref type="bibr">(Kessler et al., 2018;</ref><ref type="bibr">Plowright et al., 2008)</ref>, and may further contribute to these roosts as frequent hotspots for virus spillover. This would be consistent with the correlation seen between the rise of these roosts types and increasing incidence of spillover <ref type="bibr">(Eby et al., in review;</ref><ref type="bibr">Plowright et al., 2011)</ref> and may be one mechanism to explain this correlation.</p><p>Additionally, epidemics in these roost structure types are characterized by high magnitude pulses of short duration. Having a high proportion of bats shedding virus, concentrated within a small timeframe, may also contribute to spillover risk from these roosts. While our models were only run for 1 year, there was also a tendency for viruses in these roosts to fade out more quickly than other roost structure types. This could create a pattern of fast, high magnitude epidemics interspersed with periods of local pathogen extinction (and total loss of immunity), in contrast to scenarios of longer viral persistence, where the maintenance of immunity within roosts would dampen the magnitude of epidemics between cycles of infection <ref type="bibr">(Bartlett, 1956;</ref><ref type="bibr">Plowright et al., 2011)</ref>.</p><p>Tight boom-bust cycles of infection in these roost types may further add to spillover risk and contribute to the observed correlation with Hendra virus spillover. Practically, this may also reduce the detectability of circulating infection in these roosts, as virus will frequently be absent. Regular sampling may be required to confirm these modelling outputs.</p><p>Our finding that pathogens spread most rapidly in sparse structures, when hosts form a small number of large groups, are dynamically similar to those described in <ref type="bibr">Laughlin et al. (2019)</ref>.</p><p>However, the difference in scale of the two models-intra-roost in the current study, and inter-roost in Laughlin et al. ( <ref type="formula">2019</ref>)-creates a divergence in ecological interpretation of the models. <ref type="bibr">Laughlin et al. (2019)</ref> suggest that large roosts amplify pathogen spread and are thereby important sites for pathogen surveillance. Small roosts, by contrast, are suggested to be buffered against the spread and impact of emerging pathogens. In the current study, we take a fixed area inside single roost to explore how fine-scale spatial aggregations within roosts influence infection spread, given a fixed population size. In reality these roosts span different areas and have different total population sizes. Importantly, roosts with sparse stand structures are more typical of small roosts that span small (often urban) areas, while roosts with dense stand structures are more typical of large roosts that span larger areas of intact forest <ref type="bibr">(Lunn, Eby, et al., 2021)</ref>. Our findings show that in this system, small but sparse structures may be an important target for surveillance, and highlight that fine-scale attributes of roosts are also important to consider when understanding patterns of infection spread.</p><p>These interpretations are based on outputs from SIR compartmental models with an existing seroprevalence of 50%. Models with an incubation period (SEIR) at a higher seroprevalence equilibrium, could also be realistic for Hendra virus infection in bat populations <ref type="bibr">(Glennon et al., 2019)</ref>. While specific choices of compartmental model structure and seroprevalence value influenced the absolute values predicted by simulated dynamics, we have shown that the general effects driven by stand structure and bat aggregation remain consistent, and so the relative risk of sparse structures compared with intermediate and dense structures remain. We also note that these interpretations are dependent on the assumption that the number of bats per tree will be higher in sparse stand structures where there are fewer trees available to roost in. This scenario was deliberately chosen to reflect empirical data on bat aggregation patterns in Australia <ref type="bibr">(Lunn, Peel, Eby, et al., 2021)</ref> but may not be the case for all Australian bat roosts, nor reflect the biology of all communally roosting species.</p><p>We have considered a closed system, but our model could be easily extended to include demographic processes and other cycles of infection and immunity (such as those identified in <ref type="bibr">Glennon et al., 2019)</ref>, for example, with immune waning and reactivation of latent infections. These processes are more likely to affect longer term virus spread and persistence at the metapopulation level. Extensions to these models along these lines could be used to reaffirm the relative importance of demographic versus epidemic processes in different population structure types. We use a specific example of flying-fox roosts in this paper, but our code is generalizable to other systems where roosts might act as important transmission sites-for example, to model interactions between colonies or subcolonies of colonial seabirds <ref type="bibr">(Coulson, 2002)</ref> or clusters of microbats in structurally complex cave systems <ref type="bibr">(Willoughby et al., 2017)</ref>. Generation of the spatial model structure simply requires input of a distance matrix between groups, and specification of how transmission is expected to relate to distance. This model framework could be easily adopted to combine basic data on population structures with empirical data on pathogens of potential threat, to understand and predict the risk of novel pathogen introduction, spread and persistence in communally roosting wildlife systems.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="5">| CON CLUS IONS</head><p>Our results highlight that explicit consideration of spatial structure is important in models of structured, communally roosting species.</p><p>In our models, unstructured populations were more easily invaded and experienced faster and larger epidemics than in structured populations. This will have implications for predicting infection and identifying spillover risk from communal species, including bats, and emphasizes the importance of appropriate model choice informed by host ecology. Within the context of Hendra virus specifically, we demonstrate that modified patterns of animal aggregation driven by urbanization have the potential to change infection dynamics in altered host populations. Counterintuitively, we identify sparse stand structures with fewer trees but more bats per tree, most typical of anthropogenic habitats, as the highest risk for pathogen spillover, with these roosts generating a higher probability of outbreak success, larger and faster epidemics, and shorter virus extinction times.</p><p>This information could be used to predict spillover risk from roost features at a landscape scale across Australia, particularly in the context of rapidly changing host ecology. Lastly, our modelling approach provides a framework for combining data-driven scenarios of communal roosting with theoretical modelling of infection. This will be valuable for future pathogen modelling efforts in communally roosting species across wide-ranging taxa of zoonotic importance.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>ACK N OWLED G EM ENTS</head><p>We </p></div><note xmlns="http://www.tei-c.org/ns/1.0" place="foot" xml:id="foot_0"><p>Journal of Animal Ecology LUNN et aL.</p></note>
		</body>
		</text>
</TEI>
