基于改进YOLOv13模型的光伏板缺陷检测方法研究
Research on a Photovoltaic Panel Defect Detection Method Based on an Improved YOLOv13
摘要: 针对目前光伏板缺陷检测中仍存在小目标检测率低、检测速度慢以及适应性差等问题,提出了一种基于YOLOv13n的改进光伏板缺陷检测模型YOLOv13n-PV。在YOLOv13的Backbone网络结构中引入了CA注意力机制,这种机制使得算法能够更加专注于目标的位置信息和类别判定,从而有效地提升了对于小目标和密集目标的特征提取能力。同时,对于损失函数进行优化,采用类别加权和小目标加权的双重加权机制,增强模型对缺陷的敏感度和加强对小缺陷的检测效果。通过各项试验结果表明,本文提出的算法模型在测试数据集下的平均准确率、召回率分别为94.1%和93.6%。分别优于原始YOLOv13n模型算法的93.2%和91.7%。且模型的计算量没有过多增加,在提升检测性能的同时能够兼顾算法计算效率,因此可以快速地、准确地实现光伏板的缺陷检测,为新能源系统中的光伏法发电提供技术支持。
Abstract: To address the persistent issues in photovoltaic panel defect detection—namely the low detection rate for small targets, slow inference speed, and poor adaptability—we propose an improved defect detection model, YOLOv13n-PV, based on YOLOv13n. In the YOLOv13 backbone, we incorporate the Coordinate Attention (CA) mechanism, which enables the algorithm to focus more effectively on spatial localization and category discrimination, thereby enhancing feature extraction for small and densely distributed targets. Meanwhile, the loss function is optimized by adopting a dual-weighting mechanism that combines class weighting and small-object weighting. This approach enhances the model’s sensitivity to defects and strengthens the detection performance for small defects. The results of various experiments show that the average precision and recall of the algorithm model proposed in this paper on the test dataset are 94.1% and 93.6%, respectively. The values are respectively higher than 93.2% and 91.7% of the original YOLOv13n model algorithm. While improving detection performance, it can also balance the computational efficiency of the algorithm. Therefore, it can realize fast and accurate defect detection of photovoltaic panels, providing technical support for photovoltaic power generation in new energy systems.
文章引用:王旭涛, 邓豪, 李凌霄. 基于改进YOLOv13模型的光伏板缺陷检测方法研究[J]. 应用数学进展, 2025, 14(10): 152-165. https://doi.org/10.12677/aam.2025.1410428

参考文献

[1] 舒印彪, 赵勇, 赵良, 等. “双碳”目标下我国能源电力低碳转型路径[J]. 中国电机工程学报, 2023, 43(5): 1663-1672.
[2] 国家能源局. 2024年上半年光伏发电建设情况[J]. 电力科技与环保, 2021, 31(4): 46.
[3] Waqar Akram, M., Li, G., Jin, Y. and Chen, X. (2022) Failures of Photovoltaic Modules and Their Detection: A Review. Applied Energy, 313, Article 118822. [Google Scholar] [CrossRef
[4] 宁健, 马淼, 柴立臣, 等. 深度学习的目标检测算法综述[J]. 信息记录材, 2022, 23(10): 1-4.
[5] Girshick, R., Donahue, J., Darrell, T. and Malik, J. (2014) Rich Feature Hierarchies for Accurate Object Detection and Semantic Segmentation. 2014 IEEE Conference on Computer Vision and Pattern Recognition, Columbus, 23-28 June 2014, 580-587. [Google Scholar] [CrossRef
[6] Jiang, H. and Learned-Miller, E. (2017) Face Detection with the Faster R-CNN. 2017 12th IEEE International Conference on Automatic Face & Gesture Recognition, Washington, 30 May-3 June 2017, 650-657. [Google Scholar] [CrossRef
[7] Liu, W., Anguelov, D., Erhan, D., Szegedy, C., Reed, S., Fu, C., et al. (2016) SSD: Single Shot Multibox Detector. In: Leibe, B., Matas, J., Sebe, N. and Welling, M., Eds., Lecture Notes in Computer Science, Springer International Publishing, 21-37. [Google Scholar] [CrossRef
[8] Redmon, J., Divvala, S., Girshick, R. and Farhadi, A. (2016) You Only Look Once: Unified, Real-Time Object Detection. 2016 IEEE Conference on Computer Vision and Pattern Recognition (CVPR), Las Vegas, 27-30 June 2016, 779-788. [Google Scholar] [CrossRef
[9] Lei, M., Li, S., Wu, Y., Hu, H., Zhou, Y., Zheng, X., Ding, G., Du, S., Wu, Z. and Gao, Y. (2025) YOLOv13: Real-Time Object Detection with Hypergraph-Enhanced Adaptive Visual Perception. arXiv: 2506.17733.
[10] Hou, Q., Zhou, D. and Feng, J. (2021) Coordinate Attention for Efficient Mobile Network Design. 2021 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), Nashville, 20-25 June 2021, 13708-13717. [Google Scholar] [CrossRef