DANCE: Step-by-Step Protocol for Automated Quantification of Drosophila Aggression and Courtship.
R Sai Prathap Yadav, Paulami Dey, Pavan Agrawal
Department of Anatomy, Kasturba Medical College, Manipal Academy of Higher Education, Manipal, India.
Key points
From the paper's conclusion- Basic Protocol 1 : Construction and use of DANCE hardware for recording aggression in Drosophila Support Protocol 1 : Preparation of Drosophila for aggression and courtship assays Support Protocol 2 : Preparation of aggression food and arena coating Support Protocol 3 : Standardized video acquisition for DANCE recordings Basic Protocol 2 : Construction and use of DANCE hardware for recording court
Abstract
Aggression and courtship are widely studied social behaviors in Drosophila melanogaster, but their accurate quantification remains a practical obstacle. Manual scoring of these behaviors is time consuming, prone to inter-observer variability, and difficult to scale, while existing automated tools often require expensive hardware or specialized skills. This article provides step-by-step protocols for implementing DANCE (Drosophila Aggression and Courtship Evaluator), a low-cost platform that combines supervised machine learning classifiers with recording hardware built from repurposed medicine blister packs, acrylic sheets, and consumer smartphones. The protocols describe how to construct the aggression and courtship arenas, acquire standardized videos using a smartphone over a tablet backlight, and process recordings through an automated pipeline that tracks individual flies in FlyTracker and scores behavior using six pretrained JAABA classifiers, one for aggressive lunges and five for the stages of male courtship. Additional protocols describe how to train new classifiers, validate classifier performance against manual annotation, and add an optogenetic stimulation module. Each protocol specifies the required materials, software versions, parameter settings, and expected outputs, so that a user with no prior experience in automated behavioral analysis can generate per-dyad behavioral measurements suitable for statistical comparison. All classifiers, analysis scripts, and worked examples are available at https://github.com/agrawallab/DANCE. The platform was originally described and validated by Yadav et al. (2025). © 2026 The Author(s). Current Protocols published by Wiley Periodicals LLC. Basic Protocol 1: Construction and use of DANCE hardware for recording aggression in Drosophila Support Protocol 1: Preparation of Drosophila for aggression and courtship assays Support Protocol 2: Preparation of aggression food and arena coating Support Protocol 3: Standardized video acquisition for DANCE recordings Basic Protocol 2: Construction and use of DANCE hardware for recording courtship behaviors in Drosophila Basic Protocol 3: Automated quantification of aggression and courtship behaviors Support Protocol 4: Animal tracking using Caltech FlyTracker Support Protocol 5: Score file generation using JAABA classifiers Alternate Protocol 1: Training custom JAABA classifiers Alternate Protocol 2: Ground-truth annotation and classifier validation Alternate Protocol 3: Integration of an optogenetics module.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- Protocol for Tracking and Automated Behavioral Quantification in Drosophila melanogaster.Journal of visualized experiments : JoVE · 2026
- BettaAI: a machine-learning object detection model for the quantification of aggressive displays in the Siamese fighting fish Betta splendensbioRxiv · 2026
- Simple methods to acutely measure multiple timing metrics among the sexual repertoire of male Drosophila.eLife · 2026
- Whole-body 3D kinematics of freely behaving DrosophilabioRxiv · 2026
- End-to-end automation of behavioural experiments with a collaborative robotbioRxiv · 2026
- Deep Learning Classification and Motion-Based Analysis of Aedes aegypti Red-Eye GSS Larvae for SIT Applications.Acta tropica · 2026