• 中国计算机学会会刊
  • 中国科技核心期刊
  • 中文核心期刊

计算机工程与科学

• • 上一篇    下一篇

改进YOLOv8n的海洋垃圾目标检测算法:WG-YOLO

周冬梅,王飞成,吴小所   

  1. (兰州交通大学电子与信息工程学院,甘肃 兰州 730070)
  • 出版日期:2025-06-12 发布日期:2025-06-12

Improved YOLOv8n's marine waste target detection algorithm:WG-YOLO

ZHOU Dongmei, WANG Feicheng, WU Xiaosuo   

  1. (Lanzhou Jiaotong University, School of Electronic and Information Engineering, Lanzhou,730070, China)

  • Online:2025-06-12 Published:2025-06-12

摘要: 针对海洋环境下对垃圾污染物的检测精度低,小目标漏检,遮挡以及参数量大的问题,提出了WG-YOLO算法。通过CSP策略与通道洗牌方式提出S-HG Block替换C2f模块,减少了梯度信息丢失的同时,促进了对多尺度特征信息的提取。引入改进后的ESimAM注意力机制,通过生成三维注意力权重和残差连接,不仅增强了主导特征,还保留了特征较弱的特征。在Neck部分,提出了小目标特征增强金字塔网络,将富含小目标信息的低层特征融合到高层增强多尺度表示,又通过三分支通道的CSPO(CSP-OmniKernel)网络细化小目标特征。使用轻量化共享卷积检测头来优化原检测头,在大幅降低参数量的同时,保持了模型的精度。WG-YOLO模型在TrashCan数据集上mAP50达到了68.1%,mAP50:95达到了48.7%,较YOLOv8n分别提高了5.2%和2.7%。

关键词: YOLOv8, 小目标检测, 海洋垃圾, SimAM注意力机制

Abstract: The WG-YOLO algorithm is proposed to solve the problems of low detection accuracy, small target leakage, occlusion and large number of parameters in the Marine environment. Through CSP strategy and channel shuffling, S-HG Block can reduce the loss of gradient information and promote the extraction of multi-scale feature information. The introduction of the improved ESimAM attention mechanism not only enhances the dominant features by generating three-dimensional attention weights and residual connections, but also retains the weaker features. In the Neck section, a small target feature-enhanced pyramid network is proposed to fuse low-level features rich in small target information into high-level enhanced multi-scale representation, and refine small target features through the CSPO(CSP-OmniKernel) network with three branched channels. Using the lightweight shared convolution detection head to optimize the original detection head maintains the accuracy of the model while substantially reducing the number of parameters. The WG-YOLO model achieved 68.1% of mAP 50 and mAP 50:95 reached 48.7% on the TrashCan dataset, up 5.2% and 2.7% over YOLOv8n.

Key words: YOLOv8, Small target detection, marine waste, SimAM attention mechanism