# Your code here.Project 6: FitzHugh-Nagumo and excitability
MCSB Bootcamp — Mathematical and Computational Track
Background, model, and Part I
The phenomenon of excitability exists in many biological systems, including in the electrophysiology of neurons. The FitzHugh-Nagumo equations
describe neuron electrophysiology where, roughly speaking, is the electrical potential (voltage) across the cell’s membrane, and is the activity of ion pumps. The parameters , and represent properties of the ion pumps. The model has been nondimensionalized. Both and can be negative or positive.
- Confirm that for , , , the system is oscillatory.
- Confirm that for , , , the system has the following property: if you choose initial conditions , , the system evolves directly towards a stable steady state, but if you choose initial conditions , , 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 and ?
# 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 and , and has a strength of . In the model, this means
where
or, in code,
I0 = 1.0
t_start = 40
t_stop = 47
def I(t):
return I0 * (t > t_start) * (t < t_stop)- At the excitable parameters from above (), simulate the system with initial conditions at the steady state (or very close), and simulate a 7-second injection starting at 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 and where indexes the cells. The cells are electrically connected so that
where is a new parameter that describes the electrical connectivity of the neighboring cells. The ion pumps are not connected between cells, so the equation is unchanged. For simplicity, let’s assume the cells are connected in a ring, so that
and similarly for the tenth cell,
- Write code to simulate these ten cells. There will be 20 equations, and for each cell.
# Your code here.- 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.- Now assume that the fourth cell (and only the fourth cell) receives an injection current as above, between and . Note that this will require you to change the equation so that it has an 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
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.↩︎