Researchers in China have developed a novel deep learning model to detect defects in photovoltaic panels.
The approach leverages high-resolution visible light imaging to identify defects using an algorithm based on the deep learning framework You Only Look Once (YOLO), which makes predictions with just a single forward pass through the neural network.
The new method also incorporates a hybrid attention transformer into the cross-stage partial bottleneck, combined with two convolutional backbones.
“Building on the foundation of YOLOv8, we introduce a novel HAT-C2f neural network module and redesign the backbone component,” the researchers explained. “In the neck section, the conventional C2f module is replaced with the RepNCSPELAN4 architecture—an efficient layer design with specified channel sizes, repetitions, and convolutions—and an SKAttention mechanism is added before the detection head.”
The HAT-C2f module enhances the backbone’s ability to extract fine image details, while integrating RepNCSPELAN4 into the neck improves feature aggregation, allowing the system to detect objects of varying sizes. Adding SKAttention to the detection head enables the model to adapt to different scales.
The model, named YOLO-HRS, was evaluated on 6,500 labeled visible-light images from the data science competition platform and online community Kaggle, categorized into four classes: clean, dust, cracked, and bird droppings. Around 80% of the images were used for training, and the remaining 20% for validation. YOLO-HRS was tested against earlier YOLO models and state-of-the-art object detection algorithms. Ablation studies, in which individual components of the model were evaluated independently, were also conducted.
The analysis showed that the YOLO-HRS achieved 86.87% precision, 84.6% recall, a mean average precision (mAP) at an intersection over union (IoU) 0.5 of 88.98%, and [email protected]:0.95 of 77.08%.
Ablation studies demonstrated substantial performance improvements in object detection, while comparisons with other models showed YOLO-HRS outperformed them. For instance, at [email protected], only YOLOX approached its performance with 85.59%, while RT-DETR, Faster-RCNN, NanoDet, and RetinaNet scored 79.34%, 66.29%, 64.16%, and 69.54%, respectively.
Compared to the baseline YOLOv8, YOLO-HRS showed a 3% improvement in [email protected].
“In summary, the model was experimentally validated using visible-light images of PV panels, confirming its high reliability and precision,” the team concluded. “YOLO-HRS provides accurate defect detection in visible-light PV panels, offering a more dependable solution for real-world applications.”
Looking ahead, the researchers plan to further optimize and extend YOLO-HRS.
“First, we will refine the model architecture and test it on diverse datasets, including infrared and electroluminescence images, to evaluate its applicability across different scenarios. Second, we aim to develop lightweight structures, including novel down-sampling and feature extraction methods, to improve the balance between accuracy and model size. Finally, exploring cross-domain applications and self-supervised learning techniques could reduce dependence on large annotated datasets,” they said.
The new method was introduced in “A novel deep learning model for defect detection in photovoltaic panels using visible light imaging,” published in Engineering Applications of Artificial Intelligence. The research was conducted by scientists from China’s Zhejiang University of Finance and Economics and Hangzhou Dianzi University.
This content is protected by copyright and may not be reused. If you want to cooperate with us and would like to reuse some of our content, please contact: editors@pv-magazine.com.

By submitting this form you agree to pv magazine using your data for the purposes of publishing your comment.
Your personal data will only be disclosed or otherwise transmitted to third parties for the purposes of spam filtering or if this is necessary for technical maintenance of the website. Any other transfer to third parties will not take place unless this is justified on the basis of applicable data protection regulations or if pv magazine is legally obliged to do so.
You may revoke this consent at any time with effect for the future, in which case your personal data will be deleted immediately. Otherwise, your data will be deleted if pv magazine has processed your request or the purpose of data storage is fulfilled.
Further information on data privacy can be found in our Data Protection Policy.