Skip to main content

Research Repository

Advanced Search

patter: Particle algorithms for animal tracking in R and Julia

Lavender, Edward; Scheidegger, Andreas; Albert, Carlo; Biber, Stanisław W.; Illian, Janine; Thorburn, James; Smout, Sophie; Moor, Helen

Authors

Edward Lavender

Andreas Scheidegger

Carlo Albert

Stanisław W. Biber

Janine Illian

Sophie Smout

Helen Moor



Abstract

State‐space models are a powerful modelling framework in movement ecology that represents individual movements and the processes connecting movements to observations. However, fitting state‐space models to animal‐tracking data can be difficult and computationally expensive. Here, we introduce patter, a package that provides particle filtering and smoothing algorithms that fit Bayesian state‐space models to tracking data, with a focus on data from aquatic animals in receiver arrays. patter is written in R, with a performant Julia backend. Package functionality supports data simulation, preparation, filtering, smoothing and mapping. In two examples, we demonstrate how to implement patter to reconstruct the movements of a tagged animal in an acoustic telemetry system from acoustic detections and ancillary observations. With perfect information, the particle filter reconstructs the true (unobserved) movement path (Example One). More generally, particle algorithms represent an individual's possible location probabilistically as a weighted series of samples (‘particles’). In our illustration, we resolve an individual's (unobserved) location every 2 min during 1 month and use particles to visualise movements, map space use and quantify residency (Example Two). patter facilitates robust, flexible and efficient analyses of animal‐tracking data. The methods are widely applicable and enable refined analyses of space use, home ranges and residency.

Citation

Lavender, E., Scheidegger, A., Albert, C., Biber, S. W., Illian, J., Thorburn, J., Smout, S., & Moor, H. (online). patter: Particle algorithms for animal tracking in R and Julia. Methods in Ecology and Evolution, https://doi.org/10.1111/2041-210x.70029

Journal Article Type Article
Acceptance Date Mar 4, 2025
Online Publication Date Apr 3, 2025
Deposit Date Apr 8, 2025
Publicly Available Date Apr 8, 2025
Journal Methods in Ecology and Evolution
Electronic ISSN 2041-210X
Publisher Wiley
Peer Reviewed Peer Reviewed
DOI https://doi.org/10.1111/2041-210x.70029
Keywords package, passive acoustic telemetry, state‐space model, movement ecology, Bayesian inference, particle filter
Public URL http://researchrepository.napier.ac.uk/Output/4233485

Files

patter: Particle algorithms for animal tracking in R and Julia (2.4 Mb)
PDF

Publisher Licence URL
http://creativecommons.org/licenses/by/4.0/

Copyright Statement
This is an open access article under the terms of the Creative Commons Attribution License, which permits use, distribution and reproduction in any medium, provided the original work is properly cited.





You might also like



Downloadable Citations