This paper was converted on www.awesomepapers.org from LaTeX by an anonymous user.
Want to know more? Visit the Converter page.

Neuromechanical Mechanisms of Gait Adaptation in C. elegans: Relative Roles of Neural and Mechanical Coupling

Carter L. Johnson    Timothy J. Lewis    and Robert D. Guy
(Draft Date: August 8, 2025)

Abstract

Understanding principles of neurolocomotion requires the synthesis of neural activity, sensory feedback, and biomechanics. The nematode C. elegans is an ideal model organism for studying locomotion in an integrated neuromechanical setting because its neural circuit has a well-characterized modular structure and its undulatory forward swimming gait adapts to the surrounding fluid with a shorter wavelength in higher viscosity environments. This adaptive behavior emerges from the neural modules interacting through a combination of mechanical forces, neuronal coupling, and sensory feedback mechanisms. However, the relative contributions of these coupling modes to gait adaptation are not understood. Here, an integrated neuromechanical model of C. elegans forward locomotion is developed and analyzed. The model consists of repeated neuromechanical modules that are coupled through the mechanics of the body, short-range proprioception, and gap-junctions. The model captures the experimentally observed gait adaptation over a wide range of mechanical parameters, provided that the muscle response to input from the nervous system is faster than the body response to changes in internal and external forces. The modularity of the model allows the use of the theory of weakly coupled oscillators to identify the relative roles of body mechanics, gap-junctional coupling, and proprioceptive coupling in coordinating the undulatory gait. The analysis shows that the wavelength of body undulations is set by the relative strengths of these three coupling forms. In a low-viscosity fluid environment, the competition between gap-junctions and proprioception produces a long wavelength undulation, which is only achieved in the model with sufficiently strong gap-junctional coupling. The experimentally observed decrease in wavelength in response to increasing fluid viscosity is the result of an increase in the relative strength of mechanical coupling, which promotes a short wavelength.

1 Introduction

The central goal of neuroethology is to understand how an organism’s body and nervous system interact with its environment to produce behaviors such as locomotion. Model organisms have been used to study the complex interactions between the nervous system, body mechanics, and environmental dynamics in generating and coordinating locomotion [18, 25]. Some studies of locomotion in model organisms highlight feedforward control of locomotion, where the nervous system drives motor activity and sensory feedback plays only a modulatory role; these include legged locomotion in cockroaches and swimming in lamprey, crayfish, and leeches [8, 15, 18, 28, 37, 38, 39, 42, 46]. However, other systems such as stick insect locomotion are better understood as integrated neuromechanical systems because sensory feedback is essential to coordinating movements [4, 24, 34]. This sensory feedback is necessary for navigating more complex environments and can often lead to gait adaptation [1]. The nematode C. elegans is an ideal model organism for studying locomotion in an integrated neuromechanical setting because of its relatively simple and fully-described nervous system [44], limited stereotypical locomotive behavior [32], dependence on sensory feedback for forward locomotion [35, 43], and undulatory gait that adapts to different fluid environments [3, 13, 40].

C. elegans locomote forward using alternating dorsal and ventral body bends that propogate from anterior to posterior. The properties of this undulatory gait adapt to fluid environments of different viscosities: higher external fluid viscosities result in slower undulations of shorter wavelengths [3, 13, 40]. In water, C. elegans swim with a relatively long wavelength and relatively fast undulation frequency (roughly 1.5 bodylengths and 1.8 Hz) [13]. On agar, C. elegans crawl with a short wavelength and slow undulation frequency (0.65 bodylengths and 0.3 Hz) [13]. Previously, it was thought that these were two distinct gaits (swimming vs. crawling). However, recent experiments have shown that the wavelength and frequency of swimming in highly viscous fluids resemble crawling on agar surfaces [3, 13], and instead of a sharp swim/crawl transition, there is a smooth transition between the two gaits as the fluid viscosity of the environment is varied [3, 13, 40].

There are several hypotheses for how the undulatory gait is generated and coordinated [16]; however, it is generally agreed that proprioception plays a key role [5, 30, 43]. One hypothesis is that there is a central pattern-generating (CPG) neural unit in the head that initiates the propagation of the bending wave — higher fluid viscosities slow the propagation and shorten the wavelength [43]. Another hypothesis is that the ventral nerve cord consists of a network of neural modules that are capable of either (i) intrinsic neural oscillations [33] or (ii) neuromechanical oscillations (i.e., involving an entire feedback loop from neural to muscular to body mechanics and back through proprioception) [5, 6]. Recent experiments support the presence of multiple neural or neuromechanical oscillators [14] and the important role of proprioception in coordinating the oscillations [21].

Previous neuromechanical models consisting of a chain of neuromechanical oscillators (i.e., local oscillations driven by proprioceptive inputs) have been able to reproduce the undulatory waveform and gait adaptation [5, 12]. Boyle et al. [5] showed that a mechanistic neuromechanical model driven by proprioception could reproduce the continuous swim-crawl transition. Denham et al. [12] examined a similar neuromechanical model and through computational explorations showed how the mechanical properties and neural parameters affect gait adaptation in proprioceptively-driven control. However, the relative contributions to gait adaptation of each of the individual coupling modes (mechanical, gap-junctional, and proprioceptive coupling) are not well understood.

Here, we introduce a neuromechanical model of the C. elegans forward locomotion system that consists of a chain of neuromechanical oscillators coupled by gap-junctions and nearest-neighbor proprioception. We use our model to systematically analyze the role of body mechanics, gap-junctional coupling, and proprioceptive coupling in gait adaptation. The model captures the experimentally observed wavelength-trend of gait adaptation over a wide range of parameters, provided that the muscle response to input from the nervous system is faster than the body response to changes in force. We also find that sufficiently strong gap-junctional coupling is essential to achieving the long-wavelengths in our model. The modular structure of our model allows the use of the theory of weakly coupled oscillators to further dissect out the mechanisms underlying gait adaptation. Specifically, we assess the influence of each coupling modality (mechanical, gap-junctional, and proprioceptive). We find that proprioceptive coupling leads to a posteriorly-directed traveling wave with a characteristic wavelength. Gap-junctional coupling promotes synchronous activity (long wavelength), and mechanical coupling promotes a high spatial frequency (short wavelength). The wavelength of the undulatory waveform is set by the relative strengths of these three coupling forms. As the external fluid viscosity increases, the mechanical coupling strength increases and the wavelength decreases, resulting in the observed wavelength trend of gait adaptation.

2 Neuromechanical Model

The neuromechanical model developed here describes the motor circuit, body-wall muscles, and the resulting body shapes of C. elegans. The body description is derived from a continuous centerline-approximation of an active viscoelastic beam, whereas the muscles and neural subcircuits are discrete in nature. The mechanical model is similar to that used in [13, 40, 43]. The model for the motor circuit uses the repeated motif of Haspel and O’Donovan [17]: 6 modules of roughly 12 motor neurons and 12 muscle cells, of these 12 repeated motor neurons roughly 6 (2 ventral B-class, 2 ventral D-class, 1 dorsal B-class, and 1 dorsal D-class neurons) are responsible for forward locomotion. In our model, we collapse the pair of VBs into a single compartment and the pair of VDs into a single compartment. We use a simplified version of Haspel and O’Donavan’s connectivity scheme [17], detailed in Section 2.1.3 and shown in Figure 1. Previous models present various simplified circuits [6, 5, 7, 12, 19, 31], and our model is most similar to [5], except that we omit the VD-to-VB inhibition. The model also includes proprioception: the B-class motor neurons respond to bending in the local and nearest anterior regions of the body [43, 48].

A schematic of our neuromechanical model is shown in Figure 1, which highlights the modular structure of the neural circuit, body-wall muscles, and the corresponding body region. Within each module, the motor subcircuit drives the body-wall muscles, which in turn apply contractile forces to bend the corresponding body region. The body mechanics then feed back into the neural circuit through proprioceptive feedback, which translates body-wall length changes into neural signals. This structure allows each module to function, in isolation, as a neuromechanical oscillator, and it suggests that the full body functions as a system of coupled neuromechanical oscillators.

Refer to caption
Refer to caption
Figure 1: The highlighted schematic here depicts the repeating neuromechanical module: a 4-motorneuron functional unit consisting of DB, VB, DD, and VD-class neurons, the post-synaptic muscles, and corresponding body wall region. The dorsal B-class (ventral B-class) neurons are excitatory and synapse onto the ipsilateral muscles and contralateral D-class neurons. The dorsal D-class (ventral D-class) neurons are inhibitory and synapse onto the dorsal (ventral) muscles. The B-class motorneurons also receive proprioceptive feedback from the local body segment (inhibitory) and anterior segments (excitatory). The interneuron AVB is connected to VB and DB via gap-junctions, and the VB (DB) neurons are also coupled via gap-junctions with their nearest neighbors of the same class. The body wall is modeled as a viscoelastic material connected to a contractile muscle.

2.1 Model Development

2.1.1 Body Mechanics

The nematode body is modeled as an active viscoelastic beam for small amplitude displacements submerged in a Newtonian fluid. C. elegans usually operates in a regime where inertia plays a minor role (i.e., low Re), thus the equation of motion is a balance of internal elastic forces, internal viscous forces, and a fluid drag force described by a local drag coefficient CNC_{N} [13, 40, 45]:

(1) CNy˙\displaystyle C_{N}\dot{y} =kbxx(κ+μbkbκ˙+M(x,t)),\displaystyle=-k_{b}\partial_{xx}\quantity(\kappa+\dfrac{\mu_{b}}{k_{b}}\dot{\kappa}+M(x,t)),

where xx is the length-wise body coordinate, tt is time, y(x,t)y(x,t) is the displacement in the ventral-dorsal plane, κ(x,t)\kappa(x,t) is the curvature, and M(x,t)M(x,t) is the active moment that comes from internal muscle activity. The parameter kbk_{b} is the bending modulus, μb\mu_{b} is the effective internal viscosity, and the normal drag coefficient CNC_{N} is proportional to the external fluid viscosity μf\mu_{f} (CN=αμfC_{N}=\alpha\mu_{f}, see Appendix B). The values for these parameters are given in Table 1, and a discussion of how they were selected is provided in Section 2.3.

We consider small amplitude undulations, so that the curvature κ(x,t)\kappa(x,t) is approximately the second spatial derivative of the displacements y(x,t)y(x,t):

(2) κ(x,t)xxy(x,t).\kappa(x,t)\approx\partial_{xx}y(x,t).

Taking two partial derivatives in xx of equation 1 and applying force-free, moment-free boundary conditions, the curvature κ(x,t)\kappa(x,t) of the body satisfies

(3) αμfκ˙\displaystyle\alpha\mu_{f}\dot{\kappa} =kbxxxx(κ+μbkbκ˙+M(x,t)),\displaystyle=-k_{b}\partial_{xxxx}\quantity(\kappa+\dfrac{\mu_{b}}{k_{b}}\dot{\kappa}+M(x,t)),
(4) κ(x,t)\displaystyle\kappa(x,t) +μbkbκ˙(x,t)+M(x,t)=0,\displaystyle+\dfrac{\mu_{b}}{k_{b}}\dot{\kappa}(x,t)+M(x,t)=0,\ for x=0,x=L,\displaystyle\text{ for }x=0,x=L,
(5) x\displaystyle\partial_{x} (κ+μbkbκ˙+M(x,t))=0,\displaystyle\quantity(\kappa+\dfrac{\mu_{b}}{k_{b}}\dot{\kappa}+M(x,t))=0,\ for x=0,x=L,\displaystyle\text{ for }x=0,x=L,

where x=0x=0 is the head and x=Lx=L is the tail (LL is the body length). Note that in equations 3-5, a positive curvature κ(x,t)\kappa(x,t) represents a bend towards the dorsal side. The active moment M(x,t)M(x,t) comes from internal muscle activity, which will be defined below.

2.1.2 Muscles

The body is driven by six modules of roughly 6 ventral and 6 dorsal muscle cells, that apply contractile forces to either the dorsal or ventral side [17, 48]. These muscle modules split the body into six distinct regions of length =L/6\ell=L/6. Each ventral/dorsal muscle group applies a contractile force as a function of its activity level A(t)A(t). The ventral and dorsal (k=V,Dk=V,D) muscle activities Ak,jA_{k,j} in the jthj^{\text{th}} module are given by

(6) τmA˙k,j=Ak,j+IM(k,j),\tau_{m}\dot{A}_{k,j}=-A_{k,j}+I_{M}(k,j),\\

where τm\tau_{m} is the timescale of muscle activation and IM(k,j)I_{M}(k,j) is the input from the jthj^{\text{th}} neural module (described below). The tension σ(A(t))\sigma(A(t)) generated by the muscle is only contractile (σ0\sigma\geq 0) and saturates at some peak force cmc_{m}:

(7) σ(A(t))\displaystyle\sigma(A(t)) =cm2(tanh(cs(A(t)a0))+1),\displaystyle=\dfrac{c_{m}}{2}\quantity(\tanh(c_{s}(A(t)-a_{0}))+1),

where cs,a0c_{s},a_{0} define the scale and shift of the nonlinear threshold. In the jthj^{\text{th}} module, the dorsal and ventral muscles apply contractile forces to opposite sides of the body, which induces a moment mj(t)m_{j}(t) on the centerline from xj1=(j1)x_{j-1}=(j-1)\ell to xj=jx_{j}=j\ell:

(8) mj(t)=σ(AV,j(t))σ(AD,j(t)).m_{j}(t)=\sigma(A_{V,j}(t))-\sigma(A_{D,j}(t)).

The active moment M(x,t)M(x,t) as a function of the body coordinate xx is then given by

(9) M(x,t)\displaystyle M(x,t) =mj(t) for x[xj1,xj).\displaystyle=m_{j}(t)\text{ for }x\in[x_{j-1},x_{j}).

2.1.3 Neural Module

The motor neurons necessary for forward locomotion are the DB (dorsal B-class) and VB (ventral B-class) [17, 48], and the neurons DD (dorsal D-class) and VD (ventral D-class) have been predicted as necessary for swimming [5, 11]. Figure 1 shows the neural module used in our model. There are 11 VB, 13 VD, 7 DB, and 6 DD neurons in the ventral nerve cord, which corresponds to about 2 VB, 2 VD, 1 DB, and 1 DD neurons in each of the six modules in our model [17]. In each module, the pair of VB neurons are connected via gap-junctions and have similar inputs and outputs, so we model each pair of VB neurons as a single entity. We assume the same for each pair of VD neurons. The neural modules in our model are similar in structure to Boyle et al. [5], except that we omit the VD-to-VB inhibition. Each neural module is driven by constant input from the head interneuron AVB [17, 44, 48]. The D-class neurons are assumed to invert excitation from the B-class neurons into inhibition of the contralateral muscles. The B-class neurons are modeled as bistable, non-spiking elements, in line with recordings of similar motor neurons involved in head-turns [26]. The activities of the ventral and dorsal (k=V,Dk=V,D) B-class neurons in the jthj^{\text{th}} neural module are given by

(10) τnV˙k,j\displaystyle\tau_{n}\dot{V}_{k,j} =F(Vk,j)+P(k,j)+Igj(k,j),\displaystyle=F(V_{k,j})+P(k,j)+I_{gj}(k,j),

where

(11) F(Vk)\displaystyle F(V_{k}) =VkVk3+I.\displaystyle=V_{k}-V_{k}^{3}+I.

Here, τn\tau_{n} is the timescale of neural activity, and II is the offset from the constant “on” input from AVB. P(k,j)P(k,j) is proprioceptive feedback into the neuron, and Igj(k,j)I_{gj}(k,j) is gap-junctional (electrical) coupling between neurons, both of which will be described below.

The D-class neurons are excited by the ipsilateral B-class neurons and inhibit the contralateral body-wall muscles. This effect is captured by direct inhibition of the muscles by the B-class neurons. We model the B-class neurons as exciting the ipsilateral muscles and inhibiting the contralateral muscles. The input from the jthj^{\text{th}} neural module to the ventral/dorsal muscles is given by

(12) IM(k,j)={VV,jVD,j, if k=VVD,jVV,j, if k=D.I_{M}(k,j)=\begin{cases}V_{V,j}-V_{D,j},&\text{ if }k=V\\ V_{D,j}-V_{V,j},&\text{ if }k=D.\end{cases}

2.1.4 Proprioceptive Feedback

To close the neuromechanical loop, the body segment curvatures feed back into the circuit via proprioceptive processes in the VB and DB neurons. There are two types of proprioception in this model: local (from the body region covered by the muscles of the module) and nonlocal (from neighboring anterior body regions).

Local proprioceptive feedback acts to reset the neural modules, i.e., switch between dorsal bend commands and ventral bend commands. Thus, local proprioception is modeled as an excitatory current to the ventral B-class neurons in response to positive average curvature over the local module of length =L/6\ell=L/6, and an inhibitory current in response to negative average local curvature. The input to the dorsal B-class neurons is the same but with the polarities reversed. This feedback acts to relax the contracted muscles and contract the relaxed muscles.

Nonlocal proprioception promotes a wave of activity that propogates from anterior to posterior. The anatomical structures underlying proprioception are unknown [48], however, the evidence in Wen et al. [43] suggests that proprioceptive information affects the B-class motorneurons and is propagated posteriorly. To be consistent with this directionality, in our model positive nonlocal anterior segment curvature yields a weak inhibitory current to the ventral B-class neurons and a weak excitatory current to the dorsal B-class neurons. Negative nonlocal anterior segment curvature yields similar currents with the polarities reversed to each side. This same directionality was shown to produce locomotion in the earlier neuromechanical model of Izquierdo and Beer [19]. This is similar to the assumptions of Boyle et al. [5], but with the opposite directionality and sign of nonlocal proprioception.

The proprioceptive feedback to the ventral and dorsal B-class neurons in the jthj^{\text{th}} neural module (j=1,,6j=1,\dots,6) of length =L/6\ell=L/6 is modeled by

(13) P(V,j)\displaystyle P(V,j) =+cp1(j1)jκ(x,t)dxεp1(j2)(j1)κ(x,t)dx,\displaystyle=+c_{p}\dfrac{1}{\ell}\int_{(j-1)\ell}^{j\ell}\kappa(x,t)\differential x-\varepsilon_{p}\dfrac{1}{\ell}\int_{(j-2)\ell}^{(j-1)\ell}\kappa(x,t)\differential x,
(14) P(D,j)\displaystyle P(D,j) =cp1(j1)jκ(x,t)dx+εp1(j2)(j1)κ(x,t)dx,\displaystyle=-c_{p}\dfrac{1}{\ell}\int_{(j-1)\ell}^{j\ell}\kappa(x,t)\differential x+\varepsilon_{p}\dfrac{1}{\ell}\int_{(j-2)\ell}^{(j-1)\ell}\kappa(x,t)\differential x,

where cpc_{p} is the strength of local proprioception, εp\varepsilon_{p} is the strength of nonlocal anterior proprioception, and κ(x,t)=0\kappa(x,t)=0 for x[0,L]x\notin[0,L] for notational simplicity.

2.1.5 Gap-Junctional Coupling

The B-class neurons are also connected via gap-junction synapses to neighboring B neurons of the same type (ventral/dorsal) [17, 44, 48]. The gap-junctions are modeled as symmetric ohmic resistors with constant conductance, so that the gap-junctional coupling to the ventral and dorsal (k=V,Dk=V,D) B-class neurons in the jthj^{\text{th}} neural module are described by

(15) Igj(k,j)=εg(Vk,j1Vk,j)+εg(Vk,j+1Vk,j),\displaystyle I_{gj}(k,j)=\varepsilon_{g}(V_{k,j-1}-V_{k,j})+\varepsilon_{g}(V_{k,j+1}-V_{k,j}),

where εg\varepsilon_{g} is the strength of gap-junction coupling and Vk,0=Vk,7=0V_{k,0}=V_{k,7}=0 for notational simplicity.

2.2 Model Discretization for Numerical Simulation

To simulate the model described in Section 2.1, the body is discretized into six modules in correspondence with the six neuromuscular modules, so that there are six discrete body segment curvatures. The 4th-order difference operator D4D_{4} is used to approximate the 4th spatial derivative with zero-force, zero-torque boundary conditions:

(16) 14D4=14(741464114641146411464147).\dfrac{1}{\ell^{4}}D_{4}=\dfrac{1}{\ell^{4}}\quantity(\begin{matrix}7&-4&1&&&\\ -4&6&-4&1&&\\ 1&-4&6&-4&1&\\ &1&-4&6&-4&1\\ &&1&-4&6&-4\\ &&&1&-4&7\\ \end{matrix}).

Discretizing equations 3-5 and using 8-9 yields a linear differential equation for the vector of body segment curvatures κ¯\underline{\mathbf{\kappa}}:

(17) (αμfI6+μb4D4)κ¯˙=kb4D4(κ¯+σ(𝐀¯V)σ(𝐀¯D)),\quantity(\alpha\mu_{f}I_{6}+\dfrac{\mu_{b}}{\ell^{4}}D_{4})\dot{\underline{\mathbf{\kappa}}}=-\dfrac{k_{b}}{\ell^{4}}D_{4}\quantity(\underline{\mathbf{\kappa}}+\sigma(\underline{\mathbf{A}}_{V})-\sigma(\underline{\mathbf{A}}_{D})),

where I6I_{6} is the 6×66\times 6 identity matrix.

In this discretization, the neural and muscle activity dynamics of all the modules are given by

(18) τm𝐀¯˙V\displaystyle\tau_{m}\dot{\underline{\mathbf{A}}}_{V} =𝐀¯V+𝐕¯V𝐕¯D,\displaystyle=-\underline{\mathbf{A}}_{V}+\underline{\mathbf{V}}_{V}-\underline{\mathbf{V}}_{D},
(19) τm𝐀¯˙D\displaystyle\tau_{m}\dot{\underline{\mathbf{A}}}_{D} =𝐀¯D+𝐕¯D𝐕¯V,\displaystyle=-\underline{\mathbf{A}}_{D}+\underline{\mathbf{V}}_{D}-\underline{\mathbf{V}}_{V},
(20) τn𝐕¯˙V\displaystyle\tau_{n}\dot{\underline{\mathbf{V}}}_{V} =F(𝐕¯V)+cpκ¯εpWpκ¯+εgWg𝐕¯V,\displaystyle=F(\underline{\mathbf{V}}_{V})+c_{p}\underline{\mathbf{\kappa}}-\varepsilon_{p}W_{p}\underline{\mathbf{\kappa}}+\varepsilon_{g}W_{g}\underline{\mathbf{V}}_{V},
(21) τn𝐕¯˙D\displaystyle\tau_{n}\dot{\underline{\mathbf{V}}}_{D} =F(𝐕¯D)cpκ¯+εpWpκ¯+εgWg𝐕¯V,\displaystyle=F(\underline{\mathbf{V}}_{D})-c_{p}\underline{\mathbf{\kappa}}+\varepsilon_{p}W_{p}\underline{\mathbf{\kappa}}+\varepsilon_{g}W_{g}\underline{\mathbf{V}}_{V},

where each vector entry (e.g., AV,jA_{V,j}) is the corresponding activity of the jthj^{\text{th}} module. In equations 20 and 21, WpW_{p} is the nonlocal proprioceptive connectivity matrix (equation 22), which comes from discretizing equation 13, and WgW_{g} is the gap-junction connectivity matrix (equation 23), which comes from discretizing equation 15:

(22) Wp=(01010),W_{p}=\quantity(\begin{matrix}0&&&&\\ 1&0&&&\\ &&\ddots&\ddots&\\ &&&1&0\end{matrix}),
(23) Wg=(1112111).W_{g}=\quantity(\begin{matrix}-1&1&&\\ 1&-2&1&\\ &\ddots&\ddots&\ddots\\ &&1&-1\\ \end{matrix}).

A numerical solution to the system of differential equations 17-21 is generated using the ode23 method in MATLAB.

2.3 Parameter Discussion

Some parameters in the model are well-constrained by experimental data, while others are not. Quantities that are directly measurable include the body length L=1L=1 mm, average body radius R=40R=40 μ\mum, cuticle width rc=0.5r_{c}=0.5 μ\mum, and wavelength λ/L\lambda/L and frequency ff in fluids of various viscosities μf\mu_{f}. The timescales in the system are less certain. The range 50-200 ms is used for the muscle activation timescale τm\tau_{m}, which is the range of measurements of peak muscle force generation time in Milligan et al. (1997) [27]. As with previous models [5, 12, 19], the neural activity is chosen to be the fastest process in the model, but while Boyle et al. [5] considered the B-neurons as instantaneous switches, here the neural activity timescale is set at τn=10\tau_{n}=10 ms.

The internal viscosity μb\mu_{b} and Young’s modulus EE have been estimated across several orders of magnitude [2, 13, 40], so caution is exercised in using one set of parameters from one source over another. Of more importance in the model is the mechanical timescale

(24) τb=μbkb,\tau_{b}=\dfrac{\mu_{b}}{k_{b}},

which is the timescale of relaxation in an inviscid fluid. In equation 24, kbk_{b} is the bending modulus, which is derived from the Young’s modulus EE and the geometry of the cuticle in Appendix B following previous modeling procedures [10, 40]. In Appendix B, we also compare the range of mechanical parameters used here with previous models. Given the range of mechanical parameters reported in the literature, the mechanical timescale could be as small as τb=1\tau_{b}=1 ms or as large as τb=5\tau_{b}=5 s. The role of this timescale is explored in Section 3.2.

The electrophysiological details of the internal neural circuit are largely unknown, thus all the feedback and coupling strengths cp,cm,εp,εgc_{p},c_{m},\varepsilon_{p},\varepsilon_{g}, the parameters of the nonlinear functions F(V)F(V) and σ(A)\sigma(A) are not well constrained. The feedback strengths cm=10c_{m}=10, cp=1c_{p}=1 and parameters of the nonlinear functions F(V)F(V) (a=1,I=0a=1,I=0) and σ(A)\sigma(A) (cs=1,a0=2c_{s}=1,a_{0}=2) were chosen so that the neuromechanical oscillator robustly gives the correct frequency (1.76Hz\sim 1.76Hz) in a low-viscosity environment. The values for the coupling parameters εp\varepsilon_{p} and εg\varepsilon_{g}, on the other hand, are explored in the next section.

Table 1: Range of parameters explored and sources. See Section 2.3 for more details and Appendix B for derivations.
Parameter Name Range of values References
LL Body length 1 mm [44]
RR Average body radius 40 μ\mum [9]
rcuticler_{\text{cuticle}} Cuticle width 0.5 μ\mum [9]
E Young’s modulus 3.773.77 kPa - 1.3×1041.3\times 10^{4} kPa [2, 13, 40]
IcI_{c} Second moment of area of cuticle 2.0×107(mm)42.0\times 10^{-7}(\text{mm})^{4} [9]
kbk_{b} Bending modulus 7.53×10102.6×1067.53\times 10^{-10}-2.6\times 10^{-6} N\cdot(mm)2 [2, 13, 40]
μb\mu_{b} Body viscosity 2×10111.3×1072\times 10^{-11}-1.3\times 10^{-7} N(mm)2s [2, 13, 40]
μf\mu_{f} Fluid viscosity 12.8×1041-2.8\times 10^{4} mPa\cdots [13]
CNC_{N} Normal drag coefficient 3.4μf3.4\mu_{f} [9, 13]
τb\tau_{b} Mechanical timescale τb=μb/kb\tau_{b}=\mu_{b}/k_{b} 1 ms - 5 s [2, 13, 40]
τm\tau_{m} Muscle activation timescale 50-200 ms [27]

3 Model Results

C. elegans locomote forward using alternating dorsal and ventral body bends that propogate in the form of a traveling wave from anterior to posterior. The spatial wavelength of this traveling wave changes in response to changes in the fluid viscosity [3, 13, 40]. In this section, we show that our model captures this gait adaptation for a wide range of mechanical and neural parameters, provided that the muscle response to input from the nervous system is faster than the body response to changes in internal and external forces. We also show that sufficiently strong gap-junctional coupling is essential to achieving the long-wavelengths in our model.

3.1 Model Captures Gait Adaptation

Refer to caption
Refer to caption
Figure 2: The model captures the quantitative trend of gait modulation seen in experiments such as [13]. Here, τb=0.5\tau_{b}=0.5 s, τm=0.1\tau_{m}=0.1 s, and μb=1.3×107\mu_{b}=1.3\times 10^{-7} N(mm)2s. In water (μf=1\mu_{f}=1 mPa s) the wavelength is roughly 1.5 bodylengths, and increasing the fluid viscosity μf\mu_{f} smoothly reduces the wavelength down to roughly 0.75 bodylengths in the most viscous case (μf=28\mu_{f}=28 Pa s).

We fit the model to match the wavelength and frequency in water, and then ran it in different fluid environments. Our model captures the quantitative effect of external fluid viscosity on the body wavelength seen in experiments and previous models. Figure 2 shows an example of the wavelength trend of the model for fixed body parameters τb=500\tau_{b}=500 ms, τm=50\tau_{m}=50ms (the wavelengths were computed from the model output as described in Appendix A). Figure 2 also shows that the model wavelengths are in close quantitative agreement with the experimentally-measured wavelengths of Fang-Yen et al. [13]. In water (μf=1\mu_{f}=1 mPa\cdots) the wavelength is roughly 1.5 bodylengths, and increasing the fluid viscosity μf\mu_{f} smoothly reduces the wavelength down to roughly 0.75 bodylengths in the most viscous case (μf=2.8×104\mu_{f}=2.8\times 10^{4} mPa\cdots). This wavelength trend is similar to what has been observed in other experiments [3, 40], and in Section 3.2, we show that our model captures this trend robustly over a wide range of parameters.

The undulation frequency also changes in response to changes in the fluid viscosity [3, 13, 40]. In Fang-Yen et al. [13], the frequency decreases from 1.7 Hz to 0.30 Hz as fluid viscosity increases from 1 mPa s to 2.8×1042.8\times 10^{4} mPa s. Our model also exhibits a decrease in frequency as fluid viscosity μf\mu_{f} increases, but not of the same magnitude (1.7 Hz - 1.6 Hz). Discussion of this discrepancy is given in Section 5.

3.2 Parameter Study Highlights Importance of Timescale Ordering in Capturing Gait Adaptation

We performed a parameter study to show that the model robustly captures gait adaptation as the fluid viscosity μf\mu_{f} is varied. The mechanical parameters τb\tau_{b}, μb\mu_{b}, the proprioceptive coupling strength εp\varepsilon_{p}, and the muscle timescale τm\tau_{m} were varied, while the other parameters of the model were held fixed, including the gap-junctional coupling strength εg=0.0134\varepsilon_{g}=0.0134. (For more extensive parameter explorations, see [22].) For some parameter regimes, the body deformations were traveling waves for all fluid viscosities μf\mu_{f}, but this was not the case for other parameter regimes. Figure 3 shows kymographs of the body curvature that demonstrate two typical cases exhibited by the model.

Refer to caption
Figure 3: Sample model curvature kymographs (curvature vs. time) for various parameter regimes. For some parameter regimes, the gait adaptation trend generally held and there was a traveling wave at all μf\mu_{f} values; (a) gives an example of this behavior for τb=\tau_{b}= 0.51 s, μb=1.3×107\mu_{b}=1.3\times 10^{-7} N(mm2) s, and μf\mu_{f} = 28 Pa s. For other parameter regimes, high enough external fluid viscosity μf\mu_{f} resulted in a loss of the traveling waveform; (b) gives an example of this behavior for τb=\tau_{b}= 0.51 s, μb=1.5×109\mu_{b}=1.5\times 10^{-9} N(mm2) s, and μf\mu_{f} = 28 Pa s.

The model parameters τb\tau_{b}, μb\mu_{b}, εp,\varepsilon_{p}, and τm\tau_{m} were systematically varied to characterize the model behavior. For a given body timescale τb\tau_{b} and body viscosity μb\mu_{b}, the muscle activity timescale τm\tau_{m} was selected in the range 50-250 ms to match the undulation frequency (1.7 Hz) in water (μf=1\mu_{f}=1 mPa s) within 1%. Next, the proprioceptive coupling strength εp\varepsilon_{p} was selected to match the wavelength (1.5 bodylengths) in water within 1%. We are able to separate these effects and perform these one-parameter searches due to the weakly coupled nature of our model. The model was then run in different fluid viscosity μf\mu_{f} environments and the emergent coordination trend is reported in Figure 4. The model behavior was classified exclusively as either: (1) not a traveling wave for all fluid environments, (2) incorrect wavelength trend, (3) qualitatively correct wavelength trend, or (4) incorrect frequency in water.

There is no traveling wave (red triangles) if, for any viscosity μf\mu_{f}, the difference between the minimum and maximum pairwise-phase difference is greater than or equal to 0.5, because this indicates that there is no consistent directionality to the phase differences in the body. A range of observed wavelength trends in various parameter regimes (the boxed markers in Figure 4) are illustrated in Figure 5. Figure 5(a) and (b) show examples of the qualitatively correct wavelength trend (blue circles), while (c) shows the the incorrect trend, which was only obtained at a single parameter combination. The wavelength trend is incorrect because the wavelengths increased dramatically as the fluid viscosity increased, as opposed to generally decreasing.

Refer to caption
Figure 4: Classification of the model behavior for different mechanical parameters μb\mu_{b} and τb\tau_{b}. For each parameter combination (μb,τb)(\mu_{b},\tau_{b}), the muscle timescale τm\tau_{m} was fit to match the undulation frequency in water (τm\tau_{m} contours shown in black dashes). Boxed markers indicate parameter combinations which have the wavelength trend illustrated in Figure 5.

(a)Refer to caption (b)Refer to caption (c)Refer to caption

Figure 5: Model wavelength vs. external fluid viscosity μf\mu_{f} for various parameter regimes (the boxed markers in Figure 4). (a) and (b) show examples of the qualitatively correct wavelength trend, while (c) shows an incorrect trend. (a) has τb=\tau_{b}= 0.51 s , μb=1.4×108\mu_{b}=1.4\times 10^{-8} N(mm2)s, (b) has τb=\tau_{b}= 0.12 s , μb=1.5×109\mu_{b}=1.5\times 10^{-9} N(mm2)s, and (c) has τb=\tau_{b}= 0.01 s , μb=1.3×107\mu_{b}=1.3\times 10^{-7} N(mm2)s.

A few key observations can be made from Figure 4. First, if the mechanical timescale τb\tau_{b} is too large, then the frequency in water cannot be obtained (see the black squares in Figure 4). Second, if the mechanical timescale τb\tau_{b} is too small, then there will not be a traveling wave for all fluid viscosities μf\mu_{f}. This suggests that while the body stiffness kbk_{b} and body viscosity μb\mu_{b} have been estimated across several orders of magnitude in various experiments and models, the effective mechanical body timescale τb=μb/kb\tau_{b}=\mu_{b}/k_{b} lies within the relatively narrow range 0.0710.07-1 s.

In order to match the frequency, the muscle timescale τm\tau_{m} must be inversely related to τb\tau_{b}. When the body timescale τb\tau_{b} is increased, the muscle timescale τm\tau_{m} must decrease to compensate. The frequency in water cannot be obtained for τb\tau_{b} too large since it would require decreasing the muscle activity timescale τm\tau_{m} below physiological limits. Similarly, when the body timescale τb\tau_{b} is decreased, the muscle timescale τm\tau_{m} must be increased to compensate for the frequency. For τb\tau_{b} too small, there is not a traveling wave for all fluid viscosities μf\mu_{f}; this occurs soon after τb<τm\tau_{b}<\tau_{m}. This suggests that the relative ordering of the timescales τb,τm,τn\tau_{b},\tau_{m},\tau_{n} is key to the coordination. Generally, the mechanical timescale τb\tau_{b} must be the largest, the muscle activity timescale τm\tau_{m} intermediate, and the neural timescale τn\tau_{n} the shortest. The mechanism by which this timescale ordering affects coordination is explained in Section 4.3.

Remarkably, whenever there is a traveling wave in this systematic parameter search, it almost always has the qualitatively correct wavelength trend. This wavelength trend is consistent with gait adaptation across several orders of magnitude of the mechanical parameters.

3.3 Gap-Junctions are Necessary for Long Wavelengths in the Model

To determine the role of gap-junctions in our neuromechanical model, we investigate how changing the gap-junctional coupling strength affects the wavelength trend and overall coordination. Other models have achieved accurate wavelength adaptation without gap-junctional coupling, albeit with proprioceptive ranges longer than nearest-neighbor [5, 12], so we assess the degree to which gap-junctional coupling is necessary in our model. We find that in our model, sufficiently strong gap-junctional coupling is necessary to obtain the long wavelengths in low-viscosity environments (e.g. water).

We vary the gap-junctional coupling strength in our model over several orders of magnitude (εg=0\varepsilon_{g}=0 and εg[104,101]\varepsilon_{g}\in[10^{-4},10^{-1}]). We fix the parameters τb=0.5\tau_{b}=0.5 s, τm=0.1\tau_{m}=0.1 s, and μb=1.3×107\mu_{b}=1.3\times 10^{-7} N(mm)2(mm)^{2}s and find the proprioceptive coupling strength εp\varepsilon_{p} to match the wavelength in water (approximately 1.5 bodylengths). Figure 6(a) shows the resulting wavelength trend of the model for different gap-junctional coupling strengths εg\varepsilon_{g}. For sufficiently strong gap-junctional coupling strengths (εg0.005\varepsilon_{g}\geq 0.005), the wavelength in water was matched and the full range of wavelength adaptation was found (circle-markers in Figure 6(a)). For weaker gap-junctional coupling strengths (εg<0.005\varepsilon_{g}<0.005), the wavelength in water was not matched (plus-markers, Figure 6(a)). We further show that the model with weak gap-junctional coupling strength (εg<0.005\varepsilon_{g}<0.005) cannot match the wavelength in water for any proprioceptive coupling strength. Figure 6(b) shows the model wavelengths in water as a function of proprioceptive coupling strength εp\varepsilon_{p} for different gap-junctional coupling strengths εg\varepsilon_{g} and reiterates that the model cannot match the long wavelength without sufficiently strong gap-junctional coupling. Our neuromechanical model thus relies on gap-junctional coupling between neural modules to achieve the long wavelengths in low-viscosity environments.

(a)Refer to caption (b)Refer to caption

Figure 6: (a) The resulting wavelength trend of the model (wavelength vs. external fluid viscosity μf\mu_{f}) for different gap-junctional coupling strengths εg\varepsilon_{g}. In each run, the proprioceptive coupling strength εp\varepsilon_{p} was (attempted to) fit to match the wavelength in water (1.5 bodylengths). Circle-markers indicate successful fits, plus-markers indicate unsuccessful fits, and X-markers indicate data from Fang-Yen et al. [13]. Note that for εg<0.005\varepsilon_{g}<0.005, the wavelength in water was not matched. (b) The model wavelength in water (μf=1\mu_{f}=1mPa s) as a function of proprioceptive coupling strength εp\varepsilon_{p} for different gap-junctional coupling strengths εg\varepsilon_{g}. Note that for εg<0.005\varepsilon_{g}<0.005, the wavelength in water (λ=1.5\lambda=1.5) is not matched over a wide range of proprioceptive coupling strengths εp\varepsilon_{p}.

4 The Neuromechanical Model as a Network of Coupled Oscillators: Insight Into Mechanisms Underlying Gait Adaptation

The neuromechanical model is able to robustly capture the quantitative trend of gait adaptation across a wide range of parameters. In this section, the modular structure of the model will be exploited to uncover the fundamental mechanisms underlying gait adaptation. In Section 4.1, we show that the isolated neuromechanical modules are oscillators. (Note that from the standard theory of weakly coupled oscillators point of view the modules would be considered “intrinsic oscillators”, whereas from a neurolocomotion perspective, the modules are “extrinsic oscillators”, i.e., local proprioceptive feedback is required to generate the oscillations.) These modules form a network of coupled oscillators with three forms of coupling: mechanical (through the body and external fluid), proprioceptive, and gap-junctional. Furthermore, this coupling is relatively weak, and thus the theory of weakly coupled oscillators [23, 36] can be applied to identify the coordinating effects of each coupling modality. We demonstrate that the competition between mechanical coupling and neural coupling provides an explicit mechanism for gait adaptation.

4.1 Isolated Neuromechanical Modules are Oscillators

A single, isolated neuromechanical module is defined as a neural subcircuit, the corresponding muscles and body section, and local proprioceptive feedback (without coupling through the body or neural circuitry). The dynamics for this isolated module are governed by

(25) κ˙\displaystyle\dot{\kappa} =1τb(κ+σ(AV)σ(AD)),\displaystyle=-\dfrac{1}{\tau_{b}}\quantity(\kappa+\sigma(A_{V})-\sigma(A_{D})),
(26) A˙V\displaystyle\dot{A}_{V} =1τm(AV+VVVD),\displaystyle=\dfrac{1}{\tau_{m}}\quantity(-A_{V}+V_{V}-V_{D}),
(27) A˙D\displaystyle\dot{A}_{D} =1τm(AD+VDVV),\displaystyle=\dfrac{1}{\tau_{m}}\quantity(-A_{D}+V_{D}-V_{V}),
(28) V˙V\displaystyle\dot{V}_{V} =1τn(F(VV)+cpκ),\displaystyle=\dfrac{1}{\tau_{n}}\quantity(F({V}_{V})+c_{p}\kappa),
(29) V˙D\displaystyle\dot{V}_{D} =1τn(F(VD)cpκ).\displaystyle=\dfrac{1}{\tau_{n}}\quantity(F({V}_{D})-c_{p}\kappa).

Note that this is the model described in Section 2, omitting the intermodular coupling. The isolated modules exhibit robust oscillations over a wide range of parameters, and a single period of the module is shown for each state-variable in Figure 7(a). Thus, the neuromechanical modules are oscillators, wherein each B-class neuron promotes either a dorsal or ventral bend and the local proprioceptive feedback acts to switch the bistable B neurons from one state to the other. The basic cycle of the oscillator is as follows: when activated, the ventral B-class neuron (VVV_{V}) excites the ventral muscles which build up activity (AVA_{V}) to induce a ventral bend (negative κ\kappa); when the curvature κ\kappa is sufficiently large, the local proprioceptive feedback deactivates the ventral B-class neuron and activates the dorsal B-class neuron, and the cycle continues towards a dorsal bend.

The system of six identical, uncoupled neuromechanical oscillators is described by

(30) 𝐗¯˙j=S(𝐗¯j),j=1,,6\dot{\underline{\mathbf{X}}}_{j}=S(\underline{\mathbf{X}}_{j}),\ j=1,\dots,6

where

(31) 𝐗¯j=[κj,AV,j,AD,j,VV,j,VD,j]T,\underline{\mathbf{X}}_{j}=\quantity[\kappa_{j},A_{V,j},A_{D,j},V_{V,j},V_{D,j}]^{T},

and S(𝐗¯)S(\underline{\mathbf{X}}) is given by equations 25-29. The oscillations correspond to a TT-periodic limit cycle 𝐗¯LC(t)\underline{\mathbf{X}}^{LC}(t) in (κ,AV,AD,VV,VD)(\kappa,A_{V},A_{D},V_{V},V_{D})-state-space. This limit cycle can be parametrized by phase

(32) θj=(ωt+θj0) mod 1\theta_{j}=\quantity(\omega t+\theta_{j}^{0})\text{ mod 1}

with the initial phase θj0[0,1)\theta_{j}^{0}\in[0,1). As θj\theta_{j} increases at a constant rate ω=1/T\omega=1/T, 𝐗¯LC(θj)\underline{\mathbf{X}}^{LC}(\theta_{j}) traces out the limit cycle through state-space and the state of each oscillator on the limit cycle is given by

(33) 𝐗¯j(t)=𝐗¯LC(θj),\underline{\mathbf{X}}_{j}(t)=\underline{\mathbf{X}}^{LC}(\theta_{j}),

where the only distinguishing feature between the oscillators is their unique phase θj\theta_{j}. Figure 7(a) shows the components of 𝐗¯LC(θ)\underline{\mathbf{X}}^{LC}(\theta).

(a)Refer to caption (b)Refer to caption (c)Refer to caption

Figure 7: The period and amplitude of the oscillations in κ,AV,AD,VD,VV\kappa,A_{V},A_{D},V_{D},V_{V} are all relatively similar for (a) the single, isolated neuromechanical module, (b) the single module in the full neuromechanical model at low viscosity (μf=1\mu_{f}=1mPa s), and (c) the single module in the full neuromechanical model at high viscosity (μf=2.8×104\mu_{f}=2.8\times 10^{4} mPa s). Ventral neural/muscle activities are given in green dashed lines, dorsal neural/muscle activities are given in red solid lines.

4.2 Network of Coupled Oscillators

Rearranging equations 17-23, the neuromechanical model can be written as a network of coupled oscillators:

(34) 𝐗¯˙j=S(𝐗¯j)+Cj(𝐗¯1,,𝐗¯6),j=1,,6\dot{\underline{\mathbf{X}}}_{j}=S(\underline{\mathbf{X}}_{j})+C_{j}(\underline{\mathbf{X}}_{1},\dots,\underline{\mathbf{X}}_{6}),\ \ j=1,\dots,6

where Cj(𝐗¯1,,𝐗¯6)C_{j}(\underline{\mathbf{X}}_{1},\dots,\underline{\mathbf{X}}_{6}) describes the coupling dynamics from all the modules to the jthj^{th} module through gap-junctions, nonlocal proprioception, and body mechanics:

(35) Cj(𝐗¯1,,𝐗¯6)=[εmk=16(D41)jkκ˙k,0,0,1τnk=16εp(Wp)jkκk+εg(Wg)jkVV,k,1τnk=16εp(Wp)jkκk+εg(Wg)jkVD,k].C_{j}(\underline{\mathbf{X}}_{1},\dots,\underline{\mathbf{X}}_{6})=\quantity[\begin{array}[]{c}\varepsilon_{m}\sum_{k=1}^{6}(D_{4}^{-1})_{jk}\ \dot{\kappa}_{k},\\ 0,\\ 0,\\ \frac{1}{\tau_{n}}\sum_{k=1}^{6}\varepsilon_{p}(W_{p})_{jk}\ \kappa_{k}+\varepsilon_{g}(W_{g})_{jk}\ V_{V,k},\\ \frac{1}{\tau_{n}}\sum_{k=1}^{6}-\varepsilon_{p}(W_{p})_{jk}\ \kappa_{k}+\varepsilon_{g}(W_{g})_{jk}\ V_{D,k}\\ \end{array}].

The parameter εm=αμf4/μb\varepsilon_{m}=\alpha\mu_{f}\ell^{4}/\mu_{b} is the effective mechanical coupling strength.

The oscillations of the isolated module (equations 25-29) are indistinguishable (on the scale of Figure 7) from the oscillations of a module within the fully-coupled network (equations 17-21) at both low and high external fluid viscosity μf\mu_{f}. That is, the dynamics of the coupled module never deviate substantially from the limit cycle of the uncoupled module. This indicates that the intrinsic dynamics of the module dominate over the influence of coupling on any given cycle, which implies that the coupling is “weak”. However, small changes in the phase of a module due to coupling can accumulate over many cycles to significantly influence the phase differences between the modules.

Because the coupling is weak (as defined above), the theory of weakly coupled oscillators can be applied (see [36] for details). The coupling only alters the phase of the oscillators on their respective limit cycles and the effect on amplitude is negligible, therefore the phase completely describes the state of a neuromechanical module. Equation 34 can be reduced to the so-called phase equations, a set of differential equations describing the evolution of the phases of each oscillator:

(36) θ˙j=ωj+k=16εm(D41)jkHm(θkθj)+εg(Wg)jkHg(θkθj)+εp(Wp)jkHp(θkθj),\dot{\theta}_{j}=\omega_{j}+\sum_{k=1}^{6}\varepsilon_{m}(D_{4}^{-1})_{jk}H_{m}(\theta_{k}-\theta_{j})+\varepsilon_{g}(W_{g})_{jk}H_{g}(\theta_{k}-\theta_{j})+\varepsilon_{p}(W_{p})_{jk}H_{p}(\theta_{k}-\theta_{j}),

where θj\theta_{j} is the phase of the jthj^{th} oscillator, ω\omega is the intrinsic frequency, and H(ϕ)H(\phi) are the interaction functions that describe the change in frequency (resulting from either mechanical, proprioceptive, or gap-junction coupling) as a function of the phase difference ϕ=θkθj\phi=\theta_{k}-\theta_{j} of a given pair of oscillators:

(37) Hm(ϕ)\displaystyle H_{m}(\phi) =1T0TZκ(t)κ¯˙LC(tϕ)dt,\displaystyle=-\dfrac{1}{T}\int_{0}^{T}Z_{\kappa}(t)\dot{\underline{\mathbf{\kappa}}}^{LC}(t-\phi)\differential t,
(38) Hp(ϕ)\displaystyle H_{p}(\phi) =1τn1T0TZVV(t)κ¯LC(tϕ)ZVD(t)κ¯LC(tϕ)dt,\displaystyle=\dfrac{1}{\tau_{n}}\dfrac{1}{T}\int_{0}^{T}Z_{V_{V}}(t)\underline{\mathbf{\kappa}}^{LC}(t-\phi)-Z_{V_{D}}(t)\underline{\mathbf{\kappa}}^{LC}(t-\phi)\differential t,
(39) Hg(ϕ)\displaystyle H_{g}(\phi) =1τn1T0TZVV(t)(𝐕𝐕¯LC(tϕ)𝐕𝐕¯LC(t))+ZVD(t)(𝐕𝐃¯LC(tϕ)𝐕𝐃¯LC(t))dt.\displaystyle=\dfrac{1}{\tau_{n}}\dfrac{1}{T}\int_{0}^{T}Z_{V_{V}}(t)\quantity(\underline{\mathbf{V_{V}}}^{LC}(t-\phi)-\underline{\mathbf{V_{V}}}^{LC}(t))+Z_{V_{D}}(t)\quantity(\underline{\mathbf{V_{D}}}^{LC}(t-\phi)-\underline{\mathbf{V_{D}}}^{LC}(t))\differential t.

Here, Zκ(t)Z_{\kappa}(t), ZVV(t)Z_{V_{V}}(t), ZVD(t)Z_{V_{D}}(t) are the TT-periodic phase response functions to perturbations in the corresponding state variable.

The coupling modalities define the structure of the interaction functions, through the state variables that are coupled, as well as the coupling topology (the connectivity matrices D41D_{4}^{-1}, WgW_{g}, and WpW_{p} in equation 36). Note that there is a separate H-function for each of the three coupling modalities and these three coupling modalities add linearly to produce the full interaction of the modules. Therefore, the relative contributions of the various coupling types can be analyzed independently through varying the different coupling strengths: fluid viscosity μf\mu_{f} (through εm\varepsilon_{m}) for mechanical, εp\varepsilon_{p} for proprioceptive, and εg\varepsilon_{g} for gap-junctional.

4.3 Two Oscillator Analysis Explains the Coordination Mechanism

Analyzing a pair of two coupled oscillators gives considerable insight into the coordination that each coupling modality produces separately and the mechanisms of coordination. With only two oscillators, the phase model reduces to

(40) θ˙1\displaystyle\dot{\theta}_{1} =ω+εmj=12(D41)1jHm(θjθ1)+εgHg(θ2θ1),\displaystyle=\omega+\varepsilon_{m}\sum_{j=1}^{2}(D_{4}^{-1})_{1j}H_{m}(\theta_{j}-\theta_{1})+\varepsilon_{g}H_{g}(\theta_{2}-\theta_{1}),
(41) θ˙2\displaystyle\dot{\theta}_{2} =ω+εmj=12(D41)2jHm(θjθ2)+εpHp(θ1θ2)+εgHg(θ1θ2).\displaystyle=\omega+\varepsilon_{m}\sum_{j=1}^{2}(D_{4}^{-1})_{2j}H_{m}(\theta_{j}-\theta_{2})+\varepsilon_{p}H_{p}(\theta_{1}-\theta_{2})+\varepsilon_{g}H_{g}(\theta_{1}-\theta_{2}).

In the two oscillator case, the matrix D41D_{4}^{-1} is symmetric, so (D41)12=(D41)21=d12(D_{4}^{-1})_{12}=(D_{4}^{-1})_{21}=d_{12}. By defining

(42) ϕ=θ2θ1,\phi=\theta_{2}-\theta_{1},

and subtracting equation 40 from equation 41, the dynamics of the two oscillator system can be described by a single differential equation for the phase difference between the two oscillators:

(43) ϕ˙\displaystyle\dot{\phi} =εmd12Gm(ϕ)+εpGp(ϕ)+εgGg(ϕ)=G(ϕ),\displaystyle=\varepsilon_{m}d_{12}G_{m}(\phi)+\varepsilon_{p}G_{p}(\phi)+\varepsilon_{g}G_{g}(\phi)=G(\phi),

where Gm(ϕ)=Hm(ϕ)Hm(ϕ)G_{m}(\phi)=H_{m}(-\phi)-H_{m}(\phi), Gp(ϕ)=Hp(ϕ)G_{p}(\phi)=H_{p}(-\phi), and Gg(ϕ)=Hg(ϕ)Hg(ϕ)G_{g}(\phi)=H_{g}(-\phi)-H_{g}(\phi) are the pair-wise interaction functions, or G-functions of the pair. The stable phase-locked state of the system ϕ\phi^{*} is given by G(ϕ)=0,G(\phi^{*})=0, G(ϕ)<0G^{\prime}(\phi^{*})<0.

4.3.1 Each Coupling Modality Promotes a Different Coordination Outcome

Figure 8 shows the G-functions and corresponding phase-locked states of the different coupling modalities. For mechanical coupling alone, i.e., εp=εg=0\varepsilon_{p}=\varepsilon_{g}=0, the stable phase-locked state is anti-phase (ϕ=0.5\phi^{*}=0.5), since G(0.5)=0G(0.5)=0 and G(0.5)<0G^{\prime}(0.5)<0 (Figure 8(a)). Similarly, for proprioceptive coupling alone, the stable state is an intermediate phase-difference (ϕ0.75\phi^{*}\approx 0.75, Figure 8(b)), so the first oscillator leads the second (front-to-back). For gap-junctional coupling alone, the stable state is synchrony (ϕ=0\phi^{*}=0, Figure 8(c)).

The coordination outcome with all three coupling mechanisms present corresponds to the zero of the G-function (equation 43), which is a weighted sum of the three individual G-functions. Thus, coordination can be examined in the context of this weighted sum as the three coupling strengths are varied: external fluid viscosity μf\mu_{f} for mechanical coupling, proprioceptive coupling strength εp\varepsilon_{p}, and gap-junction coupling strength εg\varepsilon_{g}.

(a)Refer to caption (b)Refer to caption (c)Refer to caption

Figure 8: Each coupling modality promotes a different coordination outcome in a pair of coupled neuromechanical oscillators based on the stable zero of the corresponding G-function: (a) mechanical coupling promotes antiphase since Gm(0.5)=0G_{m}(0.5)=0 and Gm(0.5)<0G_{m}^{\prime}(0.5)<0; (b) proprioceptive coupling promotes a phase-wave since Gp(.75)=0G_{p}(.75)=0 and Gp(.75)<0G_{p}^{\prime}(.75)<0; and (c) gap-junctional coupling promotes synchrony since Gg(1)=0G_{g}(1)=0 and Gg(1)<0G_{g}^{\prime}(1)<0.

4.3.2 Neural Coupling Sets the Low-Viscosity Wavelength

(a)Refer to caption (b)Refer to caption

Figure 9: In the low-viscosity limit, the stable phase-locked states of the pair of neuromechanical oscillators is set by the competition between proprioceptive and gap-junctional coupling. (a) The linear combination of the G-functions given by equation 43 for εp=0.05\varepsilon_{p}=0.05, μf=1\mu_{f}=1 mPa\cdots, and various εg\varepsilon_{g}. Note that as the gap-junctional coupling strength εg\varepsilon_{g} increases, the stable phase-locked phase difference ϕ\phi^{*} moves from roughly ϕ=0.75\phi^{*}=0.75 towards ϕ=1\phi^{*}=1. (b) The stable phase-locked states of the pair can be tuned by varying the two forms of neural coupling: proprioceptive and gap-junctional. When proprioceptive coupling dominates, the stable phase-locked state is a phase difference of roughly ϕ=0.75\phi^{*}=0.75, and when gap-junctional coupling dominates, the stable phase-locked state is synchrony ϕ=1\phi^{*}=1. The resulting wavelength in the body, if the pair-wise phase difference was constant in the six-oscillator model, can be tuned by varying the two forms of neural coupling: proprioceptive and gap-junctional. When proprioceptive coupling dominates, the wavelength is roughly 0.75 bodylengths, and when gap-junctional coupling dominated, the wavelength is infinite, since each oscillator pair is in perfect synchrony and thus the body is a standing wave.

The stable phase difference ϕ\phi^{*} of the pair of the neuromechanical oscillators can be used to define a wavelength in the full body (for details see Appendix A):

(44) λL=16(1ϕ).\dfrac{\lambda}{L}=\dfrac{1}{6\quantity(1-\phi^{*})}.

In the low external fluid viscosity case (μf=1\mu_{f}=1 mPa\cdots), setting εp=0.05,εg=0.01\varepsilon_{p}=0.05,\varepsilon_{g}=0.01 as in Section 3.2 provides a good approximation of the experimentally observed wavelength for the mechanical parameters kb=2.6×107k_{b}=2.6\times 10^{-7} N (mm)2, μb=1.3×107\mu_{b}=1.3\times 10^{-7} N (mm)2 s. For these parameters, the relative sizes of the G-functions in equation 43 are

(45) εmd12max|Gm(ϕ)|\displaystyle\varepsilon_{m}d_{12}\max|G_{m}(\phi)| =3.532×105,\displaystyle=3.532\times 10^{-5},
(46) εpmax|Gp(ϕ)|\displaystyle\varepsilon_{p}\max|G_{p}(\phi)| =2.016,\displaystyle=2.016,
(47) εgmax|Gg(ϕ)|\displaystyle\varepsilon_{g}\max|G_{g}(\phi)| =1.259.\displaystyle=1.259.

Thus, at low viscosity, mechanical coupling is almost negligible compared to neural coupling, so the coordination is determined by proprioceptive and gap-junctional coupling.

How the wavelength is set in this low-viscosity case can be examined by varying the neural coupling strengths. Figure 9(a) shows that as the gap-junctional coupling strength εg\varepsilon_{g} is increased relative to the proprioceptive coupling strength, the phase-locked states move from close to the zeros of Gp(ϕ)G_{p}(\phi) towards the zeros of Gg(ϕ)G_{g}(\phi). Figure 9(b) shows that when proprioceptive coupling dominates, the stable phase-locked state corresponds to a phase difference of roughly ϕ0.75\phi^{*}\approx 0.75 and corresponds to a wavelength of 0.75 bodylengths according to equation 44. When gap-junctional coupling dominates, the stable phase-locked state is close to synchrony ϕ1\phi^{*}\approx 1, which corresponds to an infinite wavelength in the full body if this phase difference was constant. In this gap-junction-dominated case, each pair is in perfect synchrony and the body exhibits a standing wave.

To assess the predictive power of the two-oscillator phase model, a simulation of the neuromechanical model with only two modules was performed alongside the phase model. Figure 9(b) shows that the two-oscillator phase model is quantitatively accurate when compared to the phase differences and wavelengths derived from this two-module simulation. Thus, neural coupling sets the low-viscosity wavelength in the two-module neuromechanical model as well.

4.3.3 Competition Between Mechanical and Neural Coupling Provides a Mechanism for Gait Adaptation

(a)Refer to caption (b)Refer to caption

Figure 10: Gait adaptation is a result of the competition between mechanical and neural coupling in the pair of neuromechanical oscillators. (a) The linear combination of the G-functions given by equation 43 for εp=0.05\varepsilon_{p}=0.05, εg=0.0134\varepsilon_{g}=0.0134, and various μf\mu_{f}. Note that as μf\mu_{f} increases, the strength of mechanical coupling increases and the stable phase-locked phase difference ϕ\phi^{*} moves from roughly ϕ=0.8\phi^{*}=0.8 towards ϕ=0.5\phi^{*}=0.5. (b) When neural coupling dominates, the stable phase-locked state is a phase difference of roughly ϕ=0.88\phi^{*}=0.88, and when mechanical coupling dominates, the stable phase-locked state is antiphase, i.e., ϕ=0.5\phi^{*}=0.5 phase difference. The resulting wavelength in the body, if the pair-wise phase difference was constant in the six-oscillator model, is set by the competition between the mechanical and neural coupling. When neural coupling dominates, the wavelength is roughly 1.5 bodylengths, and when mechanical coupling dominates, the wavelength is roughly 0.45 bodylengths.

To examine the effect of mechanical coupling in the two-oscillator phase model, the neural coupling parameters are fixed to εp=0.05\varepsilon_{p}=0.05 and εg=0.0134\varepsilon_{g}=0.0134 so that the wavelength in the low-viscosity case is roughly 1.5 bodylengths. The strength of mechanical coupling is increased in equation 43 by increasing the external fluid viscosity μf\mu_{f}. Figure 10(a) shows that as the strength of mechanical coupling is increased, the phase-locked states move from close to the zeros set by εpGp(ϕ)+εgGg(ϕ)\varepsilon_{p}G_{p}(\phi)+\varepsilon_{g}G_{g}(\phi) towards the zeros of Gm(ϕ)G_{m}(\phi). Figure 10(b) shows how the stable phase-locked state changes as a function of the mechanical coupling strength μf\mu_{f}. When neural coupling dominates, the stable phase-locked state is a phase difference of roughly ϕ0.89\phi^{*}\approx 0.89, and when mechanical coupling dominates, the stable phase-locked state is antiphase ϕ=0.5\phi^{*}=0.5. Similarly, Figure 10(b) shows that when neural coupling dominates the resulting wavelength (according to equation 44) is roughly 1.5 bodylengths, and when mechanical coupling dominates the wavelength is roughly 0.45 bodylengths.

This analysis shows that gait adaptation is a result of competition between mechanical and neural coupling. The decrease in wavelength as external viscosity μf\mu_{f} increases is explained by the increased strength in mechanical coupling and its associated coordination outcome, antiphase. The two-oscillator phase model is quantitatively accurate when compared to phase differences derived from the neuromechanical model with two modules, as shown in Figure 10(b). Thus, this suggests that the mechanism underlying the behavior in the two-module neuromechanical model is the same as the mechanism of the phase model outlined here. However, note that the phase difference at the highest fluid viscosity (μf=2.8×104\mu_{f}=2.8\times 10^{4} mPa s) is different between the two-oscillator phase model and the full two-module neuromechanical model. This indicates the limit of weak coupling, as the phase reduction is not able to capture the transition to synchrony seen in the two-module neuromechanical model. However, weak coupling holds in the two-oscillator case for the rest of the viscosities μf\mu_{f} considered. Furthermore, this transition to synchrony is not seen in the six-module neuromechanical model.

4.3.4 Phase Reduction Gives Insight into Timescale Ordering

The phase reduction also explains why generally τb\tau_{b} must be larger than τm\tau_{m} in order to obtain the correct coordination trend (as described in Section 3.2). The results in the previous subsection indicate that it is important for mechanical coupling to promote antiphase in order to get the correct wavelength trend as external viscosity μf\mu_{f} is increased. Figure 11(a) shows that, when τb\tau_{b} is sufficiently larger than τm\tau_{m}, the stable zero of GmG_{m} is 0.5, i.e., the stable phase-locked state is antiphase. However, when τb\tau_{b} is sufficiently smaller than τm\tau_{m}, the stable zero of GmG_{m} is 0, i.e., the G-function is flipped and mechanical coupling promotes synchrony. In this case, the wavelength trend as external viscosity μf\mu_{f} is increased is incorrect, since increasing the mechanical coupling strength would pull the oscillators towards synchrony, lengthening the wavelength instead of shortening it.

The shift in the stabilities of the phase-locked states from antiphase to synchrony is somewhat complicated, as Figure 11(c) shows that τbτm\tau_{b}\approx\tau_{m} can yield tristable phase-locked states. A series of paired saddle-node bifurcations and paired super- and sub-critical pitchfork bifurcations (Figure 11D), marks the transition from stable antiphase to tristability to stable synchrony as τb\tau_{b} moves below τm\tau_{m}. The change in the stability of the antiphase state promoted by mechanical coupling is the cause of the rapid change in coordination in Figure 4 as τb\tau_{b} becomes sufficiently smaller than τm\tau_{m}.

(a)Refer to caption (b)Refer to caption
(c)Refer to caption (d)Refer to caption

Figure 11: (a) Mechanical G-function Gm(ϕ)G_{m}(\phi) for the pair of neuromechanical oscillators when τb\tau_{b} is sufficiently larger than τm\tau_{m} (τb=0.5\tau_{b}=0.5 s, τm=0.15\tau_{m}=0.15 s). Note the stable phase-locked state is antiphase since Gm(0.5)=0G_{m}(0.5)=0 and Gm(0.5)<0G_{m}^{\prime}(0.5)<0. (b) Mechanical G-function Gm(ϕ)G_{m}(\phi) for the pair when τb\tau_{b} is sufficiently smaller than τm\tau_{m} (τb=0.05\tau_{b}=0.05 s, τm=0.15\tau_{m}=0.15 s). Note the stable phase-locked state is synchrony since Gm(1)=0G_{m}(1)=0 and Gm(1)<0G_{m}^{\prime}(1)<0, while antiphase is unstable since Gm(0.5)>0G_{m}^{\prime}(0.5)>0. (c) Mechanical G-function Gm(ϕ)G_{m}(\phi) for the pair when τbτm\tau_{b}\approx\tau_{m} (τb=0.14\tau_{b}=0.14 s, τm=0.15\tau_{m}=0.15 s). (d) Bifurcation diagram for the phase-locked states ϕ\phi^{*} of the mechanical G-function vs. τb\tau_{b}, for τm=.15\tau_{m}=.15 s.

4.4 Mechanism for Gait Adaptation Holds in Six-Oscillator Case

We simulate the six-oscillator phase model in order to (i) assess the predictive power of the phase model by a quantitative comparison to the full six-module neuromechanical model and (ii) determine whether the mechanism of gait adaptation analyzed in the two-module case extends to the full six-module case.

Figure 12(a) shows the wavelengths for the six-oscillator phase model (line, circles) and neuromechanical model (crosses) as a function of external fluid viscosity μf\mu_{f} for εp=0.05\varepsilon_{p}=0.05 and εg=0.017\varepsilon_{g}=0.017 (these coupling strengths were chosen so that the water-wavelength is approximately 1.5). The wavelengths were computed by equation 54 in Appendix A. The phase model and the neuromechanical model agree quantitatively even at high μf\mu_{f}, where the mechanical coupling strength is several orders of magnitude stronger. Figure 12(b) shows the stable phase differences between neighboring modules in the six-oscillator phase model (lines, circles) and neuromechanical model (crosses) as a function of external fluid viscosity μf\mu_{f}. Again, the phase model and the neuromechanical model are in quantitative agreement. Furthermore, Figure 12(b) shows that increasing fluid viscosity affects the phase-locked states in the six-oscillator case in a similar way as in the two-oscillator case. When neural coupling dominates at low viscosity, the stable phase differences are spread out near 0.9, and as fluid viscosity increases, the mechanical coupling strength increases and the stable phase differences decrease towards antiphase. However the phase differences do not reach pairwise-antiphase as in the two-oscillator case. The large variation between the phase differences across pairs of modules is due to the non-uniformity of coupling matrices D41D_{4}^{-1}, Wg,W_{g},and WpW_{p}. The modules in the middle receive stronger mechanical coupling than the modules at the boundaries; the boundary modules receive less gap-junctional coupling because they have one fewer neighboring module; and the first module gets zero nonlocal proprioceptive feedback because it has no anterior neighboring module.

The general trend of each phase difference between neighboring modules (decreasing from near-synchrony towards antiphase) underlies the wavelength trend of gait adaptation in Figure 12(a) in both the six-oscillator phase model and the neuromechanical model. Figure 13 shows the curvature kymographs generated by the pairwise phase differences of the phase model (from Figure 12) at three selected fluid viscosities (low μf=1\mu_{f}=1 mPa s, medium μf=348\mu_{f}=348 mPa s, and high μf=28\mu_{f}=28 Pa s). The shortening of the wavelength seen in the curvature kymographs is a direct consequence of the decreasing pairwise phase differences. Thus, the results for the two-oscillator case in Section 4.3 extend to the six-oscillator case: the decrease in wavelength in response to increasing fluid viscosity is the result of the corresponding increase in the relative strength of mechanical coupling, which decreases the phase differences between neighboring modules and yields shorter wavelengths.

(a)Refer to caption (b)Refer to caption

Figure 12: (a) The wavelengths generated by the six-oscillator phase model (blue line with circles) and neuromechanical model (red squares) as a function of external fluid viscosity μf\mu_{f} for εp=0.05\varepsilon_{p}=0.05 and εg=0.017\varepsilon_{g}=0.017. The wavelength is set by the competition between the mechanical and neural coupling. (b) The phase differences between neighboring oscillator modules in the six-oscillator phase model (lines with circles) and neuromechanical model (squares) as a function of external fluid viscosity μf\mu_{f} for εp=0.05\varepsilon_{p}=0.05 and εg=0.017\varepsilon_{g}=0.017. Similar to the two-oscillator case, the stable phase differences here are set by the competition between mechanical and neural coupling. When neural coupling dominates, the stable phase differences are spread out around 0.9, and when mechanical coupling dominates, the stable phase differences move towards antiphase, i.e., closer to 0.5 phase difference, but with strong boundary effects.
Refer to caption
Refer to caption
Figure 13: Curvature kymographs generated from the pairwise phase differences ϕi\phi_{i} of the six-oscillator phase model (from Figure 12(b)) at three selected fluid viscosities (low μf=1\mu_{f}=1 mPa s, medium μf=348\mu_{f}=348 mPa s, and high μf=2.8×104\mu_{f}=2.8\times 10^{4} mPa s). The shortening of the wavelength is a direct consequence of the decreasing pairwise phase differences.

5 Discussion

The analysis of the neuromechanical model presented here identifies a mechanism for gait adaptation to increasing fluid viscosity in C. elegans forward locomotion. We model the C. elegans forward locomotion system as a chain of neuromechanical oscillators coupled by body mechanics, proprioceptive coupling, and gap-junctional coupling. Using the theory of weakly coupled oscillators, we exploit the modular structure of the forward locomotion system to analyze the relative contributions of the various coupling modalities. We find that proprioceptive coupling between modules leads to a posteriorly-directed traveling wave with a characteristic wavelength. Gap-junction coupling between neural modules promotes synchronous activity (long wavelength), and mechanical coupling promotes a high spatial frequency (short wavelength). The wavelength of C. elegans’ undulatory waveform is set by the relative strengths of these three coupling forms. As the external fluid viscosity increases, the mechanical coupling strength increases and therefore wavelength decreases, as observed experimentally.

By tuning only a few coupling parameters, the model can robustly capture the gait adaptation seen in experiments [3, 13, 40] over a wide range of mechanical parameters. The robustness of the model is of particular importance because the experimental measurements of mechanical body parameters vary widely. Our model suggests relationships between the parameters that need to hold in order to get the appropriate coordination and wavelength trend. In particular, the effective mechanical body timescale τb=μb/kb\tau_{b}=\mu_{b}/k_{b} (the ratio of body viscosity to stiffness) plays a key role. Our model yields the correct coordination trend across the entire range of reported mechanical parameters, provided that τb\tau_{b} is in the range 0.0710.07-1 s. Furthermore, the muscle activity timescale τm\tau_{m} must generally be shorter than the effective body mechanics timescale τb\tau_{b}. In other words, the system must generate contractile forces faster than the body responds, otherwise, there will not be a traveling wave of neuromechanical activity and therefore no effective locomotion for high external fluid viscosities. Like previous models [5], the neural timescale τn\tau_{n} is assumed to be the smallest, and changing its value will likely not significantly affect the dynamics unless it is increased by an order of magnitude. However, the relative strengths of the neural coupling parameters (proprioceptive coupling strength εp\varepsilon_{p} and gap-junctional coupling strength εg\varepsilon_{g}) are directly responsible for the appropriate coordination in the model. In particular, the long-wavelengths in the model are only achievable with sufficiently strong gap-junctional coupling.

C. elegans gait adaptation is marked by a decrease in both the wavelength and undulation frequency with increasing fluid viscosity [3, 13, 40]. Our model captures the quantitative trend in wavelength but only the qualitative trend in frequency (1.71.61.7-1.6 Hz as opposed to the range 1.70.31.7-0.3 Hz given in Fang-Yen et al. [13]). Our model is similar in structure to modeling work by Boyle et al. [5] and Denham et al. [12]. However, both Boyle et al. [5] and Denham et al. [12] are able to capture both wavelength and frequency adaptation in their models. A key difference between our model, Boyle et al. [5], and Denham et al. [12] is the role of body viscosity. In our model, the body viscosity is responsible for setting the timescale and frequency. Denham et al. [12] neglects body viscosity, so the fluid viscosity likely sets the frequency. On the other hand, Boyle et al. [5] includes an active viscosity component that depends on muscle activation, which likely provides a mechanism for frequency adaptation. In our model, body viscosity is constant, independent of muscle activation, so including an active viscosity component might be necessary for frequency adaptation.

Other differences between our model and previous models [5, 12] is the sign, directionality, and extent of nonlocal proprioception, the role of gap junctions, and the number of modules. The directionality of proprioception in Boyle et al. [5] and Denham et al. [12] is consistent with the directionality of undifferentiated processes extending posteriorly from the B-class neurons, which have postulated to be responsible for proprioception [31, 44, 48]. However, the extent of proprioception in these models needs to be much longer than this proposed biological mechanism [5, 12]. We take the directionality of proprioception to be consistent with the functional directionality suggested by the experiments of Wen et al. [43] and shown to produce locomotion in a neuromechanical model by Izquierdo and Beer [19]. Note that symmetry arguments can be made that reversing both the sign and direction of the nonlocal proprioception will not change the behavior of the models, as Denham et al. [12] points out. When we reverse the sign and direction of the nonlocal proprioception in our model, we obtain qualitatively similar results (see Appendix C). The full range of wavelength adapatation can still be achieved, and in particular the (two-module) weakly-coupled theory predicts that the change is only a small shift in the promoted phase-locked phase-difference of the proprioceptive coupling mode. The extent of proprioception in Boyle et al. [5] is over half a bodylength, and Denham et al. [12] showed that the larger the proprioceptive range, the longer the undulatory wavelength in their model. We considered only nearest-neighbor proproception because Wen et al. [43] found that proprioception likely extended anteriorly roughly 200 μ\mum or 1/51/5 of the bodylength, similar to the length of one module in our model. This is sufficient to achieve the long-wavelength undulations in water because of our inclusion of gap-junctional coupling that promotes synchrony between the modules and thus long wavelengths. This demonstration that gap-junctions provides a mechanism for long-wavelength coordination (in the absence of long-range proprioception) is a novel contribution of this model. Furthermore in [22], we explored the effect of changing the number of modules on coordination, and we showed that gait adaptation was robustly attainable with different neural coupling strengths. Thus, the main conclusions of this paper do not depend on the number of modules considered.

Previous models which made use of more complicated mechanical and muscle models were also able to capture the swimming speed [5, 19, 12]. Here, the main purpose of our work is to determine how gait adaptation emerges from the coordination of the neuromechanical modules. Capturing the right shapes and swimming speed may involve including some of the complexities of previous models. Because we examine coordination using curvature in the small-amplitude limit, our model includes only the normal forces while tangential forces show up at higher order. Thus the tangential forces, which are important for determining swimming speed, do not affect the curvature at leading order [41].

Our model assumes that the undulatory gait emerges from a chain of neuromechanical oscillators coupled by both body mechanics and neural connectivity. However, there are several other hypotheses for how the undulatory gait is generated and coordinated [16]: (1) a separate head circuit contains a CPG that drives the propogated bending wave along the body, and (2) a network of coupled CPGs generates and coordinates the bending wave in a feed-forward manner. Modeling work by Olivares et al. [33] shows that the anatomical structure of the neural circuitry of C. elegans can be tuned to produce CPG-driven locomotion. However, there is no experimental evidence to date for such spontaneous isolated neural activity [10, 48]. Furthermore, recent experiments by [14] showed that C. elegans is capable of decoupled “two-frequency undulations”. By suppressing neural activity in the neck region, the head and body can undulate seemingly independent of one another at different frequencies (the head slower and the body faster). This evidence supports the presence of multiple neural or neuromechanical oscillators.

In the present study, the theory of weakly coupled oscillators is used to identify the roles of the various coupling modalities in generating coordination for forward locomotion in C. elegans. The phase models derived by the theory of weakly coupled oscillators capture the influence of one oscillating module on another through the interaction functions H(ϕ)H(\phi), which are convolution-like integrals of the coupling input and the corresponding phase response function Z(t)Z(t) of the individual modules. Therefore, our findings could be validated by experimentally measuring the phase-response curves of the neuromechanical circuit [29]. This could be achieved using a combination of optogenetic techniques and mechanical stimuli to perturb the system [14, 20, 21, 43]. Note also that the structure of the phase equations could be exploited to further dissect out the biophysical mechanisms that underlie coordination of the undulatory motion of C. elegans. Because the shapes of the PRCs and the coupling signals combine to determine the interaction functions, a systematic analysis of how cellular and synaptic dynamics [47], muscle properties, and body mechanics shape the PRCs and coupling signals would provide further insight into the integrated neuromechanical mechanisms underlying the generation and coordination of locomotion.

Appendix A Defining Wavelength

Constant Wavespeed

For a wavelength of undulation in the neuromechanical model traveling front-to-back at constant speed, the phase is defined as

(48) θ(x,t)=(tTxλ) mod 1\theta(x,t)=\quantity(\dfrac{t}{T}-\dfrac{x}{\lambda})\text{ mod 1}

The phase corresponding to module kk (k=1,,6k=1,\dots,6) centered at body position x=(k1/2)x=\ell(k-1/2) is

(49) θk=(tTλ(k12)) mod 1,\theta_{k}=\quantity(\dfrac{t}{T}-\dfrac{\ell}{\lambda}\quantity(k-\frac{1}{2}))\text{ mod 1},

where TT is the oscillator period. Thus, the constant phase difference ϕ\phi^{*} is

(50) ϕ=(θk+1θk) mod 1=(λ) mod 1=1λ.\phi^{*}=\quantity(\theta_{k+1}-\theta_{k})\text{ mod 1}=\quantity(-\dfrac{\ell}{\lambda})\text{ mod 1}=1-\dfrac{\ell}{\lambda}.

and the constant wavelength is

(51) λ=1ϕ.\lambda=\dfrac{\ell}{1-\phi^{*}}.

For the neuromechanical model, =L/6\ell=L/6, so the wavelength (normalized by bodylength) is

(52) λL=16(1ϕ).\dfrac{\lambda}{L}=\dfrac{1}{6\quantity(1-\phi^{*})}.
Nonconstant Wavespeed

The non-uniform phase differences ϕk=θk+1θk\phi_{k}=\theta_{k+1}-\theta_{k} (k=1,,5k=1,\dots,5) between modules are used to define an effective wavelength of undulation when the wavespeed is nonconstant. The distance between the center of the first and center of the sixth module is 5/6L5/6L, and the phase difference between them is k=15(1ϕk)\sum_{k=1}^{5}(1-\phi_{k}). This gives an effective wavelength (normalized by 5/6 bodylengths)

(53) λ(5/6)L=1k=15(1ϕk),\dfrac{\lambda}{(5/6)L}=\dfrac{1}{\sum_{k=1}^{5}\quantity(1-\phi_{k})},

so the wavelength (normalized by bodylength) is

(54) λL=16k=15(1ϕk)/5.\dfrac{\lambda}{L}=\dfrac{1}{6\sum_{k=1}^{5}\quantity(1-\phi_{k})/5}.

Note that this is equivalent to the constant phase difference wavelength (equation 52) using the average phase difference between the modules as the constant phase difference ϕ\phi^{*}, i.e., with

(55) 1ϕ=k=151ϕk5.1-\phi^{*}=\dfrac{\sum_{k=1}^{5}1-\phi_{k}}{5}.

For the neuromechanical model results, first the phase differences ϕk\phi_{k} between the modules were computed, then the wavelength was computed according to equation 54 above.

Appendix B Derivation of Mechanical Parameters

First, the bending modulus kb=EIck_{b}=EI_{c} of the cuticle of the worm was determined, where EE is the Young’s modulus and IcI_{c} is the second moment of area of the cuticle. The nematode body can be thought of as a pressurized, fluid-filled tube or modeled as an annular cylinder as in Cohen and Ranner [9], so the only elasticity in the body is that of the cuticle. To approximate the second moment of area of the cuticle, IcI_{c}, note that the cuticle width rcuticle=0.5r_{\text{cuticle}}=0.5 μ\mum is much smaller than the average worm radius R=40R=40 μ\mum. Following Cohen and Ranner [9],

(56) Ic=2πR3rcuticle=2.0×107mm4.I_{c}=2\pi R^{3}r_{\text{cuticle}}=2.0\times 10^{-7}\text{mm}^{4}.

The Young’s modulus EE has been estimated to be as small as E=3.77±0.62E=3.77\pm 0.62 kPa [40] or as large as E=13E=13 MPa [13]. Backholm et al. [2] gives a range of 110±30110\pm 30 kPa E1.3±0.3\leq E\leq 1.3\pm 0.3 MPa. Using these estimates, we explore the range of bending moduli kb=EIc=7.53×10102.6×106k_{b}=EI_{c}=7.53\times 10^{-10}-2.6\times 10^{-6} N(mm)2.

The cuticle viscosity has been estimated as 5×10165\times 10^{-16} Nm2s [13]. The internal tissue viscosity has been estimated to be constant and negative (energy-generating) as cd=177.1±15.2c_{d}=-177.1\pm 15.2 Pa s so that μb=cdI=1.7×1011\mu_{b}=c_{d}I=-1.7\times 10^{-11} N(mm)2s [40] by a model fit, however this includes the active muscle components. Backholm et al. [2] estimated the range cd[1×102,1×104]c_{d}\in\quantity[1\times 10^{2},1\times 10^{4}] Pa s, so that the effective viscosity is cdI[2×1011,2×109]c_{d}I\in\quantity[2\times 10^{-11},2\times 10^{-9}] N(mm)2s. These experiments used different techniques and models for viscosity, so likely have different effects lumped into the viscosity parameter. In order to explore the range of effective body mechanics timescales τf=μb/kb=0.0015\tau_{f}=\mu_{b}/k_{b}=0.001-5 s, we use the range of body viscosities μb=5×10101.3×107\mu_{b}=5\times 10^{-10}-1.3\times 10^{-7} N(mm)2s in our model.

Following previous modeling procedures [13, 9], the normal drag coefficient CNC_{N} of a slender body with length L=1L=1 mm and (average) radius R=40μR=40\ \mum in a solution with viscosity μf\mu_{f} is

(57) CN=4πμfln(L/R)+0.5=αμf3.4μf.C_{N}=\dfrac{4\pi\mu_{f}}{\ln(L/R)+0.5}=\alpha\mu_{f}\approx 3.4\mu_{f}.

Appendix C Posterior-to-Anterior Proprioceptive Coupling

When we reverse the sign and direction of the nonlocal proprioception in our model, we obtain qualitatively similar results. That is, we replace the anterior-to-posterior proprioceptive coupling matrix WpW_{p} (equation 22) with the opposite-signed, posterior-to-anterior proprioceptive coupling matrix

(58) Wp=(0101010).W_{p}=\quantity(\begin{matrix}0&-1&&&\\ &0&-1&&\\ &&\ddots&\ddots&\\ &&&0&-1\\ &&&&0\end{matrix}).

In the phase model, this yields the proprioceptive G-function Gp(ϕ)=Hp(ϕ)G_{p}(\phi)=H_{p}(\phi) (as opposed to Gp(ϕ)=Hp(ϕ)G_{p}(\phi)=H_{p}(-\phi) with opposite-signed anterior-to-posterior proprioception).

Figure 14(a) shows that for particular parameters (μb=1.3×108\mu_{b}=1.3\times 10^{-8}, kb=2.6×108k_{b}=2.6\times 10^{-8}, εp=0.00068\varepsilon_{p}=0.00068, and εg=0.00017\varepsilon_{g}=0.00017), the full range of wavelength adapatation can still be achieved. Note that these are smaller coupling strengths than in our standard model (this is likely due to the nonlocal proprioception here being of the same sign as the local proprioception, so it must be weaker to have less of an effect on the dynamics). In addition, the two-module weakly-coupled theory predicts that the change is only a small shift in the promoted phase-locked phase-difference of the proprioceptive coupling mode. Figure 14(b-c) shows the G-functions and corresponding phase-locked states of the proprioceptive coupling modalities. For negative, anterior-to-posterior proprioceptive coupling, the stable phase-locked state is an intermediate phase-difference (ϕ0.75\phi^{*}\approx 0.75, Figure 14(b)), so the first oscillator leads the second (a front-to-back wave). Similarly, for positive, posterior-to-anterior proprioceptive coupling, the stable state is an intermediate phase-difference (ϕ0.82\phi^{*}\approx 0.82, Figure 14(c)), so the first oscillator still leads the second (a front-to-back wave). Thus the change is only a small shift in the promoted phase-locked phase-difference but not a change in the direction of the traveling wave. Based on this analysis, the full neuromechanical model is likely to behave qualitatively the same for either proprioceptive mode, though a full parameter study should be done to say so definitively.

(a)Refer to caption
(b)Refer to caption (c)Refer to caption

Figure 14: (a) A sample wavelength trend for the six-module neuromechanical and phase model with positive, posterior-to-anterior proprioception. (b) The proprioceptive coupling G-function for negative, anterior-to-posterior nonlocal proprioception. This mode promotes a phase-wave since Gp(.75)=0G_{p}(.75)=0 and Gp(.75)<0G_{p}^{\prime}(.75)<0; and (c) The proprioceptive coupling G-function for positive, posterior-to-anterior nonlocal proprioception. This mode still promotes a phase-wave with the same directionality since Gg(0.82)=0G_{g}(0.82)=0 and Gg(0.82)<0G_{g}^{\prime}(0.82)<0.

Acknowledgments

The authors would like to thank Netta Cohen for helpful discussions related to this work, as well as the reviewers for their substantial comments and suggestions. The work of RDG was partially supported by NSF grant DMS-1664679.

References