The leaky integrate-and-fire neuron

A spiking neuron model with live membrane trace, noise, and an f-I curve that builds up as you explore.

The simplest spiking neuron model, from the webinar for the German Neuroscience Olympiad 2020. Everything on this page runs in your browser; nothing to install. Change a slider while a simulation is running and it reacts immediately.

The neuron’s membrane potential \(V\) integrates its input current \(I\) and leaks back towards rest. Whenever \(V\) reaches the threshold \(V_{\text{th}}\), a spike is emitted and \(V\) is reset.

\[\tau_m \frac{dV}{dt} = (V_{\text{rest}} - V) + R\,I(t)\]

What you see. Left, top: the input current \(I\) in grey, over the last 300 ms. Left, bottom: the membrane potential \(V\), blue when the input is noise-free, orange when noise is on. The red dashed line is the threshold; the spikes are drawn as vertical strokes up to +20 mV. The number in the corner is the current firing rate.

Right: the f-I curve, firing rate against input current. Every input strength you try adds a dot once the neuron has run for half a second at that setting; blue dots are noise-free measurements, orange dots are measurements at the current noise level (changing the noise level clears them). The open ring marks the setting you are looking at now. The blue dashed line is the exact rate of the noise-free neuron, \(f = 1 / \left(t_{\text{ref}} + \tau_m \ln \frac{RI}{RI - (V_{\text{th}} - V_{\text{rest}})}\right)\), which is zero below \(I = (V_{\text{th}} - V_{\text{rest}})/R\). Noise lets the neuron fire below that point and rounds off the curve.

Try: increase the current until the neuron starts to fire, then add noise at a sub-threshold current. From the webinar for the German Neuroscience Olympiad 2020. Notebook on GitHub · Open in Google Colab