Photovoltaic system fault detection method and device, electronic equipment and storage medium
By using the VGG-16 model and cascade layers in photovoltaic system fault detection to extract the features of photovoltaic module images and directional gradient histogram features, the problems of low fault detection efficiency and insufficient accuracy in the existing technology are solved, and efficient, real-time Photovoltaic system fault detection.
Patent Information
- Application Number
- CN202410539937.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-04-30
- Publication Date
- 2024-08-23
AI Technical Summary
Existing photovoltaic system fault detection methods rely on manual inspection and standard universal deep learning models, which have large errors and low efficiency, especially when photovoltaic images contain noise or small changes between classes, and rely on manually annotated image features to ensure fault classification. effectiveness.
A deep learning model including the VGG-16 model, a dedicated layer and a cascade layer is designed to extract the image features and directional gradient histogram normalized features of the photovoltaic module image, which are vectorized through the cascade layer, using For end-to-end fault detection, it reduces the impact of noise and improves detection accuracy.
It achieves higher fault detection accuracy and efficiency, enables real-time image collection and detection, improves existing photovoltaic image fault detection methods, and improves the ability to locate and segment photovoltaic module defects.
Smart Images

Figure CN118537626A
Abstract
Description
Technical Field
[0001] The present disclosure relates to the technical field of photovoltaic system fault detection, and in particular to a photovoltaic system fault detection method and device, electronic equipment, and storage medium. Background Art
[0002] Monitoring and maintenance of photovoltaic (PV) systems are crucial to ensure continuous power generation and prevent operational degradation. To achieve fault detection in PV systems, people have traditionally manually inspected high-resolution electroluminescent (EL) images of PV modules to determine the fault type and location. However, this detection method usually requires a lot of manpower and time, which seriously affects the efficiency of fault detection.
[0003] Currently, deep learning models have been widely used for fast and accurate image classification. However, when using these standard general deep learning models for fault detection classification based on photovoltaic images, large errors may occur, especially when the photovoltaic images are noisy or have small inter-class variation data. In addition, some fault detection methods based on photovoltaic images still rely on manually created image features, which cannot ensure the effectiveness of fault classification. Summary of the invention
[0004] The present disclosure aims to solve at least one of the problems existing in the prior art and provides a photovoltaic system fault detection method and device, electronic equipment, and storage medium.
[0005] In one aspect of the present disclosure, a photovoltaic system fault detection method is provided, the detection method comprising:
[0006] Acquire images of photovoltaic modules of a photovoltaic system;
[0007] Inputting the photovoltaic component image into a trained deep learning model to obtain a fault detection result corresponding to the photovoltaic component image;
[0008] Among them, the deep learning model includes a VGG-16 model and a dedicated layer, a cascade layer, and a classification layer; the VGG-16 model is used to extract image features of the photovoltaic component image; the dedicated layer is used to extract the directional gradient histogram normalization features corresponding to the photovoltaic component image; the cascade layer is used to cascade and vectorize the image features and the directional gradient histogram normalization features to obtain corresponding vectorized features; the classification layer is used to determine the fault detection result based on the vectorized features.
[0009] Optionally, in the VGG-16 model, the input of the convolutional layer is a three-dimensional tensor, the first dimension of the three-dimensional tensor represents the batch size, the second dimension of the three-dimensional tensor represents the height of the input image, and the third dimension of the three-dimensional tensor represents the width of the input image.
[0010] Optionally, in the VGG-16 model, the input of the pooling layer is the output of the convolutional layer, and the pooling layer divides the input image into a group of non-overlapping rectangular areas and calculates a single output value for each of the rectangular areas.
[0011] Optionally, the dedicated layer is used to extract normalized features of a histogram of oriented gradients corresponding to the photovoltaic module image, including:
[0012] The dedicated layer is specifically used for: The oriented gradient histogram feature corresponding to the photovoltaic component image is normalized to obtain the oriented gradient histogram normalized feature; wherein z represents the normalized vector corresponding to the oriented gradient histogram normalized feature, x represents the feature vector corresponding to the oriented gradient histogram feature, μ represents the average value of x, and σ represents the standard deviation of x.
[0013] Optionally, the directional gradient histogram feature is extracted based on a grayscale image corresponding to the photovoltaic component image.
[0014] Optionally, the training process of the deep learning model includes:
[0015] Acquire a photovoltaic component image sample of the photovoltaic system;
[0016] Labeling the photovoltaic component image samples to determine the real labels corresponding to the photovoltaic component image samples; the real labels include the real fault type and the real fault location;
[0017] Based on the photovoltaic module image samples and the corresponding true labels, a training set is constructed, and training data and test data are determined according to a preset ratio;
[0018] The deep learning model is trained using the training data, and the deep learning model is tested using the test data.
[0019] Optionally, the training process of the deep learning model further includes:
[0020] Creating a receiver operating characteristic curve for the deep learning model;
[0021] The effectiveness of the deep learning model is evaluated based on the receiver operating characteristic curve.
[0022] Another aspect of the present disclosure provides a photovoltaic system fault detection device, the detection device comprising:
[0023] An acquisition module, used for acquiring images of photovoltaic components of a photovoltaic system;
[0024] A detection module, used to input the photovoltaic module image into a trained deep learning model to obtain a fault detection result corresponding to the photovoltaic module image;
[0025] Among them, the deep learning model includes a VGG-16 model and a dedicated layer, a cascade layer, and a classification layer; the VGG-16 model is used to extract image features of the photovoltaic component image; the dedicated layer is used to extract the directional gradient histogram normalization features corresponding to the photovoltaic component image; the cascade layer is used to cascade and vectorize the image features and the directional gradient histogram normalization features to obtain corresponding vectorized features; the classification layer is used to determine the fault detection result based on the vectorized features.
[0026] Optionally, in the VGG-16 model, the input of the convolutional layer is a three-dimensional tensor, the first dimension of the three-dimensional tensor represents the batch size, the second dimension of the three-dimensional tensor represents the height of the input image, and the third dimension of the three-dimensional tensor represents the width of the input image.
[0027] Optionally, in the VGG-16 model, the input of the pooling layer is the output of the convolutional layer, and the pooling layer divides the input image into a group of non-overlapping rectangular areas and calculates a single output value for each of the rectangular areas.
[0028] Optionally, the dedicated layer is used to extract normalized features of a histogram of oriented gradients corresponding to the photovoltaic module image, including:
[0029] The dedicated layer is specifically used for: The oriented gradient histogram feature corresponding to the photovoltaic component image is normalized to obtain the oriented gradient histogram normalized feature; wherein z represents the normalized vector corresponding to the oriented gradient histogram normalized feature, x represents the feature vector corresponding to the oriented gradient histogram feature, μ represents the average value of x, and σ represents the standard deviation of x.
[0030] Optionally, the directional gradient histogram feature is extracted based on a grayscale image corresponding to the photovoltaic component image.
[0031] Optionally, the detection device further includes a training module, and the training module is used to train the deep learning model according to the following steps:
[0032] Acquire a photovoltaic component image sample of the photovoltaic system;
[0033] Labeling the photovoltaic component image samples to determine the real labels corresponding to the photovoltaic component image samples; the real labels include the real fault type and the real fault location;
[0034] Based on the photovoltaic module image samples and the corresponding true labels, a training set is constructed, and training data and test data are determined according to a preset ratio;
[0035] The deep learning model is trained using the training data, and the deep learning model is tested using the test data.
[0036] Optionally, the training module is further used to:
[0037] Creating a receiver operating characteristic curve for the deep learning model;
[0038] The effectiveness of the deep learning model is evaluated based on the receiver operating characteristic curve.
[0039] Another aspect of the present disclosure provides an electronic device, including:
[0040] at least one processor; and,
[0041] a memory communicatively connected to at least one processor; wherein,
[0042] The memory stores instructions that can be executed by at least one processor. The instructions are executed by the at least one processor so that the at least one processor can execute the photovoltaic system fault detection method described above.
[0043] Another aspect of the present disclosure provides a computer-readable storage medium storing a computer program, which implements the photovoltaic system fault detection method described above when the computer program is executed by a processor.
[0044] Compared with the prior art, the present invention has the following beneficial effects:
[0045] 1. Combining the image features of photovoltaic module images extracted by the VGG-16 model with the Histogram of Oriented Gradient (HOG) normalized features extracted by a dedicated layer using cascade layers can enable deep learning models for fault detection to achieve better performance in a wide range of computer vision tasks.
[0046] 2. Instead of using ready-made manually annotated image features or existing standard deep learning models to perform fault detection and classification on electroluminescent images, a deep learning model including a VGG-16 model, a dedicated layer, a cascade layer, and a classification layer was designed. The deep learning model was used to automatically extract image features and HOG normalized features of photovoltaic module images. End-to-end photovoltaic image fault detection was achieved based on the extracted image features and HOG normalized features, effectively improving the fault detection accuracy.
[0047] 3. Real-time image acquisition and fault detection can be achieved, rather than just fault detection based on offline images. The present invention can utilize an unmanned aerial vehicle (UAV) connected to a computer artificial intelligence system to capture and acquire images of photovoltaic modules in real time, and use a trained deep learning model to locate or segment photovoltaic module defects to improve existing fault detection methods based on photovoltaic images. BRIEF DESCRIPTION OF THE DRAWINGS
[0048] One or more embodiments are exemplarily described by pictures in the corresponding drawings, and these exemplifications do not constitute limitations on the embodiments. Elements with the same reference numerals in the drawings represent similar elements, and unless otherwise stated, the figures in the drawings do not constitute proportional limitations.
[0049] Figure 1 A flowchart of a photovoltaic system fault detection method provided in one embodiment of the present disclosure;
[0050] Figure 2 A schematic diagram of the structure of a deep learning model provided in another embodiment of the present disclosure;
[0051] Figure 3 A schematic diagram of a photovoltaic assembly image sample provided by another embodiment of the present disclosure;
[0052] Figure 4 A schematic diagram of a ROC curve of a deep learning model provided in another embodiment of the present disclosure;
[0053] Figure 5 A flowchart of a photovoltaic system fault detection method provided by another embodiment of the present disclosure;
[0054] Figure 6 A schematic structural diagram of a photovoltaic system fault detection device provided by another embodiment of the present disclosure;
[0055] Figure 7 A schematic structural diagram of an electronic device provided in another embodiment of the present disclosure. DETAILED DESCRIPTION
[0056] In order to make the purpose, technical scheme and advantages of the embodiments of the present disclosure clearer, the embodiments of the present disclosure will be described in detail below in conjunction with the accompanying drawings. However, it can be understood by those skilled in the art that in each embodiment of the present disclosure, many technical details are proposed in order to enable readers to better understand the present disclosure. However, even without these technical details and various changes and modifications based on the following embodiments, the technical scheme claimed for protection in the present disclosure can also be implemented. The division of the following embodiments is for the convenience of description and should not constitute any limitation on the specific implementation of the present disclosure. The various embodiments can be combined and referenced with each other without contradiction.
[0057] One embodiment of the present disclosure relates to a photovoltaic system fault detection method, the process of which is as follows: Figure 1 As shown, including:
[0058] Step S110, acquiring an image of photovoltaic components of the photovoltaic system.
[0059] For example, the photovoltaic component image can be obtained by photographing the photovoltaic component with an imaging device such as a handheld camera or a camera, a fixed camera, etc., or by other means, for example, the photovoltaic component image can also be captured and obtained by a drone. This embodiment does not limit the method for obtaining the photovoltaic component image, as long as the photovoltaic component image can be obtained so that the subsequent steps can use the photovoltaic component image for fault detection.
[0060] Step S120: input the photovoltaic module image into the trained deep learning model to obtain a fault detection result corresponding to the photovoltaic module image.
[0061] Among them, the deep learning model includes a VGG-16 model as well as a dedicated layer, a cascade layer, and a classification layer; the VGG-16 model is used to extract image features of photovoltaic module images; the dedicated layer is used to extract the normalized features of the oriented gradient histogram corresponding to the photovoltaic module image; the cascade layer is used to cascade and vectorize the image features and the normalized features of the oriented gradient histogram to obtain the corresponding vectorized features; the classification layer is used to determine the fault detection results based on the vectorized features.
[0062] For example, in the VGG-16 model, the input of the convolution layer is a three-dimensional tensor, the first dimension of the three-dimensional tensor represents the batch size, the second dimension of the three-dimensional tensor represents the height of the input image, and the third dimension of the three-dimensional tensor represents the width of the input image. In the VGG-16 model, the input of the pooling layer is the output of the convolution layer. The pooling layer divides the input image into a set of non-overlapping rectangular areas and calculates a single output value for each rectangular area.
[0063] For example, Figure 2As shown in the figure, the VGG-16 model can include 5 convolution modules, namely conv1, conv2, conv3, conv4, conv5, and 2 fully connected layers, namely fc6 and fc7, to extract image features of the original image. Among them, conv1 and conv2 include 2 convolution layers and 1 pooling layer respectively. Conv3, conv4, and conv5 include 3 convolution layers and 1 pooling layer respectively. In conv1, the output image size of each convolution layer is 224×224×64. In conv2, the output image size of each convolution layer is 112×112×128. In conv3, the output image size of each convolution layer is 56×56×256. In conv4, the output image size of each convolution layer is 28×28×512. In conv5, the output image size of each convolution layer is 14×14×512. The output image size of fc6 and fc7 is 1×1×4096.
[0064] Exemplarily, the dedicated layer is used to extract the normalized features of the directional gradient histogram corresponding to the photovoltaic module image, including: the dedicated layer is specifically used to: according to the formula The oriented gradient histogram features corresponding to the photovoltaic module image are normalized to obtain the oriented gradient histogram normalized features; wherein z represents the normalized vector corresponding to the oriented gradient histogram normalized features, x represents the feature vector corresponding to the oriented gradient histogram features, μ represents the average value of x, and σ represents the standard deviation of x.
[0065] Specifically, a dedicated layer is designed to extract the HOG normalized features corresponding to the photovoltaic module image. First, a 16×16 window size with overlap is used to extract the HOG features of the original image. Then, the features extracted from each window are cascaded and vectorized to generate a feature vector of length 1296, that is, the feature vector x corresponding to the HOG feature. Then, the formula is used to By normalizing each data point of the feature vector x, we can get the normalized vector z. By normalizing the HOG features, we can effectively reduce the impact of using noise features on the training of deep learning models.
[0066] Exemplarily, the directional gradient histogram feature is extracted based on a grayscale image corresponding to the photovoltaic module image.
[0067] Specifically, the convolutional layers in the VGG-16 model extract image features hierarchically through convolutional neural networks (CNNs) and are designed to recognize color images when there are a large number of samples in each category. When the number of samples is small, since convolutional neural networks usually have millions of parameters, misclassification and overfitting problems may occur. In addition, when the number of samples is small, the images used for model training are usually grayscale, and there are intra-class variances (such as healthy 0% and healthy 33%) and inter-class similarities (such as healthy 33% and error 66%). At present, HOG features extracted from grayscale images have been widely used in image-based specific pattern recognition. Therefore, in order to prevent CNN from only remembering the training images during training without finding a good representation, a non-learnable feature vector, namely the feature vector corresponding to the HOG feature, is added to the network of the deep learning model. These non-learnable HOG features can effectively play the role of prior knowledge, forcing other network parameters in the deep learning model to learn without the vanishing gradient problem, thereby avoiding overfitting and reducing misclassification.
[0068] Combined Figure 2 The cascade layer concatenates and vectorizes the image of size 1×1×4096 output by the VGG-16 model and the HOG normalized features of size 1×1×1296 extracted by the dedicated layer, and outputs a vector of size 1×1×5392. The classification layer performs fault detection classification based on the vector of size 1×1×5392 output by the cascade layer, and outputs a fault detection result of size 1×1×2, including the fault type and its corresponding fault location.
[0069] Compared with the prior art, the photovoltaic system fault detection method provided by the embodiments of the present disclosure can effectively implement end-to-end photovoltaic image fault detection and improve fault detection accuracy.
[0070] Exemplarily, the training process of the deep learning model includes: obtaining photovoltaic module image samples of the photovoltaic system; annotating the photovoltaic module image samples to determine the true labels corresponding to the photovoltaic module image samples; the true labels include the true fault type and the true fault location; based on the photovoltaic module image samples and their corresponding true labels, constructing a training set, and determining the training data and test data according to a preset ratio; using the training data to train the deep learning model, and using the test data to test the deep learning model.
[0071] Specifically, the photovoltaic module image samples can be obtained by photographing the photovoltaic modules with a handheld camera or a camera, a fixed camera, etc., or can be obtained from a public data set on the Internet as a sample supplement. The photovoltaic module image samples can include photovoltaic module images corresponding to multiple fault types. For example, Figure 3 As shown, the photovoltaic module image sample may include a photovoltaic module image of a single crystal silicon failure ( Figure 3 The first row of images in the figure), the PV module image with polysilicon failure ( Figure 3 The second row of images in the figure), healthy single-crystal silicon photovoltaic module images ( Figure 3 The third row of images in the figure), healthy polysilicon photovoltaic module images ( Figure 3 Of course, the photovoltaic component image samples may also include photovoltaic component images of other fault types, which is not limited in this embodiment.
[0072] When annotating the PV module image samples, it is necessary to annotate the corresponding real fault type and its real fault location. Figure 3 For each photovoltaic module image sample included in the first row of images, the true fault type marked for it should be single crystal silicon fault. Figure 3 For each photovoltaic module image sample included in the second row of images in , the true fault type marked for it should be polysilicon fault. Figure 3 For each PV module image sample included in the third row of images, the true fault type marked for it should be healthy single crystal silicon. Figure 3 For the PV module image samples included in the 4th row of images, the true fault type annotated therefor should be healthy polysilicon.
[0073] After the training set is constructed, the data in the training set can be divided into training data and test data according to a preset ratio. For example, the preset ratio can be 1:3, in which case the training data accounts for 25% of the total data in the training set, and the test data accounts for 75% of the total data in the training set. That is, 25% of the data in the training set is used as training data to train the deep learning model, and 75% of the data in the training set is used as test data to test the deep learning model trained with the training data.
[0074] Exemplarily, the training process of the deep learning model also includes: creating a receiver operating characteristic (ROC) curve of the deep learning model; and evaluating the effectiveness of the deep learning model according to the receiver operating characteristic curve.
[0075] Specifically, the effectiveness of a binary classification model is often graphically described by an ROC curve to compare the True Positive Rate (TPR) and False Positive Rate (FPR) at different classification levels. In order to create an ROC curve for a deep learning model, the TPR and FPR for different classification thresholds need to be calculated. Here, the threshold is a value ranging from 0.5 (for a general classifier) to 1 (for a perfect classifier), above which the deep learning model will assign a positive label, and below which the deep learning model will assign a negative label.
[0076] For example, after training the deep learning model using the training process provided in the above embodiment, the ROC curve obtained is as follows: Figure 4 As shown, Healthy represents the healthy type, Faulty represents the fault type, and the ROC curve passes through the upper left corner of the figure, which shows that the trained deep learning model is very effective.
[0077] In order to enable those skilled in the art to better understand the photovoltaic system fault detection method provided by the above embodiment, a specific example is used for explanation below.
[0078] Combined Figure 5 , a photovoltaic system fault detection method comprises the following steps:
[0079] Data collection: Use a handheld camera or a fixed camera to take images of photovoltaic modules with various fault types as samples. You can also obtain some public photovoltaic module image datasets from the Internet as sample supplements.
[0080] Data classification and labeling: The real labels corresponding to each photovoltaic module image sample are labeled respectively. The real labels include the fault type and fault location. The fault types include healthy, faulty, monocrystalline silicon, polycrystalline silicon, etc.
[0081] Building a hybrid model: Building Figure 2 The deep learning model shown in FIG. The VGG-16 model is used as the baseline of the end-to-end deep learning model. The deep learning model also includes a dedicated layer, a cascade layer, and a classification layer. Among them, the VGG-16 model is used to extract the image features of the photovoltaic module image. The dedicated layer is used to extract the HOG normalized features corresponding to the photovoltaic module image. The cascade layer is used to cascade and vectorize the image features and the HOG normalized features to obtain the corresponding vectorized features. The classification layer is used to determine the fault detection results based on the vectorized features.
[0082] Establish a training set: Divide the labeled PV module image samples into a test set and a training set in a ratio of 1:3, that is, 25% of the PV module image samples are used for testing and 75% of the PV module image samples are used for training.
[0083] Observe the ROC curve after training and evaluate the model effect: Use the training set and test set to train the deep learning model. After the training is completed, construct the ROC curve of the deep learning model and evaluate the training effect of the deep learning model based on the ROC curve. If the ROC curve shows that the training effect of the deep learning model is poor and cannot meet the actual needs, re-use the training set and test set to train the deep learning model.
[0084] If the ROC curve shows that the training effect of the deep learning model is good and can meet the actual needs, the photovoltaic module image to be detected is obtained, and the photovoltaic module image is input as real data into the trained deep learning model, so that the deep learning model outputs the fault judgment result, and the fault detection result corresponding to the photovoltaic module image is obtained, thereby realizing end-to-end photovoltaic image fault detection. Among them, end-to-end means: a handheld camera or a fixed camera is used as the input end of the data, and the photovoltaic module image taken by the handheld camera or the fixed camera is transmitted back to the server or computer, and the trained deep learning model is used to identify and classify the image to realize fault detection, and the detection result is directly presented on the server or computer.
[0085] Another embodiment of the present disclosure relates to a photovoltaic system fault detection device, such as Figure 6 As shown, it includes an acquisition module 610 and a detection module 620.
[0086] The acquisition module 610 is used to acquire the photovoltaic module image of the photovoltaic system. The detection module 620 is used to input the photovoltaic module image into the trained deep learning model to obtain the fault detection result corresponding to the photovoltaic module image.
[0087] Among them, the deep learning model includes a VGG-16 model as well as a dedicated layer, a cascade layer, and a classification layer; the VGG-16 model is used to extract image features of photovoltaic module images; the dedicated layer is used to extract the normalized features of the oriented gradient histogram corresponding to the photovoltaic module image; the cascade layer is used to cascade and vectorize the image features and the normalized features of the oriented gradient histogram to obtain the corresponding vectorized features; the classification layer is used to determine the fault detection results based on the vectorized features.
[0088] For example, in the VGG-16 model, the input of the convolution layer is a three-dimensional tensor, the first dimension of the three-dimensional tensor represents the batch size, the second dimension of the three-dimensional tensor represents the height of the input image, and the third dimension of the three-dimensional tensor represents the width of the input image.
[0089] For example, in the VGG-16 model, the input of the pooling layer is the output of the convolutional layer. The pooling layer divides the input image into a set of non-overlapping rectangular regions and calculates a single output value for each rectangular region.
[0090] Exemplarily, the dedicated layer is used to extract the normalized features of the directional gradient histogram corresponding to the photovoltaic module image, including: the dedicated layer is specifically used to: according to the formula The oriented gradient histogram features corresponding to the photovoltaic module image are normalized to obtain the oriented gradient histogram normalized features; wherein z represents the normalized vector corresponding to the oriented gradient histogram normalized features, x represents the feature vector corresponding to the oriented gradient histogram features, μ represents the average value of x, and σ represents the standard deviation of x.
[0091] Exemplarily, the directional gradient histogram feature is extracted based on a grayscale image corresponding to the photovoltaic module image.
[0092] Exemplarily, the photovoltaic system fault detection device also includes a training module. The training module is used to train the deep learning model according to the following steps: obtaining photovoltaic component image samples of the photovoltaic system; labeling the photovoltaic component image samples and determining the true labels corresponding to the photovoltaic component image samples; the true labels include the true fault type and the true fault location; based on the photovoltaic component image samples and their corresponding true labels, constructing a training set, determining the training data and the test data according to a preset ratio; using the training data to train the deep learning model, and using the test data to test the deep learning model.
[0093] Exemplarily, the training module is also used to: create a receiver operating characteristic curve of the deep learning model; and evaluate the effectiveness of the deep learning model based on the receiver operating characteristic curve.
[0094] The specific implementation method of the photovoltaic system fault detection device provided in the embodiment of the present disclosure can be found in the photovoltaic system fault detection method provided in the embodiment of the present disclosure, and will not be repeated here.
[0095] Compared with the prior art, the photovoltaic system fault detection device provided in the embodiments of the present disclosure can effectively implement end-to-end photovoltaic image fault detection and improve fault detection accuracy.
[0096] Another embodiment of the present disclosure relates to an electronic device, such as Figure 7 As shown, including:
[0097] at least one processor 701; and,
[0098] A memory 702 is communicatively connected to at least one processor 701; wherein,
[0099] The memory 702 stores instructions that can be executed by at least one processor 701 . The instructions are executed by at least one processor 701 so that the at least one processor 701 can execute the photovoltaic system fault detection method described in the above embodiment.
[0100] Among them, the memory and the processor are connected in a bus manner, and the bus may include any number of interconnected buses and bridges, and the bus connects various circuits of one or more processors and memories together. The bus can also connect various other circuits such as peripherals, voltage regulators, and power management circuits, which are well known in the art and are therefore not further described herein. The bus interface provides an interface between the bus and the transceiver. The transceiver can be one element or multiple elements, such as multiple receivers and transmitters, providing a unit for communicating with various other devices on a transmission medium. The data processed by the processor is transmitted on a wireless medium via an antenna, and further, the antenna also receives data and transmits the data to the processor.
[0101] The processor is responsible for managing the bus and general processing, and can also provide various functions, including timing, peripheral interfaces, voltage regulation, power management, and other control functions. Memory can be used to store data used by the processor when performing operations.
[0102] Another embodiment of the present disclosure relates to a computer-readable storage medium storing a computer program, which implements the photovoltaic system fault detection method described in the above embodiment when executed by a processor.
[0103] That is, those skilled in the art can understand that all or part of the steps in the method described in the above embodiments can be completed by instructing the relevant hardware through a program, and the program is stored in a storage medium, including several instructions for making a device (which can be a single-chip microcomputer, chip, etc.) or a processor (processor) perform all or part of the steps of the method described in each embodiment of the present disclosure. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), disk or optical disk and other media that can store program codes.
[0104] Those skilled in the art will appreciate that the above-mentioned embodiments are specific embodiments for implementing the present disclosure, and in actual applications, various changes may be made thereto in form and detail without departing from the spirit and scope of the present disclosure.
Claims
1. A photovoltaic system fault detection method, characterized in that: The detection method comprises: Acquire images of photovoltaic modules of a photovoltaic system; Inputting the photovoltaic component image into a trained deep learning model to obtain a fault detection result corresponding to the photovoltaic component image; Among them, the deep learning model includes a VGG-16 model and a dedicated layer, a cascade layer, and a classification layer; the VGG-16 model is used to extract image features of the photovoltaic component image; the dedicated layer is used to extract the directional gradient histogram normalization features corresponding to the photovoltaic component image; the cascade layer is used to cascade and vectorize the image features and the directional gradient histogram normalization features to obtain corresponding vectorized features; the classification layer is used to determine the fault detection result based on the vectorized features.
2. The detection method according to claim 1, characterized in that: In the VGG-16 model, the input of the convolutional layer is a three-dimensional tensor, the first dimension of the three-dimensional tensor represents the batch size, the second dimension of the three-dimensional tensor represents the height of the input image, and the third dimension of the three-dimensional tensor represents the width of the input image.
3. The detection method according to claim 2, characterized in that: In the VGG-16 model, the input of the pooling layer is the output of the convolutional layer, and the pooling layer divides the input image into a set of non-overlapping rectangular areas and calculates a single output value for each of the rectangular areas.
4. The detection method according to any one of claims 1 to 3, characterized in that: The dedicated layer is used to extract the directional gradient histogram normalization features corresponding to the photovoltaic module image, including: The dedicated layer is specifically used for: The oriented gradient histogram feature corresponding to the photovoltaic component image is normalized to obtain the oriented gradient histogram normalized feature; wherein z represents the normalized vector corresponding to the oriented gradient histogram normalized feature, x represents the feature vector corresponding to the oriented gradient histogram feature, μ represents the average value of x, and σ represents the standard deviation of x.
5. The detection method according to claim 4, characterized in that: The directional gradient histogram feature is extracted based on the grayscale image corresponding to the photovoltaic component image.
6. The detection method according to claim 4, characterized in that: The training process of the deep learning model includes: Acquire a photovoltaic component image sample of the photovoltaic system; Labeling the photovoltaic component image samples to determine the real labels corresponding to the photovoltaic component image samples; the real labels include the real fault type and the real fault location; Based on the photovoltaic module image samples and the corresponding true labels, a training set is constructed, and training data and test data are determined according to a preset ratio; The deep learning model is trained using the training data, and the deep learning model is tested using the test data.
7. The detection method according to claim 5, characterized in that: The training process of the deep learning model also includes: Creating a receiver operating characteristic curve for the deep learning model; The effectiveness of the deep learning model is evaluated based on the receiver operating characteristic curve.
8. A photovoltaic system fault detection device, characterized in that: The detection device comprises: An acquisition module, used for acquiring images of photovoltaic components of a photovoltaic system; A detection module, used to input the photovoltaic module image into a trained deep learning model to obtain a fault detection result corresponding to the photovoltaic module image; Among them, the deep learning model includes a VGG-16 model and a dedicated layer, a cascade layer, and a classification layer; the VGG-16 model is used to extract image features of the photovoltaic component image; the dedicated layer is used to extract the directional gradient histogram normalization features corresponding to the photovoltaic component image; the cascade layer is used to cascade and vectorize the image features and the directional gradient histogram normalization features to obtain corresponding vectorized features; the classification layer is used to determine the fault detection result based on the vectorized features.
9. An electronic device, characterized in that: include: at least one processor; as well as, a memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed 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 system fault detection method according to any one of claims 1 to 7.
10. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the photovoltaic system fault detection method according to any one of claims 1 to 7 is implemented.
