A Novel Method for Localized Typical Blemish Image Data Generation in Substations
Abstract
:1. Introduction
1.1. Background
1.2. Related Works
1.2.1. Target Detection Methods
1.2.2. Deep Learning-Based Blemish Image Generation Methods
1.3. Main Contributions
- (1)
- To address the issue of global style variation in images generated by GAN methods, we have proposed a method for local region detection on equipment. We utilize an improved YOLOv7 [26] method to accurately detect potential blemish locations in substation equipment images.
- (2)
- We use a GAN model for generating blemish images in substations. By generating blemishes on localized images of detected substation equipment, the effective generation of blemish data is achieved.
- (3)
- The above method preserves the features of the original images to a great extent, while also generating different types of blemishes on multiple devices within the same image. This addresses the limitations of original images having a single blemish type and few blemishes. Experimental validation has shown that the dataset generated by this method effectively enhances the precision of mainstream surface blemish detection methods.
2. Methodologies
2.1. Local Area Detection of Substation Equipment
2.1.1. YOLOv7 Model
2.1.2. C3-S2 Block
2.1.3. SimAM in the Neck
2.1.4. WD-CIoU Loss
2.2. Blemish Generation Algorithm
2.2.1. Algorithm Principle of GAN
2.2.2. Localized Blemish Generation Model
2.2.3. Composite Discriminator
2.2.4. Loss Function
3. Experiments and Discussion
3.1. Experimental Preparation
Algorithm 1 Workflow for Generating Defective Images using YOLO-LRD and SEB-GAN |
|
3.2. Complexity of the Proposed Method
- Model Complexity: YOLO-LRD has a parameter size of MB and 49 GFOLPs, making it suitable for real-time detection. SEB-GAN has a parameter size of MB and 146 GFOLPs, indicating greater computational demands for generating defect images.
- Memory Usage: YOLO-LRD uses G of GPU memory, while SEB-GAN requires G. This difference in memory demand can impact overall performance, especially in resource-limited environments.
- Training and Inference Time: YOLO-LRD has a faster inference speed during detection, but SEB-GAN’s training and generation times are longer, requiring a balance between real-time performance and generation quality.
3.3. Effect of Generated Blemishes
3.4. Ablation Experiments of YOLO-LRD
3.5. Comparison Experiment of GAN Models
3.6. Limitations of the Proposed Method
- Compared with real defect images, the defect positions in the images generated by our method are not sufficiently realistic. For instance, oil stains typically occur at seals or other vulnerable joints of oil tanks prone to leakage, whereas our model may generate oil stains on the tank body surface where such stains are less likely to occur.
- The connection between the generated blemishes and the background image still exhibits a noticeable boundary, lacking naturalness. For example, significant differences in brightness, saturation, and other aspects between the generated blemishes and the background image can make the generated image appear unnatural.
- Our proposed method is capable of generating defect textures that are relatively simple, but it struggles to generate blemishes with complex textures such as bird nests, foreign objects, or intricate damage patterns like markings. The SEB-GAN method’s performance in generating such complex defect features is inadequate.
4. Conclusions
Author Contributions
Funding
Informed Consent Statement
Data Availability Statement
Conflicts of Interest
References
- Melo, J.V.J.; Lira, G.R.S.; Costa, E.G.; Vilar, P.B.; Andrade, F.L.M.; Marotti, A.C.F.; Costa, A.I.; Leite Neto, A.F.; Santos Júnior, A.C.d. Separation and Classification of Partial Discharge Sources in Substations. Energies 2022, 17, 3804. [Google Scholar] [CrossRef]
- Zhang, H.; Zhou, B.; Tian, Y.; Li, Z. Segmentation and Tracking Based on Equalized Memory Matching Network and Its Application in Electric Substation Inspection. Algorithms 2024, 17, 203. [Google Scholar] [CrossRef]
- Gyrichidi, N.; Romanov, A.M.; Trofimov, O.V.; Eroshenko, S.A.; Matrenin, P.V.; Khalyasmaa, A.I. GNSS-Based Narrow-Angle UV Camera Targeting: Case Study of a Low-Cost MAD Robot. Sensors 2024, 24, 3494. [Google Scholar] [CrossRef] [PubMed]
- de Castro, G.G.R.; Santos, T.M.B.; Andrade, F.A.A.; Lima, J.; Haddad, D.B.; Honório, L.d.M.; Pinto, M.F. Heterogeneous Multi-Robot Collaboration for Coverage Path Planning in Partially Known Dynamic Environments. Machines 2024, 12, 200. [Google Scholar] [CrossRef]
- Lu, X.; Yuan, S.; Nian, Z.; Mu, C.; Li, X. Optimizing Task Offloading for Power Line Inspection in Smart Grid Networks with Edge Computing: A Game Theory Approach. Information 2024, 15, 441. [Google Scholar] [CrossRef]
- Wu, Y.; Xiao, F.; Liu, F.; Sun, Y.; Deng, X.; Lin, L.; Zhu, C. A Visual Fault Detection Algorithm of Substation Equipment Based on Improved YOLOv5. Appl. Sci. 2023, 13, 11785. [Google Scholar] [CrossRef]
- Wang, Q.; Yang, L.; Zhou, B.; Luan, Z.; Zhang, J. YOLO-SS-Large: A Lightweight and High-Performance Model for Defect Detection in Substations. Sensors 2023, 23, 8080. [Google Scholar] [CrossRef]
- Thillaigovindhan, S.K.; Roslee, M.; Mitani, S.M.I.; Osman, A.F.; Ali, F.Z. A Comprehensive Survey on Machine Learning Methods for Handover Optimization in 5G Networks. Electronics 2024, 13, 3223. [Google Scholar] [CrossRef]
- Wang, W.; Chen, J.; Han, G.; Shi, X.; Qian, G. Application of Object Detection Algorithms in Non-Destructive Testing of Pressure Equipment: A Review. Sensors 2024, 24, 5944. [Google Scholar] [CrossRef]
- Girshick, R. Fast r-cnn. In Proceedings of the IEEE International Conference on Computer Vision, Santiago, Chile, 7–13 December 2015. [Google Scholar]
- Ren, S.; He, K.; Girshick, R.; Sun, J. Faster r-cnn: Towards real-time object detection with region proposal networks. Comput. Vis. Pattern Recognit. arXiv 2015, arXiv:1506.01497. [Google Scholar] [CrossRef]
- He, K.; Gkioxari, G.; Dollár, P.; Girshick, R. Mask r-cnn. In Proceedings of the IEEE International Conference on Computer Vision, Venice, Italy, 22–29 October 2017. [Google Scholar]
- Hussain, M.; Khanam, R. In-Depth Review of YOLOv1 to YOLOv10 Variants for Enhanced Photovoltaic Defect Detection. Solar 2024, 4, 351–386. [Google Scholar] [CrossRef]
- Zhang, N.; Yang, G.; Hu, F.; Yu, H.; Fan, J.; Xu, S. A Novel Adversarial Deep Learning Method for Substation Defect Image Generation. Sensors 2024, 24, 4512. [Google Scholar] [CrossRef] [PubMed]
- Liu, Y.; Huang, X. Efficient Cross-Modality Insulator Augmentation for Multi-Domain Insulator Defect Detection in UAV Images. Sensors 2024, 24, 428. [Google Scholar] [CrossRef] [PubMed]
- Huang, L.; Li, Y.; Wang, W.; He, Z. Enhanced Detection of Subway Insulator blemishes Based on Improved YOLOv5. Appl. Sci. 2023, 13, 13044. [Google Scholar] [CrossRef]
- Goodfellow, I.; Pouget-Abadie, J.; Mirza, M.; Xu, B.; Warde-Farley, D.; Ozair, S.; Courville, A.; Bengio, Y. Generative adversarial networks. Commun. ACM 2020, 63, 139–144. [Google Scholar] [CrossRef]
- Yang, J.; Wang, K.; Luan, F.; Yin, Y.; Zhang, H. PreCaCycleGAN: Perceptual Capsule Cyclic Generative Adversarial Network for Industrial Defective Sample Augmentation. Electronics 2023, 12, 3475. [Google Scholar] [CrossRef]
- Di Maggio, L.G.; Brusa, E.; Delprete, C. Zero-Shot Generative AI for Rotating Machinery Fault Diagnosis: Synthesizing Highly Realistic Training Data via Cycle-Consistent Adversarial Networks. Appl. Sci. 2023, 13, 12458. [Google Scholar] [CrossRef]
- Zhu, J.Y.; Park, T.; Isola, P.; Efros, A.A. Unpaired image-to-image translation using cycle-consistent adversarial networks. In Proceedings of the IEEE International Conference on Computer Vision, Venice, Italy, 22–29 October 2017; pp. 2223–2232. [Google Scholar]
- Liu, Y.; Gao, W.; Zhao, T.; Wang, Z.; Wang, Z. A Rapid Bridge Crack Detection Method Based on Deep Learning. Appl. Sci. 2023, 13, 9878. [Google Scholar] [CrossRef]
- Radford, A.; Metz, L.; Chintala, S. Unsupervised representation learning with deep convolutional generative adversarial networks. arXiv 2015, arXiv:1511.06434. [Google Scholar]
- Zhuang, C.; Li, J. Industrial Defect Detection of Plastic Labels Based on YOLOv5 and Generative Adversarial Networks. Comput. Meas. Control. 2023, 31, 91–98. [Google Scholar]
- Zhang, G.; Cui, K.; Hung, T.Y.; Lu, S. Defect-GAN: High-Fidelity Defect Synthesis for Automated Defect Inspection. arXiv 2017, arXiv:1709.03831. [Google Scholar]
- Liu, R.; Liu, W.; Zheng, Z.; Wang, L.; Mao, L.; Qiu, Q. Anomaly-GAN: A data augmentation method for train surface anomaly detection. Expert Syst. Appl. 2023, 228, 120284. [Google Scholar] [CrossRef]
- 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]
- Jocher, G. YOLOV5 [EB/OL]. 2022. Available online: https://github.com/ultralytics/yolov5 (accessed on 5 April 2024).
- Yang, L.; Zhang, R.-Y.; Li, L.; Xie, X. Simam: A Simple, Parameter-Free Attention Module for Convolutional Neural Networks. In Proceedings of the International Conference on Machine Learning, Online, 18–24 July 2021; pp. 11863–11874. [Google Scholar]
- Wang, J.; Xu, C.; Yang, W.; Yu, L. A normalized Gaussian Wasserstein distance for tiny object detection. arXiv 2021, arXiv:2110.13389. [Google Scholar]
- Zheng, Z.; Wang, P.; Liu, W.; Li, J.; Ye, R.; Ren, D. Distance-IoU loss: Faster and better learning for bounding box regression. In Proceedings of the AAAI Conference on Artificial Intelligence, New York, NY, USA, 7–12 February 2020; Volume 34, pp. 12993–13000. [Google Scholar]
- Ye, R.; Shao, G.; Yang, Z.; Sun, Y.; Gao, Q.; Li, T. Detection Model of Tea Disease Severity under Low Light Intensity Based on YOLOv8 and EnlightenGAN. Plants 2024, 13, 1377. [Google Scholar] [CrossRef]
- Ronneberger, O.; Fischer, P.; Brox, T. U-Net: Convolutional Networks for Biomedical Image Segmentation. In Proceedings of the Medical Image Computing and Computer-Assisted Intervention—MICCAI 2015, Munich, Germany, 5–9 October 2015; Lecture Notes in Computer Science. Springer: Cham, Switzerland, 2015; pp. 234–241. [Google Scholar]
Size of input images | 640 × 640 |
Batch | 8 |
Optimizer | Adam |
Momentum | 0.999 |
Learning rate | 0.001 |
Decay | 0.0005 |
Training steps | 4000 |
Size of input images | 256 × 256 |
Batch | 1 |
Optimizer | Adam |
Momentum | 0.5 |
Learning rate | 0.0002 |
Training steps | 150,000 |
C3-S2 | SimAM | [email protected] (%) | F1 Score (%) | IoU (%) |
---|---|---|---|---|
83.7 | 87.6 | 89.0 | ||
✓ | 88.1 | 88.5 | 89.7 | |
✓ | 84.8 | 87.0 | 89.9 | |
✓ | ✓ | 90.3 | 90.8 | 92.5 |
Image Augmentation Method | mAP/% | F1 Score/% | Params/MB | GPU Memory Usage/G | GFLOPs |
---|---|---|---|---|---|
Conventional techniques | 74.9 | 84.4 | - | - | - |
Cycle-GAN | 73.7 | 84.3 | 39.1 | 6.3 | 105 |
ResNet + Cycle-GAN | 74.1 | 84.7 | 41.5 | 6.3 | 129 |
DCGAN | 71.8 | 80.9 | 27.5 | 4.7 | 75 |
CONV + DCGAN | 72.4 | 82.6 | 27.7 | 4.7 | 82 |
Def-GAN | 76.9 | 86.5 | 76.3 | 11.2 | 335 |
SEB-GAN | 90.3 | 90.8 | 43.9 | 8.0 | 146 |
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
Zhang, N.; Fan, J.; Yang, G.; Li, G.; Yang, H.; Bai, Y. A Novel Method for Localized Typical Blemish Image Data Generation in Substations. Mathematics 2024, 12, 2950. https://doi.org/10.3390/math12182950
Zhang N, Fan J, Yang G, Li G, Yang H, Bai Y. A Novel Method for Localized Typical Blemish Image Data Generation in Substations. Mathematics. 2024; 12(18):2950. https://doi.org/10.3390/math12182950
Chicago/Turabian StyleZhang, Na, Jingjing Fan, Gang Yang, Guodong Li, Hong Yang, and Yang Bai. 2024. "A Novel Method for Localized Typical Blemish Image Data Generation in Substations" Mathematics 12, no. 18: 2950. https://doi.org/10.3390/math12182950
APA StyleZhang, N., Fan, J., Yang, G., Li, G., Yang, H., & Bai, Y. (2024). A Novel Method for Localized Typical Blemish Image Data Generation in Substations. Mathematics, 12(18), 2950. https://doi.org/10.3390/math12182950