The Living Cochlea

Tone directly stimulates the basilar membrane.
Mic adds ambient sound on top (optional).
§Z₂ IHC sensory · Ω=1/π
§SO₂ OHC amplifier · Ω=1/2π
§δ tunnel of Corti · C·Ω=1
scroll zoom · mic = live CRR
CRR (A. Sabine, pending peer review) · temporalgrammar.ai · Active Inference Institute

The Cochlea as Active Inference

This cochlea is built from CRR (Coherence-Rupture-Regeneration), a temporal grammar for the Free Energy Principle. Every hair cell, every traveling wave, and every rupture flash emerges from three equations and one parameter.

The Free Energy Principle

Any system persisting at a non-equilibrium steady state possesses a Markov blanket that separates internal from external states. The system minimises variational free energy:

F = DKL[q(s) || p(s|o)] - ln p(o)q = approximate posterior · p = generative model · o = observations

The cochlea IS a Markov blanket. The basilar membrane and Reissner membrane separate endolymph (internal, +80mV, high K+) from perilymph (external, ~0mV, high Na+). The stria vascularis maintains this partition as the metabolic engine.

Sensory Precision: Inner Hair Cells

One row of inner hair cells (IHCs) forms the sensory surface. Stereocilia deflection is bistable: toward tallest row = depolarisation, away = hyperpolarisation. This is a Z₂ symmetry operation.

Z₂ sensory channel (likelihood precision):
ΩZ₂ = 1/π ≈ 0.318
C* = π (geodesic diameter of S¹)Each mechanotransduction event = one observation. n = 1 per cycle.

95% of afferent nerve fibres synapse on IHCs. Each type I fibre contacts a single IHC. This is the ascending sensory evidence pathway.

Prior Precision: Outer Hair Cells

Three rows of outer hair cells (OHCs) form the cochlear amplifier. The motor protein prestin enables electromotility: voltage-driven length changes that amplify basilar membrane vibration by 40-60 dB.

SO(2) prior channel (transition precision):
ΩSO(2) = 1/2π ≈ 0.159
C* = 2π (circumference of S¹)The cochlea is literally S¹: a spiral of 2.5 turns.

The OHC amplifier operates as a circular feedback loop: mechanical → electrical → prestin → mechanical. This is SO(2) topology. The medial olivocochlear (MOC) efferent system modulates OHC gain from the brainstem, providing top-down prior precision control.

The ratio ΩZ₂SO(2) = 2, a topological invariant. The sensory channel ruptures twice as fast as the prior channel.

The Traveling Wave as Coherence Accumulation

Sound enters at the cochlear base (high frequency, narrow basilar membrane) and propagates as a traveling wave toward the apex (low frequency, wide membrane). At each location, the wave accumulates coherence with the local resonant frequency.

Coherence: C(x,t) = ∫L(x,τ)dτThe traveling wave envelope grows as it approaches the characteristic frequency.
Rupture: δ(now) when C·Ω = 1At the CF location, C reaches capacity. Maximum amplitude, then rapid decay.
Regeneration: R = ∫φ·eC/Ω·Θ dτThe spiral ganglion reconstructs the signal weighted by coherence history.

The Beauty Function

B(C) = exp(C/Ω)·(C* - C) peaks at C* - Ω: one capacity-unit before rupture. This is where the cochlear amplifier is most active, where basilar membrane displacement is maximal, where OHC feedback is at its peak. The golden shimmer you see in the simulation is the beauty function in action.

The Mexican Hat

The cochlear tuning curve exhibits a sharp excitatory tip (Z₂ sensory detection at the characteristic frequency) surrounded by inhibitory sidebands (SO(2) lateral suppression via two-tone suppression). This is the Mexican hat: Z₂ excitation at the centre, SO(2) inhibition at the surround. The same structure appears in visual centre-surround receptive fields.

Cochlear Amplifier Gain

Gain per SO(2) cycle: 10·log10(Π²) = 10·log10(4π²) ≈ 16 dB
Over 2.5 turns: ≈ 40 dBKnown cochlear amplifier gain: 40-60 dB. Zero free parameters.

Precision Architecture

Πpriorsensory = 2Topological invariant (AGI-26, χ² = 8,041)

Phase-gating: the SO(2) prior channel (OHC amplifier) is the pacemaker. Its rupture cycle creates timing windows for sensory detection. The cochlear amplifier determines when the IHC fires, not just how strongly.

Tinnitus as Ω-Collapse

When OHCs are damaged, the cochlear amplifier fails. The brain increases central gain to compensate for reduced sensory input. In CRR terms, this is an Ω-collapse: precision increases pathologically, the system becomes rigid, and phantom percepts emerge. The same predictive coding framework explains both the normal operation and the failure mode.

Ascending Auditory Pathway

Toggle Auditory cortex pathway to see the full ascending hierarchy. Each level has its own CRR timescale (Ω), naturally producing the known EEG frequency bands.

SG (Spiral Ganglion): cell bodies of the auditory nerve, immediately outside the cochlea. First relay from IHC to brain. Fastest dynamics, γ ~40 Hz. This is where the Z₂ rupture events from hair cells become neural spikes.

CN (Cochlear Nucleus): first brainstem relay, in the medulla. Onset detection, spectral processing, and temporal pattern extraction. γ/β ~28 Hz. Dorsal and ventral divisions handle different processing streams.

IC (Inferior Colliculus): midbrain integration hub where nearly all ascending auditory pathways converge. Temporal pattern integration, β ~18 Hz. The SO(2) timescale dominates here.

MGB (Medial Geniculate Body): the auditory nucleus of the thalamus. Precision gate to cortex, α ~12 Hz. Descending predictions from cortex have their strongest modulatory effect here. Analogous to the lateral geniculate nucleus for vision.

A1 (Primary Auditory Cortex): the generative model. Tonotopic map on the superior temporal gyrus. Slowest dynamics, α/θ ~8 Hz. Processes syllables, phonemes, auditory objects. Sends descending predictions back through the entire hierarchy.

Ascending: prediction errors (ε) at γ frequency
Descending: predictions (π) at α/β frequencyBastos et al. (2015): spectral asymmetry in cortical message passing

CRR predicts these frequencies from first principles: the Z₂/SO(2) ratio = 2 and hierarchical Ω-scaling produce γ at the cochlear level (~40 Hz), β at the brainstem (~20 Hz), and α/θ at the cortex (~8-12 Hz). These are not fitted parameters.

Controls

Tone slider: generates a pure tone that directly stimulates the basilar membrane at the characteristic frequency location. Sweep it to see the activation point move along the spiral. Microphone: ambient sound adds CRR activity on top. CRR gain: controls coherence accumulation rate. High gain = rapid ruptures. Low gain = beauty function lingers.

References

Parr, T., Pezzulo, G. & Friston, K. (2022). Active Inference: The Free Energy Principle in Mind, Brain, and Behavior. MIT Press.

Friston, K. (2010). The free-energy principle: a unified brain theory? Nat. Rev. Neurosci., 11(2), 127-138.

Liberman, M., Gao, J., He, D. et al. (2002). Prestin is required for electromotility of the outer hair cell and for the cochlear amplifier. Nature, 419, 300-304.

Dallos, P. (2008). Cochlear amplification, outer hair cells and prestin. Curr. Opin. Neurobiol., 18, 370-376.

Guinan, J. J. (2006). Olivocochlear efferents: anatomy, physiology, function, and the measurement of efferent effects in humans. Ear Hear, 27, 589-607.

Greenwood, D. D. (1990). A cochlear frequency-position function for several species. J. Acoust. Soc. Am., 87, 2592-2605.

Bastos, A. M. et al. (2015). Visual areas exert feedforward and feedback influences through distinct frequency channels. Neuron, 85(2), 390-401.

Sabine, A. (2026). Phase-gating across precision channels: a CRR temporal grammar for Active Inference. AGI-26. temporalgrammar.ai

CRR pending peer review · Active Inference Institute · 2026