Model training method and device based on power grid

The power grid model training method is used to annotate and review power grid images to generate a target recognition model, which solves the problem of low efficiency and poor quality of power grid image annotation, and improves the recognition accuracy and annotation quality of power grid features.

CN114529782BActive Publication Date: 2024-10-22SHENZHEN COMTOP INFORMATION TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210032628.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-01-12
Publication Date
2024-10-22
Estimated Expiration
2042-01-12

AI Technical Summary

Technical Problem

In the existing technology, the annotation efficiency of power grid pictures is low and the quality is difficult to ensure, resulting in insufficient accuracy of power grid feature identification.

Method used

Using a power grid-based model training method, the power grid images are annotated and reviewed through a preset recognition model, and a target recognition model is generated to improve annotation efficiency and recognition accuracy.

Benefits of technology

It improves the annotation efficiency and quality of power grid images, enhances the training accuracy and reliability of the recognition model, and ensures accurate identification of power grid features.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114529782B_ABST
    Figure CN114529782B_ABST
Patent Text Reader

Abstract

The present invention discloses a model training method and device based on a power grid, the method comprising: collecting power grid images for at least one sample power grid object, and annotating the image features of each power grid image through a preset recognition model to obtain a set of annotated images, the annotated image set comprising the power grid image of each power grid object with annotated image features; performing image feature review on the image features of each power grid image in the annotated image set to obtain a review image set; training the recognition model according to the review image set to obtain a target recognition model; the target recognition model is used to perform operations on the target power grid object in the power grid platform, the operations including the annotation operations. It can be seen that the implementation of the present invention performs annotation operations on multiple power grid images through the recognition model, improves the annotation efficiency of the power grid image, ensures the annotation quality, and trains the recognition model through the annotated and reviewed power grid images, which can improve the training accuracy and reliability of the recognition model.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of power grid data processing, and in particular to a model training method and device based on a power grid. Background Art

[0002] With the rapid development of big data and artificial intelligence, artificial intelligence has been applied to various aspects of the power grid, such as hidden danger detection in transmission channels, wear detection of substation construction personnel, temperature detection of distribution tower heads, etc. The realization of the above functions is inseparable from the recognition of power grid features in power grid images.

[0003] At present, manual labeling of power grid images is the mainstream method for identifying power grid characteristics. However, this mainstream method has the disadvantages of low labeling efficiency, long time consumption, and is prone to problems such as mislabeling and missing labels due to different personal understandings, making it difficult to ensure the labeling quality.

[0004] At the same time, since there are many types of power grid features and some of them are relatively complex, even if the existing recognition model is used for labeling, it is difficult to accurately label each power grid feature and the labeling quality cannot be guaranteed. Summary of the invention

[0005] The technical problem to be solved by the present invention is to provide a model training method and device based on a power grid, which can use the trained target recognition model to perform labeling operations on power grid objects, thereby improving labeling efficiency and ensuring labeling quality. Moreover, by training the target recognition model with a review image set, the recognition accuracy of the target recognition model can be improved, thereby improving the labeling quality.

[0006] In order to solve the above technical problems, the first aspect of the present invention discloses a model training method based on a power grid, the method comprising:

[0007] Collecting a power grid image for at least one sample power grid object, and annotating image features of each of the power grid images using a preset recognition model to obtain an annotated image set, wherein the annotated image set includes the power grid image of each of the power grid objects annotated with image features;

[0008] Performing image feature review on image features of each of the power grid images in the labeled image set to obtain a reviewed image set;

[0009] The recognition model is trained according to the review image set to obtain a target recognition model; the target recognition model is used to perform operations on target power grid objects in the power grid platform, and the operations include labeling operations.

[0010] As an optional implementation, in the first aspect of the present invention, before performing image feature annotation on each of the power grid images by using a preset recognition model to obtain a set of annotated images, the method further includes:

[0011] Determining category information of each of the sample power grid objects, and determining a priority level corresponding to the power grid image of each of the sample power grid objects according to the category information of each of the sample power grid objects;

[0012] According to the priority level corresponding to each of the power grid images, all the power grid images are sorted to obtain a power grid image annotation sequence; the power grid image annotation sequence is used to determine the annotation order of each of the power grid images;

[0013] And, the image features of each of the power grid images are annotated by using a preset recognition model to obtain an annotated image set, including:

[0014] Image feature annotation is performed on each power grid image using a preset recognition model and the power grid image annotation sequence.

[0015] As an optional implementation, in the first aspect of the present invention, the training of the recognition model according to the review image set includes:

[0016] Classifying the review image set according to a preset random sampling algorithm to obtain a sample training set, a sample test set, and a sample verification set;

[0017] Inputting the sample training set and the sample test set into the recognition model for training, and obtaining a training result set for the sample training set and the sample test set;

[0018] Verifying the recognition rate of the recognition model according to the sample verification set and the training result set;

[0019] Comparing the recognition rate of the recognition model with a preset recognition expectation threshold, and when the recognition rate of the recognition model is less than the recognition expectation threshold, optimizing the model parameters of the recognition model to obtain an optimized recognition model;

[0020] The optimized recognition model is updated to the preset recognition model, and the operation of training the recognition model according to the review image set is re-executed until the recognition rate of the trained recognition model is greater than the expected recognition rate threshold.

[0021] As an optional implementation manner, in the first aspect of the present invention, optimizing the model parameters of the recognition model to obtain the optimized recognition model includes:

[0022] Determining a recognition scene corresponding to each of the power grid images, and determining a scene complexity of the recognition scene corresponding to each of the power grid images;

[0023] According to the scene complexity of the recognition scene corresponding to each of the power grid images and the preset model training strategy, the model parameters of the recognition model are tuned to obtain an optimized recognition model; the model parameters include model learning rate parameters, model depth parameters, model width parameters, number of training rounds, and amount of training data.

[0024] As an optional implementation, in the first aspect of the present invention, the step of labeling each of the power grid images by using a preset recognition model to obtain a set of labeled images includes:

[0025] Analyze the image information of each of the power grid images to obtain image quality information of each of the power grid images, and determine the image quality index corresponding to each of the power grid images according to the image quality information of each of the power grid images; the image information includes image size information, image pixel information, and color depth information;

[0026] According to the image quality index corresponding to each of the power grid images and a preset image quality index threshold, filtering the target power grid images whose image quality index is less than the image quality index threshold among all the power grid images, and generating a quality image set according to the power grid images except the target power grid images among all the power grid images;

[0027] By using a preset recognition model, the image features of all the power grid images in the quality image set are labeled in sequence, and a labeled image set is generated based on all the labeled power grid images.

[0028] As an optional implementation, in the first aspect of the present invention, the method of sequentially labeling the image features of all the power grid images in the quality image set by using a preset recognition model, and generating a labeled image set based on all the labeled power grid images, includes:

[0029] Respectively identifying the first image feature of each of the power grid images in the quality image set by using a preset recognition model, and determining a first physical parameter of the first image feature of each of the power grid images in the quality image set;

[0030] According to the first physical parameter of the first image feature of each of the power grid images in the quality image set, the first image feature of each of the power grid images in the quality image set is labeled, and a labeled image set is generated according to all the labeled power grid images in the quality image set.

[0031] As an optional implementation, in the first aspect of the present invention, the image feature review of each power grid image in the labeled image set to obtain the reviewed image set includes:

[0032] Re-identify the image features of each of the power grid images in the annotated image set respectively, obtain the second image feature of each of the power grid images in the annotated image set, and determine the second physical parameter of the second image feature of each of the power grid images in the annotated image set; for any of the power grid images in the annotated image set, the second image feature of the power grid image is associated with the first image feature of the power grid image;

[0033] For any of the power grid images in the annotated image set, judging whether the first image feature of the power grid image is incorrectly annotated according to the first physical parameter of the first image feature of the power grid image and the second physical parameter of the second image feature of the power grid image, and when judging that the first image feature of the power grid image is incorrectly annotated, adjusting the first physical parameter of the first image feature of the power grid image according to the second physical parameter of the second image feature of the power grid image to obtain a verified power grid image; and when judging that there is no marking error in the first image feature of the power grid image, determining that the power grid image is a correct power grid image;

[0034] Generate a review image set according to all the review power grid images and all the correct power grid images;

[0035] And, determining whether the first image feature of the power grid image is incorrectly labeled includes:

[0036] For any of the power grid images in the annotated image set, determining a deviation value between the first image feature of the power grid image and the second image feature of the power grid image according to a first physical parameter of the first image feature of the power grid image and a second physical parameter of the second image feature of the power grid image;

[0037] For any of the power grid images in the labeled image set, when the deviation value between the first image feature of the power grid image and the second image feature of the power grid image is greater than a preset deviation value threshold, it is determined that the first image feature of the power grid image is incorrectly labeled; when the deviation value between the first image feature of the power grid image and the second image feature of the power grid image is less than the preset deviation value threshold, it is determined that the first image feature of the power grid image is correctly labeled.

[0038] A second aspect of the present invention discloses a model training device based on a power grid, the device comprising:

[0039] a labeling module, configured to collect power grid images for at least one sample power grid object, and label each of the power grid images with image features using a preset recognition model to obtain a labeled image set, wherein the labeled image set includes the power grid image of each of the power grid objects with labeled image features;

[0040] A review module, used for reviewing the image features of each of the power grid images in the labeled image set to obtain a review image set;

[0041] A training module is used to train the recognition model according to the review image set to obtain a target recognition model; the target recognition model is used to perform operations on target power grid objects in the power grid platform, and the operations include labeling operations.

[0042] As an optional implementation, in the second aspect of the present invention, the device further includes:

[0043] A determination module, used to determine the category information of each of the sample power grid objects, and determine the priority level corresponding to the power grid image of each of the sample power grid objects according to the category information of each of the sample power grid objects;

[0044] A sorting module, used for sorting all the power grid images according to the priority level corresponding to each of the power grid images to obtain a power grid image annotation sequence; the power grid image annotation sequence is used to determine the annotation order of each of the power grid images;

[0045] Furthermore, the specific method of performing image feature annotation on each of the power grid images by using a preset recognition model in the annotation module to obtain the annotated image set is as follows:

[0046] Image feature annotation is performed on each power grid image using a preset recognition model and the power grid image annotation sequence.

[0047] As an optional implementation, in the second aspect of the present invention, the specific manner of training the recognition model according to the review image set in the training module is:

[0048] According to a preset random sampling algorithm, the review image set is classified to obtain a sample training set, a sample test set and a sample verification set; the sample training set and the sample test set are input into the recognition model for training to obtain a training result set for the sample training set and the sample test set; the recognition rate of the recognition model is verified according to the sample verification set and the training result set; the recognition rate of the recognition model is compared with a preset recognition expected threshold, and when the recognition rate of the recognition model is less than the recognition expected threshold, the model parameters of the recognition model are optimized to obtain an optimized recognition model; the optimized recognition model is updated to the preset recognition model, and the operation of training the recognition model according to the review image set is re-executed until the recognition rate of the trained recognition model is greater than the recognition rate expected threshold.

[0049] As an optional implementation, in the second aspect of the present invention, the specific method of optimizing the model parameters of the recognition model in the training module to obtain the optimized recognition model is:

[0050] Determine the recognition scene corresponding to each of the power grid images, and determine the scene complexity of the recognition scene corresponding to each of the power grid images; according to the scene complexity of the recognition scene corresponding to each of the power grid images and the preset model training strategy, perform parameter tuning on the model parameters of the recognition model to obtain an optimized recognition model; the model parameters include model learning rate parameters, model depth parameters, model width parameters, number of training rounds, and amount of training data.

[0051] As an optional implementation, in the second aspect of the present invention, the specific method of annotating each of the power grid images by using a preset recognition model in the annotation module to obtain the annotated image set is:

[0052] Analyze the image information of each of the power grid images to obtain the image quality information of each of the power grid images, and determine the image quality index corresponding to each of the power grid images according to the image quality information of each of the power grid images; the image information includes image size information, image pixel information, and color depth information; according to the image quality index corresponding to each of the power grid images and a preset image quality index threshold, filter all of the target power grid images whose image quality index is less than the image quality index threshold, and generate a quality image set according to the power grid images other than the target power grid images in all of the power grid images; through a preset recognition model, sequentially annotate the image features of all of the power grid images in the quality image set, and generate an annotated image set according to all the annotated power grid images.

[0053] As an optional implementation, in the second aspect of the present invention, the labeling module sequentially labels the image features of all the power grid images in the quality image set through a preset recognition model, and generates a labeled image set based on all the labeled power grid images in a specific manner as follows:

[0054] The first image feature of each of the power grid images in the quality image set is identified respectively by a preset recognition model, and the first physical parameter of the first image feature of each of the power grid images in the quality image set is determined; the first image feature of each of the power grid images in the quality image set is labeled according to the first physical parameter of the first image feature of each of the power grid images in the quality image set, and a labeled image set is generated according to all the labeled power grid images in the quality image set.

[0055] As an optional implementation, in the second aspect of the present invention, the specific manner in which the review module reviews the image features of each of the power grid images in the labeled image set to obtain the reviewed image set is:

[0056] Re-identify the image features of each power grid image in the annotated image set respectively, obtain the second image feature of each power grid image in the annotated image set, and determine the second physical parameter of the second image feature of each power grid image in the annotated image set; for any power grid image in the annotated image set, the second image feature of the power grid image is associated with the first image feature of the power grid image; for any power grid image in the annotated image set, determine whether the first image feature of the power grid image is incorrectly labeled according to the first physical parameter of the first image feature of the power grid image and the second physical parameter of the second image feature of the power grid image, and when it is determined that the first image feature of the power grid image is incorrectly labeled, adjust the first physical parameter of the first image feature of the power grid image according to the second physical parameter of the second image feature of the power grid image to obtain a verified power grid image; when it is determined that there is no labeling error in the first image feature of the power grid image, determine that the power grid image is a correct power grid image; generate a verified image set according to all the verified power grid images and all the correct power grid images;

[0057] And, the specific method of judging whether the first image feature of the power grid image is marked incorrectly in the review module is:

[0058] For any power grid image in the annotated image set, determine the deviation value between the first image feature of the power grid image and the second image feature of the power grid image based on the first physical parameter of the first image feature of the power grid image and the second physical parameter of the second image feature of the power grid image; for any power grid image in the annotated image set, when the deviation value between the first image feature of the power grid image and the second image feature of the power grid image is greater than a preset deviation value threshold, it is determined that the first image feature of the power grid image is incorrectly annotated; when the deviation value between the first image feature of the power grid image and the second image feature of the power grid image is less than the preset deviation value threshold, it is determined that the first image feature of the power grid image is correctly annotated.

[0059] The third aspect of the present invention discloses another model training device based on a power grid, the device comprising:

[0060] A memory storing executable program code;

[0061] a processor coupled to the memory;

[0062] The processor calls the executable program code stored in the memory to execute the power grid-based model training method disclosed in the first aspect of the present invention.

[0063] The fourth aspect of the present invention discloses a computer storable medium, wherein the computer storage medium stores computer instructions, and when the computer instructions are called, they are used to execute the power grid-based model training method disclosed in the first aspect of the present invention.

[0064] Compared with the prior art, the embodiments of the present invention have the following beneficial effects:

[0065] In an embodiment of the present invention, a power grid image for at least one sample power grid object is collected, and image features of each power grid image are annotated through a preset recognition model to obtain a set of annotated images, wherein the annotated image set includes power grid images of each power grid object with annotated image features; image features of each power grid image in the annotated image set are reviewed to obtain a review image set; the recognition model is trained according to the review image set to obtain a target recognition model; the target recognition model is used to perform operations on target power grid objects in the power grid platform, and the operations include annotation operations. It can be seen that the implementation of the present invention improves the annotation efficiency of power grid images and ensures the annotation quality by performing annotation operations on power grid images of multiple power grid objects through the recognition model, and the recognition model is trained through the annotated and reviewed power grid images, which can improve the training accuracy and reliability of the recognition model, thereby facilitating the improvement of the recognition accuracy and efficiency of the recognition model for power grid images in practical applications, thereby improving the annotation quality of power grid images. BRIEF DESCRIPTION OF THE DRAWINGS

[0066] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0067] Figure 1 It is a flow chart of a model training method based on a power grid disclosed in an embodiment of the present invention;

[0068] Figure 2 It is a flow chart of another model training method based on power grid disclosed in an embodiment of the present invention;

[0069] Figure 3 is a structural schematic diagram of a power grid-based model training device disclosed in an embodiment of the present invention;

[0070] Figure 4 It is a structural schematic diagram of another power grid-based model training device disclosed in an embodiment of the present invention;

[0071] Figure 5 It is a structural schematic diagram of another power grid-based model training device disclosed in an embodiment of the present invention. DETAILED DESCRIPTION

[0072] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0073] The terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish different objects rather than to describe a specific order. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, device, product or end including a series of steps or units is not limited to the listed steps or units, but may optionally include steps or units that are not listed, or may optionally include other steps or units inherent to these processes, methods, products or ends.

[0074] Reference to "embodiments" herein means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present invention. The appearance of the phrase in various places in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.

[0075] The present invention discloses a model training method and device based on a power grid, which can use a trained target recognition model to perform a labeling operation on a power grid object, thereby improving the labeling efficiency and ensuring the labeling quality. Furthermore, by training the target recognition model with a review image set, the recognition accuracy of the target recognition model can be improved, thereby improving the labeling quality. The following are detailed descriptions.

[0076] Embodiment 1

[0077] See also Figure 1 , Figure 1 is a flow chart of a model training method based on a power grid disclosed in an embodiment of the present invention. Figure 1 The described power grid-based model training method can be applied to an Internet platform that provides power grid services such as power grid engineering and power grid surveying, or to a server that executes power grid projects such as power grid engineering and power grid surveying, or to a client that executes power grid projects such as power grid engineering and power grid surveying, and the embodiments of the present invention do not limit this. Figure 1 As shown, the grid-based model training method may include the following operations:

[0078] Step 101 : collect power grid images for at least one sample power grid object, and annotate image features of each power grid image using a preset recognition model to obtain an annotated image set.

[0079] Among them, the power grid object can be all objects in the power grid, and the power grid object can include power grid equipment such as high-voltage wires, double-check insulators, transmission line towers, and anti-vibration hammers. The sample power grid object can be the power grid object corresponding to the power grid operation and maintenance strategy formulated by the user among all power grid objects. The power grid image for the sample power grid object can be collected by the power grid platform when executing the power grid inspection plan at a specific time and place according to the power grid operation and maintenance strategy formulated by the user. The power grid operation and maintenance strategy formulated by the user can be an operation and maintenance strategy for a specific power grid object or an operation and maintenance strategy for all power grid objects set by the user according to his own needs. The power grid platform can be an Internet platform that provides power grid services such as power grid engineering and power grid surveying. The annotated image set can include the power grid image of each power grid object with annotated image features, and the image features can include the overall features of the power grid object and the local features of the power grid object.

[0080] In actual applications, the power grid platform can detect whether there is a power grid operation and maintenance strategy formulated by the user in the power grid platform, and then the power grid platform can execute the power grid inspection plan at a specific time and a specific location according to the power grid operation and maintenance strategy formulated by the user, and collect power grid images of all power grid equipment in the power grid through image acquisition equipment to complete the inspection of the power grid equipment, such as through image acquisition equipment installed in the power grid equipment or image acquisition equipment installed on a drone for power grid images of all power grid equipment in the power grid.

[0081] After collecting power grid images of all power grid equipment in the power grid, the power grid images corresponding to the power grid operation and maintenance strategies formulated by the user can be determined as sample power grid images from the power grid images of all power grid equipment, or the power grid images of all power grid equipment can be directly determined as sample power grid images, and power grid images related to power grid equipment can be obtained through the Internet platform, and then the image features in each power grid image can be identified through a preset recognition model and the image features in each power grid image can be annotated to obtain a set of annotated images.

[0082] In an optional embodiment, when it is detected that there is no power grid operation and maintenance strategy for power grid objects in the power grid platform, the power grid platform can obtain power grid images for power grid objects collected during the daily execution of power grid inspection plans, or obtain power grid images of various power grid objects through the Internet platform to enrich the types of sample power grid objects.

[0083] In an optional embodiment, before annotating each power grid image with image features by using a preset recognition model to obtain an annotated image set, the method may further include the following steps:

[0084] Determine the category information of each sample power grid object, and determine the priority level corresponding to the power grid image of each sample power grid object according to the category information of each sample power grid object; sort all power grid images according to the priority level corresponding to each power grid image to obtain a power grid image annotation sequence.

[0085] Among them, the category information can be the category to which the sample power grid object belongs, such as tower category, line category, electrical equipment category, etc. The category information can also be the actual location of the sample power grid object, such as A transmission line tower line 3, A transmission line tower line 4, etc. The priority level can be the priority when annotating the power grid image, and the power grid image annotation sequence can be used to determine the annotation order of each power grid image.

[0086] After collecting the grid images of all grid equipment in the power grid, the category to which the sample grid object belongs can be determined, and the actual location of the sample grid object can also be determined. Then, all the sample grid objects can be classified according to the category to which the sample grid object belongs or the location of the sample grid object, and at least one grid object corresponding to each category can be obtained. Then, according to the grid operation and maintenance strategy formulated by the user, the priority of different categories during labeling can be determined, and all grid images can be sorted to obtain a grid image labeling sequence.

[0087] For example, the power grid operation and maintenance strategy formulated by the user may be an operation and maintenance strategy for the line object, and the power grid image corresponding to the line object may be marked preferentially, that is, the priority level corresponding to the power grid image of the line object may be the highest priority level among the priority levels corresponding to all power grid objects. The power grid operation and maintenance strategy formulated by the user may also be an operation and maintenance strategy for the power grid object of the A transmission line tower, and the power grid image corresponding to at least one power grid object in the A transmission line tower may be marked preferentially.

[0088] In practical applications, by determining the priority levels of all power grid images and sorting all power grid images, the power grid images corresponding to different categories of power grid objects can be labeled, and then the accuracy of labeling specific image features can be improved by labeling specific image features in a large number of specific power grid objects; it is also possible to label image features of more categories of power grid objects by adding new categories of power grid objects, so as to increase the width and depth of the preset recognition model and realize the expansion of the recognition algorithm in the recognition model.

[0089] In an optional embodiment, the step of annotating each power grid image with image features by using a preset recognition model in step 101 to obtain an annotated image set may include the following sub-steps:

[0090] Sub-step 11, annotating the image features of each power grid image by using a preset recognition model and a power grid image annotation sequence to obtain a set of annotated images.

[0091] After obtaining the power grid image annotation sequence, each power grid image can be input into a preset recognition model in turn according to the power grid image annotation sequence, so as to annotate image features of each power grid image according to the recognition model to obtain an annotated image set.

[0092] In practical applications, each power grid image can be input into a preset recognition model in sequence according to the power grid image annotation sequence, and then specific power grid objects can be annotated preferentially to meet user needs and improve user experience.

[0093] Step 102 : review the image features of each power grid image in the labeled image set to obtain a reviewed image set.

[0094] The review image set may include all power grid images in the annotated image set that have completed image feature review.

[0095] After obtaining the annotated image set, the image features of each power grid image in the annotated image set may be reviewed to obtain a reviewed image set.

[0096] In practical applications, when using a recognition model to perform image feature recognition on sample power grid images, image feature recognition errors may occur, such as missed recognition, feature object error, etc., and when using a recognition model to annotate image features in power grid images, annotation errors may occur, such as incorrect annotation object, incorrect annotation position, missed annotation, etc., and then after obtaining a set of annotated images, the image features of each power grid image in the annotated image set can be reviewed to improve the recognition rate of the image features of each power grid image and improve the annotation quality of the image features of each power grid image.

[0097] As an optional implementation, after obtaining the annotated image set, a standard power grid image for all power grid objects can be pre-stored and image features in the standard power grid image can be identified. Then, image features of the power grid image in the annotated image set can be compared with the standard power grid image to detect whether the image features identified in the power grid image in the annotated image set are incorrect.

[0098] Among them, the standard power grid image may include all power grid image features of power grid objects within the image acquisition range under normal circumstances. The power grid image features may be image features related to power grid equipment in the image features. The power grid image features may include bolts of transmission line towers, insulating parts of composite insulators, etc. in the power grid image. The standard power grid image may include annotation information for all power grid image features, and the annotation information may include location information and annotation type information of the annotation box.

[0099] In practical applications, the feature contour information of each image feature in the standard power grid image can be determined, as well as the feature quantity information of the image feature in the standard power grid image, and the feature contour information of each image feature in the power grid image of the annotated image set can be determined, as well as the feature quantity information of the image feature in the power grid image of the annotated image set can be determined, and then the feature contour information in the standard power grid image can be compared with the feature contour information in the power grid image of the annotated image set in turn, and the feature quantity information in the standard power grid image can be compared with the feature quantity information in the power grid image of the annotated image set in turn, and when the feature contour information in the standard power grid image is detected to be different from the feature contour information in the annotated image set, the feature quantity information in the standard power grid image can be compared with the feature quantity information in the power grid image of the annotated image set in turn. When the degree of matching of the feature contour information in the power grid image of the annotated image set is greater than a preset matching threshold, and the feature quantity information in the standard power grid image is consistent with the feature quantity information in the power grid image of the annotated image set, it is determined that the image features identified in the power grid image of the annotated image set are correct. When it is detected that the degree of matching of the feature contour information in the standard power grid image and the feature contour information in the power grid image of the annotated image set is less than a preset matching threshold, and / or the feature quantity information in the standard power grid image is inconsistent with the feature quantity information in the power grid image of the annotated image set, it is determined that the image features identified in the power grid image of the annotated image set are incorrect.

[0100] In a specific implementation, by comparing the feature contour information in a standard power grid image with the feature contour information in a power grid image of an annotated image set, it can be determined whether feature object errors occur when the recognition model is used to perform image feature recognition on a sample power grid image; by comparing the feature quantity information in a standard power grid image with the feature quantity in a power grid image of an annotated image set, it can be determined whether missed recognition occurs when the recognition model is used to perform image feature recognition on a sample power grid image.

[0101] After image feature recognition and verification of each power grid image in the annotated image set, the feature position information of each image feature in the standard power grid image can be determined, and based on the feature position information of each image feature in the standard power grid image, a labeling box for each image feature in the standard power grid image can be generated, and the number of labeling boxes in the standard power grid image can be determined. The feature position information of each image feature in the power grid images of the annotated image set can be determined, and based on the feature position information of each image feature in the power grid images of the annotated image set, a labeling box for each image feature in the power grid images of the annotated image set can be generated, and the number of labeling boxes in the power grid images of the annotated image set can be determined. Then, the positions of the labeling boxes of the power grid images of the annotated image set can be compared with those of the standard power grid images, and the number of labeling boxes of the labeling boxes of each image feature in the power grid images of the annotated image set can be compared with those of the labeling boxes of each image feature in the standard power grid image, so as to detect whether the labeling of all image features in the power grid images of the annotated image set is incorrect.

[0102] When it is detected that the position of the annotation box of each image feature in the power grid image of the annotated image set is consistent with the position of the annotation box of each image feature in the standard power grid image, it can be determined that there is no error in the annotation object or the annotation position when the recognition model is used to annotate the image features of the sample power grid image. Otherwise, it can be determined that there is an error in the annotation object or the annotation position when the recognition model is used to annotate the image features of the sample power grid image. When it is detected that the number of annotation boxes of each image feature in the power grid image of the annotated image set is consistent with the number of annotation boxes of each image feature in the standard power grid image, it can be determined that there is no missing annotation when the recognition model is used to annotate the image features of the sample power grid image. Otherwise, it can be determined that there is missing annotation when the recognition model is used to annotate the image features of the sample power grid image.

[0103] In an optional embodiment, after the image features of each power grid image in the annotated image set are reviewed to obtain the reviewed image set, the image features of all power grid images in the reviewed image set can be manually reviewed by relevant technical personnel, thereby further improving the recognition rate of the image features of each power grid image in the reviewed image set and improving the annotation quality of the image features of each power grid image in the reviewed image set.

[0104] In practical applications, the frequency of manual review can be pre-set, such as once every three days, once a week, etc., thereby improving the recognition rate of image features of power grid images and the quality of annotation of image features of power grid images while reducing the number of manual reviews, thereby reducing the time of model training and improving model training efficiency.

[0105] Step 103, training the recognition model according to the review image set to obtain a target recognition model.

[0106] Among them, the target recognition model can be used to perform operations on the target power grid object in the power grid platform, and the operations include image feature labeling operations and image feature recognition operations.

[0107] After obtaining the review image set, you can choose yolov5 (You Only LiveOnce V5, the fifth version of the object recognition and positioning algorithm based on deep neural network) based on the PyTorch framework, and input each power grid image in the review image set into the recognition model for training in turn. After the recognition model training is completed, the target recognition model can be obtained.

[0108] In practical applications, by inputting the verified power grid image into the recognition model for training, the situation in which the training quality of the recognition model is deteriorated due to problems such as incorrect recognition and incorrect labeling of the image features of the power grid image can be reduced, and the image feature recognition rate and labeling quality of the obtained target recognition model for each power grid image can be improved.

[0109] In the specific implementation, since non-electricity professional users lack corresponding electricity knowledge, such as power grid management team members, they cannot fully identify the image features of power grid equipment in the power grid image, and thus non-electricity professional users cannot perform tasks such as power grid image annotation, that is, there are limitations in annotating power grid images. After obtaining the target recognition model, the target recognition model can be used to perform image feature recognition operations and image feature annotation operations on the target power grid object in the power grid platform, and the target recognition model can provide the power grid platform users with functions such as zooming in and out of the image features recognized by the power grid image, one-click confirmation of the recognition results and / or annotation results, brightness adjustment, and picture switching. Therefore, non-electricity professional users can edit and annotate the power grid image online according to the image features recognized and / or annotated by the target recognition model, which solves the problem that non-electricity professional users cannot perform power grid image annotation and broadens the limitations of power grid image annotation.

[0110] In an optional embodiment, step 103 may include the following sub-steps:

[0111] Sub-step 21, classifying the review image set according to a preset random sampling algorithm to obtain a sample training set, a sample test set and a sample verification set.

[0112] Among them, the random sampling algorithm can be equal probability sampling, the sample training set can include at least one power grid image in the review image set for training the recognition model, the sample test set can include at least one power grid image in the review image set for testing the recognition model, and the sample verification set can include at least one power grid image in the review image set for verifying the recognition model.

[0113] After obtaining the review image set, at least one power grid image for training the recognition model, at least one power grid image for testing the recognition model, and at least one power grid image for verifying the recognition model can be arbitrarily selected from all power grid images in the review image set according to a preset random sampling algorithm, and then a sample training set, a sample test set, and a sample verification set can be generated according to at least one power grid image for training the recognition model, at least one power grid image for testing the recognition model, and at least one power grid image for verifying the recognition model.

[0114] Sub-step 22: input the sample training set and the sample test set into the recognition model for training, and obtain a training result set for the sample training set and the sample test set.

[0115] The training result set may include training results obtained by inputting each power grid image in the sample training set and the sample test set into the recognition model.

[0116] After obtaining the sample training set, the sample test set and the sample verification set, each power grid image in the sample training set and the sample test set can be input into the recognition model, and then the recognition model can output the training results for each power grid image in the sample training set and the sample test set to obtain a training result set.

[0117] Sub-step 23, verifying the recognition rate of the recognition model based on the sample verification set and the training result set.

[0118] The recognition rate of the recognition model may be the accuracy rate at which the recognition model correctly recognizes and labels the image features of the power grid image.

[0119] After obtaining the training result set, the recognition rate of the recognition model can be verified based on the sample verification set and the training result set.

[0120] Sub-step 24, comparing the recognition rate of the recognition model with a preset recognition expectation threshold, and when the recognition rate of the recognition model is less than the recognition expectation threshold, optimizing the model parameters of the recognition model to obtain an optimized recognition model.

[0121] Among them, the recognition expectation threshold can be a manually set value, and the recognition expectation threshold can also be set according to the actual business scenario. The actual business scenario may include hidden danger identification scenarios, defect identification scenarios, etc. The hidden danger identification scenario can be a scenario for identifying safety hazards of power grid equipment, and the defect identification scenario can be a scenario for identifying defects in power grid equipment. Model parameters may include model learning rate parameters, model depth parameters, model width parameters, number of training rounds, and amount of training data.

[0122] After obtaining the recognition rate of the recognition model, the recognition rate of the recognition model can be compared with a preset recognition expectation threshold. When it is determined that the recognition rate of the recognition model is less than the recognition expectation threshold, the model parameters of the recognition model are optimized, such as adjusting the model learning rate parameters, model depth parameters, model width parameters, number of training rounds, amount of training data and other model parameters to obtain an optimized recognition model.

[0123] In actual applications, since the hidden danger identification scenario is a scenario for identifying safety hazards of power grid equipment, and the defect identification scenario is a scenario for identifying defects of power grid equipment, and the safety hazards of power grid equipment pose a greater threat to the entire power grid, while the defects of power grid equipment pose a smaller threat to the entire power grid, the expected recognition threshold of the hidden danger identification scenario can be set greater than the expected recognition threshold of the defect identification scenario. For example, the expected recognition threshold of the hidden danger identification scenario can be set to 95%, and the expected recognition threshold of the defect identification scenario can be set to 90%.

[0124] In a specific implementation, since the larger the model learning rate parameter, the higher the efficiency of the recognition model training, but it is easy to have gradient explosion and oscillation during training, resulting in the recognition model after training not converging to the optimal solution, reducing the image feature recognition rate and annotation quality of the trained recognition model for each power grid image. When optimizing the model parameters of the recognition model, the model learning rate parameter of the recognition model before a certain number of rounds can be set to be greater than the model learning rate parameter of the recognition model after a certain number of rounds. That is, at the beginning of training, the training efficiency of the recognition model is improved by increasing the model learning rate parameter, and after a preset number of training rounds, the training efficiency of the recognition model is reduced, so that the recognition model gradually converges to the optimal solution, and the image feature recognition rate and annotation quality of the trained recognition model for each power grid image are improved.

[0125] In an optional embodiment, when the recognition rate of the recognition model is greater than the recognition expected threshold, it can be considered that the recognition rate of the recognition model will not increase even if the recognition model is trained again, and the image feature recognition rate and annotation quality of the recognition model for each power grid image meet the user's needs and can be used to perform operations on the target power grid object in the power grid platform, and then the recognition model with a recognition rate greater than the recognition expected threshold can be determined as the target recognition model.

[0126] As an optional implementation, in sub-step 24, the model parameters of the recognition model are optimized to obtain the optimized recognition model. The specific implementation may also be:

[0127] Determine the recognition scene corresponding to each power grid image, and determine the scene complexity of the recognition scene corresponding to each power grid image; according to the scene complexity of the recognition scene corresponding to each power grid image and the preset model training strategy, perform parameter tuning on the model parameters of the recognition model to obtain an optimized recognition model.

[0128] Among them, the recognition scene may include the scenes of the area where all power grid objects are located, such as the area where the power grid object is a transmission line tower is generally a deep mountain scene or a dense forest scene or a wilderness scene, etc. The scene complexity can be the complexity of the scene in the area where the power grid object is located. The model training strategy may include model training strategies for different recognition scenarios, and the model training strategy may be a strategy for adjusting the model parameters corresponding to the scene complexity of the recognition scene.

[0129] When it is determined that the recognition rate of the recognition model is less than the expected recognition threshold, the recognition scene corresponding to the power grid image of each power grid object can be determined according to the area where each power grid object is located, and the scene complexity of the recognition scene corresponding to the power grid image can be determined by performing image processing on the power grid image and recognizing image features.

[0130] After determining the scene complexity of the recognition scene corresponding to the power grid image, the model parameters of the recognition model can be optimized according to the scene complexity of the recognition scene corresponding to each power grid image and a preset model training strategy to obtain an optimized recognition model.

[0131] In practical applications, since there may be objects other than the power grid object in the scene of the area where the power grid object is located, such as trees, buildings, etc., when training the recognition model, when identifying the image features in the power grid image, the image features corresponding to the objects other than the power grid object will be identified, causing unnecessary interference and reducing the recognition rate of the image features of each power grid image by the recognition model. The scene complexity of the recognition scene corresponding to the power grid image can be determined, and the model parameters corresponding to the recognition scene can be determined according to the model training strategy. Then, the model parameters corresponding to the recognition scene in the recognition model can be adjusted according to the model training strategy, such as adjusting the model depth parameters and / or model width parameters, so as to reduce the situation where the image features corresponding to the objects other than the power grid object are identified when training the recognition model, reduce other unnecessary interference, and further improve the recognition rate of the image features of each power grid image by the recognition model.

[0132] For example, when it is determined that the recognition scene is a wilderness scene, the model parameters corresponding to the recognition scene being a wilderness scene can be determined to be the model depth parameter and the model width parameter, and then the model depth parameter in the recognition model can be adjusted to 0.33 and the model width parameter in the recognition model can be adjusted to 0.50 according to the model training strategy.

[0133] Sub-step 25, updating the optimized recognition model to a preset recognition model, and re-executing the operation of training the recognition model according to the review image set, until the recognition rate of the trained recognition model is greater than the recognition rate expected threshold.

[0134] After obtaining the optimized recognition model, the optimized recognition model can be updated to the preset recognition model, and the operation of training the recognition model according to the review image set can be re-executed until the recognition rate of the trained recognition model is greater than the expected recognition rate threshold.

[0135] It can be seen that this optional embodiment can collect power grid images for at least one sample power grid object, and annotate the image features of each power grid image through a preset recognition model to obtain a set of annotated images, wherein the set of annotated images includes power grid images of each power grid object with annotated image features; image features of each power grid image in the annotated image set are reviewed to obtain a review image set; the recognition model is trained according to the review image set to obtain a target recognition model; the target recognition model is used to perform operations on target power grid objects in the power grid platform, and the operations include annotation operations. It can be seen that the implementation of the present invention improves the annotation efficiency of power grid images and ensures the annotation quality by performing annotation operations on power grid images of multiple power grid objects through the recognition model, and the training accuracy and reliability of the recognition model can be improved by training the recognition model through the annotated and reviewed power grid images, which is conducive to improving the recognition accuracy and efficiency of the recognition model for power grid images in practical applications, thereby improving the annotation quality of power grid images.

[0136] Embodiment 2

[0137] See also Figure 2 , Figure 2 is a flow chart of another model training method based on a power grid disclosed in an embodiment of the present invention. Figure 2 The described power grid-based model training method can be applied to an Internet platform that provides power grid services such as power grid engineering and power grid surveying, or to a server that executes power grid projects such as power grid engineering and power grid surveying, or to a client that executes power grid projects such as power grid engineering and power grid surveying, and the embodiments of the present invention do not limit this. Figure 2 As shown, the grid-based model training method may include the following operations:

[0138] Step 201 : acquiring a power grid image for at least one sample power grid object.

[0139] Step 202 : Analyze the image information of each power grid image to obtain the image quality information of each power grid image, and determine the image quality index corresponding to each power grid image according to the image quality information of each power grid image.

[0140] Among them, the image information may include image size information, image pixel information, and color depth information. The image quality information may be used to indicate the realism and readability of the power grid image. The image quality index may be an evaluation value of the image quality of the power grid image based on the image quality information.

[0141] After obtaining the power grid image of each sample power grid object, image quality analysis can be performed on each power grid image to determine the image size information, image pixel information, and color depth information of each power grid image, and the realism and readability of each power grid image can be determined based on the image size information, image pixel information, and color depth information. Then, the realism and readability of each power grid image can be weightedly calculated to obtain the image quality index corresponding to each power grid image.

[0142] Step 203, according to the image quality index corresponding to each power grid image and the preset image quality index threshold, filter the target power grid images whose image quality index is less than the image quality index threshold among all power grid images, and generate a quality image set according to the power grid images except the target power grid image among all power grid images.

[0143] Among them, the image quality index threshold can be a manually set value, the image quality index threshold can be used to determine the power grid image with too low image quality, the target power grid image can be the power grid image with too low image quality, and the quality image set can include all power grid images except the target power grid image.

[0144] After obtaining the image quality index corresponding to each power grid image, the image quality index corresponding to each power grid image and the preset image quality index threshold can be compared in turn, and then the target power grid image whose image quality index is less than the image quality index threshold among all power grid images can be determined, and all target power grid images can be filtered from all power grid images, and a quality image set can be generated based on the power grid images among all power grid images except the target power grid image.

[0145] In practical applications, if the image quality of an image is too low, there will be a large deviation in the image feature recognition and / or image feature annotation of the image. Using images with too low image quality to train the recognition model is not conducive to the convergence of the recognition model, that is, it reduces the image feature recognition rate and annotation quality of each power grid image of the trained recognition model. Then, the power grid image whose image quality index is less than the image quality index threshold can be determined as a power grid image with too low image quality. Then, the power grid image whose image quality index is less than the image quality index threshold can be filtered, reducing the use of images with too low image quality to train the recognition model and reducing the image feature recognition rate and annotation quality of each power grid image of the trained recognition model.

[0146] Step 204 , using a preset recognition model, sequentially annotate the image features of all power grid images in the quality image set, and generate an annotated image set based on all the annotated power grid images.

[0147] After the quality image set is generated, the image features of all power grid images in the quality image set can be labeled in sequence through a preset recognition model, and a labeled image set can be generated based on all labeled power grid images.

[0148] In practical applications, the image features of all power grid images in the quality image set may be labeled in the manner of labeling the image features of each power grid image using a preset recognition model in the first embodiment.

[0149] In an optional embodiment, step 204 may include the following sub-steps:

[0150] Sub-step 31 , identifying the first image feature of each power grid image in the quality image set respectively by using a preset recognition model, and determining the first physical parameter of the first image feature of each power grid image in the quality image set.

[0151] The physical parameter may be contour information and position information of the image feature in the power grid image, the first image feature may include all image features in the power grid image, and the first physical parameter may include physical parameters of all image features in the power grid image.

[0152] After the quality image set is generated, the first image feature of each power grid image in the quality image set can be respectively identified by a preset recognition model, and the first physical parameter of the first image feature of each power grid image in the quality image set can be determined.

[0153] Sub-step 32, annotating the first image feature of each power grid image in the quality image set according to the first physical parameter of the first image feature of each power grid image in the quality image set, and generating a labeled image set according to all the labeled power grid images in the quality image set.

[0154] After determining the first physical parameter of the first image feature of each power grid image in the quality image set, for any power grid image in the quality image set, a labeling box for each image feature in the power grid image can be generated in turn according to the position information of the first image feature of the power grid image, and according to the position information and contour information of the first image feature of the power grid image, it can be determined whether each image feature in the power grid image has a defect, and the situation of whether each image feature has a defect is determined as the labeling content of the labeling box of each image feature in the power grid image.

[0155] In practical applications, after generating a labeling box for each image feature in the power grid image and determining the labeling content of each image feature labeling box, the confidence of each image feature labeling box and the labeling content of each image feature labeling box can also be determined through a recognition model.

[0156] After labeling each power grid image in the quality image set, a labeled image set may be generated according to all labeled power grid images in the quality image set.

[0157] As an optional implementation, after labeling each power grid image in the quality image set, sample enhancement can also be performed on each power grid image in the quality image set to unify the image quality of each power grid image in the quality image set and reduce the difference between the image qualities of different power grid images, thereby reducing the impact of using power grid images with differences in image quality to train the recognition model, enhancing the robustness of the recognition model and preventing the recognition model from overfitting, and further improving the image feature recognition rate of the recognition model for each power grid image.

[0158] Among them, sample enhancement can include image processing methods such as horizontal flipping, angle rotation, saturation adjustment, exposure adjustment, hue adjustment, random cropping, translation transformation, and illumination transformation for power grid images.

[0159] Step 205 , review the image features of each power grid image in the labeled image set to obtain a reviewed image set.

[0160] In an optional embodiment, step 205 may include the following sub-steps:

[0161] Sub-step 41, re-identify the image features of each power grid image in the annotated image set, obtain the second image features of each power grid image in the annotated image set, and determine the second physical parameter of the second image features of each power grid image in the annotated image set.

[0162] Among them, for any power grid image in the annotated image set, the second image feature of the power grid image can be associated with the first image feature of the power grid image, the second image feature can be an image feature identified for the first image feature in the power grid image, and the second physical parameter can be a physical parameter of the second image feature.

[0163] After obtaining the annotated image set, the image features of each power grid image in the annotated image set can be re-identified respectively to obtain the second image features of each power grid image in the annotated image set, and the second physical parameters of the second image features of each power grid image in the annotated image set can be determined.

[0164] In practical applications, relevant professionals may re-identify the image features of each power grid image in the annotated image set to obtain the second image features of each power grid image in the annotated image set.

[0165] Sub-step 42, for any power grid image in the annotated image set, determine whether the first image feature of the power grid image is incorrectly annotated based on the first physical parameter of the first image feature of the power grid image and the second physical parameter of the second image feature of the power grid image; and when it is determined that the first image feature of the power grid image is incorrectly annotated, adjust the first physical parameter of the first image feature of the power grid image based on the second physical parameter of the second image feature of the power grid image to obtain a verified power grid image; when it is determined that the first image feature of the power grid image has no annotated error, determine that the power grid image is an accurate power grid image.

[0166] The reviewed power grid image may be a power grid image in which the first physical parameter of the first image feature in all power grid images is incorrect and the first physical parameter is adjusted, and the correct power grid image may be a power grid image in which the first image feature in all power grid images has no marking errors.

[0167] After obtaining the second physical parameter of the second image feature of each power grid image in the annotated image set, for any power grid image in the annotated image set, it is possible to determine whether the first image feature of the power grid image is incorrectly labeled based on the first physical parameter of the first image feature of the power grid image and the second physical parameter of the second image feature of the power grid image; and when it is determined that the first image feature of the power grid image is incorrectly labeled, the first physical parameter of the first image feature of the power grid image can be adjusted based on the second physical parameter of the second image feature of the power grid image to obtain a verified power grid image; and when it is determined that the first image feature of the power grid image has no labeling error, it can be determined that the power grid image is a correct power grid image.

[0168] As an optional implementation manner, whether the first image feature of the power grid image is incorrectly labeled may be determined in the following manner:

[0169] For any power grid image in the annotated image set, determine the deviation value between the first image feature of the power grid image and the second image feature of the power grid image based on the first physical parameter of the first image feature of the power grid image and the second physical parameter of the second image feature of the power grid image; when the deviation value between the first image feature of the power grid image and the second image feature of the power grid image is greater than a preset deviation value threshold, it is determined that the first image feature of the power grid image is incorrectly annotated; when the deviation value between the first image feature of the power grid image and the second image feature of the power grid image is less than the preset deviation value threshold, it is determined that the first image feature of the power grid image is correctly annotated.

[0170] The deviation value threshold may be used to determine whether the deviation value between the first image feature of the power grid image and the second image feature of the power grid image is too large.

[0171] After obtaining the second physical parameter of the second image feature of each power grid image in the annotated image set, for any power grid image in the annotated image set, the deviation value between the first image feature of the power grid image and the second image feature of the power grid image can be determined according to the first physical parameter of the first image feature of the power grid image and the second physical parameter of the second image feature of the power grid image. Then, when the deviation value between the first image feature of the power grid image and the second image feature of the power grid image is greater than a preset deviation value threshold, it can be determined that the first image feature of the power grid image is incorrectly annotated. When the deviation value between the first image feature of the power grid image and the second image feature of the power grid image is less than a preset deviation value threshold, it can be determined that the first image feature of the power grid image is correctly annotated.

[0172] Sub-step 43, generating a review image set based on all the reviewed power grid images and all the correct power grid images.

[0173] After all the verified power grid images and all the correct power grid images are obtained, a verified image set may be generated based on all the verified power grid images and all the correct power grid images.

[0174] Step 206, training the recognition model according to the review image set to obtain a target recognition model.

[0175] It can be seen that this optional embodiment is capable of collecting power grid images for at least one sample power grid object, analyzing the image information of each power grid image, obtaining the image quality information of each power grid image, and determining the image quality index corresponding to each power grid image based on the image quality information of each power grid image, filtering the target power grid images whose image quality index is less than the image quality index threshold among all power grid images according to the image quality index corresponding to each power grid image and a preset image quality index threshold, and generating a quality image set based on the power grid images other than the target power grid image among all power grid images, annotating the image features of all power grid images in the quality image set in sequence through a preset recognition model, and generating a labeled image set based on all the labeled power grid images, performing image feature review on the image features of each power grid image in the labeled image set to obtain a reviewed image set, training the recognition model based on the reviewed image set to obtain a target recognition model. It can be seen that the implementation of the present invention performs labeling operations on the power grid images of multiple power grid objects through the recognition model, thereby improving the labeling efficiency of the power grid images, ensuring the labeling quality, and being able to filter and review the collected power grid images, and then use the filtered and reviewed power grid images to train the recognition model, thereby reducing the impact of using different power grid images to train the recognition model, improving the training accuracy and reliability of the recognition model, thereby improving the image feature recognition rate and efficiency of the recognition model for each power grid image in actual applications, and further improving the labeling quality of the power grid image.

[0176] Embodiment 3

[0177] See also Figure 3 , Figure 3 is a schematic diagram of the structure of a model training device based on a power grid disclosed in an embodiment of the present invention. Figure 3 The described power grid-based model training device can be applied to an Internet platform that provides power grid services such as power grid engineering and power grid surveying, or to a server that executes power grid projects such as power grid engineering and power grid surveying, or to a client that executes power grid projects such as power grid engineering and power grid surveying, and the embodiments of the present invention do not limit this. Figure 3 As shown, the grid-based model training device may include:

[0178] The labeling module 301 is used to collect power grid images for at least one sample power grid object, and label each power grid image with image features through a preset recognition model to obtain a labeled image set, wherein the labeled image set includes the power grid image of each power grid object with labeled image features;

[0179] A review module 302 is used to review the image features of each power grid image in the labeled image set to obtain a review image set;

[0180] The training module 303 is used to train the recognition model according to the review image set to obtain a target recognition model; the target recognition model is used to perform operations on the target power grid object in the power grid platform, and the operations include labeling operations.

[0181] As an optional implementation, see Figure 4 , Figure 4 is a schematic diagram of the structure of another power grid-based model training device disclosed in an embodiment of the present invention, such as Figure 4 As shown, the device also includes:

[0182] A determination module 304 is used to determine the category information of each sample power grid object, and determine the priority level corresponding to the power grid image of each sample power grid object according to the category information of each sample power grid object;

[0183] The sorting module 305 is used to sort all power grid images according to the priority level corresponding to each power grid image to obtain a power grid image annotation sequence; the power grid image annotation sequence is used to determine the annotation order of each power grid image;

[0184] Furthermore, in the labeling module 301, the image features of each power grid image are labeled by using a preset recognition model, and a specific method of obtaining a labeled image set is as follows:

[0185] Image feature annotation is performed on each power grid image using a preset recognition model and power grid image annotation sequence.

[0186] As an optional implementation, the specific method of training the recognition model according to the review image set in the training module 303 is:

[0187] According to a preset random sampling algorithm, the review image set is classified to obtain a sample training set, a sample test set and a sample verification set; the sample training set and the sample test set are input into the recognition model for training to obtain a training result set for the sample training set and the sample test set; the recognition rate of the recognition model is verified according to the sample verification set and the training result set; the recognition rate of the recognition model is compared with a preset recognition expected threshold, and when the recognition rate of the recognition model is less than the recognition expected threshold, the model parameters of the recognition model are optimized to obtain an optimized recognition model; the optimized recognition model is updated to the preset recognition model, and the operation of training the recognition model according to the review image set is re-executed until the recognition rate of the trained recognition model is greater than the recognition rate expected threshold.

[0188] As an optional implementation, the model parameters of the recognition model are optimized in the training module 303, and the specific method of obtaining the optimized recognition model is as follows:

[0189] Determine the recognition scene corresponding to each power grid image, and determine the scene complexity of the recognition scene corresponding to each power grid image; according to the scene complexity of the recognition scene corresponding to each power grid image and the preset model training strategy, perform parameter tuning on the model parameters of the recognition model to obtain an optimized recognition model; the model parameters include model learning rate parameters, model depth parameters, model width parameters, number of training rounds, and amount of training data.

[0190] As an optional implementation, the labeling module 301 labels each power grid image by using a preset recognition model to obtain a set of labeled images in a specific manner as follows:

[0191] The image information of each power grid image is analyzed to obtain the image quality information of each power grid image, and the image quality index corresponding to each power grid image is determined according to the image quality information of each power grid image; the image information includes image size information, image pixel information, and color depth information; according to the image quality index corresponding to each power grid image and a preset image quality index threshold, the target power grid images whose image quality index is less than the image quality index threshold among all power grid images are filtered, and a quality image set is generated according to the power grid images except the target power grid image among all power grid images; the image features of all power grid images in the quality image set are labeled in sequence through a preset recognition model, and a labeled image set is generated according to all labeled power grid images.

[0192] As an optional implementation, the labeling module 301 labels the image features of all power grid images in the quality image set in sequence through a preset recognition model, and generates a labeled image set based on all labeled power grid images in a specific manner as follows:

[0193] The first image feature of each power grid image in the quality image set is identified respectively by a preset recognition model, and the first physical parameter of the first image feature of each power grid image in the quality image set is determined; according to the first physical parameter of the first image feature of each power grid image in the quality image set, the first image feature of each power grid image in the quality image set is labeled, and a labeled image set is generated based on all labeled power grid images in the quality image set.

[0194] As an optional implementation, the review module 302 reviews the image features of each power grid image in the labeled image set to obtain the reviewed image set in the following specific manner:

[0195] Re-identify the image features of each power grid image in the annotated image set respectively, obtain the second image feature of each power grid image in the annotated image set, and determine the second physical parameter of the second image feature of each power grid image in the annotated image set; for any power grid image in the annotated image set, the second image feature of the power grid image is associated with the first image feature of the power grid image; for any power grid image in the annotated image set, determine whether the first image feature of the power grid image is incorrectly labeled based on the first physical parameter of the first image feature of the power grid image and the second physical parameter of the second image feature of the power grid image, and when it is determined that the first image feature of the power grid image is incorrectly labeled, adjust the first physical parameter of the first image feature of the power grid image based on the second physical parameter of the second image feature of the power grid image to obtain a verified power grid image; when it is determined that there is no labeling error in the first image feature of the power grid image, determine that the power grid image is a correct power grid image; generate a verified image set based on all verified power grid images and all correct power grid images;

[0196] And, the specific method of determining whether the first image feature of the power grid image is marked incorrectly in the review module 302 is:

[0197] For any power grid image in the annotated image set, determine the deviation value between the first image feature of the power grid image and the second image feature of the power grid image based on the first physical parameter of the first image feature of the power grid image and the second physical parameter of the second image feature of the power grid image; for any power grid image in the annotated image set, when the deviation value between the first image feature of the power grid image and the second image feature of the power grid image is greater than a preset deviation value threshold, determine that the first image feature of the power grid image is incorrectly annotated; when the deviation value between the first image feature of the power grid image and the second image feature of the power grid image is less than the preset deviation value threshold, determine that the first image feature of the power grid image is correctly annotated.

[0198] It can be seen that this optional embodiment can collect power grid images for at least one sample power grid object, and annotate the image features of each power grid image through a preset recognition model to obtain a set of annotated images, wherein the set of annotated images includes power grid images of each power grid object with annotated image features; image features of each power grid image in the annotated image set are reviewed to obtain a review image set; the recognition model is trained according to the review image set to obtain a target recognition model; the target recognition model is used to perform operations on target power grid objects in the power grid platform, and the operations include annotation operations. It can be seen that the implementation of the present invention improves the annotation efficiency of power grid images and ensures the annotation quality by performing annotation operations on power grid images of multiple power grid objects through the recognition model, and the training accuracy and reliability of the recognition model can be improved by training the recognition model through the annotated and reviewed power grid images, which is conducive to improving the recognition accuracy and efficiency of the recognition model for power grid images in practical applications, thereby improving the annotation quality of power grid images.

[0199] Embodiment 4

[0200] See also Figure 5 , Figure 5 FIG. 1 is a schematic diagram of the structure of another model training device based on a power grid disclosed in an embodiment of the present invention. Figure 5 As shown, the grid-based model training device may include:

[0201] A memory 401 storing executable program codes;

[0202] a processor 402 coupled to the memory 401;

[0203] The processor 402 calls the executable program code stored in the memory 401 to execute the steps in the power grid-based model training method described in the first embodiment of the present invention or the second embodiment of the present invention.

[0204] Embodiment 5

[0205] An embodiment of the present invention discloses a computer storable medium, which stores computer instructions. When the computer instructions are called, they are used to execute the steps in the power grid-based model training method described in Embodiment 1 or Embodiment 2 of the present invention.

[0206] Embodiment 6

[0207] An embodiment of the present invention discloses a computer program product, which includes a non-transitory computer-readable storage medium storing a computer program, and the computer program is operable to enable a computer to execute the steps in the power grid-based model training method described in Example 1 or Example 2.

[0208] The device embodiments described above are only illustrative, wherein the modules described as separate components may or may not be physically separated, and the components displayed as modules may or may not be physical modules, i.e., they may be located in one place, or they may be distributed on multiple network modules. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Those of ordinary skill in the art may understand and implement it without creative work.

[0209] Through the specific description of the above embodiments, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, it can also be implemented by hardware. Based on such an understanding, the above technical solution can be essentially or partly contributed to the prior art in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, and the storage medium includes a read-only memory (ROM), a random access memory (RAM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), a one-time programmable read-only memory (OTPROM), an electronically erasable rewritable read-only memory (EEPROM), a compact disc (CD-ROM) or other optical disc storage, magnetic disk storage, magnetic tape storage, or any other computer-readable medium that can be used to carry or store data.

[0210] Finally, it should be noted that the power grid-based model training method and device disclosed in the embodiments of the present invention only disclose preferred embodiments of the present invention, which are only used to illustrate the technical solutions of the present invention, rather than to limit them. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features thereof may be replaced by equivalents. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. A model training method based on a power grid, characterized in that: The method comprises: Collecting power grid images for at least one sample power grid object, and annotating image features of each of the power grid images using a preset recognition model to obtain an annotated image set; the annotated image set includes the power grid image of each of the power grid objects annotated with image features; Performing image feature review on image features of each of the power grid images in the labeled image set to obtain a reviewed image set; The recognition model is trained according to the review image set to obtain a target recognition model; the target recognition model is used to perform operations on target power grid objects in the power grid platform, and the operations include labeling operations; The method of labeling each of the power grid images by using a preset recognition model to obtain a set of labeled images includes: Analyze the image information of each of the power grid images to obtain image quality information of each of the power grid images, and determine the image quality index corresponding to each of the power grid images according to the image quality information of each of the power grid images; the image information includes image size information, image pixel information, and color depth information; According to the image quality index corresponding to each of the power grid images and a preset image quality index threshold, filtering the target power grid images whose image quality index is less than the image quality index threshold among all the power grid images, and generating a quality image set according to the power grid images except the target power grid images among all the power grid images; By using a preset recognition model, the image features of all the power grid images in the quality image set are sequentially labeled, and a labeled image set is generated according to all the labeled power grid images; The method of sequentially labeling the image features of all the power grid images in the quality image set by using a preset recognition model, and generating a labeled image set according to all the labeled power grid images, includes: Respectively identifying the first image feature of each of the power grid images in the quality image set by using a preset recognition model, and determining a first physical parameter of the first image feature of each of the power grid images in the quality image set; Annotating the first image feature of each of the power grid images in the quality image set according to the first physical parameter of the first image feature of each of the power grid images in the quality image set, and generating a labeled image set according to all the labeled power grid images in the quality image set; The physical parameter is the contour information and position information of the image feature in the power grid image, the first image feature of each power grid image includes all the image features in the power grid image, and the first physical parameter corresponding to each power grid image includes the physical parameters corresponding to all the image features in the power grid image; The step of reviewing the image features of each of the power grid images in the labeled image set to obtain a reviewed image set includes: Re-identify the image features of each of the power grid images in the annotated image set respectively, obtain the second image feature of each of the power grid images in the annotated image set, and determine the second physical parameter of the second image feature of each of the power grid images in the annotated image set; for any of the power grid images in the annotated image set, the second image feature of the power grid image is associated with the first image feature of the power grid image; For any of the power grid images in the annotated image set, judging whether the first image feature of the power grid image is incorrectly annotated according to the first physical parameter of the first image feature of the power grid image and the second physical parameter of the second image feature of the power grid image, and when judging that the first image feature of the power grid image is incorrectly annotated, adjusting the first physical parameter of the first image feature of the power grid image according to the second physical parameter of the second image feature of the power grid image to obtain a verified power grid image; and when judging that there is no marking error in the first image feature of the power grid image, determining that the power grid image is a correct power grid image; A verification image set is generated according to all the verification power grid images and all the correct power grid images.

2. The power grid-based model training method according to claim 1, characterized in that: Before performing image feature annotation on each of the power grid images by using a preset recognition model to obtain a set of annotated images, the method further includes: Determining category information of each of the sample power grid objects, and determining a priority level corresponding to the power grid image of each of the sample power grid objects according to the category information of each of the sample power grid objects; According to the priority level corresponding to each of the power grid images, all the power grid images are sorted to obtain a power grid image annotation sequence; the power grid image annotation sequence is used to determine the annotation order of each of the power grid images; And, the image features of each of the power grid images are annotated by using a preset recognition model to obtain an annotated image set, including: By using a preset recognition model and the power grid image annotation sequence, image feature annotation is performed on each power grid image to obtain a set of annotated images.

3. The power grid-based model training method according to claim 2, characterized in that: The step of training the recognition model according to the review image set comprises: Classifying the review image set according to a preset random sampling algorithm to obtain a sample training set, a sample test set, and a sample verification set; Inputting the sample training set and the sample test set into the recognition model for training, and obtaining a training result set for the sample training set and the sample test set; Verifying the recognition rate of the recognition model according to the sample verification set and the training result set; Comparing the recognition rate of the recognition model with a preset recognition expectation threshold, and when the recognition rate of the recognition model is less than the recognition expectation threshold, optimizing the model parameters of the recognition model to obtain an optimized recognition model; The optimized recognition model is updated to the preset recognition model, and the operation of training the recognition model according to the review image set is re-executed until the recognition rate of the trained recognition model is greater than the expected recognition rate threshold.

4. The power grid-based model training method according to claim 3, characterized in that: The step of optimizing the model parameters of the recognition model to obtain an optimized recognition model includes: Determining a recognition scene corresponding to each of the power grid images, and determining a scene complexity of the recognition scene corresponding to each of the power grid images; According to the scene complexity of the recognition scene corresponding to each of the power grid images and the preset model training strategy, the model parameters of the recognition model are tuned to obtain an optimized recognition model; the model parameters include model learning rate parameters, model depth parameters, model width parameters, number of training rounds, and amount of training data.

5. The power grid-based model training method according to claim 1, characterized in that: The determining whether the first image feature of the power grid image is incorrectly labeled includes: For any of the power grid images in the annotated image set, determining a deviation value between the first image feature of the power grid image and the second image feature of the power grid image according to a first physical parameter of the first image feature of the power grid image and a second physical parameter of the second image feature of the power grid image; For any of the power grid images in the labeled image set, when the deviation value between the first image feature of the power grid image and the second image feature of the power grid image is greater than a preset deviation value threshold, it is determined that the first image feature of the power grid image is incorrectly labeled; when the deviation value between the first image feature of the power grid image and the second image feature of the power grid image is less than the preset deviation value threshold, it is determined that the first image feature of the power grid image is correctly labeled.

6. A model training device based on power grid, characterized in that: The device comprises: a labeling module, configured to collect power grid images for at least one sample power grid object, and label each of the power grid images with image features using a preset recognition model to obtain a labeled image set, wherein the labeled image set includes the power grid image of each of the power grid objects with labeled image features; A review module, used for reviewing the image features of each of the power grid images in the labeled image set to obtain a review image set; A training module, used to train the recognition model according to the review image set to obtain a target recognition model; the target recognition model is used to perform operations on target power grid objects in the power grid platform, the operations including labeling operations; The specific method of labeling each of the power grid images by using a preset recognition model in the labeling module to obtain a set of labeled images is as follows: Analyze the image information of each of the power grid images to obtain the image quality information of each of the power grid images, and determine the image quality index corresponding to each of the power grid images according to the image quality information of each of the power grid images; the image information includes image size information, image pixel information, and color depth information; according to the image quality index corresponding to each of the power grid images and a preset image quality index threshold, filter all of the target power grid images whose image quality index is less than the image quality index threshold among the power grid images, and generate a quality image set according to the power grid images other than the target power grid images among all of the power grid images; sequentially annotate the image features of all of the power grid images in the quality image set through a preset recognition model, and generate an annotated image set according to all the annotated power grid images; The specific method of sequentially marking the image features of all the power grid images in the quality image set by using a preset recognition model in the marking module and generating a marked image set according to all the marked power grid images is as follows: Respectively identifying the first image feature of each of the power grid images in the quality image set by using a preset recognition model, and determining the first physical parameter of the first image feature of each of the power grid images in the quality image set; annotating the first image feature of each of the power grid images in the quality image set according to the first physical parameter of the first image feature of each of the power grid images in the quality image set, and generating a labeled image set according to all the labeled power grid images in the quality image set; The physical parameter is the contour information and position information of the image feature in the power grid image, the first image feature of each power grid image includes all the image features in the power grid image, and the first physical parameter corresponding to each power grid image includes the physical parameters corresponding to all the image features in the power grid image; The specific method of performing image feature review on the image features of each power grid image in the labeled image set in the review module to obtain the reviewed image set is: Re-identify the image features of each of the power grid images in the annotated image set respectively, obtain the second image feature of each of the power grid images in the annotated image set, and determine the second physical parameter of the second image feature of each of the power grid images in the annotated image set; for any of the power grid images in the annotated image set, the second image feature of the power grid image is associated with the first image feature of the power grid image; For any of the power grid images in the annotated image set, judging whether the first image feature of the power grid image is incorrectly annotated according to the first physical parameter of the first image feature of the power grid image and the second physical parameter of the second image feature of the power grid image, and when judging that the first image feature of the power grid image is incorrectly annotated, adjusting the first physical parameter of the first image feature of the power grid image according to the second physical parameter of the second image feature of the power grid image to obtain a verified power grid image; and when judging that there is no marking error in the first image feature of the power grid image, determining that the power grid image is a correct power grid image; A verification image set is generated according to all the verification power grid images and all the correct power grid images.

7. A model training device based on power grid, characterized in that: The device comprises: A memory storing executable program code; a processor coupled to the memory; The processor calls the executable program code stored in the memory to execute the power grid-based model training method as described in any one of claims 1-5.

8. A computer storage medium, characterized in that: The computer storage medium stores computer instructions, and when the computer instructions are called, they are used to execute the power grid-based model training method as described in any one of claims 1-5.