A Two-Stage Corrosion Defect Detection Method for Substation Equipment Based on Object Detection and Semantic Segmentation
Abstract
1. Introduction
- 1.
- A two-stage detection method that fuses target detection and semantic segmentation is proposed to measure real-time substation corrosion regions.
- 2.
- A multi-head attention block is used to optimize the original YOLOv8 and DDRNet networks to make them more suitable for substation scenarios.
- 3.
- A cut-copy-paste data enhancement method is designed to expand the samples of corrosion defects.
2. Related Work
2.1. You Only Look Once
2.2. Two-Branch Semantic Segmentation Network
3. Materials and Methods
3.1. Dataset and Data Enhancement Strategies
3.2. YOLOv8 Model Structure
3.3. DDRNet Model Structure
3.4. Multi-Head Attention Block
4. Experiments and Analyses
4.1. Implementation Details
4.2. Evaluation Indicators
4.3. Comparison with Existing Methods
4.4. Ablation Experiment
4.5. Real-Time Comparison of Algorithms
4.6. Visual Result Discussion
4.7. Failure Case Discussion
5. Conclusions
Author Contributions
Funding
Data Availability Statement
Conflicts of Interest
References
- Zhou, B. Design of Corrosion Detection Device for Grounding Network Based on Magnetic Resistivity Method. Master’s Thesis, Jilin University, Changchun, China, 2024. [Google Scholar]
- Meng, X. Design of Distributed Corrosion Detection Device of Grounding Grids Based on Electric Network Theory. Master’s Thesis, Jilin University, Changchun, China, 2022. [Google Scholar]
- Fu, X. Influence of Grounding Conductor on Grounding Performance and Its Defect Detection Method. Master’s Thesis, North China Electric Power University, Beijing, China, 2022. [Google Scholar]
- Wei, W. Design of Ground Grid Corrosion Diagnosis System Based on Ultrasonic Guided Wave. Master’s Thesis, Chongqing University, Chongqing, China, 2020. [Google Scholar]
- Wu, M. Research on the Corrosion Diagnosis Method of Grounding Grids by Transient Electromagnetic Imaging. Master’s Thesis, Chongqing University, Chongqing, China, 2019. [Google Scholar]
- Gao, Y. Grounding Grid Corrosion Detection and Prediction Method and Its Realization. Master’s Thesis, Hunan University, Changsha, China, 2021. [Google Scholar]
- Li, J.; Wu, J.; Shao, Y. FSNB-YOLOV8: Improvement of Object Detection Model for Surface Defects Inspection in Online Industrial Systems. Appl. Sci. 2024, 14, 7913. [Google Scholar] [CrossRef] [Scilit]
- Ma, S.; Liu, Y.; Zhang, Y. Fabric Defect Detection Based on Improved Lightweight YOLOv8n. Appl. Sci. 2024, 14, 8000. [Google Scholar] [CrossRef] [Scilit]
- Lei, Z.; Zhang, Y.; Wang, J.; Zhou, M. Cloud-Edge Collaborative Defect Detection Based on Efficient Yolo Networks and Incremental Learning. Sensors 2024, 24, 5921. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Zhang, T.; Zhong, S.; Xu, W.; Yan, L.; Zou, X. Catenary Insulator Defect Detection: A Dataset and an Unsupervised Baseline. IEEE Trans. Instrum. Meas. 2024, 73, 1–15. [Google Scholar] [CrossRef] [Scilit]
- Luo, J.; Yang, Z.; Li, S.; Wu, Y. FPCB Surface Defect Detection: A Decoupled Two-Stage Object Detection Framework. IEEE Trans. Instrum. Meas. 2021, 70, 1–11. [Google Scholar] [CrossRef] [Scilit]
- Davari, N.; Akbarizadeh, G.; Mashhour, E. Corona Detection and Power Equipment Classification Based on GoogleNet-AlexNet: An Accurate and Intelligent Defect Detection Model Based on Deep Learning for Power Distribution Lines. IEEE Trans. Power Deliv. 2022, 37, 2766–2774. [Google Scholar] [CrossRef] [Scilit]
- Ling, H.; Zhao, T.; Zhang, Y.; Lei, M. Engineering Vehicle Detection Based on Improved YOLOv6. Appl. Sci. 2024, 14, 8054. [Google Scholar] [CrossRef] [Scilit]
- Zhang, Q.; Xu, B.; Liu, H.; Zhang, Y.; Yu, Z. A Multi-Organ Segmentation Network Based on Densely Connected RL-Unet. Appl. Sci. 2024, 14, 7953. [Google Scholar] [CrossRef] [Scilit]
- Wang, J.; Zhao, X.; Peng, L.; Wang, H. A Method for Detecting the Yarn Roll’s Margin Based on VGG-UNet. Appl. Sci. 2024, 14, 7928. [Google Scholar] [CrossRef] [Scilit]
- He, K.; Zhang, X.; Ren, S.; Sun, J. Spatial Pyramid Pooling in Deep Convolutional Networks for Visual Recognition. IEEE Trans. Pattern Anal. Mach. Intell. 2015, 37, 1904–1916. [Google Scholar] [CrossRef] [Scilit]
- Ren, S.; He, K.; Girshick, R.; Sun, J. Faster R-CNN: Towards Real-Time Object Detection with Region Proposal Networks. IEEE Trans. Pattern Anal. Mach. Intell. 2017, 39, 1137–1149. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Ge, Z.; Liu, S.; Wang, F.; Li, Z.; Sun, J. YOLOX: Exceeding YOLO Series in 2021. arXiv 2021, arXiv:2107.08430. [Google Scholar]
- Li, C.; Li, L.; Jiang, H.; Weng, K.; Geng, Y.; Li, L.; Ke, Z.; Li, Q.; Cheng, M.; Nie, W.; et al. YOLOv6: A Single-Stage Object Detection Framework for Industrial Applications. arXiv 2022, arXiv:2209.02976. [Google Scholar]
- 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. arXiv 2022, arXiv:2207.02696. [Google Scholar]
- Liu, W.; Anguelov, D.; Erhan, D.; Szegedy, C.; Reed, S.; Fu, C.Y.; Berg, A.C. SSD: Single Shot MultiBox Detector. In Computer Vision–ECCV 2016: Proceedings of the 14th European Conference, Amsterdam, The Netherlands, 11–14 October 2016; Proceedings, Part I 14; Springer International Publishing: Berlin/Heidelberg, Germany, 2016. [Google Scholar]
- Ronneberger, O.; Fischer, P.; Brox, T. U-net: Convolutional networks for biomedical image segmentation. In Proceedings of the International Conference on Medical Image Computing and Computer-Assisted Intervention; Springer: Berlin/Heidelberg, Germany, 2015; pp. 234–241. [Google Scholar]
- Chen, L.C.; Papandreou, G.; Schroff, F.; Adam, H. Rethinking atrous convolution for semantic image segmentation. arXiv 2017, arXiv:1706.05587. [Google Scholar]
- Chen, L.C.; Zhu, Y.; Papandreou, G.; Schroff, F.; Adam, H. Encoder-Decoder with Atrous Separable Convolution for Semantic Image Segmentation. In Proceedings of the European Conference on Computer Vision, Munich, Germany, 8–14 September 2018. [Google Scholar]
- Pan, H.; Hong, Y.; Sun, W.; Jia, Y. Deep Dual-Resolution Networks for Real-Time and Accurate Semantic Segmentation of Traffic Scenes. IEEE Trans. Intell. Transp. Syst. 2022, 24, 3448–3460. [Google Scholar] [CrossRef] [Scilit]
- Rajesh, S.; Jinesh Babu, K.S.; Chengathir Selvi, M.; Chellapandian, M. Automated Surface Crack Identification of Reinforced Concrete Members Using an Improved YOLOv4-Tiny-Based Crack Detection Model. Buildings 2024, 14, 3402. [Google Scholar] [CrossRef] [Scilit]
- Luo, R.; Anand, A.; Zulkernine, F.; Rivest, F. YOLO-I3D: Optimizing Inflated 3D Models for Real-Time Human Activity Recognition. J. Imaging 2024, 10, 269. [Google Scholar] [CrossRef] [Scilit]
- Zou, H.; Yang, J.; Sun, J.; Yang, C.; Luo, Y.; Chen, J. Detection Method of External Damage Hazards in Transmission Line Corridors Based on YOLO-LSDW. Energies 2024, 17, 4483. [Google Scholar] [CrossRef] [Scilit]
- Liu, J.; Liu, C.; Wu, Y.; Xu, H.; Sun, Z. An Improved Method Based on Deep Learning for Insulator Fault Detection in Diverse Aerial Images. Energies 2021, 14, 4365. [Google Scholar] [CrossRef] [Scilit]
- Liu, C.; Wu, Y.; Liu, J.; Han, J. MTI-YOLO: A Light-Weight and Real-Time Deep Neural Network for Insulator Detection in Complex Aerial Images. Energies 2021, 14, 1426. [Google Scholar] [CrossRef] [Scilit]
- Han, J.; Yang, Z.; Xu, H.; Hu, G.; Zhang, C.; Li, H.; Lai, S.; Zeng, H. Search Like an Eagle: A Cascaded Model for Insulator Missing Faults Detection in Aerial Images. Energies 2020, 13, 713. [Google Scholar] [CrossRef] [Scilit]
- Zou, L.; Chen, A.; Li, C.; Yang, X.; Sun, Y. DCW-YOLO: An Improved Method for Surface Damage Detection of Wind Turbine Blades. Appl. Sci. 2024, 14, 8763. [Google Scholar] [CrossRef] [Scilit]
- Zhang, Z.; Xia, J.; Wen, Y.; Weng, L.; Ma, Z.; Yang, H.; Yang, H.; Dou, J.; Wang, J.; Zhao, P. Detection Method for Inter-Turn Short Circuit Faults in Dry-Type Transformers Based on an Improved YOLOv8 Infrared Image Slicing-Aided Hyper-Inference Algorithm. Energies 2024, 17, 4559. [Google Scholar] [CrossRef] [Scilit]
- Xiang, S.; Chang, Z.; Liu, X.; Luo, L.; Mao, Y.; Du, X.; Li, B.; Zhao, Z. Infrared Image Object Detection Algorithm for Substation Equipment Based on Improved YOLOv8. Energies 2024, 17, 4359. [Google Scholar] [CrossRef] [Scilit]
- Yao, Z.; Hu, Z.; Tian, P.; Sun, J. Adaptation of Object Detection Algorithms for Road Indicator Lights in Complex Scenes. Appl. Sci. 2024, 14, 10012. [Google Scholar] [CrossRef] [Scilit]
- Luo, J.; Liu, Z.; Wang, Y.; Tang, A.; Zuo, H.; Han, P. Efficient Small Object Detection You Only Look Once: A Small Object Detection Algorithm for Aerial Images. Sensors 2024, 24, 7067. [Google Scholar] [CrossRef] [Scilit]
- Miao, S.; Du, Y.; Lu, X.; Guan, H. Semantic segmentation of vehicle vision based on two-branch Enet network. In Proceedings of the 2023 IEEE 3rd International Conference on Power, Electronics and Computer Applications (ICPECA), Shenyang, China, 29–31 January 2023; pp. 477–481. [Google Scholar] [CrossRef] [Scilit]
- Lin, H.; Qiu, J.; Tong, Y.; Tang, Y. Trilateral dual-resolution real-time semantic segmentation network for road scenes. In Proceedings of the 2023 IEEE 18th Conference on Industrial Electronics and Applications (ICIEA), Ningbo, China, 18–22 August 2023; pp. 135–140. [Google Scholar] [CrossRef] [Scilit]
- Gao, Y.; Zhang, S.; Zuo, D.; Yan, W.; Pan, X. TMNet: A Two-Branch Multi-Scale Semantic Segmentation Network for Remote Sensing Images. Sensors 2023, 23, 5909. [Google Scholar] [CrossRef] [Scilit]
- Zhao, C.; Guo, H.; Guo, Y.; Zhong, S.; Luo, H.; Fan, J. TBNet: Two-Branch Cloud Detection Network for Remote Sensing Imagery. In Proceedings of the 2022 2nd International Conference on Frontiers of Electronics, Information and Computation Technologies (ICFEICT), Wuhan, China, 19–21 August 2022; pp. 477–482. [Google Scholar]
- Chen, J.; Gao, J.; Yang, W.; Sun, H.; Chen, B.; Yang, M.; Ma, J. MedFPNet: A Medical Image Segmentation Network Based on Fourier Transform. In Artificial Intelligence in China: Proceedings of the 5th International Conference on Artificial Intelligence in China. Lecture Notes in Electrical Engineering (1043), Changbaishan, China, 22 July 2023; Wang, W., Mu, J., Liu, X., Na, Z., Eds.; Springer: Berlin/Heidelberg, Germany, 2024; pp. 223–230. [Google Scholar]
- Niu, Y.; Li, Z.; Li, S. Cross Attention with Transformer for Few-shot Medical Image Segmentation. In Proceedings of the 2022 12th International Conference on Information Technology in Medicine and Education (ITME), Xiamen, China, 18–20 November 2022; pp. 644–648. [Google Scholar] [CrossRef] [Scilit]
- Lin, N.; Zhao, W.; Liang, S.; Zhong, M. Real-Time Segmentation of Unstructured Environments by Combining Domain Generalization and Attention Mechanisms. Sensors 2023, 23, 6008. [Google Scholar] [CrossRef] [Scilit]
- Ni, H.; Jiang, S. Deep Dual-Resolution Road Scene Segmentation Networks Based on Decoupled Dynamic Filter and Squeeze-Excitation Module. Sensors 2023, 23, 7140. [Google Scholar] [CrossRef] [Scilit]
- Yu, X.; Ren, Y.; Yin, X.; Meng, D.; Zhang, H. High Precision Positioning and Rotation Angle Estimation of a Flatbed Truck Based on BDS and Vision. Sensors 2024, 24, 1826. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Meng, D.; Ren, Y.; Yu, X.; Yin, X.; Wang, W.; Men, J. High-Precision Positioning and Rotation Angle Estimation for a Target Pallet Based on BeiDou Navigation Satellite System and Vision. Sensors 2024, 24, 5330. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Sun, P.; Zhang, R.; Jiang, Y.; Kong, T.; Xu, C.; Zhan, W.; Tomizuka, M.; Li, L.; Yuan, Z.; Wang, C.; et al. SparseR-CNN: End-to-End Object Detection with Learnable Proposals. arXiv 2020, arXiv:2011.12450. [Google Scholar]
- He, K.; Gkioxari, G.; Dollar, P.; Girshick, R. Mask R-CNN. In Proceedings of the 2017 IEEE International Conference on Computer Vision (ICCV), Venice, Italy, 22–29 October 2017. [Google Scholar]
- Cheng, B.; Misra, I.; Schwing, A.G.; Kirillov, A.; Girdhar, R. Masked-attention Mask Transformer for Universal Image Segmentation. arXiv 2021, arXiv:2112.01527. [Google Scholar]









| Stage | Output | DDRNet | |
|---|---|---|---|
| 1 | 448 × 448 | 3 × 3, 32, stride 2 | |
| 224 × 224 | 3 × 3, 32, stride 2 | ||
| 224 × 224 | |||
| 112 × 112 | |||
| 2 | 112 × 112, 56 × 56 | ||
| MHAB | – | ||
| 3 | 112 × 112, 28 × 28 | ||
| MHAB | – | ||
| 4 | 112 × 112, 14 × 14 | ||
| MHAB | SPP | ||
| 5 | 112 × 112 | Addition | |
| 112 × 112 | |||
| 896 × 896 | Bilinear Upsampling | ||
| Method | mAP |
|---|---|
| Sparse R-CNN | 53.46 |
| YOLOX | 48.97 |
| Faster R-CNN | 37.25 |
| YOLOv8 | 56.53 |
| YOLOv8 & MHAB | 59.18 |
| Method | mIoU | mACC |
|---|---|---|
| DeepLabV3 | 70.83 | 75.76 |
| UNet | 65.48 | 67.62 |
| Mask2Former | 73.94 | 74.28 |
| DDRNet | 72.24 | 73.95 |
| DDRNet & MHAB | 75.36 | 78.64 |
| Enhancement | Corrosion | CF | OST | DS | CB | Flange | ||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| IoU | ACC | IoU | ACC | IoU | ACC | IoU | ACC | IoU | ACC | IoU | ACC | |
| ✗ | 45.65 | 46.37 | 86.29 | 87.16 | 79.85 | 81.67 | 72.45 | 76.32 | 63.63 | 66.58 | 60.24 | 61.29 |
| ✔ | 56.32 | 57.61 | 85.97 | 86.19 | 80.62 | 82.49 | 75.89 | 77.93 | 65.98 | 67.46 | 61.65 | 65.81 |
| Method | Algorithm | Time (ms) |
|---|---|---|
| One stage | DDRNet | 11.28 |
| Two stage | YOLOv8 | 1.35 |
| Postprocessing | 0.86 | |
| DDRNet | 3.58 |
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2024 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (https://creativecommons.org/licenses/by/4.0/).
Share and Cite
Wang, Z.; Lan, X.; Zhou, Y.; Wang, F.; Wang, M.; Chen, Y.; Zhou, G.; Hu, Q. A Two-Stage Corrosion Defect Detection Method for Substation Equipment Based on Object Detection and Semantic Segmentation. Energies 2024, 17, 6404. https://doi.org/10.3390/en17246404
Wang Z, Lan X, Zhou Y, Wang F, Wang M, Chen Y, Zhou G, Hu Q. A Two-Stage Corrosion Defect Detection Method for Substation Equipment Based on Object Detection and Semantic Segmentation. Energies. 2024; 17(24):6404. https://doi.org/10.3390/en17246404
Chicago/Turabian StyleWang, Zhigao, Xinsheng Lan, Yong Zhou, Fangqiang Wang, Mei Wang, Yang Chen, Guoliang Zhou, and Qing Hu. 2024. "A Two-Stage Corrosion Defect Detection Method for Substation Equipment Based on Object Detection and Semantic Segmentation" Energies 17, no. 24: 6404. https://doi.org/10.3390/en17246404
APA StyleWang, Z., Lan, X., Zhou, Y., Wang, F., Wang, M., Chen, Y., Zhou, G., & Hu, Q. (2024). A Two-Stage Corrosion Defect Detection Method for Substation Equipment Based on Object Detection and Semantic Segmentation. Energies, 17(24), 6404. https://doi.org/10.3390/en17246404
