Automated detection of larval stages of the black soldier fly (Hermetia illucens Linnaeus) through deep learning augmented with optical flow

• BSF: Key in sustainable waste management, nutrient recycling, and resource production. • Deep learning approaches can autonomously detect BSF life stages. • Optical flow integration improves the CNN model performance. • The automated approach provides practical solutions in insect-based technologies. • This approach promotes autonomous precision insect mass-rearing. The Black Soldier Fly (BSF) Hermetia illucens has garnered significant attention for its potential in sustainable waste management, nutrient recycling, and the production of valuable resources such as protein-rich animal feed and biofuels. Traditional mass production methods remain labor-intensive and error-prone, necessitating automated solutions. A critical challenge is the precise identification of BSF different life stages which is essential for optimizing feeding strategies, harvesting, and overall system efficiency. This study explores the use of deep learning, combined with optical flow analysis, to identify BSF life stages, particularly larvae, prepupae, and pupae. A Convolutional Neural Network (CNN) model was employed for real-time BSF larval stages detection. Training, validation, and test were performed on a comprehensive custom dataset of 2130 images. Evaluation metrics including precision, recall, and mean Average Precision (mAP) were assessed. Overall, the CNN model demonstrated a precision of 0.96, a recall of 0.95, and a [email protected] of 0.97 on the test set, confirming its generalization capability and effectiveness in real-world scenarios. The integration of optical flow enhanced the model’s performance by leveraging prior knowledge of motor activity, particularly for identifying and correcting false positives in pupae classification. Automated identification of BSF larval stages optimizes resource management, reduces operational costs, and enhances the economic viability of BSF-based systems. The proposed system extends beyond terrestrial concerns, with potential implications for bioregenerative life-support systems, particularly in space technology.

Authors

Institutions

Publication Details

Journal
Information Processing in Agriculture
Published
2025-05-14
DOI
https://doi.org/10.1016/j.inpa.2025.05.001
Citations
3
Primary Topic
Insect Utilization and Effects
Type
article
Field-Weighted Citation Impact
5.02

Funders

Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Automated detection of larval stages of the black soldier fly (Hermetia illucens Linnaeus) through deep learning augmented with optical flow

Gianluca Manduca, Donato Romano, Cesare Stefanini, Lloyd T. Wilson
3 citations
Information Processing in Agriculture
Insect Utilization and Effects
5.02
article

Automated detection of larval stages of the black soldier fly (Hermetia illucens Linnaeus) through deep learning augmented with optical flow

Gianluca Manduca, Donato Romano, Cesare Stefanini, Lloyd T. Wilson
article en
3 citations

Abstract

• BSF: Key in sustainable waste management, nutrient recycling, and resource production. • Deep learning approaches can autonomously detect BSF life stages. • Optical flow integration improves the CNN model performance. • The automated approach provides practical solutions in insect-based technologies. • This approach promotes autonomous precision insect mass-rearing. The Black Soldier Fly (BSF) Hermetia illucens has garnered significant attention for its potential in sustainable waste management, nutrient recycling, and the production of valuable resources such as protein-rich animal feed and biofuels. Traditional mass production methods remain labor-intensive and error-prone, necessitating automated solutions. A critical challenge is the precise identification of BSF different life stages which is essential for optimizing feeding strategies, harvesting, and overall system efficiency. This study explores the use of deep learning, combined with optical flow analysis, to identify BSF life stages, particularly larvae, prepupae, and pupae. A Convolutional Neural Network (CNN) model was employed for real-time BSF larval stages detection. Training, validation, and test were performed on a comprehensive custom dataset of 2130 images. Evaluation metrics including precision, recall, and mean Average Precision (mAP) were assessed. Overall, the CNN model demonstrated a precision of 0.96, a recall of 0.95, and a [email protected] of 0.97 on the test set, confirming its generalization capability and effectiveness in real-world scenarios. The integration of optical flow enhanced the model’s performance by leveraging prior knowledge of motor activity, particularly for identifying and correcting false positives in pupae classification. Automated identification of BSF larval stages optimizes resource management, reduces operational costs, and enhances the economic viability of BSF-based systems. The proposed system extends beyond terrestrial concerns, with potential implications for bioregenerative life-support systems, particularly in space technology.

Information Processing in AgricultureVol. 12(4)
Piaggio (Italy) (IT), Scuola Superiore Sant'Anna (IT), Texas A&M University System (US), Center for Micro-BioRobotics (IT)
Ministero dell’Istruzione, dell’Università e della Ricerca, Agenzia Spaziale Italiana
Openalex Percentile: Top 6%
Insect Utilization and Effects
5.02
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.