Skip to main content
Journal of the Royal Society Interface logoLink to Journal of the Royal Society Interface
. 2023 Nov 1;20(208):20230393. doi: 10.1098/rsif.2023.0393

Coupled environmental and demographic fluctuations shape the evolution of cooperative antimicrobial resistance

Lluís Hernández-Navarro 1,, Matthew Asker 1, Alastair M Rucklidge 1, Mauro Mobilia 1,
PMCID: PMC10618063  PMID: 37907094

Abstract

There is a pressing need to better understand how microbial populations respond to antimicrobial drugs, and to find mechanisms to possibly eradicate antimicrobial-resistant cells. The inactivation of antimicrobials by resistant microbes can often be viewed as a cooperative behaviour leading to the coexistence of resistant and sensitive cells in large populations and static environments. This picture is, however, greatly altered by the fluctuations arising in volatile environments, in which microbial communities commonly evolve. Here, we study the eco-evolutionary dynamics of a population consisting of an antimicrobial-resistant strain and microbes sensitive to antimicrobial drugs in a time-fluctuating environment, modelled by a carrying capacity randomly switching between states of abundance and scarcity. We assume that antimicrobial resistance (AMR) is a shared public good when the number of resistant cells exceeds a certain threshold. Eco-evolutionary dynamics is thus characterised by demographic noise (birth and death events) coupled to environmental fluctuations which can cause population bottlenecks. By combining analytical and computational means, we determine the environmental conditions for the long-lived coexistence and fixation of both strains, and characterise a fluctuation-driven AMR eradication mechanism, where resistant microbes experience bottlenecks leading to extinction. We also discuss the possible applications of our findings to laboratory-controlled experiments.

Keywords: eco-evolutionary dynamics, antimicrobial resistance, cooperation, environmental variability, coexistence, fluctuations

1. Introduction

Environmental conditions, such as temperature, pH or available resources, endlessly change over time and shape the fate of natural populations. For instance, microorganisms often live in volatile environments where resource abundance fluctuates between mild and harsh conditions, and regimes of feast alternate with periods of famine [13]. How environmental variability (EV), generally referring to changes not caused by the organisms themselves (e.g. supply of abiotic resources), affects species diversity is a subject of intense debate and research (e.g. [413]). Demographic noise (DN) arising from randomness in birth and death events in finite populations is another source of fluctuations. DN is negligible in large populations and strong in small ones, where it can lead to species fixation, when one species takes over the population, or to extinction, and hence can permanently set the make-up of a community [1417]. The dynamics of the population composition (evolutionary dynamics) is often coupled with that of its size (ecological dynamics) [18], resulting in its eco-evolutionary dynamics [1921].

When EV influences the size of a population, it also modulates the DN strength, leading to a coupling of DN and EV [2126]. This interdependence is potentially of great relevance to understand eco-evolutionary dynamics of microbial communities. The coupling of DN and EV can lead to population bottlenecks, where new colonies consisting of few individuals are prone to fluctuations [2730], and plays an important role in the eco-evolutionary dynamics of antimicrobial resistance (AMR) [31,32].

The rise of AMR is a global threat responsible for millions of deaths [33]. Understanding how AMR evolves and what mechanisms can possibly eradicate the resistance to antimicrobials are therefore questions of great societal relevance and major scientific challenges. A common mechanism of AMR involves the production by resistant cells, at a metabolic cost, of an extra or intracellular enzyme inactivating antimicrobial drugs [3436]. When the number of resistant cells exceeds a certain threshold, there are enough drug-inactivating enzymes, and the protection against antimicrobial drugs is shared with sensitive cells that can thus also resist antimicrobial drugs at no metabolic cost. However, below the resistant population threshold, only resistant microbes are protected against the drug (enzyme availability is limited and it can only inactivate the drug in the vicinity of resistant cells). AMR can hence be viewed as a thresholded cooperative behaviour where widespread antimicrobial inactivation is a form of public good. This results in the spread of resistant microbes below the threshold, while sensitive cells thrive under high enzymatic concentration (above threshold). Hence, in static environments and large populations, both sensitive and resistant strains survive antimicrobial treatment and coexist in the long run [3639]. In this work, we show that this picture can be greatly altered by the joint effect of demographic and environmental fluctuations, often overlooked, but ubiquitous in microbial communities that commonly evolve in volatile environments, where they can be subject to extreme and sudden changes [2731,40,41].

Motivated by the problem of the evolution of AMR, here we study the coupled influence of EV and DN on the eco-evolutionary dynamics of a population of two species, one antimicrobial-resistant strain and the other sensitive to antimicrobials. In our model, we assume that AMR is a cooperative behaviour above a certain threshold for the number of resistant microbes, and the microbial community is subject to environmental fluctuations that can cause population bottlenecks. Here, EV involves random switches of the carrying capacity, causing the population size to fluctuate, while the antimicrobial input is kept constant. We thus study how the joint effect of EV and DN affects the fixation and coexistence properties of both strains, determining under which environmental conditions either of them prevail or if they both coexist for extended periods. This allows us to identify and fully characterise a fluctuation-driven AMR eradication mechanism, where environmental fluctuations generate transients that greatly reduce the resistant population and DN can then lead to the extinction of AMR.

In the next section, we introduce the model and discuss our methods. We present our results in §3, where we first describe the main properties of the (in silico) model evolving under a fluctuating environment, and then study its properties analytically. In §§3.1–3.3, we analyse the population dynamics in the large population limit, and then the model’s fixation properties in static environments. In §3.4, we characterise the fixation and coexistence of the strains in fluctuating environments, and discuss in detail the fluctuation-driven eradication of AMR arising in the regime of intermediate switching. Section 4 is dedicated to the discussion of the influence of EV on the strains fraction and abundance (§4.1), and to a review of our modelling assumptions (§4.2). Our conclusions are presented in §5. Technical and computational details are given in the electronic supplementary material [42].

2. Methods and models

Microbial communities generally evolve in volatile environments: they are subject to suddenly changing conditions [40,41], and fluctuations can play an important role in their evolution [4,5,7,8,1012,31]. For instance, fluctuating nutrients may be responsible for population bottlenecks leading to feedback loops and cooperative behaviour [2730], while sensitivity to antimicrobials depends on cell density and its fluctuations [3639,43]. Here, we study the eco-evolutionary dynamics of cooperative AMR by investigating how a well-mixed microbial community evolves under the continued application of a drug that hinders microbial growth when the community is subject to fluctuating environments. The evolutionary dynamics of the microbial community is modelled as a multivariate birth-and-death process [14,44,45], whereas to model the fluctuating environment we assume that the population is subject to a time-varying binary carrying capacity [23,24,4648].

2.1. Microbial model

We consider well-mixed co-cultures composed of an antimicrobial-resistant cooperative strain (denoted by R) and a defector type sensitive to antimicrobials (labelled S), under a constant input of antimicrobial drug, inspired by a chemostat laboratory set-up. The population, of total size N, hence consists of NR resistant and NS sensitive microbes, with N = NR + NS. Note that, since we later introduce EV as switches in the carrying capacity, the total population will fluctuate accordingly. A frequent mechanism of AMR relies on the production of an enzyme hydrolysing the antimicrobial drug in their surroundings [3436]. Here, we assume that each R cell produces the enzyme at a constant rate, regardless of the antimicrobial concentration, which is inspired by typical lab experiments, e.g. with resistance gene-bearing plasmids [36,37]. When the number of R is high enough, the overall concentration of resistance enzyme in the medium suffices to inactivate the drug for the entire community: the enzyme hydrolyses the drug and sets it below the minimum inhibitory concentration (MIC), therefore acting as a public good and protecting S as well. This mechanism can hence lead to AMR as a cooperative behaviour [3436], for instance, by means of the β-lactamase resistance enzyme for the general β-lactam family of antibiotics [49] (see §4.2 for non-shared resistance mechanisms).

Here, we model this AMR mechanism by assuming that R acts as a cooperative strain when the number of R cells (proxy for resistance enzyme concentration) exceeds a fixed threshold Nth, i.e. R cells are cooperators when NRNth, while they retain for themselves the benefit of producing the protecting enzyme when NR < Nth [3639,43]. The effective regulation of public good production by means of a population threshold has been found in a number of microbial systems (e.g. [27,39,5052]), and is consistent with a slower microbial growth cycle with respect to the fast time scale of enzyme production and dispersion. In this work, we study the AMR evolution as a form of cooperative behaviour under demographic and environmental fluctuations. Assuming fixed-volume fluctuating environments, the threshold for AMR cooperation is here set in terms of R abundance (rather than its concentration), see §4.

In our model, R microbes have a constant birth rate independent of the biostatic drug hindering microbial growth [5355],1 with fitness fR = 1 − s, where 0 < s < 1 captures the extra metabolic cost of constantly generating the resistance enzyme. The birth rate of S depends on the public good abundance: when NR < Nth, the enzyme concentration is low (below cooperation threshold) and the antimicrobial drug is above the MIC, the S fitness fS is thus lower than fR, with fS = 1 − a, where 1 > a > s and a encodes growth rate reduction caused by the drug. When NRNth, the R abundance is above the cooperation threshold. This triggers the AMR cooperative mechanism: the drug is inactivated (below MIC), and the S birth rate, with fS = 1, is then higher than that of R, see figure 1a. Denoting by xNR/N the fraction of R in the population, here S fitness is

fS=1aθ[NthNR]=1aθ[xth(N)x],

where θ[z] is the Heaviside step function, defined as θ[z] = 1 if (z > 0) and θ[z] = 0 otherwise, and xth(N) ≡ Nth/N is the fraction of R at the cooperation threshold. The average population fitness is f¯=fRNR/N+fSNS/N. In this setting, this population evolves according to the multivariate birth–death process [16,44,45] defined by the reactions

NR/STR/S+NR/S+1andNR/STR/SNR/S1, 2.1

occurring with transition rates [2123,25]

TR+=fRf¯NR=(1s)NR1aθ[NthNR]+(aθ[NthNR]s)NR/N,TR=NKNRandTS+=fSf¯NS=(1aθ[NthNR])NS1aθ[NthNR]+(aθ[NthNR]s)NR/N,TS=NKNS, 2.2

with growth limited by the logistic death rate N/K (so that the total population N follows the standard logistic dynamics in the mean field limit; see equation (3.1)), where K is the carrying capacity that is here assumed to be a time-fluctuating quantity; see below. Moreover, we have normalised fR/S by the average fitness f¯ for mathematical convenience, without loss of generality (see §4.2). This corresponds to the growth rate of each strain to be given by its fitness relative to the average population’s fitness, a common assumption in the context of biological and evolutionary processes [6,16,56], which allows us to establish a neat relationship between our multivariate birth–death process and the classical Moran process. The latter is the reference birth–death-like process used to model the evolution of idealised populations of constant total size [14,16,5759]. The link with the Moran process enables us to take advantage of its well-known properties, in particular the exact results for the fixation probability and mean fixation time [14,16,57,59], to characterise analytically many features of our eco-evolutionary model (see §§3.2 and 3.3, and electronic supplementary material, section D [42]).

Figure 1.

Figure 1.

Microbial community model. (a) Top: when the abundance of R (blue microbes) is below the cooperation threshold Nth, antimicrobial drug hinders the growth rate of S (red microbes) and R cells have a growth advantage. Bottom: AMR becomes cooperative when the number of R exceeds Nth and these generate enough resistance enzyme (public good in green shade) to hydrolyse the antimicrobial drug below the MIC for the whole medium, so that protection against the drug is shared with S (with green shields). (b) Temporal eco-evolution dynamics of the microbial community for example parameters s = 0.2, a = 0.5, K = 50, K+ = 250, ν = 0.2 and δ = 0.6; thick black line shows the sample path of the time-switching carrying capacity K(t), with a cooperation threshold Nth = 30 (blue line); thick solid lines depict the N → ∞ piecewise deterministic (deterministic between two switches of K) process defined by equations (3.2) and (3.3) for the total microbial population (N, green), number of R (NR = Nx, blue) and number of S (NS = N(1 − x), red); noisy lines show an example stochastic realisation of the full model under the joint effect of demographic and environmental fluctuations. In the absence of DN, R can experience bumps and dips (thick blue line), and tdip indicates the mean time to reach the bottom of a dip from its inception; see §3.4. In the presence of DN, fluctuations about the dip can lead to the extinction of R (blue arrow). (c) R fraction x = NR/N for the same sample path of varying environment as in (b); line styles as in (b); the dashed black line shows the stable R fraction in each environment as K(t), driven by ξ(t), switches in time.

2.2. Environmental fluctuations and master equation

In addition to demographic fluctuations stemming from random birth and death events (see equation (2.1)), we model EV as sudden changes in the available resources, such as in cycles of feast and famine [13,60]. We implement this by letting the carrying capacity be a binary time-fluctuating random variable K(t) ∈ {K, K+}, with K+ > K, as broadly used in eco-evolutionary modelling [2226,32,4648,61,62]. This allows us to simply model sudden extreme changes in the population size, particularly the formation of population bottlenecks [25,2730,63], providing us with a theoretical counterpart of commonly used laboratory experimental chemostat set-ups [6366]; see §4.2.

For simplicity, we consider that K(t) is driven by the coloured dichotomous Markov noise (DMN) ξ(t) = { − 1, 1} that randomly switches between K and K+. The DMN is an important example of bounded noise, with finite correlation time that is easy to simulate accurately (see electronic supplementary material, section A [42]) and amenable to analytical progress, and hence often employed in modelling evolutionary processes in fluctuating environments [2123,25,26,4648,67]. The dynamics of the DMN is defined by the simple reaction [46,47,67]

ξξ, 2.3

endlessly occurring at rate (1 − δξ)ν, where −1 < δ < 1. Here, we always consider the DMN at stationarity where ξ = ±1 with probability (1 ± δ)/2. The stationary DMN ensemble average is thus 〈ξ(t)〉 ≡ ((1 + δ)/2) − ((1 − δ)/2) = δ and its auto-covariance (auto-correlation up to a constant) is 〈ξ(t)ξ(t′)〉 − 〈ξ(t)〉〈ξ(t′)〉 = (1 − δ2) e−2ν|tt′|, where ν is both half the inverse of the correlation time and average switching rate. We thus consider that the binary switching carrying capacity is [21,23,25,26]

K(t)=12[K++K+ξ(t)(K+K)], 2.4

and K(t) thus switches from a state where resources are abundant (K+) to another state where they are scarce (K) with rates ν+ν(1 − δ) and νν(1 + δ) according to

Kν+νK+.

Environmental statistics can be characterised by the mean switching rate ν ≡ (ν + ν+)/2 and by δ ≡ (νν+)/(ν + ν+) that encodes the environmental switching bias: when δ > 0, on average, more time is spent in the environmental state ξ = 1 than ξ = −1, and thus K = K+ is more likely to occur than K = K (symmetric switching arises when δ = 0). The time-fluctuating carrying capacity (2.4) modelling environmental fluctuations is responsible for the time-variation of the population size, and is coupled with the birth-and-death process (2.1) and (2.2).

The master equation (ME) giving the probability P(NR, NS, ξ, t) for the population to consist of NR and NS cells in the environmental state ξ at time t is [44]

P(NR,NS,ξ,t)t=(ER1)[TR+P(NR,NS,ξ,t)]+(ES1)[TS+P(NR,NS,ξ,t)]+(ER+1)[TRP(NR,NS,ξ,t)]+(ES+1)[TSP(NR,NS,ξ,t)]+νξP(NR,NS,ξ,t)νξP(NR,NS,ξ,t) 2.5

where ER/S± are shift operators such that ER/S±f(NR/S,NS/R,t)=f(NR/S±1,NS/R,t), and the probabilities are set to P(NR, NS, ξ, t) = 0 whenever NR < 0 or NS < 0. The last line on the right-hand side of (2.5) accounts for the random environmental switching; see black line in figure 1b. Since TR/S±=0 whenever NR = 0 or NS = 0, this indicates that there is extinction of R (NR = 0) and fixation of S (NS = N), or fixation of R (NR = N) and extinction of S (NS = 0). When one strain fixates and replaces the other, the population composition no longer changes while its size continues to fluctuate.2 The multivariate ME (2.5) can be simulated exactly using standard stochastic methods (see electronic supplementary material, section A [42]), and encodes the eco-evolutionary dynamics of the model whose main distinctive feature is the coupling of the population size N and its composition x = NR/N, with DN coupled to EV; see (2.2) and below.

3. Results

In this section, we analyse how the coupled demographic and environmental fluctuations shape the evolution of the fraction of R in cooperative AMR [31]. Our main goals are to establish the conditions under which EV and DN facilitate the eradication of R and reduce the size of the remaining pathogenic microbial population (see also §4).

3.1. Coupled environmental and demographic noise induces regimes of coexistence and dominance

The eco-evolutionary long-lived behaviour of a microbial community is chiefly captured by: (i) the expected duration of the strains coexistence (mean coexistence time, MCT, that here coincides with the unconditional mean fixation time [16,57]; see electronic supplementary material, section B.2 [42]) and (ii) by the fixation (or extinction) probability of each strain, i.e. the chance that a single strain eventually takes over the entire population (or that the strain is fully replaced by others). These properties have been extensively studied in populations of constant total size, e.g. in terms of the Moran process [14,16,44,56,57,59,69], but are far less known in communities of fluctuating size when DN is coupled to EV. To gain some insight into the behaviour of microbial co-cultures under coupled eco-evolutionary dynamics defined by equation (2.5), we compute in silico the R fixation probability, denoted by ϕ, and the strains coexistence probability, labelled by Pcoex, when the external conditions fluctuate between harsh (K = 120, scarce resources) and mild (K+ = 1000, abundant resources). Here, Pcoex is defined as the probability that both strains still coexist for a time exceeding twice the average stationary population size t > 2〈N〉.3 In our simulations, we consider a wide range of the switching rate ν and bias δ, with approximately 103–104 realisations for each dynamic environment, and different values of the cooperation thresholds, with Nth ∼ 100. In our simulations, we respectively use s ∼ 0.1–0.2 and a ∼ 0.25–0.5 as plausible values for the resistance metabolic cost and the impact of the drug on S [76,77]. Our choice of K± ensures that the dynamics is not dominated mainly by DN or EV, but by the interplay of DN and EV, and the values of the cooperation threshold Nth < K guarantee that the fixation of either strain or their coexistence are all scenarios arising with finite probabilities in our simulations; see below and electronic supplementary material, section A [42]. Note that, as discussed in §4.2 and electronic supplementary material, section D.3, the behaviour reported here can also be observed in big, realistic populations of N > 106.

Figure 2ac shows the in silico νδ phase diagrams corresponding to the various fixation and coexistence scenarios arising for different cooperation thresholds. For small thresholds relative to EV (Nth10K+/K, see electronic supplementary material, section D.3 [42]), S displays a high fixation probability (red region) at intermediate ν and non-extreme δ, where R is most likely to be eradicated. Under high/low values of ν (when δ is not too low), the red region in figure 2ac is surrounded by dark areas where the long-lived coexistence of the strains is most likely. When the threshold Nth is closer to K, R is most likely to prevail in the blue region of figure 2b,c, where the environment is predominantly in the harsh state (δ < 0). As Nth increases, the blue region expands and gradually replaces the red and black areas: the fixation of R is likely to occur in most of the νδ diagram. In addition to the population make-up, the average population size is a decreasing function of ν at fixed δ, and increasing with δ at fixed ν; see figure 4d,e and §4.1, and [2125].

Figure 2.

Figure 2.

Eco-evolutionary dynamics in the phase diagram of the joint fixation and coexistence probability. (ac) Fixation and coexistence joint probability in silico at a given environmental bias δ and mean switching frequency ν for s = 0.1, a = 0.25, K = 120 and K+ = 1000 at resistant cooperation thresholds Nth=60,80and100; see the discussions in §§3.3 and 4.2, and electronic supplementary material, section D.3 [42] for the behaviour at much larger populations and thresholds. Stronger blue (red) depicts a higher fixation probability of R (S). Darker colour indicates higher coexistence probability, defined as the probability to not reach any fixation before t = 2〈N〉, where we take the average total population in its stationary state. The area enclosed within the green solid line indicates the optimal regime for the eradication of R; see §3.4. The white asterisks in (b) depict the environmental statistics for each of the bottom panels. (df) Sample paths for the carrying capacity (K, black), number of R (NR, blue), number of S (NS, red) and fixed cooperation threshold Nth = 80 (dashed blue) for the environmental parameters (ν, δ) depicted by the corresponding white asterisk in (b). The high environmental switching frequency in (f) results in an effectively constant carrying capacity (K=K, dotted line); see §3.2.

Figure 4.

Figure 4.

Total population, strain abundance and coexistence composition in fluctuating environments. (ac) In silico probability distributions of the total population (N, green), number of R (NR, blue) and number of S (NS, red), with parameters s = 0.1, a = 0.25, K = 120, K+ = 1000 and Nth = 80, under no environmental bias (δ = 0) and for mean switching rates in slow ν = 10−4 (a), intermediate ν = 10−1 (b), and fast ν = 102 (c) conditions. Histograms are smoothed by a Gaussian filter of width σ = 10 in cell number. (d) Average overall population (number of individuals on the vertical axis) and strain abundances under no bias, i.e. δ = 0, as a function of switching rate ν; colours as in (ac). Lines are smoothed by a log-scale Gaussian filter of width σ = 10, i.e. one frequency decade. (e) Average overall population size in dynamic environments. (f) Coexistence composition and fixation probability (of any strain) in dynamic environments. Stronger blue (red) depicts a higher coexistence fraction of R (S). Lighter colour indicates lower coexistence probability, defined as the probability for no fixation event to occur before t = 2〈N〉. The white and black asterisks in (e,f) depict the environmental statistics for each of the top panels. All panels are computed at quasi-stationarity reached after a time t = 2〈K〉, ensuring that N reaches its (quasi-)stationary state, where 〈N〉 ≤ 〈K〉; see text.

In what follows, we analyse the different phases of figure 2ac, focusing particularly on the characterisation of the red area, and also determine how NR varies with the environmental parameters in the different phases. This allows us to determine the most favourable environmental conditions for the eradication of R and for the reduction of the population of pathogenic cells, which are issues of great biological and practical relevance.

3.2. Weak demographic noise promotes coexistence

To gain an intuitive understanding of the model’s eco-evolutionary dynamics, it is useful to discuss the sample paths of figures 1b,c and 2df in terms of the population size N and the R fraction x = NR/N.

It is instructive to first consider the case of very large population arising with a constant and large carrying capacity K(t) = K0 ≫ 1. In this setting, corresponding to a static environment, we ignore all forms of fluctuations and the system evolves according to the mean-field (deterministic) differential equations

N˙=α=R,S(Tα+Tα)=N(1NK0) 3.1

and

x˙=ddtNRN=TR+TRNxN˙N=(aθ[NthxN]s)x(1x)(1aθ[NthxN])+(aθ[NthxN]s)x, 3.2

where the dot indicates the time derivative. It is clear from equation (3.2) that the dynamics of the population composition, given by x, is coupled to that of its size N. According to the logistic equation (3.1), the population size reaches N = K0 on a time scale t ∼ 1 independently of x, while the population composition is characterised by a stable equilibrium x = xthNth/N = Nth/K0 reached on a time scale of t ∼ 1/s or ∼1/(as) from x > Nth/N or <Nth/N, respectively. When s < a ≪ 1, there is a time-scale separation, with N relaxing to its equilibrium much faster than x. We note that the coexistence equilibrium in terms of R and S is NReq=Nth and NSeq=K0Nth. Clearly, this suggests that S would unavoidably be wiped out if Nth was greater than the carrying capacity, and hence we always consider that the latter exceeds the cooperation threshold (K > Nth).

When the population is large enough for demographic fluctuations to be negligible (1/N0) and the sole source of randomness stems from the time-fluctuating environment (random switches of the carrying capacity), the dynamics becomes a so-called piecewise deterministic Markov process (PDMP) [78]. Between each environmental switch, the dynamics is deterministic and given by equations (3.1), with K0 replaced by K± in the environmental state ξ = ±1, and (3.2). Here, the PDMP is thus defined by

N˙=N(1NK(t))={N(1NK),ifξ=1N(1NK+),ifξ=1, 3.3

where the fluctuating carrying capacity K(t) is given by equation (2.4), coupled to (3.2). Sample paths of this PDMP are shown as solid lines in figures 1b,c and 2df. These realisations illustrate that N(t) tracks the switching carrying capacity K(t) independently of x, while x(t) evolves towards the coexistence equilibrium at the cooperation threshold xth(t) = Nth/N(t), which changes in time as N varies. Hence, x increases when NR < Nth, and it decreases when NR > Nth. For extremely high environmental switching rate ν → ∞, the microbial community experiences a large number of switches, between any update of the population make-up. In this case, N is not able to track K(t), but experiences an effectively constant carrying capacity K=K1/1/K(t) obtained by self-averaging the environmental noise over its stationary distribution (see [21,22,2426]), leading to K=2K+K/[(1δ)K++(1+δ)K]. Hence, when ν → ∞, the community size is approximately NK and, provided that δ is not too close to −1 (K not too close to K), long-lived coexistence of both strains is likely (with abundances NRNth and NSKNth), as shown in figure 2f.

3.3. Antimicrobial resistance is robust to demographic noise in static environments

When EV causes a population bottleneck, DN about the coexistence equilibrium may cause the extinction of one strain and the fixation of the other (see figures 1b,c and 2d,e). To elucidate the fate of microbial communities under fluctuating environments, it is therefore necessary to first understand how a small community is able to fixate, or avoid extinction, in a static environment, when it is subject to a constant carrying capacity K0, with 1 ≪ K0KK+. This condition ensures both fixation of one strain or long-lived coexistence are possible, i.e. demographic fluctuations, of order O(1/K0), matter but do not govern the dynamics.

Since the community composition tends to the coexistence equilibrium xxth (see equation (3.2)), the faster N dynamics reaches its steady state NK0 before any fixation/extinction events occur (see equation (3.1)). Therefore, we assume a fixed N = K0. The evolutionary dynamics is thus modelled by the analytically tractable Moran process [14,16,21,25,58,59], where the population composition evolves stochastically by balancing each birth/death of R by the simultaneous death/birth of a S, according to the reactions

NR+NST~R+(NR+1)+(NS1)

and

NR+NST~R(NR1)+(NS+1),

with the effective transition rates T~R±=TR±TS/N obtained from (2.2) [21,25].

Due to DN, the R fraction fluctuates around xth until the eventual extinction of a strain. Therefore, from the classic Moran results (electronic supplementary material, equation (S6) in [42]), we can derive a simplified, approximated expression for the R fixation probability by setting any initial composition directly at coexistence x0 = xth, which yields

ϕ11+1/(1s)K0K0withK0Nthln(1a)ln(1s)ln(s(1a)/(as))ln(1s), 3.4

where we now assumed (1a)Nth(1s)Nth and (1s)K0(1s)Nth, which is in line with our choices 0 < s < a < 1 and Nth < K0. Here, K0* is the microbial population size giving the same fixation probability 1/2 to R and S. In our examples, s = 0.1 and a = 0.25 (see §3.1), and fixation equiprobability is reached at K0* ≈ 3Nth, where the R and S abundance in the long-lived coexistence equilibrium are, respectively, NReqK0/3 and NSeq2K0/3. Figure 3a shows the excellent agreement between the approximation (3.4) (solid lines) and the exact R fixation probability of the underlying Moran process of electronic supplementary material, equation (S6) (dotted lines), for different cooperation thresholds (Nth = 20–100).4

Figure 3.

Figure 3.

Moran theory for R fixation probability and mean coexistence time (MCT) in static environments. (a) R fixation probability ϕ in terms of the total microbial population normalised by the resistant cooperation threshold K0/Nth for five example thresholds, from Nth = 20 (dark green) to 100 (yellow green); the starting microbial composition is set at the coexistence equilibrium xth = Nth/K0; solid lines show the approximated prediction of equation (3.4); dotted lines depict the exact Moran behaviour of electronic supplementary material, equation (S6) [42], only distinguishable for the smallest threshold; open diamonds illustrate the predicted K0*/Nth that provides fixation equiprobability for each resistant cooperation threshold, see §3.3. (b) Mean coexistence time versus K0/Nth in log-linear scale; solid lines show the exact Moran MCT, computed from electronic supplementary material, equation (S8); legend and symbols as in (a).

Equation (3.4) and figure 3a,b show that, in a static environment, the relative magnitude of the carrying-capacity-to-threshold ratio K0/Nth with respect to K0*/Nth ≈ ln(1 − a)/ln(1 − s) clearly determines whether R fixates (for smaller K0/Nth), becomes extinct (larger K0/Nth), or coexists with S for a long time (larger K0/Nth and large populations). To interpret these results, we remember that the mean field behaviour tends to NR = Nth and NS = K0Nth. When K0/Nth ∼ 1, NSK0Nth is small, and S is prone to extinction (R fixates). As the total population K0 increases (at fixed cooperation threshold Nth), the equilibrium value NSK0Nth increases, making S less likely to go extinct. The fixation probability of S thus rises, and overcomes that of the strain R when K0 > K0*. However, the expected time for the fixation of S increases exponentially with K0 and, for large enough cooperation thresholds (typically for Nth > 50), fixation takes too long and is unobservable in practice; see figure 3b. Note that the expected S fixation time (or R extinction time) saturates for K0 > K0* because the equilibrium value NRNth is independent of the total population K0. For all examples in figure 2ac, we have K0=K+=1000>K0 when δ = 1 and K0=K=120<K0 when δ = −1. This explains the dark areas (coexistence) in figure 2b,c where δ → 1, and the blue regions (R fixation) where δ → −1. In figure 2a, we observe dark regions (coexistence) for both δ = ±1 as the MCT is always larger than the coexistence threshold (t > 2K0). Therefore, it appears that in static environments AMR always dominates or, at least, survives for extended periods.

3.4. Demographic noise can eradicate antimicrobial resistance in fluctuating environments

Under low and high environmental switching rates, the community behaves as in static total populations of size K± and K, respectively; see electronic supplementary material, sections D.1 and D.2. Richer and novel dynamical behaviour arises at intermediate switching rate (in figure 2ac, see red areas around ν = 10−2–100), when there are several environmental switches prior to fixation, and the quantities ϕ and Pcoex cannot be simply expressed in terms of their counterparts in a population of constant effective size. This switching regime is characterised by the full interplay of the ecological and evolutionary dynamics: as shown in figures 1b and 2e, environmental switches can thus lead to transient ‘bumps’ and ‘dips’ in NR (after the carrying capacity increases KK+ or decreases K+K, respectively). The transient NR dips, together with demographic fluctuations caused by the population bottleneck (K+K), can thus lead to the rapid eradication of R with the fixation of S (red areas in figure 2ac). Each dip has a small but non-negligible probability to eradicate R and hence reduces the expected coexistence time. Therefore, the ingredients for this fluctuation-driven AMR eradication mechanism are: (i) intermediate environmental switching, so that the total population N fluctuates by tracking K(t) without lagging behind (see green lines in figure 1b); (ii) a slower population composition x coupled to the faster N, so that the R population NR = xN experiences transient bumps and dips about its equilibrium NRNth (see blue lines in figure 1b,c); and (iii) a small number of R at the bottom of transient dips NR ∼ 1, so that DN can drive R to extinction (see blue noisy line in figure 1b).

Here, we are interested in characterising the transient NR dips as the main fluctuation-driven mechanism leading to the possible eradication of R. To study their properties, it is useful to consider the PDMP description of the transient R behaviour in large populations

NR˙=TR+TR=(as)NR(αR(NR/K(t)))(1a)+(as)NR/N(t),withαR(1s)K(t)(1a)N(t)(as)K(t), 3.5

where K(t) and N(t) are, respectively, given by equations (2.4) and (3.3), and we assume NR < Nth. We note that, after a switch from the mild to harsh environment (K+K) in the absence of DN, R always survives the ensuing transient dip, and NR rises towards the coexistence equilibrium NR = Nth; see thick solid line in figure 1b. However, when KK+ and the microbial community experiences a population bottleneck, a transient dip to a small value of NR can form. When this occurs, R is prone to extinction caused by non-negligible demographic fluctuations (stronger when NR is small).

To characterise the region of the νδ phase diagram where transient NR dips cause eradication of R, we need to estimate tdip, defined as the time from the onset of the dip to when NR reaches its minimal value according to equation (3.5), see figure 1b. To determine tdip from (3.5), we require NR˙(tdip)=0, which, assuming K+K ≫ 1, yields αR = NR(tdip)/K ≈ 0, implying N(tdip) ≈ K(1 − s)/(1 − a). From the solution of equation (3.1) with the initial condition N(t = 0) ≈ K+, we find

tdipln[1sas(1KK+)]. 3.6

Ignoring DN, we can thus estimate the R population at the bottom of the transient dip NRdip, reached at t = tdip. This is, we find the R fraction at the bottom of the dip x(tdip) in the small x limit of equation (3.2) and combine it with the above N(tdip) to obtain (see electronic supplementary material, section D.3 [42]):

NRdip=x(tdip)N(tdip)NthKK+1s1a(1sas)(as)/(1a)NthKK+, 3.7

where we assumed that R started from NR(t = 0) = Nth. Demographic fluctuations at the bottom of a dip are of the order NRdip. For DN to possibly drive R to extinction, and the fluctuation-driven eradication scenario to hold, it is necessary that NRdipNRdip, which requires NRdip=O(1), i.e. NRdip10 or lower. This condition is certainly satisfied when K and Nth are of comparable size (with K > Nth), and each of order K+, which can also hold for realistically large populations of N > 106, see §4.2 and electronic supplementary material, section D.3 [42].

Under these sufficient requirements, the optimal environmental conditions to rapidly eradicate R in large but fluctuating populations can be estimated from equations (3.1), (3.2), (3.5) and (3.6). First, in the mild environment (K = K+), R needs to be able to evolve to the coexistence equilibrium NR = Nth, requiring a longer average duration of the mild environment ν+1 when compared with the evolutionary time scale s−1, i.e. ν+1s1. Second, after the switch from mild to harsh environment (K+K), R needs to reach the bottom of the transient dip and experience demographic fluctuations, which imposes an average duration of the harsh environment ν1 longer than the average time to reach the bottom of the dip tdip, that is, ν1tdip. Third, if R survives the dip, the environment should go back to the mild ξ = 1 state to rule out the extinction of S when the environment stays in the harsh state ξ = −1. For this, we require the harsh environment to be short, while ensuring that the dip is not interrupted by a switch; see figure 1b,c. This enforces ν12ln(K+/K)(as)1, where the right-hand side, derived from the small x limit of equation (3.2), is twice the expected time to reach the equilibrium in the harsh state NR = Nth and NS = KNth. As a fourth condition, we demand that this cycle should be as fast as possible to maximise the number of transient dips (while still allowing the population to evolve back to NR = Nth after a bump), yielding ν+12ln(K+/K)s1, which, similarly as in the previous condition, is twice the average time needed to return to equilibrium in the mild state. Using the environmental parameters ν and δ, the above leads to

s2ln(K+/K)νopt(1δopt)sandas2ln(K+/K)νopt(1+δopt)1tdip. 3.8

The green contour lines in figure 2ac enclose the predicted optimal region for the fast eradication of R under s = 0.1, a = 0.25, K = 120 and K = 1000, and fall in the red areas observed in silico. The borders of these regions depend on Nth. This stems from the dependence of ϕ and MCT on Nth (figure 3b) and the criterion for long-lived coexistence (t > 2〈N〉). The conservative prediction (3.8) ignores any dependence on Nth.

In summary, DN can eradicate AMR in fluctuating environments when the population make-up x evolves on a much slower time scale than the population size N, which requires relatively small values of s and a. Moreover, the variability in the carrying capacity K+/K needs to be of the order of the cooperation threshold Nth or larger; the threshold has to fall below the lowest value of the carrying capacity K; and the switching rate ν has to be of order s and hence comparable to the rate of relaxation of the population composition. Note that all conditions above can be met in biologically relevant systems of any size; see §4.2 and electronic supplementary material, section D.3 [42].

4. Discussion

The results of the previous section characterise the long-term microbial population make-up under random switches between mild and harsh environmental conditions (high and low carrying capacity, K = K+ and K, respectively), for a broad range of the exogenous parameters (mean switching frequency ν and switching bias δ). Another important aspect of the time evolution of microbial population concerns the non-trivial impact of the EV on the fraction and abundance of drug-resistant (R) and drug-sensitive (S) microbes in the different regimes, and especially in their phase of coexistence. It is also important to review to what extent our modelling assumptions are amenable to experimental probes.

4.1. Impact of environmental variability on the strains fraction and abundance

It was recently shown that in the fluctuating environment considered here, the average size of the microbial community 〈N〉 is a decreasing function of the random switching rate ν (with δ kept fixed), that 〈N〉 decreases with lower δ (keeping ν fixed), and that 〈N〉 →K± as δ → ±1 [2123,25]; see figure 4d,e. As a consequence, in the blue and red areas of the phase diagrams of figure 2, where only one strain survives (figure 2ac), the surviving pathogenic population can be reduced by increasing the environmental switching frequency ν and/or the time spent in harsh state (by enforcing δ → −1). Moreover, since the R fraction x is directly coupled to N through the cooperation threshold Nth (see equation (3.2)), EV non-trivially shapes the R fraction in the coexistence regime (coloured areas in figure 4f).

Under low switching frequency relative to the rate of evolutionary dynamics (see ν resistance extra metabolic cost s ∼ 10−1 in all figures), R cells starting in the mild environment (K+) are able to reach the coexistence equilibrium NR = Nth before experiencing a switch; see figure 1c. However, if the starting environment is harsh (K), DN can rapidly eradicate S and destroy coexistence (figure 2b,c). The distributions of NR, NS and N in the regime ν → 0 are thus approximately bimodal because they combine both mild and harsh (effectively constant) environments; with NRNth, NSK+Nth and NK+ for the former; and NRK, NS ≈ 0 and NK for the latter; see figure 4a. As the switching rate is increased to νs, fixation dominates, and the NR and NS bimodal distributions become approximately trimodal, i.e. NR/S ≈ 0, K or K+; see figure 4b. The relative weight of the peaks at NR/S ≈ 0 is set by S/R fixation probability, which is modulated by the environmental bias δ, see electronic supplementary material, equation (S9) [42]. The total population distribution is still bimodal about N = K± since its relaxation dynamics (of time scale ∼1; see equation (3.1)) is faster than the evolutionary time scale of approximately s−1. Finally, when ν is increased further (νs), we enter the coexistence regime characterised by an effective carrying capacity K=K [2126], and all distributions become unimodal about the coexistence equilibrium NRNth, NSKNth and NK; see figure 4c.

As a consequence, if R is eradicated, imposing high EV (νs) and harsh conditions δ → −1 would considerably reduce the abundance of the surviving community of pathogenic S cells; see figure 4d, green solid line, and figure 4e. However, if R survives, imposing ν ≫ 1 and δ < 0 would not only decrease the abundance of both strains but it would also increase the R fraction, and risk further AMR spreading, see figure 4f (magenta/bluish areas).

4.2. Review of the modelling assumptions

Since we study an idealised microbial model, it is important to review our modelling assumptions in light of realistic laboratory experimental conditions. A key assumption to consider is the effectively sharp cooperation threshold Nth, which is based on a number of experimental observations of microbial cooperation; see [3436,52]. Accordingly, we have assumed that EV changes chemical concentrations (e.g. nutrient density) while the volume of the microbial ecosystem is kept constant [52]. The cooperation threshold is then fixed at a constant number of R microbes NR = Nth because, at constant volume, the resistance enzyme concentration is proportional to the number of public good producers R. This crucial ingredient fixes the stable number of R at Nth across fluctuating environments, and is responsible for the transient dips which are at the origin of the novel eco-evolutionary mechanism for the eradication of AMR reported here. The complementary scenario, where the cooperation threshold is set by a fixed R fraction xth is also relevant (for a different set of microbial ecosystems), and is a topic for future research. Furthermore, in some microbial cases, R could regulate the production of resistance enzyme by quorum sensing [79], but its impact on cooperative AMR remains an open problem. We also note that some resistance mechanisms can show anti-cooperative behaviour, such as efflux-pumps, which could result in an enhanced exposure of sensitive cells to the drug [80,81]. In the case of non-shared resistance mechanisms, our model reduces to the eco-evolutionary processes studied in [2123,25]. Further analytical results for the non-shared resistance models are discussed in [82], as well as in [8385] in the case of a static environment.

A second assumption to review concerns the simulation results obtained here, for systems with K± ∼ 102−103 and Nth ∼ 100, that we are able to computationally probe (see electronic supplementary material, section A [42]) but that correspond to populations of relatively small size. In electronic supplementary material, section D.3, we provide a detailed discussion on how the rich microbial behaviour and novel eco-evolutionary AMR eradication mechanism reported here can be translated to larger, more realistic, microbial communities of size of order N106 [52] to N108 [31,8689], or higher. In our discussion, we argue that, as long as NthK/K+10 and 0<s<a101–102, regardless of the magnitude of K± or Nth, the transient dips studied here will drag R close to extinction, where demographic fluctuations are instrumental for the likely and rapid eradication of AMR. Note that, for very fast/slow fluctuating environments, where transient dips are hindered (see §3.4), R and S populations will always coexist unless KNth10.

A specificity of our study is its focus on biostatic antimicrobial drugs. However, since most antimicrobials gradually change from acting as biostatic to biocidal as their concentration in the medium grows [5355], our approach is consistent with a low antimicrobial concentration scenario. Conveniently, the combined biostatic effect of the drug and the normalisation of strain fitness in equation (2.2) [14,16] decouples the total population N from its composition x. If any of the above conditions would not hold, N would then directly depend on x, a case already studied for a simpler model in [21,25]. It is worth noting that we have confirmed that the main findings reported here are robust, as they do not depend crucially on the detailed choice of the transition rates in equation (2.2), and in particular they are found to be essentially independent of the normalisation by the average fitness; see §§2.1 and 3.3. We also note that the values used in our examples for the extra metabolic cost to generate the resistance enzyme (s10% to 25%), and for the impact of the antimicrobial drug on S growth (a25% to 50%), while only indicative, are plausible figures [76,77].

For the sake of simplicity, we have focused on modelling EV through binary switches of the carrying capacity. These switches capture sudden changes in the available resources (as in feast and famine cycles [13,60]) that can also occur in the presence of antimicrobial drugs, e.g. in polluted environments or during drug treatment. In the context of evolutionary processes, environments that fluctuate via random switches are commonly modelled in terms of dichotomous Markov noise (DMN), also known as telegraph noise [2226,32,4648,61,62]. Moreover, binary switching is the standard way to implement EV in laboratory-controlled experiments, where the concentration of nutrients can be regulated in a chemostat set-up [6366]. Although laboratory experiments are often carried out with periodically switching environments (e.g. [63,64]), and natural environmental conditions often vary continuously in time and magnitude (e.g. [66]), the relationship between DMN and other commonly used forms of EV has already been extensively studied [24,46,47]. Therefore, our choice of modelling EV with DMN is natural, convenient and non-limiting: it allows us to make mathematical progress while keeping the theoretical modelling close to laboratory experimental conditions. The literature suggests that the essence of our findings are expected to hold for general fluctuating environments with a time-varying carrying capacity, but the extent to which other and more complex forms of EV than binary random switching may alter our results for microbial communities exhibiting cooperative AMR remains a problem to be studied.

Finally, we note that the novel eco-evolutionary mechanisms reported in this study to eradicate cooperative AMR, and to reduce the total pathogenic microbial community, or minimise the coexistence fraction of R, all take place at a biologically and clinically relevant range of environmental switching rates. Indeed, although our theoretical study does not set a specific time scale of microbial growth, a plausible rough estimate for a single replication cycle of a microbe could be of the order of approximately 1 h. The novel AMR eradication mechanism at νs then comes into play when a single environmental phase lasts, on average, s−1 ∼ 10 h. This could be consistent with the periodic administration of a treatment that enforces microbial population bottlenecks, and is a feasible time scale for laboratory experiments. Our idealised model, however, assumes a homeostatic influx of antimicrobial drug in all environments. Thus, an interesting approach for future work would involve the joint application of antimicrobial drug and population bottlenecks (in the harsh environment), with no drug administered in the mild environmental state.

5. Conclusion

Understanding how EV affects the demographic and ecological evolution of microbes is central to tackle the threat of AMR, an issue of pressing societal concern [33]. Central questions in studying AMR involve how the fraction of resistant microbes changes in time, and by what mechanisms these can possibly be eradicated.

It is well established that AMR is an emergent property of microbial communities, shaped by complex interactions. In particular, certain resistant cells able to inactivate antimicrobials can, under certain conditions, protect the entire microbial community. This mechanism can hence be viewed as an AMR cooperative behaviour. Moreover, microbial populations are subject to changing conditions. For instance, the size of a microbial population can vary greatly with the variation of the nutrients or toxins, and can e.g. experience bottlenecks. As a result of evolving in volatile environments, microbial communities are prone to be shaped by fluctuations. In general, these stem from EV (exogenous noise) and, chiefly in small populations, from DN. The underlying eco-evolutionary dynamics, characterised by the coupling of DN and EV, is ubiquitous in microbial ecosystems and plays a key role to understand the AMR evolution, but is still rather poorly understood.

In this work, we have studied an idealised model of cooperative AMR where a well-mixed, microbial population consisting of sensitive and resistant cells is treated with an antimicrobial (biostatic) drug, hindering microbial growth, in a fluctuating environment. The latter is modelled by a binary switching carrying capacity that fluctuates between two values corresponding to mild and harsh conditions (high/low values, respectively). Based on a body of experimental work [3439], we assume that resistant cells produce, at a metabolic cost, an enzyme that inactivates the antimicrobial drug. Importantly, the abundance of resistant microbes is thus a proxy for the concentration of the drug-inactivating enzyme, which above a certain abundance threshold, becomes a public good by providing drug protection, at no metabolic cost, to the sensitive strain. Above the cooperative threshold, the latter hence have a fitness advantage over the resistant strain, whereas, below the threshold, the drug is responsible for a reduced fitness of the sensitive cells. In this setting, the evolution of AMR can be viewed as a public good problem in a varying environment, whose outcome is shaped by the coupling of environmental and demographic fluctuations.

We have identified three regimes characterising the eco-evolutionary dynamics of the model, associated with the fixation of the resistant or sensitive microbes, or with the long-lived coexistence of both strains. Our analysis shows that, while AMR generally survives, and often prevails, in static environments, a very different scenario can emerge under EV. In fact, we demonstrate that fluctuations between mild and harsh conditions, coupled to DN, can lead to ‘transient dips’ in the abundance of resistant microbes, which can then be driven to extinction by demographic fluctuations. Here, we determine that this fluctuation-driven AMR eradication mechanism occurs when the rate of environmental change is comparable to that of the relaxation of the evolutionary dynamics (νs). By computational means, we show that this fluctuation-driven mechanism speeds up the eradication of resistant cells, and argue that it holds also for large microbial communities, comparable to those used in laboratory experiments (N > 106). We have also studied how EV non-trivially affects the strain abundance in the various regimes of the model, and in particular have determined the complex long-lived distribution of the fraction of resistant cells when both strains coexist and the environment fluctuates.

In conclusion, we have shown the existence of a biophysically plausible novel mechanism, driven by the coupling of EV and DN, to eradicate resistant microbes, and have demonstrated how EV shapes the long-lived microbial population in the possible scenarios of strains coexistence or fixation. Our work thus paves the way for numerous possible applications, for instance, in microbial experiments with controlled environmental fluctuations (it is currently possible to track even individual microbes; e.g. [90,91]), which might shed light on new possible treatments against AMR in real-world clinical infections.

Acknowledgements

We are grateful to K. Distefano, J. Jiménez, S. Muñoz Montero, M. Pleimling, M. Swailem and U.C. Täuber for useful discussions. This work was undertaken on ARC4, part of the High Performance Computing facilities at the University of Leeds, UK.

Endnotes

1

Here, for simplicity, we focus on biostatic drugs that reduce growth rate of sensitive cells S. Biocidal drugs would increase the death rate of S. In fact, our choice is not particularly limiting since the effect of a same drug can be either biostatic or biocidal, depending on the concentration of cells, and antimicrobial [5355].

2

The model will finally settle in the absorbing state NR = NS = 0, which corresponds to the eventual extinction of the entire population. This occurs after a time that grows exponentially with the system size and that is unobservable when, as here, K(t) ≫ 1 [21,23,25,68]. This phenomenon, irrelevant for our purposes, is not considered here.

3

The rationale is that the MCT in two-strategy evolutionary games scales linearly with 〈N〉 in neutral regimes, exponentially with 〈N〉 in coexistence regimes and sublinearly with 〈N〉 in regimes where a strain dominates [57,7073]; see also [74,75]. Therefore, t > 2〈N〉 is a conservative proxy of coexistence, since it allows us to distinguish between regimes where one of the strains dominates and fixates in a time t ≤ 2〈N〉 from a phase of long-lived coexistence (prior to the eventual fixation of one strain, after a time practically unobservable when 〈N〉 ≫ 1).

4

We note that, in the full model simulations at static environments, the total population N is not fixed but fluctuates about K0. In electronic supplementary material, section C [42], we discuss the minor quantitative impact of these N fluctuations on the fixation probability and MCT, see electronic supplementary material, figure S1.

Contributor Information

Lluís Hernández-Navarro, Email: L.Hernandez-Navarro@leeds.ac.uk.

Mauro Mobilia, Email: M.Mobilia@leeds.ac.uk.

Ethics

This work did not require ethical approval from a human subject or animal welfare committee.

Data accessibility

Simulation data and codes for all figures are electronically available from the University of Leeds Data Repository: https://doi.org/10.5518/1360.

Technical and computational details are provided in electronic supplementary material [42].

Declaration of AI use

We have not used AI-assisted technologies in creating this article.

Authors' contributions

L.H.-N.: conceptualization (supporting), formal analysis (lead), investigation, methodology, software, validation, visualization, writing—original draft, writing—review and editing; M.A.: formal analysis (supporting), investigation, software, validation, writing—review and editing (supporting); A.M.R.: funding acquisition (supporting), supervision (supporting), writing—review and editing (supporting); M.M.: conceptualization (lead), formal analysis (supporting), funding acquisition (lead), methodology (lead), project administration, supervision (lead), visualization, writing—original draft, writing—review and editing.

All authors gave final approval for publication and agreed to be held accountable for the work performed therein.

Contributor roles taxonomy by CRediT [92].

Conflict of interest declaration

We declare we have no competing interests.

Funding

L.H.-N., A.M.R and M.M. gratefully acknowledge funding from the U.K. Engineering and Physical Sciences Research Council (EPSRC) under the grant no. EP/V014439/1 for the project ‘DMS-EPSRC Eco-Evolutionary Dynamics of Fluctuating Populations’ (https://eedfp.com/). The support of a PhD scholarship to M.A. by the EPSRC grant no. EP/T517860/1 is also thankfully acknowledged.

References

  • 1.Himeoka Y, Mitarai N. 2020. Dynamics of bacterial populations under the feast-famine cycles. Phys. Rev. Res. 2, 013372. ( 10.1103/PhysRevResearch.2.013372) [DOI] [Google Scholar]
  • 2.Merritt J, Kuehn S. 2018. Frequency- and amplitude-dependent microbial population dynamics during cycles of feast and famine. Phys. Rev. Lett. 121, 098101. ( 10.1103/PhysRevLett.121.098101) [DOI] [PubMed] [Google Scholar]
  • 3.Srinivasan S, Kjelleberg S. 1998. Cycles of famine and feast: the starvation and outgrowth strategies of a marine vibrio. J. Biosci. 23, 501. ( 10.1007/BF02936144) [DOI] [Google Scholar]
  • 4.Chesson P. 1994. Multispecies competition in variable environments. Theor. Pop. Biol. 45, 227. ( 10.1006/tpbi.1994.1013) [DOI] [Google Scholar]
  • 5.Chesson P. 2000. Mechanisms of maintenance of species diversity. Annu. Rev. Ecol. Syst. 31, 343. ( 10.1146/annurev.ecolsys.31.1.343) [DOI] [Google Scholar]
  • 6.Chesson PL, Warner RR. 1981. Environmental variability promotes coexistence in lottery competitive systems. Am. Nat. 117, 923. ( 10.1086/283778) [DOI] [Google Scholar]
  • 7.Ellner SP, Snyder RE, Adler PB, Hooker G. 2019. An expanded modern coexistence theory for empirical applications. Ecol. Lett. 22, 3. ( 10.1111/ele.13159) [DOI] [PubMed] [Google Scholar]
  • 8.Fox JW. 2013. The intermediate disturbance hypothesis should be abandoned. Trends Ecol. Evol. 28, 86. ( 10.1016/j.tree.2012.08.014) [DOI] [PubMed] [Google Scholar]
  • 9.Gaál B, Pitchford JW, Wood AJ. 2010. Exact results for the evolution of stochastic switching in variable asymmetric environments. Genetics 184, 1113-1119. ( 10.1534/genetics.109.113431) [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 10.Grime JP. 1973. Evidence for the existence of three primary strategies in plants and its relevance to ecologicaland evolutionary theory. Am. Nat. 111, 1169. ( 10.1086/283244) [DOI] [Google Scholar]
  • 11.Murugan A, et al. 2021. Roadmap on biology in time varying environments. Phys. Biol. 18, 041502. ( 10.1088/1478-3975/abde8d) [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 12.Miller AD, Roxburgh SH, Shea K. 2011. How frequency and intensity shape diversity-disturbance relationships. Proc. Natl Acad. Sci. USA 108, 5643. ( 10.1073/pnas.1018594108) [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 13.Visco P, Allen RJ, Majumdar SN, Evans MR. 2010. Switching and growth for microbial populations in catastrophic responsive environments. Biophys. J. 98, 1099-1108. ( 10.1016/j.bpj.2009.11.049) [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 14.Blythe RA, McKane AJ. 2007. Stochastic models of evolution in genetics, ecology and linguistics. J. Stat. Mech. 2007, P07018. ( 10.1088/1742-5468/2007/07/P07018) [DOI] [Google Scholar]
  • 15.Crow JFF, Kimura M. 2009. An introduction to population genetics theory. Caldwell, NJ: Blackburn Press. [Google Scholar]
  • 16.Ewens WJ. 2004. Mathematical population genetics. New York, NY: Springer. [Google Scholar]
  • 17.Wang G, L Wang QS, Plotkin JB. 2023. Reproductive variance can drive behavioral dynamics. Proc. Natl Acad. Sci. USA 120, e216218120. ( 10.1073/pnas.2216218120) [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 18.Roughgarden J. 1979. Theory of population genetics and evolutionary ecology: an introduction. New York, NY: Macmillan. [Google Scholar]
  • 19.Harrington KI, Sanchez A. 2014. Eco-evolutionary dynamics of complex strategies in microbial communities. Commun. Integr. Biol. 7, e28230. ( 10.4161/cib.28230) [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 20.Pelletier F, Garant D, Hendry HP. 2009. Eco-evolutionary dynamics. Phil. Trans. R. Soc. B 364, 1483. ( 10.1098/rstb.2009.0027) [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 21.Wienand K, Frey E, Mobilia M. 2018. Eco-evolutionary dynamics of a population with randomly switching carrying capacity. J. R. Soc. Interface 15, 20180343. ( 10.1098/rsif.2018.0343) [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 22.Shibasaki S, Mobilia M, Mitri S. 2021. Exclusion of the fittest predicts microbial community diversity in fluctuating environments. J. R. Soc. Interface 18, 20210613. ( 10.1098/rsif.2021.0613) [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 23.Taitelbaum A, West R, Assaf M, Mobilia M. 2020. Population dynamics in a changing environment: random versus periodic switching. Phys. Rev. Lett. 125, 048105. ( 10.1103/PhysRevLett.125.048105) [DOI] [PubMed] [Google Scholar]
  • 24.Taitelbaum A, West R, Mobilia M, Assaf M. 2023. Evolutionary dynamics in a varying environment: continuous versus discrete noise. Phys. Rev. Res. 5, L022004. ( 10.1103/PhysRevResearch.5.L022004) [DOI] [Google Scholar]
  • 25.Wienand K, Frey E, Mobilia M. 2017. Evolution of a fluctuating population in a randomly switching environment. Phys. Rev. Lett. 119, 158301. ( 10.1103/PhysRevLett.119.158301) [DOI] [PubMed] [Google Scholar]
  • 26.West R, Mobilia M. 2020. Fixation properties of rock-paper-scissors games in fluctuating populations. J. Theor. Biol. 491, 110135. ( 10.1016/j.jtbi.2019.110135) [DOI] [PubMed] [Google Scholar]
  • 27.Brockhurst MA, Buckling A, Gardner A. 2007. Population bottlenecks promote cooperation in bacterial biofilms. Curr. Biol. 17, 761. ( 10.1016/j.cub.2007.02.057) [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 28.Brockhurst MA. 2007. Population bottlenecks promote cooperation in bacterial biofilms. PLoS ONE 2, e634. ( 10.1371/journal.pone.0000634) [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 29.Patwas Z, Wahl LM. 2009. Adaptation rates of lytic viruses depend critically on whether host cells survive the bottleneck. Evolution 64, 1166. ( 10.1111/j.1558-5646.2009.00887.x) [DOI] [PubMed] [Google Scholar]
  • 30.Wahl LM, Gerrish PJ, Saika-Voivod I. 2002. Evaluating the impact of population bottlenecks in experimental evolution. Genetics 162, 961. ( 10.1093/genetics/162.2.961) [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 31.Coates J, Park BR, Le D, Şimşek E, Chaudhry W, Kim M. 2018. Antibiotic-induced population fluctuations and stochastic clearance of bacteria. eLife 7, e32976. ( 10.7554/eLife.32976) [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 32.Marrec L, Bitbol A-F. 2020. Resist or perish: fate of a microbial population subjected to a periodic presence of antimicrobial. PLoS Comput. Biol. 16, e1007798. ( 10.1371/journal.pcbi.1007798) [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 33.O’Neill J. 2016. Tackling drug-resistant infections globally: final report and recommendations. Government of the United Kingdom, Analysis and Policy Observatory. See https://apo.org.au/node/63983.
  • 34.Davies J. 1994. Inactivation of antibiotics and the dissemination of resistance genes. Science 264, 375-382. ( 10.1126/science.8153624) [DOI] [PubMed] [Google Scholar]
  • 35.Wright GD. 2005. Bacterial resistance to antibiotics: enzymatic degradation and modification. Adv. Drug Deliv. Rev. 57, 1451. ( 10.1016/j.addr.2005.04.002) [DOI] [PubMed] [Google Scholar]
  • 36.Yurtsev EA, Chao HX, Datta MS, Artemova T, Gore J. 2013. Bacterial cheating drives the population dynamics of cooperative antibiotic resistance plasmids. Mol. Syst. Biol. 9, 683. ( 10.1038/msb.2013.39) [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 37.Bottery MJ, Wood AJ, Brockhurst MA. 2016. Selective conditions for a multidrug resistance plasmid depend on the sociality of antibiotic resistance. Antimicrob. Agents Chemother. 60, 2524-2527. ( 10.1128/AAC.02441-15) [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 38.Meredith HR, Srimani JK, Lee AJ, Lopatkin AJ, You L. 2015. Collective antibiotic tolerance: mechanisms, dynamics and intervention. Nat. Chem. Biol. 11, 182-188. ( 10.1038/nchembio.1754) [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 39.Vega NM, Gore J. 2014. Collective antibiotic resistance: mechanisms and implications. Curr. Opin. Microbiol. 21, 28-34. ( 10.1016/j.mib.2014.09.003) [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 40.Stegen JC, Lin X, Konopka AE, Fredrickson JK. 2012. Stochastic and deterministic assembly processes in subsurface microbial communities. ISME J. 6, 1653-1664. ( 10.1038/ismej.2012.22) [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 41.Shade A, et al. 2012. Fundamentals of microbial community resistance and resilience. Front. Microbiol. 3, 1-15. ( 10.3389/fmicb.2012.00417) [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 42.Hernández-Navarro L, Asker M, Rucklidge AM, Mobilia M. 2023. Coupled environmental and demographic fluctuations shape the evolution of cooperative antimicrobial resistance. Figshare. ( 10.6084/m9.figshare.c.6887469) [DOI] [PMC free article] [PubMed]
  • 43.Brook I. 2004. β-lactamase-producing bacteria in mixed infections. Clin. Microbiol. Infect. 10, 777-784. ( 10.1111/j.1198-743X.2004.00962.x) [DOI] [PubMed] [Google Scholar]
  • 44.Gardiner CW. 2002. Handbook of stochastic methods. New York, NY: Springer. [Google Scholar]
  • 45.van Kampen NG. 1992. Stochastic processes in physics and chemistry. Amsterdam, The Netherlands: North-Holland. [Google Scholar]
  • 46.Bena I. 2006. Dichotomous Markov noise: exact results for out-of-equilibrium systems. Int. J. Mod. Phys. B 20, 2825. ( 10.1142/S0217979206034881) [DOI] [Google Scholar]
  • 47.Horsthemke W, Lefever R. 2006. Noise-induced transitions. Berlin, Germany: Springer. [Google Scholar]
  • 48.Hufton PG, Lin YT, Galla T, McKane AJ. 2016. Intrinsic noise in systems with switching environments. Phys. Rev. E 93, 052119. ( 10.1103/PhysRevE.93.052119) [DOI] [PubMed] [Google Scholar]
  • 49.Brook I. 2009. The role of beta-lactamase-producing-bacteria in mixed infections. BMC Infect. Dis. 9, 1-4. ( 10.1186/1471-2334-9-202) [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 50.Brown SP, Johnstone RA. 2001. Cooperation in the dark: signalling and collective action in quorum-sensing bacteria. Proc. R. Soc. B 268, 961. ( 10.1098/rspb.2001.1609) [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 51.Camilli A, Bassler BL. 2006. Bacterial small-molecule signaling pathways. Science 311, 1113. ( 10.1126/science.1121357) [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 52.Sanchez A, Gore J. 2013. Feedback between population and evolutionary dynamics determines the fate of social microbial populations. PLoS Biol. 11, e1001547. ( 10.1371/journal.pbio.1001547) [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 53.Andersson DI, Patin SM, Nilsson AI, Kugelberg E. 2007. The biological cost of antibiotic resistance. In Enzyme-mediated resistance to antibiotics: mechanisms, dissemination, and prospects for inhibition (eds Bonomo RA, Tolmasky M), pp. 339-348. Washington, DC: ASM Press. [Google Scholar]
  • 54.Hughes D, Andersson DI. 2012. Selection of resistance at lethal and non-lethal antibiotic concentrations. Curr. Opin Microbiol. 15, 555-560. ( 10.1016/j.mib.2012.07.005) [DOI] [PubMed] [Google Scholar]
  • 55.San Millan A, Maclean RC. 2017. Fitness costs of plasmids: a limit to plasmid transmission. Microbiol. Spectr. 5, 5-5. ( 10.1128/microbiolspec.MTBP-0016-2017) [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 56.Traulsen A, Hauert C. 2009. Stochastic evolutionary game dynamics. Rev. Nonlinear Dyn. Complex. 2, 25-61. ( 10.1002/9783527628001.ch2) [DOI] [Google Scholar]
  • 57.Antal T, Scheuring I. 2006. Fixation of strategies for an evolutionary game in finite populations. Bull. Math. Biol. 68, 1923-1944. ( 10.1007/s11538-006-9061-4) [DOI] [PubMed] [Google Scholar]
  • 58.Cremer J, Meilbinger A, Frey E. 2011. Evolutionary and population dynamics: a coupled approach. Phys. Rev. E 84, 051921. ( 10.1103/PhysRevE.84.051921) [DOI] [PubMed] [Google Scholar]
  • 59.Moran PAP. 1962. The statistical processes of evolutionary theory. Oxford, UK: Clarendon. [Google Scholar]
  • 60.Bernhardt JR, Sunday JM, O’Connor MI. 2018. Metabolic theory and the temperature-size rule explain the temperature dependence of population carrying capacity. Am. Nat. 192, 687-697. ( 10.1086/700114) [DOI] [PubMed] [Google Scholar]
  • 61.Hidalgo J, Suweis S, Maritan A. 2017. Species coexistence in a neutral dynamics with environmental noise. J. Theor. Biol. 413, 1-10. ( 10.1016/j.jtbi.2016.11.002) [DOI] [PubMed] [Google Scholar]
  • 62.Thattai M, van Oudenaarden A. 2004. Stochastic gene expression in fluctuating environments. Genetics 167, 523-530. ( 10.1534/genetics.167.1.523) [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 63.Lambert G, Kussell E. 2014. Memory and fitness optimization of bacteria under fluctuating environments. PLoS Genet. 10, e1004556. ( 10.1371/journal.pgen.1004556) [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 64.Acar M, Mettetal J, van Oudenaarden A. 2008. Stochastic switching as a survival strategy in fluctuating environment. Nat. Genet. 40, 471-475. ( 10.1038/ng.110) [DOI] [PubMed] [Google Scholar]
  • 65.Abdul-Rahman F, Tranchina D, Gresham D. 2021. Fluctuating environments maintain genetic diversity through neutral fitness effects and balancing selection. Mol. Biol. Evol. 38, 4362-4375. ( 10.1093/molbev/msab173) [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 66.Nguyen J, Lara-Gutiérrez J, Stocker R. 2021. Environmental fluctuations and their effects on microbial communities, populations and individuals. FEMS Microbiol. Rev. 45, fuaa068. ( 10.1093/femsre/fuaa068) [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 67.Ridolfi L, D’Odorico P, Laio F. 2011. Noise-induced phenomena in the envionmental sciences. Cambridge, UK: Cambridge University Press. [Google Scholar]
  • 68.Spalding C, Doering CR, Flierl GR. 2017. Resonant activation of population extinctions. Phys. Rev. E 96, 042411. ( 10.1103/PhysRevE.96.042411) [DOI] [PubMed] [Google Scholar]
  • 69.Piñero J, Redner S, Solé R. 2022. Fixation and fluctuations in two-species cooperation. J. Phys.: Complex. 3, 015011. ( 10.1088/2632-072X/ac52e7) [DOI] [Google Scholar]
  • 70.Asker M, Hernández-Navarro L, Rucklidge AM, Mobilia M. 2023. Coexistence of competing microbial strains under twofold environmental variability and demographic fluctuations. arXiv. (http://arxiv.org/abs/2307.06314). [DOI] [PMC free article] [PubMed]
  • 71.Assaf M, Mobilia M. 2010. Large fluctuations and fixation in evolutionary games. J. Stat. Mech. 2010, P09009. ( 10.1088/1742-5468/2010/09/P09009) [DOI] [Google Scholar]
  • 72.Assaf M, Mobilia M. 2011. Large fluctuations and fixation in evolutionary games. J. Theor. Biol. 275, 93. ( 10.1016/j.jtbi.2011.01.025) [DOI] [PubMed] [Google Scholar]
  • 73.Cremer J, Reichenbach T, Frey E. 2009. The edge of neutral evolution in social dilemmas. New J. Phys. 11, 093029. ( 10.1088/1367-2630/11/9/093029) [DOI] [Google Scholar]
  • 74.He Q, Mobilia M, Täuber UC. 2011. Coexistence in the two-dimensional May-Leonard model with random rates. Eur. Phys. J. B 82, 97-105. ( 10.1140/epjb/e2011-20259-x) [DOI] [Google Scholar]
  • 75.Reichenbach T, Mobilia M, Frey E. 2007. Mobility promotes and jeopardizes biodiversity in rock–paper–scissors games. Nature 448, 1046-1049. ( 10.1038/nature06095) [DOI] [PubMed] [Google Scholar]
  • 76.Melnyk AH, Wong A, Kassen R. 2015. The fitness costs of antibiotic resistance mutations. Evol. Appl. 8, 273-283. ( 10.1111/eva.12196) [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 77.van der Horst MA, Schuurmans JM, Smid MC, Koenders BB, ter Kuile BH. 2011. De novo acquisition of resistance to three antibiotics by Escherichia coli. Microb. Drug Resist. 17, 141-147. ( 10.1089/mdr.2010.0101) [DOI] [PubMed] [Google Scholar]
  • 78.Davis MHA. 1984. Piecewise-deterministic Markov processes: a general class of non-diffusion stochastic models. J. R. Stat. Soc. B 46, 353-376. ( 10.1111/j.2517-6161.1984.tb01308.x) [DOI] [Google Scholar]
  • 79.Pai A, Tanouchi Y, You L. 2012. Optimality and robustness in quorum sensing (qs)-mediated regulation of a costly public good enzyme. Proc. Natl Acad. Sci. USA 109, 19 810-19 815. ( 10.1073/pnas.1211072109) [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 80.Poole K. 2007. Efflux pumps as antimicrobial resistance mechanisms. Ann. Med. 39, 162-176. ( 10.1080/07853890701195262) [DOI] [PubMed] [Google Scholar]
  • 81.Soto SM. 2013. Role of efflux pumps in the antibiotic resistance of bacteria embedded in a biofilm. Virulence 4, 223-229. ( 10.4161/viru.23724) [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 82.Uecker H, Hermisson J. 2011. On the fixation process of a beneficial mutation in a variable environment. Genetics 188, 915-930. ( 10.1534/genetics.110.124297) [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 83.Lambert A. 2006. Probability of fixation under weak selection: a branching process unifying approach. Theor. Popul. Biol. 69, 419-441. ( 10.1016/j.tpb.2006.01.002) [DOI] [PubMed] [Google Scholar]
  • 84.Parsons TL, Quince C. 2007. Fixation in haploid populations exhibiting density dependence i: the non-neutral case. Theor. Popul. Biol. 72, 121-135. ( 10.1016/j.tpb.2006.11.004) [DOI] [PubMed] [Google Scholar]
  • 85.Patwa Z, Wahl LM. 2008. The fixation probability of beneficial mutations. J. R. Soc. Interface 5, 1279-1289. ( 10.1098/rsif.2008.0248) [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 86.Canetti G. 1956. Dynamic aspects of the pathology and bacteriology of tuberculous lesions. Am. Rev. Tuberc. Pulmon. Dis. 74, 13-21. [DOI] [PubMed] [Google Scholar]
  • 87.Feldman WE. 1976. Concentrations of bacteria in cerebrospinal fluid of patients with bacterial meningitis. J. Pediatr. 88, 549-552. ( 10.1016/S0022-3476(76)80003-0) [DOI] [PubMed] [Google Scholar]
  • 88.Palaci M, et al. 2007. Cavitary disease and quantitative sputum bacillary load in cases of pulmonary tuberculosis. J. Clin. Microbiol. 45, 4064-4066. ( 10.1128/JCM.01780-07) [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 89.Smith MR, Wood WB Jr. 1956. An experimental analysis of the curative action of penicillin in acute bacterial infections: III. The efffect of suppuration upon the antibacterial action of the drug. J. Exp. Med. 103, 509-522. ( 10.1084/jem.103.4.509) [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 90.Bakshi S, Leoncini E, Baker C, Cañas-Duarte SJ, Okumus B, Paulsson J. 2021. Tracking bacterial lineages in complex and dynamic environments with applications for growth control and persistence. Nat. Microbiol. 6, 783-791. ( 10.1038/s41564-021-00900-4) [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 91.Manuse S, Shan Y, Canas-Duarte SJ, Bakshi S, Sun WS, Mori H, Paulsson J, Lewis K. 2021. Bacterial persisters are a stochastically formed subpopulation of low-energy cells. PLoS Biol. 19, e3001194. ( 10.1371/journal.pbio.3001194) [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 92.Brand A, Allen L, Altman M, Hlava M, Scott J. 2015. Beyond authorship: attribution, contribution, collaboration, and credit. Learned Publishing 28, 151-155. ( 10.1087/20150211) [DOI] [Google Scholar]

Associated Data

This section collects any data citations, data availability statements, or supplementary materials included in this article.

Data Citations

  1. Hernández-Navarro L, Asker M, Rucklidge AM, Mobilia M. 2023. Coupled environmental and demographic fluctuations shape the evolution of cooperative antimicrobial resistance. Figshare. ( 10.6084/m9.figshare.c.6887469) [DOI] [PMC free article] [PubMed]

Data Availability Statement

Simulation data and codes for all figures are electronically available from the University of Leeds Data Repository: https://doi.org/10.5518/1360.

Technical and computational details are provided in electronic supplementary material [42].


Articles from Journal of the Royal Society Interface are provided here courtesy of The Royal Society

RESOURCES