The Hodgkin–Huxley neuron

The model that explains where the spike comes from: a live membrane trace with its three gating variables, sliders for the sodium and potassium conductances, and an f-I curve that fills in as you explore.

The integrate-and-fire neuron treats a spike as an event: the voltage reaches a line, something happens, and the voltage is put back. That describes a spiking neuron without explaining the spike. In 1952, Hodgkin and Huxley wrote down a set of equations in which the spike emerges from the dynamics of two kinds of ion channels, one for sodium and one for potassium, measured in the giant axon of the squid. The equations are still in use, essentially unchanged, and almost every detailed neuron model since is a variation on them.

As a teaching assistant for the Theoretical Neuroscience lecture at Goethe University Frankfurt I wrote an exercise around this model, originally in Brian2, and the way I think about it goes back to a weekend block course on electrophysiology I took as a student in Frankfurt, where the gating variables first made sense to me. The figure follows the pattern of the integrate-and-fire page: the simulation keeps running while you move the sliders, and the f-I curve on the right fills in from wherever you have been.

The model

The membrane is a capacitor in parallel with three conductances, one each for sodium, potassium and a leak, and the voltage changes according to the current that flows through them:

\[C \frac{dV}{dt} = I - \bar g_{\text{Na}}\, m^3 h\, (V - E_{\text{Na}}) - \bar g_{\text{K}}\, n^4\, (V - E_{\text{K}}) - g_L\, (V - E_L) .\]

Each conductance is a maximal value \(\bar g\) times the fraction of channels that are open, and each reversal potential \(E\) is the voltage at which that ion’s current changes sign. With the numbers from Dayan and Abbott (2001), \(E_{\text{Na}} = 50\) mV, \(E_{\text{K}} = -77\) mV and \(E_L = -54.4\) mV, so sodium current pushes the voltage up and potassium current pushes it down. The maximal conductances are \(\bar g_{\text{Na}} = 120\), \(\bar g_{\text{K}} = 36\) and \(g_L = 0.3\) mS/cm², with \(C = 1\) µF/cm² and the injected current \(I\) in µA/cm².

The whole model lives in the three gating variables \(m\), \(h\) and \(n\), each a number between 0 and 1 giving the probability that a particular gate is open. A sodium channel is open when its three \(m\) gates and its one \(h\) gate are all open, a potassium channel when its four \(n\) gates are. So there are two kinds of channel but three gating variables: the sodium channel has two different kinds of gate, a fast one that opens on depolarisation (\(m\)) and a slow one that closes on depolarisation (\(h\)), while the potassium channel has a single kind (\(n\)). Each gate opens and closes at voltage-dependent rates,

\[\frac{dx}{dt} = \alpha_x(V)\,(1 - x) - \beta_x(V)\, x, \qquad x \in \{m, h, n\},\]

and the particular functions \(\alpha\) and \(\beta\) that Hodgkin and Huxley fitted to their data are what make the spike. In words: \(m\) is fast and opens when the voltage rises, \(h\) is slow and closes when the voltage rises, and \(n\) is slow and opens when the voltage rises. A small depolarisation opens \(m\), sodium flows in, the voltage rises further and opens more \(m\). That is the upstroke. Then the slow gates catch up: \(h\) closes and shuts the sodium channels off, \(n\) opens and lets potassium out, and the voltage falls back below rest. That is the downstroke and the afterhyperpolarisation. While \(h\) is still closed and \(n\) still open, the neuron cannot fire again, which is the refractory period, and here it follows from the equations without any extra rule.

Reading the figure

The top panel is 25 milliseconds of membrane potential, enough for one or two spikes, drawn like an oscilloscope: the trace stays where it is and a grey cursor sweeps across, overwriting it, at a pace set by the Speed control. The number in its corner is the firing rate over the time since you last touched a slider. Below it are the three gating variables, each in its own panel on the same time axis: \(m\) in red, \(h\) in green and \(n\) in purple, with the legend under the panels. During a spike you can see the order of events: \(m\) shoots up first, then \(h\) drops and \(n\) rises together, and after the spike \(m\) falls at once while \(h\) and \(n\) take several milliseconds to recover. Simulated time runs much slower than real time, so that a spike that lasts one millisecond is visible; at the slow setting one sweep takes a few seconds.

The panel on the right is the f-I curve, firing rate against injected current. A point is added for each current you hold for at least 400 ms, blue when the conductances are at their standard values and orange when either has been changed, and the open circle marks the current setting. Reset clears the points.

Things to try

Start at the default current of 10 µA/cm², where the neuron fires about 70 spikes per second, and lower it slowly. The rate falls a little, to about 55 spikes per second, and then at a current just above 6 the firing stops altogether. There is no setting at which the neuron fires slowly. This is the main difference from the integrate-and-fire neuron, whose rate rises smoothly from zero: the Hodgkin–Huxley neuron starts at a minimum rate or not at all, because the spike is an oscillation of the whole system, and an oscillation has a natural frequency. Neurons with this property are called type II, and the squid axon is the standard example.

Now raise the current. The rate climbs past 150 spikes per second at 120 µA/cm², but notice what happens to the spikes themselves: they get smaller as the current grows, and the trough between them gets shallower. By 140 the spike has shrunk to a ripple of about 15 mV, which is where the counter stops treating it as a spike, and at about 155 even the ripple is gone: the voltage sits at around \(-42\) mV with \(h\) stuck low and \(n\) stuck high. This is depolarisation block, and it is what the f-I curve on the right shows at its far end: the rate goes to zero at high current, which no integrate-and-fire model would predict.

Return the current to 10 and reduce the sodium conductance. At three quarters of its standard value the neuron is silent at this current but still fires if you raise \(I\) to 30; at half it does not fire at all, at any current in the range. This is what a sodium channel blocker like tetrodotoxin does. Now put sodium back and halve the potassium conductance instead. The neuron fires even with no injected current, at about 50 spikes per second, because the current that normally ends the spike and holds the membrane down is too weak. Raising the potassium conductance to one and a half times its value silences the neuron at any current in the range, which is the opposite effect.

The equations and parameters are those of Dayan and Abbott (2001, chapter 5), which follow Hodgkin and Huxley (1952) with the resting potential shifted to \(-65\) mV. The original paper is still readable and worth it; the Nobel lecture (Hodgkin 1963) tells the story of how the measurements were made.

References

Dayan P, Abbott LF (2001). Theoretical Neuroscience: Computational and Mathematical Modeling of Neural Systems. MIT Press.

Hodgkin AL, Huxley AF (1952). A quantitative description of membrane current and its application to conduction and excitation in nerve. Journal of Physiology 117: 500–544. DOI

Hodgkin AL (1963). The ionic basis of nervous conduction. Nobel lecture, 11 December 1963. Nobel Prize website