A minimal reaction-diffusion neural model generates C. elegans undulation
Abstract
The small (1 mm) nematode Caenorhabditis elegans ([1], wormbook.org) has become widely used as a model organism; in particular the C. elegans connectome has been completely mapped, and C. elegans locomotion has been widely studied. We describe a minimal reaction-diffusion model for the locomotion of C. elegans, using as a framework a simplified, stylized ”descending pathway” of neurons as central pattern generator (CPG) (Xu et al., Proceedings of the National Academy of Sciences 115, 2018 [2]). Finally, we realize a model of the required oscillations and coupling with a network of coupled Keener (IEEE Transactions on Systems, Man, and Cybernetics SMC-13, 1983 [3]) analog neurons. Note that Olivares et al. (BioRxiv 710566, 2020 [4]) present a likely more realistic model more distributed CPG. We use the simpler simulation to show that a small network of FitzHugh-Nagumo neurons (one of the simplest neuronal models) can generate key features of C. elegans undulation, and thus locomotion, yielding a minimal, biomimetic model as a building block for further exploring C. elegans locomotion.
1 Introduction
The small (1 mm) nematode Caenorhabditis elegans (C. elegans) has become a widely used model organism (cf. http://www.wormbook.org [1]), and has been among the most studied biological models of neuronal development and locomotion [5, 1]. The C. elegans connectome has been completely mapped [6] and, as described below, its locomotion has been widely studied (c.f. [1, 7]). There are a variety of neuronal models which can generate such undulation, “When crawling on a solid surface, the nematode C. elegans moves forward by propagating sinusoidal dorso-ventral retrograde contraction waves. A uniform propagating wave leads to motion that undulates about a straight line.” [8]. A different type of locomotion, often called swimming, occurs when nematodes are submerged in a liquid medium. The nematodes “switch” between these two gaits, by changing the dynamics of the central pattern generator (CPG).
The purpose of this paper is to describe a minimal, biomimetic, reaction-diffusion model for the C. elegans central pattern generator (CPG) [2, 9]. We use simulation methods to show that a small network of [10]-[11] neurons, see also [12] (one of the simplest neuronal models), based on a skeleton model of the C. elegans CPG, can reproduce key features of C. elegans undulation [2] [13] [14], and thus locomotion.
Finally, we describe an analog electronic implementation of our model through solving a modified version of the FitzHugh-Nagumo neuron [10], based upon an analog circuit originally proposed by [3]. This circuit solves the Keener differential equations, and we adjusted it to allow diffusive coupling between neurons. We constructed a small network with these “neuro-mimetic” circuits, and showed that their behaviour replicates FitzHugh-Nagumo simulated behaviour.
There are many other CPG models; for example, [4] proposes a distributed network of self-oscillating systems of neurons, instead of a structured chain like our proposed CPG. Here we describe a minimal working model, rather than striving for fuller realism, in order to explore the fundamental components of a small CPG. We aimed for a simple, ”minimal” model to enable exploration of defects or other changes in the CPG in an efficient, reproducible and explainable way. Our model can thus be considered as intermediate between the early ”neuro-mechanical” model of [15] and more realistic models such as [4], a role similar to that of [16] biochemical computation.
2 The model central pattern generator
Recall that central pattern generator is a small neural circuit which generates and regulates the movement of complex organisms. This structure is present in different forms in many animals, and regulates many types of periodic motion. Changes in gait are driven by changes in the dynamics of the CPG, c.f. [17]. The CPG circuit topology is constant; the mode of locomotion depends on the sequence in which the neurons fire.
Our simple model C. elegans central pattern generator has two principal components. The first is the head oscillator. As described by [7], the head oscillator consists of two “head neurons” with mutually inhibitory coupling. Oscillations are generated when this coupling destabilizes an excitable steady state. Here two Fitzhugh-Nagumo neurons, with oscillatory dynamics, stabilized out of phase by mutually inhibitory coupling. This provides a pair of out-of-phase stimuli which propagate through a descending pathway of pairs of coupled, excitable, dorsal and ventral neurons. These follow the body of the worm, and are linked to motor neurons and muscles. The head oscillator drives the descending pathway, and the pathway is kept in sync by mutual inhibitory coupling between neurons.
We use 12 pairs of such neurons, as in C. elegans coupled by model gap junctions. This coupling yields phase lags as we descend the pathway from head to tail, enabling the head oscillator to drive traveling waves of excitation along the body of the nematode. See \Freffig: xu_cpg for descending pathway of [2] and our simplified model; the latter depicted as a graph, wherein neurons are nodes, and the arrows between them represent connections.


3 The FitzHugh-Nagumo Neuronal Model
As described above, we sought to use the simplest relevant neuronal model. The classical Hodgkin-Huxley[21] model of squid neurons has led to a variety of simpler conduction models, including the Morris-Lecar[22] and [10]-[11] (FHN) models. The FHN model consists of two dynamical variables; a fast activator variable corresponding to the (rescaled) membrane potential, and a slow inhibitor variable corresponding to a generalized gating variable.
(1) | ||||
The parameter is an external driving current, and is used here to model the effect of gap junctions and synapses upon membrane potential. The parameter determines the vertical position of the -nullcline and thus controls excitability. Action potentials can also be generated by a current injection corresponding to . Finally, the parameter determines ratio between the time scales of the fast activator variable and the slow inhibitor variable ; determines the effect of the growth of the slow gate variable . We used the following standard parameter values: [12]. FitzHUgh-Nagumo neurons can display either (self-)oscillatory or excitable dynamics; given a sufficiently large stimulus (here a pulse of injected current ), an excitable neuron generates an action potential. An oscillatory neuron generates a regular sequence of action potentials. In comparison to the standard value [12], we adjusted the parameter to control neuronal dynamics, with values larger than the oscillatory-excitable boundary generating excitable dynamics from a stable steady state, and smaller values generating oscillatory dynamics as the steady state is destabilized.
Moreover, can be any function which retains the appropriate dynamics, in that it has the same general shape as the cubic . For example, could be replaced by the cubic-like I-V curve of the tunnel diode in the [11] circuit, or even the piecewise linear approximation generated in the [3] circuit used in our implementation.
[2] described a simplified two-variable model for C. elegans neurons, consisting of a fast, cubic-like activator variable (see the -nullcline in \Freffig: nullclines) and a slow, non-linear inhibitor variable (see the -nullcline). The [2] neuronal model can thus be interpreted as a Fitzhugh-Nagumo type model neuron.

Following [17, 23], we now use generalized diffusion coupling between FHN neurons to model gap junctions and synapses. The effect of gap junctions and synapses upon the membrane potential is modeled by replacing the external current of the system, by a generalized diffusion term, . A positive diffusion coefficient is used to simulate a gap junction, or an excitatory synapse and a negative coefficient to simulate an inhibitory synapse ([17]).
This yields a system of diffusion-coupled FitzHugh-Nagumo equations, c.f. [24]:
(2) | ||||
where is the rectified difference in voltage between the driving and driven neurons, essentially . For example, consider the potential of an oscillatory FitzHugh-Nagumo neuron to drive an excitable FitzHugh-Nagumo neuron. The consequent dynamics depends upon the magnitude of positive diffusion coupling : must be sufficiently large to generate an action potential in the driven excitable neuron, which then responds with a time delay correspodning inversely to the magnitude of .
4 Simulation
We start with the network shown in \Freffig: xu_cpg, bottom. We perform simulations in Python, using the standard SciPy ODE solvers, which wrap LSODA, the Livermore Solver for Ordinary Differential Equations. The following block of code illustrates these calculations. Much like [25] did, we take a segment-based approach to the worm model. Pairs of muscles on either side determine the overall angular displacement per segment. The magnitude of the “contraction” resulting from the smoothing is interpreted as an angular displacement for that segment. We use cubic spline interpolation to smooth the worm body.
Muscle response is simulated by applying Gaussian filters to the positive component of membrane potentials:
The worm is then described initially as a sequence of nodes, joined by line segments, with the angle at each node determined by muscular tension. This is followed by a cubic spline interpolation. Finally, we generated a simple video by fixing the head of a worm to the origin; see \Freffig: worm_neuron_dash.
Simulation versus experimental results. Our model generates traveling waves of approximately sinusoidal form, with approximately constant amplitude from head to tail. In comparison, real C. elegans undulations are characterized by approximately sinusoidal oscillations, but with amplitude decreasing slightly from head to tail, c.f. [2]. In addition, a search for ”markers of chaos” as in [14] finds that undulations of the simulated worm are too regular (neutrally stable), in contrast to unduations of real nematodes (with ), likely because we have yet to implement proprioceptive neuronal inputs, c.f. [26] and references therein. The neutral stability of our model may allow it to respond readily but relatively consistently to inputs. Moreover, a small, negative would typically maintain relatively consistent undulation, but be readily overcome by somewhat larger inputs or noise, the latter generating random changes in undulation pattern.
Further comparisons and a more detailed non-linear analysis of real C. elegans undulation will appear in a forthcoming paper [Zhang et al., in preparation].

5 Analog implementation
We show that a diffusion-coupled [3] electronic analog neurons can imitate key features of the dynamics of our network of Fitzhugh-Nagumo neurons. Recall that [11] proposed a circuit to simulate a FitzHugh-Nagumo neuron, shown in \Freffig: analog_neurons. It used a tunnel diode to achieve a cubic-like activation function, and an inductor to differentiate the potassium current (slow gate variable) \Freffig: analog_neurons

However, given that tunnel diodes are expensive and rarely available, [3] proposed a modified Nagumo circuit which used the saturation properties of operational amplifiers (”op-amps”) to achieve cubic-like non-linearity in the FHN model. This yields a piecewise linear approximation to the Fitzhugh-Nagumo (sodium, fast activator) nullclines, as shown in \Freffig: nullclines. The nullclines are sufficiently similar that the dynamics are effectively the same [3]. Keener also used an op-amp and a capacitor to simulate the inductor in the original Nagumo circuit. Roughly, differentiation is simulated by ”anti-integration.Later [27] proposed a CMOS implementation of the Nagumo circuit.
Finally, diffusion coupling is simulated by a follower, and then a coupling resistor followed by a diode (positive diffusion, excitatory synapse or gap junction) or a follower, inverting amplifier of unit gain, coupling resistor and a diode in series (negative diffusion, inhibitory synapse), c.f. [17, 23] for the role of diffusion, c.f. [24] for the use of resistors to emulate diffusion. The diffusion constant is inversely proportional to the coupling resistance. Coupling resistors are tuned to obtain desired synchronization or time delays; for example, coupling resistors in the descending chain of neurons are 1-3 M, with larger resistors yielding longer delays until eventually the injected current is too small to generate an action potential. Typical experimental results for a pair of neurons in the descending chain coupled by a gap junction are shown in \Freffig: Keener_simulation.

6 Conclusion
We have shown that the undulatory motion of C. elegans can be generated using a simple network of Fitzhugh-Nagumo neurons, the network capturing using a structured central pattern generator, and simple, biomimetic neurons. In particular, our simple, ”minimal” model generates traveling waves of sinusoidal undulations, as in [2]. An initial exploration shows that small changes in parameters do not alter qualitative dynamics; further study is needed to explore the range of possible dynamics.
Our model thus lies in between the ”Shape memory alloy-based small crawling robot” mechanical model of [15] and more realistic (and complex) descriptions of [25] and [4], in the spirit of [16] description of the neural system as a computational system. Because of the simplicity and flexibility our our model, we expect that it may prove useful is studying the effects of stimuli, aging and mutations upon the dynamics of C. elegans undulation and locomotion.
Acknowledgement. We acknowledge assistance from our students Cheris Congo, Miranda Hulsey-Vincent, Rifah Tasnim and Naol Negassa.
7 References
References
- [1] Ann K. Corsi “A Transparent Window into Biology: A Primer on Caenorhabditis Elegans” In WormBook, 2015, pp. 1–31 DOI: 10.1895/wormbook.1.177.1
- [2] Tianqi Xu et al. “Descending Pathway Facilitates Undulatory Wave Propagation in Caenorhabditis Elegans through Gap Junctions” In Proceedings of the National Academy of Sciences 115.19, 2018, pp. E4493–E4502 DOI: 10.1073/pnas.1717022115
- [3] James P. Keener “Analog Circuitry for the van Der Pol and FitzHugh-Nagumo Equations” In IEEE Transactions on Systems, Man, and Cybernetics SMC-13.5, 1983, pp. 1010–1014 DOI: 10.1109/TSMC.1983.6313098
- [4] Erick Olivares, Eduardo Izquierdo and Randall Beer “A neuromechanical model of multiple network rhythmic pattern generators for forward locomotion in C. elegans” In BioRxiv Cold Spring Harbor Laboratory, 2020, pp. 710566
- [5] Paul S. Katz “Evolution of Central Pattern Generators and Rhythmic Behaviours” In Philosophical Transactions of the Royal Society B: Biological Sciences 371.1685 Royal Society, 2016, pp. 20150057 DOI: 10.1098/rstb.2015.0057
- [6] Ferris Jabr “The Connectome Debate: Is Mapping the Mind of a Worm Worth It?” Scientific American URL: https://www.scientificamerican.com/article/c-elegans-connectome/
- [7] Julijana Gjorgjieva, David Biron and Gal Haspel “Neurobiology of Caenorhabditis Elegans Locomotion: Where Do We Stand?” In BioScience 64.6, 2014, pp. 476–486 DOI: 10.1093/biosci/biu058
- [8] D. Kim, S. Park, L. Mahadevan and J.. Shin “The Shallow Turn of a Worm” In Journal of Experimental Biology 214.9, 2011, pp. 1554–1559 DOI: 10.1242/jeb.052092
- [9] Quan Wen et al. “Proprioceptive Coupling within Motor Neurons Drives C. Elegans Forward Locomotion” In Neuron 76.4, 2012, pp. 750–761 DOI: 10.1016/j.neuron.2012.08.039
- [10] Richard FitzHugh “Mathematical Models of Threshold Phenomena in the Nerve Membrane” In The Bulletin of Mathematical Biophysics 17.4, 1955, pp. 257–278 DOI: 10.1007/BF02477753
- [11] J. Nagumo, S. Arimoto and S. Yoshizawa “An Active Pulse Transmission Line Simulating Nerve Axon” In Proceedings of the IRE 50.10, 1962, pp. 2061–2070 DOI: 10.1109/JRPROC.1962.288235
- [12] Eugene M Izhikevich and Richard FitzHugh “Fitzhugh-nagumo model” In Scholarpedia 1.9, 2006, pp. 1349
- [13] Jenny Magnes, Kathleen Susman and Rebecca Eells “Quantitative Locomotion Study of Freely Swimming Micro-Organisms Using Laser Diffraction” In Journal of Visualized Experiments, 2012, pp. 4412 DOI: 10.3791/4412
- [14] Jenny Magnes et al. “Chaotic markers in dynamic diffraction” In Applied Optics 59.22 Optical Society of America, 2020, pp. 6642–6647
- [15] Hyunwoo Yuk et al. “Shape memory alloy-based small crawling robots inspired by C. elegans” In Bioinspiration & biomimetics 6.4 IOP Publishing, 2011, pp. 046002
- [16] Andrew Adamatzky, Ben De Lacy Costello and Tomohiro Shirakawa “Universal Computation with Limited Resources: Belousov-Zhabotinsky and Physarum Computers” In International Journal of Bifurcation and Chaos 18.08, 2008, pp. 2373–2389 DOI: 10.1142/S0218127408021750
- [17] J.. Collins and S.. Richmond “Hard-Wired Central Pattern Generators for Quadrupedal Locomotion” In Biological Cybernetics 71.5, 1994, pp. 375–385 DOI: 10.1007/BF00198915
- [18] Beth L Chen, David H Hall and Dmitri B Chklovskii “Wiring optimization can relate neuronal structure and function” In Proceedings of the National Academy of Sciences 103.12 National Acad Sciences, 2006, pp. 4723–4728
- [19] Jordan Hylke Boyle, Stefano Berri and Netta Cohen “Gait modulation in C. elegans: an integrated neuromechanical model” In Frontiers in computational neuroscience 6 Frontiers, 2012, pp. 10
- [20] Mei Zhen and Aravinthan DT Samuel “C. elegans locomotion: small circuits, complex functions” In Current opinion in neurobiology 33 Elsevier, 2015, pp. 117–126
- [21] A.. Hodgkin and A.. Huxley “A Quantitative Description of Membrane Current and Its Application to Conduction and Excitation in Nerve” In The Journal of Physiology 117.4, 1952, pp. 500–544 DOI: 10.1113/jphysiol.1952.sp004764
- [22] C. Morris and H. Lecar “Voltage Oscillations in the Barnacle Giant Muscle Fiber” In Biophysical Journal 35.1, 1981, pp. 193–213 DOI: 10.1016/S0006-3495(81)84782-0
- [23] T. Yanagita, T. Ichinomiya and Y. Oyama “Pair of Excitable FitzHugh-Nagumo Elements: Synchronization, Multistability, and Chaos” In Physical Review E 72.5, 2005, pp. 056218 DOI: 10.1103/PhysRevE.72.056218
- [24] Easwara Moorthy Essaki Arumugam and Mark L Spano “A chimeric path to neuronal synchronization” In Chaos: An Interdisciplinary Journal of Nonlinear Science 25.1 AIP Publishing LLC, 2015, pp. 013107
- [25] Eduardo J. Izquierdo and Randall D. Beer “From Head to Tail: A Neuromechanical Model of Forward Locomotion in Caenorhabditis Elegans” In Philosophical Transactions of the Royal Society B: Biological Sciences 373.1758, 2018, pp. 20170374 DOI: 10.1098/rstb.2017.0374
- [26] Adam J Calhoun, Sreekanth H Chalasani and Tatyana O Sharpee “Maximally informative foraging by Caenorhabditis elegans” In Elife 3 eLife Sciences Publications Limited, 2014, pp. e04220
- [27] E Sanchez-Sinencio and Bernab Linares-Barranco “Circuit implementation of neural FitzHugh-Nagumo equations” In Proceedings of the 32nd Midwest Symposium on Circuits and Systems,, 1989, pp. 244–247 IEEE