원시데이터 수집 시스템
선정목록으로

Improved YOLOv7 model for insulator defect detection

관련 수소연료전지 · (5) 연료전지용 수분제어장치(가습기)

기본 정보

저자
  1. Zhenyue Wang — School of Information Science and Engineering, Yunnan University, Kunming 650504, China|||Electric Power Research Institute, Yunnan Power Grid Co., Ltd, Kunming, Yunnan 650214, China
  2. Guowu Yuan — School of Information Science and Engineering, Yunnan University, Kunming 650504, China
  3. Hao Zhou — School of Information Science and Engineering, Yunnan University, Kunming 650504, China
  4. Yi Ma — Electric Power Research Institute, Yunnan Power Grid Co., Ltd, Kunming, Yunnan 650214, China
  5. Yutang Ma — Electric Power Research Institute, Yunnan Power Grid Co., Ltd, Kunming, Yunnan 650214, China
  6. Dong Chen — School of Information Science and Engineering, Yunnan University, Kunming 650504, China|||Electric Power Research Institute, Yunnan Power Grid Co., Ltd, Kunming, Yunnan 650214, China
DOI
10.3934/era.2024131
저널
Electronic Research Archive
발행년도
2024
발행기관
American Institute of Mathematical Sciences
피인용수
0
라이선스
cc-by
논문 유형
–
언어
–
원문 페이지
https://doi.org/10.3934/era.2024131
토픽
High voltage insulation and dielectric phenomena
OpenAlex ID
W4394772879

평가 내용

관련도
관련
사업분야
수소연료전지 · (5) 연료전지용 수분제어장치(가습기)
부 분야
–
R&D 측면
–
확신도
–
근거 용어
–
판단 근거
임베딩 유사도 기반 평가로 '수소연료전지 > 연료전지용 수분제어장치(가습기)' 분야에 선정된 논문입니다.
R&D 활용 포인트
–
평가 입력
–

초록

Insulators are crucial insulation components and structural supports in power grids, playing a vital role in the transmission lines. Due to temperature fluctuations, internal stress, or damage from hail, insulators are prone to injury. Automatic detection of damaged insulators faces challenges such as diverse types, small defect targets, and complex backgrounds and shapes. Most research for detecting insulator defects has focused on a single defect type or a specific material. However, the insulators in the grid's transmission lines have different colors and materials. Various insulator defects coexist, and the existing methods have difficulty meeting the practical application requirements. Current methods suffer from low detection accuracy and mAP0.5 cannot meet application requirements. This paper proposes an improved YOLOv7 model for multi-type insulator defect detection. First, our model replaces the SPPCSPC module with the RFB module to enhance the network's feature extraction capability. Second, a CA mechanism is introduced into the head part to enhance the network's feature representation ability and to improve detection accuracy. Third, a WIoU loss function is employed to address the low-quality samples hindering model generalization during training, thereby improving the model's overall performance. The experimental results indicate that the proposed model exhibits enhancements across various performance metrics. Specifically, there is a 1.6% advancement in mAP_0.5, a corresponding 1.6% enhancement in mAP_0.5:0.95, a 1.3% elevation in precision, and a 1% increase in recall. Moreover, the model achieves parameter reduction by 3.2 million, leading to a decrease of 2.5 GFLOPS in computational cost. Notably, there is also an improvement of 2.81 milliseconds in single-image detection speed.

본문 39,397자

본문 펼치기
_Research article_ ## Improved YOLOv7 model for insulator defect detection Zhenyue Wang <sup>1,2</sup> , Guowu Yuan <sup>1,*</sup> , Hao Zhou <sup>1</sup> , Yi Ma <sup>2</sup> , Yutang Ma <sup>2</sup> and Dong Chen <sup>1</sup> 1 School of Information Science and Engineering, Yunnan University, Kunming 650504, China 2 Electric Power Research Institute, Yunnan Power Grid Co., Ltd, Kunming, Yunnan 650214, China * Correspondence: Email: gwyuan@ynu.edu.cn. Abstract: Insulators are crucial insulation components and structural supports in power grids, playing a vital role in the transmission lines. Due to temperature fluctuations, internal stress, or damage from hail, insulators are prone to injury. Automatic detection of damaged insulators faces challenges such as diverse types, small defect targets, and complex backgrounds and shapes. Most research for detecting insulator defects has focused on a single defect type or a specific material. However, the insulators in the grid’s transmission lines have different colors and materials. Various insulator defects coexist, and the existing methods have difficulty meeting the practical application requirements. Current methods suffer from low detection accuracy and mAP0.5 cannot meet application requirements. This paper proposes an improved you only look once version 7 (YOLOv7) model for multi-type insulator defect detection. First, our model replaces the spatial pyramid pooling cross stage partial network (SPPCSPC) module with the receptive filed block (RFB) module to enhance the network’s feature extraction capability. Second, a coordinate attention (CA) mechanism is introduced into the head part to enhance the network’s feature representation ability and to improve detection accuracy. Third, a wise intersection over union (WIoU) loss function is employed to address the low-quality samples hindering model generalization during training, thereby improving the model’s overall performance. The experimental results indicate that the proposed model exhibits enhancements across various performance metrics. Specifically, there is a 1.6% advancement in mAP_0.5, a corresponding 1.6% enhancement in mAP_0.5:0.95, a 1.3% elevation in precision, and a 1% increase in recall. Moreover, the model achieves parameter reduction by 3.2 million, leading to a decrease of 2.5 GFLOPS in computational cost. Notably, there is also an improvement of 2.81 milliseconds in single-image detection speed. This improved model can detect insulator defects for diverse materials, color insulators, and partial damage shapes in complex backgrounds. Keywords: Insulator; defect detection; YOLO; receptive filed block; coordinate attention; WIoU 1. Introduction Insulators are essential components of power transmission lines, playing a crucial role in insulation and structural support and ensuring the safety of transmission lines. In complex terrain and harsh environments, most transmission lines are subjected to physical and chemical erosion over time, making them prone to defects such as self-explosion and damage. Regular inspections are <u>2</u> necessary to monitor the operational status of insulators and ensure the safe operation of power transmission lines [1]. Insulator defects in power line inspections require manual observation or manual detection of drone images. This approach is labor-intensive, inefficient, and easily influenced by the skill level of the personnel, resulting in inconsistent detection results [2]. Relying solely on manual inspection is insufficient to meet the requirements of automated grid inspections [3]. Nowadays, drones can capture image data of power transmission lines, and computer vision methods can identify images automatically. This approach effectively solves manual inspections and is one of the crucial methods for line inspections [4,5]. Early detection of insulator defects was primarily based on traditional digital image processing techniques, using traditional template matching methods to extract defect features from insulator images [6,7], and employing manually designed templates to extract insulator features [8]. Nevertheless, the intricate and varied intricacies present in insulator images pose challenges in encapsulating the holistic attributes of the targets through a singular manually crafted descriptor. Consequently, defect detection becomes arduous. Additionally, employing machine learning techniques grounded in probabilistic statistics frequently demands intricate feature descriptors. However, feature representations acquired from shallow network architectures exhibit constrained efficacy and generalization capacity in tackling intricate object detection issues. With the advancement of deep learning, several approaches for detecting insulator defects have emerged. Jiang et al. [10] utilized a multi-layer perceptron ensemble learning model, achieving a detection accuracy of 92.26%. Sadykova et al. [11] applied a YOLOv2 model for insulator detection, but detecting defects still required manual inspection. Wang et al. [12] proposed an enhanced faster region-based convolutional neural network (R-CNN) model, integrating split-attention networks (ResNeSt) and introducing the RPN network to enhance defect feature extraction, resulting in an accuracy of 98.38%. To address limited training data and labor-intensive annotation, Shi et al. [13] introduced a weakly supervised learning method based on faster R-CNN, reaching a defect detection accuracy of 92.86% and an F1-Score of 90.85%. Zhao et al. [14] employed a feature pyramid network (FPN) FRCN for detecting dropout and crack defects on insulators. Luo et al. [15] proposed a combined object detection framework comprising Faster R-CNN and YOLOv3, achieving a reduced miss rate in insulator defect detection. Zhang et al. [16] designed a densely connected FPN, enhancing semantic and positional information integration, thus improving detection performance. Liu et al. [17] utilized YOLOv4 for insulator object detection, integrating the watershed algorithm for positioning insulator burst defects. Additionally, they proposed an improved YOLOv3 model, incorporating a densely connected convolutional networks (DenseNet) module, which achieved a detection accuracy of 96.29%. Wang et al. [19] enhanced the generative adversarial network (GAN) for insulator defect detection, resulting in an average precision of 84.6% for detecting glass insulator self-explosion defects. Kang et al. [20] introduced the concat bidirectional feature pyramid network (CAT-BiFPN) into YOLOv7 for multi-class insulator defects, improving feature fusion and achieving an average accuracy of 93.9%. Singh et al. [21] proposed a three-step method for classifying defective insulators in high-voltage transmission lines. Souza et al. [22] presented a hybrid version of YOLO called Hybrid-YOLO, combining YOLOv5 and ResNet-18 for object detection and classification, achieving an F1_score of 0.96216 and a mAP_0.5 of 0.99262. Stefenon et al. [23] introduced YOLOu-Quasi-ProtoPNet, a model trained from scratch, achieving an F1_score of 0.95165 based on DenseNet-161. <u>3</u> Curre n defect or a different c o struggle to object dete c of insulato r framework substituted integrated experimen t self-explos i n tly, most r particular lors and m meet prac t c tion mode l r defect de t leveraging with the R into the h e al results s h esearch on material in aterials, a n t ical applic l that offer s t ection, thi s R FB mod u ad section h ow that o u and partial insulator d sulator. Ho w d multiple ation requi r accuracy a s study pre s Initially, t h le [25]. S u alongside u r refined m damage in p t ion focuse lators in p o sulator def e h e YOLO v d vantages. T hanced m u C module w , a coordi n oration of f icantly im p s mission li n marized as distinct c l ators. Yun n These sam p characteris t s on detect i o wer grid tr e cts coexis t 7 [24] mo d T aking int o lti-type in s w ithin the Y n ate attenti o a WIoU l o p roves the p e insulator s . ng a speci f ansmissio n , and exist i d el is a rel account th ulator def e OLOv7 ar c o n mecha n ss functio n recision i n . o f insulat o G rid Co., L intricate b ing shape s n lines hav e i ng method s atively ne w e intricacie s ct detectio n c hitecture i s ism [26] i s n [27]. Th e identifyin g f ic insulato r YOLOv7. efect detec t w ever, ins u kinds of in r ements. T h nd speed a d s ents an e n e SPPCSP C bsequentl y the incorp odel signi f p ower tran s i on defects imary cont e curate i on defects , ower Grid, o oting per s defect typ e sulator de f curacy in d The p r ributions o f this study ributions o f a dataset partial da m generousl y pectives, a s. a novel m delivering can be su m ing three ormal insu l h e images. insulator follows: les exhibi t t ics, inclu d (1) W self-explos i Southern P diverse sh o colors, and (2) W e YOLOv7 a r encompas s ategories o : , , m age, and n provides t h nd variou s an Power G o r sample s : td. of Chin a ackground s, s, material s e introduce r chitecture , ulti-type i n superior a c ect detecti o etection pe r n model b u r formance. ilt upon t h e enhance d ilt upon t h 2. Dataset Yunn a sample im a defects, an d Figure 1(b) Beca u detected i n after detec t for clear di s n Power G ges. We cl a d partial da m shows sel f- se the sam p sulator is o ion. In Fig u p le images nly a tiny p u re 1, we o paper. rid Co., L ssify the i n age defect s explosion i td. provid e n sulator sa m s, with 100 0 i nsulators, a have large p roportion nly interce p s the insu l ple image s images for nd Figure 1 sizes with of the wh o ted the d e l ator defec t s into three each type. F (c) shows p a resolutio n le image, i fective par t t dataset, a categories: n of 4000 × t isn't easy t of the ins u F igure 1(a) s artially da m nd drones normal, se s hows nor m lator and m aged insu l ators. aged insu l capture th e lf-explosio n s, al insulator × 3000 pi x to see the x els and th e actual lab e l agnified i l t s play in th e (a) Normal in s ulators Normal in s <u>4</u> ( b)Self-e x b)Self-e x plosion de f f ect insulat o o rs (c)Par t ial damag e insulators ial damag e Figure 1. Colle c Figu ted insulat o r image d a taset. From F various sh a and the sa m of defect d e F igure 1, t h pes, mater i e insulator i als, and c o efect can h ges have c o ficant diff e manifesta t o mplex ba c rences exi s t ions. Thes e kground a n s ted in sho o e diversitie s d the insul a ting angle increase t h a tors exhib i t s and size s t , e type of d e tection. sample im a o lors. Sign i ave divers e e difficult y 3. Proposed method To tac varied dam a framework . thereby au g attention ( C self-explos i capabilities samples o n enhanceme n kle the co m a ge shapes Within th i menting th e A) mecha n on defects a . Furtherm o the mode l plexities a r observed i n s model, t h e network's ism into th e a nd partial d re, the WI o l 's training rated upo n r ising from insulators , e SPPCSP C feature ext r e head seg m the divers e we propos C module u action cap a ent to enha n ances, thus ction is int r ereby enh a colors, int r c ed model b ubstitution i onally, we i n precisio n he networ k' mitigate th e g eneralizati o icate back g uilt upon t h with the R ntegrate th concernin g s feature re impact o f n perform rounds, an d h e YOLOv 7 FB modul e, e coordinat e small-scal e presentatio n low-qualit y ance. Thes e , amage ins t materials, e an enhan c u ndergoes s a city. Addit i n ce detecti o bolstering t r oduced to a ncing its g ts are elab o o U loss fu n process, t h extensivel y in section s 3.2–3.4. in section s _3.1. Impro_ _v_ _ed YOLOv_ _7_ _model_ Figur e parts in th e Section 3.3 2 shows t h original m describes t h h e improv e odel. Speci e CA mec h d YOLOv 7 fically, Sec t anism, an d - red boxe s ceptive fil ed t he WIoU l o indicate t h block (R F ss functio n e modifie d B) modul e . , model, w h ion 3.2 ex p Section 3. h ere the tw lains the r e 4 presents t <u>5</u> Figur e 2. Impro ved YOLO v 7 model f o r insulator defect det e ction. _3.2. Recep_ _t_ _ive field bl_ _o_ _ck (RFB)_ Given shapes of p model wit h SPPCSPC different a p of various s human visi o Inspir e regular co n convolutio n feature ext r parameter c visually de p the divers e artial dam a the RFB module w a a nt, facilita t gure 3. materials rs, along w SPC modu k 's feature YOLOv7 m odule dist i [29] withi n s s branches , expands th e igher-resol u ith the int r le found i n extraction c model, th e rs, utilizin g m s to mimi c rowess. i nguishes i t n each bra n , contributi n g rounds an d al YOLOv 7 . While th e o rporating a l y, the mai n rse range of keeping th e B module i s f a ge, we op module to a s initially employs m ieve superi o enhancing of insulat o the SPPC he networ k within th e ch convol u nce. This a k 's feature e the RFB m onvolution vary acro s e xtraction p d ule takes a proach. It s izes to ach u tional laye pproach ai m icate back g the origin c apabilities RFB mo d convoluti o the recep t o nal kernel s ive fields of f o n, thereby e d by the I n volution f o n al kernel s i action cap a ount const a and colors t to replac e augment t introduced ultiple bra n o r perform a the networ k ncept [28], a dilated c ated factor s e dilated c o t ing the ext r ception c o llowed by zes and di l bilities. T h self by inc o n ch. Notab l g to a div e field while es. The RF receptive tion featu r nvolution r action of h icted in Fi <u>6</u> Figure 3. RFB st r ucture. 3. RFB st r _3.3.CA me_ _c_ _hanism_ ad sectio n This s the issue o captures c informatio n informatio n tudy integ r f missing hannel rel a . The C A and gener a ates a coor small-scal e mechanis m ting coord tion (CA) and dam a t erm depe n mechanis m ged insul a dencies b - primar y A attentio n into the h e tors. This m y leverag i to mitigat e effectivel y position a l oordinatin g Figure 4. tionships dinate atte n self-blast s and long- t m operates inating atte n m echanis m ng precis e bedding c lustrated i n l through t w tion. The C steps: e m block is i l Figu re 4. CA block. re 4. CA b The p r global spat i the loss of horizontal a transforma t enabling t h precise po s r ocess of e m i al informa t positional m bedding c t ion into a details. To l direction e ely conver t module t o rmation. T his modu l rmation. T c oordinate i single cha n address th i ckle the c h global poo l g step divi d d ually, as d e -to-one fe a l receptive accurately allenge of ing, which es global p epicted in E ture enco d field whil e localize t h condensin g can lead t o ooling int o e target o a nd vertica l ion effecti v e attentio n s itional in fo e ncoding f o t s the pooli n capture a aims to t a tor during embeddin g n nel indivi d n into a on e sive globa l e network E q (1). Thi s ing proces s, preservin g , i nformatio n nel descri p s issue, th e r each cha n n g operati o comprehe n e helps t h f <u>7</u> ##### interest. z c is the output of the c-channel, H and W represent the number of width and height of the input vector, respectively. <sup>_x_</sup> _c_ <sup>(</sup> _i_ <sup>,</sup> _j_ <sup>)</sup> is the input vector of c-channel, with the i-th row and the j-th column. _H_ _W_ <u>1</u> _H_ _W_ #  xc (, i j ) <u>1</u> _H_ _W_ # zc   xc (, i j ) (1) _H_  _W_ _i_  1 _j_  1 1 _j_  1 The process of generating coordinate attention utilizes the rich features generated through the embedding of coordinate information. During this step, the feature map derived from Eq 1 is further processed along both horizontal and vertical directions to produce intermediate feature maps f  _RC_ / _r_  (H+W) <sup>that encode detailed spatial information.</sup> <sup>_r_</sup> <sup>is a reduction ratio to control the block’s</sup> size. Then, the tensor f is decomposed into two different tensors f _h_  _R_ _C_ / _r_  H f _h_  _R_ _C_ / _r_  H and f _w_  _RC_ / _r_  W f _w_  _RC_ / _r_  W . Subsequently, Eq 2 is used to process f _h_ <sup>and</sup> f _w_ <sup>independently, generating attention vectors</sup> g _h_ and g _w_ . _h_ _h_   f #  Fh    _h_ f #  Fh  _h_ g   _Fh_ f , (2) _w_ _w_   f #  Fw    _w_ f #  Fw   _w_ g   _Fw_ f ##### where,  is a sigmoid activation function, and Fh  and Fw  represent 1 x 1 convolutional transformation function. Finally, the output of the coordinate attention block can be represented by Eq 3, where <sup>_y_</sup> _c_ ( _i_, _j_ ) represents the output vector of c-channel with the i-th row and the j-th column, <sup>_x_</sup> _c_ ( _i_, _j_ ) represents the input vector of c-channel with the i-th row and the j-th column, <sup>_g_</sup> _ch_ ( ) _i_ represents the attention vector in the x direction of c-channel in the i-th row and <sup>_g_</sup> _cw_ ( _j_ ) represents the attention vector in the y direction of c-channel in column j: _yc_ (, _i_ _j_ )  _xc_ (, _i_ _j_ )  _gch_ ( ) _i_  _gcw_ ( _j_ ) (3) _3.4. WIoUv3 loss function_ To mitigate the impact of low-quality samples on the model's training and generalization ability, <u>8</u> we introdu c dynamic n o before del v c e a WIoU v 3 loss fun c n ic focusin oUv3. ned to all e c tion in thi s g mechani s study. WI o s m (FM). F Uv3 exten d irst, let's p d s the WIo U p rovide an U v1 by inc o overview o rporating a of WIoUv 1 o n-monoto n ing into W I v1 is desi g ratio, parti c function o el during WIo U and aspect of the los s ularly for n the mo d viate the p low-qualit y ociated wi t T his adjust m process. t h geometr i m ent aims t WIoUv1 ut i ke distanc e h e influenc e al-attentio n c factors l i - reduce t h ilizes a d u mechanis m union ratio , as shown between t h e predicted box and th e e predicted in the foll o wing equ a in the foll o enalties as s samples. T the trainin g #### tions,  Io U represen t s the loss i represen t n the inter s ection ove n the inter s r ) ) true box: (4 (5 ###  WIoU ### v 1 = R WIoU  IoU + ( _y_ 2 + ( _o_ _U_ = exp( _xgt_ )2 + ( _y_ - _y_ ( _Wg_ 2 + _H_ _g_ 2 ) ( _Wg_ 2 + _H_ _y_ _gt_ )2 ) )2 + ( _y_ 2 + _H_ 2 )* _RWI_ _o_ _U_ ( _x_ - = exp( _gt_ _g_ _g_ _oU_ <sup>Î</sup> [ 1 <sup>,</sup> e ) is high-quali t ### oxes' RWIo U , and whe n the predi c ### where R W I reduce the ### y anchor boxes' RWIo U used to a mplify the used to a regular q u ality anch or boxes, ###  IoU Î [ 1, e ) is used t o c ted box h a s a good o verlap wit h s a good o the ground truth box, t he focus is placed on t h to the cent e e of the m i e r point. i nimum en c losing box As sh o wn in Fig u re 5, _Wg_ a n d _Hg_ repr e re 5, _Wg_ a n h e distance sent the si z _g_ are detach e d from t h e comput a tional gra p e comput a h (indica t ed by the h (indica t superscri p ### t ∗ ) to p r event RWIo U . _Wg_ and _H_ ### r event RWIo U generating gradients t h at hinder c o nvergenc e . Figure 5. Schem a Figure tic of the W IoU loss f u nction. WIo U FM adopts v3 incorpo r a gradient g r ates dyna m ain allocat ic non-mo n ion strateg y n otonic F M and comb i based on W i nes outlier s W IoUv1. D y s and IoU l o namic no n ss for loss -monotoni c calculatio n . <u>9</u> Since  _IoU_ is dynamic, the quality division criterion for anchor boxes is also active, allowing WIoUv3 to adopt a gradient gain allocation strategy that best suits the current situation. The gradient gain allocation strategy reduces the competitiveness of high-quality anchor boxes while also reducing the harmful gradients generated by low-quality anchor boxes, allowing WIoUv3 to focus on regular-quality anchor boxes and improve the overall performance of the detector. The formula for #### WIoUv3 is as follows,  and  are hyper-parameters that used to control outlier degree  and gradient gains <sup>_r_</sup> :   _r_  (6) _WIoU_ _v_ 3 _WIoU_ _v_ 1 where  <u></u> - _<u>IoU</u>_  [0,  ) (7)  _IoU_ <u></u> where _r_  (8) 4. Experiment and analysis Yunnan Power Grid Co., Ltd. provided the insulation defect dataset. It consists of 3000 sample images, with 1000 images for each of the three categories: normal, self-explosion missing, and partial damage. These 3000 images were randomly divided into training, validation, and test sets in a ratio of 6:2:2. The images are all taken by drones with a resolution of 4000 × 3000 per image. Since each image has multiple labels, the real label for each type is around 1600. The images in the dataset are all original images, without data augmentation and preprocessing. _4.1. Experimental environment_ The experimental hardware and software utilized in this study comprises an i7-10700K CPU, a 32GB RAM and a NVIDIA RTX2080Ti GPU. The software environment was Windows 10, CUDA 10.2, PyTorch 1.10.0 and PyCharm Community Edition 2021.3. _4.2. Experimental_ _evaluation indicators_ The ablation experiments in this study utilized seven evaluation metrics: precision, recall, mAP_0.5, mAP_0.5:0.95, parameters, GFLOPS, and speed. The comparative experiments employed five evaluation metrics: precision, recall, mAP_0.5, mAP_0.5:0.95, and speed. The definitions of these metrics can be found in the reference [30]. _4.3. Experimental results and analysis_ 4.3.1. Model training comparison The experiment was carried out over 100 training epochs. Figures 6, 7, 8 and 9 show the comparison results of mAP.0.5, mAP0.5:0.95, precision, and recall during the training process, <u>10</u> respectively. These visualizations clearly demonstrate the enhanced performance of our model when compared to the original model. Figure 6. Comparison of mAP_0.5. Figure 7. Comparison of mAP_0.5:0.95. <u>11</u> Figure 8. Comparison of precision. Figure 9. Comparison of recall. 4.3.2. Detection result Figure 10 displays the detection results of the original YOLOv7 model. Subfigures (a), (b) and (c) correspond to partial damage detection, while subfigures (d), (e) and (f) correspond to self-explosion defect. On the other hand, each corresponding subfigures in Figure 11 display the detection results of our improved YOLOv7 model. (a)Partial damage 1 (b)Partial damage 2 (c)Partial damage 3 <u>12</u> (d) Self-explosion defect 1(e)Self-explosion defect 2 (f)Self-explosion defect 3 Figure 10. Detection results of the original YOLOv7 model. (a)Partial damage 1 (b)Partial damage 2 (c)Partial damage 3 (d) Self-explosion defect 1(e)Self-explosion defect 2(f)Self-explosion defect 3 Figure 11. Detection results of our improved YOLOv7 model. Because the detected results have large sizes with a resolution of 4000 * 3000 pixels and the detected insulator is only a tiny proportion of the whole image, it isn't easy to see the actual label after detection. In Figure 11, we only intercepted the defective part of the insulator and magnified it for clear display in the paper. Comparing the detection results of each subfigure in Figure 10 and Figure 11, our improved model does not produce false detections for partial damage and improves the confidence in detecting self-explosion loss targets in subfigure (a). In subfigure (b), our improved model does not have the same predictions for two parts of the same damaged insulator and exhibits higher detection confidence. In subfigure (c), our improved model shows more precise localization for partial damage. In subfigures (d), (e), and (f), our improved model does not produce false detections for self-explosion loss targets and improves confidence in detecting them. 4.3.3. Ablation experiments The ablation experiments are performed to illustrate the efficacy of our enhancement. Table 1 presents the results. <u>13</u> Table 1. Results of the ablation experiments. Recall (%) mAP0.5 :0.95(%) RFB CA WIoU Precision (%) mAP 0.5(%) Parameters <mark>GFLOPs</mark> Speed (ms) 92.0 91.1 93.3 73.5 37.2M 105.1 36.9 √ 91.6 90.5 93.8 73.4 37.7M 105.2 38.4 √ 82.4 91.8 94.2 74.8 37.2M 105.2 37.5 √ 93.4 89.1 94.1 74.6 33.9M 102.5 31.2 √ √ 94.0 90.5 94.5 75.1 33.9M 102.6 32.2 √ √ √ 93.3 92.1 94.9 75.1 34.0M 102.6 34.1 From Table 1, replacing the SPPCSPC module of the original YOLOv7 model with the RFB module improves mAP_0.5 by 0.8%, mAP_0.5:0.95 by 1.1%, precision by 1.4%, reduces parameters by 3.3M, reduces computation by 2.6 GFLOPS, and increases single-image detection speed by 5.7ms. By incorporating both the RFB and CA attention mechanisms, mAP_0.5 improves by 1.2%, mAP_0.5:0.95 improves by 1.6%, precision improves by 2%, parameters reduce by 3.3M, computation reduces by 2.5 GFLOPS, and single-image detection speed increases by 4.7ms. Furthermore, by including the RFB, CA attention mechanism, and WIoU loss function simultaneously, mAP_0.5 improves by 1.6%, mAP_0.5:0.95 improves by 1.6%, precision improves by 1.3%, recall improves by 1%, parameters reduce by 3.2M, computation reduces by 2.5 GFLOPS, and single-image detection speed increases by 2.8ms. 4.3.4. Attention visual comparison To demonstrate that coordinate attention can better address the issue of small-scale insulator self-bursting and damage, we conducted a visual comparison between the improved model's CA and the attention of the original model. This comparison is shown in Figure 12. (a)Detected original samples <u>14</u> (b)Attention visualization using the original model (c)Attention visualization using our improved model Figure 12. Comparison of attentional visualization. Based on the comparison between Figure 12(b) and Figure 12(c), it can be observed that coordinate attention can better focus on the small-scale regions of insulator self-bursting and damage. 4.3.5. Comparative experiments with other attention mechanisms To verify the effectiveness of our attention mechanism, we added other attention mechanisms to the same branch of the original model for comparison. Table 2. Comparative experiments with other attention mechanisms. Attention Mechanisms Precision (%) Recall (%) mAP 0.5 (%) mAP 0.5:0.95 (%) Parameters <mark>GFLOPs</mark> Speed (ms) Original 92.0 91.1 93.3 73.5 37.2M 105.1 36.9 CBAM 92.4 87.6 92.1 69.2 42.0M 105.1 58.1 ECA 90.5 86.2 90.9 68.3 37.5M 105.3 38.6 GAM 89.0 88.3 91.6 69.4 53.8M 111.6 62.6 SimAM 90.6 91.1 93.4 72.9 37.2M 105.1 39.5 CA 91.6 90.5 93.8 73.4 37.7M 105.2 38.6 <u>15</u> As shown in Table 2, by adding various attention mechanism at the same location of the model, the CA attention mechanism achieves the highest accuracy on mAP0.5 and mAP0.5:0.95 is higher than other attention mechanisms. 4.3.6. Comparative experiments with other IoU loss functions We conduct comparative experiments with other loss functions to verify the effectiveness of the WIoUv3 loss function. Total loss is the sum of box_loss, obj_class, and cls_loss. Figure 13. Comparison of IoU loss function. As shown in Figure 13, we use the WIoUv3 loss function to make our model converge faster and reach stability than the CIoU loss function used by the YOLOv7 model. 4.3.7. Experimental comparison with different models The comparison experiment with the mainstream model has been implemented, which has verified the progressiveness of our improved model. YOLOv8, YOLOv6, and YOLOv5 have multiple versions with varying network depths and widths. Due to constraints in our GPU resources, we selected a subset of versions (m versions) of YOLOv8, YOLOv6, and YOLOv5 for comparison. The performance of other versions can be estimated proportionally. The outcomes of the comparative experiments are presented in Table 3. Table 3. Experimental comparison with different models. Recall (%) mAP 0.5 (%) mAP 0.5:0.95 (%) Model Precision (%) Parameters <mark>GFLOPs</mark> Speed (ms) Faster RCNN 81.7 58.8 81.6 53.2 41.4M 81.9 91.7 Sparse RCNN 78.2 63.8 76.5 51.2 106.1M 64.6 98.9 YOLOv5m 93.1 90.2 93.0 70.6 21.2M 49.0 38.3 YOLOv6m 70.8 59.0 70.8 46.9 34.9M 85.8 66.3 <u>16</u> YOLOv7 92.0 91.1 93.3 73.5 37.2M <mark>105.1</mark> 36.9 YOLOv8m 93.6 88.6 93.6 76.8 25.9M 78.9 61.7 Ours 93.3 92.1 94.9 75.1 34.0M 102.6 34.1 From Table 3, our model achieves the highest mAP_0.5 score, reaching 94.9%. Although it is not the highest in terms of mAP_0.5:0.95 and precision, it ranks second and achieves the most elevated values regarding recall and speed, reaching 92.1% and 34.06ms, respectively. Compared to other detection models, our model outperforms in terms of mAP_0.5, recall, and speed, achieving the highest performance. 4.3.8. Detection results for various defect types Table 4 compares defect detection results between the Yolov7 and our improved model for each category. Table 4. Defect detection results for various types. Recall (%) mAP 0.5 (%) mAP 0.5:0.95 (%) Model Type Labels Precision (%) YOLOv7 Ours All 956 92.0 91.1 93.3 73.5 Self-explosion 302 94.0 83.4 89.1 60.6 Partial damage 317 97.6 93.5 95.1 78.6 Normal 337 84.4 96.4 95.8 81.5 All 956 93.3 92.1 94.9 75.1 Self-explosion 302 96.0 85.6 91.5 63.5 Partial damage 317 97.8 93.6 96.7 79.4 Normal 337 86.2 97.2 96.6 82.5 Table 4 illustrates that our enhanced model surpasses the original YOLOv7 model across all three detection types in terms of precision, recall, mAP0.5 and mAP0.5:0.95. 5. Conclusion In this study, we propose an enhanced model based on YOLOv7 for detecting various types of insulator defects. Our model can automatically detect aerial images of normal, self-exploded missing, and partially damaged insulators, reducing the workload of insulator inspection and improving inspection efficiency. Three difficulties exist in insulator defect detection: the diversity of insulator materials and colors, complex backgrounds, and diverse damages. This study uses the RFB module to enhance the network's feature extraction capability, incorporates the CA mechanism to improve small target detection, and introduces the WIoU loss function to address low-quality samples hindering model <u>17</u> generalization. With these improvements, the mAP_0.5 of the enhanced YOLOv7 model increased from 93.3% to 94.9%, mAP_0.5:0.95 rose from 73.5% to 75.1%, precision increased from 92% to 93.3%, recall risen from 91.1% to 92.1%. The parameter count decreased from 37.2M to 34M, the computational workload decreased from 105.1 GFLOPS to 102.6 GFLOPS, and the detection speed improved from 36.87 ms per image to 34.06 ms per image. The improved model accurately detects self-exploded missing and partially damaged insulators. Still, the detection speed is not yet fast enough for direct application on embedded devices. In the following steps, we will use lightweight models such as YOLOv7-tiny to improve the detection speed without compromising the model's accuracy. Use of AI tools declaration The authors declare they have not used Artificial Intelligence (AI) tools in the creation of this article. Conflict of interest The authors declare there is no conflict of interest. Availability of data The dataset used in the paper was obtained from Yunnan Limited Company of China Southern Power Grid, which is not publicly available due to privacy restrictions. References 1. X.Y. Peng, F.X. Liang, J.J. Qian, B.S. Yang, C. Chen, X.G. Zheng, Automatic localization of transmission line insulators based on airborne infrared image texture features, _High Voltage_ _Technology_, 45 (2019), 922–928. https://doi.org/10.13336/j.1003-6520.hve.20190226033 (in Chinese) 2. Z.Y. Liu, X.R. Liao, J. Chen, H. Jiang, Review on intelligent processing of visible light images for inspection of power overhead line, _Power System Technology_, 44 (2020), 1057–1069. https://doi.org/10.13335/j.1000-3673.pst.2019.0349 (in Chinese) 3. S. Huang, Z.S. Wu, Z.G. Ren, H.J. Liu, Y. Gui, Review of research on intelligent inspection robots for electric power, _Electrical Measurement and Instrumentation_, 57 (2020), 26–38, https://doi.org/10.19753/j.issn1001-1390.2020.002.005 (in Chinese) 4. G. Liu, L.H. Wu, H. Zhang, Research on key technologies for intelligent inspection of helicopters on transmission lines, _Journal of Three Gorges University (Natural Science)_, 36 (2014), 46-49+62. https://doi.org/10.13393/j.cnki.issn.1672-948x.2014.02.011 (in Chinese) 5. F.M. Chen, Y.H. Du, H. Chen, Application of image processing technology in intelligent inspection of helicopters on transmission lines, _Zhejiang Electric Power_, 31 (2012), 63-66. https://doi.org/10.19585/j.zjdl.2012.09.018 (in Chinese) <u>18</u> 6. H. Yan, Measurement model for ice thickness of transmission lines based on image technology, _Electrical_ _Engineering_ _Materials_, (2021), 66-69+72. https://doi.org/10.16786/j.cnki.1671-8887.eem.2021.05.018 (in Chinese) 7. K. Yan, F.C. Wang, C.Y. Zhang, Edge detection of composite insulator hydrophobicity images based on Canny operator, _Journal of Electric Power Science and Technology_, 28 (2013), 45– 49+56. https://doi.org/10.3969/j.issn.1673-9140.2013.03.006 (in Chinese) 8. P.F. Felzenszwalb, R.B. Girshick, D. McAllester, D. Ramanan, Object Detection with Discriminatively Trained Part-Based Models, _IEEE Transactions on Pattern Analysis and_ _Machine Intelligence_, 32 (2010), 1627–1645, https://doi.org/10.1109/TPAMI.2009.167 9. K.P. Liu, B.Q. Li, L. Qin, Q. Li, F. Zhao, Q.L. Wang, et.al., Review on the application of deep learning target detection algorithm in insulator defect detection of overhead transmission line, _High_ _Voltage_ _Technology_, 49 (2023), 3584–3595. https://doi.org/10.13336/j.1003-6520.hve.20220273 (in Chinese) 10. H. Jiang, X. Qiu, J. Chen, X. Liu, X. Miao, S. Zhuang, Insulator fault detection in aerial images based on ensemble learning with multi-level perception, _IEEE Access_, 7 (2019), 61797–61810. https://doi.org/10.1109/ACCESS.2019.2915985 11. D. Sadykova, D. Pernebayeva, M. Bagheri, A. James, IN-YOLO: Real-time detection of outdoor high voltage insulators using UAV imaging, _IEEE Transactions on Power Delivery_, 35 (2020), 1599–1601. https://doi.org/10.1109/TPWRD.2019.2944741 12. S.Q. Wang, Y.F. Liu, Y.H. Qing, C.X. Wang, T.Z. Lan, R.T. Yao, Detection of insulator defects with improved ResNeSt and region proposal network, _IEEE Access_, 8 (2020), 184841–184850. https://doi.org/10.1109/ACCESS.2020.3029857 13. C.X. Shi, Y.P. Huang, Cap-count guided weakly supervised insulator cap missing detection in aerial images, _IEEE_ _Sensors_ _Journal_, 21 (2021), 685–691. https://doi.org/10.1109/JSEN.2020.3012780 14. W.Q. Zhao, M.F. Xu, X.F. Cheng, Z.B. Zhao, An insulator in transmission lines recognition and fault detection model based on improved faster rcnn, _IEEE Transactions on Instrumentation and_ _Measurement_, 70 (2021), 1–8. https://doi.org/10.1109/TIM.2021.3112227 15. P. Luo, B. Wang, H.R. Ma, F.Q. Ma, H.X. Wang, D.H. Zhu, Low miss rate defect identification method based on combined target detection framework, _High Voltage Technology_, 47 (2021), 454–464. https://doi.org/10.13336/j.1003-6520.hve.20200701 (in Chinese) 16. X.T. Zhang, Y.Y. Zhang, J.F. Liu, C.H. Zhang, X.Y. Xue, H. Zhang, et al., InsuDet: A fault detection method for insulators of overhead transmission lines using convolutional neural networks, _IEEE Transactions on Instrumentation and Measurement_, 70 (2021), 1–12. https://doi.org/10.1109/TIM.2021.3120796 17. Y. Liu, X.B. Huang, Research on insulator burst detection and localization based on YOLOv4 and improved watershed algorithm, _Power System and Clean Energy_, 37 (2021), 51–57. https://doi.org/10.3969/j.issn.1674-3814.2021.07.007 (in Chinese) 18. X.Y. Liu, X.R. Liao, S.B. Zhuang, H. Jiang, J. Chen, Insulator detection based on lightweight deep convolutional neural network, _Journal of Fuzhou University (Natural Science Edition)_, 49 (2021), 196–202. https://doi.org/10.7631/issn.1000-2243.20345 (in Chinese) <u>19</u> 19. D.L. Wang, J.J. Sun, T.Y. Zhuang, M.S. Li, R. Zhu, Detection method for self-explosion defects of glass insulators based on improved generative adversarial networks, _High Voltage Technology_, 48 (2022), 1096–1103. https://doi.org/10.13336/j.1003-6520.hve.20210236 (in Chinese) 20. J. Kang, Q. Wang, W.B. Liu, Y. Xia, Multi defect detection network for aerial insulators integrating CAT-BiFPN and attention mechanism, _High Voltage Technology_, 49 (2023), 3361– 3376. https://doi.org/10.13336/j.1003-6520.hve.20221803 (in Chinese) 21. G. Singh, S.F. Stefenon, K.C. Yow, Interpretable visual transmission lines inspections using pseudo-prototypical part network, _Machine_ _Vision_ _and_ _Applications_, 41 (2023). https://doi.org/10.1007/s00138-023-01390-6 22. B.J. Souza, S.F. Serfenon, G. Singh, R.Z. Freire, Hybrid-YOLO for classification of insulators defects in transmission lines based on UAV, _International Journal of Electrical Power and_ _Energy Systems_, 148 (2023), 108982. https://doi.org/10.1016/j.ijepes.2023.108982 23. S.F. Serfenon, G. Singh, B.J. Souza, R.Z. Freire, K.C. Yow, Optimized hybrid YOLOu-Quasi-ProtoPNet for insulators classification, _IET Generation, Transmission and_ _Distribution_, 17 (2023), 3501–3511. https://doi.org/10.1049/gtd2.12886 24. C.Y. Wang, A. Bochkovskiy, H.Y.M. Liao, YOLOv7: Trainable bag-of-freebies sets new state-of-the-art for real-time object detectors, in _2022 IEEE/CVF Conference on Computer_ _Vision_ _and_ _Pattern_ _Recognition_ _(CVPR)_, (2022), 7464–7475. https://doi.org/10.48550/arXiv.2207.02696 25. S. Liu, D. Huang, Y.H. Wang, Receptive field block net for accurate and fast object detection, in _2018_ _European_ _Conference_ _on_ _Computer_ _Vision_ _(ECCV)_, (2018), 385–400. https://doi.org/10.1007/978-3-030-01252-6_24 26. Q.B. Hou, D.Q. Zhou, J.S. Feng, Coordinate attention for efficient mobile network design, in _2021 EEE/CVF Conference on Computer Vision and Pattern Recognition(CVPR)_, (2021), 13708–13717. https://doi.org/10.48550/arXiv.2103.02907 27. Z.J. Tong, Y.H. Chen, Z.W. Xu, R. YU, Wise-IoU: Bounding box regression loss with dynamic focusing mechanism, in _2023 IEEE/CVF Conference on Computer Vision and Pattern_ _Recognition (CVPR)_, (2023). https://doi.org/10.48550/arXiv.2301.10051 28. C. Szegedy, W. Liu, Y.Q. Jia, P. Sermanet, S. Reed, D. Anguelov, et al., Going deeper with convolution, in _2015 EEE/CVF Conference on Computer Vision and Pattern Recognition_ _(CVPR)_, (2015), 1–9. https://doi.org/10.1109/CVPR.2015.7298594 29. F. Yu, V. Koltun, Multi-Scale context aggregation by dilated convolutions, in _2016 IEEE/CVF_ _Conference_ _on_ _Computer_ _Vision_ _and_ _Pattern_ _Recognition_ _(CVPR)_, (2015). https://doi.org/10.48550/arXiv.1511.07122 30. Z.Y. Wang, G.W. Yuan, H. Zhou, Y. Ma, Y.T. Ma. Foreign-Object Detection in High-Voltage Transmission Line Based on Improved YOLOv8m, _Applied Sciences_, 13 (2023), 12775. https://doi.org/10.3390/app132312775

섹션 본문 41문단 · 15,323자

(제목 없음)

1Insulators are crucial insulation components and structural supports in power grids, playing a vital role in the transmission lines.Due to temperature fluctuations, internal stress, or damage from hail, insulators are prone to injury.Automatic detection of damaged insulators faces challenges such as diverse types, small defect targets, and complex backgrounds and shapes.Most research for detecting insulator defects has focused on a single defect type or a specific material.However, the insulators in the grid's transmission lines have different colors and materials.Various insulator defects coexist, and the existing methods have difficulty meeting the practical application requirements.Current methods suffer from low detection accuracy and mAP0.5 cannot meet application requirements.This paper proposes an improved you only look once version 7 (YOLOv7) model for multi-type insulator defect detection.First, our model replaces the spatial pyramid pooling cross stage partial network (SPPCSPC) module with the receptive filed block (RFB) module to enhance the network's feature extraction capability.Second, a coordinate attention (CA) mechanism is introduced into the head part to enhance the network's feature representation ability and to improve detection accuracy.Third, a wise intersection over union (WIoU) loss function is employed to address the low-quality samples hindering model generalization during training, thereby improving the model's overall performance.The experimental results indicate that the proposed model exhibits enhancements across various performance metrics.Specifically, there is a 1.6% advancement in mAP_0.5, a corresponding 1.6% enhancement in mAP_0.5:0.95, a 1.3% elevation in precision, and a 1% increase in recall.Moreover, the model achieves parameter reduction by 3.2 million, leading to a decrease of 2.5 GFLOPS in computational cost.Notably, there is also an improvement of 2.81 milliseconds in single-image detection speed.This improved model can detect insulator defects for diverse materials, color insulators, and partial damage shapes in complex backgrounds.

Introduction

2Insulators are essential components of power transmission lines, playing a crucial role in insulation and structural support and ensuring the safety of transmission lines.In complex terrain and harsh environments, most transmission lines are subjected to physical and chemical erosion over time, making them prone to defects such as self-explosion and damage.Regular inspections are necessary to monitor the operational status of insulators and ensure the safe operation of power transmission lines [1].Insulator defects in power line inspections require manual observation or manual detection of drone images.This approach is labor-intensive, inefficient, and easily influenced by the skill level of the personnel, resulting in inconsistent detection results [2].Relying solely on manual inspection is insufficient to meet the requirements of automated grid inspections [3].Nowadays, drones can capture image data of power transmission lines, and computer vision methods can identify images automatically.This approach effectively solves manual inspections and is one of the crucial methods for line inspections [4,5].

3Early detection of insulator defects was primarily based on traditional digital image processing techniques, using traditional template matching methods to extract defect features from insulator images [6,7], and employing manually designed templates to extract insulator features [8].Nevertheless, the intricate and varied intricacies present in insulator images pose challenges in encapsulating the holistic attributes of the targets through a singular manually crafted descriptor.Consequently, defect detection becomes arduous.Additionally, employing machine learning techniques grounded in probabilistic statistics frequently demands intricate feature descriptors.However, feature representations acquired from shallow network architectures exhibit constrained efficacy and generalization capacity in tackling intricate object detection issues.

4With the advancement of deep learning, several approaches for detecting insulator defects have emerged.Jiang et al. [10] utilized a multi-layer perceptron ensemble learning model, achieving a detection accuracy of 92.26%.Sadykova et al. [11] applied a YOLOv2 model for insulator detection, but detecting defects still required manual inspection.Wang et al. [12] proposed an enhanced faster region-based convolutional neural network (R-CNN) model, integrating split-attention networks (ResNeSt) and introducing the RPN network to enhance defect feature extraction, resulting in an accuracy of 98.38%.To address limited training data and labor-intensive annotation, Shi et al. [13] introduced a weakly supervised learning method based on faster R-CNN, reaching a defect detection accuracy of 92.86% and an F1-Score of 90.85%.Zhao et al. [14] employed a feature pyramid network (FPN) FRCN for detecting dropout and crack defects on insulators.Luo et al. [15] proposed a combined object detection framework comprising Faster R-CNN and YOLOv3, achieving a reduced miss rate in insulator defect detection.Zhang et al. [16] designed a densely connected FPN, enhancing semantic and positional information integration, thus improving detection performance.Liu et al. [17] utilized YOLOv4 for insulator object detection, integrating the watershed algorithm for positioning insulator burst defects.Additionally, they proposed an improved YOLOv3 model, incorporating a densely connected convolutional networks (DenseNet) module, which achieved a detection accuracy of 96.29%.Wang et al. [19] enhanced the generative adversarial network (GAN) for insulator defect detection, resulting in an average precision of 84.6% for detecting glass insulator self-explosion defects.Kang et al. [20] introduced the concat bidirectional feature pyramid network (CAT-BiFPN) into YOLOv7 for multi-class insulator defects, improving feature fusion and achieving an average accuracy of 93.9%.Singh et al. [21] proposed a three-step method for classifying defective insulators in high-voltage transmission lines.Souza et al. [22] presented a hybrid version of YOLO called Hybrid-YOLO, combining YOLOv5 and ResNet-18 for object detection and classification, achieving an F1_score of 0.96216 and a mAP_0.5 of 0.99262.Stefenon et al. [23] introduced YOLOu-Quasi-ProtoPNet, a model trained from scratch, achieving an F1_score of 0.95165 based on DenseNet-161.z is the output of the c-channel, H and W represent the number of width and height of the input vector, respectively.c x ( , ) i j is the input vector of c-channel, with the i-th row and the j-th column.

5The process of generating coordinate attention utilizes the rich features generated through the embedding of coordinate information.During this step, the feature map derived from Eq 1 is further processed along both horizontal and vertical directions to produce intermediate feature maps

6that encode detailed spatial information.r is a reduction ratio to control the block's size.Then, the tensor f is decomposed into two different tensors

7Subsequently, Eq 2 is used to process h f and w f independently, generating attention vectors h g and w g .

8where,     is a sigmoid activation function, and

9Finally, the output of the coordinate attention block can be represented by Eq 3, where ( , ) c y i j represents the output vector of c-channel with the i-th row and the j-th column, ( , ) c x i j represents the input vector of c-channel with the i-th row and the j-th column, ( )

10g i represents the attention vector in the x direction of c-channel in the i-th row and ( )

11g j represents the attention vector in the y direction of c-channel in column j:

WIoUv3 loss function

12To mitigate the impact of low-quality samples on the model's training and generalization ability, Since IoU  is dynamic, the quality division criterion for anchor boxes is also active, allowing

13WIoUv3 to adopt a gradient gain allocation strategy that best suits the current situation.The gradient gain allocation strategy reduces the competitiveness of high-quality anchor boxes while also reducing the harmful gradients generated by low-quality anchor boxes, allowing WIoUv3 to focus on regular-quality anchor boxes and improve the overall performance of the detector.The formula for WIoUv3 is as follows,  and  are hyper-parameters that used to control outlier degree  and gradient gains r :

14where

15where

Experiment and analysis

16Yunnan Power Grid Co., Ltd.provided the insulation defect dataset.It consists of 3000 sample images, with 1000 images for each of the three categories: normal, self-explosion missing, and partial damage.These 3000 images were randomly divided into training, validation, and test sets in a ratio of 6:2:2.The images are all taken by drones with a resolution of 4000 × 3000 per image.Since each image has multiple labels, the real label for each type is around 1600.The images in the dataset are all original images, without data augmentation and preprocessing.

Experimental environment

17The experimental hardware and software utilized in this study comprises an i7-10700K CPU, a 32GB RAM and a NVIDIA RTX2080Ti GPU.The software environment was Windows 10, CUDA 10.2, PyTorch 1.10.0 and PyCharm Community Edition 2021.3.

Experimental evaluation indicators

18The ablation experiments in this study utilized seven evaluation metrics: precision, recall, mAP_0.5, mAP_0.5:0.95,parameters, GFLOPS, and speed.The comparative experiments employed five evaluation metrics: precision, recall, mAP_0.5, mAP_0.5:0.95, and speed.The definitions of these metrics can be found in the reference [30].

Model training comparison

19The experiment was carried out over 100 training epochs.Figures 6, 7 Because the detected results have large sizes with a resolution of 4000 * 3000 pixels and the detected insulator is only a tiny proportion of the whole image, it isn't easy to see the actual label after detection.In Figure 11, we only intercepted the defective part of the insulator and magnified it for clear display in the paper.

20Comparing the detection results of each subfigure in Figure 10 and Figure 11, our improved model does not produce false detections for partial damage and improves the confidence in detecting self-explosion loss targets in subfigure (a).In subfigure (b), our improved model does not have the same predictions for two parts of the same damaged insulator and exhibits higher detection confidence.In subfigure (c), our improved model shows more precise localization for partial damage.In subfigures (d), (e), and (f), our improved model does not produce false detections for self-explosion loss targets and improves confidence in detecting them.

Ablation experiments

21The ablation experiments are performed to illustrate the efficacy of our enhancement.Table 1 presents the results.Furthermore, by including the RFB, CA attention mechanism, and WIoU loss function simultaneously, mAP_0.5 improves by 1.6%, mAP_0.5:0.95improves by 1.6%, precision improves by 1.3%, recall improves by 1%, parameters reduce by 3.2M, computation reduces by 2.5 GFLOPS, and single-image detection speed increases by 2.8ms.

Attention visual comparison

22To demonstrate that coordinate attention can better address the issue of small-scale insulator self-bursting and damage, we conducted a visual comparison between the improved model's CA and the attention of the original model.This comparison is shown in Figure 12.Based on the comparison between Figure 12(b) and Figure 12(c), it can be observed that coordinate attention can better focus on the small-scale regions of insulator self-bursting and damage.

Comparative experiments with other attention mechanisms

23To verify the effectiveness of our attention mechanism, we added other attention mechanisms to the same branch of the original model for comparison.As shown in Table 2, by adding various attention mechanism at the same location of the model, the CA attention mechanism achieves the highest accuracy on mAP0.5 and mAP0.5:0.95 is higher than other attention mechanisms.

Comparative experiments with other IoU loss functions

24We conduct comparative experiments with other loss functions to verify the effectiveness of the WIoUv3 loss function.Total loss is the sum of box_loss, obj_class, and cls_loss.As shown in Figure 13, we use the WIoUv3 loss function to make our model converge faster and reach stability than the CIoU loss function used by the YOLOv7 model.

Experimental comparison with different models

25The comparison experiment with the mainstream model has been implemented, which has verified the progressiveness of our improved model.YOLOv8, YOLOv6, and YOLOv5 have multiple versions with varying network depths and widths.Due to constraints in our GPU resources, we selected a subset of versions (m versions) of YOLOv8, YOLOv6, and YOLOv5 for comparison.The performance of other versions can be estimated proportionally.The outcomes of the comparative experiments are presented in Table 3. From Table 3, our model achieves the highest mAP_0.5 score, reaching 94.9%.Although it is not the highest in terms of mAP_0.5:0.95 and precision, it ranks second and achieves the most elevated values regarding recall and speed, reaching 92.1% and 34.06ms, respectively.Compared to other detection models, our model outperforms in terms of mAP_0.5, recall, and speed, achieving the highest performance.Table 4 illustrates that our enhanced model surpasses the original YOLOv7 model across all three detection types in terms of precision, recall, mAP0.5 and mAP0.5:0.95.

Conclusion

26In this study, we propose an enhanced model based on YOLOv7 for detecting various types of insulator defects.Our model can automatically detect aerial images of normal, self-exploded missing, and partially damaged insulators, reducing the workload of insulator inspection and improving inspection efficiency.

27Three difficulties exist in insulator defect detection: the diversity of insulator materials and colors, complex backgrounds, and diverse damages.This study uses the RFB module to enhance the network's feature extraction capability, incorporates the CA mechanism to improve small target detection, and introduces the WIoU loss function to address low-quality samples hindering model

28Figure rates dynam gain allocat

29, 8 and 9 show the comparison results of mAP.0.5, mAP0.5:0.95,precision, and recall during the training process, respectively.These visualizations clearly demonstrate the enhanced performance of our model when compared to the original model.

Figure 6 .

30Figure 6.Comparison of mAP_0.5.

Figure 7 .

31Figure 7.Comparison of mAP_0.5:0.95.

Figure 8 .

32Figure 8.Comparison of precision.

Figure 9 .

33Figure 9.Comparison of recall.

3 Figure 10 . 3 Figure 11 .

34Figure 10.Detection results of the original YOLOv7 model.

Figure 12 .

35Figure 12.Comparison of attentional visualization.

Figure 13 .

36Figure 13.Comparison of IoU loss function.

Table 1 .

37Results of the ablation experiments.From Table1, replacing the SPPCSPC module of the original YOLOv7 model with the RFB module improves mAP_0.5 by 0.8%, mAP_0.5:0.95 by 1.1%, precision by 1.4%, reduces parameters by 3.3M, reduces computation by 2.6 GFLOPS, and increases single-image detection speed by 5.7ms.By incorporating both the RFB and CA attention mechanisms, mAP_0.5 improves by 1.2%, mAP_0.5:0.95improves by 1.6%, precision improves by 2%, parameters reduce by 3.3M, computation reduces by 2.5 GFLOPS, and single-image detection speed increases by 4.7ms.

Table 2 .

38Comparative experiments with other attention mechanisms.

Table 3 .

39Experimental comparison with different models.

Table 4

40compares defect detection results between the Yolov7 and our improved model for each category.

Table 4 .

41Defect detection results for various types.

참고문헌 12건

  1. Going deeper with convolutions 2015 10.1109/cvpr.2015.7298594
  2. Object Detection with Discriminatively Trained Part-Based Models IEEE Transactions on Pattern Analysis and Machine Intelligence · IEEE Computer Society · 2009 10.1109/tpami.2009.167
  3. Insulator Fault Detection in Aerial Images Based on Ensemble Learning With Multi-Level Perception IEEE Access · Institute of Electrical and Electronics Engineers · 2019 10.1109/access.2019.2915985
  4. IN-YOLO: Real-Time Detection of Outdoor High Voltage Insulators Using UAV Imaging IEEE Transactions on Power Delivery · Institute of Electrical and Electronics Engineers · 2019 10.1109/tpwrd.2019.2944741
  5. Cap-Count Guided Weakly Supervised Insulator Cap Missing Detection in Aerial Images IEEE Sensors Journal · IEEE Sensors Council · 2020 10.1109/jsen.2020.3012780
  6. Detection of Insulator Defects With Improved ResNeSt and Region Proposal Network IEEE Access · Institute of Electrical and Electronics Engineers · 2020 10.1109/access.2020.3029857
  7. An Insulator in Transmission Lines Recognition and Fault Detection Model Based on Improved Faster RCNN IEEE Transactions on Instrumentation and Measurement · Institute of Electrical and Electronics Engineers · 2021 10.1109/tim.2021.3112227
  8. InsuDet: A Fault Detection Method for Insulators of Overhead Transmission Lines Using Convolutional Neural Networks IEEE Transactions on Instrumentation and Measurement · Institute of Electrical and Electronics Engineers · 2021 10.1109/tim.2021.3120796
  9. Hybrid-YOLO for classification of insulators defects in transmission lines based on UAV International Journal of Electrical Power & Energy Systems · Elsevier BV · 2023 10.1016/j.ijepes.2023.108982
  10. Interpretable visual transmission lines inspections using pseudo-prototypical part network Machine Vision and Applications · Springer Science+Business Media · 2023 10.1007/s00138-023-01390-6
  11. Optimized hybrid YOLOu‐Quasi‐ProtoPNet for insulators classification IET Generation Transmission & Distribution · Institution of Engineering and Technology · 2023 10.1049/gtd2.12886
  12. Foreign-Object Detection in High-Voltage Transmission Line Based on Improved YOLOv8m Applied Sciences · Multidisciplinary Digital Publishing Institute · 2023 10.3390/app132312775