Neuron Models
4 min read • November 23, 2025The first "machine learning" book I read when I was in college was called How to Build a Brain by Chris Eliasmith. I've had cause to revisit biological neuron models recently and figured I would resurrect some old code I wrote for simulating neuron models.
Leaky Integrate-and-Fire
The Leaky Integrate-and-Fire (LIF) model is the simplest biologically-plausible neuron model. It treats the neuron as a leaky capacitor that integrates input current over time. When the membrane potential reaches a threshold, the neuron "fires" and resets.
The dynamics are governed by:
where is the membrane potential, is the membrane time constant, is the resting potential, is the input resistance, and is the input current.
When , the neuron fires and is reset to .
Despite its simplicity, the LIF model captures essential features of neuronal excitability and is widely used in large-scale neural simulations due to its computational efficiency.
Izhikevich
The Izhikevich model is a two-dimensional model that combines computational efficiency with the ability to reproduce a wide variety of neuronal firing patterns. It was designed to be as simple as the LIF model but as rich as Hodgkin-Huxley.
The model equations are:
with the spike-reset condition: if mV, then and .
Here is the membrane potential, is a recovery variable, and the parameters control the neuron's dynamics. By adjusting these parameters, the model can reproduce over 20 different types of cortical neurons, including regular spiking, intrinsic bursting, chattering, and fast-spiking behaviors.
FitzHugh-Nagumo
The FitzHugh-Nagumo model is a simplified two-dimensional reduction of the Hodgkin-Huxley model, designed to capture the qualitative behavior of excitable systems while being amenable to mathematical analysis. It was independently developed by Richard FitzHugh and J. Nagumo in the 1960s.
The model is described by:
where represents the membrane potential (fast variable), is a recovery variable (slow variable), and is the input current. The cubic nonlinearity in the first equation creates the excitability threshold.
This model is particularly useful for understanding the phase-plane dynamics of excitable systems and has been widely applied in studying oscillations, wave propagation, and pattern formation in biological systems.
Morris-Lecar
The Morris-Lecar model was developed in 1981 to describe the voltage oscillations in barnacle muscle fibers. It's a two-dimensional conductance-based model that includes calcium and potassium currents, making it biophysically more realistic than FitzHugh-Nagumo while remaining mathematically tractable.
The model equations are:
where:
Here is the membrane potential, is the potassium channel activation, and represents the instantaneous calcium channel activation. The model can exhibit both Class I (continuous frequency-current relationship) and Class II (discontinuous) excitability depending on parameter choices.
Hodgkin-Huxley
The Hodgkin-Huxley model is the foundational conductance-based model of neuronal action potentials, developed by Alan Hodgkin and Andrew Huxley in 1952 based on their voltage-clamp experiments on the giant squid axon. This work earned them the Nobel Prize in Physiology or Medicine in 1963.
The model describes the dynamics of voltage-gated sodium and potassium channels:
where the gating variables follow first-order kinetics:
The rate functions and are voltage-dependent and were empirically determined by Hodgkin and Huxley. Here:
- represents sodium activation (fast)
- represents sodium inactivation (slower)
- represents potassium activation (slow)
The Hodgkin-Huxley model remains the gold standard for biophysically detailed neuron modeling and has been extended to include dozens of additional ion channel types in modern computational neuroscience.