基于改进YOLOv5s的旋转绝缘子缺陷检测

朱文凯, 李运堂, 张坤, 李恒杰, 冯娟, 金杰, 章聪, 陈源, 李孝禄, 白金鹏

计量学报 ›› 2026, Vol. 47 ›› Issue (2) : 271-282.

PDF(4682 KB)
PDF(4682 KB)
计量学报 ›› 2026, Vol. 47 ›› Issue (2) : 271-282. DOI: 10.3969/j.issn.1000-1158.2026.02.15
电磁学计量

基于改进YOLOv5s的旋转绝缘子缺陷检测

作者信息 +

Defect Detection of Rotating Insulators Based on Improved YOLOv5s

Author information +
文章历史 +

摘要

针对航拍角度导致的水平矩形框中的绝缘子检测背景区域过大的问题,采用旋转目标框替代水平矩形框对绝缘子进行检测,构建Ghost-YOLOv5s网络,实现旋转绝缘子缺陷高精度、快速检测。将轻量化的GhostNet作为YOLOv5s主干网络,减少网络参数,提高检测速度;颈部网络采用双向特征金字塔结构,并引入可学习的通道权重进行自适应加权,加强网络浅层特征的有效复用,提高检测精度;头部网络预测模块引入旋转量,使预测框定位更精准,减少漏检,提高检测准确性;采用相对熵损失函数计算边界框回归损失,解决引入旋转量导致的损失值突变问题;添加第4检测层并聚类分析绝缘子数据集确定预测锚框尺寸,提高网络小目标检测精度;利用剪枝算法压缩模型体积,加快检测速度。实验结果表明:剪枝后的Ghost-YOLOv5s网络检测精度和速度分别为95.9%和78.6 帧/s,满足绝缘子缺陷检测要求。

Abstract

In order to solve the problem that the background area of insulator detection in the horizontal rectangular frame becomes excessively large due to aerial shooting angles, a rotating bounding box is used instead of the horizontal rectangular frame to detect the insulator, and the Ghost-YOLOv5s network is constructed to achieve high-precision and fast detection of insulator defects using rotating bounding boxes. The lightweight GhostNet is employed as the backbone network of YOLOv5s to reduce network parameters and enhance detection speed. In the neck network, a bidirectional feature pyramid structure is adopted along with the introduction of learnable channel weights for adaptive weighting, strengthening the effective reuse of shallow features in the network and improving detection accuracy. The head network prediction module introduced rotation variables to improve the accuracy of bounding box localization, reduce missed detections, and improve detection accuracy. A relative entropy loss function is used to calculate the bounding box regression loss, addressing the issue of loss value mutation caused by the introduction of rotation variables. A fourth detection layer is added, and clustering analysis on the insulator dataset determine the sizes of the predicted anchor boxes, improving the network’s precision in detecting small targets. A pruning algorithm is applied to compress the model size, further increasing detection speed. Experimental results show that the pruned Ghost-YOLOv5s network achieve a detection precision and speed of 95.9% and 78.6 fps, respectively, meeting the requirements for insulator defect detection.

关键词

绝缘子缺陷 / 旋转目标框 / 聚类分析 / 剪枝算法 / 航拍图像 / 轻量化

Key words

insulator defects / rotate the target box / cluster analysis / pruning algorithm / aerial image / lightweight

引用本文

导出引用
朱文凯, 李运堂, 张坤, . 基于改进YOLOv5s的旋转绝缘子缺陷检测[J]. 计量学报. 2026, 47(2): 271-282 https://doi.org/10.3969/j.issn.1000-1158.2026.02.15
ZHU Wenkai, LI Yuntang, ZHANG Kun, et al. Defect Detection of Rotating Insulators Based on Improved YOLOv5s[J]. Acta Metrologica Sinica. 2026, 47(2): 271-282 https://doi.org/10.3969/j.issn.1000-1158.2026.02.15
中图分类号: TB971    TB973   

参考文献

[1]
徐建军, 黄立达, 闫丽梅, 等. 基于层次多任务深度学习的绝缘子自爆缺陷检测[J]. 电工技术学报202136(7): 1407-1415.
XU J J HUANG L D YAN L M, et al. Insulator Self‑Explosion Defect Detection Based on Hierarchical Multi‑Task Deep Learning[J]. Transactions of China Electrotechnical Society202136(7): 1407-1415.
[2]
GAO Z YANG G LI E, et al. Novel feature fusion module‑based detector for small insulator defect detection[J]. IEEE Sensors Journal202121(15): 16807-16814.
[3]
PAN L CHEN L ZHU S, et al. Research on Small Sample Data‑driven Inspection Technology of UAV for Transmission Line Insulator Defect Detection[J]. Information202213(6): 276.
[4]
LIAN X WANG D. Insulator Defect Detection Algorithm Based on Improved YOLOv5[J]. Frontiers in Computing and Intelligent Systems20233(2): 44-47.
[5]
HARRAS M S SALEH S HARDT W. Exploring SSD Detector for Power Line Insulator Detection on Edge Platform[J]. Embedded Selforganising Systems202310(5): 13-17.
[6]
LIU X LI Y SHUANG F, et al. Issd: Improved SSD for Insulator and Spacer Online Detection Based on UAV System[J]. Sensors202020(23): 6961.
[7]
WEI D HU B SHAN C, et al. Insulator Defect Detection Based on Improved Yolov5s[J]. Frontiers in Earth Science202411: 1337982.
[8]
XU S DENG J HUANG Y, et al. Research on Insulator Defect Detection Based on an Improved Mobilenetv1‑Yolov4[J]. Entropy202224(11): 1588.
[9]
YANG Z XIE R LIU L, et al. Dense‑YOLOv7: Improved Real‑time Insulator Detection Framework Based on YOLOv7[J]. International Journal of Low‑Carbon Technologies202419: 157-170.
[10]
李耀, 胡军国, 乐杨. 融合GhostNet的YOLOv5垃圾分类方法[J]. 电子技术应用202450(1): 14-20.
LI Y HU J G YUE Y. YOLOv5 Garbage Classification Method with GhostNet[J]. Application of Electronic Technique202450(1): 14-20.
[11]
朱文超, 杨洁, 何超. 林区视频监控下车流量分类统计 [J].计量学报202344(7): 1093-1099.
ZHU W C YANG J HE C. Traffic Classification Statistics under Video Surveillance in Forest Areas[J]. Acta Metrologica Sinica202344(7): 1093-1099.
[12]
LI A ZHAO Y ZHENG Z. Novel Recursive BiFPN Combining with Swin Transformer for Wildland Fire Smoke Detection[J]. Forests202213(12): 1-12.
[13]
胡惠娟, 秦一锋, 徐鹤, 等. 面向无人机航拍图像的YOLOv8目标检测改进算法 [J]. 计算机科学202552 (4): 202-211.
HU H J QIN Y F XU H, et al. An Improved YOLOv8 Object Detection Algorithm for UAV Aerial Images [J]. Computer Science202552 (4): 202-211.
[14]
赵振兵, 蒋志钢, 李延旭, 等. 输电线路部件视觉缺陷检测综述[J]. 中国图象图形学报202126 (11): 2545-2560.
ZHAO Z B JIANG Z G LI Y G, et al. Overview of Visual Defect Detection of Transmission Line Components[J]. Journal of Image and Graphics202126(11): 2545-2560.
[15]
APICELLA A DONNARUMMA F ISGOO F, et al. A Survey on Modern Trainable Activation Functions[J]. Neural Networks2021138: 14-32.
[16]
朱奇光, 商健, 刘博, 等.基于无人机航拍视频车辆多目标跟踪算法研究[J]. 计量学报202445 (12): 1772-1779.
ZHU Q G SHANG J LIU B, et al. Research on Vehicle Multi‑target Tracking Algorithm Based on UAV Aerial Video[J]. Acta Metrologica Sinica202445 (12): 1772-1779.
[17]
WANG C Y BOCHKOVSKIY A LIAO H Y M. YOLOv7: Trainable bag‑of‑freebies sets new state‑of‑the‑art for real‑time object detectors[C]//IEEE. Proceedings of the IEEE/CVF conference on computer vision and pattern recognition. Los Angeles, US, 2023: 7464-7475.
[18]
VARGHESE R SAMBATH M. YOLOv8: A Novel Object Detection Algorithm with Enhanced Performance and Robustness[C]//IEEE. 2024 International Conference on Advances in Data Engineering and Intelligent Computing Systems (ADICS). Bangalore, India, 2024: 1-6.
[19]
王媛彬, 韦思雄, 吴华英, 等. 基于改进YOLOv5s的矿井下安全帽佩戴检测算法[J]. 煤炭科学技术202553(S1): 366-377.
WANG Y B WEI S X WU H D, et al. Detection Algorithm for Wearing Safety Helmet under Mine Based on Improved YOLOv5s[J]. Coal Science and Technology202553(S1): 366-377.
[20]
HE H HUANG X SONG Y, et al. An Insulator Self‑blast Detection Method Based on YOLOv4 with Aerial Images[J]. Energy Reports20228: 448-454.
[21]
WEN Q LUO Z CHEN R, et al. Deep Learning Approaches on Defect Detection in High Resolution Aerial Images of Insulators[J]. Sensors202121(4): 1033.
[22]
RAJENDRA A WANG I RAHMAN M. Orientation Estimation of Robotic Gripper to Grasp Activities of Daily Living (ADL) Object Using YOLOv5‑OBB[J]. Archives of Physical Medicine and Rehabilitation2024105(4): e52-e52.
[23]
孙宏磊, 陈雯柏, 刘辉翔. 一种改进的YOLOv7‑OBB舰船识别方法[J]. 兵器装备工程学报202445(8): 192-198.
SUN H L CHENG W B LIU H X. An Improved YOLOv7‑OBB Ship Identification Method[J]. Acta Metrologica Sinica202445(8): 192-198.

基金

浙江省属高校基本科研业务(2020YW29)

PDF(4682 KB)

Accesses

Citation

Detail

段落导航
相关文章

/