Photovoltaic panel dust detection method, device and equipment and storage medium

By using the Star-A module and the convolutional attention fusion module that replace the YOLOv8 model in photovoltaic panel dust detection, the problem of low accuracy in monitoring dust accumulation on photovoltaic panels is solved and more efficient dust detection is achieved.

CN118608489APending Publication Date: 2024-09-06WUHAN POLYTECHNIC UNIVERSITY
View PDF 0 Cites 8 Cited by

Patent Information

Application Number
CN202410760868.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-13
Publication Date
2024-09-06

AI Technical Summary

Technical Problem

The existing monitoring and diagnosis of dust accumulation in photovoltaic panels relies on the experience and manual observation of operation and maintenance personnel, resulting in low accuracy and delayed detection of problems.

Method used

A photovoltaic panel dust detection method is adopted. By acquiring photovoltaic panel images and inputting them into the preset dust detection model, the Star-A module and the convolution attention fusion module that replace the original YOLOv8 model are used for feature extraction and feature fusion to improve detection accuracy. Spend.

Benefits of technology

It improves the accuracy of photovoltaic panel dust detection, reduces the loss of characteristic information, and can more accurately monitor and diagnose the dust accumulation of photovoltaic panels.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118608489A
    Figure CN118608489A
Patent Text Reader

Abstract

The invention discloses a photovoltaic panel dust detection method, device and equipment and a storage medium, and relates to the technical field of dust detection, and the method comprises the steps: obtaining a current photovoltaic panel image; the current photovoltaic panel image is input into a preset dust detection model, a dust detection result is obtained, and the preset dust detection model comprises a preset backbone network and a preset neck network; each of the preset backbone network and the preset neck network comprises a plurality of Star-A modules for replacing C2f modules in the original YOLOv8 model, and the preset neck network further comprises a convolution attention fusion module; the Star-A module is used for carrying out feature extraction of different dimensions on an input image, and the convolution attention fusion module is used for carrying out multilayer feature fusion on feature information of different dimensions. According to the method, the original YOLOv8 model is improved, so that the feature extraction capability of the model can be improved, and a dust detection result with higher precision can be obtained.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of dust detection, and in particular to a method for detecting dust on a photovoltaic panel. Background Art

[0002] Solar photovoltaic power generation, as a clean energy, can significantly reduce pollutant emissions and greenhouse gas production compared to traditional fossil fuel power generation. Widespread deployment of solar photovoltaic panels can not only reduce environmental pollution, but also effectively protect the ecological balance of the earth and slow down the trend of global warming.

[0003] However, since solar photovoltaic power stations are usually built in areas with high dust content, dry climate and complex and changeable conditions, photovoltaic panels are prone to dust accumulation, which in turn causes local overheating of the panel surface and even forms hot spots, affecting the safe operation of the photovoltaic power station. The existing monitoring and diagnosis of photovoltaic panel dust accumulation generally relies on the experience of operation and maintenance personnel and manual observation methods, which has the problems of low accuracy and untimely detection.

[0004] The above contents are only used to assist in understanding the technical solution of the present application and do not constitute an admission that the above contents are prior art. Summary of the invention

[0005] The main purpose of this application is to provide a photovoltaic panel dust detection method, device, equipment and storage medium, aiming to solve the technical problems that the existing monitoring and diagnosis of photovoltaic panel dust accumulation generally relies on the experience of operation and maintenance personnel and manual observation methods, and has low accuracy and untimely detection.

[0006] To achieve the above objectives, the present application proposes a photovoltaic panel dust detection method, the photovoltaic panel dust detection method comprising:

[0007] Get the current photovoltaic panel image;

[0008] The current photovoltaic panel image is input into a preset dust detection model to obtain a dust detection result. The preset dust detection model includes a preset backbone network and a preset neck network. The preset backbone network and the preset neck network both include several Star-A modules that replace the C2f modules in the original YOLOv8 model. The preset neck network also includes a convolutional attention fusion module. The Star-A module is used to extract features of different dimensions on the input image, and the convolutional attention fusion module is used to perform multi-layer feature fusion on feature information of different dimensions.

[0009] In one embodiment, the preset dust detection model further includes an input layer and a preset detection head network, wherein the preset detection head network includes a Focaler-IoU loss function that replaces the IoU loss function in the original YOLOv8 model.

[0010] In one embodiment, the Star-A module is obtained by coupling the star-CAA module with the C2f module item in the original YOLOv8 model. The star-CAA module is constructed based on a star network transplanted with a context-anchored attention mechanism, and the convolutional attention fusion module is a standard detail enhancement attention network obtained by replacing the content-guided attention mechanism with a hybrid convolutional attention mechanism.

[0011] In one embodiment, the step of inputting the current photovoltaic panel image into a preset dust detection model to obtain a dust detection result includes:

[0012] Preprocessing the current photovoltaic panel image through the input layer to obtain an image to be detected;

[0013] Extracting features of the image to be detected through the preset backbone network to obtain feature information;

[0014] Performing feature fusion on the feature information through the preset neck network to obtain a fused feature map;

[0015] The category of the fused features is predicted by the detection head network to obtain a dust detection result.

[0016] In one embodiment, the star network includes a plurality of stacked star blocks, each of which includes a deep convolutional layer and an anchor attention layer;

[0017] The step of extracting features from the image to be detected through the preset backbone network to obtain feature information includes:

[0018] Acquire feature information of each channel corresponding to the image to be detected;

[0019] Extracting features of the image to be detected according to the deep convolution layer to obtain features of different channels, and performing star operations on the features of the different channels to obtain features of different dimensions;

[0020] In the anchored attention layer, the features of different dimensions are fused to obtain feature information.

[0021] In one embodiment, the convolutional attention fusion module includes a local branch and a global branch;

[0022] The local branch is used to perform a channel transformation operation on the input feature channel corresponding to the feature information and to rearrange the channels based on depthwise separable convolution to obtain a local branch output;

[0023] The global branch is used to generate a query, a key and a value according to the feature information, and obtain a global branch output according to the query, the key and the value;

[0024] The feature information includes low-level features and high-level features, and the step of fusing the feature information through the preset neck network to obtain a fused feature map includes:

[0025] Determine the output features corresponding to the low-level features and the output features corresponding to the high-level features based on a hybrid convolutional attention mechanism;

[0026] The output features corresponding to the low-level features and the output features corresponding to the high-level features are fused to obtain a fused feature map.

[0027] In one embodiment, the calculation formula of the output feature is:

[0028] F out =F att +F conv

[0029] In the formula, F att is the global branch output, F conv Output for local branches;

[0030] The calculation formula of the local branch output is:

[0031] F conv =W 3×3×3 (CS(W 1×1 (Y)))

[0032] Where W 1×1 is a 1×1 convolution, W 3×3×3 It is a 3×3×3 convolution, CS is the channel rearrangement, and Y is the input feature;

[0033] The calculation formula of the global branch output is:

[0034]

[0035] In the formula, are the reconstructed values ​​of query (Q), key (K), and value (V), respectively, and α is a learnable scaling parameter.

[0036] In addition, to achieve the above purpose, the present application also proposes a photovoltaic panel dust detection device, the device comprising:

[0037] An image acquisition module is used to acquire the current photovoltaic panel image;

[0038] A dust detection module is used to input the current photovoltaic panel image into a preset dust detection model to obtain a dust detection result. The preset dust detection model includes a preset backbone network and a preset neck network. The preset backbone network and the preset neck network both include several Star-A modules that replace the C2f modules in the original YOLOv8 model. The preset neck network also includes a convolutional attention fusion module. The Star-A module is used to extract features of different dimensions for the input image, and the convolutional attention fusion module is used to perform multi-layer feature fusion on feature information of different dimensions.

[0039] In addition, to achieve the above-mentioned purpose, the present application also proposes a photovoltaic panel dust detection device, which includes: a memory, a processor, and a computer program stored in the memory and executable on the processor, and the computer program is configured to implement the steps of the photovoltaic panel dust detection method as described above.

[0040] In addition, to achieve the above-mentioned purpose, the present application also proposes a storage medium, which is a computer-readable storage medium, and a computer program is stored on the storage medium. When the computer program is executed by the processor, the steps of the photovoltaic panel dust detection method as described above are implemented.

[0041] The present application discloses a method for detecting dust on a photovoltaic panel, which includes obtaining a current photovoltaic panel image; inputting the current photovoltaic panel image into a preset dust detection model to obtain a dust detection result, wherein the preset dust detection model includes a preset backbone network and a preset neck network, wherein the preset backbone network and the preset neck network both include a number of Star-A modules that replace the C2f modules in the original YOLOv8 model, and the preset neck network also includes a convolutional attention fusion module; the Star-A module is used to extract features of different dimensions from the input image, and the convolutional attention fusion module is used to perform multi-layer feature fusion on feature information of different dimensions. Since the present application introduces the Star-A module into the original YOLOv8 model, it can improve the feature extraction capability of different dimensions, and introduces the convolutional attention fusion module, which can reduce the loss of feature information. Compared with the original YOLOv8 model, the accuracy of detecting dust on photovoltaic panels can be improved. BRIEF DESCRIPTION OF THE DRAWINGS

[0042] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.

[0043] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor. BRIEF DESCRIPTION OF THE DRAWINGS

[0045] Figure 1 A schematic diagram of a process flow provided for Embodiment 1 of the photovoltaic panel dust detection method of the present application;

[0046] Figure 2 A schematic diagram of a process flow provided for Embodiment 2 of the photovoltaic panel dust detection method of the present application;

[0047] Figure 3 This is a schematic diagram of the structure of the star-CAA module used for coupling with the C2f module in the second embodiment of the photovoltaic panel dust detection method of the present application;

[0048] Figure 4 A schematic diagram of a process flow provided for Embodiment 3 of the photovoltaic panel dust detection method of the present application;

[0049] Figure 5 This is a schematic diagram of the structure of the CAFM module in Embodiment 3 of the photovoltaic panel dust detection method of this application;

[0050] Figure 6 This is a schematic diagram of the structure of the DEAB block integrated with the CAFM module in the third embodiment of the photovoltaic panel dust detection method of the present application;

[0051] Figure 7 A schematic diagram of the structure of the dust detection model preset for this application;

[0052] Figure 8 This is a schematic diagram of the module structure of the photovoltaic panel dust detection device of this application;

[0053] Fig. 9 This is a schematic diagram of the structure of a photovoltaic panel dust detection device in an embodiment of the present application.

[0054] The realization of the purpose, functional features and advantages of this application will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION

[0055] It should be understood that the specific embodiments described herein are only used to explain the technical solutions of the present application and are not used to limit the present application.

[0056] In order to better understand the technical solution of the present application, a detailed description will be given below in conjunction with the accompanying drawings and specific implementation methods.

[0057] The present application embodiment provides a photovoltaic panel dust detection method, referring to Figure 1 , Figure 1 A schematic diagram of a process flow provided for the first embodiment of the photovoltaic panel dust detection method of the present application. In this embodiment, the photovoltaic panel dust detection method includes steps S10 to S20:

[0058] Step S10: Acquire the current photovoltaic panel image.

[0059] It should be noted that the method of this embodiment can be a computing service device with image acquisition, data processing, model calling, network communication and program running functions, such as a mobile phone, a personal computer, a photovoltaic panel dust detector, etc., and can also be other electronic devices that can achieve the same or similar functions. This embodiment is not limited to this. Photovoltaic panel dust detection (referred to as "detection equipment") is used as an example to illustrate this embodiment and the following embodiments.

[0060] It should be understood that the current photovoltaic panel image may be a photovoltaic panel image captured in real time, or may be a historically captured image that is acquired from the network or a historical database and that requires dust detection or identification, and this embodiment does not impose any limitation on this.

[0061] Step S20: Input the current photovoltaic panel image into a preset dust detection model to obtain a dust detection result, wherein the preset dust detection model includes a preset backbone network and a preset neck network, wherein the preset backbone network and the preset neck network both include a number of Star-A modules that replace the C2f modules in the original YOLOv8 model, and the preset neck network also includes a convolutional attention fusion module; the Star-A module is used to extract features of different dimensions for the input image, and the convolutional attention fusion module is used to perform multi-layer feature fusion on feature information of different dimensions.

[0062] It should be understood that the YOLOv8 model is a newer model in the YOLO series, and has a significant performance improvement in object detection and image classification tasks. The preset dust detection model can be a detection model built based on the original YOLOv8 model.

[0063] It can be understood that the preset dust detection model may include an input layer (Input), a preset backbone network (Backbone), a preset neck network (Neck) and a preset detection head network (Head).

[0064] It should be understood that in the original YOLOv8 model, the core function of the C2f module widely used in its network structure is to learn and extract residual features in the input image, which are conducive to improving network performance. When the original YOLOv8 model is applied to the application scenario of dust detection on the surface of photovoltaic panels, due to the significant differences in dust accumulation state, aggregation location and dust volume, the original C2f module has the problem of insufficient feature extraction ability during detection. In this embodiment, the Star-A module is used to replace the original C2f module, which can capture and extract dust features on the surface of photovoltaic panels from different dimensions.

[0065] It should be noted that the Star-A module is obtained by coupling the star-CAA module with the C2f module item in the original YOLOv8 model. The star-CAA module is constructed based on a star network (StarNet) transplanted with a contextual anchor attention mechanism (CAA).

[0066] It should be understood that the core part of starNet is the reconstruction of a star operation, which is a learning paradigm that fuses features from different subspaces through element-wise multiplication, which can be similar to a kernel function, especially a polynomial kernel function, that multiplies features from different channels by two. When star operations are incorporated into neural networks and multiple layers are stacked, each layer contributes to the exponential growth of latent dimensional complexity. With just a few layers of star operations, almost unlimited dimensions can be obtained in a compact feature space, benefiting from the implicit high-dimensional features.

[0067] It should also be noted that in order to further improve the feature recognition ability of the model, a convolutional attention fusion module is also introduced in this embodiment; the convolutional attention fusion module is a standard detail enhancement attention network obtained by replacing the content-guided attention mechanism with a hybrid convolutional attention mechanism.

[0068] It should be understood that the standard single image dehazing based on detail-enhanced convolution and content-guided attention (DEA-net) block contains a content-guided attention mechanism (CGA), which obtains the exclusive SIM (spatial importance map) of each input feature channel in a coarse-to-fine manner, and fully mixes the channel attention weight and the spatial attention weight to ensure information interaction. The DEAB block enhances the model's ability to characterize and generalize feature information extraction. However, since the original YOLOv8 model performs multi-layer feature fusion before the detection operation (Detect) in the Head part, information is lost while extracting feature information. In this embodiment, a hybrid convolution attention mechanism (Convolution and attention fusion) is used in the DEAB block to replace CGA, that is, a CAFM (convolution and attention fusion module) module is used to replace the CGA module, and the DEAB block fused with the CAFM module is introduced into the Neck, that is, before the Head, as the convolution attention fusion module of this embodiment, which can further improve the detection performance of the model.

[0069] Furthermore, the preset detection head network includes a Focaler-IoU loss function that replaces the IoU loss function in the original YOLOv8 model.

[0070] It should be understood that since the positioning accuracy of the target detection task based on the YOLOv8 model depends on the border regression loss function, the existing IoU loss function improves the regression effect by utilizing the geometric relationship between borders, while ignoring the impact of the distribution of difficult and easy samples on border regression. In this embodiment, the Focaler-IoU loss function is used to replace the original IoU loss function. The formula of the Focaler-IoU is as follows:

[0071]

[0072] Among them, IoU focaler is the reconstructed Focaler-IoU, IoU is the original IoU value, [d,u]∈[0,1]. By adjusting the values ​​of d and u, IoU focaler Focus on different regression samples. The Focaler-IoU loss function is defined as follows:

[0073] LFocaler-IoU =1-IoU focaler

[0074] It can be understood that compared with the traditional IoU loss function, Focaler-IoU reconstructs the IoU loss by introducing a linear interval mapping method, so that the model can focus on different regression samples in different detection tasks, thereby improving the detection performance of the model.

[0075] This embodiment obtains the current photovoltaic panel image; inputs the current photovoltaic panel image into a preset dust detection model to obtain a dust detection result, wherein the preset dust detection model includes a preset backbone network and a preset neck network, wherein the preset backbone network and the preset neck network both include several Star-A modules that replace the C2f modules in the original YOLOv8 model, and the preset neck network also includes a convolutional attention fusion module; the Star-A module is used to extract features of different dimensions from the input image, and the convolutional attention fusion module is used to perform multi-layer feature fusion on feature information of different dimensions. Since this embodiment introduces the Star-A module into the original YOLOv8 model, it can improve the feature extraction capability of different dimensions, and introduces the convolutional attention fusion module, which can reduce the loss of feature information. Compared with the original YOLOv8 model, it can improve the accuracy of photovoltaic panel dust detection.

[0076] Based on the first embodiment of the present application, in the second embodiment of the present application, the same or similar contents as those in the above-mentioned embodiment 1 can be referred to the above introduction, and will not be repeated in the following. Figure 2 , Figure 2 A schematic diagram of the flow chart provided for the second embodiment of the photovoltaic panel dust detection method of the present application.

[0077] In this embodiment, the step S20 includes steps S201 to S204:

[0078] Step S201: preprocessing the current photovoltaic panel image through the input layer to obtain an image to be detected.

[0079] It should be understood that the YOLOv8 model uses Mosaic data augmentation technology in the input, which can generate a new image by randomly scaling, arranging and cropping the input image, thereby improving the model's ability to detect small targets. In addition, the model also uniformly adjusts the input image to a standard format, such as 640*640, to facilitate subsequent model processing.

[0080] In the specific implementation, the current photovoltaic panel image is input into the preset dust detection model. First, the input image is preprocessed through the Input, including resizing and normalization, and the input image is converted into a format suitable for subsequent model network processing, that is, the image to be detected is obtained.

[0081] Step S202: extracting features of the image to be detected through the preset backbone network to obtain feature information.

[0082] It should be understood that Backbone can be composed of several convolutional layers and pooling layers, and can extract features from the input image to be detected. The original YOLOv8 Backbone includes several C2f modules, and the C2f module can enhance the feature extraction capability. Since the Star-A module is used to replace the original C2f module in this embodiment, the Star-A module is obtained by coupling the star-CAA module with the C2f module item in the original YOLOv8 model. The star-CAA module is constructed based on a star network transplanted with CAA, and the star network includes several stacked star blocks, each of which includes a deep convolution layer and an anchor attention layer.

[0083] Therefore, step S202 specifically includes steps S2021 to S2023:

[0084] Step S2021: Acquire feature information of each channel corresponding to the image to be detected.

[0085] Step S2022: extracting features of the image to be detected according to the deep convolution layer to obtain features of different channels, and performing star operations on the features of different channels to obtain features of different dimensions.

[0086] Step S2023: In the anchored attention layer, feature fusion is performed on the features of different dimensions to obtain feature information.

[0087] It can be understood that the core steps of star operation are as follows:

[0088] First, the weight matrix and bias are combined into a single entity, W and X are expressed as:

[0089] and The star operation is obtained as Specifically defined as ω1,ω2,x∈R (d+1)×1 , d is the input channel number, and then expanded to multiple output channels W1,W2∈R (d+1)×(d′+1) , and handle multiple feature elements, where X∈R (d+1)×n .

[0090] The following are the operations for reconstructing the star:

[0091]

[0092] Among them, i, j are used to index the channel, and α is the coefficient of each item.

[0093] Each term in the formula is as follows:

[0094]

[0095] It is understandable that StarNet follows the traditional layered network, directly using convolutional layers to reduce the resolution and doubling the number of channels at each stage. Repeat multiple star blocks to extract features. It is able to simplify the model structure while ensuring the performance of model feature extraction.

[0096] It should be understood that, considering the problem that the size of the target scale varies too much and the image acquisition environment of the input image is complex and changeable, in order to solve the above problems while reducing the introduction of noise and avoiding the generation of overly sparse feature representations, CAA is introduced in this embodiment to capture long-distance context information in feature extraction.

[0097] It should be understood that in CAA, the local area features of the image to be detected can be obtained by using 1×1 convolution after average pooling:

[0098]

[0099] in, represents the average pooling operation. When n=0, there is Then two depthwise strip convolutions are used as an approximation of the standard large kernel depthwise convolution:

[0100]

[0101] It should be understood that CAA is portable, and the star-CAA module directly combined with StarNet can be referenced Figure 3 As shown, Figure 3 This is a schematic diagram of the structure of the star-CAA module used to couple with the C2f module in the second embodiment of the photovoltaic panel dust detection method of the present application.

[0102] Figure 3 It can be regarded as an example of a star block in StarNet, which includes a depth-wise separable convolution (DW-Conv), and the convolution kernel size (KS) of the DW-Conv is 7, that is, the filter size of the separable convolution is 7x7; stride (Stride) = 1.

[0103] The DW-Conv is connected to two fully connected layers (FC) and performs star operations. The operation results are then output to CAA, which includes average pooling (AvgPool), two 1×1 convolutions (Conv), and two depthwise strip convolutions (DW-Conv).

[0104] It should be understood that by coupling the star-CAA module obtained by combining the star module in StarNet with the CAA attention mechanism with the original C2f module, a new Star-A module is formed to replace the C2f in the original yolov8 model, which can enhance the feature extraction capability of the model.

[0105] Step S203: performing feature fusion on the feature information through the preset neck network to obtain a fused feature map.

[0106] It can be understood that the preset neck network (Neck) is located between the preset backbone network (Backbone) and the detection head (Head), and can further process and fuse the features extracted by the backbone. Neck usually contains some feature fusion modules, such as feature pyramid network (FPN), which can combine feature maps of different scales to improve the accuracy and robustness of target detection.

[0107] In this embodiment, based on the Neck structure of the original YOLOv8 model, a CAFM module is introduced into the Neck, that is, a CAFM module is introduced between the original Neck structure and the Head structure, which can capture the long-range dependency and domain spectral correlation of features, and further enhance the feature extraction capability of the model.

[0108] Step S204: performing category prediction on the fusion feature through the detection head network to obtain a dust detection result.

[0109] It should be understood that this embodiment optimizes IoU in the detection head network (Head), that is, uses Focaler-IoU as the loss function, which improves the bounding box regression performance of the network model, thereby improving the accuracy of the obtained dust detection results.

[0110] In this embodiment, the current photovoltaic panel image is preprocessed through the input layer to obtain the image to be detected; the image to be detected is feature extracted through the preset backbone network to obtain feature information; the feature information is feature fused through the preset neck network to obtain a fused feature map; the fused feature is predicted by the detection head network to obtain a dust detection result. Specifically, the feature information of each channel corresponding to the image to be detected is obtained; the image to be detected is feature extracted according to the deep convolution layer to obtain the features of different channels, and the features of the different channels are star-shaped operated to obtain features of different dimensions; in the anchor attention layer, the features of the different dimensions are feature fused to obtain feature information. In this embodiment, a brand new module, the Star-A module, is designed. Based on the basic structure of the C2f module, this module integrates the Star structure and CAA structure in StarNet, and can capture and extract the features of dust on the surface of photovoltaic panels from multiple dimensions, which is conducive to improving the accuracy of dust detection results.

[0111] Based on the first and second embodiments of the present application, in the third embodiment of the present application, the same or similar contents as those of the first and second embodiments can be referred to the above description, and will not be described in detail later. Figure 4 , Figure 4 A schematic diagram of the flow chart provided for Embodiment 3 of the photovoltaic panel dust detection method of the present application.

[0112] In this embodiment, the convolutional attention fusion module includes a local branch and a global branch, the feature information includes low-level features and high-level features, and the step S201 specifically includes steps S2011 to S2012:

[0113] Step S2011: Determine the output features corresponding to the low-level features and the output features corresponding to the high-level features based on the hybrid convolutional attention mechanism.

[0114] Step S2012: Fusing the output features corresponding to the low-level features and the output features corresponding to the high-level features to obtain a fused feature map.

[0115] It should be noted that, in the convolutional attention fusion module (i.e., the CAFM module), the local branch is used to perform channel transformation operations on the input feature channels corresponding to the feature information and to perform channel rearrangement based on depthwise separable convolution to obtain local branch outputs; the global branch is used to generate queries, keys, and values ​​according to the feature information, and to obtain global branch outputs according to the queries, keys, and values.

[0116] You can refer to here Figure 5 To explain, Figure 5This is a schematic diagram of the structure of the CAFM module in Example 3 of the photovoltaic panel dust detection method of this application.

[0117] exist Figure 5 In the local branch, for the input features (low-level features or high-level features), 1×1 convolution can be used to adjust the channel size first. Channel transformation operation (Channel shuffle) is performed to further mix the channel information. Channel rearrangement divides the input tensor into groups along the channel dimension, where depth-separable convolution is used in each group to induce channel rearrangement. The output tensors of each group are then connected along the channel dimension to generate a new output tensor. 3×3×3 convolution is then used to extract features. The calculation formula for the output of this local branch is:

[0118] F conv =W 3×3×3 (CS(W 1×1 (Y)))

[0119] Where W 1×1 is a 1×1 convolution, W 3×3×3 is a 3×3×3 convolution, CS is channel rearrangement, and Y is the input feature.

[0120] In the global branch, query (Q), key (K), and value (V) are first generated through 1×1 convolution and 3×3 depthwise convolution to obtain three tensors of shape H×W×C. Q is then reconstructed as Reconstruct K as Final calculation and Attention map The calculation formula for the global branch output is:

[0121]

[0122] In the formula, are the reconstructed values ​​of query (Q), key (K), and value (V), respectively. α is a learnable scaling parameter that is used to control the matrix before applying the Softmax function. and The size of the multiplication.

[0123] The calculation formula of the output feature corresponding to the feature information may be:

[0124] F out =F att +F conv

[0125] In the formula, F att is the global branch output, F convThis is the local branch output.

[0126] It is understandable that for the entire convolutional attention fusion module, that is, the DEAB block fused with the CAFM module, please refer to Figure 6 Provide explanations, Figure 6 This is a schematic diagram of the structure of the DEAB block integrated with the CAFM module in Example 3 of the photovoltaic panel dust detection method of the present application.

[0127] exist Figure 6 Medium, F low is low-level features, F high The low-level features and high-level features are respectively input into the CAFM module for output calculation based on the hybrid convolution attention mechanism to obtain the corresponding output features, and the weights are assigned (W and 1-W) respectively. Then, the weighted features are fused and input into the 1×1 convolution to obtain the fused feature map F. fuse .

[0128] In this embodiment, the CAFM module can be divided into a local branch and a global branch. The local branch is used to perform channel transformation operations on the input feature channels corresponding to the feature information and to rearrange the channels based on depth-separable convolution to obtain local branch outputs; the global branch is used to generate queries, keys and values ​​according to the feature information, and to obtain global branch outputs according to the queries, keys and values. The feature information includes low-level features and high-level features. In this embodiment, the output features corresponding to the low-level features and the output features corresponding to the high-level features are determined based on a hybrid convolutional attention mechanism; the output features corresponding to the low-level features and the output features corresponding to the high-level features are fused to obtain a fused feature map. Since the CAFM module is used to perform global and local feature re-fusion in this embodiment, the loss of feature information in the process of model feature extraction can be reduced, the performance of model detection can be further improved, and more accurate dust detection results can be obtained.

[0129] Further, please refer to Figure 7 The structure of the dust detection model preset in this application is described. Figure 7 A schematic diagram of the structure of the dust detection model preset for this application.

[0130] It can be understood that the preset dust detection model is built based on the original YOLOv8 model, including: Input, Backbone, Neck and Head.

[0131] In Input, the resolution of the input image can be in 640*640 format;

[0132] In Backbone, it includes several convolutional layers (Conv), Star-A modules, and Spatial Pyramid Feature (SPFF) layers;

[0133] In Neck, it includes several feature fusion layers (concat), resolution enhancement layers (Upsamble), Star-A modules, convolutional layers (Conv) and CAFM modules. The CAFM module is located at the end of Neck and outputs the fused feature map to Head.

[0134] In the Head, the fused feature map is detected (Detect), and the final dust detection result is obtained through accurate bounding box prediction, category classification and confidence evaluation.

[0135] The Star-A module includes a convolutional layer (Conv), a channel segmentation layer (split), a star network structure (Star-block), and a feature fusion layer (concat).

[0136] This application proposes an efficient and lightweight Cstar-YOLO network model, i.e., a preset dust detection model, to detect and identify the dust status of solar photovoltaic panels. It introduces a new Star-A module and uses the CAFM module for global and local feature re-fusion, reducing the loss of feature information. In order to verify the detection accuracy of the Cstar-YOLO network model proposed in this application in the dust detection task, the network models before and after the improvement can be compared under the same experimental environment to evaluate their detection effects on different types of images, and Precision (P), Recall (R), mAP@0.5, and Model size can be used as evaluation indicators. The Cstar-YOLO network model of this application is experimentally compared with models such as Faster R-CNN, YOLOv5, YOLOv7, EfficientDet, and SSD. The comparison results are shown in Table 1 below, which is a comparison experiment table:

[0137] Table 1: Comparative test table

[0138]

[0139] According to Table 1 above, it can be concluded that the Cstar-YOLO of this application has the smallest model size while its Precision, Recall, and mAP@0.5 are better than those of YOLOv5, YOLOv7, EfficientDet, Faster-RCNN, and SSD models. The accuracy of Faster-RCNN is better than that of other models except the model in this paper, but its model size is also the largest.

[0140] In addition, in order to further verify the effectiveness of the improved module of this application, the original YOLOv8 model can be used as the baseline model, and Precision, Recall, mAP@0.5, mAP@0.5:0.95, Parameters, and Model size can be used as evaluation indicators. The ablation experiment is performed through different combinations of multiple improved modules, where "F" represents that the module is not added, and "T" represents that the module is added. The ablation experiment results are shown in Table 2, which is the ablation experiment table:

[0141] Table 2: Ablation experiment table

[0142]

[0143] According to Table 2 above, compared with the original YOLOv8 model, the Precision decreased by 2.5% after adding the Star-A module, but the Recall increased by 3.2%; mAP@0.5 / % and mAP@0.5:0.95 / % increased by 0.6% and 0.1% respectively, and GFLOPS increased by 9.9%. After adding the CAFM module, the Precision increased by 0.7%, the Recall increased by 0.7%, the mAP@0.5 / % and mAP@0.5:0.95 / % increased by 0.8% and 0.18% respectively, and the GFLOPS increased by 17%. When using the Star-A and CAFM modules at the same time without using Focaler-IoU, the Precision increased by 1.3%, the Recall increased by 0.7%, the mAP@0.5 / % and mAP@0.5:0.95 / % increased by 0.8% and 1% respectively, and the GFLOPS increased by 27%. The Cstar-YOLO proposed in this paper improves the precision by 2.7%, the recall by 2.1%, the mAP@0.5 / % and mAP@0.5:0.95 / % by 1.8% and 2% respectively based on the original model. The model size is increased by 2.1M and the GFLOPS is increased by 27%.

[0144] It should be noted that the above examples are only used to understand the present application and do not constitute a limitation on the photovoltaic panel dust detection method of the present application. More simple transformations based on this technical concept are all within the protection scope of the present application.

[0145] The present application also provides a photovoltaic panel dust detection device, please refer to Figure 8 , Figure 8 This is a schematic diagram of the module structure of the photovoltaic panel dust detection device of the present application, the device comprises:

[0146] An image acquisition module 801 is used to acquire the current photovoltaic panel image;

[0147] The dust detection module 802 is used to input the current photovoltaic panel image into a preset dust detection model to obtain a dust detection result. The preset dust detection model includes a preset backbone network and a preset neck network. The preset backbone network and the preset neck network both include several Star-A modules that replace the C2f modules in the original YOLOv8 model. The preset neck network also includes a convolutional attention fusion module. The Star-A module is used to extract features of different dimensions for the input image, and the convolutional attention fusion module is used to perform multi-layer feature fusion on feature information of different dimensions.

[0148] The photovoltaic panel dust detection device provided by the present application adopts the photovoltaic panel dust detection method in the above embodiment, which can solve the technical problem of photovoltaic panel dust detection. Compared with the prior art, the beneficial effects of the photovoltaic panel dust detection device provided by the present application are the same as the beneficial effects of the photovoltaic panel dust detection method provided by the above embodiment, and other technical features in the photovoltaic panel dust detection device are the same as the features disclosed in the above embodiment method, which will not be repeated here.

[0149] The present application also provides a photovoltaic panel dust detection device, which includes: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the photovoltaic panel dust detection method in the above-mentioned embodiment one.

[0150] Reference below Fig. 9 , Fig. 9 The schematic diagram of the structure of the photovoltaic panel dust detection device in the embodiment of the present application. The photovoltaic panel dust detection device in the embodiment of the present application may include but is not limited to mobile terminals such as mobile phones, laptop computers, digital broadcast receivers, PDAs (Personal Digital Assistants), PADs (Portable Application Descriptions: tablet computers), PMPs (Portable Media Players: portable multimedia players), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. Fig. 9 The photovoltaic panel dust detection device shown is merely an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.

[0151] like Fig. 9As shown, the photovoltaic panel dust detection device may include a processing device 1001 (such as a central processing unit, a graphics processor, etc.), which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM: Read Only Memory) 1002 or a program loaded from a storage device 1003 to a random access memory (RAM: Random Access Memory) 1004. In RAM1004, various programs and data required for the operation of the photovoltaic panel dust detection device are also stored. The processing device 1001, ROM1002 and RAM1004 are connected to each other through a bus 1005. An input / output (I / O) interface 1006 is also connected to the bus. Generally, the following systems can be connected to the I / O interface 1006: an input device 1007 including, for example, a touch screen, a touch pad, a keyboard, a mouse, an image sensor, a microphone, an accelerometer, a gyroscope, etc.; an output device 1008 including, for example, a liquid crystal display (LCD: Liquid Crystal Display), a speaker, a vibrator, etc.; a storage device 1003 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 1009. The communication device 1009 can allow the photovoltaic panel dust detection device to communicate with other devices wirelessly or by wire to exchange data. Although the photovoltaic panel dust detection device with various systems is shown in the figure, it should be understood that it is not required to implement or have all the systems shown. More or fewer systems can be implemented or provided alternatively.

[0152] In particular, according to the embodiments disclosed in the present application, the process described above with reference to the flowchart can be implemented as a computer software program. For example, the embodiments disclosed in the present application include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication device, or installed from a storage device 1003, or installed from a ROM 1002. When the computer program is executed by the processing device 1001, the above-mentioned functions defined in the method of the embodiment disclosed in the present application are executed.

[0153] The photovoltaic panel dust detection device provided by the present application adopts the photovoltaic panel dust detection method in the above embodiment, which can solve the technical problems of the photovoltaic panel dust detection method. Compared with the prior art, the beneficial effects of the photovoltaic panel dust detection device provided by the present application are the same as the beneficial effects of the photovoltaic panel dust detection method provided by the above embodiment, and the other technical features of the photovoltaic panel dust detection device are the same as the features disclosed in the method of the previous embodiment, which will not be repeated here.

[0154] The present application also provides a computer-readable storage medium having computer-readable program instructions (ie, computer programs) stored thereon, the computer-readable program instructions being used to execute the photovoltaic panel dust detection method in the above-mentioned embodiment.

[0155] The computer-readable storage medium provided in the present application may be, for example, a USB flash drive, but is not limited to electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, systems or devices, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In this embodiment, the computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, system or device. The program code contained on the computer-readable storage medium may be transmitted using any appropriate medium, including but not limited to: wires, optical cables, RF (Radio Frequency), etc., or any suitable combination of the above.

[0156] The computer-readable storage medium may be included in the photovoltaic panel dust detection device; or may exist independently without being assembled into the photovoltaic panel dust detection device.

[0157] The readable storage medium provided in the present application is a computer-readable storage medium, which stores computer-readable program instructions (i.e., computer programs) for executing the above-mentioned photovoltaic panel dust detection method, and can solve the technical problems of the photovoltaic panel dust detection method. Compared with the prior art, the beneficial effects of the computer-readable storage medium provided in the present application are the same as the beneficial effects of the photovoltaic panel dust detection method provided in the above-mentioned embodiment, and will not be repeated here.

Claims

1. A method for detecting dust on photovoltaic panels. It is characterized in that The method comprises: Get the current photovoltaic panel image; The current photovoltaic panel image is input into a preset dust detection model to obtain a dust detection result. The preset dust detection model includes a preset backbone network and a preset neck network. The preset backbone network and the preset neck network both include several Star-A modules that replace the C2f modules in the original YOLOv8 model. The preset neck network also includes a convolutional attention fusion module. The Star-A module is used to extract features of different dimensions on the input image, and the convolutional attention fusion module is used to perform multi-layer feature fusion on feature information of different dimensions.

2. The method according to claim 1, It is characterized in that The preset dust detection model also includes an input layer and a preset detection head network, wherein the preset detection head network includes a Focaler-IoU loss function that replaces the IoU loss function in the original YOLOv8 model.

3. The method according to claim 2, It is characterized in that The Star-A module is obtained by coupling the star-CAA module with the C2f module item in the original YOLOv8 model. The star-CAA module is constructed based on a star network transplanted with a context-anchored attention mechanism. The convolutional attention fusion module is a standard detail enhancement attention network obtained by replacing the content-guided attention mechanism with a hybrid convolutional attention mechanism.

4. The method according to claim 3, It is characterized in that The step of inputting the current photovoltaic panel image into a preset dust detection model to obtain a dust detection result includes: Preprocessing the current photovoltaic panel image through the input layer to obtain an image to be detected; Extracting features of the image to be detected through the preset backbone network to obtain feature information; Performing feature fusion on the feature information through the preset neck network to obtain a fused feature map; The category of the fused features is predicted by the detection head network to obtain a dust detection result.

5. The method according to claim 4, It is characterized in that The star network includes a plurality of stacked star blocks, each of which includes a deep convolutional layer and an anchor attention layer; The step of extracting features from the image to be detected through the preset backbone network to obtain feature information includes: Acquire feature information of each channel corresponding to the image to be detected; Extracting features of the image to be detected according to the deep convolution layer to obtain features of different channels, and performing star operations on the features of the different channels to obtain features of different dimensions; In the anchored attention layer, the features of different dimensions are fused to obtain feature information.

6. The method according to claim 4, It is characterized in that The convolutional attention fusion module includes a local branch and a global branch; The local branch is used to perform a channel transformation operation on the input feature channel corresponding to the feature information and to rearrange the channels based on depthwise separable convolution to obtain a local branch output; The global branch is used to generate a query, a key and a value according to the feature information, and obtain a global branch output according to the query, the key and the value; The feature information includes low-level features and high-level features, and the step of fusing the feature information through the preset neck network to obtain a fused feature map includes: Determine the output features corresponding to the low-level features and the output features corresponding to the high-level features based on a hybrid convolutional attention mechanism; The output features corresponding to the low-level features and the output features corresponding to the high-level features are fused to obtain a fused feature map.

7. The method according to claim 6, It is characterized in that The calculation formula of the output feature is: F out =F att +F conv In the formula, F att is the global branch output, F conv Output for local branches; The calculation formula of the local branch output is: F conv =W 3×3×3 (CS(W 1×1 (Y))) Where W 1×1 is a 1×1 convolution, W 3×3×3 It is a 3×3×3 convolution, CS is the channel rearrangement, and Y is the input feature; The calculation formula of the global branch output is: In the formula, are the reconstructed values ​​of query (Q), key (K), and value (V), respectively, and α is a learnable scaling parameter.

8. A photovoltaic panel dust detection device, It is characterized in that The device comprises: An image acquisition module is used to acquire the current photovoltaic panel image; A dust detection module is used to input the current photovoltaic panel image into a preset dust detection model to obtain a dust detection result. The preset dust detection model includes a preset backbone network and a preset neck network. The preset backbone network and the preset neck network both include several Star-A modules that replace the C2f modules in the original YOLOv8 model. The preset neck network also includes a convolutional attention fusion module. The Star-A module is used to extract features of different dimensions for the input image, and the convolutional attention fusion module is used to perform multi-layer feature fusion on feature information of different dimensions.

9. A photovoltaic panel dust detection device, It is characterized in that The device comprises: a memory, a processor, and a photovoltaic panel dust detection program stored in the memory and executable on the processor, wherein the photovoltaic panel dust detection program is configured to implement the steps of the photovoltaic panel dust detection method according to any one of claims 1 to 7.

10. A storage medium, It is characterized in that The storage medium stores a photovoltaic panel dust detection program, and when the photovoltaic panel dust detection program is executed by the processor, the steps of the photovoltaic panel dust detection method according to any one of claims 1 to 7 are implemented.

Citation Information

Cited By

  • Unmanned aerial vehicle aerial photography target detection method based on PCRS-YOLO network

    CN118799766A

  • Power transmission line fault positioning method based on improved YOLOv8 model and double-end TWM

    CN119335307A

  • Eye fundus image classification method and system

    CN119399546A

  • Steel structure surface corrosion detection method and system based on improved YOLOv8

    CN119851097A

  • Safety helmet wearing detection method, device and equipment for road traffic and medium

    CN119851226A