Abstract
A neuroanatomical minimal network model was revisited to elucidate the mechanism of salt concentration memory-dependent chemotaxis observed in Caenorhabditis elegans. C. elegans memorizes the salt concentration during cultivation, manifesting a pronounced taste preference for this concentration. The right-side head sensory neuron, designated ASER, exhibits a response to a decrease in salt concentration. The basal level of glutamate transmission from ASER has been demonstrated to transiently increase and decrease when the current environmental salt concentrations are lower and higher, respectively, than that during previous cultivation. Given the sensitivity of excitatory/inhibitory glutamate receptors expressed on the postsynaptic AIY interneurons, it can be anticipated that the ASER-AIY synaptic transmission will undergo a reversal due to alterations in the basal glutamate release. The neural network model, derived with the hypothesis, reproduced the salt concentration memory-dependent preference behavior and revealed the modular neural circuit function downstream of ASE that is responsible for salt klinotaxis.
Introduction
It is a fundamental biological principle that all animals have evolved the ability to efficiently access the optimal food patches or nesting sites for survival. This ability is achieved by the animals temporarily memorizing the intensity of sensory cues (e.g., temperature, concentration of substances, etc.) that coincide with the favorable environmental conditions they have previously experienced. The neural system should determine a preferred direction based on both the previously memorized sensory information and the change in the stimulus intensity currently received by the sensory neurons, and regulate the motor neurons to efficiently direct the animal to the optimal location in the real time. However, the precise mechanisms by which the intensity of experienced sensory stimuli is memorized or encoded in the neural system and the favorable direction is varied as a function of those sensory cues remain unclear for a considerable number of sensory stimuli.
The nematode Caenorhabditis elegans has been demonstrated to exhibit chemotaxis to sodium chloride, a phenomenon termed salt chemotaxis (Ward, 1973). In the context of salt chemotaxis, the amphid taste neurons ASE play a crucial role in sensing the concentration of NaCl (Bargmann and Horvitz, 1991). These sensory neurons, which consist of two morphologically symmetric neurons on the left (ASEL) and the right (ASER), are essential for the detection of alterations in the concentration of NaCl. These neurons exhibit a functional asymmetry in which the ASER is depolarized by decreases in salt concentration, whereas the ASEL responds to increases (Suzuki et al., 2008).
Two distinct behavioral strategies that direct C. elegans towards a favorable NaCl concentration during salt chemotaxis have been characterized by an analysis of the migratory behaviors exhibited by the organism (Iino and Yoshida, 2009; Pierce-Shimomura et al., 1999). The first is klinokinesis, which is also referred to as the pirouette. In this strategy, the frequency of redirecting turns is increased when the current direction of locomotion is determined to be unfavorable in relation to the gradient of salt concentration and decreased when it is determined to be favorable (Kunitomo et al., 2013; Pierce-Shimomura et al., 1999). The second strategy is referred to as klinotaxis or weathervane. In this behavioral strategy, C. elegans exhibits a continuous turning behavior in a direction that is favorable based on the gradient of salt concentration perpendicular to the direction of locomotion (Iino and Yoshida, 2009; Kunitomo et al., 2013). Furthermore, the salt concentration preferred by C. elegans is demonstrated to depend on the difference in salt concentration between the pre-assay culture (Ccult) and the current environment on the test plate (Ctest). In the presence of food, if the previously cultivated salt concentration is higher than the current environmental concentrations (Ccult > Ctest), the preferred salt concentrations are demonstrated to become higher than the current concentrations (Kunitomo et al., 2013). Conversely, if the previously cultivated salt concentration is lower than the current concentrations (Ccult < Ctest), the preferred salt concentrations are demonstrated to become lower than the current ambient concentrations (Kunitomo et al., 2013).
The neural circuit mechanism underlying such salt concentration memory-dependent chemotaxis has been intensively investigated, particularly in the context of klinokinesis (Hiroki et al., 2022; Sato et al., 2021). The interneuron postsynaptic to the ASER, AIB, which is involved in the behavior of klinokinesis (i.e., the redirecting turn), exhibits a bidirectional response to changes in NaCl concentration in the current environment, dependent on the previously experienced NaCl concentration (Sato et al., 2021). The bidirectional neural responses have been demonstrated to be mediated by a change in the basal level of glutamate neurotransmitter released from the ASER (Sato et al., 2021). The alteration in the basal glutamate transmission results in a bidirectional response of the postsynaptic AIB due to the distinct sensitivities of the excitatory glutamate receptor GLR-1 and the inhibitory glutamate receptor AVR-14, which are expressed on the AIB (Hiroki et al., 2022). These findings demonstrate that the reversal of the redirecting turn behaviors in klinokinesis is attributed to the synaptic plasticity between ASER and AIB neurons, which is altered by cultivated salt concentration. In contrast, the salt concentration memory-dependent mechanism underlying another NaCl chemotaxis, klinotaxis, remains largely unexplored.
C. elegans has 302 neurons, all of which have been fully mapped on its connectome (Cook et al., 2019; White et al., 1986). Although its neural network is relatively simple compared to other multicellular organisms, C. elegans exhibits a wide range of behaviors, including locomotion, foraging, feeding, touch withdrawal, and taxis involving smell, taste, and temperature (Bargmann, 1993; de Bono and Maricq, 2005). C. elegans is, therefore, an ideal organism for the detailed investigation of the relationship between neural connectivity and behavior. However, despite these advances in the connectome, the neural connectivity alone is insufficient for a comprehensive understanding of the neural circuit mechanisms underlying behavior. The integration of neural connectivity information with neurophysiological and behavioral observations is essential for adequately simulating the dynamic interactions within neural networks.
A number of neural network models have been proposed to address this issue (Appleby, 2012; Chen et al., 2022; Dunn et al., 2004; Ferrée et al., 1996; Ferrée and Lockery, 1999; Izquierdo and Beer, 2013; Izquierdo and Lockery, 2010; Izquierdo et al., 2015; Matsumoto et al., 2024; Soh et al., 2018). A neural network model has been developed based on the neuroanatomical minimal network circuit (see Fig. 1), which has been demonstrated to reproduce salt klinotaxis (Izquierdo and Beer, 2013). The neuroanatomical minimal model is an extension of a previously proposed sensory-motor model that omits interneurons (Izquierdo and Lockery, 2010). After the presentation of the model (Izquierdo and Beer, 2013), a neurophysiological discovery regarding the synaptic connections between AIY and AIZ interneurons was reported (Li et al., 2014). Specifically, it was demonstrated that the AIY plays a crucial role in initiating the curving turn by forming an inhibitory synapse with the AIZ (Li et al., 2014). Indeed, it was observed that the inhibitory synaptic transmission is induced when the Cl- ion channel of the acetylcholine (ACh) neurotransmitter receptor, ACC-2, on the postsynaptic AIZ is activated by the ACh neurotransmitter released from the presynaptic AIY (Li et al., 2014).

A neuroanatomical minimal network circuit for salt klinotaxis in C. elegans.
The white circles represent chemosensory neurons, the gray circles represent interneurons, and the black circles denote motor neurons. The black and green connections between neurons represent the chemical synaptic connections and electrical gap junctions, respectively. The minimal circuit was derived from the C. elegans connectome, with two constraints applied as described in the text (Izquierdo and Beer, 2013).
In the present study, the electrophysiological parameters involved in the neuroanatomical minimal network model (Izquierdo and Beer, 2013) were re-examined by constraining the AIY-AIZ synaptic transmission to be inhibitory (Li et al., 2014). An evolutionary algorithm with the abovementioned constraints was used to extensively search the parameters within the model and optimize the behavioral performance of the model for salt klinotaxis of C. elegans cultivated at a NaCl concentration higher than the current environmental concentrations (Ccult > Ctest) in the presence of food. The most evolved model indicated that the ASER is connected to the postsynaptic AIY interneurons via an inhibitory synaptic transmission. The validity of the resulting network was corroborated by the experimental observation that the excitation of the ASER in response to a decrease in NaCl was synchronized with that of the AIZ (Matsumoto et al., 2024). It was then hypothesized that the ASER-AIY inhibitory synaptic connections are altered to become excitatory due to a decrease in the baseline release of glutamate from the ASER when individuals are cultured under Ccult < Ctest. It was postulated that this reversal would result in a reversal of the salt preference behavior observed in klinotaxis. The most evolved model in which solely the ASER-AIY inhibitory synaptic connections were replaced with an excitatory connection, demonstrated a preference for a lower NaCl concentration than the current concentrations, as expected. Finally, the most evolved model was used to investigate the impact of the experimentally suggested reduced activity of the SMB motor neurons in the absence of food on klinotaxis behavior.
Results
An evolutionary algorithm discovered a highly chemotaxis-performing network that reproduced the experimentally observed pattern of neuronal activity
Two types of extensive evolutionary searches for the electrophysiological parameters of the neuroanatomical minimal network model were performed by optimizing a chemotaxis index (CI). The first approach was a conventional evolutionary search without additional neurophysiological constraints, as had been employed previously (Izquierdo and Beer, 2013). The second evolutionary search was conducted with the constraint that the AIY-AIZ synaptic connections be inhibitory (Li et al., 2014). In these genetic algorithms, the networks evolved in chemotaxis assays where conical shapes were employed as salt concentration profiles (Eq. A15). In contrast, the CI for evolved networks was evaluated using a Gaussian shape of salt concentration profile (Eq. A16), which mimics the salt concentration gradients observed in laboratory tests of chemotaxis in C. elegans (Ferrée and Lockery, 1999; Ward, 1973). The CI values for the most evolved networks with and without the neurophysiological constraints were 0.877 and 0.855, respectively, as shown in Fig. 2. These values were found to be comparable to those reported in the previous study (Izquierdo and Beer, 2013). The near equivalence of these CI values implies that the neurophysiological constraints considered here do not significantly affect the improvement of the CI.

The trajectories of the worm’s locomotion.
The highest-performing network models, with and without the AIY-AIZ connections constrained to be inhibitory, were placed at the initial position, 4.5 cm away from the salt gradient peak, at 10 different angles of worm orientation, and allowed to move freely for 250 sec. The salt concentrations were represented by a Gaussian distribution. The color of the trace represents the passage of time. (a) The highest-CI network model that evolved without any constraints. The CI is 0.855, with a standard deviation of 0.006. (b) The highest-CI network model that evolved with the constraint that the AIY-AIZ connection be inhibitory. The CI is 0.877, with a standard deviation of 0.002. The insets provide an enlarged view of the sinusoidal locomotion and turning processes.
The locomotion trajectories of the best evolved network with the constraints are depicted for the cases in which the model worm was oriented at ten different angles at the initial position (Fig. 2b; see also Video 1). For comparison, the trajectories of the best evolved network without the constraints are also depicted in Fig. 2a. These trajectories show that both the model worms rapidly turned in the direction of the steepest gradient. These model worms exhibited the salt preference behavior in klinotaxis that were consistent with the experimental observations (Iino and Yoshida, 2009) and previous simulation studies (Chen et al., 2022; Izquierdo and Beer, 2013; Izquierdo and Lockery, 2010).
Subsequently, in order to determine how the signal arising from alterations in salt concentration was transmitted through the neural circuit to regulate motor systems, we examined the impact of step changes in salt concentration of varying magnitude with different sign on the neurotransmitter release zi(defined by Eq. A5) from each neuron. Figures 3c and 3d illustrate the results of the analysis of zi for the best evolved networks where the additional neurophysiological constraints are not considered and are considered, respectively. Figures 3a and 3b present the sign and strength of the weight of the synaptic connection, wij, in the unconstrained and constrained most evolved models, respectively, for the purpose of facilitating an understanding of Figs. 3c and 3d. It is noted that zi differs from the membrane potential yi as a consequence of the influence of the bias term θi in Eq. A5. Moreover, the neuronal activities involved in signal transmission across chemical synapses are primarily detected through zi. In contrast, yi correlates with the neuronal activity that are involved in gap junction connections, which can be observed experimentally through an increase in intracellular Ca2+ concentration. As illustrated in Fig. 3b, the evolutionary search with the constraints successfully yielded the network with inhibitory AIY-AIZ synaptic connections as the most evolved model. Coincidentally, the evolutionary search without the constraints also yielded the network with inhibitory AIY-AIZ synaptic connections as the most evolved model (Fig. 3a). However, this is an incidental finding, as the unconstrained evolutionary search also yielded high-CI networks with excitatory AIY-AIZ synaptic connections, which were analogous to the network that had been presented as a representative model presented in the previous study (Izquierdo and Beer, 2013). A noteworthy distinction between Figs 3a and 3b is that the ASER-AIY synaptic connections in the constrained model are inhibitory (Fig. 3b) whereas those in the unconstrained model are excitatory (Fig. 3a).

The best evolved neural network circuits, with and without constraining the AIY-AIZ connections to be inhibitory, and the resulting network responses to step changes in salt concentration.
(a) and (b) The best evolved neural network circuits without (a) and with (b) the constraints. The blue arrow and the red blunt arrow indicate an excitatory and an inhibitory synaptic connection, respectively. The green connections represent electrical gap junctions. The color intensity of these connections indicates the strength of the synaptic connections. (c) The neurotransmitter release, zi, from each neuron in the best evolved network without the constraints is illustrated as a response to step changes in the salt concentration. The responses to positive and negative step changes I the salt concentration are represented by the colors blue and red, respectively. (d) The illustration is the same as (c), but the outcome was obtained from the best evolved network with the constraints. In both (c) and (d), the black horizontal line represents the level of the bias term, θi, in the interneurons and motor neurons. In both (c) and (d), the turning angle φ, as defined by Eq. A13a (see Fig. A2b), is illustrated in the second panel from the bottom. In order to identify the direction of the sweep of the head sensory neurons upon introducing step changes in salt concentration, it is necessary to confirm the ideal sinusoidal trajectory of the model worm in the absence of sensory input. This is illustrated in the lowest panel from the bottom in (c) and (d).
Related to these, the signal transmissions between the neurons that are involved in the neural circuit for klinotaxis have been investigated using calcium imaging techniques (Matsumoto et al., 2024). As the salt concentration decreased, the activity of the salt-sensing neuron ASER increased, resulting in an observed activation pattern of the interneuron AIZ that was synchronized with the activation of ASER. As illustrated by the red patterns of zi in Fig. 3d, the constrained model exhibited a depolarization of AIZ interneurons as the signal output from ASER increased during a decrease in the salt concentration. This indicates that the model reproduces the pattern of neuronal activity observed in the experiments. In contrast, the unconstrained model exhibited an inverse activity pattern of AIZs, namely, a hyperpolarization of AIZs, in response to a decrease in the salt concentration (Fig. 3c). Nevertheless, the CI performance in the unconstrained model was as high as that in the constrained model. It is therefore essential to consider not only the connectome but also the available neurophysiological information in order to identify potential neural circuits that are consistent with the actual worm among the high-CI networks obtained by the evolutionary search. The inhibitory connections between ASER and AIYs are essential for synchronizing the activation of AIZs with the activity of ASER, provided that the AIY-AIZ connections are inhibitory, as has been identified through experiments. (Li et al., 2014; Matsumoto et al., 2024). The biochemical mechanism and neurophysiological significance of the ASER-AIY inhibitory connections will be discussed in detail in a subsequent section.
The model worm turns to move toward higher salinity based on the concentration gradient normal to its direction of movement
Next, it was investigated how the best evolved model with the constraints reaches the peak of the salt gradient during klinotaxis. The curving rate, as defined in Fig. 4b (see also Methods), was introduced to quantify the behavior of worms during klinotaxis (Iino and Yoshida, 2009). To elucidate the mechanism of klinotaxis, the curving rate was examined in relation to the bearing (see Fig A3) and the normal gradient of salt concentration (see Fig. 4b and Fig. A3). The positive correlation between the curving rate and the bearing, as illustrated in Fig. 4a, indicates that the model worm continuously turns in the direction of the steepest increase in salt concentration (see Fig A3). It is, next, necessary to reveal how the model worm determines the direction of its turn in order to increase the salt concentration as it moves. The positive correlation between the curving rate and the normal gradient of the salt concentration, as illustrated in Fig. 4c, indicates that the model worm is able to sense the concentration gradient normal to the travel direction and thus turn in the direction that increases the salt concentration. These results are consistent with the mechanism that will be proposed later, which indicates that the model worms efficiently sense a slight concentration gradient normal to the direction of travel based on a change in salt concentration with sweeping of the head sensory neurons due to the undulating motions and utilize this information to turn in the correct direction. Figure 4d illustrates the positive and negative components of curving rate, as well as the average of these components, as a function of the translational gradient of salt concentration. The average of the positive and negative components of the curving rate was close to zero regardless of the translational gradient, due to the symmetry between the dorsal and ventral regions of the model worm. In contrast, the magnitude of the positive and negative components of the curving rate increased as the translational gradient varied from positive to negative. This indicates that, when the translational gradient is negatively large, the model worm regulates the direction of movement with a large positive or negative curving rate based on the normal gradient. Conversely, when the translational gradient is positive, the worm fine-tunes the direction of movement with a small positive or negative curving rate, which is determined by the normal gradient.

The analysis of klinotaxis in the best evolved model with the constraints.
(a) The curving rate as a function of the bearing. (b) The definitions of the curving rate and the normal direction of translational movement, which are utilized in the klinotaxix analysis, are illustrated. (c) The curving rate as a function of the normal gradient of salt concentration. (d) The positive (red) and negative (blue) components of the curving rate as a function of the translational gradient of salt concentration. The black dots represent the mean value of the two components. In the analysis, the salt concentration profile was modeled with a Gaussian distribution. All the error bars represent the standard deviation.
The minimal neural circuits transmit the signals from the sensory input to the motor systems via both the chemical and electrical connections
Next, focusing on the best evolved network with the constraints (Li et al., 2014; Matsumoto et al., 2024), the signaling pathways in response to step changes in salt concentration are discussed in detail. Changes in the zON signal from the ASEL are transmitted to the AIYL via the excitatory connection (Fig. 3d). The signals indicating increases in zi from the AIYL are transmitted to the AIZL via the inhibitory connection between AIYL and AIZL displayed in Fig. 3b, resulting in a hyperpolarization of the membrane potential yi in the AIZL (see Fig. S1f in the SI). The hyperpolarization signals in the AIZL are transmitted to the AIZR via the gap junction (Figs. S1d and S1f and Fig. 3d). The signals indicating decreases in zi from the AIZR are transmitted to the SMBDR and SMBVR via the excitatory connection (Fig. 3d). Note that the oscillatory components
Changes in the zOFF signal from the ASER are transmitted to the AIYL via the inhibitory connection (Fig. 3d). The signals indicating decreases in zi from the AIYL are transmitted to the AIZL via the inhibitory connection displayed in Fig. 3b, resulting in a depolarization of the membrane potential yi in the AIZL (Fig. 3d). The signals of the depolarization in the AIZL are transferred to the AIZR via the gap junction (see Figs. S1d and S1f and Fig. 3d). The signals indicating increases in zi from the AIZR are transmitted to the SMBDR and SMBVR via the excitatory connection (Fig. 3d). The disparities between the zi values from the SMBD and SMBV neurons (see Eq. A13a) result in a decrease in the turning angle φ relative to its ideal oscillatory component (black line), as illustrated on the right side of the second panel from the bottom in Fig. 3d. It is remarkable that although the signaling pathway in the best evolved network without the constraints (Fig. 3c and Fig. S1c and S1e) is largely different from that with the constraints, the regulatory mechanisms of φ exhibited by these networks are analogous. This is evident from a comparison of the second panels from the bottom in Fig. 3c and 3d. As illustrated by the analysis of these signaling pathways, the transmission of signals via electrical gap junctions plays a crucial role in both the neural circuits. Indeed, it was observed in those neural circuits that blocking the gap junctions led to significant changes in neurotransmitter release zi and resulted in changes in the turning angle φ (see Fig S2).
The turning direction is regulated based on both the direction of sweep of the head sensory neurons due to the sinusoidal motion of the worm and the timing of sensory signal input
It was then analyzed how changes in φ in response to step changes in salt concentration caused the worm to move in the correct direction. From the sinusoidal trajectory of the model worm (the left side of the first panel from the bottom in Fig. 3d), it can be observed that the head sensory neurons sweep toward the positive y-axis direction during step increases in zON occurred. This corresponds to a situation where the salt concentrations on the positive side of the y-axis are greater than those on the negative side. The turning angle φ is increased from its ideal oscillatory component to a value close to zero, causing the model worm to deviate from the ideal sinusoidal trajectory and gradually turn toward higher salt concentrations. Conversely, in the case of step increases in zOFF, the head sensory neurons sweep toward the positive y-axis direction, as illustrated in the right lowest panel of Fig. 3d. This corresponds to a situation where the salt concentrations on the positive side of the y-axis are lower than those on the negative side. The turning angle φ is reduced from its ideal oscillatory component to be a more negative value, allowing the model worm to turn faster than the ideal sinusoidal trajectory and thus reach higher salt concentrations with greater efficiency. As illustrated by the second panel from the bottom in Fig. 3c, the best evolved network without the constraints also uses a similar regulatory mechanism of φ to efficiently reach the peak of the salt gradient. To verify the applicability of the elucidated regulatory mechanism of φ to other situations, the changes in φ in response to step increases in zON and zOFF that were delayed by half of the cycle were examined as a further representative case. This ensured that the regulatory mechanism was operating as intended (see Fig. S3). These observations demonstrate that the change in φ relative to its ideal oscillatory component is properly regulated based on the direction of the sensory neuron sweeps at the time of receiving ON and OFF signals via the sensory neurons. The regulatory mechanism of φ was found to be essentially identical to that reported in the previous studies (Chen et al., 2022; Izquierdo and Beer, 2013; Izquierdo and Lockery, 2010).
Modifications in the basal glutamate release from the ASER have the potential to elicit bidirectional responses from the postsynaptic AIY
The neural networks generated by the evolutionary algorithm using the CI (Eq. A17) as the fitness function exhibited klinotaxis, with the model worm turning to move toward higher salt concentrations. This salt preference behavior is consistent with the chemotaxis observed in well-fed individuals cultivated at a higher salt concentration than the current environmental concentrations (Ccult > Ctest). Conversely, experimental observations have shown that well-fed individuals that are cultivated at a lower salt concentration than the current environment (Ccult < Ctest) exhibit the opposite salt preference behavior (Kunitomo et al., 2013). However, the neural circuit mechanism underlying the reversal of preference behavior in klinotaxis remains unclear.
The reversal of chemotaxis, which depends on the cultivated environmental salt concentration, has been investigated in detail with respect to klinokinesis (Hiroki et al., 2022; Sato et al., 2021). The interneuron postsynaptic to the ASER, AIB, which is involved in the behavior of klinokinesis, exhibits the bidirectional responses to changes in salt concentration in the current environment, depending on the cultivated salt concentration (Sato et al., 2021). The bidirectional responses of the AIB are found to be attributed to a change in the basal level of glutamate neurotransmitter released from the ASER (Sato et al., 2021). Specifically, the differential sensitivities of the excitatory glutamate receptor GLR-1 and the inhibitory glutamate receptor AVR-14, which are expressed on the AIB, result in the bidirectional response of the postsynaptic AIB depending on the changes in the basal level of glutamate release from the ASER (Hiroki et al., 2022). The GLR-1 is a glutamate-gated cation channel, whereas the AVR-14 is a glutamate-gated chloride anion channel. In addition, the sensitivity of GLR-1 (EC50 5 mM) is several tens of times lower than that of the AVR-14 (EC50 0.2 mM) (Hiroki et al., 2022). Consequently, the synaptic transmission between the ASER and AIB is excitatory and inhibitory, respectively, when the basal level of glutamate release from the ASER is high and low. In addition, the biochemical mechanism of the change in the basal level of glutamate neurotransmitter released from the ASER was also elucidated. When the cultivated salt concentration exceeds the current environmental concentrations (Ccult > Ctest), the basal glutamate release from the ASER is enhanced by the phosphorylation of UNC-64/Syntaxin 1A at Ser65 through the protein kinase C (PKC-1) signaling pathway (Hiroki et al., 2022). Conversely, in the case of Ccult < Ctest, the basal glutamate release is decreased as a consequence of the reduced PKC-1 activity (Hiroki et al., 2022). The AIB and the neurons further downstream of the AIB show the salt concentration memory-dependent bidirectional responses that correlate with the reversal of the salt preference behavior in klinokinesis (pirouettes). These observations suggest that the reversal of salt preference behavior in klinokinesis is attributed to the synaptic plasticity, which varies from the excitatory to inhibitory synaptic connections between ASER and AIB.
Given those experimental findings, we propose a potential mechanism that may underlie the salt concentration memory-dependent reversal of preferential behavior in klinotaxis. At least two glutamate receptors, the inhibitory glutamate-gated chloride anion channel GLC-3 (Ohnishi et al., 2011) and the excitatory metabotropic glutamate receptor MGL-1 (Kang and Avery, 2009), have been demonstrated to be expressed in the AIY, the postsynaptic interneuron to the ASER. The EC50 for GLC-3 has been reported to be 1.9 mM (Horoszok et al., 2001), while the EC50 for MGL-1 is not available in the literature. On the other hand, the EC50 for the C. elegans homologue of MGL-1, MGL-2, has been reported to be 9 µM (Tharmalingam et al., 2012). The sensitivity of MGL-2 is ∼200 times higher than that of GLC-3, suggesting that the sensitivity of MGL-1 may also be sufficiently higher than that of GLC-3. In the case of Ccult > Ctest, if the basal level of glutamate release from the ASER is nearly comparable to the level of EC50 for the GLC-3, the activity of MGL-1 is saturated so that the MGL-1 does not contribute to a change in the membrane potential of the AIY upon the depolarization of the ASER (for more details regarding the release of internal Ca2+ from the endoplasmic reticulum, see e.g. the reference on a metabotropic acetylcholine receptor (Sumi and Harada, 2023)). Thus, an inhibitory synaptic transmission between the ASER and the AIY results from the influx of Cl− into the cytosol of the AIY via the GLC-3 upon depolarization of the ASER due to a decrease in salt concentration. Conversely, in the case of Ccult < Ctest, when the basal level of glutamate release from the ASER is sufficiently lower than the level of EC50 for the GLC-3 but still nearly comparable to the level of EC50 for the MGL-1, the synaptic transmissions between the ASER and the AIY become excitatory as a result of the Ca2+ release from the endoplasmic reticulum, which is mediated by the activation of MGL-1 (Ashida et al., 2019; Shidara et al., 2013). A similar increase in Ca2+ in the AIY was also observed in a previous study on a thermotaxis in C. elegans (Ohnishi et al., 2011; Ohta and Kuhara, 2013), although the precise mechanism remains unclear. On the other hand, it is noteworthy that the biochemical mechanism proposed here does not contradict the ASER-AIY inhibitory connections, as identified in the best evolved network with the constraints.
Synaptic plasticity between ASER and AIY results in the reversal of salt preference behavior in klinotaxis
In light of the above argument, we investigated the impact of the salt concentration memory-dependent synaptic plasticity between ASER and AIY on the salt preference behavior in klinotaxis. To this end, we used the best evolved network with the constraints, in which we varied the synaptic connections between ASER and AIY from inhibitory to excitatory. Figure 5c illustrates the curving rates obtained from the best evolved network with the inhibitory (Fig. 5a) and excitatory (Fig. 5b) connections as a function of the normal gradient of salt concentration. For comparison, the curving rate obtained from the ninth intermediate connection (see #9 in Fig. S4), which is derived by introducing an increment of 1.5 in the synaptic weight wji between ASER and AIY at each step, is also presented in Fig. 5c (also shown as #9 in Fig. S5). Note that the best evolved model with the inhibitory connections (see Fig. 5a, also shown as #0 in Fig. S4) is considered as an individual that is well fed and cultivated at a higher salt concentration than the current environment. The curving rate was varied from an increasing trend function with increasing the normal concentration gradient to a function with a decreasing trend (Fig. 5c, see also Fig. S5) when the weight of the ASER-AIY synaptic connection wji was increased from a negative (inhibitory) to a positive (excitatory) value. These findings are consistent with the experimental observation shown in Fig 5d, indicating that the best evolved network with the constraints, of which only the inhibitory connections between ASER and AIY were replaced by excitatory connections (Fig. 5b), can reproduce the salt preference behavior of a well-fed individual cultivated at a lower salt concentration than the current environment.

The reversal of salt concentration memory-dependent preference behavior in klinotaxis is attributed to the alteration from inhibitory to excitatory connections between ASER and AIY.
(a) and (b) In the best evolved neural circuit with the constraints, it was postulated that the synaptic connections between ASER and AIY would be altered from (a) inhibitory connections to (b) excitatory connections when the cultivated salt concentration was replaced from (a) a higher to (b) a lower concentration than the current environment. The figure shown in (a) is identical to Fig. 3b and #0 of Fig. S4. (c) The curving rates obtained from the networks illustrated in (a) and (b) (corresponding to #0 and #15 in Figs. S4 and S5, respectively), are presented as a function of the normal gradient of salt concentration. In addition, the curving rate obtained from the neural circuit with an intermediate connections between ASER and AIY (corresponding to #9 in Figs. S4 and S5) is also presented. (d) The curving rates as a function of the normal gradient of salt concentration, which were experimentally determined when the cultivated salt concentration was higher (black) and lower (red) than the current environment (Kunitomo et al., 2013). The case in which the cultivated salt concentration was close to the current environmental concentration (50 mM) is also shown in green. (e) The analysis presented here is identical to Fig. 3d, except that the ASER-AIY inhibitory connections in the best evolved model with the constraints have been replaced with excitatory connections as illustrated in Fig. 5b.
A similar analysis to that displayed in Fig. 3d is presented in Fig. 5e, with the exception that the inhibitory connections between ASER and AIY have been replaced by the excitatory connections as illustrated in Fig. 5b. Note that the changes in zi and φ in response to step changes in zON(depicted in blue) observed in the neurons further downstream of the ASEL are fully identical to those illustrated in Fig. 3d, as the synaptic connections between ASEL and AIY remain unaltered. The direction of changes in zi and φ in response to step changes in zOFF, as indicated in red, accords with that of zi and φ in response to step changes in zON, as shown in blue (Fig. 5e). This observation indicates that even when either zOFF or zON increases during a head sweep, the φ is varied from its ideal oscillatory component to zero. This causes the model worm diverging from the ideal sinusoidal trajectory and gradually turning in the direction of the head sweep that occurred during the ON or OFF signal. More specifically, the model worm gradually turns in the direction of either the lower or higher side of the salt concentration upon receiving the OFF or ON signal, respectively (see both the first and second panels from the bottom in Figs. 5e and S6). Nevertheless, as evidenced by the curving rate in Fig. 5c, the model worm clearly shows a preference for lower salt concentrations in klinotaxis. Therefore, the behavior of turning to lower salt concentrations upon increasing zOFF should play a more decisive role in the reversal of the salt preference behavior than the behavior of turning towards higher salt concentrations upon increasing zON. Indeed, as illustrated in Fig. S8b, the majority of trajectories yielded by the neural circuit shown in Fig. 5b demonstrated that the worm model turned to move in the opposite direction of the peak of the salt concentration gradient (see also Video 2). However, a subset exhibited a slight curve toward the gradient peak, which then proceeded straight and passed without any discernible response (Fig. S8b and Video 2). These behaviors can be interpreted in terms of the changes in the turning angle φ in response to step increases in zON and zOFF (Figs. 5e and S6). In summary, the reversal of salt preference behavior in klinotaxis of a well-fed individual cultivated at a lower salt concentration than the current concentrations can be primarily attributed to the change in synaptic connections between ASER and AIY from inhibitory to excitatory connections.
Inhibition of SMB activity results in a dispersal behavior that favors starving individuals in their search food
For C. elegans, finding food and dwelling at the food source are essential survival strategies. In the absence of food, the release of dopamine from PDE neurons is suppressed, the AVK interneurons, which make inhibitory connections with the PDE, in turn results in the release of FLP-1 neuropeptides (Oranth et al., 2018). As a result, the FLP-1 neuropeptides inhibit SMB motor neurons (Oranth et al., 2018), which, in conjunction with the reversal of starvation-induced klinokinesis (Kunitomo et al., 2013), may result in the dispersal behavior observed in starved individuals. The dispersal behavior of starved individuals, which is necessary for searching distant food, has been reported to manifest as alterations in salt preference behavior in klinotaxis as well as klinokinesis (Kunitomo et al., 2013). In particular, the salt concentration memory-dependent preference behavior observed in well-fed individuals (see Fig. 5d) is markedly suppressed in starved individuals, as illustrated in Fig. 6a (Kunitomo et al., 2013). This implies that in order to efficiently reach distant food sources, the worm suppresses turning and tends to move in a straight line. Given the above neurophysiological findings, we investigated the impact of inhibiting SMB activity on the salt preference behavior in klinotaxis. To this end, we employed the neural circuits in which the ASER-AIY transmission was inhibitory, excitatory, and intermediate between the two, i.e., the three circuits that yielded the results shown in Fig. 5c. Figure 6b shows that the inhibition of the SMB activity by reducing the strength of synaptic connections between AIZ and SMB resulted in the suppression of salt preference behavior, which is consistent with the experimental observations presented in Fig. 6a. Moreover, the inhibition of SMB function through the reduction of bias terms in the SMB motor neurons resulted in the suppression of the salt preference behavior (see Fig. S9b), which is a comparable result to that shown in Fig. 6b and is also consistent with the experimental data presented in Fig. 6a or S9a (Kunitomo et al., 2013). A comparison of Figs. 6c and 6d (or Figs. S9c and S9d) with Figs. S8a and S8b, respectively, showed that the neural circuit models, in which the SMB functions were suppressed, yielded weak spreading behaviors (see also Video 3).

Inhibition of SMB activity suppresses the salt concentration memory-dependent preference behavior in klinotaxis, as observed experimentally.
(a) The curving rates as a function of the normal gradient of salt concentration that were experimentally observed in starved individuals cultivated at a salt concentration higher, comparable, and lower than the current environment (Kunitomo et al., 2013). (b) The curving rates as a function of the normal gradient of salt concentration that were obtained from the neural circuits that yielded the results in Fig. 5c, except that here the synaptic connections between AIZ and SMB and the self-connections of SMB were multiplied by 0.9 to inhibit the SMB activity. (c) The trajectories of the model worm obtained by inhibiting the SMB activity in the best evolved network, where the ASER-AIY connections remained inhibitory, as shown in Fig. 5a (or #0 of Fig. S4). (d) The trajectories of the model worm obtained by inhibiting the SMB activity in the best evolved network, where the ASER-AIY connections were altered to be excitatory, as shown in Fig. 5b (or #15 of Fig. S4).
Discussion
In the present study, the neuroanatomical minimal network model was revisited to optimize the electrophysiological parameters using the evolutionary algorithm, where it is important to note that the AIY-AIZ connections were constrained to be inhibitory, as elucidated by experiments (Li et al., 2014). The best evolved network, constrained by the abovementioned conditions, successfully reproduced the synchronization of the ASER and AIZ activation patterns observed experimentally in well-fed individuals cultivated at a higher salt concentration than the current environment (Matsumoto et al., 2024). The inhibitory synaptic connections between ASER and AIY were found to be essential for the synchronization of ASER and AIZ activation patterns, as demonstrated in the best evolved network. The mechanism of the ASER-AIY inhibitory connections can be interpreted based on the expression of two glutamate receptors on the AIY, the postsynaptic interneuron of the ASER (Ohnishi et al., 2011): the inhibitory glutamate-gated chloride anion channel GLC-3 and the excitatory metabotropic glutamate receptor MGL-1 (Kang and Avery, 2009). Based on the EC50 values for GLC-3 (Horoszok et al., 2001) and MGL-2 (Tharmalingam et al., 2012), the C. elegans homologue of MGL-1, the sensitivity of MGL-1 to glutamate is expected to be sufficiently higher than that of GLC-3. Given these facts, it can be proposed that if the basal level of glutamate release from the ASER is close to the EC50 for GLC-3, the influx of Cl− into the cytosol of the AIY via the activation of the GLC-3 upon glutamate release from the ASER due to a decrease in the salt concentration will result in the inhibitory synaptic transmission between the ASER and the AIY. It is remarkable that the inhibitory connections derived from these biochemical arguments are consistent with the abovementioned neurophysiological conclusion, which has been demonstrated by the best evolved network with the constraints. The argument presented here is also supported by evidence that a similar inhibitory synaptic transmission to the AIY due to the influx of Cl− via the GLC-3, which is activated by glutamate signals from the AFD sensory neurons, has been demonstrated in the context of thermotaxis in C. elegans (Ohnishi et al., 2011).
In the previous studies on the salt concentration memory-dependent bidirectional regulation of klinokinesis (i.e., pirouettes), it was demonstrated that the basal level of glutamate release from the ASER either increased or decreased when well-fed individuals were cultivated at either a higher or lower salt concentration than the current environment, respectively (Hiroki et al., 2022; Sato et al., 2021). In light of the experimental findings on klinokinesis and the differential sensitivities of the inhibitory GLC-3 and excitatory MGL-1 that are expressed on the postsynaptic AIY interneurons of the ASER involved in klinotaxis, we proposed a hypothesized mechanism of the salt concentration memory-dependent bidirectional regulation of the preferential behaviors observed in klinotaxis. Specifically, when the well-fed individuals are cultivated at a lower salt concentration than the current environment, and the basal glutamate release from the ASER becomes sufficiently lower than the EC50 for GLC-3 but still nearly comparable to the EC50 for MGL-1, the ASER-AIY inhibitory connections are thought to be altered to become excitatory. This is due to the Ca2+ release from the endoplasmic reticulum into the cytosol, which is mediated by the activation of MGL-1. The best evolved network, in which the ASER-AIY inhibitory connections were replaced with excitatory ones, successfully reproduced the reversal of salt preference behavior in klinotaxis that had been previously observed (Kunitomo et al., 2013) (see Figs. 5c and 5d). These findings indicate that the salt concentration memory is encoded as a basal level of glutamate release from the ASER. This memory is then decoded by the difference in the sensitivity of the glutamate-gated inhibitory channel GLC-3 (Ohnishi et al., 2011) and the excitatory metabotropic glutamate receptor MGL-1 (Kang and Avery, 2009), which are expressed on the AIY. The sensory input from the ASER regarding a reduction in salt concentration is transmitted to the AIY as either an inhibitory or an excitatory signal, depending on the decoded memory. Therefore, the signaling from the ASER to the AIY is regulated by synaptic plasticity resulting from changes in the basal glutamate release from the ASER. In contrast, the remaining neurons further downstream of the ASER do not undergo alterations and function as a modular circuit to transmit the received signals to the motor systems. This results in simple and efficient bidirectional regulation of salt preference behavior in klinotaxis.
For individuals experiencing starvation, the expansion of dispersal behaviors is a crucial survival strategy to acquire and dwell distant food sources. Indeed, such behavioral changes have also been observed in the context of salt preference behaviors in klinotaxis (Kunitomo et al., 2013). It is therefore necessary to ascertain how the worm’s neural network regulates the behavioral strategies in the presence or absence of food. In the absence of food, the PDE neurons do not release dopamine, which causes AVK interneurons that form inhibitory connections with the PDE to release FLP-1 neuropeptides that inhibit SMB motor neurons. This has been postulated to contribute to the dispersal behavior observed in starved individuals (Oranth et al., 2018). Therefore, the impact of inhibiting SMB activity on salt preference behavior in klinotaxis was investigated. The best evolved network, in which the strength of the synaptic connections between AIZ and SMB was reduced to suppress SMB activity, while the remainder remained unchanged, showed the suppression of salt preference behavior in klinotaxis (Fig. 6b), as observed in the experiments (Kunitomo et al., 2013) (Fig. 6a). These findings indicate that the worms are capable of efficiently switching between dwelling and dispersing behaviors by activating or inhibiting only the most downstream motor neurons in the modular circuitry of klinotaxis, which output the signals to the motor system depending on the presence or absence of food.
Limitations of the study
The modeling of ASE sensory neurons does not include either the all-or-none depolarization characteristic of the ASEL or the hyperpolarization characteristic of the ASER in response to step increases in salt concentration (Suzuki et al., 2008). As a result, a comprehensive understanding of the specific roles played by each the ASEL and ASER could not be achieved. The available data on synaptic transmission between the AIZ and the SMB, as well as the available information on the activation pattern of the SMB in response to changes in salt concentration, were insufficient to perform the evolutionary search of parameters involving the SMB with the application of appropriate constraints. Consequently, a comprehensive investigation of the role of the SMB in the regulation of the turning direction was hindered by these limitations.
Methods
In the present study, a neuroanatomical minimal network model developed by Izquierdo and Beer (Izquierdo and Beer, 2013) was employed as the basis for the modeling. The neuroanatomical minimal circuit was derived from the connectome by applying two constraints (Izquierdo and Beer, 2013). The first constraint is to minimize the path length between ASE and SMB cells, resulting in a minimum number of three. Since two neurons can be connected by one or more chemical synapses or electrical connections, the total number of neuronal connections was defined as the number of contacts. The second step is to eliminate the interneurons that are connected by neuronal connections other than those with the maximum number of contacts (Oshio, 2003). It is noteworthy that the two interneurons, AIY (Kocabas et al., 2012) and AIZ (Iino and Yoshida, 2009), which have been experimentally shown to be involved in klinotaxis, are included in the resulting minimal network. The primary difference between our model and the neuroanatomical minimal network model is that our modeling constrains the synaptic transmissions between AIY and AIZ to be inhibitory, as experimentally demonstrated (Li et al., 2014). A review of the model and computational details is provided in the following section.
Modeling of Sensory Neuron Signaling
Synaptic transmissions from the chemosensory neurons to interneurons were modeled for the ON (ASEL) and OFF (ASER) sensory neurons, respectively, as an instantaneous function of a coarse-grained time derivative of the recent history of NaCl concentration, z (Izquierdo and Beer, 2013):
where c(t) is the salt concentration at time t, and N and M are the durations of the first and second half intervals, respectively, over which the concentration is averaged. The factor of 100 in Eq. A1 was introduced to convert z to values that were more readily amenable to analysis. The ASEL is the ON cell, where the strength of neurotransmitter release zON increases in response to an increase in c(t). Conversely, the ASER is the OFF cell, with zOFF increasing in response to a decrease in c(t) (Suzuki et al., 2008) (see Fig. A1).

Modeling of the synaptic transmission from the ASEL and ASER sensory neurons in response to changes in NaCl concentration.
Modeling of Interneurons
The modeling of interneurons used current-based synaptic transmissions as follows (Izquierdo and Beer, 2013):
where yi represents the membrane potential relative to the resting potential of zero, ri is the time constant, the first sum represents the input current from chemical synapses, and the second sum represents the input current from electrical synapses. In the first sum, the weight wji represents the strength of the synaptic connection, and zj is considered as the strength of neurotransmitter release, as represented by
with the following sigmoid function:
θi in Eq. A5 represents the bias term that shifts the range of sensitivity associated with neurotransmitter release. In the second sum of Eq. A3, gki represents the conductance of the electrical gap junction, with gki> 0. The fourth term
where
Modeling of Neck Motor Neurons
Neck motor neurons were modeled in a manner analogous to that employed for interneurons, except for the inclusion of self-connections (Izquierdo and Beer, 2013):
where the second term represents the input current from chemical synapses, as described in Eq. A5. The third term represents a constitutive input current from an oscillatory component,
where wOSC represents the strength of the connection with the oscillatory component and
where T represents the duration of a one cycle of sinusoidal motion on agar, which was estimated to be 4.2 s (Ferrée and Lockery, 1999).
To reduce the total number of parameters included in the model, in accordance with the neuroanatomical minimal network model (Izquierdo and Beer, 2013), the following constraints were introduced with respect to the second term on the right-hand side in Eq. A8 for the dorsal and ventral motor neurons on the left and right side, respectively:
These parameters are constrained to be symmetric between the dorsal and ventral motor neurons on the left and right sides, respectively. As discussed in the previous studies (Izquierdo and Beer, 2013; Izquierdo and Lockery, 2010), a neuron is considered unistable if a self-connection is presented and the weight
Worm Model
The worm model was constructed using the neuroanatomical minimal network model as the basis for modeling worm locomotion (Izquierdo and Beer, 2013). The locomotion of the worm was modeled as the movement of a single point (rx, ry) at a constant velocity v (Fig. A2a). The angle of the direction of motion μ relative to the x-axis was measured with counterclockwise being positive (Fig. A2b). The model involves two assumptions regarding the locomotion mechanism. The first is that the length of the neck muscles is proportional to the strength of neurotransmitter release from the neck motor neurons (Fig. A2a). The second is that the turning angle φ (Fig. A2b) is proportional to the difference in the length of the neck muscles. According to these assumptions, the equation of motion governing the angle of movement direction μ is given by
The summations in Eq. A13a are performed over the indices iD ∈ {SMBDL, SMBDR} and iV ∈ {SMBVL, SMBVR}, respectively. The wNMJ represents the strength of the connection from motor neurons to muscles. In Eqs. A13b and 13c,
The position (rx, ry) of the model worm is updated by the following equation:
where v is a constant velocity of 0.022cm/s (Ferrée and Lockery, 1999). The present model does not explicitly consider the kinematic mechanism that is responsible for generating the forward thrust due to the oscillatory motion of the worm. However, it is a matter of experimental observation that the locomotion of real worms never occurs without the thrust generated by undulations (GRAY and LISSMANN, 1964). In order to impose this constraint on the motion of the worm model, the fitness of the individuals that do not exhibit undulations was reduced, thus excluding such individuals from the search performed by the evolutionary algorithm (see also Evaluation of Fitness).

Worm locomotion model.
(a) The body of the worm, consisting only of the idealized head and neck regions of C. elegans. The worm model was represented as a point (rx, ry), located at the center of the boundary between the head and neck regions of the model. The μ represents the angle between the velocity vector v and the positive x-axis. In this context, a counterclockwise angle is considered positive. The dorsal (gray) and ventral (black) motor neuron pairs receive an out-of-phase constitutive oscillatory input from the motor systems, respectively. (b) Changes in the direction of locomotion. In the interval between time steps i −1 and i, the orientation of the velocity vector undergoes a change of the turning angle φi. The gray arc represents the path of the worm.
Numerical Integration
Equations A4, A8, A13a, A14 were solved using the Euler integration with a time step of 0.01 sec for the evolution of the network parameters and the evaluation of the chemotaxis behavior for evolved individuals. On the other hand, a time step of 0.001 sec was used in the simulations that displayed the trajectories.
Modeling of Salt Concentration
The salt concentrations observed during a typical salt chemotaxis assay have a Gaussian distribution (Ward, 1973). However, in the context of evolutionary algorithms, however, Gaussian gradients are problematic because the local steepness depends on the distance from the gradient peak. To circumvent this problem, conical gradients with randomly varying steepness were implemented in each simulation throughout the evolutionary process. Salt concentrations are proportional to the Euclidean distance from the gradient peak (xpeak, ypeak),
where α is the slop of the gradient. Conversely, a Gaussian distribution was used to evaluate the chemotaxis behavior of evolved individuals:
where C0= 1.0 [mM] and λ = 1.61 [cm] were employed (Ferrée and Lockery, 1999; Ward, 1973).
Evolutionary Algorithm
A genetic algorithm (Back, 1996) was used to evolve the following parameters of the model (Izquierdo and Beer, 2013) in the ranges given in brackets: wNMJ in Eq. A13a [1, 3]; all the biases θ [−15, 15]; the weights
An initial population of 60 individuals was randomly generated in which the parameters of the model were encoded in a 22-element vector of real values between [-1, 1], and these parameters were linearly mapped to their corresponding ranges.
The fitness of 60 individuals was quantified by using the chemotaxis index (CI) that will be defined by Eq. A17. Here, the CI for each individual was obtained as the mean CI value averaged over 50 chemotaxis assays explained later. The top 20 individuals were selected based on the fitness obtained.
A next generation population of 60 individuals was generated by three operations:
The selected top 20 individuals were copied as the individuals comprising the next generation population.
The two-point crossover was applied, where the pairs of an odd and the next even number individual in the CI order were selected from the top 20 individuals with a probability of 0.6 as the first and second parents.
Mutations were assumed to occur in the individuals that were selected from the top 20 individuals with a probability of 0.5. The Gaussian noise with a standard deviation of 0.05 was added to the elements selected with a probability of 0.4 from the 22 elements in the vector of the mutants.
If the total number of individuals generated by the selection, crossover, and mutations was less than 60, the remaining individuals were randomly generated in the same way as in procedure 1.
Procedures 2 and 3 were repeated to evolve the population for 300 generations.
The individual with the highest CI value after 300 generations of evolution was selected as the best performing individual.
The 100 iterations of this genetic algorithm were performed to generate the ensemble of the 100 best performing individuals. The generated top 100 individuals were ranked based on the CI value.
Evaluation of Fitness
The fitness of the individuals generated during the evolutionary algorithm was evaluated by performing the simulations with the chemotaxis assays. At the beginning of each simulation, the model worm was placed at the origin (x, y) = (0.0, 0.0) with an initial orientation randomized over the range [0.0, 2π] and motor neuron activations were randomized over the range [0, 1]. The gradient steepness α in Eq. A15 was randomized over the range [−0.38, −0.01] (Izquierdo and Beer, 2013). Fitness was quantified as the chemotaxis index (CI), defined as the time average of the distance to the peak of the gradient at Sxpeak, ypeak U = (4.5, 0.0),
where h(t) is the Euclidean distance from the peak,
h(0) is the initial distance of the worm from the salt peak, namely, 4.5 cm, and Tsim is the total simulated assay time. Tsim was set to 500 s in the evolutionary algorithm and 1000 s in the evaluation of the CI value for the individuals obtained. For simplicity, negative CI values were set to zero. The fitness of an individual generated during the evolutionary algorithm was determined as the averaged CI values over 50 trials, in which the gradient steepness α of the salt concentration in Eq. A15 was randomly chosen in the range of [−0.38, −0.01] and the orientation of the worm at the starting point (0.0, 0.0) was randomized (Izquierdo and Beer, 2013). To ensure the survival of individuals moving in an undulating manner, the CI value was reduced when sinusoidal movements were not present. Specifically, the sign of the turning angle φ was checked at 1/4 and 3/4 cycles within each period, and if they had the same sign, the CI value was reduced by 0.008 each time as a penalty.
Analysis of the Salt Preference Behavior in Klinotaxis
In the calculation of the quantities that were used to characterize the klinotaxis behavior, i.e., curving rate, bearing, and salt concentration gradients, the coordinates of the trajectory for the first three cycles of the worm’s sinusoidal locomotion were not used because the time derivative of the NaCl concentration history in Eq. A1 could not be precisely determined around the starting point, thus affecting the locomotion. The ensemble average of these quantities was determined by performing 100,000 sets of the simulation with a simulation time of Tsim = 200 sec. The Gaussian distribution of the salt concentration given by Eq. A16 was used in the analysis of the salt preference behavior in klinotaxis.
Curving Rate
Curving rate is also called turning bias (Izquierdo and Beer, 2013). The coordinates at three points over six cycles, namely, zero, 2nπ, and 4nπ, where n is three, were used to calculate the vectors from the start point to the midpoint r(2nπ) (see Fig. A3) and from the midpoint to the end point r(4nπ). The turning angle over the six cycles φ (4nπ) was calculated using r(2nπ) and r(4nπ), with counterclockwise being positive (see also Fig. A2b, although the time interval between the vectors is different). The locomotion distance d(4nπ) was estimated from the sum of |r(2nπ)| and |r(4nπ)|. The curving rate was determined by φ (4nπ)/d(4nπ).
Bearing
The bearing was determined as the angular difference between the vector of translational movement defined by r(2nπ) introduced above and the vector from the current position to the peak of the salt concentration gradient with counterclockwise being positive (see Fig A3).
Normal and Translational Salt Concentration Gradient
The normal gradient of salt concentration was calculated from the difference in salt concentration between the position shifted by 0.001 cm toward the left perpendicular to the direction of the worm movement and the current position. The translational gradient of salt concentration was calculated from the difference in salt concentration between the position shifted by 0.001 cm toward the direction of the worm movement and the current position.

Terminology used in the analysis of the worm’s locomotion.
Orientation vectors used in the analysis of sinusoidal locomotion. Undulations occur in the x-y plane. The white circles represent the start and end points of n-cycles of locomotion, where n was set to three throughout the analysis of the worm’s locomotion characteristics.

The parameters that were evolved by the genetic algorithm in the worm’s chemotaxis simulation.


The parameters used in the simulations of worm’s chemotaxis.

The parameters that control the evolutionary algorithm.


The parameters of the best evolved network model with the constraints, as obtained from the evolutionary algorithm with the assumption that the AIY-AIZ connections are inhibitory.
Data availability statement
Full details of the data used in this study and the methods to perform the simulations are provided in the main text. The raw data supporting the conclusions of this article will be made available from the corresponding authors.
Additional information
Author contributions
T.S. designed the study. M.H. developed the source code for the simulation, performed the simulations, and analyzed the computational data. T. S. and M.H. discussed the results. T.S. wrote the first draft of the manuscript. T. S. and M.H. reviewed the manuscript.
Funding
This work was supported by the Okayama Foundation for Science and Technology and partly by JSPS KAKENHI Grant No. JP22H01888.
Additional files
References
- A model of chemotaxis and associative learning in C. elegansBiol Cybern 106:373–387https://doi.org/10.1007/s00422-012-0504-8
- The Input-Output Relationship of AIY Interneurons in Caenorhabditis elegans in Noisy EnvironmentiScience 19:191–203https://doi.org/10.1016/j.isci.2019.07.028
- Evolutionary Algorithms in Theory and PracticeOxford University Press, USA
- Genetic and cellular analysis of behavior in C. elegansAnnu Rev Neurosci 16:47–71https://doi.org/10.1146/annurev.ne.16.030193.000403
- Chemosensory neurons with overlapping functions direct chemotaxis to multiple chemicals in C. elegansNeuron 7:729–742https://doi.org/10.1016/0896-6273(91)90276-6
- Neural model generating klinotaxis behavior accompanied by a random walk based on C. elegans connectomeSci Rep 12:3043https://doi.org/10.1038/s41598-022-06988-w
- Whole-animal connectomes of both Caenorhabditis elegans sexesNature 571:63–71https://doi.org/10.1038/s41586-019-1352-7
- Neuronal substrates of complex behaviors in C. elegansAnnu Rev Neurosci 28:451–501https://doi.org/10.1146/annurev.neuro.27.070203.144259
- A neural network model of chemotaxis predicts functions of synaptic connections in the nematode Caenorhabditis elegansJ Comput Neurosci 17:137–147https://doi.org/10.1023/B:JCNS.0000037679.42570.d5
- Neural Network Models of Chemotaxis in the Nematode Caenorhabditis ElegansAdvances in Neural Information Processing Systems 9:55–61
- Computational rules for chemotaxis in the nematode C. elegansJ Comput Neurosci 6:263–277https://doi.org/10.1023/a:1008857906763
- THE LOCOMOTION OF NEMATODESJ Exp Biol 41:135–154https://doi.org/10.1242/jeb.41.1.135
- Molecular encoding and synaptic decoding of context during salt chemotaxis in C. elegansNature Communications 13:2928https://doi.org/10.1038/s41467-022-30279-7
- GLC-3: a novel fipronil and BIDN-sensitive, but picrotoxinin-insensitive, L-glutamate-gated chloride channel subunit from Caenorhabditis elegansBr J Pharmacol 132:1247–1254https://doi.org/10.1038/sj.bjp.0703937
- Parallel use of two behavioral mechanisms for chemotaxis in Caenorhabditis elegansJ Neurosci 29:5370–5380https://doi.org/10.1523/JNEUROSCI.3633-08.2009
- Connecting a connectome to behavior: an ensemble of neuroanatomical models of C. elegans klinotaxisPLoS Comput Biol 9:e1002890https://doi.org/10.1371/journal.pcbi.1002890
- Evolution and analysis of minimal neural circuits for klinotaxis in Caenorhabditis elegansJ Neurosci 30:12908–12917https://doi.org/10.1523/JNEUROSCI.2606-10.2010
- Information Flow through a Model of the C. elegans Klinotaxis CircuitPLoS ONE 10:e0140397https://doi.org/10.1371/journal.pone.0140397
- Systemic regulation of starvation response in Caenorhabditis elegansGenes Dev 23:12–17https://doi.org/10.1101/gad.1723409
- Controlling interneuron activity in Caenorhabditis elegans to evoke chemotactic behaviourNature 490:273–277https://doi.org/10.1038/nature11431
- Concentration memory-dependent synaptic plasticity of a taste circuit regulates salt concentration chemotaxis in Caenorhabditis elegansNature Communications 4:2210https://doi.org/10.1038/ncomms3210
- Encoding of both analog- and digital-like behavioral outputs by one C. elegans interneuronCell 159:751–765https://doi.org/10.1016/j.cell.2014.09.056
- Neuronal sensorimotor integration guiding salt concentration navigation in Caenorhabditis elegansProc Natl Acad Sci USA 121:e2310735121https://doi.org/10.1073/pnas.2310735121
- Bidirectional regulation of thermotaxis by glutamate transmissions in Caenorhabditis elegansEMBO J 30:1376–1388https://doi.org/10.1038/emboj.2011.13
- Molecular mechanism for trimetric G protein-coupled thermosensation and synaptic regulation in the temperature response circuit of Caenorhabditis elegansNeurosci Res 76:119–124https://doi.org/10.1016/j.neures.2013.03.008
- Potential role of a ventral nerve cord central pattern generator in forward and backward locomotion in Caenorhabditis elegansNetw Neurosci 2:323–343https://doi.org/10.1162/netn_a_00036
- Food Sensation Modulates Locomotion by Dopamine and Neuropeptide Signaling in a Distributed Neuronal NetworkNeuron 100:1414–1428https://doi.org/10.1016/j.neuron.2018.10.024
- Database of Synaptic Connectivity of C. elegans for Computation. Technical Report of CCeP, Keio Future, No. 1Keio University
- The fundamental role of pirouettes in Caenorhabditis elegans chemotaxisJ Neurosci 19:9557–9569https://doi.org/10.1523/JNEUROSCI.19-21-09557.1999
- Glutamate signaling from a single sensory neuron mediates experience-dependent bidirectional behavior in Caenorhabditis elegansCell Rep 35:109177https://doi.org/10.1016/j.celrep.2021.109177
- Odorant-induced membrane potential depolarization of AIY interneuron in Caenorhabditis elegansNeurosci Lett 541:199–203https://doi.org/10.1016/j.neulet.2013.02.016
- A computational model of internal representations of chemical gradients in environments for chemotaxis of Caenorhabditis elegansSci Rep 8:17190https://doi.org/10.1038/s41598-018-35157-1
- Muscarinic acetylcholine receptor-dependent and NMDA receptor-dependent LTP and LTD share the common AMPAR trafficking pathwayiScience 26:106133https://doi.org/10.1016/j.isci.2023.106133
- Functional asymmetry in Caenorhabditis elegans taste neurons and its computational role in chemotaxisNature 454:114–117https://doi.org/10.1038/nature06927
- Orthosteric and allosteric drug binding sites in the Caenorhabditis elegans mgl-2 metabotropic glutamate receptorNeuropharmacology 63:667–674https://doi.org/10.1016/j.neuropharm.2012.05.029
- Chemotaxis by the nematode Caenorhabditis elegans: identification of attractants and analysis of the response by use of mutantsPNAS 70:817–821https://doi.org/10.1073/pnas.70.3.817
- The structure of the nervous system of the nematode Caenorhabditis elegansPhilos Trans R Soc Lond B Biol Sci 314:1–340https://doi.org/10.1098/rstb.1986.0056
Article and author information
Author information
Version history
- Sent for peer review:
- Preprint posted:
- Reviewed Preprint version 1:
Copyright
© 2025, Masakatsu Hironaka & Tomonari Sumi
This article is distributed under the terms of the Creative Commons Attribution License, which permits unrestricted use and redistribution provided that the original author and source are credited.
Metrics
- views
- 82
- downloads
- 3
- citations
- 0
Views, downloads and citations are aggregated across all versions of this paper published by eLife.