DeepEthogram, a machine learning pipeline for supervised behavior classification from raw pixels

Elife. 2021 Sep 2:10:e63377. doi: 10.7554/eLife.63377.

Abstract

Videos of animal behavior are used to quantify researcher-defined behaviors of interest to study neural function, gene mutations, and pharmacological therapies. Behaviors of interest are often scored manually, which is time-consuming, limited to few behaviors, and variable across researchers. We created DeepEthogram: software that uses supervised machine learning to convert raw video pixels into an ethogram, the behaviors of interest present in each video frame. DeepEthogram is designed to be general-purpose and applicable across species, behaviors, and video-recording hardware. It uses convolutional neural networks to compute motion, extract features from motion and images, and classify features into behaviors. Behaviors are classified with above 90% accuracy on single frames in videos of mice and flies, matching expert-level human performance. DeepEthogram accurately predicts rare behaviors, requires little training data, and generalizes across subjects. A graphical interface allows beginning-to-end analysis without end-user programming. DeepEthogram's rapid, automatic, and reproducible labeling of researcher-defined behaviors of interest may accelerate and enhance supervised behavior analysis. Code is available at: https://github.com/jbohnslav/deepethogram.

Keywords: D. melanogaster; behavior analysis; computer vision; deep learning; mouse; neuroscience.

Publication types

  • Research Support, N.I.H., Extramural
  • Research Support, Non-U.S. Gov't
  • Research Support, U.S. Gov't, Non-P.H.S.
  • Video-Audio Media

MeSH terms

  • Animals
  • Drosophila melanogaster
  • Female
  • Grooming*
  • Humans
  • Image Processing, Computer-Assisted*
  • Kinetics
  • Male
  • Mice
  • Mice, Inbred C57BL
  • Motor Activity*
  • Neural Networks, Computer*
  • Pattern Recognition, Automated
  • Reproducibility of Results
  • Social Behavior*
  • Supervised Machine Learning*
  • Video Recording*
  • Walking