中国安全科学学报 ›› 2026, Vol. 36 ›› Issue (5): 234-242.doi: 10.16265/j.cnki.issn1003-3033.2026.05.0395

• 安全技术与工程 • 上一篇    下一篇

改进YOLOv5s的电梯曳引钢丝绳外表面缺陷检测

李春生1(), 孙卫红1,**(), 梁曼1, 李杰锋2   

  1. 1 中国计量大学 机电工程学院, 浙江 杭州 310018
    2 江苏特种设备安全监督检验研究院苏州分院, 江苏 苏州 215031
  • 收稿日期:2025-12-08 修回日期:2026-03-26 出版日期:2026-05-28
  • 通信作者:
    ** 孙卫红(1969—),男,江西鹰潭人,博士,教授,主要从事机电类、承压类等特种设备无损检测技术、制造业信息化及装置研发等方面的研究。E-mail:
  • 作者简介:

    李春生 (1998—),男,河南周口人,硕士研究生,主要研究方向为机器视觉、深度学习、机电类及承压类等特种设备无损检测技术等。E-mail:

    梁曼 讲师。

    李杰锋 高级工程师。

  • 基金资助:
    国家重点研发计划资助项目(2023YFF06149000); 江苏省特种设备监督检验研究院科技计划项目(KJ(Y)2023052)

Improved YOLOv5s for outer surface defect detection of elevator traction steel wire rope

Li Chunsheng1(), Sun Weihong1,**(), Liang Man1, Li Jiefeng2   

  1. 1 College of Mechanical and Electrical Engineering, China Jiliang University, Hangzhou Zhejiang 310018, China
    2 Jiangsu Special Equipment Safety Supervision and Inspection Research Institute Suzhou Branch, Suzhou Jiangsu 215031, China
  • Received:2025-12-08 Revised:2026-03-26 Published:2026-05-28

摘要:

为提升电梯曳引钢丝绳外表面缺陷隐患的检测效率与自动化水平,降低电梯事故发生率,构建一种基于改进YOLOv5s的电梯曳引钢丝绳外表面缺陷在线检测模型。首先,在特征提取模块C3中引入幽灵卷积(GC)模块降低计算量,并融入卷积注意力模块(CBAM)增强小尺度缺陷的特征提取能力,构建融合GC与CBAM的特征提取模块GC-C3(GC and CBAM- C3);其次,在特征融合层采用路径聚合网络(PANet)与双向特征金字塔网络(BiFPN),构建多尺度特征融合网络PBNet(PANet-BiFPN),结合多尺度权重分配策略提升多尺度缺陷特征信息的融合效果;然后,采用加权交并比(WIoU)损失函数动态调整预测框质量权重,减少低质量样本对训练的干扰;最后,将该模型部署至开发的检测系统,在电梯轿顶在线检测试验曳引钢丝绳外表面缺陷,验证模型的改进效果,并对缺陷分级提醒。结果表明:改进后模型的平均检测精度均值为96.2%,检测速度为192帧/s,较原模型分别提升4.1%、12.3%,模型体积减少38.9%;从在线可视化试验得出,在曳引钢丝绳实际运行环境下(光照200~400 lx、速度1.5~2 m/s),系统对8类典型外表面缺陷的平均精度均值仍稳定在94.6%以上,满足服役曳引钢丝绳外表面缺陷隐患在线检测应用需求,减少因曳引钢丝绳外表面缺陷引发的电梯事故。

关键词: YOLOv5s, 电梯曳引钢丝绳, 外表面缺陷, 缺陷检测, 特征提取, 特征融合

Abstract:

To improve the detection efficiency and automation level of hidden defects on the outer surface of elevator traction steel wire ropes, and reduce the incidence of elevator accidents, an online detection model for defects on the outer surface of elevator traction steel wire ropes based on improved YOLOv5s is constructed. Firstly, the GhostConv module is introduced into the feature extraction layer C3 module to reduce computational complexity, and the Convolutional Block Attention Module (CBAM) is integrated to enhance the feature extraction capability of small-scale defects. A feature extraction module GC-C3 (GhostConv and CBAM-C3) that integrates GhostConv and CBAM is constructed; Secondly, in the feature fusion layer, Path Aggregation Network (PANet) and Bidirectional Feature Pyramid Network (BiFPN) are used to construct a multi-scale feature fusion network PBNet (PANet BiFPN), which combines multi-scale weight allocation strategy to improve the fusion effect of multi-scale defect feature information; Then, dynamically adjusting the quality weights of prediction boxes using Weighted Intersection over Union(WIoU) loss function, reducing the interference of low-quality samples on training. Finally, the model will be deployed to the developed detection system to perform online testing on the surface defects of the traction steel wire rope on the elevator car roof, verify the improvement effect of the model, and provide grading reminders for the defects. The results showed that the average detection accuracy of the improved model was 96.2%, with a detection speed of 192 f/s, which was 4.1% and 12.3% higher than the original model, respectively. The model volume was reduced by 38.9%. According to the online visualization experiment, under the actual operating environment of the traction steel wire rope (light illumination of 200~400 lx, speed of 1.5~2 m/s), the average accuracy of the system for 8 typical external surface defects is still stable at 94.6% or above, which meets the application requirements of online detection of hidden dangers of external surface defects of the traction steel wire rope in service and reduces elevator accidents caused by external surface defects of the traction steel wire rope.

Key words: YOLOv5s, elevator traction steel wire rope, outer surface defects, defect detection, feature extraction, feature fusion

中图分类号: