Disease Models & MechanismsAnimal Behavior & CognitionPeer-reviewed journal article
SAMBA: A Segment Anything Model-based tool for semi-automated Behavioural Analysis of Drosophila and other model organisms
Sarah MeleiD, Joshua MillwardiD, Long Nguyen, Natasha Ruth, Jemma G. GasperoniiD, Sebastian DworkiniD, Zhen HeiD, Travis K. JohnsoniD
Abstract
Quantitative behavioural analysis is a powerful approach for linking genotype to phenotype, but many existing tools require specialised hardware, extensive preprocessing, or coding expertise. We present SAMBA (Segment Anything Model for Behavioural Analysis), an open-access, Google Colab-based pipeline that harnesses the Segment Anything Model 2 (SAM2) for accurate, semi-automated tracking without thresholding or background subtraction. With minimal user input, SAMBA extracts movement parameters, detects behavioural states, and supports batch processing. Validating SAMBA in a Drosophila melanogaster model of 3-hydroxyisobutyryl-CoA hydrolase (HIBCH) deficiency revealed impaired locomotion, reduced speed, and altered decision-making, highlighting its ability to capture nuanced phenotypes in neurometabolic disease. We further demonstrate adaptability to adult Drosophila and larval zebrafish, underscoring its cross-species utility. By combining foundation-model segmentation with an accessible interface, SAMBA lowers technical barriers to high-throughput behavioural phenotyping and is readily extendable to diverse model organisms, life stages, and experimental paradigms. This flexibility positions SAMBA as a valuable platform for accelerating disease mechanism studies, genetic screens, and preclinical testing. SUMMARY STATEMENTWe present an easy-to-use, open-access tool designed for Drosophila larval movement analysis, and readily customised for other applications, enabling rapid, scalable assessment of organism behaviour without specialised equipment or coding expertise.
- organism: Drosophila
- organism: zebrafish
- assay: imaging
- research focus: cell type annotation
- research focus: clustering
- research focus: differential expression
- research focus: cell-cell communication
- approach: deep learning
- approach: transformer / foundation model
- Citations
- 1
- FWCI
- 2.72
- Field percentile
- top 17%
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
- Megabouts: a flexible pipeline for zebrafish locomotion analysis
Adrien Jouary, Pedro TM Silva, … Michael B. Orger·bioRxiv·Sep 14, 2024
- Autobehaver: An AI-Based Pipeline for Animal Behavior Analysis
Ryan S. O’Neill, Solomon Aviles, Nasser M. Rusan·bioRxiv·May 15, 2026
- FlyLimbTracker: an active contour based approach for leg segment tracking in unmarked, freely behaving Drosophila
Virginie Uhlmann, Pavan P Ramdya, … Michael A. Unser·PLoS ONEPeer-reviewed·Apr 28, 2017
- High-resolution analysis of individual Drosophila melanogaster larvae within groups uncovers inter- and intra-individual variability in locomotion and its neurogenetic modulation
Michael Thane, Emmanouil Paisios, … Michael H. Schleyer·bioRxiv·Sep 27, 2022
- Scalable Apparatus to Measure Posture and Locomotion (SAMPL): a high-throughput solution to study unconstrained vertical behavior in small animals
Yunlu Zhu, Franziska Auer, … David Schoppik·bioRxiv·Jan 7, 2023
- An autonomous robotic system for high-throughput phenotyping and behavioral studies of individual fruit flies
Seung Je Woo, Cheng Huang, … Mark J. Schnitzer·bioRxiv·Aug 21, 2024