电工技术2024,Issue(17) :185-189.DOI:10.19768/j.cnki.dgjs.2024.17.050

基于注意力机制改进的YOLOv5绝缘子缺陷检测

Attention Mechanism-based Improved YOLOv5 Algorithm for Insulator Defect Detection

薛宇 曲永 闫好霖 王帅
电工技术2024,Issue(17) :185-189.DOI:10.19768/j.cnki.dgjs.2024.17.050

基于注意力机制改进的YOLOv5绝缘子缺陷检测

Attention Mechanism-based Improved YOLOv5 Algorithm for Insulator Defect Detection

薛宇 1曲永 1闫好霖 1王帅2
扫码查看

作者信息

  • 1. 国网河南省电力公司南阳供电公司,河南 南阳 473005
  • 2. 郑州轻工业大学,河南 郑州 450000
  • 折叠

摘要

提出了一种基于注意力机制改进的 YOLOv5 s检测方法,以提高绝缘子缺陷检测的准确率和效率.首先,在YOLOv5 s网络模型的架构中,在其颈部(Neck)引入了空间与通道卷积块注意力模型(CBAM),目的是实现对缺陷区域的重点关注.同时,通过引入双向特征金字塔网络(BiFPN)进行优化改进,进一步完善了模型的性能.此外,对损失函数进行了优化,以进一步提高模型的整体训练效果.实验结果表明,改进的 YOLOv5 s 算法相比原 YOLOv5 s 算法对绝缘子缺陷检测的精准率提升了 4.69%,召回率提升了 2.56%,F1 分数提升了 4.09%,AP提升了 5.16%.

Abstract

This paper proposes an improved YOLOv5s detection method based on attention mechanism to give rise to ac-curacy and efficiency of insulator defect detection.First in the architecture of YOLOv5s network model,the spatial and channel convolutional block attention model(CBAM)is introduced in its neck to achieve the focus on the defect area.At the same time,the performance of the model is further improved by introducing bi-directional feature pyramid network(BiFPN)for optimization and improvement.In addition,the loss function is optimized to further improve the overall train-ing effect of the model.The experimental results show that in the aspect of insulator defect detection,the accuracy,recall rate,F1 score,and AP of the improved YOLOv5s algorithm is increased by 4.69%,2.56%,4.09%,and 5.16%,com-pared to the original YOLOv5s algorithm.

关键词

绝缘子缺陷检测/注意力机制/CBAM/YOLOv5s/BiFPN

Key words

insulator defect detection/attention mechanism/CBAM/YOLOv5s/BiFPN

引用本文复制引用

出版年

2024
电工技术
重庆西南信息有限公司(原科技部西南信息中心)

电工技术

影响因子:0.177
ISSN:1002-1388
段落导航相关论文