%0 Journal Article %A Marcus Ghosh %A Jason Rihel %T Hierarchical Compression Reveals Sub-Second to Day-Long Structure in Larval Zebrafish Behavior %D 2020 %R 10.1523/ENEURO.0408-19.2020 %J eneuro %P ENEURO.0408-19.2020 %V 7 %N 4 %X Animal behavior is dynamic, evolving over multiple timescales from milliseconds to days and even across a lifetime. To understand the mechanisms governing these dynamics, it is necessary to capture multi-timescale structure from behavioral data. Here, we develop computational tools and study the behavior of hundreds of larval zebrafish tracked continuously across multiple 24-h day/night cycles. We extracted millions of movements and pauses, termed bouts, and used unsupervised learning to reduce each larva’s behavior to an alternating sequence of active and inactive bout types, termed modules. Through hierarchical compression, we identified recurrent behavioral patterns, termed motifs. Module and motif usage varied across the day/night cycle, revealing structure at sub-second to day-long timescales. We further demonstrate that module and motif analysis can uncover novel pharmacological and genetic mutant phenotypes. Overall, our work reveals the organization of larval zebrafish behavior at multiple timescales and provides tools to identify structure from large-scale behavioral datasets. %U https://www.eneuro.org/content/eneuro/7/4/ENEURO.0408-19.2020.full.pdf