Learning Reusable Behavioral Motifs for Continuous Animal Behavior Modeling

Jiyi Wang, Jingyang Ke, Bo Dai, Anqi Wu
6/18/2025
3 citations
cs.LGq-bio.NC

Official code: G1NO3/MCD (0 stars, Jupyter Notebook, CC-BY-4.0, last commit 2026-11-07).

Abstract

Natural behavior evolves continuously and often reuses movement structure across contexts, but existing behavioral segmentation methods typically assign a single discrete syllable at each time point or impose restrictive generative assumptions. We introduce Motif-based Continuous Dynamics (MCD), a computational framework that models behavior as time-varying combinations of reusable behavioral motifs.

Show full abstract

MCD learns motifs as latent behavior-level features from transition dynamics, through spectral representation learning within a reinforcement learning framework. MCD then infers policies that combine these motifs across time or context, through offline imitation learning. This formulation avoids hard behavioral boundaries while capturing continuity and compositionality. Across simulated gridworld and continuous-control tasks, mouse maze navigation and pose data, MCD identifies reusable motifs that explain task and temporal variation. MCD therefore provides a flexible and interpretable framework for computational behavior analysis. Code is available in https://github.com/G1NO3/MCD.

View on arXivView PDF

Code Implementations(1)

G1NO3/MCDOfficial100%
CC-BY-4.0

Code for MCD

00Jupyter Notebook, PythonNov 7, 20263 weeks agoCC-BY-4.0

Similar Papers

Cite this paper

@article{wang2025learning,
  title  = {Learning Reusable Behavioral Motifs for Continuous Animal Behavior Modeling},
  author = {Jiyi Wang and Jingyang Ke and Bo Dai and Anqi Wu},
  year   = {2025},
  eprint = {2506.15190},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2506.15190v4}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2506.15190.svg)](https://codeofpaper.com/paper/2506.15190)

Discussion