HomeArticlesCentral Pattern Generator

Central Pattern Generator: Rhythms of Walking

Neurons that inhibit each other in turn can produce walking, swimming and breathing rhythms with no clock and no sensory input at all.

mysimulator teamUpdated June 2026≈ 7 min read▶ Open the simulation

A rhythm with no external clock

Walking, swimming, chewing and breathing all share a puzzle: they are rhythmic, but the brain does not appear to send a fresh command for every single step or every single breath. Instead, small networks of neurons in the spinal cord and brainstem — central pattern generators (CPGs) — can produce the correct alternating, rhythmic pattern of motor output on their own, given only a steady, non-rhythmic "go" signal from above. The rhythm is generated centrally, by the intrinsic dynamics of the network, not assembled step by step from sensory feedback or higher commands.

The half-centre model

The classic minimal circuit is the half-centre oscillator: two populations of neurons, each driving an opposing muscle group (say, a limb's flexor and extensor), connected by mutual inhibition — when one side fires, it actively suppresses the other. Left alone, that would just settle into one side permanently on and the other permanently off. What breaks the deadlock is that sustained firing slowly weakens a population's own output, through mechanisms like calcium-activated potassium currents or synaptic depression that build up while a neuron is active.

side A fires  → inhibits side B, while A's own adaptation slowly builds
A's adaptation grows → A's inhibition of B weakens
B escapes inhibition → B fires, now inhibits A, and A recovers while resting
                     → repeat forever, alternating, with no external timer
live demo · a network of coupled agents settling into a shared rhythm● LIVE

Proving it is central: fictive locomotion

The strongest evidence that these rhythms genuinely originate in the network, rather than being stitched together from moment-to-moment sensory feedback about limb position, comes from experiments on isolated spinal cord preparations, severed from muscles and sensory nerves. Chemically activated, the deafferented cord still produces the correct alternating pattern of motor-neuron bursts corresponding to walking — fictive locomotion — with no possible source of moment-to-moment sensory correction available. The circuit itself contains the rhythm; sensory feedback, in an intact animal, only refines and adapts it to the terrain.

Coupling oscillators into a coordinated gait

A four-legged animal needs more than one oscillator running in isolation — it needs several, one per limb, coordinated with specific phase relationships. Coupling connections between the individual half-centre circuits set those relative phases, and simply changing the strength or sign of coupling, or the level of overall drive from the brainstem, shifts the whole network between qualitatively different coordinated patterns: a slow walk with limbs firing nearly one at a time, a trot with diagonal pairs synchronized, or a gallop with front and back legs each paired. This is the same mathematics used to describe any network of coupled oscillators finding a common rhythm, applied here to a biological gait controller.

Beyond legs: a general motor principle

The same organizing idea — mutual inhibition plus a slow adaptation process that forces switching — shows up throughout the nervous system wherever a repetitive, self-sustaining rhythm is needed without constant top-down micromanagement: the respiratory rhythm generated in the brainstem's pre-Bötzinger complex, the rhythmic beating pattern in swimming fish and lampreys studied as chains of coupled segmental oscillators, and even simpler invertebrate circuits like the crustacean stomatogastric ganglion, which has been mapped down to individual neurons and their currents. Studying CPGs is also directly useful for engineering: robotics researchers borrow the half-centre design as a lightweight, robust way to generate walking gaits for legged robots without needing a full trajectory planned in advance.

Frequently asked questions

How do we know a rhythm is really generated centrally and not just by sensory feedback?

The classic evidence is fictive locomotion: an isolated spinal cord, surgically deprived of all sensory nerves and muscles, still produces the correct alternating rhythmic pattern of motor neuron activity when chemically activated. Since there is no possible sensory feedback in that preparation, the rhythm must be generated by the network itself.

What is the half-center model of rhythm generation?

Two neuron populations mutually inhibit each other, so only one is ever strongly active at a time. Each active population slowly adapts or fatigues its own inhibitory grip through processes like calcium-activated potassium currents, which eventually lets the suppressed side escape and take over, producing a steady alternation without any need for an external clock or timer.

Why does an animal's walking gait change with speed?

A CPG is not one fixed circuit for one fixed movement — it is a network whose coupling and intrinsic properties can be tuned by descending signals from higher brain centres and by neuromodulators. Changing that tuning shifts the relative phase and timing between limb oscillators, which is how the same underlying network produces a walk at low drive and switches to a trot or gallop as the drive increases.

Try it live

Everything above runs in your browser — open Central Pattern Generator and change the parameters while it is running. Nothing is installed, nothing is uploaded, the whole model lives in one tab.

▶ Open Central Pattern Generator simulation

What did you find?

Add reproduction steps (optional)