Abstract
As climate change and other anthropogenic factors increase the uncertainty of vegetation ecosystem persistence, the ability to rapidly assess their dynamics is paramount. Vegetation and sessile communities form a variety of striking regular spatial patterns such as stripes, spots and labyrinths, that have been used as indicators of ecosystem current state, through qualitative analysis of simple models. Here we describe a new method for rigorous quantitative estimation of biological parameters from a single spatial snapshot. We formulate a synthetic likelihood through consideration of the expected change in the correlation structure of the spatial pattern. This then allows Bayesian inference to be performed on the model parameters, which includes providing parameter uncertainty. The method was validated against simulated data and then applied to real data in the form of aerial photographs of seagrass banding. The inferred parameters were found to be able to reproduce similar patterns to those observed and able to detect strength of spatial competition, competition-induced mortality and the local range of reproduction. This technique points to a way of performing rapid inference of spatial competition and ecological stability from a single spatial snapshots of sessile communities.
Introduction
The rapid assessment of the underlying dynamics of ecological environments is becoming an increasingly important area of research as climate change and other anthropogenic influences increase the uncertainty of ecosystem dynamics1,2. Single spatial snapshots taken from remote sensing data such as satellite imagery and aerial photography provide high resolution estimates of vegetation density as well as their spatial correlation structure and interaction with other vegetative communities3. It would therefore be highly informative to be able to infer the dynamics of the spatial process based on a single snapshot alone without the need for long-term study of vegetation dynamics4.
Techniques for analysis of spatial pattern in ecology have largely focused on either their statistical properties5,6 or how their patterns relate to deterministic models of pattern formation7,8 (See9 for a review of pattern formation in plant-based ecosystems). Techniques have been explored to identify anisotropy and correlations as well as regular pattern phenomena. Models of vegetative pattern formation have been used to compare to patterns found in nature and model properties have been explored, in particular their bifurcation points, in order to discern an ecosystem’s extinction risk, or risk of transition to a barren state10–12. Methods such as estimation of spatial variance and skewness have also been used as heuristics for changes in the environmental dynamics and have shown to be theoretically capable of being used as an early warning indicator of a dynamic phase transition11. However, these techniques rely on several snapshots through time being available to detect change. Finally, other techniques use Markov Chain Monte Carlo (MCMC) methods that rely on two or more spatial snapshots in time to infer dynamics between them13,14. Our approach is to use the properties of the spatial pattern to fit a stochastic vegetation model with spatial competition to a single snapshot of a spatial pattern based on Keeling et al.15.
A spatial ecological model will typically have many degrees of freedom. For a lattice based system of occupied or unoccupied patches, the number of ways a system can be in is typically large, scaling as 2n×n for a square lattice of length n. As a system begins to evolve however, the degrees of freedom are rapidly reduced until the dynamics are dependent upon a few slow-moving state variables16. The challenge is to then find meaningful slow-moving variables that capture the general dynamics. For a vegetation ecosystem, spatial correlation functions are one such set of observables17. These will typically evolve at a rate much slower than the more transient observables of the system. Since the underlying dynamics of the system are stochastic, we can then construct the expected rate of change (ξ) of the observable ϕ of the current system state S t by considering all the ways in which the system can leave this state,
1 |
The expected rate of change of an observable is therefore the sum over all lattice sites i of the rate at which an event occurs multiplied by the change in the observable conditioned on the event occurring. This equation may be derived from the Kolmogorov-forward equation (see Supplementary information). An evolving system may have many such observables that are of interest. If such a collection exists then the expected rate of change can be defined for each and the collection of them can be studied. This can be achieved by assuming statistical stationarity, where the rate of change (ξ) is zero and subsequently all terms in the right-hand side cancel.
The primary method outlined here is to construct a synthetic (pseudo) likelihood based upon spatial summary statistics18. The expected change depends upon the rates at which events occur in the lattice and hence is dependent upon the parameters of the model. If a given system is at statistical equilibrium, all of its salient observables, such as spatial correlations, will be approximately constant in time. This corresponds to when the expected change in the observables are zero. We can thus calculate a total deviation in the rates from the statistically stationary state for a given set of model parameters. The associated likelihood can then be defined as some probability density function that takes the total deviation from statistical stationarity as its value. Once we have such a likelihood, the system is then amenable to model-fitting methods such as likelihood maximization as well as MCMC and other Bayesian techniques. In order to elucidate these ideas we study the case of banded regular pattern formation in ecology and construct a probabilistic cellular automata lattice model that can be used in this approach.
We approach the model fitting in a Bayesian scheme. Bayesian inference can regularize fitting through the use of prior information either from distinct aspects of the data or other data sources. This allows fitting to be performed where the underlying inference problem may be ill-posed due to conflated parameters, lack of data or a likelihood that is uninformative to one or more parameters. The framework also allows sampling to be performed where the space of well-fitting parameters can be investigated, particularly if the likelihood landscape is complex (e.g. due to multi-modality). Disadvantages can come from when priors are misspecified or if the likelihood is computationally intensive as typically many samples are required19,20.
In this paper we outline a technique for performing model inference on a spatial snapshot and explore a vegetation-based ecosystem using this technique. We develop and explore a stochastic cellular automata model21,22, with local and long-range interaction that produces banding patterns in agreement with a number of ecosystems that exhibit long-range competition. We introduce a technique of fitting a model to a spatial snapshot using a synthetic likelihood-based MCMC approach. We then explore real data in the form of an aerial photographic survey of seagrass meadows in the Isles of Scilly, UK that display banding phenomena applicable to our model.
Methods
Model Development
Regular pattern formation is abundant in vegetative communities: including patches, labyrinths, bands and gaps23. The leading explanation of this type of pattern formation is due to some separation of spatial scales between positive and negative feedbacks. For instance, in Mussel Beds, mussels will attach to rock aided by con-specifics that provide shelter, anchorage and nutrition8,24. Negative feedback occurs due to mussels competing for resources that are depleted over a longer scale: In the presence of a current, the directionality of the flow produces a shadow of competition down-flow of a mussel patch. Other similar mechanisms occur for semi-arid ecosystems, where local positive feedback occurs through sheltering and root structure and longer-range competition occurs due to depletion of ground water. Again directionality can occur due to sloping ground, meaning ground water will flow in one direction9,25–28. Finally Seagrass also exhibits local and long-range feedbacks. Short-range positive feedback is due to sheltering and nutrient deposition. The long range negative interaction this time comes from hydrological scouring, where in places with strong current water flow scours the ground reducing the probability of young shoot growth down flow of a high density area of seagrass29–31.
In order to model these mechanisms we consider a probabilistic cellular automata (PCA) on a lattice with periodic boundary conditions. PCA with long-range dynamics have been used previously to model vegetative processes32–34. Each site in the lattice (S) is denoted (i, j) and can either be occupied (1) or unoccupied (0). The dynamics are updated synchronously and the probability at which an unoccupied site becomes occupied is proportional to the local density of occupied sites (locality is defined via a local growth kernel k 1, which is Gaussian with variance ). Death is assumed to be due to over-crowding and is mediated via a competition kernel k 2, which is also assumed to be Gaussian, but locally offset (See Fig. 1a for a schematic overview). Hence the transition rates for an individual site (i, j) are
2a |
2b |
where * is the standard two-dimensional convolution operator defined as . λ is the rate of reproduction. As we consider only a single snapshot, time may be arbitrarily rescaled. We do so by setting λ equal to one, thus effectively removing a parameter from the model. Space is also similarly scaled such that lattice squares are 1 × 1 units. c controls the strength of the competition, where a low value of c reduces the overall death rate due to competition. It is also assumed that there is some anisotropy to the competition; as such, the k 2 kernel is offset by distance r and angle θ. The parameters of the model are summarised in Table 1.
Table 1.
Parameter | Description |
---|---|
λ | birth rate (set to one unless otherwise stated) |
variance of growth kernel | |
variance of competition kernel | |
c | strength of competition |
θ | direction of competition kernel offset |
r | displacement of competition kernel offset |
Data
The data were collected via remote sensing techniques. The Seagrass data were collected in the form of an aerial photographic survey conducted in the Isles of Scilly, UK (49°55′N, 06°19′W) during the summer of 200835. Meadow locations were surveyed and the resulting images were digitised and converted into a binary lattice. This was achieved through a combination of image analysis, ground truthing and historical data mining. The aerial photographs were pre-processed to mask out land and build a mosaic of the separate images. Unsupervised classification of the processed images was then carried out on the red, blue and green bands to objectively classify pixels into categories containing similar values for each of the three variables. Ground truthing was then used to determine which clusters were seagrass (see Jackson et al.35 for a full overview of the method).
We selected two regions where different forms of banding are exhibited. Regions of spatial patterning were located at (49°57.588′N, 6°18.578′W) (snapshot A) and (49°57.467′N, 6°21.362′W) (snapshot B) in 100 × 100 m spatial snapshots. Each aerial photograph was digitized to produce two binary lattices representing the occupation of seagrass in the site35. Snapshot A contains an area of strong sharp bands and snapshot B is a region where there is little to no banding.
Synthetic data were generated from the model. A lattice of size 100 × 100 was initiliased randomly with 10% occupancy. The system was allowed to evolve for 1000 time-steps until the population size and pair-wise correlations reached statistical equilibrium. The parameters were chosen from a region of parameter space where strong banding occurs.
Overview of Fitting Process
The fitting process can be divided into two parts: the construction of the synthetic likelihood and the implementation of this likelihood to generate well-fitting parameters. An overview of the likelihood construction is given in Fig. 1b.
Construction of the likelihood is performed on data, D, composed of a single spatial snapshot composed of a lattice of sites that are either occupied or unoccupied (top-left of Fig. 1b). The birth and death rates at each site are calculated for the whole lattice based on a particular set of model parameters Θ based on the rates described in Eq. 2 (Top-right of Fig. 1b). Using these statistics, the expected rate of change in the pair-wise correlations at a distance d are calculated for d = 1, …, k (Bottom-right of Fig. 1b). Finally these values are input into a synthetic likelihood function that can be used for model fitting (bottom-left of Fig. 1b).
The outline for the methodology is to first provide a calculation of the expected rate of change at each lattice site, which is then used to construct the pair-wise expected rate of change for a range of pair distances. A likelihood is then constructed based on these summary statistics and finally this is incorporated into a Bayesian fitting procedure. This is summarised in Alg. 1 and the details of each step are outlined below.
Calculation of pair-wise correlations
We use the pair-wise correlations between sites at distance d, denoted P ab(d) as the main statistics in the construction of the synthetic likelihood. The correlations occupied-occupied, unoccupied-occupied and unoccupied-unoccupied were all used. The distance metric used was Euclidean, i.e. , where x and y are the longitudinal and latitudinal displacement defined on the lattice. For a site (i, j) in state X, the number of sites in state Y at distance d away is . Unlike in the model simulations, periodic boundary conditions cannot be assumed. We therefore introduce a boundary around the lattice, where sites are not directly considered (See Supplementary information). The pair-wise count was then normalised over the total number of lattice sites at distance d away, N(d). Note that these correlations do not depend upon the model parameters and only need to be calculated once for each lattice data (Step 4 in Alg. 1).
Calculation of the expected rate of change
The data D is a spatial binary (1 for occupancy, 0 for empty) lattice indexed by (i, j). For each site (i, j) in the lattice and a given set of parameters, the model birth rate r 0(i, j) and death rate r 1(i, j) can be calculated dependent on whether the site is occupied or unoccupied (step 7 in Alg. 1), these values are then combined with the number of pairs at distance d described in the following step.
Calculation of expected change in XY pairs at distance d
For a given set of model parameters Θ = (λ, σ 1, σ 2, c, r, θ), the expected rate of change in each XY pair at distance d is calculated using the rate of a birth event and death event at every lattice site. We only consider first-order transitions where at most one lattice site changes. Each birth and death event contributes to both the creation and destruction of pairs 00, 01 and 11 and hence must be considered for each site. As an example consider the expected change in correlations for the pair 00 at distance d due to an event at site (i, j). A 00 pair is created either due to a death at that site (which occurs at rate r 0(i, j)) multiplied by all the 01 pairs at distance d for that site, . Similarly the expected number of 00 pairs lost is the rate of a birth at that site (r 1(i, j)) multiplied by the number of sites that are unoccupied at distance d from that site, .
3 |
This is then summed over all sites (i, j) to calculate the expected rate of change of XY pairs at distance d (step 8 in Alg. 1). In order to remove boundary effects, only lattice sites within a given boundary are summed over as sites on the edge of any snap-shot are affected by sites that are unobserved. This produces a set of summary statistics for each distance d and XY pair (we denote this using where i is an index over XY pairs and distances d) (step 8 in Alg. 1). A derivation for each pair is given in the Supplementary information (Derivation of expected change of XY pairs).
Calculation of synthetic likelihood
Using collection of statistics, Ξ, we construct a probability distribution for each XY pair and distance d. The Likelihood was then derived by assuming that each statistic is independent and has normal error with variance , hence producing the resulting likelihood
4 |
where i sums over all pairs (00, 01 and 11) and all distances (1, …, k) (step 9 in Alg. 1). The log-likelihood function is
5 |
We found through simulation over a range of lattice sizes and parameters that the normal distribution characterized the distribution of the observables, although other distributions such a the exponential distribution could be considered depending on the model and observables that are studied. There is still an issue over the value of for each observable i. It was found from typical simulation runs that the variance scales with the number of pairs as a square. Hence, the functional form of for pairs 00, 11 and 01 (Fig. 2a). The functional form of the variance then leaves a single free parameter for the likelihood, which can then be found through simulation over a range of parameters. For a 100 × 100 lattice we derived a variance of .
Fitting procedure
In order to fit the model likelihood to a given dataset a Metropolis-Hastings Markov Chain Monte Carlo (MH MCMC) sampling scheme was implemented, where the posterior may be sampled (note that this is distinct from the Markov chain underlying the model. See Supplementary information for a derivation). Initially the parameters are drawn independently from their prior distribution (step 3 in Alg. 1). A proposal parameter was then chosen from a normal distribution centred around the current parameter, with the transition probability denoted as Q(Θ) (step 6 in Alg. 1). The proposal is then accepted according to the probability
6 |
which corresponds to step 11 in Alg. 1. As the transition is a symmetric random walk we can ignore the transition probability in the ratio term. We chose the transition probabilities to be independent for each parameter and normal centred on the current parameter value. The variance for each transition distribution was tuned during the burn-in phase to produce an acceptance rate of approximately 25% for each parameter36. Experimentation of the acceptance rate supported the choice of 25% acceptance providing a good compromise between efficiency and mixing of the chain. The posterior was sampled from the MCMC chain after a burn-in of 104 steps and 106 sampling steps. With consideration to the acceptance rate, thinning was not performed37. Visual inspections of the chains indicated sufficient mixing during the sampling and convergence during the burn-in period38.
Choice of priors
In order to regularise the region of parameter space over which fitting occurs, empirical weak priors for the spatial parameters were formulated from the lattice spatial data. An exponential prior for the displacement r was chosen, with a mean corresponding to the average inter-band width. Gamma distributions were generated for the variances of the reproduction and competition kernels with means of the average band width and inter-band gap width respectively. The variance of the gamma distributions were chosen to be sufficiently wide (10% the length of the lattice). Although these priors are informed by the data, they are not informed from the model and are there to weakly constrained the parameters to a biologically realistic region of parameter space. The prior and posterior distributions still displayed strong differences demonstrating the likelihood was informative. Further the competition parameter c was given an exponential prior with a mean 1 and the direction of the competition offset was uniform on the interval [0,π] for all data considered in the study.
Scenario analyses
Model simulations
The model was explored for a range of parameters in order to understand the impact of each parameter on the formation of spatial patterns. Simulations were ran for up to 1000 time-steps until spatial patterns stabilized. In order to understand how the summary statistics evolve in time and to determine the scaling in system size the expected change in pair-wise correlations at distance d were recorded for a number of parameters and system sizes from 50 × 50 to 1000 × 1000 and for 500 time-steps. We used the Kolmogorov-Smirnov test39 to determine whether the correlations produced from the model simulations deviated significantly from a normal distribution.
Fitting to simulated data
The fitting procedure was carried out on a region of parameter space known to produce strong banding (). This region was determined through grid search, where angle was arbitrarily set to π/2. Although the region of banding is quite broad in parameter space, banding collapses where the displacement of competition (r) is too low or the reproduction or competition kernel widths (σ 1 and σ 2) are too large (see Supplementary information). The inferred parameters were then compared to the true underlying parameters in order to assess if the original parameters could be correctly determined.
Fitting to real data
The fitting procedure was then carried out on the two seagrass meadow spatial data. The marginal posteriors were compared in order to assess how the disparate spatial patterns were resolved by the parameters.
Data availability
Both Matlab and Python libraries for the described fitting technique can be found at the following url, https://github.com/sempwn/spatial-inference.
Results
Model simulations
The model produces banded structures, with regular regions of high density and regions of low density at regular intervals. Each parameter has a different impact on the observed patterning of the banding. The competition parameter c controls the strength of the banding as well as the visual sharpness of the boundaries. When , competition is low and hence the strength of banding is weak with rough boundaries. For c > 1, bands are much sharper and the inter-band gaps have a high density of unoccupied states. The length-scale of the local growth σ 1 shows strong interaction with the length-scale of the competition σ 2 (Fig. A2 in Supplementary Information). Both interact to produce the characteristic length-scale of the bands. Also the length-scale of the bands and the inter-band gap show strong correlation and are of the same order of magnitude across all range of parameters. r is defined as the displacement of the offset for the competition. If r is too small compared to the length scale σ 1, then competition overwhelms the local growth and thus the whole population goes extinct. There therefore exists a minimum r after which banding will occur. Lastly θ gives the orientation of the offset for the banding and as such bands form in a perpendicular direction to the orientation of the competition.
Frustration was also observed in the banding of the system. This is where there exists a topological defect in the banded structure of the emergent spatial pattern. A topological defect is defined as when a contour can be drawn around the defect in such a way that the number of bands on one side of the contour do not equal the bands on the other side of the contour. As such the bands will not align without the destruction or creation of new bands. This leads to the situation where the overall correlation structure does not change over time, but fluctuations in the correlations occur as a defect moves through the lattice.
Simulations were performed for a number of system sizes and parameter values drawn randomly in order to determine the scaling of the errors as the size of the lattice increases. As the simulation is run the , and errors move through a transient state and quickly relax leading to smaller fluctuations compared to the transient state, where this was noted through visual inspection of the error time-series (Fig. 2a). The statistic ζ 2 was recorded over a number of time steps and for increasing system sizes. Using the Kolmogorov-Smirnov test39, it was found that all the correlation errors did not reject the null hypothesis that they were drawn from a normal distribution at level α = 0.05 and hence the assumption that the errors are normally distributed has evidence that it is correct.
Fitting to synthetic data
As an example of using the technique to fit to binary vegetation data, a simulation was performed on a 100 × 100 grid with parameters and periodic boundary conditions. The parameters were chosen to be in a region where strong banding occurs and hence is ideal to test how well the technique performs (Fig. 2b).
Although the offset is constant throughout the simulation the local banding structure of the simulation has a varying orientation for different regions of the lattice. Frustration also occurs, where clusters are not aligned with neighbouring bands (See (60, 60) co-ordinates in Fig. 2b for an example of this).
The posterior was estimated using a MH MCMC scheme run for 1 × 106 time-steps after a sufficient burn-in time. There is a bimodal relationship between the r and θ parameters producing two peaks at θ ≈ 1.5 and θ ≈ π + 1.5 (See Fig. 3) where the highest density of the posterior is contained. This gives a mode for r of around 10 (7.8–14.9 95% credible interval (CI)). The mode of the marginal distributions for each of the parameters falls close to the true values from the simulation. In particular the true value is contained in each of the 95% probability densities for each of the marginal distributions. The local growth width σ 1 (0.4–2.0 95% CI) has an approximately gamma distribution with mode less than the approximate gamma distribution of σ 2 (0.4–3.0 95% CI). Thus the marginals of σ 1 and σ 2 give a way of testing the hypothesis that the extent of the competition is greater than that of the extent of the local growth i.e. σ 1 < σ 2.
Fitting to real data
With the validity of the scheme established we can now turn our attention to real data in the form of an aerial photographic survey of seagrass. We select two regions where different forms of banding are exhibited. Regions of spatial patterning were located at (49°57.588′N, 6°18.578′W) (snapshot A) and (49°57.467′N, 6°21.362′W) (snapshot B) in 100 × 100 m spatial snapshots. Each aerial photograph was digitized to produce two binary lattices representing the occupation of seagrass in the site35. Snapshot A contains an area of strong sharp bands (Fig. 4). This is reflected in the marginal posterior, where there is a sharp peak in r around 10 m with a sharp bimodal structure of θ with peaks at approximately π/2 and 3π/2. The width of the reproduction (σ 1) is sharply defined with a peak at 0.5. The banded structure is also reflected in the posterior of the competition c, where the marginal has a long tail with a mode of approximately 1. Finally we look at snapshot B, a region where there is little to no banding (Fig. 5). By contrast to the sharp banded structure of snapshot A, the marginal posterior of r occupies a large range, with approximately constant probability between 0–10 m. The orientation of the competition is approximately uniform with a negligible increase around π/4. The local reproduction width meanwhile is sharply defined with peak between 0.75–1. There is also a much lower predicted value of c, indicating less spatially aggregated competition.
Discussion
In this paper we have derived a novel method of inferring parameters of a probabilistic cellular automata model based upon the expected rate of change in the observed spatial pattern. The main idea is to infer dynamic parameters from a snapshot alone. We have greatly extended the work of Keeling et al.15 by taking the concept of using the expected rate of change of pair-wise correlations to construct a synthetic likelihood. This likelihood was then used to develop a full Bayesian methodology and applied to a model of vegetation with spatial competition. It was found that when the banding pattern is strong, parameters are well-informed by the synthetic likelihood, however there is a high amount of uncertainty when banding in the spatial snapshot is weak or non-existent.
The probabilisitic cellular automata model was able to qualitatively reproduce banding observed in nature. The underlying mechanism for this was based on local facilitation due to a local reproduction kernel with a fixed length and an offset competition kernel with a separate characteristic length scale. There are, however, many other known mechanisms that can induce pattern formation in sessile organisms23. Therefore, a strong understanding of the system is necessary in order to correctly choose an applicable model. In the case of seagrass, it is known that the effects of currents and waves induce spatial competition40. This implies there is a partially validated mechanism for inducing pattern formation that supports the choice of model. Another assumption of the model is landscape homogeneity. This is applicable on smaller spatial scales (100 m), but would begin to break down on larger scales as local currents and sea depth varies. In order to incorporate larger-scale data into the model and fitting scheme a hierarchical approach could be used, where the parameters are spatially-varying with a spatial correlation structure that can be inferred41. The competition strength c is less well-defined, although the marginals do vary as the underlying value of c is varied. This may be due to the issue that the transition between no banding and banding is sharp and hence the correlation structure may only be able to distinguish between when c is small or large. The reproduction and competition variance, σ 1 and σ 2 have well-defined peaks for smaller values, but these are less well defined when both variances are larger. This corresponds to the break down of banding and thus strong correlation structure as the variance in reproduction or competition grows (See Fig. A2 in Supplementary Information for a full analysis of σ 1 and σ 2).
Previous studies have considered deriving the strength of facilitation and competition from a spatial snapshot using a PCA model42,43. Our contribution here is to construct a quantitative method for deriving these parameters from a snapshot, including the full uncertainty in these parameters. The method also produces a set of parameters from which scenarios (such as a storm disturbance, see the supplementary information) may be simulated, providing uncertainty around the outcome.
The idea behind the synthetic likelihood is instead of considering the full likelihood (which would likely be intractable or computationally prohibitive to implement), we instead consider a likelihood built from a set of summary statistics. The summary statistics developed were the expected rate of change of pair-wise correlations. The advantage of this approach is that a likelihood can be described for a single spatial snapshot and only the model rates need to be calculated at each iteration. It is however, an approximation to the full likelihood and is dependent on the summary statistics fully describing the current dynamic state. This is why the model fit becomes more resolved when there is a strong spatial pattern (in terms of the pair-wise correlation structure), compared to when there is no discernible pattern.
We performed Bayesian inference for the study. This involves defining a prior for the parameters used in model fitting and sampling from a posterior, which is a combination of both these and the likelihood. The prior can help to regulate fitting as well as be used to include any other information known about the system. For instance if it is known over what length-scales competition acts, this can be included as a prior. In order to determine the prior here, the inter-band, between band and band length were all measured to produce weakly informed-priors. This was done in order to constrain where competition acts to the nearest neighbour band. If this was relaxed, such as through the use of improper priors, the marginal posterior for the competition displacement would become multi-modal. This choice of prior therefore constrains the parameters to the biologically-realistic regime.
The method can be extended in a number of ways. We have investigated the phenomena of banding for a single vegetation ecosystem, the kernel model is quite general however and can be applied to other processes such as other types of regular patterns as well as disease. For such systems the evolution of the spatial pattern would have to be slow, such that transients in the correlation functions should quickly die out. The approach should also work for spatio-temporal data, where several snapshots through time exist for a specific location in order to detect change between snapshots. The increased number of snapshots could easily be fed into the method and used to more accurately infer model parameters without inferring the behaviour between snapshots. The pair-wise correlations can also be extended to consider triplets i.e. X-Y-Z correlations. It would be interesting to measure how this extension would perform in an inference task. The likelihood may also include an uncorrelated noise term in order to account for inaccuracies in the image classification.
More realistic asymmetric reproduction and competition kernels could readily be adapted into our scheme. We have found, however that there is some difficulty in inferring the exact shape of the competition kernel beyond variance(results not shown). Nevertheless, more realistic kernels could be implemented if their distributions were known (e.g. through the use of flume experiments in the case of seagrass44).
Other methods that could be applicable for inference on spatial pattern would be Approximate Bayesian Computation 45. This however, would require many simulation runs and for a large system size could potentially be computationally costly. The method described is able to perform inference without the need for simulation or continued calculation of the spatial correlation functions. Inference of anisotropic parameters using a model-based approach has advantages over other approaches such as spectral methods, where parameters cannot be related back to a PCA model. With a correctly tuned model, various scenarios such as temperature increases or disturbances of the environment can be explored and hence can help to inform ecosystem management under certain scenarios.
Other systems where the model is applicable include mussel beds and tiger bush. Mussel beds have been shown to self-organise into regular banded patterns8. Their local interaction is due to the reduction of dislodgement and the reduction is predation as the density of mussels in the local area increases. Long-range competition is induced through the depletion of algae, that mussels prey upon, due to the presence of mussels depleting the resource on a long-range scale. For our model, there must be the assumption that this depletion has a preferred direction, due to prevailing currents. Semi-arid ecosystems can also develop banded patterns known as Tiger Bush. The principles of local positive long-range negative feedback are similar to the previous two cases. Local positive feedback occurs via uptake of ground water, which is shared among plants in the local area. Shadowing and sheltering can also help to increase ground water above mean rates. the presence of high density at longer range means there’s a depletion of ground water and thus a lack of resources needed for growth leads to new plant colonies being unable to establish. Striped patterns can occur where the environment is homogeneous, but for our purposes we consider the formation of stripes due to an environmental gradient, such as sloping. This induces a preferred direction to the long-range competition, thus making the model applicable. It is interesting to note that two main ingredients seem to reproduce the wide-variety of pattern observations found in vegetation and sessile communities: separation of scale for feedbacks and noise.
Conclusion
We described a novel method for probabilistic cellular automata model fitting to a spatial snapshot of vegetation occupancy. The method described was capable of reproducing model parameters for synthetic data and able to reproduce qualitative spatial pattern for two seagrass meadows with different spatial patterns. This represents a promising step towards inferring dynamic information from a single spatial snapshot.
Electronic supplementary material
Acknowledgements
We thank two anonymous reviewers for their contributions in the revision of this manuscript. This work was funded by an EPSRC-studentship in complexity science.
Author Contributions
M.A.I., M.J.K. and J.C.B. conceived the study. M.A.I. and J.C.B. collected and analysed the data. M.A.I. and M.J.K. developed the methodology. M.A.I., M.J.K. and J.C.B. planned the analysis and interpreted the results. M.A.I. drafted the initial manuscript. All authors revised and approved the final manuscript.
Competing Interests
The authors declare that they have no competing interests.
Footnotes
Electronic supplementary material
Supplementary information accompanies this paper at 10.1038/s41598-017-17346-6.
Publisher's note: Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.
Contributor Information
Michael A. Irvine, Email: m.irvine@math.ubc.ca
James C. Bull, Email: j.c.bull@swansea.ac.uk
Matt J. Keeling, Email: m.j.keeling@warwick.ac.uk
References
- 1.Walther G-R, et al. Ecological responses to recent climate change. Nature. 2002;416:389–395. doi: 10.1038/416389a. [DOI] [PubMed] [Google Scholar]
- 2.Vitousek PM, Mooney HA, Lubchenco J, Melillo JM. Human domination of earth’s ecosystems. Science. 1997;277:494–499. doi: 10.1126/science.277.5325.494. [DOI] [Google Scholar]
- 3.Kerr JT, Ostrovsky M. From space to species: ecological applications for remote sensing. Trends in Ecology & Evolution. 2003;18:299–305. doi: 10.1016/S0169-5347(03)00071-5. [DOI] [Google Scholar]
- 4.Rees M, Condit R, Crawley M, Pacala S, Tilman D. Long-term studies of vegetation dynamics. Science. 2001;293:650–655. doi: 10.1126/science.1062586. [DOI] [PubMed] [Google Scholar]
- 5.Penny GG, Daniels KE, Thompson SE. Local properties of patterned vegetation: quantifying endogenous and exogenous effects. Philosophical Transactions of the Royal Society A: Mathematical, Physical and Engineering Sciences. 2013;371:20120359. doi: 10.1098/rsta.2012.0359. [DOI] [PubMed] [Google Scholar]
- 6.Rosenberg MS. Wavelet analysis for detecting anisotropy in point patterns. Journal of Vegetation Science. 2004;15:277–284. doi: 10.1111/j.1654-1103.2004.tb02262.x. [DOI] [Google Scholar]
- 7.Meron E, Gilad E, von Hardenberg J, Shachak M, Zarmi Y. Vegetation patterns along a rainfall gradient. Chaos, Solitons & Fractals. 2004;19:367–376. doi: 10.1016/S0960-0779(03)00049-3. [DOI] [Google Scholar]
- 8.van de Koppel J, Rietkerk M, Dankers N, Herman PM. Scale-dependent feedback and regular spatial patterns in young mussel beds. The American Naturalist. 2005;165:E66–E77. doi: 10.1086/428362. [DOI] [PubMed] [Google Scholar]
- 9.Borgogno, F., D’Odorico, P., Laio, F. & Ridolfi, L. Mathematical models of vegetation pattern formation in ecohydrology. Reviews of Geophysics47 (2009).
- 10.Scheffer M, et al. Early-warning signals for critical transitions. Nature. 2009;461:53–59. doi: 10.1038/nature08227. [DOI] [PubMed] [Google Scholar]
- 11.Guttal V, Jayaprakash C. Spatial variance and spatial skewness: leading indicators of regime shifts in spatial ecological systems. Theoretical Ecology. 2009;2:3–12. doi: 10.1007/s12080-008-0033-1. [DOI] [Google Scholar]
- 12.Van Nes EH, Scheffer M. Slow recovery from perturbations as a generic indicator of a nearby catastrophic shift. The American Naturalist. 2007;169:738–747. doi: 10.1086/516845. [DOI] [PubMed] [Google Scholar]
- 13.Gibson G, Austin E. Fitting and testing spatio-temporal stochastic models with application in plant epidemiology. Plant Pathology. 1996;45:172–184. doi: 10.1046/j.1365-3059.1996.d01-116.x. [DOI] [Google Scholar]
- 14.Gibson GJ. Markov chain monte carlo methods for fitting spatiotemporal stochastic models in plant epidemiology. Journal of the Royal Statistical Society: Series C (Applied Statistics) 1997;46:215–233. doi: 10.1111/1467-9876.00061. [DOI] [Google Scholar]
- 15.Keeling MJ, Brooks SP, Gilligan CA. Using conservation of pattern to estimate spatial parameters from a single snapshot. Proceedings of the National Academy of Sciences of the United States of America. 2004;101:9155–9160. doi: 10.1073/pnas.0400335101. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 16.Dieckmann, U. & Law, R. Relaxation projections and the method of moments. The Geometry of Ecological Interactions: Symplifying Spatial Complexity (Dieckmann, U., Law, R. & Metz, J. A. J., editors). Cambridge University Press, Cambridge 412–455 (2000).
- 17.Legendre P, Fortin MJ. Spatial pattern and ecological analysis. Vegetatio. 1989;80:107–138. doi: 10.1007/BF00048036. [DOI] [Google Scholar]
- 18.Wood SN. Statistical inference for noisy nonlinear ecological dynamic systems. Nature. 2010;466:1102–1104. doi: 10.1038/nature09319. [DOI] [PubMed] [Google Scholar]
- 19.Schoot R, et al. A gentle introduction to bayesian analysis: Applications to developmental research. Child development. 2014;85:842–860. doi: 10.1111/cdev.12169. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 20.Gelman A, et al. Objections to bayesian statistics. Bayesian Analysis. 2008;3:445–449. doi: 10.1214/08-BA318. [DOI] [Google Scholar]
- 21.Hogeweg P. Cellular automata as a paradigm for ecological modeling. Applied mathematics and computation. 1988;27:81–100. doi: 10.1016/0096-3003(88)90100-2. [DOI] [Google Scholar]
- 22.Balzter H, Braun PW, Köhler W. Cellular automata models for vegetation dynamics. Ecological modelling. 1998;107:113–125. doi: 10.1016/S0304-3800(97)00202-0. [DOI] [Google Scholar]
- 23.Rietkerk M, de Koppel V. J. Regular pattern formation in real ecosystems. Trends in Ecology & Evolution. 2008;23:169–175. doi: 10.1016/j.tree.2007.10.013. [DOI] [PubMed] [Google Scholar]
- 24.Guichard F, Halpin PM, Allison GW, Lubchenco J, Menge BA. Mussel disturbance dynamics: signatures of oceanographic forcing from local interactions. The American Naturalist. 2003;161:889–904. doi: 10.1086/375300. [DOI] [PubMed] [Google Scholar]
- 25.Tongway DJ, Ludwig JA. Vegetation and soil patterning in semi-arid mulga lands of eastern australia. Australian Journal of Ecology. 1990;15:23–34. doi: 10.1111/j.1442-9993.1990.tb01017.x. [DOI] [Google Scholar]
- 26.Ludwig JA, Tongway DJ. Spatial organisation of landscapes and its function in semi-arid woodlands, Australia. Landscape Ecology. 1995;10:51–63. doi: 10.1007/BF00158553. [DOI] [Google Scholar]
- 27.Montana, C. The colonization of bare areas in two-phase mosaics of an arid ecosystem. Journal of Ecology 315–327 (1992).
- 28.Lejeune O, Couteron P, Lefever R. Short range co-operativity competing with long range inhibition explains vegetation patterns. Acta Oecologica. 1999;20:171–183. doi: 10.1016/S1146-609X(99)80030-7. [DOI] [Google Scholar]
- 29.Fonseca MS, Zieman JC, Thayer GW, Fisher JS. The role of current velocity in structuring eelgrass (Zostera marina l.) meadows. Estuarine, Coastal and Shelf Science. 1983;17:367–380. doi: 10.1016/0272-7714(83)90123-3. [DOI] [Google Scholar]
- 30.Folkard AM. Hydrodynamics of model posidonia oceanica patches in shallow water. Limnology and Oceanography. 2005;50:1592. doi: 10.4319/lo.2005.50.5.1592. [DOI] [Google Scholar]
- 31.Van Der Heide T, et al. Spatial self-organized patterning in seagrasses along a depth gradient of an intertidal ecosystem. Ecology. 2010;91:362–369. doi: 10.1890/08-1567.1. [DOI] [PubMed] [Google Scholar]
- 32.Cannas, S. A., Marco, D. E., Paez, S. A. & Montemurro, M. A. Plant spread dynamics and spatial patterns in forest ecology. Nonextensive Entropy: Interdisciplinary Applications: Interdisciplinary Applications 243 (2004).
- 33.Irvine MA, et al. Fractal measures of spatial pattern as a heuristic for return rate in vegetative systems. Royal Society open science. 2016;3:150519. doi: 10.1098/rsos.150519. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 34.Irvine MA, Bull JC, Keeling MJ. Disease transmission promotes evolution of host spatial patterns. Journal of The Royal Society Interface. 2016;13:20160463. doi: 10.1098/rsif.2016.0463. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 35.Jackson, E. et al. Isles of scilly seagrass mapping. Tech. Rep. 087, Natural England Commissioned Reports (2011).
- 36.Roberts GO, et al. Weak convergence and optimal scaling of random walk metropolis algorithms. The annals of applied probability. 1997;7:110–120. doi: 10.1214/aoap/1034625254. [DOI] [Google Scholar]
- 37.Link WA, Eaton MJ. On thinning of chains in mcmc. Methods in ecology and evolution. 2012;3:112–115. doi: 10.1111/j.2041-210X.2011.00131.x. [DOI] [Google Scholar]
- 38.Cowles MK, Carlin BP. Markov chain monte carlo convergence diagnostics: a comparative review. Journal of the American Statistical Association. 1996;91:883–904. doi: 10.1080/01621459.1996.10476956. [DOI] [Google Scholar]
- 39.DeGroot, M. H. & Schervish, M. J. Probability and statistics (2002).
- 40.Frederiksen M, Krause-Jensen D, Holmer M, Laursen JS. Spatial and temporal variation in eelgrass (zostera marina) landscapes: influence of physical setting. Aquatic Botany. 2004;78:147–165. doi: 10.1016/j.aquabot.2003.10.003. [DOI] [Google Scholar]
- 41.Johnson DS, Conn PB, Hooten MB, Ray JC, Pond BA. Spatial occupancy models for large data sets. Ecology. 2013;94:801–808. doi: 10.1890/12-0564.1. [DOI] [Google Scholar]
- 42.Thiery, J., d’Herbes, J.-M. & Valentin, C. A model simulating the genesis of banded vegetation patterns in niger. Journal of Ecology 497–507 (1995).
- 43.Rietkerk M, Dekker SC, de Ruiter PC, van de Koppel J. Self-organized patchiness and catastrophic shifts in ecosystems. Science. 2004;305:1926–1929. doi: 10.1126/science.1101867. [DOI] [PubMed] [Google Scholar]
- 44.Hendriks IE, Sintes T, Bouma TJ, Duarte CM. Experimental assessment and modeling evaluation of the effects of the seagrass posidonia oceanica on flow and particle trapping. Marine Ecology Progress Series. 2008;356:163–173. doi: 10.3354/meps07316. [DOI] [Google Scholar]
- 45.Csilléry K, Blum MG, Gaggiotti OE, François O. Approximate bayesian computation (abc) in practice. Trends in ecology & evolution. 2010;25:410–418. doi: 10.1016/j.tree.2010.04.001. [DOI] [PubMed] [Google Scholar]
Associated Data
This section collects any data citations, data availability statements, or supplementary materials included in this article.
Supplementary Materials
Data Availability Statement
Both Matlab and Python libraries for the described fitting technique can be found at the following url, https://github.com/sempwn/spatial-inference.