Two coupled neurons

Two spiking neurons wired to each other through synapses: why mutual inhibition makes them fire together, mutual excitation makes them alternate, and the synaptic time constant decides which.

Neurons in the cortex often fire in step with one another. Rhythms in the gamma range, roughly 30 to 90 cycles per second (Buzsáki and Wang 2012), are the best-known example, and they are a property of groups of cells, not of any single one. The first guess about how neurons come to fire together is that they excite each other. For these fast rhythms the guess turns out to be wrong, or at least incomplete: in the models that reproduce gamma, the inhibitory interneurons do the synchronising, and the excitatory connections, if anything, pull the rhythm apart (Whittington, Traub and Jefferys 1995; Buzsáki and Wang 2012). The smallest circuit that shows why has just two neurons, and it was one of the exercises in the Theoretical Neuroscience lecture at Goethe University Frankfurt, where I was a teaching assistant. The exercise goes back to the courses of Thomas Burwick at the same university, which I took as a student.

Everything runs in your browser. Pick a type for each neuron, set the two coupling strengths, and watch the diagram, the two voltage traces, and the phase between the two neurons update together.

The model

Each neuron is the leaky integrate-and-fire model from the first page, with the same numbers as in Dayan and Abbott (2001, section 5.8): resting potential \(E_L = -70\) mV, membrane time constant \(\tau_m = 10\) ms, a spike when the voltage reaches \(-54\) mV, and a reset to \(-80\) mV afterwards. Both neurons receive the same constant drive \(R_m I_e\), strong enough to make each of them fire on its own. What is new is the synapse. A spike in neuron \(j\) opens channels in neuron \(i\), and the current through them depends on neuron \(i\)’s own voltage:

\[\tau_m \frac{dV_i}{dt} = E_L - V_i - g_{ji}\, P_j\, (V_i - E_{ji}) + R_m I_e .\]

Here \(P_j\) is the fraction of open channels at the synapse made by neuron \(j\), \(g_{ji}\) is the strength of that synapse, and \(E_{ji}\) is its reversal potential. The reversal potential is what makes a synapse excitatory or inhibitory. With \(E = 0\) mV the current always pushes the voltage up towards threshold. With \(E = -80\) mV it pushes it down, towards the reset. A neuron that makes excitatory synapses is drawn as a triangle, after the pyramidal cells of the cortex, and an inhibitory one as a circle, after the interneurons. The strengths are dimensionless, in units where \(g = 1\) means the synaptic conductance at its peak equals the leak conductance.

After a spike, \(P\) rises over a few milliseconds and then decays, with both phases governed by one synaptic time constant \(\tau_s\):

\[\tau_s \frac{dP}{dt} = e\, P_{\max}\, z\, (1 - P) - P, \qquad \tau_s \frac{dz}{dt} = -z ,\]

where \(z\) is set to 1 at every presynaptic spike and \(P_{\max} = 0.5\). The peak of \(P\) comes about \(\tau_s\) after the spike, which is the realistic shape. The time constant turns out to matter as much as the sign.

Reading the figure

The diagram on the left is the circuit. Neuron 1 is at the top and neuron 2 at the bottom, each drawn as a triangle if it makes excitatory synapses and as a circle if it makes inhibitory ones. The connection from 1 to 2 runs down the right side and the one from 2 to 1 up the left side. Each is red for excitatory and blue for inhibitory, ends in an arrowhead or a dot accordingly, and its thickness follows the strength slider. The two numbers under the diagram repeat the strengths.

The middle panel shows 200 milliseconds of both membrane potentials, neuron 1 in purple and neuron 2 in teal, with spikes drawn as vertical strokes to 20 mV. It works like an oscilloscope: the trace stays where it is and a grey cursor sweeps across, overwriting it, so your eye can rest on the part that has already been drawn. The dashed line is the threshold. The two numbers below are the firing rates, updated once per simulated second.

The panel on the right is the one to watch. Every time neuron 2 fires, a dot records when in neuron 1’s cycle it did so: 0 means at the same moment as neuron 1’s last spike, ½ means exactly halfway between two spikes of neuron 1, and values near 1 mean just before neuron 1’s next spike. If the two neurons fire in synchrony the dots sit at 0 or 1, which are the same thing. If they alternate, the dots sit at ½. The panel scrolls over the last five seconds, so you can see the phase settle from wherever the random start put it. At the slow setting a 200 ms sweep takes a second or two of real time; normal is about twice as fast and fast about eight times, which is useful for the phase panel, where it can take several simulated seconds for the dots to settle. Pause freezes everything.

Things to try

Start with the defaults: two inhibitory neurons, both strengths 0.2, and a synaptic time constant of 10 ms. After the random start, the dots in the phase panel drift to 0 or 1 within a second or two of simulated time, which is quicker to watch at the fast setting, and the traces fall on top of each other. Two neurons that do nothing but inhibit each other fire in perfect synchrony. The mechanism is in the traces: when one neuron fires, the other receives an inhibitory current that delays its next spike, and the delay is longer the closer to threshold the receiver was. The neuron that was ahead is held back more than the one that was behind, and the gap closes.

Make both neurons excitatory. Now the dots settle near ½, typically between 0.4 and 0.6: the neurons alternate. The argument runs the other way round. Excitation shortly after a neuron’s own spike, when it sits at the reset, does little, while excitation close to threshold triggers a spike immediately. The neuron that is behind is advanced more than the one ahead, and the gap opens until the two are as far apart as they can be. Van Vreeswijk, Abbott and Ermentrout (1994) made this precise, and their title says it all: when inhibition, not excitation, synchronises neural firing.

The synaptic time constant decides which of these two stories holds. Go back to two inhibitory neurons and set \(\tau_s\) to 3 ms. The dots move to ½: fast inhibition makes the neurons alternate, not synchronise. The reason is that the argument above assumed the inhibition is still present when the receiving neuron gets close to threshold, which requires the synapse to outlast a good part of the period. At 3 ms it has worn off before it can do its job. In the gamma models cited at the top, the inhibitory synapses have time constants around 10 ms, and the oscillation period is set by this number, which is why the rhythm sits where it does.

Try a mixed pair, one excitatory and one inhibitory, with equal strengths. After a second of drifting the dots settle at a fixed phase between the two extremes, and the two neurons fire at the same rate even though one is being excited and the other inhibited. This pair is the smallest version of the pyramidal-interneuron loop that generates gamma in the cortex. Make the excitatory synapse stronger than the inhibitory one and the lock breaks in an instructive way: the inhibitory neuron, which is being excited, fires two or three times per cycle of its partner, and the dots fall into several bands instead of one.

Then set one of the strengths to zero. With a one-way connection the receiver speeds up or slows down, depending on the sign, but at these strengths it does not lock to the sender: the dots form diagonal bands that drift through the panel, which is what two independent oscillators with slightly different periods look like. Locking needs the influence to go both ways, or a much stronger synapse. Finally, go back to the two inhibitory neurons and raise the drive to 40 mV. The rates roughly double, to about 130 spikes per second, and the pair still locks, but no longer in exact synchrony: the dots settle a little below 1, with one neuron leading the other by a few percent of the cycle. The period is now short compared with \(\tau_s\), and the lock is on its way to breaking. Shorten \(\tau_s\) at this drive and it does.

This page follows the exercise on synaptic coupling in Dayan and Abbott (2001, chapter 5), which in turn is based on van Vreeswijk et al. (1994).

References

Buzsáki G, Wang XJ (2012). Mechanisms of gamma oscillations. Annual Review of Neuroscience 35: 203–225. DOI

Dayan P, Abbott LF (2001). Theoretical Neuroscience: Computational and Mathematical Modeling of Neural Systems. MIT Press.

Van Vreeswijk C, Abbott LF, Ermentrout GB (1994). When inhibition not excitation synchronizes neural firing. Journal of Computational Neuroscience 1: 313–321. DOI

Whittington MA, Traub RD, Jefferys JGR (1995). Synchronized oscillations in interneuron networks driven by metabotropic glutamate receptor activation. Nature 373: 612–615. DOI