Hydropower station equipment defect detection method, device, equipment and storage medium
Through the improved defect detection model combined with the improved YOLOv8 architecture and SE attention mechanism, the problem of low accuracy of insulator detection and inability to detect internal defects in hydropower station transmission lines is solved, and higher accuracy and more comprehensive insulator defect detection are achieved.
Patent Information
- Application Number
- CN202410896110.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-05
- Publication Date
- 2024-11-29
AI Technical Summary
The insulator defect detection of existing hydropower station transmission lines has problems such as low detection accuracy and inability to measure internal defects, especially when facing small defects and internal aging damage caused by usage time, temperature changes and strong winds.
The surface defect detection model based on the improved YOLOv8 architecture and the insulator internal defect detection model based on the defect formation quantization value are adopted. Combined with the SE attention mechanism, the insulator image feature information is extracted and matched through the defect influencing factor library and the internal defect detection model library. , generate defect detection results.
It improves the detection ability of small defects in insulator images, can more accurately measure the impact of usage time and environmental factors on internal defects of insulators, and provides a more comprehensive detection solution.
Smart Images

Figure CN119048415A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of defect detection, and in particular to a method, device, equipment and storage medium for detecting defects in hydropower station equipment. Background Art
[0002] Insulators are usually installed on the transmission lines of hydropower stations. Their main function is to firmly support and fix the current-carrying conductors and to form good insulation between the current-carrying conductors and the ground to prevent current leakage and short circuits. In order to ensure the safe operation of the transmission lines of hydropower stations, regular maintenance and inspections are required to ensure that the transmission lines of hydropower stations always maintain sufficient stability and reliability.
[0003] However, the existing inspection of insulator defects in hydropower station transmission lines usually adopts manual detection and judgment after image acquisition, which has the following problems: (1) Low detection accuracy: When faced with small defects such as cracks or minor damage on insulators, manual inspection has the problem of less than ideal detection accuracy; (2) Unable to measure the impact of internal defects: Due to the special location of hydropower stations and their transmission lines, as insulators are operated and used for a long time, the insulator materials will be affected by factors such as service time, temperature changes and strong winds, causing hard-to-detect aging and potential damage inside. After reaching the critical value, damage will occur, which will affect the safe operation of the hydropower station transmission line. Manual inspection based on images can only detect surface damage, and cannot more deeply measure the internal damage caused by service time and environmental factors. The comprehensiveness of insulator defect detection is limited.
[0004] Therefore, how to improve the ability to identify small defects in insulators of hydropower station transmission lines and enhance the comprehensiveness of insulator defect detection is a technical problem that needs to be solved urgently. Summary of the invention
[0005] The main purpose of the present invention is to provide a method, device, equipment and storage medium for detecting defects in hydropower station equipment, aiming to solve the above-mentioned problems.
[0006] To achieve the above object, the present invention provides a method for detecting defects in hydropower station equipment, comprising the following steps: Obtain several images of insulators with defects and construct an image sample of insulators in a hydropower station; Extracting image feature information of each insulator image in the hydropower station insulator image sample, inputting the image feature information of each insulator image into the constructed image detection model for training and verification, and obtaining a trained surface defect detection model; Upon receiving a patrol defect detection request, extracting an insulator patrol image and insulator identification information of a target insulator in the patrol defect detection request; Based on the insulator identification information, a defect influencing factor set and an internal defect detection model of a target insulator are matched in a defect influencing factor library and an internal defect detection model library; A defect detection result of a target insulator is generated according to a first detection result of the insulator inspection image in the surface defect detection model and a second detection result of the defect influencing factor set in the internal defect detection model.
[0007] Optionally, the step of obtaining a plurality of defective insulator images and constructing a sample of hydropower station insulator images specifically includes: Obtain several insulator images collected by inspectors when performing historical inspection tasks of transmission lines around hydropower stations; According to the input annotation information for each insulator image, the plurality of insulator images are divided into a first insulator image with defects and a second insulator image without defects; Based on all first insulator images with defects, a hydropower station insulator image sample is constructed.
[0008] Optionally, extracting image feature information of each insulator image in the hydropower station insulator image sample, inputting the image feature information of each insulator image into the constructed image detection model for training and verification, and obtaining the trained surface defect detection model step specifically includes: Randomly dividing the hydropower station insulator image samples into training samples and verification samples; Extracting image feature information of the insulator image in the training sample, and using the image feature information to train the constructed image detection model; The insulator images in the verification samples are used to verify the detection accuracy of the image detection model obtained through training and to adjust the model until the detection accuracy meets the verification index, thereby obtaining a trained surface defect detection model.
[0009] Optionally, the hydropower station equipment defect detection method further includes: Build an image detection model based on the YOLOv8 architecture, and insert the SE attention mechanism structure on the basis of the YOLOv8 architecture; wherein, inserting the SE attention mechanism structure specifically includes: For the given input: , perform a mapping to get the output: ; Perform a global average pooling on the given input U, compress the corresponding spatial information (H*W) on each channel into 1 value in the corresponding channel, convert the dimension to 1*1*C, and retain the channel information. The expression is: ; The obtained Z passes through two fully connected layers, and the ReLu activation function is operated after the first fully connected layer, and the sigmoid activation function is operated after the second fully connected layer to obtain the weight value S. In order to reduce the increase in the number of parameters caused by the fully connected layer, the hyperparameter r is introduced to reduce the parameters generated by the first fully connected layer; where W1 and W2 represent fully connected layers, σ and δ represent two activation functions respectively, and the expression is: ; Use the obtained weight value S to perform a dot product operation on the original feature map to get the output , multiply the spatial information in U by the weight on the corresponding channel to complete the recalibration of the feature map. The expression is: ; Insert the structure corresponding to the above SE attention mechanism processing process into the backbone feature extraction network of the YOLOv8 architecture.
[0010] Optionally, based on the insulator identification information, the step of matching a defect influencing factor set and an internal defect detection model of a target insulator in a defect influencing factor library and an internal defect detection model library specifically includes: Using the insulator identification information, matching a defect influencing factor set of a target insulator in a pre-built defect influencing factor library; The defect influencing factor library is configured to store identification information of each insulator in the inspection area and a defect influencing factor set corresponding to each insulator collected by the defect influencing factor collection component, wherein the defect influencing factor set includes the service life, temperature parameters and wind speed parameters of the insulator; Using the insulator identification information, matching and obtaining an internal defect detection model of a target insulator in a pre-built internal defect detection model library; The internal defect detection model library is configured to store internal defect detection models for different types of insulators provided by insulator suppliers, and the internal defect detection models include a quantified value of insulator defect formation and a trigger weight value of each defect influencing factor.
[0011] Optionally, the hydropower station equipment defect detection method further includes: The insulator supplier performs defect formation tests for each type of insulator for service time test actions, temperature influence test actions and wind speed influence test actions; The usage time test action is configured as follows: performing continuous operation tests on each type of insulator, and recording the usage time of each type of insulator when it is damaged; the temperature impact test action is configured as follows: performing continuous operation tests of alternating cycles of preset high temperature environment and preset low temperature environment on each type of insulator, and recording the number of alternations when each type of insulator is damaged; the wind speed impact test action is configured as follows: performing continuous operation tests of preset wind strength on each type of insulator, and recording the number of operations of the preset wind strength when each type of insulator is damaged; Based on the test results of the use time test action, the temperature impact test action and the wind speed impact test action, the insulator defect formation quantification value of each type of insulator and the trigger weight value of each defect influencing factor are generated, and the internal defect detection model of each type of insulator is constructed; Among them, the insulator defect formation quantization value of each type of insulator is configured as a predefined defect formation target quantization value, the trigger weight value of the usage time is configured as a unit time trigger quantization value obtained by dividing the defect formation target quantization value by the usage time, the trigger weight of the temperature parameter is configured as a unit alternation number trigger quantization value obtained by dividing the defect formation target quantization value by the alternation number, and the trigger weight of the wind speed parameter is configured as a unit number trigger quantization value obtained by dividing the defect formation target quantization value by the operation number.
[0012] Optionally, the step of generating a defect detection result of a target insulator according to a first detection result of the insulator inspection image in the surface defect detection model and a second detection result of the defect influencing factor set in the internal defect detection model specifically includes: Inputting the insulator inspection image into the surface defect detection model to obtain a first detection result, and determining whether the first detection result indicates that a defect exists; If so, output the detection result of the target insulator having defects; if not, input the defect influencing factor set into the internal defect detection model of the corresponding type of insulator, and based on the insulator defect formation quantization value and the trigger weight value of each defect influencing factor in the internal defect detection model, determine whether the sum of the trigger weight value of each defect influencing factor and the weight of the defect influencing factor set exceeds the insulator defect formation quantization value. If so, output the detection result of the target insulator having defects.
[0013] In addition, in order to achieve the above-mentioned purpose, the present invention also provides a hydropower station equipment defect detection device, comprising: A construction module, used to obtain a number of insulator images with defects and construct an image sample of the insulator of the hydropower station; A training module is used to extract image feature information of each insulator image in the hydropower station insulator image sample, input the image feature information of each insulator image into the constructed image detection model for training and verification, and obtain a trained surface defect detection model; An extraction module, configured to extract an insulator inspection image and insulator identification information of a target insulator in the inspection defect detection request when receiving the inspection defect detection request; A matching module, used for matching a defect influencing factor set and an internal defect detection model of a target insulator in a defect influencing factor library and an internal defect detection model library based on the insulator identification information; The detection module is used to generate a defect detection result of the target insulator according to a first detection result of the insulator inspection image in the surface defect detection model and a second detection result of the defect influencing factor set in the internal defect detection model.
[0014] In addition, in order to achieve the above-mentioned purpose, the present invention also provides a hydropower station equipment defect detection device, which includes: a memory, a processor, and a hydropower station equipment defect detection program stored in the memory and executable on the processor, and the hydropower station equipment defect detection program, when executed by the processor, implements the steps of the hydropower station equipment defect detection method as described above.
[0015] In addition, in order to achieve the above-mentioned purpose, the present invention also provides a storage medium, on which a hydropower station equipment defect detection program is stored. When the hydropower station equipment defect detection program is executed by a processor, the steps of the above-mentioned hydropower station equipment defect detection method are implemented.
[0016] The beneficial effects of the present invention are as follows: a method, device, equipment and storage medium for hydropower station equipment defect detection are proposed, and a surface defect detection model based on an improved YOLOv8 architecture and an insulator internal defect detection model based on a defect formation quantization value are constructed, while improving the ability to detect small defects in insulator images, the influence of usage time and environmental factors on the internal defects of insulators is measured, and a hydropower station equipment defect detection solution with higher detection accuracy and more comprehensive detection capability is provided. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] Figure 1 A schematic diagram of the device structure of the hardware operating environment involved in the embodiment of the present invention; Figure 2 It is a schematic diagram of the flow chart of the method for detecting defects in hydropower station equipment according to an embodiment of the present invention; Figure 3 Schematic diagram of the principle of the SE attention mechanism involved in an embodiment of the present invention; Figure 4This is a schematic diagram of the original network structure of the YOLOv8 architecture; Figure 5 A schematic diagram of the network architecture of the OLOv8 architecture that introduces the SE attention mechanism; Figure 6 It is a schematic diagram of a hydropower station equipment defect detection device according to an embodiment of the present invention.
[0018] The realization of the purpose, functional features and advantages of the present invention will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION
[0019] In order to make the purpose, technical solution and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention.
[0020] like Figure 1 As shown, Figure 1 It is a schematic diagram of the device structure of the hardware operating environment involved in the embodiment of the present invention.
[0021] like Figure 1 As shown, the device may include: a processor 1001, such as a CPU, a communication bus 1002, a user interface 1003, a network interface 1004, and a memory 1005. Among them, the communication bus 1002 is used to realize the connection and communication between these components. The user interface 1003 may include a display screen (Display), an input unit such as a keyboard (Keyboard), and the optional user interface 1003 may also include a standard wired interface and a wireless interface. The network interface 1004 may optionally include a standard wired interface and a wireless interface (such as a WI-FI interface). The memory 1005 may be a high-speed RAM memory, or a stable memory (non-volatile memory), such as a disk memory. The memory 1005 may optionally be a storage device independent of the aforementioned processor 1001.
[0022] Those skilled in the art will understand that Figure 1 The structure of the device shown in the figure does not constitute a limitation of the device, and may include more or less components than shown in the figure, or combine certain components, or arrange the components differently.
[0023] like Figure 1 As shown, the memory 1005 as a computer storage medium may include an operating system, a network communication module, a user interface module, and a hydropower station equipment defect detection program.
[0024] exist Figure 1In the terminal shown, the network interface 1004 is mainly used to connect to the backend server and perform data communication with the backend server; the user interface 1003 is mainly used to connect to the client (user end) and perform data communication with the client; and the processor 1001 can be used to call the hydropower station equipment defect detection program stored in the memory 1005 and perform the following operations: Obtain several images of insulators with defects and construct an image sample of insulators in a hydropower station; Extracting image feature information of each insulator image in the hydropower station insulator image sample, inputting the image feature information of each insulator image into the constructed image detection model for training and verification, and obtaining a trained surface defect detection model; Upon receiving a patrol defect detection request, extracting an insulator patrol image and insulator identification information of a target insulator in the patrol defect detection request; Based on the insulator identification information, a defect influencing factor set and an internal defect detection model of a target insulator are matched in a defect influencing factor library and an internal defect detection model library; A defect detection result of a target insulator is generated according to a first detection result of the insulator inspection image in the surface defect detection model and a second detection result of the defect influencing factor set in the internal defect detection model.
[0025] The specific embodiments of the present invention applied to the device are basically the same as the embodiments of the method for detecting defects in hydropower station equipment described below, and are not described in detail here.
[0026] The embodiment of the present invention provides a method for detecting defects in hydropower station equipment, referring to Figure 2 , Figure 2 It is a schematic diagram of the flow chart of an embodiment of a method for detecting defects in hydropower station equipment according to the present invention.
[0027] In this embodiment, the hydropower station equipment defect detection method includes the following steps: S100: Acquire a number of defective insulator images to construct an image sample of the hydropower station insulator; S200: extracting image feature information of each insulator image in the hydropower station insulator image sample, inputting the image feature information of each insulator image into the constructed image detection model for training and verification, and obtaining a trained surface defect detection model; S300: upon receiving a patrol defect detection request, extracting an insulator patrol image and insulator identification information of a target insulator in the patrol defect detection request; S400: Based on the insulator identification information, matching a defect influencing factor set and an internal defect detection model of a target insulator in a defect influencing factor library and an internal defect detection model library; S500: Generate a defect detection result of a target insulator according to a first detection result of the insulator inspection image in the surface defect detection model and a second detection result of the defect influencing factor set in the internal defect detection model.
[0028] It should be noted that the existing inspection of insulator defects on hydropower station transmission lines usually adopts manual detection and judgment after image acquisition, which has the following problems: (1) Low detection accuracy: When faced with small defects such as cracks or minor damage on insulators, manual inspection has the problem of less than ideal detection accuracy; (2) Unable to measure the impact of internal defects: Due to the special location of hydropower stations and their transmission lines, with the long-term operation and use of insulators, the insulator materials will be affected by factors such as service time, temperature changes and strong winds, causing hard-to-detect aging and potential damage inside. After reaching the critical value, damage will occur, which will affect the safe operation of the hydropower station transmission line. Manual inspection based on images can only detect surface damage, and cannot more deeply measure the internal damage caused by service time and environmental factors. The comprehensiveness of insulator defect detection is limited.
[0029] In order to solve the above problems, this embodiment constructs a surface defect detection model based on the improved YOLOv8 architecture and an insulator internal defect detection model based on the defect formation quantization value. While improving the ability to detect small defects in insulator images, it measures the impact of usage time and environmental factors on internal defects of insulators, and provides a hydropower station equipment defect detection solution with higher detection accuracy and more comprehensive detection capabilities.
[0030] In a preferred embodiment, the steps of obtaining a plurality of defective insulator images and constructing a sample of hydropower station insulator images specifically include: S101: Acquire a number of insulator images collected by inspection personnel when performing historical inspection tasks of transmission lines around the hydropower station; S102: dividing the plurality of insulator images into first insulator images with defects and second insulator images without defects according to the input annotation information for each insulator image; S103: Constructing a hydropower station insulator image sample based on all first insulator images with defects.
[0031] Furthermore, the image feature information of each insulator image in the hydropower station insulator image sample is extracted, and the image feature information of each insulator image is input into the constructed image detection model for training and verification, so as to obtain the trained surface defect detection model step, which specifically includes: S201: randomly dividing the hydropower station insulator image samples into training samples and verification samples; S202: extracting image feature information of the insulator image in the training sample, and using the image feature information to train the constructed image detection model; S203: Using the insulator image in the verification sample, the trained image detection model is verified for detection accuracy and the model is adjusted until the detection accuracy meets the verification index, thereby obtaining a trained surface defect detection model.
[0032] In this embodiment, the images of the hydropower station insulator image samples are collected by the inspection personnel when performing the historical inspection of the transmission lines around the hydropower station. Then, the insulator images with defects are extracted based on the manual annotation information to construct the final hydropower station insulator image samples. After that, the constructed image detection model is used to perform model training according to the image feature information of the insulator image until the accuracy index is met, and the final surface defect monitoring model is obtained.
[0033] In practical applications, the hydropower station equipment defect detection method further includes: Build an image detection model based on the YOLOv8 architecture, and insert the SE attention mechanism structure on the basis of the YOLOv8 architecture; wherein, inserting the SE attention mechanism structure specifically includes: A1: For the given input: , perform a mapping to get the output: ; That is, U = Ftr (X), in fact, this step is to perform a normal convolution operation; A2: Perform a global average pooling on the given input U, compress the corresponding spatial information (H*W) on each channel into 1 value in the corresponding channel. At this time, 1 pixel represents a channel, and the dimension is converted to 1*1*C, becoming a vector. This step squeezes the space and retains the channel information. The expression is: ; A3: The obtained Z is passed through two fully connected layers. After the first fully connected layer, the ReLu activation function is operated, and after the second fully connected layer, the sigmoid activation function is operated to obtain the weight value S. In order to reduce the increase in the number of parameters caused by the fully connected layer, the hyperparameter r is introduced to reduce the parameters generated by the first fully connected layer; where W1 and W2 represent fully connected layers, σ and δ represent two activation functions respectively, and the expression is: ; A4: Based on the typical attention mechanism calculation, the weight value S is used to perform a dot product operation on the original feature map to obtain the output , multiply the spatial information in U by the weight on the corresponding channel to complete the recalibration of the feature map. The expression is: ; A5: Inserting the structure corresponding to the above SE attention mechanism processing process into the backbone feature extraction network of the YOLOv8 architecture can achieve a plug-and-play effect.
[0034] In this embodiment, the YOLOv8 architecture is used to build an image detection model. At the same time, in order to improve the model's detection ability for small targets, the SE attention mechanism is inserted into the YOLOv8 backbone feature extraction network Backbone, such as Figure 3 As shown in the figure, the principle of the channel-domain attention mechanism SE is demonstrated. The improved SE network implements the attention mechanism through two steps: compression and excitation. In the compression step, the SE network globally pools the feature map of each channel and compresses it into a scalar. In the excitation step, the SE network converts the compressed feature vector into a weight vector through a fully connected layer, which is used to weight the feature map of each channel. By introducing the SE module, CNN can adaptively learn the importance of each channel, thereby improving the performance of the model. The SE network has achieved good results in image classification and target detection tasks. Figure 4 and Figure 5 As shown in the figure, the original network structure of the YOLOv8 architecture and the network architecture with the SE attention mechanism are shown. The dotted box in the figure indicates the location where the attention module is added, which is after the SPPF fast pyramid pooling layer in the backbone network. The algorithm model is based on the SE attention mechanism to enhance the backbone feature extraction network. Compared with the original network based on the CNN backbone feature extraction network, the latter only uses the information provided by the target positioning area, has dynamic attention and global modeling capabilities while considering long-range dependencies, and performs well.
[0035] In a preferred embodiment, based on the insulator identification information, the step of matching a defect influencing factor set and an internal defect detection model of a target insulator in a defect influencing factor library and an internal defect detection model library specifically includes: S401: using the insulator identification information, matching a defect influencing factor set of a target insulator in a pre-built defect influencing factor library; The defect influencing factor library is configured to store identification information of each insulator in the inspection area and a defect influencing factor set corresponding to each insulator collected by the defect influencing factor collection component, wherein the defect influencing factor set includes the service life, temperature parameters and wind speed parameters of the insulator; S402: using the insulator identification information, matching and obtaining an internal defect detection model of a target insulator in a pre-built internal defect detection model library; The internal defect detection model library is configured to store internal defect detection models for different types of insulators provided by insulator suppliers, and the internal defect detection models include a quantified value of insulator defect formation and a trigger weight value of each defect influencing factor.
[0036] Furthermore, the hydropower station equipment defect detection method further includes: S411: Insulator suppliers shall perform defect formation tests for each type of insulator for service time test action, temperature effect test action and wind speed effect test action; Among them, the usage time test action is configured as: performing continuous operation tests on each type of insulator, and recording the usage time of each type of insulator when it is damaged; the temperature impact test action is configured as: performing continuous operation tests of alternating cycles of preset high temperature environment and preset low temperature environment on each type of insulator, and recording the number of alternations when each type of insulator is damaged; the wind speed impact test action is configured as: performing continuous operation tests of preset wind strength on each type of insulator, and recording the number of operations of preset wind strength when each type of insulator is damaged; it should be noted that since it takes a very long time for the insulator to perform the usage time test action alone, the unit time trigger quantization value is very small, and the influence of the usage time can be ignored when testing the temperature parameters and wind strength parameters.
[0037] S412: Based on the test results of the use time test action, the temperature impact test action and the wind speed impact test action, a quantitative value of insulator defect formation of each type of insulator and a trigger weight value of each defect influencing factor are generated, and an internal defect detection model of each type of insulator is constructed; Among them, the insulator defect formation quantization value of each type of insulator is configured as a predefined defect formation target quantization value, the trigger weight value of the usage time is configured as a unit time trigger quantization value obtained by dividing the defect formation target quantization value by the usage time, the trigger weight of the temperature parameter is configured as a unit alternation number trigger quantization value obtained by dividing the defect formation target quantization value by the alternation number, and the trigger weight of the wind speed parameter is configured as a unit number trigger quantization value obtained by dividing the defect formation target quantization value by the operation number.
[0038] On this basis, the step of generating a defect detection result of the target insulator according to the first detection result of the insulator inspection image in the surface defect detection model and the second detection result of the defect influencing factor set in the internal defect detection model specifically includes: S501: Inputting the insulator inspection image into the surface defect detection model to obtain a first detection result, and determining whether the first detection result indicates that a defect exists; S502: If yes, output the detection result of the target insulator having defects; if not, input the defect influencing factor set into the internal defect detection model of the corresponding type of insulator, and based on the insulator defect formation quantization value and the trigger weight value of each defect influencing factor in the internal defect detection model, determine whether the sum of the trigger weight value of each defect influencing factor and the weight of the defect influencing factor set exceeds the insulator defect formation quantization value; if yes, output the detection result of the target insulator having defects.
[0039] In this embodiment, in order to solve the problem of limited detection of internal defects of insulators, this embodiment calculates the quantitative value contribution of defects caused by the use time (considering natural aging during use), temperature parameters (considering internal stress changes caused by extreme cold and heat) and wind strength parameters (considering collisions and vibrations caused by strong winds) of each type of insulator during operation based on several test actions at the insulator supplier end. Therefore, by considering the quantitative influence of the use time, temperature parameters and wind strength parameters of the insulator during use on the formation of insulator defects, it is possible to detect whether the current insulator has already formed defects inside, and then obtain the defect detection results of the final target insulation based on the surface detection results and the internal detection results. While improving the ability to detect small defects in the insulator image, it measures the influence of the use time and environmental factors on the internal defects of the insulator, and provides a hydropower station equipment defect detection solution with higher detection accuracy and more comprehensive detection capabilities.
[0040] like Figure 6 As shown, the embodiment of the present invention also provides a hydropower station equipment defect detection device, which includes: A construction module 10 is used to obtain a plurality of defective insulator images and construct an image sample of the insulator of the hydropower station; The training module 20 is used to extract the image feature information of each insulator image in the hydropower station insulator image sample, input the image feature information of each insulator image into the constructed image detection model for training and verification, and obtain the trained surface defect detection model; An extraction module 30, configured to extract an insulator inspection image and insulator identification information of a target insulator in the inspection defect detection request when receiving the inspection defect detection request; A matching module 40 is used to match a defect influencing factor set and an internal defect detection model of a target insulator in a defect influencing factor library and an internal defect detection model library based on the insulator identification information; The detection module 50 is used to generate a defect detection result of the target insulator according to the first detection result of the insulator inspection image in the surface defect detection model and the second detection result of the defect influencing factor set in the internal defect detection model.
[0041] Other embodiments or specific implementations of the hydropower station equipment defect detection device of the present invention can refer to the above-mentioned method embodiments, which will not be repeated here.
[0042] In addition, the present invention also proposes a hydropower station equipment defect detection device, which includes: a memory, a processor, and a hydropower station equipment defect detection program stored in the memory and runnable on the processor, and when the hydropower station equipment defect detection program is executed by the processor, the steps of the hydropower station equipment defect detection method as described above are implemented.
[0043] The specific implementation of the hydropower station equipment defect detection equipment of the present application is basically the same as the various embodiments of the above-mentioned hydropower station equipment defect detection method, and will not be repeated here.
[0044] In addition, the present invention also proposes a readable storage medium, the readable storage medium includes a computer readable storage medium, on which a hydropower station equipment defect detection program is stored. The readable storage medium may be Figure 1 The memory 1005 in the terminal may also be at least one of a ROM (Read-Only Memory) / RAM (Random Access Memory), a magnetic disk, and an optical disk. The readable storage medium includes a number of instructions for enabling a hydropower station equipment defect detection device with a processor to execute the hydropower station equipment defect detection method described in each embodiment of the present invention.
[0045] The specific implementation methods in the readable storage medium of the present application are basically the same as the various embodiments of the above-mentioned hydropower station equipment defect detection method, and will not be repeated here.
[0046] It is understood that, in the description of this specification, the description with reference to the terms "one embodiment", "another embodiment", "other embodiments", or "first to Nth embodiments" etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representation of the above terms does not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner.
[0047] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or system including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or system. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or system including the element.
[0048] The serial numbers of the above embodiments of the present invention are only for description and do not represent the advantages or disadvantages of the embodiments.
[0049] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) as described above, and includes a number of instructions for a terminal device (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods described in each embodiment of the present invention.
[0050] The above are only preferred embodiments of the present invention, and are not intended to limit the patent scope of the present invention. Any equivalent structure or equivalent process transformation made using the contents of the present invention specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present invention.
Claims
1. A method for detecting defects in hydropower station equipment, It is characterized in that The following steps are involved: Obtain several images of insulators with defects and construct an image sample of insulators in a hydropower station; Extracting image feature information of each insulator image in the hydropower station insulator image sample, inputting the image feature information of each insulator image into the constructed image detection model for training and verification, and obtaining a trained surface defect detection model; Upon receiving a patrol defect detection request, extracting an insulator patrol image and insulator identification information of a target insulator in the patrol defect detection request; Based on the insulator identification information, a defect influencing factor set and an internal defect detection model of a target insulator are matched in a defect influencing factor library and an internal defect detection model library; A defect detection result of a target insulator is generated according to a first detection result of the insulator inspection image in the surface defect detection model and a second detection result of the defect influencing factor set in the internal defect detection model.
2. The method for detecting defects in hydropower station equipment according to claim 1, It is characterized in that The steps of obtaining several defective insulator images and constructing a sample of hydropower station insulator images include: Obtain several insulator images collected by inspectors when performing historical inspection tasks of transmission lines around hydropower stations; According to the input annotation information for each insulator image, the plurality of insulator images are divided into a first insulator image with defects and a second insulator image without defects; Based on all first insulator images with defects, a hydropower station insulator image sample is constructed.
3. The method for detecting defects in hydropower station equipment according to claim 2, It is characterized in that The steps of extracting image feature information of each insulator image in the hydropower station insulator image sample, inputting the image feature information of each insulator image into the constructed image detection model for training and verification, and obtaining the trained surface defect detection model specifically include: Randomly dividing the hydropower station insulator image samples into training samples and verification samples; Extracting image feature information of the insulator image in the training sample, and using the image feature information to train the constructed image detection model; The insulator images in the verification samples are used to verify the detection accuracy of the image detection model obtained through training and to adjust the model until the detection accuracy meets the verification index, thereby obtaining a trained surface defect detection model.
4. The method for detecting defects in hydropower station equipment according to claim 1, It is characterized in that Also includes: Build an image detection model based on the YOLOv8 architecture, and insert the SE attention mechanism structure on the basis of the YOLOv8 architecture; wherein, inserting the SE attention mechanism structure specifically includes: For the given input: , perform a mapping to get the output: ; Perform a global average pooling on the given input U, compress the corresponding spatial information (H*W) on each channel into 1 value in the corresponding channel, convert the dimension to 1*1*C, and retain the channel information. The expression is: ; The obtained Z passes through two fully connected layers, and the ReLu activation function is operated after the first fully connected layer, and the sigmoid activation function is operated after the second fully connected layer to obtain the weight value S. In order to reduce the increase in the number of parameters caused by the fully connected layer, the hyperparameter r is introduced to reduce the parameters generated by the first fully connected layer; where W1 and W2 represent fully connected layers, σ and δ represent two activation functions respectively, and the expression is: ; Use the obtained weight value S to perform a dot product operation on the original feature map to get the output , multiply the spatial information in U by the weight on the corresponding channel to complete the recalibration of the feature map. The expression is: ; Insert the structure corresponding to the above SE attention mechanism processing process into the backbone feature extraction network of the YOLOv8 architecture.
5. The method for detecting defects in hydropower station equipment according to claim 1, It is characterized in that Based on the insulator identification information, the step of matching a defect influencing factor set and an internal defect detection model of a target insulator in a defect influencing factor library and an internal defect detection model library specifically includes: Using the insulator identification information, matching a defect influencing factor set of a target insulator in a pre-built defect influencing factor library; The defect influencing factor library is configured to store identification information of each insulator in the inspection area and a defect influencing factor set corresponding to each insulator collected by the defect influencing factor collection component, wherein the defect influencing factor set includes the service life, temperature parameters and wind speed parameters of the insulator; Using the insulator identification information, matching and obtaining an internal defect detection model of a target insulator in a pre-built internal defect detection model library; The internal defect detection model library is configured to store internal defect detection models for different types of insulators provided by insulator suppliers, and the internal defect detection models include a quantified value of insulator defect formation and a trigger weight value of each defect influencing factor.
6. The method for detecting defects in hydropower station equipment according to claim 5, It is characterized in that Also includes: The insulator supplier performs defect formation tests for each type of insulator for service time test actions, temperature influence test actions and wind speed influence test actions; The usage time test action is configured as follows: performing continuous operation tests on each type of insulator, and recording the usage time of each type of insulator when it is damaged; the temperature impact test action is configured as follows: performing continuous operation tests of alternating cycles of preset high temperature environment and preset low temperature environment on each type of insulator, and recording the number of alternations when each type of insulator is damaged; the wind speed impact test action is configured as follows: performing continuous operation tests of preset wind strength on each type of insulator, and recording the number of operations of the preset wind strength when each type of insulator is damaged; Based on the test results of the use time test action, the temperature impact test action and the wind speed impact test action, the insulator defect formation quantification value of each type of insulator and the trigger weight value of each defect influencing factor are generated, and the internal defect detection model of each type of insulator is constructed; Among them, the insulator defect formation quantization value of each type of insulator is configured as a predefined defect formation target quantization value, the trigger weight value of the usage time is configured as a unit time trigger quantization value obtained by dividing the defect formation target quantization value by the usage time, the trigger weight of the temperature parameter is configured as a unit alternation number trigger quantization value obtained by dividing the defect formation target quantization value by the alternation number, and the trigger weight of the wind speed parameter is configured as a unit number trigger quantization value obtained by dividing the defect formation target quantization value by the operation number.
7. The method for detecting defects in hydropower station equipment according to claim 6, It is characterized in that The step of generating a defect detection result of a target insulator according to a first detection result of the insulator inspection image in the surface defect detection model and a second detection result of the defect influencing factor set in the internal defect detection model specifically comprises: Inputting the insulator inspection image into the surface defect detection model to obtain a first detection result, and determining whether the first detection result indicates that a defect exists; If so, output the detection result of the target insulator having defects; if not, input the defect influencing factor set into the internal defect detection model of the corresponding type of insulator, and based on the insulator defect formation quantization value and the trigger weight value of each defect influencing factor in the internal defect detection model, determine whether the sum of the trigger weight value of each defect influencing factor and the weight of the defect influencing factor set exceeds the insulator defect formation quantization value. If so, output the detection result of the target insulator having defects.
8. A device for detecting defects in hydropower station equipment, It is characterized in that include: A construction module, used to obtain a number of insulator images with defects and construct an image sample of the insulator of the hydropower station; A training module is used to extract image feature information of each insulator image in the hydropower station insulator image sample, input the image feature information of each insulator image into the constructed image detection model for training and verification, and obtain a trained surface defect detection model; An extraction module, configured to extract an insulator inspection image and insulator identification information of a target insulator in the inspection defect detection request when receiving the inspection defect detection request; A matching module, used for matching a defect influencing factor set and an internal defect detection model of a target insulator in a defect influencing factor library and an internal defect detection model library based on the insulator identification information; The detection module is used to generate a defect detection result of the target insulator according to a first detection result of the insulator inspection image in the surface defect detection model and a second detection result of the defect influencing factor set in the internal defect detection model.
9. A hydropower station equipment defect detection device, It is characterized in that The hydropower station equipment defect detection device comprises: a memory, a processor, and a hydropower station equipment defect detection program stored in the memory and executable on the processor. When the hydropower station equipment defect detection program is executed by the processor, the steps of the hydropower station equipment defect detection method as described in any one of claims 1 to 7 are implemented.
10. A storage medium, It is characterized in that The storage medium stores a hydropower station equipment defect detection program, which, when executed by a processor, implements the steps of the hydropower station equipment defect detection method according to any one of claims 1 to 7.
Citation Information
Patent Citations
Power system insulator monitoring and evaluating system based on big data
CN111814349A
Porcelain insulator quality detection method and system
CN116183621A
Insulator defect detection method, system, equipment and medium
CN116523894A
Thermography image processing with neural networks to identify corrosion under insulation (CUI)
US20190094124A1
Cited By
Porcelain insulator defect detection method, device, equipment and medium
CN119804554A
