基于YOLOv5改进的粘蝇纸家蝇识别算法
Enhanced Sticky Fly Paper Housefly Recognition Algorithm Based on YOLOv5
DOI: 10.12677/mos.2025.145461, PDF,   
作者: 王亚辉:上海理工大学光电信息与计算机工程学院,上海
关键词: YOLOv5家蝇检测图像处理YOLOv5 Housefly Detection Image Processing
摘要: 文章针对粘蝇纸上家蝇目标体积小、形态多变且背景复杂的检测难题,提出了一种基于YOLOv5改进的检测算法。为充分反映实际应用场景,本研究搜集和采集并标注了500张粘蝇纸图像,其中400张用于训练,100张用于测试。改进工作主要集中在检测头部分,通过引入Zoom_cat模块实现多尺度特征的对齐与融合、采用ScalSeq模块增强特征序列化处理能力,并结合注意力机制提升目标区域的显著性,从而优化小目标的特征提取和定位效果。实验结果表明,改进后的模型在mAP、精确率和召回率等关键指标上均显著优于原始YOLOv5m模型,充分验证了所提方法在家蝇检测中的有效性和鲁棒性。该研究为粘蝇纸上家蝇的数量监测提供了一种高效、准确的识别方法,同时为小目标检测问题的进一步探索提供了新的思路。
Abstract: In this paper, we propose an enhanced detection algorithm, termed YOLOv5, for identifying housefly targets on sticky fly paper. These targets exhibit characteristics such as small size, variable morphology, and complex background. To thoroughly reflect the actual application scenario, a comprehensive data set was collected, acquired, and labeled. This included 500 images of sticky fly paper, with 400 utilized for training and 100 for testing purposes. The primary focus of the improvement work is on the detection head part, which optimizes the feature extraction and localization effect of small targets by introducing the Zoom_cat module to achieve multi-scale feature alignment and fusion, adopting the ScalSeq module to enhance the feature serialization processing capability, and combining with the attention mechanism to enhance the saliency of the target region. The experimental results demonstrate that the enhanced model significantly outperforms the original YOLOv5m model in terms of key metrics such as mAP, precision, and recall, thereby validating the efficacy and reliability of the proposed method for housefly detection. This study proposes an efficient and accurate identification method for the population monitoring of houseflies on sticky fly paper and concomitantly offers a novel approach for further exploration of the small target detection problem.
文章引用:王亚辉. 基于YOLOv5改进的粘蝇纸家蝇识别算法[J]. 建模与仿真, 2025, 14(5): 1112-1118. https://doi.org/10.12677/mos.2025.145461

参考文献

[1] 叶耀文. 基于机器学习的蔬菜重大害虫监测计数算法及其应用系统[D]: [硕士学位论文]. 广州: 华南农业大学, 2018.
[2] Shariff, A., Aik, Y., Hong, W., et al. (2006) Automated Identification and Counting of Pests in the Paddy Fields Using Image Analysis. Proceedings of the 4th World Congress on Computers in Agriculture, Orlando, 24-26 July 2006, 759-764.
[3] Fukatsu, T., Watanabe, T., Hu, H., Yoichi, H. and Hirafuji, M. (2012) Field Monitoring Support System for the Occurrence of Leptocorisa chinensis Dallas (Hemiptera: Alydidae) Using Synthetic Attractants, Field Servers, and Image Analysis. Computers and Electronics in Agriculture, 80, 8-16. [Google Scholar] [CrossRef
[4] 沈佐锐, 于新文. 温室白粉虱自动计数技术研究初报[J]. 生态学报, 2001, 21(1): 94-99.
[5] 邱道尹, 张红涛, 刘新宇, 等. 基于机器视觉的大田害虫检测系统[J]. 农业机械学报, 2007, 38(1): 120-122.
[6] Wen, C. and Guyer, D. (2012) Image-Based Orchard Insect Automated Identification and Classification Method. Computers and Electronics in Agriculture, 89, 110-115. [Google Scholar] [CrossRef
[7] 韩瑞珍, 何勇. 基于计算机视觉的大田害虫远程自动识别系统[J]. 农业工程学报, 2013, 29(3): 156-162.
[8] Rustia, D.J.A., Lin, C.E., Chung, J., Zhuang, Y., Hsu, J. and Lin, T. (2020) Application of an Image and Environmental Sensor Network for Automated Greenhouse Insect Pest Monitoring. Journal of Asia-Pacific Entomology, 23, 17-28. [Google Scholar] [CrossRef