Lightweight GIS defect detection method and system based on multi-scale feature extraction

By introducing the multi-scale feature extraction network and Mobi lenet V3 module into GIS defect detection, the problem of low detection accuracy in the existing technology is solved, and efficient detection of subtle defects in GIS equipment is achieved.

CN118691583APending Publication Date: 2024-09-24FOSHAN UNIVERSITY
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202410838612.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-26
Publication Date
2024-09-24

AI Technical Summary

Technical Problem

Existing GIS defect detection methods have low detection accuracy and are difficult to effectively detect multiple subtle and complex defects.

Method used

A lightweight GIS defect detection method based on multi-scale feature extraction is adopted. By obtaining the improved target detection model and the image information to be detected, the Mobi lenet V3 module is used to replace the CSPDarknet53 module, and a multi-scale feature extraction network is introduced to generate defect detection result information, including Insulator cracks, bubbles, metal fragments and device contact surface wear information.

Benefits of technology

It improves the detection accuracy, can effectively detect a variety of subtle and complex defects, enhances the receptive field of the model, makes up for the shortcomings of traditional detection, and improves the detection accuracy.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118691583A
    Figure CN118691583A
Patent Text Reader

Abstract

The invention is suitable for the technical field of image detection, and provides a lightweight GIS defect detection method and system based on multi-scale feature extraction, and the method comprises the steps: firstly obtaining an improved target detection model, obtaining the to-be-detected image information of target GIS equipment, and then inputting the to-be-detected image information to the improved target detection model, and accurate defect detection result information can be quickly generated. The improved target detection model is optimized in multiple aspects, for example, a Mobi lenet V3 module is used for replacing a CSPdarket53 module of a backbone layer, the calculation burden of the model is remarkably relieved, and the operation efficiency is improved. And a multi-scale feature extraction network is introduced, so that the receptive field of the model is greatly increased, more feature information of different scales can be captured, various defects of traditional detection are overcome, defect features in an X-ray image of GIS equipment are detected more comprehensively and accurately, and particularly, the performance is more excellent in the aspect of identifying subtle and complex defects.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of image detection, and in particular to a lightweight GIS defect detection method and system based on multi-scale feature extraction. Background Art

[0002] Gas Insulated Switchgear (GIS) is an essential electrical equipment in the power system, with the characteristics of high integration, convenient installation and simple operation. In actual production, it is necessary to regularly detect defects and faults of GIS equipment and various internal components to ensure the stable operation of the equipment and the normal operation of the power system.

[0003] At present, traditional defect detection methods usually rely on simple rule matching. However, actual gas-insulated switchgear often has a variety of subtle and complex defect types, which makes it difficult to effectively detect all defects and has the problem of low detection accuracy, which needs further improvement. Summary of the invention

[0004] Based on this, the embodiment of the present application provides a lightweight GIS defect detection method and system based on multi-scale feature extraction to solve the problem of low detection accuracy in the prior art.

[0005] In a first aspect, an embodiment of the present application provides a lightweight GIS defect detection method based on multi-scale feature extraction, the method comprising:

[0006] Obtain a preset improved target detection model and obtain the image information to be detected of the target GIS device;

[0007] The image information to be detected is input into the improved target detection model to generate defect detection result information, wherein the defect detection result information includes insulator crack information, bubble information, metal fragment information and / or device contact surface wear information.

[0008] Compared with the prior art, the beneficial effects are as follows: the lightweight GIS defect detection method based on multi-scale feature extraction provided in the embodiment of the present application, the terminal device can first obtain the improved target detection model, and at the same time obtain the image information to be detected of the target GIS device, and then input the image information to be detected into the improved target detection model to quickly generate accurate defect detection result information. Since the improved target detection model uses the Mobi lenet V3 module to replace the CSPdarket53 module of the backbone layer, and introduces a multi-scale feature extraction network, the receptive field of the model is increased, the defect features in the image are fully detected, and various deficiencies of traditional detection are compensated, thereby achieving effective detection of a variety of subtle and complex defects, improving detection accuracy, and to a certain extent solving the current problem of low detection accuracy.

[0009] In a second aspect, the embodiment of the present application provides a lightweight GIS defect detection system based on multi-scale feature extraction, the system comprising:

[0010] The module for acquiring the image information to be detected is used to obtain the preset improved target detection model and obtain the image information to be detected of the target GIS device;

[0011] Defect detection result information generation module: used to input the image information to be detected into the improved target detection model to generate defect detection result information, wherein the defect detection result information includes insulator crack information, bubble information, metal fragment information and / or device contact surface wear information.

[0012] In a third aspect, an embodiment of the present application provides a terminal device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the method of the first aspect described above when executing the computer program.

[0013] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the method of the first aspect described above are implemented.

[0014] It can be understood that the beneficial effects of the second to fourth aspects mentioned above can be found in the relevant description of the first aspect mentioned above, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS

[0015] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the embodiments or the description of the prior art are briefly introduced below.

[0016] Figure 1 It is a flow chart of a lightweight GIS defect detection method provided in one embodiment of the present application;

[0017] Figure 2 is a first schematic diagram of image information to be detected provided by an embodiment of the present application;

[0018] Figure 3 is a second schematic diagram of image information to be detected provided by an embodiment of the present application;

[0019] Figure 4 is a third schematic diagram of image information to be detected provided by an embodiment of the present application;

[0020] Figure 5 is a fourth schematic diagram of image information to be detected provided by an embodiment of the present application;

[0021] Figure 6 is a fifth schematic diagram of image information to be detected provided by an embodiment of the present application;

[0022] Figure 7 is a sixth schematic diagram of image information to be detected provided by an embodiment of the present application;

[0023] Figure 8 is a seventh schematic diagram of image information to be detected provided by an embodiment of the present application;

[0024] Fig. 9 is an eighth schematic diagram of image information to be detected provided by an embodiment of the present application;

[0025] Fig.10 It is a schematic diagram of the process before step S100 in the lightweight GIS defect detection method provided in one embodiment of the present application;

[0026] Fig.11 is a schematic diagram of a model framework provided by an embodiment of the present application;

[0027] Fig.12 It is a flowchart of step S102 in the lightweight GIS defect detection method provided in one embodiment of the present application;

[0028] Fig.13 is a schematic diagram of a Mobi lenet V3 module provided in an embodiment of the present application;

[0029] Fig.14 is a schematic diagram of a multi-scale feature extraction network provided in an embodiment of the present application;

[0030] Fig.15 It is a flowchart of step S103 in the lightweight GIS defect detection method provided in one embodiment of the present application;

[0031] Fig.16It is a flowchart after step S103 in the lightweight GIS defect detection method provided in one embodiment of the present application;

[0032] Fig.17 It is a module block diagram of a lightweight GIS defect detection system provided in one embodiment of the present application;

[0033] Fig.18 It is a schematic diagram of a terminal device provided in one embodiment of the present application. DETAILED DESCRIPTION

[0034] In the following description, specific details such as specific system structures, technologies, etc. are provided for the purpose of illustration rather than limitation, so as to provide a thorough understanding of the embodiments of the present application. However, it should be clear to those skilled in the art that the present application may also be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to prevent unnecessary details from obstructing the description of the present application.

[0035] In the description of the present application specification and the appended claims, the terms "first", "second", "third", etc. are only used to distinguish the descriptions and should not be understood as indicating or implying relative importance.

[0036] References to "one embodiment" or "some embodiments" etc. described in the specification of this application mean that one or more embodiments of the present application include specific features, structures or characteristics described in conjunction with the embodiment. Therefore, the statements "in one embodiment", "in some embodiments", "in some other embodiments", "in some other embodiments", etc. that appear in different places in this specification do not necessarily refer to the same embodiment, but mean "one or more but not all embodiments", unless otherwise specifically emphasized in other ways. The terms "including", "comprising", "having" and their variations all mean "including but not limited to", unless otherwise specifically emphasized in other ways.

[0037] In order to illustrate the technical solution described in this application, a specific embodiment is provided below for illustration.

[0038] See also Figure 1 , Figure 1It is a flow chart of the lightweight GIS defect detection method based on multi-scale feature extraction provided in the embodiment of the present application. In the present embodiment, the execution subject of the lightweight GIS defect detection method is a terminal device. It is understandable that the types of terminal devices include but are not limited to mobile phones, tablet computers, laptop computers, ultra-mobile personal computers (Ultra-Mobile Personal Computer, UMPC), netbooks, personal digital assistants (Personal Digital Assistant, PDA), etc. The embodiment of the present application does not impose any restrictions on the specific types of terminal devices.

[0039] See also Figure 1 The lightweight GIS defect detection method provided in the embodiment of the present application includes but is not limited to the following steps:

[0040] In S100, a preset improved target detection model is obtained, and image information to be detected of a target GIS device is obtained.

[0041] Specifically, the terminal device can first obtain a preset improved target detection model, and at the same time obtain the image information to be detected of the target GIS device, wherein the improved target detection model is used to detect defects in the gas insulated switchgear, the target GIS device is used to describe whether there are defects in the GIS device to be detected and what specific types of defects are contained in the GIS device to be detected, and the image information to be detected is used to describe the X-ray image taken of the target GIS device.

[0042] In S200, the image information to be detected is input into the improved target detection model to generate defect detection result information.

[0043] Specifically, after the terminal device obtains the improved target detection model and the image information to be detected, the terminal device can input the image information to be detected into the improved target detection model, and the improved target detection model outputs the defect detection result information to generate the defect detection result information, wherein the defect detection result information is used to describe the defect type corresponding to the detected GIS equipment.

[0044] In a possible implementation, the defect detection result information includes insulator crack information, bubble information, metal fragment information and / or device contact surface wear information, wherein the insulator crack information is used to describe the presence of cracks in the insulator of the GIS device, which will affect the insulation performance of the GIS device; the bubble information is used to describe the presence of bubbles mixed in the GIS device, which will reduce the insulation strength of the GIS device; the metal fragment information is used to describe the presence of metal fragments inside the GIS device, which will affect the insulation performance and mechanical operation of the GIS device; the device contact surface wear information is used to describe the wear of the contact surface (for example, contact) of a certain electrical contact component in the GIS device, which will lead to an increase in contact resistance and cause problems such as overheating or arc discharge of the GIS device.

[0045] For example, the defect detection result information may be information of an image to be detected with a specific bounding box; see Figure 2 and Figure 3 , Figure 2 and Figure 3 It is the image information to be inspected corresponding to the GIS equipment without defects. Figure 4 and Figure 5 , Figure 4 and Figure 5 It is the defect detection result information of insulator crack information. Figure 4 and Figure 5 The object selected by the bounding box in the middle is the crack. Figure 6 and Figure 7 , Figure 6 and Figure 7 It is the defect detection result information that specifically contains bubble information. Figure 6 and Figure 7 The bounding box in the middle corresponds to the bubble. Figure 8 and Fig. 9 , Figure 8 and Fig. 9 It is the defect detection result information that specifically contains metal fragment information. Figure 8 and Fig. 9 The selected object corresponding to the middle bounding box is the metal fragment.

[0046] In order to achieve improved object detection models with high accuracy, see Fig.10 Before step S100, the method further includes but is not limited to the following steps:

[0047] In S101, a preset initial target detection model is obtained.

[0048] Specifically, the terminal device may first obtain a preset initial target detection model, wherein the initial target detection model may be a YOLO v5s model, that is, the YOLO v5s model is used as the overall framework for GIS equipment defect detection.

[0049] For example, see Fig.11 The structure of the YOLO v5s model may include an input layer, a backbone layer, a neck layer, and a head layer, wherein the input layer is used for training and detecting an input X-ray image, and the specific size of the input X-ray image may be 3×640×640; the neck layer may use a structure combining a feature pyramid network (FPN) and a path aggregation network (PAN) for feature fusion, the feature pyramid network may send semantic information, and the path aggregation network may send location information, and by combining the two, the classification accuracy and positioning accuracy may be improved at the same time; the backbone layer of the initial target detection model may use a CSPDalkNet-53 module as a feature extraction network to extract the features of the object.

[0050] In S102, the initial target detection model is reconstructed to generate a target detection model to be trained.

[0051] Specifically, after the terminal device obtains the initial target detection model, the terminal device can reconstruct the initial target detection model to generate a target detection model to be trained with higher detection accuracy.

[0052] In S103, the target detection model to be trained is trained according to the preset X-ray image set information to generate an improved target detection model.

[0053] Specifically, after the terminal device generates the target detection model to be trained, the terminal device can train the target detection model to be trained according to the preset X-ray image set information to generate an improved target detection model, wherein the improved target detection model is used to describe the trained target detection model to be trained.

[0054] In some possible implementations, in order to reduce the consumption of computing resources and improve the accuracy and real-time reasoning ability of the model, please refer to Fig.12 Step S102 includes but is not limited to the following steps:

[0055] In S1021, the CSPDarknet53 module of the initial object detection model is replaced with a Mobilenet V3 module to generate a first object detection model.

[0056] Specifically, the terminal device can first replace the CSPDarknet53 module of the initial target detection model with the Mobilenet V3 module to generate a first target detection model, wherein the first target detection model is used to describe the initial target detection model including the Mobilenet V3 module.

[0057] For example, see Fig.13 The Mobilenet V3 module can perceive the network architecture by using a resource-limited platform and then obtain the overall structure of the network, and then use a preset algorithm to perform local search to optimize the number of convolution kernels in each layer. At the same time, the Mobilenet V3 module can also use Relu (Rectified Linear Unit) as the activation function. The calculation formula of the activation function can be:

[0058] fx=max(0,x),

[0059] In the formula, fx represents the activation function.

[0060] In S1022, a preset multi-scale feature extraction network is added to the backbone network of the first target detection model to generate a target detection model to be trained.

[0061] Specifically, after the terminal device replaces the CSPDarknet53 module of the initial target detection model with the Mobilenet V3 module, the terminal device can add the preset multi-scale feature extraction network to the backbone network of the first target detection model to generate a target detection model to be trained with higher accuracy and higher real-time reasoning capability.

[0062] For example, see Fig.14 , the multi-scale feature extraction network includes the first convolution block, the second convolution block and the third convolution block, so as to enhance the performance of the YOLO v5s model in detecting subtle defects, improve the accuracy of defect detection, expand the module of the network's receptive field, and enable the network to handle defect objects of different sizes, wherein the expansion rate of the first convolution block is 3, the expansion rate of the second convolution block is 5, and the expansion rate of the third convolution block is 7. It should be noted that the multi-scale feature extraction network combines three convolution blocks with different expansion rates, which can capture larger receptive field information and integrate more multi-scale context information; the introduction of 1×1 convolution filters and shortcut operations in the network can enable the information in the original feature map to be passed backward; inserting the multi-scale feature extraction network into the backbone layer of the YOLO v5s model can make full use of the multi-scale feature extraction network.

[0063] In some possible implementations, in order to achieve the accuracy of the model output results, please refer to Fig.15Step S103 includes but is not limited to the following steps:

[0064] In S1031, preset X-ray image set information is obtained.

[0065] Specifically, the terminal device may first obtain preset X-ray image set information, wherein the X-ray image set information includes multiple X-ray image information.

[0066] In S1032, the plurality of X-ray image information is divided and processed according to a preset division ratio to generate training set information and test set information.

[0067] Specifically, after the terminal device obtains the X-ray image set information, the terminal device can divide and process multiple X-ray image information according to a preset division ratio to generate training set information and test set information, wherein the total number of X-ray image information can be 1000, and the ratio between the training set information and the test set information is 8 to 2, that is, 800 X-ray image information is divided into training set information, and 200 X-ray image information is divided into test set information.

[0068] In S1033, the target detection model to be trained is trained according to the training set information, and the output result of the target detection model to be trained is verified according to the test set information. If the output result does not meet the expected requirements, the hyperparameters of the target detection model to be trained are adjusted and the training and verification processes are performed again until the output result meets the expected requirements.

[0069] Specifically, after the terminal device generates training set information and test set information, the terminal device can train the target detection model to be trained according to the training set information, and then verify the output results of the target detection model to be trained according to the test set information. If the output results do not meet the expected requirements, the terminal device can adjust the hyperparameters of the target detection model to be trained, and perform training and verification processing again until the output results of the target detection model meet the expected requirements, that is, the accuracy of the output results meets the expected requirements.

[0070] In a possible implementation, the terminal device can pre-process the data set before training the target detection model to be trained, and use the Mosaic data enhancement method to clean and enhance the X-ray image to highlight the defects in the X-ray image and weaken the background in the X-ray image and the normal part of the GIS device. In this way, the data to be found can be screened out; cleaning the image data and eliminating the low-quality data that appears during the image shooting and transmission process can speed up the data processing and ensure data security.

[0071] In one possible implementation, during the training process of the target detection model to be trained, in order to expand the data sample, improve the generalization ability of the model, and prevent the model from overfitting, data enhancement and image enhancement methods such as cropping, rotation, translation and scaling can be used for preprocessing. For example, the training of the target detection model to be trained can be carried out under the improved framework of the YOLO v5s model under the pytorch1.7 version. The X-ray defect dataset can be trained for 400 epochs, the learning rate can be preset to 0.01, and the weight attenuation coefficient can be preset to 0.005.

[0072] In order to compare and analyze the effectiveness of some possible implementations, please refer to Fig.16 After step S103, the method further includes but is not limited to the following steps:

[0073] In S104, based on a preset accuracy calculation formula, accuracy information of the target detection model to be trained and accuracy information of the improved target detection model are generated.

[0074] Specifically, the terminal device can generate the accuracy information of the target detection model to be trained and the accuracy information of the improved target detection model based on a preset accuracy calculation formula.

[0075] In some possible implementations, the above accuracy calculation formula may be:

[0076]

[0077] Where Precision represents accuracy information; True Positive represents true positive information, which is the number of samples whose labels are positive and predicted to be positive; False Positive represents false positive information, which is the number of samples whose labels are negative and predicted to be positive.

[0078] In S105, based on a preset accuracy calculation formula, accuracy information of the target detection model to be trained and accuracy information of the improved target detection model are generated.

[0079] Specifically, the terminal device can generate accuracy information of the target detection model to be trained and accuracy information of the improved target detection model based on a preset accuracy calculation formula.

[0080] In some possible implementations, the above accuracy calculation formula may be:

[0081]

[0082] In the formula, Accuracy represents the accuracy information; True Positive represents the number of samples corresponding to the true positive information; True Negative represents the number of samples corresponding to the true negative information, that is, the number of samples whose labels are negative and predicted to be negative; False Positive represents the number of samples corresponding to the false positive information; False Negative represents the number of samples corresponding to the false negative information, that is, the number of samples whose labels are positive and predicted to be negative.

[0083] In S106, comparison result information is generated according to the precision information of the target detection model to be trained, the precision information of the improved target detection model, the accuracy information of the target detection model to be trained and the accuracy information of the improved target detection model.

[0084] Specifically, the terminal device can generate comparison result information based on the precision information of the target detection model to be trained, the precision information of the improved target detection model, the accuracy information of the target detection model to be trained and the accuracy information of the improved target detection model, so as to facilitate comparison and analysis of the effectiveness of the algorithm.

[0085] For example, please refer to Table 1. It can be seen from Table 1 that the accuracy information of the improved target detection model is significantly improved compared with the initial target detection model; when the Mobilenet V3 module is used to improve the backbone layer of the YOLO v5s model to achieve model lightweight, and after adding a multi-scale feature extraction network on the basis of lightweight, the detection precision and accuracy are 97.2% and 95.2% respectively, which are significantly improved compared with the YOLO v5s model before the improvement. At the same time, the size and amount of calculation of the model are also reduced to a certain extent. All these indicators have been improved to a certain extent, so the speed can be accelerated during the detection process.

[0086] Table 1 Comparison of detection results of YOLO v5s model before and after improvement

[0087]

[0088] In one possible implementation, in order to verify the performance of the model, the terminal device can select three traditional target detection networks to compare with the improved target detection model. The three traditional target detection networks can be a model based on the VGG-16 network, a model based on the DNCNN network, and a model based on the YOLOV5s network, and the three traditional target detection networks can be trained uniformly to ensure stable results.

[0089] For example, please refer to Table 2, where the improved YOLO v5s in Table 2 is the improved target detection model

[0090] It can be seen from Table 2 that for defect detection of GIS equipment, the detection effect of the VGG-16 model is poor. The accuracy of the VGG-16 model is 87.5%, while the accuracy of other models is slightly higher than 90%. Compared with the VGG-16 model, DNCNN model and YOLOV5s model, the precision, accuracy and hardware performance of the improved target detection model have been significantly improved.

[0091] Table 2 Comparison results of different network structures

[0092] method Precision(%) Accuracy(%) Model size(MB) GFLOPs YOLO v5s 92.8 92.4 12.4 18.8 VGG-16 91.4 87.5 18 20.4 DNCNN 92.5 92.5 14.2 13.6 Improving YOLO v5s 96.3 95.7 7.8 6.6

[0093] The implementation principle of the lightweight GIS defect detection method based on multi-scale feature extraction in the embodiment of the present application is as follows: the terminal device can first obtain a preset improved target detection model, and at the same time obtain the image information to be detected of the target GIS device, and then input the image information to be detected into the improved target detection model to quickly generate accurate defect detection result information, thereby effectively detecting a variety of subtle and complex defects and improving detection accuracy.

[0094] It should be noted that the size of the serial numbers of the steps in the above embodiments does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.

[0095] The embodiment of the present application also provides a lightweight GIS defect detection system based on multi-scale feature extraction. For ease of description, only the parts related to the present application are shown, such as Fig.17 As shown, the system 170 includes:

[0096] The module 171 for acquiring the image information to be detected is used to acquire the preset improved target detection model and acquire the image information to be detected of the target GIS device;

[0097] Defect detection result information generation module 172: used to input the image information to be detected into the improved target detection model to generate defect detection result information, wherein the defect detection result information includes insulator crack information, bubble existence information, metal fragment existence information and / or device contact surface wear information.

[0098] Optionally, the system 170 further includes:

[0099] Initial target detection model acquisition module: used to obtain a preset initial target detection model, where the initial target detection model is a YOLO v5s model;

[0100] The target detection model generation module to be trained is used to reconstruct the initial target detection model to generate the target detection model to be trained;

[0101] Improved target detection model generation module: used to train the target detection model to be trained according to the preset X-ray image set information and generate an improved target detection model.

[0102] Optionally, the above-mentioned target detection model generation module to be trained includes:

[0103] The first target detection model generation submodule is used to replace the CSPDarknet53 module of the initial target detection model with the Mobilenet V3 module to generate the first target detection model;

[0104] The submodule for generating the target detection model to be trained is used to add a preset multi-scale feature extraction network to the backbone network of the first target detection model to generate the target detection model to be trained, wherein the multi-scale feature extraction network includes a first convolution block, a second convolution block and a third convolution block, the expansion rate of the first convolution block is 3, the expansion rate of the second convolution block is 5, and the expansion rate of the third convolution block is 7.

[0105] Optionally, the above-mentioned improved target detection model generation module includes:

[0106] X-ray image set information acquisition submodule: used to acquire preset X-ray image set information, wherein the X-ray image set information includes information of multiple X-ray images;

[0107] The training set information generation submodule is used to divide and process the information of multiple X-ray images according to a preset division ratio to generate training set information and test set information, wherein the ratio between the number of training set information and the number of test set information is 8 to 2;

[0108] The training submodule of the target detection model to be trained is used to train the target detection model to be trained according to the training set information, and to verify the output results of the target detection model to be trained according to the test set information. If the output results do not meet the expected requirements, the hyperparameters of the target detection model to be trained are adjusted and the training and verification processes are performed again until the output results meet the expected requirements.

[0109] Optionally, the system 170 further includes:

[0110] Precision information generation module: used to generate precision information of the target detection model to be trained and precision information of the improved target detection model based on a preset precision calculation formula;

[0111] Accuracy information generation module: used to generate accuracy information of the target detection model to be trained and the accuracy information of the improved target detection model based on a preset accuracy calculation formula;

[0112] Comparison result information generation module: used to generate comparison result information according to the precision information of the target detection model to be trained, the precision information of the improved target detection model, the accuracy information of the target detection model to be trained and the accuracy information of the improved target detection model.

[0113] Optionally, the above accuracy calculation formula is:

[0114]

[0115] In the formula, Precision is the accuracy information, True Positive is the true positive information, and False Positive is the false positive information;

[0116] Optionally, the above accuracy calculation formula is:

[0117]

[0118] Where Accuracy is the accuracy information, True Positive is the number of samples corresponding to true positive information, True Negative is the number of samples corresponding to true negative information, False Positive is the number of samples corresponding to false positive information, and False Negative is the number of samples corresponding to false negative information.

[0119] It should be noted that the information interaction, execution process and other contents between the above-mentioned modules are based on the same concept as the method embodiment of the present application. Their specific functions and technical effects can be found in the method embodiment part and will not be repeated here.

[0120] The present application also provides a terminal device, such as Fig.18 As shown, the terminal device 180 of this embodiment includes: a processor 181, a memory 182, and a computer program 183 stored in the memory 182 and executable on the processor 181. When the processor 181 executes the computer program 183, the steps in the above-mentioned lightweight GIS defect detection method embodiment are implemented, such as Figure 1 Steps S100 to S200 shown; or, when the processor 181 executes the computer program 183, the functions of each module in the above device are realized, for example Fig.17 Functions of modules 171 to 172 are shown.

[0121] The terminal device 180 may be a computing device such as a desktop computer, a notebook, a PDA, or a cloud server, and the terminal device 180 includes but is not limited to a processor 181 and a memory 182. Those skilled in the art will appreciate that Fig.18It is only an example of the terminal device 180 and does not constitute a limitation of the terminal device 180. It may include more or fewer components than shown in the figure, or a combination of certain components, or different components. For example, the terminal device 180 may also include input and output devices, network access devices, buses, etc.

[0122] Among them, the processor 181 can be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc.; the general-purpose processor can be a microprocessor or the processor can also be any conventional processor, etc.

[0123] The memory 182 may be an internal storage unit of the terminal device 180, such as a hard disk or memory of the terminal device 180, or the memory 182 may be an external storage device of the terminal device 180, such as a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (FlashCard), etc. equipped on the terminal device 180; further, the memory 182 may also include both an internal storage unit and an external storage device of the terminal device 180, and the memory 182 may also store a computer program 183 and other programs and data required by the terminal device 180, and the memory 182 may also be used to temporarily store data that has been output or is to be output.

[0124] One embodiment of the present application also provides a computer-readable storage medium, which stores a computer program, and when the computer program is executed by a processor, the steps of each of the above method embodiments can be implemented. Among them, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form, etc.; the computer-readable medium may include: any entity or device that can carry computer program code, recording medium, USB flash drive, mobile hard disk, magnetic disk, optical disk, computer memory, read-only memory (ROM), random access memory (RAM), electric carrier signal, telecommunication signal and software distribution medium, etc.

[0125] The above are all preferred embodiments of the present application, and the protection scope of the present application is not limited thereto. Therefore, all equivalent changes made according to the methods, principles, and structures of the present application should be included in the protection scope of the present application.

Claims

1. A lightweight GIS defect detection method based on multi-scale feature extraction, characterized in that: The method comprises: Obtain a preset improved target detection model and obtain the image information to be detected of the target GIS device; The image information to be detected is input into the improved target detection model to generate defect detection result information, wherein the defect detection result information includes insulator crack information, bubble information, metal fragment information and / or device contact surface wear information.

2. The method according to claim 1, characterized in that Before obtaining the preset improved target detection model and obtaining the image information to be detected of the target GIS device, the method further includes: Obtain a preset initial target detection model, wherein the initial target detection model is a YOLO v5s model; Reconstructing the initial target detection model to generate a target detection model to be trained; According to the preset X-ray image set information, the target detection model to be trained is trained to generate the improved target detection model; The reconstructing the initial target detection model to generate a target detection model to be trained includes: The CSPDarknet53 module of the initial target detection model is replaced with a Mobilenet V3 module to generate a first target detection model; A preset multi-scale feature extraction network is added to the backbone network of the first target detection model to generate the target detection model to be trained, wherein the multi-scale feature extraction network includes a first convolution block, a second convolution block and a third convolution block, the expansion rate of the first convolution block is 3, the expansion rate of the second convolution block is 5, and the expansion rate of the third convolution block is 7.

3. The method according to claim 2, characterized in that The step of training the target detection model to be trained according to the preset X-ray image set information to generate the improved target detection model includes: Acquiring preset X-ray image set information, wherein the X-ray image set information includes a plurality of X-ray image information; According to a preset division ratio, multiple X-ray image information is divided and processed to generate training set information and test set information, wherein the ratio of the number of the training set information to the number of the test set information is 8 to 2; The target detection model to be trained is trained according to the training set information, and the output result of the target detection model to be trained is verified according to the test set information. If the output result does not meet the expected requirements, the hyperparameters of the target detection model to be trained are adjusted and the training and verification processes are performed again until the output result meets the expected requirements.

4. The method according to claim 3, characterized in that: After the target detection model to be trained is trained according to the preset X-ray image set information to generate the improved target detection model, the method further includes: Based on a preset accuracy calculation formula, generating accuracy information of the target detection model to be trained and accuracy information of the improved target detection model; Based on a preset accuracy calculation formula, generating accuracy information of the target detection model to be trained and accuracy information of the improved target detection model; Comparison result information is generated according to the precision information of the target detection model to be trained, the precision information of the improved target detection model, the accuracy information of the target detection model to be trained and the accuracy information of the improved target detection model.

5. The method according to claim 4, characterized in that The accuracy calculation formula is: Wherein, Precision is the accuracy information, True Positive is the true positive information, and False Positive is the false positive information; The accuracy calculation formula is: Wherein, Accuracy is the accuracy information, True Positive is the number of samples corresponding to true positive information, True Negative is the number of samples corresponding to true negative information, False Positive is the number of samples corresponding to false positive information, and False Negative is the number of samples corresponding to false negative information.

6. A lightweight GIS defect detection system based on multi-scale feature extraction, characterized in that: The system comprises: The module for acquiring the image information to be detected is used to obtain the preset improved target detection model and obtain the image information to be detected of the target GIS device; Defect detection result information generation module: used to input the image information to be detected into the improved target detection model to generate defect detection result information, wherein the defect detection result information includes insulator crack information, bubble information, metal fragment information and / or device contact surface wear information.

7. The system according to claim 6, characterized in that The system further comprises: An initial target detection model acquisition module is used to acquire a preset initial target detection model, wherein the initial target detection model is a YOLO v5s model; The target detection model generation module to be trained is used to reconstruct the initial target detection model to generate the target detection model to be trained; Improved target detection model generation module: used to train the target detection model to be trained according to the preset X-ray image set information to generate the improved target detection model.

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

9. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 5 are implemented.

Citation Information

Patent Citations

  • Defect detection method and system based on GIS equipment insulator and storage medium

    CN116977722A