Protocol for quantitative analysis of adult zebrafish swimming behavior using DeepLabCut
Abstract
Here, we present a protocol for quantifying adult zebrafish swimming behavior using open-source software. We describe steps for recording and preprocessing swimming behavior videos, labeling and training a DeepLabCut network, and applying the trained model to analyze behavior. We then detail procedures for processing and visualizing behavioral data. This protocol is optimized for single-fish tracking under standardized recording conditions and can be completed using beginner-level computational skills with basic laboratory hardware. • Reproducible workflow for recording and analyzing adult zebrafish swimming behavior • Pretrained DeepLabCut model enables immediate analysis by beginners • Step-by-step guidance for training and validating new DeepLabCut models • Smartphone-based recording setup using standard zebrafish tanks Publisher’s note: Undertaking any experimental protocol requires adherence to local institutional guidelines for laboratory safety and ethics. Here, we present a protocol for quantifying adult zebrafish swimming behavior using open-source software. We describe steps for recording and preprocessing swimming behavior videos, labeling and training a DeepLabCut network, and applying the trained model to analyze behavior. We then detail procedures for processing and visualizing behavioral data. This protocol is optimized for single-fish tracking under standardized recording conditions and can be completed using beginner-level computational skills with basic laboratory hardware.
Fields of Study & Subjects
Zebrafish Biomedical Research Applications
Fish Ecology and Management Studies
Biomimetic flight and propulsion mechanisms
Publication details
- Journal / source
- STAR Protocols
- Publisher
- Elsevier BV
- Volume
- 7
- Issue
- 1
- Pages
- 104374–104374
- Publication date
- 17 February 2026
- Language
- EN