Hostname: page-component-7b7567c8c-kwt9d Total loading time: 0 Render date: 2026-11-12T18:10:40.581Z Has data issue: false hasContentIssue false

Learning to school in the presence of hydrodynamic interactions

Published online by Cambridge University Press:  26 January 2016

M. Gazzola
Affiliation:
School of Engineering and Applied Sciences, Harvard University, MA 02138, USA
A. A. Tchieu
Affiliation:
SPACEX, Hawthorne, CA 90250, USA
D. Alexeev
Affiliation:
Chair of Computational Science, ETH Zürich, CH-8092, Switzerland
A. de Brauer
Affiliation:
ENSEIRB-MATMECA Bordeaux Graduate School of Engineering, Talence, France
P. Koumoutsakos*
Affiliation:
Chair of Computational Science, ETH Zürich, CH-8092, Switzerland
*
†Email address for correspondence: petros@ethz.ch

Abstract

Schooling, an archetype of collective behaviour, emerges from the interactions of fish responding to sensory information mediated by their aqueous environment. A fundamental and largely unexplored question in fish schooling concerns the role of hydrodynamics. Here, we investigate this question by modelling swimmers as vortex dipoles whose interactions are governed by the Biot–Savart law. When we enhance these dipoles with behavioural rules from classical agent-based models, we find that they do not lead robustly to schooling because of flow-mediated interactions. We therefore propose to use swimmers equipped with adaptive decision-making that adjust their gaits through a reinforcement learning algorithm in response to nonlinearly varying hydrodynamic loads. We demonstrate that these swimmers can maintain their relative position within a formation by adapting their strength and school in a variety of prescribed geometrical arrangements. Furthermore, we identify schooling patterns that minimize the individual and collective swimming effort, through an evolutionary optimization. The present work suggests that the adaptive response of individual swimmers to flow-mediated interactions is critical in fish schooling.

Information

Type
Papers
Copyright
© 2016 Cambridge University Press 
Figure 0

Figure 1.Schematic of reinforcement learning coupled with a low-order model for swimmers in an inviscid flow. The goal of the $n$th agent is encoded in the numerical reward $r_{n}$, and the agent learns, through a trial-and-error process called reinforcement learning (Sutton & Barto 1998), how to map states $s_{n}$ into actions $a_{n}$ so as to maximize the long-term reward (§ 2.4). The system is simulated via a low-order model that takes into account swimmer–swimmer dynamics mediated by an inviscid fluid medium (Tchieu et al.2012).

Figure 1

Figure 2.Streamlines of (a) inviscid swimmers translating in a potential flow and (b) the finite dipole approximation of the swimmers (Tchieu et al.2012). Shown in (c) is the detailed view of a single finite dipole, while (d) illustrates the state representation of an individual dipole swimmer attempting to follow a translating lattice point (§ 2.4).

Figure 2

Figure 3.The set of five actions available to each dipole swimmer (represented by a triangle of width $D=2\ell \sqrt{2{\rm\pi}}$ pointing in the direction of travel), with each action mapped to the integer set $a_{n}=\{1,2,3,4,5\}$: (a) travelling straight at the nominal speed $v^{0}$ ($a_{n}=1$); (b) travelling straight at a slower speed $v^{-}$ ($a_{n}=2$); (c) travelling straight at a faster speed $v^{+}$ ($a_{n}=3$); (d) making a left turn at a specified turn radius ${\it\rho}_{T}$ ($a_{n}=4$); and (e) making a right turn with turn radius ${\it\rho}_{T}$ ($a_{n}=5$). In each panel we also show the streamlines demonstrating how a swimmer affects the background flow field in the absence of all other dipole swimmers.

Figure 3

Table 1.Radii of zones of interaction relative to the ‘dynamically parallel school’ and ‘highly parallel school’ behaviours as detailed in Couzin et al. (2002); the radii are normalized by $\ell$.

Figure 4

Figure 4.Schematic of CMA-ES optimizer coupled with reinforcement learning (RL) and the low-order model. The CMA-ES dispatches $k=1,\ldots ,p$ parameter sets $\boldsymbol{p}_{k}$ defining the school configuration. The reinforcement learning framework allows agents to learn to swim in the formation characterized by $\boldsymbol{p}_{k}$. In return, the CMA-ES receives a fitness $f_{k}$ that captures the effectiveness of collective swimming relative to each school $\boldsymbol{p}_{k}$.

Figure 5

Figure 5.A single agent learns to optimally follow a moving target point $\boldsymbol{x}^{t}$. Shown in (a) is the time evolution of the agent’s reward normalized by its maximum attainable value, based on the reward definition given in § 2.4. Panels (b–d) correspond, respectively, to non-adaptive, intermediate-adaptive and well-adaptive learning stages. The starting times for panels (b–d) are marked on the $x$-axis of (a). Black dashed and solid red lines correspond, respectively, to the trajectories of the agent (green triangle) and the target point (red dot). Instantaneous streamlines (blue lines) are displayed for reference. Simulations are run in the domain $[0,1]\times [0,1]$ with $\ell =3\times 10^{-3}$, $v^{0}=5\ell$, $v^{A}=0.1v^{0}$, ${\it\rho}^{T}=10\ell$, ${\it\delta}t=0.1$, ${\it\varphi}=0.01$, ${\it\gamma}=0.98$ and ${\it\epsilon}=0.01$. The notation is defined in § 2 and appendix A.

Figure 6

Figure 6.Swimming configurations for 16 dipole swimmers at specified times: (a,d,g) initial/desired configurations; (b,e,h) non-adaptive configurations; (c,f,i) adaptive (with policy learned from reinforcement learning) configurations. Red dipole swimmers have experienced a collision (after which they no longer move). Instantaneous streamlines (blue lines) are displayed for reference. Dipole swimmers are initialized on a diamond lattice in (a–c), a square lattice in (d–f) and randomly in a circular region of radius of $17.5\ell$ in (g–i). In all initial configurations, a minimum interdipole spacing of $10\ell$ is enforced. Also shown are the time evolutions of a school of 100 agents obeying (j) ‘dynamically parallel group’ and (k) ‘highly parallel group’ models (Couzin et al.2002) enhanced with hydrodynamic interactions. Simulations are run in the domain $[0,1]\times [0,1]$ with $\ell =5\times 10^{-4}$, $v^{0}=5\ell$, $v^{A}=0.1v^{0}$, ${\it\rho}^{T}=10\ell$, ${\it\delta}t=0.1$, ${\it\varphi}=0.01$, ${\it\gamma}=0.98$ and ${\it\epsilon}=0.01$. The notation is defined in § 2 and appendix A.

Figure 7

Figure 7.Comparison of the quantitative response of the Aoki–Couzin model with and without hydrodynamic interactions in terms of the number of agent collisions over time. A collision is detected whenever the distance between two agents is less than $2\ell$. Red and blue correspond, respectively, to the ‘dynamically parallel group’ and ‘highly parallel group’ behavioural rules (Couzin et al.2002). Blank and solid circles refer, respectively, to simulations with and without hydrodynamics.

Figure 8

Figure 8.The three different parameterizations for the internal structure of the school: we choose to investigate (a) diamond configurations parameterized by $\boldsymbol{p}=\{b,h,{\it\beta}\}$, (b) rectangular configurations parameterized by $\boldsymbol{p}=\{b,h,{\it\beta}\}$ and (c) hexagon configurations parameterized by $\boldsymbol{p}=\{b,{\it\beta}\}$. In (c), all agents are equidistant to their nearest neighbours. The angle ${\it\beta}$ represents the difference in direction of travel with respect to the axis defining the structure. Panels (d–f) show the initial guesses, where the fitnesses $f\approx 0$, and panels (g–i) show the best optimized solutions for the parameters of the internal structure defined according to (a–c). The population size is $p=100$. Streamlines are shown in blue. The optimal parameters are (g) $\boldsymbol{p}_{\mathit{best}}=\{49.70\ell ,2.55\ell ,0.02\}$, (h) $\boldsymbol{p}_{\mathit{best}}=\{45.90\ell ,5.20\ell ,-0.03\}$ and (i) $\boldsymbol{p}_{\mathit{best}}=\{37.25\ell ,0.52\}$, corresponding to the fitnesses $f_{\mathit{best}}=-0.175,-0.184$ and 0, respectively. Swimmers tend to form striated patterns in diamond and rectangular configurations; in the case where dipole swimmers are required to be equidistant from one another, there is no apparent hydrodynamic benefit from staying in the collective. Simulations are run in a $[0,1]\times [0,1]$ box with $\ell =5\times 10^{-4}$ (or $\ell =1\times 10^{-4}$), $v^{0}=5\ell$, ${\it\rho}^{T}=10\ell$, ${\it\delta}t=0.1$, ${\it\varphi}=0.01$, ${\it\gamma}=0.98$ and ${\it\epsilon}=0.01$. The notation is defined in § 2 and appendix A. We note that the model relies on the assumption that swimmers are separated more than one characteristic length $\ell$ from one another (Tchieu et al.2012). This condition is met here with the minimum distance of $2.55\ell$ for (g), corresponding to the spacing $b$ in our parameterization. This implies that swimmers could pack even tighter, but such a scenario is found to be suboptimal.

Figure 9

Figure 9.(a) Evolution of the cost function $f$ versus the number of cost function evaluations. The population size per generation is $p=100$; blue and green lines correspond, respectively, to the best solution in the current generation and the best solution ever. Also shown are the school formations corresponding to (b) the starting search point ($\boldsymbol{p}_{1}=\{3,1,1,1.57\}$, $f_{1}=-0.005$) and (c) the best point ($\boldsymbol{p}_{\mathit{best}}=\{1.35,0.5,1.98,2.42\}$, $f_{\mathit{best}}=-0.067$). The additional circulation change is computed for each swimmer and coloured accordingly. Simulations are run in the domain $[0,1]\times [0,1]$ with $\ell =5\times 10^{-4}$, $v^{0}=5\ell$, ${\it\rho}^{T}=10\ell$, ${\it\delta}t=0.1$, ${\it\varphi}=0.01$, ${\it\gamma}=0.98$ and ${\it\epsilon}=0.01$. All configurations correspond to a simulation time of $t=100$. The notation is as defined in § 2 and appendix A. Panel (d) shows streamlines of the starting search point and panel (e) the best solution configuration. Given in panel (f) is a detailed view of the dashed box in (e), with the dipole swimmers represented as black dots. As can be seen from (f), it is advantageous for the dipole swimmers to line up in striated patterns to aid in creating a favourable flow in the direction of travel. Indeed, the higher streamline density in this direction is the footprint of a stronger longitudinal velocity field. We note that the dipole model relies on the assumption that swimmers are separated more than one characteristic length $\ell$ from one another (Tchieu et al.2012). This condition is met here with a minimum distance of $1.35\ell$ (first entry of the parameter vector $\boldsymbol{p}_{\mathit{best}}$). This implies that swimmers could pack even tighter, but such a scenario is found to be suboptimal.

Figure 10

Figure 10.Comparison between (a) the square formation ($f=0.004$), (b) the diamond formation ($f=0.004$) and (c) the optimal solution ($f_{\mathit{best}}=-0.067$). The additional circulation change is computed for each swimmer and coloured accordingly. Simulations are run in the domain $[0,1]\times [0,1]$ with $\ell =5\times 10^{-4}$, $v^{0}=5\ell$, ${\it\rho}^{T}=10\ell$, ${\it\delta}t=0.1$, ${\it\varphi}=0.01$, ${\it\gamma}=0.98$ and ${\it\epsilon}=0.01$. The notation is as defined in § 2 and appendix A.

Figure 11

Figure 11.Time evolution of the sum of all errors between all agents and their respective assigned target points. The non-adaptive school simulations (dotted lines) of diamond (red), square (blue) and random (black) formations correspond to figure 6(b,e,h), respectively. The adaptive school simulations (bottom set of solid lines) of diamond (red), square (blue), and random (black) formations correspond to figure 6(c,f,i), respectively. The error is defined as $e=\sum _{n}^{N}d_{n}/\ell$, i.e. the average distance to the target points.

Figure 12

Figure 12.Parameterization of the shape of the school and a representative subset of candidate solutions. The parameterization generates the solid line (blue) and is reflected to create the symmetric complement (dashed line). The control points are depicted as red dots.