The Neuron Zoo

By 24 min read

Quick Answer

The same normalized current command is sent through five mathematical descriptions of a neuron. Their different answers show exactly what each model keeps, what it replaces with a rule, and what it cannot tell us at all.

Key Terms

  • McCulloch–Pitts neuron
  • Leaky integrate-and-fire
  • Izhikevich model
  • FitzHugh–Nagumo model
  • Hodgkin–Huxley model
  • Fixed-step integration
  • Refractory behaviour
  • Ion-current energy estimate

Do all five models receive the same current?

They receive the exact same normalized command samples at the same simulation times. Because their native input units differ, the command passes through a fixed, visible gain for each model; those gains are never hidden auto-calibration.

Which neuron model is the most realistic?

Hodgkin–Huxley contains the most membrane biophysics in this comparison, but more detail is not automatically better for every question. A reduced model can be more useful when timing, logic, phase geometry, or computational scale is the object of study.

Why is biological energy unavailable for four models?

McCulloch–Pitts, LIF, Izhikevich, and FitzHugh–Nagumo do not resolve the ionic currents needed to infer an ion-restoration burden. Their answer is not zero; it is not identifiable from their state equations.

Does the Hodgkin–Huxley energy number equal a neuron's total energy use?

No. It is a baseline-corrected ATP-equivalent estimate for restoring inward sodium charge in canonical squid giant-axon membrane. It omits geometry, synapses, calcium, glia, maintenance, transmitter cycling, and most cellular metabolism.

Audio article

Uses the speech voice supplied by your browser or device.

Five aligned neuron-model traces progressing from a binary threshold signal to a Hodgkin–Huxley action potential
One command enters five mathematical animals. Their disagreement is the lesson: each model preserves a different part of neuronal behaviour.

A “neuron” can be a yes-or-no gate, a leaking bucket with a bell, a two-variable conjurer, an excursion through a phase plane, or a membrane whose sodium and potassium gates open in time. Those descriptions are not interchangeable. Each is a decision about what one is willing not to know.

The laboratory below turns that decision into a controlled experiment. It constructs one normalized command waveform, samples it on one fixed clock, and gives the identical sample sequence to all five models. Their native input gains remain visible because a unitless logical drive, picoamperes, dimensionless forcing, and current density are not secretly the same physical quantity.

Change a preset, draw a command, shorten the paired-pulse interval, or move the synchronized data cursor. The plots retain their honest native axes: a binary output stays binary, a FitzHugh–Nagumo variable does not acquire fictional millivolts, and a leaky integrate-and-fire event does not grow a decorative action-potential waveform.

Interactive computational neuroscience

The Neuron Zoo

From Leaky Buckets to Hodgkin–Huxley

Send exactly the same normalized command into five neuron models and watch what each simplification keeps, invents, approximates, or throws overboard.

One current command. Five levels of biological detail.
01 MP 1943
02 LIF 1907 lineage
03 IZH 2003
04 FHN 1961–1962
05 HH 1952

Preparing the deterministic laboratory…

same s[k] one clock native axes module Worker
Pointer mode
Shared clock 0.000 ms / 1,000 ms fixed Δt 0.025 ms

Canonical command

Shared normalized stimulus, s(t)

+1 −1 · 1,000 ms

Drag to paint. Missed samples are filled by deterministic linear interpolation. Keyboard: arrows edit the selected sample; Shift makes a larger move.

One source of truth 40,000 Float64 command samples
Exact fixed clock Δt 0.025 ms · display 0.1 ms
Seed 1,337
No auto-calibration five visible native gains

Guided discoveries

Try this

Advanced settings and reproducibility

Changing the time step, duration, seed, phenotype, or input gain resets and recomputes the experiment. Presentation speed never changes the scientific time step.

Visible native-input gains

One command shape, translated into five incompatible native input spaces.

0.1 ms warning: this coarser step is offered for inspection, not as the validated default. Fixed-step approximation error can shift spike timing and ionic-charge estimates.

Five mathematical animals

The comparison wall

One horizontal time scale

Synchronized scope

The white cursor reports one simulation time across unlike, separately labelled axes.

Shared normalized command 0 ms · 0 unitless s(t)

Use Left and Right Arrow to inspect adjacent samples, Shift plus Arrow for ten samples, Page Up and Page Down for larger steps, and Home or End for the start or end.

Shared normalized command: 40000 samples over 1000 ms. Minimum 0 unitless s(t); maximum 0.55 unitless s(t); 0 events.

McCulloch–Pitts 0 ms

Use Left and Right Arrow to inspect adjacent samples, Shift plus Arrow for ten samples, Page Up and Page Down for larger steps, and Home or End for the start or end.

McCulloch–Pitts: no finite samples are available. The plotted axis is 0 to 1 unitless (0 or 1).

Leaky integrate-and-fire 0 ms

Use Left and Right Arrow to inspect adjacent samples, Shift plus Arrow for ten samples, Page Up and Page Down for larger steps, and Home or End for the start or end.

Leaky integrate-and-fire: no finite samples are available. The plotted axis is -80 to -40 mV.

Izhikevich 0 ms

Use Left and Right Arrow to inspect adjacent samples, Shift plus Arrow for ten samples, Page Up and Page Down for larger steps, and Home or End for the start or end.

Izhikevich: no finite samples are available. The plotted axis is -90 to 35 conventionally mV.

FitzHugh–Nagumo 0 ms

Use Left and Right Arrow to inspect adjacent samples, Shift plus Arrow for ten samples, Page Up and Page Down for larger steps, and Home or End for the start or end.

FitzHugh–Nagumo: no finite samples are available. The plotted axis is -2.5 to 2.5 dimensionless.

Hodgkin–Huxley 0 ms

Use Left and Right Arrow to inspect adjacent samples, Shift plus Arrow for ten samples, Page Up and Page Down for larger steps, and Home or End for the start or end.

Hodgkin–Huxley: no finite samples are available. The plotted axis is -90 to 60 mV.

Spike and event raster 0 ms

Use Left and Right Arrow to move the shared time cursor. Hold Shift for a larger step. Use Home and End to move to the beginning or end.

McCulloch–Pitts: 0 events. Leaky integrate-and-fire: 0 events. Izhikevich: 0 events. FitzHugh–Nagumo: 0 events. Hodgkin–Huxley: 0 events.

Data view

Values at the synchronized time cursor

Time
0 ms
Shared command
0 unitless s(t)
Current state and key metrics for every neuron model at 0 milliseconds
ModelCurrent stateKey metrics
No model values are available at this cursor position.

Variables behind the primary trace

Detailed inspectors

Izhikevich recovery

Recovery variable u 0 ms

Use Left and Right Arrow to inspect adjacent samples, Shift plus Arrow for ten samples, Page Up and Page Down for larger steps, and Home or End for the start or end.

Recovery variable u: no finite samples are available. The plotted axis is -25 to 25 model state.

Hybrid reset

Equation in plain text: dv/dt = 0.04v² + 5v + 140 − u + I; du/dt = a(bv − u); at v ≥ 30, v ← c and u ← u + d.

dv/dt = 0.04v² + 5v + 140 − u + I; du/dt = a(bv − u); at v ≥ 30, v ← c and u ← u + d.

FitzHugh–Nagumo phase plane

FitzHugh–Nagumo phase plane v 0 · w 0
FitzHugh–Nagumo phase portraitFitzHugh–Nagumo phase plane with 0 trajectory points. Both axes are dimensionless. The solid curve is the v-nullcline; the dashed curve is the w-nullcline. Current point: v 0, w 0.-2.5-1.5-1.25-0.75001.250.752.51.5fast variable v (dimensionless)recovery variable w (dimensionless)

Use Arrow keys to inspect the trajectory. Hold Shift for ten points. Use Home and End for the first or last point.

FitzHugh–Nagumo phase plane with 0 trajectory points. Both axes are dimensionless. The solid curve is the v-nullcline; the dashed curve is the w-nullcline. Current point: v 0, w 0.

The cubic nullcline uses the current command sample; v and w are dimensionless.

Hodgkin–Huxley gates

Hodgkin–Huxley gates 0 ms · m unavailable · h unavailable · n unavailable
Hodgkin–Huxley gate probabilities m, h, and nHodgkin–Huxley gate probabilities over 1000 ms. At 0 ms, sodium activation m is unavailable, sodium inactivation h is unavailable, and potassium activation n is unavailable. Every gate is dimensionless and should remain between zero and one.00.250.50.7510 ms250 ms500 ms750 ms1000 mstime (ms)gate probability (0–1)

Use Left and Right Arrow to inspect adjacent samples. Hold Shift for ten samples. Use Home and End for the beginning or end.

Hodgkin–Huxley gate probabilities over 1000 ms. At 0 ms, sodium activation m is unavailable, sodium inactivation h is unavailable, and potassium activation n is unavailable. Every gate is dimensionless and should remain between zero and one.

Sodium current INa 0 ms

Use Left and Right Arrow to inspect adjacent samples, Shift plus Arrow for ten samples, Page Up and Page Down for larger steps, and Home or End for the start or end.

Sodium current INa: no finite samples are available. The plotted axis is -800 to 200 µA/cm², outward-positive.

Potassium current IK 0 ms

Use Left and Right Arrow to inspect adjacent samples, Shift plus Arrow for ten samples, Page Up and Page Down for larger steps, and Home or End for the start or end.

Potassium current IK: no finite samples are available. The plotted axis is -100 to 800 µA/cm², outward-positive.

Paired-pulse experiment

Refractory is not one universal stopwatch

McCulloch–Pitts

absent

No internal refractory state in this single logical unit.

Recovery state
binary state OFF
Second pulse
0 new rising edge(s)

LIF

explicit

A fixed timer holds voltage at reset after an event.

Recovery state
unavailable ms remaining
Second pulse
no event in 30 ms

Izhikevich

phenomenological

Reset and the evolving recovery variable u shape readiness.

Recovery state
u = unavailable
Second pulse
no event in 30 ms

FitzHugh–Nagumo

emergent

The slow variable w carries the trajectory back through phase space.

Recovery state
w = unavailable
Second pulse
no event in 30 ms

Hodgkin–Huxley

emergent

Sodium availability h and potassium activation n recover continuously.

Recovery state
h unavailable, n unavailable
Second pulse
no event in 30 ms

The response to the second pulse is the comparison. The laboratory does not manufacture one cross-model “refractory milliseconds” score.

What can be counted honestly?

Ion restoration is not computer cost

Hodgkin–Huxley only
Excess inward Na⁺ charge unavailable nC/cm² stimulated run minus equal-duration quiet baseline
ATP-equivalent burden unavailable molecules/cm² three sodium ions restored per ATP hydrolysed
ATP-equivalent amount unavailable mol/cm² using F = 96485.33212 C/mol
Raw charge and optional chemical-work assumption
Raw stimulated inward sodium
unavailable nC/cm²
Quiet shadow baseline
unavailable nC/cm²
Assumed ΔG ATP
50 kJ/mol
Secondary chemical-work estimate
unavailable J/cm²
Reduced models

Biological energy: not identifiable from the McCulloch–Pitts, LIF, Izhikevich, or FitzHugh–Nagumo state equations. The answer is not zero.

Interpretation boundary

This is an ATP-equivalent sodium-restoration estimate, not total neuronal metabolism. It omits membrane area and geometry, synapses, calcium, transmitter cycling, glia, protein turnover, and maintenance beyond the chosen baseline. The membrane is canonical squid giant axon, not a complete human neuron.

Separate measurement

Computer execution cost

ModelStatesDerivative evaluations/stepMedian run, msRelative to LIF
McCulloch–Pitts10unavailableunavailable
Leaky integrate-and-fire20unavailableunavailable
Izhikevich24unavailableunavailable
FitzHugh–Nagumo24unavailableunavailable
Hodgkin–Huxley44unavailableunavailable

What was thrown overboard?

Five different bargains

These phrases describe what each equation actually represents. “Not identifiable” means the requested quantity cannot be recovered from that model—not that its physical value is zero.

Scientific capability comparison for the five neuron models
Representation1 McCulloch–Pitts2 Leaky integrate-and-fire3 Izhikevich4 FitzHugh–Nagumo5 Hodgkin–Huxley
Binary outputexplicit 0/1 statenot representednot representednot representednot represented
Continuous membrane-like variablenot representedexplicit V between resetsphenomenological vdimensionless fast vphysical membrane V
Physical membrane voltagenot representedexplicit subthreshold mVphenomenological voltage-like vnot representedexplicit mV
Passive leaknot representedexplicit gLnot separately representednot separately representedexplicit ionic leak IL
Threshold eventexplicit Heaviside thresholdexplicit Vth crossingexplicit 30 mV cutoffanalysis convention: upward v = 1analysis convention: upward V = 0 mV
Artificial resetnot representedexplicit Vresetexplicit v ← c; u ← u + dnone; trajectory continuesnone; waveform continues
Explicit refractory timernot representedexplicit trefnot representednot representednot represented
Recovery variablenot representedtimer only; no dynamic recovery variableexplicit phenomenological uexplicit slow wemergent through h and n gates
Generated action-potential waveformnot representedevent only; no waveformphenomenological hybrid waveform and resetemergent dimensionless excursiongenerated conductance-based voltage waveform
Ion-channel gatesnot representednot representednot representednot representedexplicit m, h, and n
Ionic currentsnot identifiablenot identifiablenot identifiablenot identifiableexplicit INa, IK, and IL
Conductance parametersnot representedleak conductance gL onlynot representednot representedNa⁺, K⁺, and leak conductances
Phase-plane interpretationnot representedone-dimensional subthreshold flowphenomenological v–u geometryexplicit v–w nullcline geometryfour-dimensional; projections only
Physical biological-energy estimatenot identifiable from this modelnot identifiable from this modelnot identifiable from this modelnot identifiable from this modelcaveated sodium-restoration estimate
Native unitsunitless command and binary statems, mV, pA, pF, nSms, mV-like v, model input unitsdimensionless v, w, and model time; mapped to msms, mV, µA/cm², mS/cm²
Typical computational costvery low: threshold updatelow: one state plus event logiclow: two states plus resetmoderate: two-state fixed-step RK4highest here: four-state RK4 and rate functions

Computer cost is qualitative here and separate from biological energy. All five models still receive the same normalized command samples, translated through their visible native gains.

Educational single-compartment comparison · not a medical or diagnostic instrument.

The simulator is deterministic, local, and usable after page assets load. It makes no API call and requires no model response, chat session, or network service.

How to read the experiment

The single source of truth is a deterministic sample array

1s(t)1.-1\le s(t)\le 1.

In plain text: the shared command, s of t, is bounded between minus one and plus one. Every model reads the same sks_k at the same time tkt_k. The default experiment lasts

T=1000 msT=1000\ \text{ms}

and advances with the fixed internal step

Δt=0.025 ms.\Delta t=0.025\ \text{ms}.

The advanced choices are 0.01, 0.025, 0.05, and 0.1 ms; the last carries an accuracy warning. Changing the time step resets and deterministically recomputes the run. Presentation speed changes how many fixed steps are calculated per second of wall time, never the scientific Δt\Delta t.

The command becomes a native drive through these visible defaults:

ModelNative inputDefault mapping
McCulloch–PittsUnitless threshold driveuMP=1.0s(t)u_{MP}=1.0\,s(t)
Leaky integrate-and-firepAILIF=500s(t) pAI_{LIF}=500\,s(t)\ \text{pA}
IzhikevichModel input unitsIIZH=15s(t)I_{IZH}=15\,s(t)
FitzHugh–NagumoDimensionless driveIFHN=0.8s(t)I_{FHN}=0.8\,s(t)
Hodgkin–HuxleyμA/cm2\mu\text{A}/\text{cm}^2IHH=20s(t) μA/cm2I_{HH}=20\,s(t)\ \mu\text{A}/\text{cm}^2

These gains put one command shape into five useful operating ranges. They are defaults, not universal biological constants, and the laboratory does not tune them behind the scenes to force equal spike counts.

The deterministic stimulus shelf

Every named preset is generated from duration, time step, parameters, and—where noise is used—a seed:

PresetExact command
Quiets(t)=0s(t)=0
Single pulse0 before 100 ms, +0.80 from 100 through 110 ms, then 0
Sustained step0 before 100 ms, +0.55 from 100 through 700 ms, then 0
Pulse train+0.75 for 10 ms at 100, 180, 260, 340, 420, and 500 ms
Ramp0 before 100 ms, linear 0 to +0.90 from 100 to 600 ms, then 0
Paired pulseTwo +0.85 pulses, 8 ms wide; first at 100 ms, second after an adjustable 1–100 ms interval, default 12 ms
Hyperpolarize and release-0.50 from 100 to 300 ms, +0.60 from 300 to 320 ms, then 0
Seeded noisy stepFrom 100 to 700 ms, base +0.42 plus filtered noise of scale 0.12; default seed 1337

For the noisy step, bounded uniform samples rkr_k pass through a one-pole low-pass filter with a 2 ms time constant:

xk=αxk1+(1α)(2rk1),α=eΔt/(2 ms),x_k=\alpha x_{k-1}+(1-\alpha)(2r_k-1), \qquad \alpha=e^{-\Delta t/(2\ \text{ms})},
sk=clip(0.42+0.12xk,1,1).s_k=\operatorname{clip}(0.42+0.12x_k,-1,1).

In plain text: each noise state retains the fraction alpha of its previous value, adds the remaining fraction of a new seeded sample mapped to minus one through plus one, then the final command is clipped to the shared range. The same seed, duration, and time step produce the same waveform and hash.

Five specimens, five kinds of answer

McCulloch–Pitts — 1943

A neuron as logic: add, compare, answer yes or no.

The scalar comparison used here is a modern single-input form of the McCulloch–Pitts threshold idea:

yk+1=H(gMPsk+bθ),y_{k+1}=H(g_{MP}s_k+b-\theta),
H(x)={1,x0,0,x<0.H(x)= \begin{cases} 1, & x\ge 0,\\ 0, & x<0. \end{cases}

In plain text: the next output is one when gain times command plus bias reaches the threshold, and zero otherwise. Defaults are gMP=1.0g_{MP}=1.0, b=0b=0, θ=0.5\theta=0.5, and y0=0y_0=0.

This is not a membrane model. It has no voltage, leak, reset voltage, ion gates, physical refractory period, ionic current, or biological-energy quantity. A sustained suprathreshold command therefore holds the output at 1; turning that plateau into a fabricated train of biological spikes would change the model.

Keeps: threshold logic and all-or-none output.
Throws away: membrane, time-continuous recovery, channels, and energetics.

Leaky integrate-and-fire — 1907 lineage

A charging membrane with a leak, a threshold, and a trapdoor reset.

The lumped-current equation is

CmdVdt=gL(VEL)+I(t).C_m\frac{dV}{dt}=-g_L(V-E_L)+I(t).

Equivalently,

τmdVdt=(VEL)+RmI(t),τm=CmgL.\tau_m\frac{dV}{dt}=-(V-E_L)+R_mI(t), \qquad \tau_m=\frac{C_m}{g_L}.

In plain text: capacitance times voltage change equals applied current minus leak current. The defaults are Cm=200C_m=200 pF, gL=10g_L=10 nS, EL=65E_L=-65 mV, Vth=50V_{th}=-50 mV, Vreset=65V_{reset}=-65 mV, and tref=2t_{ref}=2 ms. The initial voltage is ELE_L, and I(t)=500s(t)I(t)=500s(t) pA. The units remain consistent because 1 nS1 mV=1 pA1\ \text{nS}\cdot1\ \text{mV}=1\ \text{pA}.

Because the input is held constant for one command sample, the implementation can advance the linear subthreshold membrane exactly:

Vk+1=EL+(VkEL)eΔt/τm+IkgL(1eΔt/τm).V_{k+1}=E_L+(V_k-E_L)e^{-\Delta t/\tau_m} +\frac{I_k}{g_L}\left(1-e^{-\Delta t/\tau_m}\right).

At threshold, the model records an event, sets VV to VresetV_{reset}, and holds it there for the explicit refractory interval. The event is real within this model; a drawn excursion to +30 mV would not be.

Keeps: passive membrane, leak, and threshold timing.
Throws away: a generated spike waveform, channels, and physical ion energetics.

Izhikevich — 2003

Two variables and a reset reproduce a small zoo of firing patterns.

The continuous part is

dvdt=0.04v2+5v+140u+I(t),\frac{dv}{dt}=0.04v^2+5v+140-u+I(t),
dudt=a(bvu).\frac{du}{dt}=a(bv-u).

When v30v\ge 30 mV, the hybrid event rule is

vc,uu+d.v\leftarrow c,\qquad u\leftarrow u+d.

In plain text: the fast variable vv is driven by a quadratic expression, the slower uu follows and opposes it, and reaching the cutoff triggers a reset of both variables. The regular-spiking default is a=0.02a=0.02, b=0.20b=0.20, c=65c=-65, d=8d=8, initial v=65v=-65, initial u=bv=13u=bv=-13, and I(t)=15s(t)I(t)=15s(t) in model input units.

Phenotypeaabbccdd
Regular spiking0.020.20-658
Intrinsically bursting0.020.20-554
Chattering0.020.20-502
Fast spiking0.100.20-652
Low-threshold spiking0.020.25-652

The 30 mV cutoff belongs to this phenomenological event/reset convention; it is not an ion-channel-resolved summit. The variable vv is conventionally interpreted in mV under this parameterization, but the model is not a conductance-based membrane.

Keeps: spike timing, adaptation, and a bursting repertoire.
Throws away: explicit ion channels and physical current accounting.

FitzHugh–Nagumo — 1961–1962

Excitability becomes a map with a fast road and a slow road.

The laboratory uses this explicit dimensionless variant in model time τ\tau:

dvdτ=vv33w+I(t),\frac{dv}{d\tau}=v-\frac{v^3}{3}-w+I(t),
dwdτ=ϵ(v+abw).\frac{dw}{d\tau}=\epsilon(v+a-bw).

Defaults are a=0.7a=0.7, b=0.8b=0.8, ϵ=0.08\epsilon=0.08, and I(t)=0.8s(t)I(t)=0.8s(t). Model time is tied visibly to the shared millisecond clock:

τ=tTFHN,TFHN=12.5 ms.\tau=\frac{t}{T_{FHN}}, \qquad T_{FHN}=12.5\ \text{ms}.

The millisecond solver therefore integrates

dvdt=1TFHN(vv33w+I(t)),\frac{dv}{dt}=\frac{1}{T_{FHN}}\left(v-\frac{v^3}{3}-w+I(t)\right),
dwdt=ϵTFHN(v+abw).\frac{dw}{dt}=\frac{\epsilon}{T_{FHN}}(v+a-bw).

In plain text: vv responds quickly, ww recovers slowly, and the visible 12.5 ms scale converts dimensionless model time to the common clock. At zero input the initial stable equilibrium satisfies

w=v+ab,vv33w=0,w=\frac{v+a}{b}, \qquad v-\frac{v^3}{3}-w=0,

giving v01.199408035244035v_0\approx-1.199408035244035 and w00.624260044055044w_0\approx-0.624260044055044 for the defaults.

There is no artificial reset. For event counting only, the laboratory records an upward crossing of vevent=1.0v_{event}=1.0. That is an analysis convention, not a hard threshold in the equations. Both vv and ww are dimensionless; neither is literal membrane voltage.

Keeps: excitability, recovery, oscillation, and phase geometry.
Throws away: physical channels, conductances, and ion accounting.

Hodgkin–Huxley — 1952

A spike assembled from voltage-dependent sodium and potassium conductances.

This implementation uses the modern absolute-voltage convention, an algebraically shifted form of the canonical squid giant-axon equations. All reversal potentials and rate functions use that convention consistently. With outward-positive ionic current,

CmdVdt=IextINaIKIL,C_m\frac{dV}{dt}=I_{ext}-I_{Na}-I_K-I_L,
INa=gˉNam3h(VENa),IK=gˉKn4(VEK),IL=gL(VEL).I_{Na}=\bar g_{Na}m^3h(V-E_{Na}), \qquad I_K=\bar g_Kn^4(V-E_K), \qquad I_L=g_L(V-E_L).

In plain text: applied current charges the membrane after outward sodium, potassium, and leak currents are subtracted. The defaults are:

QuantityDefault
CmC_m1 μF/cm21\ \mu\text{F}/\text{cm}^2
gˉNa\bar g_{Na}120 mS/cm2120\ \text{mS}/\text{cm}^2
gˉK\bar g_K36 mS/cm236\ \text{mS}/\text{cm}^2
gLg_L0.3 mS/cm20.3\ \text{mS}/\text{cm}^2
ENaE_{Na}5050 mV
EKE_K77-77 mV
ELE_L54.387-54.387 mV
Initial VV65-65 mV
Iext(t)I_{ext}(t)20s(t) μA/cm220s(t)\ \mu\text{A}/\text{cm}^2

For each gate x{m,h,n}x\in\{m,h,n\},

dxdt=αx(V)(1x)βx(V)x.\frac{dx}{dt}=\alpha_x(V)(1-x)-\beta_x(V)x.

The absolute-voltage rate functions are

αm(V)=0.1(V+40)1e(V+40)/10,βm(V)=4e(V+65)/18,\alpha_m(V)=\frac{0.1(V+40)}{1-e^{-(V+40)/10}}, \qquad \beta_m(V)=4e^{-(V+65)/18},
αh(V)=0.07e(V+65)/20,βh(V)=11+e(V+35)/10,\alpha_h(V)=0.07e^{-(V+65)/20}, \qquad \beta_h(V)=\frac{1}{1+e^{-(V+35)/10}},
αn(V)=0.01(V+55)1e(V+55)/10,βn(V)=0.125e(V+65)/80.\alpha_n(V)=\frac{0.01(V+55)}{1-e^{-(V+55)/10}}, \qquad \beta_n(V)=0.125e^{-(V+65)/80}.

In plain text: every gate opens at rate alpha times its unavailable fraction and closes at rate beta times its current fraction. At V=65V=-65 mV, each starts at

x(V)=αx(V)αx(V)+βx(V),x_\infty(V)=\frac{\alpha_x(V)}{\alpha_x(V)+\beta_x(V)},

with m00.0529324852572496m_0\approx0.0529324852572496, h00.596120753508460h_0\approx0.596120753508460, and n00.317676914060697n_0\approx0.317676914060697. The apparent zero-over-zero points in αm\alpha_m near -40 mV and αn\alpha_n near -55 mV are removable singularities; the numerical implementation uses their analytic limits rather than raw division.

The model generates its own voltage waveform. A spike event is recorded when VV crosses 0 mV upward, but voltage is never reset. Recovery emerges from sodium inactivation and potassium activation.

Keeps: voltage-dependent channels, a generated spike waveform, and ion-current bookkeeping.
Throws away: morphology, spatial propagation, channel noise, synapses, and most cellular metabolism.

Refractory is not one universal stopwatch

The paired-pulse experiment reveals five different meanings hiding behind one familiar word:

ModelWhat recovery means here
McCulloch–PittsNo internal refractory state; both suprathreshold pulses are represented
LIFAn explicit fixed timer; a pulse inside the 2 ms interval cannot trigger an event
IzhikevichReset plus the evolving recovery variable uu, with no default fixed timer
FitzHugh–NagumoEmergent return through (v,w)(v,w) phase space, with no hard reset
Hodgkin–HuxleyEmergent sodium availability hh and potassium activation nn, with no hard reset

The laboratory does not compress those mechanisms into one bogus “refractory milliseconds” ranking. The honest comparison is whether—and how—the second pulse changes the trajectory.

Biological energy is not computer cost

Only Hodgkin–Huxley resolves an ionic current from which this laboratory can estimate a sodium-restoration burden. Under the outward-positive convention, inward sodium is the negative part of INaI_{Na}:

QNa,in=max(INa(t),0)dt.Q_{Na,in}=\int \max(-I_{Na}(t),0)\,dt.

With current density in μA/cm2\mu\text{A}/\text{cm}^2 and time in ms, 1 μAms=1 nC1\ \mu\text{A}\cdot\text{ms}=1\ \text{nC}, so the integral yields nC/cm². A shadow Hodgkin–Huxley run starts from the identical initial state, lasts the identical time, and receives zero command. The headline value is

Qexcess=max(QstimulusQbaseline,0).Q_{excess}=\max(Q_{stimulus}-Q_{baseline},0).

Converting charge QCQ_C in coulombs per cm² to an ATP-equivalent burden uses three sodium ions transported per ATP hydrolysed by the sodium–potassium pump:

nATP=QC3F,NATP=nATPNA,n_{ATP}=\frac{Q_C}{3F}, \qquad N_{ATP}=n_{ATP}N_A,

where F=96485.33212F=96485.33212 C/mol and NA=6.02214076×1023N_A=6.02214076\times10^{23} mol⁻¹. The optional secondary chemical-work estimate is

E=nATPΔGATP,E=n_{ATP}\Delta G_{ATP},

with an explicitly assumed default ΔGATP=50\Delta G_{ATP}=50 kJ/mol and an advanced range of 45–60 kJ/mol.

This is an ATP-equivalent sodium-restoration estimate, not total neuronal metabolism. It assumes inward sodium must ultimately be pumped out. It omits cell area and geometry, synapses, calcium, transmitter cycling, resting maintenance beyond the selected baseline, glial work, protein turnover, and many other processes. The canonical membrane is squid giant axon, not a complete human neuron.

For McCulloch–Pitts, LIF, Izhikevich, and FitzHugh–Nagumo the correct display is: Biological energy: not identifiable from this model’s state equations. Zero would be a made-up result.

Worker execution time is reported separately, after warm-up and repeated median measurements, as computer cost. A cheap equation is not a metabolically efficient cell, and a biologically detailed equation does not burn ATP inside the browser.

Numerical methods and reproducibility

All continuous models advance on the same fixed time grid using Float64 arithmetic in a framework-independent numerical core. FitzHugh–Nagumo and Hodgkin–Huxley use fixed-step fourth-order Runge–Kutta. Izhikevich uses a stable fixed-step continuous update followed by its explicit event/reset rule. LIF uses the stable exact scalar update above. McCulloch–Pitts evaluates deterministically on the shared grid.

The default display interval is 0.1 ms—every fourth internal step—while spike crossings, extrema, gate bounds, ionic charge, and validation metrics are calculated from the full 0.025 ms stream. When a trace contains more samples than horizontal pixels, deterministic min/max envelopes preserve narrow peaks instead of blindly dropping every nth value.

The five models run in one versioned module Web Worker. requestAnimationFrame paints results but never defines simulation time. Run identifiers prevent a late frame from an earlier reset replacing the current experiment; substantial typed-array payloads are transferred rather than copied. Pausing an offscreen or hidden page pauses presentation and does not create a wall-clock catch-up burst.

A replay is therefore a numerical claim: the same preset or recorded waveform, seed, duration, time step, phenotype, gains, and parameters must reproduce the same command hash, event times within stated tolerances, and trace hashes. If a parameter choice becomes unstable, the instrument pauses, preserves the last valid result, explains the problem, and offers the exact defaults. It does not massage a NaN into a pretty line.

What was thrown overboard?

ModelPrimary outputReset and recoveryPhysical ion accounting
McCulloch–PittsBinary, unitless stateNot represented in this single logical unitNot identifiable
LIFSubthreshold voltage in mV plus event ticksExplicit reset and refractory timerNot identifiable
IzhikevichPhenomenological vv plus recovery uuHybrid reset; recovery through uuNot identifiable
FitzHugh–NagumoDimensionless fast vv and slow wwEmergent phase-plane recoveryNot identifiable
Hodgkin–HuxleyPhysical membrane voltage in mVEmergent through mm, hh, and nn; no resetExplicit membrane current densities; partial sodium-restoration estimate

There is no winner hiding in the final column. McCulloch–Pitts is useful when logic is the question. LIF is useful when event timing and large networks matter. Izhikevich buys a broad firing repertoire with two variables. FitzHugh–Nagumo makes excitability and recovery geometrically legible. Hodgkin–Huxley pays more computation for conductances, gates, currents, and a generated spike.

Assumptions, accessibility, and limits

This is an educational single-compartment comparison. It omits dendrites, axonal propagation, synaptic networks, spatial cable effects, stochastic channel noise, changing ion concentrations, detailed pumps, morphology, and the metabolic life surrounding the membrane. The five models do not describe the same biological object at the same level.

The synchronized plots use separately labelled native axes; no essential distinction depends on colour. The data cursor works by keyboard as well as pointer, and the Data view exposes current time, command, native inputs, states, events, extrema, and paired-pulse response in a textual table. Important changes are announced sparingly. Reduced-motion mode begins paused, and the equations and prose remain useful without animation.

Long equations may scroll within their own panels on small screens. Each equation is paired with a plain-language or plain-text statement of its variables and units. The plotted sample count is not an accessible summary; the current values and scientifically relevant metrics are.

Primary papers and historical source

The equations above state the exact variants implemented here. Historical papers often use different notation or voltage origins; especially for Hodgkin–Huxley, mixing the original resting-relative convention with modern absolute voltages would produce a different and incorrect model.

Word Cloud

Word cloud for The Neuron Zoo