Inferring cognitive strategies from groups of animals in natural environments

Ines Aitsahalia, Thomas L. Botch, Shijie Gu, Thomas O'Connell, Rebecca Siegel, Ralph E Peterson, Dmitry Batenkov, Emily L MackeviciusDBM @ NeurIPS 2025

TL;DR

This paper introduces a novel, open-source framework for understanding animal group behavior in natural environments. By integrating multi-animal tracking, 3D environment reconstruction, and graph neural network-based inference, it allows researchers to move beyond analyzing isolated components and instead reason about the interplay between behavior, environment, and cognitive strategies. This work lays the groundwork for investigating latent cognitive strategies across species and environments.

What Problem Does This Paper Address?

Understanding how groups of animals coordinate their movements and make decisions in complex, natural environments is a significant challenge. Existing research often focuses on individual aspects like tracking, simulation, or environmental modeling in isolation. This siloed approach makes it difficult to build a holistic understanding of how collective behaviors emerge from the interactions between agents and their surroundings, and how internal cognitive strategies drive these dynamics. The authors aim to bridge this gap by creating a unified pipeline that integrates these disparate components, enabling a more comprehensive analysis of animal group cognition in the wild.

Methods

The core of the paper is an integrated computational framework designed to interpret multi-agent behavior in natural settings. The pipeline consists of several key stages:

  • Multi-animal Detection and Tracking: They utilize state-of-the-art computer vision models (YOLOv11, RF-DETR) trained on both RGB and thermal imagery to detect and track individual animals across video frames. A semi-automatic alignment pipeline is used to reconcile discrepancies between thermal and RGB camera views. The ByteTrack algorithm is employed for robust multi-object tracking.
  • 3D Environment Reconstruction: Using 3D Gaussian Splatting (3DGS) and recent advancements in rasterization, they create detailed 3D mesh representations of the environments. This process is enhanced by integrating semantic features extracted from vision-language models, allowing for natural language queries of the environment (e.g., identifying "trees" or "feeders").
  • Integration of Tracking and Environment: Animal tracks are projected onto the reconstructed 3D environment, providing a spatially grounded representation of their movements within their surroundings.
  • Multi-agent Simulation: A simulator is built using Gymnasium and Open3D to generate synthetic data for testing inference methods. This simulator incorporates environmental constraints and allows for the simulation of agents with different strategies (e.g., Boids, independent agents).
  • Graph Neural Network (GNN) Inference: Graph neural networks, specifically with an attention mechanism, are used to infer latent interaction rules and cognitive strategies from the integrated behavioral and environmental data. The GNN learns to predict agent accelerations based on their past states and environmental features.

Datasets

The authors collected new behavioral data from groups of birds foraging in outdoor 3D environments across various locations in New York and Alaska. This data includes synchronized RGB and thermal video recordings. For training object detection models, they used a composite dataset that included this field data along with publicly available annotated thermal images of birds from the Roboflow Universe platform. Simulated datasets were also generated using their multi-agent simulator for testing the GNN inference methods.

Key Insights and Ideas

  • Unified Pipeline is Crucial: The paper strongly advocates for integrating tracking, environment modeling, and inference, arguing that analyzing these components in isolation misses critical insights into collective behavior.
  • Thermal Imaging is Key for Wild Tracking: The use of thermal cameras significantly aids in detecting and tracking animals in natural environments, where camouflage can be a major challenge for RGB-only approaches.
  • Semantic 3D Environments Enable Richer Analysis: By reconstructing environments with semantic information, researchers can query and understand the affordances of the environment (e.g., presence of food, obstacles) in a way that directly informs agent behavior.
  • GNNs with Attention Can Uncover Latent Strategies: The GNN framework, particularly with its attention mechanism, shows promise in distinguishing between different simulated agent strategies and potentially inferring real-world behavioral rules.
  • Real-World Bird Behavior Differs from Simple Models: A key qualitative finding is that GNNs trained on real bird foraging data produce significantly different rollout trajectories compared to GNNs trained on simulated Boid rules, suggesting that real birds employ more complex strategies.

Key Results

  • Object Detection Performance: Fine-tuned YOLOv11 achieved 97.4% precision and 90.9% recall on the test set for bird detection.
  • Environment Reconstruction: The 3DGS models achieved moderate to high levels of spatial and perceptual similarity (SSIM = 0.718, LPIPS = 0.237) when compared to ground-truth video, indicating a decent approximation of the scene.
  • GNN Inference on Simulated Data: GNNs trained on simulated Boid data showed stronger agent-to-agent attention weights than those trained on independent agents. GNNs trained on "hungrier" Boids showed slightly higher attention to food.
  • GNN Inference on Real Data: A GNN trained on real bird foraging data produced qualitatively reasonable rollout trajectories that differed substantially from a GNN pre-trained on simulated Boid rules, highlighting the complexity of real-world strategies.

Limitations and Future Work

  • Data Acquisition and Scale: The authors acknowledge that this work is a preliminary proof-of-concept. Substantially more data and larger-scale experiments are needed to support major scientific claims about strategies across different species and environments.
  • Tracking Robustness: Occasional tracking dropouts due to occlusion remain a limitation. Future work could integrate more robust occlusion-handling tools.
  • Static Environment Models: The current 3D environment models are static. Future work could explore dynamic 4D Gaussian splats to capture changing environments.
  • 3D Position Estimation: Estimating 3D positions was challenging for animals in flight or interacting with complex 3D features. Integrating more cameras and microphones could improve this.
  • GNN Rollout Divergence: While GNNs can capture short-timescale dynamics, their rollouts tend to diverge from ground truth on longer timescales, especially for chaotic systems like Boids. This is an active area of research.
  • Interpreting Attention: While GNN attention can reveal differences between strategies, interpreting the exact meaning of attention weights, especially for static environmental features like food, requires further investigation.
  • Generalizability: The framework needs to be tested on a wider range of species and environments to assess its generalizability.

Summary updated

BibTeX
@inproceedings{aitsahalia2025inferring,
  author = {Ines Aitsahalia and Thomas L. Botch and Shijie Gu and Thomas O'Connell and Rebecca Siegel and Ralph E Peterson and Dmitry Batenkov and Emily L Mackevicius},
  title = {{Inferring cognitive strategies from groups of animals in natural environments}},
  booktitle = {DBM @ NeurIPS},
  year = {2025},
  url = {https://openreview.net/forum?id=mUPCoCIxLK},
}
Figure