Modelling animal movement in complex environments Jonathan Potts, University of Leicester, 24 th...

48
Modelling animal movement in complex environments Jonathan Potts, University of Leicester, 24 th September 2014.

Transcript of Modelling animal movement in complex environments Jonathan Potts, University of Leicester, 24 th...

Page 1: Modelling animal movement in complex environments Jonathan Potts, University of Leicester, 24 th September 2014.

Modelling animal movement in complex environments

Jonathan Potts, University of Leicester, 24th September 2014.

Page 2: Modelling animal movement in complex environments Jonathan Potts, University of Leicester, 24 th September 2014.

What complex environment?

Resources Topography Predators Conspecifics

Stigmergent cues

Human constructions

Page 3: Modelling animal movement in complex environments Jonathan Potts, University of Leicester, 24 th September 2014.

Roadmap

Page 4: Modelling animal movement in complex environments Jonathan Potts, University of Leicester, 24 th September 2014.

Roadmap

1. Model construction

Page 5: Modelling animal movement in complex environments Jonathan Potts, University of Leicester, 24 th September 2014.

Roadmap

1. Model construction2. Inference

Page 6: Modelling animal movement in complex environments Jonathan Potts, University of Leicester, 24 th September 2014.

Roadmap

1. Model construction2. Inference3. Goodness-of-fit

Page 7: Modelling animal movement in complex environments Jonathan Potts, University of Leicester, 24 th September 2014.

Roadmap

1. Model construction2. Inference3. Goodness-of-fit

Page 8: Modelling animal movement in complex environments Jonathan Potts, University of Leicester, 24 th September 2014.
Page 9: Modelling animal movement in complex environments Jonathan Potts, University of Leicester, 24 th September 2014.

Movement: correlated random walkExample step length distribution:

Example turning angle distribution:

Turchin P. (1998) Quantitative analysis of movement:measuring and modeling population redistribution in animals and plants. Sunderland, MA: SinauerAssociates.

Page 10: Modelling animal movement in complex environments Jonathan Potts, University of Leicester, 24 th September 2014.

Mathematical formulation

Probability of moving to position x in time given that the animal was previously at position y and arrived there on a trajectory is:

where is the step length distribution and the turning angle distribution.

Page 11: Modelling animal movement in complex environments Jonathan Potts, University of Leicester, 24 th September 2014.
Page 12: Modelling animal movement in complex environments Jonathan Potts, University of Leicester, 24 th September 2014.

Adding environmental interactions

Page 13: Modelling animal movement in complex environments Jonathan Potts, University of Leicester, 24 th September 2014.

Adding environmental interactions

A, B, C different habitats. B = worse, A = better, C = best.

Page 14: Modelling animal movement in complex environments Jonathan Potts, University of Leicester, 24 th September 2014.

The step selection function

• is the step length distribution,• is the turning angle distribution• is a weighting function• E is information about the environment

Fortin D, Beyer HL, Boyce MS, Smith DW, Duchesne T, Mao JS (2005) Wolves influence elk movements: Behavior shapes a trophic cascade in Yellowstone National Park. Ecology 86:1320-1330.

Page 15: Modelling animal movement in complex environments Jonathan Potts, University of Leicester, 24 th September 2014.
Page 16: Modelling animal movement in complex environments Jonathan Potts, University of Leicester, 24 th September 2014.

Coupled step selection functionsOne step selection function for each agent and include an interaction term :

where represents animali’s cognitive map of the possible positions of other animals at time t.

Potts, J.R., Mokross,K.,&Lewis, M.A. (2014) A unifying framework for quantifying the nature of animal interactions. Journal of the Royal Society Interface, 11, 20140333.

Scent marks

MateCompetitor

Page 17: Modelling animal movement in complex environments Jonathan Potts, University of Leicester, 24 th September 2014.

An example CSSF

Potts, J.R., Mokross,K.,&Lewis, M.A. (2014) A unifying framework for quantifying the nature of animal interactions. Journal of the Royal Society Interface, 11, 20140333.

Page 18: Modelling animal movement in complex environments Jonathan Potts, University of Leicester, 24 th September 2014.

Unifying collective behaviour and resource selection

Potts, J.R., Mokross,K.,&Lewis, M.A. (2014) A unifying framework for quantifying the nature of animal interactions. Journal of the Royal Society Interface, 11, 20140333.

Page 19: Modelling animal movement in complex environments Jonathan Potts, University of Leicester, 24 th September 2014.

Roadmap

1. Model construction2. Inference3. Goodness-of-fit

Page 20: Modelling animal movement in complex environments Jonathan Potts, University of Leicester, 24 th September 2014.

Coupled step selection functions

Detecting the interaction mechanism

Model 1 Model 2 Model 3 Model 4

Positional data

Page 21: Modelling animal movement in complex environments Jonathan Potts, University of Leicester, 24 th September 2014.

Detecting the interaction mechanism

Maximum likelihood: Find the that maximises:

• and are, respectively, the sequence of positions and trajectories from the data

• is the number of animals• is a vector of parameters in the model• Test for different models ,, ,… to find best

Page 22: Modelling animal movement in complex environments Jonathan Potts, University of Leicester, 24 th September 2014.

Coupled step selection functionsOne step selection function for each agent and include an interaction term :

where represents both the population positions and any traces of their past positions left either in the environment or in the memory of agent .

Potts, J.R., Mokross,K.,&Lewis, M.A. (2014) A unifying framework for quantifying the nature of animal interactions. Journal of the Royal Society Interface, 11, 20140333.

Page 23: Modelling animal movement in complex environments Jonathan Potts, University of Leicester, 24 th September 2014.

Detecting the interaction mechanism: the example of Amazonian birds

Territorial marking (vocalisations): if any flock is at position at time totherwise.

Hypothesis 1 (tendency not to go into another’s territory):

Hypothesis 2 (tendency to retreat after visiting another’s territory):

where is a von Mises distribution, is the bearing from to and is the bearing from to a central point within the territory and if X is true and 0 otherwise.

Page 24: Modelling animal movement in complex environments Jonathan Potts, University of Leicester, 24 th September 2014.

Detecting the interaction mechanism: the example of Amazonian birds

Territorial marking (vocalisations): if any flock is at position at time totherwise.

Hypothesis 1 (tendency not to go into another’s territory):

Hypothesis 2 (tendency to retreat after visiting another’s territory):

where is a von Mises distribution, is the bearing from to and is the bearing from to a central point within the territory and if X is true and 0 otherwise.

Page 25: Modelling animal movement in complex environments Jonathan Potts, University of Leicester, 24 th September 2014.

Amazon birds: space use patterns

between competing models

Page 26: Modelling animal movement in complex environments Jonathan Potts, University of Leicester, 24 th September 2014.

Roadmap

1. Model construction2. Inference3. Goodness-of-fit

Page 27: Modelling animal movement in complex environments Jonathan Potts, University of Leicester, 24 th September 2014.

High-school data analysis: best fit line

Page 28: Modelling animal movement in complex environments Jonathan Potts, University of Leicester, 24 th September 2014.

Check: look at the residuals

Zuur et al. (2009) Mixed effects models and extensions in ecology with R. Springer Verlag

“Residual”: the distance between the model prediction and the data

Page 29: Modelling animal movement in complex environments Jonathan Potts, University of Leicester, 24 th September 2014.

Try again: best fit quadratic

Page 30: Modelling animal movement in complex environments Jonathan Potts, University of Leicester, 24 th September 2014.

How do we extend these ideas to movement models?

Generic movement model: probability of moving to x at a time τ in the future given that the agent is currently at y and is travelling through environment E is

Page 31: Modelling animal movement in complex environments Jonathan Potts, University of Leicester, 24 th September 2014.

e.g. food distribution

e.g. topography

Start

Page 32: Modelling animal movement in complex environments Jonathan Potts, University of Leicester, 24 th September 2014.

e.g. food distribution

e.g. topography

Actual move

Page 33: Modelling animal movement in complex environments Jonathan Potts, University of Leicester, 24 th September 2014.

Earth mover`s distance: a generalised residual

• is the actual place the animal moves to

∫Ω

𝑓 (𝑥|𝑦 ,𝐸 )∨𝑥−𝑥0∨𝑑𝑥

Page 34: Modelling animal movement in complex environments Jonathan Potts, University of Leicester, 24 th September 2014.

Earth mover`s distance: a generalised residual

Page 35: Modelling animal movement in complex environments Jonathan Potts, University of Leicester, 24 th September 2014.

Earth mover`s distance: a generalised residual

• is the actual place the animal moves to

∫Ω

𝑓 (𝑥|𝑦 ,𝐸 )∨𝑥−𝑥0∨𝑑𝑥

Page 36: Modelling animal movement in complex environments Jonathan Potts, University of Leicester, 24 th September 2014.

Standardised earth mover`s distance

Page 37: Modelling animal movement in complex environments Jonathan Potts, University of Leicester, 24 th September 2014.

How close is your model to the data?

Test the following null hypothesis:

H0: “The data is a stochastic realisation of the model”

Page 38: Modelling animal movement in complex environments Jonathan Potts, University of Leicester, 24 th September 2014.

A scheme for testing how close your model is to data

• Suppose you have N data points

Page 39: Modelling animal movement in complex environments Jonathan Potts, University of Leicester, 24 th September 2014.

A scheme for testing how close your model is to data

• Suppose you have N data points• Simulate your model for N steps and repeat M times, where M is

nice and big

Page 40: Modelling animal movement in complex environments Jonathan Potts, University of Leicester, 24 th September 2014.

A scheme for testing how close your model is to data

• Suppose you have N data points• Simulate your model for N steps and repeat M times, where

M is nice and big• For each simulation, generate the Earth Movers distance

(EMD)

Page 41: Modelling animal movement in complex environments Jonathan Potts, University of Leicester, 24 th September 2014.

A scheme for testing how close your model is to data

• Suppose you have N data points• Simulate your model for N steps and repeat M times,

where M is nice and big• For each simulation, generate the Earth Movers distance

(EMD)• This gives a distribution of simulation EMDs

Page 42: Modelling animal movement in complex environments Jonathan Potts, University of Leicester, 24 th September 2014.

A scheme for testing how close your model is to data

• Suppose you have N data points• Simulate your model for N steps and repeat M times, where M

is nice and big• For each simulation, generate the Earth Movers distance (EMD)• This gives a distribution of simulation EMDs• Also calculate EMD between data and model ED

Page 43: Modelling animal movement in complex environments Jonathan Potts, University of Leicester, 24 th September 2014.

A scheme for testing how close your model is to data

• Suppose you have N data points• Simulate your model for N steps and repeat M times, where

M is nice and big• For each simulation, generate the Earth Movers distance

(EMD)• This gives a distribution of simulation EMDs• Also calculate EMD between data and model ED

• If ED is not within 95% confidence intervals of the distribution of simulation EMDs then reject null hypothesis that model describes the data well

Page 44: Modelling animal movement in complex environments Jonathan Potts, University of Leicester, 24 th September 2014.

Power test on simulated data

F(x) T(x)

Researcher knows about

layer 1

Researcher doesn’t know about layer 2

Page 45: Modelling animal movement in complex environments Jonathan Potts, University of Leicester, 24 th September 2014.

Power test on simulated data

“Real” process: Best model:

F(x) T(x)

Researcher knows about

layer 1

Researcher doesn’t know about layer 2

Page 46: Modelling animal movement in complex environments Jonathan Potts, University of Leicester, 24 th September 2014.

Power test on simulated data

Potts JR, Auger-Méthé M, Mokross K, Lewis MA. A generalized residual technique for analyzing complex movement models using earth mover's distance. Methods Ecol Evol DOI: 10.1111/2041-210X.12253

Page 47: Modelling animal movement in complex environments Jonathan Potts, University of Leicester, 24 th September 2014.

Application to Amazonian birds: patterns in EMD

Page 48: Modelling animal movement in complex environments Jonathan Potts, University of Leicester, 24 th September 2014.

Acknowledgements Mark Lewis (Alberta)

Marie Auger-Méthé (Dalhousie) Karl Mokross (Louisiana State)

Thomas Hillen (Alberta)