Skip to main content
Advertisement
  • Loading metrics

Accuracy of the Lotka-Volterra model fails in strongly coupled microbial consumer-resource systems

Abstract

The generalized Lotka-Volterra (GLV) model is a cornerstone of theoretical ecology for modeling the dynamics emerging from species interactions within complex ecological communities. The GLV is also increasingly being used to infer species interactions and predict dynamics from empirical data on microbial communities, in particular. However, despite its widespread use, the accuracy of the GLV’s pairwise interaction structure in capturing the unseen dynamics of microbial consumer-resource interactions—arising from resource competition and metabolite exchanges—remains unclear. Here, we rigorously quantify how well the GLV can represent the dynamics of a general mathematical model that encapsulates key consumer-resource processes in microbial communities. We find that the GLV significantly misrepresents the feasibility, stability, and reactivity of microbial communities above a threshold biologically feasible level of consumer-resource coupling, because it omits higher-order nonlinear interactions. We show that the probability of the GLV making inaccurate predictions can be quantified by a simple, empirically accessible measure of timescale separation between consumers and resources. These insights advance our understanding of the temporal dynamics of resource-mediated microbial interactions and provide a method for gauging the GLV’s reliability across various empirical and theoretical scenarios.

Author summary

Microbial communities interact by competing for shared nutrients and by cross-feeding on each other’s metabolic byproducts. A widely used approach to model these dynamics is the generalized Lotka-Volterra (GLV) model, which considers only pairwise interactions, under the assumption that resources adjust much faster than populations. We tested when this simplification holds by thoroughly comparing a general resource-explicit consumer-resource model to its GLV approximation. We find that across a wide range of biologically realistic scenarios, the GLV mis-predicts which species persist, how stable the community is, and whether disturbances are amplified before settling (reactivity). These errors are amplified when cross-feeding is strong and when many species prefer similar resources (high niche overlap). The GLV’s pairwise interaction framework breaks down in such strongly coupled, cross-feeding microbial systems because resource and consumer timescales are not well separated. In such cases, tracking key resources and using hybrid modeling will yield more reliable predictions.

Introduction

Microbial communities play an integral role in ecosystems across scales, ranging from their influence on the metabolism of individual organisms [1], to whole-ecosystem biogeochemical cycling [2]. The functioning of any microbial community emerges from the interactions among its constituent species or “strains”. Developing methods to quantify and predict the underlying mechanisms and dynamics of these interactions is a major challenge in both theoretical and applied ecology [1,38]. The rapid development of molecular and ’omics technologies means that relatively high-frequency and taxonomically well-resolved data on microbial communities are burgeoning [911]. These data provide information on the metabolic capacities (“traits”) of individual microbial cells and the interactions between them, offering a means of linking changes in the composition of genetic and functional traits in the community to its emergent phenotype dynamics [1214].

Real-world microbial communities are typically composed of complex interaction networks between trillions of cells, thousands of strains, and hundreds of species. This complexity poses a significant challenge to developing a general theory for microbial communities. To tackle this challenge, both inferential and mechanistic mathematical models of microbial communities are needed [1518]. Inferential models are designed to deduce interactions and their effect on the dynamics of species abundances from empirical time-series data, remaining agnostic to the mechanisms that shape those interactions [19]. That is, these studies infer direct pairwise interactions between species from time series data obtained from various empirical approaches, ranging from co-culture experiments [20] to co-occurrence network snapshots reconstructed from gene sequencing, including metagenome assemblies [21]. This simplicity is advantageous in predicting the dynamical outcome of large microbial communities, where tracking every interaction and resource is impractical, and understanding the underlying mechanisms is not the primary focus.

In contrast to inferential models, mechanistic models aim to predict community dynamics from first principles by incorporating information on metabolic and physiological traits, alongside cellular processes that drive the growth of populations through species-species and species-environment interactions [4,17,22,23].

Inferential and mechanistic approaches complement each other and should ideally agree when compared at relevant spatial and temporal scales for any given microbial community. However, whether inferential pairwise models can accurately capture the inherent complexity of microbial interactions—particularly when these are indirectly generated (e.g., through cross-feeding and higher-order interactions)—and the resulting dynamics remains uncertain [16,18,2428].

Currently, the most widely used inferential model is the generalized Lotka-Volterra system of ODEs (henceforth, the “GLVM”) [7,17,23,29]. In the GLVM, each population has an intrinsic growth rate, and any pair interacts through two coefficients that quantify their reciprocal effects on each other’s growth and abundance. Advances in high-throughput sequencing have enabled the collection of time-series data on microbial abundances. The GLV model can be fitted to these data to estimate interaction coefficients, providing insights into the structure and dynamics of the community.

Beyond empirical applications, the GLVM has also been used in a large body of theoretical research to derive dynamical properties of microbial communities, including feasibility (existence of a non-trivial equilibrium) and stability to perturbations as well as addition or removal of species [3033]. However, the validity of these theoretical results also depends on how well the pairwise model approximates the underlying, mechanistic consumer-resource dynamics as an “effective" representation [27,34]. In particular, it remains unclear whether the pivotal assumption of time-scale separation between consumer and resource populations holds under a sufficiently wide range of scenarios [27,34].

Here we compare the dynamic behavior of a relatively general and widely used mechanistic model of microbial consumer-resource dynamics (MiCRM) [4,34,35] and its effective Generalized Lotka-Volterra approximation (GLVA, mathematically the same as the GLVM) and quantify the concordance between them across a range of biologically meaningful scenarios. Specifically, we focus on the GLVA’s error rate, which is the frequency and magnitude of deviations in population dynamics from the approximated model compared to the “true” consumer-resource dynamics, as well as the local stability and reactivity of the equilibria.

Previous research has investigated the behavior of statistically fitted GLV models relative to the corresponding dynamics of substrate mediated interactions finding, for example, that additivity of interactions (a necessary presupposition to the GLV) is not always satisfied [16,18,25]. However, using inferred GLV interactions to validate the effectiveness of pairwise modeling suffers from two main drawbacks, namely: identifiability and the difficulty of accounting for nonlinearities. The identifiability issue stems from the fact that, for any given community, there are an infinite number of GLV parameter combinations which can reproduce the same equilibrium and similar dynamics. Hence, inferred parameters will vary depending on the fitting algorithm and the data. On the other hand, the presence of nonlineairties in the underlying dynamics present a particular challenge because they can be an additional source of error, but the extent to which they influence model inference is hard to quantify precisely [36].

Assessing the performance of an exact first-order representation of resource-mediated interactions (that is, the GLVA) can provide more insight into the specific features which make the system more or less amenable to approximation by pairwise interaction. In particular, we explore how the relative values of different parameters, such as leakage, limit how well the GLVA can capture the dynamics in principle.

We identify parameter spaces of the MiCRM that result in greater disagreement between the models. With the goal of providing both empiricists and theoreticians with criteria for identifying when substrate mediated interactions can be well approximated by pairwise interactions, we also provide a method for quantifying the degree of time-scale separation, which is at the root of the GLVA’s failure.

Materials and methods

Our overall approach is to first derive the GLVA from the MiCRM for each particular parameterization of the MiCRM, and then numerically integrate each MiCRM-GLVA ODE system paired to compare their dynamical behaviors.

The microbial consumer resource model

The Microbial Consumer Resource Model [4,35] is given by (Table 1):

(1)(2)

Here, Eqns 1 & 2 describe the time evolution of population (biomass) abundances of the ith consumer Ci and αth resource , respectively. For consumers, the growth rate is simply the sum of all resources consumed (), offset by the proportion of resources leaked (, where ) and a linear loss term representing respiration (mi). Resources are described by an arbitrary supply function (), the amount of resources taken up by all consumers (), and the proportion of resources leaked back into the system by consumers ().

Since the MiCRM is designed to depict two coupled interaction types: competition for shared resources and facilitation through metabolic cross-feeding, we expect the resulting system’s behavior to scale non-additively with respect to the number, magnitude, and type of interactions. This non-additivity stems from the dependence of interactions on resource abundances which, depending on community structure, may not be time-invariant. Therefore, given sufficient coupling (formally defined in Section C in S1 Appendix) between the consumer and resource biomass pools, the dynamical properties of the community will be a nonlinear function of its size (number of consumers and resources) [37].

The generalised Lotka-Volterra approximation

The derivation of the GLVA is based on the approach originally used by MacArthur [34,38]; first, assume resources reach equilibrium much faster than consumers, and then perform a first-order Taylor expansion around consumer equilibrium abundances. This yields a resource-independent approximation to the MiCRM, which can be rearranged to calculate population-level growth rates and (inter-population) pairwise interaction rates (Section A in S1 Appendix). Fig 1 provides an example of how the GLVA dynamics compare to those of the underlying MiCRM.

thumbnail
Fig 1. Example dynamics of the MiCRM and its corresponding GLVA.

Plotted for a specific combination of parameters, demonstrating the differences in their transient dynamics.

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

From the outset, the GLVA makes two strong assumptions: that interactions between populations are additive: the overall impact on a strain’s population in the presence of other strains is the sum of each of its pairwise interactions, and that the time scale of resource dynamics can be decoupled from those of consumers [16,39]. As we show below, and as many others have noted beforehand [16,27,31], neither can be guaranteed in complex microbial communities for a range of biologically realistic scenarios.

Model parameterisation and simulations

To simplify the numerical simulations, maintenance biomass (mi) and resource supply () were held equal and constant among all consumers and resources(. This choice of parameters assumes that consumers are energetically equivalent and comes with no loss of generality, since neither mi nor change the qualitative dynamics.

The consumer uptake matrix was drawn from a Dirichlet distribution defined by the consumer preference matrix and a consumer specificity parameter . represents the probability that consumer i will uptake resource α at a higher rate relative to other resources, while defines how evenly the uptake is spread across the space of possible resources, with large values of yielding generalist species and smaller ones yielding specialists.

Using this particular method to generate the consumer uptake matrix allows us to fix its structure while including a degree of randomness. Furthermore, every uptake vector drawn from a Dirichlet distribution necessarily has a magnitude of 1, giving every consumer the same total uptake ability. If we wish to include scenarios where some consumers have a greater total uptake capacity than others, we can simply redefine the consumer uptake vectors as , where Ti is the uptake capacity of consumer i. Here we restrict the simulations to the case where all consumers have the same uptake capacity Ti = 1, the assumption being that added model complexity makes the MiCRM more difficult to approximate.

The consumer leakage tensor, which describes how consumers transform substrates into other resources, was generated analogously to the uptake matrix. Here, we must consider an additional parameter () that encodes the probability of a substrate (β) being leaked by a given consumer (i) following the consumption of a particular resource ). Hence, for every consumer-resource pair, we define a vector such that:

We conducted simulations within a range of leakage magnitudes between li = 0.01 at the lower end and li = 0.8 as the most extreme case. This choice is based on empirically determined values of metabolite leakage in different strains of bacterial and co-culture experiments that suggest a feasible range of 0.05 < li < 0.6 [4043]. We also included values above this range (0.6 < li) to explore the effects of leakage more generally. More details about our sampling procedure are provided in Section D in S1 Appendix.

Quantifying cross-feeding and Niche overlap

Consider a community with N consumers and M resources; the matrix describes the space of preferences consumers have for resources. The vector corresponds to the ith row of and represents the distribution of resource preferences for the ith consumer.

We define Niche Overlap in the community as the average cosine similarity between each pair of consumer preference vectors :

(3)

This gives us a measure of how similar consumer preferences are on average, and since the consumer preference vectors are necessarily real-valued, it is a good scalar measure of competitive overlap.

On the other hand, we may ask where consumer preferences concentrate (in resource space). Averaging the sum of the preference vectors easily accomplishes this.

(4)

Notice that tells us very little about how preferences vary and, indeed, nothing of how they overlap. Coupled with No, however, we can get a general notion of the shape defined by consumer preferences. While tells us the general direction of consumer preferences, No is a measure of the overall spread around that average. When , we can surmise that consumer preferences are closely centered around , whereas if , they are likely spread out.

To quantify how a given consumer is expected to leak resources in a complex community, we defined an effective leakage measure, , which is simply the overall sum of resource-specific leakage vectors, weighted by the consumer’s uptake capacity for the corresponding resources.

Where is the ith consumer’s leakage vector for resource . This essentially measures the distribution of metabolites leaked by a consumer in a scenario where every resource is available at equal concentrations.

Having defined effective leakage, we can measure the extent to which resources leaked by consumers will contribute to the community’s growth. To do this, we calculate the average pairwise cosine similarity between effective leakage and consumer uptake vectors.

Therefore, Cfeed is an overall measure of similarity between consumer uptake preferences and the distribution of resources that are likely to be leaked by consumers. Notice that we can reframe this cross-feeding measure in terms of average effective leakage, .

Hence we can consider Cfeed to be somewhat dependent on the similarity between and . More importantly, we can note that covaries with since they both depend on consumer uptake vectors .

Stability and reactivity

To evaluate the correspondence of stability and reactivity between the MiCRM and the GLVA, we calculated their respective Jacobian matrices at steady state, AMi and , as well as the Hermitian parts of AMi and - H(AMi) and Section B in S1 Appendix. Following this, stability characterised by the leading eigenvalues of the respective pairs of Jacobian matrices and , and reactivity the leading eigenvalues of the Hermitian parts and .

Quantifying the GLVA’s accuracy

To quantify the GLVA’s accuracy, we use the log-ratio of the GLVA- and MiCRM-predicted consumer abundances to obtain an instantaneous measure of error:

Using this quantity, we define both trajectory and equilibrium abundance errors. Trajectory error is measured by integrating Err(t) over the time it takes the system to equilibrate (teq),

while equilibrium error is simply the instantaneous error rate at teq:

This method of calculating accuracy has the advantage of being insensitive to relatively small discrepancies and, at the same time, adequately capturing when there are more significant disagreements between models. This can be made obvious by noting that the error measure diverges when either model predicts an extinction that does not occur in the other.

Results

Cross-feeding strength and Niche overlap influence GLVA accuracy

To determine how the GLVA’s accuracy varies with metabolic leakage, we compared the trajectory and equilibrium error rates (Errtraj and Erreq) in GLVA simulations relative to the underlying dynamics in the MiCRM. Fig 2 illustrates how average Errtraj and Erreq increase with the magnitude of metabolite leakage. Furthermore, at low leakage the distribution of both error rates is well behaved and localized around a small vicinity of Err = 0, whereas the variance of this distribution increases dramatically when .

thumbnail
Fig 2. Effect of niche overlap and metabolite leakage on the GLVA’s accuracy.

Distribution of Errtraj (A) and Erreq (B) for increasing magnitudes of leakage at low (green), medium (purple) and high (orange) niche overlap. The median and the spread of both error types increases with leakage and and niche overlap.

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

Additionally, we find that an interaction between leakage and niche overlap (NO) plays an important role in determining the GLVA’s accuracy. Specifically, Fig 2 shows how the error rate in communities with moderate and high NO is much more sensitive to the effects of leakage, displaying extreme changes in the median values and variance; in stark contrast to the modest shifts observed in communities with low NO. On the other hand, we found no clear relationship between effective leakage stoichiometry (Cfeed) and GLVA accuracy.

We note that most of the deviations in the predicted GLVA abundances stem from the fact that those particular communities converge on a subset of the consumer species’ richness relative to the corresponding “real” systems; that is, they do not reach the same composition. Lastly, the biological relevance of such high leakage regimes as those considered by is questionable, but it provides a useful limiting case.

GLVA underestimates microbial community stability

While a simple comparison of GLVA trajectories and equilibria relative to MiCRM simulations gives a picture of the GLVA’s ability to predict consumer abundances, it gives us no information on their local stability and reactivity [44]. That is, while both models may follow similar trajectories and settle on identical equilibria, this does not guarantee that they will respond to perturbations equivalently.

A direct comparison between the real parts of and , illustrated in Fig 3 A reveals some important discrepancies. The GLVA’s dominant eigenvalues typically have a less negative real part than the MiCRM, indicating lower stability (i.e., longer return times after perturbations), with greater leakage pushing them closer to the imaginary axis relative to the corresponding MiCRM dominant eigenvalues. The GLVA, in general, predicts that communities are less stable than their MiCRM equivalents, with the discrepancy increasing with metabolite leakage. Lastly, we can see that niche overlap has a general destabilizing effect in the MiCRM (on average, dots get bigger from left to right) but not in the GLVA; a feature which can be appreciated from the lack of a distinct size gradient in the vertical direction of Fig 3 A.

thumbnail
Fig 3. The GLVA underestimates both community stability (A) and reactivity (B).

The black lines represent 1:1 correspondence. All points lie on or above the black line in A, indicating lower-than-MiCRM stability, while all the points lying below the black line in B indicate higher-than-MiCRM reactivity. Dot colors correspond to the magnitude of leaked resources in the community while dot size representing the degree of niche overlap, with dot size increasing with NO.

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

Turning our attention to reactivity, we observe a starker disagreement between models. Whereas fixed points in the MiCRM are universally reactive, Re(, the same is not true for the GLVA. In fact, more than half of the evaluated GLVA Hermitians had eigenvalues with negative real components. That is, these GLVA systems transiently dampened perturbations as opposed to the (ostensibly universal) amplification observed in the MiCRM.

GLVA failure predicted by breakdown of timescale separation

To better understand the GLVA’s inaccuracies, we need to consider two key issues: violation of the fast resource dynamics assumption and non-additivity of interactions arising from higher-order terms in the consumer-resource dynamics. Evaluating additivity directly poses a particular challenge given the combinatorial nature of higher-order interactions. For example, a second-order analysis for a community of N consumers would require quantifying interaction coefficients between species triplets (see [45]). Even with simplifying symmetries and trivial pairs (e.g. and ), the number of coefficients would grow as N(N–1)(N–2). Fortunately, the time scales of resource dynamics can be quantified rather straightforwardly as a method to predict the likelihood of the GLVA’s failure as we now show.

The validity of the assumption that resources reach equilibrium faster than consumers, which allows the time-scale separation for the approximation (Section A in S1 Appendix) depends upon the difference between “characteristic” time scales. More precisely, the approximation will be within of the real solution for times up to , where ε represents the relationship between the slow (consumers) and fast (resources) time scales [46,47], which can be quantified as:

(5)

Here, and are the characteristic time scales of consumers and resources, respectively (further details in Section C in S1 Appendix).

To evaluate how the magnitude of ε affects the GLVA’s accuracy, we calculated the return times for consumers and resources directly from the MiCRM’s Jacobian matrix at steady state (Section C in S1 Appendix). We then compared the return time ratios between consumers and resources and chose the smallest as a proxy for ε.

Fig 4A shows the relationship between the absolute equilibrium error |Erreq| and (ε). At small ε simulations remain within a narrow range of low |Erreq|, however, as the timescales of resources approach a similar magnitude to those of consumers (), we see a sharp increase in |Erreq|. However, focusing on ε alone gives us insufficient information to predict whether a particular simulation will fail. Instead, we must consider the separation of time scales in relation to the system as a whole. If the system reaches a stable equilibrium before exceeding the time frame that limits the approximation’s validity (), we expect the approximation to remain within a small margin of error.

thumbnail
Fig 4. Effect of consumer-resource timescale separation on the GLVA’s accuracy.

2D distributions of |Erreq| and return time ratios (ε) between consumers and resources in panel A and in B. Darker pixels represent regions of higher probability, with the color scale darkening as the square root of the normalized density () to highlight the diffuse high error regime. The red dotted line in panel B corresponds to log10(x) = 0, the theoretical lower limit of above which the approximation’s validity is guaranteed.

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

We can confirm this last point by comparing to the time to reach equilibrium in each simulation of the MiCRM. Fig 4B contrasts the distributions of absolute equilibrium error vs. —the magnitude of the timescale separation relative to the time to equilibrium. This 2D density plot clearly shows that the absolute incidence of error |Erreq| drastically increases below the theoretical threshold of . In other words, the GLVA’s accuracy is only guaranteed so long as the time to equilibrium is shorter than .

Discussion

Although the generalized Lotka-Volterra model has been extensively studied theoretically and used empirically, its suitability for microbial communities in diverse settings remains unclear. By contrasting the dynamics of the MiCRM to its corresponding GLVA, we identified regions of parameter space where pairwise interaction terms did not accurately represent the underlying dynamics. In particular, we found that the accuracy of the GLVA declines rapidly with increasing metabolite leakage and niche overlap.

Furthermore, the GLVA’s dynamics qualitatively diverge from those of the underlying MiCRM: stability is particularly sensitive to leakage, while the deviation of reactivity from the actual dynamics remains unchanged irrespective of the MiCRM’s parameterization. To the best of our knowledge, the accuracy of the GLVA’s dynamics in terms of reactivity has never been investigated. Our results reveal a potentially critical limitation of the GLVA, as intermittently perturbed reactive systems are more likely to settle into alternative stable states [44,48]. Hence, if the approximation undermines the MiCRM’s response to perturbations, it no longer has any bearing on how the underlying system might shift under environmental or demographic stochasticity.

As mentioned in the Methods, our metric for GLVA’s accuracy focuses on discrepancies in relative abundances, meaning that it is highly sensitive to differences in the predicted survival of consumer populations at steady state. This implies that the increasing incidence of errors displayed in Fig 2 B is likely due to mismatches in the equilibrium community composition. Essentially, the GLVA and its corresponding MiCRM systems settle on different stable states.

Interestingly, the GLVA asymmetrically errs on the side of coexistence, as seen from the predominance of simulations where the GLVA overshoots (Fig 2, error is overwhelmingly positively skewed). Since pairwise interaction terms in the GLVA depend on resource concentrations at their steady state, this tendency to overshoot likely arises from the fact that the effective interactions differ both quantitatively (i.e., in terms of strength) and qualitatively (i.e., in terms of presence-absence or directionality) during the initial assembly stages; leading to the survival of infeasible strains before the community arrives at the interaction structure produced by the GLVA. This highlights an important point: although by construction the GLVA has an identical attractor to the MiCRM, it can settle on an alternative attractor given a different set of initial conditions, inconsistent with the actual resource-mediated consumer-consumer interactions. This makes any inferences of pairwise interactions based purely on (sufficiently frequent) temporal snapshots of abundances in co-culture highly context dependent, and limits their utility for predicting community dynamics outside of that context; a limitation that is accentuated under specific regimes (Fig 4). If, on the other hand, intra- and inter-cellular metabolite concentrations can also be tracked along with abundances, the identifiability problem that we raised in the introduction (also see [36]) is somewhat mitigated, enabling more accurate and generalisable inferences.

The GLVA’s behavior at steady state differed from the MiCRM in two important respects: it systematically underestimates stability and fails to qualitatively capture the transient response to perturbations. The GLVA’s tendency towards less stable interaction structures (depicted in Fig 3) reveals a key limitation of pairwise frameworks in that they disregard how resource concentrations constrain consumer populations. In effect, stability in the MiCRM directly incorporates the contributions of all resources. While the GLVA is informed by resource concentrations at equilibrium, it cannot mimic the stabilizing effect of resource limitation. This likely explains why leakage, but not niche overlap, increases the stability gap between the two models. Higher leakage leads to greater positive feedback between consumers, and in the absence of a compensatory response in resource concentrations, this has a net destabilizing effect on the GLVA.

Another detail worth noting about the stability gap is that, since stability is estimated from the dominant eigenvalues of the system at equilibrium, it is equivalent to the dynamics of the slow manifold. When leakage is small, it is virtually guaranteed that the slow manifold will depend solely on the dynamics of consumers. However, as the coupling between consumers and resources strengthens (i.e. more leakage), it increases the likelihood that resources will contribute to the dominant eigenvalues.

While the MiCRM was reactive for every community simulated, the GLVA erroneously predicted the direction of the initial response to perturbations in over half of our data points. In cases where the GLVA displayed positive reactivity, it typically underestimated the strength of the effect by an order of magnitude. Although reactivity is not usually given as much attention as stability, it has been argued that it is at least as important for understanding the effects of chronically disturbed communities [44,49].

As shown in Fig 4, the accuracy of the GLVA can be predicted from an approximate measure of the time-scale separation between consumers and resources. This apparent relationship between the temporal coupling of the consumer-resource system and the GLVA’s performance suggests that the degree of separation, as measured here, serves as a good indicator of when a particular consumer-resource system can be described with consumer abundances alone. More importantly, the degree of separation defines a neighborhood around equilibrium, within which the GLVA will remain below a bounded margin of error compared to the true dynamics. This neighborhood can be understood as the set of initial conditions (likewise, perturbations) for which .

It should be noted that this issue was originally raised, albeit indirectly, by MacArthur [38] in terms of the symmetry of the matrix of interactions. If we take a Consumer-Resource model and assume that resources equilibrate quickly compared to the dynamics of the consumer, then the effective interaction matrix is necessarily symmetric. This result was later shown to be incorrect under a wider range of conditions. As Marsland et al. [34] have shown, the requirement of symmetric interactions can be relaxed through specific rescaling procedures. More generally, it appears that some variants of the Consumer-Resource equations are inherently asymmetric and cannot be straightforwardly rescaled, rendering the symmetry of the interaction matrix an inadequate indicator of the validity of the GLV approximation.

Although our analysis focuses on the ability of GLVA to represent the dynamics emerging from metabolite competition and cross-feeding dynamics in the MiCRM, the results can be straightforwardly generalized to any interaction mechanism that is indirectly mediated, such as through chemical stressors [50]. Our method of estimating ε (Section C in S1 Appendix) is directly applicable to any system, provided the ODEs can be defined, and the Jacobian is diagonally dominant.

As such, although the MiCRM’s structure is fairly general in its ability to capture the key elements of microbial consumer-resource dynamics, the question arises whether our results apply to variants of the MiCRM (e.g., different functional responses or the inclusion of essential nutrients). In particular, the issue of timescale separation and strength of consumer-resource coupling is a universal feature of coupled dynamical systems; hence, we do not expect any meaningful differences for a reasonably modified set of ODEs. Whether these insights can be extended to accommodate more complex interaction mechanisms, such as allelopathy or chemically mediated signalling, remains to be seen.

Some systems inherently have a greater timescale separation between consumer and resource pools. For instance, metabolic scaling laws dictate that because phytoplankton are generally much larger than bacteria, they operate on slower timescales. As a result, they interact with their metabolites more slowly than bacteria do, suggesting that the GLVA might, in general, be a more accurate model for quantifying phytoplankton community dynamics.

Overall, these results provide guidelines for the appropriate use of pairwise models in the study of microbial communities. Firstly, theoreticians seeking to apply the generalized Lotka-Volterra model to relate community structure to the system’s dynamic behaviors should verify that the system in question does not exhibit environmental (resource) feedbacks strong enough to invalidate the model’s assumptions. This point becomes especially important when considering the impacts of environmental perturbations (e.g., temperature fluctuations [23,32,5052]), a topic of increasing importance as we seek to quantify the effects of anthropogenic change. We show that GLV models can systematically mis-predict equilibrium resilience, often underestimating recovery rates and sometimes even predicting no transient amplification when the mechanistic system exhibits strong reactivity. This distinction is crucial for assessing robustness and the risk of regime shifts [44,48]. For empiricists, relying on GLV fits alone could mask early warning signs of collapse or invasion, since resource-mediated overshoot dynamics are not captured by static interaction terms. Validating GLV predictions against actual perturbation experiments, rather than only steady-state outcomes, is therefore crucial to ensure resilience is represented correctly.

Because (ε) can be estimated from basic measurements of nutrient depletion, byproduct accumulation, and microbial growth rates, it offers an empirically accessible “litmus test”. This complements the broader caution that GLV model fits are non-identifiable and may overfit sparse time series: multiple parameter sets can reproduce similar trajectories but differ mechanistically. Collecting additional data on metabolite or resource concentrations and perturbation responses to constrain GLV model fitting may therefore be necessary when consumer-resource coupling is strong [5355].

Empirically determining ε in microbial communities requires precise monitoring of cell densities as well as substrate and metabolite concentrations. Given well-resolved data, ε can be estimated by perturbing the community and monitoring how long it takes the microbial consumer populations and substrate concentrations to return to a steady state. Another method would be to carry out single-strain culture experiments to determine each of the parameters (in this case: uptake, yield, and metabolite leakage), and use those data to calculate, using resource-explicit models like the MiCRM, the approximate timescale separation a priori. The robustness of the separation of timescales can be more feasibly (but less accurately) assessed from the equilibrium properties of the system, such as the proportion of resources contained in consumer biomass relative to the environment in addition to estimates of average metabolite leakage, given their role in determining characteristic timescales (see equations in Section C in S1 Appendix).

Finally, we note that our results should be interpreted with the understanding that the MiCRM assumes well-mixed conditions, linear uptake kinetics, and constant leakage fractions per species. Real microbes might exhibit more complex dynamics (e.g., threshold-driven secretion, spatial metabolite gradients, or adaptive responses) that could introduce qualitatively new higher-order effects beyond those captured by the basic MiCRM. Our findings will likely still apply; any such complexity would further undermine the accuracy of a GLVA, but the precise thresholds of timescale separation would differ.

Conclusion

In conclusion, the magnitude of metabolite leakage and the resultant cross-feeding, mediated by niche overlap structure, has a strong bearing on the extent to which the GLVA can accurately reproduce the underlying MiCRM dynamics. In particular, we found near-zero correspondence between models regarding reactivity, highlighting the importance of higher-order interactions and the GLVA’s inability to account for them in predicting perturbative behavior. We show that these inaccuracies stem primarily from (the lack of) timescale separation between consumer and resource dynamics, and provide a measure to quantify the strength of this coupling.

Supporting information

Section A in S1 Appendix. The generalised Lotka-Volterra approximation.

Step-by-step derivation of the GLVA from the MiCRM.

Section B in S1 Appendix. Stability analysis. Linearization and stability analysis for the MiCRM.

Section C in S1 Appendix. Quantifying separation of timescales. Motivating the importance of timescale separation and deriving an approximate measure of consumer-resource coupling.

Section D in S1 Appendix. Balanced sampling of competitive and cooperative communities. Details on the method for balanced sampling of communities with varying degrees of competition and cooperation.

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

(PDF)

Acknowledgments

We thank Alberto Pascual-García and Tom Clegg for insightful comments on an earlier version of this manuscript.

References

  1. 1. Human Microbiome Project Consortium. Structure, function and diversity of the healthy human microbiome. Nature. 2012;486(7402):207–14. pmid:22699609
  2. 2. Falkowski PG, Fenchel T, Delong EF. The microbial engines that drive Earth’s biogeochemical cycles. Science. 2008;320(5879):1034–9. pmid:18497287
  3. 3. Hough M, McClure A, Bolduc B, Dorrepaal E, Saleska S, Klepac-Ceraj V, et al. Biotic and environmental drivers of plant microbiomes across a permafrost thaw gradient. Frontiers in Microbiology. 2020;11.
  4. 4. Marsland R 3rd, Cui W, Mehta P. A minimal model for microbial biodiversity can reproduce experimentally observed ecological patterns. Sci Rep. 2020;10(1):3308. pmid:32094388
  5. 5. Silverstein MR, Segrè D, Bhatnagar JM. Environmental microbiome engineering for the mitigation of climate change. Glob Chang Biol. 2023;29(8):2050–66. pmid:36661406
  6. 6. Shetty SA, Kuipers B, Atashgahi S, Aalvink S, Smidt H, de Vos WM. Inter-species metabolic interactions in an in-vitro minimal human gut microbiome of core bacteria. NPJ Biofilms Microbiomes. 2022;8(1):21. pmid:35395818
  7. 7. Hu J, Amor DR, Barbier M, Bunin G, Gore J. Emergent phases of ecological diversity and dynamics mapped in microcosms. Science. 2022;378(6615):85–9. pmid:36201585
  8. 8. Dutton CL, Subalusky AL, Sanchez A, Estrela S, Lu N, Hamilton SK, et al. The meta-gut: community coalescence of animal gut and environmental microbiomes. Sci Rep. 2021;11(1):23117. pmid:34848778
  9. 9. Abbasian F, Ghafar-Zadeh E, Magierowski S. Microbiological Sensing Technologies: A Review. Bioengineering (Basel). 2018;5(1):20. pmid:29498670
  10. 10. Saifuddin M, Bhatnagar JM, Segrè D, Finzi AC. Microbial carbon use efficiency predicted from genome-scale metabolic models. Nat Commun. 2019;10(1):3568. pmid:31395870
  11. 11. Woodcroft BJ, Singleton CM, Boyd JA, Evans PN, Emerson JB, Zayed AAF, et al. Genome-centric view of carbon processing in thawing permafrost. Nature. 2018;560(7716):49–54. pmid:30013118
  12. 12. Freilich S, Zarecki R, Eilam O, Segal ES, Henry CS, Kupiec M, et al. Competitive and cooperative metabolic interactions in bacterial communities. Nat Commun. 2011;2:589. pmid:22158444
  13. 13. Reed DC, Algar CK, Huber JA, Dick GJ. Gene-centric approach to integrating environmental genomics and biogeochemical models. Proc Natl Acad Sci U S A. 2014;111(5):1879–84. pmid:24449851
  14. 14. Sanchez A, Bajic D, Diaz-Colunga J, Skwara A, Vila JCC, Kuehn S. The community-function landscape of microbial consortia. Cell Syst. 2023;14(2):122–34. pmid:36796331
  15. 15. Weiss S, Van Treuren W, Lozupone C, Faust K, Friedman J, Deng Y, et al. Correlation detection strategies in microbial data sets vary widely in sensitivity and precision. ISME J. 2016;10(7):1669–81. pmid:26905627
  16. 16. Momeni B, Xie L, Shou W. Lotka-Volterra pairwise modeling fails to capture diverse pairwise microbial interactions. eLife. 2017;6.
  17. 17. van den Berg NI, Machado D, Santos S, Rocha I, Chacón J, Harcombe W, et al. Ecological modelling approaches for predicting emergent properties in microbial communities. Nat Ecol Evol. 2022;6(7):855–65. pmid:35577982
  18. 18. Dedrick S, Warrier V, Lemon KP, Momeni B. When does a Lotka-Volterra model represent microbial interactions? Insights from in vitro nasal bacterial communities. mSystems. 2023;8(3):e0075722. pmid:37278524
  19. 19. Barbier M, Arnoldi J-F, Bunin G, Loreau M. Generic assembly patterns in complex ecological communities. Proc Natl Acad Sci U S A. 2018;115(9):2156–61. pmid:29440487
  20. 20. Friedman J, Higgins LM, Gore J. Community structure follows simple assembly rules in microbial microcosms. Nat Ecol Evol. 2017;1(5):109. pmid:28812687
  21. 21. Marino S, Baxter NT, Huffnagle GB, Petrosino JF, Schloss PD. Mathematical modeling of primary succession of murine intestinal microbiota. Proc Natl Acad Sci U S A. 2014;111(1):439–44. pmid:24367073
  22. 22. Kreft JU, Plugge CM, Prats C, Leveau JHJ, Zhang W, Hellweger FL. From genes to ecosystems in microbiology: modeling approaches and the importance of individuality. Frontiers in Microbiology. 2017;8.
  23. 23. García FC, Clegg T, O’Neill DB, Warfield R, Pawar S, Yvon-Durocher G. The temperature dependence of microbial community respiration is amplified by changes in species interactions. Nat Microbiol. 2023;8(2):272–83. pmid:36732470
  24. 24. Gralka M, Szabo R, Stocker R, Cordero OX. Trophic interactions and the drivers of microbial community assembly. Curr Biol. 2020;30(19):R1176–88. pmid:33022263
  25. 25. Letten AD, Stouffer DB. The mechanistic basis for higher-order interactions and non-additivity in competitive communities. Ecol Lett. 2019;22(3):423–36. pmid:30675983
  26. 26. Diamant ES, Boyd S, Lozano-Huntelman NA, Enriquez V, Kim AR, Savage VM, et al. Meta-analysis of three-stressor combinations on population-level fitness reveal substantial higher-order interactions. Sci Total Environ. 2023;864:161163. pmid:36572303
  27. 27. O’Dwyer JP. Whence Lotka-Volterra?. Theor Ecol. 2018;11(4):441–52.
  28. 28. Muscarella ME, O’Dwyer JP. Species dynamics and interactions via metabolically informed consumer-resource models. Theor Ecol. 2020;13(4):503–18.
  29. 29. Vega NM, Gore J. Simple organizing principles in microbial communities. Curr Opin Microbiol. 2018;45:195–202. pmid:30503875
  30. 30. Cui W, Marsland R, Mehta P. Diverse communities behave like typical random ecosystems. Phys Rev E. 2021;104(3–1):034416. pmid:34654170
  31. 31. Butler S, O’Dwyer JP. Stability criteria for complex microbial communities. Nat Commun. 2018;9(1):2970. pmid:30061657
  32. 32. Clegg T, Pawar S. Variation in thermal physiology can drive the temperature-dependence of microbial community richness. Elife. 2024;13:e84662. pmid:39348267
  33. 33. Dougoud M, Vinckenbosch L, Rohr RP, Bersier L-F, Mazza C. The feasibility of equilibria in large ecosystems: a primary but neglected concept in the complexity-stability debate. PLoS Comput Biol. 2018;14(2):e1005988. pmid:29420532
  34. 34. Marsland R 3rd, Cui W, Mehta P. The minimum environmental perturbation principle: a new perspective on niche theory. Am Nat. 2020;196(3):291–305. pmid:32813998
  35. 35. 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
  36. 36. Case TJ, Bender EA. Testing for higher order interactions. The American Naturalist. 1981;118(6):920–9.
  37. 37. Pacheco AR, Osborne ML, Segrè D. Non-additive microbial community responses to environmental complexity. Nat Commun. 2021;12(1):2365. pmid:33888697
  38. 38. MacArthur R. Species packing and competitive equilibrium for many species. Theor Popul Biol. 1970;1(1):1–11. pmid:5527624
  39. 39. Bosi E, Bacci G, Mengoni A, Fondi M. Perspectives and challenges in microbial communities metabolic modeling. Front Genet. 2017;8:88. pmid:28680442
  40. 40. Schink B. Synergistic interactions in the microbial world. Antonie Van Leeuwenhoek. 2002;81(1–4):257–61. pmid:12448724
  41. 41. Harcombe WR, Riehl WJ, Dukovski I, Granger BR, Betts A, Lang AH, et al. Metabolic resource allocation in individual microbes determines ecosystem interactions and spatial dynamics. Cell Rep. 2014;7(4):1104–15. pmid:24794435
  42. 42. Pande S, Merker H, Bohl K, Reichelt M, Schuster S, de Figueiredo LF, et al. Fitness and stability of obligate cross-feeding interactions that emerge upon gene loss in bacteria. ISME J. 2014;8(5):953–62. pmid:24285359
  43. 43. D’Souza G, Shitut S, Preussger D, Yousif G, Waschina S, Kost C. Ecology and evolution of metabolic cross-feeding interactions in bacteria. Nat Prod Rep. 2018;35(5):455–88. pmid:29799048
  44. 44. Yang Y, Coyte KZ, Foster KR, Li A. Reactivity of complex communities can be more important than stability. Nat Commun. 2023;14(1):7204. pmid:37938574
  45. 45. Guo X, Boedicker JQ. The Contribution of high-order metabolic interactions to the global activity of a four-species microbial community. PLoS Comput Biol. 2016;12(9):e1005079. pmid:27623159
  46. 46. Grimshaw R. Nonlinear ordinary differential equations. New York: Routledge. 2017.
  47. 47. Strogatz SH. Nonlinear dynamics and chaos: with applications to physics, biology, chemistry, and engineering. 2nd ed. Boca Raton: CRC Press; 2019.
  48. 48. Hastings A, Abbott KC, Cuddington K, Francis T, Gellner G, Lai Y-C, et al. Transient phenomena in ecology. Science. 2018;361(6406):eaat6412. pmid:30190378
  49. 49. Mari L, Casagrandi R, Rinaldo A, Gatto M. A generalized definition of reactivity for ecological systems and the problem of transient species dynamics. Methods Ecol Evol. 2017;8(11):1574–84.
  50. 50. Smith TP, Clegg T, Ransome E, Martin-Lilley T, Rosindell J, Woodward G, et al. High-throughput characterization of bacterial responses to complex mixtures of chemical pollutants. Nat Microbiol. 2024;9(4):938–48. pmid:38499812
  51. 51. Vasseur DA, DeLong JP, Gilbert B, Greig HS, Harley CDG, McCann KS, et al. Increased temperature variation poses a greater risk to species than climate warming. Proc Biol Sci. 2014;281(1779):20132612. pmid:24478296
  52. 52. Bolnick DI, Amarasekare P, Araújo MS, Bürger R, Levine JM, Novak M, et al. Why intraspecific trait variation matters in community ecology. Trends Ecol Evol. 2011;26(4):183–92. pmid:21367482
  53. 53. Brunner JD, Chia N. Metabolic model-based ecological modeling for probiotic design. Elife. 2024;13:e83690. pmid:38380900
  54. 54. Ho P-Y, Nguyen TH, Sanchez JM, DeFelice BC, Huang KC. Resource competition predicts assembly of gut bacterial communities in vitro. Nat Microbiol. 2024;9(4):1036–48. pmid:38486074
  55. 55. Ostrem Loss E, Thompson J, Cheung PLK, Qian Y, Venturelli OS. Carbohydrate complexity limits microbial growth and reduces the sensitivity of human gut communities to perturbations. Nat Ecol Evol. 2023;7(1):127–42. pmid:36604549