Learning Task-Agnostic Motifs to Capture the Continuous Nature of Animal Behavior
Jiyi Wang, Jingyang Ke, Bo Dai, Anqi Wu
TL;DR
The paper tackles the problem that traditional behavior segmentation reduces animal movement to discrete syllables, which fails to capture the continuous, compositional nature of motor motifs. It introduces Motif-based Continuous Dynamics (MCD), a reinforcement-learning–driven framework that learns motif sets and continuously evolving motif weights to reconstruct and predict complex trajectories across tasks. By deriving motifs via spectral decomposition in the discrete setting and an energy-based model with noise-contrastive estimation in the continuous setting, MCD provides a generative, assumption-light account of how continuous motor patterns combine to produce observable behavior, including a time-varying reward interpretation for inverse RL analyses. Empirically, MCD demonstrates reusable, interpretable motifs in a gridworld, labyrinth navigation, and freely moving mice, offering improved trajectory realism and insight into the motor-building blocks underlying natural behavior.
Abstract
Animals flexibly recombine a finite set of core motor motifs to meet diverse task demands, but existing behavior segmentation methods oversimplify this process by imposing discrete syllables under restrictive generative assumptions. To better capture the continuous structure of behavior generation, we introduce motif-based continuous dynamics (MCD) discovery, a framework that (1) uncovers interpretable motif sets as latent basis functions of behavior by leveraging representations of behavioral transition structure, and (2) models behavioral dynamics as continuously evolving mixtures of these motifs. We validate MCD on a multi-task gridworld, a labyrinth navigation task, and freely moving animal behavior. Across settings, it identifies reusable motif components, captures continuous compositional dynamics, and generates realistic trajectories beyond the capabilities of traditional discrete segmentation models. By providing a generative account of how complex animal behaviors emerge from dynamic combinations of fundamental motor motifs, our approach advances the quantitative study of natural behavior.
