Unsupervised learning of control signals and their encodings in $\textit{C. elegans}$ whole-brain recordings

Charles Fieseler, Manuel Zimmer, J. Nathan KutzarXiv 2020 · DOI

Abstract

Recent whole brain imaging experiments on C. elegans has revealed that the neural population dynamics encode motor commands and stereotyped transitions between behaviors on low dimensional manifolds. Efforts to characterize the dynamics on this manifold have used piecewise linear models to describe the entire state space, but it is unknown how a single, global dynamical model can generate the observed dynamics. Here, we propose a control framework to achieve such a global model of the dynamics, whereby underlying linear dynamics is actuated by sparse control signals. This method learns the control signals in an unsupervised way from data, then uses Dynamic Mode Decomposition with control (DMDc) to create the first global, linear dynamical system that can reconstruct whole-brain imaging data. These control signals are shown to be implicated in transitions between behaviors. In addition, we analyze the time-delay encoding of these control signals, showing that these transitions can be predicted from neurons previously implicated in behavioral transitions, but also additional neurons previously unidentified. Moreover, our decomposition method allows one to understand the observed nonlinear global dynamics instead as linear dynamics with control. The proposed mathematical framework is generic and can be generalized to other neurosensory systems, potentially revealing transitions and their encodings in a completely unsupervised way.

Introduction

The nematode C. elegans serves as a foundational model in neurobiology due to its fully mapped connectome of 302 neurons. Despite this structural knowledge, the functional "software" governing behavioral transitions remains elusive. Neural activity in C. elegans is inherently nonlinear, characterized by discrete state switches between behaviors such as forward crawling, reversals, and turns. Previous modeling efforts often relied on piecewise linear approximations, which fail to provide a unified global dynamical model. This research addresses this gap by framing the brain's complex nonlinearities as a global linear system steered by sparse, internally generated control signals.

Methods

The researchers developed a three-stage framework rooted in control theory to model whole-brain calcium imaging data from 15 datasets.

  1. Unsupervised Learning of Control Signals: Using sparse optimization (specifically, a sequential least squares thresholding algorithm), the framework identifies "transition signals" ($u$) directly from neural data without prior behavioral labels. These signals are assumed to be sparse, activating only during state transitions.
  2. Dynamic Mode Decomposition with control (DMDc): DMDc is utilized to identify the best-fit linear operators for internal dynamics (Matrix $A$) and the influence of control signals (Matrix $B$). The system is modeled as $x_{k+1} = Ax_k + Bu_k$.
  3. Encoding Analysis: Sparse linear models with time-delay embedding were used to identify the neural origins of these control signals. An "elimination path" method—systematically removing influential neurons—was employed to assess the robustness and redundancy of the encoding across the network.
Schematic of the control framework using DMDc to model neural dynamics.

Key Results

The DMDc framework successfully reconstructed neural trajectories for reversals and turns. A critical finding is that much of the brain's observed nonlinear complexity can be decomposed into a global linear system punctuated by sparse "kicks" or control signals.

The unsupervised algorithm identified transition signals that highly correlated with expert-labeled behavioral states. For reversals and turns, correlations were typically above 0.6. However, the model struggled with "Forward" motion, suggesting that while transitions like reversals are discrete "on/off" events, forward motion may involve more continuous, complex parameterization.

Comparison of expert-labeled and unsupervised learned control signals across behaviors.

Furthermore, the "elimination path" analysis revealed significant distributed redundancy. Even after removing primary "command neurons," control signals could be accurately reconstructed from the remaining population, indicating that behavioral transitions are encoded more broadly than previously understood.

Discussion

This work provides the first global linear dynamical system capable of reconstructing C. elegans whole-brain imaging data. By treating nonlinearities as sparse control inputs, the model simplifies the interpretation of complex neural dynamics. While currently limited in its generative capacity—it reconstructs rather than predicts responses to novel stimuli—the framework is generic. Future applications could extend this approach to more complex neurosensory systems, potentially uncovering hidden transition encodings in an entirely unsupervised manner.

Summary updated

BibTeX
@misc{fieseler2020unsupervised,
  author = {Charles Fieseler and Manuel Zimmer and J. Nathan Kutz},
  title = {{Unsupervised learning of control signals and their encodings in $\textbackslash\{\}textit\{C. elegans\}$ whole-brain recordings}},
  year = {2020},
  eprint = {2001.08346},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2001.08346},
}
Figure