Automated Eight-Stage Classification of Drosophila melanogaster Using Transfer-Learning CNNs with Mobile Live-Inference Deployment

Read the full article See related articles

Discuss this preprint

Start a discussion What are Sciety discussions?

Listed in

This article is not in any list yet, why not save it to one of your lists.
Log in to save this article

Abstract

Drosophila melanogaster is a foundational model organism whose rapid development and genetic tractability underpin research in genetics, development, and disease. Manual staging of its embryonic, larval, and pupal phases is slow and error-prone. An automated eight-class classifier is introduced to distinguish egg, first-, second-, and third-instar larvae, as well as white, brown, eye, and black pupae, from stereo-microscope images. By fine-tuning ImageNet-pretrained CNNs (ResNet-50, InceptionV3, ConvNeXtSmall) on a balanced dataset (∼300 images per class), the best-performing model (ResNet-50) achieves 85% accuracy (F1 = 0.85) on a held-out validation set, significantly outperformed alternatives. Primary misclassifications align with subtle morphological transitions between adjacent stages. To facilitate broad adoption, the ResNet-50 model has been deployed in a lightweight Streamlit app offering live-camera inference (≈8 FPS on mobile). All code, pretrained weights, and data are publicly available, enabling scalable, high-throughput Drosophila staging for diverse experimental workflows.

Article activity feed