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
- Gianluca Manduca (ORCID: https://orcid.org/0000-0003-0338-441X)
- Donato Romano (ORCID: https://orcid.org/0000-0003-4975-3495)
- Cesare Stefanini (ORCID: https://orcid.org/0000-0003-0989-041X)
- Lloyd T. Wilson
Institutions
- Piaggio (Italy) (IT)
- Scuola Superiore Sant'Anna (IT)
- Texas A&M University System (US)
- Center for Micro-BioRobotics (IT)
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
- Ministero dell’Istruzione, dell’Università e della Ricerca
- Agenzia Spaziale Italiana