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

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.

Authors

Institutions

Publication Details

Journal
Smart Agricultural Technology
Published
2025-04-15
DOI
https://doi.org/10.1016/j.atech.2025.100953
Citations
5
Primary Topic
Insect behavior and control techniques
Type
article
Field-Weighted Citation Impact
8.36
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

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

Cosmas Mwikirize, Quentin Geissmann, Henrik Karstoft, Grum Gebreyesus et al.
5 citations
Smart Agricultural Technology
Insect behavior and control techniques
8.36
article

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

Cosmas Mwikirize, Quentin Geissmann, Henrik Karstoft, Grum Gebreyesus, Andrew Katumba, Kim Bjerge, Sarah Nawoya, Roseline Akol
article en
5 citations

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.

Smart Agricultural TechnologyVol. 11
Quantitative BioSciences (US)
Openalex Percentile: Top 3%
Insect behavior and control techniques
8.36
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.