bioRxivAnimal Behavior & CognitionPreprint
A context-free grammar for Caenorhabditis elegans behavior
Abstract
Hierarchy is a candidate organizing principle of ethology, where actions grouped into higher order chunks combine in specific ways to generate adaptive behavior. However, demonstrations of hierarchical organization in behavior have been scarce. Moreover, it remains unclear how such underlying organization allows for behavioral flexibility. Here we uncover the hierarchical and flexible nature of Caenorhabditis elegans behavior. By describing worm locomotion as a sequence of discrete postural templates, we identified chunks containing mutually substitutable postures along the dynamics. We then elucidated the rules governing their interactions. We found that stereotypical roaming can be described by a specific sequence of postural chunks, which exhibit flexibility at the lowest postural level. The same chunks get combined differently to produce dwelling, capturing non-stereotypical actions across timescales. We show that worm foraging is organized hierarchically --a feature not explainable via Markovian dynamics--, and derive a context-free grammar governing its behavior --which is different than a regular grammar, or a hidden Markov chain. In sum, in making the analogy with human language concrete (but not literal) our work demonstrates, in line with the foundational insights of classical ethologists, that spontaneous behavior is orderly flexible. Once more, investigating the humble nematode suggests that everything human has its roots in lower animal behavior.\n\n\n\nO_FIG O_LINKSMALLFIG WIDTH=180 HEIGHT=200 SRC=\"FIGDIR/small/708891v1_ufig1.gif\" ALT=\"Figure 1\">\nView larger version (25K):\norg.highwire.dtl.DTLVardef@168e648org.highwire.dtl.DTLVardef@1e6b2eeorg.highwire.dtl.DTLVardef@ed3ecdorg.highwire.dtl.DTLVardef@1b60741_HPS_FORMAT_FIGEXP M_FIG Graphical abstract\n\nC_FIG
- organism: C. elegans
- assay: behavioral assay
- research focus: cell type annotation
- research focus: clustering
- research focus: spatial domain detection
- approach: deep learning
- approach: statistical model
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
- Changes in postural syntax characterize sensory modulation and natural variation of C. elegans locomotion
Roland F. Schwarz, Robyn Branicky, … André E.X. Brown·PLOS Computational BiologyPeer-reviewed·Aug 21, 2015
- A Markovian dynamics for C. elegans behavior across scales
A. C. Costa, T. Ahamed, … G. J. Stephens·bioRxiv·Oct 19, 2023
- Information theory rules out the reflex-chain model of C. elegans locomotion
John M. Webb, Saul Kato·bioRxiv·Feb 1, 2022
- Hierarchical compression of C. elegans locomotion reveals phenotypic differences in the organisation of behaviour
Alex Gomez-Marin, Greg J Stephens, Andre EX Brown·bioRxiv·Jun 10, 2016
- A hierarchy of locomotion costs shapes optimal foraging strategy
Thomas P. Ilett, Omer Yuval, … Netta Cohen·bioRxiv·Apr 17, 2026
- An intrinsic neuronal manifold underlies brain-wide hierarchical organization of behavior in C. elegans
Charles Fieseler, Itamar Lev, … Manuel Zimmer·bioRxiv·Mar 9, 2025