Learning the dynamics of realistic models of C. elegans nervous system with recurrent neural networks

Ruxandra Bărbulescu, Gonçalo Mestre, Arlindo L. Oliveira, L. Miguel SilveiraScientific 2023

Abstract

Given the inherent complexity of the human nervous system, insight into the dynamics of brain activity can be gained from studying smaller and simpler organisms. While some potential target organisms are simple enough that their behavioral and structural biology might be well-known, others lead to computationally intractable models. In this paper, we consider the nematode Caenorhabditis elegans and investigate generating lower-complexity "black-box" models that capture the system's dynamics using measured or simulated input-output information. We demonstrate that state-of-the-art recurrent neural network (RNN) architectures, specifically Gated Recurrent Units (GRUs) with a hidden layer size of only 4, can accurately reproduce the system response to diverse stimuli, offering a computationally efficient alternative to high-fidelity biophysical simulations.

Introduction

Understanding the human brain remains one of the greatest challenges in science. To make progress, neuroscientists often study Caenorhabditis elegans, a tiny nematode with a fully mapped connectome of exactly 302 neurons. However, even this "simple" organism presents significant computational hurdles. "White-box" biophysical models, which simulate every synapse and ion channel using massive sets of nonlinear differential equations, are slow and resource-intensive. This research explores whether data-driven "black-box" models can capture the essential input-output dynamics of the worm's nervous system more efficiently.

Methodology

The study employed a sequence-to-sequence learning approach to emulate the behavior of a high-fidelity biophysical model.

Data Generation

The "ground truth" data was generated using the NEURON simulator, incorporating the full C. elegans connectome (302 neurons and 6,702 connections). The researchers focused on specific behavioral scenarios, such as "Forward Crawling Motion" (FCM) and "Nictation." Synthetic datasets consisted of input-output waveforms representing current injections into sensory neurons and the resulting voltage responses in motor and interneurons.

The framework maps the complex biological connectome into a machine learning model to predict neural outputs.

Model Architectures

Three types of Recurrent Neural Networks were compared to determine their effectiveness in capturing temporal dependencies:

  1. Simple RNNs: The basic architecture, which often struggles with long-term dependencies due to vanishing gradients.
  2. Long Short-Term Memory (LSTM): Designed with gating mechanisms to maintain information over long sequences.
  3. Gated Recurrent Units (GRU): A streamlined version of the LSTM that offers similar performance with fewer parameters.
Comparison of the internal gating mechanisms of Simple RNN, LSTM, and GRU architectures.

Key Insights and Results

The experiments revealed several critical findings regarding the efficiency and accuracy of neural network emulators:

  • The Power of Sparsity: Remarkably, a GRU with only 4 hidden units was sufficient to accurately reproduce the dynamics of the high-fidelity biophysical model. This suggests that the underlying functional manifold of the worm's neural activity is low-dimensional despite its structural complexity.
  • Gating is Essential: Simple RNNs were significantly less accurate (RMSE ~0.13) compared to LSTMs and GRUs (RMSE ~0.01). The gating mechanisms are crucial for capturing the nonlinear temporal patterns of neural firing.
  • Efficiency and Scalability: Once trained, the RNN models provide near-instantaneous predictions. The models also demonstrated scalability, successfully predicting 28 different output neurons across multiple behaviors within a single architecture.
  • Functional Mapping via Ablation: By performing ablation studies (withholding specific neuron data during training), the researchers could identify which inputs were critical for specific outputs, effectively reverse-engineering functional importance without relying solely on the physical wiring diagram.

Conclusion and Future Work

While these black-box models are highly efficient, they lack direct biological interpretability; the internal states of a GRU do not correspond to specific biological components like calcium channels. Future research aims to bridge this gap by incorporating "physics-informed" constraints into the machine learning process. Additionally, automating the selection of diverse training stimuli will be key to scaling this approach to even more complex organisms, potentially providing a roadmap for efficient whole-brain emulation.

Summary updated

BibTeX
@inproceedings{barbulescu2023learning,
  author = {Ruxandra Bărbulescu and Gonçalo Mestre and Arlindo L. Oliveira and L. Miguel Silveira},
  title = {{Learning the dynamics of realistic models of C. elegans nervous system with recurrent neural networks}},
  booktitle = {Scientific},
  year = {2023},
  doi = {10.1038/s41598-022-25421-w},
}
Figure