Hierarchical recurrent state space models reveal discrete and continuous dynamics of neural activity in C. elegans
Scott W. LindermaniD, Annika L. A. NicholsiD, David M. BleiiD, Manuel ZimmeriD, Liam PaninskiiD
Abstract
Modern recording techniques enable large-scale measurements of neural activity in a variety of model organisms. The dynamics of neural activity shed light on how organisms process sensory information and generate motor behavior. Here, we study these dynamics using optical recordings of neural activity in the nematode C. elegans. To understand these data, we develop state space models that decompose neural time-series into segments with simple, linear dynamics. We incorporate these models into a hierarchical framework that combines partial recordings from many worms to learn shared structure, while still allowing for individual variability. This framework reveals latent states of population neural activity, along with the discrete behavioral states that govern dynamics in this state space. We find stochastic transition patterns between discrete states and see that transition probabilities are determined by both current brain activity and sensory cues. Our methods automatically recover transition times that closely match manual labels of different behaviors, such as forward crawling, reversals, and turns. Finally, the resulting model can simulate neural data, faithfully capturing salient patterns of whole brain dynamics seen in real data.
02 /Specification & Classification
Click any tag to browse matching papers- Citations
- 66
- Organism
- Assay
- Research Focus
- Approach
Abstract summary
Claude Opus 5.5 · xhigh effort · 18 Oct 2026 · from the abstract
A hierarchical state space model splits optical neural recordings into linear segments and pools partial data across worms, recovering discrete states whose transitions match hand-labelled crawling, reversals and turns.
Neural dynamics are what reveal how an organism processes sensory information and generates motor behaviour, and here they are studied from optical recordings in C. elegans, where each worm contributes only a partial recording. Pooling worms in a hierarchy that still permits individual variability yields both continuous latent activity states and the discrete behavioural states that switch between dynamical regimes.
Key results
SuggestedFitting the model exposes a latent space of population activity together with discrete states that set which linear dynamics apply, and switching between those states is stochastic rather than deterministic.
Transition probabilities are reported to depend on both the current brain activity and sensory cues; the abstract gives no state counts, transition rates or model comparison statistics. · Abstract
SuggestedTransition times inferred without supervision line up with human annotation of behaviour, including forward crawling, reversals and turns.
Described as a close match to manual labels; no agreement metric, timing error or confusion against the annotations is reported in the available text. · Abstract
ClaimedThe fitted model is generative: sampling from it produces synthetic neural data said to reproduce the prominent whole-brain activity patterns of the recordings.
Asserted qualitatively in the closing sentence, with no summary statistic comparing simulated and real recordings. · Abstract
Methods, data and reproducibility
State space models that cut neural time series into segments, each with simple linear dynamics, are fitted to optical recordings of neural activity in C. elegans. A hierarchical framework pools the partial recordings of many worms so shared structure is learned jointly while per-animal variability is kept, giving continuous latent states plus discrete states that select the dynamics.
- optical recordings of neural activity, partial recordings pooled from many worms · C. elegans
- manual behavioural labels (forward crawling, reversals, turns) used for comparison · C. elegans
- Methods & tools
- hierarchical recurrent state space model
Limitations (2)
- Agreement with the manual behaviour labels is only described as close; without an error measure or comparison against simpler segmentation models, the gain from the hierarchy is unquantified here. · noted in this summary
- Numbers of worms, neurons and recording length are absent, and the evidence comes from one organism and one recording modality. · noted in this summary
Who should read:Read this if you fit latent dynamical models to population neural recordings and want a way to pool partial sessions across animals without erasing individual differences.
Reproducibility ledger
Nobody has reported trying to reproduce this paper yet. Did you replicate an experiment or run the code? Your report saves the next lab a week.
Sign in to file a reproducibility report.
Related papers
- Brain-wide representations of behavior spanning multiple timescales and states in C. elegans
Adam A. Atanas, Jungsoo Kim, … Steven W. Flavell·bioRxiv·Nov 11, 2022
- An intrinsic neuronal manifold underlies brain-wide hierarchical organization of behavior in C. elegans
Charles Fieseler, Itamar Lev, … Manuel Zimmer·bioRxiv·Mar 9, 2025
- Between Behaviors: Comparison of Two Dynamical Models of Behavioral Switching for \textit{C. Elegans} Locomotion
Denizhan Pak, Randall D. Beer·bioRxiv·Mar 2, 2026
- Decoding locomotion from population neural activity in moving C. elegans
Kelsey M. Hallinen, Ross Dempsey, … Andrew M. Leifer·eLifePeer-reviewed·Jul 29, 2021
- A framework for analyzing C. elegans neural activity using multi-dimensional hyperbolic embedding
Iulia Rusu, Zachary T. Cecere, … Sreekanth H. Chalasani·eLifePeer-reviewed·Sep 7, 2026
- Optimization of connectome weights for a neural network model generating both forward and backward locomotion in C. elegans.
Taegon Chung, Sang‐Yeol Kim·Scientific ReportsPeer-reviewed·May 21, 2026