Robots that learn to evaluate models of collective behavior
Organizations: Department of computer science, Freie Universität Berlin, 14195 Berlin, Germany. · SCIoI Excellence Cluster, Technische Universität Berlin, 10587, Berlin, Germany. · Faculty of Life Sciences, Humboldt-Universität zu Berlin, 10117, Berlin, Germany. · Department of Fish Biology, Fisheries, and Aquaculture, Leibniz Institute of Freshwater Ecology and Inland Fisheries, 12587 Berlin, Germany.
Abstract
Understanding and modeling animal behavior is essential for studying collective motion, decision-making, and bio-inspired robotics. Yet, evaluating the accuracy of behavioral models still often relies on offline comparisons to static trajectory statistics. Here we introduce a reinforcement-learning-based framework that uses a biomimetic robotic fish (RoboFish) to evaluate computational models of live fish behavior through closed-loop interaction. We trained policies in simulation using four distinct fish models-a simple constant-follow baseline, two rule-based models, and a biologically grounded convolutional neural network model-and transferred these policies to the real RoboFish setup, where they interacted with live fish. Policies were trained to guide a simulated fish to goal locations, enabling us to quantify how the response of real fish differs from the simulated fish's response. We evaluate the fish models by quantifying the sim-to-real gaps, defined as the Wasserstein distance between simulated and real distributions of behavioral metrics such as goal-reaching performance, inter-individual distances, wall interactions, and alignment. The neural network-based fish model exhibited the smallest gap across goal-reaching performance and most other metrics, indicating higher behavioral fidelity than conventional rule-based models under this benchmark. More importantly, this separation shows that the proposed evaluation can quantitatively distinguish candidate models under matched closed-loop conditions. Our work demonstrates how learning-based robotic experiments can uncover deficiencies in behavioral models and provides a general framework for evaluating animal behavior models through embodied interaction.
Figures & tables
| Parameter | value |
|---|---|
| zone of repulsion | 2 cm |
| zone of orientation | 6 cm |
| zone of attraction | 10 cm |
| speed | 6.30 cm/s |
| field of view | |
| turn noise | 0.2 |
| Parameter | Value |
|---|---|
| Social interaction parameters | |
| Interaction range (neighbor radius) | 15 cm |
| Preferred inter-individual distance ( ) | 5.0 cm |
| Velocity alignment strength ( ) | 0.1 |
| Distance regulation strength ( ) | 0.3 |
| Distance interaction slope ( ) | 0.2 |
| Env | Policy | RR/min (95% CI) | p |
|---|---|---|---|
| sim | total | 1.006 [1.002, 1.010] | 0.004 |
| sim | 1.002 [1.000, 1.004] | 0.011 | |
| sim | 1.008 [0.998, 1.018] | 0.107 | |
| sim | 1.009 [1.000, 1.018] | 0.056 | |
| sim | 1.006 [0.984, 1.030] | 0.588 | |
| real | total | 0.974 [0.956, 0.992] | 0.005 |
Animal Behavior Analysis
Animal behavior analysis uses computational tools to measure how animals move, interact, communicate, and respond to their environments.
See all 37 papers