Skip to main content
iScience logoLink to iScience
. 2024 Apr 17;27(5):109759. doi: 10.1016/j.isci.2024.109759

Revealing neural dynamical structure of C. elegans with deep learning

Ruisong Zhou 1, Yuguo Yu 2,3, Chunhe Li 1,4,5,
PMCID: PMC11070340  PMID: 38711456

Summary

Caenorhabditis elegans serves as a common model for investigating neural dynamics and functions of biological neural networks. Data-driven approaches have been employed in reconstructing neural dynamics. However, challenges remain regarding the curse of high-dimensionality and stochasticity in realistic systems. In this study, we develop a deep neural network (DNN) approach to reconstruct the neural dynamics of C. elegans and study neural mechanisms for locomotion. Our model identifies two limit cycles in the neural activity space: one underpins basic pirouette behavior, essential for navigation, and the other introduces extra Ω turns. The combination of two limit cycles elucidates predominant locomotion patterns in neural imaging data. The corresponding energy landscape explains the switching strategies between two limit cycles, quantitatively, and provides testable predictions on neural functions and circuit roles. Our work provides a general approach to study neural dynamics by combining imaging data and stochastic modeling.

Subject areas: Biological sciences, Neuroscience

Graphical abstract

graphic file with name fx1.jpg

Highlights

  • Reconstructing the neural dynamics for the locomotion of C. elegans by a DNN model

  • Identifying two limit cycles essential to the pirouette behaviors

  • Quantified energy landscapes from DNN model explain the switching strategy

  • Model provides testable predictions on neural functions and circuit roles


Biological sciences; Neuroscience

Introduction

Caenorhabditis elegans (C. elegans) represents one of the animals with the simplest neural system and is widely used to investigate neural dynamics. The neural system of C. elegans consists of 302 neurons with a known connectome, and recent advancements in neuronal imaging have yielded substantial imaging (neural activity) data, which lays the foundation for exploiting data to investigate the neural dynamical mechanisms of C. elegans. Investigating the underlying neural dynamics of C. elegans is instrumental in unraveling the broader workings of natural neural networks. Thus, it becomes essential to reconstruct the neural networks of C. elegans and corresponding dynamical models from neural activity data. Numerous computation models are developed to infer the neural dynamical structure of C. elegans. Some of these models are grounded in the neural connectivity,1,2,3,4 while the others are solely data-driven.5,6 Connectivity-based models have the potential to investigate the function of neural circuits and directly reveal the relationship between the neural dynamics and the network structure.3 However, the nonlinear structure results in the sensitivity for the connectivity coefficients and synaptic polarity.5,7,8 The constrained available experimental measurements pose challenges for accurate simulations.

The data-driven approaches provide us a promising method for reconstructing the dynamics solely from the imaging data and enabling reliable simulation. Nevertheless, practical challenges persist. The complex, nonlinear dynamics need to be reconstructed from vast datasets, imposing substantial computational costs. The curse of dimensionality brings challenges to reconstructing the dynamics through traditional ways. To overcome these challenges, some data-driven methods confine the model to a few neurons or principal components (less than five),3,6 or impose constraints on dynamic forms.6 Introducing a higher dimensional model remains challenging. On the other hand, based on the previous dataset and methods, few of the previous computation models give predictions for both neural activity data and locomotion behaviors. Previous works on computation modeling usually either simplify the behaviors into binary “Forward” and “Backward” states,1 or introduce several behaviors into the model but only focus primarily on the dynamics within these two states,5,6 almost omitting the turns. Additionally, the dynamical structure governing the stable states and the periodic oscillation remains unclear, and the underlying mechanisms guiding state transitions are largely unexplored within these computational frameworks. Difficulties persist in using the computation models to reveal dynamics governing the transition of behavior states and the switching between locomotion strategies. Furthermore, the impact of perturbing certain neurons on motor behaviors is challenging to predict within existing computational frameworks.

Deep learning presents an attractive solution for decoding neural activity due to its ability to effectively learn complicated, nonlinear transformations from data.9,10,11 Its applications extend across various domains, including investigating neural dynamics, gene dynamics, cell movement and properties of pharmacogenomics.12,13,14,15,16 The utility of deep learning becomes particularly evident when dealing with the complexities arising from high-dimensional data and complex forms of dynamic forces. Inspired by previous studies on deep-learning neural networks (DNN) and neural dynamics modeling,17,18,19 we seek to perform DNN to reconstruct the neural network of C. elegans. Kato et al. proposed Ca2+ imaging to record the neural activity data of C. elegans and their research also provides the corresponding behavior state series.20 This dataset has been instrumental in investigating the dynamics behind the pirouette behavior,5,6 which is central to the navigation for C. elegans.16,21,22,23,24 We aim to reconstruct the DNN model from this dataset, and we also propose two methods for explaining the locomotion behaviors corresponding to the simulations. These approaches allow us to provide both neural activity and locomotion states, and help us investigate the mechanism of behavior transitions in the computation model. Furthermore, after introducing the inhibition force in the DNN model, it becomes possible to predict the change of locomotion for C. elegans after making perturbations to certain neurons.

The energy landscape approach serves as a valuable tool for examining stochastic dynamics in biological networks.18,25,26,27,28,29 It has been employed to uncover global properties of the dynamics of complex networks. Inspired by the previous studies on the energy landscape, we introduce the Gaussian noise to our DNN model to study the stochasticity and calculate the energy landscape of the neural system. The energy landscape provides us with ways to reveal the switching strategies from a global perspective.

Our model yields several noteworthy findings. Firstly, The DNN model for C. elegans effectively captures the essential features of neural dynamics and exhibits strong performance within a short time. Notably, it identifies two limit cycles in the neural activity space. Second, upon further analysis of locomotion behaviors, we uncovered that one of these limit cycles underlies the fundamental pirouette behavior, while the other is associated with the extra Ω turns in the pirouette behavior. Intriguingly, the occurrence of the second-type limit cycle within a pirouette behavior aligns with a geometric distribution, which means the probability decreases exponentially as the increase of occurrences. This intriguing discovery, along with the interplay between the two types of limit cycles, accounts for a significant portion of the behavior sequences observed in brain-wide calcium imaging data. Thirdly, we observe that the model with middle-level noise provides the best fit for C. elegans locomotion behaviors. Moreover, the energy landscape of C. elegans neural dynamics unveils a structured interplay of attractors and limit cycles, which explains the geometric distribution observed. This discovery provides valuable insights into the mechanisms underlying the switching of locomotion strategies. Finally, our approach, incorporating both the energy landscape and neural inhibition in the DNN model, provides the confirmations and predictions for the functions of key neurons and circuits for locomotion.

Our work proposes a data-driven approach to infer the dynamical structure of C. elegans and introduces two methods for explaining the locomotion of the simulation (Figure 1). The computation model offers valuable insights into the transition mechanisms for behaviors within pirouette strategies and the roles of neurons for locomotion.

Figure 1.

Figure 1

Data-driven approach for constructing energy landscape

The data trajectories are used to train the Deep-learning Neural Network for dynamics and reconstruct the neural dynamics. The reconstructed dynamics correspond to the deterministic force in the dynamical system. The trained DNN is used to approximate one part of the dynamics while the other part is kX. Using the trained DNN, we get the original system. Adding the “inhibition force” (see details in STAR Methods), we get the perturbed system. The SDE simulations of the two dynamical systems give the prediction of neural activity. The behavior labels of data trajectories in the dataset are used to train the DNN for behaviors and this trained DNN helps to explain the behavior states in the SDE simulation. Using the previous approaches for multistable states and our new methods for limit cycles, we can quantify the energy landscape of two types of systems. The energy landscape further helps us to investigate the underlying dynamical mechanisms.

Results

DNN model for C. elegans captures the key information of neural dynamics

In prior experiments, approximately 100 neurons in the head ganglia are recorded simultaneously in each of five animals immobilized in a microfluidic chamber.20 Among the 21 consistently and unequivocally identified neurons in each individual, we selected 14 key neurons of C. elegans, including both the sensory interneurons and motor neurons (Figures S1 and S2). Kato et al.20 employed imaging to observe a limited subset of neurons in freely moving C. elegans, confirming the close correlation between the activation of certain individual neurons and locomotion parameters. This leads to the interpretation of neural activity in immobilized animals as motor commands indicative of locomotor behaviors. Kato et al. provide the corresponding time series of locomotor behavior in immobilized animals, which is grounded in the activation of neurons. Several previous studies exploring the neural dynamics of C. elegans locomotion are also grounded in the neural activity data and behavioral states provided by Kato et al..2,5,6,20 Therefore, we seek to develop a model to reconstruct the neuron dynamics of C. elegans and investigate the underlying dynamical structure governing the locomotion of C. elegans based on these neural activity data.

Before introducing our model, we conducted an initial analysis of motor command transitions using the imaging dataset. We commenced this analysis by calculating the transition probabilities between different behavioral states using the time series data of C. elegans from Kato’s imaging dataset.20 Within this dataset, behaviors are categorized into six states: Forward, Slow, Reverse, Sustain reverse, Dorsal turn and Ventral turn. Forward and Sustain Reverse represent smooth forward and backward locomotion. The Slow states signify a decrease in forward speed, whereas Reverse indicates an increase in backward speed. Dorsal turn and Ventral turn represent turns in the respective directions. Importantly, distinct trajectories in the Slow state imply the need for further division into transient Slow1 and sustained Slow2 states (see more details in STAR Methods). Subsequently, we constructed a state transition diagram (Figure 3A) to intuitively comprehend locomotion patterns, with arrow thickness representing transition probability magnitudes. According to the diagram, the Forward state transitions exclusively to Slow or Reverse states. The Reverse state precedes two types of turns before returning to the Forward or Reverse states through the Slow state. Notably, the diagram highlights two primary cycles: “Forward Slow Reverse Sustain reverse Dorsal/Ventral turns Forward” and “Sustain reverse Dorsal/Ventral turns Slow Reverse Sustain reverse”. These two cycles are specifically highlighted in Figure 3B.

Figure 3.

Figure 3

Two limit cycles identified by the DNN model governing the underlying mechanisms for locomotion

(A) The state transition diagram derived from the experimental dataset, where the thickness of the arrows is positively correlated to the probability of transition.

(B) The transition diagram featuring the two primary cycles. The two cycles in the transition diagram correspond to the two limit cycles in the neural activity space.

(C) The representation of two limit cycles when projected onto the first two principal components. Cycle 1 (left panel) aligns with the fundamental sequence in the pirouette strategy, while Cycle 2 (right panel) represents the extra Ω turns. The Slow states with 2 3 frame duration in Cycle 2 are overshadowed by other states.

(D) A cyclic trajectory lying in the orbit of Cycle 2. These cyclic traces add diversity to the forms of Ω turn.

(E) A representative simulation trace projected onto the first two principal components (left) and neuron RIVR (right). This trajectory depicts four Cycle 2 in a pirouette behavior, illustrating the variation of the pirouette behaviors. By applying an appropriate shift, the simulated trace closely matches the data trace (see details in Figure S3C).

(F) The distribution of the occurrences of Cycle 2 instances within a pirouette series (a series from Forward states to Forward states), i.e., the number of Cycle 2 between two Cycle 1. This distribution aligns with the geometric distribution with expectation 1.5(data)/1.56(simulation) (p-value = 0.0008/0.0182, Goodness of fit test).

We proceed by introducing our deep-learning neural network (DNN) approaches to reconstruct the neural dynamics of C. elegans. Previous studies have generally characterized the neural dynamics as a stochastic system19:

dXdt=F(X)+ϵ, (Equation 1)

where F represents the deterministic driving force and ɛ signifies noise, which we assume as Gaussian white noise. We employ a three-layer feedforward neural network in our approach to reconstruct the deterministic driving force. The network is trained (Figure S3A) on the imaging dataset20 using a curve-fitting method, minimizing deviations between the data and the simulations by network (see more details in STAR Methods). Utilizing this trained neural network, we are able to conduct simulations for the neural activity under different noise conditions. In our model, we specifically incorporate Gaussian white noise with varying levels, represented by different covariances. Previous works showed neural activity evolves on a low-dimensional manifold,5,20 which is reproduced by projecting imaging data (Figure 2A, gray lines). Notably, our simulations, starting from data points, align with this manifold under various noise levels (Figure 2A). This observation indicates that the manifold arises from the underlying dynamical structure, which is captured by our models. Besides, we observe that the simulation trajectories in time series exhibit deviations from the data trajectories, but after a time shift they align closely (Figure S3B corresponding to the left panel of Figure 5C and S3C corresponding to the right panel of Figure 3E), and in these cases the normalized mean squared error (NSME) xsimuxdata2xdata2 reaches the level around 5%. Importantly, after this time shift, it’s observed that both trajectories originate from the same stable state. Therefore, the deviations between simulation and data trajectories may primarily arise from the different resting times or different evolution types from the stable states. A comprehensive analysis of the data trajectories validates this observation, uncovering significant deviations between two data trajectories that commence from the same stable state (Figure S4).

Figure 2.

Figure 2

The Gaussian noise is a critical factor influencing the choice of strategy

(A) The projection of simulation traces under different noise levels (no noise on the left, middle noise in the middle, and large noise on the right) onto the first three principal components. These traces are color-coded for comparison with gray traces representing experimental data. All of them conform to a low-dimensional manifold.

(B) Projections of simulated trajectories onto the first two principal components. The simulations are performed without noise with the start points randomly selected from the dataset (see more details in STAR Methods). These trajectories ultimately converge to some stationary points which are circled with black dotted lines.

(C) All the stationary points, with attractors marked in black and others in red. All attractors belong to the Forward and Sustain reverse states.

(D) Projections of simulated traces under middle noise onto the first two principal components.

(E) A simulated trace under large noise. Its projection onto the first two principal components (left panel) and the neural activity of neuron RIVR (right panel) are shown. Under the large noise, neural activity oscillates rapidly and randomly between various cycles, traversing a substantial portion of the manifold.

(F) KL divergence of state probability (red) and state transition probability (blue) between the data and simulations under different noise levels. The estimated noise level is estimated from the dataset using Maximum Likelihood Estimation (MLE) (see more details in STAR Methods).

Figure 5.

Figure 5

The energy landscape with two limit cycles unveils the mechanisms of locomotion and confirms certain neural functions

(A) The projection of two limit cycles and landscape onto the space of AVAR and AVBR. AVBR activity exhibits a negative correlation with AVAR activity in Cycle 1 (left panel), while it remains largely inactive in Cycle 2 (middle panel). The basins form an “L” shape (right panel).

(B) The projection of two limit cycles and landscape onto the space of RIVR and AVAR. In Cycle 1 (left panel), RIVR exhibits two peaks (Forward and Ventral turn) in each cycle, whereas in Cycle 2 (middle panel), it shows only one peak (Ventral turn). The landscape (right panel) identifies four paths connecting two stable states (Forward and Sustain reverse). The Forward state and Sustain reverse state are encircled and correspond to the red and purple areas in the left and middle panels. The trajectory that traverses the Dorsal turn state is highlighted in red, and the points within the Dorsal turn state are shaded in chartreuse in the left and middle panels.

(C) The activity of neuron RIVR in two limit cycles. Left panel: Cycle 1. Right panel: Cycle 2. It displays periodic variations within the two limit cycles, with significant fluctuations observed in the attractors at Forward state. The peaks of RIVR activity in Cycle 2 are much higher than peaks in Cycle 1.

(D) The activity of neuron RIVR for a simulated trajectory. This trajectory leaves Cycle 2 after 3 periods.

In summary, our model effectively captures the primary features of the dynamical structure of C. elegans and facilitates reliable predictions for neural activity. To explain the locomotion behaviors for our simulations, we need a map function to correlate the neural activity series to corresponding behavior labels. Since only a few motor neurons are selected in our model, it’s hard to use their activations as indicators for the complicated movement states. Therefore, we introduce a clustering method and a DNN method (see more details in STAR Methods) to learn the map from the dataset. These methods help to assign behavior states to each point in our simulations. With these assigned states, we can effectively describe the locomotion behaviors exhibited in these simulation trajectories. Within our implementation, both approaches yield remarkably similar time series of behavior states. Consequently, in the following sections of this article, we consistently refer to the behavior series derived through the DNN method. These corresponding behavior series, across most noise levels in our simulations, align with the previously mentioned pattern of motor command alterations in the dataset. This discovery reinforces the notion that our model adeptly captures the fundamental behavioral mechanisms of C. elegans.

Model with middle level noise better explains behaviors of locomotion

To study the effects of stochasticity on the model, we have added the noise with different noise levels to the DNN model. Additionally, we determine the estimated noise level from the dataset using Maximum Likelihood Estimation (MLE). Further details are available in the STAR Methods. To investigate the underlying dynamical structure and assess the noise impact on C. elegans locomotion, we examine three specific cases: no noise, middle noise (estimated from the data), and large noise. Confirming our previous observation, all these trajectories are restricted to the low-dimensional manifold (Figure 2A). Under no noise, all the trajectories converge to specific stationary points where the deterministic driving force vanishes (Figure 2B). Further analysis of these points identifies the attractors (Figure 2C) in the neural dynamical system of C. elegans (see more details in STAR Methods). We find that there are a significant number of attractors in the activity space and all these attractors correspond to the Forward and Sustain reverse states. This observation implies that these two sustained locomotion behaviors correspond to diverse stable states, each associated with specific attractors. Different stable states indicate different thresholds to transition and different transition patterns. To further investigate other dynamical structures, we proceed by increasing the noise level. At the middle noise level, the trajectories evolve from fragmented segments (Figure 2B) to cyclic patterns (Figure 2D). Analyzing these trajectories, our model identifies two distinct limit cycles (Figure 3C solid lines). With the large noise, neural activity undergoes rapid and random oscillations between different cycles, covering a significant portion of the manifold. Ultimately, it approximates a random walk in the manifold (Figure 2E).

Model with no noise exhibits consistent behaviors, while model with large noise lacks repetitive behavior series and exhibits inaccurate state transitions (Figure 2E) compared to the transition patterns from data (Figure 3A). Consequently, neither of these extremes corresponds to the observed behavior patterns of C. elegans. For a quantitative evaluation of the consistency between simulations and actual behavior, we calculate the Kullback-Leibler (KL) divergence for both state probability and state transition probability under different noise levels in comparison to the imaging dataset (Figure 2F). Intriguingly, it indicates that both KL-divergence optimizes at middle noise levels and the estimated noise level is in close proximity to these two optimal points. This observation emphasizes the substantial impact of noise levels on the locomotion patterns of C. elegans, highlighting that the model with the middle noise level provides a more accurate explanation for its locomotion behaviors. Significantly, it also suggests that the estimated noise level serves as a suitable approximation for the optimal noise level.

Two limit cycles reveal the underlying mechanisms of the pirouette strategy

In the neural activity space, our DNN model has identified two distinct limit cycles (Figure 3C solid lines), denoted as Cycle 1 (left panel of Figure 3C) and Cycle 2 (right panel of Figure 3C). Correspondingly, the behavior series illustrates the locomotion of C. elegans within these two cycles, remarkably mirroring the two primary cycles identified in the state transition diagram derived from the data (Figures 3A and 3B). During Cycle 1, the locomotion sequence commences with forward movement and deceleration, followed by a reverse locomotion phase and sustained backward motion. Subsequently, a ventral turn occurs, leading to a subsequent switch back to forward locomotion. In Cycle 2, the locomotion begins with sustained backward movement. It then transitions into a ventral turn, which is then followed by a reversal phase to resume sustained backward locomotion. These two behavior series have also been addressed in some previous studies. Cycle 1 is denoted as basic pirouette behaviors2 and type-II transitions,3 while Cycle 2 is simply referred to as Ω turns.2 Moreover, these two behavioral sequences align with the two distinct branches of the low-dimensional manifold.5 Therefore, it is convincing that the two identified limit cycles constitute the fundamental dynamical structure governing the pirouette strategy.

Further analysis of the behavior series in the dataset reveals that flexible locomotion primarily manifests as combinations of the two typical behavior sequences mentioned earlier. We systematically enumerate all behavior sequences starting in the Forward state and ending in the Forward state. By mixing up two types of turns, and excluding all sequences of Cycle 2, the remaining sequences can be classified into two types. The first corresponds to the behavior sequences of Cycle 1, while the second involves a series of oscillations between the Forward and Slow1 states. Furthermore, the majority of behavior series in the dataset can be explained by the combination of the behavior series of the two identified limit cycles. Our simulations with middle and large noise levels validate these findings (Figure 3E). Thus, the mechanisms of locomotion are likely rooted in the intricate interaction between these two limit cycles.

To characterize the interaction between the two limit cycles, we analyze the instances of Cycle 2 within a “Forward Sustain reverse Forward” sequence. The count (Figure 3F) closely conforms to a geometric distribution (p-value = 0.0008 and expectation 1.5 for data, p-value = 0.0182 and expectation 1.5 for simulation, Goodness of fit test). The geometric distribution indicates that the probabilities of entering Cycle 1 and Cycle 2 at the intersection area are constant, i.e., independent of previous trajectories. Each “Forward Sustain reverse Forward” sequence is constituted by a Cycle 1 instance with several “Cycle 2 decisions” in the intersection area. This sequence corresponds to pirouette behaviors with several Ω turns; therefore, we term it the pirouette series. The intersection area plays a special role in choosing which limit cycle to enter, so we refer to it as the transition area (Figures 3E, 4A, and 4D).

Figure 4.

Figure 4

Potential landscape provides valuable insights into the global properties of dynamical structure

(A) The potential landscape (left) and two limit cycles with data points color-coded according to their behavior states (right). On the potential landscape the behavior states that each area corresponds to are labeled with arrows. Both landscapes are projected onto the first two principal components. Basins with attractors are distinctly separated along PC1, corresponding to the Forward and Sustain reverse states.

(B) The landscape and flux on the approximated surface of Cycle 1. The landscape prevents deviation from Cycle 1 while the flux promotes the revolving along Cycle 1. The vanishing of flux allows the freedom for diverse cyclic trajectories.

(C and D) The landscape projected onto the space of AIBL/RIVL or RIMR/AVAL activity, with two limit cycles highlighted. The transition area is highlighted to reveal the combined structure of attractor and limit cycles.

(E and F) The landscape structure in some simplified cases, including the cases with an isolated attractor in a single limit cycle (left) and with an isolated attractor in the intersection of two limit cycles (right).

We aim to investigate additional properties emerging from the dynamical structure within the transition area. Several attractors in the activity space have been identified, and notably, an attractor in the Sustain Reverse state is situated within the intersection area of two limit cycles (Figure 4D). This attractor serves as the preparation point for making decisions for movement. Additionally, we observe significant variation in the stability of the two limit cycles. In our simulations with a smaller noise level, trajectories starting from Cycle 1 exhibit almost no departures within the span of 10 periods (Figure 5C), while those starting from Cycle 2 frequently deviate after 1 to 4 periods (Figure 5D). Since the deviations mainly occur in the attractor of the transition area and the main choices at this attractor are entering two limit cycles (Figure 4D), our observation indicates that within the attractor, the probability of entering a new Cycle 1 is higher than that of entering a new Cycle 2 under small noise level. Furthermore, this observation also reveals that under the small noise level, the stability of Cycle 1 is higher than Cycle 2.

Now we aim to use the corresponding behavior series to explain the intricate interaction between two limit cycles. Both limit cycles contribute to pirouette behaviors: Cycle 1 represents the simplest pirouette behavior with only one period of Ω turn, while Cycle 2 can be characterized as a Ω turn. Given that only Cycle 1 passes through the Forward states, it plays a crucial role in initiating the pirouette, thereby laying the foundation for basic pirouette strategies. Consequently, Cycle 2 can be considered as Ω turns inserted into the pirouette behavior series. Specifically, the last Ω turn is attributed to Cycle 1, while the others originate from Cycle 2, indicating that Cycle 2 contributes to the additional Ω turns in pirouette behaviors. In summary, Cycle 2 introduces diversity to pirouette behavior, while Cycle 1 plays the role of initiation.

Energy landscape and probability flux of neural dynamics of C. elegans

While we delved into the dynamical structure that governs the locomotion patterns of C. elegans, understanding how these patterns emerge from this structure still eludes us. To delve deeper into these mechanisms, a comprehensive view of C. elegans dynamics is essential. The energy landscape, known for its efficacy, provides this global perspective. The energy landscape (also referred to as the potential landscape) has found widespread application in studying stochastic dynamics across various biological systems.18,19,26,27,28,29,30 In this approach, the dynamics of the system are modeled by a deterministic driving force F with white noise ε (Equation 1).

For simplicity, we assume the white noise here is independent Gaussian noise, that is ϵN0,D2I. Now the evolution of corresponding probabilities can be described by the Fokker-Planck equation:

dPdt=J(X,t), (Equation 2)
J(X,t)=F(X)PDP.

By calculating the steady distribution Pss which satisfies dPssdt=0, we can decompose the deterministic dynamic force into a conservative force and a flux

F(X)=DPss(X)Pss(X)+J(X)Pss(X). (Equation 3)

And the energy landscape is defined as U(X)=lnPss(X).27,28,30

Within the neural dynamics of C. elegans, incorporating the noise level estimated from the data (see more details in STAR Methods), we can calculate the energy landscape of the neural system, in comparison with two limit cycles and data points (Figure 4A). This energy landscape unfolds a global perspective, enabling an exploration of the dynamical structure formed by attractors and the two limit cycles. Within the energy landscape, the attractors form two distinct basins separated along the first principal component, with the deepest three attractors aligning with the positions of the two limit cycles. These attractors collectively contribute to the stability of the sustained locomotion. Within the three attractors situated at the two limit cycles, the leftmost corresponds to the Forward state, while the others align with the Sustain Reverse. Their special locations indicate that these attractors take a higher potential for starting a pirouette while others not. Remarkably, the central attractor among these three aligns with the previously discussed transition points (the attractors in the transition area).

For a deeper exploration of the dynamical structure shaped by two limit cycles, we present the energy landscape from various perspectives (Figures 4C and 4D). Additionally, we overlay the flux onto the potential landscape (Figure 4B) within the least square surface of Cycle 1. In the energy landscape (Figure 4A), the two limit cycles partition the space into two branches, forming tube-like orbits for cyclic behaviors. The transition area is the sole region connecting the two branches. In the least square plane (Figure 4B), we observe the flux nearly vanishing in certain sections of the limit cycles, permitting diverse cyclic trajectories around the limit cycle. Indeed, we have observed various cyclic trajectories around Cycle 2 (Figure 3D). In other words, these trajectories deviate from the Cycle 2 but still maintain cycling in a neighborhood of Cycle 2. These cyclic trajectories add to the diversity of Ω turns, corresponding to different lasting times and turning angles. The vanishing of flux in Cycle 1 forms another path connecting the Forward and Sustain Reverse state, by passing through the Dorsal turn states (Figure 5B, right panel). This dorsal-turn path, when companied with the two limit cycles, constitutes all the paths connecting the Forward and Sustain Reverse state (Figure 5B, right panel), exhibiting a noteworthy deviation in RIVR activity level. Consequently, in pirouette behaviors, RIVR activity emerges as a valuable indicator for distinguishing the current activity path and predicting the future locomotion of C. elegans. Importantly, the branch of Cycle 2 exhibits higher RIVR activity levels than the branch of Cycle 1 (Figure 5C). Given that Cycle 2 represents the additional Ω turns, this observation may provide a dynamical explanation for the prior finding that higher RIVR activity aligns with frequent Ω turns.31

To reveal how the transition patterns rise from the dynamical structure, we focus on the transition area, where an attractor is positioned, and two limit cycles intersect (Figure 4D). This attractor shapes steady-state probabilities with a Gaussian distribution,17,32 creating a potential basin in the landscape. Simultaneously, limit cycles offer potential escape routes. Since the real structure in the transition area is complex, we initiate our exploration with simplified cases. Notably, the other two attractors in the limit cycles (Figure 4A) represent the simplest case where an isolated attractor is situated at a single limit cycle. Here, the sole escape route is along the direction of the limit cycle (Figure 4E). Attempts to escape in other directions lead to trajectory retracement and prolonged duration within the attractor. This finding elucidates the varied durations observed at the Forward state attractor in repeated traces (Figure 5C).

We now consider the cases featuring an isolated attractor at the intersection of two limit cycles. The two escape directions signify transitions into distinct limit cycles, whereas directions diverging from these lead back to the attractor (Figure 4F). Switching probabilities to different cycles are solely determined by the variance ratio of the Gaussian distribution along the directions of the two cycles. This implies that the probability is solely determined by the transient information at the attractor, irrespective of previous trajectories. Consequently, a geometric distribution emerges for the number of one type of limit cycle between two with the other type. From this perspective, manipulating the covariance of the attractors can influence both the evolution of the system and the rates of the two limit cycles.

However, we observe that real cases in the transition area unfold with greater complexity. In such instances, the attractor is positioned at Cycle 2, while Cycle 1 merely intersects the neighborhood of the attractor (Figure 4D). This scenario bears resemblance to the earlier case under sufficient noise levels, yet an exceedingly small noise here may result in a decrease of the transitions. Consequently, under low noise levels, the divergence from Cycle 1 at the transition point becomes challenging, contributing to the greater stability of Cycle 1 compared to Cycle 2. In these instances, aside from the directions of the two limit cycles, there exist escape routes toward other attractors. This results in sustained locomotion and an inertial response for transition, as returning to the two limit cycles incurs considerably higher costs.

Since the Gaussian noise is used in our model for the landscape analysis, we hope to have some discussions on the roles of Gaussian noise. Gaussian white noise is commonly employed in biological modeling and stems from diverse sources.18,27,33 These sources categorize white noise into sensory noise, cellular noise, electrical noise, and synaptic noise.34 In our model, Gaussian noise plays a crucial role in facilitating escape from attractors. This departure from stable states helps initiate the pirouette behavior. The primary attribution of these roles can be ascribed to electrical and synaptic noise, as behavior persistence appears to be more intrinsic and less susceptible to external stimuli and neural variability. On the other hand, Gaussian noise plays a vital role in the transition domain and the creation of diverse cyclic trajectories, contributing to the overall diversity of pirouettes. This diversity is mainly attributed to sensory noise, given that the choices of strategies are inherently adaptive to external stimuli. In short, sensory noise drives the diversity of navigation strategies, whereas electrical and synaptic noise contributes to the completeness of pirouette behaviors.

Energy landscape confirms and predicts neural functions and circuits

Having unveiled the intricate transition patterns governing C. elegans’ locomotion and the corresponding dynamical structure, our focus now shifts to elucidating the pivotal roles of specific neurons for locomotion. This exploration leverages insights from two limit cycles and corresponding energy landscape. Delving into the dynamics of activity within two limit cycles and the landscape’s contour, we observe that the Forward state is accompanied by the high levels of AVBR activity, while the Sustain reverse state is always accompanied by the peaks of AVAR activity (Figure 5A). This substantiates the roles of AVBR in fostering forward locomotion and AVAR in supporting backward locomotion. Notably, the landscape configurations for AVAR and AVBR adopt an “L” shape (Figure 5A), suggesting that both neurons might not simultaneously reach the action potential. Additionally, in two limit cycles, RIVR’s activity peeks at the start of ventral turns during the initial phase of slow down (Figure 5B), confirming its pivotal role in initiating Ω turn. This observation also predicts the potential contribution of RIVR activity to the preparatory phase before reversal, given that the Slow state preludes the transition to reversal. Similarly, analysis of the energy landscape with two limit cycles points to RIM and AVE as promoters of backward locomotion (Figures S5C and S5D), RIB as a facilitator of forward locomotion and turns (Figure S5B), and AVE as a potential initiator of ventral turns (Figure S5C). Furthermore, an analysis of activity within two limit cycles uncovers that AIB follows an ascending trajectory spanning the entire reverse phase and the initial segment of ventral turns (Figures S6A and S5D). This observation underscores the potential of AIB in facilitating turns and signaling reverse behavior. The patterns of the energy landscape for pairs such as RIMR and AVAL, AVBR and RIBL, and AVER and RIMR strikingly resemble straight lines with positive correlations (Figures S5A–S5C), hinting at the possibility that these neuron pairs might belong to the same functional module for navigation.

Sequential activation can be identified through the analysis of the two limit cycles, given that the locomotion patterns predominantly revolve around these cycles. An intriguing pattern emerges from the projection of two cycles: an impulse in AIBL is succeeded by a delayed impulse in RIVL during forward and turning states (Figure S6A). The observed pattern strongly suggests sequential activation between these two neurons. It also confirms the earlier findings that connections between AIB and RIV contribute to the sequential activation, along with the feedforward coupling between the backward and turning module.3 Moreover, similar sequential activations “AVAL RIMR” and “AVER RIMR” can be indicated by the projections of limit cycles (Figures S5A and S5C). Taking into account neural connectivity,35,36 our observations unveil a segment of a neural circuit involving AVA, RIM, and subsequently AVE/AIB. Notably, this neural circuit aligns with components of the circuit for navigations.22,31 This discovery underscores our model’s capability to identify crucial neural circuits that govern locomotion strategies.

The simulation of inhibition efficiently unveils the function of specific neurons

To depict the impact of inhibiting certain neurons in our model, we introduce an inhibitory force (see more details in STAR Methods) targeted at certain neurons. This intervention is designed to explore its impact on the locomotion behaviors and corresponding dynamical structure (Figures 6A and 6B). Following inhibition, trajectories originating from Cycle 1 uniformly converge toward new attractors in the Forward and Sustain reverse states (Figures 6C and 6D). Examination of the landscape post-inhibition of RIV reveals the disruption of the original tube-like orbits of the two cycles. The only remaining structure is two branches containing the Forward and Sustain reverse basins, and the region associated with the Ventral turn states is almost submerged by the infeasible areas. These results highlight that inhibiting RIV effectively suppresses ventral turns, providing an explanation for previous observations that the elimination of RIV leads to a reduction in the frequency of Ω turns.3,31 Since two branches correspond to the forward and backward locomotion and an additional barrier separates these two states, inhibition of neuron RIV might also contribute to a decreased frequency of behavioral transitions. Importantly, the changes in the potential landscape during the increment in inhibition levels vividly depict the diminishing process of ventral turns (Figure S7).

Figure 6.

Figure 6

Disabling RIV inhibits the transition between forward and backward locomotion and reduces the likelihood of ventral turns

(A) The energy landscape after disabling the RIVR (right) compared to before (left), projected onto the space of AIBR and RIVR activity. The feasible region is shifted toward where RIVR activity is 0.

(B) The landscape after disabling the RIVR, projected onto the first two PCs. The feasible set is divided into two branches. The feasible set is split into two branches. The pathway between the Forward state and the Sustain reverse state is disrupted. The area associated with the Ventral Turn states is almost entirely covered by the infeasible regions (compared with Figure 4A).

(C and D) Simulations of neural activity after disabling RIVR, starting from various points within Cycle 1. The trajectories all converge to either the left side (Forward) or the right side (Sustain reverse), depending on their initial location.

To quantify the impact of inhibiting certain neurons, we conduct calculations on the state probability after inhibiting individual neurons (Table 1). This particular analysis of state probability serves as both validation and prediction of the functional roles of distinct neurons. Our observation aligns with established knowledge: AVB promotes forward locomotion,1,2 AVA promotes backward locomotions1,2 and RIV underlies the ventral asymmetry of Ω turns.2,31 The decreased probability of forward locomotion states (Forward and Slow) following RIB inhibition verifies the prior conclusions that RIB promotes the speed of forward locomotion but not backward locomotion.37 Similarly, the diminished occurrence of the Sustain reverse state and the concurrent increase in the Reverse state after inhibiting RIM confirms RIM’s involvement in backward locomotion3 and supports earlier observations that eliminating RIM neurons results in inappropriate persistence of short reversals after food removal.31 Besides, our simulation also verifies that inhibiting neuron RIV during turns restored mechanosensory-evoked reversals.38 Earlier studies have indicated that inhibiting AIB results in a reduction in Ω turns (Dorsal/Ventral turn) and long reversals (Sustain reverse), while leads to an increase of short reverse (Reverse state).31 Our simulation for AIBL repeats this phenomenon and the simulation for AIBR supports the statement for decreases of turns. However, the outcome of inhibiting AIBR manifests in more frequent long reversals and fewer short reversals, suggesting that AIBL and AIBR may play different roles in the decoding of behaviors for navigation. Furthermore, our simulations offer predictive insights, indicating that RID may indeed promote forward locomotion, while neuron ALA, known for inducing the sleep phenotype,39 might not significantly contribute to the locomotion within the navigation. The observed decrease in dorsal turns after inhibiting RIM underscores RIM’s specific importance in dorsal turns.

Table 1.

The probability of states after different neurons being inhibited

Neurons Forward Slow Dorsal turn Ventral turn Reverse Sustain reverse Supporting references& Predictions
DEFAULT 17.00% 16.87% 9.59% 9.58% 10.15% 36.81% The default state probability.
AIBL 4.03% 7.23% 0.19% 0.29% 50.09% 38.18% Turns, Sustain reverse3,31
AIBR 1.47% 7.68% 0.04% 0.33% 8.28% 82.19%
ALA 17.47% 20.53% 4.40% 21.31% 8.15% 28.13% Unrelated to the locomotion
AVAL 26.80% 16.39% 5.00% 20.44% 28.67% 2.69% Sustain reverse1,2,20
AVAR 26.09% 7.37% 1.55% 32.17% 22.31% 10.52%
AVBL 33.56% 2.39% 6.41% 9.83% 11.15% 36.65% Forward locomotion (Forward and Slow)1,2,20
AVBR 2.94% 2.60% 15.30% 15.40% 20.71% 43.06%
AVER 17.20% 3.47% 1.70% 0.29% 8.42% 68.93% Reverse, Sustain reverse1,2
RIBL 5.04% 2.19% 15.53% 11.26% 13.89% 52.09% Forward (promote only forward locomotion speed)37
RID 6.27% 15.54% 7.69% 12.52% 8.37% 49.61% Promote Forward locomotion
RIML 8.97% 5.19% 0.51% 0.21% 74.43%∗ 10.70% Promote Sustain reverse3 and high probability of short reversals (Reverse state) after inhibition31
RIMR 3.56% 7.97% 2.99% 7.07% 63.60%∗ 14.80%
RIVL 4.71% 12.49% 21.45% 0.51% 9.36% 51.49% Ventral turn3,31
RIVR 9.43% 8.12% 6.17% 2.10% 6.98% 67.20%

States with a probability decrease of less than 40% after inhibition are formulated in bold, while those with a probability increase of more than six times are labeled with symbol ∗.

In the neural system some neurons function as highly connected and pivotal network hubs, facilitating communication between functionally separated local clusters and exhibiting tightly coupled gene expression.40,41,42 Thus, identifying these hub neurons, even without explicit neural connectivity information, is crucial for a better understanding of neural network mechanisms. We quantify the impact of inhibiting specific neurons by calculating the KL divergence of state probability (Figure S8). Our analysis reveals a positive correlation between KL divergence and the degree of neurons35,36 in the neural connectivity (with a correlation coefficient of r=0.6101). It also indicates that neurons ALA, RID and RIV may be the periphery part while AIB, AVA, AVE and RIM are more like hubs. Notably, recent studies have also identified AIB, AVA, and AVE as hubs.40,41 Thus, our model may serve as an indicator for identifying neurons that function as hubs in the absence of explicit connectivity information.

Discussion

In this study, we utilize a deep-learning approach to reconstruct the neural dynamics of C. elegans. We introduce two methods: the clustering division method and a deep neural network (DNN) strategy, to explain the locomotion behaviors observed in our simulations. Our DNN model stands out from other artificial neural network models for C. elegans by not only reconstructing the neural dynamics but also enabling an in-depth exploration of the dynamical mechanisms that govern C. elegans’ locomotion. The dynamical analysis yields several advantages. Firstly, it helps us to capture the key dynamical structure, such as two limit cycles and attractors in the transition area, offering insights into the flexible patterns of locomotion. Second, the dynamical system allows for the introduction of noise, providing a platform to study the roles of noise. It indicates that appropriate noise contributes to the complexity and diversity of pirouette strategies. Thirdly, the reconstructed dynamics lays the foundation for the calculation of the energy landscape, which offers effective tools for investigating the global dynamical properties and explains the mechanisms of strategies switching. Finally, the reconstructed dynamics enables the simulation for inhibiting specific neurons, aiding in the revelation of the distinct roles played by each neuron.

Our DNN model helps investigate the dynamical properties by reconstructing neural dynamics from data. However, there also exist other approaches for investigating the dynamical properties of data. Recent studies have employed delay-embedding methods to linearize the dynamics of data in a higher-dimensional space.43 This linearized approach provides potent methods for comparing the similarity between two datasets by introducing a distance function based on linearized dynamics. Compared to these approaches, our reconstructed dynamics preserves the original activity space, enabling us to investigate more biophysical properties by introducing the energy landscape and simulating the inhibition of specific neurons.

Electrical synapses play diverse roles in neuronal development, circuit regulation, and stress conditions.44,45 In our dynamical model, the energy landscape offers an intuitive method to explore the impact of gap junctions. The energy landscape projected onto pairs like AIBL and RIVR, and AIBL and RIVL, reveals that the former pair can be almost regarded as the latter one compressed into a diagonal line (Figures S6A and S6B). Essentially, the dynamics between the former pair is approximated by introducing a “compressing force” into the dynamics of the latter pairs (see more details in STAR Methods). In the neural network, the connectivity of these two pairs differs due to an additional electrical connection in the former pair.35,36 Therefore, the “compressing force” may serve to approximate and intuitively depict the influence of electrical junctions.

The dynamical results from our DNN model reveal a fundamental navigation strategy in C. elegans, involving switching between two limit cycles. During our study, C. elegans was immobilized in a microfluidic chamber, and the recording began within 5 min after removal from food.20 The navigation may encompass both local search foraging behavior and escape and avoidance behaviors when contacting the walls.46,47 The dynamical structure, characterized by two limit cycles, offers an explanation for the navigation strategy in both scenarios. In local search, the selection of Cycle 2 at transition points might assist the worm in deciding whether to engage in precise local foraging. In escape or avoidance behaviors, the choice of Cycle 2 at transition points may determine whether the current direction is suitable or if the worm should explore another direction for escape or avoidance. In short, the dynamical structure enhances our understanding of C. elegans navigation in various circumstances.

Limitations of the study

While our study introduces methods to reconstruct the neural dynamics of C. elegans and investigate the underlying mechanisms for locomotion, there are several limitations associated with our approaches. First, different neurons in many systems exhibit distinct time constants, resulting in varied dynamics timescales. However, our DNN model currently has limitations in effectively evaluating these time constants. Future research combining the neural activity data with the detailed neural connectivity information holds the potential to reveal various time constants governing neural dynamics in a more comprehensive manner. Another limitation in our model is the assumption of noise form. While we assume the noise following a Gaussian white noise pattern, it is acknowledged that noise in biological systems might not strictly conform to a Gaussian distribution. This assumption is rooted in the context of our approaches, which involve introducing the energy landscape of C. elegans’ neural system. Our methods for quantifying the energy landscape rely on the assumption that the noise adheres to a Gaussian distribution. In instances where the noise is not Gaussian, previous methods often need the numerical integral, which is very challenging in high-dimensional space. Consequently, we limit our current study to these simplified cases, with the anticipation of addressing non-Gaussian scenarios in future investigations.

STAR★Methods

Key resources table

REAGENT or RESOURCE SOURCE IDENTIFIER
Deposited data

Kato2015 whole brain imaging data Kato et al.20 https://osf.io/2395t/

Software and algorithms

MATLAB R2020b Commercially Available Software (Mathworks) N/A
Pytorch 1.13.0 GitHub https://pytorch.org/
Python 3.8 Python Software Foundation https://www.python.org/
Custom computer code This paper https://github.com/minecraburn/DNN_for_Celegans

Resource availability

Lead contact

Further information and requests can be directed to the lead contact, Chunhe Li (chunheli@fudan.edu.cn).

Materials availability

This study did not generate new physical materials.

Data and code availability

  • All data used in this study is publicly available: Kato2015 whole brain imaging data is available at https://osf.io/2395t/.

  • All original code has been deposited at https://github.com/minecraburn/DNN_for_Celegans and is publicly available as of the date of publication.

  • Any additional information required to reanalyze the data reported in this article is available from the lead contact on request.

Method details

Choice of the phase space

The neural activity of about 100 neurons in the head ganglia was recorded simultaneously for five elegans through Ca2+ Imaging by Kato et al.,20 with fixed frame rates (2.90, 2.90, 2.83, 3.07, 2.80 frames per second for five animals respectively). Our model is based on this dataset. Each elegans was immobilized in a microfluidic chamber. Recordings were started within 5 min after removal from food with constant 21% O2, and the recordings last for 18 min. Only part of the 100+ neurons can be recognized and labeled names. There are only 21 commonly recognized neurons for five animals, and we choose d=14 common neurons to span our phase space. The 14 neurons are AIB(L/R), ALA, AVA(L/R), AVB(L/R), AVER, RIBL, RID, RIM(L/R), RIV(L/R). The trace data of activity for five animals can be noted as {xti}(i=1,..,n.1tTi) for n=5. Each xti means a 14-dimension (d = 14) vector in the phase space. We also apply the normalization and principal components analysis of the trace data {xti} to get the principal components for illustrating the trajectories and landscapes.

The deep learning method for reconstructing neural dynamics

In this section, we will introduce a deep-learning method to approach the dynamic force. Since we apply our method to five animals separately, in this section we will take the 1st animal for example. Following previous works,19 the change in neural activity of C. elegans can be described as a stochastic dynamical system formulated by (Equation 1) where ϵ=(ϵ1(t),,ϵd(t))T is the d-dimensional independent Gaussian white noise which means

E[ϵi(t)]=0, (Equation 4)
E[ϵi(t)ϵj(tˆ)]=2Dδijδ0(ttˆ).

Here, δ0 is the Dirac delta function. For simplicity, we assume the white noise here is homogeneous and independent of the current neural activity, so D is the constant diffusion coefficient and

δij={1,i=j0,ij (Equation 5)

We use the deep learning method and employ a curve fitting method to learn the dynamic force from the data. The key point is to use a function Fˆ to approximate the dynamics F in the stochastic dynamical system (1). In the dynamics reconstruction process, the stochastic term is omitted. In other words, the data trajectories {xti} can be generated by Equation 1. Note δt as the time between two frames of the data trajectories {xti} (between xti and xt+1i). By dividing δt into s segments, the dynamical process can be discretized using the single-step explicit scheme and we can define the evolution map as

gFˆ:xx+δtsFˆ(x).

For a nice approximation Fˆ of F, the position (i.e., gFˆms(xti)) after time mδt in the dynamical system for Fˆ should be close to that (i.e., gFms) in the dynamical system for F (here m,s are hyperparameters). Since in our model we assume that the data trajectories can be generated by the dynamical system with F, we immediately have gFms(xti)=xt+mi. Therefore, the error of the approximation can be quantified by the distance between xt+mi and gFˆms(xti). To reduce the influence of the Gaussian noise, we also introduce a smoothed data trace for approximation

x˜t=c1xt1i+xti+c1xt+1i2c1+1, (Equation 6)

where c1 is the smooth coeficient. Since for a test problem F(x)=ax(a>0), gFm(x) will increase exponentially, an infeasible initialization for the coefficient will cause numerical issues in computing the loss function and may result in global non-convergence in optimization for the coefficients for neural networks. Therefore, instead of using the neural network to learn F directly, we use the network to approximate

f(x)=Fˆ(x)+kx, (Equation 7)

where k>0 is the correction coefficient. At the initial stage, the approximate dynamic force Fˆ(x)=f(x)kx will be dominated by the term kx, which overcomes the numerical problem mentioned above.

Now we can define the error of approximation, i.e., the loss function for the neural network. For tTim1, the single error ζ at xti with a duration of mδt is,

ζfxti=k=1mxt+kgFˆksxti2=k=1mxt+kgfkxksxti2. (Equation 8)

The total loss function ε(f˜) will be the average of all single error

ε(f˜)=t=1T1mζf˜(xt1). (Equation 9)

We use a DNN to construct f˜. The neural network model we use contains three hidden layers. All the hidden layers contain 120 nodes. The number of neurons in the input layers and output layers is equal to the number of neurons in our model, i.e., the d=14 consistently and unequivocally identified neurons. The neural network is trained by the standard gradient optimization (RMSprop optimizer in Pytorch). The learning rate starts from 102, and decreases when the loss function does not decrease for several epochs, until less than 108. Finally, the trained DNN can be represented as a function with the neural dynamics input x and output as part of the dynamics

fx=b4+w4·Sigmoidb3+w3·ReLUb2+w2·ReLUb1+w1·x.

In practice, we find that too large segment coefficient m,s in (Equations 8 and 9) will cause the divergence, and too small m,s will cause the unfitness for longer traces. In practice, s=3 and m=2 is a practical setting. Besides we find the correction coefficients k=1 in (Equation 7) and smooth coefficient c1=1 in (Equation 6) are suitable.

After the neural network is trained and the dynamic force F(x)=f(x)kx is obtained, we use the discretization of the dynamical system (1) to simulate the trace. Fixing a start x0, we can generate a independent sequence {ri}N(0,σ2I) and get the simulate trace by

x(iΔt)=x((i1)Δt)+F(x((i1)Δt))Δt+riΔt.

Since the data points are confined in a low-dimensional space, the areas around the data points are most meaningful. Therefore, we pick the start point x0 randomly around the data point:

tUniform(1,Ti),
τN(0,σˆ2),
x0xti+τ,

where σˆ2 is the MLE of covariance in (Equation 14). To identify the attractors in the stationary points, we conduct additional simulations starting from points neighboring these stationary points. We record the rates at which the trajectories returned to these points and those with returning rates exceeding 95% will be identified as attractors.

We also investigate the effects of inhibiting specific neurons in our model. When targeting the inhibition of neuron i, our objective is to nullify the i-th neural activity. To achieve this, we introduce an “inhibition force”, and Equation 1 is modified to the following form:

dxdt=Fxc2eiT·xei+ϵ. (Equation 10)

Here, the dynamic force F is now replaced by F(x)c2(eiT·x)ei, where ei is a d-dimension vector with 1 as the i-th element and 0 as other elements. This introduces an external force to the neural network, and for any neuron activity x, the output of the DNN serves as the function f(x). The modified dynamics are then calculated as F(x)c2(eiT·x)ei=f(x)kxc2(eiT·x)ei. A simple mathematical analysis reveals that selecting a sufficiently large coefficient c2 will drive the i-th activity to zero. Therefore, an adequately chosen c2 serves to inhibit the corresponding neural activity in our model.

Similarly, the “compressing force” between neuron i and neuron j can be applied by replacing F(x) by F(x)c3(eiej)(eiej)Tx. The effect of electrical synapses can be modeled by the “compressing force” in our model.

Calculation of state transition probability and behavioral decoding of phase space

We record all the periods of Slow states with durations less than 0.5 s. Surprisingly, all these Slow states start from two types of turns (Dorsal turn and Ventral turn) and ultimately transition to the Reverse state. Therefore, to distinguish these Slow states, we will refer to them as “Slow2” states, while the others will be denoted as “Slow1” states. The durations of Slow2 states are less than 0.5s and keep for only 1 2 frames. Now, the q=7 different states of locomotion of C. elegans will be Forward, Slow1, Slow2, Dorsal turn, Ventral turn, Reverse and Sustain reverse, which are represented as the first through seventh states.

To calculate the number of state transitions from state i to state j, we can use the statistic:

Nij=k=1n#{t:State(xtk)=iandState(xt+1k)=j}.

The state transition probability can be then calculated by,

pij=Nij1kq,kiNik,pijwhole=Nij1k,lq=7,klNkl.

To explain the locomotion behaviors in the simulation, we need to extend the behaviors observed in data trajectories across the entire activity space. We introduce two methods for segmenting the activity space into various labeled behaviors: the clustering division method and the DNN method. In the clustering division method, we first apply the clustering on data points with each behavior separately. Using the Agglomerative Hierarchical Clustering on data with norm L2 and the stopping max radius 0.07, each type of behavior point is divided into clusters with cluster center {yki}(1i,1kni). Finally, behavior ι(x) is assigned to the point x by,

ι(x)=argmin1iq{min1knixyki2}. (Equation 11)

In the DNN method, we similarly use the neural network to give the behavior series. A net with three hidden layers of all 120 nodes and the activation functions ReLU, ReLU, Sigmoid sequentially is employed. Obviously, the input size is d=14, the size of phase space, and the output size is q=7, the number of states. The neural activities are taken as input while state predictions are produced as output. We use the behavior series in the imaging dataset to optimize our neural network and use it to give out the behavior series of our simulations.

The energy landscape of C. elegans’ neural dynamics

To globally explore the dynamical structure, we introduce the energy landscape approach. Firstly, the neural systems can be described by the stochastic system (Equation 1). The steady probability distribution can be formulated by the Fokker-Planck equation:

Pss(x)F(x)+F(x)·Pss(x)=ΔPss(x) (Equation 12)

with boundary condition,

(F(x)Pss(x,t)DPss(x,t))·n(x)=0xΓ, (Equation 13)

where D=σ22 is the diffusion coefficient, Γ=Ω is the boundary for the activity space Ω and can be given by {0xi2}. After obtaining the steady probability distribution Pss(X), we can then get the energy landscape U(z)=lnPss(z) and the flux J(X) from (Equation 2). However, since the curse of dimensionality rises from the high dimension, it’s difficult to solve it directly, and methods approximating the solution are needed.

We first estimate the diffusion coefficient D, i.e., the half of σ2 using the MLE:

σˆ2=1δti=1n(Ti1)i=1nt=1Ti11dxt+1ixtiF(x)δt22. (Equation 14)

When the system is a multistable system with only attractors, previous works17,27,28,32,48 have shown that Pss can be formulated as a combination of Gaussian distributions:

Pssz=12πdetΣxd/2e12zxTΣx1zx, (Equation 15)

and the mean and covariance of each Gaussian distribution can be calculated by the convergent values from the ODEs,

dxdt=F(x(t)), (Equation 16)
dΣ(t)dt=Σ(t)AT(x(t))+A(x(t))Σ(t)+σ2I,

where the matrix A is the Jacobi of F, i.e., Aij=Fi(x(t))xj(t). When it comes to the periodic oscillation systems with limit cycles, we need to introduce a new method for calculating landscape. In this approach for periodic oscillation systems, the steady probability can be formulated as,

Pssx=Cqz12πd/2e12xzTΣz1xzdzCqzdetΣzdz, (Equation 17)

where C:={x(t):t[0,T0]} is the limit cycle. For any point z in C, let v1(z)=x(t)x(t)2=F(x(t))F(x(t))2 be the direction of limit cycle and v1(z),v2(z),,vn(z) be an orthonormal basis. Let Q=(v2,,vn). The covariance matrix Σ(z) rises from the matrix equation,

ΣˆQTATQ+QTAQΣˆ+2DIn1=0 (Equation 18)

with Σ=QΣˆQT+d0v1v1T, where d0 is a small coefficient. The former one is equivalent to the linear equation,

[I(QTAQ)+(QTAQ)I]vec(Σˆ)=2Dvec(In1). (Equation 19)

The density function q(t)=q(x(t)) can be calculated by the following equations,

q(t)=e1D0tg(s)2ds[q(0)C00t1Dg(s)e0s1Dg(u)2duds], (Equation 20)

where,

C0=q(0)(1e1D0T0g(s)2ds)0T01Dg(s)e0s1Dg(u)2duds (Equation 21)

and g(t)=F(x(t))2. More details can be seen in next section. By combining two approaches we can calculate the potential landscape of the neural dynamics of C. elegans.

The landscape construction for limit cycle system

When applying the original Guassian-like approaches17 to periodic oscillatory systems, we face a challenge where the covariance matrix may diverge to infinity. Hence, a novel and efficient method is required for computing the landscape of such periodic oscillatory systems. To approximate the solution of the Fokker-Planck equation, we introduce a novel method designed specifically for calculating the landscape of limit cycles. First, let’s provide a restatement of the methods for calculating the landscape of multistable systems and attempt to explain the reason for the divergence issue. When we reorder Σ(x(t)) to a vector σ(t), the equation for solving the covariance can be reformulated as follows:

dσ(t)dt=(IA+AI)σ(t)+2D·vec(I). (Equation 22)

This reveals that the evolution equation for covariance is essentially a linear ordinary differential equation. As the system’s state, represented by x(t), eventually approaches an attractor x, it’s observed that around this attractor: vTA(x)v<0 holds for all vector vRd. Consequently, the steady covariance matrix σ1 can be formulated as:

(IA(x)+A(x)I)σ1+2D·vec(I)=0.

Under certain conditions, if vTA(x)v<0 holds for all vectors vRd, it follows that vT(IA(x)+A(x)I)v<0 holds for all vectors vRd. This means that the evolution matrix (IA(x)+A(x)I) is non-singular, and all its eigenvalues are negative. These properties ensure the convergence of the covariance equations described in Equation 22. However, when these approaches are employed for limit cycles, these properties can potentially break down, leading to the divergence issue observed in the iteration methods. In a periodic oscillatory system, as x(t) approaches a limit cycle, it becomes almost periodic with a period T0. Consequently, Equation 22 can be reformulated into the following equation:

dσ(t)dt=C(t)σ(t)+2D·vec(I),

where C(t) is defined as:

C(t)=IA(x(t))+A(x(t))I (Equation 23)

This equation is subject to the boundary condition:

σ(T0)=σ(0). (Equation 24)

The numerical solution for Equation 23 can be expressed as:

σ(0)=σ(T0)=Bσ(0)+b0, (Equation 25)

where B is computed as:

B=limn+i=1n[I+T0nC(ninT0)], (Equation 26)

and b0 is calculated as:

b0=2Dlimn+k=1ni=1nk[I+T0nC(ninT0)]·vec(I).

Therefore, the steady correlation can be determined by Equation 25, i.e.,

(IB)σ(0)=b0,

if the solution exists and is feasible. However, when dealing with a limit cycle instead of an attractor, it’s possible that vTAv is non-negative for the limit cycle direction v, and the eigenvalue of A+AT may also be non-negative. Consequently, the matrix B in Equation 26 can become singular, and the solution may become infeasible. This is where the limitation of the iteration methods comes into play. From a global perspective, this limitation arises from the fact that the original hypothesis - that a Gaussian-like distribution will maintain its Gaussian shape in a moving local area - does not hold in this context. Instead, the origin Gaussian-like distribution will gradually fill the entire limit cycle. Therefore, the introduction of the novel method is necessary to address this issue. We start by assuming that around the limit cycle, the steady probability can be approximated as a low-rank Gaussian distribution in the orthogonal space to the tangent direction (the direction of F(x)). This distribution is characterized by two functions: q(x) and Σ(x). The probability density function p(x) is defined as follows:

px=Cqz12πd/2e12xzTΣz1xzdzCqzdetΣzdz, (Equation 27)

Here, C represents the limit cycle, q(x) and Σ(x) are functions for x, and the following paragraphs will show how to calculate them. We assume that in the steady state, there exists a local neighborhood where the flux (including Gaussian noise) entering or leaving maintains a balance at any point on the boundary of this neighborhood. As a result, the correlation matrix of the low-rank part (excluding the direction of F(x)) can be obtained through a similar procedure as original approaches17,32 by excluding the direction of F(x) from the matrix. Let’s denote v1=F(x)F(x)2 as the unit vector in the tangent direction, and v1,,vn as a orthonormal basis. We define a matrix Q as Q=(v2,,vn). The correlation matrix for v2,..,vn, denoted as ΣˆR(d1)×(d1), can be calculated through the equation:

ΣˆQTATQ+QTAQΣˆ+QTDQ=0. (Equation 28)

The solution can be obtained by:

vec(Σˆ)=2D(IQTAQ+QTAQI)1vec(I). (Equation 29)

Then the perpendicular part of Σ is given by QΣˆQT. Also, we find that the tangent part of Σ does not affect the final distribution around the limit cycle significantly, as it can be influenced by the density q(x). Therefore, a fixed term is chosen as the tangent part:

Σ=QΣˆQT+d0v1v1T,. (Equation 30)

Here, d0 is a small coefficient, usually taken as the diffusion coefficient D. Let’s continue with the calculation of the density q(x) by restricting the Fokker-Planck equation to the limit cycle, which is essentially a one-dimensional manifold. The equation for this density can be formulated as follows:

(F(x)q(x)Dq(x))=0. (Equation 31)

Since x(t) is one-dimension, this is equivalent to,

F(x)q(x)Dq(x)=C0,
dqdx=1D(F(x)·dxdtdxdt2·q(x)C0).

With the properties of the limit cycle, we have,

dqdx=1D(F(x)2·q(x)C0).

Let C={x(t):t[0,T0]} be the limit cycle such that dxdt=F(x), and note g(t)=F(x(t))2. We have,

dqdt=dxdt·1D(g(t)·qC0),
dqdt=g(t)2DqC0g(t)D,
q(t)=e1D0tg(s)2ds[q(0)C00t1Dg(s)e0s1Dg(u)2duds].

Since q(0)=q(T0), we have,

q(0)=e1D0T0g(s)2ds[q(0)C00T01Dg(s)e0s1Dg(u)2duds].

Since replacing q(x) by C2q(x) for any C2(0,+) results the same final distribution p(x), we can take q(0)=1, and immediately have,

C00T01Dg(s)e0s1Dg(u)2duds=(1e1D0T0g(s)2ds),
C0=(1e1D0T0g(s)2ds)0T01Dg(s)e0s1Dg(u)2duds.

Finally, the density function q(t) can be calculated by,

q(t)=e1D0Tg(s)2ds[q(0)C00t1Dg(s)e0s1Dg(u)2duds]. (Equation 32)

Quantification and statistical analysis

Statistical analysis was performed using MATLAB version R2020b, unless mentioned otherwise.

Acknowledgments

C.L. is supported by the National Key R&D Program of China (2019YFA0709502) and the National Natural Science Foundation of China (12171102). Y.Y. thanks for the support from the Science and Technology Innovation 2030 - Brain Science and Brain-Inspired Intelligence Project (2021ZD0201301), the Shanghai Municipal Science and Technology Major Project (2018SHZDZX01) and ZJLab, Shanghai Municipal Science and Technology Committee of Shanghai outstanding academic leaders plan (21XD1400400).

Author contributions

C.L. and R.Z. designed the research; R.Z. performed the research; R.Z., Y.Y., and C.L. analyzed the data; R.Z. and C.L. wrote the paper; R.Z., Y.Y., and C.L. revised the paper.

Declaration of interests

The authors declare no conflict of interest.

Published: April 17, 2024

Footnotes

Supplemental information can be found online at https://doi.org/10.1016/j.isci.2024.109759.

Supplemental information

Document S1. Figures S1–S8
mmc1.pdf (17.2MB, pdf)

References

  • 1.Lanza E., Di Angelantonio S., Gosti G., Ruocco G., Folli V. A recurrent neural network model of C. elegans responses to aversive stimuli. Neurocomputing. 2021;430:1–13. [Google Scholar]
  • 2.Soh Z., Sakamoto K., Suzuki M., Iino Y., Tsuji T. A computational model of internal representations of chemical gradients in environments for chemotaxis of Caenorhabditis elegans. Sci. Rep. 2018;8:17190–17214. doi: 10.1038/s41598-018-35157-1. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 3.Wang Y., Zhang X., Xin Q., Hung W., Florman J., Huo J., Xu T., Xie Y., Alkema M.J., Zhen M., Wen Q. Flexible motor sequence generation during stereotyped escape responses. Elife. 2020;9 doi: 10.7554/eLife.56942. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 4.Shen Q., Liu Z. Remote firing propagation in the neural network of C. elegans. Phys. Rev. E. 2021;103 doi: 10.1103/PhysRevE.103.052414. [DOI] [PubMed] [Google Scholar]
  • 5.Brennan C., Proekt A. A quantitative model of conserved macroscopic dynamics predicts future motor commands. Elife. 2019;8 doi: 10.7554/eLife.46814. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 6.Morrison M., Fieseler C., Kutz J.N. Nonlinear control in the nematode C. elegans. Front. Comput. Neurosci. 2020;14 doi: 10.3389/fncom.2020.616639. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 7.Pereda A.E. Neuroscience: the hidden diversity of electrical synapses. Curr. Biol. 2019;29:2105–2106. doi: 10.1016/j.cub.2019.05.051. [DOI] [PubMed] [Google Scholar]
  • 8.Varshney L.R., Chen B.L., Paniagua E., Hall D.H., Chklovskii D.B. Structural properties of the Caenorhabditis elegans neuronal network. PLoS Comput. Biol. 2011;7 doi: 10.1371/journal.pcbi.1001066. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 9.Liu F., Meamardoost S., Gunawan R., Komiyama T., Mewes C., Zhang Y., Hwang E., Wang L. Deep learning for neural decoding in motor cortex. J. Neural. Eng. 2022;19 doi: 10.1088/1741-2552/ac8fb5. [DOI] [PubMed] [Google Scholar]
  • 10.Livezey J.A., Glaser J.I. Deep learning approaches for neural decoding across architectures and recording modalities. Brief. Bioinform. 2021;22:1577–1591. doi: 10.1093/bib/bbaa355. [DOI] [PubMed] [Google Scholar]
  • 11.Glaser J.I., Benjamin A.S., Chowdhury R.H., Perich M.G., Miller L.E., Kording K.P. Machine learning for neural decoding. Eneuro. 2020;7 doi: 10.1523/ENEURO.0506-19.2020. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 12.Trevino A.E., Müller F., Andersen J., Sundaram L., Kathiria A., Shcherbina A., Farh K., Chang H.Y., Pașca A.M., Kundaje A., et al. Chromatin and gene-regulatory dynamics of the developing human cerebral cortex at single-cell resolution. Cell. 2021;184:5053–5069.e23. doi: 10.1016/j.cell.2021.07.039. [DOI] [PubMed] [Google Scholar]
  • 13.Glaser J.I., Benjamin A.S., Farhoodi R., Kording K.P. The roles of supervised machine learning in systems neuroscience. Prog. Neurobiol. 2019;175:126–137. doi: 10.1016/j.pneurobio.2019.01.008. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 14.Kalinin A.A., Higgins G.A., Reamaroon N., Soroushmehr S., Allyn-Feuer A., Dinov I.D., Najarian K., Athey B.D. Deep learning in pharmacogenomics: from gene regulation to patient stratification. Pharmacogenomics. 2018;19:629–650. doi: 10.2217/pgs-2018-0008. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 15.Wang Z., Wang D., Li C., Xu Y., Li H., Bao Z. Deep reinforcement learning of cell movement in the early stage of C. elegans embryogenesis. Bioinformatics. 2018;34:3169–3177. doi: 10.1093/bioinformatics/bty323. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 16.Iino Y., Yoshida K. Parallel use of two behavioral mechanisms for chemotaxis in Caenorhabditis elegans. J. Neurosci. 2009;29:5370–5380. doi: 10.1523/JNEUROSCI.3633-08.2009. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 17.Chen F., Li C. Inferring structural and dynamical properties of gene networks from data with deep learning. NAR Genom. Bioinform. 2022;4:lqac068. doi: 10.1093/nargab/lqac068. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 18.Ye L., Li C. Quantifying the landscape of decision making from spiking neural networks. Front. Comput. Neurosci. 2021;15:740601. doi: 10.3389/fncom.2021.740601. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 19.Yan H., Zhao L., Hu L., Wang X., Wang E., Wang J. Nonequilibrium landscape theory of neural networks. Proc. Natl. Acad. Sci. USA. 2013;110:E4185–E4194. doi: 10.1073/pnas.1310692110. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 20.Kato S., Kaplan H.S., Schrödel T., Skora S., Lindsay T.H., Yemini E., Lockery S., Zimmer M. Global brain dynamics embed the motor command sequence of Caenorhabditis elegans. Cell. 2015;163:656–669. doi: 10.1016/j.cell.2015.09.034. [DOI] [PubMed] [Google Scholar]
  • 21.Calhoun A.J., Chalasani S.H., Sharpee T.O. Maximally informative foraging by Caenorhabditis elegans. Elife. 2014;3 doi: 10.7554/eLife.04220. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 22.López-Cruz A., Sordillo A., Pokala N., Liu Q., McGrath P.T., Bargmann C.I. Parallel multimodal circuits control an innate foraging behavior. Neuron. 2019;102:407–419.e8. doi: 10.1016/j.neuron.2019.01.053. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 23.Bendena W.G., Boudreau J.R., Papanicolaou T., Maltby M., Tobe S.S., Chin-Sang I.D. A Caenorhabditis elegans allatostatin/galanin-like receptor NPR-9 inhibits local search behavior in response to feeding cues. Proc. Natl. Acad. Sci. USA. 2008;105:1339–1342. doi: 10.1073/pnas.0709492105. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 24.Yu Y., Zhi L., Wu Q., Jing L., Wang D. NPR-9 regulates the innate immune response in Caenorhabditis elegans by antagonizing the activity of AIB interneurons. Cell. Mol. Immunol. 2018;15:27–37. doi: 10.1038/cmi.2016.8. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 25.Ji P., Wang Y., Peron T., Li C., Nagler J., Du J. Structure and function in artificial, zebrafish and human neural networks. Phys. Life Rev. 2023;45:74–111. doi: 10.1016/j.plrev.2023.04.004. [DOI] [PubMed] [Google Scholar]
  • 26.Ye L., Feng J., Li C. Controlling brain dynamics: Landscape and transition path for working memory. PLoS Comput. Biol. 2023;19 doi: 10.1371/journal.pcbi.1011446. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 27.Li C., Wang J. Landscape and flux reveal a new global view and physical quantification of mammalian cell cycle. Proc. Natl. Acad. Sci. USA. 2014;111:14130–14135. doi: 10.1073/pnas.1408628111. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 28.Li C., Wang J. Quantifying cell fate decisions for differentiation and reprogramming of a human stem cell network: landscape and biological paths. PLoS Comput. Biol. 2013;9 doi: 10.1371/journal.pcbi.1003165. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 29.Pillai M., Chen Z., Jolly M.K., Li C. Quantitative landscapes reveal trajectories of cell-state transitions associated with drug resistance in melanoma. iScience. 2022;25 doi: 10.1016/j.isci.2022.105499. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 30.Wang J., Xu L., Wang E. Potential landscape and flux framework of nonequilibrium networks: Robustness, dissipation, and coherence of biochemical oscillations. Proc. Natl. Acad. Sci. USA. 2008;105:12271–12276. doi: 10.1073/pnas.0800579105. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 31.Gray J.M., Hill J.J., Bargmann C.I. A circuit for navigation in Caenorhabditis elegans. Proc. Natl. Acad. Sci. USA. 2005;102:3184–3191. doi: 10.1073/pnas.0409009101. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 32.Van Kampen N.G. 1st Ed. North-Holland; 1992. Stochastic Processes in Chemistry and Physics; pp. 120–127. [Google Scholar]
  • 33.Hasani R., Ferrari G., Yamamoto H., Tanii T., Prati E. Role of Noise in Spontaneous Activity of Networks of Neurons on Patterned Silicon Emulated by Noise–activated CMOS Neural Nanoelectronic Circuits. Nano Ex. 2021;2 [Google Scholar]
  • 34.Faisal A.A., Selen L.P.J., Wolpert D.M. Noise in the nervous system. Nat. Rev. Neurosci. 2008;9:292–303. doi: 10.1038/nrn2258. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 35.Chen B. The Watson School of Biological Sciences; 2007. Neuronal network of C. elegans: from anatomy to behavior. PhD thesis. [Google Scholar]
  • 36.Cook S.J., Jarrell T.A., Brittin C.A., Wang Y., Bloniarz A.E., Yakovlev M.A., Nguyen K.C.Q., Tang L.T.H., Bayer E.A., Duerr J.S., et al. Whole-animal connectomes of both Caenorhabditis elegans sexes. Nature. 2019;571:63–71. doi: 10.1038/s41586-019-1352-7. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 37.Li Z., Liu J., Zheng M., Xu X.Z.S. Encoding of both analog-and digital-like behavioral outputs by one C. elegans interneuron. Cell. 2014;159:751–765. doi: 10.1016/j.cell.2014.09.056. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 38.Kumar S., Sharma A.K., Tran A., Liu M., Leifer A.M. Inhibitory feedback from the motor circuit gates mechanosensory processing in caenorhabditis elegans. PLoS Biol. 2023;21 doi: 10.1371/journal.pbio.3002280. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 39.Nath R.D., Chow E.S., Wang H., Schwarz E.M., Sternberg P.W. C. elegans stress-induced sleep emerges from the collective action of multiple neuropeptides. Curr. Biol. 2016;26:2446–2455. doi: 10.1016/j.cub.2016.07.048. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 40.Ripoll-Sánchez L., Watteyne J., Sun H., Fernandez R., Taylor S.R., Weinreb A., Bentley B.L., Hammarlund M., Miller D.M., 3rd, Hobert O., et al. The neuropeptidergic connectome of c. elegans. Neuron. 2023;111:3570–3589.e5. doi: 10.1016/j.neuron.2023.09.043. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 41.Arnatkeviciūtė A., Fulcher B.D., Pocock R., Fornito A. Hub connectivity, neuronal diversity, and gene expression in the caenorhabditis elegans connectome. PLoS Comput. Biol. 2018;14:1–32. doi: 10.1371/journal.pcbi.1005989. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 42.Uzel K., Kato S., Zimmer M. A set of hub neurons and non-local connectivity features support global brain dynamics in c. elegans. Curr. Biol. 2022;32:3443–3459.e8. doi: 10.1016/j.cub.2022.06.039. [DOI] [PubMed] [Google Scholar]
  • 43.Ostrow M., Eisen A., Kozachkov L., Fiete I. Beyond geometry: Comparing the temporal structure of computation in neural circuits with dynamical similarity analysis. arXiv. 2023 doi: 10.48550/arXiv.2306.10168. Preprint at. [DOI] [Google Scholar]
  • 44.Meng L., Yan D. NLR-1/CASPR anchors F-actin to promote gap junction formation. Dev. Cell. 2020;55:574–587.e3. doi: 10.1016/j.devcel.2020.10.020. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 45.Jin E.J., Park S., Lyu X., Jin Y. Gap junctions: historical discoveries and new findings in the Caenorhabditis elegans nervous system. Biol. Open. 2020;9 doi: 10.1242/bio.053983. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 46.Pirri J.K., Alkema M.J. The neuroethology of c. elegans escape. Curr. Opin. Neurobiol. 2012;22:187–193. doi: 10.1016/j.conb.2011.12.007. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 47.Schild L.C., Glauser D.A. Dynamic switching between escape and avoidance regimes reduces caenorhabditis elegans exposure to noxious heat. Nat. Commun. 2013;4:2198. doi: 10.1038/ncomms3198. [DOI] [PubMed] [Google Scholar]
  • 48.Hu G (1994) Stochastic forces and nonlinear systems. Shanghai Scientific and Technological Education, Shanghai, China: 68–74.

Associated Data

This section collects any data citations, data availability statements, or supplementary materials included in this article.

Supplementary Materials

Document S1. Figures S1–S8
mmc1.pdf (17.2MB, pdf)

Data Availability Statement

  • All data used in this study is publicly available: Kato2015 whole brain imaging data is available at https://osf.io/2395t/.

  • All original code has been deposited at https://github.com/minecraburn/DNN_for_Celegans and is publicly available as of the date of publication.

  • Any additional information required to reanalyze the data reported in this article is available from the lead contact on request.


Articles from iScience are provided here courtesy of Elsevier

RESOURCES