Journal of Insects as Food and Feed

A lightweight instance segmentation model for monitoring black soldier fly (Hermetia illucens) rearing systems

J. Tao, L. Wang, C. Wang

Key points

From the paper's conclusion
  • Smartphone-based image acquisition combined with inference analysis on local computing devices provides a practical workflow for visual monitoring in BSF production scenarios, particularly for small- and medium-scale rearing systems.

Abstract

Black soldier fly (BSF, Hermetia illucens ) larvae are increasingly produced as a sustainable protein and lipid source for food and feed. Effective rearing management requires information on developmental stage composition, population density, mortality and substrate status. However, many automated systems rely on specialised hardware and proprietary platforms, limiting accessibility for small- and medium-scale producers. This study presents BSF-YOLO, a lightweight instance segmentation model for smartphone-based monitoring of BSF rearing environments. Trained and evaluated on images acquired with a consumer-grade smartphone camera under practical rearing conditions, the model simultaneously segments and counts five classes: live larvae, prepupae, exuviae, dead larvae and food residues. Three modifications to the YOLO11n baseline – C3k2-PWLite, C2PSA-LLA and a Hybrid Fusion Neck – address dense, overlapping targets and morphological similarity between live larvae and prepupae. Compared with YOLO11n, BSF-YOLO showed higher mean values across all five mask-level metrics, although none of these differences remained statistically significant after Holm correction. With 2.61 M parameters and 9.3 GFLOPs, the model combines competitive instance-segmentation performance with modest reductions in model complexity relative to YOLO11n. Monitoring outputs – including class counts, developmental stage composition, mortality status and residue levels – correspond to management indicators relevant to feeding, density regulation and harvest timing. Smartphone-based image acquisition combined with inference analysis on local computing devices provides a practical workflow for visual monitoring in BSF production scenarios, particularly for small- and medium-scale rearing systems.

Read the paper

Discussion

Science Skim's AI key points, plus readers' public thoughts

Readers' thoughts

No reader thoughts yet.

Related papers