Journal of System Simulation ›› 2024, Vol. 36 ›› Issue (11): 2604-2615.doi: 10.16182/j.issn1004731x.joss.23-0914

Previous Articles    

Automatic Detection Algorithm for Typical Defects of Substation Based on Improved YOLOv5

Xu Zhongkai1, Liu Yanling2, Sheng Xiaojuan3, Wang Chao1, Ke Wenjun4   

  1. 1.NR Electric Co. , Ltd. , Nanjing 211102, China
    2.Chuxiong Power Supply Bureau of Yunnan Power Grid Co, Chuxiong 675000, China
    3.China Aerospace Software Testing and Evaluation Center, Beijing 100854, China
    4.School of Computer Science and Engineering, Southeast University, Nanjing 211189, China
  • Received:2023-07-20 Revised:2023-11-06 Online:2024-11-13 Published:2024-11-19

Abstract:

In response to the challenges present in the context of defect recognition in substations, such as complex substation defects and sample imbalance, an improved YOLOv5 algorithm was proposed. The Transformer model was introduced into the YOLOv5 network structure, leveraging the self-attention mechanism to capture long-range dependencies among features. A focal loss-based optimization was employed to improve the loss function, as well as the detection accuracy and robustness of defects of small sample substations. To meet the requirements of substation defect recognition, a dedicated dataset was constructed. A clustering algorithm was applied to the real annotation boxes to generate more accurate prior boxes. The genetic algorithm was utilized to select hyperparameters that are specifically tailored to the dataset, further enhancing the algorithm's performance. Experimental results demonstrate that the proposed algorithm achieves favorable performance in substation defect recognition tasks. In comparison to the traditional YOLOv5 algorithm, the proposed algorithm exhibits superior capabilities in recognizing complex substation defects and small sample targets.

Key words: target detection, YOLOv5, Transformer, self-attention mechanism, substation defect recognition

CLC Number: