Skip to main content
eLife logoLink to eLife
. 2023 Mar 13;12:e78908. doi: 10.7554/eLife.78908

Emergent periodicity in the collective synchronous flashing of fireflies

Raphael Sarfati 1,†,, Kunaal Joshi 2,†,, Owen Martin 1,, Julie C Hayes 3, Srividya Iyer-Biswas 2,4,, Orit Peleg 1,4,
Editors: Irene Giardina5, Aleksandra M Walczak6
PMCID: PMC12629593  PMID: 36912783

Abstract

In isolation from their peers, Photinus carolinus fireflies flash with no intrinsic period between successive bursts. Yet, when congregating into large mating swarms, these fireflies transition into predictability, synchronizing with their neighbors with a rhythmic periodicity. Here we propose a mechanism for emergence of synchrony and periodicity and formulate the principle in a mathematical framework. Remarkably, with no fitting parameters, analytic predictions from this simple principle and framework agree strikingly well with data. Next, we add further sophistication to the framework using a computational approach featuring groups of random oscillators via integrate-and-fire interactions controlled by a tunable parameter. This agent-based framework of P. carolinus fireflies interacting in swarms of increasing density also shows quantitatively similar phenomenology and reduces to the analytic framework in the appropriate limit of the tunable coupling strength. We discuss our findings and note that the resulting dynamics follow the style of a decentralized follow-the-leader synchronization, where any of the randomly flashing individuals may take the role of the leader of any subsequent synchronized flash burst.

Research organism: Other

Introduction

Physical systems consisting of several interacting entities often exhibit large-scale properties which are distinct from the capabilities of each entity taken individually: this is the well-known concept of emergence. Emergence has been observed and studied in both inanimate and animate systems, including famously groups of animals (Kelley and Ouellette, 2013; Attanasi et al., 2014). Animal collective behavior broadly designates dynamical patterns that are unsupervised consequences of the accumulation of low-level interactions between neighboring individuals (Ouellette, 2022; Ballerini et al., 2008; Couzin, 2009). One simple yet compelling manifestation of emergence in the natural world is in the form of firefly flash synchronization (Faust, 2010; Buck and Buck, 1966; Sarfati et al., 2020; Sarfati et al., 2021; Sarfati et al., 2022). For example, when sufficiently many Photinus carolinus fireflies congregate into a mating swarm (lek), they start to align their flashes on the same tempo, creating a mesmerizing display that has captivated the curious minds of many. This possibly serves to strengthen their species-specific signal and heighten the ability for conspecific males and females to identify one another (Faust, 2010; Moiseff and Copeland, 2010; Stanger-Hall and Lloyd, 2015). In addition to collective synchrony, a more careful examination of P. carolinus’ flashing pattern further reveals another non-trivial signature: emergent periodicity. Indeed, in their natural habitat, these fireflies produce periodic bursts of flashes occurring with great regularity, with a temperature-dependent period generally around 12 s (Faust, 2010; Moiseff and Copeland, 2010). Surprisingly, when put in isolation, a single firefly does not appear to show any regularity about when it emits its flash trains (Sarfati et al., 2020), where intervals between flash trains vary between a few seconds to a few minutes apart. How, then, can a multitude of interacting fireflies exhibit a specific frequency that does not appear to be encoded in any single one of them?

Synchronization is traditionally thought of as the adjustment of rhythms of self-sustained oscillators due to coupling (Mirollo and Strogatz, 1990; Strogatz, 1997; Strogatz, 2000; Pikovsky et al., 2001; Ramírez Ávila et al., 2003; Ramírez Ávila et al., 2019). The Kuramoto model and other such traditional models addressing synchrony in systems such as Pteroptyx malaccae fireflies model individuals as oscillators firing highly regularly in isolation, often with different periods. The question these models are primed to answer is, how do oscillators with different individual periods and starting from different phases, come together to oscillate synchronously? This is fundamentally different from the problem posed by our system, in which the individuals, which fire highly irregularly, seem to use synchrony through coupling with other individuals as a tool to achieve greater regularity in their firing period. While traditional models of limit-cycle oscillators are also capable of modeling systems in which isolated individuals do not oscillate periodically but collective oscillations occur only above a certain threshold density, in those models the individuals are generally inherently oscillatory and their periodic oscillations are suppressed through a sufficiently strong coupling with the surroundings. (De Monte et al., 2007; Taylor et al., 2009). We instead present a stochastic theoretical framework based on a simple, intuitive mechanism by which inherently non-oscillating individuals are able to oscillate synchronously in a group, and apply this to P. carolinus fireflies, successfully explaining the convergence towards a common, well-defined period between flash bursts as the number N of fireflies increases.

Results

Behavioral experiments

A P. carolinus lek in its natural habitat contains several thousands of fireflies of which the males display a robust collective flash pattern. They flash over the course of periodic bursts separated by a few seconds of total darkness (Figure 1A, over a few seconds). Collective bursts in the swarm have a well-defined period (peak-to-peak) of about 12 s (Sarfati et al., 2020). One could think, then, that each individual firefly also emits flash trains with about the same time period, and that the effect of visual interactions is to align these individual trains on the same tempo. In other words, the swarm could be a set of coupled oscillators converging to a common phase, as has been described in previous models (Mirollo and Strogatz, 1990; Strogatz, 1997; Strogatz, 2000; Ermentrout, 1991; Rodrigues et al., 2016). Crucially, however, when a single firefly is taken out of the lek and placed in a large (2 m3) enclosing volume visually insulated from the rest of the group, all periodicity in the occurrence of flash trains is lost. The single firefly continues to emit sporadic bursts (Figure 1B and C), but the time between successive flash bursts varies between a few seconds and a few minutes (Figure 1B and Sarfati et al., 2020). This suggests that individual interburst intervals (IBIs) occur at random, and may thus depend on a variety of behavioral factors. When collecting measurements from 10 different fireflies recorded for several minutes under the same conditions, we are able to outline the distribution of interburst intervals for a single firefly in isolation (Figure 1D, purple). (The underlying assumption here is that all fireflies have the same distribution of interburst intervals.) Interestingly, as the number of fireflies within the enclosing volume is increased, a regularity in the time between bursts starts to emerge. At about N=15, the distribution of interburst intervals becomes very similar to that observed in the natural habitat (Sarfati et al., 2020). For N=20, it is clear that there is a very strong collective periodicity in the emission of flash bursts of about 12 s, similar to that of the undisturbed swarm flashing just outside the tent (Figures 1D and E and Figure 2).

Figure 1. Schematic representation of the proposed principle and its theoretical implication: the emergence of periodicity in stochastically flashing P. carolinus fireflies.

Figure 1.

(A) Long exposure photograph illustrating flashes in a P. carolinus natural swarm. (B) Overlaid time series of three isolated individual fireflies emitting flash bursts which appear random. The inset (C) shows the burst-like nature of P. carolinus flash events. (D) Interburst distributions b(t) for one firefly (purple) and 20 fireflies (blue) insulated from the rest of the swarm. (E) Twenty P. carolinus fireflies flashing in a tent exhibiting the periodic nature of their collective flashing.

Figure 2. Schematic representation of the proposed principle and its theoretical implication: the emergence of periodicity in stochastically flashing P. carolinus fireflies.

Figure 2.

(A) A schematic of the flashing pattern of a single isolated firefly. State 0 corresponds to no flashes, and state 1 corresponds to a burst of consecutive flashes. The durations between bursts of single isolated fireflies are highly irregular. (B) In a system with more than one firefly, if a non-flashing firefly sees another one flash, it too starts flashing. Thus, for a system with two fireflies, their bursts are synchronized. After each burst, the time to next burst is determined by which firefly flashes first. Thus, on average, the interburst interval is lower, and hence slightly more regular, than that for a single isolated firefly. (C) As the number of fireflies increases, the probability increases that at least one of them will flash with an interburst interval near the minimum of the distribution for isolated fireflies. This minimum value is expected to be set by the refractory period of the fireflies, which is expected to be similar for all fireflies. Thus, the overall behavior becomes highly periodic with a period approaching this minimum value.

Proposed principle of emergent periodicity, its theoretical formulation, and analytic fitting-free predictions

Here we propose the following paradigm, derive its mathematical formulation, and validate its predictions against experimental data: (1) Each time a firefly has finished a burst of flashing, it waits a random time t, drawn from a distribution b(t), before flashing again. (2) Upon flashing, a firefly instantly triggers all other fireflies to also flash. (3) After flashing, each firefly resets its internal waiting time to another random t.

The distribution b(t) here is the distribution of interburst intervals exhibited by the firefly in a solitary, isolated environment. We denote by Tb the collective interburst interval, that is the time between any two successive bursts of flashes produced in the swarm. The probability distribution PN(Tb) of the interburst interval Tb of a group of N fireflies can be calculated as the probability distribution that one of the N fireflies emits its first flash at time Tb after the last collective burst, while the rest (N1) fireflies have not flashed until then.

If all fireflies have different IBI distributions such that the interburst interval for the ith firefly in isolation is drawn from the distribution bi, then the probability density for ith firefly flashing first in a group of N fireflies at time Tb is given by

Pi(Tb)=bi(Tb)ji[Tbbj(t)dt], (1)

where the first term on the right is the probability density of the ith firefly flashing at time Tb , and the second term is the probability that the remaining fireflies do not flash before time Tb. The probability density for any firefly in the group of N fireflies flashing first at time Tb is simply the sum of the probability densities of the individual fireflies flashing first at this time, thus,

PN(Tb)=i=1Nbi(Tb)ji[Tbbj(t)dt]. (2)

As the number of fireflies increases, this distribution converges to a distribution bounded by the minimum and maximum values of the minimum interburst intervals T0 of the individual fireflies. To show this, we first label the minimum interburst interval for ith firefly in isolation by T0,i, Thus bi(Tb<T0,i)=0. Hence, from Equation 2, as N, for Tb<mini(T0,i), PN(Tb)=0 because each bi(Tb) is 0. Also,

PN(Tb)=i=1Nbi(Tb)ji[Tbbj(t)dt]Nmaxi[bi(Tb)]{maxj[Tbbj(t)dt]}N1. (3)

For Tb>maxi(T0,i) , as N, P(Tb)0 because the right-most integral is less than 1. Thus, as N , PN(Tb) is bounded by the minimum and maximum values that T0,i can take. We expect these minimum values to be set by physiological constraints (the refractory period), and thus be similar for all fireflies. In this case (T0,i=T0i), the group interburst interval distribution converges to the Dirac Delta function in the large N limit,

limNPN(Tb)=δ(TbT0). (4)

The theoretical predictions are consistent with the intuitive result that the shortest possible interburst interval is the only one that occurs in large, fully connected, and instantaneously stimulated groups of fireflies. We expect such a threshold minimum time to exist owing to physiological constraints, which prevent the fireflies from flashing continuously forever without pause. Intuitively, as the number of fireflies increases, there is a greater probability that at least one of those fireflies will flash at an interval close to the minimum.

In the following sections, due to the paucity of available data and limited statistical precision in the data available to accurately quantify the IBI distributions for isolated fireflies, we have pooled together the isolated fireflies’ data under the assumption that their interburst interval distributions are sufficiently close, so that they can be approximately considered identical (bi=bi). Thus, the interburst interval distribution for N fireflies reduces to

PN(Tb)=N[Tbb(t)dt]N1b(Tb) (5)

Thus we have set up a mathematical framework which takes as its input the experimentally observed interburst distribution and makes specific predictions with no fine-tuning fitting parameters.

Conceptually, in the idealization that at N this distribution converges to a Dirac Delta function, which tends to make the flashing patterns perfectly periodic with no variation. However, for a finite number N of fireflies, the distribution peaks at a value greater than T0, and has a specific non-zero width that decreases with increasing N (see section ‘Theoretical framework’). These specific predictions are spectacularly borne out by the experimental data. With no fine-tuning fitting parameter, and the experimentally observed single firefly distribution (Figure 3A) as the only input to the mathematical framework, we see an excellent match between the N-dependent experimentally observed interburst distributions and the corresponding prediction from analytic theory (Figure 3B–E). Moreover, the corresponding sharpening of the peak of the distribution (resulting in decreasing noise) with increasing N also quantitatively matches with the trend predicted by theory — see the plot of standard deviation vs. N in panel Figure 3F. Through these compelling matches between predictions from the theory, without fitting parameters, and the experimental observations, we establish the validity of the proposed principle for emergent synchrony and periodicity.

Figure 3. Experimental data vis-à-vis results from analytic theory (no fitting parameters) and computational approach (wherein β is a fitting parameter as explained in accompanying text).

Figure 3.

Experimental data for each value of N come from three repetitions of experiments at that density. (A) The experimentally measured single firefly interburst distribution (Figure 1D, purple, represented here also in purple). The smoothed version of this distribution (blue curve, detailed methods outlined in the Methods Section) is used as an input in analytical theory and, in conjunction with β values, in the computational approach. The inset shows the region between 0–160 s within which most firefly values lie. (B–E) show the interburst distributions for different numbers of fireflies. Our theoretical framework accurately predicts the sharpening of the interburst distribution as N increases, without the need of fitting parameters. The β value atop each figure is fit by minimizing the two-sided Kolmogorov-Smirnov test between the simulation and experimental distributions (see Figure 7 for a full sensitivity analysis). (F) demonstrates that the standard deviation of the interburst interval distribution decreases with N as predicted by analytic theory (no fitting parameter; see theory section) and the computational approach (using the respective value of best-fit β shown with the corresponding distribution in B–E).

Furthermore, using the analytic framework, the following rigorous results can be generally proved to hold for any input single firefly distribution: As the number N of fireflies increases, along with the variance, all the moments of the interburst distribution monotonically decrease. In addition, the left-most mode shifts further towards the left with increasing N until it reaches T0. Taken together, what these predictions show is that for any input distribution shape, we are guaranteed to get emergent periodicity and synchrony through the proposed mechanism. We have provided detailed derivations of these predictions in Methods Section (Theoretical Framework).

Computational approach: Agent-based simulation

In the preceding section, we have articulated a principle of emergent periodicity, its theoretical formulation, and provided concrete fitting-free predictions which are spectacularly borne out by data. Here we attempt to build on the success of theory with an agent-based simulation.

At the outset, we clarify that our attempts at agent-based simulation, which simply tweak extant models, such as Kuramoto or integrate-and-fire (IF), without incorporation of the insights offered by the theory principle, framework, and predictions, fail to reproduce the basic phenomenology observed in data. Instead, we use the insight from theory as an integral building block to reconstruct a computational approach which reduces to the theory in the appropriate limit but leverages the addition of a fitting parameter to incorporate more nuanced considerations. In particular, we now relax the assumption that all fireflies immediately start flashing upon seeing any other one flash, since in practice there could be some time delay or imperfect information transfer, which could be made shorter if the firefly sees additional fireflies flashing too. The rate at which this delay is shortened in proportion to the number of flashing fireflies is given by the behavioral coupling between the fireflies, labeled β. When β, this limit represents the idealization derived in the theory section: the strongly correlated limit, wherein a single firefly’s flashing is sufficient to immediately stimulate all others to also start flashing, while β=0 represents completely non-interacting fireflies.

The important distinction between this computational approach and traditional IF models is that as the system becomes more non-interacting (i.e., β decreases), the individual behavior becomes more non-oscillatory and sporadic. Thus, incorporating the theoretical framework built up in previous sections is essential to give rise to emergent periodicity despite having non-oscillating individuals.

Formulation

We propose a simple numerical simulation based on the mechanism previously described. Following previous computational models (Ramírez Ávila et al., 2011; Ramírez Ávila et al., 2003; Ramírez Ávila et al., 2019), we implement a group of N fireflies whose flashing dynamics is governed by charging and discharging processes which represent the time between two bursts and the duration of a burst, respectively. Here, for the sake of simplicity, we simulate bursts of only one flash in length. These processes are determined by both an agent’s internal characteristics and its interactions with the group. Specifically, the internal state of firefly i is characterized by variables V and 𝜖 whose evolution follows (Figure 4):

dVi(t)dt=1Tsiϵi(t)1Tdi[1ϵi(t)]+ϵi(t)j=1Nβijδij[1ϵj(t)], (6)
Figure 4. A schematic illustrating the computational approach.

Figure 4.

The dynamics proceed as follows: for each flashing firefly i, follow three simple steps at each timestep. (1) Update 𝜖i according to voltage value. If Vi == 1, update 𝜖i = 0; if Vi is 0, update 𝜖i is 1. (2) If 𝜖i = 0, flash. (3) Update their own voltage based on Equation 6. (A) A single firefly i’s dynamics. Dark bars indicate voltage values from 0 to 1. The start-to-start interflash interval Tbi, end-to-start interflash interval Tsi, and quiet period Tdi, each of which is a random variable for each individual and subject to resampling after each flash event, are indicated below the trace. Flashing state 𝜖i is indicated above, along with the times at which a flash is being actively emitted by the firefly. (B) Schematic of a second firefly j, with different parameters, interacting with firefly i via integrate-and-fire β donation. For simplicity, we only show a one-way interaction here, where donations occur from firefly i to firefly j and not the reverse. Note the non-linearity in the voltage trace as a flash by firefly i triggers a larger gain in voltage between t=4 and t=5 and t=5 and t=6, indicated by the green bars. Firefly i’s second flash is ignored by firefly j since it is already flashing (t=11, t=12).

which is a standard equation for the IF scheme. Here, ϵi is a binary variable that is 1 when an individual is charging (quiet) and 0 when an individual is discharging (flashing). The state of 𝜖i changes to 0 when reaching the threshold voltage V=1 , and switches back to 1 when the firefly has finished discharging at the threshold (V=0). The time Tdi represents the flash length and is drawn directly from observed data, and the time Tsi represents the end-to-start interflash interval (Figure 4A). This value comes directly from the data in the following way: Tsi=TbiTdi , where Tbi represents the start-to-start inter-flash interval for firefly i , drawn directly from the input distribution envelope in Figure 3A. The firefly may be ‘pulled’ toward flashing sooner if detecting the flashes of neighboring fireflies, which is represented in the framework by the third term (Figure 4B). Here δij{0,1} represents connectivity between agents and βij is the coupling strength. For simplicity, here we use all-to-all connectivity (δij=1, (i,j)) and vary the common interaction βij=βN . The crucial difference with prior IF implementations is the introduction of stochasticity: Tbi is a random variable whose value is drawn from our experimental distributions of interburst intervals (Figure 3A), and Tdi is a random variable whose value is drawn from our previously published data illustrating the distribution of firefly flash lengths, as seen in Sarfati et al., 2020 (their Figure 7a). Each of these variables resets, for each agent, every time they switch state. In this stochastic IF framework, the variability between flashes is accounted for, while maintaining the overall structure of the IF model.

Transition to periodicity

This simulation exhibits a transition to group periodicity as interactions between agents are increased. We define the group interburst interval as the time between one flash and the next flash produced by any other firefly in the swarm. For example, consider the case of N=20 (Figure 5D). When β=0 each firefly behaves purely individually and interburst intervals tend to aggregate towards small values due to the random unsynchronized flashing of the N fireflies each with a flashing behavior typical of isolated individuals. This remains the case until the coupling strength, β, becomes large enough that there is enough of collective entrainment to align the flashes of the group. In these regimes, when one firefly flashes, it quickly triggers all others. All agents then reset their charging time at roughly the same moment, and the smallest Tb selected by any individual firefly defines the duration between this flash and the group’s next flash. As a consequence, interburst intervals of the collective, Tb, shift to a larger value corresponding to the smallest time between flashes for an individual firefly (tb0). This behavior can be seen easily in Figure 5, where wide distributions give way to progressively tighter shapes as β and N increase. We can quantify this transition by examining the characteristic peaks in the Tb distribution. Peaks with a value below the minimum of the input distribution occur when beta is small, and pulsatile coupling is thus weakly pulling the flashes towards each other. At each value of N, however, Figure 5 shows a sharp transition wherein the beta value becomes high enough to cause enough coupling gain to produce synchronous flashes and the alignment of the start of the next burst. This drives the pace of the flashing to be set by the first flasher, which as N increases becomes more likely to be on the lower end of the input distribution. The high-coupling peak is also naturally sharper at increasing N: at larger N, the probability that some Tb,i approaches the minimum possible Tb is higher, resulting in more regularity the collective flashing pattern (Figures 3E and 6).

Figure 5. Emergence of collective periodicity in large swarms.

Figure 5.

(A–E) Visual demonstration of the emergence of a collective periodicity above Tb0 as β ranges between 0–1 for each value of N, including (E) N=100, a value outside the scope of our experimental observations but that is relevant for the theoretical analysis.

The lack of coupling in the first few rows produces noisy and cluttered collective interburst intervals as flashes from any individual are uncorrelated with those from its neighbors. As the coupling constant increases, a consistent interburst interval emerges at the peak of each distribution. (F) The relationship between the most probable interburst interval (the distribution peak) as β and N vary. The shaded regions represent the standard error of the distributions for each density. For small values of beta, the collective produces noisy distributions where the pulsatile coupling of flashes is not quite enough to pull the starts of bursts into alignment. However, as the coupling constant β increases, individual flashes begin to trigger subsequent flashes in neighboring fireflies, causing the quiet periods of the individuals to line up and the emergence of a collective frequency at the fastest interval in each burst cycle. Each higher density simulated causes the peak of the distribution to both shift slightly downwards and become less variant, as it is progressively more likely for one individual in the swarm to drive the collective frequency towards intervals on the short end of the input distribution. A cartoon of this effect is shown in .

Figure 6. Schematic illustration demonstrating the evolution of the collective burst distribution, i.e., the distribution of time intervals between collective bursts, PN(T), with increasing number of fireflies, N.

Figure 6.

N=1 corresponds to the intrinsic burst distribution of a single firefly, b. Evidently, the distribution of time intervals between collective bursts becomes a sharply peaked distribution with maximum probability peaked at a value larger than T.

As our simulation has a single fitting parameter, namely the coupling strength β, we conduct a detailed comparison of the simulation and experimental data to infer the most likely value of β for the P. carolinus system. A systematic parameter sweep over the values of β and N provides a set of Tb interval distributions (Figures 5 and 7). We statistically compare the distributions generated by simulation with those obtained experimentally at each swarm density and find that the optimal values of β to match the empirical distributions cluster around 0.15 when N15 (and holds a higher value when N=20). This also corresponds with the transition point in the location of the mode of the distributions, as can be seen in Figure 5F.

Figure 7. Two-sided Kolmogorov–Smirnov test results between the simulation results and experimental results at each β and N.

Figure 7.

For the two-sided Kolmogorov–Smirnov test, the null hypothesis states that the two compared distributions can be drawn from the same underlying distribution: effectively, accepting the null hypothesis accepts the statistical probability that the distributions do not differ. All distributions were generated from ten simulations, each of 200000 simulation timesteps/30 min of real time. The best values for each N=5,10,15,20 are β=0.16,β=0.16,β=0.20,β=0.30.

Discussion

In this work, we have proposed a synchronization mechanism that produces emergent periodicity and demonstrated its remarkable quantitative applicability to the synchronous periodic flashing of P. carolinus fireflies as observed in natural settings. In other, more commonly studied firefly species such as the P. frontalis, individuals are intrinsically oscillatory (Moiseff and Copeland, 2000), and thus can be modeled by traditional Kuramoto-like models which do not apply to species like ours. More recently, a new model based on the concept of elliptic bursters has been successful at producing many aspects of P. carolinus’ collective flashing, notably the intermittent (burst-type) synchrony. Yet, this model still assumes intrinsic periodicity between flash bursts (McCrea et al., 2022). In systems following our principle, individuals may behave erratically without any periodicity in their behavior, yet when brought together as a collective, their behavioral patterns become highly synchronized and periodic. Moreover, this effect increases with the number of fireflies present through a simple and intuitive behavioral pattern. Using this principle, we successfully predict the qualitative sharpening of the peak of the distribution of interval between flashes by simply using the interval between flashes of isolated individual fireflies and without requiring any fitting parameter. Further, our computational approach quantitatively builds on the predictions of the theory by letting the strength of coupling between fireflies vary and provides added insights.

Specifically, we have shown that the simple theoretical behavioral framework presented in this paper successfully reproduces the experimental distributions of interburst intervals for groups of N fireflies (Figure 3B and E). All the input parameters for application of the framework as well as the computational approach come directly from experimental results in Sarfati et al., 2020 and subsequent field season results from the Great Smoky Mountains: the wide distribution of interburst intervals for single isolated fireflies, the two timescales required by the computational approach of charging time and discharging time are both data-driven from Sarfati et al., 2020. The only fitted parameter for the computational approach is the coupling strength β, which demonstrates a transition in the dynamics of the system where β>0.1 (Figure 5).

As shown in Figure 3, the chosen values for beta, the additional fitting parameter introduced in the agent-based simulation, are: β= 0.16, 0.16, 0.20 and 0.30 respectively for N= 5, 10, 15, 20. Perhaps it is intriguing that the optimum beta clusters around similar values for N= 5, 10, 15, while the optimum beta for N= 20 is significantly different. While we do not currently have an explanation for why the fitted parameter values are what they are, we note that the fitting curve is flat, implying that several beta values could possibly achieve a satisfactory fit. Further agent-based simulations could explore these findings more systematically and provide useful insights.

If the number of fireflies increases indefinitely, or if there are visual obstacles in the environment, the assumption that each firefly can practically immediately perceive when another firefly starts flashing will no longer hold. In this case, a finite time delay in perceiving the onset of the flashing could lead to an interburst interval that is greater than what is expected for the ideal case. The resulting interburst interval distribution will consequently be shifted to the right compared to the distribution given by Equation 5. While the general ideas underlying the theory framework will continue to hold, the mathematical formulation will need more sophistication to take these subtler effects into account.

Existing mathematical models on synchronous periodic behavior generally consider individuals to be intrinsically oscillatory, which either oscillate periodically in isolation or have their oscillations suppressed at low numbers through a sufficiently strong coupling with the environment. These models generally introduce variability through varying the frequencies of individual oscillators, and synchronization emerges spontaneously once the number or density of these coupled oscillators crosses some specific threshold. Conversely, in our proposed framework, individuals that are intrinsically non-oscillatory make use of the synchronization through coupling with other individuals to produce emergent oscillatory behavior, which becomes more regular as more individuals are added.

Existing mathematical models designed for emergent synchronization of individual oscillators could be extended to account for such behavior by replacing individual oscillators with stochastic sporadically firing individuals. Our framework is simply the simplest version and a starting point for such models. For example, systems of oscillators interacting with Kuramoto-style mean field and limit cycle oscillators such as those used in dynamical quorum sensing models tend to converge on the mean frequency of the heterogeneous group (Pikovsky et al., 2001; De Monte et al., 2007). However, observations of the P. carolinus fireflies show convergence on the fastest frequency in the repertoire of isolated individual fireflies and a synchronization of relaxation periods also seen in some coupled IF units (Bottani, 1996) which have been applied to many biological systems such as the synchronization of pacemaker cells in the mammalian heart (Jongsma et al., 1983; Jalife and Michaels, 1989). Yet the difference lies in the nature of this ‘fastest frequency’. In typical coupled IF units, this is the frequency of the individual oscillator with the fastest frequency. But in our system, the individuals fire sporadically, thus there is no specific frequency associated with any individual. Instead, the ‘fastest frequency’ is an emergent phenomenon in large groups, formed from the collective minimum interburst intervals of the individuals. While individual behavior may appear as extremely complex, collective behavior based on simple and credible behavioral rules converges towards a simple emergent phenomenon as we have demonstrated. This wait-and-start phenomenon might be observable in different biological systems as well.

The mathematical implementation of the proposed paradigm results in an interburst interval distribution that converges towards a unique possible value corresponding to the lower bound of the individual IB distribution, at increasing N. That means that in the limit of an infinitely large and entirely connected swarm, the smallest IBI always occurs. This is at odds with two empirical observations: (1) while most of the smallest IBI from an isolated firefly peak at 12 s and more, there are some residual values between 5 s and 12 s; (2) natural swarms comprising thousands of fireflies do not exhibit a 5 s period. We propose some explanation to reconcile these two facts.

First, fireflies are known to produce annex flash patterns, for instance, for alarm, in addition to the primary courtship phase. It is possible that isolated fireflies in a confining volume switch to different behavioral modes that produce atypical flash trains with intervals less than what they would typically do in an unobstructed environment with responding peers. Secondly, it is possible that the swarm buffers against unusual perturbations. More than finite-size effects, the main caveat here is that the swarm is not all-to-all connected, as we showed previously (Sarfati et al., 2021). In this case, the dynamics of the system would depend upon the speed of propagation of information across the swarm.

It is easy to imagine extensions of this work that leverage the spatial positions of individuals in the system using distance- or sight-dependent coupling to modify the adjacency matrix and add further complexity to the system, and this framework makes implementation of this idea ripe for a future endeavor. To provide direct evidence for the underlying mechanistic principles, further experiments are needed. A promising avenue consists of artificially and controllably tuning the interactions within the group, for example, artificial flash entrainment with an LED should be able to decrease the inter-burst interval.

Materials and methods

Experimental data

The individual and collective flashing of P. carolinus fireflies was recorded during 10 nights of field experiments in June 2020 in Great Smoky Mountains National Park (Tennessee, USA). The experimental protocol had been developed and implemented the previous year (Sarfati et al., 2020). In the natural swarm with hundreds to thousands of interacting fireflies, collective flashing consists of synchronous flashes every Tf0.5s, during periodic bursts Tb12s (Figure 1C). However, it has been observed previously that individual fireflies in visual isolation do not exhibit burst periodicity. To characterize the onset of burst flashing, we performed experiments in a controlled environment. Fireflies were gently collected using insect nets, then placed individually in small plastic boxes, where species and sex were verified. Males were subsequently introduced into a secluded cuboid tent (approximately 1.5×2×1.5m3) made of breathable black fabric and covered by a black plastic tarp to ensure optimal visual isolation from fireflies on the outside. A GoPro Fusion 360° camera placed inside the tent recorded the entire volume at 30 or 60 frames-per-second (fps). Flashes were detected in video processing by intensity thresholding. Bursts were identified as (temporal) connected components of flashes less than 2 s apart. Interburst intervals τb were calculated as the duration between the first times of successive bursts. Tent experiments allow us to observe the collective behavior of a small and known number of fireflies in interaction, while providing enough space for them to fly, hence reducing experimental artifacts from excessive confinement. We observed the flashing behavior of both individual fireflies in isolation and groups of 5, 10, 15, and 20 fireflies. We observed 10 individual fireflies alone in the tent, over durations between 5 min and 85 min. We observed that although these fireflies produced flash trains at a frequency of about 2 Hz, the delay between successive trains was apparently randomly distributed, from a few seconds to tens of minutes. Then, we carried out three sets of experiments with 5, 10, 15, and 20 fireflies, using the segments between 9 min and 15 min. As previously reported, collective burst flashing only appears at about 15 fireflies.

Experimental data correction

After the paper’s acceptance, a small subset of data points was updated for the reasons described in the correction notice (Sarfati et al., 2025). We repeated all analyses and confirmed that the findings are unaffected. Both the original and corrected datasets are publicly available.

Theoretical framework

Behavior of moments and variance

For the following sections, we assume that individual isolated fireflies have identical interburst interval distributions. We show that as the number of fireflies (N) increases, the variance and all the moments of the interburst interval distribution decrease and the distribution eventually converges to a Dirac Delta function. From Equation 5, the mth moment for N fireflies is

TNm=N0[tb(t)dt]N1tmb(t)dt. (7)

Let the function γ be defined as

γ(t)=tb(t)dt, (8)

thus,

TNm=Nt=0γN1(t)tmd(γ(t))=γN(t)tm|0+m0γN(t)tm1dt. (9)

We expect the distribution of inter-burst intervals to terminate at some large value and not go on to infinity (at most, they are limited by the finite lifespan of the fireflies), thus,

TNm=m0γN(t)tm1dt. (10)

Now, at any given value of t , γN(t)γN1(t) . This inequality is strict whenever 0<γ(t)<1 . Such a region exists unless b(t) is a Dirac Delta function. If b(t) is a Dirac Delta function, then PN(Tb)=b(Tb) . Otherwise,

0γN(t)tm1dt<0γN1(t)tm1dt, (11)
TNm<TN1m. (12)

Thus, all moments strictly decrease as N increases. From Equation 10, the variance for N fireflies is

VN=20γN(t)tdt[0γN(t)dt]2 (13)

Writing the second term initially as a multiple integral over the entire t,t>0 plane,

[0γN(t)dt]2=γN(t)γN(t)dtdt=2t>tγN(t)γN(t)dtdt. (14)

In the preceding step, we have used the symmetry of the integrand under tt . The second term of Equation 13 can be similarly written down:

20γN(t)tdt=2t>tγN(t)dtdt. (15)

Combining,

VN=2t>tγN(t)(1γN(t))dtdt. (16)

Thus,

VN+1VN=2t>t[γN+1(t)(1γN+1(t))γN(t)(1γN(t))]dtdt. (17)

The two γ functions in the above integrand satisfy: 0γ(t)γ(t)1, using the properties of the cumulant function. Thus,

γ(t)γ(t)γ(t),1γ(t)1γ(t)γ(t)γN(t)[1γ(t)γ(t)],γN(t)[1γ(t)]γN(t)γN(t)[1γ(t)γ(t)],γN(t)γN+1(t)γN(t)γN(t)γN+1(t)γN+1(t). (18)

Rearranged, this tells us that the integrand in Equation 17 is non-positive (i.e., 0) everywhere. Thus, we have proved that VN+1VN. In other words, the variance of the flashing distribution monotonically decreases with increasing number of fireflies.

Further, as N, γN(t)0 for all t above T0 (which is the maximum value of t below which b(t) is 0). For values of t below T0, γN(t)=1 irrespective of N. Thus, from Equation 10,

limNTNm=m0T0tm1dt=T0m, (19)

which represents moments of the Dirac Delta function PN(T)=δ(TT0) . Thus, as the number of fireflies tends to infinity, the distribution of interburst intervals tends to a Dirac Delta function peaked at T0.

Behavior of mode

For a single firefly interburst interval distribution b(t) that is continuous for tT0 and differentiable for t>T0 (where T0 is the maximum value of t below which b(t) is 0), we show that the left-most mode shifts to the left as the number of fireflies (N) increases, unless it reaches T0, in which case it stays at T0 on increasing N.

The mode would be the local maximum of distribution PN. Differentiating Equation 5,

PN(t)=NγN2(t)[γ(t)b(t)(N1)b2(t)]. (20)

Let the left-most mode of PN be located at t=tN. If tN=T0, we have

limtT0+γ(t)b(t)(N1)b2(t)<0. (21)

Now, on increasing the number of fireflies by 1, we still have

limtT0+γ(t)b(t)Nb2(t)<0limtT0+PN+1(t)<0. (22)

Thus, the mode stays at T0 . On the other hand, if tN>T0 , we have

γ(tN)b(tN)(N1)b2(tN)=0. (23)

Now, on increasing the number of fireflies by 1, we get

γ(tN)b(tN)Nb2(tN)<0PN+1(tN)<0. (24)

Thus, PN+1 increases toward the left of tN, i.e., T0tN+1<tN . Thus, the left-most mode shifts to the left as the number of fireflies (N) increases, unless it reaches T0 , in which case it stays at T0.

Numerical demonstration

We use numerical calculations to demonstrate how synchronized periodicity arises in an arbitrary system which follows the extreme-value statistics used in our theory. Here, we take an arbitrary probability distribution (given by N=1 label in Figure 6) and plot the distribution of the minimum of N samples obtained from the N=1 distribution. The distributions for arbitrary N are described by Equation 5 as derived previously. As N increases, these distributions become sharply peaked with maximum probability peaked at a value larger than the minimum of the N=1 distribution. For a system in which these quantities represent the interval between events, for large N, those events would become highly periodic as the width of the distribution narrows.

Agent-based simulations implementation details

Preparing input for the simulations

The input distribution for the simulations’ inter-burst interval Tb is sampled directly from envelope distributions that encapsulate observations of one firefly’s inter-burst interval. These envelope distributions were generated using an interpolating β-spline between bin centers of the histogram of the distribution, normalized so that the area underneath the envelope sums to 1. The protocol for generating this envelope distribution is as follows:

  1. Read and clean the data.

    1. Read the experimental observations of individual firefly Tb from an input file and save into a list called tbs.

    2. Remove from tbs all values below 2.0 s: these were deemed to be ‘interflash’ values and should not be included.

    3. Extract minimum value Tbmin(=5.672s) and maximum value Tbmax(=1403.385s) from tbs.

  2. Generate the envelope.

    1. Make a density histogram of the data tbs such that H(x)=y, defined between Tbmin and Tbmax. Here we used a bin width of 27.954 s (dividing the interval uniformly into 50 bins) to smooth over the bumpy peaks of the input distribution.

    2. From the bins and heights of H(x), compute the coefficients of a cubic spline function (Press et al., 1992). This produces a function B(x) that will fit to the ‘envelope shape’ of the distribution when applied to a particular domain of xs.

    3. On the domain x = [Tbmin, Tbmax] with 0.1 s increments, let H’(x)=B(x). This produces a fine-grained version of the envelope from which samples can be generated later.

    4. Tbmin Pad H’(x) with 0 s from [0, Tbmin] with bin size 0.1. Call the resulting piecewise function H”(x), where H”(x)=0 if 0 ¡ x ¡ Tbmin and H’(x) otherwise. Thus,
      H(x)={0,if 0<x<TbminH(x),if TbminxTbmax}. (25)
    5. For x in [0, Tbmax] with 0.1 s increments: write (x, H’’(x)) to a new file.

  3. Draw from the envelope

    1. Read (x,H”(x)) pairs from new file

    2. Let N = number of input values to choose

    3. Randomly sample N values with replacement from distribution, call it tbs2

    4. Instantiate each of N agents with one value from tbs2 and run simulation

Simulation parameters

All experiments carried out with this agent-based framework were conducted via simulation. The simulation outputs a time series of flashes and their positions. For each set of parameters, we ran simulations for thirty trials of 200,000 timesteps each. Parameters can be varied run-by-run via command-line arguments, which made a grid search parameter sweep over coupling strength β and number of fireflies N easily parallelizable. All other values required for the synchronization dynamics are instantiated from experimental observations as explained in the main text.

Acknowledgements

OP acknowledges internal funds from the BioFrontiers Institute, and a seed grant from the Interdisciplinary Research Theme on Autonomous Systems and the University of Colorado Boulder. SI-B and KJ thank the Purdue Research Foundation, the Showalter Trust, and the Ross-Lynn Fellowship award for financial support.

Funding Statement

The funders had no role in study design, data collection and interpretation, or the decision to submit the work for publication.

Contributor Information

Raphael Sarfati, Email: raphael.sarfati@cornell.edu.

Kunaal Joshi, Email: joshi84@purdue.edu.

Srividya Iyer-Biswas, Email: iyerbiswas@purdue.edu.

Orit Peleg, Email: orit.peleg@colorado.edu.

Irene Giardina, Università Sapienza, Italy.

Aleksandra M Walczak, CNRS, France.

Funding Information

This paper was supported by the following grants:

  • Purdue University West Lafayette Ross-Lynn Fellowship to Kunaal Joshi, Srividya Iyer-Biswas.

  • Showalter Trust to Kunaal Joshi, Srividya Iyer-Biswas.

  • Purdue Research Foundation to Kunaal Joshi, Srividya Iyer-Biswas.

  • BioFrontiers Institute to Orit Peleg.

  • Interdisciplinary Research Theme on Autonomous Systems and the University of Colorado Boulder to Orit Peleg.

Additional information

Competing interests

No competing interests declared.

Author contributions

Collected the data; analyzed the data; Designed the computational framework with insights from KJ; Discussed the results; Wrote the paper.

Conceptualized the theory framework and proposed the principle; Performed analytic calculations with contributions from RS; Discussed the results; Wrote the paper.

Analyzed the data; Designed the computational framework with insights from KJ; Performed simulations; Discussed the results; Wrote the paper.

Collected the data; Discussed the results; Wrote the paper.

Conceptualized the theory framework and proposed the principle; Performed analytic calculations with contributions from RS; Discussed the results; Wrote the paper; Supervised research.

Collected the data; Designed the computational framework with insights from KJ; Discussed the results; Wrote the paper; Supervised research.

Additional files

MDAR checklist

Data availability

The data and code that support the findings of this study are openly available in the EmergentPeriodicity GitHub repository found at https://github.com/peleg-lab/EmergentPeriodicity (copy archived at Martin, 2025).

References

  1. Attanasi A, Cavagna A, Del Castello L, Giardina I, Melillo S, Parisi L, Pohl O, Rossaro B, Shen E, Silvestri E, Viale M. Collective behaviour without collective order in wild swarms of midges. PLOS Computational Biology. 2014;10:e1003697. doi: 10.1371/journal.pcbi.1003697. [DOI] [PMC free article] [PubMed] [Google Scholar]
  2. Ballerini M, Cabibbo N, Candelier R, Cavagna A, Cisbani E, Giardina I, Lecomte V, Orlandi A, Parisi G, Procaccini A, Viale M, Zdravkovic V. Interaction ruling animal collective behavior depends on topological rather than metric distance: evidence from a field study. PNAS. 2008;105:1232–1237. doi: 10.1073/pnas.0711437105. [DOI] [PMC free article] [PubMed] [Google Scholar]
  3. Bottani S. Synchronization of integrate and fire oscillators with global coupling. Physical Review E. 1996;54:2334–2350. doi: 10.1103/PhysRevE.54.2334. [DOI] [PubMed] [Google Scholar]
  4. Buck J, Buck E. Biology of synchronous flashing of fireflies. Nature. 1966;211:562–564. doi: 10.1038/211562a0. [DOI] [Google Scholar]
  5. Couzin ID. Collective cognition in animal groups. Trends in Cognitive Sciences. 2009;13:36–43. doi: 10.1016/j.tics.2008.10.002. [DOI] [PubMed] [Google Scholar]
  6. De Monte S, d’Ovidio F, Danø S, Sørensen PG. Dynamical quorum sensing: Population density encoded in cellular dynamics. PNAS. 2007;104:18377–18381. doi: 10.1073/pnas.0706089104. [DOI] [PMC free article] [PubMed] [Google Scholar]
  7. Ermentrout B. An adaptive model for synchrony in the firefly Pteroptyx malaccae. Journal of Mathematical Biology. 1991;29:571–585. doi: 10.1007/BF00164052. [DOI] [Google Scholar]
  8. Faust LF. Natural history and flash repertoire of the synchronous firefly Photinus carolinus (Coleoptera: Lampyridae) in the Great Smoky Mountains National Park. Florida Entomologist. 2010;93:208–217. doi: 10.1653/024.093.0210. [DOI] [Google Scholar]
  9. Jalife J, Michaels J. The initiation of the heart beat as a dynamic consensus of electrically coupled pacemaker cells. Some Mathematical Questions in Biology: The Dynamics of Excitable Media.1989. [Google Scholar]
  10. Jongsma HJ, Tsjernina L, de Bruijne J. The establishment of regular beating in populations of pacemaker heart cells. A study with tissue-cultured rat heart cells. Journal of Molecular and Cellular Cardiology. 1983;15:123–133. doi: 10.1016/0022-2828(83)90288-2. [DOI] [PubMed] [Google Scholar]
  11. Kelley DH, Ouellette NT. Emergent dynamics of laboratory insect swarms. Scientific Reports. 2013;3:1073. doi: 10.1038/srep01073. [DOI] [PMC free article] [PubMed] [Google Scholar]
  12. Martin O. Emergent Periodicity in Fireflies. swh:1:rev:91a3fad8aa1ba17a42d87048e64cafe88644569eSoftware Heritage. 2025 https://archive.softwareheritage.org/swh:1:dir:f9ba3681cfdfe056767e0256711fe219b1a01782;origin=https://github.com/peleg-lab/EmergentPeriodicity;visit=swh:1:snp:4ec7ebec032250308972a21a923fc43b54cea55e;anchor=swh:1:rev:91a3fad8aa1ba17a42d87048e64cafe88644569e
  13. McCrea M, Ermentrout B, Rubin JE. A model for the collective synchronization of flashing in Photinus carolinus. Journal of the Royal Society, Interface. 2022;19:20220439. doi: 10.1098/rsif.2022.0439. [DOI] [PMC free article] [PubMed] [Google Scholar]
  14. Mirollo RE, Strogatz SH. Synchronization of pulse-coupled biological oscillators. SIAM Journal on Applied Mathematics. 1990;50:1645–1662. doi: 10.1137/0150098. [DOI] [Google Scholar]
  15. Moiseff A, Copeland J. A new type of synchronized flashing in a North American Firefly. Journal of Insect Behavior. 2000;13:597–612. doi: 10.1023/A:1007823904866. [DOI] [Google Scholar]
  16. Moiseff A, Copeland J. Firefly synchrony: a behavioral strategy to minimize visual clutter. Science. 2010;329:181. doi: 10.1126/science.1190421. [DOI] [PubMed] [Google Scholar]
  17. Ouellette NT. A physics perspective on collective animal behavior. Physical Biology. 2022;19:ac4bef. doi: 10.1088/1478-3975/ac4bef. [DOI] [PubMed] [Google Scholar]
  18. Pikovsky A, Rosenblum M, Kurths J. Synchronization: A Universal Concept in Nonlinear Sciences. Cambridge University Press; 2001. [DOI] [Google Scholar]
  19. Press WH, Teukolsky SA, Vetterling WT, Flannery BP. Numerical Recipes in C: The Art of Scientific Computing. Cambridge University Press; 1992. [DOI] [Google Scholar]
  20. Ramírez Ávila GM, Guisset JL, Deneubourg JL. Synchronization in light-controlled oscillators. Physica D. 2003;182:254–273. doi: 10.1016/S0167-2789(03)00135-0. [DOI] [PubMed] [Google Scholar]
  21. Ramírez Ávila GM, Deneubourg JL, Guisset JL, Wessel N, Kurths J. Firefly courtship as the basis of the synchronization-response principle. Europhysics Letters. 2011;94:60007. doi: 10.1209/0295-5075/94/60007. [DOI] [Google Scholar]
  22. Ramírez Ávila GM, Kurths J, Depickère S, Deneubourg JL. In: A Mathematical Modeling Approach from Nonlinear Dynamics to Complex Systems. Macau E, editor. Springer International Publishing; 2019. Modeling fireflies synchronization; pp. 131–156. [DOI] [Google Scholar]
  23. Rodrigues FA, Peron TKDM, Ji P, Kurths J. The Kuramoto model in complex networks. Physics Reports. 2016;610:1–98. doi: 10.1016/j.physrep.2015.10.008. [DOI] [Google Scholar]
  24. Sarfati R, Hayes J, Sarfati É, Peleg O. Spatiotemporal reconstruction of emergent flash synchronization in Firefly Swarms via Stereoscopic 360-degree cameras. bioRxiv. 2020 doi: 10.1101/2020.03.19.999227. [DOI] [PMC free article] [PubMed]
  25. Sarfati R, Hayes JC, Peleg O. Self-organization in natural swarms of Photinus carolinus synchronous fireflies. Science Advances. 2021;7:eabg9259. doi: 10.1126/sciadv.abg9259. [DOI] [PMC free article] [PubMed] [Google Scholar]
  26. Sarfati R, Gaudette L, Cicero JM, Peleg O. Statistical analysis reveals the onset of synchrony in sparse swarms of Photinus knulli fireflies. Journal of the Royal Society, Interface. 2022;19:20220007. doi: 10.1098/rsif.2022.0007. [DOI] [PMC free article] [PubMed] [Google Scholar]
  27. Sarfati R, Joshi K, Martin O, Hayes JC, Iyer-Biswas S, Peleg O. Correction: Emergent periodicity in the collective synchronous flashing of fireflies. eLife. 2025;14:e109449. doi: 10.7554/eLife.109449. [DOI] [PMC free article] [PubMed] [Google Scholar]
  28. Stanger-Hall KF, Lloyd JE. Flash signal evolution in Photinus fireflies: character displacement and signal exploitation in a visual communication system. Evolution; International Journal of Organic Evolution. 2015;69:666–682. doi: 10.1111/evo.12606. [DOI] [PubMed] [Google Scholar]
  29. Strogatz SH. Spontaneous synchronization in nature. International Frequency Control Symposium; 1997. [DOI] [Google Scholar]
  30. Strogatz SH. From kuramoto to crawford: Exploring the onset of synchronization in populations of coupled oscillators. Physica D: Nonlinear Phenomena. 2000;143:1–20. doi: 10.1016/S0167-2789(00)00094-4. [DOI] [Google Scholar]
  31. Taylor AF, Tinsley MR, Wang F, Huang Z, Showalter K. Dynamical quorum sensing and synchronization in large populations of chemical oscillators. Science. 2009;323:614–617. doi: 10.1126/science.1166253. [DOI] [PubMed] [Google Scholar]

Editor's evaluation

Irene Giardina 1

This important study provides a quantitative characterization and understanding of firing collective patterns in P. Carolinus fireflies. The work significantly contributes to fill the gap between observations and mechanistic models, with convincing experimental evidence and solid theoretical modeling. This work will be of interest to readers curious about collective behavior, biological rhythms, and models of synchronized oscillations.

Decision letter

Editor: Irene Giardina1
Reviewed by: Steven Strogatz2

Our editorial process produces two outputs: (i) public reviews designed to be posted alongside the preprint for the benefit of readers; (ii) feedback on the manuscript for the authors, including requests for revisions, shown below. We also include an acceptance summary that explains what the editors found interesting or important about the work.

Decision letter after peer review:

Thank you for submitting your article "Emergent periodicity in the collective synchronous flashing of fireflies" for consideration by eLife. Your article has been reviewed by 2 peer reviewers, and the evaluation has been overseen by a Reviewing Editor and Aleksandra Walczak as the Senior Editor. The following individual involved in review of your submission has agreed to reveal their identity: Steven Strogatz (Reviewer #1).

The reviewers have discussed their reviews with one another, and the Reviewing Editor has drafted this to help you prepare a revised submission.

Both referees have expressed positive comments on the experimental findings and on the modeling part. They raised, however, several concerns/issues that ALL need to be addressed in a revised version. Please look at the referees' reports to understand what their main criticisms are and to read their detailed comments. Please note that Referee 1 also provided an annotated pdf with all comments marked directly in the text. You should be able to download the pdf from the website, if not please contact the editorial office for help.

As you will see, there are a few general points that we consider essential revisions for further review:

1) Some hypothesis, and in particular the one that all individuals have the same inter-burst interval distribution should be tested/justified/discussed.

2) Comparison between the models and the data must be improved, in particular through a quantification of the differences between distributions and sensitivity analysis of the numerical results.

3) More discussion of the modeling in connection to past theoretical results and existing literature is necessary to better contextualize the present work and assess its originality.

Reviewer #1 (Recommendations for the authors):

The authors propose a simple model for flash dynamics in a certain species of firefly known as P. Carolinus. Remarkably, individual males of this species flash haphazardly, with no particular rhythm, yet in sufficiently large groups, they somehow manage to flash in rhythmic unison. The authors show that their model can account for this phenomenon - with no adjustable parameters - and they test their model quantitatively in idealized experiments on groups of up to 20 fireflies confined to a small, darkened, cuboid tent of dimensions 1.5 x 2 x 1.5 cubic meters.

Strengths:

The authors' model is unusual in that the individual fireflies are not assumed to be intrinsically rhythmic. By contrast, in most previous work on firefly synchronization the individual fireflies were modeled as "oscillators." That convenient assumption allowed a large body of theory from nonlinear dynamics to be imported. However, for the particular species of firefly being studied here, the authors show the individual males do not flash rhythmically. The authors provide a framework for dealing with this novel case.

There are actually two parts to the framework. In the first (extremely stylized) model, the authors assume that after it flashes, each firefly waits a random time before it can flash again. All fireflies choose this random waiting time from the same probability distribution; in that sense, the fireflies are assumed to be statistically identical. Furthermore, the authors assume that when one firefly flashes, it triggers all the rest to flash instantaneously. A weakness of this extreme idealization is that synchrony is thereby built in automatically by assumption, rather than explained as a consequence of the model. But a virtue of this extreme idealization is that it correctly predicts how the variance in the interburst intervals depends on the number of fireflies in the group. In this way, the authors neatly explain a property of the emergent period that they observe in their tent experiments. Most notably, they do this without any adjustable parameters. The result follows as a consequence of their model and their measurements of individual firefly behavior. This is a beautiful instance of using individual behavior to predict collective behavior with the help of some simple, additional assumptions.

The second part of the new framework builds on existing research on a class of oscillators known as "integrate and fire" oscillators. The new wrinkle is that the authors introduce a stochastic term in the equation (a random amount of time for the oscillator to charge up) in order to capture the erratic nature of the interburst interval for individual males of this firefly species. The virtue of this more complex model is that it allows the authors to predict a transition to group periodicity as the interaction strength between the fireflies is increased. It also allows the authors to relax the earlier (unrealistic) assumption of instantaneous triggering of all other fireflies whenever one firefly flashes.

Weaknesses:

The work presented here is an excellent start at understanding the collective behavior of this particular species of firefly. However, the model does not apply to other species in which individual males are intrinsically rhythmic. So the model is less general than it may appear at first.

The modeling framework is also developed under the very stylized conditions of experiments conducted in a small tent. While that is a natural place to begin, future work should consider the conditions that fireflies encounter in the wild. Swarms that are spread out in space would require a model with a more complicated structure, perhaps with network connectivity and coupling strengths that both change in time as fireflies move around. This is not so much a weakness of the present work as a call to arms for future research.

Overall, the paper does an excellent job of supporting its conclusions with elegant arguments and experiments.

This assumption that all individuals have the same IBI distribution could be directly tested. Has this been done? If not, why not? e.g. Are there difficulties with letting one firefly flash long enough to collect sufficient data to fill out the distribution?

The derivation given in 6.2.1 is clearer than the approach taken here, which unnecessarily introduces Q, q, and c and then never uses them again.

Reviewer #2 (Recommendations for the authors):

Synchronous flashing of fireflies is a textbook example of collective behaviour, although much more theoretical work has been devoted to explaining it than field observations. The work proposed in this manuscript, along with previous results by the same group, are significantly contributing to fill the gap between observations and mechanistic models. In these models, single-insect dynamics is described along with the interaction mechanisms.

In a clever experiment where fireflies are screened from the rest of the population, so that the number of interacting individuals can be manipulated, the authors were able to characterize both single-fireflies firing patterns, and the emergence of collective-level flashes when their number is progressively increased. These observations show that collective-level firing is more regular and more frequent that the average individual-level firing, a feature that can be explained by globally coupled populations of dynamical systems, where firing is followed by a refractory period. The authors show at first that the increase in coherence (standard deviation of the inter-spike interval of the synchronous flashes) as a function of the number N of fireflies is quantitatively explained knowing just the inter-burst interval of collective flashing at high density - which is largely determined by the duration of the refractory period. Then, by using an integrate-and fire model that explicitly accounts for coupling, they study the dependence of the onset of collective oscillations on coupling, and estimate what coupling strength best explains the observations at different N.

I found that the experiment is really nice and has the potential to advance a lot the mechanistic understanding of this collective behaviour. Also, the mathematical model reproduces the main observations, even though density-dependent onset of synchronization, reduction of the oscillation frequency with increasing density, and finite-size scaling are general properties that are observed in populations of globally coupled dynamical systems other than the one proposed here.

However, the way models reflect experimental observations and how they compare with them and with one another are in my opinion insufficiently characterized and discussed.

I raise two main points:

1. The biological relevance of certain hypotheses is insufficiently discussed. This is important because if the observed behaviour is a universal one, alternative models may explain it as well.

2. Comparison between the models and the data could be improved, in particular through quantification of the differences between distributions and sensitivity analysis of the numerical results.

I detail below the main points where I think the manuscript could be improved. In general, I think that toning it down a bit would not be out of place. There were also a number of edits that I could signal if I receive a version of the paper with line numbers.

A. The assumption that single-firefly spikes obey the same distribution (there is no individual variation in the frequency, or even of the composing number of bursts, of the flash) does not seem to have been verified on the data, that are instead pulled together in one single distribution (Figure 1D). Moreover, the main feature of such distribution is that it has a minimum at 12 secs (discarding the faster bursts that are not considered in the model) and that it is sufficiently skewed so that it takes a minimal coupling for collective synchrony to emerge. I think that the agreement between the distributions for different N would be more meaningfully discussed having previous work as a reference, whereas now this is relegated to the discussion, so that it is unclear how much of the theoretical results are novel and/or unexpected. Quantification of the distance between distributions would also be interesting: it looks like the two models (analytical and simulations) disagree more among themselves than with the data.

B. If I understand correctly, simulations are introduced as a way to get a dependence on the intensity of the coupling (\β). There are several issues here. First, I do not see how the coupling constant could change in the present experimental setup, where all fireflies presumably see each other (different from when there is vegetation). Second, looking at Figure 3, the critical coupling strength appears to depend very weakly from N, and it is not clear how the 'detailed comparison' that leads to the fit is realized (in fact, the fitted \betas look larger that those at which the transition occurs in Figure 3A). I think a sensitivity analysis is needed in order to understand how do results change when \β is changed, and also what is the effect of the natural Tb distribution (Figure 2 F). Results of the simulations might be clearer if instead of using the envelope of the experimental results, the authors tried to fit it to a standard distribution (ex. Poisson) so that it can be regularized. This should allow to trace with higher resolution the boundary between asynchronous and synchronous firing.

C. More care should be put in explaining what are the initial conditions hypothesized for the different models. For instance, the results of paragraph 3 are understandable if all fireflies are initialized just after firing, something that is only learnt at the end of the paragraph. I also wonder whether initial conditions may be involved with T_bs in the low-coupling region of Figure 3A not being uniformly distributed, as I would have expected for a desynchronized population.

D. I found that equations were hard to understand either because one of the variables was not precisely (or at all) defined, or because some information was missing:

Equation 1: q is not defined

Equation 2: explain what it means: the prob. that others have not flashed times that one flashes. Also, say explicitly what is the 'corresponding PDF.

Equation 3: the equation for \epsilon(t) to which this is coupled is missing

Why introduce \β_{i,j} and T_bi if they are then taken independent of the indexes?

Definitions of collective and group burst interval should be provided.

It would be clearer if t_b0 was defined in the first paragraph of the results, so as to clarify as well its relation with T_b.

Define T^i_b in the caption of Figure 3 (they are defined later than the figure is first discussed).

The definition of 'the vertical axis label' (maybe find a word for that…) is pretty cumbersome. I could imagine that other definitions would allow the lines in Figure 3 E to converge to the same line for large betas, which would make more sense, considering that in the strong coupling limit I see no reason why the collective spiking should not be the same for different N (the analytical model could help here).

E. I think that the author's reading of the two 'dynamical quorum sensing' papers they cite is incorrect: De Monte et al. was not about the Kuramoto model, but the same limit cycle oscillators as in Strogatz; Taylor et al. considers excitable systems, potentially closer to noisy integrate-and-fire, at least in that they do not have self-sustained oscillations. Both papers show that oscillations appear above a certain density threshold, and that the frequency of oscillations increases with density, as found in this work. A more accurate link to previous publications in the field of synchronization theory, including the models by Kurths and colleagues for fireflies, would be useful both in the introduction and in the discussion, and would help the reader to position this work and appreciate its original contributions.

F. The authors say that part of the data is unpublished. I guess they mean that the whole data set will be published with this manuscript. I think the formulation is ambiguous.

[Editors' note: further revisions were suggested prior to acceptance, as described below.]

Thank you for resubmitting your work entitled "Emergent periodicity in the collective synchronous flashing of fireflies" for further consideration by eLife. Your revised article has been evaluated by Aleksandra Walczak (Senior Editor) and a Reviewing Editor.

The manuscript has been improved significantly, and both referees praise its enhanced clarity and presentation. There are, however, a few remaining issues that need to be addressed, as outlined below:

Reviewer 2 suggested further comments and more discussion to be added in connection to (i) comparison with other models; (ii) agreement between modeling and observations. All the points raised in the report (see below) should be addressable in a relatively short time, and would further improve the potential impact and outreach of the manuscript.

Reviewer #2 (Recommendations for the authors):

The authors have significantly improved the manuscript, where assumptions and analytical and numerical results are now presented more clearly.

I still have some comments, more of less specific, that I list below, starting with the conceptual ones.

1. Citation of previous work on dynamical quorum sensing (lines 51 and 52) I think misses two important points: first these works (and others following them) deal with the appearance of collective oscillations at high density (therefore, the same general problem addressed here); second, Taylor et al. studied also a transition where the oscillators involved did not oscillate at low density, whereas above a density threshold, they display coherent collective oscillations whose period decreases with density – similar to what observed here. I do not think this takes anything away from the originality of this work, which refers to a different system, and models it with different equations, but the parallelism between integrate-and-fire dynamics with quenched noise and excitable dynamics in the presence of noise should in my opinion not be overlooked.

2. As the authors stress in lines 105 and 132, the analytical model shows that all that really matters in this phenomenon is the fastest frequency of the system. This could be used as an argument to say that the actual frequency distribution of individual fireflies is not all that important, as long as their fastest frequency is comparable. The assumption that they are identical would then sound less radical. Ideally, one could use the numerical simulations to check this, as well as the fact that the phenomenon does not break down when the shortest individual interburst interval Tb_min is narrowly distributed (which could also explain why having a few individuals who can flash at a higher frequency does not affect the outcome).

3. I still feel that the agreement between the model and observations is a bit overstated (line 120). At least, I think the authors may stress that whereas the model predicts that the frequency of the 7-14 minutes oscillations should increase a lot with N, this is not observed in the data. Maybe this mismatch would be reduced if inter-individual variability was added.

4. In paragraph 4.2, I found it unclear why the authors find it unsurprising that different experiments would correspond to different betas. I think that this point should be discussed, as β and N appear in combination in determining the interaction strength. Otherwise, they could try to fit all distributions with the same β, which would be more natural for me. I guess that the fits would be anyway good to the eye, though quantitatively suboptimal (which could be quantified with the distance introduced).

eLife. 2023 Mar 13;12:e78908. doi: 10.7554/eLife.78908.sa2

Author response


Essential revision:

1) Some hypothesis, and in particular the one that all individuals have the same inter-burst interval distribution should be tested/justified/discussed.

a) We have generalized the theory to directly address this point by relaxing the assumption of an identical inter-burst interval for all individuals. In short: the main insights continue to hold and we discuss the nuances in the text.

(b) Experimentally, the hypothesis that all single fireflies isolated from the group exhibit the same interburst interval (IBI) distribution could not be rigorously tested. The main reason is practical: in order to compare IBI distributions across individuals, we would need to collect a large number of fireflies and track them for long durations, which was not realistic given our experimental setup and the short window of firefly emergence. In addition, external environmental factors might slightly alter behaviors as well, making comparisons even more complex. Thus, due to paucity of field data, we eventually use the assumption that all individual fireflies follow the same IBI distribution.

2) Comparison between the models and the data must be improved, in particular through a quantification of the differences between distributions and sensitivity analysis of the numerical results.

a) Regarding the comparison of the agent-based simulations with experimental data, in Figure 7, we compare the underlying distributions using the two-sided Kolgomorov-Smirnov statistical test for goodness-of-fit. These appear to us the most straightforward and informative approaches, without over-fitting.

b) Regarding sensitivity analysis for the agent-based simulations, for each β value from 0 to 1 we statistically compared simulations to the experimental distributions to find the most well-fitted β.

c) Finally, owing to experimental constraints leading to sparsity of available data in characterizing the interburst distribution, we strive to strike a delicate balance between sophisticated statistical tools to compare theoretical and simulation distributions (with unrestricted access to large sample sizes) to the finite samples in the empirical distributions. As such, we think it is the apposite to use the first two moments of respective distributions In Figure 3 to show the striking similarity of trends.

3) More discussion of the modeling in connection to past theoretical results and existing literature is necessary to better contextualize the present work and assess its originality.

We have done this closely following the specific suggestions from reviewers.

Revised terminology: removing usage of “model”

Since unintended ambiguity may be caused by use of the word “model”, which could refer to either (1) the theoretical framework, principle of emergent periodicity, and attendant analytic calculation, or (2) the agent-based simulation in the computational realization, we have removed all instances of the word “model” from the results presented in the paper, and replaced by the specific meaning (theory or simulation) in each context.

Similarly, in responding to Reviewers’ comments, we clarify what we understand by their use of the word “model” in each case.

Addressing an error in the agent-based simulation code

We (OM and OP) have now addressed an inadvertent unit typo in the agent-based simulation code. The discharging time (Td) before the typo was fixed was set to 10000ms. After the fix, the Td value was correctly set to 100ms. This caused very slow discharges, keeping the voltage high until any β addition was received, resulting in more frequent bursts than we’d actually expect from the model dynamics. This has been fixed, and in our responses to the reviewers, we address the results of this fix by referring to the “unit typo”. We corrected the panels corresponding to agent-based simulation in Figures 3 and 5 to reflect the new numerical simulation results, as well as the corresponding sections in the text of the paper.

Addressing changes to experimental dataset

We increased the size of our N=1 dataset (N is number of fireflies) to correctly match what was reported in the original text of 10 samples. Additionally, we have added characterization of the size of the datasets for N=5, 10, 15, and 20 fireflies.

Reviewer #1 (Recommendations for the authors):

The authors propose a simple model for flash dynamics in a certain species of firefly known as P. Carolinus. Remarkably, individual males of this species flash haphazardly, with no particular rhythm, yet in sufficiently large groups, they somehow manage to flash in rhythmic unison. The authors show that their model can account for this phenomenon - with no adjustable parameters - and they test their model quantitatively in idealized experiments on groups of up to 20 fireflies confined to a small, darkened, cuboid tent of dimensions 1.5 x 2 x 1.5 cubic meters.

Strengths:

The authors' model is unusual in that the individual fireflies are not assumed to be intrinsically rhythmic. By contrast, in most previous work on firefly synchronization the individual fireflies were modeled as "oscillators." That convenient assumption allowed a large body of theory from nonlinear dynamics to be imported. However, for the particular species of firefly being studied here, the authors show the individual males do not flash rhythmically. The authors provide a framework for dealing with this novel case.

There are actually two parts to the framework. In the first (extremely stylized) model, the authors assume that after it flashes, each firefly waits a random time before it can flash again. All fireflies choose this random waiting time from the same probability distribution; in that sense, the fireflies are assumed to be statistically identical. Furthermore, the authors assume that when one firefly flashes, it triggers all the rest to flash instantaneously. A weakness of this extreme idealization is that synchrony is thereby built in automatically by assumption, rather than explained as a consequence of the model. But a virtue of this extreme idealization is that it correctly predicts how the variance in the interburst intervals depends on the number of fireflies in the group. In this way, the authors neatly explain a property of the emergent period that they observe in their tent experiments. Most notably, they do this without any adjustable parameters. The result follows as a consequence of their model and their measurements of individual firefly behavior. This is a beautiful instance of using individual behavior to predict collective behavior with the help of some simple, additional assumptions.

The second part of the new framework builds on existing research on a class of oscillators known as "integrate and fire" oscillators. The new wrinkle is that the authors introduce a stochastic term in the equation (a random amount of time for the oscillator to charge up) in order to capture the erratic nature of the interburst interval for individual males of this firefly species. The virtue of this more complex model is that it allows the authors to predict a transition to group periodicity as the interaction strength between the fireflies is increased. It also allows the authors to relax the earlier (unrealistic) assumption of instantaneous triggering of all other fireflies whenever one firefly flashes.

Weaknesses:

The work presented here is an excellent start at understanding the collective behavior of this particular species of firefly. However, the model does not apply to other species in which individual males are intrinsically rhythmic. So the model is less general than it may appear at first.

We take the Reviewer’s point well. We have added text to the paper to clearly highlight this point.

The modeling framework is also developed under the very stylized conditions of experiments conducted in a small tent. While that is a natural place to begin, future work should consider the conditions that fireflies encounter in the wild. Swarms that are spread out in space would require a model with a more complicated structure, perhaps with network connectivity and coupling strengths that both change in time as fireflies move around. This is not so much a weakness of the present work as a call to arms for future research.

We agree with the Reviewer that this is an exciting call to arms for future research!

Overall, the paper does an excellent job of supporting its conclusions with elegant arguments and experiments.

This assumption that all individuals have the same IBI distribution could be directly tested. Has this been done? If not, why not? e.g. Are there difficulties with letting one firefly flash long enough to collect sufficient data to fill out the distribution?

1. We have generalized the theory to directly address this point by relaxing the assumption that all individuals exhibit the same inter-burst interval distribution. In short: the main insights continue to hold and we discuss the nuances in the text.

2. Experimentally, hypothesis that all single fireflies isolated from the group exhibit the same interburst interval (IBI) distribution could not be rigorously tested. The main reason is practical: in order to compare IBI distributions across individuals, we would need to collect a large number of fireflies and track them for long durations, which was not realistic given our experimental setup and the short window of firefly emergence. In addition, external environmental factors might slightly alter behaviors as well, making comparisons even more complex. Thus, due to paucity of field data, we eventually use the assumption that all individual fireflies follow the same IBI distribution.

The derivation given in 6.2.1 is clearer than the approach taken here, which unnecessarily introduces Q, q, and c and then never uses them again.

We agree with the Reviewer and have accordingly revised the manuscript.

We have also implemented the suggested edits in the marked up manuscript. We are grateful for the detailed feedback, which helped us substantially extend results, and improve presentation and clarity.

Reviewer #2 (Recommendations for the authors):

Synchronous flashing of fireflies is a textbook example of collective behaviour, although much more theoretical work has been devoted to explaining it than field observations. The work proposed in this manuscript, along with previous results by the same group, are significantly contributing to fill the gap between observations and mechanistic models. In these models, single-insect dynamics is described along with the interaction mechanisms.

In a clever experiment where fireflies are screened from the rest of the population, so that the number of interacting individuals can be manipulated, the authors were able to characterize both single-fireflies firing patterns, and the emergence of collective-level flashes when their number is progressively increased. These observations show that collective-level firing is more regular and more frequent that the average individual-level firing, a feature that can be explained by globally coupled populations of dynamical systems, where firing is followed by a refractory period. The authors show at first that the increase in coherence (standard deviation of the inter-spike interval of the synchronous flashes) as a function of the number N of fireflies is quantitatively explained knowing just the inter-burst interval of collective flashing at high density - which is largely determined by the duration of the refractory period. Then, by using an integrate-and fire model that explicitly accounts for coupling, they study the dependence of the onset of collective oscillations on coupling, and estimate what coupling strength best explains the observations at different N.

I found that the experiment is really nice and has the potential to advance a lot the mechanistic understanding of this collective behaviour. Also, the mathematical model reproduces the main observations, even though density-dependent onset of synchronization, reduction of the oscillation frequency with increasing density, and finite-size scaling are general properties that are observed in populations of globally coupled dynamical systems other than the one proposed here.

However, the way models reflect experimental observations and how they compare with them and with one another are in my opinion insufficiently characterized and discussed.

I raise two main points:

1. The biological relevance of certain hypotheses is insufficiently discussed. This is important because if the observed behaviour is a universal one, alternative models may explain it as well.

We thank the reviewer for raising this point. The main hypotheses underlying our models are: (1) individual fireflies in isolation flash at random intervals; (2) these random intervals are drawn from the empirical distribution reported (implicitly: all fireflies follow the same distribution); (3) once a firefly flashes, it triggers all others. Hypothesis (1) is directly supported by the data presented. Hypothesis (2) is comprehensively addressed in the revised manuscript, as discussed previously. Hypothesis (3) is central to the proposed principle, and enables intrinsically non-oscillating individuals to oscillate periodically when in a group. The resulting phenomenon has been compared to experimental data and extensively discussed in the manuscript. Further, we have also simulated the effect of changing the strength of coupling between fireflies based on this hypothesis in the revised section on agent-based simulation.

2. Comparison between the models and the data could be improved, in particular through quantification of the differences between distributions and sensitivity analysis of the numerical results.

1. Regarding the comparison of the agent-based simulations with experimental data, in Fig. 7, we compare the underlying distributions using the two-sided Kolgomorov-Smirnov statistical test for goodness-of fit. These appear to us the most straightforward and informative approaches, without over-fitting.

2. Regarding sensitivity analysis for the agent-based simulations, for each β value from 0 to 1 we statistically compared simulations to the experimental distributions to find the most well-fitted β.

3. Finally, owing to experimental constraints leading to sparsity of available data in characterizing the interburst distribution, we strive to strike a delicate balance between sophisticated statistical tools to compare theoretical and simulation distributions (with unrestricted access to large sample sizes) to the finite samples in the empirical distributions. As such, we think it is the apposite to use the first two moments of respective distributions In Fig. 3 to show the striking similarity of trends.

I detail below the main points where I think the manuscript could be improved. In general, I think that toning it down a bit would not be out of place. There were also a number of edits that I could signal if I receive a version of the paper with line numbers.

A. The assumption that single-firefly spikes obey the same distribution (there is no individual variation in the frequency, or even of the composing number of bursts, of the flash) does not seem to have been verified on the data, that are instead pulled together in one single distribution (Figure 1D). Moreover, the main feature of such distribution is that it has a minimum at 12 secs (discarding the faster bursts that are not considered in the model) and that it is sufficiently skewed so that it takes a minimal coupling for collective synchrony to emerge. I think that the agreement between the distributions for different N would be more meaningfully discussed having previous work as a reference, whereas now this is relegated to the discussion, so that it is unclear how much of the theoretical results are novel and/or unexpected. Quantification of the distance between distributions would also be interesting: it looks like the two models (analytical and simulations) disagree more among themselves than with the data.

Regarding the hypothesis that all individual fireflies exhibit the same interflash interval, please see our response to Main Point 1. Regarding comparing the analytical theory and numerical simulation analysis, Figures 3 and 5 have been revised after a unit typo was found in the code (see Section 2). Following the update, the analytical and numerical models agree in (1) the location of the peak in Figure 3 for all N values, and (2) the peak approaches the minimum of the input distribution as N increases.

B. If I understand correctly, simulations are introduced as a way to get a dependence on the intensity of the coupling (\β). There are several issues here. First, I do not see how the coupling constant could change in the present experimental setup, where all fireflies presumably see each other (different from when there is vegetation). Second, looking at Figure 3, the critical coupling strength appears to depend very weakly from N, and it is not clear how the 'detailed comparison' that leads to the fit is realized (in fact, the fitted \betas look larger that those at which the transition occurs in Figure 3A). I think a sensitivity analysis is needed in order to understand how do results change when \β is changed, and also what is the effect of the natural Tb distribution (Figure 2 F). Results of the simulations might be clearer if instead of using the envelope of the experimental results, the authors tried to fit it to a standard distribution (ex. Poisson) so that it can be regularized. This should allow to trace with higher resolution the boundary between asynchronous and synchronous firing.

We have included agent-based numerical simulations as a way to provide a concrete instantiation of the theory principle and analytical results in the preceding section. While the analytic theory results are fitting parameters free, in the agent-based simulations, we introduce an additional fitting parameter, to see what happens when we relax one hypothesis of the analytical theory: the instantaneous triggering of all fireflies upon an initial flasher. Additionally, the agent-based simulations pave the way for future work, allowing for convenient exploration of the connectivity between individuals and analysis of the behavior of individual fireflies. in this context, please note that Figure 5 has been corrected (see above), leading to a stronger co-dependence of β and N. In addition to the envelopes, we also report the trends in the first empirical moments (mean and STD) for comparison and tracking of the transition to synchrony.

C. More care should be put in explaining what are the initial conditions hypothesized for the different models. For instance, the results of paragraph 3 are understandable if all fireflies are initialized just after firing, something that is only learnt at the end of the paragraph. I also wonder whether initial conditions may be involved with T_bs in the low-coupling region of Figure 3A not being uniformly distributed, as I would have expected for a desynchronized population.

We have clarified that, indeed, all fireflies are re-initialized after firing. The initial conditions then become a new random vector of interflash intervals. Importantly, we found after receiving the reviews that, due to inconsistent units in our numerical simulation code, Figure 5 was incorrect. With proper units, the new results show a much more widespread distribution at low coupling, as expected by the Reviewer.

D. I found that equations were hard to understand either because one of the variables was not precisely (or at all) defined, or because some information was missing:

Equation 1: q is not defined

Equation 2: explain what it means: the prob. that others have not flashed times that one flashes. Also, say explicitly what is the 'corresponding PDF.

Equation 3: the equation for \epsilon(t) to which this is coupled is missing

Why introduce \β_{i,j} and T_bi if they are then taken independent of the indexes?

Definitions of collective and group burst interval should be provided.

It would be clearer if t_b0 was defined in the first paragraph of the results, so as to clarify as well its relation with T_b.

Define T^i_b in the caption of Figure 3 (they are defined later than the figure is first discussed).

The definition of 'the vertical axis label' (maybe find a word for that…) is pretty cumbersome. I could imagine that other definitions would allow the lines in Figure 3 E to converge to the same line for large betas, which would make more sense, considering that in the strong coupling limit I see no reason why the collective spiking should not be the same for different N (the analytical model could help here).

Thank you for these comments; we have incorporated these and related changes.

E. I think that the author's reading of the two 'dynamical quorum sensing' papers they cite is incorrect: De Monte et al. was not about the Kuramoto model, but the same limit cycle oscillators as in Strogatz; Taylor et al. considers excitable systems, potentially closer to noisy integrate-and-fire, at least in that they do not have self-sustained oscillations. Both papers show that oscillations appear above a certain density threshold, and that the frequency of oscillations increases with density, as found in this work. A more accurate link to previous publications in the field of synchronization theory, including the models by Kurths and colleagues for fireflies, would be useful both in the introduction and in the discussion, and would help the reader to position this work and appreciate its original contributions.

1. Thank you for pointing out an inaccuracy in our literature citations regarding synchronization. We have now made corrections to address this point.

2. While we take the Reviewer’s points well, our theory framework (“model”), building off of the principle of emergent periodicity we propose here, is fundamentally different in the nature of individuals from extant “models”. The reference in question has individuals as oscillators, and the fastest frequency is the frequency of the fastest individual oscillator. In contrast, in our work there is no fastest individual oscillator and the “fastest frequency” has a completely different meaning, since individuals do not have a particular frequency associated with them. In this sense, our work is not inspired by theirs. That said, we have included citations as suggested by the Reviewer.

F. The authors say that part of the data is unpublished. I guess they mean that the whole data set will be published with this manuscript. I think the formulation is ambiguous.

Thank you for this comment. We have now clarified that the data will indeed be published with the manuscript.

[Editors' note: further revisions were suggested prior to acceptance, as described below.]

Reviewer #2 (Recommendations for the authors):

The authors have significantly improved the manuscript, where assumptions and analytical and numerical results are now presented more clearly.

I still have some comments, more of less specific, that I list below, starting with the conceptual ones.

1. Citation of previous work on dynamical quorum sensing (lines 51 and 52) I think misses two important points: first these works (and others following them) deal with the appearance of collective oscillations at high density (therefore, the same general problem addressed here); second, Taylor et al. studied also a transition where the oscillators involved did not oscillate at low density, whereas above a density threshold, they display coherent collective oscillations whose period decreases with density – similar to what observed here. I do not think this takes anything away from the originality of this work, which refers to a different system, and models it with different equations, but the parallelism between integrate-and-fire dynamics with quenched noise and excitable dynamics in the presence of noise should in my opinion not be overlooked.

We have explicitly mentioned this in the revised text.

2. As the authors stress in lines 105 and 132, the analytical model shows that all that really matters in this phenomenon is the fastest frequency of the system. This could be used as an argument to say that the actual frequency distribution of individual fireflies is not all that important, as long as their fastest frequency is comparable. The assumption that they are identical would then sound less radical. Ideally, one could use the numerical simulations to check this, as well as the fact that the phenomenon does not break down when the shortest individual interburst interval Tb_min is narrowly distributed (which could also explain why having a few individuals who can flash at a higher frequency does not affect the outcome).

We thank the reviewer for these observations.

3. I still feel that the agreement between the model and observations is a bit overstated (line 120). At least, I think the authors may stress that whereas the model predicts that the frequency of the 7-14 minutes oscillations should increase a lot with N, this is not observed in the data. Maybe this mismatch would be reduced if inter-individual variability was added.

Please see the last three paragraphs of the Discussion section. In reality, as the swarm size increases, we expect that swarms will no longer be all-to-all connected, and the dynamics of the system will depend upon the speed of propagation of information across the swarm. Precisely how this happens is outside of the scope of the current experimental work and theoretical description presented here.

4. In paragraph 4.2, I found it unclear why the authors find it unsurprising that different experiments would correspond to different betas. I think that this point should be discussed, as β and N appear in combination in determining the interaction strength. Otherwise, they could try to fit all distributions with the same β, which would be more natural for me. I guess that the fits would be anyway good to the eye, though quantitatively suboptimal (which could be quantified with the distance introduced).

The reviewer raises valid concerns since as shown in Figure 3, the chosen values for β, the additional fitting parameter introduced in the agent-based simulation, are: β = 0.18, 0.13, 0.12 and 0.64 respectively for N = 5, 10, 15, 20. We (RS, OM, and OP) find it intriguing that the optimum β clusters around similar values for N = 5, 10, 15, while the optimum β for N = 20 is significantly different. We acknowledge that we do not have an explanation why the fitted parameters values are what they are but note that the fitting curve is flat, implying that several β values could possibly achieve a satisfactory fit. While further agent-based simulations could explore these findings more systematically, we believe that investigating this matter is outside the scope of this paper. Instead, we have acknowledged these points explicitly in the revised discussions.

Portion added to discussions: “As shown in Figure 3, the chosen values for β, the additional fitting parameter introduced in the agent-based simulation, are: β = 0.18, 0.13, 0.12 and 0.64 respectively for N = 5, 10, 15, 20. Perhaps it is intriguing that the optimum β clusters around similar values for N = 5, 10, 15, while the optimum β for N = 20 is significantly different. While we do not currently have an explanation for why the fitted parameter values are what they are, we note that the fitting curve is flat, implying that several β values could possibly achieve a satisfactory fit. Further agent-based simulations could explore these findings more systematically, and provide useful insights.”

Associated Data

    This section collects any data citations, data availability statements, or supplementary materials included in this article.

    Supplementary Materials

    MDAR checklist

    Data Availability Statement

    The data and code that support the findings of this study are openly available in the EmergentPeriodicity GitHub repository found at https://github.com/peleg-lab/EmergentPeriodicity (copy archived at Martin, 2025).


    Articles from eLife are provided here courtesy of eLife Sciences Publications, Ltd

    RESOURCES