‘Ready, Integrate, Fire!’ Part 1: Solving a simple neuronal model

10 minute read

Published:

For my first blog post, I will find the analytical solution of a leaky integrate-and-fire (LIF) model of a neuron under a constant injected current. Too much to handle? Read more to find out! (This is Part 1 of a series of four posts on LIF model)

My love for numbers has sparked my interest on how I can use mathematics to model the complex processes happening inside the human brain. So when I created this blog, I wanted to start with modelling just a single neuron—the building block of our brains. The model I chose to focus on comes in an intriguing (and somehow provocative!) name: leaky integrate-and-fire (LIF) model.

Why did I choose LIF model? It’s a simple model. That’s it. In my journey to becoming a computational neuroscientist, I have to start with understanding the basic models in the field of neuroscience. Despite its ‘simplicity’, I delved a lot into this model, and I even think that it deserves more spotlight that I decided to dedicate my first four blog posts on this single model! For my first blog post, I will be finding the analytical solution of a leaky integrate-and-fire (LIF) model of a neuron under a static input current. Ready to know more? Let’s start!

A first look at integrate-and-fire models

The integrate-and-fire model was first proposed by the French neuroscientist Louis Lapicque in 1907. It is probably one of the simplest and most commonly used mathematical models describing the basic electrical properties of a single neuron. (We’ll deal with the ‘leaky’ term later.) These properties are as follows:

[1] A neuron will typically fire an action potential when its membrane potential reaches a critical threshold, which is about -55 to -50 millivolts [mV].

[2] During the action potential, the membrane potential follows a quick, high trajectory and then immediately returns to a value that is hyperpolarized relative to the threshold potential.

The integrate-and-fire model captures all these properties by carrying out the following golden rule:

Whenever the membrane potential of the model neuron reaches a threshold value , the neuron fires an action potential. After the action potential, the membrane potential is reset to a value below the threshold potential, .

The above rule spells out how the model got its name: as the membrane potential accumulates (or integrates in continuous terms, much like what an integral does) up to the point-of-no-return (the threshold value), the neuron releases (aka fires) an action potential. Ready, integrate, fire!

The model’s strengths and weaknesses

Of course, having a simple model means that one must forego incorporating complex properties that would make the neuronal model more realistic. The integrate-and-fire model comes with the limitation of not including the biophysical mechanisms responsible for action potentials, such as ion channel kinetics. Despite this, the model is still an extremely useful one as it focuses on modelling the subthreshold potential dynamics. As stated in this paper created by the Goldman Lab at UC Davis, another reason why we can let go of the biophysical properties in modelling a neuron is that we are not too much interested with the exact shape of an action potential, and the only informative feature we can probably get from a neuron’s spiking is the exact times at which action potentials occur.

So what’s up with a ‘leaky’ neuron?

As previously mentioned, integrate-and-fire models are concerned with subthreshold membrane potential dynamics, and this can be done with various levels of modelling rigor. The simplest version of these models is called the leaky (or passive) integrate-and-fire model. Under this LIF model, all active membrane conductances are ignored, including, for the moment, synaptic inputs. Moreover, the entire membrane conductance is modelled as a single passive leakage term, making the model neuron ‘leaky’. For small fluctuations about the resting membrane potential, neuronal conductances are approximately constant, and the LIF model assumes that this constancy holds over the entire subthreshold range. However, this assumption is reasonable only for some neurons.

The Leaky Integrate-and-Fire Model

We are now ready to formally state the LIF model. Consider a neuron modelled as a leaky capacitor with membrane resistance , time constant (where is the membrane’s capacitance), and resting potential . Below the threshold value , the equation for the voltage of this neuron when it receives a current injection is given by:

To generate action potentials, the above equation is augmented by the golden rule stated above: whenever reaches the threshold value , an action potential is fired and the potential is reset to .

A thorough derivation of the equation and explanation of its terms will be provided in Part 3 of this LIF series. For now, our concern is on finding the analytical solution of the leaky integrate-and-fire model in response to a constant injected current.

Solving the LIF Model

Suppose we know the value of a neuron’s membrane potential at some reference point . We denote this value as . We can then compute the analytical solution of the LIF model, which is just a first-order nonhomogeneous differential equation.

We can use the method of undetermined coefficients to solve this ODE. We first find a solution for the homogeneous counterpart of the model. Rearranging terms in Eq 1, we have

Since the input current is assumed to be constant, the right-hand side of the equation also turns out to be a constant, i.e. where . By setting , the homogeneous counterpart is given by

\begin{align} \tau_m V’ + V & = 0 \\ V’ & = -\dfrac{V}{\tau_m}. \end{align}

By separation of variables (or just intuition), the solution to the above equation is simply

where is some constant.

Next, we need to find a particular solution for Eq 1. Since the right-hand side of Eq 2 is just a constant, we can stipulate that the particular solution is of the form , where is a constant. We can find the value of this constant by plugging the particular solution to Eq 2. That is,

\begin{align} \tau_m (c’) + c & = E_L + R_mI_e \\ 0 + c & = E_L + R_mI_e, \end{align}

and hence the particular solution is

The general solution for the nonhomogeneous differential equation Eq 1 is expressed as the sum of the homogeneous solution and the particular solution . That is,

\begin{align} V(t) & = V_h (t) + V_p (t) \\ V(t) & = A e^{-t/\tau_m} + E_L + R_mI_e \text{ (Eq 3)} \end{align}

In order to find the exact value of the constant in the above equation, we simply use the initial condition that we know the value of the neuron’s membrane potential at the reference point :

\begin{align} V(t_0) & = A e^{-t_0/\tau_m} + E_L + R_mI_e \\ A & = [V(t_0) - E_L -R_mI_e]e^{t_0/\tau_m}. \end{align}

Substituting this value in Eq 3 and rearranging the terms, we have

which gives us the analytical solution to a leaky integrate-and-fire model when a constant current is injected to the neuron. We note that this solution is valid for the LIF model only as long as the membrane potential stays below the threshold .

For the math geeks out there, we could also use the Laplace transform to calculate the exact solution of the LIF model. In fact, I first used Laplace to solve it, but I decided to present the neater and simpler solution here.

Calculating the theoretical firing rate

We can also compute the theoretical firing rate of a leaky integrate-and-fire model neuron in response to a static input current. The firing rate of a neuron is defined as the number of spikes it fires per second [measured in Hz]. We can calculate it by determining the interspike interval , which is the amount of time between two consecutive spikes. The interspike-interval firing rate is then simply 1 over , indicating that the LIF model fires once over the interspike interval.

Suppose that at reference point , the neuron has just fired an action potential and is thus reset to the value , i.e. . The next spike will then occur after unit of time, that is, at time . At this time, the membrane potential reaches the threshold , and thus we have

Solving for from the above equation gives us

Therefore, the theoretical interspike-interval firing rate is given by the inverse of :

We note that the above firing rate only exists for some range of values of the injected current . We can get the domain of by solving the following inequality:

This branches into two cases:

Case 1: both numerator and denominator are positive

But since , the above inequality reduces to

\begin{align} R_mI_e + E_L & \gt V_{th}, \text{ or} \\ I_e & \gt \dfrac{V_{th}-E_L}{R_m}. \end{align}

Case 2: both numerator and denominator are negative

But since , the above condition reduces to

\begin{align} R_mI_e + E_L & \lt V_{reset}, \text{ or} \\ I_e & \lt \dfrac{V_{reset}-E_L}{R_m}. \end{align}

We have to note that there is no negative membrane resistance and that is always less than or equal to the resting potential , making the right-hand side of the above inequality to be nonpositive. However, the injected current is always nonnegative, making the above inequality to be invalid.

This therefore leads us to only consider the result of the first case. If we set the threshold current as , then is defined by Eq 5 if the injected current is greater than . Otherwise, the neuron will not fire and thus .Thus, the theoretical interspike-interval firing rate is formally given by

So that concludes my first blog post. On the second one in this four-part series, I will simulate the leaky integrate-and-fire model using Python and verify the theoretical interspike-interval firing rate we just computed. ’Til next time, brain folks!

References

[1] Theoretical Neuroscience by Peter Dayan and L.F. Abbott

[2] Integrate-and-Fire Model Tutorial by the Goldman Lab at UC Davis (link)

[3] Computational Neuroscience course offered by University of Washington on Coursera which I just completed! YAY! I’ll write more about my experience on another blog post :)