journal article·2025Open access

Real-Time Larval Stage Classification of Black Soldier Fly Using an Enhanced YOLO11-DSConv Model

An-Chao Tsai, Chayanon Pookunngern

Computers, Materials & Continua· Volume 84· Issue 2

Abstract

Food waste presents a major global environmental challenge, contributing to resource depletion, greenhouse gas emissions, and climate change. Black Soldier Fly Larvae (BSFL) offer an eco-friendly solution due to their exceptional ability to decompose organic matter. However, accurately identifying larval instars is critical for optimizing feeding efficiency and downstream applications, as different stages exhibit only subtle visual differences. This study proposes a real-time mobile application for automatic classification of BSFL larval stages. The system distinguishes between early instars (Stages 1–4), suitable for food waste processing and animal feed, and late instars (Stages 5–6), optimal for pupation and industrial use. A baseline YOLO11 model was employed, achieving a mAP50-95 of 0.811. To further improve performance and efficiency, we introduce YOLO11-DSConv, a novel adaptation incorporating Depthwise Separable Convolutions specifically optimized for the unique challenges of BSFL classification. Unlike existing YOLO+DSConv implementations, our approach is tailored for the subtle visual differences between larval stages and integrated into a complete end-to-end system. The enhanced model achieved a mAP50-95 of 0.813 while reducing computational complexity by 15.5%. The proposed system demonstrates high accuracy and lightweight performance, making it suitable for deployment on resource-constrained agricultural devices, while directly supporting circular economy initiatives through precise larval stage identification. By integrating BSFL classification with real-time AI, this work contributes to sustainable food waste management and advances intelligent applications in precision agriculture and circular economy initiatives. Additional supplementary materials and the implementation code are available at the following link: , , .
Source: openalex_inverted_index · Quality: baseline

Research context

OpenAlex topics: Orthoptera Research and Taxonomy · Species Distribution and Climate Change · Diptera species taxonomy and behavior

SciVX discovery tags are terminology-based. OpenAlex topics are source-provided classifications.

References (35)

Show source-provided references
1. Environmental Protection Agency (EPA). Importance of Methane; 2025 [Internet]. [cited 2025 Jan 5]. Available from: https://www.epa.gov/gmi/importance-methane.
2. Harnessing deep learning for faster water quality assessment: identifying bacterial contaminants in real-time10.1007/s00371-024-03382-7 ↗
3. A review of advancements in black soldier fly (Hermetia illucens) production for dietary inclusion in salmonid feeds10.1016/j.jafr.2021.100164 ↗
4. Insects as food and feed, a new emerging agricultural sector: a review10.3920/JIFF2019.0017 ↗
5. Conversion of organic material by black soldier fly larvae: establishing optimal feeding rates10.1177/0734242X09103838 ↗
6. Av H, Itterbeeck JV, Klunder H, Mertens E, Halloran A, Muir G, et al. Edible insects: future prospects for food and feed security. Rome, Italy: Food and Agriculture Organization of the United Nations; 2013 [Internet]. [cited 2025 Jun 5]. Available from: https://www.fao.org/3/i3253e/i3253e.pdf.
7. Jocher G, Qiu J. Ultralytics YOLO11; 2024 [Internet]. [cited 2025 Jun 5]. Available from: https://github.com/ultralytics/ultralytics.
8. Rearing methods for the black soldier fly (Diptera: stratiomyidae)10.1603/0022-2585-39.4.695 ↗
9. A review of organic waste treatment using black soldier fly (Hermetia illucens)10.3390/su14084565 ↗
10. Magee · Sustainability · 2021 · 13 · 834510.3390/su13158345 ↗
11. Computer vision-based cybernetics systems for promoting modern poultry farming: a critical review10.1016/j.compag.2024.109339 ↗
12. Improving hornet detection with the YOLOv7-tiny model: a case study on asian hornets
13. Deep learning utilization in agriculture: detection of rice plant diseases using an improved CNN model10.3390/plants11172230 ↗
14. A review of the use of convolutional neural networks in agriculture10.1017/S0021859618000436 ↗
15. Flower classification using CNN and transfer learning in CNN-agriculture perspective
16. Review on convolutional neural network (CNN) applied to plant leaf disease classification10.3390/agriculture11080707 ↗
17. Learning aided system for agriculture monitoring designed using image processing and IoT-CNN10.1109/ACCESS.2022.3167061 ↗
18. Girshick R. Fast R-CNN. arXiv:1504.08083. 2015.10.1109/ICCV.2015.169 ↗
19. Ren S, He K, Girshick R, Sun J. Faster R-CNN: towards real-time object detection with region proposal networks. arXiv:1506.01497. 2015.
20. You only look once: unified, real-time object detection
21. Jocher G, Chaurasia A, Qiu J. Ultralytics YOLOv8; 2023 [Internet]. [cited 2025 Jun 5]. Available from: https://docs.ultralytics.com/models/yolov8/.
22. Real time classification system of black soldier fly larva
23. Deep learning with depthwise separable convolutions
24. Howard AG. Mobilenets: efficient convolutional neural networks for mobile vision applications. arXiv:1704.04861. 2017.
25. Rethinking depthwise separable convolutions: how intra-kernel correlations lead to improved mobilenets
26. Kaiser L, Gomez AN, Chollet F. Depthwise separable convolutions for neural machine translation. arXiv:1706.03059. 2017.
27. A CNN accelerator on FPGA using depthwise separable convolution
28. Optimizing depthwise separable convolution operations on GPUs10.1109/TPDS.2021.3084813 ↗
29. Object detection on space-based optical images leveraging machine learning techniques
30. The development of a lightweight DE-YOLO model for detecting impurities and broken rice grains10.3390/agriculture15080848 ↗
31. Perusing the effect of discretization of data on accuracy of predicting naive bayes algorithm
32. Wang CY, Yeh IH, Liao HYM. YOLOv9: learning what you want to learn using programmable gradient information. arXiv:2402.13616. 2024.10.1007/978-3-031-72751-1_1 ↗
33. Wang A, Chen H, Liu L, Chen K, Lin Z, Han J, et al. Yolov10: real-time end-to-end object detection. arXiv:2405.14458. 2024.10.52202/079017-3429 ↗
34. Lv W, Xu S, Zhao Y, Wang G, Wei J, Cui C, et al. DETRs beat YOLOs on real-time object detection. arXiv:2304.08069. 2023.
35. Cheng T, Song L, Ge Y, Liu W, Wang X, Shan Y. YOLO-world: real-time open-vocabulary object detection. arXiv:2401.17270. 2024.10.1109/CVPR52733.2024.01599 ↗