Skip to main content
Journal of the Royal Society Interface logoLink to Journal of the Royal Society Interface
. 2022 Mar 23;19(188):20220007. doi: 10.1098/rsif.2022.0007

Statistical analysis reveals the onset of synchrony in sparse swarms of Photinus knulli fireflies

Raphaël Sarfati 1, Laura Gaudette 6, Joseph M Cicero 7, Orit Peleg 1,2,3,4,5,8,
PMCID: PMC8941412  PMID: 35317654

Abstract

Flash synchrony within firefly swarms is an elegant but elusive manifestation of collective animal behaviour. It has been observed, and sometimes demonstrated, in a few populations across the world, but exactly which species are capable of large-scale synchronization remains unclear, especially for low-density swarms. The underlying question which we address here is: how does one qualify a collective flashing display as synchronous, given that the only information available is the time and location of flashes? We propose different statistical approaches and apply them to high-resolution stereoscopic video recordings of the collective flashing of Photinus knulli fireflies, hence establishing the occurrence of synchrony in this species. These results substantiate detailed visual observations published in the early 1980s and made at the same experimental site: Peña Blanca Canyon, Coronado National Forest, AZ, USA. We also remark that P. knulli’s collective flashing patterns mirror those observed in Photinus carolinus fireflies in the Eastern USA, consisting of synchronous flashes in periodic bursts with rapid accretion and quick decay.

Keywords: fireflies, synchronization, statistical analysis, collective behaviour

1. Introduction

Many animal species are capable of, and benefit from, behaving collectively, from insects forming rigid aggregates, such as ants and bees, to large mammals migrating as herds over thousands of kilometres. Although in some cases the emergence of collective dynamics is intuitively evident, for example in collective turns of flocking birds or swirling schools of fish, in other instances characterizing the ensemble structure or dynamics as collective requires a much finer analysis than simple visual observations. This is the case, for example, in disorganized midge swarms [1]. In fact, despite a growing interest for large-scale patterns in animal groups, a clear definition of which behaviour qualifies as collective is still lacking [2].

To address this broad and complex question, it may be easier to start with a simple subset of collective behaviour: synchrony. Animal synchronization manifests itself in many different ways and across various time scales [3], and it is certainly a signature of how social interactions produce system-wide patterns. An inspiring and readily accessible example of biological synchrony is seen sometimes on summer nights in firefly swarms, when most flashes occur at specific instants.

Firefly flashing is primarily a courtship dialogue. In some species, advertising males flash in unison while females respond independently. Initially observed in Southeast Asia, synchronous fireflies were first reported in North America in the 1910s [4]. Observations were rare and sporadic, and often received with scepticism [5], precisely because rigorous demonstration of synchrony is difficult, especially in the absence of experimental data. In 1968, Buck & Buck [6] provided photometric evidence to demonstrate the occurrence of synchrony in Pteroptyx malaccae congregations in Thailand. In 1983, Cicero [7] published a thorough account of lek behaviour in the Arizona firefly Photinus knulli, following extensive observations made by eye. These observations did include the occurrence of synchrony. Beginning in the early 1990s, Eastern US synchronizing counterparts Photinus carolinus and Photuris frontalis have received ample attention from scientists [8], bringing videographic evidence to characterize the occurrence [9,10], mechanisms [11,12], possible function [13,14] and modalities of synchronous patterns [15]. In parallel, this renewed interest in firefly synchronization motivated numerous developments of mathematical and computational models [1618].

In prior experimental studies, owing to the very high number of fireflies flashing in unison, the occurrence of synchrony was simply accepted from observations and raw data, without demanding further statistical analysis. The high signal-to-noise ratio was sufficient proof. Since then, recurrent speculation about possible synchrony in other species illustrates the need for a general methodology, adapted in particular to low-density populations.

This paper proposes to address the following question: How does one characterize synchronization behaviour among several dispersed fireflies? The situation at hand is different from other typical situations where synchrony is involved. In mathematical models and numerical simulations, where each agent’s internal phase θk(t) is known at all times, it is possible to calculate a phase-coherence order parameter, R(t)=|eiθkk|, whose value between 0 and 1 quantifies the degree of synchrony within the system [19]. In situations where only firing is detectable, but each agent is continuously tractable, such as systems of neurons, it is possible to calculate cross-correlations between firing times of different constituents [20]. For fireflies, however, their internal phase is unknown, and in their natural habitat individual fireflies cannot be tracked for more than the duration of a flash train, after which they vanish into obscurity. We propose here two approaches to demonstrate synchrony from high-resolution video recordings: (i) from the time series of the number of flashes in a camera’s field of view; and (ii) from the spatio-temporal correlations between flash occurrences, after three-dimensional reconstruction of the swarm.

2. Methods

The general experimental area was the same as described in detail in [7], namely the Peña Blanca Canyon (above lake) within Coronado National Forest (Pajarito Mountains, Santa Cruz County, AZ, USA). It comprised an intermittent river bed with a gravel road and nearby campground. The area where video recordings occurred was situated on the side of the canyon opposite from the road and covered with dense vegetation (figure 1a).

Figure 1.

Figure 1.

(a) Field of view from one of the two recording cameras, near the river bed of the Peña Blanca Canyon. (b) Photinus knulli male firefly. (c) Long exposure (15 s) photograph of a collective display of P. knulli near the recording site. Several flash triplets are apparent.

Field observations occurred every night between 4 August and 13 August 2021. The first flashes could generally be seen between 19.50 and 20.00 local time (Mountain Standard Time, MST). Sunset occurred around 19.15 MST. Temperatures were in the 20–25°C range. Temperature and humidity variations were consistent and moderate because of clear or overcast evenings but within parameters characteristic of monsoon season in the Arizona Sonoran Desert Sky Island habitat of the Pajarito Mountain range.

Owing to initial adjustments and varying environmental conditions (rain, transient flooding), three full datasets of stereoscopic recordings were eventually obtained (7, 9, 10 August, about 150 min each). Recordings were obtained as described previously [15] from two Sony α7R4 cameras set at 60 frames per second (fps) and mounted with a wide-angle lens. Hence, the time resolution of our experiments was 17 ms. Video processing and data analysis were performed with Matlab. Flash centroids were extracted by intensity thresholding after background subtraction. For stereoscopic recordings, camera pairs were calibrated using about 10 pairs of pictures of a chessboard (25 cm side length) and Matlab’s stereoCalibration toolbox. Flash three-dimensional positions were subsequently obtained by triangulation. Spatial resolution is typically in the 1 mm–10 cm range for flashes occurring within 30 m from the cameras [12].

In order to confirm species identification, a few specimens were collected every night with an insect net and carefully inspected, then released. Some were photographed as well.

3. Results

3.1. Preliminary observations

3.1.1. Species identification

Collected male individuals (figure 1b), either on the ground or in flight, were all consistent with previous descriptions of P. knulli morphology [7]. From collected specimens and general visual observations, it appeared that only one species was displaying (flashing) over the course of our field experiments. Of note, however, glowing larvae, identified based on direct rearing as possibly Pleotomus nigripennis LeConte, were also observed in the leaf litter and on tree trunks.

3.1.2. Individual flashing

By eye and in close proximity, P. knulli flying males appear to emit flash triplets spanning a period of about 1s (figure 1c). This was confirmed by video recordings (see electronic supplementary material, figure S1). Occasionally, flash phrases of two, four or five flashes can also be observed, but are much less common. Flash triplets from a single individual are typically separated by at least 3–5s. Males were dispersed and solitary in their emergence.

3.2. Time series reveal spikes of correlated activity

To analyse patterns of collective flashing in P. knulli, we first calculated the number N of flashes detected in each movie frame (figure 2a). Since firefly activity was relatively low, most frames contained no flash, some captured one single flash and a few captured between two and five flashes, under the given experimental conditions. (Owing to the cameras’ limited field of view and light sensitivity, and visual obstruction from the bottom vegetation, recorded flashes account for only a fraction of the swarm’s total.) While synchrony implies that several flashes occur at the same time, the reverse proposition is not necessarily true: concurrent flashes could happen by accident, even with no underlying interactions between fireflies. Intuitively, however, if the proportion of concurrent flashes is large, it tends to indicate intrinsic correlations. To quantitatively evaluate this proposition, we must compare the observed distribution of flashes P(N) against the null hypothesis that flashes happen independently at random. Independent events happening within a given time frame at a constant rate λ are described by the Poisson distribution: Poiss(N = k) = λk eλ/k!. In our situation, because the swarm’s flashing rate was fairly constant around a mean value of λ = 0.099 flashes/frame (see electronic supplementary material, figure S4), we can compare the experimental distribution P(N) with the Poisson distribution with the same average, as shown in figure 2b. Evidently, the proportion of large values of N is vastly superior (about one order of magnitude) to what would be predicted from the Poisson distribution, hinting that concurrent flashes are too frequent to occur only by chance. To quantify this discrepancy, we employed goodness-of-fit tests for the Poisson distribution. Several such tests have been developed [21]. For their simplicity of implementation and interpretation, we used two test statistics, Z and T, based respectively on the first and second, and third and fourth, moments of the empirical distributions [21,22]. As a brief reminder, the Poisson distribution has mean equal to variance and squared-skewness equal to excess kurtosis. Significant deviations from these equalities indicate non-Poissonity. Owing to appropriate normalizations, both Z and T are asymptotically distributed according to a normal distribution of mean 0 and variance 1 (see electronic supplementary material, figure S2). For the empirical distribution of N in figure 2b, we find Z = 55 and T = −28, which significantly deviate from the range of values expected if the underlying distribution were Poisson (corresponding p-values are pZ ∼ 10−67 and pT ∼ 10−18; see electronic supplementary material, §4). Therefore, the null hypothesis is rejected by the test statistics, at a very high significance level. Collective flashes are not independent, and P. knulli’s collective display can be considered synchronous with extremely high probability, at least episodically. Similar conclusions can be drawn from the time series from the two other datasets (see electronic supplementary material, figure S4).

Figure 2.

Figure 2.

(a) Sample time series of the number N of flashes per frame. For visibility, only a short 30 s interval is shown. Many concurrent flashes happen during repeated bursts of activity. (b) Experimental probability distribution (pdf) of N from over 2 h of data (10 August). Red line is the result for a Poisson distribution with the same average λ as pdf (N). (c) Spatio-temporal correlations: distribution of separation σ and time delay τ between flash occurrences (150 min of data from 10 August). The bottom plot shows the full range of spatial separations, dominated by self-correlations at short range (σ < 1 m). The top plot shows the distribution only for σ > 1 m, emphasizing extrinsic correlations among distinct fireflies. The colour schemes indicate the relative frequency of different (τ, σ) domains.

The validity of the Poisson distribution for the null hypothesis here should be nuanced. Indeed, flashes typically span not just one frame, but up to six, and many are repeated three times within a short period. Therefore, the distribution of N contains internal correlations, even if flashers were fully independent. However, we show in the electronic supplementary material that persistent, repeated flashing from independent agents does not significantly alter the resulting distribution of test statistics from one-flash-per-frame distributions, hence the comparison with the Poisson distribution still holds.

3.3. Spatio-temporal distributions reveal interactions

Synchronous behaviour was also made apparent from the distribution of spatio-temporal correlations between flash occurrences. For two three-dimensionally reconstructed flashes of coordinates (xi, yi, zi, ti) and (xj, yj, zj, tj), we can calculate the corresponding separation σij = |(xj, yj, zj) − (xi, yi, zi)| and time delay τij = |tjti|. Pairs of relative coordinates (τ, σ) are independent from a particular frame of reference, hence all data can be collapsed onto the same plot. They inform about how flashes self-organize over time- and translation-invariant patterns. Peaks in their distribution indicate recurrent relationships between localization and timing, which reveals underlying correlations and propagation of information, as previously studied in other species [12].

The two-dimensional distribution of (τ, σ) for P. knulli is presented in figure 2c. Several features are significant. For σ < 1 m, the correlations are narrowly distributed around three peaks at τ ≃ 0, 0.45, 0.9 s. These correspond to the flash triplets emitted by individual fireflies, which remain localized as they travelled typically no more than 0.5–1 m over 1 s. Owing to the swarm’s low density, flashes from different fireflies happening within 1m from each other were very rare. Next, secondary peaks are visible for σ > 1 m. These cannot originate from the same firefly, since it would not travel fast enough. They therefore represent extrinsic correlations. The fact that these peaks are narrow and distributed at the same specific times as intrinsic correlations is further proof of synchrony. Importantly, synchronizing respondents were primarily situated in the 1–10 m range, as correlations vanish at larger distances. This is in line with previous findings that synchronizing information propagates only at short range [15].

4. Discussion and conclusion

Remarkably, the collective flashing pattern of P. knulli appears to mirror that of another species of the same genus, P. carolinus. Both species flash synchronously during bursts of activity lasting a few seconds and repeated periodically, as evidenced by the frequency spectra of their respective time series (see electronic supplementary material, figure S5). Collective bursts are typically repeated every 12–14 s for P. carolinus, but only every 5 s for P. knulli. This difference seems most likely attributable to the individual flash phrase, consisting of three flashes for P. knulli, but six to eight for P. carolinus. Spatio-temporal correlations between flash occurrences further emphasize this distinction, but also show a similar spatial range of interaction (see electronic supplementary material, figure S5). These qualitative similarities but quantitative differences offer an interesting opportunity to test mathematical models of intermittent synchrony.

Overall, our video recordings largely confirm the observations made in [7], and provide data and statistical analysis to demonstrate the synchronous behaviour of P. knulli. While our analysis confirms the occurrence of synchrony in this third North American species, the absence of enough firefly density prohibited the observations of more complex behaviours previously reported in [7]. It follows from a notable drop in firefly activity in the Peña Blanca Canyon over the past three decades. This population decline is concerning [23]. While fireflies exist across the American West, populations tend to be much more sparse and localized than in the East. These swarms are rare and fragile; P. knulli is now considered as Vulnerable by the International Union for Conservation of Nature [24]. Over the past few decades, increased habitat degradation (e.g. increased ranching and illegal all-terrain vehicle recreation) and changing weather patterns may be putting populations and even entire species at risk. While 2021 was an excellent monsoon season in southern Arizona, prior years had been excessively dry. Western populations have also been traditionally less studied and less monitored than eastern ones; over 50% of species are considered data deficient. Continued monitoring and research efforts are important to further understand population dynamics. In the meantime, it seems crucial to encourage local initiatives to further protect firefly habitats.

Acknowledgements

For participation in the field or precious insights about the data, we would like to thank Larry Buschman, Lynn Faust, Owen Martin, Andrew Moiseff, Cheryl Mollohan and Wesley Ryan.

Data accessibility

Datasets of three-dimensional reconstructed flash occurrences for 7, 9, 10 August 2021 are made available as part of the electronic supplementary material [25].

Authors' contributions

R.S.: conceptualization, data curation, formal analysis, software, writing—original draft, writing—review and editing; L.G.: resources, visualization, writing—review and editing; J.M.C.: resources, writing—review and editing; O.P.: conceptualization, supervision, writing—review and editing. All authors gave final approval for publication and agreed to be held accountable for the work performed herein.

Competing interests

The authors declare that they have no competing financial interests.

Funding

This work was supported by the BioFrontiers Institute at the University of Colorado Boulder. O.P. acknowledges support from the National Geographic Society, grant no. NGS-84850T-21.

References

  • 1.Attanasi A, et al. 2014. Collective behaviour without collective order in wild swarms of midges. PLoS Comput. Biol. 10, 1-10. ( 10.1371/journal.pcbi.1003697) [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 2.Ouellette N. 2022. A physics perspective on collective animal behavior. Phys. Biol. 19, 021004. ( 10.1088/1478-3975/ac4bef) [DOI] [PubMed] [Google Scholar]
  • 3.Henry MJ, Cook PF, de Reus K, Nityananda V, Rouse AA, Kotz SA. 2021. An ecological approach to measuring synchronization abilities across the animal kingdom. Phil. Trans. R. Soc. B 376, 20200336. ( 10.1098/rstb.2020.0336) [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 4.Morse ES. 1916. Fireflies flashing in unison. Science 43, 169-170. ( 10.1126/science.43.1101.169) [DOI] [PubMed] [Google Scholar]
  • 5.Buck JB. 1935. Synchronous flashing of fireflies experimentally induced. Science 81, 339-340. ( 10.1126/science.81.2101.339) [DOI] [PubMed] [Google Scholar]
  • 6.Buck J, Buck E. 1968. Mechanism of rhythmic synchronous flashing of fireflies. Science 159, 1319-1327. ( 10.1126/science.159.3821.1319) [DOI] [PubMed] [Google Scholar]
  • 7.Cicero JM. 1983. Lek assembly and flash synchrony in the arizona firefly Photinus knulli green (Coleoptera: Lampyridae). Coleopterists Bull. 37, 318-342. [Google Scholar]
  • 8.Faust LF. 2010. Natural history and flash repertoire of the synchronous firefly Photinus carolinus (Coleoptera: Lampyridae) in the Great Smoky Mountains National Park. Florida Entomol. 93, 208-217. ( 10.1653/024.093.0210) [DOI] [Google Scholar]
  • 9.Copeland J, Moiseff A. 1994. The occurrence of synchrony in the North American firefly Photinus carolinus (Coleoptera: Lampyridae). J. Insect Behav. 8, 381-394. ( 10.1007/BF01989366) [DOI] [Google Scholar]
  • 10.Moiseff A, Copeland J. 2000. A new type of synchronized flashing in a North American firefly. J. Insect Behav. 13, 597-612. ( 10.1023/A:1007823904866) [DOI] [Google Scholar]
  • 11.Moiseff A, Copeland J. 1994. Mechanisms of synchrony in the North American firefly Photinus carolinus (Coleoptera: Lampyridae). J. Insect Behav. 8, 395-407. ( 10.1007/BF01989367) [DOI] [Google Scholar]
  • 12.Sarfati R, Hayes JC, Sarfati E, Peleg O. 2020. Spatio-temporal reconstruction of emergent flash synchronization in firefly swarms via stereoscopic 360-degree cameras. J. R. Soc. Interface 17, 20200179. ( 10.1098/rsif.2020.0179) [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 13.Moiseff A, Copeland J. 2010. Firefly synchrony: a behavioral strategy to minimize visual clutter. Science 329, 181-181. ( 10.1126/science.1190421) [DOI] [PubMed] [Google Scholar]
  • 14.Moiseff A, Copeland J. 2020. Behavioral consequences of sensory system constraints in the firefly Photinus carolinus. Ecol. Psychol. 32, 143-152. ( 10.1080/10407413.2020.1846455) [DOI] [Google Scholar]
  • 15.Sarfati R, Hayes JC, Peleg O. 2021. Self-organization in natural swarms of Photinus carolinus synchronous fireflies. Sci. Adv. 7, eabg9259. ( 10.1126/sciadv.abg9259) [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 16.Mirollo RE, Strogatz SH. 1990. Synchronization of pulse-coupled biological oscillators. SIAM J. Appl. Math. 50, 1645-1662. ( 10.1137/0150098) [DOI] [Google Scholar]
  • 17.Ermentrout B. 1991. An adaptive model for synchrony in the firefly Pteroptyx malaccae. J. Math. Biol. 29, 571-585. ( 10.1007/BF00164052) [DOI] [Google Scholar]
  • 18.Ramírez-Ávila GM, Kurths J, Depickère S, Deneubourg J-L. 2019. Modeling fireflies synchronization, pp. 131–156. Cham, Switzerland: Springer International Publishing. [Google Scholar]
  • 19.Acebrón JA, Bonilla LL, Pérez Vicente CJ, Ritort F, Spigler R. 2005. The kuramoto model: a simple paradigm for synchronization phenomena. Rev. Mod. Phys. 77, 137-185. ( 10.1103/RevModPhys.77.137) [DOI] [Google Scholar]
  • 20.Tchumatchenko T, Geisel T, Volgushev M, Wolf F. 2011. Spike correlations – what can they tell about synchrony? Front. Neurosci. 5, 68. ( 10.3389/fnins.2011.00068) [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 21.Mijburgh PA, Visagie IJH. 2020. An overview of goodness-of-fit tests for the Poisson distribution. South African Stat. J. 54, 207-230. ( 10.37920/sasj.2020.54.2.6) [DOI] [Google Scholar]
  • 22.Gupta AK, Móri TF, Szèkely GJ. 1994. Testing for poissonity-normality vs. other infinite divisibility. Stat. Probab. Lett. 19, 245-248. ( 10.1016/0167-7152(94)90111-2) [DOI] [Google Scholar]
  • 23.Lewis SM, et al. 2020. A global perspective on firefly extinction threats. BioScience 70, 157-167. ( 10.1093/biosci/biz157) [DOI] [Google Scholar]
  • 24.Fallon CE, et al. 2021. Evaluating firefly extinction risk: initial red list assessments for North America. PLoS ONE 16, 1-18. ( 10.1371/journal.pone.0259379) [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 25.Sarfati R, Gaudette L, Cicero JM, Peleg O. 2022. Statistical analysis reveals the onset of synchrony in sparse swarms of Photinus knulli fireflies. Figshare. [DOI] [PMC free article] [PubMed]

Associated Data

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

Data Citations

  1. Sarfati R, Gaudette L, Cicero JM, Peleg O. 2022. Statistical analysis reveals the onset of synchrony in sparse swarms of Photinus knulli fireflies. Figshare. [DOI] [PMC free article] [PubMed]

Data Availability Statement

Datasets of three-dimensional reconstructed flash occurrences for 7, 9, 10 August 2021 are made available as part of the electronic supplementary material [25].


Articles from Journal of the Royal Society Interface are provided here courtesy of The Royal Society

RESOURCES