A photovoltaic panel defect identification method based on UAV thermal infrared remote sensing
By improving UAV thermal infrared remote sensing technology, determining the target value for photovoltaic panel defect detection, improving classification methods and neural network models, the problem of low accuracy and low efficiency in photovoltaic panel defect identification has been solved, and high accuracy and high efficiency have been achieved. Fault detection.
Patent Information
- Application Number
- CN202410416297.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-04-08
- Publication Date
- 2024-09-20
- Estimated Expiration
- 2044-04-08
AI Technical Summary
Existing UAV thermal infrared remote sensing photovoltaic panel defect identification methods lack a unified defect classification method and accuracy threshold. Thermal infrared imaging has a low accuracy recognition rate in fault detection and cannot effectively detect thermal faults of photovoltaic panels.
By determining the photovoltaic panel defect detection target value, improve the defect classification method, build a similarity matrix between categories, cluster and reclassify defect categories, analyze defect characteristics and classify risk levels, and optimize the neural network model to improve detection accuracy.
It has improved the accuracy, precision and recall rate of photovoltaic panel defect identification, significantly improved the accuracy and efficiency of fault identification, met practical application needs, and promoted the application progress of thermal infrared remote sensing technology in the field of photovoltaic energy.
Smart Images

Figure CN118196070B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of photovoltaic panel defect recognition, and in particular to a photovoltaic panel defect recognition method based on unmanned aerial vehicle thermal infrared remote sensing. Background Art
[0002] In recent years, with the rapid development of the renewable energy industry, the reliability and efficiency of photovoltaic systems have received unprecedented attention. Photovoltaic panels are prone to various faults due to long-term exposure to harsh environmental conditions, especially thermal faults, which seriously affect the power generation efficiency of the system and the life of photovoltaic panels. Traditional visible light imaging technology is greatly affected by external weather conditions and cannot detect thermal faults. In addition, thermal faults will seriously affect the performance and service life of photovoltaic panels, so detection must be carried out to ensure the efficiency and safety of photovoltaic systems. Based on this problem, as well as the convenience of photovoltaic defect detection by drones, and the advantages of thermal infrared imaging technology that can effectively detect thermal faults of photovoltaic panels, strong adaptability, and not affected by light and extreme weather, thermal infrared remote sensing technology based on drones is considered to achieve effective identification of various defects in photovoltaic panels, and finally form a photovoltaic panel defect identification method based on drone thermal infrared remote sensing.
[0003] At present, the existing photovoltaic panel defect recognition method based on UAV thermal infrared remote sensing still lacks a unified and reference defect classification method and accuracy threshold. At the same time, thermal infrared imaging has a low accuracy recognition rate in fault detection. Therefore, a photovoltaic panel defect recognition method based on UAV thermal infrared remote sensing is provided. Summary of the invention
[0004] The purpose of the present invention is to provide a photovoltaic panel defect identification method based on unmanned aerial vehicle thermal infrared remote sensing to address the defects of the prior art and solve the problems raised by the above-mentioned background technology.
[0005] To achieve the above purpose, the present invention provides the following technical solution: a photovoltaic panel defect identification method based on UAV thermal infrared remote sensing, the specific steps are as follows:
[0006] S1: Determination of target value for photovoltaic panel defect detection;
[0007] S2: Improvement of defect classification method;
[0008] S3: Construction and analysis of similarity matrix between categories;
[0009] S4: Clustering and reclassification of defect categories;
[0010] S5: Defect feature analysis and risk level classification;
[0011] S6: Application optimization of neural network models in defect detection.
[0012] As a preferred technical solution of the present invention, the specific steps of determining the photovoltaic panel defect detection target value in step S1 are:
[0013] S11: accuracy target value is set, the accuracy target value is 88%;
[0014] S12: Setting the target values of precision and recall. The target value of precision is 83%, and the target value of recall is 80%.
[0015] As a preferred technical solution of the present invention, the specific steps of improving the defect classification method in step S2 are:
[0016] By introducing two methods, mean square error (MSE) and structural similarity index (SSIM), as complementary methods to measure image similarity;
[0017] The mean square error is used to measure the brightness difference between two images. It is very sensitive to brightness changes at the pixel level and is suitable for measuring the color difference of images affected by noise and brightness changes. The smaller the mean square error, the more similar the images are, as shown in formula (1);
[0018]
[0019] The structural similarity index is used to calculate the structural information similarity between two images. It not only considers brightness, but also focuses on the structural and texture similarity of the images, providing a more comprehensive image similarity evaluation. The value range of the structural similarity index is between -1 and 1, where 1 indicates complete similarity, -1 indicates complete dissimilarity, and 0 indicates neutrality, as shown in formula (2);
[0020]
[0021] Since the mean square error may show disproportionately high values under slight brightness changes, an exponential function transformation is applied to the mean square error value in the formula to reduce the contribution of high mean square error values to the comprehensive similarity, making the evaluation result more tolerant to brightness differences and paying more attention to the similarity of structure and texture, as shown in formula (3): -β·MSE Partially shown;
[0022]
[0023] In equations (1)-(3), I1 and I2 represent the two images to be compared. and are the variances of the color information of the two images; σ 12 represents the covariance between the color information of the two images; μ1 and μ2 are the means of the color information of the two images respectively; C1 and C2 are constants used for stable calculation, usually set to C1 = (k1L)2 and C2=(k2L) 2 , where L is the dynamic range of the color value, and k1 and k2 are constants; in addition, α scales the similarity value and is set to 1×10 in the experiment. 4 ; β controls the decay rate of the mean square error of brightness and is set to 0.1 in the experiment; By comparing the image brightness and structural information, the data set categories can be reclassified to develop a set of photovoltaic panel defect classification standards for thermal infrared imaging.
[0024] As a preferred technical solution of the present invention, the specific steps of constructing and analyzing the inter-category similarity matrix in step S3 are as follows:
[0025] S31: In order to compare the similarity of images in different categories, 100 images from each category were randomly selected for analysis;
[0026] S32: During the comparison process, the two images are read and traversed through sliding windows of size (12,12) and (20,20) to capture and compare image features at different scales;
[0027] S33: For each window, we calculate the mean square error and structural similarity index, then calculate the similarity of the window based on the weight parameter and accumulate them, calculate the average similarity between the two images, and repeat this process to construct a similarity matrix, so that the similarity differences between categories can be intuitively displayed.
[0028] As a preferred technical solution of the present invention, the specific steps of clustering and reclassifying defect categories in step S4 are:
[0029] S41: By deeply analyzing the similarity matrix between categories, a tree clustering method was used to further explore the similarities between photovoltaic panel defect categories;
[0030] S42: Use tree clustering methods to understand the relationship between categories in a hierarchical way, so as to find and merge categories with high similarity in features;
[0031] S43: By setting the merging principles and constraints between defect categories, the categories that cannot be merged are set as "unreachable" in the cluster, so as to ensure that the subsequent operation and maintenance operations will not be affected by the category merging operation, thereby ensuring the scientificity and rationality of the category merging;
[0032] S44: Based on the clustering and analysis, some categories were merged based on the similarity between the categories and their practical significance in photovoltaic panel fault detection.
[0033] As a preferred technical solution of the present invention, the specific steps of defect feature analysis and risk level classification in step S5 are:
[0034] S51: Thermal infrared images from different photovoltaic panel defects were deeply analyzed by converting single-channel thermal images into false color images containing more information and further three-channel RGB images;
[0035] S52: Collects and summarizes the heat information of various defects, and uses histograms to display the information intuitively;
[0036] S53: Based on the analysis, as well as the support of the newly classified photovoltaic panel defect categories and corresponding references, the risk levels of various defect categories were divided.
[0037] As a preferred technical solution of the present invention, the specific steps of optimizing the application of the neural network model in defect detection in step S6 are as follows: by introducing and optimizing the neural network model "FeatureFusion", the performance improvement in the thermal infrared image classification task is achieved; by comparing the models on the new classification data set, it is verified whether the improved model surpasses the traditional model in accuracy, precision, recall rate and F1 score, showing excellent performance.
[0038] Compared with the existing technology, the beneficial effects of the present invention are: the present invention improves the system from the following three perspectives:
[0039] (1) Determination of target value for photovoltaic panel defect identification;
[0040] After comprehensively considering the current technical level and actual application needs, this method sets target values for key performance indicators such as accuracy, precision, and recall for photovoltaic panel defect detection. Through in-depth analysis of these key performance indicators, the present invention sets 88% accuracy, 83% precision, and 80% recall as targets in promoting the development and performance improvement of photovoltaic system defect detection technology.
[0041] (2) Optimization of thermal infrared imaging classification methods;
[0042] The present invention optimizes the application of thermal infrared imaging technology in photovoltaic panel defect identification. By deeply analyzing the characteristics of thermal infrared images, it realizes the effective reclassification of defect categories, and verifies the rationality of the new classification method proposed by the present invention from three aspects: improving the accuracy and scientificity of classification, improving the performance of defect identification, and statistical verification of the effect of the new classification method. This new classification method and model optimization strategy significantly improve the accuracy of defect identification, thereby better meeting the needs of practical applications. In addition, the further improvement of the classification method not only helps to improve the efficiency of photovoltaic panel fault detection, but also plays a key role in promoting the advancement of the application of thermal infrared remote sensing in the field of photovoltaic energy.
[0043] (3) Application optimization of neural network models in defect detection;
[0044] The present invention achieves performance improvement in thermal infrared image classification tasks by introducing and optimizing neural network models, especially the improved FeatureFusion model. The comparative experiments of the models on the new classification data set have verified that the improved model has surpassed the traditional model in many aspects such as accuracy, precision, recall rate and F1 score, showing excellent performance. This achievement verifies the efficiency and practicality of deep learning technology in photovoltaic panel defect detection, and significantly improves the accuracy of fault identification and the detection performance of the system.
[0045] The present invention aims to improve the accuracy and efficiency of fault identification by improving the classification method for thermal infrared imaging photovoltaic panel defects in the original data set and introducing an improved neural network model "FeatureFusion". Through in-depth analysis of the features of thermal infrared images, the present invention adopts a new classification method to reduce the overlap between fuzzy defect categories in the original data set, thereby optimizing the classification accuracy. The new classification method successfully improved the classification method for thermal infrared imaging photovoltaic panel defects in the original data set, and verified the rationality of the new classification method proposed in the present invention from three aspects: improving classification accuracy and scientificity, improving the performance of defect identification, and statistical verification of the effect of the new classification method. This provides a clear reference framework for photovoltaic panel fault detection and ensures that the category division more closely meets the detection requirements of thermal infrared imaging.
[0046] In addition, in view of the low-resolution characteristics of thermal infrared images, the improved neural network model provided by the present invention effectively improves the recognition and classification accuracy of fault features, thereby improving the reliability of fault detection. These technological innovations not only enhance the defect detection efficiency of photovoltaic systems, but also provide solid technical support for the sustainable development of the photovoltaic industry, which is of great strategic significance for promoting the transformation of the global energy industry towards a cleaner and lower-carbon direction. Therefore, the present invention plays a vital strategic role in improving the operating efficiency of photovoltaic systems and promoting the sustainable development of the photovoltaic industry. BRIEF DESCRIPTION OF THE DRAWINGS
[0047] Figure 1 Schematic diagram of typical examples of various categories of images in the present invention;
[0048] Figure 2 is the average similarity heat map between categories of the present invention;
[0049] Figure 3 This is a fault category hierarchical clustering diagram of the present invention;
[0050] Figure 4 is the three-channel mean histogram of each category of the image of the present invention;
[0051] Figure 5 It is the FeatureFusion model diagram of the present invention;
[0052] Figure 6 This is the InceptionBlock module diagram of the present invention. DETAILED DESCRIPTION
[0053] The preferred embodiments of the present invention are described in detail below in conjunction with the accompanying drawings so that the advantages and features of the present invention can be more easily understood by those skilled in the art, thereby making a clearer and more definite definition of the protection scope of the present invention.
[0054] The specific steps are as follows:
[0055] S1: Determination of target value for photovoltaic panel defect detection;
[0056] S11: accuracy target value is set, the accuracy target value is 88%;
[0057] S12: Setting the target values of precision and recall, the target value of precision is 83%, and the target value of recall is 80%;
[0058] The target values of key performance indicators such as accuracy, precision, and recall rate for photovoltaic panel defect detection are set. Through in-depth analysis of these key performance indicators, the aim is to promote the development and performance improvement of photovoltaic system defect detection technology;
[0059] S2: Improvement of defect classification method;
[0060] By introducing two methods, mean square error (MSE) and structural similarity index (SSIM), as complementary methods to measure image similarity;
[0061] The mean square error is used to measure the brightness difference between two images. It is very sensitive to brightness changes at the pixel level and is suitable for measuring the color difference of images affected by noise and brightness changes. The smaller the mean square error, the more similar the images are, as shown in formula (1);
[0062]
[0063] The structural similarity index is used to calculate the structural information similarity between two images. It not only considers brightness, but also focuses on the structural and texture similarity of the images, providing a more comprehensive image similarity evaluation. The value range of the structural similarity index is between -1 and 1, where 1 indicates complete similarity, -1 indicates complete dissimilarity, and 0 indicates neutrality, as shown in formula (2);
[0064]
[0065] Since the mean square error may show disproportionately high values under slight brightness changes, an exponential function transformation is applied to the mean square error value in the formula to reduce the contribution of high mean square error values to the comprehensive similarity, making the evaluation result more tolerant to brightness differences and paying more attention to the similarity of structure and texture, as shown in formula (3): -β·MSE Partially shown;
[0066]
[0067] In equations (1)-(3), I1 and I2 represent the two images to be compared. and are the variances of the color information of the two images; σ 12 represents the covariance between the color information of the two images; μ1 and μ2 are the means of the color information of the two images respectively; C1 and C2 are constants used for stable calculation, usually set to C1 = (k1L) 2 and C2=(k2L) 2 , where L is the dynamic range of the color value, and k1 and k2 are constants; in addition, α scales the similarity value and is set to 1×10 in the experiment. 4 β controls the decay rate of the mean square error of brightness and is set to 0.1 in the experiment. By comparing the image brightness and structural information, the dataset categories can be reclassified to develop a set of photovoltaic panel defect classification standards for thermal infrared imaging.
[0068] Through fine-grained category merging and differentiation, each new category has its own unique and clear fault characteristics, which significantly improves the recognition accuracy and robustness of the classification model under thermal infrared imaging;
[0069] S3: Construction and analysis of similarity matrix between categories;
[0070] S31: In order to compare the similarity of images in different categories, 100 images from each category were randomly selected for analysis;
[0071] S32: During the comparison process, the two images are read and traversed through sliding windows of size (12,12) and (20,20) to capture and compare image features at different scales;
[0072] S33: For each window, we calculate the mean square error and structural similarity index, then calculate the similarity of the window according to the weight parameter and accumulate it, calculate the average similarity between the two images, and repeat this process to construct a similarity matrix, so as to intuitively display the similarity differences between categories;
[0073] S4: Clustering and reclassification of defect categories;
[0074] S41: By deeply analyzing the similarity matrix between categories, a tree clustering method was used to further explore the similarities between photovoltaic panel defect categories;
[0075] S42: Use tree clustering methods to understand the relationship between categories in a hierarchical way, so as to find and merge categories with high similarity in features;
[0076] S43: By setting the merging principles and constraints between defect categories, the categories that cannot be merged are set as "unreachable" in the cluster, so as to ensure that the subsequent operation and maintenance operations will not be affected by the category merging operation, thereby ensuring the scientificity and rationality of the category merging;
[0077] S44: Based on clustering and analysis, some categories are merged based on the similarity between categories and their practical significance in photovoltaic panel fault detection. This method not only simplifies the complexity of the classification model, but also ensures the high accuracy and efficiency of the model in practical applications;
[0078] S5: Defect feature analysis and risk level classification;
[0079] S51: Thermal infrared images from different photovoltaic panel defects were deeply analyzed by converting single-channel thermal images into false color images containing more information and further three-channel RGB images;
[0080] This operation enables us to understand the fault information in the heat map from different angles and depths. Through this conversion, the fault area is more clearly represented in the image, which is convenient for subsequent feature extraction and classification.
[0081] S52: Collected and summarized the thermal information of various defects and displayed it visually using histograms; these histograms revealed significant differences in thermal distribution between different defect categories, providing important visual evidence for defect classification;
[0082] S53: Based on the analysis, as well as the support of the newly classified photovoltaic panel defect categories and corresponding references, the risk levels of various defect categories were divided.
[0083] S6: Application optimization of neural network models in defect detection;
[0084] By introducing and optimizing the neural network model "FeatureFusion", the performance of thermal infrared image classification tasks was improved; through comparative experiments on the models on the new classification data set, it was verified that the improved model surpassed the traditional model in accuracy, precision, recall and F1 score, showing excellent performance.
[0085] In the method of the present invention, the dataset for photovoltaic panel defect classification based on thermal infrared remote sensing is selected from the ICLR 2020 conference paper (MILLENDORF M, OBROPTA E, VADHAVKAR N. Infrared solar module dataset for anomaly detection; proceedings of the Proc Int Conf Learn Represent, F, 2020[C].). The dataset divides various types of photovoltaic panel defects into 12 categories, and contains a total of 20,000 24×40 pixel infrared images with an image resolution of 3.0 to 15.0 cm / pixel. The typical manifestations of these categories on thermal infrared images are as follows: Figure 1 shown.
[0086] The above-mentioned implementation of a photovoltaic panel defect identification method based on UAV thermal infrared remote sensing includes the following steps:
[0087] Step 1: Determine the target value for photovoltaic panel defect detection;
[0088] Setting accuracy target value;
[0089] Prabhakaran et al. (PRABHAKARAN S, ANNIE UTHRA R, PREETHAROSELYNJ. Comprehensive Analysis of Defect Detection Through Image Processing and Machine Learning for Photovoltaic Panels; proceedings of the Computer Vision and Machine Intelligence Paradigms for SDGs, Singapore, F 2023 / / , 2023[C]. Springer Nature Singapore.) conducted a comprehensive measurement of photovoltaic panel defect images based on different imaging methods such as IR, RGB, and microscope imaging. The results showed that when the defect area of the photovoltaic panel was detected using edge detection and canny operator extraction methods, a defect recognition rate of 92% was achieved. When SVM was used to classify defective images, an 88% recognition rate was achieved. Although in this study, the AlexNet-based neural network method achieved an accuracy of 85.56% in predicting photovoltaic panel defects, at this stage, the learning of neural networks requires more computing resources and more complex model tuning, and is still not as popular as traditional machine learning and image processing methods in the field of actual engineering operations. Based on the commonly used detection methods in current actual engineering applications, we finally decided to set the target value of the recognition rate of photovoltaic panel defect images at 88% to ensure that the detection and identification of photovoltaic panel defects achieves actual engineering results.
[0090] also, et al. VIDAL HS, HANK T, et al. Detection of Solar Photovoltaic Power Plants Using Satellite and Airborne Hyperspectral Imaging [J]. Remote Sensing, 2023, 15 (13): 3403.) When using hyperspectral imaging to detect solar photovoltaic power generation, the accuracy at the user end was 70.53%, while the accuracy at the manufacturer was 88.06%. Supe et al. (SUPE H, AVTAR R, SINGH D, et al. Google Earth Engine for the Detection of Soiling on Photovoltaic Solar Panels in Arid Environments [J]. Remote Sensing, 2020, 12 (9): 1466.) achieved an accuracy of 89.6% when detecting dirt on photovoltaic solar panels using the DBSI method. These all support the rationality of setting our recognition rate target value of 88%.
[0091] Setting precision and recall target values;
[0092] In order to improve the efficiency and accuracy of unmanned inspection of photovoltaic power stations, Guo et al. (GUO S, WANG Z, LOU Y, et al. Detection Method of Photovoltaic Panel Defect Based on Improved Mask R-CNN [J]. 2022, 2022, 23 (2): 10.) developed an improved Mask R-CNN method that combines void space pyramid pooling and spatial attention mechanism, specifically for detecting defects in photovoltaic panels. They compared this method with U-Net, PSPNet, and traditional Mask R-CNN. The results show that these methods achieved 77.3%, 82.2%, 84.0%, and 89.8% in detection accuracy, respectively, and 79.4%, 79.0%, 81.6%, and 84.4% in recall, respectively. Tommaso et al. (DI TOMMASO A, BETTI A, FONTANELLI G, et al. A multi-stage model based on YOLOv3 for defect detection in PV panels based on IR and visible imaging by unmanned aerial vehicle [J]. Renew Energy, 2022, 193: 941-62.) developed a multi-stage photovoltaic panel defect detection model based on YOLO v3 to effectively identify different types of photovoltaic panel defects. Based on the TP, FN, and FP sample data of each category provided by the visible light images collected by the Campania factory in the literature, the performance of the model was carefully calculated. Finally, it was concluded that under the condition of IoU = 0.5, the overall precision of these six types of defect detection was 83.19% and the recall rate was 76.03%. This calculation result is based on the research data of Tommaso et al., which was obtained after our detailed analysis, rather than directly from their original paper content.In addition, Elidrissi et al. (ELIDRISSI H, ACHAKIR H, ZEFRI Y, et al. Automatic on Field Detection and Localization of Defective Solar Photovoltaic Modules from Orthorectified RGB UAV Imagery; proceedings of the 20226th International Conference on Green Energy and Applications (ICGEA), F, 2022[C]. IEEE.) adopted an end-to-end approach, combining RGB drone images and fine-tuning of the YOLOv4 architecture to perform defect detection and localization of photovoltaic panels, achieving mAPs of 83% and 73% on the validation set and test set, respectively.
[0093] Taking into account the accuracy and recall of these studies during the inspection process, we decided to set the target values of precision and recall to 83% and 80% respectively. The setting of this target value not only takes into account the actual application scenarios and technical limitations of photovoltaic panel defect detection, but also keeps consistent with the common level in the industry today.
[0094] Step 2: Improvement of defect classification method;
[0095] By introducing MSE (mean square error) and SSIM (structural similarity index) as complementary methods for measuring image similarity. MSE is mainly used to measure the brightness difference between two images. It is very sensitive to brightness changes at the pixel level, so it is suitable for measuring the color difference of images when they are affected by noise and brightness changes. The smaller the MSE, the more similar the images are, as shown in formula (1). SSIM is used to calculate the structural information similarity between two images. It not only considers brightness, but also pays attention to the structural and texture similarities of the images, providing a more comprehensive image similarity evaluation. The value range of SSIM is between -1 and 1, 1 means complete similarity, -1 means complete dissimilarity, and 0 means neutral, as shown in formula (2). However, since MSE may show disproportionately high values under slight brightness changes, we apply an exponential function transformation to the MSE value in the formula, aiming to reduce the contribution of high MSE values to the comprehensive similarity, making the evaluation result more tolerant to brightness differences and paying more attention to the similarity of structure and texture, as shown in formula (3) e -β·MSEAs shown in the following formulas (1), (2), and (3):
[0096]
[0097]
[0098]
[0099] In equations (1)-(3), I1 and I2 represent the two images to be compared. and are the variances of the color information of the two images. 12 Represents the covariance between the color information of the two images. μ1 and μ2 are the means of the color information of the two images, respectively. C1 and C2 are constants used for stable calculations, usually set to C1 = (k1L) 2 and C2=(k2L) 2 , where L is the dynamic range of color values, and k1 and k2 are constants. In addition, α scales the similarity value and is set to 1×104 in the experiment. β controls the decay rate of the brightness MSE and is set to 0.1 in the experiment. By comparing the image brightness and structural information, we are able to reclassify the dataset and develop a set of photovoltaic panel defect classification standards for thermal infrared imaging.
[0100] Step 3: Construction and analysis of similarity matrix between categories;
[0101] In order to compare the similarity of images of different categories, 100 images of each category were randomly selected for analysis. During the comparison process, two images were read and traversed through sliding windows of size (12,12) and (20,20). This was done to capture and compare image features at different scales. For each window, we calculated its MSE and SSIM values, and then calculated the similarity of the window based on the weight parameter and accumulated them. In this way, we calculated the average similarity between the two images and repeated this process to construct a similarity matrix. Each element in the matrix represents the average similarity between two categories, as shown in Figure 2 As shown, dark cells represent low similarity and light cells represent high similarity, which intuitively shows the similarity differences between categories.
[0102] Step 4: Clustering and reclassification of defect categories;
[0103] In the category merging strategy, conditional restrictions are set to ensure the rationality and accuracy of the merge. "cell" and "cell_multi", "diode" and "diode_multi", and "hot_spot" and "hot_spot_multi" can be merged with each other, while "Shadowing", "soiling" and "vegetation" can be merged, but not merged with other categories. The remaining categories remain independent. Based on the similarity matrix, we calculated the distance matrix, and then performed a hierarchical clustering analysis. In the process of calculating the distance matrix, we set the merging principles and constraints between defect categories, and set the categories that cannot be merged as "unreachable", so as to ensure that subsequent operation and maintenance operations will not be affected by the category merging operation, so as to ensure the scientificity and rationality of the category merging. Figure 3 shown.
[0104] like Figure 3 As shown in the figure, we found that the "vegetation" category is quite different from "Shadowing" and "soiling", so it is not merged. Based on the above decisions, it is decided to merge "Cell" and "cell_multi" into the "Cell" category, "diode" and "diode_multi" into "diode", "hot_spot" and "hot_spot_multi" into "hot_spot", "Shadowing" and "soiling" into "contamination", and other categories remain the same and are not merged. These measures ensure that the classification based on thermal infrared imaging is more accurate and reliable.
[0105] Step 5: Defect feature analysis and risk level classification;
[0106] We map the image to a false color image and convert it into three-channel data. Then we summarize the heat channel information of each category, add them up and calculate the average value, and finally display them in the form of a histogram, as shown below: Figure 4 shown.
[0107] exist Figure 4 In the thermal infrared images shown, we can find that different categories of images have obvious differences in the distribution of red channel pixel values.
[0108] In addition, in the study by Wang Zongman et al. (Wang Zongman, Li Ling, Hu Zhenkun. Photovoltaic module infrared detection fault classification method [J]. China Science and Technology Information, 2024, (01): 116-8), the defects of photovoltaic panels were classified into seven levels according to the severity of photovoltaic module failures based on the factors of "the impact of module failure on photovoltaic panel power generation" and "the potential safety risk brought by module failure to photovoltaic panel operation". From small to large, they are: general hot spots of photovoltaic modules (level 1), severe hot spots of photovoltaic modules (level 2), weed obstruction and other local obstruction (level 3), photovoltaic module junction box failure (level 4), module fragmentation (level 5), inefficient strings (level 6), and grounded strings (level 7).
[0109] Among them, levels 1-2 are more closely related to the “cell” category and the “hot_spot” category. Figure 4 As shown in the figure, since the average pixel values of the "hot_spot" and "hot_spot_multi" categories are higher than those of the "cell" and "cell_multi" categories, the average pixel value of the merged "hot_spot" category is still higher than that of the "cell" category in general, that is, according to the severity level of PV module failure, the "hot_spot" category is higher than the "cell" category.
[0110] In addition, among the 7-level classification standards, level 3 is more closely associated with the "contamination" and "vegetation" categories; level 4 is more closely associated with the "diode" category; level 5 is more closely associated with the "cracking" category; and levels 6-7 are more closely associated with the "offline_module" category. This is because when the entire PV string fails, it is usually caused by internal connection problems or large-area component failures, which causes the entire PV panel to heat up. In this case, the corresponding PV panel is an "offline_module" category failure.
[0111] In summary, after referring to the classification standards of Wang Zongman et al., and based on the three-channel mean histogram of each image category, we divide these photovoltaic panel fault categories into the following 6 levels according to the severity from small to large: "cell" category (level 1), "hot_spot" category (level 2), "contamination" and "vegetation" categories (level 3), "diode" category (level 4), "cracking" category (level 5), "offline_module" category (level 6). The classification of photovoltaic panel defect categories according to the severity not only helps maintenance personnel to quickly identify and locate faults, but also provides important guidance for photovoltaic panel fault repair and maintenance. In addition, for the photovoltaic panel maintenance team, this severity-based fault classification method can improve maintenance efficiency and ensure the stable operation and long-term power generation capacity of the photovoltaic system.
[0112] Through a detailed analysis of the types of photovoltaic panel defects, it aims to highlight the causes of each defect and its impact on the performance of photovoltaic panels, so as to further classify the defects of photovoltaic panels according to the severity of the fault, and ultimately achieve the goal of "perfecting the classification method and basis, and helping to improve the efficiency of photovoltaic inspection and maintenance."
[0113] Step 6: Application optimization of neural network model in defect detection;
[0114] Since the original classification model cannot effectively complete the detection of photovoltaic defect recognition tasks, we use an improved neural network architecture to achieve the task of effectively identifying photovoltaic defects.
[0115] like Figure 5 As shown in the figure, the model integrates an "InceptionBlock" module. In the forward propagation process of the model, two pre-trained basic models are used to extract the features of the input image, and then these features are processed by the global average pooling layer for dimensionality reduction. The fused features are passed to the "InceptionBlock" module for further feature extraction and fusion. Finally, the features are passed through a fully connected layer for eight-category prediction.
[0116] like Figure 6 As shown in the figure, the "InceptionBlock" module adopts a multi-scale feature extraction strategy with four parallel convolution branches, each of which consists of a convolution layer, a batch normalization layer, and a ReLU activation function. At the same time, by using convolution kernels of different sizes such as 1x1, 3x3, and 5x5 and a maximum pooling layer, image features can be captured at different spatial resolutions. In order to improve computational efficiency and feature richness, this module uses 1x1 convolution for dimensionality reduction before applying a larger convolution kernel.
[0117] In general, the model achieves rich and diverse learning of image content by fusing the features of the two basic models. Its internal "InceptionBlock" module further provides the ability to extract multi-scale features, enhancing the model's ability to recognize image content of different scales and complexities. This unique structural design not only optimizes the effect of feature fusion, but also ensures the robustness of the model when facing complex data.
[0118] After the "FeatureFusion" model training is completed, this study uses an ensemble learning method to integrate the model with the EfficientNet-b0 and b1 models loaded with pre-trained weights through a weighted average strategy. Because the "FeatureFusion" model takes into account the correlation, complementarity, and differences between the EfficientNet-b0 and b1 models, it can effectively extract and utilize image information that these two models cannot recognize, and obtain more accurate classification output in the ensemble learning method.
[0119] As shown in Table 1, the performance of the original model on the dataset is not satisfactory and does not meet the accuracy threshold standard we set.
[0120] Table 1: Performance analysis of each model on the original dataset
[0121]
[0122] As shown in Table 2, after reclassification of the photovoltaic panel categories, the recognition performance of the original model has generally improved.
[0123] Table 2: Performance analysis of each model on the re-partitioned dataset
[0124]
[0125] As shown in Table 3, the improved model can effectively improve the recognition performance of the model again, and finally reach the accuracy threshold standard we set: "set the recognition rate target value of photovoltaic panel defect images at 88%, and set the target values of precision and recall rate at 83% and 80% respectively."
[0126] Table 3: Performance analysis of each model on the dataset
[0127]
[0128] The above embodiments only express the implementation methods of the present invention, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the invention patent. It should be pointed out that, for ordinary technicians in this field, several variations and improvements can be made without departing from the concept of the present invention, and these all belong to the protection scope of the present invention.
Claims
1. A photovoltaic panel defect identification method based on UAV thermal infrared remote sensing, Features: The specific steps are as follows: S1: Determination of target value for photovoltaic panel defect detection; the specific steps are as follows: S11: accuracy target value is set, the accuracy target value is 88%; S12: Setting the target values of precision and recall, the target value of precision is 83%, and the target value of recall is 80%; S2: Improvement of defect classification method; the specific steps are as follows; By introducing two methods, mean square error (MSE) and structural similarity index (SSIM), as complementary methods to measure image similarity; The mean square error is used to measure the brightness difference between two images. It is very sensitive to brightness changes at the pixel level and is suitable for measuring the color difference of images affected by noise and brightness changes. The smaller the mean square error, the more similar the images are, as shown in formula (1); The structural similarity index is used to calculate the structural information similarity between two images. It not only considers brightness, but also focuses on the structural and texture similarity of the images, providing a more comprehensive image similarity evaluation. The value range of the structural similarity index is between -1 and 1, where 1 indicates complete similarity, -1 indicates complete dissimilarity, and 0 indicates neutrality, as shown in formula (2); Since the mean square error may show disproportionately high values under slight brightness changes, an exponential function transformation is applied to the mean square error value in the formula to reduce the contribution of high mean square error values to the comprehensive similarity, making the evaluation result more tolerant to brightness differences and paying more attention to the similarity of structure and texture, as shown in formula (3): -β·MSE Partially shown; In formulas (1)-(3), I 1 and I 2 Respectively represent the two images to be compared; and are the variances of the color information of the two images; σ 12 Represents the covariance between the color information of the two images; μ 1 and μ 2 are the mean values of the color information of the two images; C 1 and C 2 is a constant used to stabilize the calculation, usually set to C 1 =(k 1 L) 2 and C 2 =(k 2 L) 2 , where L is the dynamic range of color values, and k 1 and k 2 is a constant; in addition, α scales the similarity value and is set to 1×10 in the experiment. 4 β controls the decay rate of the mean square error of brightness and is set to 0.1 in the experiment. By comparing the image brightness and structural information, the dataset categories can be reclassified to develop a set of photovoltaic panel defect classification standards for thermal infrared imaging. S3: Construction and analysis of similarity matrix between categories; the specific steps are as follows: S31: In order to compare the similarity of images in different categories, 100 images from each category were randomly selected for analysis; S32: During the comparison process, the two images are read and traversed through sliding windows of size (12,12) and (20,20) to capture and compare image features at different scales; S33: For each window, we calculate the mean square error and structural similarity index, then calculate the similarity of the window according to the weight parameter and accumulate it, calculate the average similarity between the two images, and repeat this process to construct a similarity matrix, so as to intuitively display the similarity differences between categories; S4: Clustering and reclassification of defect categories; the specific steps are as follows: S41: By deeply analyzing the similarity matrix between categories, a tree clustering method was used to further explore the similarities between photovoltaic panel defect categories; S42: Use tree clustering methods to understand the relationship between categories in a hierarchical way, so as to find and merge categories with high similarity in features; S43: By setting the merging principles and constraints between defect categories, the categories that cannot be merged are set as "unreachable" in the cluster, so as to ensure that the subsequent operation and maintenance operations will not be affected by the category merging operation, thereby ensuring the scientificity and rationality of the category merging; S44: Based on the clustering and analysis, some categories are merged based on the similarity between the categories and their practical significance in photovoltaic panel fault detection; S5: Defect feature analysis and risk level classification; the specific steps are as follows: S51: Thermal infrared images from different photovoltaic panel defects were deeply analyzed by converting single-channel thermal images into false color images containing more information and further three-channel RGB images; S52: Collects and summarizes the heat information of various defects, and uses histograms to display the information intuitively; S53: Based on the analysis, as well as the newly classified photovoltaic panel defect categories and the support of corresponding references, the risk levels of various defect categories are divided; S6: Application optimization of neural network model in defect detection; the specific steps are as follows: By introducing and optimizing the neural network model "FeatureFusion", performance improvement in thermal infrared image classification tasks was achieved.
