A Fault Detection Method and System for Photovoltaic Array

Through the combination of the three-threshold segmentation method and the BP neural network, the problem of misjudgment in photovoltaic array fault detection is solved, the detection accuracy is improved, and the integrity of the edges and corners of the photovoltaic panel and the accurate identification of abnormal areas are ensured.

CN118096748BActive Publication Date: 2024-08-30YUTAI POWER SUPPLY CO OF STATE GRID SHANDONG ELECTRIC POWER CO
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202410501104.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-04-25
Publication Date
2024-08-30
Estimated Expiration
2044-04-25

AI Technical Summary

Technical Problem

When existing photovoltaic array fault detection methods process infrared images, they cannot effectively distinguish between the local heating phenomenon caused by sunlight reflection and the actual fault hot spots, which is prone to misjudgment and affects detection accuracy.

Method used

The three-threshold segmentation method is used to process the infrared image to obtain the abnormal area range image and the photovoltaic panel segmentation image. Combined with the power data in the P-V curve data, the area ratio of the abnormal area to the photovoltaic panel is calculated through the BP neural network and the final result is output. , improve fault identification accuracy.

Benefits of technology

By retaining edge and angle information of photovoltaic panels, abnormal areas can be accurately segmented to reduce misjudgments, improve the identification accuracy of photovoltaic array fault detection, and avoid misjudgments caused by sunlight reflection.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118096748B
    Figure CN118096748B
Patent Text Reader

Abstract

The present invention proposes a fault detection method and system for a photovoltaic array, belonging to the technical field of fault detection; by acquiring an infrared image and P-V curve data of a photovoltaic array, the infrared image is processed by a three-threshold method, wherein a first segmentation can cut out an overall image of a photovoltaic array component, and the information at the edge and four corners of the image is completely retained, so that the image area of ​​the photovoltaic panel is retained; a more accurate abnormal area range can be obtained by a second segmentation; the area ratio of the abnormal area range on the photovoltaic panel is calculated by the acquired abnormal area range and the corresponding photovoltaic panel image, and the power ratio of the photovoltaic panel at the current moment and the historical data is obtained at the same time, and the category of the abnormal area range image can be accurately identified by calculating the error rate between the area ratio and the power ratio, thereby avoiding the misjudgment problem caused by environmental factors such as solar reflection.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of fault detection, and in particular relates to a fault detection method and system for a photovoltaic array. Background Art

[0002] The statements in this section merely provide background information related to the present invention and do not necessarily constitute prior art.

[0003] Photovoltaic equipment is increasingly used in the field of renewable energy. During the operation of photovoltaic arrays, fault diagnosis and positioning of photovoltaic arrays are crucial to improving photovoltaic power generation efficiency and equipment maintenance.

[0004] At present, the common methods for fault detection of photovoltaic arrays are divided into two categories: electrical characteristics analysis and image analysis. For the image analysis method, in traditional technical means, the acquired infrared image of the photovoltaic array is usually processed to identify the hot spots on the faulty photovoltaic panels in the image, so as to determine the faulty photovoltaic panels and the distribution locations of the photovoltaic panels. However, when performing fault detection, this method only considers the factors of the photovoltaic array itself, and does not consider the impact of external environmental factors on the photovoltaic array. During the detection process, the reflection of sunlight will cause the photovoltaic array to have local temperature rise in the infrared image. In the process of identifying the infrared image of the photovoltaic array, the local temperature rise area will be misjudged as a hot spot, which will eventually lead to misjudgment of the fault detection of the photovoltaic array. Summary of the invention

[0005] In order to overcome the deficiencies of the above-mentioned prior art, the present invention provides a fault detection method and system for photovoltaic arrays, which segments infrared images through a three-threshold segmentation method to obtain abnormal area range images and photovoltaic panel segmentation images, retaining image information of the edges and four corners of the photovoltaic panel, and accurately segmenting the abnormal area; by calculating the area ratio of the abnormal area range on the corresponding photovoltaic panel and combining it with the power data in the PV curve data, the final result is output, thereby improving the recognition accuracy of photovoltaic array faults.

[0006] To achieve the above objectives, one or more embodiments of the present invention provide the following technical solutions:

[0007] A first aspect of the present invention provides a fault detection method for a photovoltaic array, comprising the following steps:

[0008] Obtain infrared images and PV curve data of the photovoltaic array, and pre-process the PV curve data;

[0009] The infrared image is segmented by the three-threshold segmentation method to obtain the abnormal area range image and the photovoltaic panel segmentation image;

[0010] The abnormal area image, the corresponding photovoltaic panel segmentation image and the PV curve data are input into the BP neural network, the area ratio of the abnormal area on the corresponding photovoltaic panel is calculated, and the final result is output in combination with the PV curve data.

[0011] As an implementation mode, the infrared image is segmented by the three-threshold segmentation method as follows: first, the infrared image is subjected to bilateral filtering processing to obtain the edge points of the image, a first threshold is obtained based on the obtained edge points, segmentation is performed by the first threshold, and a photovoltaic panel segmentation image is obtained; secondary segmentation is performed based on the photovoltaic panel segmentation image to obtain an abnormal area range image.

[0012] As an implementation mode, the secondary segmentation is performed based on the photovoltaic panel segmentation image to obtain the abnormal area range image. Specifically, the first threshold and the maximum value of the image pixel are used as the grayscale value interval, and the grayscale value interval contains two grayscale values ​​of different sizes, and the grayscale value interval is divided into a first interval, a second interval and a third interval; based on the threshold function, the values ​​of the two grayscale values ​​of different sizes are determined, the determined small grayscale value is used as the second threshold, and the determined large grayscale value is used as the third threshold, and the third threshold is used for cutting to obtain the abnormal area range image.

[0013] As an implementation manner, the threshold function is specifically:

[0014]

[0015] in, For small gray values, is a large gray value, is the area ratio of the image in the i-th interval, is the gray value of the i-th interval, is the mean gray value.

[0016] As an implementation mode, the output of the final result in combination with the PV curve data is specifically as follows: the average power in the current photovoltaic panel PV curve data is calculated, and compared with the average power of the photovoltaic panel in a normal state to obtain a power ratio; the power ratio is compared with the obtained area ratio, and the final result is output based on the comparison result.

[0017] A second aspect of the present invention provides a fault detection system for a photovoltaic array, comprising:

[0018] A data acquisition module acquires infrared images and PV curve data of the photovoltaic array and pre-processes the PV curve data;

[0019] The image segmentation module segments the infrared image using the three-threshold segmentation method to obtain the abnormal area range image and the photovoltaic panel segmentation image;

[0020] The fault identification module inputs the abnormal area range image, the corresponding photovoltaic panel segmentation image and the PV curve data into the BP neural network, calculates the area ratio of the abnormal area range on the corresponding photovoltaic panel, and outputs the final result in combination with the PV curve data.

[0021] As an implementation mode, the infrared image is segmented by the three-threshold segmentation method as follows: first, the infrared image is subjected to bilateral filtering processing to obtain the edge points of the image, a first threshold is obtained based on the obtained edge points, segmentation is performed by the first threshold to obtain a photovoltaic panel segmentation image, secondary segmentation is performed based on the photovoltaic panel segmentation image to obtain an abnormal area range image.

[0022] As an implementation mode, the secondary segmentation is performed based on the photovoltaic panel segmentation image to obtain the abnormal area range image. Specifically, the first threshold and the maximum value of the image pixel are used as the grayscale value interval, and the grayscale value interval contains two grayscale values ​​of different sizes, and the grayscale value interval is divided into a first interval, a second interval and a third interval; based on the threshold function, the values ​​of the two grayscale values ​​of different sizes are determined, the determined small grayscale value is used as the second threshold, and the determined large grayscale value is used as the third threshold, and the third threshold is used for cutting to obtain the abnormal area range image.

[0023] According to a third aspect of the present invention, an electronic device is provided, comprising a processor and a memory, wherein the processor is configured to execute a computer program stored in the memory to implement the above-mentioned fault detection method for a photovoltaic array.

[0024] According to a fourth aspect of the present invention, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores at least one instruction, and when the at least one instruction is executed by a processor, the above-mentioned fault detection method for a photovoltaic array is implemented.

[0025] One or more of the above technical solutions have the following beneficial effects:

[0026] (1) By performing bilateral filtering on the infrared image, the edge points of the image are obtained, and the first threshold is obtained by the edge points. The photovoltaic panel segmentation image is obtained by segmenting the image using the first threshold. The edge and four corners of the photovoltaic panel in the image are relatively complete, thereby ensuring the integrity of the photovoltaic panel area.

[0027] (2) Based on the abnormal area range image obtained by secondary segmentation, the accurate abnormal area range can be obtained; by calculating the area ratio of the abnormal area range on the corresponding photovoltaic panel and combining it with the power data in the PV curve data, the category of the abnormal area can be accurately identified, thereby improving the recognition accuracy of photovoltaic array faults.

[0028] Advantages of additional aspects of the present invention will be given in part in the following description, and in part will become obvious from the following description, or will be learned through practice of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS

[0029] The accompanying drawings in the specification, which constitute a part of the present invention, are used to provide a further understanding of the present invention. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute improper limitations on the present invention.

[0030] Figure 1 The present invention is a step diagram of a fault detection method for a photovoltaic array according to an embodiment of the present invention.

[0031] Figure 2 This is a schematic diagram of the principle of dividing a photovoltaic panel assembly according to an embodiment of the present invention.

[0032] Figure 3 This is a diagram showing the meanings of the second threshold and the third threshold during secondary segmentation in an embodiment of the present invention. DETAILED DESCRIPTION

[0033] It should be noted that the following detailed descriptions are exemplary and are intended to provide further explanation of the present invention. Unless otherwise specified, all technical and scientific terms used herein have the same meanings as those commonly understood by those skilled in the art to which the present invention belongs.

[0034] It should be noted that the terms used herein are for describing specific embodiments only and are not intended to be limiting of exemplary embodiments according to the present invention.

[0035] In the absence of conflict, the embodiments of the present invention and the features of the embodiments may be combined with each other.

[0036] Embodiment 1

[0037] Reference Figure 1 This embodiment discloses a fault detection method for a photovoltaic array, which specifically includes the following steps:

[0038] S1. Acquire infrared images and PV curve data of the photovoltaic array, and preprocess the PV curve data.

[0039] In this embodiment, the infrared image of the photovoltaic array is obtained based on the thermal imager suspended by the drone; and the obtained PV curve data includes the PV curve data of each photovoltaic panel in the photovoltaic array at the current moment and in the historical normal and trouble-free operating state, which can be obtained through a PV data detector.

[0040] The acquired PV curve data is preprocessed by removing duplicate data, processing missing values, and outliers.

[0041] S2. Segment the infrared image using a three-threshold segmentation method to obtain an abnormal area range image and a photovoltaic panel segmentation image.

[0042] S201, first perform bilateral filtering on the infrared image to obtain edge points of the image, obtain a first threshold based on the obtained edge points, and perform segmentation using the first threshold to obtain a photovoltaic panel segmentation image.

[0043] Before image segmentation, the infrared image is first processed by bilateral filtering to remove the blur problem of the infrared image; considering that for the edge points of the target area, the grayscale values ​​of the pixels on both sides will be greater than or less than the grayscale values ​​of the edge points to a certain extent, and there is also a large difference between the grayscale values ​​of the target area and the non-target area; therefore, using the edge points as the dividing points for image segmentation can obtain better segmentation effects.

[0044] S2011, obtaining edge points of the filtered image, obtaining the positions of the edge points and obtaining the corresponding coordinates in the two-dimensional histogram ;

[0045] S2012, based on the diagonal theory, the edge points are divided into regions using diagonal lines and Region ;

[0046] S2013, based on the point-line distance formula, obtain the area and Region The two edge points m that are farthest from the diagonal 、n ;

[0047] S2014, two edge points m 、n Connect them to the two end points of the diagonal line to obtain region D; region D is the collection of the background region and the target region;

[0048] S2015, setting the threshold segmentation line T0 to be a perpendicular line of the diagonal line, thereby dividing the area D into a target area D1 and a background area D2;

[0049] At this time, the probability of the threshold segmentation line T0 is:

[0050] (2-1)

[0051] in, are the horizontal and vertical coordinate values ​​of the two-dimensional histogram, L-1 is the value range of the horizontal and vertical coordinates, and is also the maximum value of the pixel value in the two-dimensional histogram and the infrared image; 2L-2 is the value range of the threshold segmentation line T0;

[0052] S2016, determining the value of the threshold dividing line based on the threshold dividing line function; wherein, when the threshold dividing line is T, the threshold dividing line function is specifically:

[0053] (2-2)

[0054] (twenty three)

[0055] in, is the final first threshold.

[0056] By segmenting the image using the first threshold, the information at the edges and four corners of the entire photovoltaic panel assembly can be retained, thereby ensuring the complete area of ​​the photovoltaic panel, and at the same time the photovoltaic panel can be completely segmented; the segmented image is output and retained as a photovoltaic panel segmentation image.

[0057] S202, performing secondary segmentation based on the photovoltaic panel segmentation image to obtain an abnormal area range image.

[0058] S2021, after segmentation by the first threshold, the gray value interval of the infrared image becomes [T1, L-1];

[0059] Assume that the gray level in the image is The number of pixels is , then the total number of pixels in the image is , then we have the following formula:

[0060] (2-4)

[0061] (2-5)

[0062] in, The gray level is The probability of a pixel appearing in the image .

[0063] S2022, the gray value interval [T1, L-1] contains two gray values ​​C1 and C2 of different sizes, and the gray interval [T1, L-1] is divided into a first interval [T 1, C1], the second interval [C1+1, C2] and the third interval [C2+1, L-1]; at this time, the calculation formula for the gray value mean of the image is as follows:

[0064] (2-6)

[0065] S2023. Thus, the calculation formula of the threshold function can be obtained as follows:

[0066] (2-7)

[0067] in, For small gray values, is a large gray value, is the area ratio of the image in the i-th interval, is the gray value of the i-th interval, is the mean gray value.

[0068] when When the maximum value is obtained, and The value of is the cutting threshold, and To represent the second threshold, To represent the third threshold.

[0069] The photovoltaic array is composed of a combination of photovoltaic panels, and each photovoltaic panel is composed of a combination of solar panels; refer to Figure 3 , for the cut photovoltaic panel image, the first threshold T1 is the pixel value of the edge of the entire photovoltaic panel, the second threshold T2 is the pixel value of the edge of each solar panel in the photovoltaic panel, and the third threshold T3 is the pixel value at the edge of the abnormal area; wherein the circle in the image represents the abnormal area; based on the large difference in pixel values ​​on both sides of the edge; therefore, the value of the third threshold can be obtained more accurately through the threshold function.

[0070] The image is cut by the third threshold value to obtain the final abnormal area range image. Since the acquired abnormal area range image cannot confirm whether it is a hot spot or an abnormal area caused by environmental conditions such as solar reflection, it is necessary to judge the abnormal area image.

[0071] S3, input the abnormal area range image, the corresponding photovoltaic panel segmentation image and PV curve data into the BP neural network, calculate the area ratio of the abnormal area range on the corresponding photovoltaic panel, and output the final result in combination with the PV curve data.

[0072] Based on the acquisition of the abnormal area range image, the corresponding photovoltaic panel segmentation image is obtained from the saved photovoltaic panel segmentation image, and the abnormal area range image, the corresponding photovoltaic panel segmentation image and the PV curve data are input into the BP neural network.

[0073] Calculate the area ratio R1 of the abnormal area in the photovoltaic panel segmentation image;

[0074] Since the acquired PV curve data is the PV curve data of each photovoltaic panel in the photovoltaic array at the current moment and in the historical normal and fault-free operating state, the power value in the PV curve data of the photovoltaic panel in the historical normal and fault-free operating state is obtained, and the average power is calculated; at the same time, the power value in the PV curve data collected at the current moment is extracted, the power value at the current moment is compared with the average power value, and the power ratio R2 is obtained.

[0075] Calculate the error rate between the area ratio R1 and the power ratio R2; the calculation formula is:

[0076] (3-1)

[0077] The abnormal area range image and error rate are obtained to determine the category of the abnormal area range image and output the final result; the threshold of the error rate can be selected as 5%. Among them, when the error rate is less than 5%, the abnormal area range image is a hot spot image, and the photovoltaic panel failure is output; when the error rate is greater than 5%, the abnormal area range image is a normal image, and the photovoltaic panel is normal.

[0078] The principle of this method is that when the abnormal area state obtained in the infrared image of the photovoltaic panel is a hot spot, the solar panel at that location will not work and will be in a faulty state; at this time, the error rates of the area ratio R1 and the power ratio R2 will not differ too much, and may even approach 0; and when the abnormal area range is caused by reasons such as sunlight reflection, it will not affect the operation of the solar panel. At this time, the power ratio R2 approaches 1, and the obtained error rate is too large; in this way, it can automatically identify whether the abnormal area range is caused by a hot spot or by reasons such as sunlight reflection, without the need for manual secondary identification after a misjudgment, thereby avoiding waste of resources and improving the recognition accuracy of hot spots.

[0079] Since the selected PV curve data has nonlinear characteristics, and the BP neural network can realize nonlinear fitting, it has a better effect on the processing of PV curve data; at the same time, before using the BP neural network, the corresponding data is obtained according to steps S1-S2 of this application to train the neural network.

[0080] Embodiment 2

[0081] A second aspect of the present invention provides a fault detection system for a photovoltaic array, comprising:

[0082] A data acquisition module acquires infrared images and PV curve data of the photovoltaic array and pre-processes the PV curve data;

[0083] The image segmentation module segments the infrared image using the three-threshold segmentation method to obtain the abnormal area range image and the photovoltaic panel segmentation image;

[0084] The fault identification module inputs the abnormal area range image, the corresponding photovoltaic panel segmentation image and the PV curve data into the BP neural network, calculates the area ratio of the abnormal area range on the corresponding photovoltaic panel, and outputs the final result in combination with the PV curve data.

[0085] Embodiment 3

[0086] The purpose of this embodiment is to provide a computer device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the above method when executing the program.

[0087] Embodiment 4

[0088] The purpose of this embodiment is to provide a computer-readable storage medium.

[0089] A computer-readable storage medium stores a computer program, which executes the steps of the above method when executed by a processor.

[0090] The steps involved in the apparatuses of the above embodiments 2, 3 and 4 correspond to the method embodiment 1, and the specific implementation methods can refer to the relevant description part of embodiment 1. The term "computer-readable storage medium" should be understood as a single medium or multiple media including one or more instruction sets; it should also be understood to include any medium that can store, encode or carry an instruction set for execution by a processor and enable the processor to execute any method in the present invention.

[0091] Those skilled in the art should understand that the modules or steps of the present invention described above can be implemented by a general-purpose computer device, or alternatively, they can be implemented by a program code executable by a computing device, so that they can be stored in a storage device and executed by the computing device, or they can be made into individual integrated circuit modules, or multiple modules or steps therein can be made into a single integrated circuit module for implementation. The present invention is not limited to any specific combination of hardware and software.

[0092] Although the above describes the specific implementation mode of the present invention in conjunction with the accompanying drawings, it is not intended to limit the scope of protection of the present invention. Those skilled in the art should understand that various modifications or variations that can be made by those skilled in the art on the basis of the technical solution of the present invention without creative work are still within the scope of protection of the present invention.

Claims

1. A fault detection method for a photovoltaic array, characterized in that: The steps include: Obtain infrared images and PV curve data of the photovoltaic array, and pre-process the PV curve data; The infrared image is segmented by the three-threshold segmentation method to obtain the abnormal area range image and the photovoltaic panel segmentation image; The abnormal area image, the corresponding photovoltaic panel segmentation image and PV curve data are input into the BP neural network, the area ratio of the abnormal area on the corresponding photovoltaic panel is calculated, and the final result is output in combination with the PV curve data; The three-threshold segmentation method is specifically used to segment the infrared image, firstly perform bilateral filtering on the infrared image to obtain edge points of the image, obtain a first threshold based on the obtained edge points, perform segmentation based on the first threshold, and obtain a photovoltaic panel segmentation image; perform secondary segmentation based on the photovoltaic panel segmentation image to obtain an abnormal area range image; The calculation formula of the first threshold is: in, is the threshold dividing line, is the threshold segmentation function, The threshold dividing line The probability of is the value range of the threshold segmentation line, is the first threshold.

2. A fault detection method for a photovoltaic array according to claim 1, characterized in that: The method of performing secondary segmentation based on the photovoltaic panel segmentation image to obtain the abnormal area range image is specifically as follows: taking the first threshold and the maximum value of the image pixel as the grayscale value interval, the grayscale value interval contains two grayscale values ​​of different sizes, and the grayscale value interval is divided into a first interval, a second interval and a third interval; determining the values ​​of the two grayscale values ​​of different sizes based on the threshold function, taking the determined small grayscale value as the second threshold, taking the determined large grayscale value as the third threshold, and performing cutting through the third threshold to obtain the abnormal area range image.

3. A fault detection method for a photovoltaic array as claimed in claim 2, characterized in that: The threshold function is specifically: in, For small gray values, is a large gray value, is the area ratio of the image in the i-th interval, is the gray value of the i-th interval, is the mean gray value.

4. A fault detection method for a photovoltaic array according to claim 1, characterized in that: The output of the final result in combination with the PV curve data is specifically as follows: the average power in the current PV curve data of the photovoltaic panel is calculated, and compared with the average power of the photovoltaic panel in a normal state to obtain a power ratio; the power ratio is compared with the obtained area ratio, and the final result is output based on the comparison result.

5. A fault detection system for a photovoltaic array, comprising: A data acquisition module is used to acquire infrared images and PV curve data of the photovoltaic array and pre-process the PV curve data; The image segmentation module segments the infrared image using the three-threshold segmentation method to obtain the abnormal area range image and the photovoltaic panel segmentation image; The fault identification module inputs the abnormal area range image, the corresponding photovoltaic panel segmentation image and the PV curve data into the BP neural network, calculates the area ratio of the abnormal area range on the corresponding photovoltaic panel, and outputs the final result in combination with the PV curve data; Specifically, the infrared image is segmented by the three-threshold segmentation method, firstly, bilateral filtering is performed on the infrared image to obtain edge points of the image, a first threshold is obtained based on the obtained edge points, segmentation is performed by the first threshold to obtain a photovoltaic panel segmentation image, and secondary segmentation is performed based on the photovoltaic panel segmentation image to obtain an abnormal area range image; The calculation formula of the first threshold is: in, is the threshold dividing line, is the threshold segmentation function, The threshold dividing line The probability of is the value range of the threshold segmentation line, is the first threshold.

6. A fault detection system for a photovoltaic array as claimed in claim 5, characterized in that: The method of performing secondary segmentation based on the photovoltaic panel segmentation image to obtain the abnormal area range image is specifically as follows: taking the first threshold and the maximum value of the image pixel as the grayscale value interval, the grayscale value interval contains two grayscale values ​​of different sizes, and the grayscale value interval is divided into a first interval, a second interval and a third interval; determining the values ​​of the two grayscale values ​​of different sizes based on the threshold function, taking the determined small grayscale value as the second threshold, taking the determined large grayscale value as the third threshold, and performing cutting through the third threshold to obtain the abnormal area range image.

7. A computer device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the program, the steps of the method described in any one of claims 1 to 4 are implemented.

8. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the steps of the method described in any one of claims 1 to 4 are performed.

Citation Information

Patent Citations

  • Modeling method of fault discrimination model of photovoltaic module and fault discrimination method

    CN110619479A

  • Photovoltaic panel hot spot detection method, storage medium and electronic equipment

    CN116843691A

  • Hot spot detection method and device for photovoltaic solar panel based on unmanned aerial vehicle

    CN117315350A