State-space models (SSMs) are increasingly used in ecology to model time-series such as animal movement paths and population dynamics. This type of hierarchical model is often structured to account for two levels of variability: biological stochasticity and measurement error. SSMs are flexible. They can model linear and nonlinear processes using a variety of statistical distributions. Recent ecological SSMs are often complex, with a large number of parameters to estimate. Through a simulation study, we show that even simple linear Gaussian SSMs can suffer from parameter- and state-estimation problems. We demonstrate that these problems occur primarily when measurement error is larger than biological stochasticity, the condition that often drives ecologists to use SSMs. Using an animal movement example, we show how these estimation problems can affect ecological inference. Biased parameter estimates of a SSM describing the movement of polar bears (Ursus maritimus) result in overestimating their energy expenditure. We suggest potential solutions, but show that it often remains difficult to estimate parameters. While SSMs are powerful tools, they can give misleading results and we urge ecologists to assess whether the parameters can be estimated accurately before drawing ecological conclusions from their results.
State-space models (SSMs) are increasingly used in ecology and are becoming the favoured statistical framework for modelling animal movement and population dynamics1,2,3,4. SSMs are desirable because they are structured so as to differentiate between two distinct sources of variability: the biological or process variation (e.g., demographic stochasticity) and the measurement error associated with the sampling method2,4. Because marine observations are often associated with large measurement errors that can mask biological signals, much of the early development of SSMs in ecology was by marine ecologists and fisheries scientists (e.g.5,6,7). The SSM framework has since become a general approach to account for multiple levels of stochasticity when modelling time-series, making them increasingly popular in the terrestrial literature (e.g.8,9,10). Here, we demonstrate that even simple SSMs can be problematic. The model we chose is often used to explain how SSMs can account for two levels of stochasticity (e.g.4), yet, we show that it suffers from parameter- and state-estimation problems.
SSMs are a type of hierarchical model, in which one level treats the underlying unobserved states as an autocorrelated process, while another level accounts for measurement error11. The SSM framework is flexible, especially when fitted with Monte Carlo methods such as particle filters or Markov Chain Monte Carlo (MCMC). SSMs can be used to model a variety of linear and nonlinear processes and can represent stochasticity with diverse statistical distributions (e.g.3,12,13). The flexibility of the SSM approach allows ecologists to build complex models that describe the biological and measurement processes with levels of detail that were previously unattainable.
While the SSM framework is flexible, much of its theoretical foundation is based on simple linear Gaussian SSMs (sometimes referred as normal dynamic linear models, see Newman et al.4). An example of a simple univariate linear Gaussian SSM is the one we will use to demonstrate parameter-estimability problems:
where are observed at regular time intervals for a time-series of length n and are the true unobserved states, with x0 representing the initial state. An ecological example of such a time-series would be a series of yearly population size estimates. For instance, Newman et al.4 use this model to introduce SSM for population dynamics with xt representing the true but unknown abundance of an animal population at time t, yt an unbiased observation of the population size at time t and ρ the population growth rate.
The origin of SSMs is intimately linked with the Kalman filter, a recursive procedure to estimate the unobserved states based on inaccurate observations (e.g., estimating the true fish abundance based on catch data). The Kalman filter was developed to estimate states based on a model without unknown parameter values14. However, in ecological applications, most parameters need to be estimated (e.g.3). Fitting methods for SSMs, such as the Kalman filter, are now used to facilitate both state and parameter estimation15. In many cases, SSMs are used to estimate variance parameters because they are designed to differentiate measurement error from process stochasticity16,17. While estimating parameters is often a means to estimate the unobserved states (e.g.13,15), parameters themselves can be of interest because they describe the underlying dynamics of the system, or behaviour of the animal (e.g.3,18).
Estimability problems associated with SSMs and other hierarchical models have been discussed in the population dynamics literature (e.g.16,19). In particular, previous studies have emphasized how difficult it is to use SSMs to estimate density dependence parameters19,20 and to differentiate process stochasticity from measurement error (e.g.16). However, the existence of parameter estimation problems have been largely overlooked in the movement literature and by those that use complex Bayesian SSMs. As SMMs are becoming the favoured framework for many ecological analyses1,2,3,4 and are gaining popularity in other fields (e.g.21), it is timely to warn researchers of their weaknesses.
Here, we use simulations to show that simple SSMs can have severe parameter-estimability problems that in turn affect state estimates. These problems are more frequent when the measurement error is large, the very condition under which SSMs are needed and can persist even when we incorporate measurement error information. While our main estimation approach consists of maximizing the likelihood numerically through Template Model Builder (TMB)22, we show that these problems persist across a wide range of platforms and statistical frameworks, including when the parameters and states are estimated via Bayesian methods. We use the polar bear (Ursus maritimus) movement data that led us to notice these problems to demonstrate the effect of estimation problems on the biological interpretation of results. Finally, we discuss techniques to diagnose and, when possible, alleviate estimability problems.
Demonstration of the problem
When we fit models to data, we want the parameters to be identifiable, which means that, given perfect data (e.g., an infinitely long time-series), it is possible to learn the true values of parameters. Assessing parameter identifiability is often difficult and a more attainable goal is to assess estimability. Estimability means that, given the data at hand, the method used to approximate the parameter yields a unique estimate. When the maximum value of the likelihood function occurs at more than one parameter value, the parameter is nonestimable. The quality of parameter estimates can be assessed in terms of: its variance, measured over multiple repeated estimations; bias, the expected difference between the estimate and true value of the parameter; or mean square error, a composite of bias and variance. To demonstrate that the estimates of the parameters and states of SSMs can be inaccurate, we simulated a set of time-series using the model presented in equations 1, 2. In all simulations, the values for the initial state, x0, the measurement error, σε and the correlation, ρ, were set to 0, 0.1 and 0.7, respectively. In Appendix A (Supplementary information), we explored other ρ values, including a simpler model where ρ is fixed to 1. Note that while this simpler model has fewer parameters to estimate, it is no longer stationary23. To investigate whether the ratio of measurement to process stochasticity affected estimation, we simulated a range of ση values: (0.01, 0.02, 0.05, 0.1, 0.2, 0.5, 1). For each parameter set, we simulated 200 time-series each with 100 observations (n = 100). Analyses using longer time-series (n = 500) are presented in Appendix B (Supplementary information).
For each simulation, we estimated the parameters, θ = (σε, ρ, ση) and states, x, using the R24 package TMB. This R package is similar to AD Model Builder25 in that it uses automatic differentiation and the Laplace approximation. Finding the Maximum Likelihood Estimate (MLE) of the parameters of a SSM requires the maximization of the marginal distribution of the observations4. For the model presented in equations 1, 2, this involves maximizing the following likelihood:
To get the marginal distribution, we integrate over the states, . In TMB, this integration is achieved using the Laplace approximation, which in turn also returns state estimates13. While we refer to state “estimation”, this process is sometimes called “prediction” because states can be interpreted as random variables4. In this example, we assumed that the initial state is known (i.e., x0 = 0), which should help the estimation process. In instances where the initial state value is unavailable, the initial state can be modelled as x0 ~ N(μ, σ0)23. TMB calculates standard errors for the estimated parameters by using the inverse of the observed Fisher information, i.e. the Hessian of the log likelihood (similar to ADMB, see Fournier et al.25). To calculate the 95% confidence intervals (CI), we multiplied the aforementioned standard errors by the 2.5 and 97.5th percentiles of the normal distribution (i.e., the quadratic approximation in Bolker26).
To demonstrate that the problem is widespread across different statistical platforms, we also fitted the simulated data using two popular R packages: dlm27 and rjags28. dlm uses the Kalman filter for the state estimates and calculates the MLE with numerical optimization methods. rjags is an R interface to JAGS29, a program that can be used to fit Bayesian hierarchical models using MCMC methods (Supplementary information: Appendix C).
We evaluated the parameter-estimation performance of SSMs by comparing the estimated and simulated values. Similar to Pedersen et al.12, we evaluated the state-estimation performance with the root mean square error (RMSE):
where is the estimated state at time t and xt is the simulated (i.e., true) state at time t. To assess whether the state-estimation performance was affected by the parameter-estimation problems, we compare , for which the parameters, θ = (σε, ρ, ση), were also estimated, to RMSEθ, for which the parameter values were fixed at the values used to simulate the data.
To investigate the potential causes of the parameter-estimation problem, we explored the likelihood profile for a subset of the problematic simulations. We used the same simulations and parameter values as above, with the exception that we only examined the most problematic values: ση = (0.01, 0.02, 0.05) (see Results). Because they are associated with high measurement error to process stochasticity ratios, these values also represent the conditions when SSMs are most needed. For each scenario (i.e., different values of ση), we randomly chose one simulation for which the was 50% larger than RMSEθ. Again, we used TMB to estimate parameter values, θ and the states, x. To examine whether the estimation problems were associated with the simultaneous estimation of states and parameters, we estimated parameters when the state values were fixed to their simulated values (Supplementary information: Appendix D). As a final investigation of the causes of the estimation problems, we show how these problems are associated with known limitations of the autoregressive-moving-average (ARMA) models (Supplementary information: Appendix E).
Incorporating measurement error information
Many ecologists incorporate information on measurement error in their model by either fixing parameter values or, in a Bayesian framework, using informative priors (e.g.6,15,30). We investigated whether fixing the measurement error resolved the parameter estimation problem. To do so, we fitted our simple likelihood (equation 4) to the same simulations, but we fixed the standard deviation of the measurement equation to the value used to simulate the data, σε = 0.1. We only estimated the remaining parameters, . As above, we investigated the parameter estimates, RMSE of the states and likelihood profiles.
The movement of many animals, such as birds, fish and marine mammals, is a combination of the voluntary movement of the animal (active movement) and drift (passive displacement resulting from ocean or wind currents). Currents do not always direct animals towards their goals and moving against currents may require a substantial amount of energy (e.g.31). To understand how currents affect the behavioural strategies of an animal, it is necessary to distinguish between the voluntary movement of the animal and drift32. The voluntary movement can then be used as a proxy of energy expenditure, or can be integrated into an energy budget model to assess the effects of movement on survival and reproduction32,33. While developments in satellite telemetry are providing increasingly precise measurements of animal movement paths, it is difficult to differentiate between drift and voluntary movement because wind, ocean and sea ice drift data are often associated with large errors (e.g.34,35).
We noticed the estimation problems of linear Gaussian SSMs when developing a model that would differentiate between the voluntary movement of polar bears and sea ice drift. Polar bears often move in the reverse direction of the sea ice drift36,37 and sea ice drift can be associated with large errors34. As a proxy of energy expended by bears, we wanted to estimate the voluntary movement. As a first test, we developed a 2 dimensional SSM that accounts for error in ice drift data:
where is the measured daily displacement of the polar bear based on the GPS collar data, is the voluntary displacement of the polar bear and is the daily sea ice drift experienced by the bear. Here, the measurement error, εt, is associated with the ice data, not the polar bear location data. The location data were determined by GPS, for which the error is negligible (<30 m)38. For simplicity, we assumed that the two geographic coordinates are independent, thus:
Because equations 6, 7, 8 model displacements, the elements of H represent the measurement error in the sea ice drift data and those of Q are associated with the speed of the bear. Similar to γ in Jonsen et al.30, ρu and ρv represent the degree of autocorrelation in the random walk. To initialize the model we used and . We chose 15 km as it is the standard deviation of the observed daily displacements of the polar bears in the u- and v-direction.
We used the daily movement of 15 polar bears collared in the Beaufort Sea in the spring of 2007–2011. The bears were immobilized with standard methods39 and equipped with Telonics Inc. (Mesa, AZ) collars. All capture and handling procedures were carried out in accordance with the protocols approved by the University of Alberta Animal Care and Use Committee for Biosciences. We used the Polar Pathfinder Daily 25 km Ease-Grid Sea Ice Motion Vectors40, which are daily estimates of sea ice displacements in the u- and v-directions of the Northern Hemisphere azimuthal equal-area EASE-Grid projection developed for polar sea ice data41. We used the same movement data and data handling procedures as in Auger-Méthé et al.37, including interpolating the ice drift data at each bear location, assigning a drift value of zero for landfast ice and excluding the three days after collaring to remove movements affected by handling. The only differences in the data used here, are that we excluded all bears that spent time on land and considered days with missing sea ice data as missing observations (i.e., we considered both yt and st as missing that day).
Our goal was to use the SSM to estimate the energy expenditure of each bear. Our proxy was the total voluntary bear displacement:
where and are the estimates of the daily voluntary bear displacements in the u- and v-directions. The number of days, n, included in the time-series will affect our estimate of d. For consistency, we set n to be 342, the length of the shortest time-series across the 15 bears. To assess the effects of estimation problems on our ecological interpretation, we simulated movement paths similar to those described by the polar bear data (Supplementary information: Appendix F).
The code is available at https://gitlab.oceantrack.org/otn-statistical-modelling-group/SSMestProblems and as Supplementary data.
According to the simulation results, parameter estimation was often inaccurate and these problems affected the state estimates (Fig. 1). The parameter estimates were often far from their true values and their distributions often bimodal (Fig. 1, Supplementary Fig. A1). In many cases, the estimates for σε and ρ had peaks close to 0. The of the state estimates had either a bimodal distribution, or a long tail compared to that of the RMSEθ (Supplementary Fig. A1). In other words, when the parameters were estimated, many replicates had much higher state estimate error than when the true parameter values were used (Fig. 1). In fact, 29.6% of the simulations had a value that was 50% larger than their RMSEθ. When the simulations had high measurement error to process stochasticity ratios, the estimation problems for the states and two biologically relevant parameters, (ρ, ση) were much higher (Fig. 1). The in some of these cases was close to 10 times greater than the simulated process stochasticity.
Our supplementary analyses demonstrated that similar estimation problems occurred when dlm and rjags were used (Supplementary information: Appendix C). However, while the parameters estimated with rjags were often biased, their distributions did not contain a peak at 0. Increasing the length of the time-series improved parameter and state estimation (Supplementary information: Appendix B). However, 500 time steps were insufficient to completely eliminate problems. Our supplementary analyses also show that the problems are less apparent when ρ is close to 1, or when we used the simpler non-stationary local-level model, which fixes the value of ρ = 1 (Supplementary information: Appendix A).
The likelihood profiles of a subset of the problematic simulations revealed that the likelihood was flat in some areas and sometimes bimodal or jagged (Fig. 2). The CI of many parameters excluded the true simulated value. Because the estimated measurement error of these simulations were close to 0, the estimated states were very close to the observations and far from their true simulated values (Fig. 2D,H,L). When the states were fixed to their simulated rather than estimated values, the likelihood profiles were unimodal and most CI included the true parameter values, indicating that the problem lies in simultaneously estimating the states and the parameters (Supplementary information: Appendix D).
Fixing the measurement error
Fixing the standard deviation of the measurement error to the simulated value, , helped reduce the estimation problems (Supplementary information: Appendix G). values were much closer to RMSEθ when the measurement error was fixed rather than estimated. In this case, only 5.0% of the simulations had a value that was 50% larger than their RMSEθ. However, fixing the measurement error did not completely resolve the estimation problems. Some parameter estimates continued to be on the boundary of parameter space and far from their simulated values. In addition, some likelihood profiles remained flat and some CIs spanned the entire parameter space (see Supplementary information: Appendix G for more detail).
The 15 polar bears studied used overlapping areas in the Beaufort Sea (Fig. 3A), but their parameters estimates varied widely (Fig. 3C–H). In particular, three individuals had much lower estimated sea ice measurement error, with either and . These three individuals had total voluntary displacement estimates that were on the higher end of the range (Fig. 3B). These results are similar to those found when we simulated movement data similar to the real polar bear data (Supplementary information: Appendix F). The simulations also showed that a few individuals would have and and that these individuals would be associated with higher values of total voluntary displacement.
Linear Gaussian SSMs and approximations of them, are commonly used in the ecological literature to model animal movement2,6,15 and population abundance (e.g.10,42). These SSMs are often used to differentiate measurement error from process stochasticity and estimate the associated variance parameters (e.g.10,13,42,43). Our results demonstrated that simple linear Gaussian SSMs can have severe parameter- and state-estimation problems and that these problems can affect biological inferences. According to our simulations, estimation problems were more frequent when the measurement error was much larger than the process stochasticity. In such cases, the three estimated parameters were often far from their simulated values, which in turn resulted in inaccurate state estimates. The ARMA notation shows that when the measurement error is much greater than the process stochasticity there is parameter redundancy, explaining why it is difficult to accurately estimate the parameters (Supplementary information: Appendix E). Our simulations showed that fixing the measurement error to its true value helped, but did not completely solve the estimation problems, especially when the fixed measurement error was relatively large. This is particularly worrisome because SSMs are most needed when the measurement error is large compared to the process stochasticity and this is the condition under which the largest estimation problems occur.
The estimation problems are less critical when the measurement error is much smaller than the process stochasticity. While the measurement error estimates were often close to 0, the estimates for the other parameters and those for the states, were generally accurate. As shown by the ARMA notation, when the measurement error is much smaller than the process stochasticity the model behaves as an AR(1) process, explaining why the measurement error estimates were often close to zero (Supplementary information: Appendix E). In effect, the measurement error is ignored. However, when the measurement error is negligible compared to the process stochasticity, ignoring the effect of the measurement error is less likely to affect our interpretation of the biological process.
Others have discussed estimation problems associated with fitting simple linear Gaussian SSMs. A few recent ecological studies have reported difficulties when estimating variance parameters, including variance estimates close to 017,44. Dennis et al.16, who transformed the stochastic Gompertz population model into a linear Gaussian SSM, noted that while the process stochasticity and measurement error parameters can be estimated, multimodal likelihood functions occur and can lead to erroneous estimates. They showed that the likelihood functions tended to have multiple peaks, including two peaks associated with either no process stochasticity or no measurement error. While these two peaks can be local maxima, Dennis et al.16 noted that when there is substantial measurement error, one of these modes was often the global maximum. Knape19 extended the study of the Gompertz SSM to focus on the estimability of the density dependence parameter, an autocorrelation parameter similar to ρ. He found that the density dependence was generally not identifiable in the presence of unknown process variability and measurement error, especially when the strength of the density dependence was close to 0. When the measurement error was known, the strength of density dependence was estimable but the estimates often remained biased.
By extending the range of measurement error to process stochasticity ratios beyond those explored by Dennis et al.16 and Knape19, we demonstrate that relatively high measurement error can have dramatic effects on process parameter and state estimates, even when the measurement error is known. The results of Knape19 suggested that ρ values close to 0 would result in estimability problems (see also Forester et al.45), which is not surprising. As the process becomes less autocorrelated it is harder to differentiate it from the temporally independent measurement error, suggesting that differentiating between measurement error and process stochasticity would require a large sample size when ρ is far from 1. However, our results demonstrated that estimation problems remained with relatively high autocorrelation, ρ = (0.7, 0.99) and ρ fixed to 1 and relatively long time-series, n = (100, 500) (see Supplementary information: Appendices A-B). These results emphasize that the parameters and states are only estimable for a narrow range of conditions. Both the analysis of the ARMA formulation of our SSM and our ecological example show that parameter estimability within linear Gaussian SSMs is a general issue, not one restricted to the stochastic Gompertz population model. In fact, these problems extend to some nonlinear SSMs. For example, some of the estimated parameters of the nonlinear population SSMs of de Valpine and Hastings46 had considerable bias when measurement error was large relative to process variability, de Valpine and Hilborn47 showed that their advance Monte Carlo kernel likelihood method could not differentiate between the process stochasticity and measurement error of the nonlinear Schaefer population model and Polansky et al.20 found similar problems in the theta-Ricker model.
Left undiagnosed, biased parameter estimates will mislead conclusions based on the problematic model parameters and may affect our interpretation of the other model parameters, the state estimates and other derived values11,48. For example, stochastic population SSMs with negatively biased estimates of the process stochasticity will underestimate extinction risk49. In our polar bear example, erroneous estimates of measurement error and process stochasticity biased the state estimates and proxy for energy expenditure. Thus, even if the parameter values per se are not of interest, estimation problems need to be diagnosed because their effect on state estimates are likely to affect results of ecological importance.
The first step to avoid these biased inferences is to detect the potential for parameter estimability problems, which can be done through a variety of practical means. Our simulations demonstrated that estimates at the boundary of parameter space can be indicative of a problem. For our polar bear example, we detected the estimation problem because we had no reason to believe that the three bears with sea ice measurement error close to 0 used different sea ice than the other bears. These three bears were exposed to similar levels of sea ice drift as other bears and were not geographically or temporally isolated from them. Investigating the likelihood profile can also help detect estimation problems16,50,51. Indeed, the likelihood profiles of our problematic simulations had flat sections and multiple modes. However, in a Bayesian framework, the estimation problems can be obscured by the use of vague priors, as these can smooth the likelihood and affect inference16,48,49,52. When we used JAGS to estimates parameters, we had no estimates at the boundary and the posterior distributions of most parameters were unimodal and yet, the estimates were biased (Supplementary information: Appendix C). A useful way to evaluate the model’s capacity to separate process and measurement error parameters, is to assess the extent of correlation between these estimates (see Supplementary information: Appendix H for details). In the maximum likelihood context, a plot of the likelihood surface can reveal a correlation pattern symptomatic of an identifiability issue20,47. In a Bayesian context, a plot of the joint posterior samples of these two parameters can reveal similar correlation patterns (Supplementary information: Appendix H). While few methods have been developed to formally assess parameter identifiability problems, data cloning53,54 and the symbolic method4,55 are promising avenues.
How can we avoid these estimability problems? In many cases, a larger sample size can help (see Supplementary information: Appendix B). In particular, Dennis et al.50 demonstrated that sampling replicates can substantially improve the capacity of SSMs to differentiate process stochasticity from measurement error and that it may be advantageous to design monitoring programs with multiple replicate counts per survey rather than increasing the length of the time series (i.e., number of times the survey is conducted). However, for many observational studies, ecologists are limited in their ability to gather more data and, for movement data, it is often impossible to have replicates of location estimates. An alternative is to incorporate information on the measurement error. As we demonstrated in our simulation study, when we fix the measurement error to its true value, the estimates of the other parameters improved. While some parameter-estimation problems persisted, their effect on the state estimates diminished substantially. Similarly, de Valpine and Hilborn47 demonstrated that knowing the ratio of process to measurement variance would improve parameter estimates. In a Bayesian framework, specifying informative priors for the measurement error could help make the other parameters identifiable and improve the state estimates11,49 (but see Lele and Dennis52). Another alternative is to estimate the measurement error and process stochasticity outside of the SSM framework using the principle that the measurement error is uncorrelated over time whereas the process stochasticity is temporally correlated56. Estimating the measurement and process standard deviations offline reduces the number of parameters to estimate within the SSM framework. Using restricted maximum-likelihood, which treats fixed-effects parameters (e.g., ρ) and variance components (e.g., , ) differently, can also be valuable to remove bias in SSM estimates50. When the estimation problem results in variance estimate close to 0, one can limit the estimate to interior (non-zero) solutions16,19. In particular, Dennis et al.16 suggested trying a variety of starting values for the optimizer used to numerically maximize the likelihood and eliminating all solutions that involve variance with near 0 values, even if one of these is the global maximum. Finally, restructuring the model can help reduce the problem. For example, in the polar bear example, we could create a population model with a single measurement error parameter for all bears. Even if the process variability continues to differ between individuals, using one measurement error term for all bears significantly decreases the number of parameters to estimate and increases the amount of data with which the measurement error term is estimated. As a general rule decreasing the number of parameters to estimate and increasing the amount of data will help reduce estimability problems.
Not all parameters are equally affected by estimation problems. Forester et al.45, who developed a linear Gaussian SSM for animal movement, demonstrated that coefficient parameters associated with covariates and an intercept in the measurement equation are easier to separate than process autocorrelation (equivalent to ρ), measurement error and process stochasticity. Note, however, that all of these parameters had cases associated with estimation problems. For example, the coefficient estimates were biased when their true simulated value was not equal to zero. Humbert et al.57 suggested that in the case of exponential growth SSMs the population trend parameter, similar to an intercept in the process equation, was often well estimated and that increasing the precision of the abundance estimates and the length of the time series, more than the completeness of the time series, could increase the performance of the SSM. This further indicates that ecologists should closely consider model formulation and that the estimability of parameter should be assessed.
If we cannot resolve the parameter estimation problem, we need to account for its potential effect on our inference. One way to account for the estimation uncertainty is to use a parametric bootstrap to get CIs on the parameter and state estimates16,45. These bootstrap CIs require simulating the model using the estimated parameter values and re-fitting the model to each simulation. The 2.5th and 97.5th quantiles of the estimated parameters and states then becomes the 95% CI. These CIs differ from those we calculated from the standard deviation reported by TMB. However, because TMB is orders of magnitude faster than MCMC methods13, implementing these parametric bootstrap CIs would be computationally feasible, even for complex models. Note, however, that the variability in the estimates of our simulations suggests that these CIs would be large and would often approach the boundary of parameter space.
We demonstrated that even simple linear Gaussian SSMs can have parameter estimability problems and that these problems can affect our ecological interpretation. As parameter estimability problems have been observed in other hierarchical models and because the ratio of information content to model complexity is expected to decrease with increasing numbers of hierarchies48,52, it is likely that these problems could occur in more complex forms of SSMs. Estimating individual variance components is notoriously difficult. SSMs do not escape this difficulty. While estimability problems have been discussed in the context of a few specific population dynamics SSMs (e.g.16,19,20), the voluminous literature on SSMs has paid relatively little attention to these problems. Such limited appreciation of the estimation problem is particularly dangerous because SSMs are usually advertised as providing the means to differentiate process from measurement variability (e.g.2,46,58).
It is timely to warn ecologists of these difficulties. SSMs are becoming the favoured framework for animal movement and population dynamics. SSMs used in ecology are becoming increasingly complex (e.g.3). In addition, tools to apply SSMs to data are becoming increasingly available. For example, R now provides a variety of packages that fit SSMs59. Until recently, SSMs were applied by statisticians or by ecologists with a strong statistical background. These researchers were more likely to be aware of potential estimability problems than most ecologists. Researchers have questioned whether ecologists have sufficient statistical training to properly implement hierarchical models and have suggested that universities should start including advanced courses in statistical modelling in their ecological programs (e.g.16,60). If the limitation of SSMs are not emphasized, the better accessibility of tools to fit these increasingly complex models are likely to lead to many undiagnosed estimation problems and incorrect conclusions.
While SSMs are powerful tools, they can give misleading results if they are misused. We believe it is important for ecologists to be aware of the potential estimation problems of SSMs. Investigating the likelihood profile, incorporating information on measurement error and accounting for estimability uncertainty are all good first steps. However, we urge statisticians to develop further tools that can be used to diagnosed such problems and these should be readily available along with the tools to fit SSMs.
How to cite this article: Auger-Méthé, M. et al. State-space models' dirty little secrets: even simple linear Gaussian models can have estimation problems. Sci. Rep. 6, 26677; doi: 10.1038/srep26677 (2016).
Buckland, S. T., Newman, K. B., Thomas, L. & Koesters, N. B. State-space models for the dynamics of wild animal populations. Ecol. Model. 171, 157–175 (2004).
Patterson, T. A., Thomas, L., Wilcox, C., Ovaskainen, O. & Matthiopoulos, J. State-space models of individual animal movement. Trends Ecol. Evol. 23, 87–94 (2008).
McClintock, B. T. et al. A general discrete-time modeling framework for animal movement using multistate random walks. Ecol. Monogr. 82, 335–349 (2012).
Newman, K. B. et al. Modelling population dynamics: model formulation, fitting and assessment using state-space methods (Springer, New York, 2014).
Newman, K. B. State-space modeling of animal movement and mortality with application to salmon. Biometrics 54, 1290–1314 (1998).
Jonsen, I. D., Myers, R. A. & Mills Flemming, J. Meta-analysis of animal movement using state-space models. Ecology 84, 3055–3063 (2003).
Sibert, J. R., Musyl, M. K. & Brill, R. W. Horizontal movements of bigeye tuna (Thunnus obesus) near Hawaii determined by Kalman filter analysis of archival tagging data. Fish. Oceanogr. 12, 141–151 (2003).
Csilléry, K., Seignobosc, M., Lafond, V., Kunstler, G. & Courbaud, B. Estimating long-term tree mortality rate time series by combining data from periodic inventories and harvest reports in a Bayesian state-space model. Forest Ecol. Manag. 292, 64–74 (2013).
Fukasawa, K., Hashimoto, T., Tatara, M. & Abe, S. Reconstruction and prediction of invasive mongoose population dynamics from history of introduction and management: a Bayesian state-space modelling approach. J. Appl. Ecol. 50, 469–478 (2013).
Flesch, A. D. Spatiotemporal trends and drivers of population dynamics in a declining Sonoran Desert predator. Biol. Conserv. 175, 110–118 (2014).
Cressie, N., Calder, C. A., Clark, J. S., Ver Hoef, J. M. & Wikle, C. K. Accounting for uncertainty in ecological analysis: the strengths and limitations of hierarchical statistical modeling. Ecol. Appl. 19, 553–570 (2009).
Pedersen, M. W., Berg, C. W., Thygesen, U. H., Nielsen, A. & Madsen, H. Estimation methods for nonlinear state-space models in ecology. Ecol. Model. 222, 1394–1400 (2011).
Albertsen, C. M., Whoriskey, K., Yurkowski, D., Nielsen, A. & Mills Flemming, J. Fast fitting of non-Gaussian state-space models to animal movement data via Template Model Builder. Ecology 96, 2598–2604 (2015).
Kalman, R. E. A new approach to linear filtering and prediction problems. J. Basic Eng.-T. ASME 82, 35–45 (1960).
Johnson, D. S., London, J. M., Lea, M.-A. & Durban, J. W. Continuous-time correlated random walk model for animal telemetry data. Ecology 89, 1208–1215 (2008).
Dennis, B., Ponciano, J. M., Lele, S. R., Taper, M. L. & Staples, D. F. Estimating density dependence, process noise and observation error. Ecol. Monogr. 76, 323–341 (2006).
Simmons, R. E., Kolberg, H., Braby, R. & Erni, B. Declines in migrant shorebird populations from a winter-quarter perspective. Conserv. Biol. 29, 877–887 (2015).
Mills Flemming, J., Jonsen, I. D., Myers, R. A. & Field, C. A. Hierarchical state-space estimation of leatherback turtle navigation ability. PLoS ONE 5, e14245 (2010).
Knape, J. Estimability of density dependence in models of time series data. Ecology 89, 2994–3000 (2008).
Polansky, L., de Valpine, P., Lloyd-Smith, J. O. & Getz, W. M. Likelihood ridges and multimodality in population growth rate models. Ecology 90, 2313–2320 (2009).
Cao, P.-H. et al. Forecasting influenza epidemics from multi-stream surveillance data in a subtropical city of China. PLoS ONE 9, e92945 (2014).
Kristensen, K., Nielsen, A., Berg, C. W., Skaug, H. & Bell, B. M. TMB: automatic differentiation and Laplace approximation. J. Stat. Softw. 70, 1–21 (2016).
Durbin, J. & Koopman, S. J. Time series analysis by state space methods (Oxford University Press, Oxford, 2001).
R. Core Team (2015). R: A language and environment for statistical computing. R Foundation for Statistical Computing, Vienna, Austria. URL http://www.R-project.org/.
Fournier, D. A. et al. AD Model Builder: using automatic differentiation for statistical inference of highly parameterized complex nonlinear models. Optim. Method. Softw. 27, 233–249 (2012).
Bolker, B. M. Ecological models and data in R (Princeton University Press, Princeton, 2008).
Petris, G. An R package for dynamic linear models. J. Stat. Softw. 36, 1–16 (2010).
Plummer, M. rjags: Bayesian graphical models using MCMC. R package version 3–13. (2014). URL http://CRAN.R-project.org/package=rjags.
Plummer, M. JAGS: just another Gibbs samples. Version 3.4.0 (2013). URL http://mcmc-jags.sourceforge.net.
Jonsen, I. D., Mills Flemming, J. & Myers, R. A. Robust state-space modeling of animal movement data. Ecology 86, 2874–2880 (2005).
Weimerskirch, H., Guionnet, T., Martin, J., Shaffer, S. A. & Costa, D. P. Fast and fuel efficient? Optimal use of wind by flying albatrosses. Proc. R. Soc. B 267, 1869–1874 (2000).
Gaspar, P. et al. Marine animal behaviour: neglecting ocean currents can lead us up the wrong track. Proc. R. Soc. B 273, 2697–2702 (2006).
Molnár, P. K., Derocher, A. E., Thiemann, G. W. & Lewis, M. A. Predicting survival, reproduction and abundance of polar bears under climate change. Biol. Conserv. 143, 1612–1622 (2010).
Schwegmann, S., Haas, C., Fowler, C. & Gerdes, R. A comparison of satellite-derived sea-ice motion with drifting-buoy data in the Weddell Sea, Antarctica. Ann. Glaciol. 52, 103–110 (2011).
Fossette, S., Putman, N. F., Lohmann, K. J., Marsh, R. & Hays, G. C. A biologist’s guide to assessing ocean currents: a review. Mar. Ecol. Prog. Ser. 457, 285–301 (2012).
Mauritzen, M., Derocher, A. E., Pavlova, O. & Wiig, Ø. Female polar bears, Ursus maritimus, on the Barents Sea drift ice: walking the treadmill. Anim. Behav. 66, 107–113 (2003).
Auger-Méthé, M., Lewis, M. A. & Derocher, A. E. Home ranges in moving habitats: polar bears and sea ice. Ecography 39, 26–35 (2016).
Tomkiewicz, S. M., Fuller, M. R., Kie, J. G. & Bates, K. K. Global positioning system and associated technologies in animal behaviour and ecological research. Philos. Trans. R. Soc. B 365, 2163–2176 (2010).
Stirling, I., Spencer, C. & Andriashek, D. Immobilization of polar bears (Ursus maritimus) with Telazol® in the Canadian Arctic. J. Wildl. Dis. 25, 159–168 (1989).
Fowler, C. Polar Pathfinder Daily 25 km EASE-Grid Sea Ice Motion Vectors [January 2007-December 2012] - Boulder, CO: National Snow and Ice Data Center. Distributed in netCDF format by the Integrated Climate Data Center, University of Hambrug, Germany (2003). URL http://icdc.zmaw.de.
Brodzik, M. J. & Knowles, K. W. EASE-Grid: A versatile set of equal-area projections and grids. In Goodchild, M. (ed.) Discrete Global Grids (National Center for Geographic Information and Analysis, 2002).
Wilson, H. B., Kendall, B. E., Fuller, R. A., Milton, D. A. & Possingham, H. P. Analyzing variability and the rate of decline of migratory shorebirds in Moreton Bay, Australia. Conserv. Biol. 25, 758–766 (2011).
Sibert, J. R., Lutcavage, M. E., Nielsen, A., Brill, R. W. & Wilson, S. G. Interannual variation in large-scale movement of Atlantic bluefin tuna (Thunnus thynnus) determined from pop-up satellite archival tags. Can. J. Fish. Aquat. Sci. 63, 2154–2166 (2006).
Tittensor, D. P. et al. A mid-term analysis of progress toward international biodiversity targets. Science 346, 241–244 (2014).
Forester, J. D. et al. State-space models link elk movement patterns to landscape characteristics in Yellowstone National Park. Ecol. Monogr. 77, 285–299 (2007).
de Valpine, P. & Hastings, A. Fitting population models incorporating process noise and observation error. Ecol. Monogr. 72, 57–76 (2002).
de Valpine, P. & Hilborn, R. State-space likelihoods for nonlinear fisheries time-series. Can. J. Fish. Aquat. Sci. 62, 1937–1952 (2005).
Lele, S. R. Model complexity and information in the data: could it be a house built on sand? Ecology 91, 3493–3496 (2010).
Lindley, S. T. Estimation of population growth and extinction parameters from noisy data. Ecol. Appl. 13, 806–813 (2003).
Dennis, B., Ponciano, J. M. & Taper, M. L. Replicated sampling increases efficiency in monitoring biological populations. Ecology 91, 610–620 (2010).
Ives, A. R., Abbott, K. C. & Ziebarth, N. L. Analysis of ecological time series with ARMA(p,q) models. Ecology 91, 858–871 (2010).
Lele, S. R. & Dennis, B. Bayesian methods for hierarchical models: Are ecologists making a Faustian bargain? Ecol. Appl. 19, 581–584 (2009).
Lele, S. R., Nadeem, K. & Schmuland, B. Estimability and likelihood inference for generalized linear mixed models using data cloning. J. Am. Stat. Assoc. 105, 1617–1625 (2010).
Campbell, D. & Lele, S. An ANOVA test for parameter estimability using data cloning with application to statistical inference for dynamic systems. Comput. Stat. Data Anal. 70, 257–267 (2014).
Cole, D. J. Determining parameter redundancy of multi-state mark-recapture models for sea birds. J. Ornithol. 152, S305–S315 (2012).
Dowd, M. & Joy, R. Estimating behavioral parameters in animal movement models using a state-augmented particle filter. Ecology 92, 568–575 (2011).
Humbert, J.-Y., Mills, L. S., Horne, J. S. & Dennis, B. A better way to estimate population trends. Oikos 118, 1940–1946 (2009).
Ahrestani, F. S., Hebblewhite, M. & Post, E. The importance of observation versus process error in analyses of global ungulate populations. Sci. Rep. 3, 3125 (2013).
Petris, G. & Petrone, S. State space models in R. J. Stat. Softw. 41, 1–25 (2011).
Cam, E. ‘Each site has its own survival probability, but information is borrowed across sites to tell us about survival in each site’: random effects models as means of borrowing strength in survival studies of wild vertebrates. Anim. Conserv. 15, 129–132 (2012).
We thank William Aeberhard, Devin Lyons and Stephanie Peacock for their inputs. This study was supported by grants to the Ocean Tracking Network from the Natural Sciences and Engineering Research Council of Canada (Research Network Grant NETGP 375118-08) and the Canada Foundation for Innovation, as well as by the Aquarium du Québec, ArcticNet, US Department of Interior Bureau of Ocean Energy Management, Canadian Association of Zoos and Aquariums, Canadian Wildlife Federation, Circumpolar/Boreal Alberta Research, Environment Canada, Hauser Bears, Natural Sciences and Engineering Research Council of Canada, Northern Scientific Training Program, Polar Continental Shelf Program, Polar Bears International, Quark Expeditions and World Wildlife Fund (Canada & International). I.D.J. acknowledges a Macquarie Vice-Chancellor’s Innovation Fellowship and M.A.L. acknowledges the Canada Research Chairs program.
The authors declare no competing financial interests.
About this article
Cite this article
Auger-Méthé, M., Field, C., Albertsen, C. et al. State-space models’ dirty little secrets: even simple linear Gaussian models can have estimation problems. Sci Rep 6, 26677 (2016). https://doi.org/10.1038/srep26677
This article is cited by
Environmental and Ecological Statistics (2023)
Statistics and Computing (2023)
Journal of Agricultural, Biological and Environmental Statistics (2023)
Journal of Statistical Theory and Practice (2023)
Animal Biotelemetry (2020)