Photovoltaic panel defect detection method and detector based on enhanced feature extraction

Through the improved YOLOX-Tiny model and multi-scale feature fusion network, combined with the depth-separable convolution layer and attention mechanism, the problem of low efficiency and accuracy in photovoltaic panel defect detection is solved, and high performance on portable devices is achieved. Lightweight detection, suitable for the operation and maintenance needs of large-scale photovoltaic power plants and remote areas.

CN118747736AActive Publication Date: 2024-10-08SHANGHAI UNIVERSITY OF ELECTRIC POWER

Patent Information

Application Number
CN202410768089.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-14
Publication Date
2024-10-08
Estimated Expiration
2044-06-14

AI Technical Summary

Technical Problem

Existing photovoltaic panel defect detection methods are inefficient and inaccurate, especially in the operation and maintenance of large-scale photovoltaic power stations and remote areas. Moreover, portable equipment has strict limits on computational complexity and parameter quantities, making it difficult to achieve high-performance Lightweight detection.

Method used

Based on the improved YOLOX-Tiny model, combined with depth separable convolution layer and multi-scale feature fusion network, using large convolution kernel and attention mechanism to extract multi-scale features and fuse them to enhance the recognition ability of complex defects, suitable for portable Device deployment.

Benefits of technology

It improves the accuracy and identification ability of photovoltaic panel defect detection, reduces the number of parameters and computational complexity, is suitable for deployment on portable devices, reduces operating costs and improves the feasibility and convenience of detection.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118747736A_ABST
    Figure CN118747736A_ABST
Patent Text Reader

Abstract

The invention relates to a photovoltaic panel defect detection method and detector based on enhanced feature extraction, and the method comprises the following steps: obtaining the image data of a photovoltaic panel to be detected, carrying out the preprocessing, inputting the image data into a defect detection model which is trained in advance, and outputting a defect detection result. Wherein the defect detection model is constructed based on an improved YOLOX-Tiny model and comprises a backbone network, a multi-scale feature fusion network and a Head prediction layer, and the backbone network comprises a basic convolution module, a CSPLayer feature extraction module, a multi-scale feature extraction module and a bottleneck layer. The basic convolution module, the CSPLayer feature extraction module and the multi-scale feature extraction module respectively comprise a depth separable convolution layer of which the convolution kernel is a 7 * 7 large convolution kernel. Compared with the prior art, the method has the advantages that the accuracy and efficiency of photovoltaic panel defect detection are improved, and the parameter quantity is reduced so as to adapt to the requirements of a portable EL detector.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of photovoltaic panel defect detection, and in particular to a photovoltaic panel defect detection method and a detector based on enhanced feature extraction. Background Art

[0002] With the transformation of the global energy structure and the rapid development of renewable energy, photovoltaic technology has been widely used around the world as a clean and sustainable form of energy. The construction and operation and maintenance of photovoltaic power stations are of great significance to ensuring the stability of energy supply, reducing environmental pollution and promoting sustainable economic development. However, photovoltaic panels, as the core components of photovoltaic power stations, are exposed to the natural environment for a long time and are easily affected by various factors and produce defects, such as cracks, stains, hot spots, etc. These defects will not only reduce the power generation efficiency of photovoltaic panels, but also may cause safety hazards. Therefore, timely and accurate defect detection of photovoltaic panels is crucial.

[0003] Traditional photovoltaic panel defect detection methods mainly rely on manual inspections and simple image processing technology. Although manual inspections are intuitive, they are inefficient and easily affected by human factors and environmental conditions, making it difficult to ensure the accuracy and consistency of detection. Simple image processing technology often has limited ability to identify complex and tiny defects, making it difficult to meet the operation and maintenance needs of large-scale photovoltaic power stations, especially those in remote areas. Therefore, developing an efficient, accurate and portable photovoltaic panel defect automatic detection method has become a hot topic and difficulty in current research.

[0004] In recent years, deep learning technology has made breakthrough progress in the field of computer vision, providing strong technical support for tasks such as target detection and image segmentation. As an advanced deep learning target detection method, YOLOX has been widely used in many fields due to its high efficiency and flexibility. However, directly applying YOLOX to photovoltaic panel defect detection, especially adapting it to portable EL detectors, still faces a series of challenges. On the one hand, photovoltaic panel defects are of various types and shapes, which puts higher requirements on the feature extraction ability of the method; on the other hand, portable devices have strict restrictions on the number of parameters and computational complexity of the method, requiring the method to be lightweight while maintaining high performance. Summary of the invention

[0005] The purpose of the present invention is to provide a photovoltaic panel defect detection method and detector based on enhanced feature extraction to improve detection accuracy.

[0006] The purpose of the present invention can be achieved by the following technical solutions:

[0007] A photovoltaic panel defect detection method based on enhanced feature extraction comprises the following steps:

[0008] Acquire the photovoltaic panel image data to be detected, perform preprocessing, input it into a pre-trained defect detection model, and output the defect detection result, wherein the defect detection model is constructed based on the improved YOLOX-Tiny model, including a backbone network, a multi-scale feature fusion network and a Head prediction layer, the backbone network includes a basic convolution module, a CSPLayer feature extraction module, a multi-scale feature extraction module and a bottleneck layer, and the basic convolution module, the CSPLayer feature extraction module and the multi-scale feature extraction module all include a depth-separable convolution layer with a large convolution kernel of 7×7;

[0009] The defect detection model is an execution step comprising:

[0010] The pre-processed photovoltaic panel image data is sequentially input into the basic convolution module and the CSPLayer feature extraction module for processing, and preliminary key features of different scales are extracted;

[0011] The preliminary key features of different scales are processed in the input basic convolution module and the CSPLayer feature extraction module in turn to extract further key features of different scales;

[0012] Inputting the further key features of different scales into the multi-scale feature extraction module and the bottleneck layer in sequence for processing, and extracting the final key features of different scales;

[0013] Inputting the preliminary key features of different scales, the further key features of different scales and the final key features of different scales into the multi-scale feature fusion network for feature fusion to obtain fused features;

[0014] The fused features are input into the Head prediction layer for classification regression, and the defect detection results are output.

[0015] Furthermore, the Focus processing technology is used to pre-process the photovoltaic panel image data to be detected to remove noise.

[0016] Furthermore, the basic convolution module also includes a normalization layer and an activation function layer connected to the depthwise separable convolution layer.

[0017] Furthermore, the multi-scale feature fusion network includes a channel attention mechanism module and a fusion module, and the step of obtaining the fusion feature includes:

[0018] Inputting the preliminary key features of different scales, the further key features of different scales and the final key features of different scales into the channel attention mechanism module for processing respectively, so as to enhance useful features and suppress irrelevant information;

[0019] The preliminary key features of different scales, the further key features of different scales and the final key features of different scales processed by the channel attention mechanism module are input into the fusion module for feature fusion to obtain fused features.

[0020] Furthermore, the fusion module includes a convolution layer, an upsampling layer, a CSPLayer feature extraction module and a downsampling layer, and the steps performed by the fusion module include:

[0021] The final key features of different scales processed by the channel attention mechanism module are sequentially input into the convolution layer and the upsampling layer for processing, and are first fused with the further key features of different scales processed by the channel attention mechanism module in the CSPLayer feature extraction module;

[0022] The first fusion result is sequentially input into the convolution layer and the upsampling layer for processing, and is fused for the second time in the CSPLayer feature extraction module with the preliminary key features of different scales processed by the channel attention mechanism module to obtain the second fusion feature;

[0023] The second fusion feature is input into the downsampling layer for processing, and is fused for the third time with the first fusion result after being processed by the convolution layer and the upsampling layer in the CSPLayer feature extraction module to obtain the third fusion feature;

[0024] The third fusion feature is input into the sampling layer for processing, and is fused for the fourth time with the final key features of different scales processed by the convolution layer and the upsampling layer in the CSPLayer feature extraction module to obtain the final fusion feature.

[0025] Furthermore, the training step of the defect detection model includes:

[0026] Acquire an image data set of a photovoltaic panel, wherein the image data set includes image data of a normal panel and image data of a panel with various types of defects;

[0027] Preprocessing and annotating the image data set;

[0028] The preprocessed and annotated image dataset is input into the defect detection model, and the defect detection results of the photovoltaic panel are output;

[0029] A loss function is constructed based on the defect detection results and the corresponding image annotations, and optimization methods including stochastic gradient descent and Adam optimizer are used for iterative optimization until the loss function converges, completing the training process of the defect detection model.

[0030] Furthermore, the preprocessing process of the image data set includes denoising, enhancement and normalization.

[0031] Furthermore, the loss function is a cross entropy loss function or a mean square error loss function.

[0032] Furthermore, the Head prediction layer is designed as a decoupled head, which processes the fused features through convolution to obtain defect detection results, which include various defect types and their defect locations.

[0033] The present invention also provides a portable EL detector, comprising one or more processors, a memory and one or more programs stored in the memory, wherein the one or more programs include instructions for executing the photovoltaic panel defect detection method based on enhanced feature extraction as described above.

[0034] Compared with the prior art, the present invention has the following beneficial effects:

[0035] (1) To address the problem of weak recognition capabilities for certain types of tiny or complex defects, the present invention is based on and optimized on the basis of the deep learning target detection framework YOLOX-Tiny. The deep separable convolutional layer with a large convolution kernel is used in the backbone network to expand the receptive field during feature extraction, thereby capturing more contextual information and enhancing the recognition capabilities for complex and large defects. The multi-scale feature fusion module is used for multi-scale fusion, so that the present invention can effectively capture the subtle features and contextual information of photovoltaic panel defects, thereby improving the method's recognition capabilities for various types of defects and improving the accuracy of defect detection.

[0036] (2) The attention mechanism module introduced in the present invention can adaptively focus on important features and suppress irrelevant information during the processing, further improving the accuracy of detection.

[0037] (3) The multi-scale feature fusion module of the present invention fuses features of different scales from different paths. This fusion strategy can fully utilize the complementarity between various features through sampling, thereby obtaining a more comprehensive and richer feature representation, thereby improving the detection performance of defects of various sizes.

[0038] (4) The depthwise separable convolution layer of the present invention replaces the traditional convolution operation. The depthwise separable convolution separates the spatial convolution and channel convolution in parallel, which significantly reduces the number of parameters and the amount of calculation of the method. This makes the defect detection model more suitable for deployment on portable devices while maintaining high performance. This improvement not only reduces the operating cost of the method, but also improves its feasibility and convenience in practical applications. BRIEF DESCRIPTION OF THE DRAWINGS

[0039] Figure 1 It is a schematic diagram of the method flow of the present invention;

[0040] Figure 2 It is a schematic diagram of the overall structure of the present invention;

[0041] Figure 3 Schematic diagram of comparison between standard convolution and depthwise separable convolution of the present invention;

[0042] Figure 4 It is a schematic diagram of the feature extraction of the present invention;

[0043] Figure 5 This is the visualization detection result of the PV-Multi-Defect dataset of the present invention. DETAILED DESCRIPTION

[0044] The present invention is described in detail below in conjunction with the accompanying drawings and specific embodiments. This embodiment is implemented based on the technical solution of the present invention, and provides a detailed implementation method and specific operation process, but the protection scope of the present invention is not limited to the following embodiments.

[0045] Example 1

[0046] This embodiment provides a photovoltaic panel defect detection method based on enhanced feature extraction, such as Figure 1 As shown, the method comprises the following steps:

[0047] S1. Obtain image data of the photovoltaic panel to be detected and perform preprocessing.

[0048] The image data of the photovoltaic panel to be inspected is pre-processed by the Focus processing technology. Focus processing improves the clarity and contrast of the image, thereby highlighting various details on the photovoltaic panel.

[0049] Then the preprocessed photovoltaic panel image data needs to be input into the defect detection model for detection to output the defect detection results. The defect detection model of this embodiment is constructed based on the improved YOLOX-Tiny model, including a backbone network, a multi-scale feature fusion network and a Head prediction layer. The backbone network includes a basic convolution module, a CSPLayer feature extraction module, a multi-scale feature extraction module and a bottleneck layer. The basic convolution module, the CSPLayer feature extraction module and the multi-scale feature extraction module all include a deep separable convolution layer with a large 7×7 convolution kernel to expand the receptive field of the model.

[0050] S2. The pre-processed photovoltaic panel image data is sequentially input into the basic convolution module and the CSPLayer feature extraction module for processing, and preliminary key features of different scales are extracted.

[0051] Combination Figure 2 In the model structure shown in the figure, the preprocessed photovoltaic panel image data first enters the basic convolution module for processing, and then uses the CSPLayer feature extraction module to extract features. This structure can effectively split and merge features, improve the learning ability and generalization performance of the model, and preliminarily extract key features of different scales in the image.

[0052] Furthermore, the basic convolution module also includes a normalization layer and an activation function layer connected to the depthwise separable convolution layer.

[0053] S3. The preliminary key features of different scales are sequentially input into the basic convolution module and the CSPLayer feature extraction module for processing to extract further key features of different scales.

[0054] Combination Figure 2 The model structure shown in this step is to repeat step S2 to further enhance the feature extraction and learning capabilities. Multiple iterations help the model to understand the image data more deeply, thereby more accurately identifying potential defects on the photovoltaic panel.

[0055] S4. Input the further key features of different scales into the multi-scale feature extraction module and the bottleneck layer in sequence for processing, and extract the final key features of different scales.

[0056] Combination Figure 2 The model structure shown uses the multi-scale feature extraction technology of the multi-scale feature extraction module to extract the final features of different scales from the image, capturing defects of different sizes and shapes on the photovoltaic panel and improving the sensitivity and accuracy of detection.

[0057] In step S2, a 7×7 large kernel convolution is used to expand the receptive field of the model so that it can capture a wider range of image context information. At the same time, a depth-separable convolution layer is used to reduce the number of model parameters, while maintaining performance and reducing the computational burden. The structure of the depth-separable convolution layer is as follows: Figure 3 shown.

[0058] Then SPPBlittle Neck (bottleneck layer) processing is performed. SPPBlittle Neck is a special network structure that performs branch processing through a variety of different convolution kernels to further integrate and refine the features extracted in the previous steps.

[0059] At this point, the backbone network has completed feature extraction. The extracted features are as follows: Figure 4 shown.

[0060] S5. Input the preliminary key features of different scales, the further key features of different scales and the final key features of different scales into the multi-scale feature fusion network for feature fusion to obtain fused features.

[0061] The multi-scale feature fusion network includes a channel attention mechanism module and a fusion module. The fusion module includes a convolution layer, an upsampling layer, a CSPLayer feature extraction module and a downsampling layer. In this step, the key features of the above three different scales are first input into the attention mechanism module for processing using the attention mechanism, and feature fusion is performed in the output fusion module. Figure 2 As shown, the specific steps are:

[0062] Inputting the preliminary key features of different scales, the further key features of different scales and the final key features of different scales into the channel attention mechanism module for processing respectively, so as to enhance useful features and suppress irrelevant information;

[0063] The final key features of different scales processed by the channel attention mechanism module are sequentially input into the convolution layer and the upsampling layer for processing, and are first fused with the further key features of different scales processed by the channel attention mechanism module (ECANet) in the CSPLayer feature extraction module;

[0064] The first fusion result is sequentially input into the convolution layer and the upsampling layer for processing, and is fused for the second time in the CSPLayer feature extraction module with the preliminary key features of different scales processed by the channel attention mechanism module to obtain the second fusion feature;

[0065] The second fusion feature is input into the downsampling layer for processing, and is fused for the third time with the first fusion result after being processed by the convolution layer and the upsampling layer in the CSPLayer feature extraction module to obtain the third fusion feature;

[0066] The third fusion feature is input into the sampling layer for processing, and is fused for the fourth time with the final key features of different scales processed by the convolution layer and the upsampling layer in the CSPLayer feature extraction module to obtain the final fusion feature.

[0067] In this step, the obtained feature data is sent to ECANet for further processing. ECANet can effectively enhance useful features and suppress irrelevant information, thereby improving the model's ability to identify photovoltaic panel defects. In the fusion module, features from different paths are fused. This fusion strategy can make full use of the complementarity between various features through sampling, thereby obtaining a more comprehensive and richer feature representation.

[0068] S6. Input the fusion features into the Head prediction layer for classification regression, and output defect detection results.

[0069] Finally, in the head decoupling part, the features obtained by the previous fusion are used for classification and regression tasks. Through accurate classification and regression analysis, various defect types and their specific locations on the photovoltaic panel are identified.

[0070] This embodiment also relates to a portable EL detector integrated with the above improved method, which integrates all the instructions of the above method and can realize fast and accurate defect detection of photovoltaic panels on site or in remote areas. This integrated design makes the detector highly portable and practical, and can meet the diverse needs of photovoltaic power station operation and maintenance.

[0071] In order to effectively implement a lightweight deep learning photovoltaic panel defect detection method, this embodiment proposes an experimental scheme. The scheme describes in detail the entire process from data preparation, model construction to training optimization and deployment application to ensure the feasibility and practicality of the method.

[0072] 1. Data preparation: First, collect image data of photovoltaic panels, including normal panels and panels with various types of defects. These image data should cover different lighting conditions, shooting angles, and resolutions to improve the generalization ability of the model. The collected image data is preprocessed, including denoising, enhancement, normalization and other operations to improve image quality and consistency. At the same time, the images are annotated to mark the location and category of defects for model training and verification.

[0073] 2. Model construction; During the model construction phase, the embodiment of the present invention designs a lightweight and efficient photovoltaic panel defect detection model based on the YOLOX-Tiny framework. By carefully adjusting the method structure, the embodiment of the present invention introduces an attention mechanism to enhance the model's ability to focus on key features, while using large convolution kernels to capture more contextual information. During the construction process, the embodiment of the present invention always pays attention to the lightweight and real-time performance of the model, and introduces deep separable convolution to ensure that it can run smoothly on portable devices.

[0074] 3. Training optimization: (1) Loss function design: According to the characteristics of the photovoltaic panel defect detection task, a suitable loss function is designed to measure the difference between the model prediction and the true label. Commonly used loss functions such as the cross entropy loss function or the mean square error loss function can be used, and adjusted and optimized according to the actual situation. (2) Optimization method selection: Select an optimization method suitable for deep learning models to train the model, such as stochastic gradient descent (SGD), Adam, etc. At the same time, set a suitable learning rate decay strategy to ensure that the model can gradually converge to the optimal solution during the training process. (3). Batch processing and regularization: In order to improve training efficiency and prevent overfitting, batch processing technology can be used to divide the training data into multiple small batches for training. At the same time, regularization techniques such as L1 regularization, L2 regularization or Dropout are introduced to constrain model complexity and enhance generalization ability.

[0075] 4. Model evaluation: The obtained model is evaluated on an independent test set, and its accuracy, recall, average precision score and other evaluation indicators are calculated, and compared with the benchmark method to verify the effectiveness and superiority of this patented method.

[0076] In order to verify the effect of the method proposed in the embodiment of the present invention, a comparative experiment was designed to compare the performance differences between the improved YOLOX-Tiny method and other methods. The experiment used the public photovoltaic panel defect detection dataset PV-multi-defect, which contains five types of defects. The public object detection dataset Pascal VOC contains twenty common object classes.

[0077] Data preprocessing: Mixup and mosaic data enhancement are performed on the images in the dataset to increase the number of training samples and data complexity.

[0078] Model training environment: the operating system is Windows 10 64-bit operating system, the processor is AMD R75800H, the graphics card is NVIDIA RTX3060 Laptop, the memory is 16.00GB, the experimental software is JetBrains PyCharm Community Edition 2021.3.2, and the experimental environment is Python 3.10.

[0079] The experimental results of the PV-Multi-Defect dataset are shown in Table 1, and the experimental results of the Pascal VOC dataset are shown in Table 2. Figure 5 shown.

[0080] Table 1 Experimental results of PV-Multi-Defect dataset

[0081]

[0082] Table 2. Detection results of Pascal VOC dataset

[0083]

[0084] As can be seen from the table, for Faster R-CNN, this classic two-stage detector showed certain performance limitations in the experiment, with an mAP of 71.18%, which may be due to its insufficient detection ability for small targets and diverse defects in complex backgrounds. The single-stage detector SSD performed slightly better in the experiment, with an mAP of 72.93%, but it still had difficulty dealing with difficult defect samples in the dataset. At the same time, the CenterNet method based on key point detection achieved a more concise and efficient target detection by eliminating the anchor mechanism, and achieved an mAP of 86.2% on the dataset, which was significantly better than the previous two. This shows that the anchor-free strategy has potential advantages in dealing with complex defect detection problems. In order to balance detection performance and computational efficiency, YOLOv4 was combined with the MobileNet method for experiments. This combination effectively reduces the computational complexity of the method while ensuring high detection accuracy. The experimental results show that the mAP of the combination reached 86.58%, verifying the effectiveness of the lightweight method in defect detection tasks. In addition, in the experiment, YOLOX-Tiny achieved 88.01%, 76.93% and 90.44% in accuracy, recall and mAP respectively, showing good results. Finally, the improved method proposed in the embodiment of the present invention has achieved improvements in various performance indicators. By introducing an enhanced feature extraction strategy, the embodiment of the present invention successfully improved the accuracy of YOLOX-Tiny by 4.45 percentage points, the recall rate by 1.32 percentage points, and the mAP by 2.47 percentage points. At the same time, the method of the embodiment of the present invention has advantages in both parameter quantity and reasoning speed.

[0085] The robustness of the method of the embodiment of the present invention was verified by conducting a systematic experimental evaluation on the Pascal VOC dataset. The experimental results show that the embodiment of the present invention exhibits good performance on the Pascal VOC dataset. Specifically, the embodiment of the present invention has achieved significant improvements in both Precision and mAP% as two key indicators. Compared with the original YOLOX-Tiny method, the embodiment of the present invention has improved Precision by nearly 17 percentage points, reaching 84.40%, and has also improved mAP% by nearly 10 percentage points, reaching 78.32%. This performance improvement fully demonstrates the effectiveness of the enhanced feature extraction strategy.

[0086] At the same time, compared with the original YOLOX-Tiny method, the parameters of the embodiment of the present invention are reduced by nearly 40%, only 3.24M. This significant reduction in parameters not only helps to reduce the computational complexity of the method and improve the reasoning speed, but also provides the possibility for the application of the method in resource-constrained environments.

[0087] In addition, although the embodiment of the present invention has a reduced number of parameters, its performance is still close to that of methods with larger number of parameters. For example, compared with the YOLOX-M method, the method is close to it in mAP%, but the number of parameters is reduced by nearly 87%. This result shows that through reasonable method design and improvement strategy, the method can achieve high-performance object detection while maintaining a small number of parameters.

[0088] In summary, this embodiment deeply explores the technical status and development trend of photovoltaic panel defect detection, and proposes an improved YOLOX-Tiny method in combination with actual application needs. This method aims to improve the accuracy and efficiency of photovoltaic panel defect detection by enhancing feature extraction capabilities and optimizing method structure, while reducing the number of parameters to meet the needs of portable EL detectors. Specifically, first of all, in view of the diversity and complexity of photovoltaic panel defects, this embodiment adopts feature enhancement technologies such as attention mechanism, large convolution kernel and multi-scale feature fusion to capture the subtle features and contextual information of photovoltaic panel defects, thereby improving the method's ability to identify various types of defects. The introduction of the attention mechanism enables the method to adaptively focus on important features during the processing process and suppress irrelevant information, further improving the accuracy of detection. Large convolution kernels help to expand the receptive field, capture more contextual information, and enhance the ability to identify complex and large defects. The multi-scale feature fusion technology can fuse feature maps at different levels to obtain richer and more robust feature representations, thereby improving the detection performance of defects of various sizes. At the same time, a depth-separable convolution is introduced to replace the traditional convolution operation. The depth-separable convolution separates the spatial convolution and channel convolution in a parallel manner to reduce the number of parameters and computational complexity of the method. These innovations and improvements make the improved YOLOX-Tiny method more suitable for deployment on portable devices while maintaining high performance. This improvement not only reduces the operating cost of the method, but also improves its feasibility and convenience in practical applications. Through the comprehensive use of these technical means, this embodiment hopes to provide strong support for intelligent detection in the photovoltaic industry and promote the application and development of lightweight deep learning technology in the photovoltaic field.

[0089] If the above functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art, or the part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, etc., which can store program code.

[0090] Example 2

[0091] This embodiment provides a portable EL detector, including one or more processors, a memory and one or more programs stored in the memory, wherein the one or more programs include instructions for executing the photovoltaic panel defect detection method based on enhanced feature extraction as described in Example 1.

[0092] It will be appreciated by those skilled in the art that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes. The schemes in the embodiments of the present invention may be implemented in various computer languages, for example, object-oriented programming language Java and literal scripting language JavaScript, etc.

[0093] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0094] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0095] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0096] Although the preferred embodiments of the present invention have been described, those skilled in the art may make other changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the present invention.

[0097] Obviously, those skilled in the art can make various changes and modifications to the present invention without departing from the spirit and scope of the present invention. Thus, if these modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include these modifications and variations.

Claims

1. A photovoltaic panel defect detection method based on enhanced feature extraction, characterized in that: The following steps are involved: Acquire the photovoltaic panel image data to be detected, perform preprocessing, input it into a pre-trained defect detection model, and output the defect detection result, wherein the defect detection model is constructed based on the improved YOLOX-Tiny model, including a backbone network, a multi-scale feature fusion network and a Head prediction layer, the backbone network includes a basic convolution module, a CSPLayer feature extraction module, a multi-scale feature extraction module and a bottleneck layer, and the basic convolution module, the CSPLayer feature extraction module and the multi-scale feature extraction module all include a depth-separable convolution layer with a large convolution kernel of 7×7; The execution steps of the defect detection model include: The pre-processed photovoltaic panel image data is sequentially input into the basic convolution module and the CSPLayer feature extraction module for processing, and preliminary key features of different scales are extracted; The preliminary key features of different scales are processed in the input basic convolution module and the CSPLayer feature extraction module in turn to extract further key features of different scales; Inputting the further key features of different scales into the multi-scale feature extraction module and the bottleneck layer in sequence for processing, and extracting the final key features of different scales; Inputting the preliminary key features of different scales, the further key features of different scales and the final key features of different scales into the multi-scale feature fusion network for feature fusion to obtain fused features; The fused features are input into the Head prediction layer for classification regression, and the defect detection results are output.

2. A photovoltaic panel defect detection method based on enhanced feature extraction according to claim 1, characterized in that: Focus processing technology is used to pre-process the photovoltaic panel image data to be detected.

3. A photovoltaic panel defect detection method based on enhanced feature extraction according to claim 1, characterized in that: The basic convolution module also includes a normalization layer and an activation function layer connected to the depthwise separable convolution layer.

4. The photovoltaic panel defect detection method based on enhanced feature extraction according to claim 1, characterized in that: The multi-scale feature fusion network includes a channel attention mechanism module and a fusion module, and the step of obtaining the fusion feature includes: Inputting the preliminary key features of different scales, the further key features of different scales and the final key features of different scales into the channel attention mechanism module for processing respectively, so as to enhance useful features and suppress irrelevant information; The preliminary key features of different scales, the further key features of different scales and the final key features of different scales processed by the channel attention mechanism module are input into the fusion module for feature fusion to obtain fused features.

5. A photovoltaic panel defect detection method based on enhanced feature extraction according to claim 4, characterized in that: The fusion module includes a convolution layer, an upsampling layer, a CSPLayer feature extraction module and a downsampling layer, and the steps performed by the fusion module include: The final key features of different scales processed by the channel attention mechanism module are sequentially input into the convolution layer and the upsampling layer for processing, and are first fused with the further key features of different scales processed by the channel attention mechanism module in the CSPLayer feature extraction module; The first fusion result is sequentially input into the convolution layer and the upsampling layer for processing, and is fused for the second time in the CSPLayer feature extraction module with the preliminary key features of different scales processed by the channel attention mechanism module to obtain the second fusion feature; The second fusion feature is input into the downsampling layer for processing, and is fused for the third time with the first fusion result after being processed by the convolution layer and the upsampling layer in the CSPLayer feature extraction module to obtain the third fusion feature; The third fusion feature is input into the sampling layer for processing, and is fused for the fourth time with the final key features of different scales processed by the convolution layer and the upsampling layer in the CSPLayer feature extraction module to obtain the final fusion feature.

6. The photovoltaic panel defect detection method based on enhanced feature extraction according to claim 1, characterized in that: The training steps of the defect detection model include: Acquire an image data set of a photovoltaic panel, wherein the image data set includes image data of a normal panel and image data of a panel with various types of defects; Preprocessing and annotating the image data set; The preprocessed and annotated image dataset is input into the defect detection model, and the defect detection results of the photovoltaic panel are output; A loss function is constructed based on the defect detection results and the corresponding image annotations, and optimization methods including stochastic gradient descent and Adam optimizer are used for iterative optimization until the loss function converges, completing the training process of the defect detection model.

7. A photovoltaic panel defect detection method based on enhanced feature extraction according to claim 6, characterized in that: The preprocessing process of the image dataset includes denoising, enhancement and normalization.

8. The photovoltaic panel defect detection method based on enhanced feature extraction according to claim 6, characterized in that: The loss function is a cross entropy loss function or a mean square error loss function.

9. The photovoltaic panel defect detection method based on enhanced feature extraction according to claim 1, characterized in that: The Head prediction layer is a decoupled head design, which processes the fused features through convolution to obtain defect detection results, which include various defect types and their defect locations.

10. A portable EL detector, characterized in that: It comprises one or more processors, a memory and one or more programs stored in the memory, wherein the one or more programs include instructions for executing the photovoltaic panel defect detection method based on enhanced feature extraction as described in any one of claims 1-9.

Citation Information

Patent Citations

  • Industrial product surface defect detection method based on deep learning

    CN115511812A

  • Industrial flaw detection method based on improved YOLOX model

    CN115661094A

  • Photovoltaic panel defect detection model determination method and photovoltaic panel defect detection method

    CN116452534A

  • Neural Network Inference Acceleration Method, Target Detection Method, Device, and Storage Medium

    US20240161474A1

Cited By

  • Lightweight photovoltaic cell panel defect detection method based on improved YOLOv8

    CN119693712A

  • Crop row navigation line identification method and system based on deep learning

    CN120182941A

  • A crop row navigation line recognition method and system based on deep learning

    CN120182941B

  • Photovoltaic panel defect detection method based on multi-source information fusion

    CN121582190A

  • A photovoltaic panel intra-row pure vision positioning method and system based on shape perception and collaborative filtering

    CN123052687A