Hidden Markov model
Hidden Markov models (HMM) describe the evolution of a sequence of
random variables, {St}
(i.e. behavioural states), which are not directly observable, but can be
inferred from another sequence of random variables, {Yt}, that are
observable (i.e. locations). The two main characteristics of HMMs are
(1) each observation is assumed to be generated by one of N distributions, and (2) the hidden
state sequence that determines which of the N distributions is chosen at time
t is modelled as a Markov
chain, where the probability of being in each state at time t depends only on the state value at
the previous time step.
State process
The state process {St} of a N-state HMM for T time steps is characterised by its
state transition probability matrix Γ(t) = (γi, j(t)),
where i, j = 1, …, N and
γi, j(t) = Pr(st + 1 = j|st = i).
The probability of transitioning to state st from state
st − 1
is
st ∼ Categorical(Γ(t − 1)), 1 ≤ t ≤ T.
Process model
The process equation for the true locations of the animal at regular
time intervals t, $z_t = \begin{bmatrix} z_{t, \text{lon}} \\ z_{t,
\text{lat}} \end{bmatrix}$, assumes that the animal’s location at
time t is not only dependent
on the previous location, zt − 1, but also
on the animal’s previous displacement in each coordinate, zt − 1 − zt − 2:
zt = zt − 1 + λn(zt − 1 − zt − 2) + ϵt, ϵt ∼ N(0, Ω), 1 ≤ n ≤ N,
where
$$
\Omega =
\begin{bmatrix}
\tau^2_{\epsilon, \text{lon}} & 0 \\
0 & \tau^2_{\epsilon, \text{lat}}
\end{bmatrix}.
$$
The state-depended parameter, λn, can take
values between 0 and 1 (i.e., 0 ≤ λ ≤ 1), and controls the degree
of correlation between steps. By default, movetrack
estimates track-specific λn values, but
it is also possible to use the same λn for all
tracks by setting i_lambda = FALSE
.
Observation model
The observed locations of an animal, $y_j =
\begin{bmatrix} y_{j, \text{lon}} \\ y_{j, \text{lat}}
\end{bmatrix}$, often have irregular time intervals j, with J representing the total number of
observed locations. Therefore, the true location of the animal is
linearly interpolated to the time of the observation, with wj representing
the proportion of the regular time interval between t − 1 and t when the observation yj was made:
yj = wjzt + (1 − wj)zt − 1 + θj, θj ∼ T(0, σj), 1 ≤ j ≤ J,
where T(0, σj) denotes
a bivariate Student’s t-distribution with measurement
error $\sigma_j = \begin{bmatrix} \sigma_{j,
\text{lon}} \\ \sigma_{j, \text{lat}} \end{bmatrix}$.
References
Auger-Méthé, M., Newman, K., Cole, D., Empacher, F., Gryba, R., King,
A. A., … & Thomas, L. (2021). A guide to state–space modeling of
ecological time series. Ecological Monographs, 91(4), e01470.
doi: 10.1002/ecm.1470