复合材料科学与工程 ›› 2025, Vol. 0 ›› Issue (5): 132-141.DOI: 10.19936/j.cnki.2096-8000.20250528.017

• 工程应用 • 上一篇    下一篇

基于改进YOLOv5s的拉挤板缺陷检测

徐东亮, 赖九衡*, 杨会兰   

  1. 武汉理工大学 机电工程学院, 武汉 430070
  • 收稿日期:2024-03-20 出版日期:2025-05-28 发布日期:2025-07-11
  • 通讯作者: 赖九衡(1999—),男,硕士研究生,研究方向为图像处理与目标检测,2795708165@qq.com。
  • 作者简介:徐东亮(1970—),男,博士,副教授,研究方向为复合材料CAD/CAM及虚拟制造技术、检测技术与自动化装置、计算机应用技术。

Defect detection of pultrusion plate based on improved YOLOv5s

XU Dongliang, LAI Jiuheng*, YANG Huilan   

  1. School of Mechanical and Electrical Engineering, Wuhan University of Technology, Wuhan 430070, China
  • Received:2024-03-20 Online:2025-05-28 Published:2025-07-11

摘要: 为解决传统拉挤板缺陷检测方法中存在的检测精确度低、检测速度慢等问题,创建了玻璃纤维拉挤板缺陷数据集,提出了一种基于改进YOLOv5s的拉挤板缺陷检测模型。主要改进为:在特征提取网络部分,添加EvcBlock模块增强小目标特征提取能力,添加CBAM注意力机制提高重要特征的关注度;使用C3-Faster模块优化C3模块,实现了模型轻量化;在检测端引入具有形状损失的新型损失函数ShapeIoU,优化了预测框和真实框的拟合效果,提高了缺陷检测精确度。实验结果表明:改进后的YOLOv5s模型对比原YOLOv5s模型,mAP@0.5提升了3.6%,达到了88.7%,参数量降低了2.1%。改进模型检测速度为121.95 f/s,与YOLOv8s等五种模型相比综合性能更优,能够满足拉挤板缺陷检测的需求。

关键词: 拉挤板, YOLOv5s, 缺陷检测, EvcBlock, C3-faster, ShapeIoU, 复合材料

Abstract: In order to solve the problems of low detection precision and slow detection speed in traditional pultrusion plate defect detection methods, a defect data set of glass fiber pultrusion plate was created, and a defect detection model of glass fiber pultrusion plate based on improved YOLOv5s was proposed. The main improvements were as follows: in the feature extraction network part, EvcBlock module was added to enhance the feature extraction ability of small targets, and CBAM attention mechanism was added to improve the attention of important features; the lightweight model was realized by using C3-FASTER module to optimize the C3 module; a new type of loss function ShapeIoU with shape loss was introduced into the detection end, which optimized the fitting effect of the predicted frame and the real frame, and improved the precision of defect detection. The experimental results demonstrate that: in comparison to the original YOLOv5s model, the mAP@0.5 of the improved YOLOv5s model has increased by 3.6%, reaching 88.7%, while the number of parameters has been reduced by 2.1%. The detection speed of the improved model is 121.95 frames per second, and its overall performance is superior to 5 models such as YOLOv8s, which can meet the needs of pultrusion plate defect detection.

Key words: pultrusion plate, YOLOv5s, defect detection, EvcBlock, C3-faster, ShapeIoU, composites

中图分类号: