From loner to swarm, at a critical density
Desert locusts (Schistocerca gregaria) exist in two dramatically different behavioural forms, a phenomenon called phase polyphenism. At low population density they are solitarious: cryptically coloured, mutually avoidant, wandering individually. Above a critical local density they transform — over hours, without a generation passing — into the gregarious phase: brightly coloured, mutually attracted, and marching in coherent, aligned masses that can merge into billion-insect flying swarms capable of devastating crops across entire regions.
A Vicsek-style alignment model
Physicists Buhl, Sumpter, Couzin and colleagues (2006) showed that the solitarious-to-gregarious marching transition in locust nymphs is well captured by a Vicsek model: each individual moves at constant speed and, at every timestep, adopts a heading close to the average heading of neighbours within a fixed local radius, plus some angular noise. Below a critical density the noise dominates and headings stay disordered; above it, local alignment cascades into large-scale coherent motion — a genuine order-disorder phase transition in the statistical-mechanics sense, not just a metaphor.
θ_i(t+1) = ⟨θ_j(t)⟩_{j within radius r} + η · noise
low density (few j within radius r) → alignment weak → disordered milling
high density (many j within radius r) → alignment strong → coherent marching
order parameter Φ = |mean direction vector| / N
Φ ≈ 0 disordered Φ ≈ 1 fully aligned marching band
Buhl's lab measurements of real marching locust nymphs in a ring-shaped arena found exactly this signature: the population's collective alignment jumped abruptly once local density crossed roughly 25 locusts per square metre, consistent with a genuine critical transition rather than a gradual trend, and matched simulations using the Vicsek rule closely enough to support it as the right minimal model.
Serotonin drives the phase change
The trigger for an individual locust's transformation is repeated mechanical contact — being jostled on the hind legs by other locusts, which happens automatically once local density rises. Michael Anstey and colleagues (2009) showed this tactile stimulation drives a rapid rise in serotonin in the locust's thoracic nervous system, and that serotonin is both necessary and sufficient to flip solitarious behaviour to gregarious behaviour within roughly two to four hours — injecting serotonin agonists into an isolated solitarious locust makes it behave gregariously without any crowding at all, and blocking serotonin receptors prevents crowded locusts from transforming. This gave phase polyphenism, long known behaviourally, its physiological mechanism.
From marching bands to flying swarms
Gregarious nymphs (which cannot yet fly) form coherent marching bands on the ground; once they mature into winged adults, the same gregarious attraction and alignment scales up into flying swarms that can range over enormous areas, carried partly by wind and partly by self-organised alignment among the insects themselves. A large desert locust swarm can contain tens of billions of individuals, consume its own body weight in vegetation daily per locust, and threaten the food security of a significant fraction of the world's population across the outbreak's range — which is why the phase-transition physics matters well beyond the model organism: predicting the density threshold at which a local outbreak tips into a self-reinforcing gregarious swarm is a genuine early-warning target for agricultural agencies.
A general lesson in collective behaviour
The locust transition is one of the cleanest real-world examples where a documented physiological switch (serotonin), a measured behavioural threshold (local density), and a minimal physics model (Vicsek alignment) all point to the same story, which is part of why it became a foundational case study for the broader field of collective animal behaviour — the same statistical-mechanics toolkit used for locusts has since been applied to fish schools, bird flocks and human crowd dynamics.
Frequently asked questions
What actually triggers a locust to switch from solitary to swarming behaviour?
Repeated physical contact with other locusts, mainly touches to the hind legs, which happens naturally once local population density rises. This mechanical stimulation triggers a rapid rise in serotonin in the locust nervous system, and serotonin alone is enough to switch a solitary locust's behaviour to gregarious within a few hours.
Is the shift to swarming really a phase transition like in physics?
Yes in a precise sense: measurements of marching locust nymphs show their collective alignment jumps abruptly once local density crosses a critical threshold, matching the order-disorder transition of a Vicsek-style self-propelled particle model rather than a smooth, gradual trend.
How big can a desert locust swarm get?
Large swarms can contain tens of billions of individuals spread over hundreds of square kilometres, and because each locust eats roughly its own body weight in vegetation per day, an outbreak-scale swarm can threaten food security across an entire region, which is why predicting the density threshold for the phase transition matters for early agricultural warning systems.
Try it live
Everything above runs in your browser — open Locust Swarm Phase Transition and change the parameters while it is running. Nothing is installed, nothing is uploaded, the whole model lives in one tab.
▶ Open Locust Swarm Phase Transition simulation