An Improved Few-Shot Object Detection via Feature Reweighting Method for Insulator Identification
Abstract
:1. Introduction
- The article uses YOLOv5 as the main detection network of the whole model, the feature extraction network of YOLOv5 is replaced by a corrected self-calibrated convolutional (SCconv) network [22] to develop the ability of the model to detect insulators with different scale targets;
- The article embeds the selective kernel network (SKNet) attention mechanism [23] before the input of the reweighting module, to generate a detailed mask and enhance the capacity of the network to obtain key detail meta-feature information of the support set;
- The article proposes an improved multi-stage non-maximum suppression (NMS) algorithm to avoid the wrong deletion of candidate boxes with insulator targets and reduce the missing detection of occluding insulators.
2. Improved Feature Reweighting Model
3. Methodology
3.1. Improved Self-Calibrated Feature Extraction Network
3.2. Mask Generation Method Based on SKNet
3.3. Multi-Stage Non-Maximum Suppression Algorithm
Algorithm 1. Multi-stage non-maximum suppression algorithm pseudocode. |
Input: Initial candidate box set B = {b1, …, bN} Confidence set K = {K1, …, KN} Begin Define empty set D while The candidate box set B is not empty do Order by confidence score from highest to lowest The candidate box M with the highest confidence is moved into set D and removed from set B for Candidate boxes in set bi do if 0 < The IoU of candidate frame M and candidate frame bi < N1 then Si = [1 − IoU(M,bi)3]1/2 else if N1 ≦ The IoU of candidate frame M and candidate frame bi ≦ N2 then Si = 0.7 − lg(IoU(M,bi)) + 0.5 else Si = [1 − IoU(M,bi)2]1/2 Recalculate the confidence Ki end end Output: Set D and the confidence set K End |
4. Experiment and Analysis
4.1. Experiment Preparation and Data Sets Settings
4.2. Training Strategy
4.3. Evaluation Index
4.4. Experimental Results and Analysis
5. Conclusions
Author Contributions
Funding
Institutional Review Board Statement
Informed Consent Statement
Data Availability Statement
Acknowledgments
Conflicts of Interest
References
- Gu, J.; Hu, J.; Jiang, L.; Jiang, L.; Wang, Z.; Zhang, X.; Xu, Y.; Zhu, J.; Fang, L. Research on object detection of overhead transmission lines based on optimized YOLOv5s. Energies 2023, 16, 2706. [Google Scholar] [CrossRef]
- Ren, S.; He, K.; Girshick, R.; Sun, J. Faster R-CNN: Towards real-time object detection with region proposal networks. Adv. Neural Inf. Process. Syst. 2015, 28, 91–99. [Google Scholar] [CrossRef] [PubMed]
- Liu, W.; Anguelov, D.; Erhan, D.; Szegedy, C.; Reed, S.; Fu, C.-Y.; Berg, A.C. SSD: Single shot multibox detector. In Proceedings of the 2016 European Conference on Computer Vision (ECCV), Amsterdam, The Netherlands, 8–16 October 2016; pp. 21–37. [Google Scholar]
- Redmon, J.; Divvala, S.; Girshick, R.; Farhadi, A. You only look once: Unified, real-time object detection. In Proceedings of the 2016 IEEE Conference on Computer Vision and Pattern Recognition (CVPR), Las Vegas, NV, USA, 26 June–1 July 2016; pp. 779–788. [Google Scholar]
- Tang, Y.; Han, J.; Wei, W.; Ding, J.; Peng, X. Research on part recognition and defect detection of transmission line in deep learning. Electron. Meas. Technol. 2018, 41, 60–65. [Google Scholar]
- Zhao, Z.; Zhen, Z.; Zhang, L.; Qi, Y.; Kong, Y.; Zhang, K. Insulator detection method in inspection image based on improved faster R-CNN. Energies 2019, 12, 1204. [Google Scholar] [CrossRef]
- Han, H.; Luo, J.; Liu, L.; Zhao, S.; Xia, C.; Zhao, A. Research on detection method of transmission line components based on UAV image. Electr. Meas. Instrum. 2022, 1–7. [Google Scholar]
- Ma, P.; Fan, Y. Sample smart substation power equipment component detection based on deep transfer learning. Power Syst. Technol. 2020, 44, 1148–1159. [Google Scholar]
- Zhang, H.; Li, J.; Zhang, B. Foreign object detection on insulators based on YOLO v3. Electr. Power 2020, 53, 49–55. [Google Scholar]
- Redmon, J.; Farhadi, A. YOLOv3: An incremental improvement. arXiv 2018, arXiv:1804.02767. [Google Scholar]
- Hui, H.; Huang, X.; Song, Y.; Zhang, Z.; Wang, M.; Chen, B.; Yan, G. An insulator self-blast detection method based on YOLOv4 with aerial images. Energy Rep. 2022, 8, 448–454. [Google Scholar]
- Bochkovskiy, A.; Wang, C.; Liao, H. YOLOv4: Optimal speed and accuracy of object detection. arXiv 2020, arXiv:2004.10934. [Google Scholar]
- Lin, T.; Maire, M.; Belongie, S.; Hays, J.; Perona, P.; Ramanan, D.; Dollár, P.; Zitnick, C.L. Microsoft coco: Common objects in context. In Proceedings of the 2014 European Conference on Computer Vision (ECCV), Zurich, Switzerland, 5–12 September 2014; pp. 740–755. [Google Scholar]
- Everingham, M.; Eslami, S.M.A.; Van, L.; Williams, C.K.I.; Winn, J.; Zisserman, A. The pascal visual object classes challenge: A retrospective. Int. J. Comput. Vis. 2015, 111, 98–136. [Google Scholar] [CrossRef]
- Zhang, H.; Zhang, J.; Koniusz, P. Few-shot learning via saliency-guided hallucination of samples. In Proceedings of the 2019 IEEE Conference on Computer Vision and Pattern Recognition (CVPR), Long Beach, CA, USA, 16–20 June 2019; pp. 2770–2779. [Google Scholar]
- Wang, X.; Huang, T.; Gonzalez, J.; Yu, F. Frustratingly simple few-shot object detection. In Proceedings of the 37th International Conference on Machine Learning (ICML), Online, 13–18 July 2020; pp. 9919–9928. [Google Scholar]
- Kang, B.; Liu, Z.; Wang, X.; Yu, F.; Feng, J.; Darrell, T. Few-shot object detection via feature reweighting. In Proceedings of the 2019 IEEE International Conference on Computer Vision (ICCV), Seoul, Republic of Korea, 27 October–2 November 2019; pp. 8420–8429. [Google Scholar]
- Li, W.; Wang, L.; Xu, J.; Huo, J.; Gao, Y.; Luo, J. Revisiting local descriptor based image-to-class measure for few-shot learning. In Proceedings of the 2019 IEEE Conference on Computer Vision and Pattern Recognition (CVPR), Long Beach, CA, USA, 16–20 June 2019; pp. 7260–7268. [Google Scholar]
- Hsieh, T.I.; Lo, Y.C.; Chen, H.T.; Liu, T.L. One-shot object detection with co-attention and co-excitation. In Proceedings of the 2019 Advances in Neural Information Processing Systems (NIPS), Vancouver, BC, Canada, 10–12 October 2019; pp. 2725–2734. [Google Scholar]
- Kim, J.; Kim, T.; Kim, S.; Yoo, C.D. Edge-labeling graph neural network for few-shot learning. In Proceedings of the 2019 IEEE Conference on Computer Vision and Pattern Recognition (CVPR), Long Beach, CA, USA, 16–20 June 2019; pp. 11–20. [Google Scholar]
- Han, G.; He, Y.; Huang, S.; Ma, J.; Chang, S.-F. Query adaptive few-shot object detection with heterogeneous graph convolutional networks. In Proceedings of the 2021 IEEE International Conference on Computer Vision (ICCV), Montreal, QC, Canada, 10–17 October 2021; pp. 3263–3272. [Google Scholar]
- Liu, J.; Hou, Q.; Cheng, M.; Wang, C.; Feng, J. Improving convolutional networks with self-calibrated convolutions. In Proceedings of the 2020 IEEE Conference on Computer Vision and Pattern Recognition (CVPR), Seattle, WA, USA, 14–19 June 2020; pp. 10093–10102. [Google Scholar]
- Li, X.; Wang, W.; Hu, X.; Yang, J. Selective kernel networks. In Proceedings of the 2019 IEEE Conference on Computer Vision and Pattern Recognition (CVPR), Long Beach, CA, USA, 16–20 June 2019; pp. 510–519. [Google Scholar]
- Tao, X.; Zhang, D.; Wang, Z.; Liu, X.; Zhang, H.; Xu, D. Detection of power line insulator defects using aerial images analyzed with convolutional neural networks. IEEE Trans. Syst. Man Cybern. Syst. 2020, 50, 1486–1498. [Google Scholar] [CrossRef]
- Lewis, D.; Kulkarni, P. Insulator Defect Detection. Available online: https://dx.doi.org/10.21227/vkdw-x769.s (accessed on 29 March 2023).
- Arifando, R.; Eto, S.; Wada, C. Improved YOLOv5-Based Lightweight Object Detection Algorithm for People with Visual Impairment to Detect Buses. Appl. Sci. 2023, 13, 5802. [Google Scholar] [CrossRef]
- He, K.; Zhang, X.; Ren, S.; Sun, J. Deep residual learning for image recognition. In Proceedings of the 2016 IEEE Conference on Computer Vision and Pattern Recognition (CVPR), Las Vegas, NV, USA, 26 June–1 July 2016; pp. 770–778. [Google Scholar]
- Simonyan, K.; Zisserman, A. Very deep convolutional networks for large-Scale image recognition. arXiv 2014, arXiv:1409.1556. [Google Scholar]
Configuration | Parameters |
---|---|
Operating system | Windows 10 |
CPU | Intel(R) Core(TM) i7-10700 CPU @ 2.90 GHz |
GPU | NVIDIA Geforce RTX2080 Ti |
Experimental environment version | Python3.6, Pytorch1.6, Cuda10.1 |
Categories | Labels |
---|---|
Glass normal insulator | Insulator1 |
Missing part of glass insulator | Defect1 |
Composite normal insulator | Insulator2 |
Missing part of composite insulator | Defect2 |
Parameters | Settings |
---|---|
Base lr | 0.001 |
Batch size | 16 |
Decay rate | 0.9 |
Epoch | 100 |
Method | APS | APM | APL | APms |
---|---|---|---|---|
Resnet | 0.416 | 0.485 | 0.518 | 0.462 |
VGG16 | 0.324 | 0.376 | 0.465 | 0.381 |
Darknet53 | 0.348 | 0.401 | 0.482 | 0.403 |
SCconv | 0.457 | 0.465 | 0.462 | 0.460 |
Ours | 0.471 | 0.492 | 0.488 | 0.480 |
NMS Algorithm | Learning Rate Decline Strategy | 5-Shot | 10-Shot | 30-Shot |
---|---|---|---|---|
Hard-NMS | Gradient descent | 0.242 | 0.298 | 0.440 |
Hard-NMS | Warmup cosine annealing | 0.247 | 0.301 | 0.447 |
Linear-NMS | Gradient descent | 0.255 | 0.297 | 0.457 |
Linear-NMS | Warmup cosine annealing | 0.257 | 0.304 | 0.462 |
Gaussian-NMS | Gradient descent | 0.265 | 0.318 | 0.451 |
Gaussian-NMS | Warmup cosine annealing | 0.272 | 0.321 | 0.458 |
Multistage NMS | Gradient descent | 0.281 | 0.350 | 0.468 |
Multistage NMS | Warmup cosine annealing | 0.296 | 0.360 | 0.483 |
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. |
© 2023 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
Wu, J.; Zhou, Y. An Improved Few-Shot Object Detection via Feature Reweighting Method for Insulator Identification. Appl. Sci. 2023, 13, 6301. https://doi.org/10.3390/app13106301
Wu J, Zhou Y. An Improved Few-Shot Object Detection via Feature Reweighting Method for Insulator Identification. Applied Sciences. 2023; 13(10):6301. https://doi.org/10.3390/app13106301
Chicago/Turabian StyleWu, Junpeng, and Yibo Zhou. 2023. "An Improved Few-Shot Object Detection via Feature Reweighting Method for Insulator Identification" Applied Sciences 13, no. 10: 6301. https://doi.org/10.3390/app13106301
APA StyleWu, J., & Zhou, Y. (2023). An Improved Few-Shot Object Detection via Feature Reweighting Method for Insulator Identification. Applied Sciences, 13(10), 6301. https://doi.org/10.3390/app13106301