Noise-induced schooling of fish

In this project we want to simulate the dynamics of schools of fish and compare the results with those shown in [1]. In particular, we focus on a mean field model based on pairwise interactions.

Pairwise copying model

Denoting with $\mathbf{\hat{d}}_i(t)$ the direction of the $i$-th fish at time $t$ ($i=1, ..., N$)

$$ \mathbf{\hat{d}}_i(t) = \begin{pmatrix} \cos\theta_i(t) \\ \sin\theta_i(t)\end{pmatrix} $$

the angle $\theta_i(t)$ follows a stochastic protocol characterized by 2 underlying behaviour.

1. Spontaneous change of direction
Every fish can spontaneously change its direction at a constant rate per unit time $s$: $$ \theta_i \xrightarrow{s} \theta_i + \mathcal{N}_{trunc}(0, \epsilon, -\pi, \pi) $$ where $\mathcal{N}_{trunc}(0, \epsilon, -\pi, \pi)$ is a truncated normal distribution with zero mean, variance $\epsilon$, normalized over the integral $(-\pi, \pi)$.

2. Pairwise interaction
At a different rate $c$, a given fish $i$ selects at random another fish $j$ from the whole school and copies it: $$ \theta_i +\theta_{i\neq j} \xrightarrow{c} 2\theta_j $$ In this case we are not considering local interactions, instead we are assuming the system is "mean field" or "fully connected".

Simulation

Regarding the values of the general and model parameters, we use those reported in [1]. In particular we set $s=0.25$ and $c=4$. Then, we define the following variables:

Group polarization

The group polarization $$ \mathbf{M}(t_n)=\frac{1}{N}\sum_{i=1}^{N}\mathbf{\hat{v}}_i (t_n) = \frac{1}{N}\sum_{i=1}^{N} \begin{pmatrix} \cos\theta_i(t_n) \\ \sin\theta_i(t_n)\end{pmatrix} $$

measures the degree of alignment of the group at time $t_n$. We compute it at each time step using the results of the simulation and we plot the time series of $|\mathbf{M}|$ and the corresponding probability density distribution.

Time series

Probability density

References

[1] Jhawar, J., Morris, R.G., Amith-Kumar, U.R. et al. Noise-induced schooling of fish. Nat. Phys. 16, 488–493 (2020). https://doi.org/10.1038/s41567-020-0787-y

Created in deepnote.com Created in Deepnote