计算机与现代化 ›› 2024, Vol. 0 ›› Issue (07): 120-126.doi: 10.3969/j.issn.1006-2475.2024.07.018

• 算法设计与分析 • 上一篇    

基于YOLOv5改进算法的海洋水下垃圾检测方法



  

  1. (华南师范大学计算机学院,广东 广州 510631)
  • 出版日期:2024-07-25 发布日期:2024-08-08

Underwater Trash Detection Method Based on Improved YOLOv5

  1. (College of Computer Science, South China Normal University, Guangzhou 510631, China)
  • Online:2024-07-25 Published:2024-08-08

摘要: 针对水下图像采集存在的光线不足、低分辨率、物体识别不清和小目标较多等局限性导致现有的目标检测算法效果不佳的问题,提出一种基于YOLOv5改进的水下垃圾目标检测算法,以达到更快速更准确地检测和清除海洋水下塑料垃圾的目标。所提算法使用限制对比度自适应直方图均衡化CLAHE预处理方法来增强数据特征,降低特征提取的难度,提高检测精度;引入无参注意力机制SimAM和更换轻量级卷积方法GSConv,在增强网络提取能力的同时减少模型计算量;同时增加多尺度特征融合检测,解决水下垃圾碎屑小目标定位困难的问题。基于自建的真实水下环境垃圾数据集MarineTrash对改进的算法进行充分实验,结果表明,改进的方法具有良好的表现,其中精度提高了4.3个百分点,mAP提高了3.5个百分点,GFLOPs降低了0.3,模型权重仅为13.9 MB,比基线降低了0.6 MB。基于YOLOv5改进的水下垃圾检测算法的研究对于在自主式水下机器人(AUVs)中部署安装探测器,以实现对海洋水下垃圾的检测和自动清除,维护海洋生态系统提供了充分的技术支撑。

关键词: 目标检测, 水下垃圾, 多尺度特征融合, YOLOv5, GSConv, SimAM

Abstract: To address the limitations of underwater image acquisition such as insufficient light, high noise and unclear object recognition, which lead to the ineffectiveness of existing object detection algorithms, an underwater garbage object detection algorithm based on improved YOLOv5 is proposed. The purpose of the improved object detection algorithm is to achieve more accurate detection and removal of underwater plastic trash from the ocean. The improved algorithm containes some improvements:using the Contrast Limited Adaptive Histogram Equalization(CLAHE) algorithm to enhance data features, which reduces the difficulty of feature extraction and enables the network to be detected more flexibly and more accurately; introducing a parameter-free attention module SimAM, using the lightweight convolution method GSConv to enhance network extraction capability while reducing model computation; At the same time, multi-scale feature fusion detection is added to solve the problem of small target location of underwater debris. Numbers of experiments are conducted based on MarineTrash which is a self-built real underwater environmental litter dataset, the results show that the improved method has good performance, in which the accuracy is increased by 4.3 percentage points, the mAP is increased by 3.5 percentage points, the GFLOPs is reduced by 0.3, and the model weight is only 13.9 MB, which is 0.6 MB lower than the baseline. The research on the underwater trash detection algorithm based on the improved YOLOv5 provides sufficient technology for deploying and installing detectors in Autonomous Underwater Vehicles (AUVs) to achieve detection and automatic removal of marine underwater trash and maintain the marine ecosystem.

Key words:  , object detection, underwater trash, multi-scale feature fusion, YOLOv5, GSConv, SimAM

中图分类号: