A generative artificial intelligence power grid equipment fault monitoring method and system
Obtaining pixel confidence through semantic segmentation and dynamically adjusting filters solves the problem of power grid equipment image noise, improves the accuracy and efficiency of fault monitoring, and enhances the effect of insulator detection.
Patent Information
- Application Number
- CN202410963580.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-18
- Publication Date
- 2024-10-01
- Estimated Expiration
- 2044-07-18
AI Technical Summary
There is noise in the directly collected power grid equipment images, which affects the image quality and reduces the accuracy of power grid equipment fault monitoring.
Generative artificial intelligence technology is used to obtain the confidence of pixels through semantic segmentation, dynamically correct the size and shape of the filter, use the target filter to filter the power grid equipment image, and generate a high-quality insulator defect detection data set.
It improves the accuracy and robustness of insulator detection, enhances the generalization ability of the model, reduces the risk of over-fitting, and improves the practicality and response speed of the detection system.
Smart Images

Figure CN118521573B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to image processing technology, and in particular to a generative artificial intelligence power grid equipment fault monitoring method and system. Background Art
[0002] With the development of artificial intelligence technology, artificial intelligence technology is being used in more and more technical fields to bring convenience and support to people's work and life. Similarly, the fault monitoring of power grid equipment has gradually changed from traditional manual inspection to monitoring based on artificial intelligence. Insulators play a vital role in power grid equipment. Using artificial intelligence technology to identify whether there are defects in insulators in power grid equipment has brought certain convenience to relevant staff. In order to improve the recognition effect of insulator defects, generative artificial intelligence technology is usually used to generate insulator-related image expansion data sets.
[0003] The patent document with the publication number "CN108917613A" discloses an insulator detection method, including: using a rangefinder to measure the distance from a camera to the cross section of the insulator, and calculating the length of the cross section of the insulator; using a camera to take a picture of the insulator, and converting the color image into a grayscale image; using an edge detection method to extract the edge of the grayscale image to obtain an edge curve; calculating the length of the edge curve, and then obtaining the creepage distance of the insulator, and judging whether the insulator being tested is qualified. The present invention is based on digital image processing, and combined with a specific processing flow, the program completes the detection of whether the insulator is qualified.
[0004] However, the accuracy of judgment based solely on directly collected images is not high, because the directly collected images will contain certain noise due to the influence of dust, and factors such as wind force will cause slight changes in the collection equipment and insulators, which will also cause noise in the collected images and affect the image quality, thereby reducing the accuracy of power grid equipment fault monitoring. Summary of the invention
[0005] In order to solve the problem that noise exists in the collected images, affects the quality of the generated images, and the noise improves the quality of the images, which reduces the accuracy of power grid equipment fault monitoring, the present invention provides a power grid equipment fault monitoring method and system based on generative artificial intelligence.
[0006] In a first aspect, the present invention provides a method for monitoring power grid equipment faults using generative artificial intelligence, which adopts the following technical solution:
[0007] A generative artificial intelligence power grid equipment fault monitoring method, comprising:
[0008] Semantic segmentation is used to obtain the confidence of pixels in the power grid equipment image, where the power grid equipment image contains an insulator region, and the confidence represents the probability that the pixel belongs to the insulator region; the filter is divided into four parts, and when the filter slides on the power grid equipment image, the size of the filter is corrected according to the confidence of the pixels corresponding to each part, and the side length of the corrected filter is satisfy: , is the side length of the filter, is the mean confidence level of the pixel corresponding to the filter, For filter The mean of the confidence scores of the pixels corresponding to each part, The invention discloses a method for obtaining a filter having a plurality of edge pixels corresponding to the plurality of portions of the modified filter and a plurality of edge pixels corresponding to the plurality of portions of the modified filter. The method comprises the following steps: a first step of filtering the filter having a plurality of edge pixels corresponding to the plurality of portions of the modified filter and a second step of filtering the filter having a plurality of edge pixels corresponding to the plurality of portions of the modified filter; a second step of filtering the filter having a plurality of edge pixels corresponding to the plurality of portions of the modified filter; a second step of filtering the filter having a plurality of edge pixels corresponding to the plurality of portions of the modified filter; a third step of filtering the filter having a plurality of edge pixels corresponding to the plurality of portions of the modified filter; a fourth step of filtering the filter having a plurality of edge pixels corresponding to the plurality of portions of the modified filter; a fifth ...
[0009] The beneficial effects are: by obtaining the confidence of the pixel points through semantic segmentation, the insulator area can be identified more accurately. The introduction of confidence makes the processing process more targeted at the target area and reduces the influence of irrelevant background noise; the filter size and shape are dynamically corrected according to the confidence of the pixel points, and the adaptive processing of the local features of different images is realized. This dynamic adjustment mechanism enables the filtering process to better match the actual morphological changes of the insulator area, improve the retention and prominence of the defect details, and thus improve the accuracy and robustness of the detection; the filtered image obtained by the above method can be used to generate a data set for expanding the insulator defect detection. This data expansion technology not only increases the diversity of training data, but also may cover more potential defect modes, which helps to improve the generalization ability of the model and reduce the risk of overfitting; the dynamic adjustment of the filter size and shape through algorithm automation can efficiently process a large amount of image data, reduce manual intervention, and improve the practicality and response speed of the detection system. Further, after obtaining the target filter, it also includes: cutting the target filter according to the confidence of the pixel points corresponding to the target filter.
[0010] The beneficial effects are: cropping the target filter to retain high-confidence areas, further focusing on key defect features, and improving detection efficiency and accuracy.
[0011] Furthermore, the cropping of the target filter according to the confidence of the pixel corresponding to the target filter includes: in response to the difference between the confidence of the pixel corresponding to the target filter and the confidence of the center pixel being greater than a preset confidence difference threshold, cropping the corresponding pixel from the target filter.
[0012] The beneficial effect is that by eliminating pixels with significantly different confidence from the central area, the focus of the target filter is optimized, the feature capture of the high-confidence area is strengthened, and the accuracy and efficiency of subsequent fault monitoring are improved.
[0013] Furthermore, the cropping of the target filter according to the confidence of the corresponding pixel of the target filter includes: determining the necessity of cropping the corresponding pixel according to the difference between the confidence of the corresponding pixel of the target filter and the confidence of the center pixel, and the distance from the corresponding pixel of the target filter to the center pixel of the target filter, wherein the necessity of cropping is positively correlated with the difference between the confidence of the corresponding pixel of the target filter and the confidence of the center pixel, and is positively correlated with the distance from the corresponding pixel of the target filter to the center pixel; in response to the necessity of cropping being greater than a preset cropping threshold, cropping the corresponding pixel from the target filter.
[0014] The beneficial effect is that by comprehensively considering the difference in pixel confidence and the position from the center pixel, pixels with low confidence or far from the center are selectively removed, thereby enhancing the target filter's attention to key insulator defect areas, further improving the accuracy and efficiency of detection.
[0015] Furthermore, the necessity of cutting satisfies the following relationship:
[0016] ;
[0017] In the formula, is the necessity of cropping the jth pixel within the target filter range, is the coordinate of the center pixel of the target filter on the image, is the corresponding coordinate of the j-th pixel point in the target filter range on the image, is the confidence of the central pixel of the target filter, is the confidence of the j-th pixel within the filter range, It is an exponential function with the natural constant e as its base.
[0018] Furthermore, the specific method for obtaining the confidence of pixels in the power grid equipment image is: inputting the power grid equipment image into the semantic segmentation network, using the cross entropy loss function in the semantic segmentation to output the probability that each pixel in the power grid equipment image belongs to each area in the power grid equipment image, and taking the probability that the pixel belongs to the insulator area as the confidence of the pixel.
[0019] The beneficial effect is that through the joint use of the semantic segmentation network and the cross entropy loss function, the confidence that the pixel belongs to the insulator area is accurately quantified, the accuracy of recognition and segmentation is improved, and a reliable basis is provided for subsequent fault monitoring.
[0020] Furthermore, the adjustment amounts in the four directions respectively satisfy the following relationships:
[0021] ; ;
[0022] ; ;
[0023] In the formula, , , , They are the adjustment amounts of the target filter in the upward, downward, left and right directions, respectively. , 、 、 are the number of edge pixels in the four parts of the filter, The rounding function.
[0024] Furthermore, the shape of the modified filter is adjusted according to the adjustment amount, including: determining whether the adjustment amount in four directions is 0 respectively, when the adjustment amount in any direction is 0, the boundary of the target filter in that direction remains unchanged; when the adjustment amount in any direction is greater than 0, the height or width of the boundary of the target filter in that direction is increased by the same number of pixels as the adjustment amount in that direction; when the adjustment amount in any direction is less than 0, the height or width of the boundary of the target filter in that direction is reduced by the same number of pixels as the absolute value of the adjustment amount in that direction.
[0025] The beneficial effects are: dynamically adjusting the filter size according to actual needs and selectively optimizing the boundaries locally, which not only avoids unnecessary processing but also accurately adapts to image features, improves filtering efficiency and adaptability, and thus enhances the accuracy of power grid equipment fault detection.
[0026] In a second aspect, the present invention provides a generative artificial intelligence power grid equipment fault monitoring system, which adopts the following technical solution:
[0027] A generative artificial intelligence power grid equipment fault monitoring system comprises: a processor and a memory, wherein the memory stores computer program instructions, and when the computer program instructions are executed by the processor, a generative artificial intelligence power grid equipment fault monitoring method is implemented.
[0028] By adopting the above technical solution, the above-mentioned generative artificial intelligence power grid equipment fault monitoring method is generated into a computer program and stored in a memory to be loaded and executed by a processor, so that a terminal device is made according to the memory and the processor for easy use.
[0029] The present invention has the following technical effects:
[0030] The present invention corrects the size of the filter by the confidence of the pixel points in the power grid equipment image, determines the adjustment amount in four directions of horizontal upward, horizontal downward, horizontal left and horizontal right according to the number of edge pixel points corresponding to each part of the corrected filter, adjusts the shape of the corrected filter, and dynamically adjusts the size and shape of the filter according to the pixel confidence, thereby achieving more accurate adaptation and extraction of the insulator area and enhancing the fault identification capability; high-quality insulator defect detection data is generated based on the filtered image, thereby expanding the insulator defect detection data set, improving the effect of insulator detection, and further improving the effect of power grid equipment fault monitoring. BRIEF DESCRIPTION OF THE DRAWINGS
[0031] By reading the detailed description below with reference to the accompanying drawings, the above and other purposes, features and advantages of the exemplary embodiments of the present invention will become readily understood. In the accompanying drawings, several embodiments of the present invention are shown in an exemplary and non-restrictive manner, and the same or corresponding reference numerals represent the same or corresponding parts.
[0032] Figure 1 It is a method flow chart of a method for monitoring power grid equipment faults using generative artificial intelligence in an embodiment of the present invention.
[0033] Figure 2 It is a schematic diagram of a filter in a power grid equipment fault monitoring method of a generative artificial intelligence according to an embodiment of the present invention being divided into four parts;
[0034] Among them, ① is the first part of the filter, ② is the second part of the filter, ③ is the third part of the filter, and ④ is the fourth part of the filter.
[0035] Figure 3 It is a schematic diagram of the confidence of the pixels in the second part of the filter in a generative artificial intelligence power grid equipment fault monitoring method according to an embodiment of the present invention.
[0036] Figure 4 It is an operational schematic diagram of adjusting the shape of a corrected filter according to an adjustment amount in a power grid equipment fault monitoring method of a generative artificial intelligence in an embodiment of the present invention.
[0037] Figure 5It is a schematic diagram of the operation of clipping a target filter according to the necessity of clipping corresponding pixel points of the target filter in a generative artificial intelligence power grid equipment fault monitoring method in an embodiment of the present invention. DETAILED DESCRIPTION
[0038] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present invention.
[0039] It should be understood that when the terms "first", "second", etc. are used in the claims, descriptions, and drawings of the present invention, they are only used to distinguish different objects, rather than to describe a specific order. The terms "include" and "comprise" used in the description and claims of the present invention indicate the presence of the described features, wholes, steps, operations, elements, and / or components, but do not exclude the presence or addition of one or more other features, wholes, steps, operations, elements, components, and / or their collections.
[0040] The embodiment of the present invention discloses a method for monitoring power grid equipment faults using generative artificial intelligence, referring to Figure 1 , comprising steps S1 to S4:
[0041] A generative artificial intelligence power grid equipment fault monitoring method, characterized by comprising:
[0042] S1: Using semantic segmentation to obtain confidence of pixels in a power grid equipment image, where the power grid equipment image includes an insulator region, and the confidence represents the probability that the pixel belongs to the insulator region.
[0043] The specific method for obtaining the confidence of the pixel points in the power grid equipment image is:
[0044] The power grid equipment image is input into the semantic segmentation network, and the cross entropy loss function in the semantic segmentation is used to output the probability that each pixel in the power grid equipment image belongs to each region in the power grid equipment image, and the probability that the pixel belongs to the insulator region is used as the confidence of the pixel.
[0045] The specific content of the semantic segmentation network is as follows:
[0046] The input of the semantic segmentation network is the power grid equipment image containing the insulator area, and the output is the confidence of the probability that the pixel belongs to the insulator area. The data set of the semantic segmentation network is the data set composed of all pixels in the power grid equipment image. All pixels in the data set that belong to the insulator area are marked as 1, and all pixels in the data set that do not belong to the insulator area are marked as 0; the loss function of the semantic segmentation network is the cross entropy loss function.
[0047] S2: Divide the filter into four parts. When the filter slides on the power grid equipment image, the size of the filter is corrected according to the confidence of the corresponding pixel points of each part.
[0048] Figure 2 It means that the filter is divided into four parts. The dotted line divides the filter into four parts. The confidence of the pixels on the symmetry axis of the dotted line is evenly distributed to the corresponding parts to calculate the mean.
[0049] For each part of the filter, if only a portion of the corresponding pixels in the filter are in that part of the filter, then when calculating the mean of the corresponding confidence of that part of the filter, the proportion of the pixels in that part of the filter is multiplied by the corresponding confidence to calculate the mean of the confidence of that part of the filter. Figure 3 represents the second part of the filter, Figure 3 The value at each position in represents the confidence of each pixel. Figure 3 The medium gray part indicates that only a part of the pixels at the corresponding position are in the second part of the filter. Figure 3 The mean of the confidence in the second part is ).
[0050] The side length of the modified filter Satisfies the following relationship:
[0051] ;
[0052] In the formula, is the side length of the filter, is the mean confidence level of the pixel corresponding to the filter, For filter The mean of the confidence scores of the pixels corresponding to each part, is the ceiling function, () is the maximum value function, () is the minimum function.
[0053] The larger the value, the more likely the filter is currently located in the insulator area. In this case, the filter size should be reduced to retain the image details near the insulator. The smaller the value, the more likely the filter is to be located outside the insulator. In this case, the size of the filter should be increased to remove possible noise. When the filter slides to the edge of the insulator, May be relatively small, simply use Adjusting the filter size may cause the filter to blur the details of the insulator edge when processing the insulator edge due to the smoothing effect of the filter, which may affect the quality of the insulator in the image. right Make corrections when The larger the value, the more likely it is that there are both insulator areas and background areas around the central pixel. At this time, the filter is more likely to be at the edge of the insulator in the image, and the size of the filter should be reduced. When the value is smaller, it means that the filter is more likely to be in other areas outside the insulator area in the image or inside the insulator area. Therefore, by right Further adjustments are made when The larger the filter, the more likely it is to be in the insulator area, and the smaller the filter size should be. The smaller the filter, the more likely it is that it will be outside the insulator area, and the larger the filter size should be. right The range of action is to subtract 0.5 from this value so that The change of is more flexible and can change according to the confidence level corresponding to the pixel point; the multiplication by 2 and then division by 2 plus 1 in the formula is to limit the size of the filter to an odd number, which is convenient for calculation.
[0054] S3: Adjust the shape of the modified filter according to the adjustment amounts in the four horizontal directions to obtain a target filter.
[0055] The number of edge pixel points corresponding to each part of the modified filter determines the adjustment amount in four directions: horizontally upward, horizontally downward, horizontally leftward and horizontally rightward. The adjustment amount in each of the directions is positively correlated with the difference between the mean value of the number of edge pixel points corresponding to the four parts of the modified filter and the mean value of the number of edge pixel points corresponding to the two parts in the direction; the shape of the modified filter is adjusted according to the adjustment amount to obtain the target filter.
[0056] The adjustment amounts in the four directions respectively satisfy the following relationships:
[0057] ; ;
[0058] ; ;
[0059] In the formula, , , , They are the adjustment amounts of the target filter in the upward, downward, left and right directions, respectively. , 、 、 are the number of edge pixels in the four parts of the filter, The rounding function.
[0060] The edge complexity of the entire image portion corresponding to the filter, , , , These are the edge complexity of the upper, left, lower, and right half of the filter respectively; The larger the value, the simpler or even non-existent edge of the image corresponding to the upper half of the filter, the more the filter should be expanded from the top to improve the denoising effect of the filter on the image. The smaller the value, the more complex the edge of the image corresponding to the upper half of the filter, the more the filter should be contracted from the top to reduce the smoothing effect of the filter on the complex edge area of the image. , and The adjustment principles for the left, bottom, and right sides of the filter are similar and will not be elaborated here.
[0061] The shape of the modified filter is adjusted according to the adjustment amount, including:
[0062] Determine whether the adjustment amount in the four directions is 0 respectively. When the adjustment amount in any direction is 0, the boundary of the target filter in that direction remains unchanged; when the adjustment amount in any direction is greater than 0, the height or width of the boundary of the target filter in that direction increases by the same number of pixels as the adjustment amount in that direction; when the adjustment amount in any direction is less than 0, the height or width of the boundary of the target filter in that direction decreases by the same number of pixels as the absolute value of the adjustment amount in that direction.
[0063] Figure 4 It shows that the shape of the modified filter is adjusted according to the adjustment amount. , , , Take the shape change of the filter when φ is taken as an example, where the black filled part is the center pixel of the filter, the dotted part corresponds to the reduced part of the filter, and the gray filled part is the expanded part of the filter.
[0064] Further, after obtaining the target filter, it also includes:
[0065] The target filter is cropped according to the confidence of the pixel points corresponding to the target filter.
[0066] In one embodiment, the target filter is clipped according to the confidence of the pixel points corresponding to the target filter, including:
[0067] In response to the difference between the confidence of the pixel corresponding to the target filter and the confidence of the central pixel being greater than a preset confidence difference threshold, the corresponding pixel is cropped from the target filter.
[0068] Implementers can set the confidence difference threshold based on actual implementation circumstances.
[0069] In another embodiment, the target filter is clipped according to the confidence of the pixel points corresponding to the target filter, including:
[0070] According to the difference between the confidence of the pixel corresponding to the target filter and the confidence of the central pixel, and the distance from the pixel corresponding to the target filter to the central pixel of the target filter, the necessity of cropping the corresponding pixel is determined, wherein the necessity of cropping is positively correlated with the difference between the confidence of the pixel corresponding to the target filter and the confidence of the central pixel, and is positively correlated with the distance from the pixel corresponding to the target filter to the central pixel;
[0071] In response to the necessity of clipping being greater than a preset clipping threshold, the corresponding pixel point is clipped from the target filter.
[0072] Implementers can set the trimming threshold based on actual implementation conditions.
[0073] The necessity of cutting satisfies the following relationship:
[0074] ;
[0075] In the formula, is the necessity of cropping the jth pixel within the target filter range, is the coordinate of the center pixel of the target filter on the image, is the corresponding coordinate of the j-th pixel point in the target filter range on the image, is the confidence of the central pixel of the target filter, is the confidence of the j-th pixel within the filter range, It is an exponential function with the natural constant e as its base.
[0076] Represents the confidence difference between the central pixel and the j-th pixel in the target filter range when the target filter processes the central pixel of the image. The larger the value, the more likely it is that the central pixel and the j-th pixel in the target filter range do not belong to the insulator area at the same time. In this case, the j-th pixel in the filter range should be cropped from the target filter. The smaller the value, the more likely it is that the central pixel and the j-th pixel in the target filter range belong to the insulator or the insulator area at the same time. In this case, the j-th pixel in the target filter range should be retained. However, the confidence difference may be affected by image noise interference. For example, noise points in the image may cause a large difference in confidence between two pixels, but in fact the two pixels may belong to the same area in the image, resulting in misjudgment. Therefore, the spatial distance between pixels is used to Make corrections. It indicates the physical distance between the central pixel and the j-th pixel in the target filter range when the target filter processes the central pixel of the image. The larger the value, the greater the physical distance between the two pixels, and the more likely the two pixels belong to different areas in the image. The smaller the value, the smaller the physical distance between the two pixels, and the more likely the two pixels belong to the same insulator area or other areas in the image.
[0077] For example, when the clipping threshold is 0.5, Figure 5 It indicates that the target filter is cropped according to the necessity of cropping the corresponding pixels of the target filter. The black-filled pixels in the figure are the center pixels of the target filter, and the gray-filled pixels are the cropped pixels.
[0078] S4: Filter the power grid equipment image through the target filter to obtain a filtered image, and generate an expanded insulator defect detection data set based on the filtered image to complete the fault monitoring of the power grid equipment.
[0079] Generative artificial intelligence technology is used to generate images with various backgrounds containing insulators through filtering images, which are used to expand the insulator defect detection data set; the expanded insulator defect detection data set is then used to train the neural network, so that the neural network can better identify the insulators and the defects of the insulators in the image, and improve the recognition effect of the damage and missing of the insulators. When the insulator is identified to be defective, the relevant staff will be sent to replace the insulator. Insulators are a vital part of power grid equipment, and the detection of insulators is also an important part of the fault monitoring process of power grid equipment. Therefore, the present invention improves the recognition effect of the damage and missing of the insulators, and further improves the effect of fault monitoring of power grid equipment.
[0080] An embodiment of the present invention also discloses a generative artificial intelligence power grid equipment fault monitoring system, including a processor and a memory, wherein the memory stores computer program instructions, and when the computer program instructions are executed by the processor, a generative artificial intelligence power grid equipment fault monitoring method according to the present invention is implemented.
[0081] The above system also includes other components well known to those skilled in the art, such as a communication bus and a communication interface, and their configuration and functions are known in the art, so they will not be described in detail here.
[0082] In the present invention, the aforementioned memory may be any tangible medium containing or storing a program that can be used by or in conjunction with an instruction execution system, apparatus, or device. For example, a computer-readable storage medium may be any suitable magnetic storage medium or magneto-optical storage medium, or any other medium that can be used to store the required information and can be accessed by an application, module, or both. Any such computer storage medium may be part of the device or accessible or connectable to the device.
[0083] Although this specification has shown and described a number of embodiments of the present invention, it will be apparent to those skilled in the art that such embodiments are provided by way of example only. Those skilled in the art will conceive of many modifications, changes and alternatives without departing from the ideas and spirit of the present invention. It should be understood that in the practice of the present invention, various alternatives to the embodiments of the present invention described herein may be employed.
[0084] The above are all preferred embodiments of the present invention, and are not intended to limit the protection scope of the present invention. Therefore, any equivalent changes made based on the structure, shape, and principle of the present invention should be included in the protection scope of the present invention.
Claims
1. A generative artificial intelligence power grid equipment fault monitoring method, characterized in that: include: Semantic segmentation is used to obtain the confidence of pixels in the power grid equipment image. The power grid equipment image contains an insulator area. The confidence indicates the probability that the pixel belongs to the insulator area. The filter is divided into four parts. When the filter slides on the power grid equipment image, the size of the filter is corrected according to the confidence of the corresponding pixel points of each part. The side length of the corrected filter is satisfy: , is the side length of the filter, is the mean of the confidence of the pixels on the power grid equipment image corresponding to the four parts of the filter, For filter The mean of the confidence scores of the pixels corresponding to each part, is the ceiling rounding function; The number of edge pixels corresponding to each part of the modified filter determines the adjustment amount in four directions: horizontally upward, horizontally downward, horizontally leftward, and horizontally rightward, satisfying the relationship: ; ; ; ; In the formula, , , , They are the adjustment amounts of the target filter in the upward, downward, left and right directions, respectively. , 、 、 are the number of edge pixels in the four parts of the filter, is a rounding function, the adjustment amount in each direction is positively correlated with the difference between the mean of the number of edge pixels corresponding to the four parts of the modified filter and the mean of the number of edge pixels corresponding to the two parts in each direction; the shape of the modified filter is adjusted according to the adjustment amount to obtain the target filter; The power grid equipment image is filtered by a target filter to obtain a filtered image, and a data set for expanding insulator defect detection is generated based on the filtered image to facilitate fault monitoring of the power grid equipment.
2. The method for monitoring power grid equipment faults based on generative artificial intelligence according to claim 1, characterized in that: After obtaining the target filter, the method further includes: The target filter is cropped according to the confidence of the pixel points corresponding to the target filter.
3. The method for monitoring power grid equipment faults based on generative artificial intelligence according to claim 2, characterized in that: The step of clipping the target filter according to the confidence of the pixel points corresponding to the target filter comprises: In response to the difference between the confidence of the pixel corresponding to the target filter and the confidence of the central pixel being greater than a preset confidence difference threshold, the corresponding pixel is cropped from the target filter.
4. The method for monitoring power grid equipment faults based on generative artificial intelligence according to claim 2, characterized in that: The step of clipping the target filter according to the confidence of the pixel points corresponding to the target filter comprises: According to the difference between the confidence of the pixel corresponding to the target filter and the confidence of the central pixel, and the distance from the pixel corresponding to the target filter to the central pixel of the target filter, the necessity of cropping the corresponding pixel is determined, wherein the necessity of cropping is positively correlated with the difference between the confidence of the pixel corresponding to the target filter and the confidence of the central pixel, and is positively correlated with the distance from the pixel corresponding to the target filter to the central pixel; In response to the necessity of clipping being greater than a preset clipping threshold, the corresponding pixel point is clipped from the target filter.
5. The method for monitoring power grid equipment faults based on generative artificial intelligence according to claim 4, characterized in that: The necessity of cutting satisfies the following relationship: ; In the formula, is the necessity of cropping the jth pixel within the target filter range, is the coordinate of the center pixel of the target filter on the image, is the corresponding coordinate of the j-th pixel point in the target filter range on the image, is the confidence of the central pixel of the target filter, is the confidence of the j-th pixel within the filter range, It is an exponential function with the natural constant e as its base.
6. The method for monitoring power grid equipment faults based on generative artificial intelligence according to claim 1, characterized in that: The specific method for obtaining the confidence of the pixel points in the power grid equipment image is: The power grid equipment image is input into the semantic segmentation network, and the cross entropy loss function in the semantic segmentation is used to output the probability that each pixel in the power grid equipment image belongs to each region in the power grid equipment image, and the probability that the pixel belongs to the insulator region is used as the confidence of the pixel.
7. The method for monitoring power grid equipment faults based on generative artificial intelligence according to claim 1, characterized in that: The shape of the modified filter is adjusted according to the adjustment amount, including: Determine whether the adjustment amount in the four directions is 0 respectively. When the adjustment amount in any direction is 0, the boundary of the target filter in that direction remains unchanged; when the adjustment amount in any direction is greater than 0, the height or width of the boundary of the target filter in that direction increases by the same number of pixels as the adjustment amount in that direction; when the adjustment amount in any direction is less than 0, the height or width of the boundary of the target filter in that direction decreases by the same number of pixels as the absolute value of the adjustment amount in that direction.
8. A generative artificial intelligence power grid equipment fault monitoring system, characterized in that: include: A processor and a memory, wherein the memory stores computer program instructions, and when the computer program instructions are executed by the processor, a method for monitoring power grid equipment faults based on generative artificial intelligence according to any one of claims 1 to 7 is implemented.
