Abstract
Coordinated motion in animal groups has predominantly been studied with a focus on spatial interactions, such as how individuals position and orient themselves relative to one another. Temporal aspects have, by contrast, received much less attention. Here, by studying pairwise interactions in juvenile zebrafish (Danio rerio)—including using immersive volumetric virtual reality (VR) with which we can directly test models of social interactions in situ—we reveal that there exists a rhythmic out-of-phase (i.e., an alternating) temporal coordination dynamic. We find that reciprocal (bi-directional) feedback is both necessary and sufficient to explain this emergent coupling. Beyond a mechanistic understanding, we find, both from VR experiments and analysis of freely swimming pairs, that temporal coordination considerably improves spatial responsiveness, such as to changes in the direction of motion of a partner. Our findings highlight the synergistic role of spatial and temporal coupling in facilitating effective communication between individuals on the move.
Subject terms: Computational biology and bioinformatics, Biological physics, Animal behaviour, Dynamical systems
It is known that spatially localized interactions can give rise to self-organized collective motion. Here, by studying pairwise interactions in juvenile zebrafish, authors reveal the role of reciprocal temporal coupling and find that temporal coordination considerably improves spatial responsiveness, such as reacting to changes in the direction of motion of a partner.
Introduction
Collective motion underlies many important biological processes across scales in biology1. As a consequence, the mechanisms that give rise to coordinated motion have received considerable attention, connecting theoretical principles2–6 to experimental data for a wide range of systems, including cells forming tissues7,8, the onset and maintenance of swarming in insects9–11, schooling in fish12–19, flocking in birds20–22 and the formation of mobile aggregations in humans23–25.
Such studies have emphasized the role of relatively local (and thus self-organized) spatial interactions among system components (e.g. cells/organisms), with evidence having been found for multiple types of spatial interaction, including those that depend on distance (so-called metric interactions)26, a fixed number of individuals irrespective of their distance (topological interactions)20 and interactions that explicitly depend on sensing, such as visual perception, of others (sensory interactions)15. Consequently, it is widely appreciated that the spatial structure of interactions has important consequences to information flow in groups, such as waves of changing velocity that characterise response to both attractive and aversive stimuli, such as stimuli associated with food15 or a localised threat27, respectively.
By contrast, relatively little work has considered the role of temporal coupling (coupling in time) in the regulation of collective motion, or the feedback processes that may exist between spatial and temporal coupling in groups. In schooling fish, a common model for investigating collective motion among animals28, it has, however, been shown that some species do regulate temporal aspects of their interactions. Banded killifish (Fundulus diaphanous), for example, exhibit regular, periodic oscillations in swim speed (that occur over a slower timescale than their tail beat frequency), and exhibit a tendency to remain out of phase in relation to their nearest neighbours. It was speculated that this systematic cycling of relative spatial positions among near neighbors may allow fish to better detect changes in the speed and/or heading of others29. Evidence has been found that suggests that adult zebrafish (Danio rerio), while not exhibiting clear oscillatory dynamics, exhibit burst-and-glide dynamics in which turns are made during the active acceleration, and inertia and friction are largely responsible for the deceleration (the passive glide). It is argued that when fish are passive during decelerations, they may collect valuable social information, but that it is during bursts when this information is enacted upon. Thus the response to others may occur in limited time periods, but the timescale where information is obtained from the environment could not be explicitly determined17.
For juvenile fish, the relatively high viscosity of the water results in burst-and-glide becoming extremely pronounced-appearing as highly abrupt jerky locomotion. As with other sensory systems that must exhibit sudden movements, such as during eye saccades, environmental sensing has been found to be severely compromised during periods of high acceleration and speed30. As a consequence, sensory suppression, and/or cancellation of neural outputs during such periods (reafferent cancellation) is ubiquitous across sensory modalities and species31,32. For sensing via their lateral line (which detects flow and pressure changes in water in very close proximity to the body) it has recently been shown that young (7 days post fertilization) zebrafish already exhibit a graded subtraction of self-generated motion, thus maximally-silencing reafferent sensory signals during the most vigorous tail activity during each burst33. Rapid self-generated motion will also tend to induce motion blur to the visual field that are likely not possible to compensate for by eye movements (which also introduce motion blur—silenced through saccadic masking)34.
Thus, despite multiple possible mechanisms having been suggested, the nature and functional consequences of time-varying sensing and motor response in regulating collective behavior remain largely unknown. One of the key issues has been that establishing the time-varying reciprocal coupling of interaction strength among individuals, even when only considering a pair, proves very challenging. For example, motor decisions being made in relatively discrete windows of time, does not inform us about possible windows of perception, or the timescale that informs each discrete motor decision, is obtained17. The changing strength and direction of reciprocal social coupling can make the causal time-varying structure of interactions hard to infer.
Recent advances in virtual reality (VR) technology for freely-moving animals, however, offer the possibility to both control the causal structure of social relationships among individuals, including insects, mammals, and fish18,35, and to test specific hypotheses regarding the nature of social interactions in-situ. Thus, similar to how the dynamic patch clamp method has allowed principled exploration of the reciprocal coupling between neurons, virtual reality sets the scene for a dynamic social clamp paradigm. First proposed to study real-time human interactions, but emphasized to be a powerful tool across systems and scales of biological organization36, this approach allows real-time bidirectional interactions between animals and empirically-derived, or empirically-grounded, models of coordination dynamics.
Here, we employ this dynamical social clamp approach to reveal key aspects of temporal social coupling during the regulation of collective motion, and in response to sudden changes in salient social stimuli, using pairs of interacting juvenile zebrafish (24–26 days post fertilization; body length of 9-11 mm) as our model biological system. Understanding the coordination of pairs of individuals is a valuable starting point, both for tractability, due to the rich dynamics we see in pairs, and because swimming in pairs is the most common configuration found in most natural fish populations28, and it has been found that even when schooling individuals tend to swim close to, and behaviorally couple most strongly with, a single neighbor37.
By embedding real fish into immersive, volumetric (holographic-like) environments in which they can freely interact with a virtual conspecific (with whom they interact in the same way as they do to real conspecifics18), whose motion can be precisely controlled in both open- and closed-loop (see18,35 for details) we were able to overcome the inherent limitations of purely observational studies. Combining this with traditional experiments, we can (i) establish, from data of freely swimming pairs, an experimentally-derived model of how zebrafish couple behavior, temporally, with a partner, and (ii) (in both open- and closed-loop) test our experimentally-derived model, revealing the importance of bidirectional temporal coupling in regulating naturalistic collective motion, and, finally, (iii) (in open-loop) demonstrate the functional significance of temporal interactions in facilitating effective response to rapidly-changing spatial information—sudden changes in direction—a vital feature for effective motion coordination in mobile groups (see Supplementary Fig. 1 for an overview of the methodology).
Results
Temporal coordination in pairs of juvenile zebrafish
Freely-swimming juvenile zebrafish swim in characteristic pulsatile movements corresponding to their burst-and-glide gait (Fig. 1A). When relatively far (> 6–7 cm) from each other, such-aged zebrafish do not school (with a sharp decrease in social interaction strength at around 5 cm, and a tendency to swim on the same plane; see18). As is common among many fish species, individuals exhibit periods of time of highly-coordinated motion when relatively close, and uncoordinated motion when relatively far (termed fission-fusion dynamics28,38) while typically swimming with different speeds (Fig. 1B). Here we tracked (using TRex39) 29 pairs of zebrafish swimming freely in two different arenas: a square 30 × 30 cm2 arena, and a circular arena with a diameter of 28.7 cm, with water depth ~0.5 cm in both cases.
Fish were considered to be socially-isolated using a conservative inter-individual distance of > 10 cm18; we also confirmed this separation by comparing the cross-correlation between close-by, far-away, and randomly shuffled pairs of fish, and their behavior differed significantly (Fig. 1C; Kolmogorov-Smirnov test: p < 0.001, refer to Fig. S2 for a detailed explanation of the correlation technique and Fig. S3 for the statistical procedure). While each fish exhibits variable speed over time (due to their gait), the time intervals (lags) between successive bursts also exhibit a broad distribution of values (Fig. 1D).
When in close proximity and schooling most strongly—at swim speeds that are above their typical speed when isolated, of >6 cm/s (conditions under which social interactions in zebrafish, and other species are most pronounced, see:14,16,40), fish are found to exhibit prominent temporal coupling with respect to the timing of their bursts, exhibiting a characteristic (shared) time-lag, and out-of-phase (i.e., alternating) relationship, between bursts (as evident in the symmetric curve in Fig. 1C). This temporal coupling is characteristic of out-of-phase coupled oscillators, a common temporal motif underlying the regulation of collective dynamics of other biological systems, including in some conditions neurons41, among neural groups42 or between humans43.
We note that regular temporal dynamics at a collective level need not imply strong, or any, rhythmic behavior on the part of system components (such as juvenile zebrafish, which show irregular, and thus non-rhythmic bursts; Supplementary Fig. 4). Sustained rhythmic coupling between system components can, for example, emerge spontaneously when these components mutually excite one another (such as a neuron’s firing increasing the probability of another to whom it is connected to subsequently fire), but also exhibit a refractory period (such as the inability for a neuron to fire again due to the necessity for ions to be transported back into the cell). In other neural systems it arises when cells inhibit one another but then exhibit post-inhibitory rebound44, with alternating bursting of neural activity being a dynamically-stable state resulting from the interactions45. Similar dynamics are ubiquitous and are found also in animal collectives, such as ants (where isolated individuals exhibit temporally chaotic activity, but as a colony collectively synchronize activity via contact-based mutual excitation)46–48 or spiders (which exhibit synchronized movements in pursuit of prey)49–51.
Quantifying the phase response curve (PRC) suggests a putative mechanism of coupling
To establish insights into the mechanism underlying the observed out-of-phase coupling in our paired-fish system we first quantified its phase response curve (PRC)52,53. PRCs have been employed to characterize a wide range of oscillatory systems, including cardiac rhythms54, networks of neurons55, coupling of circadian clocks56, and in temporal coordination of animal signalling, such as flashing in fireflies57 and singing in crickets58. For both linear and nonlinear dynamical oscillating systems valuable information regarding the mechanics of interactions can be extracted by studying the individual components—in our case the individual fish—and simplifying their oscillatory behavior (if appropriate) to single pulses. Note that this does not make any implications about which aspect of the oscillating cue/signal is causally influencing the response, rather it allows us to quantify the overall temporal relationships exhibited, from which we can then employ biological insights to generate testable hypotheses.
Specifically, the PRC of our system can evaluate the transient change (phase response) in a focal individual’s bout duration—the time lag (T) of a focal fish (i) between its previous burst and its subsequent burst, i.e., period length—as a function of the delay in time (τ) between its former burst and that exhibited by the other fish. Thus it evaluates how the burst exhibited by an individual to which it is socially-coupled influence its timing of itself producing another burst.
In doing so (Fig. 1E) we see that fish tend to be oblivious (unresponsive), in terms of the timing of their subsequent burst, if their neighbors burst followed theirs closely in time (when τ < 0.1 s) henceforth referred to as the unresponsive temporal window. This is consistent with the hypothesis that during the rapid acceleration and speed of the burst phase, fish may be transiently unable to obtain salient sensory input59.
Following this short unresponsive interval, the PRC shows fish employ the time difference between their burst, and that observed to modulate the timing of their subsequent burst (up to time lags that exceed the typical timing interval range exhibited, being approximately 0.23 s). We refer to this as the responsive temporal window. We can approximate the observed trend here as a linear relationship of y = 2x (the red dashed line in Fig. 1E). When comparing the χ2 values of the fit to the actual data with shuffled pairs, we see a significant statistical difference with a Kolmogorov-Smirnov test: p < 0.001 (Supplementary Fig. 5). Also, performing a linear regression analysis for the data between 0.1 s < τ < 0.4 s for each pair separately, we report a mean regression coefficient of 1.71, with R2 = 0.48, showing that a focal individual’s response can be approximated as it waiting for the same interval, the τ it just experienced, again, before exhibiting its own burst. In other words, this simple functional form can enable an out-of-phase relationship to emerge, even amongst irregular (non-isochronous) oscillators. When one reacts early the other will tend follow suit, or when one is late the other will also be inclined to delay its own response.
One-way information flow is insufficient to explain the observed synchronized temporal structure of real pairs
The above analysis suggests that fish may employ simple rules of thumb to regulate temporal coordination when schooling—but is this explanation sufficient to explain the observed temporal dynamics? If fish keep track of the time interval between their burst, and that of a conspecific (τ), and then add that time interval to their internal timer employed to decide when to produce their next burst, we may expect to see this same timing regulation to be exhibited in open-loop experiments with a virtual conspecific (Fig. 2A); i.e., where the real fish can be influenced by the virtual fish, but not vice versa (see closed-loop vs. open-loop in Fig. 2B vs. 2C). In other words, if one-way information flow is sufficient for temporal coupling, we would expect the timing of the focal fish’s tailbeats to alternate with those of the virtual fish. Thus, we would expect to see two peaks in the correlation function symmetrical about τ = 0.
To ask whether this is the case we investigated how real fish time their bursts in response to virtual conspecifics which exhibit different inter-burst intervals, across the natural range exhibited by pairs of real fish (240 ms–360 ms, Figs. 1D and 2C). We found that, irrespective of the burst-burst frequency exhibited by the virtual fish, when the real fish interacted with the virtual fish (i.e., were mostly in close proximity with a distance of < 4 cm, as with the analysis of 2 RF) they maintained a constant temporal lag of approximately 0.32 s between the burst of the virtual fish and their own subsequent burst (we fit a Gaussian to each of these peaks to reliably detect their maxima—for each VF period length, with 95% confidence bounds, these were: TV=240 ms: 311.8 ms, ± 5.7 ms; TV=270 ms: 327.6 ms, ± 10.8 ms; TV=300 ms: 332.9 ms, ± 8.7 ms; TV=330 ms: 330.9 ms, ± 5 ms; TV=360 ms: 323.3 ms, ± 3 ms) (Fig. 2D). Thus, if only provided unidirectional information flow, zebrafish do not exhibit the out-of-phase temporal coupling observed in real fish pairs (bidirectional information flow; Fig. 1C).
Computational model of unidirectional and bi-directional temporal coupling
To investigate why this may be the case we developed a simple computational model of the mechanism suggested by the PRC analysis, taking into account the sources of stochasticity observed in the natural system; notably the probabilistic nature of individual response and the irregularity exhibited in the inherent timing of bursts. This model captures the three core features (rules of thumb) suggested by our analyses of real fish pairs (Fig. 1).
Rule 1: Individuals are unresponsive to the burst of another if experiencing it within t ≤ 0.1 s after their own burst (t = 0).
Rule 2: If experiencing the burst of another individual after the unresponsive period, but still within a reasonable waiting time (t < 0.4 s; to ensure continued motion), individuals have a probability of adjusting the timing of their subsequent burst (if P ≤ β, where β defines the strength of the interaction), and if they do so they delay it by the estimated timing difference, τ, between these events, i.e., they beat at t = 2τ. Thus their inter-burst interval, T is 2τ.
Rule 3: Otherwise, as individuals are inherently stochastic with respect to the timing of their bursts (Fig. 1D); we assume that they employ a stochastic process, based on the observed irregularity of intrinsic inter-burst-intervals exhibited by the fish (Fig. 1D), to determine when to produce their next burst. Thus, Rule 3 captures the intrinsic capability of fish to burst irrespective of social cues.
We first consider the scenario where there exists only unidirectional flow; simulated individual A responds, probabilistically (by following the above rules), to the bursts exhibited by simulated individual B, but not vice versa. That is, B is the driver of the system dynamics, and is assumed to exhibit bursts at a fixed interval, but over a range of frequencies, with high frequencies corresponding to short inter-burst intervals and vice versa (to allow comparison to our open-loop experiments).
Note that we studied the behavior of the model with increments of β values over its full range (see Supplementary Figs. 6–9 for multiple parameter space analyses). Since our results are robust to this choice (see Supplementary Figs. 6–9), we present a single value (β = 0.3) here (e.g., Fig. 2E), for simplicity, and without loss of generality. In addition, our findings are robust to both the starting conditions (initial lag) (Supplementary Figs. 10, 11) and, especially in the presence of stochasticity, to the specific value chosen for the slope of the PRC (Supplementary Figs. 12, 13). This demonstrates that out-of-phase coupling is robust in the face of inherent errors associated with perception and action.
We find that unidirectional information flow is insufficient to allow A to achieve an out-of-phase coupling with B, and instead—as in our experiments with unidirectional information flow—A will tend to adopt a fixed, constant, temporal lag with respect to B, irrespective of the frequency of bursting exhibited by B (Fig. 2E). Thus, our experimental results under conditions of unidirectional information flow are consistent with the proposed model.
If we allow bidirectional information flow between A and B in the model, however, we find that this alone can recover the observed out-of-phase coupling of bursts exhibited by real fish pairs (Fig. 3A, B). This suggests that bidirectional interactions are required in order to facilitate the temporal coupling observed in real fish pairs.
In order to test this hypothesis, we also evaluated our in-silico model, in-virtualis, employing the dynamical social clamp approach to allow reciprocal (closed-loop) interactions between a real fish and a virtual conspecific, the latter employing our above-proposed model to coordinate its bursting dynamics. We found two significant peaks in this correlation function, akin to what appears in real fish pairs and the model (Fig. 3C; Kolmogorov-Smirnov test comparing to randomization: p < 0.001). Thus, our model—despite its simplicity—captures the essential features employed in zebrafish temporal coordination. Reciprocal coupling is necessary, and sufficient, to observe the temporal dynamics exhibited by pairs of individuals.
Functional consequences of temporal coupling
While much has been revealed regarding spatial coupling among individuals in groups, such as that directional information tends to flow unidirectionally, from front to back, but that speed changes flow bidirectionally14, we know comparatively little about the role of temporal coordination in mobile animal groups. It is apparent, from our above analysis, that individuals are incapable of responding, in terms of timing, to bursts exhibited by a partner if they occur very shortly (<0.1 s) after their own burst. Whether the rules of thumb exhibited for temporal coordination impact the responsiveness of individuals to changing social conditions, such as turning by their partner, over longer timescales is unknown.
To test the possible functional consequence of temporal relationships between a leader and a follower swimming in close proximity, we investigated how a followers’ responsiveness to a sudden change of direction (a turn of 60 degrees) of a (virtual) partner (exhibiting multiple fixed inter-burst intervals, Fig. 2C) is impacted by the temporal relationship between them, controlling for spatial factors like proximity, or degree of alignment, prior to the turning event (Fig. 4A, Supplementary Figs. 14 and 15, and see Methods for details).
We found that individuals were considerably more responsive to the direction change of their virtual partner, and thus able to maintain close spatial proximity to them, if, prior to the turn, they exhibited the specific temporal relationship that we found in the open loop experiments (Fig. 2D). By comparing turning events with and without the specific temporal relationship, we found significant differences in the distances between the RF and VF for time intervals shortly after the turn (proportion test: −0.5 s < t < 0 s: p = 0.1578, 0 s < t < 0.5 s: p = 0.0010, 0.5 s < t < 1 s: p = 0.0010, 1 s < t < 1.5 s: p = 0.0020, 1.5 s < t < 2 s: p = 0.0001; N = 423 for the specific, and N = 144 for the nonspecific temporal relationship cases) (Fig. 4B) and while before the turn pairs were swimming in close proximity, the success of staying in close proximity was shown to not be influenced by spatial factors prior to the turn (Supplementary Fig. 15).
We finish by returning to our observational data of pairs of RF, and ask whether different temporal coupling regimes might be associated with certain spatial configurations, and whether such spatial configurations may also impact information flow/influence. We find that when their coupling is approximately out-of-phase, they tend to swim side by side (Fig. 4C and Supplementary Fig. 16; projecting the 2D distributing in each panel on a circular axis, and then computing a circular Kuiper test, we obtain p = 0.001). We note that it has been suggested that such side-by-side swimming may indeed be beneficial for social influence. Firstly, it facilitates reciprocity of information flow (any other configuration would be asymmetric in this respect), and furthermore, based on geometric principles, it has been shown that this configuration can allow individuals to optimize their detection of both speed and heading changes of a partner by utilizing perceived angular velocity and loom (approaching/receding) on the retina, respectively60.
Discussion
Analysis of collectives has proven to be a daunting task, with a myriad of interactions all happening simultaneously. Here we zoomed in to focus on pairwise interactions, with the hope of elucidating their dynamics as a starting point for understanding emergent collective-level outcomes. This in itself is not trivial; reciprocal feedback makes establishing causal relationships of social influence challenging. Nonreciprocity, in the physical sense (the force exerted by one body on another wouldn’t be reciprocated equally), has recently been highlighted as a key ingredient in out-of-equilibrium systems61. Although behavioral reciprocity isn’t strictly equivalent, here we provide, previously unattainable, evidence of how a real system operates in this regard.
Taking inspiration from the study of coupled-oscillators, we mapped the PRC of our system (a graphical method that was, to the best of our knowledge, never used in the context of pairwise movements). Owing to this, we were able to explicitly detect an unresponsive window of time in the burst-and-glide cycle of the fish, and to derive a simple linear mode of response in the responsive window. Due to these direct measurements, we were able to avoid unnecessary a priori assumptions in our modeling. Our confirmation of the plausibility of the model is twofold—as two agents interacting in-silico, and as a novel hybrid, of essentially the same agent (now rendered as an avatar virtual fish) interacting with real fish.
We found that coordinated motion in zebrafish relies on two-way coupling. This is in contrast with other animal collectives displaying coupled oscillator dynamics such as certain firefly swarms, where one-way interactions are sufficient—a firefly can entrain to a periodic artificial light62. One reason for this difference could be the fact that these fireflies are relatively isochronous, which can enable a nonreciprocal agent (not influenced by the firefly) and the firefly to fall in step. Bi-directional interactions have their possible advantages, though. It allows both parties to reach a consensus over the selected frequency at which they operate. Therefore how synchronization (or anti-synchronization) emerges in nature can take a variety of forms, and finding where common solutions/algorithms are utilized across the tree of life (or not, and the reasons thereof) is of importance.
We performed extensive analyses of our model. By adding an additional parameter γ to our model, we demonstrate a continuous transition from one- to a two-way interaction. With further analysis, we also showed that the model is robust to specific parameter values and will work also with a wide range of different slope values, with noise playing a vital role here—the added stochasticity stabalizes the system.
We also provide evidence from VR experiments that temporal coupling influences spatial responsiveness. Further suggestive evidence comes from analysis of real fish pairs, which revealed substantially different spatial configurations at times of different temporal coupling regimes. These findings open up new theoretical and experimental directions of inquiry. While, to date, many modeling studies have focused on metric vs topological interactions, here we suggest that the interplay of spatial and temporal factors play an important role, and much is left to fully understand how this manifests itself in entire collectives.
Another theoretical avenue that has gained attention of late, is so-called Swarmalator systems63–65, whereby collective motion is combined with temporal coupling. Our results offer an example of such a system in the real world, and crucially, how it may differ from the proposed toy-models. As mentioned, in our case the internal oscillator is the speed of the agent (fish), the oscillation is non-isochronous, and the coupling tends to be in an alternating fashion.
Lastly, the application of VR environments opens up powerful opportunities for gaining insight into the dynamics of social influence underlying collective behavior. As mentioned, this direction already bore fruit in the study of human interactions36. The application of various experimental methods (robotics, VR, etc) that enable researchers to mimic animal conspecifics can pave the way for a much deeper understanding of coordination dynamics. An obvious next step would be to utilize these experimental paradigms with zebrafish in an attempt to understand the neural underpinnings of temporal coupling dynamics.
Methods
Fish
All experiments were conducted on 1 cm ± 0.1 cm long zebrafish of age 24 to 26 days post-fertilization raised in a room at 28 °C on a 12 h light, 12 h dark cycle (light switching on and off and 7 am and 7 pm). The fish were bred and raised by the animal care staff of the Department of Collective Behavior at the Max Planck Institute of Animal Behavior and the University of Konstanz. Fish were transferred to the experimental room at least 12 h prior to the experiments in water from their holding tanks. This ensured that the water quality in the experimental room was the same as in their holding facility. This water was also used in the experimental setups (either the arenas for 2 RF experiments or the fishVR setup for virtual reality experiments) where water changing was done once a day. All the fish were naïve, and chosen at random from their holding tanks. All experiments were conducted in accordance with the animal ethics permit approved by Regierungspräsidium Freiburg, G-17/170, G-17/46, and G-21/135.
Fish length measurement
Fish length was measured by recording them using a custom-built set-up where we mounted a camera above a petri dish. Using the TRex software39, we measured the length of the midline of the fish.
Experimental conditions
Room temperature was kept at 26 °C. Experiments were carried out during the day, between 07:00–19:00.
Pairs of RF
We tracked pairs of juvenile zebrafish in two experimental conditions: (A) a 30 × 30 cm square arena or (B) in petri dishes of 28.7 cm diameter (circular arena). In both conditions, water was filled to ~0.5 cm depth, to allow the fish to swim at ease, but confined to a quasi 2D environment. The fish were filmed from above at 100 fps with Basler cameras (acA2040-90um 2K NIR) and lit from below with an array of infrared lights. The set-up was lit from above with visible light to allow the fish to see each other and the environment, with DÖRR DLP-2000 LED. After being transferred to the arena, each individual first got 5 min for acclimatization (in condition A), and 20 min (in condition B). In condition A, we executed 10 sessions with 10 different pairs, each for 55 min, between 6.12.2017–22.01.2018. In condition B, we recorded 19 pairs, each for 100 min between 7–14.09.2020. The fish were tracked using the TRex software39. To reliably detect the fish, we used an intensity threshold of 22 (on a gray scale from 0 to 255; to detect only objects that had similar brightness as the fish) and blob sizes in the range of 0.001 to 1 (to filter for specific object sizes which are around the size of the fish). The videos were cropped for the size of the arena.
VR experiments
Experiments were conducted in a VR setup produced by loopbio GmbH. One can refer to Stowers et al. (2017)35 for the details of the fishVR setup. Fish were tested in a spherical cap-shaped acrylic bowl of a maximum of 34 cm diameter. After transferring to the test arena, each individual first had some acclimatization time, and then the VR stimulus began (a detailed description below). The VF model (its visual appearance) that we used in all experiments is the same as in Stowers et al., 201735. In all VR experiments, only a single VF was presented.
VR - Nonreciprocal VF
In total, 74 individuals were tested in the no-turn experiment, and 77 in the turn experiment (the recording in a few trials failed). Each fish first had 5 min of acclimatization time. Then the experiment with 1 VF with no turns (no perturbations) occurred for 30 min, followed by 30 min of the experiment with the VF turns. Experiments were conducted between 23-30.5.2020.
The VF appeared in a random position within the bowl, 12 cm away from the planar (horizontal) centroid, oriented to face the centroid (with 0° pitch and roll). The VF was situated 3 cm below the surface of the water as in this region the projection is optimal and this allows for a long duration of swimming (compared with deeper positions due to the curvature of the bowl). The VF swam in a straight line through the 2D centroid of the bowl at that height. The speed of the VF was pre-defined according to fish kinematic statistics (Fig. 1B, D). We then generated typical burst and glide patterns with different frequencies, keeping the integral equal, so the average speed in the different frequencies was kept constant (Fig. 2C). After swimming for ~6 s it turned back to move along the same trajectory, but in the opposite direction (a 180° turn occurred when the VF reached a minimum of v, thus causing small variation in the exact duration of a straight path segment for the different frequencies). After a few sec (up to 1 min, depending on the experiment—explained below), the VF would disappear and reappear after a short break (5–15 s; randomly chosen duration) in a new random position, with a new random frequency (out of the five values used in this study).
- with no VF turns: In these experiments, the VF swimming continued for 1 min after which the VF disappeared and reappeared in a new position and frequency.
- with VF turns: These experiments are equivalent to the experiments with no turns (and were carried out subsequently), except for the following differences: after the first straight path segment followed by the 180° turn, the VF turned in a randomly selected direction (±60°; either left or right). The turn occurred in close proximity to the center of the bowl, timed at the VF’s tailbeat (thus slightly different for each frequency; the timing after the VF initially appeared was: T = 240 ms, tturn=9.6 s; T = 270 ms, tturn = 8.91 s; T = 300 ms, tturn = 9 s; T = 330 ms, tturn = 8.91 s; T=360 ms, tturn = 8.64 s). After the turn, the VF continued to swim in the same direction through the bowl and beyond, as the VF can, in principle, be projected to any position in space, even outside the borders of the bowl. The VF then disappeared and after a short break, a new frequency and location were selected as described for the no VF turn case.
VR - Reciprocal VF
These experiments were conducted between 05.02.2024–13.03.2024. In total, 67 individuals were tested. Individuals had 20 min for acclimatization, followed by 100 min of the actual VR experiment. The duration of the burst and glide of the VF was dynamically controlled according to the PRC rule or randomly selected from pre-collected periods of real fish (see below). The detailed burst-and-glide patterns of VF were controlled with a piecewise function:
1 |
Where v is the speed of the virtual fish at time t, a = 0.88, b = 0.188, c = − 10.5, and d = − 0.823 are fitted parameters. t = 0 represents the start of the period. Note that the start of the acceleration can happen when the VF has different instantaneous speeds. In general, when the virtual fish accelerates (its burst), it is by 0.88 m/s2.
According to the PRC we evaluate the next bout duration of the VF, namely when to start the next cycle with a burst. The bout duration of virtual fish is determined based on the time difference between the burst time of the VF and the burst time of the RF, τ.
2 |
Data analysis
Data processing and analysis were done with MATLAB versions 2020a and 2023b.
Speed calculation and filtering
The instantaneous speed was calculated using a five-point stencil method, then smoothed with a Savitzky-Golay filter with a window of 11 frames (=110 ms) and a polynomial order of 2.
Minima detection
The minima of the speeds (the start of each tailbeat) were detected using the find peaks function in MATLAB on −v. Minima that were above 5 cm/s were discarded as outliers. Also, minima that weren’t followed by a pronounced acceleration (100 ms after the minima the increase in speed was <2 cm/s) were also discarded to only account for actual bursts and not small variations in speed.
Temporal coupling correlation
Time windows of 100 frames (1 s) were extracted for each fish. In these times the fish had to be close to each other (Euclidean 2D distance < 4 cm for at least 0.75 s). The cross-correlation was calculated on a discretization of the speed, which is the timing of the minima (the timing of the bursts). This was calculated according to B ∈ {0, 1} where B = 1 when and , and B = 0 otherwise. Note that each B = 1 was cushioned with a Gaussian window, according to
3 |
Where L is the window length of 5 frames (=50 ms), and α is the width factor of 2.5. The correlation function then reads
4 |
We present the sum of all these cases. Due to the symmetrical relationships between the two RF, we treated all these fish as the focal fish.
The autocorrelation was calculated similarly to the cross correlation between two fish, only by using the fish with itself, that is
5 |
Statistics for the correlation function
We shift the correlation function C by subtracting it from its mean, more precisely
6 |
afterwards, we calculate the integrals of the resultant peaks in Cshift.
Co-moving frame of reference
We calculated the relative position of the neighbor similarly to14,66,where the focal fish is at the origin of this moving coordinate system (and in this case, the focal fish is facing east). To achieve this we applied translation and rotation transformations on the original coordinate system that was fixed to the environment (i.e., the bowl). By doing this, we can investigate where the neighbor is relative to the focal. To account for the burst-and-glide motion of the focal fish, which would result in bursty tracks even for a neighbor swimming on a straight path with constant speed, we implemented one addition, that the co-moving frame of reference followed the mean motion of the focal fish within each 1-sec-long time window (see Supplementary Fig. 16 for the full visualization). More precisely,
7 |
where v0 is the mean speed calculated from the first and last positions of the focal in this 1 s time window.
Shuffling
Randomizations were generated by shuffling the trajectories of the individuals—pairing individuals (whether real or virtual) that hadn’t participated in the same experimental trial (pairing between a focal individual and another individual randomly selected from another pair) and treating them as if they had been swimming together. These randomized trials were analyzed identically as real pairs. For each case, we performed 100 randomizations.
Statistics
For the proportion test, to calculate the test statistic we used the following equation
8 |
Where P is the proportion of values for each specific case. We then determine if the result is significant (the p-value) with the cumulative distribution function (CDF) of the standard normal distribution, evaluated at z.
All statistical tests, where appropriate, were two-sided.
Handling errors in tracking and VR
To account for errors in detection from the tracking algorithm of the pairs, we omitted from our analysis all data with undefined x, y, or speed values. For the VR experiments, we omitted cases where we detected errors in the VR output, whereby the speed of the VF wasn’t according to what we had assigned. That is, if we detected too low or too high speeds (<0.001 m/s or >0.11 m/s) for more than 5 frames within our window of analysis (100 frames in the case of the nonreciprocal VF with no VF turns and 300 frames in the case with the VF turns). In the case of the reciprocal VF, where the speed profile isn’t fully determined prior to the experiment, we omit cases according to extreme values of VF acceleration (numerical differentiation of the speed)—that is, if we had more than 5 frames of >0.05 m/s2 or <−0.05 m/s2 in a 100 frame window. Overall the ratio of values omitted, over the total number of values (omitted cases and used cases) was 0.25 for the nonreciprocal VF and 0.14 for the reciprocal VF experiment.
Simulation
The simulations were designed to test the effect of the parameter settings and the directionality of the information flow on the temporal coupling in our model. We only concentrated on the temporal aspect of the behavior, so movement in space was not implemented.
We ran one- and two-way interactions. In the two-way scenario, both oscillators behaved responsively according to the model described in Rules 1–3, with β capturing the level of responsiveness. In case of β = 1 they perfectly follow the PRC response, and in case of β = 0 they choose their timing entirely randomly (without taking into account the timing of their neighbor).
In the one-way scenario, one of the oscillators behaved responsively as described above, with the other oscillator ignoring the timing of its neighbor (either acting as a metronome or with random oscillation). We added Gaussian noise with a standard deviation σ = 3 (in simulation steps) to the responsive oscillator in both the one- and two-way cases. In all models, one timestep is analogous to 0.01 s in the experiments.
Supplementary Figs. 6–9 and 12, 13 show results for two oscillators in multiple scenarios. For each case, we ran 20 realizations, each for 101,000 timesteps, where we analyzed the last 100,000 timesteps, to account for the transient dynamics. Supplementary Fig. 10 is a parameter space exploration of the transients to assess the influence of the initial conditions (the initial lags) on the dynamics. Supplementary Fig. 11 is an exploration of varying degrees of interactivity. In both cases, we looked at the phase differences after 1000 timesteps. We ran 1000 realizations of each model for every combination of the parameter values.
Reporting summary
Further information on research design is available in the Nature Portfolio Reporting Summary linked to this article.
Supplementary information
Acknowledgements
We are grateful to the animal care staff at the University of Konstanz, including Christine Bauer, Jayme Weglarski, Dominique Leo, and Alexander Bruttel for help in conducting the experiments, as well as Laura Schröder for her assistance. G.A. acknowledges the International Max Planck Research School for Organismal Biology for the graduate school community and access to courses and resources. M.N. acknowledges the MTA-ELTE Statistical and Biological Research Group, Eötvös Loránd University, and I.D.C acknowledges the Rothschild Distinguished Fellowship from the Isaac Newton Institute for Mathematical Sciences as well as the Max Planck Society. The following authors acknowledge the following grants: - Hungarian Academy of Sciences Grant 95152; M.N. - The Hungarian National Research, Development and Innovation Office grant no. K 128780; M.N. - Isaac Newton Institute for Mathematical Sciences for support and hospitality during the programme ‘Mathematics of Movement: an interdisciplinary approach to mutual challenges in animal ecology and cell biology’, supported by the EPSRC Grant Number EP/R014604/1; M.N. and I.D.C. - Sino-German mobility grant M-0541; L.L. - Messmer Foundation Research Award; L.L. - Office of Naval Research Grant N00014-19-1-2556; I.D.C. - Horizon Europe Marie Sklodowska-Curie Actions (860949); I.D.C - Struktur- und Innovationsfonds für die Forschung of the State of Baden-Württemberg, the Deutsche Forschungsgemeinschaft (German Research Foundation) under Germany’s Excellence Strategy EXC 2117-422037984; I.D.C. - The PathFinder European Innovation Council Work Programme #101098722; I.D.C.
Author contributions
G.A., M.N., and I.D.C. conceived the idea and designed the project; G.A., L.L., M.N., and I.D.C designed the experiments; G.A. and L.L. implemented the experiments and collected the data; G.A. and M.N. analyzed the data; G.A. and M.N. devised, implemented and analyzed the model; G.A., M.N., and I.D.C. wrote the paper with feedback from L.L.
Peer review
Peer review information
Nature Communications thanks the anonymous reviewers for their contribution to the peer review of this work. A peer review file is available.
Funding
Open Access funding enabled and organized by Projekt DEAL.
Data availability
The data that support the findings of this study are available in figshare with the identifier 10.6084/m9.figshare.c.7123501.v1. In addition, source data are provided in this paper in 10.6084/m9.figshare.25626990.v1.
Code availability
Codes for experiments, simulations, as well as analysis were written either in MATLAB versions 2020a and 2023b (MathWorks Inc., Natick, MA, USA) or Python (Python Software Foundation, 2018). All codes that support the findings of this study are available on figshare with the identifier 10.6084/m9.figshare.25398523.v1
Competing interests
The authors declare no competing interests.
Footnotes
Publisher’s note Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.
Contributor Information
Guy Amichay, Email: guy.amichay@northwestern.edu.
Máté Nagy, Email: nagymate@hal.elte.hu.
Iain D. Couzin, Email: icouzin@ab.mpg.de
Supplementary information
The online version contains supplementary material available at 10.1038/s41467-024-48458-z.
References
- 1.Vicsek T, Zafeiris A. Collective motion. Phys. Rep. 2012;517:71–140. doi: 10.1016/j.physrep.2012.03.004. [DOI] [Google Scholar]
- 2.Aoki I. A simulation study on the schooling mechanism in fish. Bull. Jpn. Soc. Sci. Fish. 1982;48:1081–1088. doi: 10.2331/suisan.48.1081. [DOI] [Google Scholar]
- 3.Reynolds, C. W. Flocks, herds and schools: A distributed behavioral model. Proceedings of the 14th Annual Conference on Computer Graphics and Interactive Techniques21, 25–34 (1987).
- 4.Huth A, Wissel C. The simulation of the movement of fish schools. J. Theor. Biol. 1992;156:365–385. doi: 10.1016/S0022-5193(05)80681-2. [DOI] [Google Scholar]
- 5.Vicsek T, Czirók A, Ben-Jacob E, Cohen I, Shochet O. Novel type of phase transition in a system of self-driven particles. Phys. Rev. Lett. 1995;75:1226. doi: 10.1103/PhysRevLett.75.1226. [DOI] [PubMed] [Google Scholar]
- 6.Grégoire G, Chaté H. Onset of collective and cohesive motion. Phys. Rev. Lett. 2004;92:025702. doi: 10.1103/PhysRevLett.92.025702. [DOI] [PubMed] [Google Scholar]
- 7.Szabó A, et al. Collective cell motion in endothelial monolayers. Phys. Biol. 2010;7:046007. doi: 10.1088/1478-3975/7/4/046007. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 8.Szabó A, Mayor R. Modelling collective cell migration of neural crest. Curr. Opin. Cell Biol. 2016;42:22–28. doi: 10.1016/j.ceb.2016.03.023. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 9.Buhl J, et al. From disorder to order in marching locusts. Science. 2006;312:1402–1406. doi: 10.1126/science.1125142. [DOI] [PubMed] [Google Scholar]
- 10.Bazazi S, Bartumeus F, Hale JJ, Couzin ID. Intermittent motion in desert locusts: behavioural complexity in simple environments. PLoS Comput. Biol. 2012;8:e1002498. doi: 10.1371/journal.pcbi.1002498. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 11.Amichay G, Ariel G, Ayali A. The effect of changing topography on the coordinated marching of locust nymphs. PeerJ. 2016;4:e2742. doi: 10.7717/peerj.2742. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 12.Bumann D, Krause J. Front individuals lead in shoals of three-spined sticklebacks (Gasterosteus aculeatus) and juvenile roach (Rutilus rutilus) Behaviour. 1993;125:189–198. doi: 10.1163/156853993X00236. [DOI] [Google Scholar]
- 13.Gautrais J, et al. Analyzing fish movement as a persistent turning walker. J. Math. Biol. 2009;58:429–445. doi: 10.1007/s00285-008-0198-7. [DOI] [PubMed] [Google Scholar]
- 14.Katz Y, Tunstrøm K, Ioannou CC, Huepe C, Couzin ID. Inferring the structure and dynamics of interactions in schooling fish. Proc. Natl Acad. Sci. 2011;108:18720–18725. doi: 10.1073/pnas.1107583108. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 15.Strandburg-Peshkin A, et al. Visual sensory networks and effective information transfer in animal groups. Curr. Biol. 2013;23:R709–R711. doi: 10.1016/j.cub.2013.07.059. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 16.Tunstrøm K, et al. Collective states, multistability and transitional behavior in schooling fish. PLoS Comput. Biol. 2013;9:e1002915. doi: 10.1371/journal.pcbi.1002915. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 17.Harpaz R, Tkačik G, Schneidman E. Discrete modes of social information processing predict individual behavior of fish in a group. Proc. Natl Acad. Sci. 2017;114:10149–10154. doi: 10.1073/pnas.1703817114. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 18.Sridhar VH, et al. The geometry of decision-making in individuals and collectives. Proc. Natl Acad. Sci. 2021;118:e2102157118. doi: 10.1073/pnas.2102157118. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 19.Li G, et al. Burst-and-coast swimmers optimize gait by adapting unique intrinsic cycle. Commun. Biol. 2021;4:1–7. doi: 10.1038/s42003-020-01521-z. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 20.Ballerini M, et al. Interaction ruling animal collective behavior depends on topological rather than metric distance: Evidence from a field study. Proc. Natl Acad. Sci. 2008;105:1232–1237. doi: 10.1073/pnas.0711437105. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 21.Nagy M, Ákos Z, Biro D, Vicsek T. Hierarchical group dynamics in pigeon flocks. Nature. 2010;464:890–893. doi: 10.1038/nature08891. [DOI] [PubMed] [Google Scholar]
- 22.Cavagna A, et al. Scale-free correlations in starling flocks. Proc. Natl Acad. Sci. 2010;107:11865–11870. doi: 10.1073/pnas.1005766107. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 23.Helbing D, Molnar P. Social force model for pedestrian dynamics. Phys. Rev. E. 1995;51:4282. doi: 10.1103/PhysRevE.51.4282. [DOI] [PubMed] [Google Scholar]
- 24.Helbing D, Farkas I, Vicsek T. Simulating dynamical features of escape panic. Nature. 2000;407:487–490. doi: 10.1038/35035023. [DOI] [PubMed] [Google Scholar]
- 25.Moussaïd M, Helbing D, Theraulaz G. How simple rules determine pedestrian behavior and crowd disasters. Proc. Natl Acad. Sci. 2011;108:6884–6888. doi: 10.1073/pnas.1016507108. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 26.Lukeman R, Li Y-X, Edelstein-Keshet L. Inferring individual rules from collective behavior. Proc. Natl Acad. Sci. 2010;107:12576–12580. doi: 10.1073/pnas.1001763107. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 27.Rosenthal SB, Twomey CR, Hartnett AT, Wu HS, Couzin ID. Revealing the hidden networks of interaction in mobile animal groups allows prediction of complex behavioral contagion. Proc. Natl Acad. Sci. 2015;112:4690–4695. doi: 10.1073/pnas.1420068112. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 28.Couzin ID, Krause J, et al. Self-organization and collective behavior in vertebrates. Adv. Study Behav. 2003;32:10–1016. [Google Scholar]
- 29.Swain DT, Couzin ID, Leonard NE. Coordinated speed oscillations in schooling killifish enrich social communication. J. Nonlinear Sci. 2015;25:1077–1109. doi: 10.1007/s00332-015-9263-8. [DOI] [Google Scholar]
- 30.Alexander E, et al. Optic flow in the natural habitats of zebrafish supports spatial biases in visual self-motion estimation. Curr. Biol. 2022;32:5008–5021. doi: 10.1016/j.cub.2022.10.009. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 31.Cullen KE. Sensory signals during active versus passive movement. Curr. Opin. Neurobiol. 2004;14:698–706. doi: 10.1016/j.conb.2004.10.002. [DOI] [PubMed] [Google Scholar]
- 32.Straka H, Simmers J, Chagnaud BP. A new perspective on predictive motor signaling. Curr. Biol. 2018;28:R232–R243. doi: 10.1016/j.cub.2018.01.033. [DOI] [PubMed] [Google Scholar]
- 33.Skandalis DA, Lunsford ET, Liao JC. Corollary discharge enables proprioception from lateral line sensory feedback. PLoS Biology. 2021;19:e3001420. doi: 10.1371/journal.pbio.3001420. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 34.De Pisapia N, Kaunitz L, Melcher D. Backward masking and unmasking across saccadic eye movements. Curr. Biol. 2010;20:613–617. doi: 10.1016/j.cub.2010.01.056. [DOI] [PubMed] [Google Scholar]
- 35.Stowers JR, et al. Virtual reality for freely moving animals. Nat. Methods. 2017;14:995–1002. doi: 10.1038/nmeth.4399. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 36.Dumas G, de Guzman GC, Tognoli E, Kelso JS. The human dynamic clamp as a paradigm for social interaction. Proc. Natl Acad. Sci. 2014;111:E3726–E3734. doi: 10.1073/pnas.1407486111. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 37.Ashraf I, et al. Simple phalanx pattern leads to energy saving in cohesive fish schooling. Proc. Natl Acad. Sci. 2017;114:9599–9604. doi: 10.1073/pnas.1706503114. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 38.Couzin ID, Laidre ME. Fission–fusion populations. Curr. Biol. 2009;19:R633–R635. doi: 10.1016/j.cub.2009.05.034. [DOI] [PubMed] [Google Scholar]
- 39.Walter T, Couzin ID. Trex, a fast multi-animal tracking system with markerless identification, and 2d estimation of posture and visual fields. eLife. 2021;10:e64000. doi: 10.7554/eLife.64000. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 40.Jolles JW, Boogert NJ, Sridhar VH, Couzin ID, Manica A. Consistent individual differences drive collective behavior and group functioning of schooling fish. Curr. Biol. 2017;27:2862–2868. doi: 10.1016/j.cub.2017.08.004. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 41.Elson RC, et al. Synchronous behavior of two coupled biological neurons. Phys. Rev. Lett. 1998;81:5692. doi: 10.1103/PhysRevLett.81.5692. [DOI] [Google Scholar]
- 42.Fox MD, et al. The human brain is intrinsically organized into dynamic, anticorrelated functional networks. Proc. Natl Acad. Sci. 2005;102:9673–9678. doi: 10.1073/pnas.0504136102. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 43.Shahal S, et al. Synchronization of complex human networks. Nat. Commun. 2020;11:3854. doi: 10.1038/s41467-020-17540-7. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 44.Large EW, Crawford JD. Auditory temporal computation: interval selectivity based on post-inhibitory rebound. J. Comput. Neurosci. 2002;13:125–142. doi: 10.1023/A:1020162207511. [DOI] [PubMed] [Google Scholar]
- 45.Wang X-J, Rinzel J. Alternating and synchronous rhythms in reciprocally inhibitory model neurons. Neural Comput. 1992;4:84–97. doi: 10.1162/neco.1992.4.1.84. [DOI] [Google Scholar]
- 46.Franks NR, Bryant S, Griffiths R, Hemerik L. Synchronization of the behaviour within nests of the ant leptothorax acervorum (fabricius)-i. discovering the phenomenon and its relation to the level of starvation. Bull. Math. Biol. 1990;52:597–612. [Google Scholar]
- 47.Cole BJ. Short-term activity cycles in ants: generation of periodicity by worker interaction. Am. Nat. 1991;137:244–259. doi: 10.1086/285156. [DOI] [Google Scholar]
- 48.Couzin ID. Collective cognition in animal groups. Trends Cogn. Sci. 2009;13:36–43. doi: 10.1016/j.tics.2008.10.002. [DOI] [PubMed] [Google Scholar]
- 49.Krafft B, Pasquet A. Synchronized and rhythmical activity during the prey capture in the social spider Anelosimus eximius (araneae, theridiidae) Insectes Sociaux. 1991;38:83–90. doi: 10.1007/BF01242716. [DOI] [Google Scholar]
- 50.Chiara V, Arrufat P, Jeanson R. A variable refractory period increases collective performance in noisy environments. Proc. Natl Acad. Sci. 2022;119:e2115103119. doi: 10.1073/pnas.2115103119. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 51.Goss S, Deneubourg J-L. Autocatalysis as a source of synchronised rhythmical activity in social insects. Insectes Sociaux. 1988;35:310–315. doi: 10.1007/BF02224063. [DOI] [Google Scholar]
- 52.Granada A, Hennig R, Ronacher B, Kramer A, Herzel H. Phase response curves: elucidating the dynamics of coupled oscillators. Methods Enzymol. 2009;454:1–27. doi: 10.1016/S0076-6879(08)03801-9. [DOI] [PubMed] [Google Scholar]
- 53.Greenfield MD, Aihara I, Amichay G, Anichini M, Nityananda V. Rhythm interaction in animal groups: selective attention in communication networks. Philos. Trans. Royal Soc. B. 2021;376:20200338. doi: 10.1098/rstb.2020.0338. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 54.Winfree AT. Sudden cardiac death. Sci. Am. 1983;248:144–161. doi: 10.1038/scientificamerican0583-144. [DOI] [PubMed] [Google Scholar]
- 55.Gutkin BS, Ermentrout GB, Reyes AD. Phase-response curves give the responses of neurons to transient inputs. J. Neurophysiol. 2005;94:1623–1635. doi: 10.1152/jn.00359.2004. [DOI] [PubMed] [Google Scholar]
- 56.Daan S, Pittendrigh CS. A functional analysis of circadian pacemakers in nocturnal rodents. J.Compar. Physiol. 1976;106:267–290. doi: 10.1007/BF01417858. [DOI] [Google Scholar]
- 57.Buck JB. Synchronous rhythmic flashing of fireflies. Q. Rev. Biol. 1938;13:301–314. doi: 10.1086/394562. [DOI] [PubMed] [Google Scholar]
- 58.Sismondo E. Synchronous, alternating, and phase-locked stridulation by a tropical katydid. Science. 1990;249:55–58. doi: 10.1126/science.249.4964.55. [DOI] [PubMed] [Google Scholar]
- 59.Ali MA, Lischka K, Preuss SJ, Trivedi CA, Bollmann JH. A synaptic corollary discharge signal suppresses midbrain visual processing during saccade-like locomotion. Nat. Commun. 2023;14:7592. doi: 10.1038/s41467-023-43255-6. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 60.Dill, L. M., Holling, C. S. & Palmer, L. H. Predicting the three-dimensional structure of animal aggregations from functional considerations: the role of information. Animal Groups in Three Dimensions (eds Parrish, J. K. & Hamner, W. M.) (Cambridge Univ Press, Cambridge, UK, 1997).
- 61.Fruchart M, Hanai R, Littlewood PB, Vitelli V. Non-reciprocal phase transitions. Nature. 2021;592:363–369. doi: 10.1038/s41586-021-03375-9. [DOI] [PubMed] [Google Scholar]
- 62.Buck J, Buck E, Case JF, Hanson FE. Control of flashing in fireflies: V. pacemaker synchronization in pteroptyx cribellata. J.Compar. Physiol. 1981;144:287–298. doi: 10.1007/BF00612560. [DOI] [Google Scholar]
- 63.O’Keeffe KP, Hong H, Strogatz SH. Oscillators that sync and swarm. Nat. Commun. 2017;8:1504. doi: 10.1038/s41467-017-01190-3. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 64.Sepulchre R, Paley DA, Leonard NE. Stabilization of planar collective motion: All-to-all communication. IEEE Trans. Autom. Control. 2007;52:811–824. doi: 10.1109/TAC.2007.898077. [DOI] [Google Scholar]
- 65.Sepulchre R, Paley DA, Leonard NE. Stabilization of planar collective motion with limited communication. IEEE Trans. Autom. Control. 2008;53:706–719. doi: 10.1109/TAC.2008.919857. [DOI] [Google Scholar]
- 66.Herbert-Read JE, et al. Inferring the rules of interaction of shoaling fish. Proc. Natl Acad. Sci. 2011;108:18726–18731. doi: 10.1073/pnas.1109355108. [DOI] [PMC free article] [PubMed] [Google Scholar]
Associated Data
This section collects any data citations, data availability statements, or supplementary materials included in this article.
Supplementary Materials
Data Availability Statement
The data that support the findings of this study are available in figshare with the identifier 10.6084/m9.figshare.c.7123501.v1. In addition, source data are provided in this paper in 10.6084/m9.figshare.25626990.v1.
Codes for experiments, simulations, as well as analysis were written either in MATLAB versions 2020a and 2023b (MathWorks Inc., Natick, MA, USA) or Python (Python Software Foundation, 2018). All codes that support the findings of this study are available on figshare with the identifier 10.6084/m9.figshare.25398523.v1