bioRxivEcologyPreprint
Flexible hidden Markov models for behaviour-dependent habitat selection
Abstract
There is strong incentive to model behaviour-dependent habitat selection, as this can help delineate critical habitats for important life processes and reduce bias in model parameters. For this purpose, a two-stage modelling approach is often taken: (i) classify behaviours with a hidden Markov model (HMM), and (ii) fit a step selection function (SSF) to each subset of data. However, this approach does not properly account for the uncertainty in behavioural classification, nor does it allow states to depend on habitat selection. An alternative approach is to estimate both state switching and habitat selection in a single, integrated model called an HMM-SSF. We build on this recent methodological work to make the HMM-SSF approach more efficient and general. We focus on writing the model as an HMM where the observation process is defined by an SSF, such that well-known inferential methods for HMMs can be used directly for parameter estimation and state classification. We extend the model to include covariates on the HMM transition probabilities, allowing for inferences into the temporal and individual-specific drivers of state switching. We demonstrate the method through an illustrative example of African zebra (Equus quagga), including state estimation, and simulations to estimate a utilisation distribution. In the zebra analysis, we identified two behavioural states, with clearly distinct patterns of movement and habitat selection ("encamped" and "exploratory"). In particular, although the zebra tended to prefer areas higher in grassland across both behavioural states, this selection was much stronger in the fast, directed exploratory state. We also found a clear diel cycle in behaviour, which indicated that zebras were more likely to be exploring in the morning and encamped in the evening. This method can be used to analyse behaviour-specific habitat selection in a wide range of species and systems. A large suite of statistical extensions and tools developed for HMMs and SSFs can be applied directly to this integrated model, making it a very versatile framework to jointly learn about animal behaviour, habitat selection, and space use.
- organism: zebrafish
- assay: behavioral assay
- research focus: cell type annotation
- approach: statistical model
Reproducibility ledger
Nobody has reported trying to reproduce this paper yet. Did you replicate an experiment or run the code? Your report saves the next lab a week.
Sign in to file a reproducibility report.
Related papers
- Behavioural state inference from movement and environmental data using Markovian step selection functions
Ilhem Bouderbala, Aurélien Nicosia, Daniel Fortin·PLoS ONEPeer-reviewed·Oct 26, 2026
- Worth the effort? A practical examination of random effects in hidden Markov models for animal telemetry data
B. T. McClintock·bioRxiv·Jul 10, 2020
- Integrating learning in movement using step-selection analyses
Benedetta Catitti, John Fieberg, Martin U. Grüebler·bioRxiv·Sep 4, 2026
- Integrating animal experience into state-switching habitat selection models
Romain Dejeante, Akina Kuperus, … John M. Fryxell·bioRxiv·Jul 29, 2026
- Accounting for individual-specific variation in habitat-selection studies: Efficient estimation of mixed-effects models using Bayesian or frequentist computation
S. Muff, J. Signer, J. Fieberg·bioRxiv·Jan 29, 2019
- Step selection analysis with non-linear and random effects in mgcv
N. J. Klappstein, T. Michelot, … J. Mills Flemming·bioRxiv·Jan 5, 2024