Research on Detection Method of Tephritid Pests Based on an Improved YOLOv8n

Authors

  • Feifei Zhang Guangdong University of Science and Technology, Dongguan, Guangdong, 523083, China

DOI:

https://doi.org/10.54097/84xk7m61

Keywords:

Tephritid Pests, Intelligent Detection, Small Object Detection, DCNv2

Abstract

Tephritid pests cause severe damage to fruit and melon crops, and the key to their prevention and control lies in the timely detection and elimination of adults. Nevertheless, tephritids closely resemble beneficial insects such as bees and hoverflies, which can easily lead to false positives and missed detections in manual inspection. To address this issue, this paper proposes a tephritid detection method based on an improved YOLOv8n. A new P2 high-resolution detection layer is added to retain shallow fine-grained features and reduce the loss of tephritid texture information during down-sampling. Meanwhile, part of the C2f modules is replaced with C2f_DCNv2 modules. The adaptive sampling capability of DCNv2 is adopted to strengthen the model’s ability to capture the irregular contours and texture features of tephritids. Finally, the CBAM attention module is introduced after the P2 feature fusion branch to re-filter features in the channel and spatial dimensions, further enhancing the valid texture features of tephritids. On the test set, the mAP@0.5 of the improved model increases from 84.2% to 95.9%, and the AP@0.5 of tephritids rises from 86.3% to 97.7%. The detection performance is significantly improved compared with the original YOLOv8n.

Downloads

Download data is not yet available.

References

[1] Wei, B., Zhang, Z., Yan, K., Zhang, G., Wang, P., Huang, Q., & Niu, C. (2025). Intelligent monitoring of tephritid fruit fly pests using an improved YOLOv5s model. Journal of Plant Protection, 52(5), 1163–1171. https://doi.org/10.13802/j.cnki.zwbhxb.2025.2025818.

[2] Deebalakshmi, R., Adhithyaa, S., Yoga Vignesh, V., & Ganesh Rajagopal, B. (2025). Optimized YOLOv8 for insect detection in agricultural farms using edge vision systems. Journal of Computer Science, 21(11), 2745–2758. https://doi.org/10.3844/jcssp.2025.2745.2758.

[3] Woo, S., Park, J., Lee, J.-Y., & Kweon, I. S. (2018). CBAM: Convolutional block attention module. In Proceedings of the European Conference on Computer Vision (ECCV) (pp. 3–19).

[4] Zhu, X., Hu, H., Lin, S., & Dai, J. (2019). Deformable ConvNets v2: More deformable, better results. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR) (pp. 9308–9316). https://doi.org/10.1109/CVPR.2019.00953.

[5] Yu, Y., Hu, J., & Lu, X. (2024). Target detection algorithm for aerial images based on improved YOLOv8n. In Proceedings of the International Symposium on Computer, Information and Communication (ISAICS) (pp. 7–12). https://doi.org/10.1145/3744103.3744105.

[6] Yue, M., Zhang, L., Huang, J., & Zhang, H. (2024). Lightweight and efficient tiny-object detection based on improved YOLOv8n for UAV aerial images. Drones, 8, 276. https://doi.org/10.3390/drones8070276.

Downloads

Published

30-11-2026

Issue

Section

Articles

How to Cite

Zhang, F. (2026). Research on Detection Method of Tephritid Pests Based on an Improved YOLOv8n. Frontiers in Computing and Intelligent Systems, 19(1), 104-109. https://doi.org/10.54097/84xk7m61