改进YOLOv5的光伏组件热斑及遮挡小目标检测OACSTPCD
Improved YOLOv5 Photovoltaic Module Thermal Spot and Occlusion Small Target Detection
热斑会严重影响光伏组件发电效率,利用红外光图像检测热斑,难以同时实现树叶、鸟粪等小型异物遮挡的有效识别,及时发现和清理异物可以有效降低因受到持续遮挡而引起的热斑.为实现对热斑更加全面的识别和处理,基于无人机巡检可见光和红外光视频图像尺寸及检测任务特点,结合K-means++算法与IoU指标改进了YOLOv5的锚框设定方案以改善结果的随机性;可见光场景中,针对遮挡物体较小导致难以检测的问题,在YOLOv5s6的主干网络中嵌入坐标注意力机制(coordinate attention,CA),设计了遮挡小目标检测模型(CA-YOLOv5s6);红外光场景中,热斑区域较为明显,选择轻量化网络YOLOv5n作为其检测模型.实验结果显示:相较于YOLOv5s6,CA-YOLOv5s6的mAP提升了2.97个百分点,达到83.78%,Parameters减少了4.8×105,达到1.18×107,有效地提高了遮挡小目标的检测精度;YOLOv5n模型的mAP、FPS、Parameters分别为93.31%、83.3、1.76×106,可以更好地满足红外图像热斑检测的任务需求.
Hot spots will seriously affect the power generation efficiency of photovoltaic modules,infrared image detec-tion of hot spots is difficult to realize effective recognition of small foreign matters such as leaves and bird droppings,discovering and cleaning foreign matters timely can effectively reduce the hot spots caused by continuous covering.In order to realize more comprehensive recognition and treatment of hot spots,based on the image size of UAV inspection visible and infrared video and the characteristics of detection task,YOLOv5's anchor frame setting scheme is improved by combining K-means++ algorithm and IoU index,the randomness of results has been improved.In the visible scene,aiming at the problem that small occluded objects make detection difficult,the small occluded objects detection model(CA-YOLOv5s6)is designed by embedding coordinate attention(CA)in YOLOv5s6's backbone.In the infrared scene,the hot spot area is obvious in infrared image,the lightweight network YOLOv5n is selected as its detection model.The experimental results show that,compared with YOLOv5s6,the mAP of CA-YOLOv5s6 is increased by 2.97 percentage points to 83.78%,and the Parameters are reduced by 4.8×105 to 1.18×107,which effectively improves the detection accuracy of the occlusion small target.The mAP,FPS and Parameters of YOLOv5n are 93.31%,83.3 and 1.76×106,which can better meet the task requirements of infrared image hot spot detection.
林正文;宋思瑜;范钧玮;赵薇;刘广臣
鲁东大学 数学与统计科学学院,山东 烟台 264025鲁东大学 信息与电气工程学院,山东 烟台 264025
计算机与自动化
光伏组件热斑故障异物遮挡小目标检测YOLOv5坐标注意力
photovoltaic modulehot spot faultforeign matters occlusionsmall target detectionYOLOv5coordinate attention
《计算机工程与应用》 2024 (001)
84-95 / 12
山东省高等学校教学研究与改革面上项目(M2018X066);鲁东大学"专创融合"课程建设重点项目(2021Z08).
评论