Prediction of black soldier fly larval sex and morphological traits using computer vision and deep learning

Sarah Nawoya*, Quentin Geissmann, Henrik Karstoft, Kim Bjerge, Roseline Akol, Andrew Katumba, Cosmas Mwikirize, Grum Gebreyesus

*Corresponding author for this work

Research output: Contribution to journal/Conference contribution in journal/Contribution to newspaperJournal articleResearchpeer-review

1 Citation (Scopus)

Abstract

The growing interest in insect farming as a sustainable protein alternative has given rise to the commercial production of key species like the Black Soldier Fly (BSF), primarily for use in livestock, fish, and pet nutrition. Despite the heightened interest in BSF production, there is a need for increased efficiency, particularly in the context of large-scale measurement of various traits for selective breeding as well as management optimization. The unique insect production systems, coupled with the challenges posed by their small size, fragility, and metamorphic life cycle underscores the necessity for innovative approaches to streamline production. This study explores the potential of computer vision (CV) in predicting the larval sex and morphological traits of BSF, offering a non-invasive, rapid, and automated method for trait measurement. The study explores algorithms utilizing You-Only-Look-Once (YOLOv8) in detection and segmentation, ResNet for feature extraction and classification, and regression analysis mechanisms. We assess the ability of our models to predict larval weight from images through morphometric weight prediction and CNN-regression approaches. A notable contribution of this study is the pioneering effort to classify BSF larval sex using CV and deep learning (DL). In the analysis of larval weight prediction, a coefficient determination (R2) of up to 0.80 between measured and predicted weight was achieved using the morphometric weight prediction approach, along with an R2 of 0.71 through the CNN-regression approach. Additionally, the sex prediction module demonstrated an F1 score of 0.75 and a prediction accuracy of 74 %. These results underscore the feasibility of leveraging CV techniques for predicting the sex and body traits of BSF larvae, representing a significant advancement toward the automation of selective breeding in the context of insect farming.

Original languageEnglish
Article number100953
JournalSmart Agricultural Technology
Volume11
ISSN2772-3755
DOIs
Publication statusPublished - Aug 2025

Keywords

  • Automated Phenotyping
  • Black soldier fly
  • Computer vision
  • Deep learning
  • Insect farming
  • Selective breeding

Fingerprint

Dive into the research topics of 'Prediction of black soldier fly larval sex and morphological traits using computer vision and deep learning'. Together they form a unique fingerprint.

Cite this