Project 6: FitzHugh-Nagumo and excitability

MCSB Bootcamp — Mathematical and Computational Track

Author

Jun Allard

Background, model, and Part I

The phenomenon of excitability exists in many biological systems, including in the electrophysiology of neurons. The FitzHugh-Nagumo equations

dvdt=v−13v3−wdwdt=ϵ(v+a−bw) \begin{aligned} \frac{dv}{dt} &= v - \frac{1}{3} v^3 - w \\ \frac{dw}{dt} &= \epsilon \left( v + a - bw\right) \end{aligned}

describe neuron electrophysiology where, roughly speaking, vv is the electrical potential (voltage) across the cell’s membrane, and ww is the activity of ion pumps. The parameters ϵ\epsilon, aa and bb represent properties of the ion pumps. The model has been nondimensionalized. Both vv and ww can be negative or positive.

  1. Confirm that for ϵ=0.08\epsilon=0.08, a=0.5a=0.5, b=0.2b=0.2, the system is oscillatory.
# Your code here.
  1. Confirm that for ϵ=0.08\epsilon=0.08, a=1.0a=1.0, b=0.2b=0.2, the system has the following property: if you choose initial conditions v(0)=−1.5v(0)=-1.5, w(0)=−0.5w(0)=-0.5, the system evolves directly towards a stable steady state, but if you choose initial conditions v(0)=0.0v(0)=0.0, w(0)=−0.5w(0)=-0.5, the system moves away from the steady state before eventually converging towards it. This behavior is called excitability. At these parameters, what is the steady state value of vv and ww?
# Your code here.

Part II: Current injection

Assume the neuron is at rest (at its steady state), and another cell injects a current into it. The current is injected between t=40t=40 and t=47t=47, and has a strength of I0=1.0I_0=1.0. In the model, this means

dvdt=v−13v3−w+I(t)dwdt=ϵ(v+a−bw) \begin{aligned} \frac{dv}{dt} &= v - \frac{1}{3} v^3 - w + I(t)\\ \frac{dw}{dt} &= \epsilon \left( v + a - bw\right) \end{aligned}

where

I(t)={I0tstart<t<tstop0otherwise I(t) = \begin{cases} I_0 & \qquad t_\mathrm{start} < t < t_\mathrm{stop}\\ 0 & \qquad \text{otherwise} \end{cases}

or, in code,

I0 = 1.0
t_start = 40
t_stop = 47


def I(t):
    return I0 * (t > t_start) * (t < t_stop)
  1. At the excitable parameters from above (a=1.0a=1.0), simulate the system with initial conditions at the steady state (or very close), and simulate a 7-second injection starting at t=40t=40 as above.
# Your code here.

Part III: Ring of ten cells

Neurons are connected in a neural network. Suppose there are ten cells, each with membrane potential and ion pump activity obeying the FitzHugh-Nagumo equations for vi(t)v_i(t) and wi(t)w_i(t) where i=1…10i=1 \ldots 10 indexes the cells. The cells are electrically connected so that

dvidt=vi−13vi3−wi+D(vi−1−2vi+vi+1)dwidt=ϵ(vi+a−bwi) \begin{aligned} \frac{dv_i}{dt} &= v_i - \frac{1}{3} v_i^3 - w_i + D\left( v_{i-1} - 2 v_i + v_{i+1}\right)\\ \frac{dw_i}{dt} &= \epsilon \left( v_i + a - bw_i\right) \end{aligned}

where D=0.9D=0.9 is a new parameter that describes the electrical connectivity of the neighboring cells. The ion pumps are not connected between cells, so the ww equation is unchanged. For simplicity, let’s assume the cells are connected in a ring, so that

dv1dt=v1−13v13−w1+D(v10−2v1+v2)\frac{dv_1}{dt} = v_1 - \frac{1}{3} v_1^3 - w_1 + D\left( v_{10} - 2 v_1 + v_{2}\right)

and similarly for the tenth cell,

dv10dt=v10−13v103−w10+D(v9−2v10+v1).\frac{dv_{10}}{dt} = v_{10} - \frac{1}{3} v_{10}^3 - w_{10} + D\left( v_{9} - 2 v_{10} + v_{1}\right).

  1. Write code to simulate these ten cells. There will be 20 equations, vv and ww for each cell.
# Your code here.
  1. Note that that the above equations assume there is no injection current. We expect all ten cells to settle at the same steady state. Make two plots. First, plot a time series of the membrane potential of all ten cells as a function of time. Second, make a movie of the voltage in all ten cells, where the horizontal axis is the cell number.
# movie
from matplotlib import animation
from IPython.display import HTML

fig, ax = plt.subplots()
(line,) = ax.plot(V[0])
ax.set_ylim(-2.5, 2.5)
ax.set_xlabel("Cell")
ax.set_ylabel("Voltage")


def frame(nt):
    line.set_ydata(V[nt])
    return (line,)


movie = animation.FuncAnimation(fig, frame, frames=len(T), interval=30)
plt.close(fig)  # otherwise the first frame is drawn a second time, as a still
HTML(movie.to_jshtml())

where V[nt] is the voltage of all ten cells at time T[nt].

# Your code here.
  1. Now assume that the fourth cell (and only the fourth cell) receives an injection current I(t)I(t) as above, between t=40t=40 and t=47t=47. Note that this will require you to change the equation so that it has an II term, like in Part II. Make a time series with all ten cells. Make a movie with the voltage for all cells.1

Hint: You do not need to make it generalize to different numbers of cells. In other words, don’t try to make it work for an arbitrary number of cells and then set the number of cells to 10. Just make it work for 10 cells. (Unless you want to make it generalized.)

# Your code here.

Footnotes

  1. This type of behavior is called an excitable traveling wave pulse. These are unlike the harmonic pulses familiar from sound waves, vibrations, and light. For example, when two excitable pulses collide, they annihilate.↩︎