Track reconstruction

Tiago A. Marques
12 July 2017

Why to reconstruct tracks

A common interest is to be able to make inferences based on where tagged animals have been

This will provide relevant information regarding ecology and behaviour

It allows detailed information about movement, opening the door to various aspects related to movement ecology

Conceptualizing movement

A series of displacements between an initial position at time \( t \) and the position at time \( t+1 \)

Conceptually a sucession of steps, described by

  • step length (how much the animal moved)
  • turning angle (how much the animal changed its direction from the previous direction)

slta

Some naming conventions

We will refer to 2D location \( (x,y) \) or 3D location \( (x,y,z) \)

pseudotrack - obtained from dead-reckoning (initial point + directions + speeds)

georeferenced track - “anchored”“ with known locations (besides the first one)

Types of (tag location) data

For that purpose, we can distinguish two types of tag data

  • data with direct (even if noisy) information on location \( (x,y) \) or \( (x,y,z) \)) - like DTag data
  • data without direct information about location (except a starting point) - like a GPS enabled tag

The world is not black and white, so there are a few hybrid instances of location information

  • obtained from the tag (e.g. a GPS reading when animal comes to the surface)
  • from an independent source (e.g. georeferenced visual sightings when animal surfaces)

Dead reckoning

Dead reckoning, or ded (from deduced) reckonig: obtaining a position from an initial position, a direction and a speed

A car was traveling in a straight line from A to B, separated by 40 km. Given it was half way through 10 minutes after it started, where was the car 15 minutes after it started?

I reckon "reckon" is going dead

reckon

how exactly does google compute these plots from?

does it correct for number of documents scanned?

does it search for a constant reference database (for comparability across words)

Dead reckoning drifts

Each new position is based on the previous estimated position

Errors do not cancel each other, so a track obtained by dead reckoning will drift from the original track

Track accuraccy will decrease with time - see practical exercise 1

On how to join dots

Given a set of locations, what is the most likely track?

On how to join dots

Given a set of locations, what is the most likely track?

straight lines between points?

On how to join dots

Given a set of locations, what is the most likely track?

allow some inercia

On how to join dots

Given a set of locations, what is the most likely track?

allow measurement error

On how to join dots

Given a set of locations, what is the most likely track?

choice is driven by assumptions on the movement and on the measurements: method used will have an impact on inferences made!

Slide With R Code

R code can be included in a slide like so. It will be executed when the presentation is compiled. By default, output generated by the code is also included in the slide.

summary(cars)
     speed           dist       
 Min.   : 4.0   Min.   :  2.00  
 1st Qu.:12.0   1st Qu.: 26.00  
 Median :15.0   Median : 36.00  
 Mean   :15.4   Mean   : 42.98  
 3rd Qu.:19.0   3rd Qu.: 56.00  
 Max.   :25.0   Max.   :120.00  

Slide With R code and no output

To include code but not its output, use the R code chunk option “results='hide'”.

summary(cars)

Slide displaying unevaluated R (or matlab) code

You can also display code without evaluating it by including the option eval=FALSE in the R code chunk. For example, the matlab code below wouldn't work in R, but we can display it anyway.

Learn more about R code chunk options online: https://yihui.name/knitr/options.

my_matrix = eye(7);

Slide With Plot

You can also include a graphic generated in R on-the-fly, without showing the code used to generate the figure. Options are available to control the size of the output figure (default units are inches).

plot of chunk unnamed-chunk-4

Slide With Bigger, Centered Plot

plot of chunk unnamed-chunk-5

Text Formatting

We can have bold and italicized text (and any other formatting you can specify in RMarkdown: see https://www.rstudio.com/wp-content/uploads/2016/03/rmarkdown-cheatsheet-2.0.pdf).

Slide With Two Columns

This stuff goes on the left:

Often we want to have two columns on a slide.

This stuff goes on the right:

We can!

Slide With Image and Text

This left column takes up 70% of the slide…

And the right column gets the rest.

Slide With Unequal-width Columns

alt text for image

We can also include figures or images *not generated on the fly – local files or online images both work.

Equations

You can also include equations inline: \( E = MC^2 \) (be careful not to leave whitespace adjacent to the $)

Or in display mode:

\[ e^{i\phi} = \text{cos}(\phi) + i\text{sin}(\phi) \]

More Help