Keypoint-MoSeq: parsing behavior by linking point tracking to pose dynamics.

Journal: Nature methods
Published Date:

Abstract

Keypoint tracking algorithms can flexibly quantify animal movement from videos obtained in a wide variety of settings. However, it remains unclear how to parse continuous keypoint data into discrete actions. This challenge is particularly acute because keypoint data are susceptible to high-frequency jitter that clustering algorithms can mistake for transitions between actions. Here we present keypoint-MoSeq, a machine learning-based platform for identifying behavioral modules ('syllables') from keypoint data without human supervision. Keypoint-MoSeq uses a generative model to distinguish keypoint noise from behavior, enabling it to identify syllables whose boundaries correspond to natural sub-second discontinuities in pose dynamics. Keypoint-MoSeq outperforms commonly used alternative clustering methods at identifying these transitions, at capturing correlations between neural activity and behavior and at classifying either solitary or social behaviors in accordance with human annotations. Keypoint-MoSeq also works in multiple species and generalizes beyond the syllable timescale, identifying fast sniff-aligned movements in mice and a spectrum of oscillatory behaviors in fruit flies. Keypoint-MoSeq, therefore, renders accessible the modular structure of behavior through standard video recordings.

Authors

  • Caleb Weinreb
    Department of Neurobiology, Harvard Medical School, Boston, MA, USA.
  • Jonah E Pearl
    Department of Neurobiology, Harvard Medical School, Boston, MA, USA.
  • Sherry Lin
  • Mohammed Abdal Monium Osman
    Department of Neurobiology, Harvard Medical School, Boston, MA, USA.
  • Libby Zhang
    Department of Electrical Engineering, Stanford University, Stanford, CA, USA.
  • Sidharth Annapragada
    Department of Neurobiology, Harvard Medical School, Boston, MA, USA.
  • Eli Conlin
    Department of Neurobiology, Harvard Medical School, Boston, MA, USA.
  • Red Hoffmann
    Department of Neurobiology, Harvard Medical School, Boston, MA, USA.
  • Sofia Makowska
    Department of Neurobiology, Harvard Medical School, Boston, MA, USA.
  • Winthrop F Gillis
    Department of Neurobiology, Harvard Medical School, Boston, MA, USA.
  • Maya Jay
    Department of Neurobiology, Harvard Medical School, Boston, MA, USA.
  • Shaokai Ye
  • Alexander Mathis
    Institute for Theoretical Physics and Werner Reichardt Centre for Integrative Neuroscience, Eberhard Karls Universität Tübingen, Tübingen, Germany.
  • Mackenzie W Mathis
    EPFL, Swiss Federal Institute of Technology, Lausanne, Switzerland. Electronic address: mackenzie@post.harvard.edu.
  • Talmo Pereira
    Salk Institute for Biological Studies, La Jolla, CA, USA.
  • Scott W Linderman
    Department of Statistics, Stanford University, Stanford, United States.
  • Sandeep Robert Datta
    Department of Neurobiology, Harvard Medical School, Boston, MA 02115, USA. Electronic address: srdatta@hms.harvard.edu.