- Software article
- Open access
- Published:
SiMRiv: an R package for mechanistic simulation of individual, spatially-explicit multistate movements in rivers, heterogeneous and homogeneous spaces incorporating landscape bias
Movement Ecology volume 7, Article number: 11 (2019)
Abstract
Background
Lack of suitable analytical software and computational power constrains the comprehension of animal movement. In particular, we are aware of no tools allowing simulating spatially-explicit multistate Markovian movements constrained to linear features or conditioned by landscape heterogeneity, which hinders movement ecology research in linear/dendritic (e.g. river networks) and heterogeneous landscapes.
SiMRiv is a novel, fast and intuitive R package we designed to fill such gap. It does so by allowing continuous-space mechanistic spatially-explicit simulation of multistate Markovian individual movements incorporating landscape bias on local behavior.
Results
We present SiMRiv and its main functionalities, illustrate its simulation capabilities and easy-of-use, and discuss its limitations and potential improvements. We further provide examples of use and a preliminary evaluation, using real and simulated data, of a parameter approximation experimental method. SiMRiv allowed us to generate increasingly complex movements of three theoretical species (aquatic, semiaquatic and terrestrial), showing the effects of input parameters and water-dependence on emerging movement patterns, and to parameterize a high-frequency simulation model from real, low-frequency movement (telemetry) data. Typical running times for conducting 1000 simulations with 10,000 steps each, of two-state movement trajectories in a river network, were of ca. 3 min in an Intel Core i7 CPU X990 @ 3.47 GHz.
Conclusions
SiMRiv allows simulation of movements constrained to linear habitats or conditioned by landscape heterogeneity, therefore enhancing the application of movement ecology to linear/dendritic and heterogeneous landscapes. Importantly, the software is flexible enough to be used in linear, heterogeneous, as well as homogeneous landscapes. Using the same software, algorithm and approach, one can therefore use SiMRiv to study the movement of different organisms in a variety of landscapes, facilitating comparative research.
SiMRiv balances ease and speed with high realism of the movement models obtainable, constituting a fast, powerful, yet intuitive tool, which should contribute exploring several movement-related questions. Its applications depart from the generation of mechanistic null movement models, up to population level (e.g. landscape connectivity) analyses, holding potential for all fields requiring the simulation of random trajectories.
Background
Scientists in a variety of fields often rely on simulations of random trajectories to make inference on the movement of organisms or cells e.g. [1,2,3,4,5,6,7]. In the burgeoning field of Movement Ecology, for instance, the generation of random trajectories is often the base for developing home range/movement models e.g. [3, 5], and assessing connectivity [7,8,9], site fidelity [6] and habitat selection [10]. Despite the availability of various ecological software simulating movements [11,12,13,14,15,16], we are aware of no available tools allowing spatially-explicit simulation of Markovian multistate correlated random walk movements constrained to linear features (e.g. rivers and other dendritic ecological networks – DENs [17] – as well as roads) or incorporating landscape bias. Thus, movements simulated using available software are not properly comparable with real movements of organisms moving in linear or heterogeneous landscapes, and therefore not suitable to be used as null models, hindering the testing of hypotheses on the mechanisms underlying movement behavior in non-homogeneous landscapes.
The highlighted lack of software might help explaining why individual-based movement models commonly used in ecological research so far have rarely been applied to freshwater DENs, compared to the number of studies focused on marine and 2-dimensional landscapes e.g. [18,19,20,21], possibly due to the analytical challenges imposed by DENs’ spatial configuration cf. [22,23,24], and focused more on homogeneous, featureless [25, 26] or largely homogeneous [8] landscapes. Similarly, while robust testing of site fidelity has been performed for organisms living in homogeneous, terrestrial landscapes e.g. [6, 27], similar studies in freshwaters have been simpler in their nature e.g. [28]. Thus, the deep comprehension of animal movement in linear (e.g. river networks) and secondarily heterogeneous landscapes remains limited.
SiMRiv is a novel free, open-source and user-friendly software (R package) for continuous-space mechanistic simulation of spatially-explicit, multistate (Markovian) individual movements incorporating landscape influence on local behavior, which we conceived to fill the highlighted software gap. SiMRiv so far allows simulating simple or composite random walk (RW) and correlated random walk (CRW) movements [29, 30] locally biased by landscape heterogeneity or constrained to specific landscape features (e.g. rivers). Hence, it allows simulation of movements of any organism in any landscape, including river networks. SiMRiv’s approach focuses on parameters with which researchers are already familiar, like landscape resistance layers, step length and turning angle (i.e. the distance and the angle between two successive locations, respectively). The influence of landscape resistance on animal movement and connectivity is a well-known and consolidated field of research e.g. [31, 32], as is the use of the step length and the turning angle in Movement Ecology e.g. [10, 29, 33, 34].
SiMRiv may be used as a process-based, mechanistic [3, 35, 36] movement simulation tool enabling simulation-based null model [37] hypothesis testing, as well as for population level analyses e.g. [38]. Here, we summarize the main novelties and functionalities of SiMRiv, illustrate software capability to simulate complex animal movements in linear, homogeneous and heterogeneous landscapes, show the effects of varying input parameters and animal behaviors on emerging movement patterns, and provide examples of use of the software. In addition, we provide a preliminary evaluation, using both real and simulated data, of an experimental method for parameterizing the simulation model from real (observed) data.
Implementation
SiMRiv’s algorithm description
One of SiMRiv’s primary features, and the main reason for which it was originally designed, is the ability to simulate movements in linear/dendritic (e.g. river networks) or heterogeneous landscapes - i.e. landscapes where the organism has varying degrees of permeability/affinity to distinct landscape features. Such spatially explicit permeability/affinity is emulated by the concept of “landscape resistance”, reflecting the willingness of an organism to cross a specific environment and the physiological cost of moving through it [32]. The pixel values of the user-provided resistance raster dictate how much the animal is attracted to or repelled by that pixel, and how difficult it is to move within it. At the most extreme case, the resistance raster may consist of only 0 s (no resistance) and 1 s (infinite resistance), which is adequate, for example, to simulate a fish in a river. At the other extreme, simulations may be conducted without any raster, i.e. in a homogeneous space, as in previously available software. All intermediate situations are nevertheless possible.
The current version of the algorithm rests on two basic important assumptions: a) the environment around the organism’s location influences the organism’s decision on the heading to take in the next step; and b) the environment crossed within each step influences the organism’s speed. Landscape’s physical resistance and habitat suitability are thus presently combined [31] [Additional file 1 exemplifies possible future improvements]. The simulation algorithm proceeds as follows:
-
1.
Draw new state according to current state and the state transition matrix (e.g. [39], Table 1 - in the current version the state switching probabilities are fixed, but could be made habitat-dependent or time-dependent in a future version; for further details on potential future improvements see Additional file 1);
-
2.
Sample resistance raster values (which are in the range [0, 1]) in samples regularly spaced along radial lines centered in the current location spanning up to the perceptual range (i.e. the radius up to which the animal perceives its surroundings [40] (see Additional file 2)) size range (Fig. 1);
-
3.
Sum conductance values (1-resistance) of all samples in each radial line, and build an empirical distribution as a function of the angle of the respective radial line (Fig. 1);
-
4.
Build a discrete circular wrapped normal distribution according to current state’s concentration parameter (in the range [0, 1]) and centered in the previous step heading (Fig. 1);
-
5.
Multiply both distributions to yield a combined distribution (Fig. 1);
-
6.
Draw a random angle using the combined distribution as the probability density;
-
7.
Compute the actual length of the step that will be taken, as a fraction of current state’s user-defined step length. This fraction is computed by averaging the conductance of the starting and ending points in the chosen direction such that if mean resistance is 0, the actual length equals the user-defined step length, if 1, the actual length is zero;
-
8.
Move to new location defined by the drawn angle and the actual length of step.
To allow trajectories of simulated animals to properly respond to the environment, including to be constrained to linear landscapes or influenced by landscape heterogeneity, SiMRiv was designed so that movements have to be simulated with a very high temporal (and therefore spatial) resolution - possibly higher than that of many real field datasets. In this way, the behavior of the simulated animal (i.e. its realized turning angles and step lengths) is adjusted based on its context at every location in a quasi-continuous manner (Fig. 1), i.e. it makes context-based local decisions of which direction to follow at each step. SiMRiv simulations may therefore be described as multistate, locally-biased (correlated) random walks.
For the simulation algorithm to work properly, the simulated steps should be small in relation to landscape features, as the more frequently the behavior is updated, the better the landscape bias is incorporated in the movements. In particular, care has to be taken to ensure that the simulation realized step lengths are shorter than the smallest/thinnest landscape features, as this would result in the animal “skipping” portions of the landscape. To better control this, we simplified the step length input parameter to a fixed number (for each movement state) e.g. [41], with which the user defines the maximum allowable step length, instead of regarding it as a distribution from which random values are drawn in each step e.g. [39]. As a rule of thumb, we recommend the maximum step length to be set at most half the size of the smallest/thinnest landscape features. The realized step length distribution is therefore truncated in its upper limit, but this effect is minimized after downsampling simulations to a coarser frequency, similar to that of most real data see [42]. The effects of this simplification are outweighed by the flexibility of combining multiple basic movement types (Random Walk, Correlated Random Walk or Resting), thus generating compound movement types of any complexity (see below and Fig. 1 and Additional file 3: Figure C.2).
The locally-biased and high-frequency approach here presented should confer realism and high flexibility to the behavior of simulated organisms. Besides, it avoids unrealistic assumptions, such as animal omniscience and planned final destination, generally found in the least cost path (LCP) modelling approach (see also [8, 22]). These and other benefits are further illustrated in the Additional files 3 and 4, and [38]. Table 1 and Additional file 4 synthetize SiMRiv’s main functions and differences with other similar packages, respectively. Additional file 5 provides a detailed description of SiMRiv basic simulation workflow.
Parameterizing the simulation
To simulate, users might set the input movement parameters according to available literature or expert-based criteria, or estimate them from real (telemetry) data. As SiMRiv simulates at a higher time frequency than most of real data, the statistical methods conventionally used for estimating input parameters, either bayesian e.g. [20, 39, 43] or maximum-likelihood-based e.g. [16, 44], are rather challenging to apply [45]. We are currently working on the development of a maximum-likelihood estimation method for parameterizing the simulations from real data. For now, we include a provisional function (adjustModel, Table 1) to approximate input parameters from real data through a pattern-oriented approach (see below). This function is built upon a consolidated heuristic numerical optimization algorithm, the genetic algorithm NSGA-II [46], which we programmed to solve the particular problem of finding simulation input parameters for simulations conducted at a possibly much higher frequency than the provided real trajectory. This function allows SiMRiv users to parameterize the high-frequency simulation model from real, low-frequency movement (telemetry) data, following a Pattern-Oriented modelling (POM) approach [47], aimed at maximizing the closeness of models to real data [36] – i.e., here, to uncover what kind of real complex high-frequency movement could have produced the observed low-frequency sample. As of current version, the function uses by default the differences in turning angle and step length distributions as metrics to quantify how similar are the simulated and observed tracks, such that during parameterization, the algorithm minimizes these metrics. However, there is room for improvement in this respect, as these two metrics lose many details that are important to characterize a trajectory. In Additional file 3 we provide a detailed explanation of this method, including a preliminary evaluation of its performance, using examples with both simulated (known) and real data, and discuss advantages and limitations of it, and how we plan to improve it.
Results
Examples of simulations
Originally conceived to allow simulating in river and other DENs, SiMRiv’s simulation algorithm was designed to be highly flexible, being applicable to any organism (aquatic, semiaquatic or terrestrial), regardless of its space use patterns (linear, omnidirectional or their combination). Here, we demonstrate SiMRiv’s capabilities to simulate increasingly complex movements and varying input parameters. First, we show two types of movement, both simulated in a homogeneous and a linear (e.g. river) space (Fig. 2), illustrating SiMRiv’s ability to provide biologically-plausible null movement models for species occurring in homogeneous habitats and in river networks. Second, we show the effects of varying landscape resistance values on resulting simulated movements (Fig. 3). For this, we simulated two-state movements of three theoretical species along a gradient of water-dependence (terrestrial, semiaquatic and aquatic). The three species were defined by the same set of input parameters, except the resistance values assigned to the different habitat features of the landscape in which they move. SiMRiv was able to generate movements akin of the classical Lévy walk e.g. [48, 49] of a species moving nearly homogeneously in a bi-dimensional space (Fig. 3a), as well as movements with the same Lévy walk properties but strongly influenced by landscape resistance, in this case partially (Fig. 3b) and totally (Fig. 3c) constrained to river networks. Third, we show the effects of different perceptual range values. For this, we simulated movements of a theoretical semiaquatic species with 500, 2000, and 5000 m of perceptual range. Increasing perceptual range resulted in a decrease of species confinement to the water network and an increase in out-of-network movements, mostly to shortcut river meanders or to cross from one habitat patch to another (Additional file 2). Also, simulated animals with larger perceptual ranges were more attracted towards larger habitat patches and spent more time there (Additional file 2.A, Additional file 2.B). Conversely, there was an increasing tendency for small scale features to attract/repel the animal in detriment of large features, as perceptual range decreased (Additional file 2.C). Thus, under our model, although not explicitly included in simulations, patch size has an influence on both animal affinity/repulsion towards a patch, as well as the time the animal spends in it [50]. Such influence of perceptual range on species movements may have important implications in the estimation of habitat connectivity cf. [8]. However, and although further testing is needed, based on our preliminary trials it seems that the perceptual range only affects the generated movements when varied of several orders of magnitude, as varying it of only from e.g. 100 to 200 m yields very similar results (not shown). Additional file 3 provides further examples of movements generated by SiMRiv.
Examples of SiMRiv’s possible uses
One of main SiMRiv’s potential uses is the generation of increasingly complex movements incorporating landscape effects, which could then be used as null models to test explicit Movement Ecology hypotheses [33] under a process-based, mechanistic null model framework. For instance, to assess the potential effects of landscape features (e.g. resources, roads, dams) (or their implementation/removal) on animal movement e.g. [51], researchers could use SiMRiv to simulate movements with and without the putative influence of the landscape feature/s of interest, by defining different values of affinity/repulsion (or indifference) for the landscape feature/s, and then compare the simulated movements with the observed movements. Such comparisons could be achieved using any metric quantifying the differences between the distributions of movement parameters (e.g. the Wasserstein distance between the simulated and observed step length and turning angle distributions) or directly comparing the spatial overlap of real and simulated trajectories (e.g. through kernel density estimates). Similarly, researchers could use SiMRiv to generate movements to be used as null models to test site fidelity. Finally, despite the individual-based origin, SiMRiv can also be used for analyses at population level, e.g. to assess connectivity - in [38] we provide an illustrative example using SiMRiv to predict road kill risk, discussing SiMRiv’s potentialities for connectivity research] - and, after future improvements (see Additional file 1), test for interactions. Additional file 6 provides further examples of potential uses of the software.
Conclusions
SiMRiv fills the highlighted software gap by allowing simulation of movements in linear and heterogeneous landscapes. Importantly, SiMRiv simulates movements by accounting for local conditions - i.e. the behavior of the moving object is re-evaluated at each step, accounting for landscape effects within the perceptual range - rather than global ‘optima’ used in other approaches, such as least cost-path based analyses see [38]. The software is flexible enough to be used in linear, heterogeneous, as well as homogeneous landscapes. SiMRiv should thus significantly contribute to the study of animal movement, allowing its users to study the movement of different organisms in a variety of landscapes using the same software, algorithm and approach. Finally, SiMRiv’s simulation times are rather fast and the simulation workflow simple to understand and intuitive to use, facilitating its use among biologists. SiMRiv thus constitutes an important tool complementing existing approaches and providing a different way of addressing movement ecology and landscape ecology questions (see Additional file 4: Figure A9).
Availability and requirements
The package is freely available under Open Source GNU GPL 3 license on CRAN, and its development version and code on Github. To install SiMRiv, select the repositories CRAN and then type: install.packages (“SiMRiv”). We welcome feedbacks, bug reports, and collaborations. Further information on SiMRiv’s functions and potential use are reported in the package’s manual and vignette.
Project name: SiMRiv.
Project home page: https://github.com/miguel-porto/SiMRiv
Operating system(s): Platform independent.
Programming language: R; C.
Other requirements: R 1.8.0 or higher; raster (R package).
License: e.g. GNU GPL v3.0.
Any restrictions to use by non-academics: none.
Abbreviations
- CRW:
-
Correlated Random Walk
- DENs:
-
Dendritic Ecological Networks
- POM:
-
Pattern-Oriented Modeling
- RW:
-
Random Walk
- SiMRiv:
-
Simulating Movements in Rivers and heterogeneous landscapes
- SSFs:
-
Step Selection Functions
References
Dickinson RB, Tranquillo RT. Optimal estimation of cell movement indices from the statistical analysis of cell tracking data. AICHE J. 1993;39:1995–2010.
Anderson AR, Chaplain MAJ. Continuous and discrete mathematical models of tumor-induced angiogenesis. Bull Math Biol. 1998;60:857–99.
Moorcroft PR, Lewis MA. Mechanistic home range analysis. Princeton University Press;2006.
Hoban S, Bertorelle G, Gaggiotti OE. Computer simulations: tools for population and evolutionary genetics. Nat Rev Genet. 2012;13:110–22.
Sims DW, Reynolds AM, Humphries NE, Southall EJ, Wearmouth VJ, Metcalfe B, Twitchett RJ. Hierarchical random walks in trace fossils and the origin of optimal search behavior. Proc Natl Acad Sci. 2014;111:11073–8.
Richardson TO, Giuggioli L, Franks NR, Sendova-Franks AB. Measuring site fidelity and spatial segregation within animal societies. Methods Ecol Evol. 2017;8:965–75.
Buderman FE, Hooten MB, Ivan JS, Shenk TM. Large-scale movement behavior in a reintroduced predator population. Ecography. 2018;41:126–39.
Palmer SC, Coulon A, Travis JMJ. Introducing a ‘stochastic movement simulator’ for estimating habitat connectivity. Methods Ecol Evol. 2011;2:258–68.
Allen CH, Parrott L, Kyle C. An individual-based modelling approach to estimate landscape connectivity for bighorn sheep (Ovis canadensis) PeerJ. 2016;4:e2001. https://doi.org/10.7717/peerj.2001.
Fortin D, Beyer HL, Boyce MS, Smith DW, Duchesne T, Mao JS. Wolves influence elk movements: behavior shapes a trophic cascade in Yellowstone National Park. Ecology. 2005;86:1320–30.
Hooge PN, Eichenlaub B. Animal movement extension to Arcview. ver. 2.0. Alaska Science Center - Biological Science Office, U.S. Geological Survey, Anchorage, AK, USA. 2000.
Calenge C, Dray S, Royer-Carenzi M. The concept of animals' trajectories from a data analysis perspective. Ecological informatics. 2009;4:34–41.
Beyer HL. Geospatial modeling environment (version 0.7. 2.1). 2012. URL:< http://www.spatialecology.com/gme.
Humphries NE, Weimerskirch H, Sims DW. A new approach for objective identification of turns and steps in organism movement data relevant to random walk modelling. Methods Ecol Evol. 2013;4:930–8.
Johnson D, London JM, Lea M-A, Durban JW. Continuous-time correlated random walk model for animal telemetry data. Ecology. 2008;89:1208–15.
Michelot T, Langrock R, Patterson TA. moveHMM: an R package for the statistical modelling of animal movement data using hidden Markov models. Methods Ecol Evol. 2016;7:1308–15.
Campbell Grant EH, Lowe WH, Fagan WF. Living in the branches: population dynamics and ecological processes in dendritic networks. Ecol Lett. 2007;10:165–75.
Sims DW, Southall EJ, Humphries NE, Hays GC, Bradshaw CJA, Pitchford JW, James A, Ahmed MZ, Brierley AS, Hindell MA, Morritt D, Musyl MK, Righton D, Shepard ELC, Wearmouth VJ, Wilson RP, Witt MJ, Metcalfe JD. Scaling laws of marine predator search behavior. Nature. 2008;451:1098102.
Humphries NE, Queiroz N, Dyer JRM, Pade NG, Musyl MK, Schaefer KM, Fuller DW, Brunnschweiler JM, Doyle TK, Houghton JDR, Hays GC, Jones CS, Noble LR, Wearmouth VJ, Southall EJ, Sims DW. Environmental context explains Lévy and Brownian movement patterns of marine predators. Nature. 2010;465:1066–9.
McClintock BT, King R, Thomas L, Matthiopoulos J, Mcconnell BJ, Morales JM. A general discrete-time modeling framework for animal movement using multistate random walks. Ecol Monogr. 2012;82:335–49.
Hussey NE, Kessel ST, Aarestrup K, Cooke SJ, Cowley PD, Fisk AT, Harcourt RG, Holland KN, Iverson SJ, Kocik JF, Mills Flemming JE, Whoriskey FG. Aquatic animal telemetry: a panoramic window into the underwater world. Science. 2015;348:1255642.
Sutherland C, Fuller AK, Royle JA. Modelling non-Euclidean movement and landscape connectivity in highly structured ecological networks. Methods Ecol Evol. 2015;6:169–77.
Quaglietta L, Hájková P, Mira A, Boitani L. Eurasian otter (Lutra lutra) density estimate based on radio tracking and other data sources. Mammal Research. 2015;60:127–37.
Filipe AF, Quaglietta L, Ferreira M, Magalhães MF, Beja P. Geostatistical distribution modelling of two invasive crayfish across dendritic stream networks. Biol Invasions. 2017;19:2899–912.
Tracey JA, Zhu J, Crooks K. A set of nonlinear regression models for animal movement in response to a single landscape feature. J Agric Biol Environ Stat. 2005;10:1–18.
Tracey JA, Zhu J, Crooks K. Modeling and inference of animal movement using artificial neural networks. Environ Ecol Stat. 2011;18:393–410.
Giuggioli L, Potts JR, Harris S. Animal interactions and the emergence of territoriality. PLoS Comput Biol. 2011;7:e1002008.
Crook DA. Is the home range concept compatible with the movements of two species of lowland river fish? J Anim Ecol. 2004;73:353–66.
Turchin P. Quantitative Analysis of Movement: measuring and modeling population redistribution in plants and animals. Sinauer Associates;1998.
Reynolds AM. Mussels realize Weierstrassian Lévy walks as composite correlated random walks. Sci Rep. 2014;4:4409.
Cushman SA, Lewis JS. Movement behavior explains genetic differentiation in American black bears. Landsc Ecol. 2010;25:1613–25.
Zeller KA, McGarigal K, Whiteley AR. Estimating landscape resistance to movement: a review. Landsc Ecol. 2012;27:777–97.
Nathan R, Getz WM, Revilla E, Holyoak M, Kadmon R, Saltz D, Smouse PE. A movement ecology paradigm for unifying organismal movement research. Proc Natl Acad Sci. 2008;105:19052–9.
Beyer HL, Gurarie E, Börger L, Panzacchi M, Basille M, Herfindal I, Van Moorter B, Lele S, Matthiopoulos J. ‘You shall not pass!’: Quantifying barrier permeability and proximity avoidance by animals. J Anim Ecol. 2016;85:43–53.
Dormann CF, Schymanski SJ, Cabral J, Chuine I, Graham C, Hartig F, Kearney M, Morin X, Römermann C, Schröder B, Singer A. Correlation and process in species distribution models: bridging a dichotomy. J Biogeogr. 2012;39:2119–31.
Potts JR, Lewis MA. How do animal territories form and change? Lessons from 20 years of mechanistic modelling. Proc R Soc Lond B Biol Sci. 2014;281:20140231.
Gotelli NJ. Graves GR. Null models in ecology: Smithsonian Institution Press; 1996.
Quaglietta L, Porto M, Ford AT. Simulated animal movements to predict wildlife-vehicle collisions: application of the novel R package SiMRiv. European journal of wildlife research. Second Review.
Morales JM, Haydon DT, Frair J, Holsinger KE, Fryxell JM. Extracting more out of relocation data: building movement models as mixtures of random walks. Ecology. 2004;85:2436–45.
Lima SL, Zollner PA. Towards a behavioral ecology of ecological landscapes. Trends Ecol Evol. 1996;11:131–5.
Barraquand F, Benhamou S. Animal movements in heterogeneous landscapes: identifying profitable places and homogeneous movement bouts. Ecology. 2008;89:3336–48.
Calabrese JM, Fleming CH, Gurarie E. Ctmm: an r package for analyzing animal relocation data as a continuous-time stochastic process. Methods Ecol Evol. 2016;7:1124–32.
Blackwell PG, Niu M, Lambert MS, LaPoint SD. Exact Bayesian inference for animal movement in continuous time. Methods Ecol Evol. 2016;7:184–95.
Patterson TA, Basson M, Bravington MV, Gunn JS. Classifying movement behavior in relation to environmental conditions using hidden Markov models. J Anim Ecol. 2009;78:1113–23.
Hartig F, Calabrese JM, Reineking B, Wiegand T, Huth A. Statistical inference for stochastic simulation models–theory and application. Ecol Lett. 2011;14:816–27.
Deb K, Pratap A, Agarwal S, Meyarivan T. A fast and elitist multiobjective genetic algorithm: NSGA-II. IEEE Trans Evol Comput. 2002;6:182–97.
Grimm V, Revilla E, Berger U, Jeltsch F, Mooij WM, Railsback SF, Thulke H-H, Weiner J, Wiegand T, DeAngelis DL. Pattern-oriented modeling of agent-based complex systems: lessons from ecology. Science. 2005;310:987–91.
Humphries NE, Sims DW. Optimal foraging strategies: Lévy walks balance searching and patch exploitation under a very broad range of conditions. J Theor Biol. 2014;358:179–93.
Benhamou S. How many animals really do the levy walk? Ecology. 2007;88:1962–9.
Ovaskainen O. Habitat-specific movement parameters estimated using mark–recapture data and a diffusion model. Ecology. 2004;85:242–57.
Tucker MA, Böhning-Gaese K, Fagan WF, Fryxell JM, Van Moorter B, Alberts SC, Ali AH, Allen AM, Attias N, Avgar T, Bartlam-brooks H, Bayarbaatar B, Belant JL, Bertassoni a, Beyer D, Bidner L, van Beest FM, Blake S, Blaum N, Bracis C, Brown D, de Bruyn PJN, Cagnacci F, Calabrese JM, Camilo-Alves C, Chamaillé-Jammes S, Chiaradia a, Davidson SC, Dennis T, DeStefano S, Diefenbach, et al. moving in the Anthropocene: global reductions in terrestrial mammalian movements. Science 2018;359:466–469.
Acknowledgements
We thank Erida Gjini, Théo Michelot and Henrique Pereira for fruitful discussions on the methodology, Daria Siciliano for the English review, and three reviewers for their useful comments.
Funding
The authors had no specific funding for the research reported.
Availability of data and materials
The R scripts to generate the simulated data, run the analyses and produce the plots are available in the Additional files 7-8, as well as in the Github repository. Additional references cited in the Additional files are reported in the Additional file 9.
Author information
Authors and Affiliations
Contributions
LQ conceived the idea and led manuscript writing; MP code programmed and analysed the data; both authors designed the methodology, read and approved the final manuscript.
Corresponding author
Ethics declarations
Authors’ information
LQ is an animal ecologist with expertise in stream and mammal ecology, and a strong interest in movement ecology and methods in ecology. MP is an ecologist, more specifically a botanist interested in community ecology, and a programmer. After noting the lack of software allowing to simulate trajectories in linear habitats (e.g. rivers), which is a pre-requisite to study the movement ecology of organisms, such as semiaquatic mammals, mostly moving within river networks, LQ sought to develop a (free) software to fill this gap. The meeting with MP provided the perfect opportunity. LQ and MP now hope that their software will contribute to the development of the movement ecology research, particularly in linear and heterogeneous landscapes, and seek feedbacks and collaborations to enhance software potentialities.
Ethics approval and consent to participate
Not applicable.
Consent for publication
Not applicable.
Competing interests
The authors declare that they have no competing interests.
Publisher’s Note
Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.
Additional files
Additional file 1:
Future software improvements. (PDF 110 kb)
Additional file 2:
Effects of perceptual range on simulations. Simulated movements of a semiaquatic theoretical species (e.g. otter, moving mostly along water bodies and overland at times) with a two state movement (Random Walk and Correlated Random Walk) and varying perceptual ranges. Landscape is shaded from white (no resistance) to dark grey (very high resistance), with red corresponding to maximum resistance (i.e. where the animal cannot go). Zooms on interesting resulting movement patterns are detailed on the right column. Input parameters were: step length = 10, CRW turning angle concentration = 0.95, state switching probabilities = 0.01 (RW - > CRW) and 0.002 (CRW - > RW), perception window = 5000, 2000 and 500 m (both states). (TIF 4062 kb)
Additional file 3:
Performance assessment of SiMRiv’s optimization approach. (PDF 935 kb)
Additional file 4:
Comparison with other packages. (PDF 282 kb)
Additional file 5:
Basic simulation workflow. (PDF 155 kb)
Additional file 6:
Overview of potential uses of the software. (PDF 118 kb)
Additional file 8:
R code for conducting the analyses of Additional file 3. The R objects required for running these analyses are provided as a separate file: Additional file 8_otter-realdata.Rdata. (Rdata + R 11 kb). (ZIP 10 kb)
Additional file 9:
Supplementary references. (PDF 85 kb)
Rights and permissions
Open Access This article is distributed under the terms of the Creative Commons Attribution 4.0 International License (http://creativecommons.org/licenses/by/4.0/), which permits unrestricted use, distribution, and reproduction in any medium, provided you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons license, and indicate if changes were made. The Creative Commons Public Domain Dedication waiver (http://creativecommons.org/publicdomain/zero/1.0/) applies to the data made available in this article, unless otherwise stated.
About this article
Cite this article
Quaglietta, L., Porto, M. SiMRiv: an R package for mechanistic simulation of individual, spatially-explicit multistate movements in rivers, heterogeneous and homogeneous spaces incorporating landscape bias. Mov Ecol 7, 11 (2019). https://doi.org/10.1186/s40462-019-0154-8
Received:
Accepted:
Published:
DOI: https://doi.org/10.1186/s40462-019-0154-8