1 Introduction

Some organisms can improve surrounding environments and thus enhance their survival and breeding success (Fig. 1). Such positive feedback between organism and environment is ubiquitous in real ecosystems. For example, trees and shrubs can promote rainwater infiltrating into deeper soil, so the moisture of soil around their roots is enhanced [1, 2]; grasses can reduce thermal amplitudes and protect ground surface from being eroded by wind and water, which prevent the loss of soil moisture [3, 4]; dune plants can reinforce their habitat on drift sand [5]; and the intertidal grass can modify shoreline environment and thus facilitate the establishment and persistence of plant communities [6]. In general, the positive feedback makes ecosystem become highly nonlinear and complicated.

Fig. 1
figure 1

The diagram of organism–environment positive feedback loop

Both empirical and theoretical studies have revealed that the organism–environment positive feedback can incur alternative stable states, meaning that there are two attracting states for the system (i.e., bistability) [7,8,9,10,11,12,13], which could account for the catastrophic ecosystem shifts [8, 14,15,16]. Although external conditions (e.g., climate, nutrient loading, biotic exploitation, or habitat fragmentation) change gradually, the ecosystem may shift abruptly [17]. In fact, many empirical studies have proved the appearance of catastrophic shift in communities. For example, shallow lakes transparency was suddenly lost and became turbid [18, 19]; reef ecosystems emerged phase shift because corals were overgrown caused by fleshy macroalgae [20, 21]; savannahs had a sudden drama shift due to bushes encroachment [22, 23]. Obviously, the catastrophic shifts are much more disadvantageous to conservation and restoration of the ecosystem [19, 24,25,26] and must be considered in policy provision and management [27, 28].

Because the availability and spatial distribution of suitable habitats significantly affect population persistence through changing local spatial clustering [29,30,31,32,33,34], the spatial distribution and dynamics of the population could play an important role in population persistence and ecosystem conservation [35,36,37]. However, few studies are concerned with the effect of spatial scale on alternative stable states and catastrophic shifts [38]. It is necessary to incorporate spatial scale into theoretical models in studying positive ecological feedback [39,40,41,42]. We here consider the scale-dependent positive feedback and address this issue through a spatially correlated model based on pair approximation and simulation [43,44,45]. We find that spatially limited interactions between external environment and organism are able to mitigate ecosystem bistability. This implies that spatial configuration and local facilitation could be an essential process for the stability and maintenance of population.

2 Models

2.1 Mean-field model

We here consider the organism–environment positive feedback in patchy environment (e.g., lattice space) consisting of suitable and unsuitable patches (Fig. 2). Suitable patches may be destructed due to human activities or natural causes and then become unsuitable, and in reverse, unsuitable patches could be restored by organism functioning (i.e., positive feedback). Accordingly, with mean-field assumption, we have the following ordinary differential equations to totally catch the dynamics of patchy states over time [13]:

$$\begin{aligned} \frac{\mathrm{d}p}{\mathrm{d}t}= & {} cp(h-p)-(e+d)p, \nonumber \\ \frac{\mathrm{d}h}{\mathrm{d}t}= & {} (\lambda p+\mu )(1-h)-\mathrm{d}h \end{aligned}$$
(1)

where h is the probability that a randomly chosen patch is suitable (also explained as the density of suitable patches), and p the probability that a randomly chosen patch is occupied by focal organism (also explained as the density of occupied patches). Parameter c, e, and d represent colonization rate to empty suitable patches, extinction rate of local occupancy, and habitat destruction rate. The parameter \(\lambda \) and \(\mu \) are habitat restoration rates respectively by organism positive feedback (e.g., self-modification) and other external factors. The parameters are all nonnegative. Notably, the model (Eq. 1) only approximates the dynamical behavior of patchy states at regional scale, but does not catch spatial structure at local scale [13]. In order to study spatial-scale effects, we considered spatially local interaction by pair approximation method and simulation based on cellular automata in following two subsections [46, 47].

Fig. 2
figure 2

Diagram of modeling system from continuous real world to lattice model. Gray denotes suitable habitat, white denotes unsuitable habitat, and black denotes organism occupancy, which are represented by ‘0’, ‘−’, and ‘\(+\)’ in text, respectively

2.2 Pair approximation model

Spatially correlation equation with pair approximation (PA) has been widely used in the modeling of ecological and evolutionary process, which can describe approximately the dynamical change of adjacent patch pairs over time in the analytic way [43,44,45]. For the positive feedback system, because there are three possible states for each patch, either occupied patch by organism (denoted by +), or unoccupied suitable patch (denoted by 0), or unsuitable patch (denoted by −), only five state types of adjacent patch pairs are independent when we assume symmetry (i.e., pairwise patch state ij and ji are no difference where \(i, j = -, 0, +)\), and their dynamics can be given by the following ordinary differential equations [44, 47]:

$$\begin{aligned} \frac{\hbox {d}p_{0-} }{\hbox {d}t}= & {} \left( {\lambda q_{+\left| {--} \right. } \frac{n_2 -1}{n_2 }+\mu } \right) p_{--} +ep_{-+} \nonumber \\&+\,{d}p_{0+} +{d}p_{00} -{d}p_{0-} \nonumber \\&-\,cq_{+\left| {0-} \right. } \frac{n_1 -1}{n_1 }p_{0-} -\left( {\lambda q_{+\left| {-0} \right. } \frac{n_2 -1}{n_2 }+\mu } \right) p_{0-} , \nonumber \\ \frac{\hbox {d}p_{+-} }{\hbox {d}t}= & {} cq_{+\left| {0-} \right. } \frac{n_1 -1}{n_1 }p_{0-} +{d}p_{0+} \nonumber \\&+\,{d}p_{++} -{d}p_{-+} -\left[ {\lambda \left( {q_{+\left| {-+} \right. } \frac{n_2 -1}{n_2 }+\frac{1}{n_2 }} \right) +\mu } \right] \nonumber \\&p_{-+} -ep_{-+} ,\nonumber \\ \frac{\hbox {d}p_{00} }{\hbox {d}t}= & {} 2\left( {\lambda q_{+\left| {-0} \right. } \frac{n_2 -1}{n_2 }+\mu } \right) p_{0-}\nonumber \\&+\,2ep_{0+} -2{d}p_{00} -2cq_{+\left| {00} \right. } \frac{n_1 -1}{n_1 }p_{00} ,\nonumber \\ \frac{\hbox {d}p_{0+} }{\hbox {d}t}= & {} \left[ {\lambda \left( {q_{+\left| {-+} \right. } \frac{n_2 -1}{n_2 }+\frac{1}{n_2 }} \right) +\mu } \right] p_{-+} \nonumber \\&+\,cq_{+\left| {00} \right. } \frac{n_1 -1}{n_1 }p_{00} +ep_{++} \nonumber \\&-\,2{d}p_{0+} -ep_{0+} -c\left( {q_{+\left| {0+} \right. } \frac{n_1 -1}{n_1 }+\frac{1}{n_1 }} \right) p_{0+}, \nonumber \\ \frac{\hbox {d}p_{++} }{\hbox {d}t}= & {} 2c\left( {q_{+\left| {0+} \right. } \frac{n_1 -1}{n_1 }+\frac{1}{n_1 }} \right) p_{0+} \nonumber \\&-\,2{d}p_{++} -2ep_{++} . \end{aligned}$$
(2)

Here, \(p_{ij }\) is the probability that a randomly chosen patch pair is in state ij, \(q_{k\left| {ij} \right. } \) is the conditional probability that a random chosen neighboring patch of i-patch in ij-patch pair is in state k. The parameter \(n_{1 }\) and \(n_{2}\) are the neighborhood sizes of colonization and restoration habitat of organism [48]. The former describes the colonization ability of the organism, and the later shows its influence range on external environment. If letting \(p_{i}\) represent the probability that a randomly chosen patch is in state i, in term of probability theory, we have the following equalities: \(p_{--} +p_{-0} +p_{-+} =p_- \), \(p_{0-} +p_{00} +p_{0+} =p_0 \), \(p_{+-} +p_{+0} +p_{++} =p_+ \), and \(p_- +p_0 +p_+ =1\). We must indicate that Eq. 2 is not closed because the dynamics of the patch pairs depend on patch triplets since \(q_{k\left| {ij} \right. } =p_{kij} /p_{ij} \). In this case, a generally used approximation method (i.e., pair approximation) is to assume the probability of finding a k-patch in the neighborhood of i-patch does not depend on its other neighbors (i.e., \(q_{k\left| {ij} \right. } =q_{k\left| i \right. } )\), and then Eq. 2 is rewritten as

$$\begin{aligned} \frac{\hbox {d}p_{0-} }{\hbox {d}t}= & {} \left( {\lambda q_{+\left| - \right. } \frac{n_2 -1}{n_2 }+\mu } \right) p_{--} +ep_{-+} +{d}p_{0+}\nonumber \\&+\,{d}p_{00} -{d}p_{-0} \nonumber \\&-\,cq_{+\left| 0 \right. } \frac{n_1 -1}{n_1 }p_{0-} \nonumber \\&-\left( {\lambda q_{+\left| - \right. } \frac{n_2 -1}{n_2 }+\mu } \right) p_{0-}, \nonumber \\ \frac{\hbox {d}p_{+-} }{\hbox {d}t}= & {} cq_{+\left| 0 \right. } \frac{n_1 -1}{n_1 }p_{0-} +{d}p_{0+} +{d}p_{++} \nonumber \\&-\,{d}p_{-+} -\left[ {\lambda \left( {q_{+\left| - \right. } \frac{n_2 -1}{n_2 }+\frac{1}{n_2 }} \right) +\mu } \right] \nonumber \\&p_{-+} -ep_{-+} ,\nonumber \\ \frac{\hbox {d}p_{00} }{\hbox {d}t}= & {} 2\left( {\lambda q_{+\left| - \right. } \frac{n_2 -1}{n_2 }+\mu } \right) p_{0-} \nonumber \\&+\,2ep_{0+} -2{d}p_{00} -2cq_{+\left| 0 \right. } \frac{n_1 -1}{n_1 }p_{00} ,\nonumber \\ \frac{\hbox {d}p_{0+} }{\hbox {d}t}= & {} \left[ \lambda \left( {q_{+\left| - \right. } \frac{n_2 -1}{n_2 }+\frac{1}{n_2 }} \right) +\mu \right] \nonumber \\&p_{-+} +cq_{+\left| 0 \right. } \frac{n_1 -1}{n_1 }p_{00} +ep_{++} \nonumber \\&-\,2{d}p_{0+} -ep_{0+} -c\left( {q_{+\left| 0 \right. } \frac{n_1 -1}{n_1 }+\frac{1}{n_1 }} \right) p_{0+} ,\nonumber \\&\frac{{d}p_{++} }{{d}t}=2c\left( {q_{+\left| 0 \right. } \frac{n_1 -1}{n_1 }+\frac{1}{n_1 }} \right) p_{0+}\nonumber \\&-\,2{d}p_{++} -2ep_{++} . \end{aligned}$$
(3)

Thus all conditional probabilities (also explained as local density) can be calculated in term of probability theory \(p_{ij} =p_i q_{j\left| i \right. } \), and Eq. 3 becomes a closed system[44, 47]. In particular, when \(n_1 \rightarrow \infty \) and \(n_2 \rightarrow \infty \) (mean-field assumption), the pair approximation model (Eq. 2) will return to the mean-field model (Eq. 1) with \(p=p_+ \) and \(h=p_0 +p_+ \).

Table 1 Transition rates in simulation

In the pair approximation model, the three types of patches (\(-, 0\) and \(+\)) are discrete. We cannot simply distinguish these three states in the ecosystem because there are still transitional states between these three states in reality. This is the limitation of the pair approximation model.

2.3 Cellular automata simulation

Furthermore, a cellular automata model can be built to simulate the spatial positive feedback system on lattice space. We here identify five possible types of patchy state transition (Table 1): occupied patches will extinct (+\(\rightarrow \)0) at rate e or be destroyed \((+\rightarrow -)\) at rate d; empty suitable patches will also be destroyed \((0\rightarrow -)\) at rate d or be reoccupied (0\(\rightarrow \)+) at rate \(c{\bar{p}}_1 \) where \({\bar{p}}_1 \) is the fraction of occupied patches in its neighborhoods; and unsuitable patches will be modified and become suitable \((-\rightarrow 0)\) at rate \(\lambda {\bar{p}}_2 +\mu \) where \({\bar{p}}_2 \) is the fraction of occupied patches in its neighborhoods. We adopted periodic boundary condition and asynchronous update in our simulations [49].

The three models are all based on patchy environment (e.g., lattice space), which could result from discretizing continuous space in real world (Fig. 2). The mean-field model is most parsimony, but it assumes no difference between local density and global density. The pair approximation model considers the spatial-scale dependence of ecological processes and emphasizes the difference and relationship between local and global dynamics. The cellular automata simulation can further catch demographic stochastics and spatial heterogeneity. In this study using the above model system, we investigated how the spatial scale of organism–environment positive feedback affect alternative stable states (i.e., bistability).

Fig. 3
figure 3

Effect of restoration neighborhood sizes ( \({\textit{n}}_{{2}}\)) on alternative stable states (i.e., bistability). The bifurcation diagrams resulted from pair approximation model (Eq. 3). Solid lines are stable equilibriums and dashed lines unstable equilibriums. The parameters are \(c=1\), \(e=0.1\), \(n_{1}=4v\)

3 Results

Organism–environment positive feedback accounts for alternative stable states. When the bistability occurs, one of the two stable states is always zero (i.e., extinction state). This means that initial rare population are unable to spread about and will die out finally, that is, it cannot invade the empty habitat space successfully. Therefore, according to the invasion analysis, the necessary condition for alternative stable states can be derived. Specifically, from the mean-field model (Eq. 1) the necessary condition of bistability was obtained easily:

$$\begin{aligned} \delta +\frac{1}{1+\beta }>1, \end{aligned}$$
(4)

while from pair approximation model (Eq. 3) it was also obtained with a complicated form as follows (see Appendix for details):

$$\begin{aligned} \delta +\frac{1}{n_1 }+\frac{(2+\beta +\gamma )n_1 n_2 -(1+\gamma )n_2 }{(1+\beta )[(2+\beta +\gamma )n_1 n_2 +n_1 \alpha ]}>1, \end{aligned}$$
(5)

where \(\delta =(e+d)/c\), \(\alpha =\lambda /d\), \(\beta =\mu /d\), \(\gamma =e/d\). In particular, when \(n_1 \rightarrow \infty \) and \(n_2 \rightarrow \infty \) (mean-field assumption), inequality (5) will become inequality (4).

Bifurcation diagram based on pair approximation model (Eq. 3), drawn by the software MATCONT [50], showed that both colonization ability of the organism (\(n_{1})\) and its influence range on external environment (\(n_{2})\) would profoundly affect the bistability caused by the positive feedback. Decreasing restoration neighborhood size (\(n_{2})\) will mitigate the bistable phenomenon, not only extinction threshold decreases but also bistable range shrinks (Fig. 3). On the contrary increasing colonization neighborhood size (\(n_{1})\) will diminish bistable phenomenon slightly as well as increase population size (Fig. 4). In particular, higher external restoration (\(\mu \)) can make the bistability vanish. These results are robust because they are independent of the change of other model parameters. For example, the bistable domain of model parameters including c, e, d, \(\lambda \) and \(\mu \) becomes small with decreasing restoration neighborhood size \(n_{2}\) (Fig. 5).

Fig. 4
figure 4

Effect of colonization neighborhood sizes ( \({\textit{n}}_{{1}}\)) on alternative stable states (i.e., bistability). The bifurcation diagrams resulted from pair approximation model (Eq. 3). Solid lines are stable equilibriums and dashed lines unstable equilibriums. The parameters are \(c=1\), \(e=0.1\), \(n_{2}=4\)

Fig. 5
figure 5

Effect of restoration neighborhood sizes (\({\textit{n}}_{{2}}\)) on the bistable domain of parameters (dark area). The phase diagrams were based on pair approximation model (Eq. 3). Parameters were assigned as \(e=0.1\) and \(\mu =0.03\) for a \(e =0.1\) and \(\lambda =0.4\), for b\(\lambda =0.4\) and \(\mu =0.03\), for c and \(c =1\) and \(n_{1}=5\) for all panels

The cellular automata simulation totally confirmed the above results predicted by pair approximation model. The domain of initial occupancy density which cannot make population persist will become large with increasing restoration neighborhood size (\(n_{2})\) for fixed parameter \(n_{1}\) (see Fig. 6a–c), but become small with increasing colonization neighborhood size (\(n_{1})\) for fixed parameter \(n_{2}\) (see Fig. 6c–e). Notably, our simulation results still have some differences from the results predicted by deterministic approach (Eq. 3). Instead of the threshold phenomenon predicted by the differential equation (i.e., whether population persists or becomes extinct completely depends on initial occupancy), our simulations showed that the extinction probability of population was a decreasing function with regards to initial occupancy density. This could be incurred by demographic stochastics in our simulations.

Fig. 6
figure 6

Relationship between extinction probability and initial occupancy density. Black lines resulted from the cellular automata simulations, and gray lines from pair approximation model (Eq. 3). The simulations ran on \(30\times 30\) lattice space. The parameters were assigned as \(c=0.78\), \(e=0.1\), \(d=0.1\), \(\lambda =0.8\), \(\mu =0.0001\)

In summary, locally confined organism–environment interaction and globally colonization could mitigate and even eliminate bistable phenomenon caused by positive feedback, and thus be beneficial for the persistence and restoration of ecosystem instead of catastrophic shift. This result implies that the spatial scale of organism–environment feedback plays a non-negligible role in ecosystem.

4 Discussion

In recent years, evidence of studies suggests that positive feedback play crucial roles in many communities [51], and alternative stable states (discontinuous transition) often exist in ecosystems [25, 52]. More empirical evidences indicated the importance of positive feedback loop for alternative stable states. For example, there are two alternative stable states in drylands: vegetated and bare soil. More vegetation can improve the infiltration and retention of water and help to establish better growth conditions. On the contrary, less vegetation makes the soil lack the physical protection of vegetation, which leads to soil erosion and crusting. Thus, worse growth conditions are established and bare soil is easy to form [53, 54]. Another classic example is the alternative stable states of clarity and turbidity in shallow lakes. Many submerged plants can absorb more nutrients through photosynthesis, so phytoplankton decreases and the water becomes clear. Conversely, when the number of submerged plants is less, the water becomes turbid because nutrient loading is external [19]. Moreover, many theoretical studies also already revealed that if the organism–environment positive feedback are strong enough, alternative stable states are possible [13, 40, 46, 55,56,57], including the mean-field model and the model with spatial structure.

Though the positive feedback can incur alternative stable states, but there has been much work trying to use positive feedback to restore systems with alternative stable states [58, 59]. For example, in shallow lakes, the number of Zooplankton increases through reducing the abundance of benthic fishes. Since Zooplankton predates on phytoplankton, this reduces the turbidity of water and increase the light for submerged plants [60]. In degraded semiarid ecosystems, original shrublands and forests may be restored by ‘nurse plant’ [61]. And theoretical models of alternative stable states that incorporate system positive feedbacks are now being applied to the dynamics of recovery in degraded systems [59].

In this paper, the scale-dependent positive feedback system, which presented by Rietkerk et al. [38], is considered. We mainly discuss the effect of scale-dependent positive feedback on the bistability (discontinuous transition) in organism–environment. Furthermore, Kéfi et al. have also raised the question of when positive feedback may lead to discontinuous transition [55]. So it is particularly important for early warning of this discontinuous transition [62]. Since positive feedback is an element of the threshold (tipping point) of discontinuous transition, the transition from one state to another is very sudden at the threshold (tipping point). If the threshold (tipping point) of the complex system can be found, it is possible that the ecosystem will avoid this discontinuous transition and have the opportunity to change in a positive direction [63].

In addition, we find these thresholds (tipping points) for the different models (i.e., the pair approximation model and simulation) are different (Fig. 6). We cannot accurately find this threshold (tipping point) to alert discontinuous transition because simulation has randomness. In pair approximation model, we can find this threshold (tipping point) more accurately and provide early warning for the system, thus providing better guidance for the management of the ecosystem. However, under the assumption of mean field, this system have the characteristics of homogeneity and high connectivity, which provides resistance to the alternative states transition of the system until the system reaches the threshold (tipping point) [64]. Therefore, although this threshold (tipping point) is lowered, it is possible to provide an erroneous early warning. This is because the spatial structure is ignored in the mean-field model, so that it does not conform to the real world system.

Since the effect of the neighborhood sizes of colonization and restoration habitat of organism on the population is just the opposite. Therefore, when the impact of individual organisms on the environment is restored at fine scale (i.e., small \(n_{2})\), and the individual must disperse as much as possible (i.e., large \(n_{1})\), the system must be able to resist the bistable phenomenon. In addition, bistability also depends on the initial value [65]. Population with lower density is less prone to disperse, but population with higher density tends to disperse [56]. If the initial value of population is large, the bistable phenomenon may be avoided.

In fact, positive feedback among multiple organisms is more common in ecosystems. In a more complex system, the influence of this spatial-scale-dependent positive feedback on populations is worth further discussion and research. And the integration of ecological factors in research is very important, which also provides potential interest and direction for future theoretical researchers.