Quantitative comparison of Drosophila behavior annotations by human observers and a machine learning algorithm
Abstract
Automated quantification of behavior is increasingly prevalent in neuroscience research. Human judgments can influence machine-learning-based behavior classification at multiple steps in the process, for both supervised and unsupervised approaches. Such steps include the design of the algorithm for machine learning, the methods used for animal tracking, the choice of training images, and the benchmarking of classification outcomes. However, how these design choices contribute to the interpretation of automated behavioral classifications has not been extensively characterized. Here, we quantify the effects of experimenter choices on the outputs of automated classifiers of Drosophila social behaviors. Drosophila behaviors contain a considerable degree of variability, which was reflected in the confidence levels associated with both human and computer classifications. We found that a diversity of sex combinations and tracking features was important for robust performance of the automated classifiers. In particular, features concerning the relative position of flies contained useful information for training a machine-learning algorithm. These observations shed light on the importance of human influence on tracking algorithms, the selection of training images, and the quality of annotated sample images used to benchmark the performance of a classifier (the ‘ground truth’). Evaluation of these factors is necessary for researchers to accurately interpret behavioral data quantified by a machine-learning algorithm and to further improve automated classifications.Significance Statement Accurate quantification of animal behaviors is fundamental to neuroscience. Here, we quantitatively assess how human choices influence the performance of automated classifiers trained by a machine-learning algorithm. We found that human decisions about the computational tracking method, the training images, and the images used for performance evaluation impact both the classifier outputs and how human observers interpret the results. These factors are sometimes overlooked but are critical, especially because animal behavior is itself inherently variable. Automated quantification of animal behavior is becoming increasingly prevalent: our results provide a model for bridging the gap between traditional human annotations and computer-based annotations. Systematic assessment of human choices is important for developing behavior classifiers that perform robustly in a variety of experimental conditions.Competing Interest StatementThe authors have declared no competing interest.View Full Text
02 /Specification & Classification
Click any tag to browse matching papers- Organism
- Assay
- Research Focus
- Approach
Reproducibility ledger
Nobody has reported trying to reproduce this paper yet. Did you replicate an experiment or run the code? Your report saves the next lab a week.
Sign in to file a reproducibility report.
Related papers
- Autobehaver: An AI-Based Pipeline for Animal Behavior Analysis
Ryan S. O’Neill, Solomon Aviles, Nasser M. Rusan·bioRxiv·May 15, 2026
- DeepEthogram: a machine learning pipeline for supervised behavior classification from raw pixels
James P. Bohnslav, Nivanthika K. Wimalasena, … Christopher D. Harvey·eLifePeer-reviewed·Sep 2, 2021
- LarvaTagger: Manual and automatic tagging of Drosophila larval behaviour
François Laurent, Alexandre Blanc, … Jean‐Baptiste Masson·BioinformaticsPeer-reviewed·Jul 1, 2024
- DANCE: An open-source analysis pipeline and low-cost hardware to quantify aggression and courtship in Drosophila
R Sai Prathap Yadav, Paulami Dey, … Pavan Agrawal·bioRxiv·Jan 3, 2025
- DeepAction: A MATLAB toolbox for automated classification of animal behavior in video
Carl Harris, Kelly R. Finn, … Peter Ulric Tse·Scientific ReportsPeer-reviewed·Feb 15, 2023
- The Mouse Action Recognition System (MARS) software pipeline for automated analysis of social behaviors in mice
Cristina Segalin, Jalani Williams, … Ann Kennedy·eLifePeer-reviewed·Oct 19, 2021