Abstract
Collective behaviour in flocks, crowds, and swarms occurs throughout the biological world. Animal groups are generally assumed to be evolutionarily adapted to robustly achieve particular functions, so there is widespread interest in exploiting collective behaviour for bioinspired engineering. However, this requires understanding the precise properties and function of groups, which remains a challenge. Here, we demonstrate that collective groups can be described in a thermodynamic framework. We define an appropriate set of state variables and extract an equation of state for laboratory midge swarms. We then drive swarms through “thermodynamic” cycles via external stimuli, and show that our equation of state holds throughout. Our findings demonstrate a new way of precisely quantifying the nature of collective groups and provide a cornerstone for potential future engineering design.
Introduction
Organisms on every size scale, from singlecelled^{1} to highly complex^{2}, regularly come together in groups. In many cases, such aggregations are collective, in that the group as a whole displays properties and functionality distinct from those of its individual members or simply their linear sum^{3,4}. It is generally assumed that since evolution has led so many different kinds of animals to behave collectively, the performance of collective groups at whatever task they seek to achieve ought to be well beyond the capabilities of a single individual^{5}, while also being robust to uncertain natural environments^{6,7} and operating without the need for topdown control^{8}. For these reasons, there has been significant interest both in understanding how collectivity conveys these advantages^{9} and how to exploit it in engineered systems^{10,11}.
Taking advantage of evolutionary adaptation for the design of such a bioinspired artificial collective system requires both determining the interaction rules used by real animals and properly understanding the function of the group. Both of these tasks remain a challenge. Extracting interaction rules by observing group behaviour is a highly nontrivial inverse problem^{12} that can typically only be solved by assuming a modelling framework a priori^{13,14}. Appropriate model selection is made more difficult given that interactions may change in different contexts^{7,8,15}. Even less work has been done to precisely determine the tasks optimized by collective behaviour. Assumptions about the purpose of group behaviour typically come from ecological reasoning^{16} rather than quantitative empirical evidence^{8}—and in some cases, such as hypothesized aerodynamic benefits conveyed to flocking birds, such reasoning has proved to be incorrect^{17,18}.
We argue that the essential nature of the group functionality is encoded in its properties—and therefore that understanding these properties both allows one to quantify the purpose of the collective behaviour and to predict the response of the group to environmental changes. As recent work has demonstrated^{19,20,21}, a powerful way to characterize these properties is to borrow ideas from other areas of physics. For groups on the move such as human crowds, hydrodynamics is a natural choice, and empirically measured constitutive laws have allowed the formulation of equations of motion that accurately predict how crowds flow^{20}. But for stationary groups such as insect swarms, where the group as a whole does not move even though its constituent individuals are continuously rearranging, thermodynamics is a more natural framework, as it allows one to precisely describe the state of the system irrespective of its net motion^{22}. The most fundamental relationship for doing so is the equation of state, which links the state variables that describe the macroscopic properties of the system and encodes how they covary in response to environmental changes.
Here, we formulate such an equation of state for laboratory swarms of the nonbiting midge Chironomus riparius (Fig. 1a). We define appropriate state variables, and empirically deduce their relationship by analysing a large data set of measured swarms^{23}. Then, by applying a suitable sequence of external perturbations to the swarms, we show that we can drive them through a thermodynamic cycle in pressure–volume space throughout which our empirical equation of state holds.
Results
State variables
The first step in describing the macroscopic properties of the swarm is to define a set of state variables that fully characterizes the state of the system. The equation of state then links these state variables in a functional relation. In classical thermodynamics, a complete set of state variables is given by the conjugate pairs of pressure P and volume V, temperature T and entropy S, and, if the number of particles is not fixed, chemical potential μ and number of particles N. We use an analogous set of state variables here to characterize swarms. The most straightforward state variable to define is the number of individuals N, which is given simply by the number of midges in the swarm at a given time (note that midges that are not swarming simply sit on the walls or floor of the laboratory enclosure). The volume V of the swarm can be straightforwardly defined and computed as the volume of the convex hull enclosing all the midges. Note that while N and V are not independently controllable quantities, the ratio N/V is empirically approximately constant in large swarms^{24}, meaning that the “thermodynamic” limit (that is, \(N \to \infty\) and \(V \to \infty\) with \(\frac{N}{V} \to \rho\)) is approached in our swarms^{25}. In typical swarming events, N changes on a time scale that is very slow compared to the swarm dynamics; thus, a chemical potential is not needed to describe the instantaneous state of the swarm. Note, though, that since the number of midges varies between measurements that may be separated by many days, N remains a relevant state variable for capturing swarmtoswarm variability.
The remaining three state variables are somewhat more subtle, but can be defined by building on previous work. It has been explicitly shown^{26} that a virial relation based on the kinetic energy and an effective potential energy holds for laboratory swarms of Chironomus riparius. For particles moving in a potential, this virial relation can be used to define a pressure^{26}. As we have shown previously, swarming midges behave as if they are trapped in a harmonic potential well that binds them to the swarm, with a spring constant k(N) that depends on the swarm size^{24,26} (Fig. 1b). The difference between the kinetic energy and this harmonic potential energy thus allows us to compute a pressure^{4,26,27}, which is conceptually similar to the swim pressure defined in other active systems^{28}. The virial theorem thus provides a link between kinetic energy, potential energy, and a field that plays the role of a pressure, when coupled with the observation that individual midges to a good approximation behave as if they are moving in a harmonic potential^{24,26}. We can write this virial pressure P (per unit mass, assuming a constant mass per midge) as
where N is the number of midges in the swarm, V is the swarm volume, v_{i} is the velocity of midge i, r_{i} is its distance from the swarm centre of mass, and \(\langle k\rangle = \langle  {\mathbf{a}}_{i} \cdot \hat{\mathbf{r}}_{i} / r_{i} \rangle\) is the effective spring constant of the emergent potential well that binds midges to the swarm. In this expression, a_{i} is the acceleration of midge i, \(\hat{\mathbf{r}}_{i}\) is the unit vector pointing from a midge towards the instantaneous centre of mass of the swarm (defined as \(1/N\sum\nolimits_{i = 1}^{N} {{\mathbf{r}}_i }\)) and averages are taken over the individuals in the swarm. This spring constant depends on the swarm size N (Fig. 1b). We note that we have previously simply used the directly computed potential energy \( \langle {\mathbf{a}}_{i} \cdot {\mathbf{r}}_{i} \rangle\) to define the pressure^{4,27}; here, we instead average the potential terms and fit them to a power law in N (Fig. 1b) to mitigate the contribution of spurious instantaneous noise in the individual positions that would be enhanced by differentiating them twice to compute accelerations. We use this power law to determine the spring constant k instantaneously at each time step.
The results from the two methods for computing the pressure are similar and consistent, but the method we use here is less prone to noise. Physically, this pressure P can be interpreted as the additional spatially variable energy density required to keep the midges bound to the swarm given that their potential energy varies in space but their mean velocity (and therefore kinetic energy) does not. Thus, compared to a simple passive particle moving in a harmonic well, midges have more kinetic energy than expected at the swarm edges; this pressure compensates for the excess kinetic energy. This pressure should be viewed as a manifestation of the active nature of the midges (similar to a swim pressure^{28}), since the kinetic energy is an active property of each individual midge and the potential energy is an emergent property of the swarm.
We can define a Shannonlike entropy S via its definition in terms of the joint probability distributions of position and velocity. This entropy is defined as
where p(x,v) is the joint probability density function (PDF) of midge position and velocity. S here is measured in bits, as it is naturally an information entropy. Empirically, we find that the position and velocity PDFs are nearly statistically independent for all components and close to Gaussian, aside from the vertical component of the position (Fig. 1c–f). However, the deviation from Gaussianity in this component (which occurs because of the symmetry breaking due to the ground) does not significantly affect the estimate of the entropy; thus, we approximate it as Gaussian as well. Making these approximations, we can thus analytically write the (extensive) entropy as
where \(\sigma_{x}\) and \(\sigma_{v}\) are the standard deviations of the midge positions and velocities, respectively. In practice, we calculated \(\sigma_{v}\) by averaging the instantaneous rootmeansquare values of all three velocity components rather than a timeaveraged value; the difference between these components was always less than 10%. This expression makes it more clear why the Gaussian approximation for the vertical component of the position is reasonable here: only the mean and variance of the PDFs are required to compute the entropy, and these low moments are very similar for the true data and the Gaussian estimate.
Although there is no obvious definition of temperature for a swarm, we can define one starting from the entropy, since temperature (when scaled by a Boltzmann constant) can be defined as the increase in the total physical energy of the system due to the addition of a single bit of entropy. Given our definitions, adding a single bit of entropy (that is, setting \(S \to S + 1\)) for constant \(\sigma_{x}\) and N (that is, a swarm of fixed number and spatial size) is equivalent to setting \(\sigma_{v} \to 2^{1/(3N)} \sigma_{v} .\) Adding this entropy changes the total energy of the system by an amount
which we thus define as the temperature \(k_{B}^{*} T\). Even though this temperature is nominally a function of the swarm size N, it correctly yields an intensive temperature as expected in the limit of large N, as the explicit Ndependence vanishes in that limit since \(\lim_{n \to \infty } k_{B}^{*} T = \sigma_{v}^{2} \ln 2\). In practice, this limit is achieved very rapidly: we find that this temperature is nearly independent of N for N larger than about 20, consistent with our earlier results on the effective “thermodynamic limit” for swarms^{25}. The effective Boltzmann constant \(k_{B}^{*}\) is included here to convert between temperature and energy, though we note that we cannot set its value, as there is no intrinsically preferred temperature scale.
Equipartition
With these definitions in hand, we can evaluate the suitability of these quantities for describing the macroscopic state of midge swarms. First, we note that proper state variables ought to be independent of the swarm history; that is, they ought to describe only the current state of the system rather than the protocol by which that state was prepared. Although this property is difficult to prove incontrovertibly, none of the definitions of our state variables have history dependence. We further find that when these state variables are modulated (see below), their correlation times are very short, lending support to their interpretation as true state variables. We can also compare the relationships between these state variables and the swarm behaviour to what would be expected classically. In equilibrium thermodynamics, for example, temperature is connected to the number of degrees of freedom (d.o.f.) in a system via equipartition, such that each d.o.f. contributes an energy of \(\frac{1}{2}k_{B}^{*} T\). We can write the total energy E of a swarm as the sum of the kinetic energy \(E_{k} (t) = \frac{1}{2}v^{2}\) and potential energy \(E_{p} (t) = \frac{1}{2}k(N)r(t)^{2}\) for all the individuals, where r is the distance of a midge to the swarm centre of mass, v is the velocity of a midge, and k(N) is the effective spring constant. Surprisingly, even though individual midges are certainly not in equilibrium due to their active nature, we find that the total energy is linear in both T and N (Fig. 2a), and that there is no apparent anisotropy, suggesting that equipartition holds for our swarms. This result is highly nontrivial, especially given that our definition of T does not contain the spring constant k(N), which is only determined empirically from our data. Moreover, the slope of the \(E/k_{B}^{*} T\) curve is well approximated as (9/2)N, implying that each midge has 9 effective d.o.f. (or 6 after discounting the factor of \({\text{ln}}2\) in our definition of \(k_{B}^{*} T\)) These d.o.f. can be identified as 3 translational and 3 potential modes, given that the potential well in which the midges reside is threedimensional. These results demonstrate the surprising applicability of equilibrium thermodynamics for describing the macroscopic state of swarms^{29}.
Equation of state
The fundamental relation in any thermodynamic system is the equation of state that expresses how the state variables covary. Equations of state are thus the foundation for the design and control of thermodynamic systems, because they describe how the system will respond when a subset of the state variables are modulated. Any equation of state can be written in the form \(P = f(V, \;T,\;N)\) for some function f. Although the form of f is a priori unknown, it can typically be written as a power series in V, T, and N, in the spirit of a virial expansion. We fit the equation of state to our data assuming the functional form
and using nonlinear leastsquares regression. We chose to fit to the pressure for convenient analogy with a thermodynamic framework, but any other variable would have been an equivalent possibility. We note that when fitting, we normalized all the state variables by their rootmeansquare values so that they were all of the same order of magnitude. These normalization prefactors do not change the exponents, but are instead simply absorbed into \(c_{4}\). Thus, to leading order, we assume \(P = f(V,\;k_{B}^{*} T,\;N) \propto V^{{c_{1} }} (k_{B}^{*} T)^{{c_{2} }} N^{{c_{3} }}\) and fit this relation to the swarm pressure (Fig. 2b,c), obtaining c_{1} = − 1.7, c_{2} = 2, and c_{3} = 1, with uncertainties on the order of 1%. Although the expression for the pressure does depend on three parameters in a nonlinear fashion, the resulting estimates for these parameters are remarkably stable and consistent across all measurements. Hence, we arrive at the equation of state \(PV^{1.7} \propto N(k_{B}^{*} T)^{2} .\)
This equation of state reveals aspects of the nature of swarms, particularly when compared with the linear equation of state for an ideal gas (where \(PV = Nk_{B} T\)). In both cases, for example, to maintain a fixed pressure and volume, smaller systems need to be hotter; but this requirement is less severe for swarms since the temperature is squared, meaning that midges have to speed up less than ideal gas molecules do. Likewise, to maintain a fixed temperature, volume expansion must be counteracted by a reduction in pressure; but midges must lower the pressure more than a corresponding ideal gas, which is reflective of the decrease of the swarm spring constant with size.
Thermodynamic cycling
Beyond such reasoning, however, the true power of an equation of state in thermodynamics lies in specifying how the state variables will change when some are varied but the system remains in the same state, such as in an engine. To demonstrate that our equation of state similarly describes swarms, it is thus necessary to drive them away from their natural state. Although it is impossible to manipulate the state variables directly in this system of living organisms as one would do with a mechanical system, we have shown previously that timevarying acoustic^{30} and illumination^{27} stimulation lead to macroscopic changes in swarm behaviour. Here we therefore build on these findings and use interlaced illumination changes and acoustic signals to drive swarms along four distinct paths in pressure–volume space, analogous to a thermodynamic engine cycle. The stimulation protocol is sketched in Fig. 3a. The “on” state of the acoustic signal is telegraph noise (see Experimental details), while the “off” state is completely quiet. The illumination signal simply switches between two different steady light levels. Switching between the four states of “lighthigh and soundon,” “lighthigh and soundoff,” “lightlow and soundoff,” and “lightlow and soundon” with a 40s period (Fig. 3a) produces the pressure–volume cycle shown in Fig. 3b. We suspect that the loops in the cycle stem from the swarm’s typical “startle” response after abrupt changes in environmental conditions, followed by a rapid relaxation to a steady state^{27,30}.
In addition to the pressure and volume, we can also measure the other state variables as we perturb the swarms. Given that we do not observe any evidence of a phase transition, we would expect that our equation of state, if valid, should hold throughout this cycle. To check this hypothesis, we used the measured V, T, and N values during unperturbed experiments along with the equation of state to predict the scaling exponents, and in turn the pressure P. We then use these baseline, unperturbed exponents and V, T, and N during the interlaced perturbations to predict a pressure P. This pressure prediction matches the measured signal exceptionally well (Fig. 3c,d) even though the equation of state was formulated only using data from unperturbed swarms, highlighting the quality of this thermodynamic analogy. Although we might expect that a strong enough perturbation might lead to qualitatively different behaviour (if the swarm went through the analog of a phase transition^{31}), our results give strong support to the hypothesis that our equation of state should hold for any perturbation that does not drive such a transition.
Discussion
Our findings demonstrate the surprising efficacy of classical equilibrium thermodynamics for quantitatively characterizing and predicting collective behaviour in biology. Even though individual midges are certainly not in equilibrium and need not obey the same rules as, for example, particles in an ideal gas, we find that the collective behaviour of ensembles of these individuals is surprisingly simple. The existence of a welldefined equation of state for this system gives us a new way both of illuminating the purpose of collective behaviour, given that it encodes the nature of the collective state, and quantitatively distinguishing different kinds of animal groups that may have similar movement patterns but different functions^{1,2,3,8}. Importantly, we note that this equation of state is not a swarm model per se, in that it does not make any detailed predictions about the dynamics of individuals. Rather, it gives us a quantitative way of analysing and interpreting swarm data at the macroscale. Finally, these results also provide a natural starting point for designing artificial collective systems by outlining a framework for adapting intuition and expertise gained from engineering thermodynamic systems to this new situation. This approach could, for example, be useful to guide the design of engineered drone swarms via machine learning techniques^{32} and to provide a precise and quantifiable global description of the collective nature of swarms.
Methods
In our laboratory we maintain a colony of C. riparius midges in an (122 cm)^{3} acrylic tank. C. riparius larvae develop in eight 10 L breeding tanks filled with dechlorinated, aerated water and a cellulose substrate. The colony is regulated on an artificial circadian rhythm with 16 h of light and 8 h of night using an overhead light on a timer. Over the roughly 2week life cycle of the midges, larvae become pupae and eventually mature into flying adult midges. Females in the colony mate with males, fertilizing eggs that they lay in the breeding tanks, thus closing the life cycle.
Just after dusk and dawn, male midges will form mating swarms over groundbased visual features known as swarm markers^{33}. In our laboratory, this feature is a black square plate. Swarms are consistently spheroidal with a swarm diameter that depends on the number of swarming individuals^{24}. Typical swarm sizes in our laboratory range from 10 to 100 individuals. Note that individuals that are not participating in the swarm do not fly; rather, they sit on the walls or floor of the enclosure. The swarm behaviour is recorded by three cameras placed outside the enclosure.
The cameras used to image the swarms were hardwaresynchronized Point Grey Flea3 1.3 MP Mono USB3 Vision cameras running at 100 frames per second, synchronized via an external function generator. To illuminate the midges without interfering with their natural behaviour, we used 20 3 W nearinfrared LED arrays placed on top of and inside the measurement tank. C. riparius do not see in the infrared, but it is detectable by the cameras, thus allowing nonintrusive imaging of the swarming events. The cameras were placed on tripods outside the midge enclosure, and were arranged in a horizontal plane with angular separations of 30° and 70°^{23} and placed far enough from the experimental enclosure to ensure that the full swarm was always fully within the field of view of each camera. Calibration of the imaging system was done via Tsai’s method^{34}, using a flat plate with a regular dot pattern placed inside the tank (and removed before the initiation of swarming) as a calibration reference. During each acquisition session, each of which typically occurred on different days, we recorded between 30,000 and 100,000 frames of data, corresponding to 5–16 min and 40 s of swarming. To obtain threedimensional trajectories from the individual camera recordings, we first processed each image to obtain 2D midge positions in each camera’s frame of reference, matched the data between the cameras to obtain 3D midge positions for every midge in the swarm, and finally tracked all the 3D positions in time. The observed swarms are dilute. Even in statistically unusual cases of close midge encounters, individuals can still be identified^{23}. To process the images, we first removed the background illumination field (obtained by averaging over the full image sequence) and then detected midges simply by computing the centroids of connected regions that were brighter than an empirically set threshold and larger than a minimal pixel size. Regions that were highly nonspherical and very large indicated the overlap of the images of multiple midges in the camera’s field of view, and so were split into multiple midges (see Ref.^{23}). The 2D midge coordinates were stereomatched between the cameras by projecting the lines of sight connecting each camera’s centre of projection and each midge’s 2D location into 3D space using the calibrated camera model and then identifying nearintersections. In principle, two cameras are sufficient for this purpose, but additional cameras have been shown to significantly improve the confidence and yield of this procedure^{35}. To connect the 3D positions temporally and create trajectories, we used a multiframe predictive tracking algorithm^{23,35}. Velocities and acceleration were then computed by differentiating the trajectories in time^{23}. At each timestep, we additionally removed midges that were sitting or walking on the walls or marker rather than flying, identifying them based on a 100frame moving average of their speed. If this average speed at a given time step was less than 60 mm/s, we discarded the individual at that timestep.
In this study, we applied interleaved perturbations of two different classes to the swarms in conjunction to the observation of unperturbed swarming events. For the first perturbation type, we induced illumination perturbations, generated by a 6500 K Luxeon Star LED array mounted above the midge enclosure, as described in Ref.^{27}. For this study, we modulated the brightness of the LED between 1.4 lux and 2.4 lux, switching every 20 s for a period of 40 s. A second class of perturbations were acoustic signals that were generated by a small (~ 5 cm) omnidirectional speaker placed on the swarm marker. We alternated between a quiet state (that is, no sound played through the speaker) and playback of a telegraph noise acoustic signal, again with a 40s period. This corresponds to up to 25 full cycles per acquisition session. The telegraph noise was constructed by passing a whitenoise signal through a lowpass 700 Hz filter, and then playing short pulses of this signal during the acoustic “on” state with varying length and amplitude. We empirically found that filtering the whitenoise signal was necessary to induce a persistent response of the swarm. This may be due to swarms’ tendency to adapt to and ignore static changes in their environment while responding persistently to dynamic changes^{27,30}. The pulse length ranged from 0.1 to 0.3 s and the pause between pulses ranged from 0.25 to 0.5 s. The noise amplitude was clearly audible over the ambient sound levels in the laboratory, and we varied it only slightly.
Data availability
The trajectory data are available at https://doi.org/10.6084/m9.figshare.11791071.v1.
References
Gregor, T., Fujimoto, K., Masaki, N. & Sawai, S. The onset of collective behavior in social amoebae. Science 328, 1021–1025 (2010).
Couzin, I. D. & Krause, J. Selforganization and collective behavior in vertebrates. Adv. Stud. Behav. 32, 1–75 (2003).
Sumpter, D. J. T. The principles of collective animal behaviour. Philos. Trans. R. Soc. B 361, 5–22 (2006).
Sinhuber, M. & Ouellette, N. T. Phase coexistence in insect swarms. Phys. Rev. Lett. 119, 178003 (2017).
Parrish, J. K. & EdelsteinKeshet, L. Complexity, pattern, and evolutionary tradeoffs in animal aggregation. Science 284, 99–101 (1999).
Berdahl, A., Torney, C. J., Ioannou, C. C., Faria, J. J. & Couzin, I. D. Emergent sensing of complex environments by mobile animal groups. Science 339, 574–576 (2013).
King, A. J., Fehlmann, G., Biro, D., Ward, A. J. & Fürtbauer, I. Rewilding collective behaviour: An ecological perspective. Trends Ecol. Evol. 33, 347–357 (2018).
Gordon, D. M. The ecology of collective behavior. PLoS Biol. 12, e1001805 (2014).
Couzin, I. D. Collective cognition in animal groups. Trends Cogn. Sci. 13, 36–43 (2009).
Rubenstein, M., Cornejo, A. & Nagpal, R. Programmable selfassembly in a thousandrobot swarm. Science 345, 795–799 (2014).
Li, S. et al. Particle robotics based on statistical mechanics of loosely coupled components. Nature 567, 361–365 (2019).
Lukeman, R., Li, Y.X. & EdelsteinKeshet, L. Inferring individual rules from collective behavior. Proc. Natl. Acad. Sci. U.S.A. 107, 12576–12580 (2010).
Sumpter, D. J. T., Mann, R. P. & Perna, A. The modelling cycle for collective animal behaviour. Interface Focus 2, 764–773 (2012).
Mann, R. P. et al. Multiscale inference of interaction rules in animal groups using Bayesian model selection. PLoS Comput. Biol. 9, e1002961 (2013).
Ling, H., McIvor, G. E., Westley, J., van der Vaart, K., Vaughan, R. T., Thornton, A. & Ouellette, N. T. Behavioural plasticity and the transition to order in jackdaw flocks. Under review (2019).
Hamilton, W. D. Geometry for the selfish herd. J. Theor. Biol. 31, 295–311 (1971).
Usherwood, J. R., Stavrou, M., Lowe, J. C., Roskilly, K. & Wilson, A. M. Flying in a flock comes at a cost in pigeons. Nature 474, 494–497 (2011).
Ling, H. et al. Costs and benefits of social relationships in the collective motion of bird flocks. Nat. Ecol. Evol. 3, 943–948 (2019).
Tennenbaum, M., Liu, Z., Hu, D. & FernandezNieves, A. Mechanics of fire ant aggregations. Nat. Mater. 15, 54–59 (2016).
Bain, N. & Bartolo, D. Dynamic response and hydrodynamics of polarized crows. Science 363, 46–49 (2019).
van der Vaart, K., Sinhuber, M., Reynolds, A. M. & Ouellette, N. T. Mechanical spectroscopy of insect swarms. Sci. Adv. 5, eeaw9305 (2019).
Ouellette, N. T. The most active matter of all. Matter 1, 291–299 (2019).
Sinhuber, M. et al. Threedimensional timeresolved trajectories from laboratory insect swarms. Sci. Data 6, 190036 (2019).
Kelley, D. H. & Ouellette, N. T. Emergent dynamics of laboratory insect swarms. Sci. Rep. 3, 1073 (2013).
Puckett, J. G. & Ouellette, N. T. Determining asymptotically large population sizes in insect swarms. J. R. Soc. Interface 11, 20140710 (2014).
Gorbonos, D. et al. Longrange acoustic interactions in insect swarms: An adaptive gravity model. New J. Phys. 18, 073042 (2016).
Sinhuber, M., van der Vaart, K. & Ouellette, N. T. Response of insect swarms to dynamic illumination perturbations. J. R. Soc. Interface 16, 20180739 (2019).
Takatori, S. C., Yan, W. & Brady, J. F. Swim pressure: Stress generation in active matter. Phys. Rev. Lett. 113, 028103 (2014).
Fodor, É. et al. How far from equilibrium is active matter?. Phys. Rev. Lett. 117, 038103 (2016).
Ni, R., Puckett, J. G., Dufresne, E. R. & Ouellette, N. T. Intrinsic fluctuations and driven response of insect swarms. Phys. Rev. Lett. 115, 118104 (2015).
Reynolds, A. M. Fluctuating environments drive insect swarms into a new state that is robust to perturbations. Europhys. Lett. 124, 38001 (2018).
Vásárhelyi, G. et al. Optimized flocking of autonomous drones in confined environments. Sci. Robot. 3, eaat3536 (2018).
Downe, A. E. R. & Caspary, V. G. The swarming behaviour of Chironomus riparius (Diptera: Chironomidae) in the laboratory. Can. Entomol. 105, 165–171 (1973).
Tsai, R. A versatile camera calibration technique for highaccuracy 3D machine vision metrology using offtheshelf TV cameras and lenses. IEEE J. Robot. Autom. RA3, 323–344 (1987).
Ouellette, N. T., Xu, H. & Bodenschatz, E. A quantitative study of threedimensional Lagrangian particle tracking algorithms. Exp. Fluids 40, 301–313 (2006).
Acknowledgements
This research was sponsored by the Army Research Laboratory and accomplished under Grant no. W911NF1610185. The views and conclusions in this document are those of the authors and should not be interpreted as representing the official policies, either expressed or implied, of the Army Research Laboratory or the U.S. government. K.v.d.V. acknowledges support from an Early Postdoc.Mobility fellowship from the Swiss National Science Foundation, and M.S. acknowledges support from the Deutsche Forschungsgemeinschaft under Grant no. 396632606. The work at Rothamsted forms part of the Smart Crop Protection (SCP) strategic programme (BBS/OS/CP/000001) funded through the Biotechnology and Biological Sciences Research Council’s Industrial Strategy Challenge Fund.
Author information
Authors and Affiliations
Contributions
K.V., M.S. and N.T.O. designed the experiments. K.V., M.S., and Y.F. performed the experiments and analysed the data. A.R. developed the theory. All authors interpreted the data and wrote the paper.
Corresponding author
Ethics declarations
Competing interests
The authors declare no competing interests.
Additional information
Publisher's note
Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.
Rights and permissions
Open Access This article is licensed under a Creative Commons Attribution 4.0 International License, which permits use, sharing, adaptation, distribution and reproduction in any medium or format, as long as you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons licence, and indicate if changes were made. The images or other third party material in this article are included in the article's Creative Commons licence, unless indicated otherwise in a credit line to the material. If material is not included in the article's Creative Commons licence and your intended use is not permitted by statutory regulation or exceeds the permitted use, you will need to obtain permission directly from the copyright holder. To view a copy of this licence, visit http://creativecommons.org/licenses/by/4.0/.
About this article
Cite this article
Sinhuber, M., van der Vaart, K., Feng, Y. et al. An equation of state for insect swarms. Sci Rep 11, 3773 (2021). https://doi.org/10.1038/s4159802183303z
Received:
Accepted:
Published:
DOI: https://doi.org/10.1038/s4159802183303z
This article is cited by

Inferring the size of a collective of selfpropelled Vicsek particles from the random motion of a single unit
Communications Physics (2022)

Understanding the thermodynamic properties of insect swarms
Scientific Reports (2021)
Comments
By submitting a comment you agree to abide by our Terms and Community Guidelines. If you find something abusive or that does not comply with our terms or guidelines please flag it as inappropriate.