Skip to main content
Advertisement
  • Loading metrics

Slow spatial migration can help eradicate cooperative antimicrobial resistance in time-varying environments

  • Lluís Hernández-Navarro ,

    Contributed equally to this work with: Lluís Hernández-Navarro, Kenneth Distefano

    Roles Conceptualization, Data curation, Formal analysis, Investigation, Methodology, Validation, Visualization, Writing – original draft, Writing – review & editing

    lluishn@gmail.com (LH-N); M.Mobilia@leeds.ac.uk (MM)

    Affiliation Department of Applied Mathematics, School of Mathematics, University of Leeds, Leeds, United Kingdom

  • Kenneth Distefano ,

    Contributed equally to this work with: Lluís Hernández-Navarro, Kenneth Distefano

    Roles Data curation, Formal analysis, Investigation, Methodology, Software, Validation, Visualization, Writing – original draft, Writing – review & editing

    Affiliation Department of Physics & Center for Soft Matter and Biological Physics, Virginia Tech, Blacksburg, Virginia, United States of America

  • Uwe C. Täuber,

    Roles Funding acquisition, Resources, Supervision, Writing – review & editing

    Affiliations Department of Physics & Center for Soft Matter and Biological Physics, Virginia Tech, Blacksburg, Virginia, United States of America, Faculty of Health Sciences, Virginia Tech, Blacksburg, Virginia, United States of America

  • Mauro Mobilia

    Roles Conceptualization, Formal analysis, Funding acquisition, Methodology, Project administration, Resources, Supervision, Visualization, Writing – original draft, Writing – review & editing

    lluishn@gmail.com (LH-N); M.Mobilia@leeds.ac.uk (MM)

    Affiliation Department of Applied Mathematics, School of Mathematics, University of Leeds, Leeds, United Kingdom

?

This is an uncorrected proof.

Abstract

Antimicrobial resistance (AMR) is a global threat and combating its spread is of paramount importance. AMR often results from a cooperative behaviour with shared drug protection. Microbial communities generally evolve in volatile, spatially structured settings. Migration, space, fluctuations, and environmental variability all have a significant impact on the development and proliferation of AMR. While drug resistance is enhanced by migration in static conditions, this changes in time-fluctuating spatially structured environments. Here, we consider a two-dimensional metapopulation consisting of demes in which drug-resistant and sensitive cells evolve in a time-changing environment. This contains a toxin against which protection can be shared (cooperative AMR). Cells migrate between demes and connect them. When the environment and the deme composition vary on the same timescale, strong population bottlenecks cause fluctuation-driven extinction events, countered by migration. We investigate the influence of migration and environmental variability on the AMR eco-evolutionary dynamics by asking at what migration rate fluctuations can help clear resistance and what are the near-optimal environmental conditions ensuring the quasi-certain eradication of resistance in the shortest possible time. By combining analytical and computational tools, we answer these questions by determining when the resistant strain goes extinct across the entire metapopulation. While dispersal generally promotes strain coexistence, here we show that slow-but-nonzero migration can speed up and enhance resistance clearance, and determine the near-optimal conditions for this phenomenon. We discuss the impact of our findings on laboratory-controlled experiments and outline their generalisation to lattices of any spatial dimension.

Author summary

As the number of microbes resisting antimicrobial drugs grows alarmingly, it is of paramount importance to tackle this major societal issue. Resistant microbes often inactivate antibiotic drugs in the environment around them, and hence offer protection to drug-sensitive bacteria in a form of cooperative behaviour. Moreover, microbes typically are distributed in space and live in time-changing environments, where they are subject to random fluctuations. Environmental variability, fluctuations, and spatial dispersal all have a strong influence on the drug resistance of microbial organisms. Here we investigate the temporal evolution of antimicrobial resistance in time-varying spatial environments by combining computational and mathematical means. We study the dynamics of drug-resistant and sensitive cells in the presence of an antimicrobial drug, when microbes are spatially distributed across a (two-dimensional) grid of well-mixed sub-populations (demes). Cells migrate between neighbouring demes, connecting these sub-populations, and are subject to sudden changes of environment, homogeneously across all demes. We show that when the environment and the deme composition vary on the same timescale, the joint effect of slow migration and fluctuations can help eradicate drug resistance by speeding up and enhancing the extinction probability of resistant bacteria. We also discuss how our findings can be probed in laboratory experiments, and outline their generalisation to lattices of any dimension.

Introduction

Microbial communities generally live in volatile, time-varying environments embedded in complex spatial structures connected through cellular migration, e.g., in soil [1], seabed [2], on wet surfaces [3], in plants [4], animals [5], and humans [6,7]. How the environment helps shape microbial populations and species diversity [811] is a subject of intense research [1122]. Moreover, environmental variability and microbiome-environment interactions greatly influence the temporal evolution of microbial communities, with a growing interest in their eco-evolutionary dynamics [6,10,2228]. Despite significant recent progress [13,14,21,22], a general understanding of the combined influence of spatial structure, migration and environmental variability on the evolution of microbial populations remains an open question that is notably relevant to the spread of antimicrobial resistance (AMR) [2939]. Understanding the spread of AMR is of paramount societal importance, and is influenced by spatial structure, environmental changes and fluctuations. The latter are often associated with population bottlenecks [10], when the community size is drastically reduced, e.g., due to the effects of drugs [40,41] or other causes [42,43]. The size and composition of microbial populations are often interdependent, leading to coupled environmental and demographic fluctuations [23,2628,4455]. These are particularly relevant when antibiotics cause bottlenecks following which surviving cells may replicate and AMR can spread [41]. Recent studies have investigated the impact of space on the emergence and spread of non-cooperative AMR mutants [11,15], even in the presence of environmental bottlenecks [20,22]. However, AMR often results from cooperative behaviour with resistant microbes inactivating toxins and sharing their protection with drug-sensitive bacteria [21,43,56]. Recent research on cooperative AMR has mostly focused on microbiome-environment interactions [14,21], without considering external environmental changes.

Moreover, recent studies on rescue dynamics, which investigate the recovery of near-extinction populations, have also focused on the role of spatial recolonisation – that is, the reoccupation of a previously emptied local area through cell migration (demographic rescue). These processes were first investigated in single-strain systems subject to constant environments [57], and then in the presence of different forms of environmental variability, e.g., [5863]. These works showed that environmental stochasticity typically limits the rescue effect and is detrimental for population survival (but see Ref. [64], where population rescue can occur more readily in the face of harsher environmental shifts). Additionally, recent computational studies [6568] and experimental works [6973] have reported that the survival of a population is enhanced when the rate of cell migration is intermediate, i.e., when individuals are neither organised in entirely isolated patches nor in fully connected (well-mixed) subpopulations. This stems from recolonisation events following local extinction, and has notably been reported for the case of cooperative AMR [14].

Here, inspired by the cooperative nature of -lactamase-mediated AMR [43,56,74], we study how the migration of cells shapes the temporal evolution of cooperative resistance (modelled using a public good threshold, see below) in a spatially structured microbial population subject to environmental variability causing bottlenecks and fluctuations. To this end, we investigate the in silico temporal evolution of cooperative AMR in a two-dimensional (2D) metapopulation consisting of cells that are either sensitive or resistant to a drug. (Note that in this work we use the term evolution to refer to the competition dynamics between drug-resistant and sensitive strains, hence ignoring mutations that often occur on a longer timescale than the phenomenon studied here; see Model & Methods and Discussion). We consider a spatially explicit model consisting of a grid of demes whose well-mixed sub-populations are connected by cell migration, as commonly used to model microbial communities living on surfaces, in theory and experiments [31,7577]. (The case of a one-dimensional lattice of demes is discussed in S1 Appendix Sec. 5.5, see below). The metapopulation is subject to a constant antimicrobial input and a time-fluctuating environment, that is homogeneous across all demes. We model environmental variability by letting the carrying capacity of each deme change simultaneously in time to represent harsh and mild environmental conditions (Fig 1A), thereby implementing bottlenecks [2628,5155,78,79]. These are critical for microbial dynamics and can be engineered in laboratory-controlled experiments [41,50,55,8092]. Changes in the carrying capacity can potentially encode different exogenous sources of environmental variability. Here, inspired by recent chemostat and microfluidic experiments [25,93,94], we interpret environmental variability as representing a time-varying influx of nutrients (or sequential changes with a secondary antibiotic [95]).

thumbnail
Fig 1. Microbial community model.

Panel A: Eco-evolutionary dynamics in an isolated deme (m = 0) subject to constant antimicrobial input rate and intermediate environmental switching (Model & Methods). Top: Illustrative temporal evolution when the environment switches between mild (K+=12) and harsh () environments (env.) at rates , with cooperation threshold Nth = 3 (Model & Methods). Resistant microbes (blue, R) produce a resistance enzyme that locally inactivates the drug (green shade) at a metabolic cost. When , the drug is inactivated in the entire deme and sensitive cells (red, S) benefit from the protection at no cost (e.g., bottom-left green shade). The fraction of S thus increases (solid red arrow). When , the drug hampers the spread of S (top-right red crosshairs) while R’s remain protected and thrive (blue arrow). In the mild environment (left, K = K+), , whereas (solid red arrow). Similarly, in the harsh environment (right, grey background, ), we still have while (blue arrow). K is assumed to switch suddenly between K+ and (environmental variability), driving the deme size () that fluctuates in time (Model & Methods, see Fig A in S1 Appendix and Sec. 1.2.3). When (intermediate switching), the deme experiences bottlenecks at every mild (K = K+) to harsh () switch. When [26] (Model & Methods), demographic fluctuations may cause the extinction (ext.) of R cells after each bottleneck (curved dotted red arrow). Bottom: Stochastic realisation of NS (red) and NR (blue) in a deme vs. time, with parameters (dashed), K+=400, , , and (Model & Methods). White/grey background indicates mild/harsh environment. Population bottlenecks (white-to-grey) enforce transient NR dips (blue arrows) promoting fluctuation-driven R eradication (red arrow) [26] (Model & Methods). Panel B: Eco-evolutionary metapopulation dynamics; legend and parameters are as in A. The metapopulation is structured as a (two-dimensional) grid of connected demes, all with carrying capacity given by Eq. (3). Each R and S cell can migrate onto a neighbouring deme at rate m (curved thin arrows, Model & Methods). Owed to local fluctuations of NR, drug inactivation varies across demes (different shades). Bottlenecks can locally eradicate R, e.g., in deme (*), but migration from a neighbouring deme (†) can rescue resistance (curved thin blue arrow). Resistance is fully eradicated when no R cells survive across the entire grid (curved dashed red arrow).

https://doi.org/10.1371/journal.pcbi.1013997.g001

It has recently been shown that coupled environmental and demographic fluctuations shape the temporal evolution of cooperative antimicrobial resistance in well-mixed populations (e.g., in isolated demes), where the environmental conditions for the eradication of resistance were determined [26]. Cell migration between demes generally promotes the coexistence of strains in static environments [39,96], and is thus expected to enhance cooperative drug resistance in the absence of environmental variability. In this context, we investigate how cell migration and environmental fluctuations influence the dynamics of antimicrobial resistance by asking: (1) For what migration rates can environmental and demographic fluctuations clear resistance? and (2) What are the near-optimal environmental conditions ensuring the quasi-certain fluctuation-driven eradication of resistance in the shortest possible time? Here, we answer these questions by combining analytical and simulation tools to determine under which circumstances the resistant strain goes extinct from the grid.

In the next section, we detail the model and introduce our main methods, including a background account of Refs. [26,28]. We then present our main results answering the above central questions (1) and (2): we first determine the conditions ensuring the fluctuation-driven eradication of the cooperative resistant strain across the metapopulation, and then find the near-optimal conditions for the quasi-certain clearance of resistance in the shortest possible time. The biological relevance of these findings are then discussed alongside the model assumptions (robustness, limitations) and possible experimental impact, in light of the existing literature. Finally, we present our conclusions. Our study is complemented by a series of appendices and supporting movies (see S1 Appendix).

Model & Methods

Motivated by -lactamase cooperative antimicrobial resistance [43,56,74], and inspired by chemostat laboratory set-ups [25,88,93], we study how the migration of cells shapes the AMR eco-evolutionary dynamics in a time-varying environment of a spatially structured microbial population consisting of two cell types, denoted by S and R, competing for the same resources in the presence of a constant input of an antimicrobial drug to which S cells are sensitive and R microbes are resistant, and against which the protection can be shared. Further details on the biological underpinning of our modelling approach are provided in the Discussion, and additional technical points can be found in S1 Appendix Sections 1–3.

Metapopulation model

For the sake of concreteness, we consider a two-dimensional (2D) microbial metapopulation that can be envisioned as a grid of linear size L, containing demes (or sites) labelled by a vector where (with L = 20 in our examples), and periodic boundary conditions [18,20,7577,97]. The demes of this spatially explicit model are connected to their four nearest neighbours via cell migration, at per capita rate proportional to the migration parameter m (later simply referred to as “migration rate”), and are subject to a constant input rate of an antimicrobial drug [29,30,35]. Each deme has the same carrying capacity, denoted by K, and at time t consists of a well-mixed subpopulation of cells of type S that are drug-sensitive and microbes of the AMR-resistant strain R, with deme size , while the total number of R/S cells at time t across the metapopulation is and the overall time-fluctuating number of microbes is , see Fig 1.

Antimicrobial resistance can often be seen as a form of cooperative behaviour [21,43,56], for example in the case of -lactam antibiotics, microbes with resistance gene-bearing plasmids produce a -lactamase resistance enzyme hydrolysing the antimicrobial drug in their surroundings [21,26,28,43,56,98,99]. In this context, when there are enough resistant microbes, the local concentration of resistance enzymes can reduce the drug concentration below the minimum inhibitory concentration (MIC), so that antimicrobial resistance acts as a public good, protecting both resistant and sensitive cells. Resistant microbes can either secrete the resistance enzymes (extracellular enzymes, typically produced by Gram-positive bacteria) or retain them within the cell (intracellular enzymes, Gram-negative bacteria) [100,101]. Our theoretical model can account for both scenarios as it relies on the catalytic inactivation of the antimicrobial drug, either inside or outside R cells [56,102,103]. In any case, the public good (shared drug protection) can be interpreted as encoding the local decrease in the concentration of the active drug [56] (Introduction; see Fig 1).

Here, we consider a metapopulation model where S and R cells compete in each deme for finite resources in a time-fluctuating environment and in the presence of an antimicrobial drug. We assume that R cells share the benefit of drug protection with S cells within a deme when the local number of resistant cells reaches or exceeds a certain fixed cooperation threshold that is constant across demes, i.e., R cells act as cooperators in deme when [26,43,56] (i.e., drug inactivation occurs at a faster timescale than microbial replication, each deme has a constant drug influx/outflux, and the deme volume is fixed; see Extra and intracellular drug inactivation in the subsection “Robustness of results across parameters and scenarios” of Discussion, and [28] for the case of a cooperation threshold set by the fraction of R cells in a single deme due to a time-varying volume). We therefore assume that microbes of the cooperative resistant strain R have the same constant growth fitness in all demes, where the parameter s (with 0 < s < 1) represents a resistance-production metabolic cost. Moreover, cells of type S that are sensitive to the drug have a baseline fitness fS = 1 when , and when , where s < a < 1, which denotes the growth fitness reduction caused by the drug [26,28] (see Population size and microbial parameter values in the Discussion subsection “Robustness of results across parameters and scenarios” for further considerations on biostatic and biocidal drug action). Hence, with , the fitness of the R strain exceeds that of S when , whereas the R type has a lower fitness than S, with , when . Both strains, R and S, are subject to the same single-deme carrying capacity (K), which is homogeneous across all demes of the metapopulation, at all times.

Here, we particularly focus on the metapopulation’s eco-evolutionary dynamics under slow migration, a biologically relevant dispersal regime known to increase population fragmentation and hence influence its evolution and diversity [18,104107] (see Population size and microbial parameter values in Discussion for further details on the slow migration regime). Environmental variability is here encoded in the time-varying carrying capacity of each single deme, K(t), which changes simultaneously across all demes, and that we assume to switch endlessly between values representing mild and harsh conditions [5154], see Fig 1A and below. (A detailed discussion of the time-fluctuating K(t) is provided in Environmental assumptions in the Discussion subsection “Robustness of results across parameters and scenarios”).

Intra- and inter-deme processes: Bacterial division, death, and cell migration

In close relation to the Moran process [108111], a reference model in biology for evolutionary processes in finite populations [112], the intra-deme dynamics within a lattice site is represented by a birth-death process defined by the reactions and of birth (cell division) and death of R/S cells, occurring at local transition rates [2628,5153,79]

(1)

where is the average fitness in deme at time t. The continuous time variable t is measured in units of microbial replication cycles, i.e., microbial generations (see “Background” below and Results, as well as S1 Appendix Sec. 3).

The inter-deme dynamics on the 2D grid stems from the migration of one cell of R/S type from the site to one of its four nearest-neighbour demes denoted by . Cells’ dispersal in microbial populations is generally density-dependent, with movement often directed towards areas that are rich in resources [113], but simpler assumptions are commonly used [18,20,79,114]. Here, we have considered two forms of migration: 1) We have first assumed a local density-dependent per-capita migration rate , with increasing migration rate as the deme’s population size approaches the carrying capacity (less available resources in ). 2) We have also studied the simpler case of a constant per capita migration rate m, corresponding to the same dispersal in all spatial directions (symmetric migration) of all R and S cells in a deme . The inter-deme dynamics is therefore implemented by picking randomly a cell (R or S) from deme and moving it into a nearest-neighbour according to the reactions occurring at the migration transition rates

(2a)(2b)

where and are the two forms of local migration rates (respectively, with density-dependent and density-independent per capita rate). We have found that the specific form of migration does not qualitatively affect our main findings, see Discussion. For notational simplicity, we may refer to m as the “migration rate”, being it clear from the context which of the two forms of migration, or , is used.

Environmental variability

Microbial populations generally live in time-varying environments, and are often subject to conditions changing suddenly and drastically, e.g., experiencing cycles of harsh and mild environmental states [41,50,55,8092], see Fig 1A. Here, environmental variability is encoded in the time-variation of the binary carrying capacity [2628,5155,78,79]

(3)

which can take the values (see Environmental assumptions in the Discussion subsection “Robustness of results across parameters and scenarios” for further discussion and interpretation of K(t)). The carrying capacity is thus driven by the coloured dichotomous Markov noise (DMN), also called telegraph process, that switches between according to at rate when [115117]. It is convenient to write in terms of the mean switching rate and switching bias , where , and indicates that, on average, more time is spent in the environmental state than in ( corresponds to symmetric switching) [2628,53,54]. In all our simulations, the DMN is at stationarity, and is therefore initialised from its long-time distribution, see S1 Appendix Sec. 3. All the DMN instantaneous correlations are thus time-independent while its auto-covariance reads [53,115117], where denotes the ensemble average and is the finite correlation time (when ). Following Eq. (3), the carrying capacity switches back and forth at rates between a value K = K+ () corresponding to a mild environment, e.g., where there is abundance of nutrients and/or lack of toxins, and () under harsh environmental conditions (e.g., lack of nutrients, abundance of toxins) according to , and thus describes (“feast and famine”) cycles of mild and harsh conditions. As the DMN, the time-fluctuating K(t) is always at stationarity: its expected value is , and its auto-covariance is [53,115117]. Accordingly, in our simulations the initial value of the carrying capacity is drawn from its stationary distribution, i.e., with a probability , see S1 Appendix Sec. 3. The randomly time-switching K(t) drives the deme size of all demes simultaneously, and is hence responsible for the coupling of demographic fluctuations with environmental variability [27,5155,78,79]. This effect is particularly important when the dynamics is characterised by population bottlenecks [26,28,79]; see below and S1 Appendix Sec. 1.2.3.

The stochastic metapopulation model is therefore a continuous-time multivariate Markov process – defined by the transition rates given by Eqs. (1), (2a) and (2b) – that satisfies the master equation given in S1 Appendix Sec. 1.1. The individual-based dynamics encoded in Eqs. (1), (2a) and (2b) has been simulated using the Monte Carlo method described in S1 Appendix Sec. 3. It is worth noting that N, NR/S, and all depend on the deme , time t, and environmental state . However, for notational simplicity, we often drop the explicit dependence on some or all of the variables , and .

Background: Eco-evolutionary dynamics in an isolated deme

Since the metapopulation consists of a grid of connected demes, all with the same carrying capacity K(t), it is useful to review and summarise the properties of the eco-evolutionary dynamics in a single isolated deme (when m = 0), studied in Ref. [26] (see also Refs. [28,51,52]). Further technical details can be found in S1 Appendix Sec. 1.2.

Mean-field approximation of the eco-evolutionary dynamics of an isolated deme.

In an isolated deme, there is only cell division and death according to the intra-deme processes with rates given by Eq. (1). Upon ignoring all fluctuations, the mean-field dynamics in an isolated deme subject to a carrying capacity of constant and very large value K = K0 is characterised by the rate equations for the deme size N and the local fraction of resistant cells [51,52] (see details in S1 Appendix Sec. 1.2.1):

(4)

where the dot indicates the time derivative. The logistic rate equation for N predicts the relaxation of the deme size towards the carrying capacity on a timescale (one microbial generation). The fraction of R cells is coupled to N: x decreases when , and increases otherwise (shared protection). Since 0 < s < a < 1, in this mean-field picture, x approaches on a timescale ( and ) [26,28]. In our examples, we have yielding a clear timescale separation between the dynamics of the deme size and its make-up: N and x are respectively the fast and slow variables; see S1 Appendix Sec. 1.2.1.

Eco-evolutionary dynamics of an isolated deme in a static environment (finite N and constant K).

An isolated deme of finite size, subject to a large and constant carrying capacity K0, can be aptly approximated by a Moran process by assuming that the deme size N = K0 is constant (see details in S1 Appendix Sec. 1.2.2) [26,28,51,52,108,112]. In this static environment setting, R or S cells eventually take over and the process is characterised by the probability and mean time of fixation [108110,112]. Using classical techniques, the probability and mean time for the fixation of R and S can be computed exactly, showing that resistant cells are most likely to fix in the deme when the long-time fraction of R is high enough () [26,28]. Otherwise, R and S cells are likely to coexist for extended periods. Therefore, resistant cells generally persist in an isolated deme when the environment is static; see S1 Appendix Sec. 1.2.2. This picture is drastically altered when environmental variability generates strong population bottlenecks, as briefly reviewed below.

Eco-evolutionary dynamics in an isolated deme subject to a fluctuating environment.

When the deme size is sufficiently large to neglect demographic fluctuations and randomness only stems from environmental variability via Eq. (3), the deme size dynamics is well approximated by the piecewise deterministic Markov process (N-PDMP) [2628,5155,78,79,118] defined by

(5)

In the realm of the N-PDMP approximation, the deme size thus satisfies a deterministic logistic equation in each environmental state , subject to the time-switching carrying capacity, see Eq. (3) (and details in S1 Appendix Sec. 1.2.3). The properties of the N-PDMP, defined by Eq. (5) and discussed in S1 Appendix Sec. 1.2.3, shed light on how the deme size changes with the rate of environmental changes. In particular, N tracks K(t) when the environmental switching is slower than the logistic dynamics ( and ). In this biologically relevant intermediate switching regime [94,119], the deme experiences a bottleneck whenever the carrying capacity switches from K+ to and its size is drastically reduced, see Fig 1A, with subpopulation prone to fluctuation-driven phenomena [10,26,28,5052,86,87,120].

Fluctuation-driven resistance eradication in an isolated deme.

When and , the deme undergoes bottlenecks at an average frequency , comparable to s, the rate at which the deme composition changes (more slowly than N that relaxes after ); see details in S1 Appendix Sec. 1.2.3. Assuming , the deme extinction is unlikely to be observed and, between two environmental switches, NR and NS fluctuate respectively about Nth and , with the deme consisting of a majority of S cells in the mild state (K = K+) (S1 Appendix Secs. 1.2.2, 1.2.3, and 5.4; see also Fig 1A, and Fig H in S1 Appendix). Following each bottleneck, the coupling of N and x causes transient “dips” in the number of R cells [26], see Fig 1A, S1-S5 Movies and S1 Appendix Sec. 4. Using the N-PDMP approximation, it was shown that strong enough bottlenecks, whose strength is measured by (that can be roughly interpreted as the resource supply ratio in mild/harsh conditions in a chemostat set-up [55], or similarly as the inverse of an effective dilution factor), can eradicate resistance. Namely, when , demographic fluctuations are strong enough to lead to the extinction of R after a finite number of bottlenecks, i.e., in a time scaling as [26]. (In Fig 1A, R extinction occurs after four bottlenecks). This phenomenon where resistance is cleared by the coupled effect of environmental and demographic fluctuations is called “fluctuation-driven eradication”, and also holds for realistically large systems (e.g., N > 106) [26] (Discussion and S1 Appendix Sec. 1.2.3). The ensuing resistance eradication, occurring under intermediate switching, where and , is in stark contrast with the persistence of resistance characterising the regimes of slow and fast switching ( and ); see Fig C in S1 Appendix and Secs. 1.2.3 and 2.

In this study, we investigate how the joint effects of migration, demographic fluctuations, and environmental variability influence the eco-evolutionary dynamics of the spatially structured metapopulation. We particularly focus on finding the conditions for the efficient clearance of drug resistance from the microbial community via spatial fluctuation-driven eradication of R cells.

Results

In an isolated deme resistance is likely to persist for extended periods when the environment varies either quickly () or slowly () compared to the intra-deme dynamics (see S1 Appendix Sec. 1.2.3), whereas strong enough bottlenecks can cause R eradication in the regime of intermediate switching [26,28] (, , see “Background” in Model & Methods). However, determining the conditions for survival, fixation, or coexistence of strains in a metapopulation remains a challenging open problem. Since all demes of the metapopulation have the same time-switching carrying capacity K(t) given by Eq. (3), they have the same size distribution (S1 Appendix Sec. 1.2.3). The long-term coexistence of R and S across the grid is likely in the regimes of slow and fast environmental switching with non-zero migration, while R and S can take over under zero or slow migration (S1 Appendix Sec. 2 and Fig C in S1 Appendix). This behaviour is similar to what happens in static environments (where K is constant), as discussed in S1 Appendix Sec. 2; see Fig B in S1 Appendix. By contrast, in the regime of intermediate switching, with and , all demes are subject to environmental bottlenecks [79] that can cause significant fluctuations in the number of R and S cells, and can eradicate R (see Figs F and G in S1 Appendix).

In this work, we focus on the intermediate switching regime where the size of each deme tracks its carrying capacity , and strong bottlenecks can lead to fluctuation-driven eradication of resistance from the metapopulation (Fig 1); see below. We thus investigate under which conditions the coupled effect of environmental and demographic fluctuations leads to the clearance of resistance from the two-dimensional metapopulation. This is an important and intriguing question since microbial communities generally evolve in spatial settings, and locally R-free demes can be recolonized by cells migrating from neighbouring sites (Fig 1B). Migration is generally expected to favour diversity within demes by promoting the local coexistence of R and S, thus increasing alpha-diversity, while at the same time it reduces beta-diversity across the metapopulation, since all demes approach a similar composition of coexisting R and S cells [39,96]; see Fig B in S1 Appendix. However, we show that fluctuation-driven eradication also occurs across the two-dimensional metapopulation and reveals a biologically relevant regime in which migration even enhances resistance clearance. Since , referred to as the bottleneck strength, governs the fluctuation-driven eradication of R in an isolated deme [26] (Model & Methods), while m controls the homogenizing effect of dispersal [39,96], their influences on the clearance of resistance are antagonistic. It is therefore enlightening to investigate the interplay between and m in determining the eradication of resistance.

Here, the metapopulation eco-evolutionary dynamics is studied by performing a large number of long simulation runs (realizations) for each dataset, and its statistical properties are obtained by sampling all realizations; see S1 Appendix Sec. 3. In our simulations, the time is measured in “microbial generations” (or Monte Carlo steps), with one generation being the (mean) time for attempting birth-death events (see S1 Appendix Sec. 3 for details). We choose a carrying capacity that is never too low, so that demes are always occupied by R and/or S individuals and the extinction of all cells in a deme is unobservable (S1 Appendix Secs. 1.1 & 3.1).

Critical migration rate and bottleneck strength to eradicate antimicrobial resistance

To study under which circumstances environmental variability coupled to demographic fluctuations leads to the eradication of resistance in the two-dimensional metapopulation, we focus on the regime of intermediate environmental switching, with and , and assume . In this biologically relevant regime [94,119] (see Population size and microbial parameter values in the Discussion subsection “Robustness of results across parameters and scenarios”), each deme experiences a sequence of bottlenecks of strength , occurring at a rate , accompanied by “transient dips” in the number of cells, and the demes generally consist of a majority of S cells when it is in the mild state (K = K+) [26,28] (“Background” in Model & Methods; see also S1 Appendix Sec. 1.2.3 and Fig H in S1 Appendix Sec. 5.4). In addition, we consider a slow/moderate migration rate, with (see proper definitions just after Eq. (6)). The demes of the metapopulations are thus neither entirely isolated (m = 0), nor fully connected (). We know that, in this intermediate environmental switching regime, fluctuation-driven eradication of R is likely to occur in isolated demes [26], i.e., in metapopulations with (see S1 Appendix Secs. 1.2.3 and 5.1), while the probability of long-lived coexistence of R and S is expected to increase with m (the latter as in Figs B and C in S1 Appendix Sec. 2, for constant and very slow/fast switching environments, respectively). In this context, when , fluctuations can clear resistance in some demes, but these R-free demes can be recolonised following migration events from neighbouring sites still containing R cells; see Figs 1B, 2 and 3, and Figs D and E in S1 Appendix Sec. 5.1. The effect of fluctuations caused by environmental bottlenecks is thus countered by migration, and it is not obvious whether eradication of resistance can arise in the spatial metapopulation.

thumbnail
Fig 2. The eradication of R cells depends on the bottleneck strength and migration rate.

The shared parameters in all panels are , , L = 20, a = 0.25, s = 0.1, Nth = 40, and (Model & Methods) with migration according to Eq. (2a). Other parameters are as listed in Table 1. Panel A: Heatmap of the probability P(NR(t)= 0) of total extinction of R (resistant) cells as a function of bottleneck strength, , and migration rate m at time t = 500. Each value pair represents an ensemble average of independent simulations, where we show the fraction of realisations resulting in complete extinction of R (resistant) microbes after 500 microbial generations (standard error of the mean in P(NR(t = 500)=0) below 4%; see S1 Appendix Sec. 3.3.2). The colour bar ranges from light to dark red, where darkest red indicates complete R extinction in all 200 simulations at time t = 500, P(NR(t = 500)=0)=1. The green line is the theoretical prediction of Eq. (6) and the white dashed vertical line indicates an axis break separating m = 0 and (Model & Methods). The black and white annotated letters point to the specific values used in the outer panels. Panels B-H: Typical example trajectories of the fraction of demes without R cells, up to t = 500 microbial generations (gen.), defined by Eq. (7) and corresponding to the fixation of S in the metapopulation. (The fraction of demes without S cells, , is vanishingly small and unnoticeable.) Here, is shown as a function of time (microbial generations) for the value pairs indicated in Panel A (see S1 Appendix Sec. 3).

https://doi.org/10.1371/journal.pcbi.1013997.g002

thumbnail
Fig 3. A closer look to individual demes: Migration and intermediate environmental switches shape local eradication of R cells.

Example eco-evolutionary dynamics of the metapopulation in a single simulation realisation. Parameters are K+=2000, , , and m = 0.001, with density-dependent migration according to Eq. (2a); other parameters are as in Table 1. Panels A-F: Snapshots of the metapopulation at six microbial generation times . Red pixels indicate R-free demes (containing only S cells) and pink pixels are demes where R and S cells coexist. The two demes, and , whose time composition is tracked in Panels G and H are indicated by a black border. Panel A shows the metapopulation a few generations after an environmental bottleneck. From panels A to B no bottleneck occurs, and many S-only demes are recolonised by R cells (many red pixels become pink). Between B and C, the metapopulation experiences a bottleneck causing a burst of local R extinctions (with burst of randomly located red pixels, see also the spike of in Panel I). Panel D: Pink clusters spread across the grid due to the migration of R cells causing many recolonisation events ( in Panel I decreases for ). Panels E-F: After a sequence of bottlenecks starting at , the number of S-only demes increases overwhelmingly across the grid ( in Panel I), and resistance persists only in a few demes where R and S coexist. See S3 Movie and S1 Appendix Sec. 4 for a video of the full spatial metapopulation dynamics for this example realisation and its detailed description. Panels G-H: Temporal evolution of the fraction of resistant cells and , up to t = 500 microbial generations (gen.), in the example demes and indicated as highlighted pixels in Panels A-F. Green bands indicate periods in the harsh environment (where ); harsh periods shorter than 1 microbial generation are not shown (S1 Appendix Sec. 3.3.1). Each transition from white background to a green band indicates an environmental bottleneck. The deme of panel G first exhibits R/S coexistence, followed by fluctuation-driven R eradication at due to environmental bottlenecks. In Panel H, similar dynamical development is followed by the restoration of resistance through recolonisation of the deme by R cells, as indicated by the blue spikes at long times (, Discussion). Panel I: Temporal evolution of the fraction of demes without R cells (red pixels within Panels A-F, see Eq. (7)). From left to right, the dashed vertical lines indicate the corresponding snapshot times in Panels A-F. Green background areas as in Panels G-H.

https://doi.org/10.1371/journal.pcbi.1013997.g003

We ask for what migration rates can environmental and demographic fluctuations clear resistance. The first central question that we address is therefore whether there is a critical migration rate mc above which the fluctuation-driven eradication of resistance is unlikely, and below which it is either possible or likely. Since the amplitude of the fluctuations generated by the bottlenecks increases with their strength, we expect mc to be an increasing function of .

We have computed the probability P(NR(t)=0) that there are no resistant cells across the entire metapopulation after a time t (by sampling realizations, see S1 Appendix Sec. 3). In Fig 2A we report P(NR(t)=0) as a function of bottleneck strength and migration rate m when , finding when m is below a certain value. Similar results are found in Fig 4B, 4C, and 4D for other environmental parameters at different times t. This indicates the existence of a trade-off between the rate of migration and bottleneck strength, see Figs 2A and 4A, 4B, 4C, and 4D: For a given bottleneck strength , when the migration rate is below the critical value mc, shown as red/dark phases here, the fluctuations caused by bottlenecks can clear resistance across the whole metapopulation in a finite time (that scales with 1/s, see below). A few bottlenecks thus suffice to eradicate R, as shown in, e.g., Fig 2C, and Fig F (panels C, D, and F) in S1 Appendix, where each red spike corresponds to a bottleneck (see “Breaking it down” subsection below). An approximate expression for mc is obtained by matching the total number of R migration events across the metapopulation, during the time between two successive bottlenecks, with the number of new R-free demes due to a bottleneck, yielding (see the derivation at the end of this subsection)

thumbnail
Fig 4. Near-optimal conditions for resistance clearance: Slow migration can speed up and enhance the eradication of R cells.

Temporal evolution of the heatmap showing the probability P(NR(t)= 0) of R extinction as a function of bottleneck strength, , and migration rate m (implemented according to Eq. (2a)) at t = 200 (Panel A), t = 300 (Panel B), t = 400 (Panel C), and t = 500 (Panel D) with environmental switching rate and bias ; other parameters are as in Table 1. As in Fig 2A, each value pair is an ensemble average over 200 independent metapopulation simulations and the P(NR(t)= 0) colour bar ranges from light to dark red indicating the fraction of simulations that have eradicated R cells at each snapshot in time (standard error of the mean in P(NR(t)=0) is below 4%; see S1 Appendix Sec. 3.3.2). The green and dashed white lines represent the theoretical prediction of Eq. (6) and an eye-guiding axis break, respectively (as in Fig 2A). The golden lines in Panels D-E show , with in the (upper) region between the golden and green lines, according to Eq. (9). The grey horizontal lines in Panels A-E indicate the example bottleneck strength used in Panel E. Panel E: Probability of R extinction P(NR(t)= 0) as a function of migration rate m at bottleneck strength for t = 100, 200, 300, 400, 500 microbial generations (bottom to top). Solid lines (full symbols at m = 0) show results averaged over 200 realisations; shaded areas (error bars at m = 0) indicate binomial confidence interval computed via the Wald interval (see S1 Appendix Sec. 3.3.2). Panel F: 90th and 95th percentile ( and respectively) of R eradication times as function of the migration rate with a bottleneck strength (see S1 Appendix Sec. 3.3.3). Panel F shows a single minimum at corresponding to .

https://doi.org/10.1371/journal.pcbi.1013997.g004

(6)

whose graph is shown in the green curve of Fig 2A where it approximately captures the border between the red/white phases and how mc increases with (see also Fig 4A, 4B, 4C, and 4D where mc ranges from to ). Here, the regime of slow migration is defined by (with moderate migration when ).

Further light into the phenomenon of fluctuation-driven R eradication is shed by computing the fraction of demes that consist only of S/R microbes at time t:

(7)

where is the indicator function defined as if and otherwise. Since each deme is never empty, also corresponds to the fraction of demes without any R/S cells, i.e., thus gives the fraction of R-free demes across the metapopulation at time t. In Figs 2 and 3, and those of S1 Appendix, correspond to the fraction of R/S-free demes in a single realization of the metapopulation. In the results of Fig 2B, 2C, 2D, 2E, 2F, 2G, and 2H (and Fig 3I), increases sharply coincidentally with each bottleneck and then transiently decreases due to the recolonisation of R-free demes via migration, whereas at all times. When bottlenecks are strong and ( and m in the red/dark phase of Fig 2A), recolonisation cannot counter bottlenecks and eventually with the eradication of resistance from all demes; see Figs 2C, 2D, 2E and 3I, as well as Figs E (panels E-H), F (panels C, D, and F), and G (panels D and F) in S1 Appendix, while (R-only demes are very unlikely, but see the blue lines in Figs E (panel D), F (panel E), and G (panels C and E) in S1 Appendix when ). When m > mc (without scaling as the system size, see below), remains finite, while generally regardless of m. This indicates the persistence of R in the metapopulation, which then consists of demes where R and S coexist, and other demes that are resistance free (S-free demes are very unlikely, , when m > mc; see Fig E (panels I-L) in S1 Appendix).

The fluctuation-driven eradication of R across the two-dimensional metapopulation hence requires intermediate environmental switching, strong enough bottlenecks, and slow migration, which can be summarised by the necessary conditions

(8)

where the first condition indicates that the demes are not fully connected. In the limit of fast migration, here defined as (see below), the metapopulation can be regarded as L2 fully connected demes (island model [121,122]), all subject to the same fluctuating carrying capacity given by Eq. (3). The fraction of R cells just after an environmental bottleneck still fluctuates about in each deme (same x as in the mild environment, see Eq (4)). All L2 demes experience the same carrying capacity during the bottleneck. The approximate total number of R cells across the metapopulation right after a bottleneck is thus . When , resistance can typically be eradicated only if all R cells can be eliminated simultaneously during a single bottleneck. This is because ensures quick and efficient deme mixing between each bottleneck: If R is not eradicated from each deme after a single strong bottleneck, fast migration restores resistance in all demes before the next bottleneck (as opposed to the case of slow migration, where R-free demes can gradually accumulate after several consecutive bottlenecks). The eradication of R can occur under fast migration when following a single bottleneck, i.e., for . Hence, when and , fluctuation-driven eradication of resistance occurs for very strong bottlenecks, , regardless of the actual value of the migration rate.

Derivation of the critical migration rate mc.

To derive Eq. (6), we remember that the fluctuation-driven eradication of R in a deme arises when K(t) switches between K+ and at rate (with ), generating strong enough population bottlenecks (); see the end of the “Background” subsection in Model & Methods. In this regime, the number of microbes in each deme (N) continuously tracks the same carrying capacity K(t) on a fast timescale , while each deme’s composition (x) changes on a slower timescale . After each bottleneck, the local fraction of R cells initially fluctuates about , and their expected number in the harsh environment, , is sufficiently low for demographic fluctuations to effect the eradication of resistance [26] (“Background” in Model & Methods).

We assume that, in each deme, approximately cells are randomly drawn to survive a bottleneck. Since there is a large number of cells before the onset of a bottleneck (), each R cell has the same independent probability to survive the bottleneck (random draws with replacement), from a deme consisting of an approximate fraction of R cells [26] (Model & Methods). Therefore, the approximate number of R cells surviving one bottleneck can be drawn from a Poisson distribution of mean , and we thus estimate the probability that a bottleneck eradicates resistance as . In this regime, the fluctuation-driven clearance of AMR is attempted at each bottleneck, see Fig 1A. AMR fluctuation-driven eradication thus occurs at the average bottleneck frequency . Consequently, the rate at which each deme becomes R-free is approximately .

The demes of the metapopulation are connected by cell migration, which generally homogenizes the local population make-up [123] and here tends to favour the coexistence of R and S cells [39,96] (see S1 Appendix Sec. 2). Noting that the fraction of demes where resistance survives a single bottleneck is approximately , and that the number of surviving R cells in a deme tends to Nth (see Eq. (4), Model & Methods, [26]), the estimated rate of migration of R cells from each of these demes is . Matching this R cell migration rate with the rate at which a deme becomes R-free corresponds to migration and fluctuation-driven eradication balancing each other, and hence yields the expression of Eq. (6) for the critical migration rate mc.

If , unless (see after conditions (8)), migration generally promotes long-time R and S coexistence (see above and Figs C, D (panel D), and E (panels I-L) in S1 Appendix). Moreover, when , the fluctuation-driven eradication of R is essentially the same as in an isolated deme (m = 0), see Fig 4A, 4B, 4C, 4D, and 4E, and below. We note that Eq. (6) and its derivation are independent of the spatial dimension of the metapopulation (see Impact of the spatial dimension and accuracy of the critical migration prediction in the Discussion subsection “Robustness of results across parameters and scenarios” for further details; and S1 Appendix Sec. 5.5 and Fig I in S1 Appendix for the case of a one-dimensional metapopulation). It is also worth noting that the conditions (8) are essentially independent of the spatial dimension of the metapopulation and hence the fluctuation-driven eradication of resistance is a phenomenon expected to hold on metapopulation lattices of any spatial dimension, see Impact of the spatial dimension and accuracy of the critical migration prediction in Discussion and S1 Appendix Sec. 5.5.

Breaking it down: bottlenecks and fluctuations vs. spatial mixing

To further understand the joint influence of bottlenecks and migration on R eradication, we analyse typical single realisations of the metapopulation spatio-temporal dynamics when it is subject to intermediate switching rate and slow migration (m < mc), and experiences bottlenecks of moderate strength; see Fig 3 where the parameters , m = 0.001, and (see also S3 Movie and S1 Appendix Sec. 4) satisfy the R fluctuation-driven eradication conditions of (8).

This resistance clearance mechanism, driven by bottlenecks and fluctuations, occurs randomly across the grid (scattered red sites in Fig 3A). The microbial composition of each deme fluctuates due to the homogeneous environmental variability (K switches simultaneously in time across all demes of the grid) and random birth-death events. In the regime defined by the conditions (8), strong bottlenecks cause demographic fluctuations that, after enough time, lead to R eradication in some demes (e.g., after t = 70 in Fig 3A and 3G). However, resistant cells can randomly migrate from neighbouring demes, recolonising R-free demes and favouring the spread of microbial coexistence across the metapopulation (pink clusters in Fig 3A and 3B). The fraction of R cells in a deme recolonised by resistance is characterised by spikes after a period of extinction, corresponding to R recolonisation events (e.g., at in Fig 3H, see also pixel in Fig 3A, 3B, 3C, 3D, and 3E). In summary, the occurrence of bottlenecks increases the fraction of R-free demes across the grid (one spike in Fig 3I at each bottleneck), whereas R recolonisation gradually reduces , leading to a sequence of spikes and decreases of (Fig 3I). Spikes are higher the stronger the bottlenecks (larger ), while the decrease of steepens for faster migration (higher values of m). The typical stages of dynamics are thus: (i) an environmental bottleneck eradicates R in some demes causing to spike, (ii) some of these demes are then recolonised by R cells through migration, and decreases. This is then followed by another bottleneck, that restarts the cycle of spikes and decreases of . The succession of steps (i) and (ii) as the environment switches back and forth, eventually leads to either R eradication (when m < mc) or to the persistence of resistance (long-term balance of spikes and decreases of ). In the example of Fig 3 for a single realization of the metapopulation, the number of R-free demes steadily increases with the number of bottlenecks and, migration not being fast enough to restore resistance across the grid, R cells are eventually eradicated from the entire metapopulation (increasingly more red R-free demes in Fig 3E and 3F than in Fig 3A, 3B, 3C, and 3D; when in Fig 3I; see also S3 Movie and S1 Appendix Sec. 4). This is consistent with the metapopulation realisation of Fig 3 satisfying the conditions (8). See S1 Appendix Sec. 5.4 and Fig H in S1 Appendix for the dynamics of the absolute number of S and R cells in this example realisation of Fig 3.

When sensitive and resistant cells locally coexist on the grid, the demes containing R and S microbes (pink pixels in Fig 3A, 3B, 3C, 3D, 3E, and 3F) consist approximately of and cells of type R and S, respectively (see Fig H in S1 Appendix Sec. 5.4). In the examples considered here, prior to a bottleneck, coexisting demes in the mild environment (where ) are thus made up of an overwhelming majority of S cells, see Fig H in S1 Appendix and S2-S4 Movies, which is consistent with an R “containment strategy” [124].

Slow migration can speed up and enhance R eradication: Near-optimal conditions for resistance clearance

We have disentangled the trade-off between the population bottleneck strength and migration rate m. To further clarify the interplay between fluctuations and migration in the metapopulation, we investigate how the probability P(NR(t)=0) that there are no resistant cells across the entire grid after a time t depends on m and over time (Fig 4), and how it changes for different values of the switching rate (Fig J in S1 Appendix Sec. 5.6). Under the conditions of (8), the probability P(NR(t)=0) of overall resistance eradication increases in time (red/dark phases in Fig 4A, 4B, 4C, and 4D): the R eradication mechanism driven by strong bottlenecks overcomes microbial mixing, and the red/dark phase expands in time until reaching its border where (see Eqs. (6) and (8)).

Remarkably, in Fig 4 we find that after some time (), R cells are most likely to be eradicated from the metapopulation under slow but non-zero migration (in Fig 4B, 4C, and 4D red regions are darker for than ; see S1-S2 Movies and S1 Appendix Secs. 4, and Figs D and E in S1 Appendix Sec. 5.1). In Fig 4E, the probability of R eradication P(NR(t)=0) for increases steadily with m before reaching a plateau near 1 for ( in Fig 4E), and then sharply decreases as m exceeds mc. Since , most migration events in the intermediate regime defined by the conditions of (8) occur when demes are in the mild environmental state, where the number of microbes in each deme is typically large: Thus, and most individuals are of type S, with (Model & Methods and Fig 1A, and Fig H in S1 Appendix Sec. 5.4). We hence estimate that the rate of migration per deme in the switching regime (see conditions (8)) is roughly mK+, and consists mostly of sensitive individuals moving into a neighbouring deme. In this context, the impact of migration is particularly significant for the eradication of R cells when the rate of cell migration per deme (mostly of S during the mild environmental state), approximately mK+, is comparable to the rate at which bottlenecks arise (Model & Methods; see also S1 Appendix Sec. 1.2.1). In fact, when , the R-dominated demes (that have by chance been taken over by R) can be efficiently recolonised by S cells, and can then be eventually cleared from resistance by the fluctuation-driven mechanism caused by strong bottlenecks, as illustrated in S1 Appendix Sec. 5.1 and Figs D (panel C) and E (panels E-H) in S1 Appendix. Matching the rates at which bottlenecks and the S-recolonisation of R-dominated demes occur, yields the condition for which migration can efficiently help promote the fluctuation-driven clearance of resistance; see yellow lines in Fig 4C and 4D. R-dominated demes are not effectively recolonised when the migration rate is lower than , and therefore the probability of R eradication when is the same as for m = 0 (see Population size and microbial parameter values in the Discussion subsection “Robustness of results across parameters and scenarios”; see also S1 Appendix Sec. 5.1).

The probability P(NR(t)=0) of R eradication for is an increasing function of t at fixed migration rate (Fig 4E). In fact, as this environmental regime is characterised by a sequence of strong bottlenecks, each of which can be seen as an attempt to eradicate R (“Background” in Model & Methods), the clearance of resistance for any is certain in the long run, i.e., . However, maximising the probability clearance of resistance in the shortest possible time is of great biological and clinical significance, e.g., to devise efficient antibacterial treatments [32,41,125]. This means that it is important to determine when the eradication of resistance is both likely and rapid. The second central question that we ask is therefore: What are the conditions ensuring a quasi-certain clearance of resistance in the shortest possible time t*?

To address this important problem, we have determined the migration rate , satisfying the conditions (8), for which the time for the eradication of R, here denoted by , is minimal. As detailed below, in Fig 4F we determine and , corresponding to the near-optimal conditions for the clearance of resistance, for the example of Fig 4 when the bottlenecks strength is (largest value considered in Fig 4). To this end we have computed as a function of m in the range (all other parameters being kept fixed). is thus the shortest time after which there is at least a 90% chance that resistance has been cleared from the metapopulation. Similarly, we have also determined giving the minimal time for which the R clearance probability exceeds 0.95. Therefore, and give respectively the 90% and 95% percentile of R eradication times (see S1 Appendix Sec. 3.2). The results of Fig 4F show that has a single minimum value at essentially the same migration parameter for both 90% and 95% percentiles. Since this is generally the case for strong enough bottlenecks, to shorten the notation and unless specified otherwise, we henceforth refer to simply as . In the example of Fig 4F, we find , and increases sharply when m > mc while (not shown in Fig 4F, we have verified that ). Hence, the fluctuation-driven eradication of R is most efficient for , when the probability of resistance clearance after microbial generations is close to 1 (see vs. m in Fig 4F). Since the eradication of R is here driven by the strong bottlenecks at an average frequency (see “Background” in Model & Methods), scales as 1/s, i.e., . We have verified that these findings are robust since similar results are obtained for other percentiles and values of .

Together with the necessary requirements of (8), we thus obtain the following near-optimal conditions for the quasi-certain fluctuation-driven eradication of resistance from the metapopulation (for K+/K- fixed):

(9)

with after . Under these conditions, the probability of eradicating resistant cells from the metapopulation after is near optimal: For a migration rate (with the other parameters fixed and satisfying the conditions (9)), the probability of R eradication reaches a set value close to one (Fig 4F), with the fraction of R-free demes across the metapopulation thus approaching 1 in a time (see Fig E (panel H) in S1 Appendix). Remarkably, this means that, under the near-optimal conditions of (9), slow migration enhances the eradication of resistance compared to the non-spatial case (m = 0, Model & Methods). (Moreover, when , the near-optimal conditions of (9) extend to all m, see Derivation of the critical migration rate mc above). The condition is shown as the region within the golden and green lines in Fig 4D and 4E, and corresponds to the near-optimal values found in Fig 4F. Interestingly, this range of migration rates are of the same order as those studied in Refs. [29,35], and are consistent with typical microfluidic experiments [107,126] (see Translation to the laboratory in the Discussion subsection “Future directions”). It is worth noting that the conditions of (8) and (9) are essentially independent of the spatial dimension of the metapopulation and hence the fluctuation-driven eradication of resistance is a phenomenon expected to hold on lattices of any dimension; see Impact of the spatial dimension in the Discussion subsection “Robustness of results across parameters and scenarios”, S1 Appendix Sec. 5.5, and Fig I in S1 Appendix.

We have also studied the probability of R eradication P(NR(t)=0) as a function of and m for a range of slow, intermediate, and fast switching rates and different values of switching bias , confirming that R eradication occurs chiefly for (Fig J in S1 Appendix Sec. 5.6).

These results demonstrate that not only the fluctuation-driven eradication of the resistant strain R arise in the two-dimensional metapopulation under the conditions (8), but that slow migration () actually speeds up the clearance of resistance and it can even enhance the probability of R elimination (Discussion and S2 Movie and S1 Appendix Sec. 4), with the best conditions for the fluctuation-driven eradication of R given by the relations (9), and corresponding to the clearance of resistance from the grid being almost certain in a near-optimal time .

An intuitive explanation for why slow migration can promote the fluctuation-driven eradication of resistance is illustrated by Figs D and E in S1 Appendix Sec. 5.1: in the absence of migration, when R cells randomly take over a deme during periods in the harsh environment, with the low carrying capacity (blue in Fig E (panels A-D) in S1 Appendix; see also S1 Movie and S1 Appendix Sec. 4), resistance cannot be eradicated from that deme in isolation. However, slow migration allows for sensitive cells to recolonise that deme, from which it is then possible to clear resistance by means of the above fluctuation-driven eradication mechanism (Figs D (panel C) and E (panels E-H) in S1 Appendix).

Discussion

Microbial communities generally live in time-fluctuating environments endowed with spatial structure. Migration in space, environmental variability, and fluctuations thus affect the eco-evolutionary dynamics of bacterial populations [127]. They are particularly relevant to determine the likelihood that cells resistant to antimicrobial drugs survive AMR treatments or thrive in drug-polluted environments [10,4043]. Here, inspired by chemostat and microfluidic setups [25,88,93,94,107,126], we have shed further light on cooperative antimicrobial resistance embedded on surfaces in natural environments by investigating a metapopulation model of sensitive (S) and cooperative resistant (R) cells on a (2D) grid of demes (a one-dimensional metapopulation is considered in S1 Appendix Sec. 5.5, see Fig I in S1 Appendix), connected through local cell migration, and subject to a constant drug input rate as well as to time-fluctuating conditions (Model & Methods and “Robustness of results across parameters and scenarios”, below).

In Ref. [26], it was shown that strong population bottlenecks, arising when the environment and deme composition vary on the same timescale (), can cause fluctuations leading to R eradication in isolated demes (no migration), see “Background” in Model & Methods and Fig 1A. This fluctuation-driven R eradication mechanism occurs in a biologically relevant regime in well-mixed populations [26,94,119]. However, it is not obvious whether, and in what form, this phenomenon still appears in the presence of spatial migration (see Population size and microbial parameter values, below). In fact, when R and S cells migrate at a fast rate, their long-lived coexistence is enhanced [39,96], thereby promoting the persistence of resistance (S1 Appendix Sec. 2, and Figs B (panels B and C), C, D (panel D), and E (panels I–L) in S1 Appendix).

To address this, we have first determined the critical migration rate mc, above which fluctuation-driven eradication of resistance across the metapopulation becomes unlikely (Eq. (6)). This yields the conditions (8) that ensure eradication of R from the metapopulation. Biologically, this occurs when environmental bottlenecks are sufficiently strong (i.e., is large enough) to counteract the homogenizing effect of migration. Under these conditions, resistance is cleared from local populations at a higher rate than they are recolonised by R cells (see Results and Figs 1B, 2, 3, and 4).

We have also found the near-optimal environmental conditions (9) ensuring a quasi-certain clearance of resistance in the shortest possible time. This has allowed us to show that fluctuation-driven eradication of R is fastest under slow-but-nonzero migration, when it is most likely to occur on the relaxation timescale of microbial dynamics (; see Fig 4E and “Slow migration” in Results). Biologically, slow migration allows S cells to recolonise R-only demes, and eventually to clear resistance from these sites (Figs D (panel C) and E (panels E-H) in S1 Appendix Sec. 5.1, S1-S2 Movies). We note that this slow migration regime is relevant in laboratory chemostat and microfluidic experiments [107,126], as well as in theoretical studies [29,35] (see Population size and microbial parameter values below). Interestingly, previous works reported that a similar regime of cell migration is optimal for microbial survival in growth-dilution cycles [14]. As explained below, we find that our findings in fluctuating environments are consistent with those earlier results (see “Concordance of results with existing literature”).

In the next subsections we review the assumptions and limitations of our study, discuss how it advances the field in light of the existing literature, address its biological relevance for laboratory experiments, and we also outline possible model extensions.

Robustness of results across parameters and scenarios

Population size and microbial parameter values.

We have carried out extensive stochastic simulations of the ensuing metapopulation dynamics, and repeatedly tracked the simultaneous temporal evolution of up to a total of microbes distributed across L2 = 400 spatial demes through hundreds of realisations and thousands of different combinations of environmental parameters and migration rates (Table 1 and S1 Appendix Sec. 3). This is a rather large metapopulation model, even though many experiments are carried out with even bigger microbial populations [41,128,129]. In addition, some in-vivo host-associated metapopulations are naturally fragmented into a limited number of small demes, e.g., and in mouse lymph nodes [22,79,130,131] and and in mouse intestine crypts [132], resulting in system sizes comparable to those considered here. Our results have been obtained by neglecting the occurrence of mutations, which is acceptable since R fluctuation-driven eradication typically occurs on a faster timescale (see Introduction and conditions (9)) compared to mutations [22,133,134]. We also note that the resistance mutation rate has been shown to decrease with the population density [133,134], suggesting that our results can hold in large bacterial populations. It is worth stressing that, according to the conditions of (8), fluctuation-driven eradication of R is expected whenever (and ), regardless of the population size and spatial dimension of the metapopulation (see Impact of the spatial dimension below, S1 Appendix Sec. 5.5, and Fig I in S1 Appendix). Remarkably, this condition is satisfied by values characterising realistic microbial communities, e.g., [26] (S1 Appendix Sec. 1.2.3). Furthermore, we note that the indicative values used in our examples for the extra metabolic cost of resistance (s = 0.1) and the biostatic impact of the antimicrobial drug (a = 0.25), are biologically plausible parameter values, with similar figures used in existing studies [26,135,136]. The values of s and a would typically decrease on a long evolutionary timescale due to compensatory mutations (typically after more than microbial generations in a low mutation regime [22]); however, they can be considered to remain constant on the shorter timescale considered here (a few hundred microbial generations). Additionally, results are robust against changes in values of s and a as long as [26] (“Background” in Model & Methods). Here we find mathematically convenient to represent the action of the drug as limiting the growth of S cells (bacteriostatic scenario) despite -lactams being typically bactericidal drugs (increasing cell death). This choice is acceptable in the regime of low drug concentration considered here, where bactericidal and bacteriostatic antibiotics have a similar action [137,138]. We note that higher drug concentration would increase the cooperation threshold Nth (more resistant cells needed to protect S individuals), thus increasing the chances that resistant cells spread and fix in many demes (see S1 Appendix Sec. 2).

thumbnail
Table 1. Summary of simulation parameters for Figs 2-4 and S1-S5 Movies.

Parameters kept fixed are listed by a single value, other parameters are listed as ranges. The average number of sensitive cells S per deme at t = 0 () equals the metapopulation’s carrying capacity at t = 0 minus the constant threshold value for cooperation, , which depends on whether the system begins in a harsh or mild environment, (S1 Appendix Sec. 3.1). See Fig J (and Fig C) in S1 Appendix for the extended range in and , and S1 Appendix Sec. 5.5 for the discussion of results obtained on a periodic one-dimensional lattice (cycle) of length L = 100.

https://doi.org/10.1371/journal.pcbi.1013997.t001

We have explored a substantially broad range of values of migration rate m, spanning four orders of magnitude (), in addition to the benchmark case of no migration (m = 0) corresponding to a metapopulation of isolated demes. (Here, is effectively equivalent to m = 0; see Figs 2A, 4A, 4B, 4C, 4D, and 4E). Slow to moderate migration, , corresponds, on average, to the local migration of 0.001% to 10% of cells during each microbial generation, ranging from effective deme isolation to a significant mixing via dispersal. This wide range of migration rates is consistent with diverse experimental settings (see Translation to the laboratory in “Future directions”, below), from standard laboratory chemostats to microfluidic devices, e.g., [107,126], as well as with theoretical studies, e.g., [14,29,35]. Moreover, in line with general principles [39,96], we have shown that for a migration rate beyond the critical value mc (fast migration) dispersal strengthens strain coexistence (Figs 2 and 4, and Figs B (panels B and C), C, D (panel D), and E (panels I-L) in S1 Appendix). In our examples, the near-optimal migration rate for the fluctuation-driven eradication of R is in the range (slow migration; see below), corresponding on average to one migrant per cells every generation. Overall, this study spans a broad range of migration rates, from isolated sites to fully connected demes, and identifies the parameter regimes under which fluctuation-driven eradication of resistance occurs (see “Critical migration rate” in Results).

Environmental assumptions.

In biology and ecology, the carrying capacity provides a coarse-grained description of environmental limitations on population growth, arising from diverse factors such as nutrient availability, toxin accumulation, or other environmental conditions [139]. Since these factors fluctuate over time and space, it is natural to assume that the carrying capacity itself varies with the environment [44,140,141]. Here, we have thus modelled environmental variability by letting the carrying capacity K(t) change suddenly and homogeneously across the metapopulation by taking very different values when the environmental conditions are mild or harsh. For the sake of simplicity and concreteness, we have assumed that each deme is subject to the randomly switching binary carrying capacity, K(t), given by Eq. (3) (see “Environmental variability” in Model & Methods). This binary choice is a convenient way to represent environmental variability in random cycles of feast and famine [2628,5155,78,79] that we can interpret here as time variations of a spatially homogeneous influx of nutrients [2628,51,55] (or sequential changes in the antibiotic influx [55,95]). Notably, it allows us to easily model the drastic population bottlenecks often experienced by microbial communities, whose role is central to this study and important in shaping microbial dynamics [41,50,55,8092]. This theoretical simplification is relatively close to laboratory-controlled conditions used in chemostat and microfluidic experiments ([25,93,94]). While other choices are possible, such as continuously varying K(t), these would introduce significant theoretical and computational challenges ([54]) and would be less suitable to capture the sharp bottlenecks that are key for our analysis. (See below for the case of periodic switching of K(t)).

Forms of migration.

There are different ways of modelling cells’ dispersal and migration in microbial populations. Cellular movement is often directed towards areas that are rich in resources [113], but dispersal is commonly assumed to happen with a constant per capita migration rate (see, e.g., Refs. [18,20,79]). Inspired by directed cell motion, we have first considered a density-dependent form of dispersal, see Eq. (2a), positing that cells from demes whose occupancy is close to the carrying capacity (, lack of resources) have a higher rate of migration than residents from a lowly populated sites (N < K, abundance of resources). We have also considered the simpler form of dispersal where all cells can migrate onto a neighbouring deme with a constant per-capita rate m, see (2b). For both types of migration, we have obtained similar results regarding the influence of m and on the fluctuation-driven eradication of resistance (S1 Appendix Secs. 5.2-5.3, Figs F and G in S1 Appendix, and S4-S5 Movies). These additional data demonstrate the robustness of our findings that are qualitatively independent of the specific choice of dispersal considered here. Extending this work to species-specific, directional, or spatially dependent migration rates would be particularly relevant for more complex metapopulation structures [15,20].

Impact of the spatial dimension and accuracy of the critical migration prediction.

In this study, for the sake of concreteness, we have focused on a metapopulation model consisting of a two-dimensional (2D) grid of demes connected by cell migration (Fig 1B; Model & Methods). This provides a natural framework for modelling microbial communities inhabiting surfaces where cellular migration occurs, a setting commonly used in both theoretical and experimental studies [31,7577]. Possible applications include the human skin [6], the digestive tract [7], plant leaf surfaces [4], the seabed [2], and other wet environments [3]. While the results presented in Figs 24 were obtained for the 2D model, we have also analysed a one-dimensional (1D) metapopulation consisting of a ring of demes, or cycle, in Fig I in S1 Appendix Sec. 5.5. These results show that our predictions also hold qualitatively in 1D lattices. The main difference between Fig 4 and Fig I in S1 Appendix is that, in the latter, eradication of R occurs for values of m up to ten times larger than in the former, which is in agreement with Eq. (6). The fact that the theoretical prediction for mc (Eq. (6)) captures the critical migration rate quantitatively in 2D (Figs 2A, 4A, 4B, 4C, 4D, and 4E; Figs F (panel A), G (panel A), and J in S1 Appendix) but only qualitatively in 1D stems from Eq. (6) being a mean-field result, independent of spatial dimension. This expression neglects deme-to-deme spatial correlations, which are particularly relevant in low dimensions (“Critical migration rate” in Results). Consequently, the approximation of mc provided by Eq. (6) improves with increasing spatial dimension, and is therefore expected to work even better in three-dimensional metapopulations. Note that the conditions (8) depend on spatial dimension only through the actual critical migration rate mc, of which the expression Eq. (6) is a mean-field approximation. As a result, fluctuation-driven eradication of resistance is expected to occur on metapopulation lattices (regular graphs) in any spatial dimension, provided that the conditions of (8) are satisfied, and to be most efficient under the near-optimal conditions (9).

The effects of spatial structures such as star graphs, island models, and cycles have been investigated for non-cooperative strain competition under slow migration in static environments [18,22], as well as under time-varying external conditions [79]. Serial dilution experiments have also motivated studies of growth-and-dilution cycles coupled on graphs under fast migration [15,20]. Understanding the impact of complex spatial structures on cooperative antimicrobial resistance, however, remains largely an open problem.

Extra vs intracellular drug inactivation.

Our theoretical model of cooperative antimicrobial resistance captures the inactivation of the drug by R cells, either through extra or intracellular resistance enzymes (see “Metapopulation model” in Model & Methods). In the latter case, more R cells are required to protect S from drug exposure, which could be represented by a higher cooperation threshold Nth than in the extracellular case, consistently with Ref. [142]. Moreover, in this metapopulation setting we assume that the public good (shared drug protection) does not directly spread to neighbouring demes, because the drug degradation process takes place locally on a timescale much shorter than that of microbial replication (e.g., a single -lactamase enzyme can hydrolyse up to antibiotic molecules per second [143]). This assumption is consistent with each deme receiving a parallel inflow of medium (including antibiotics), as in typical microfluidic setups [93,107] and in parallel chemostats (see Translation to the laboratory in “Future directions”, below). However, since the active drug and resistant enzyme concentration in this study is set by the local number of R cells (see “Metapopulation model” in Model & Methods), their dispersal across demes can also be interpreted as an effective form of drug and public good diffusion through the metapopulation. Similarly, the diffusion of available resources across demes is indirectly captured by the density-dependent migration transition rate of (2a), in which resource-consuming individuals tend to disperse away from demes with low resource availability (i.e., when N/K is high; see “Intra- and inter-deme processes” in Model & Methods).

Concordance of results with existing literature

On the one hand, most related studies that investigate the impact of fluctuating environments have focused on two-strain competition dynamics in well-mixed communities, either in the absence of public goods or when cooperative behaviour benefits both strains [5155,144], including the case of time-varying nutrient and toxin concentrations [27]. The eco-evolutionary dynamics of cooperative AMR in well-mixed populations, under binary time-varying environmental conditions, has been studied in Refs. [26,28], that are directly relevant for this work and revealed when fluctuations can lead to the eradication of resistant cells.

On the other hand, the impact of spatial structure—such as star graphs and island models—has been typically studied in static environments under slow migration [18], with non-cooperative AMR considered in Ref. [22] and Ref. [15] experimentally investigating the spread of an antibiotic-resistant mutant through a star graph. Other studies have examined the dynamics of bacterial colonies of resistant and sensitive cells undergoing range expansion in constant environments [142,145,146]. Remarkably, recent metapopulation studies have investigated growth-and-dilution cycles coupled to fast cell migration [20], and competing wild-type and mutant cells subject to feast-and-famine cycles on metapopulation lattices [79]. However, metapopulation studies that include some form of environmental stochasticity have generally not addressed cooperative resistance. Instead, they typically focus on single-strain populations, island models, global migration, or spatially heterogeneous metapopulations [5863].

Moreover, a substantial body of literature has focused on rescue dynamics, chiefly on demographic rescue in structured metapopulations [57], which occurs when a declining population is rescued from local extinction by an influx of individuals migrating from neighbouring demes – for instance, by restoring resistant cells in R-free demes after strong bottlenecks (Fig 3). Interestingly, Ref. [14] reported that intermediate migration rates (similar to our slow/moderate regime) maximise species persistence time in paired batch cultures undergoing growth–migration–dilution cycles. This results from recolonisation events following local extinctions and is aligned with findings from other computational studies of non-cooperative rescue dynamics [6568] and with experimental observations [6973]. Here, we have found that slow-but-nonzero migration rates – of similar magnitude to those in Ref. [14] – enhance the fluctuation-driven eradication of resistance (Fig 4 and Figs D and E in S1 Appendix Sec. 5.1), rather than rescuing resistance. These results are however compatible with those of Ref. [14]. As discussed in “Slow migration” (Results), here slow migration promotes S-cell recolonisation of R-only demes – analogous to the rescue dynamics of Ref. [14] – but subsequently renders these demes prone to fluctuation-driven eradication of resistance when the environment switches from mild to harsh conditions (Figs D and E in S1 Appendix Sec. 5.1). Note that the fluctuation-driven eradication mechanism does not arise in Ref. [14], because the latter involves two mutually cooperative strains resistant to two drugs, and considers growth–dilution cycles rather than the binary environmental switching studied here.

The fluctuation-driven eradication mechanism was unveiled in Ref. [26]. While it relies on biologically realistic assumptions (see above), some of these do not correspond to commonly used laboratory setups, which explains why this phenomenon has not yet been tested experimentally. Specifically, most experiments with environmental bottlenecks involve serial dilution protocols, where each cycle consists of a period of exponential growth followed by an instantaneous dilution step [15,147] (see Translation to the laboratory in “Future directions”, below). Such systems generally do not exhibit fluctuation-driven eradication of R, since this phenomenon typically requires the population to spend finite periods in the harsh environment (see “Background” in Model & Methods and [26]). This also applies to studies of microbial cooperation [56], including those investigating the effects of “dilution shocks” [13] or “disturbance events” [87], as well as cooperative antimicrobial resistance [14]. Moreover, as we discuss below in Translation to the laboratory, there is currently no clear correspondence between chemostat-inspired models and those based on serial dilution experiments. Although recent chemostat experiments have analysed the effects of environmental fluctuations in well-mixed populations switching between different nutrient sources [25], these did not consider cooperative resistance and therefore did not display fluctuation-driven eradication. Similar environmental fluctuations to those considered here have also been implemented in metapopulation microfluidic experiments, e.g., in Ref. [93] for phenotypic switching in a single strain.

Remarkably, the authors of Ref. [20] investigated a spatially structured (non-cooperative) two-strain model consisting of subpopulations connected by migration and subject to bottlenecks arising from growth–dilution cycles. They found that slow migration can amplify selection for the fittest strain, whereas fast migration tends to suppress selection. However, the lack of cooperation and the serial dilution dynamics of the system considered in Ref. [20] (inspired by batch culture setups) cannot give rise to fluctuation-driven eradication. It is worth noting that the authors of Ref. [22] studied resistance rescue in a metapopulation of sensitive cells and non-cooperative drug-resistant mutants, showing that spatial structure can facilitate the survival of resistance. Since the model of Ref. [22] is non-cooperative and subject to a single environmental change (when a biostatic drug is added), it does not exhibit fluctuation-driven resistance eradication.

Cooperative resistance in spatially structured metapopulations has also been studied experimentally, for instance in the range expansion experiments of Refs. [142,145,146], which were performed under constant environmental conditions. As discussed above, these are conditions under which fluctuation-driven resistance eradication cannot occur (S1 Appendix Sec. 2 and Fig B in S1 Appendix). Moreover, as detailed above, Ref. [14] investigated cooperative AMR in a spatial setup where no fluctuation-driven eradication is expected. We also note that Ref. [21] focuses on cooperative resistance rescue under environmental fragmentation into random, independent subpopulations (without migration). While this model cannot exhibit fluctuation-driven eradication (as it involves a single strain), the authors of Ref. [21] show that habitat fragmentation enhances resistance rescue.

To the best of our knowledge, no previous study has examined the optimal conditions for eradicating cooperative drug-resistant cells in a stochastic metapopulation composed of sensitive and resistant strains, where demes are connected by local migration and subject to global feast–famine cycles. Here, we present the first metapopulation study showing that slow-but-nonzero migration helps eradicate cooperative AMR in time-fluctuating environments. This is in stark contrast – yet fully consistent (see above) – with previous results showing that slow migration, in environmental conditions different from those considered here, helps maintain cooperative AMR [14] and non-cooperative strain competition [6573].

Future directions

Translation to the laboratory: chemostats, microfluidic setups, and batch cultures.

Our modelling approach is mainly inspired by chemostat setups, which are commonly used in laboratory-controlled experiments to modulate the influx of nutrients and drugs in microbial communities. In such systems, the concentrations of resources and toxins can be adjusted to impose harsh conditions that generate population bottlenecks, whose eco-evolutionary impacts are the subject of intense study [25,88,93]. Here, we focus on the biologically relevant regime of intermediate environmental time variation [25,94,119], characterised by and , in which the population size within each deme rapidly tracks the carrying capacity, whereas the local composition (number of S and R cells in a deme) relaxes more slowly, on a timescale with typically (s = 0.1 in all figures here; see “Background” in Model & Methods and S1 Appendix Sec. 1.2.1). This regime corresponds to conditions fluctuating between mild (K = K+) and harsh () environmental states with a frequency between once per hour and once per day, that is, approximately every microbial generations (; see Model & Methods). The drug influx is kept constant, and each environmental switch, theoretically treated as instantaneous, occurs rapidly in practice. While we have conveniently represented the switching of the carrying capacity as a random process at rates (Fig 1A), the case where K varies periodically between K+ and , with period , would not change the qualitative results of our study [53] (“Background” in Model & Methods, S1 Appendix Sec. 1.2.3), and could be seen as a potential laboratory implementation of this model.

Since all the above conditions can be practically implemented [25,94], we believe that our theoretical predictions can, in principle, be probed in prospective laboratory-controlled experiments. The environmental switching of K(t) would be realised using a sequence of spatially connected, fixed-volume chemostats, each acting as a deme, see, e.g., Ref. [148]. The rate of cell migration would be set by the rate of volume exchange between neighbouring demes-chemostats ( of the volume every hour). Moreover, with microfluidic devices and single-cell techniques, it is possible to perform spatially structured experiments involving as few as cells per microhabitat patch [9,107,149]. These conditions are consistent with our modelling parameters, notably those corresponding to demes of relatively small size under harsh conditions (e.g., ). The migration rate between microhabitats in such setups largely depends on the experimental design (e.g., number of patch-to-patch channels, channel cross-section).

It is worth noting that most laboratory experiments are performed with batch cultures, which are characterised by cycles of exponential growth followed by instantaneous dilution steps; see, e.g., Refs. [15,147]. These setups are generally easier to operate than chemostat or microfluidic systems. However, in batch cultures, the concentrations of nutrients (microbial consumption) and drugs (enzymatic degradation by R cells) vary continuously over time, making their theoretical modelling particularly challenging [20,150]. Establishing a neat correspondence between theoretical models inspired by chemostats and serial dilution cycles therefore remains largely an open problem. The gradual degradation of the drug can play a critical role in the eco-evolutionary dynamics of cooperative AMR, as shown in Ref. [21], where the metapopulation fragmentation into isolated demes enhances the maintenance of resistance. See also, e.g., the 2D experimental study of Ref. [31], and the theoretical works such as Refs. [29,35], which show how spatial heterogeneity in drug concentration shapes the spatio-temporal dispersal of cells and resistance.

Beyond two strains and cooperative resistance.

We have focused on a two-strain metapopulation model, but our analysis can be readily extended to cases involving multiple sensitive strains and a single resistant type. For this extension, the fraction of R cells in each deme should fluctuate around a low but non-zero value (here, ; see Fig 1). Moreover, spatial fluctuation-driven eradication of resistance requires that the number of cells in each deme sharply decreases following a population bottleneck, while the deme composition evolves on a slower timescale. This leads to a small R subpopulation in each deme that is prone to extinction. In our model, the number of resistant cells per deme after a bottleneck is approximately (Fig 1; see “Background” in Model & Methods).

In contrast, in the case of non-cooperative antimicrobial resistance, the resistant strain does not share its protection with sensitive cells. Thus, when, as here, the metapopulation is subject to a steady drug influx, the spread of sensitive cells is hindered by the presence of the drug, and their fitness remains lower than that of resistant cells. In this case, no fluctuation-driven eradication occurs, since the fraction of resistant cells typically outgrows that of sensitive ones. For non-cooperative resistance, if the initial number of R cells is sufficiently large, resistance is expected to eventually take over the entire metapopulation [18,20,22,151].

Conclusions

Environmental variability, spatial structure, cellular migration, and demographic fluctuations are ubiquitous and key factors influencing the temporal evolution of cooperative antimicrobial resistance. The combined effects of dispersal and fluctuations in structured environments are complex and pose numerous challenges [96,123,127]. While dispersal generally promotes strain coexistence in spatially organised populations [39], we show that, counterintuitively, migration can instead strongly facilitate the elimination of one strain in temporally fluctuating environments.

In this study, we have demonstrated – by theoretical analysis and computational simulations – that environmental variability and, critically, slow-but-nonzero migration can lead to the efficient eradication of cooperative drug resistance in one- and two-dimensional lattice metapopulations consisting of drug-resistant and sensitive cells. We have identified the conditions under which fluctuation-driven eradication of the resistant strain occurs in general metapopulation lattices, and the near-optimal parameter regimes for this mechanism to operate in the shortest possible time. Our main findings, obtained explicitly for two-dimensional and cycle metapopulations, remain qualitatively valid for lattices of any spatial dimension.

This work demonstrates that the interplay between environmental variability, demographic fluctuations, and slow migration can enable the efficient eradication of cooperative antimicrobial resistance from an entire metapopulation through fluctuation-induced bottlenecks. This mechanism is effective when environmental changes occur on timescales comparable to microbial dynamics, providing a plausible strategy for laboratory or therapeutic interventions to eradicate resistance that would otherwise persist under static conditions. We believe that our theoretical predictions, which are robust to model variations, are relevant to realistic microbial populations and could, in principle, be tested experimentally using chemostat setups and/or microfluidic devices [25,88,93]. More broadly, our work illustrates how environmental fluctuations can be harnessed to achieve desired evolutionary outcomes, such as eliminating antibiotic resistance. We hope that these theoretical results will motivate further experimental investigations of environmental variability in chemostat and microfluidic systems, and inform the development of novel clinical protocols and therapeutic strategies aimed at preventing the spread of antimicrobial resistance.

Code availability

The C++ code used to generate the data and the Python and Matlab codes to process and visualize the data within this work can be found at the Open Science Framework repository (Lluís Hernández-Navarro, Kenneth Distefano, Uwe C. Täuber, and Mauro Mobilia. 2024. Supplementary data, code, and movies for “Slow spatial migration can help eradicate cooperative antimicrobial resistance in time-varying environments.” OSF. https://doi.org/10.17605/OSF.IO/EPB28).

Supporting information

S1 Appendix. The Supplementary Appendix comprises further technical details about the model and methods, some additional results, 10 supplementary figures, and a description of how the stochastic simulations were performed.

It also contains a description of the Supplementary Movies. The Supplementary Appendix is also electronically available from the bioRxiv repository at https://www.biorxiv.org/content/10.1101/2024.12.30.630406v3.supplementary-material. The Supplementary Movies are also electronically available from the OSF repository at https://doi.org/10.17605/OSF.IO/EPB28.

https://doi.org/10.1371/journal.pcbi.1013997.s001

(PDF)

S1 Movie. Resistant cells can survive in switching environments when demes are fully isolated.

Full description in S1 Appendix.

https://doi.org/10.1371/journal.pcbi.1013997.s002

(MP4)

S2 Movie. Slow migration can enhance the fluctuation-driven eradication mechanism.

Full description in S1 Appendix.

https://doi.org/10.1371/journal.pcbi.1013997.s003

(MP4)

S3 Movie. Fluctuation-driven eradication of R.

Full description in S1 Appendix.

https://doi.org/10.1371/journal.pcbi.1013997.s004

(MP4)

S4 Movie. Fluctuation-driven eradication mechanism with density-dependent migration.

Full description in S1 Appendix.

https://doi.org/10.1371/journal.pcbi.1013997.s005

(MP4)

S5 Movie. Fluctuation-driven eradication mechanism with density-independent migration.

Full description in S1 Appendix.

https://doi.org/10.1371/journal.pcbi.1013997.s006

(MP4)

Acknowledgments

The authors would like to thank M. Asker, J. Jiménez, S. Muñoz Montero, M. Pleimling, A. M. Rucklidge, and M. Swailem for fruitful discussions.

References

  1. 1. Bickel S, Or D. Soil bacterial diversity mediated by microscale aqueous-phase processes across biomes. Nat Commun. 2020;11(1):116. pmid:31913270
  2. 2. Dann LM, Mitchell JG, Speck PG, Newton K, Jeffries T, Paterson J. Virio- and bacterioplankton microscale distributions at the sediment-water interface. PLoS One. 2014;9(7):e102805. pmid:25057797
  3. 3. Grinberg M, Orevi T, Steinberg S, Kashtan N. Bacterial survival in microscopic surface wetness. Elife. 2019;8:e48508. pmid:31610846
  4. 4. Monier J-M, Lindow SE. Frequency, size, and localization of bacterial aggregates on bean leaf surfaces. Appl Environ Microbiol. 2004;70(1):346–55. pmid:14711662
  5. 5. Mark Welch JL, Hasegawa Y, McNulty NP, Gordon JI, Borisy GG. Spatial organization of a model 15-member human gut microbiota established in gnotobiotic mice. Proc Natl Acad Sci U S A. 2017;114(43):E9105–14. pmid:29073107
  6. 6. Conwill A, Kuan AC, Damerla R, Poret AJ, Baker JS, Tripp AD, et al. Anatomy promotes neutral coexistence of strains in the human skin microbiome. Cell Host Microbe. 2022;30(2):171-182.e7. pmid:34995483
  7. 7. She J-J, Liu W-X, Ding X-M, Guo G, Han J, Shi F-Y, et al. Defining the biogeographical map and potential bacterial translocation of microbiome in human “surface organs”. Nat Commun. 2024;15(1):427. pmid:38199995
  8. 8. Cordero OX, Datta MS. Microbial interactions and community assembly at microscales. Curr Opin Microbiol. 2016;31:227–34. pmid:27232202
  9. 9. Hsu RH, Clark RL, Tan JW, Ahn JC, Gupta S, Romero PA, et al. Microbial Interaction Network Inference in Microfluidic Droplets. Cell Syst. 2019;9(3):229-242.e4. pmid:31494089
  10. 10. Mahrt N, Tietze A, Künzel S, Franzenburg S, Barbosa C, Jansen G, et al. Bottleneck size and selection level reproducibly impact evolution of antibiotic resistance. Nat Ecol Evol. 2021;5(9):1233–42. pmid:34312522
  11. 11. Wu F, Ha Y, Weiss A, Wang M, Letourneau J, Wang S, et al. Modulation of microbial community dynamics by spatial partitioning. Nat Chem Biol. 2022;18(4):394–402. pmid:35145274
  12. 12. Nahum JR, Godfrey-Smith P, Harding BN, Marcus JH, Carlson-Stevermer J, Kerr B. A tortoise-hare pattern seen in adapting structured and unstructured populations suggests a rugged fitness landscape in bacteria. Proc Natl Acad Sci U S A. 2015;112(24):7530–5. pmid:25964348
  13. 13. Limdi A, Pérez-Escudero A, Li A, Gore J. Asymmetric migration decreases stability but increases resilience in a heterogeneous metapopulation. Nat Commun. 2018;9(1):2969. pmid:30061665
  14. 14. Gokhale S, Conwill A, Ranjan T, Gore J. Migration alters oscillatory dynamics and promotes survival in connected bacterial populations. Nat Commun. 2018;9(1):5273. pmid:30531951
  15. 15. Chakraborty PP, Nemzer LR, Kassen R. Experimental evidence that network topology can accelerate the spread of beneficial mutations. Evol Lett. 2023;7(6):447–56. pmid:38045727
  16. 16. Kreger J, Brown D, Komarova NL, Wodarz D, Pritchard J. The role of migration in mutant dynamics in fragmented populations. J Evol Biol. 2023;36(2):444–60. pmid:36514852
  17. 17. Allen B, Lippner G, Chen Y-T, Fotouhi B, Momeni N, Yau S-T, et al. Evolutionary dynamics on any population structure. Nature. 2017;544(7649):227–30. pmid:28355181
  18. 18. Marrec L, Lamberti I, Bitbol A-F. Toward a Universal Model for Spatially Structured Populations. Phys Rev Lett. 2021;127(21):218102. pmid:34860074
  19. 19. Yagoobi S, Traulsen A. Fixation probabilities in network structured meta-populations. Sci Rep. 2021;11(1):17979. pmid:34504152
  20. 20. Abbara A, Bitbol A-F. Frequent asymmetric migrations suppress natural selection in spatially structured populations. PNAS Nexus. 2023;2(11):pgad392. pmid:38024415
  21. 21. Verdon N, Popescu O, Titmuss S, Allen RJ. Habitat fragmentation enhances microbial collective defence. J R Soc Interface. 2025;22(223):20240611. pmid:39933594
  22. 22. Fruet C, Müller EL, Loverdo C, Bitbol A-F. Spatial structure facilitates evolutionary rescue by drug resistance. PLoS Comput Biol. 2025;21(4):e1012861. pmid:40179127
  23. 23. Pelletier F, Garant D, Hendry AP. Eco-evolutionary dynamics. Philos Trans R Soc Lond B Biol Sci. 2009;364(1523):1483–9. pmid:19414463
  24. 24. Harrington KI, Sanchez A. Eco-evolutionary dynamics of complex social strategies in microbial communities. Commun Integr Biol. 2014;7(1):e28230. pmid:24778764
  25. 25. Abdul-Rahman F, Tranchina D, Gresham D. Fluctuating Environments Maintain Genetic Diversity through Neutral Fitness Effects and Balancing Selection. Mol Biol Evol. 2021;38(10):4362–75. pmid:34132791
  26. 26. Hernández-Navarro L, Asker M, Rucklidge AM, Mobilia M. Coupled environmental and demographic fluctuations shape the evolution of cooperative antimicrobial resistance. J R Soc Interface. 2023;20(208):20230393. pmid:37907094
  27. 27. Asker M, Hernández-Navarro L, Rucklidge AM, Mobilia M. Coexistence of competing microbial strains under twofold environmental variability and demographic fluctuations. New Journal of Physics. 2023;25(12):123010.
  28. 28. Hernández-Navarro L, Asker M, Mobilia M. Eco-evolutionary dynamics of cooperative antimicrobial resistance in a population of fluctuating volume and size. J Phys A: Math Theor. 2024;57(26):265003.
  29. 29. Hermsen R, Deris JB, Hwa T. On the rapidity of antibiotic resistance evolution facilitated by a concentration gradient. Proc Natl Acad Sci U S A. 2012;109(27):10775–80. pmid:22711808
  30. 30. Greulich P, Waclaw B, Allen RJ. Mutational pathway determines whether drug gradients accelerate evolution of drug-resistant cells. Phys Rev Lett. 2012;109(8):088101. pmid:23002776
  31. 31. Baym M, Lieberman TD, Kelsic ED, Chait R, Gross R, Yelin I, et al. Spatiotemporal microbial evolution on antibiotic landscapes. Science. 2016;353(6304):1147–51. pmid:27609891
  32. 32. Alexander HK, MacLean RC. Stochastic bacterial population dynamics restrict the establishment of antibiotic resistance from single cells. Proc Natl Acad Sci U S A. 2020;117(32):19455–64. pmid:32703812
  33. 33. Shapiro JT, Leboucher G, Myard-Dury A-F, Girardo P, Luzzati A, Mary M, et al. Metapopulation ecology links antibiotic resistance, consumption, and patient transfers in a network of hospital wards. Elife. 2020;9:e54795. pmid:33106223
  34. 34. Cairns J, Jokela R, Becks L, Mustonen V, Hiltunen T. Repeatable ecological dynamics govern the response of experimental communities to antibiotic pulse perturbation. Nat Ecol Evol. 2020;4(10):1385–94. pmid:32778754
  35. 35. Piskovsky V, Oliveira NM. Bacterial motility can govern the dynamics of antibiotic resistance evolution. Nat Commun. 2023;14(1):5584. pmid:37696800
  36. 36. Ademie BA, Akwar HT, Arroyo M, Bayko H, Hafner M, Harrison S. Forecasting the Fallout from AMR: Economic Impacts of Antimicrobial Resistance in Food-Producing Animals. 2024.
  37. 37. Vollset SE, Altay U, Bhattacharjee NV, Chalek J, Giannakis K, Gray A. Forecasting the Fallout from AMR: Human Health Impacts of Antimicrobial Resistance. 2024.
  38. 38. GBD 2021 Antimicrobial Resistance Collaborators. Global burden of bacterial antimicrobial resistance 1990-2021: a systematic analysis with forecasts to 2050. Lancet. 2024;404(10459):1199–226. pmid:39299261
  39. 39. Cairns J, Hogle S, Alitupa E, Mustonen V, Hiltunen T. Pre-exposure of abundant species to disturbance improves resilience in microbial metacommunities. Nat Ecol Evol. 2025;9(3):395–405. pmid:39825086
  40. 40. Hengzhuang W, Wu H, Ciofu O, Song Z, Høiby N. In vivo pharmacokinetics/pharmacodynamics of colistin and imipenem in Pseudomonas aeruginosa biofilm infection. Antimicrob Agents Chemother. 2012;56(5):2683–90. pmid:22354300
  41. 41. Coates J, Park BR, Le D, Şimşek E, Chaudhry W, Kim M. Antibiotic-induced population fluctuations and stochastic clearance of bacteria. Elife. 2018;7:e32976. pmid:29508699
  42. 42. Larsson DGJ, Flach C-F. Antibiotic resistance in the environment. Nat Rev Microbiol. 2022;20(5):257–69. pmid:34737424
  43. 43. Vega NM, Gore J. Collective antibiotic resistance: mechanisms and implications. Curr Opin Microbiol. 2014;21:28–34. pmid:25271119
  44. 44. Roughgarden J. Theory of Population Genetics and Evolutionary Ecology: An Introduction. New York, USA: Macmillan. 1979.
  45. 45. Chuang JS, Rivoire O, Leibler S. Simpson’s paradox in a synthetic microbial system. Science. 2009;323(5911):272–5. pmid:19131632
  46. 46. Melbinger A, Cremer J, Frey E. Evolutionary game theory in growing populations. Phys Rev Lett. 2010;105(17):178101. pmid:21231082
  47. 47. Cremer J, Melbinger A, Frey E. Evolutionary and population dynamics: a coupled approach. Phys Rev E Stat Nonlin Soft Matter Phys. 2011;84(5 Pt 1):051921. pmid:22181458
  48. 48. Cremer J, Melbinger A, Frey E. Growth dynamics and the evolution of cooperation in microbial populations. Sci Rep. 2012;2:281. pmid:22355791
  49. 49. Melbinger A, Cremer J, Frey E. The emergence of cooperation from a single mutant during microbial life cycles. J R Soc Interface. 2015;12(108):20150171. pmid:26063816
  50. 50. Wahl LM, Gerrish PJ, Saika-Voivod I. Evaluating the impact of population bottlenecks in experimental evolution. Genetics. 2002;162(2):961–71. pmid:12399403
  51. 51. Wienand K, Frey E, Mobilia M. Evolution of a Fluctuating Population in a Randomly Switching Environment. Phys Rev Lett. 2017;119(15):158301. pmid:29077432
  52. 52. Wienand K, Frey E, Mobilia M. Eco-evolutionary dynamics of a population with randomly switching carrying capacity. J R Soc Interface. 2018;15(145):20180343. pmid:30135263
  53. 53. Taitelbaum A, West R, Assaf M, Mobilia M. Population Dynamics in a Changing Environment: Random versus Periodic Switching. Phys Rev Lett. 2020;125(4):048105. pmid:32794803
  54. 54. Taitelbaum A, West R, Mobilia M, Assaf M. Evolutionary dynamics in a varying environment: Continuous versus discrete noise. Phys Rev Res. 2023;5(2):L022004.
  55. 55. Shibasaki S, Mobilia M, Mitri S. Exclusion of the fittest predicts microbial community diversity in fluctuating environments. J R Soc Interface. 2021;18(183):20210613. pmid:34610260
  56. 56. Yurtsev EA, Chao HX, Datta MS, Artemova T, Gore J. Bacterial cheating drives the population dynamics of cooperative antibiotic resistance plasmids. Mol Syst Biol. 2013;9:683. pmid:23917989
  57. 57. Brown JH, Kodric-Brown A. Turnover Rates in Insular Biogeography: Effect of Immigration on Extinction. Ecology. 1977;58(2):445–9.
  58. 58. Eriksson A, Elías-Wolff F, Mehlig B, Manica A. The emergence of the rescue effect from explicit within- and between-patch dynamics in a metapopulation. Proc Biol Sci. 2014;281(1780):20133127. pmid:24523274
  59. 59. Lande R, Engen S, Sæther B-E, Saether B-E. Extinction Times in Finite Metapopulation Models with Stochastic Local Dynamics. Oikos. 1998;83(2):383.
  60. 60. Melbourne BA, Hastings A. Extinction risk depends strongly on factors contributing to stochasticity. Nature. 2008;454(7200):100–3. pmid:18596809
  61. 61. Higgins K. Metapopulation extinction risk: dispersal’s duplicity. Theor Popul Biol. 2009;76(2):146–55. pmid:19505487
  62. 62. Sæther B-E, Engen S, Lande R. Finite metapopulation models with density–dependent migration and stochastic local dynamics. Proc R Soc Lond B. 1999;266(1415):113–8.
  63. 63. Casagrandi R, Gatto M. A mesoscale approach to extinction risk in fragmented habitats. Nature. 1999;400(6744):560–2.
  64. 64. Uecker H, Otto SP, Hermisson J. Evolutionary rescue in structured populations. Am Nat. 2014;183(1):E17-35. pmid:24334746
  65. 65. Ben-Zion Y, Fried Y, Shnerb NM. Migration, coherence and persistence in a fragmented landscape. Theor Ecol. 2011;5(4):481–93.
  66. 66. Yaari G, Ben-Zion Y, Shnerb NM, Vasseur DA. Consistent scaling of persistence time in metapopulations. Ecology. 2012;93(5):1214–27. pmid:22764507
  67. 67. Khasin M, Meerson B, Khain E, Sander LM. Minimizing the population extinction risk by migration. Phys Rev Lett. 2012;109(13):138104. pmid:23030124
  68. 68. Lampert A, Hastings A. Synchronization-induced persistence versus selection for habitats in spatially coupled ecosystems. J R Soc Interface. 2013;10(87):20130559. pmid:23904591
  69. 69. Molofsky J, Ferdy J-B. Extinction dynamics in experimental metapopulations. Proc Natl Acad Sci U S A. 2005;102(10):3726–31. pmid:15738405
  70. 70. Ellner SP, McCauley E, Kendall BE, Briggs CJ, Hosseini PR, Wood SN, et al. Habitat structure and population persistence in an experimental community. Nature. 2001;412(6846):538–43. pmid:11484053
  71. 71. Dey S, Joshi A. Stability via asynchrony in Drosophila metapopulations with low migration rates. Science. 2006;312(5772):434–6. pmid:16627743
  72. 72. Fox JW, Vasseur D, Cotroneo M, Guan L, Simon F. Population extinctions can increase metapopulation persistence. Nat Ecol Evol. 2017;1(9):1271–8. pmid:29046551
  73. 73. Holyoak M, Lawler SP. Persistence of an Extinction‐Prone Predator‐Prey Interaction Through Metapopulation Dynamics. Ecology. 1996;77(6):1867–79.
  74. 74. Bush K, Bradford PA. -Lactams and -Lactamase Inhibitors: An Overview. Cold Spring Harb Perspect Med. 2016;6(8):a025247. pmid:27329032
  75. 75. Hanski I. Metapopulation Ecology. New York, USA: Oxford University Press. 1999.
  76. 76. Szczesny B, Mobilia M, Rucklidge AM. Characterization of spiraling patterns in spatial rock-paper-scissors games. Phys Rev E Stat Nonlin Soft Matter Phys. 2014;90(3):032704. pmid:25314470
  77. 77. Dobramysl U, Mobilia M, Pleimling M, Täuber UC. Stochastic population dynamics in spatially extended predator–prey systems. J Phys A: Math Theor. 2018;51:063001.
  78. 78. West R, Mobilia M. Fixation properties of rock-paper-scissors games in fluctuating populations. J Theor Biol. 2020;491:110135. pmid:31870901
  79. 79. Asker M, Swailem M, Täuber UC, Mobilia M. Fixation and extinction in time-fluctuating spatially structured metapopulations. Phys Rev Res. 2025;7:043205.
  80. 80. Witting L, Seiffarth J, Stute B, Schulze T, Hofer JM, Nöh K, et al. A microfluidic system for the cultivation of cyanobacteria with precise light intensity and CO2 control: enabling growth data acquisition at single-cell resolution. Lab Chip. 2025;25(3):319–29. pmid:39403985
  81. 81. Rodríguez-Verdugo A, Vulin C, Ackermann M. The rate of environmental fluctuations shapes ecological dynamics in a two-species microbial system. Ecol Lett. 2019;22(5):838–46. pmid:30790416
  82. 82. Hengge-Aronis R. Survival of hunger and stress: the role of rpoS in early stationary phase gene regulation in E. coli. Cell. 1993;72(2):165–8. pmid:8425216
  83. 83. Morley CR, Trofymow JA, Coleman DC, Cambardella C. Effects of freeze-thaw stress on bacterial populations in soil microcosms. Microb Ecol. 1983;9(4):329–40. pmid:24221821
  84. 84. Vasi F, Travisano M, Lenski RE. Long-Term Experimental Evolution in Escherichia coli. II. Changes in Life-History Traits During Adaptation to a Seasonal Environment. Am Nat. 1994;144(3):432–56.
  85. 85. Fux CA, Costerton JW, Stewart PS, Stoodley P. Survival strategies of infectious biofilms. Trends Microbiol. 2005;13(1):34–40. pmid:15639630
  86. 86. Brockhurst MA, Buckling A, Gardner A. Cooperation peaks at intermediate disturbance. Curr Biol. 2007;17(9):761–5. pmid:17379522
  87. 87. Brockhurst MA. Population bottlenecks promote cooperation in bacterial biofilms. PLoS One. 2007;2(7):e634. pmid:17653261
  88. 88. Acar M, Mettetal JT, van Oudenaarden A. Stochastic switching as a survival strategy in fluctuating environments. Nat Genet. 2008;40(4):471–5. pmid:18362885
  89. 89. Proft T. Microbial toxins: current research and future trends. Caister Academic Press. 2009.
  90. 90. Caporaso JG, Lauber CL, Costello EK, Berg-Lyons D, Gonzalez A, Stombaugh J, et al. Moving pictures of the human microbiome. Genome Biol. 2011;12(5):R50. pmid:21624126
  91. 91. Himeoka Y, Mitarai N. Dynamics of bacterial populations under the feast-famine cycles. Phys Rev Res. 2020;2:013372.
  92. 92. Tu P, Chi L, Bodnar W, Zhang Z, Gao B, Bian X, et al. Gut Microbiome Toxicity: Connecting the Environment and Gut Microbiome-Associated Diseases. Toxics. 2020;8(1):19. pmid:32178396
  93. 93. Lambert G, Kussell E. Memory and fitness optimization of bacteria under fluctuating environments. PLoS Genet. 2014;10(9):e1004556. pmid:25255314
  94. 94. Nguyen J, Lara-Gutiérrez J, Stocker R. Environmental fluctuations and their effects on microbial communities, populations and individuals. FEMS Microbiol Rev. 2021;45(4):fuaa068. pmid:33338228
  95. 95. Fuentes-Hernandez A, Plucain J, Gori F, Pena-Miller R, Reding C, Jansen G, et al. Using a sequential regimen to eliminate bacteria at sublethal antibiotic dosages. PLoS Biol. 2015;13(4):e1002104. pmid:25853342
  96. 96. Gude S, Pinçe E, Taute KM, Seinen A-B, Shimizu TS, Tans SJ. Bacterial coexistence driven by motility and spatial competition. Nature. 2020;578(7796):588–92. pmid:32076271
  97. 97. Peruzzo F, Mobilia M, Azaele S. Spatial patterns emerging from a stochastic process near criticality. Phys Rev X. 2020;10:011032.
  98. 98. Davies J. Inactivation of antibiotics and the dissemination of resistance genes. Science. 1994;264(5157):375–82. pmid:8153624
  99. 99. Wright GD. Bacterial resistance to antibiotics: enzymatic degradation and modification. Adv Drug Deliv Rev. 2005;57(10):1451–70. pmid:15950313
  100. 100. Kaderabkova N, Bharathwaj M, Furniss RCD, Gonzalez D, Palmer T, Mavridou DAI. The biogenesis of -lactamase enzymes. Microbiology (Reading). 2022;168(8):001217. pmid:35943884
  101. 101. Livermore DM. beta-Lactamases: quantity and resistance. Clin Microbiol Infect. 1997;3 Suppl 4:S10–9. pmid:11869238
  102. 102. Sorg RA, Lin L, van Doorn GS, Sorg M, Olson J, Nizet V, et al. Collective Resistance in Microbial Communities by Intracellular Antibiotic Deactivation. PLoS Biol. 2016;14(12):e2000631. pmid:28027306
  103. 103. Hackman AS, Wilkins TD. Comparison of cefoxitin and cephalothin therapy of a mixed Bacteroides fragilis and Fusobacterius necrophorum infection in mice. Antimicrob Agents Chemother. 1975;8(2):224–5. pmid:1180547
  104. 104. Wright S. Isolation by Distance. Genetics. 1943;28(2):114–38. pmid:17247074
  105. 105. Wright S. Population structure in evolution. Proceedings of the American Philosophical Society. 1949;93(6):471–8.
  106. 106. Slatkin M. FIXATION PROBABILITIES AND FIXATION TIMES IN A SUBDIVIDED POPULATION. Evolution. 1981;35(3):477–88. pmid:28563585
  107. 107. Keymer JE, Galajda P, Muldoon C, Park S, Austin RH. Bacterial metapopulations in nanofabricated landscapes. Proc Natl Acad Sci U S A. 2006;103(46):17290–5. pmid:17090676
  108. 108. Moran PAP. The Statistical Processes of Evolutionary Theory. Oxford, UK: Clarendon. 1962.
  109. 109. Blythe R, McKane A. Stochastic models of evolution in genetics, ecology and linguistics. J Stat Mech. 2007;2007:P07018.
  110. 110. Traulsen A, Hauert C. In: Stochastic Evolutionary Game Dynamics. Stochastic Evolutionary Game Dynamics. John Wiley & Sons, Ltd. 2009. p. 25–61. https://doi.org/10.1002/9783527628001.ch2
  111. 111. Antal T, Scheuring I. Fixation of strategies for an evolutionary game in finite populations. Bull Math Biol. 2006;68(8):1923–44. pmid:17086490
  112. 112. Ewens WJ. Mathematical Population Genetics. New York: Springer. 2004.
  113. 113. Keegstra JM, Carrara F, Stocker R. The ecological roles of bacterial chemotaxis. Nat Rev Microbiol. 2022;20(8):491–504. pmid:35292761
  114. 114. Marrec L. Quantifying the impact of genotype-dependent gene flow on mutation fixation in subdivided populations. bioRxiv. 2023.
  115. 115. Bena I. Dichotomous Markov noise: exact results for out-of-equilibrium systems. Int J Mod Phys B. 2006;20:2825.
  116. 116. Horsthemke W, Lefever R. Noise-induced transitions. Berlin: Springer. 2006.
  117. 117. Ridolfi L, D’Odorico P, Laio F. Noise-Induced Phenomena in the Environmental Sciences. Cambridge, U.K.: Cambridge University Press. 2011.
  118. 118. Davis MHA. Piecewise-deterministic Markov processes: a general class of non-diffusion stochastic models. J R Stat Soc B. 1984;46:353–84.
  119. 119. Santillan E, Seshan H, Constancias F, Drautz-Moses DI, Wuertz S. Frequency of disturbance alters diversity, function, and underlying assembly mechanisms of complex bacterial communities. NPJ Biofilms Microbiomes. 2019;5(1):8. pmid:30774969
  120. 120. Patwa Z, Wahl LM. Adaptation rates of lytic viruses depend critically on whether host cells survive the bottleneck. Evolution. 2010;64(4):1166–72. pmid:19895555
  121. 121. Wright S. Evolution in Mendelian Populations. Genetics. 1931;16(2):97–159. pmid:17246615
  122. 122. Kimura M, Weiss GH. The Stepping Stone Model of Population Structure and the Decrease of Genetic Correlation with Distance. Genetics. 1964;49(4):561–76. pmid:17248204
  123. 123. Albright MBN, Chase AB, Martiny JBH. Experimental Evidence that Stochasticity Contributes to Bacterial Composition and Functioning in a Decomposer Community. mBio. 2019;10(2):e00568-19. pmid:30992354
  124. 124. Hansen E, Karslake J, Woods RJ, Read AF, Wood KB. Antibiotics can be used to contain drug-resistant bacteria by maintaining sufficiently large sensitive populations. PLoS Biol. 2020;18(5):e3000713. pmid:32413038
  125. 125. Czuppon P, Day T, Débarre F, Blanquart F. A stochastic analysis of the interplay between antibiotic dose, mode of action, and bacterial competition in the evolution of antibiotic resistance. PLoS Comput Biol. 2023;19(8):e1011364. pmid:37578976
  126. 126. Zhang Q, Lambert G, Liao D, Kim H, Robin K, Tung CK. Acceleration of emergence of bacterial antibiotic resistance in. Science. 2011;333:1764.
  127. 127. Widder S, Allen RJ, Pfeiffer T, Curtis TP, Wiuf C, Sloan WT, et al. Challenges in microbial ecology: building predictive understanding of community function and dynamics. ISME J. 2016;10(11):2557–68. pmid:27022995
  128. 128. Feldman WE. Concentrations of bacteria in cerebrospinal fluid of patients with bacterial meningitis. J Pediatr. 1976;88(4 Pt 1):549–52. pmid:3635
  129. 129. Palaci M, Dietze R, Hadad DJ, Ribeiro FKC, Peres RL, Vinhas SA, et al. Cavitary disease and quantitative sputum bacillary load in cases of pulmonary tuberculosis. J Clin Microbiol. 2007;45(12):4064–6. pmid:17928422
  130. 130. Ganchua SKC, White AG, Klein EC, Flynn JL. Lymph nodes-The neglected battlefield in tuberculosis. PLoS Pathog. 2020;16(8):e1008632. pmid:32790739
  131. 131. Van den Broeck W, Derore A, Simoens P. Anatomy and nomenclature of murine lymph nodes: Descriptive study and nomenclatory standardization in BALB/cAnNCrl mice. J Immunol Methods. 2006;312(1–2):12–9. pmid:16624319
  132. 132. Pédron T, Mulet C, Dauga C, Frangeul L, Chervaux C, Grompone G, et al. A crypt-specific core microbiota resides in the mouse colon. mBio. 2012;3(3):e00116-12. pmid:22617141
  133. 133. Krašovec R, Richards H, Gifford DR, Hatcher C, Faulkner KJ, Belavkin RV, et al. Spontaneous mutation rate is a plastic trait associated with population density across domains of life. PLoS Biol. 2017;15(8):e2002731. pmid:28837573
  134. 134. Green R, Wang H, Botchey C, Zhang SNN, Wadsworth C, Tyrrell F, et al. Collective peroxide detoxification determines microbial mutation rate plasticity in E. coli. PLoS Biol. 2024;22(7):e3002711. pmid:39008532
  135. 135. Melnyk AH, Wong A, Kassen R. The fitness costs of antibiotic resistance mutations. Evol Appl. 2015;8(3):273–83. pmid:25861385
  136. 136. van der Horst MA, Schuurmans JM, Smid MC, Koenders BB, ter Kuile BH. De novo acquisition of resistance to three antibiotics by Escherichia coli. Microb Drug Resist. 2011;17(2):141–7. pmid:21235391
  137. 137. Hughes D, Andersson DI. Selection of resistance at lethal and non-lethal antibiotic concentrations. Curr Opin Microbiol. 2012;15(5):555–60. pmid:22878455
  138. 138. Andersson DI, Patin SM, Nilsson AI, Kugelberg E. In: The Biological Cost of Antibiotic Resistance. The Biological Cost of Antibiotic Resistance. John Wiley & Sons, Ltd. 2007. p. 339–48. https://doi.org/10.1128/9781555815615.ch21
  139. 139. Smith TM, Smith RL. Elements of Ecology. Pearson. 2015.
  140. 140. Bernhardt JR, Sunday JM, O’Connor MI. Metabolic Theory and the Temperature-Size Rule Explain the Temperature Dependence of Population Carrying Capacity. Am Nat. 2018;192(6):687–97. pmid:30444656
  141. 141. Savage VM, Gilloly JF, Brown JH, Charnov EL. Effects of body size and temperature on population growth. Am Nat. 2004;163(3):429–41. pmid:15026978
  142. 142. Frost I, Smith WPJ, Mitri S, Millan AS, Davit Y, Osborne JM, et al. Cooperation, competition and antibiotic resistance in bacterial colonies. ISME J. 2018;12(6):1582–93. pmid:29563570
  143. 143. Nikaido H, Normark S. Sensitivity of Escherichia coli to various beta-lactams is determined by the interplay of outer membrane permeability and degradation by periplasmic beta-lactamases: a quantitative predictive treatment. Mol Microbiol. 1987;1(1):29–36. pmid:3330755
  144. 144. Uecker H, Hermisson J. On the fixation process of a beneficial mutation in a variable environment. Genetics. 2011;188(4):915–30. pmid:21652524
  145. 145. Sharma A, Wood KB. Spatial segregation and cooperation in radially expanding microbial colonies under antibiotic stress. ISME J. 2021;15(10):3019–33. pmid:33953363
  146. 146. Denk-Lobnig MK, Wood KB. Spatial population dynamics of bacterial colonies with social antibiotic resistance. Proc Natl Acad Sci U S A. 2025;122(7):e2417065122. pmid:39937854
  147. 147. Goldford JE, Lu N, Bajić D, Estrela S, Tikhonov M, Sanchez-Gorostiaga A, et al. Emergent simplicity in microbial community assembly. Science. 2018;361(6401):469–74. pmid:30072533
  148. 148. Li S, Abdulkadir N, Schattenberg F, Nunes da Rocha U, Grimm V, Müller S, et al. Stabilizing microbial communities by looped mass transfer. Proc Natl Acad Sci U S A. 2022;119(17):e2117814119. pmid:35446625
  149. 149. Totlani K, Hurkmans J-W, van Gulik WM, Kreutzer MT, van Steijn V. Scalable microfluidic droplet on-demand generator for non-steady operation of droplet-based assays. Lab Chip. 2020;20(8):1398–409. pmid:32255441
  150. 150. Erez A, Lopez JG, Weiner BG, Meir Y, Wingreen NS. Nutrient levels and trade-offs control diversity in a serial dilution ecosystem. Elife. 2020;9:e57790. pmid:32915132
  151. 151. Marrec L, Bitbol A-F. Resist or perish: Fate of a microbial population subjected to a periodic presence of antimicrobial. PLoS Comput Biol. 2020;16(4):e1007798. pmid:32275712