摘要
针对航拍图像上明渠漂浮垃圾尺寸小,且易受水面倒影、强光等因素干扰从而造成漂浮垃圾漏检和误检的问题,提出了一种基于改进YOLOv5s的明渠漂浮垃圾实时检测方法。首先,通过数据增强的方式对数据集进行扩充,避免数据量过少产生过拟合现象;然后,结合加权双向特征融合网络(BiFPN),对YOLOv5s结构的特征融合过程进行修改,以提高检测精度和速度;并且在Neck和Head部分之间添加3个改进的三维CBAM注意力机制模块,加强网络信息的提取和定位能力,能够有效地降低检测的漏检率和误检率;最后,增大网络输入的分辨率,使图像具有更加丰富的细节信息和更加精确的位置信息,有利于小目标特征信息的提取。实验结果显示改进的YOLOv5s算法检测的平均精度达到了89.9%,与原YOLOv5s算法相比提高了9.5%,而且与其他目标检测算法对比,能够提高明渠漂浮垃圾检测的精度,确保检测的实时性。
Aiming at the problem that floating garbage in open channels is small in size and easily disturbed by factors such as reflection on the water surface and strong light,resulting in missed detection and false detection of floating garbage,a real-time detection method of floating garbage in open channels based on improved YOLOv5s is proposed.Firstly,the data set is expanded by means of data enhancement to avoid overfitting caused by too little data.Then,combined with the weighted bidirectional feature pyramid network(BiFPN),the feature fusion process of the YOLOv5s structure is modified to improve the detection accuracy and speed.Next,three improved 3D CBAM attention mechanism modules are added between the Neck and Head parts to enhance the extraction and positioning capabilities of network information,which can effectively reduce the missed detection rate and false detection rate of detection.Finally,the network input resolution is increased,so that the image had richer detailed information and more accurate position information,which is conducive to the extraction of small target feature information.The experimental results show that the average detection accuracy of the improved YOLOv5s algorithm reaches 89.9%,which is 9.5%higher than that of the original YOLOv5s algorithm,and compared with other target detection algorithms,it can improve the detection accuracy and ensure the real-time detection.
作者
石露露
廖光忠
SHI Lu-lu;LIAO Guang-zhong(School of Computer Science and Technology,Wuhan University of Science and Technology,Wuhan 430065,China;Hubei Provincial Key Laboratory of Intelligent Information Processing and Real-time Industrial System,Wuhan University of Science and Technology,Wuhan 430065,China)
出处
《计算机技术与发展》
2023年第9期83-90,共8页
Computer Technology and Development
基金
国家自然科学基金项目(61502359)。
关键词
YOLOv5s
实时检测
加权双向特征融合
注意力机制
小目标
YOLOv5s
real-time detection
weighted bidirectional feature fusion
attention mechanism
small objects