A hierarchical machine learning framework for the analysis of large scale animal movement data

Colin J. Torney, Juan M. Morales, Dirk HusmeierMovement 2021

Abstract

Multilevel Gaussian process models offer efficient inference for large-volume movement data sets, along with the fitting of complex flexible models. Applications of this approach include inferring the mean location of a migration route and quantifying significant changes, detecting diurnal activity patterns, or identifying the onset of directed persistent movements.

Introduction

Modern GPS telemetry provides high-accuracy, high-frequency data on animal movement, creating a "firehose" of information that traditional statistical methods struggle to process. Standard Gaussian Processes (GPs), while powerful for time-series analysis, scale poorly ($O(n^3)$), making them computationally prohibitive for datasets exceeding a few thousand points. Furthermore, many existing models, such as Hidden Markov Models, rely on discrete behavioral states (e.g., "foraging" vs. "traveling"), which fail to capture the continuous, gradual transitions inherent in animal behavior. This paper, originally published in Movement Ecology, introduces a hierarchical GP framework designed to handle massive datasets while treating behavior as a continuous spectrum.

Methodology

The core innovation is a hierarchical, non-stationary Gaussian Process implemented in TensorFlow Probability. This framework models movement parameters—such as mean location, movement amplitude, and correlation lengthscale—as latent functions governed by their own lower-level GPs. By using non-stationary kernels (specifically a Matérn 1/2 variant), the model allows for "memory" and "intensity" to fluctuate over time, capturing complex temporal dynamics.

To overcome the $O(n^3)$ computational bottleneck, the authors employ trajectory segmentation, treating long paths as a mixture of local GP experts. Inference is performed using the Metropolis-adjusted Langevin algorithm (MALA), a gradient-based MCMC sampler, which leverages GPU acceleration to process hundreds of thousands of data points efficiently.

Data and Validation

The framework was validated using both synthetic simulations and empirical data. Synthetic tests confirmed the model's ability to recover 24-hour periodic activity levels and shifting multi-year migration routes. The empirical validation utilized a dataset of 27 Merino sheep in Patagonia, Argentina, comprising 225,953 data points collected at 10-minute intervals over two months.

Results and Discussion

The model successfully identified subtle behavioral patterns that discrete-state models might miss. For the Patagonia sheep dataset, the framework uncovered distinct daily activity peaks around noon and 11 PM, likely representing transit to and from foraging grounds.

Analysis of sheep movement data showing (A) raw x-y positions over time, (B) individual daily activity level realizations, and (C) the inferred mean activity level with uncertainty bounds.

A key advantage of this Bayesian approach is the natural propagation of uncertainty. Rather than providing a single point estimate, the model yields a full probability distribution, accounting for measurement errors and data gaps. Computationally, the entire sheep dataset was processed in approximately 14 hours on a single Tesla V100 GPU—a feat that would be impossible with standard GP implementations.

Conclusion

While the framework excels at capturing continuous behavioral shifts and scaling to large datasets, it currently underestimates path "reversals" due to a lack of environmental context. Future work aims to incorporate environmental covariates, such as temperature and vegetation indices, directly into the kernels to better understand the external drivers of animal movement.

Summary updated

BibTeX
@inproceedings{torney2021hierarchical,
  author = {Colin J. Torney and Juan M. Morales and Dirk Husmeier},
  title = {{A hierarchical machine learning framework for the analysis of large scale animal movement data}},
  booktitle = {Movement},
  year = {2021},
  doi = {10.1186/s40462-021-00242-0},
}
Figure