Skip to main page content
U.S. flag

An official website of the United States government

Dot gov

The .gov means it’s official.
Federal government websites often end in .gov or .mil. Before sharing sensitive information, make sure you’re on a federal government site.

Https

The site is secure.
The https:// ensures that you are connecting to the official website and that any information you provide is encrypted and transmitted securely.

Access keys NCBI Homepage MyNCBI Homepage Main Content Main Navigation
Review
. 2023 Mar 23:12:e79305.
doi: 10.7554/eLife.79305.

Open-source tools for behavioral video analysis: Setup, methods, and best practices

Affiliations
Review

Open-source tools for behavioral video analysis: Setup, methods, and best practices

Kevin Luxem et al. Elife. .

Abstract

Recently developed methods for video analysis, especially models for pose estimation and behavior classification, are transforming behavioral quantification to be more precise, scalable, and reproducible in fields such as neuroscience and ethology. These tools overcome long-standing limitations of manual scoring of video frames and traditional 'center of mass' tracking algorithms to enable video analysis at scale. The expansion of open-source tools for video acquisition and analysis has led to new experimental approaches to understand behavior. Here, we review currently available open-source tools for video analysis and discuss how to set up these methods for labs new to video recording. We also discuss best practices for developing and using video analysis methods, including community-wide standards and critical needs for the open sharing of datasets and code, more widespread comparisons of video analysis methods, and better documentation for these methods especially for new users. We encourage broader adoption and continued development of these tools, which have tremendous potential for accelerating scientific progress in understanding the brain and behavior.

Keywords: behavior; methods; neuroscience; open source; pose estimation; reproducibility; video.

PubMed Disclaimer

Conflict of interest statement

KL, JS, SB, KK, EY, JZ, TP, ML No competing interests declared

Figures

Figure 1.
Figure 1.. Setup for video recording.
(A) Cameras are mounted above and to the side of a behavioral arena. The cameras record sequences of images of an animal performing a behavioral task. The recordings are stored on a computer and analyzed with methods for pose estimation and behavior classification. (B) The animal’s pose trajectory captures the relevant kinematics of the animal’s behavior and is used as input to behavior quantification algorithms. Quantification can be done using either unsupervised (learning to recognize behavioral states) or supervised (learning to classify behaviors based on human annotated labels). In this example, transitions among three example behaviors (rearing, walking, and grooming) are depicted on the lower left and classification of video frames into the three main behaviors are depicted on the lower right.
Figure 2.
Figure 2.. Pipeline for video analysis.
Video recordings are analyzed with either keypoints from 2D or 3D pose estimation or directly by computing video features. These videos or trajectory features are then used by downstream algorithms to relate the keypoints to behavioral constructs such as predicting human-defined behavior labels (supervised learning) or discovering behavior motifs (unsupervised learning). Each part of the analysis steps outlined in the figure is described in more detail below.

Similar articles

Cited by

References

    1. Abdar M, Pourpanah F, Hussain S, Rezazadegan D, Liu L, Ghavamzadeh M, Fieguth P, Cao X, Khosravi A, Acharya UR, Makarenkov V, Nahavandi S. A review of uncertainty quantification in deep learning: techniques, applications and challenges. Information Fusion. 2021;76:243–297. doi: 10.1016/j.inffus.2021.05.008. - DOI
    1. Anderson DJ, Perona P. Toward a science of computational ethology. Neuron. 2014;84:18–31. doi: 10.1016/j.neuron.2014.09.005. - DOI - PubMed
    1. Bala PC, Eisenreich BR, Yoo SBM, Hayden BY, Park HS, Zimmermann J. Automated markerless pose estimation in freely moving macaques with openmonkeystudio. Nature Communications. 2020;11:4560. doi: 10.1038/s41467-020-18441-5. - DOI - PMC - PubMed
    1. Balog M, Gaunt AL, Brockschmidt M, Nowozin S, Tarlow D. DeepCoder: Learning to Write Programs. arXiv. 2017 https://arxiv.org/abs/1611.01989
    1. Batty E, Whiteway M, Saxena S, Biderman D, Abe T, Musall S, Gillis W, Markowitz J, Churchland A, Cunningham JP, Datta SR, Linderman S, Paninski L. BehaveNet: nonlinear embedding and bayesian neural decoding of behavioral videos. Advances in Neural Information Processing Systems.2019.

Publication types