No Cover Image

Journal article 89 views 10 downloads

swaRmverse: An R package for the comparative analysis of collective motion

Marina Papadopoulou Orcid Logo, Simon Garnier Orcid Logo, Andrew King Orcid Logo

Methods in Ecology and Evolution, Volume: 16, Issue: 1, Pages: 29 - 39

Swansea University Authors: Marina Papadopoulou Orcid Logo, Andrew King Orcid Logo

  • 68232.VoR.pdf

    PDF | Version of Record

    © 2024 The Author(s). This is an open access article under the terms of the Creative Commons Attribution-NonCommercial License.

    Download (3.09MB)

Abstract

1. Collective motion, that is the coordinated spatial and temporal organisation of individuals, is a core element in the study of collective animal behaviour. The self-organised properties of how a group moves influence its various behavioural and ecological processes, such as predator-prey dynamics...

Full description

Published in: Methods in Ecology and Evolution
ISSN: 2041-210X 2041-210X
Published: Wiley 2025
Online Access: Check full text

URI: https://cronfa.swan.ac.uk/Record/cronfa68232
Abstract: 1. Collective motion, that is the coordinated spatial and temporal organisation of individuals, is a core element in the study of collective animal behaviour. The self-organised properties of how a group moves influence its various behavioural and ecological processes, such as predator-prey dynamics, social foraging, and migration. Little is, however, known about the inter- and intra-specific variation in collective motion. Despite the significant advancement in high-resolution tracking of multiple individuals within groups, providing collective motion data for animals in the lab and the field, a framework to perform quantitative comparisons across species and contexts is lacking.2. Here, we present the swaRmverse package. Building on two existing R packages, trackdf and swaRm, swaRmverse enables the identification and analysis of collective motion ‘events’, as presented in Papadopoulou et al. (2023a), creating a unit of comparison across datasets. We describe the package’s structure and showcase its functionality using existing datasets from several species and simulated trajectories from an agent-based model.3. From positional time-series data for multiple individuals (x-y-t-id), swaRmverse identifies events of collective motion based on the distribution of polarisation and group speed. For each motion event, a suite of validated biologically meaningful metrics are calculated, and events are placed into a ‘swarm space’ through dimensional reduction techniques.4. Our package provides the first automated pipeline enabling the analysis of data on collective behaviour. Thepackage allows the calculation and use of 18 complex metrics for users without a strong quantitative background and will promote communication and data-sharing across disciplines, standardising the quantification of collective motion across species and promoting comparative investigations.
Keywords: animal behaviour, collective motion, comparative analysis, dimensionality reduction, modelvalidation, R package, trajectory data
College: Faculty of Science and Engineering
Funders: Office of Naval Research. Grant Number: N629092112030 ; National Science Foundation. Grant Number: EF 2222418
Issue: 1
Start Page: 29
End Page: 39