Skip to main content
PLOS Computational Biology logoLink to PLOS Computational Biology
. 2022 Jun 3;18(6):e1009396. doi: 10.1371/journal.pcbi.1009396

Quantifying the impact of ecological memory on the dynamics of interacting communities

Moein Khalighi 1,*,#, Guilhem Sommeria-Klein 1,#, Didier Gonze 2, Karoline Faust 3, Leo Lahti 1,*
Editor: Luis Pedro Coelho4
PMCID: PMC9200327  PMID: 35658019

Abstract

Ecological memory refers to the influence of past events on the response of an ecosystem to exogenous or endogenous changes. Memory has been widely recognized as a key contributor to the dynamics of ecosystems and other complex systems, yet quantitative community models often ignore memory and its implications.

Recent modeling studies have shown how interactions between community members can lead to the emergence of resilience and multistability under environmental perturbations. We demonstrate how memory can be introduced in such models using the framework of fractional calculus. We study how the dynamics of a well-characterized interaction model is affected by gradual increases in ecological memory under varying initial conditions, perturbations, and stochasticity.

Our results highlight the implications of memory on several key aspects of community dynamics. In general, memory introduces inertia into the dynamics. This favors species coexistence under perturbation, enhances system resistance to state shifts, mitigates hysteresis, and can affect system resilience both ways depending on the time scale considered. Memory also promotes long transient dynamics, such as long-standing oscillations and delayed regime shifts, and contributes to the emergence and persistence of alternative stable states. Our study highlights the fundamental role of memory in communities, and provides quantitative tools to introduce it in ecological models and analyse its impact under varying conditions.

Author summary

An ecosystem is said to exhibit ecological memory when its future states do not only depend on its current state but also on its initial state and trajectory. Memory may arise through various mechanisms as organisms adapt to their environment, modify it, and accumulate biotic and abiotic material. It may also emerge from phenotypic heterogeneity at the population level. Despite its commonness in nature, ecological memory and its potential influence on ecosystem dynamics have been so far overlooked in many applied contexts. Here, we use modeling to investigate how memory can influence the dynamics, composition, and stability landscape of communities. We incorporate long-term memory effects into a multi-species model recently introduced to investigate alternative stable states in microbial communities. We assess the impact of memory on key aspects of model behavior and further examine our findings using a model parameterized by empirical data from the human gut microbiota. Our approach for modeling long-term memory and studying its implications has the potential to improve our understanding of microbial community dynamics and ultimately our ability to predict, manipulate, and experimentally design microbial ecosystems. It could also be applied more broadly in the study of systems composed of interacting components.

Introduction

The temporal variations observed in ecosystems arise from the interplay of complex deterministic and stochastic processes, the identification and characterization of which requires quantitative models. The empirical study of microbial communities provides an ideal source of data to inform the development of dynamical community models, since this active research area generates dense ecological time series under highly controlled experimental conditions and perturbations [1, 2]. Nevertheless, despite the recent advances in metagenomic sequencing and other high-throughput profiling technologies that are now transforming the analysis of microbial communities [3], there has been only limited success in accurately modeling and predicting the dynamics of microbial communities, even in well-controlled laboratory conditions [2, 4, 5]. This highlights the need to re-evaluate and extend the available models to better account for the various mechanisms that underlie community dynamics [2, 69]. One notable shortcoming of the currently popular dynamical models of microbial communities is that they ignore the role of memory, that is, they are based on the assumption that the community’s future behavior solely depends on its current state, perturbations, and stochasticity.

Ecological memory is present when the community’s past states and trajectories influence its dynamics over extended periods. This is a fundamental and ubiquitous aspect of natural communities, and its influence on community dynamics has been widely recognized across ecological systems [1012]. Memory can emerge at different time scales through a number of mechanisms, including the accumulation of abiotic and biotic material characterizing past legacies of the system, adaptations to past conditions, dormancy, or spatial structure [1318]. Thus, developing and investigating new means to incorporate memory in dynamical models of communities has the potential to yield more accurate mechanistic understanding and predictions.

Diverse approaches have been proposed to explore ecological memory, including time delays [11, 19, 20], historical effects [21], exogenous memory [12], and buffering of disturbances [22]. A stochastic framework was recently used to evaluate the length, patterns, and strength of memory in a series of ecological case studies [11]. However, none of these approaches describes long-term memory with a power-law decay of the influence of past states. The lag times of antibiotic-tolerant persister cells have been shown to be power-law distributed in bacterial populations [23], and this type of long-term memory is likely to be common in microbial communities whenever memory emerges from phenotypic heterogeneity [16, 24]. Furthermore, the impact of memory has not been systematically addressed in contemporary studies, and specific methods have been missing for incorporating memory into standard deterministic models of microbial community dynamics.

Potential community assembly mechanisms have been recently investigated based on extensions of the generalized Lotka-Volterra (gLV) model, which provides a general modeling framework for species interactions [2527]. The standard model has been extended by incorporating external perturbations [28] and sequencing noise [29], and to satisfy specific modeling constraints such as compositionality [30, 31]. gLV models have also been combined with Bayesian Networks for improved longitudinal predictions [32]. One goal of these modeling efforts is to understand how alternative community types reported in the human microbiome may arise, possibly in combination with external factors [3336]. Despite the recent popularity of gLV models in microbial ecology, the impact of memory in these models has been largely ignored.

We address the above shortcomings by explicitly incorporating long-term memory effects into community interaction models using fractional calculus, which provides well-established tools for modeling memory [37, 38]. We incorporate memory into a gLV model with multiplicative species interactions that was recently used to reproduce the alternative stable states observed empirically in the human gut microbiota [25], and we use this extended model to analyze and demonstrate how memory can influence critical aspects of community dynamics. We then assess our findings by adding memory to a gLV model parameterized with experimental data [39]. Our work contributes to the growing body of quantitative techniques for studying community resistance, resilience, prolonged instability, transient dynamics, and abrupt regime shifts [4044].

Results

Modeling memory

The gLV and its extensions are ordinary differential equation systems. This class of models has been commonly used to model community dynamics, but their standard formulations ignore memory effects. Here, we show how ecological memory can be included in these models using fractional calculus. This mathematical tool provides a principled framework for incorporating memory effects into differential equation systems (see e.g. [37, 38, 45]), thus allowing a systematic analysis and quantification of memory effects in commonly used dynamical models of communities.

Let us first consider a simple community with three species that tend to inhibit each other’s growth (Fig 1A). We will later extend this model community to a larger number of species. To model this system, we employ a non-linear extension of the gLV model that was recently used to demonstrate possible mechanisms underlying the emergence of alternative states in a community [25]. This model describes the dynamics of a species i as a function of its growth rate, death rate, and a multiplicative interaction term function of the interaction matrix between all species pairs, as described in Fig 1A. Under certain conditions, this model gives rise to a tristable community, where each stable state corresponds to the dominance of a different species. The community can shift from one stable state to another following a perturbation (Fig 1B). Such transitions can be for instance controlled by changes in the species’ growth rates.

Fig 1. Schematic illustration of a three-species community in the presence of memory and perturbations.

Fig 1

(A) Mutual interaction model introduced by Gonze et al. [25] to illustrate the emergence of alternative stable states in human gut microbial communities. The model describes the dynamics of species abundances Xi as functions of growth rates bi, death rates ki, and inhibition functions fi, where Kij and n denote interaction constants and Hill coefficients, respectively. (B) Standard perturbations include pulse, periodic, and stochastic variation in species immigration, death, or growth rates. Such perturbations may trigger shifts between alternative states. (C) Memory (bolded circles) can be incorporated into dynamical models by substituting the integer-order derivatives with fractional derivatives Dμi of order μi (see [37] and Methods). As decreasing μi values correspond to increasing memory, memory is measured as 1 − μi. When all community members have the same memory (μi = μ for all i), the system is said to have commensurate memory, otherwise incommensurate. Increasing memory changes community dynamics, in particular by introducing inertia and modifying the stability landscape around stable states. (D) Ecological memory can change the system dynamics under perturbations.

To introduce memory, we extend this model by incorporating fractional derivatives. In this extended formulation, the classical derivative operator d/dt is replaced by the fractional derivative operator Dμi, where μi ∈ (0, 1] is the non-integer derivative order for species i (Fig 1C). The fractional derivative is defined by a convolution integral with a power-law memory kernel (see Methods). The μi can then be used as a tuning parameter for memory, with lower values of μi indicating higher levels of memory for species i [37]. The strength of memory for species i is measured as 1 − μi. This model includes two special cases: (i) no memory (μi = μ = 1 for all species i), which corresponds to the original community model with classical first-order derivatives, and (ii) commensurate memory, where all species have equal memory (μi = μ ≤ 1). In contrast, the general case is referred to as incommensurate memory, where μi may be unique for each i, and hence the degree of memory may differ between species. We numerically solve the fractional-order model with varying values of the parameter μi, thus inducing varying levels of memory, and use it to analyse the effect of memory on various aspects of community dynamics, in particular its response to perturbations (Fig 1D).

Resistance and resilience to perturbation

Resistance refers to a system’s capacity to withstand a perturbation without changing its state, while resilience refers to its capacity to recover to its original state after a perturbation [46, 47]. To examine the impact of ecological memory on community resistance and resilience in response to perturbations, we perturbed the system by changing the species growth rates over time. Specifically, we investigated the three-species community under pulse (Fig 2), periodic (Fig 3), and stochastic (Fig 4) perturbations, and analysed the impact of these three types of perturbations on community dynamics in the presence of (commensurate) memory.

Fig 2. Impact of commensurate memory on community resistance and resilience.

Fig 2

(A) A pulse perturbation is applied to the community (left panel): the growth rate of the blue species is lowered while that of the green species is simultaneously raised. The perturbation temporarily moves the community away from its initial stable state, characterized by blue species dominance (middle panel). Introducing commensurate memory (right panel) increases resistance to perturbation since the community is not displaced as far from its initial state compared to the memoryless case (shown in superimposition). The effect on resilience depends on the time scale considered: while memory initially hastens the recovery after the perturbation, it slows down the later stages of the recovery (starting around the time step 150). (B) A slightly stronger pulse perturbation is applied (left panel), triggering a shift toward an alternative stable state dominated by the green species (middle panel). Memory can prevent the state shift (right panel), thus increasing both resistance and resilience to perturbation.

Fig 3. Multi-pulse and periodic perturbations: Commensurate memory impact on hysteresis and transient oscillations.

Fig 3

(A) Two opposite pulse perturbations are applied successively: the blue species growth rate is first briefly lowered, and then raised for a longer time. (B) The top panel shows the hysteresis in the system: the state shift towards the dominance of the green species occurs faster after the first perturbation than the shift back to the initial stable state after the second perturbation. Introducing commensurate memory (middle and bottom panels) delays the first state shift, thus increasing resistance, and hastens the second state shift, thus mitigating the hysteresis effect and increasing long-term resilience. (C) Rapidly alternating opposite perturbations are applied to the blue species growth rate with a regular frequency. (D) Without memory (top), the hysteresis effect leads to a permanent shift towards the green-dominated alternative stable state after a few oscillations. Adding commensurate memory mitigates the hysteresis, thus extending the transitory period (middle), which may generate longstanding oscillations in community composition before the community converges to a stable state (bottom).

Fig 4. Stochastic perturbations with commensurate memory effects.

Fig 4

(A) Species growth rates bi vary stochastically through time according to an Ornstein-Uhlenbeck process (see Table in S1 Table). (B) Dynamical behavior of the system in response to the stochastic perturbation for equal initial species abundances and varying memory level: in addition to slowing down community dynamics, increasing memory limits the overall variation in species abundances, thus enhancing the overall resistance of the system and promoting species coexistence. (C) For some memory strengths, the final state of the system can be sensitive to slight variations in memory, with drastic consequences on community composition.

Our results show that memory tends to increase resistance to perturbations by allowing the competing species’ coexistence for a longer time. In the presence of memory, switches between alternative community states take place more slowly following a pulse perturbation (Fig 2A), or in some cases may be prevented entirely (Fig 2B). S1 Fig provides a further example of the increased resistance provided by memory in a larger, unstructured community where memory helps preserve the stable state after a pulse perturbation compared to the corresponding memoryless system.

After the perturbation has ceased, memory initially hastens the return to the original state, but then slows it down in the later stages of the recovery (Fig 2A). Thus, the impact of memory on resilience is multi-faceted: depending on the time scale considered, memory either hastens or slows down the recovery from perturbations, thus increasing or reducing resilience, respectively. Long-term memory may indeed act across several time scales owing to the slow (here power-law) decay of the influence of past states. Furthermore, in multistable systems, memory enhances resilience by promoting the persistence of the original stable state (Fig 2B).

Considering two successive pulse perturbations in opposite directions (Fig 3A) highlights another way memory can affect resilience in multistable systems. After a state shift triggered by a first perturbation, memory hastens recovery to the initial state following a second, opposite perturbation, hence increasing long-term resilience (Fig 3B). Memory can thus mitigate hysteresis, known to be a feature of several ecological systems.

In the presence of regularly alternating opposite pulse perturbations (Fig 3C), akin to those experienced by the gut microbiome or marine plankton, the community may not be able to recover its initial state if the perturbations follow each other too rapidly. In such circumstances, memoryless communities reach a new stable state faster than the communities with memory, as the latter resist the perturbations for a longer time because of the reduced hysteresis (Fig 3D). This may lead to community dynamics being trapped in long-lasting transient oscillations.

Finally, we analyse the role of stochastic perturbations, which form an essential component of variation in real systems. Under stochastic perturbation (Fig 4A), ecological memory dampens the fluctuations and can significantly delay the shift towards an alternative stable state (Fig 4B). This demonstrates in a more realistic perturbation setting how memory promotes community resistance to perturbation. Our results thus show that memory can enable long-term species coexistence under stochastic or alternating pulse perturbations.

Memory can have unexpected effects on community dynamics when its strength is tuned to bring the system in the vicinity of the tristable region, where the outcome of the dynamics is highly sensitive to initial conditions. Under such conditions, minute changes in memory can push the system over a tipping point towards another attractor, radically changing the outcome (Fig 4C). This illustrates that, beyond introducing inertia into the dynamics and damping perturbations, memory can have non-trivial effects on the system’s stability landscape, which we investigate in the next section.

Impact on stability landscape

Let us now consider a tristable model equivalent to the one used so far, where the 3-species community is replaced for more generality by a 15-species community structured into three groups through its interaction matrix. Each of these groups represents a set of weakly competing species—e.g., because of cross-feeding interactions that mitigate competition, whereas species belonging to different groups compete more strongly with each other (Fig 5A). We show that adding memory in such a system can change the outcome of the dynamics even in the absence of perturbation. In particular, increasing the strength of (incommensurate) memory in the group that is dominant in the stable state of the memoryless system can lead to its exclusion from the new stable state (Fig 5B and 5C). This happens because memory shifts the boundary between stable states in the space of initial conditions.

Fig 5. Impact of incommensurate memory on the community stability landscape: Regime shifts without perturbation.

Fig 5

(A) A 15-species version of Gonze’s mutual interaction model (see Gonze et al. [25]). The 15 species form three groups, blue, red, and green, and between-group species interactions are stronger than within-group interactions. The resulting system exhibits three stable states, each dominated by a different group. (B) Starting from random initial conditions, the blue group of species dominates the community in the stable state when no memory is present (top). Starting from the same initial conditions, imposing memory on the blue species leads to a temporary rise in abundance, but ultimately another (red) group of species dominates instead (bottom). (C) Ternary plots represent the stable state distributions of 50 simulations with random initial conditions and noise in model parameters. Each dot shows, for one simulation at convergence time, the identity of the dominant group (color) and the average relative abundances of the three groups (position in the triangle; see S1 Appendix for details). In the memoryless system (top), the three groups roughly have the same chance of dominating the stable state, whereas imposing memory effects on the blue set of species (bottom) favors stable states where those species are not dominant. (D) Setting incommensurate memory in the blue species around the threshold separating two stable states (here, 0.14816) leads to an abrupt regime shift after a long period of subtle, gradual inclines, without changing any model parameters or adding noise.

Adding memory in a given species may lead to either a reduction or an increase in its abundance depending on the conditions. Whereas Fig 5B and 5C and S2 Fig illustrate the exclusion of a group of species with higher memory from the stable state in the absence of perturbation, memory may conversely increase the persistence or abundance of a species, as illustrated in S3(B) Fig in the presence of perturbation. In fact, in the presence of perturbation, tuning memory in a given species may lead to the dominance of any of the species depending on the perturbation and initial conditions. This result holds both in the case of pulse (S3(A) Fig) and stochastic (S3(B) Fig) perturbation.

When setting the memory strength close to the threshold value between two alternative stable states for a given initial condition, we observe long transient dynamics where the community may remain stuck in an unstable state for an extended period of time. After a long period of subtle, gradual changes, the community eventually converges to its stable state in an abrupt regime shift that is not triggered by any perturbation or changes in the model parameters (Fig 5D).

Remarkably, memory can also induce similar long transient dynamics when the system is outside the region of the model’s parameter space exhibiting multistability. S4 Fig illustrates how, depending on initial conditions, incommensurate memory may induce long transient states in a community that would, in the absence of memory, rapidly converge to a single stable state irrespective of initial conditions. These transient states are characterized by the dominance of a species or group of species that is not dominant in the stable state. A bifurcation diagram shows that the region of the model’s parameter space that exhibits long transient dynamics is next to the multistability region (Fig 6). Memory therefore reveals the “imprint” of alternative stable states that exist in adjacent regions of the parameter space.

Fig 6. Memory induces long transient dynamics in a region of the parameter space adjacent to the multistable region.

Fig 6

Bifurcation diagrams for the 3-species Gonze model showing the relative abundances at time 1,000 of the blue, red, and green species as functions of the blue species’ growth rate, for three different initial conditions (leading to three distinct curves per plot), and in the absence (left column) or presence (right column) of memory. The light and dark yellow regions exhibit several alternative states for the same parameter values. However, it can be shown analytically that the system only admits a single stable state in the dark yellow region, whereas it admits multiple stable states in the light yellow region. Therefore, alternative states at time 1,000 in the dark yellow region correspond to instances of long transient dynamics, where the system remains stuck near ghost attractor states. See S4 Fig for illustrations of the dynamics in the dark yellow region.

Empirically parameterized model

Our approach to modeling memory effects is general and could be applied to any differential equation system. To study whether the observed memory effects also arise in a more realistic setting, we applied our approach to a gLV system parameterized by Venturelli et al. [39] with experimental data from synthetic human gut microbial communities. For demonstration purposes, we restricted ourselves to communities of just two species, which we formed by virtually combining the following bacterial species: Bacteroides uniformis (BU), Bacteroides thetaiotaomicron (BT), Clostridium hiranonis (CH), and Eubacterium rectale (ER). We analyzed three different combinations of two species: (i) combining BU and BT, we obtained a bistable community converging to distinct stable states depending on initial conditions, similarly to the communities investigated so far (Fig 7A and 7B); (ii) combining CH and ER, we obtained a monostable community exhibiting stable coexistence, where neither of the species makes up more than 95% of the total abundance in the stable state (S5(C) Fig); and (iii) combining BT and CH, we obtained a monostable community exhibiting single species dominance in the stable state (S5(D) Fig). We compared the results obtained by introducing memory in these empirically parameterized communities with those obtained in a two-species version of the multistable (here bistable) model studied so far, hereafter referred to as Gonze model (S5(A) and S5(B) Fig). We systematically tested a wide range of memory strength values to assess the robustness of our results.

Fig 7. Impact of memory on the dynamics of an empirically parameterized bistable community.

Fig 7

(A-B) Dynamics of a bistable community composed of Bacteroides uniformis (BU) and Bacteroides thetaiotaomicron (BT), as simulated from a gLV model fitted to a set of empirical time series by Venturelli et al. [39] in which we have introduced memory effects (Eq (2) in the Methods). (A) Dynamics for the same initial conditions as one of the empirical time series used to fit the model. The original empirical data are indicated by squares and (truncated) error bars centered on the squares, representing the mean and standard deviation across biological replicates, respectively. (B) Dynamics for initial conditions leading to the alternative stable state dominated by BU. (A) and (B) illustrate that increasing memory lengthens the convergence time to the stable state, although it may hasten it in initial stages. (C-D) For each matrix entry in (E-F), a pulse perturbation is applied to the growth rate of BU (C), which temporarily displaces the community away from its original stable state dominated by BT (D). Convergence is achieved once species abundances reach an arbitrarily set convergence interval (in purple). (E-F) Recovery time to stable state after perturbation as a function of memory strength in BU and BT (the upper-left cell corresponds to the memoryless case). Both color and matrix entries indicate the recovery time after a pulse perturbation starting from the BT-dominated stable state, as illustrated in (C-D). (E) Recovery times are measured using a loose convergence interval (Bray-Curtis dissimilarity of 0.02 or lower between the community’s current state and its initial stable state), thus capturing the early stages of the recovery. Recovery time decreases with increasing memory, i.e., memory effects increase resilience. (F) Recovery times are now measured using a much tighter convergence interval (Bray-Curtis dissimilarity of 7e − 4 or lower), thus capturing the later stages of the recovery. Recovery time now decreases with increasing memory, i.e., memory effects decrease resilience. Hence, as for the two-species Gonze model in S8 Fig, the effect of memory on resilience depends on the time scale considered: memory hastens the recovery at first (E) but slows it down further in time (F).

We measured the resistance and resilience of the two bistable community types (i.e., the BU-BT community and the two-species Gonze model) to a pulse perturbation. We measured resistance as the strongest perturbation the community can withstand before shifting to an alternative stable state (see Resistance and resilience metrics). In agreement with our previous results, we find that memory consistently increases resistance over the tested range of memory strengths (S6 and S7 Figs). We measured resilience as the recovery time to the stable state after perturbation. In agreement with our previous results, we find that memory hastens the recovery over short time scales (Fig 7E and S8(A) Fig) but slows it down over longer time scales (Fig 7F and S8(B) Fig).

We also measured the convergence time to the stable state in the absence of perturbation under varying memory strength in all community types, that is, in the three empirically parameterized communities as well as in the two-species Gonze model. In general, introducing memory lengthens the convergence time to the stable state, illustrating the inertia induced by memory (S9S12 Figs), except when memory leads to a change in stable state (in the two bistable communities), in which case introducing memory may influence the convergence time either way (S9 and S10 Figs).

Discussion

Our understanding of community dynamics heavily relies on mathematical modeling. Dynamical community modeling is a particularly active research area in microbial ecology, where recent studies have proposed numerous mechanistic models of microbial community dynamics exploring the role of interactions, stochasticity, and external factors [2, 25, 4850]. These studies have, however, largely neglected the role of ecological memory despite its potentially remarkable impact on community variation. We have shown here how ecological memory can be incorporated into models of microbial community dynamics and used this modeling tool to demonstrate the role of memory as a key determinant of community dynamics. This has allowed us to expand our understanding of the impact of memory on community response to perturbation, the emergence of alternative community states, long transient dynamics and delayed regime shifts.

Ecological memory is a systemic property that can arise through various mechanisms. First, memory-like delay effects may arise through intracellular mechanisms, such as cell lag phases or inertia in transcriptional regulation, which may be effectively memoryless. In such cases, the dampening effect on the dynamics may be simply modeled by introducing a lag in community dynamics rather than long-term memory effects. In contrast, long-term memory may arise if communities can alter their environment and thus modify environmental parameters in ways that reflect past events, or if organisms exhibit context-specific growth rates that reflect past adaptations [51, 52]. It may also emerge at the population or community level through phenotypic heterogeneity [23, 24], which can be favored by dormancy, spatial structure, or adaptive bet-hedging mechanisms [1518].

Ecological communities are constantly subject to perturbations arising from external factors, and our analysis focuses in particular on the combined effect of perturbations and memory on community dynamics. Environmental fluctuations through time have a fundamental influence on communities: they may promote species coexistence, increase community diversity [53, 54], contribute to the properties of stable states [43], and in some cases trigger abrupt regime shifts [55]. Our analysis of memory in perturbed communities is particularly relevant to recent studies analysing the response of experimental microbial communities to antibiotic pulse perturbation [1] or the impact of periodic perturbations on the evolution of antimicrobial resistance [40].

The emergence of alternative community states has been recently debated in the microbiome research literature [36, 56]. Gonze et al. [25] demonstrated how pulse perturbations can bring a tristable system to a boundary of the tristability region, which then triggers a transition to an alternative stable state. We have shown how introducing memory into this model can exert additional influence on the resulting dynamics and alter the community’s stability landscape. We then assessed the generality and robustness of some of our results by reproducing them in empirically parameterized models. Although we have focused on investigating the effect of memory in deterministic models of biotic interactions, these models could easily be extended to take into account selection by the environment and stochastic drift in species abundances.

We based our modeling of memory on fractional calculus [37], an extensively studied mathematical framework that benefits from well-established mathematical properties (e.g., regarding the existence and uniqueness of solutions). It has a broad range of applications and has already been used to model memory in other fields [57, 58]. In this framework, memory is represented by fractional derivatives and their associated kernel, which determines how quickly the influence of past states fades out (see Methods, Fig 8). Fractional calculus allows introducing memory characterized by a power-law kernel, that is, a power-law decay of the influence of past states on the present state. It is a phenomenological modeling tool that does not assume a specific ecological mechanism for the emergence of memory. It can be regarded as a general approach to the modeling of gradually declining long-term memory, such as the one emerging from phenotypically heterogeneous bacterial populations [15, 16, 23], for instance. Hence, our qualitative results on the influence of long-term memory on community dynamics are likely to hold more generally. One major advantage of fractional calculus is that it can be readily used to introduce memory in any existing dynamical model based on ordinary or partial differential equations, and so can be combined with many types of ecological models. It also allows for fast numerical simulations (see S2 Appendix for details). This makes the resulting models potentially suitable for simulation-based inference from data, which represents an interesting avenue for future research.

In general, memory adds a certain inertia in community dynamics that tends to damp down fluctuations and can therefore mitigate or prevent more extreme and sudden changes in the system. This may favor species coexistence in the presence of perturbation, and lead to qualitative changes in the dynamics and in community composition under certain conditions. We have clarified in particular how memory influences resistance and resilience to perturbations in communities. An interesting line of research for future work would be to further quantify the influence of memory on the response to perturbation using recently proposed general measures of resilience, such as exit time [59]. Our findings are in agreement with previous studies showing that commensurate fractional derivatives cause intrinsic damping in a system [60, 61], which may delay transitions or shift critical thresholds [38]. Models with incommensurate memory, i.e., with different memory strengths in different species, yield differential equation systems that are mathematically more challenging to analyse, and therefore remain less well understood. Our analyses with incommensurate memory show that memory in a less abundant species tends to have a stronger influence on the overall dynamics than in a dominant one (true in most tested configurations), and that memory in a given species may or may not favor it depending on the context, such as the presence of perturbations.

A result of particular interest is that memory can induce prolonged periods of instability [42], also called long transient dynamics [44]. Specifically, memory appears to favor long “saddle point crawl-by” in regions of the parameter space that exhibit multistability, and to reinforce “ghost attractor states” in neighboring regions of the parameter space [44]. The long transient states we observed could easily be mistaken for genuine stable states over insufficiently long observation times. Long transient dynamics have previously been reported in ecological systems [62] and chemostat experiments [63], and have been linked to stochasticity, multiple time scales, and high dimensionality [44]. Ecological memory provides an alternative, and largely overlooked, mechanism for their emergence. It has been argued that regime shifts may abruptly occur without parameter changes during such long transient dynamics [44], and our results support this view since we have shown that the presence of memory can lead to abrupt regime shifts even in the absence of perturbations.

Several extensions of our model could be considered in future studies to enhance its flexibility and to model memory more generally, such as switching memory on and off along time [38] or applying fractional differential equations with time-varying derivative orders [64]. Alternative approaches have been considered to model ecological memory: a simple approach is to incorporate autocorrelation into the model structure [20], and one could also model memory using distributed delay differential equations (DDE) [65], fractional delay differential equations [66], or memory-dependent integer derivatives [67], which allow for greater flexibility in the shape of kernel functions. However, constructing fractional derivatives analogs of standard models by using kernels other than power-law is mathematically challenging [68], and may fail to meaningfully describe long-term memory effects [69].

The modeling of real systems using models that incorporate memory would benefit from the ability to gather empirical evidence for the presence, strength, and type of memory in the system. Recent literature suggests that it might be possible to empirically detect the presence of memory based on the broad properties of a time series: it has been shown that longitudinal time series of microbial communities may carry detectable signatures of underlying ecological processes [7, 70], and recently Bayesian hierarchical models [11, 19], random forests [12], neural networks [71], and unsupervised Hebbian learning [24] have been proposed to detect signatures of memory in other contexts. Furthermore, specifically designed longitudinal experiments could be used to characterize memory in real communities. Although direct experimental manipulation of memory in a microbial system is challenging, the manipulation of lag times in E. coli’s diauxic shift provides a recent example [72]. We have here incorporated memory and evaluated its impact in a two-species system with experimentally obtained parameters [39], and this approach could be used to provide experimentally testable predictions on community dynamics.

Improving our understanding of the mechanisms underlying community dynamics is a necessity to generate more accurate predictions, and ultimately to develop new techniques for the manipulation of communities. We have combined here theoretical analysis and simulations to explore the various facets of ecological memory and highlight its often overlooked role as a key determinant of community dynamics.

Methods

In the following, we detail the mathematical aspects of incorporating ecological memory into two non-linear models belonging to the gLV family.

Model 1: Gonze model

We used, as a starting point, the following memoryless model introduced by Gonze et al. [25] and referred to in this paper as “Gonze model”:

dXidt=XibifiXkkiXi,fiXk=k=1kiNKiknKikn+Xkn. (1)

This model describes the dynamics of each microbial species abundance Xi according to its growth rate bi, its death rate ki, and an inhibition term fi defined by the inter-specific interaction constants Kij and their exponent n (known as the Hill coefficient). Kij represents the inhibition of species i by species j: the lower it is, the stronger the inhibition. Although Xi denotes absolute abundances, we represent relative abundances in most figures to ease visual comparison (except in Figs 2, 5B and 5D and in S7S12 Figs).

Three-group model

We define three sets of species indexed by B (blue), R (red), and G (green). Each species i belongs to exactly one of these three groups. We define the growth rate of each group by the growth vector b = [bB, bR, bG], where bB = {bi | iB}, bR = {bi | iR}, and bG = {bi | iG}. We also define the inter-specific interaction matrix K = {Kij | i, jB or R or G} such that Kij only depends on the group memberships of species i and j, plus a small noise term (see Fig 5A and Methods). We first considered a community of three species (i.e., only one species per group), and then a community of 15 species forming three groups with strong inter-group inhibition and weak intra-group inhibition. If the inhibition strength is large enough (small Kij), this model can have three coexisting stable states (tristability). This tristable community is dominated by one of the three groups depending on initial species abundances, interaction matrix K, and growth vector b.

Two-species version

In the “Empirically parameterized model” section of the Results, we additionally use a two-species version of this model for the sake of comparison with the empirically parameterized two-species gLV models we introduce in that section (see below). This two-species version exhibits similar properties but is bistable instead of tristable, each stable state being dominated by one of the species.

Model 2: Empirically parameterized gLV model

To study the impact of memory in a more realistic setting, we examined memory effects in the following dynamic species abundance model of the human gut microbiome, parameterized by Venturelli et al. [39] using in vitro interaction experiments:

dXidt=Xi(bi+j=1NKijXj), (2)

where N, bi, and Kij indicate the number of species, growth rates, intra-specific interaction coefficients (i = j), and inter-specific interaction coefficients (ij), respectively. We considered four microbial species, based on the values inferred in [39] for their interaction coefficients and growth rates (see Appendix Figure S27 in [39]): Bacteroides uniformis (BU), which is negatively associated with immunological dysfunction [73], Bacteroides thetaiotaomicron (BT), which is positively associated with Ulcerative Colitis [74], Clostridium hiranonis (CH), and Eubacterium rectale (ER), which is positively associated with Type II diabetes [75]. We focused on three two-species communities exhibiting different qualitative behaviors: coexistence (CH and ER, with +/- interaction), dominance (BT and CH, with -/- interaction), and bistability (BU and BT, with -/- interaction).

Incorporating memory using fractional calculus

Fractional order derivatives have been successfully used to account for memory effects in many disciplines [37, 38, 57]. To introduce memory in the initial models defined by Eqs (1) and (2), we replaced the ordinary first-order time derivatives by fractional derivatives Dμi (more precisely, Caputo fractional derivatives [76]). These modified models can be expressed, using the simplifying notation FiXi(bi fi({Xk}) − kiXi) or FiXi(bi+j=1NKijXj), as:

DμiXi=Fi,0<μi1,μiR. (3)

Fractional derivatives implicitly introduce a time correlation function, or “memory kernel”, which imposes a dependency between the current system state and its past trajectory via a convolution integral (Fig 8A). That is to say, Eq (3) can also be expressed using a first-order derivative, as:

dXi(t)dt=t0tKμi(t-τ)Fi(τ)dτ. (4)

Fig 8. An intuitive interpretation of the memory introduced by fractional derivatives and of its effect on convergence time for the logistic curve.

Fig 8

(A) The F function in Eq (4) for the standard logistic equation, and a sketch of the memory effects introduced by fractional derivatives on a time series: the weight of past states on the present decreases as a power-law of time. (B) Influence of a range of memory strengths on the classic logistic growth curve.

The memory kernel’s decay rate depends on μi: the lower the value of μi, the slower it will decay (Fig 8). Throughout this article, we quantify memory as 1 − μi. In the memoryless case (μi = 1), the kernel becomes a Dirac delta function, δ(tτ), which results in an ordinary integer-order differential equation. For 0 < μi < 1, the memory thus introduced can be considered to have a power-law decay in time, a temporal scaling behavior that is common in nature [23, 58, 61, 62, 77]. Indeed, it can be shown that there is a parameter μ > 0 such that the limit limt → ∞ tμ Kμ(tτ) is a finite constant for fixed τ [78]. Efficient numerical methods exist to solve fractional-order differential equation systems (see S2 Appendix).

Resistance and resilience metrics

We define here quantitative metrics of resistance and resilience, which we use to rigorously investigate and summarise the influence of memory on the two-species community models analyzed in the “Empirically parameterized model” section of the results.

Convergence time

To measure the time of convergence to the stable state, we measured through time the Bray-Curtis dissimilarity between the current state of the community, defined by the set of the abundances of all its component species, and its stable state, corresponding to a fixed point of the dynamical system. We measured Bray-Curtis dissimilarity between communities 1 and 2 as BC=(i=1S|Xi,1-Xi,2|)/(i=1S(Xi,1+Xi,2)), where Xi,1 and Xi,2 are the absolute abundances of species i in community 1 and 2 and S is the total number of species. We considered the community to have converged once this dissimilarity was lower than a certain threshold, referred to as the convergence interval. In some cases, we then compared the convergence times obtained with more or less stringent convergence intervals. We used this approach to quantify the convergence time to stability in S8S12 Figs.

Resistance

We measured resistance to perturbation of a multistable community as the strongest perturbation for which the community still recovers to its initial stable state (instead of shifting to an alternative stable state; see Fig 2). We used this approach in S6 and S7 Figs to quantify the resistance of two-species bistable communities to a pulse perturbation in the growth rate of one of the species, starting from the stable state. The strength of the perturbation is defined as the value at which the growth rate is set during the pulse.

Resilience

We measured resilience to perturbation as the recovery time to the initial stable state after a perturbation. We used the strongest perturbation for which the community still recovers to its initial stable state. We measured the recovery time as the convergence time to the stable state (see Fig 7C and 7D). We used this approach in Fig 7E and 7F and S8 Fig to quantify the resilience of two-species bistable communities to a pulse perturbation.

Supporting information

S1 Appendix. Methodological details for Fig 5C and S1 Fig.

(PDF)

S2 Appendix. Numerical simulations.

(PDF)

S1 Table. Exact model specifications for the 2, 3, and 15-species Gonze model (Eq (1) in Methods).

(PDF)

S2 Table. Exact model specifications for the 2-species model given by Eq (2) in Methods, and for the logistic growth curve in Fig 7.

(PDF)

S1 Fig. Memory effects preserve the stable state in randomly structured communities.

(PDF)

S2 Fig. Memory in a group of species decreases their relative abundance.

(PDF)

S3 Fig. Impact of incommensurate memory in the presence of perturbation.

(PDF)

S4 Fig. Memory can induce long transient dynamics even in the absence of multistability.

(PDF)

S5 Fig. Memory effects on dynamics for different two-species community types.

(PDF)

S6 Fig. Impact of memory on resistance to a pulse perturbation in a two-species community exhibiting bistability between dominance of Bacteroides uniformis (BU) and Bacteroides thetaiotaomicron (BT).

(PDF)

S7 Fig. Impact of memory on resistance to a pulse perturbation in the two-species version of Gonze multistable model.

(PDF)

S8 Fig. Impact of memory on resilience after a pulse perturbation in the two-species version of Gonze multistable model.

(PDF)

S9 Fig. Impact of memory on convergence time in the two-species version of Gonze multistable model.

(PDF)

S10 Fig. Impact of memory on convergence time in a two-species community exhibiting bistability between dominance of Bacteroides uniformis (BU) and Bacteroides thetaiotaomicron (BT).

(PDF)

S11 Fig. Impact of memory on convergence time in a two-species community exhibiting stable coexistence between Eubacterium rectale (ER) and Clostridium hiranonis (CH).

(PDF)

S12 Fig. Impact of memory on convergence time in a two-species community exhibiting stable dominance of Clostridium hiranonis (CH) by Bacteroides thetaiotaomicron (BT).

(PDF)

Data Availability

The computational results for this article have been generated with MATLAB. All data and code used for running the simulations and generating the figures is available in GitHub, and accessible via the permanent Zenodo DOI: https://doi.org/10.5281/zenodo.5979561.

Funding Statement

This study was funded by the Academy of Finland (URL: https://www.aka.fi/), the University of Turku (URL: https://www.utu.fi/en/research/utugs/dpt), and the European Union’s Horizon 2020 research and innovation program and European Research Council (ERC) (URL: https://ec.europa.eu/programmes/horizon2020/en/home). The salary for MK was covered by the University of Turku Graduate School Doctoral Programme in Technology (UTUGS/DPT). Academy of Finland covered the salary for GSK (decisions 340314, to GSK) and for LL (decisions 295741 and 330887, to LL). The European Union’s Horizon 2020 research and innovation program (grant 952914, to LL) and the Sakari Alhopuro foundation (grant 20210172, to GSK) covered partial salary for GSK. KF was supported by the European Research Council (ERC; grant 801747, to KF). The funders had no role in study design, data collection and analysis, decision to publish, or preparation of the manuscript.

References

  • 1. Cairns J, Jokela R, Becks L, Mustonen V, Hiltunen T. Repeatable ecological dynamics govern the response of experimental communities to antibiotic pulse perturbation. Nat Ecol Evol. 2020;4(10):1385–1394. doi: 10.1038/s41559-020-1272-9 [DOI] [PubMed] [Google Scholar]
  • 2. Gonze D, Coyte KZ, Lahti L, Faust K. Microbial communities as dynamical systems. Curr Opin Microbiol. 2018;44:41–49. doi: 10.1016/j.mib.2018.07.004 [DOI] [PubMed] [Google Scholar]
  • 3. Quince C, Walker AW, Simpson JT, Loman NJ, Segata N. Shotgun metagenomics, from sampling to analysis. Nat biotechnol. 2017;35(9):833–844. doi: 10.1038/nbt.3935 [DOI] [PubMed] [Google Scholar]
  • 4. Widder S, Allen RJ, Pfeiffer T, Curtis TP, Wiuf C, Sloan WT, et al. Challenges in microbial ecology: building predictive understanding of community function and dynamics. The ISME Journal. 2016;10(11):2557–2568. doi: 10.1038/ismej.2016.45 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 5. Bosi E, Bacci G, Mengoni A, Fondi M. Perspectives and Challenges in Microbial Communities Metabolic Modeling. Front genet. 2017;8. doi: 10.3389/fgene.2017.00088 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 6. Song HS, Cannon WR, Beliaev AS, Konopka A. Mathematical Modeling of Microbial Community Dynamics: A Methodological Review. Processes. 2014;2(4):711–752. doi: 10.3390/pr2040711 [DOI] [Google Scholar]
  • 7. Faust K, Bauchinger F, Laroche B, De Buyl S, Lahti L, Washburne AD, et al. Signatures of ecological processes in microbial community time series. Microbiome. 2018;6(1):1–13. doi: 10.1186/s40168-018-0496-2 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 8. Coenen AR, Hu SK, Luo E, Muratore D, Weitz JS. A Primer for Microbiome Time-Series Analysis. Front genet. 2020;11:310–310. doi: 10.3389/fgene.2020.00310 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 9. Björk JR, Dasari M, Grieneisen L, Archie EA. Primate microbiomes over time: Longitudinal answers to standing questions in microbiome research. Am J Primatol. 2019;81(10-11):e22970. doi: 10.1002/ajp.22970 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 10. Johnstone JF, Allen CD, Franklin JF, Frelich LE, Harvey BJ, Higuera PE, et al. Changing disturbance regimes, ecological memory, and forest resilience. Front Ecol Environ. 2016;14(7):369–378. doi: 10.1002/fee.1311 [DOI] [Google Scholar]
  • 11. Ogle K, Barber JJ, Barron-Gafford GA, Bentley LP, Young JM, Huxman TE, et al. Quantifying ecological memory in plant and ecosystem processes. Ecol Lett. 2015;18(3):221–235. doi: 10.1111/ele.12399 [DOI] [PubMed] [Google Scholar]
  • 12. Benito BM, Gil-Romera G, Birks HJB. Ecological memory at millennial time-scales: the importance of data constraints, species longevity and niche features. Ecography. 2020;43(1):1–10. doi: 10.1111/ecog.04772 [DOI] [Google Scholar]
  • 13. Schweiger AH, Boulangeat I, Conradi T, Davis M, Svenning JC. The importance of ecological memory for trophic rewilding as an ecosystem restoration approach. Biol Rev. 2019;94(1):1–15. doi: 10.1111/brv.12432 [DOI] [PubMed] [Google Scholar]
  • 14. Žliobaitė I, Fortelius M, Stenseth NC. Reconciling taxon senescence with the Red Queen’s hypothesis. Nature. 2017;552(7683):92–95. doi: 10.1038/nature24656 [DOI] [PubMed] [Google Scholar]
  • 15. Skanata A, Kussell E. Ecological memory preserves phage resistance mechanisms in bacteria. Nat Commun. 2021;12(1):6817. doi: 10.1038/s41467-021-26609-w [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 16. Gokhale CS, Giaimo S, Remigi P. Memory shapes microbial populations. PLoS Comput Biol. 2021;17(10):1–16. doi: 10.1371/journal.pcbi.1009431 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 17. Miyaue S, Suzuki E, Komiyama Y, Kondo Y, Morikawa M, Maeda S. Bacterial memory of persisters: bacterial persister cells can retain their phenotype for days or weeks after withdrawal from colony–biofilm culture. Front microbiol. 2018;9. doi: 10.3389/fmicb.2018.01396 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 18. Mutlu A, Trauth S, Ziesack M, Nagler K, Bergeest JP, Rohr K, et al. Phenotypic memory in Bacillus subtilis links dormancy entry and exit by a spore quantity-quality tradeoff. Nat Commun. 2018;9(1):69. doi: 10.1038/s41467-017-02477-1 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 19. Itter MS, Vanhatalo J, Finley AO. EcoMem: An R package for quantifying ecological memory. Environ Model Softw. 2019;119:305–308. doi: 10.1016/j.envsoft.2019.06.004 [DOI] [Google Scholar]
  • 20. Golinski M, Bauch C, Anand M. The effects of endogenous ecological memory on population stability and resilience in a variable environment. Ecol Model. 2008;212(3):334–341. doi: 10.1016/j.ecolmodel.2007.11.005 [DOI] [Google Scholar]
  • 21. Schaefer V. Alien invasions, ecological restoration in cities and the loss of ecological memory. Restor Ecol. 2009;17(2):171–176. doi: 10.1111/j.1526-100X.2008.00513.x [DOI] [Google Scholar]
  • 22. Bengtsson J, Angelstam P, Elmqvist T, Emanuelsson U, Folke C, Ihse M, et al. Reserves, resilience and dynamic landscapes. Ambio. 2003;32(6):389–396. doi: 10.1579/0044-7447-32.6.389 [DOI] [PubMed] [Google Scholar]
  • 23. Şimşek E, Kim M. Power-law tail in lag time distribution underlies bacterial persistence. PNAS. 2019;116(36):17635–17640. doi: 10.1073/pnas.1903836116 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 24. Power DA, Watson RA, Szathmáry E, Mills R, Powers ST, Doncaster CP, et al. What can ecosystems learn? Expanding evolutionary ecology with learning theory. Biol Direct. 2015;10(1):69. doi: 10.1186/s13062-015-0094-1 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 25. Gonze D, Lahti L, Raes J, Faust K. Multi-stability and the origin of microbial community types. ISME J. 2017;11(10):2159. doi: 10.1038/ismej.2017.60 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 26.Gibson T, Gerber G. Robust and Scalable Models of Microbiome Dynamics. In: Proceedings of the 35th International Conference on Machine Learning. vol. 80. PMLR; 2018. p. 1763–1772.
  • 27. Marino S, Baxter NT, Huffnagle GB, Petrosino JF, Schloss PD. Mathematical modeling of primary succession of murine intestinal microbiota. Proc Natl Acad Sci USA. 2014;111(1):439–444. doi: 10.1073/pnas.1311322111 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 28. Stein RR, Bucci V, Toussaint NC, Buffie CG, Rätsch G, Pamer EG, et al. Ecological modeling from time-series inference: insight into dynamics and stability of intestinal microbiota. PLoS Comput Biol. 2013;9(12):e1003388. doi: 10.1371/journal.pcbi.1003388 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 29. Bucci V, Tzen B, Li N, Simmons M, Tanoue T, Bogart E, et al. MDSINE: Microbial Dynamical Systems INference Engine for microbiome time-series analyses. Genome Biol. 2016;17(1):1–17. doi: 10.1186/s13059-016-0980-6 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 30. Li C, Chng KR, Kwah JS, Av-Shalom TV, Tucker-Kellogg L, Nagarajan N. An expectation-maximization algorithm enables accurate ecological modeling using longitudinal microbiome sequencing data. Microbiome. 2019;7(1):1–14. doi: 10.1186/s40168-019-0729-z [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 31. Joseph TA, Shenhav L, Xavier JB, Halperin E, Pe’er I. Compositional Lotka-Volterra describes microbial dynamics in the simplex. PLoS Comput Biol. 2020;16(5):e1007917. doi: 10.1371/journal.pcbi.1007917 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 32. McGeachie MJ, Sordillo JE, Gibson T, Weinstock GM, Liu YY, Gold DR, et al. Longitudinal prediction of the infant gut microbiome with dynamic bayesian networks. Sci Rep. 2016;6:20359. doi: 10.1038/srep20359 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 33. Falony G, Joossens M, Vieira-Silva S, Wang J, Darzi Y, Faust K, et al. Population-level analysis of gut microbiome variation. Science. 2016;352(6285):560–564. doi: 10.1126/science.aad3503 [DOI] [PubMed] [Google Scholar]
  • 34. Arumugam M, Raes J, Pelletier E, Le Paslier D, Yamada T, Mende DR, et al. Enterotypes of the human gut microbiome. Nature. 2011;473(7346):174–180. doi: 10.1038/nature09944 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 35. Ding T, Schloss PD. Dynamics and associations of microbial community types across the human body. Nature. 2014;509(7500):357–360. doi: 10.1038/nature13178 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 36. Costea PI, Hildebrand F, Arumugam M, Bäckhed F, Blaser MJ, Bushman FD, et al. Enterotypes in the landscape of gut microbial community composition. Nat Microbiol. 2018;3(1):8–16. doi: 10.1038/s41564-017-0072-8 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 37. Du M, Wang Z, Hu H. Measuring memory with the order of fractional derivative. Sci Rep. 2013;3(1):1–3. doi: 10.1038/srep03431 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 38. Saeedian M, Khalighi M, Azimi-Tafreshi N, Jafari GR, Ausloos M. Memory effects on epidemic evolution: The susceptible-infected-recovered epidemic model. Phys Rev E. 2017;95:022409. doi: 10.1103/PhysRevE.95.022409 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 39. Venturelli OS, Carr AV, Fisher G, Hsu RH, Lau R, Bowen BP, et al. Deciphering microbial interactions in synthetic human gut microbiome communities. Mol Syst Biol. 2018;14(6):e8157. doi: 10.15252/msb.20178157 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 40. Marrec L, Bitbol AF. Resist or perish: Fate of a microbial population subjected to a periodic presence of antimicrobial. PLoS Comput Biol. 2020;16(4):e1007798. doi: 10.1371/journal.pcbi.1007798 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 41. Rivero M, Rogosin SV, Tenreiro Machado JA, Trujillo JJ. Stability of fractional order systems. Math Probl Eng. 2013;2013:356215. doi: 10.1155/2013/356215 [DOI] [Google Scholar]
  • 42. Spanbauer TL, Allen CR, Angeler DG, Eason T, Fritz SC, Garmestani AS, et al. Prolonged instability prior to a regime shift. PLoS One. 2014;9(10). doi: 10.1371/journal.pone.0108936 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 43. Tropini C, Moss EL, Merrill BD, Ng KM, Higginbottom SK, Casavant EP, et al. Transient osmotic perturbation causes long-term alteration to the gut microbiota. Cell. 2018;173(7):1742–1754. doi: 10.1016/j.cell.2018.05.008 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 44. Hastings A, Abbott KC, Cuddington K, Francis T, Gellner G, Lai YC, et al. Transient phenomena in ecology. Science. 2018;361(6406):eaat6412. doi: 10.1126/science.aat6412 [DOI] [PubMed] [Google Scholar]
  • 45. Khalighi M, Eftekhari L, Hosseinpour S, Lahti L. Three-species Lotka-Volterra model with respect to Caputo and Caputo-Fabrizio fractional operators. Symmetry. 2021;13(3):368. doi: 10.3390/sym13030368 [DOI] [Google Scholar]
  • 46. Shade A, Peter H, Allison S, Baho D, Berga M, Buergmann H, et al. Fundamentals of Microbial Community Resistance and Resilience. Front in Microbiol. 2012;3. doi: 10.3389/fmicb.2012.00417 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 47. Sommer F, Anderson JM, Bharti R, Raes J, Rosenstiel P. The resilience of the intestinal microbiota influences health and disease. Nat Rev Microbiol. 2017;15(10):630–638. doi: 10.1038/nrmicro.2017.58 [DOI] [PubMed] [Google Scholar]
  • 48. Khazaei T, Williams RL, Bogatyrev SR, Doyle JC, Henry CS, Ismagilov RF. Metabolic multistability and hysteresis in a model aerobe-anaerobe microbiome community. Sci Adv. 2020;6(33):eaba0353. doi: 10.1126/sciadv.aba0353 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 49. Bush T, Diao M, Allen RJ, Sinnige R, Muyzer G, Huisman J. Oxic-anoxic regime shifts mediated by feedbacks between biogeochemical processes and microbial community dynamics. Nat Commun. 2017;8(1):1–9. doi: 10.1038/s41467-017-00912-x [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 50. Goyal A, Dubinkina V, Maslov S. Multiple stable states in microbial communities explained by the stable marriage problem. ISME J. 2018;12(12):2823–2834. doi: 10.1038/s41396-018-0222-x [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 51. Miller AD, Inamine H, Buckling A, Roxburgh SH, Shea K. How disturbance history alters invasion success: biotic legacies and regime change. Ecol Lett. 2021;24(4):687–697. doi: 10.1111/ele.13685 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 52. Yen P, Papin JA. History of antibiotic adaptation influences microbial evolutionary dynamics during subsequent treatment. PLoS Biol. 2017;15(8):1–34. doi: 10.1371/journal.pbio.2001586 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 53. Hutchinson GE. The paradox of the plankton. Am Nat. 1961;95(882):137–145. doi: 10.1086/282171 [DOI] [Google Scholar]
  • 54. Huston M. A general hypothesis of species diversity. Am Nat. 1979;113(1):81–101. doi: 10.1086/283366 [DOI] [Google Scholar]
  • 55. Abreu CI, Andersen Woltz VL, Friedman J, Gore J. Microbial communities display alternative stable states in a fluctuating environment. PLoS Comput Biol. 2020;16(5):1–17. doi: 10.1371/journal.pcbi.1007934 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 56. Knights D, Ward TL, McKinlay CE, Miller H, Gonzalez A, McDonald D, et al. Rethinking “Enterotypes”. Cell Host & Microbe. 2014;16(4):433–437. doi: 10.1016/j.chom.2014.09.013 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 57. Sun H, Zhang Y, Baleanu D, Chen W, Chen Y. A new collection of real world applications of fractional calculus in science and engineering. Commun Nonlinear Sci Numer Simul. 2018;64:213–231. doi: 10.1016/j.cnsns.2018.04.019 [DOI] [Google Scholar]
  • 58. Almeida R, Bastos NR, Monteiro MTT. Modeling some real phenomena by fractional differential equations. Math Methods Appl Sci. 2016;39(16):4846–4855. doi: 10.1002/mma.3818 [DOI] [Google Scholar]
  • 59. Arani BMS, Carpenter SR, Lahti L, van Nes EH, Scheffer M. Exit time as a measure of ecological resilience. Science. 2021;372 (6547). doi: 10.1126/science.aay4895 [DOI] [PubMed] [Google Scholar]
  • 60. Achar BNN, Hanneken JW, Clarke T. Response characteristics of a fractional oscillator. Physica A. 2002;309(3):275–288. doi: 10.1016/S0378-4371(02)00609-X [DOI] [Google Scholar]
  • 61. Tarasov VE. Quantum dissipation from power-law memory. Ann Phys (N Y). 2012;327(6):1719–1729. doi: 10.1016/j.aop.2012.02.011 [DOI] [Google Scholar]
  • 62. Morozov A, Abbott K, Cuddington K, Francis T, Gellner G, Hastings A, et al. Long transients in ecology: Theory and applications. Phys Life Rev. 2020;32:1–40. doi: 10.1016/j.plrev.2020.03.002 [DOI] [PubMed] [Google Scholar]
  • 63. Fukami T. Assembly history interacts with ecosystem size to influence species diversity. Ecology. 2004;85(12):3234–3242. doi: 10.1890/04-0340 [DOI] [Google Scholar]
  • 64. Sun H, Chang A, Zhang Y, Chen W. A review on variable-order fractional differential equations: mathematical foundations, physical models, numerical methods and applications. Fract Calc Appl Anal. 2019;22(1):27–59. doi: 10.1515/fca-2019-0003 [DOI] [Google Scholar]
  • 65. Cooke KL, Grossman Z. Discrete delay, distributed delay and stability switches. J Math Anal Appl. 1982;86(2):592–627. doi: 10.1016/0022-247X(82)90243-8 [DOI] [Google Scholar]
  • 66. Zúñiga-Aguilar C, Coronel-Escamilla A, Gómez-Aguilar J, Alvarado-Martínez V, Romero-Ugalde H. New numerical approximation for solving fractional delay differential equations of variable order using artificial neural networks. Eur Phys J Plus. 2018;133(2):1–16. [Google Scholar]
  • 67. Wang JL, Li HF. Memory-dependent derivative versus fractional derivative (I): Difference in temporal modeling. J Comput Appl Math. 2021;384:112923. doi: 10.1016/j.cam.2020.112923 [DOI] [Google Scholar]
  • 68. Tarasov VE. Rules for Fractional-Dynamic Generalizations: Difficulties of Constructing Fractional Dynamic Models. Mathematics. 2019;7(6). doi: 10.3390/math7060554 [DOI] [Google Scholar]
  • 69. Diethelm K, Garrappa R, Giusti A, Stynes M. Why fractional derivatives with nonsingular kernels should not be used. Fract Calc Appl Anal. 2020;23(3):610–634. doi: 10.1515/fca-2020-0032 [DOI] [Google Scholar]
  • 70. Faust K, Lahti L, Gonze D, de Vos WM, Raes J. Metagenomics meets time series analysis: unraveling microbial community dynamics. Curr Opin Microbiol. 2015;25:56–66. doi: 10.1016/j.mib.2015.04.004 [DOI] [PubMed] [Google Scholar]
  • 71. Armstrong McKay DI, Dyke JG, Doncaster CP, Dearing JA, Wang R. Network-based metrics of resilience and ecological memory in lake ecosystems. bioRxiv. 2020. [Google Scholar]
  • 72. Balakrishnan R, de Silva RT, Hwa T, Cremer J. Suboptimal resource allocation in changing environments constrains response and growth in bacteria. Mol Syst Biol. 2021;17:e10597. doi: 10.15252/msb.202110597 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 73. Gauffin Cano P, Santacruz A, Moya A, Sanz Y. Bacteroides uniformis CECT 7771 Ameliorates Metabolic and Immunological Dysfunction in Mice with High-Fat-Diet Induced Obesity. PLoS ONE. 2012;7(7):1–16. doi: 10.1371/journal.pone.0041079 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 74. Bloom S, Bijanki V, Nava G, Sun L, Malvin N, Donermeyer D, et al. Commensal Bacteroides Species Induce Colitis in Host-Genotype-Specific Fashion in a Mouse Model of Inflammatory Bowel Disease. Cell Host Microbe. 2011;9(5):390–403. doi: 10.1016/j.chom.2011.04.009 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 75. Larsen N, Vogensen FK, van den Berg FWJ, Nielsen DS, Andreasen AS, Pedersen BK, et al. Gut Microbiota in Human Adults with Type 2 Diabetes Differs from Non-Diabetic Adults. PLoS ONE. 2010;5(2):1–10. doi: 10.1371/journal.pone.0009085 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 76.Podlubny I. Fractional differential equations: An introduction to fractional derivatives, fractional differential equations, to methods of their solution and some of their applications. Elsevier; 1998.
  • 77. Safdari H, Kamali MZ, Shirazi A, Khalighi M, Jafari G, Ausloos M. Fractional dynamics of network growth constrained by aging node interactions. PLoS One. 2016;11(5):e0154983. doi: 10.1371/journal.pone.0154983 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 78. Tarasova VV, Tarasov VE. Concept of dynamic memory in economics. Commun Nonlinear Sci Numer Simul. 2018;55:127–145. doi: 10.1016/j.cnsns.2017.06.032 [DOI] [Google Scholar]
PLoS Comput Biol. doi: 10.1371/journal.pcbi.1009396.r001

Decision Letter 0

James O'Dwyer, Luis Pedro Coelho

24 Nov 2021

Dear MSc. Khalighi,

Thank you very much for submitting your manuscript "Quantifying the impact of ecological memory on the dynamics of interacting communities" for consideration at PLOS Computational Biology.

As with all papers reviewed by the journal, your manuscript was reviewed by members of the editorial board and by several independent reviewers. In light of the reviews (below this email), we would like to invite the resubmission of a significantly-revised version that takes into account the reviewers' comments.

The reviewers are all generally positive about the work, but raise questions that should be addressed before publication. All reviewers discuss concerns related to parameter choice, which therefore merits special attention. We are also very interested in seeing the answer to the questions related to the application of the model to real-world scenarios (another common thread among several of the reviewer comments).

We cannot make any decision about publication until we have seen the revised manuscript and your response to the reviewers' comments. Your revised manuscript is also likely to be sent to reviewers for further evaluation.

When you are ready to resubmit, please upload the following:

[1] A letter containing a detailed list of your responses to the review comments and a description of the changes you have made in the manuscript. Please note while forming your response, if your article is accepted, you may have the opportunity to make the peer review history publicly available. The record will include editor decision letters (with reviews) and your responses to reviewer comments. If eligible, we will contact you to opt in or out.

[2] Two versions of the revised manuscript: one with either highlights or tracked changes denoting where the text has been changed; the other a clean version (uploaded as the manuscript file).

Important additional instructions are given below your reviewer comments.

Please prepare and submit your revised manuscript within 60 days. If you anticipate any delay, please let us know the expected resubmission date by replying to this email. Please note that revised manuscripts received after the 60-day due date may require evaluation and peer review similar to newly submitted manuscripts.

Thank you again for your submission. We hope that our editorial process has been constructive so far, and we welcome your feedback at any time. Please don't hesitate to contact us if you have any questions or comments.

Sincerely,

Luis Pedro Coelho

Associate Editor

PLOS Computational Biology

James O'Dwyer

Deputy Editor

PLOS Computational Biology

***********************

The reviewers are all generally positive about the work, but raise questions that should be addressed before publication. All reviewers discuss concerns related to parameter choice, which therefore merits special attention. We are also very interested in seeing the answer to the questions related to the application of the model to real-world scenarios (another common thread among several of the reviewer comments).

Reviewer's Responses to Questions

Comments to the Authors:

Please note here if the review is uploaded as an attachment.

Reviewer #1: The authors study the impact of memory on the dynamics of generalized Lotka-Volterra systems. They show that memory can impact the resilience and resistance of dynamic systems after various perturbations and may impact the resulting stable states.

I think the premise of the manuscript is appealing and it is generally well presented. I agree with the authors that dynamic models can give quantitative insight into the behavior of microbial communities and their results support the general conclusion for the particular system and parametrization that was studied. The manuscript is a bit unclear on what biological system(s) the authors want to simulate which makes it hard to evaluate if the used parametrization has any connection to a real ecosystem or is mostly arbitrary. Even though the manuscript is written excellently some parts are aimed at a very narrow audience and would benefit from some intuitive explanations to make it accessible to readers not familiar with fractional calculus (such as myself).

Suggested major changes

The use of fractional calculus to introduce memory into the generalized Lotka-Volterra model is probably the main contribution in the paper but very little intuition is provide on why that approach is better than alternatives mentioned in lines 21-25. It is also hard to imagine what this particular memory effect actually looks like. So I would have liked to see a figure illustrating the shape of the fractional derivative under various values of μ. For instance, one could have shown the classic logistic growth curve along with varying fractional derivatives or a single impulse curve where one can observe how the impulse propagates in time due to memory. This would make the article accessible to readers without deep knowledge of fractional calculus and give an intuition on what time scales the modeled memory acts.

The authors keep the modeled systems very general which I think is fine. However, at least some part of the manuscript should be focused on a simulation of a system that was parameterized with experimental data to see whether the observed behavior extends to realistic settings. I think the works of Venturelli et. al. could be used here since they estimate gLV parameters in very controlled settings and with extensive data (see https://doi.org/10.15252/msb.20178157 or https://doi.org/10.1038/s41467-021-22938-y, a subset of taxa would be sufficient). In its current form, it is hard to evaluate whether the parameters of the models in Appendix S2 were chosen arbitrarily or selected to produce the particular results observed in the paper. An alternative would be to perform a robustness analysis on those parameters but I would consider this less preferable due to the large numbers of parameters and because behavior arising in only a small part of the parameter space may still be biologically relevant.

Suggested minor changes

It would be great if the authors could expand on which biological mechanism they consider for memory. They mention some examples in lines 209-211. Different memory mechanisms may have vastly different time scales. For instance, acquiring a plasmid may give nearly unlimited memory that exceeds the doubling time but transcriptional regulation is very transient. It is likely that some of those mechanisms are captured better by fractional derivatives than others.

There are some formatting issues in the supplement. The table in Appendix S2 is not numbered and there is some overlapping text on line 492.

I feel like Appendix S1 is pretty essential for what is happening in the manuscript, so I would probably convert it to a methods section in the main text (that may be located at the end of the manuscript).

I don’t have access to a Matlab license so I can not vouch that the provided source code works. I could imagine that providing some more information on how to install dependencies and in which order things should be executed to reproduce the results in the paper may be appreciated by potential readers. The Github repository linked to the Zenodo submission should be mentioned in the paper as well.

Reviewer #2: This is an interesting and well written paper about under-explored topic about the role of “memory” in the community dynamics. I believe this is an important study. Unfortunately, I cannot comment on mathematical implementation of the models because I am not an expert in this field. Several general comments from more biological prospective regarding the manuscript are below.

Major comments.

1) The figure 5C provides a nice example of possible outcomes of community under memoryB=0.4. I believe for the broader audience it would be interesting to see several examples of the “space” of outcomes on a similar figure when all three species have incommensurate memory which is > 0 . (Unless this is computationally too difficult.)

2) How community assembly forces such as the ecological drift and selection relate to memory? Is it possible to speculate to what extent memory facilitates either drift or selection or both?

3) It probably goes beyond the scope of the paper but it would be very interesting to have at least one example of empirical estimates of the memory for a publicly available experimental/observational real or mock community timeseries.

4) Would the interpretations of outcomes of the model be applicable for absolute abundances?

5) It would be useful to have a table or graphical summary in what instances what combinations of values of memory will lead to resistance and when to resilience and recovery of pre-disturbance state.

Minor comments.

1) Statement in the abstract that memory “..thus reducing the system's resilience” seems too strong since later figure 2 shows actually that memory>0 appears to promote resilience.

2) Page 25. Line 510. Fig.3?. Figure number missing

3) Page 24. After line 505. Table number is missing, I assume it is referred to as Appendix S2

4) Double-check if used shades of the green/red colors are color-blind friendly.

Reviewer #3: In the manuscript of “Quantifying the impact of ecological memory on the dynamics of interacting communities”, the authors use the framework of fractional calculus to study how the outcomes of a well-characterized interaction model are affected by gradual increases in ecological memory under varying initial conditions, perturbations, and stochasticity. Results highlight the implications of memory on several key aspects of community dynamics.

The research background is of great interest. The manuscript is well written. However, I have several questions especially on techniques, for example, the quantity of stability, and so on.

Major questions:

1) As shown in SM, the authors started from the memoryless model and then incorporated memory. Could the authors explain the generality of the integral function, Eq. (s) in SM, denoting the effects of memory. Looks like that this definition is crucial. Without different definitions, results could be totally different.

2) Based on the constructed model, there are also different ways of perturbations, as mentioned in Fig. 1, including Pulse, periodic, stochastic, and so on. Could the authors quantify the effects of parameter values of these different types of perturbations on the stability, recovery time, and resilience.

3) Could the authors provide the definition of stability, recovery time, resilience?

So, in general, the research question is very interesting. But it would be nice to provide the definition of metrics clearly and investigate the effects of memory rigorously.

**********

Have the authors made all data and (if applicable) computational code underlying the findings in their manuscript fully available?

The PLOS Data policy requires authors to make all data and code underlying the findings described in their manuscript fully available without restriction, with rare exception (please refer to the Data Availability Statement in the manuscript PDF file). The data and code should be provided as part of the manuscript or its supporting information, or deposited to a public repository. For example, in addition to summary statistics, the data points behind means, medians and variance measures should be available. If there are restrictions on publicly sharing data or code —e.g. participant privacy or use of data from a third party—those must be specified.

Reviewer #1: Yes

Reviewer #2: Yes

Reviewer #3: Yes

**********

PLOS authors have the option to publish the peer review history of their article (what does this mean?). If published, this will include your full peer review and any attached files.

If you choose “no”, your identity will remain anonymous but your review may still be made public.

Do you want your identity to be public for this peer review? For information about this choice, including consent withdrawal, please see our Privacy Policy.

Reviewer #1: Yes: Christian Diener

Reviewer #2: No

Reviewer #3: No

Figure Files:

While revising your submission, please upload your figure files to the Preflight Analysis and Conversion Engine (PACE) digital diagnostic tool, https://pacev2.apexcovantage.com. PACE helps ensure that figures meet PLOS requirements. To use PACE, you must first register as a user. Then, login and navigate to the UPLOAD tab, where you will find detailed instructions on how to use the tool. If you encounter any issues or have any questions when using PACE, please email us at figures@plos.org.

Data Requirements:

Please note that, as a condition of publication, PLOS' data policy requires that you make available all data used to draw the conclusions outlined in your manuscript. Data must be deposited in an appropriate repository, included within the body of the manuscript, or uploaded as supporting information. This includes all numerical values that were used to generate graphs, histograms etc.. For an example in PLOS Biology see here: http://www.plosbiology.org/article/info%3Adoi%2F10.1371%2Fjournal.pbio.1001908#s5.

Reproducibility:

To enhance the reproducibility of your results, we recommend that you deposit your laboratory protocols in protocols.io, where a protocol can be assigned its own identifier (DOI) such that it can be cited independently in the future. Additionally, PLOS ONE offers an option to publish peer-reviewed clinical study protocols. Read more information on sharing protocols at https://plos.org/protocols?utm_medium=editorial-email&utm_source=authorletters&utm_campaign=protocols

PLoS Comput Biol. doi: 10.1371/journal.pcbi.1009396.r003

Decision Letter 1

James O'Dwyer, Luis Pedro Coelho

15 Apr 2022

Dear MSc. Khalighi,

Thank you very much for submitting your manuscript "Quantifying the impact of ecological memory on the dynamics of interacting communities" for consideration at PLOS Computational Biology. As with all papers reviewed by the journal, your manuscript was reviewed by members of the editorial board and by several independent reviewers. The reviewers appreciated the attention to an important topic. Based on the reviews, we are likely to accept this manuscript for publication, providing that you modify the manuscript according to the review recommendations.

While we have not been able to secure the opinion of Reviewer #3, our appreciation is that the authors' response addresses their concerns. Therefore, based on the current opinions, we believe that the major scientific questions have been resolved.

PLOS Computational Biology aims to publish work that addresses biological questions and, thus, we concur with Reviewer #1 that it would enhance the manuscript to present some results from the Section "Empirically parameterized model" as one of the main figures (currently, that section only refers to supplemental figures).

Please prepare and submit your revised manuscript within 30 days. If you anticipate any delay, please let us know the expected resubmission date by replying to this email.

When you are ready to resubmit, please upload the following:

[1] A letter containing a detailed list of your responses to all review comments, and a description of the changes you have made in the manuscript. Please note while forming your response, if your article is accepted, you may have the opportunity to make the peer review history publicly available. The record will include editor decision letters (with reviews) and your responses to reviewer comments. If eligible, we will contact you to opt in or out

[2] Two versions of the revised manuscript: one with either highlights or tracked changes denoting where the text has been changed; the other a clean version (uploaded as the manuscript file).

Important additional instructions are given below your reviewer comments.

Thank you again for your submission to our journal. We hope that our editorial process has been constructive so far, and we welcome your feedback at any time. Please don't hesitate to contact us if you have any questions or comments.

Sincerely,

Luis Pedro Coelho

Associate Editor

PLOS Computational Biology

James O'Dwyer

Deputy Editor

PLOS Computational Biology

***********************

A link appears below if there are any accompanying review attachments. If you believe any reviews to be missing, please contact ploscompbiol@plos.org immediately:

[LINK]

While we have not been able to secure the opinion of Reviewer #3, our appreciation is that the authors' response addresses their concerns. Therefore, based on the current opinions, we believe that the major scientific questions have been resolved.

PLOS Computational Biology aims to publish work that addresses biological questions and, thus, we concur with Reviewer #1 that it would enhance the manuscript to present some results from the Section "Empirically parameterized model" as one of the main figures (currently, that section only refers to supplemental figures).

Reviewer's Responses to Questions

Comments to the Authors:

Please note here if the review is uploaded as an attachment.

Reviewer #1: The authors have expanded their explanation of what phenomena could give rise to the modeled memory effects and now provide a much better illustration and description of how fractional calculus can be used to model the covered memory effects. Additionally, the manuscript now also includes a small study of memory effects within a gLV model derived from bacterial growth curves, thus, providing simulations of memory effects in a somewhat more realistic setting. I think this has already improved the manuscript and I only have some minor suggestions to improve clarity and presentation of the data.

Minor suggestions

The manuscript text and methods are both pretty unclear on how the data from Venturelli et. al. was integrated. Did the authors use the parameters fit in the original manuscript or was the fractional calculus model refit to the time series data? In my opinion this data should have been a figure in the main manuscript as I find simulations in more realistic settings much more interesting than some of the more artificial settings in the other figures. The growth curves shown in Fig. S5 should also be presented alongside with the actual growth curves from the Venturelli manuscript to give an impression how well the simulations match the measured growth curves.

Line 158: I don’t think what was done here constitutes an actual validation since they never compare the simulated memory behavior to measured data. Rather it should state something along the lines of: “To study whether the observed memory effects may arise in a more realistic setting…”, which is what was actually done here.

The heatmaps in figures S5-S8 and others are missing units for the color bars. Is the recovery time expressed in hours, minutes, or seconds?

I think the points brought up by the other reviewer are quite important. If the modeling strategy can not account for selection and drift this should be stated clearly in the manuscript.

Reviewer #2: Authors have addressed all of my questions and suggestions.

In caption to Figure S4, reference to another figure is missing and has two question marks "see Fig. ??"

**********

Have the authors made all data and (if applicable) computational code underlying the findings in their manuscript fully available?

The PLOS Data policy requires authors to make all data and code underlying the findings described in their manuscript fully available without restriction, with rare exception (please refer to the Data Availability Statement in the manuscript PDF file). The data and code should be provided as part of the manuscript or its supporting information, or deposited to a public repository. For example, in addition to summary statistics, the data points behind means, medians and variance measures should be available. If there are restrictions on publicly sharing data or code —e.g. participant privacy or use of data from a third party—those must be specified.

Reviewer #1: Yes

Reviewer #2: Yes

**********

PLOS authors have the option to publish the peer review history of their article (what does this mean?). If published, this will include your full peer review and any attached files.

If you choose “no”, your identity will remain anonymous but your review may still be made public.

Do you want your identity to be public for this peer review? For information about this choice, including consent withdrawal, please see our Privacy Policy.

Reviewer #1: Yes: Christian Diener

Reviewer #2: Yes: Oleksandr Maistrenko

Figure Files:

While revising your submission, please upload your figure files to the Preflight Analysis and Conversion Engine (PACE) digital diagnostic tool, https://pacev2.apexcovantage.com. PACE helps ensure that figures meet PLOS requirements. To use PACE, you must first register as a user. Then, login and navigate to the UPLOAD tab, where you will find detailed instructions on how to use the tool. If you encounter any issues or have any questions when using PACE, please email us at figures@plos.org.

Data Requirements:

Please note that, as a condition of publication, PLOS' data policy requires that you make available all data used to draw the conclusions outlined in your manuscript. Data must be deposited in an appropriate repository, included within the body of the manuscript, or uploaded as supporting information. This includes all numerical values that were used to generate graphs, histograms etc.. For an example in PLOS Biology see here: http://www.plosbiology.org/article/info%3Adoi%2F10.1371%2Fjournal.pbio.1001908#s5.

Reproducibility:

To enhance the reproducibility of your results, we recommend that you deposit your laboratory protocols in protocols.io, where a protocol can be assigned its own identifier (DOI) such that it can be cited independently in the future. Additionally, PLOS ONE offers an option to publish peer-reviewed clinical study protocols. Read more information on sharing protocols at https://plos.org/protocols?utm_medium=editorial-email&utm_source=authorletters&utm_campaign=protocols

References:

Review your reference list to ensure that it is complete and correct. If you have cited papers that have been retracted, please include the rationale for doing so in the manuscript text, or remove these references and replace them with relevant current references. Any changes to the reference list should be mentioned in the rebuttal letter that accompanies your revised manuscript.

If you need to cite a retracted article, indicate the article’s retracted status in the References list and also include a citation and full reference for the retraction notice.

PLoS Comput Biol. doi: 10.1371/journal.pcbi.1009396.r005

Decision Letter 2

James O'Dwyer, Luis Pedro Coelho

12 May 2022

Dear MSc. Khalighi,

We are pleased to inform you that your manuscript 'Quantifying the impact of ecological memory on the dynamics of interacting communities' has been provisionally accepted for publication in PLOS Computational Biology.

Before your manuscript can be formally accepted you will need to complete some formatting changes, which you will receive in a follow up email. A member of our team will be in touch with a set of requests.

Please note that your manuscript will not be scheduled for publication until you have made the required changes, so a swift response is appreciated.

IMPORTANT: The editorial review process is now complete. PLOS will only permit corrections to spelling, formatting or significant scientific errors from this point onwards. Requests for major changes, or any which affect the scientific understanding of your work, will cause delays to the publication date of your manuscript.

Should you, your institution's press office or the journal office choose to press release your paper, you will automatically be opted out of early publication. We ask that you notify us now if you or your institution is planning to press release the article. All press must be co-ordinated with PLOS.

Thank you again for supporting Open Access publishing; we are looking forward to publishing your work in PLOS Computational Biology. 

Best regards,

Luis Pedro Coelho

Associate Editor

PLOS Computational Biology

James O'Dwyer

Deputy Editor

PLOS Computational Biology

***********************************************************

PLoS Comput Biol. doi: 10.1371/journal.pcbi.1009396.r006

Acceptance letter

James O'Dwyer, Luis Pedro Coelho

30 May 2022

PCOMPBIOL-D-21-01512R2

Quantifying the impact of ecological memory on the dynamics of interacting communities

Dear Dr Khalighi,

I am pleased to inform you that your manuscript has been formally accepted for publication in PLOS Computational Biology. Your manuscript is now with our production department and you will be notified of the publication date in due course.

The corresponding author will soon be receiving a typeset proof for review, to ensure errors have not been introduced during production. Please review the PDF proof of your manuscript carefully, as this is the last chance to correct any errors. Please note that major changes, or those which affect the scientific understanding of the work, will likely cause delays to the publication date of your manuscript.

Soon after your final files are uploaded, unless you have opted out, the early version of your manuscript will be published online. The date of the early version will be your article's publication date. The final article will be published to the same URL, and all versions of the paper will be accessible to readers.

Thank you again for supporting PLOS Computational Biology and open-access publishing. We are looking forward to publishing your work!

With kind regards,

Anita Estes

PLOS Computational Biology | Carlyle House, Carlyle Road, Cambridge CB4 3DN | United Kingdom ploscompbiol@plos.org | Phone +44 (0) 1223-442824 | ploscompbiol.org | @PLOSCompBiol

Associated Data

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

    Supplementary Materials

    S1 Appendix. Methodological details for Fig 5C and S1 Fig.

    (PDF)

    S2 Appendix. Numerical simulations.

    (PDF)

    S1 Table. Exact model specifications for the 2, 3, and 15-species Gonze model (Eq (1) in Methods).

    (PDF)

    S2 Table. Exact model specifications for the 2-species model given by Eq (2) in Methods, and for the logistic growth curve in Fig 7.

    (PDF)

    S1 Fig. Memory effects preserve the stable state in randomly structured communities.

    (PDF)

    S2 Fig. Memory in a group of species decreases their relative abundance.

    (PDF)

    S3 Fig. Impact of incommensurate memory in the presence of perturbation.

    (PDF)

    S4 Fig. Memory can induce long transient dynamics even in the absence of multistability.

    (PDF)

    S5 Fig. Memory effects on dynamics for different two-species community types.

    (PDF)

    S6 Fig. Impact of memory on resistance to a pulse perturbation in a two-species community exhibiting bistability between dominance of Bacteroides uniformis (BU) and Bacteroides thetaiotaomicron (BT).

    (PDF)

    S7 Fig. Impact of memory on resistance to a pulse perturbation in the two-species version of Gonze multistable model.

    (PDF)

    S8 Fig. Impact of memory on resilience after a pulse perturbation in the two-species version of Gonze multistable model.

    (PDF)

    S9 Fig. Impact of memory on convergence time in the two-species version of Gonze multistable model.

    (PDF)

    S10 Fig. Impact of memory on convergence time in a two-species community exhibiting bistability between dominance of Bacteroides uniformis (BU) and Bacteroides thetaiotaomicron (BT).

    (PDF)

    S11 Fig. Impact of memory on convergence time in a two-species community exhibiting stable coexistence between Eubacterium rectale (ER) and Clostridium hiranonis (CH).

    (PDF)

    S12 Fig. Impact of memory on convergence time in a two-species community exhibiting stable dominance of Clostridium hiranonis (CH) by Bacteroides thetaiotaomicron (BT).

    (PDF)

    Attachment

    Submitted filename: Response to Reviews.pdf

    Attachment

    Submitted filename: Response to the reviewers Comments_.pdf

    Data Availability Statement

    The computational results for this article have been generated with MATLAB. All data and code used for running the simulations and generating the figures is available in GitHub, and accessible via the permanent Zenodo DOI: https://doi.org/10.5281/zenodo.5979561.


    Articles from PLoS Computational Biology are provided here courtesy of PLOS

    RESOURCES