axonhh is an implementation of the classical Hodgkin–Huxley model using modern absolute membrane voltage convention.
All voltages are expressed in millivolts (mV), time in milliseconds (ms), capacitance in µF/cm², conductances in mS/cm², and currents in µA/cm².
The neuron membrane is described by four time-dependent variables:
-
$V(t)$ — membrane voltage -
$m(t)$ — sodium activation gating variable -
$h(t)$ — sodium inactivation gating variable -
$n(t)$ — potassium activation gating variable
The membrane is modeled as a capacitor in parallel with ion channels. Applying Kirchhoff’s current law gives:
Solving for the voltage derivative:
Each ionic current follows Ohm’s law:
Each gating variable follows first-order kinetics derived from a two-state Markov process:
The rate functions
These limits must be handled explicitly in numerical implementations.
The full Hodgkin–Huxley system is:
| Parameter | Description | Value |
|---|---|---|
| Membrane capacitance | ||
| Sodium conductance | ||
| Potassium conductance | ||
| Leak conductance | ||
| Sodium reversal potential | ||
| Potassium reversal potential | ||
| Leak reversal potential |
The membrane is initialized at rest:
The gating variables are initialized to their steady-state values:
The injected current is defined as a function of time. A common step stimulus is:
This system has no closed-form solution and is solved numerically. Explicit Runge–Kutta methods with a timestep
provide stable and accurate results.
- Hodgkin, A. L., & Huxley, A. F. (1952). A quantitative description of membrane current and its application to conduction and excitation in nerve. The Journal of Physiology, 117(4), 500–544. PubMed
- Hille, B. Ion Channels of Excitable Membranes. Sinauer Associates, 3rd Edition, 2001.
- Scholarpedia. Hodgkin–Huxley model. Link
- Dayan, P., & Abbott, L. F. Theoretical Neuroscience: Computational and Mathematical Modeling of Neural Systems. MIT Press, 2001.
- Press, W. H., Teukolsky, S. A., Vetterling, W. T., & Flannery, B. P. Numerical Recipes: The Art of Scientific Computing. Cambridge University Press.
This implementation follows the classical Hodgkin–Huxley formalism and parameterization as described in the references above, with numerical integration performed using explicit Runge–Kutta methods.