Method and device for identifying defects in power transmission line, storage medium, processor and program product

By acquiring transmission line image features and converting them into high-granularity features for identification, combined with latent variable data enhancement technology, the problem of low efficiency in transmission line defect detection is solved and efficient and accurate defect identification is achieved.

CN118710976APending Publication Date: 2024-09-27GUANGDONG POWER GRID CO LTD +1
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202410845482.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-27
Publication Date
2024-09-27

AI Technical Summary

Technical Problem

In the existing technology, the detection efficiency of transmission line defects is low and the detection efficiency cannot be effectively improved.

Method used

By obtaining the image to be identified of the transmission line, extracting image features, and using multiple encoded information to convert it into higher-granularity image features for identification to identify defects, we use computational neural network models and latent variable data enhancement technology to construct Robust recognition models.

Benefits of technology

It improves the efficiency and accuracy of transmission line defect detection, achieves high-precision recognition of unbalanced defect image sets, and reduces training time.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118710976A
    Figure CN118710976A
Patent Text Reader

Abstract

The invention discloses a method and a device for identifying defects in a power transmission line, a storage medium, a processor and a program product. The method comprises the following steps: acquiring a to-be-identified image of a power transmission line; extracting a first image feature of the to-be-recognized image; the first image features are converted into second image features through the multiple pieces of first coding information, multiple second image features are obtained, the first coding information is used for representing the types of defects in the power transmission line, and the granularity of the second image features is larger than that of the first image features; and identifying the plurality of second image features to obtain a defect identification result of the power transmission line. According to the invention, the technical problem of low efficiency of defect detection in the power transmission line is solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of power systems, and in particular to a method, device, storage medium, processor and program product for identifying defects in a transmission line. Background Art

[0002] At present, transmission lines are widely distributed and the operating environment is complex. Operation and maintenance personnel are required to regularly inspect the transmission lines to identify potential defects in the transmission lines and ensure the safe and stable operation of the power system.

[0003] In the related art, for the operation and inspection of transmission lines, drones or helicopters are usually used to take pictures of each device that may have defects on the lines and towers, and then the operation and maintenance personnel identify the photographed images to be identified. However, this method has the technical problem of low efficiency in detecting defects in transmission lines.

[0004] To address the above-mentioned problems, no effective solution has been proposed yet. Summary of the invention

[0005] Embodiments of the present invention provide a method, device, storage medium, processor and program product for identifying defects in a power transmission line, so as to at least solve the technical problem of low efficiency in detecting defects in a power transmission line.

[0006] According to one aspect of an embodiment of the present invention, a method for identifying defects in a transmission line is provided, and the method may include: obtaining an image to be identified of the transmission line; extracting a first image feature of the image to be identified; using a plurality of first coding information respectively, converting the first image feature into a second image feature to obtain a plurality of second image features, wherein the first coding information is used to indicate the type of defect in the transmission line, and the granularity of the second image feature is greater than the granularity of the first image feature; identifying the plurality of second image features to obtain a defect identification result of the transmission line.

[0007] Optionally, multiple second image features are identified to obtain a defect identification result of the transmission line, including: determining a first mean corresponding to the multiple second image features, and a variance value corresponding to the multiple second image features, wherein the first mean is used to characterize the average result of the multiple second image features; sampling the first mean and the variance value to obtain multiple latent vectors; predicting the multiple latent vectors to obtain multiple prediction value groups, wherein the prediction value group includes multiple prediction values, and the multiple prediction value groups correspond to the multiple first encoding information one-to-one; and determining the defect identification result based on the multiple prediction value groups.

[0008] Optionally, the defect identification result is determined based on multiple prediction value groups, including: respectively determining second means corresponding to the multiple prediction value groups, wherein the second means is used to characterize the average result of multiple prediction values ​​in the prediction value group; and determining the defect identification result based on the multiple second means.

[0009] Optionally, predicting multiple latent vectors to obtain a prediction value group includes: calling a classification model to predict multiple latent vectors to obtain a prediction value group, wherein the classification model is trained based on historical defect images of transmission lines.

[0010] Optionally, the method may also include: obtaining historical label information corresponding to the historical defect image, and using the historical label information to convert the historical defect image; determining multiple first historical latent vectors corresponding to the historical defect image, and determining multiple second historical latent vectors corresponding to the converted historical defect image; determining target model parameters based on the multiple first historical latent vectors and the multiple second historical latent vectors; and adjusting the initial model parameters of the sub-classification model according to the target model parameters to obtain a classification model.

[0011] Optionally, determining the target model parameters based on the multiple first historical latent vectors and the multiple second historical latent vectors includes: determining distribution difference information between the multiple first historical latent vectors and the multiple second historical latent vectors; adjusting the multiple second historical latent vectors based on the distribution difference information; and determining the target model parameters based on the multiple first historical latent vectors and the adjusted multiple second historical latent vectors.

[0012] Optionally, determining target model parameters based on multiple first historical latent vectors and multiple adjusted second historical latent vectors includes: constructing a target equation based on multiple first historical latent vectors and multiple adjusted second historical latent vectors; and determining target model parameters using the target equation.

[0013] Optionally, sampling the first mean and variance value to obtain multiple latent vectors includes: constructing a Gaussian distribution result corresponding to the second image feature based on the first mean and variance value; sampling the Gaussian distribution result to obtain multiple latent vectors.

[0014] Optionally, the first image feature is converted into the second image feature using multiple first encoding information respectively to obtain multiple second image features, including: obtaining a feature vector of the first image feature; calling a computational neural network model to convert the feature vector into the second image feature using multiple first encoding information respectively to obtain multiple second image features.

[0015] According to another aspect of an embodiment of the present invention, there is also provided a device for identifying defects in a transmission line, which may include: an acquisition unit, used to acquire an image to be identified of the transmission line; an extraction unit, used to extract a first image feature of the image to be identified; a conversion unit, used to convert the first image feature into a second image feature using a plurality of first coding information respectively, to obtain a plurality of second image features, wherein the first coding information is used to indicate the type of defect in the transmission line, and the granularity of the second image feature is greater than the granularity of the first image feature; and an identification unit, used to identify the plurality of second image features to obtain a defect identification result of the transmission line.

[0016] According to another aspect of an embodiment of the present invention, a computer-readable storage medium is provided, which includes a stored program, wherein when the program is run, the device where the computer-readable storage medium is located is controlled to execute the method for identifying defects in the transmission line of an embodiment of the present invention.

[0017] According to another aspect of an embodiment of the present invention, a processor is provided. The processor is used to run a program. When the program is run by the processor, the method for identifying defects in a power transmission line according to an embodiment of the present invention is executed.

[0018] According to another aspect of an embodiment of the present invention, a program product is further provided. The program product includes computer instructions. When the computer instructions are executed by a processor, the method for identifying defects in a power transmission line according to an embodiment of the present invention is implemented.

[0019] In an embodiment of the present invention, an image to be identified of a transmission line is obtained; a first image feature of the image to be identified is extracted; a plurality of first coding information is used to convert the first image feature into a second image feature to obtain a plurality of second image features, wherein the first coding information is used to indicate the type of defect in the transmission line, and the granularity of the second image feature is greater than the granularity of the first image feature; the plurality of second image features are identified to obtain a defect identification result of the transmission line. That is, in an embodiment of the present invention, the image to be identified of the transmission line can be identified to obtain the first image feature of the image to be identified, label information corresponding to different defects can be obtained to obtain a plurality of label information, and the first image feature can be converted into a second image feature using a plurality of first coding information of the plurality of label information, and the defect identification result of the defect in the transmission line can be obtained by identifying the second image feature, thereby solving the technical problem of low efficiency in detecting defects in the transmission line and achieving the technical effect of improving the efficiency in detecting defects in the transmission line. BRIEF DESCRIPTION OF THE DRAWINGS

[0020] The drawings described herein are used to provide a further understanding of the present invention and constitute a part of the present invention. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute an improper limitation of the present invention. In the drawings:

[0021] Figure 1 is a flow chart of a method for identifying defects in a power transmission line according to an embodiment of the present invention;

[0022] Figure 2 is a flow chart of constructing a defect recognition model based on an unbalanced power transmission defect image set and latent variable data enhancement according to an embodiment of the present invention;

[0023] Figure 3 is a flowchart of a method for performing latent variable data enhancement according to an embodiment of the present invention;

[0024] Figure 4 is a schematic diagram of an overall framework of a defect recognition model based on an unbalanced power transmission defect image set and latent variable data enhancement according to an embodiment of the present invention;

[0025] Figure 5 is a schematic diagram of a device for identifying defects in a power transmission line according to an embodiment of the present invention. DETAILED DESCRIPTION

[0026] 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 should fall within the scope of protection of the present invention.

[0027] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0028] Example 1

[0029] According to an embodiment of the present invention, an embodiment of a method for identifying defects in a transmission line is provided. The steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.

[0030] In this embodiment, a method for identifying defects in a transmission line is proposed. The method can identify an image to be identified of the transmission line, obtain a first image feature of the image to be identified, obtain label information corresponding to different defects, obtain multiple label information, and convert the first image feature into a second image feature by using multiple first coding information of the multiple label information. By identifying the second image feature, a defect identification result of the defect in the transmission line is obtained, thereby solving the technical problem of low efficiency in detecting defects in the transmission line and achieving the technical effect of improving the efficiency of detecting defects in the transmission line.

[0031] Figure 1 FIG. 1 is a flow chart of a method for identifying defects in a power transmission line according to an embodiment of the present invention. Figure 1 As shown, the method may include the following steps:

[0032] Step S102, obtaining an image of a power transmission line to be identified.

[0033] In the technical solution provided in the above step S102 of the present invention, an image to be identified of a transmission line can be obtained. The image to be identified can include defective images of the transmission line, for example, images of insufficient safe distance for crossing of transmission lines, rusted poles, foreign objects in poles, fallen insulators, dirty insulators, and cracked insulators. It should be noted that this is only an example, and there is no specific limitation on the type of image to be identified.

[0034] For example, several defect images of the power transmission line taken by a drone or a helicopter may be acquired to obtain an image to be identified.

[0035] Step S104: extracting a first image feature of the image to be identified.

[0036] In the technical solution provided in the above step S104 of the present invention, the image to be identified can be processed to extract the first image feature of the image to be identified. The first image feature can be the first intermediate feature It can be used to characterize the defect location, defect type and other issues in the image to be identified.

[0037] For example, the acquired defect image (x * ) is input into the first computational neural network (C1) to obtain the first intermediate feature in, It can be the model parameters of the first computational neural network, which can be pre-set or obtained through testing. There is no specific limitation on the method of obtaining the above model parameters.

[0038] Step S106: Convert the first image features into second image features using the plurality of first encoding information respectively, to obtain a plurality of second image features, wherein the granularity of the second image features is greater than the granularity of the first image features.

[0039] In the technical solution provided in the above step S106 of the present invention, label information corresponding to different defective images can be acquired in advance. When the image to be identified is identified, the first coding information corresponding to multiple label information can be acquired, and the first image feature can be processed using the first coding information. Among them, the label information can be used to represent the types of different defects in the transmission line, and can be acquired in advance. The types of defects may include insufficient cross-span safety distance, tower corrosion, tower foreign matter, insulator detachment, insulator contamination and insulator cracks, etc., and the types of defects are not specifically limited here. The first coding information can be a classification (one-hot) code y, which can be used to characterize different types of defects.

[0040] Optionally, a plurality of first encoding information is obtained, and the first image feature can be converted into a second image feature using the plurality of first encoding information respectively, to obtain a plurality of second image features. The second image feature can be a second intermediate feature (e2), and the granularity of the second image feature can be greater than the granularity of the first image feature, that is, the accuracy of the second image feature can be greater than the accuracy of the first image feature.

[0041] In this embodiment, label information corresponding to different types of defects can be obtained in advance to obtain multiple label information. First coding information corresponding to different label information can be constructed to obtain multiple first coding information. When the image to be identified is identified, multiple first coding information can be obtained and the first image features can be processed using the first coding information.

[0042] For example, from the optimal model parameters θ * Take out φ * , Among them, φ * It can be used as the optimal parameter set for the first computational neural network and the second computational neural network, that is, The second classification model f′ y The optimal parameters (that is, the optimal model parameters) of the collected image to be identified (for example, the defect image x * ) is input into the first computational neural network C1 to obtain the first intermediate feature And expand the first intermediate feature e1 into a one-dimensional feature vector. Set the one-hot encoding y belonging to the lth class l , get the first encoding information corresponding to multiple label information (y l ), the first coding information and the first intermediate feature e1 can be input into the second computational neural network C2, and the first coding information can be used by the second computational neural network to convert the first image feature into the second image feature, that is, to obtain the second intermediate feature e2.

[0043] Step S108, identifying multiple second image features to obtain a defect identification result of the transmission line.

[0044] In the technical solution provided in the above step S108 of the present invention, after obtaining the second image feature, the second image feature is identified to obtain a defect recognition result of the power transmission line, wherein the defect recognition result can be used to determine the defect location, defect type, etc. of the defect in the power transmission line in the image to be identified.

[0045] In this embodiment, a second image feature is obtained by processing the first image feature with multiple first coding information. The second image feature obtained at this time can better represent the important information in the image to be identified. Therefore, by identifying the second image feature, the purpose of improving the accuracy of identifying the image to be identified can be achieved.

[0046] Through the above-mentioned step S102 and step S108 of the present invention, the image to be identified of the transmission line is obtained; the first image feature of the image to be identified is extracted; the first image feature is converted into the second image feature using multiple first coding information respectively, and multiple second image features are obtained, wherein the first coding information is used to indicate the type of defects in the transmission line, and the granularity of the second image feature is greater than the granularity of the first image feature; the multiple second image features are identified to obtain the defect recognition result of the transmission line. That is to say, in the embodiment of the present invention, the image to be identified of the transmission line can be identified to obtain the first image feature of the image to be identified, the label information corresponding to different defects can be obtained to obtain multiple label information, and the first image feature can be converted into the second image feature using multiple first coding information of the multiple label information, and the defect recognition result of the defect in the transmission line can be obtained by identifying the second image feature, thereby solving the technical problem of low efficiency in detecting defects in the transmission line and achieving the technical effect of improving the efficiency of detecting defects in the transmission line.

[0047] The above method of this embodiment is further introduced below.

[0048] As an optional implementation, step S110, identifying multiple second image features to obtain a defect recognition result of the transmission line, includes: determining a first mean corresponding to the multiple second image features, and a variance value corresponding to the multiple second image features, wherein the first mean is used to characterize the average result of the multiple second image features; sampling the first mean and the variance value to obtain multiple latent vectors; predicting the multiple latent vectors to obtain multiple prediction value groups, wherein the prediction value group includes multiple prediction values, and the multiple prediction value groups correspond to the first encoded information one-to-one; and determining the defect recognition result based on the multiple prediction value groups.

[0049] In this embodiment, the first image features are converted into second image features using the first coding information respectively, and the first means corresponding to the plurality of second image features and the variance values ​​corresponding to the plurality of second image features can be determined; the first means and the variance values ​​are sampled to obtain a plurality of latent vectors; the plurality of latent vectors are predicted to obtain a plurality of prediction value groups; based on the plurality of prediction value groups, the defect recognition result can be determined. The prediction value group may include a plurality of prediction values, and the number of the plurality of prediction value groups is the same as the number of the plurality of first coding information, that is, the plurality of prediction value groups correspond to the plurality of first coding information one by one.

[0050] For example, the first encoding information (ie, one-hot encoding) y l The first intermediate feature e1 is input into the second computational neural network C2 to obtain the first mean μ of the second intermediate feature e2 l and variance σ l , that is, μ l , A first mean (also called mean vector) μ based on the second intermediate feature e2 can be constructed l and variance σ l Gaussian distribution Based on the Bayesian rule and using importance sampling, the first mean and variance values ​​are sampled to obtain S latent variables The second classification model f' can be used y Predict the latent vector to get the l All prediction values ​​of are obtained, thereby obtaining multiple prediction value groups, and defect identification results can be determined based on the multiple prediction value groups.

[0051] As an optional implementation, the defect identification result is determined based on multiple prediction value groups, including: respectively determining the second means corresponding to the multiple prediction value groups, wherein the second means is used to characterize the average result of multiple prediction values ​​in the prediction value group; and determining the defect identification result based on the multiple second means.

[0052] In this embodiment, the second mean value corresponding to the first image feature for different first encoding information is determined, that is, Based on the multiple second means corresponding to the multiple prediction value groups, a defect identification result can be determined.

[0053] For example, label information 1, label information 2, and label information 3 may be obtained, wherein label information 1, label information 2, and label information 3 may contain different images, thus obtaining first encoding information of multiple label information, and obtaining multiple first encoding information, and one label information may correspond to multiple first encoding information. Therefore, after obtaining the first image feature, the first encoding information (that is, one-hot encoding) y l The first image feature e1 is input into the second computational neural network C2 to obtain the first mean μ of the second intermediate feature e2 l and variance σ l , that is, μ l , The mean vector μ based on the second intermediate feature e2 can be constructed l and σ l Gaussian distribution Based on the Bayesian rule and using importance sampling, the first mean and variance values ​​are sampled to obtain S latent variables Through the above method, we can get the latent vectors corresponding to label information 1, label information 2 and label information 3. We can use the second classification model f' y Predict the latent vector to get the l All predicted values ​​of , thereby obtaining multiple predicted value groups, the number of the multiple predicted value groups and the number of label information correspond one to one. Determine the second mean values ​​corresponding to the multiple predicted value groups respectively; determine the defect recognition result (which can be a predicted value) based on the second mean values ​​corresponding to the multiple predicted value groups.

[0054] Optionally, f' is obtained by the above steps y Based on the labels of all categories {y1,y2,…,y l The final predicted value y is obtained based on the following formula: * :

[0055]

[0056] Optionally, determine the mean of multiple prediction values ​​in the prediction value group to obtain a second mean corresponding to the prediction value group, determine multiple second means corresponding to the multiple prediction value groups in the above manner, average the multiple second means to obtain a final prediction value, and based on the final prediction value, the defect type of the input defect image can be determined.

[0057] As an optional implementation, predicting multiple latent vectors to obtain a prediction value group includes: calling a classification model to predict multiple latent vectors to obtain a prediction value group, wherein the classification model is trained based on historical defect images of transmission lines.

[0058] In this embodiment, the classification model can be called to predict multiple latent vectors to obtain a prediction value group, wherein the prediction value group includes the prediction value obtained by predicting each latent vector. The classification model can be a second classification model (f' y ), which may be a single-layer fully connected neural network, and may be obtained by training based on historical defect images of power transmission lines. The activation function of the second classification model may be a maximization function (softmax). It should be noted that the activation function of the second classification model is not specifically limited here, and may be selected according to actual conditions.

[0059] Optionally, this embodiment may pre-establish a defect image set of the transmission line, which may include multiple historical defect images. The constructed defect image set may be divided into a training set and a test set, and a classification model may be trained using the training set and the test set.

[0060] For example, a defect image set can be constructed by the following steps: First, several historical defect images of transmission lines taken by drones or helicopters can be collected. The historical defect images can include images of insufficient crossing safety distance, tower corrosion, foreign objects on towers, insulator detachment, insulator contamination, and insulator cracks. The defect targets in the transmission line defect images can be annotated, and the defect categories can be annotated. Different defect annotations correspond to different defect categories. The annotated defect image set can be preprocessed and randomly divided into a training set and a test set, and the corresponding extensible markup language (XML) file can be generated. The collected historical defect images can be annotated according to the tagging format of the benchmark test suite (PASCAL VOC) to obtain multiple label information.

[0061] As an optional implementation, the method may also include: obtaining historical label information corresponding to the historical defect image, and using the historical label information to convert the historical defect image; determining multiple first historical latent vectors corresponding to the historical defect image, and determining multiple second historical latent vectors corresponding to the converted historical defect image; determining target model parameters based on the multiple first historical latent vectors and the multiple second historical latent vectors; and adjusting the initial model parameters of the sub-classification model according to the target model parameters to obtain a classification model.

[0062] In this embodiment, the classification model can be trained through the following steps: obtaining historical defect images and historical label information corresponding to the historical defect images; determining multiple first historical latent vectors corresponding to the historical defect images; using the historical label information to convert the historical defect images; determining multiple second historical latent vectors corresponding to the converted historical defect images; determining target model parameters based on the multiple first historical latent vectors and the multiple second historical latent vectors; and adjusting the initial model parameters of the sub-classification model according to the target model parameters to obtain the classification model.

[0063] As an optional implementation, determining target model parameters based on multiple first historical latent vectors and multiple second historical latent vectors includes: determining distribution difference information between the multiple first historical latent vectors and the multiple second historical latent vectors; adjusting the multiple second historical latent vectors based on the distribution difference information; and determining the target model parameters based on the multiple first historical latent vectors and the adjusted multiple second historical latent vectors.

[0064] In this embodiment, distribution difference information between multiple first historical latent vectors and multiple second historical latent vectors can be determined; based on the distribution difference information, the multiple second historical latent vectors are adjusted; based on the multiple first historical latent vectors and the adjusted multiple second historical latent vectors, the target model parameters can be determined.

[0065] Optionally, this embodiment introduces a model perturbation strategy. Compared with the model in which the latent variable distribution is based on the input features, the latent variable distribution in this method is based on the input features and historical label information, which can better characterize the important information in the historical defect images and the factors affecting the prediction results, so as to build a robust recognition model, thereby achieving high-precision recognition of high-precision transmission line defects.

[0066] Optionally, this embodiment is different from the way of performing data enhancement on historical defect images in the two-stage recognition model based on data enhancement, and introduces a data perturbation strategy, that is, performing data enhancement on latent variables in the training stage, so as to achieve the purpose of data balance, further enhance the model's ability to capture uncertainty from the unbalanced power transmission defect image set, and achieve the goal of end-to-end prediction from samples to prediction results, thereby reducing the time spent on training. At the same time, this embodiment introduces the idea of ​​adversarial learning, and solves the high-dimensional latent variable distribution based on the framework of generative adversarial networks, thus avoiding the high computational cost in the solution process and improving the speed of solution. This method integrates data enhancement and model training in an end-to-end deep generative transmission line defect detection model to achieve the purpose of short training time and high-precision recognition.

[0067] As an optional implementation, determining target model parameters based on multiple first historical latent vectors and multiple adjusted second historical latent vectors includes: constructing a target equation based on multiple first historical latent vectors and multiple adjusted second historical latent vectors; and determining target model parameters using the target equation.

[0068] In this embodiment, a target equation can be constructed based on multiple first historical latent vectors and multiple adjusted second historical latent vectors; the target model parameters can be determined using the target equation. The target equation can be an optimization target and can include multiple optimization problems.

[0069] In this embodiment, based on the latent variables after data enhancement, the target equation can be constructed. The target equation can be constructed by the following steps: a first discriminant model (D = {D1, D2, ..., D L}). The first discriminant model may be a discriminator, may be a single-layer fully connected neural network, and the activation function may be a nonlinear function (ReLU, abbreviated as Rectified Linear Unit). It should be noted that this is only an example, and there is no specific restriction on the type of the first discriminant model.

[0070] Optionally, during the training process, the first discriminant model can obtain the first historical latent vector of the second intermediate feature of the historical defect image, the latent variable sampling result of the first historical latent vector, and the second historical latent vector of the third intermediate feature of the historical defect image, the latent variable sampling result of the second historical latent vector. Based on the adversarial learning mechanism, the first historical latent vector is discriminated. and the second history latent vector Whether they are from the same distribution. Furthermore, an optimization problem can be constructed based on the first discriminant model, and the optimization problem can be used to adjust the distribution of the latent variable, so that the first intermediate feature and the third intermediate feature can also be closer to each other, so as to generate a more realistic latent variable, thereby achieving the purpose of data enhancement.

[0071] Alternatively, the optimization problem can be:

[0072]

[0073] Where φ={φ1,φ2}, They can be parameters of the discriminant model, and γ can be an adjustment coefficient.

[0074] In this embodiment, a first classification model (f y ) and the second classification model (f′ y ), which are used to classify latent variables z and z′ respectively. Among them, the first classification model f y and the second classification model f′ yBoth can be single-layer fully connected neural networks, and the activation function can be a maximization function (softmax). It should be noted that there is no specific restriction on the activation function of the first classification model and the second classification model, and they can be selected according to actual conditions.

[0075] Optionally, based on the first classification model and the second classification model, a target equation can be constructed, and the classification error can be reduced by using the target equation to realize a classifier with strong robustness:

[0076]

[0077] in, and They can be the first classification model f y and the second classification model f′ y Parameters. Can be used to characterize Gaussian distribution Sampling is performed to obtain the latent variable z. can represent mathematical expectation.

[0078] Optionally, construct a first generative model (f′ x ), generate samples based on latent variables z′ in, is the generative model f′ x Parameters of . The first generation model may be a convolutional neural network.

[0079] Optionally, the following objective equation is constructed, using which the distribution of latent variables can be further adjusted: Speedup and True Distribution The fit of:

[0080]

[0081] Optionally, based on the above three optimization problems, the final objective equation can be derived:

[0082]

[0083] in,

[0084] As an optional implementation, the first mean and variance value are sampled to obtain multiple latent vectors, including: constructing a Gaussian distribution result corresponding to the second image feature based on the first mean and variance value; sampling the Gaussian distribution result to obtain multiple latent vectors.

[0085] In this embodiment, a Gaussian distribution result corresponding to the second image feature can be constructed based on the first mean and variance value; and multiple latent vectors can be obtained by sampling the Gaussian distribution result.

[0086] In this embodiment, a transmission line defect recognition model may be established, and latent variable sampling may be performed on the transmission line defect recognition model to achieve the purpose of performing latent variable data enhancement on the transmission line defect recognition model.

[0087] Optionally, this embodiment may set parameters α, β, γ, and κ, wherein α may be an adjustment coefficient for adjusting the distribution of latent variables; It can be the number of defective images in a selected batch; γ can be an adjustment coefficient, which can be used to adjust the regularization term The strength of; κ can be the number of latent variables finally used. The number of defect images of each category in the training set can be counted N = {N1, N2, ..., N L}, where L is the total number of transmission defect categories; N is a set, N1, N2, …, N L The specific numbers may correspond to the number of defect images of different categories.

[0088] Optionally, let the maximum value among N be N max , get the number of data enhancements required for each category of images Where l∈{1,2,…,L}; N l The number of defect images corresponding to different categories can be N1, N2, ..., N L . Furthermore, the proportion of each category of images that require data enhancement can be obtained

[0089] Optionally, a random read can be made from the training set defect images (x) and labels (y) corresponding to the defect images 402, counting the number of defect images of each category The defect image can be input into the first computational neural network (C1) to obtain a first intermediate feature (i.e., a first image feature), wherein the first intermediate feature (e1) can be: e1 = C1 (x; φ1); φ1 can be a parameter of the first computational neural network. The first computational neural network can be a convolutional neural network (e.g., ResNet, DenseNet, EfficientNet, etc.). The first intermediate feature can be expanded into a one-dimensional feature vector. At the same time, the label (y) can be constructed as a one-hot encoding y, and the one-hot encoding and the first intermediate feature e1 can be input into the second computational neural network (C2) to obtain the first mean μ and variance value σ of the second intermediate feature (i.e., the second image feature), i.e., μ, σ = C2 (e1, y; φ2), wherein φ2 can be a parameter of the second computational neural network; the second computational neural network C2 can be a convolutional neural network (e.g., ResNet, DenseNet, EfficientNet, etc.), and there is no specific restriction on the types of the first computational neural network and the second computational neural network.

[0090] In this embodiment, the mean vector μ corresponding to the lth category can be l and the variance vector σ l , construct a Gaussian distribution Based on the Bayesian rule and importance sampling, the first mean (i.e., mean vector) and variance vector are enhanced and sampled to obtain κ l Hidden variables in According to the above method, by repeating L sampling times, we can obtain the latent variables corresponding to different categories of images, and get κ latent variables in

[0091] Optionally, the first prior model (p) is used to process the image to be identified to obtain a third intermediate feature And a Gaussian distribution based on the third intermediate feature e3 can be constructed Where * can be a dot product operation, and diag can be a constructed diagonal matrix. Based on the Bayesian rule and using importance sampling (i.e., latent variable sampling), we can get κ latent variables:

[0092] For example, during the training process, the first historical latent variable can be obtained based on the second intermediate feature of the historical defect image. And based on the third intermediate feature of the historical defect image, the second historical latent variable is obtained The optimal model parameters of the recognition model are determined by the first historical latent vector and the second historical latent vector, thereby constructing a recognition model. During the test, the first image feature of the image to be recognized can be obtained, the first image feature can be converted into the second image feature, and the first mean and variance value corresponding to the second image feature can be obtained. Based on the first mean and variance value, the Gaussian distribution result corresponding to the second image feature can be constructed, and multiple latent vectors can be obtained by sampling the Gaussian distribution result. The trained recognition model predicts the latent vector to obtain a prediction value group, and the defect recognition result can be determined based on the second mean corresponding to the multiple prediction value groups.

[0093] In this embodiment, determining the target model parameters by using the optimization target may include the following steps: the established power transmission line defect recognition model may be trained based on the mini-batch gradient descent method and the target equation.

[0094] Optionally, setting the maximum step size T can fix φ, α, β, based on the mini-batch gradient descent method and optimization algorithm (for example, Adam optimization algorithm) to obtain the gradient of the first discriminant model D Update θ D . Among them, the gradient of the first discriminant model D is as follows:

[0095]

[0096] Optionally, fix Obtain the gradients of the remaining models based on the mini-batch gradient descent method Update φ, α,β. Among them, the gradient Can be:

[0097]

[0098] Repeat the above steps T times, or when When , the optimal model parameter θ can be obtained * . Among them, ε=1e-5 is the setting error.

[0099] In this embodiment, the gradient of the discriminator is obtained based on the mini-batch gradient descent method, and then the model parameters of the first discriminant model are updated using the optimization algorithm and the obtained first discriminant model. Through the above method, the optimal model parameters of the second classification model can be finally obtained.

[0100] In this embodiment, a first priori model is constructed, and the feature data is processed by using the first priori model, the first discriminant model and the first generative model, so as to achieve the purpose of quickly determining the optimal model parameters of the second classification model.

[0101] As an optional implementation, step S108, respectively using multiple first encoding information to convert the first image feature into a second image feature to obtain multiple second image features, includes: obtaining a feature vector of the first image feature; calling a computational neural network model, respectively using multiple first encoding information to convert the feature vector into a second image feature to obtain multiple second image features.

[0102] In this embodiment, the first image feature can be obtained and expanded into a feature vector, which can be a one-dimensional feature vector. The computational neural network model can be controlled to convert the feature vector into a second image feature using a plurality of first encoding information. It should be noted that the dimension of the feature vector is only for example, and the dimension of the feature vector is not specifically limited here.

[0103] In an embodiment of the present invention, an image to be identified of a transmission line can be identified to obtain a first image feature of the image to be identified, label information corresponding to different defects can be obtained, and multiple label information can be obtained. The first image feature can be converted into a second image feature by using multiple first coding information of the multiple label information. The second image feature can be identified to obtain a defect identification result of the defect in the transmission line, thereby solving the technical problem of low efficiency in detecting defects in the transmission line and achieving the technical effect of improving the efficiency of detecting defects in the transmission line.

[0104] Example 2

[0105] The technical solution of the embodiment of the present invention is illustrated below in conjunction with preferred implementation modes.

[0106] At present, transmission lines are widely distributed and the operating environment is complex, requiring operation and maintenance personnel to regularly inspect the lines to identify potential defects and ensure the safe and stable operation of the power system.

[0107] In the related art, drones or helicopters are usually used to take photos of each device that may have defects on the transmission lines and towers, and then the defect detection model based on deep learning is used to identify them. However, in order to improve the recognition accuracy, the defect detection model requires a large number of defect image samples to train it. However, the amount of data contained in each category of the defect image samples is usually unbalanced. For example, the training samples of common defects such as insufficient safety distance are relatively abundant, while the training samples of some uncommon defects, such as loose and broken wires, are relatively few. It is difficult to establish a transmission line defect detection model with high accuracy and strong generalization ability, thereby reducing the efficiency of detecting defects in transmission lines.

[0108] As an optional embodiment, explicit data augmentation methods, such as generative adversarial networks or variational autoencoders, can be used to expand minority class data to achieve data balance, and then a high-precision model can be obtained by training based on the balanced data set. However, it is difficult to ensure the quality of samples generated based on explicit data augmentation methods, and it is difficult to guide the construction of recognition models. In addition, this method is relatively complex and has the problem of high computational cost.

[0109] To solve the above problems, in this embodiment, a defect recognition model based on an unbalanced power transmission defect image set and latent variable data enhancement is proposed. This method introduces a model perturbation strategy. Compared with the model in which the latent variable distribution is based on the input features, the latent variable distribution in this method is based on the input features and labels, which can better characterize the important information in the original data, highlight the influencing factors that directly affect the prediction results, construct a robust recognition model, and achieve high-precision recognition of transmission line defects.

[0110] Optionally, this embodiment is different from the way of performing data enhancement on the original samples in the two-stage recognition model based on data enhancement, and also introduces a data perturbation strategy, that is, data enhancement is performed on latent variables in the training stage, so as to achieve the purpose of data balance, further enhance the model's ability to capture uncertainty from the unbalanced power transmission defect image set, and achieve the goal of end-to-end prediction from samples to prediction results, thereby reducing the training time. At the same time, this embodiment introduces the idea of ​​adversarial learning, and solves the high-dimensional latent variable distribution based on the framework of generative adversarial networks, thereby avoiding the high computational cost in the solution process and improving the speed of solution. This method integrates data enhancement and model training into an end-to-end deep generative transmission line defect detection model to achieve the purpose of short training time and high-precision recognition.

[0111] The following will be combined with the accompanying drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments; the size of the numbers in the embodiments is only for illustration and is not specifically limited here. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present invention and are not specifically limited here.

[0112] Figure 2 is a flow chart of constructing a defect recognition model based on an unbalanced power transmission defect image set and latent variable data enhancement according to an embodiment of the present invention, such as Figure 2 As shown, constructing the above model may include the following steps:

[0113] Step S201, establishing a defect image set.

[0114] In this embodiment, a defect image set of the power transmission line may be pre-established, and the constructed defect image set may be divided into a training set and a test set.

[0115] Optionally, a defect image set can be constructed by the following steps: a number of defect images of transmission lines taken by drones or helicopters can be collected first, and the defect images of transmission lines can include images of insufficient crossing safety distance, tower corrosion, foreign objects on towers, insulator detachment, insulator contamination, and insulator cracks. Defect targets in the defect images of transmission lines can be annotated, and defect categories can be annotated, and different defect annotations correspond to different defect categories. The annotated defect image set can be preprocessed and randomly divided into a training set and a test set, and the corresponding extensible markup language file can be generated at the same time.

[0116] For example, the captured defect images may be annotated according to the tagging format of the benchmark test suite.

[0117] Step S202, training a priori model.

[0118] In this embodiment, the first prior model p can be obtained based on the mini-batch gradient descent method using the training set data, and the optimal model parameters can be obtained.

[0119] Step S203: establishing a transmission line defect recognition model.

[0120] In this embodiment, a transmission line defect recognition model may be established, and latent variable sampling may be performed on the transmission line defect recognition model to achieve the purpose of performing latent variable data enhancement on the transmission line defect recognition model.

[0121] Figure 3 is a flowchart of a method for performing latent variable data enhancement according to an embodiment of the present invention. Figure 3 As shown, the method may include the following steps:

[0122] Step S301, obtaining a first mean and variance value of a second intermediate feature.

[0123] In this embodiment, parameters α, β, γ, and κ may be set, where α may be an adjustment coefficient for adjusting the distribution of latent variables; It can be the number of defective images in a selected batch; γ can be an adjustment coefficient, which can be used to adjust the regularization term The strength of κ is κ, and κ is the number of latent variables finally adopted.

[0124] In this embodiment, the number of defect images of each category in the training set can be counted N={N1, N2, ..., N L}, where L is the total number of transmission defect categories; N is a set, N1, N2, …, N L The specific numbers may correspond to the number of defect images of different categories.

[0125] Optionally, let the maximum value among N be N max , get the number of data enhancements required for each category of images Where l∈{1,2,…,L}; N l The number of defect images corresponding to different categories can be N1, N2, ..., N L . Furthermore, the proportion of each category of images that require data enhancement can be obtained

[0126] Figure 4 is a schematic diagram of an overall framework of a defect recognition model based on an unbalanced power transmission defect image set and latent variable data enhancement according to an embodiment of the present invention, such as Figure 4 As shown, we can randomly read from the training set defect images (x) 401 and labels (y) 402 corresponding to the defect images, and count the number of defect images of each category The defect image 401 can be input into the first computational neural network (C1) 403 to obtain the first intermediate feature 404, wherein the first intermediate feature (e1) can be: e1 = C1 (x; φ1); φ1 can be a parameter of the first computational neural network. The first computational neural network 403 can be a convolutional neural network (for example, ResNet, DenseNet, EfficientNet, etc.). The first intermediate feature 404 can be expanded into a one-dimensional feature vector. At the same time, the label (y) 402 can be constructed as a one-hot encoding y, and the one-hot encoding and the first intermediate feature e1 can be input into the second computational neural network (C2) 406 to obtain the first mean μ and variance value σ of the second intermediate feature (e2) 407, that is, μ, σ = C2 (e1, y; φ2), wherein φ2 can be a parameter of the second computational neural network; the second computational neural network C2 can be a convolutional neural network (for example, ResNet, DenseNet, EfficientNet, etc.), and there is no specific restriction on the types of the first computational neural network and the second computational neural network. Among them, the label can be label information.

[0127] Step S302, constructing a Gaussian distribution and performing latent variable sampling.

[0128] In this embodiment, the mean vector μ corresponding to the lth category can be l and the variance vector σ l , construct a Gaussian distribution Based on the Bayesian rule and importance sampling, the first mean (i.e., mean vector) and variance value (i.e., variance vector) are enhanced and sampled to obtain κ l Hidden variables in According to the above method, by repeating L sampling times, we can obtain the latent variables corresponding to different categories of images, and get κ latent variables in

[0129] Optionally, the defect image 401 is processed using the first prior model (p) 408 to obtain a third intermediate feature And a Gaussian distribution based on the third intermediate feature e3 can be constructed Where * can be a dot product operation, and diag can be a constructed diagonal matrix. Based on the Bayesian rule and using importance sampling (i.e., latent variable sampling), we can get κ latent variables:

[0130] At this point, the hidden variable is obtained based on the second intermediate feature And based on the third intermediate feature, the latent variable is obtained

[0131] Step S204, constructing the target equation.

[0132] In this embodiment, a target equation can be constructed based on the latent variables after data enhancement.

[0133] A first discriminant model 409 (D = {D1, D2, ..., D L}). The first discriminant model 409 may be a discriminator, may be a single-layer fully connected neural network, and the activation function may be a nonlinear function (ReLU, referred to as Rectified Linear Unit). It should be noted that this is only an example, and there is no specific restriction on the type of the first discriminant model.

[0134] Optionally, the first discriminant model 409 may obtain the latent variable sampling result of the second intermediate feature and the latent variable sampling result of the third intermediate feature. and hidden variables Whether they come from the same distribution. Based on the first discriminant model, an optimization problem can be constructed, which can be used to adjust the distribution of latent variables, so that the first intermediate feature and the third intermediate feature can also be closer to each other, so as to generate a more realistic latent variable, thereby achieving the purpose of data enhancement.

[0135] Alternatively, the optimization problem can be:

[0136]

[0137] Where φ={φ1,φ2}, They can be parameters of the discriminant model, and γ can be an adjustment coefficient.

[0138] In this embodiment, a first classification model (f y )410 and the second classification model (f′ y )411, respectively used to classify latent variables z and z′. Among them, the first classification model f y and the second classification model f′ y Both can be single-layer fully connected neural networks, and the activation function can be a maximization function (softmax). It should be noted that there is no specific restriction on the activation function of the first classification model and the second classification model, and they can be selected according to actual conditions.

[0139] Optionally, based on the first classification model and the second classification model, an optimization problem can be constructed to reduce the classification error to achieve a robust classifier:

[0140]

[0141] in, and They can be the first classification model f y and the second classification model f′ y Parameters. Can be used to characterize Gaussian distribution Sampling is performed to obtain the latent variable z. can represent mathematical expectation.

[0142] Optionally, construct a first generative model (f′ x )412, generate samples based on hidden variables z′ in, is the generative model f′ x Parameters of. The first generation model 412 may be a convolutional neural network.

[0143] In this embodiment, the first classification model, the first discriminant model and the first generative model can be used to determine and adjust the model parameters of the second classification model.

[0144] Optionally, the following optimization problem is constructed, using which the distribution of latent variables can be further adjusted: Speedup and True Distribution The fit of:

[0145]

[0146] Optionally, based on the above three optimization problems, the final objective equation can be derived:

[0147]

[0148] in,

[0149] Step S205: training the constructed transmission line defect recognition model.

[0150] In this embodiment, the established transmission line defect recognition model may be trained based on the mini-batch gradient descent method and the objective equation.

[0151] Optionally, setting the maximum step size T can fix φ, α, β, based on the mini-batch gradient descent method and optimization algorithm (for example, Adam optimization algorithm) to obtain the gradient of the first discriminant model D Update θ D . Among them, the gradient of the first discriminant model D is as follows:

[0152]

[0153] Optionally, fix Obtain the gradients of the remaining models based on the mini-batch gradient descent method Update φ, α,β. Among them, the gradient Can be:

[0154]

[0155] Repeat the above steps T times, or when When , the optimal model parameter θ can be obtained * . Among them, ε=1e-5 is the setting error.

[0156] In this embodiment, the gradient of the discriminator is obtained based on the mini-batch gradient descent method, and then the model parameters of the first discriminant model are updated using the optimization algorithm and the obtained first discriminant model. Through the above method, the optimal model parameters of the second classification model can be finally obtained.

[0157] In this embodiment, a first priori model is constructed, and the feature data is processed by using the first priori model, the first discriminant model and the first generative model, so as to achieve the purpose of quickly determining the optimal model parameters of the second classification model.

[0158] Step S206: performing a model test on the trained power transmission line defect recognition model.

[0159] In this embodiment, the trained defect recognition model is tested using a test set, and a recognition result is output.

[0160] Optionally, from the optimal model parameters θ * Take out φ * , Among them, φ * It can be the optimal parameter set of the first computational neural network and the second computational neural network, that is, The second classification model f′ y The optimal parameters (that is, the optimal model parameters) of the acquired defect image x * Input into the first computational neural network C1 to obtain the first intermediate feature And expand the first intermediate feature e1 into a one-dimensional feature vector. Set the one-hot encoding y belonging to the lth class l , the following steps are required for categories 1 to L:

[0161] One-hot encode y l The first intermediate feature e1 is input into the second computational neural network C2 to obtain the first mean μ of the second intermediate feature e2 l and variance σ l , that is, v l , Construct the mean vector μ based on the second intermediate feature e2 l and σ l Gaussian distribution Based on the Bayesian rule and using importance sampling, S latent variables are obtained Using the second classification model f' y The prediction is based on y l The second mean of the sum of all predicted values ​​of

[0162] Optionally, f' is obtained by the above steps y Based on the labels of all categories {y1,y2,…,y l The second mean of the sum of all predicted values ​​of} is calculated, and the final predicted value y is obtained based on the following formula * :

[0163]

[0164] Optionally, the defect type of the input defect image can be determined by the above prediction value.

[0165] In an embodiment of the present invention, an image to be identified of a transmission line can be identified to obtain a first image feature of the image to be identified, label information corresponding to different defects can be obtained, and multiple label information can be obtained. The first image feature can be converted into a second image feature by using multiple first coding information of the multiple label information. The second image feature can be identified to obtain a defect identification result of the defect in the transmission line, thereby solving the technical problem of low efficiency in detecting defects in the transmission line and achieving the technical effect of improving the efficiency of detecting defects in the transmission line.

[0166] Example 3

[0167] According to an embodiment of the present invention, a device for identifying defects in a power transmission line is also provided. It should be noted that the device for identifying defects in a power transmission line of this embodiment can be used to execute the method for identifying defects in a power transmission line of embodiment 1 of the present invention.

[0168] Figure 5 is a schematic diagram of a device for identifying defects in a transmission line according to an embodiment of the present invention, such as Figure 5 As shown, the device 50 for identifying defects in a power transmission line may include: an acquisition unit 51 , an extraction unit 52 , a conversion unit 53 and an identification unit 54 .

[0169] The acquisition unit 51 is used to acquire the image to be identified of the power transmission line.

[0170] The extraction unit 52 is used to extract the first image feature of the image to be identified.

[0171] The conversion unit 53 is used to convert the first image feature into a second image feature using multiple first coding information respectively, so as to obtain multiple second image features, wherein the first coding information is used to indicate the type of defects in the transmission line, and the granularity of the second image feature is greater than the granularity of the first image feature.

[0172] The recognition unit 54 is used to recognize the multiple second image features to obtain a defect recognition result of the transmission line.

[0173] The device for identifying defects in a transmission line of this embodiment obtains an image to be identified of the transmission line through an acquisition unit; extracts a first image feature of the image to be identified through an extraction unit; and converts the first image feature into a second image feature using a plurality of first coding information respectively through a conversion unit to obtain a plurality of second image features, wherein the first coding information is used to indicate the type of defect in the transmission line, and the granularity of the second image feature is greater than the granularity of the first image feature; and identifies the plurality of second image features through an identification unit to obtain a defect identification result of the transmission line, thereby solving the technical problem of low efficiency in detecting defects in the transmission line and achieving the technical effect of improving the efficiency in detecting defects in the transmission line.

[0174] Example 4

[0175] According to an embodiment of the present invention, there is further provided a computer-readable storage medium, the computer-readable storage medium comprising a stored program, wherein the program executes the method for identifying defects in a power transmission line in Embodiment 1.

[0176] Optionally, in this embodiment, the computer-readable storage medium may be located in any one of the computer terminals in a computer terminal group in a computer network, or in any one of the mobile terminals in a mobile terminal group.

[0177] Optionally, in this embodiment, the computer-readable storage medium is configured to store program codes for executing the following steps: obtaining an image to be identified of a transmission line; extracting a first image feature of the image to be identified; converting the first image feature into a second image feature using a plurality of first coding information respectively to obtain a plurality of second image features, wherein the first coding information is used to indicate the type of defect in the transmission line, and a granularity of the second image feature is greater than a granularity of the first image feature; identifying the plurality of second image features to obtain a defect identification result of the transmission line.

[0178] In this embodiment, the image to be identified of the transmission line can be identified to obtain the first image feature of the image to be identified, and label information corresponding to different defects can be obtained to obtain multiple label information. The first image feature can be converted into a second image feature by using multiple first coding information of the multiple label information. The second image feature can be identified to obtain the defect identification result of the defect in the transmission line, thereby solving the technical problem of low efficiency in detecting defects in the transmission line and achieving the technical effect of improving the efficiency of detecting defects in the transmission line.

[0179] Example 5

[0180] According to an embodiment of the present invention, a processor is further provided. The processor is used to run a program. When the program is run by the processor, the method for identifying defects in the power transmission line in Embodiment 1 is executed.

[0181] Optionally, in this embodiment, the computer terminal may be located in at least one network device among a plurality of network devices of the computer network.

[0182] Among them, the memory can be used to store software programs and modules, such as the program instructions / modules corresponding to the method and device for identifying defects in the power transmission line in the embodiment of the present invention. The processor executes various functional applications and data processing by running the software programs and modules stored in the memory, that is, realizing the above-mentioned method for identifying defects in the power transmission line. The memory may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory may further include a memory remotely arranged relative to the processor, and these remote memories can be connected to the computer terminal via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0183] The processor can call the information and application stored in the memory through the transmission device to perform the following steps: obtain the image to be identified of the transmission line; extract the first image feature of the image to be identified; use multiple first coding information to convert the first image feature into a second image feature respectively to obtain multiple second image features, wherein the first coding information is used to indicate the type of defects in the transmission line, and the granularity of the second image feature is greater than the granularity of the first image feature; identify the multiple second image features to obtain a defect identification result of the transmission line.

[0184] By adopting the embodiment of the present invention, the image to be identified of the transmission line can be identified, the first image feature of the image to be identified can be obtained, the label information corresponding to different defects can be obtained, and multiple label information can be obtained. The first image feature can be converted into a second image feature by using multiple first coding information of the multiple label information. The second image feature can be identified to obtain the defect identification result of the defect in the transmission line, thereby solving the technical problem of low efficiency in detecting defects in the transmission line and achieving the technical effect of improving the efficiency of detecting defects in the transmission line.

[0185] Example 6

[0186] According to an embodiment of the present invention, a computer program product is further provided. The computer program product includes computer instructions. When the computer instructions are executed by a processor, the method for identifying defects in a power transmission line in Embodiment 1 is implemented.

[0187] The serial numbers of the above embodiments of the present invention are only for description and do not represent the advantages or disadvantages of the embodiments.

[0188] In the above embodiments of the present invention, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0189] In the several embodiments provided by the present invention, it should be understood that the disclosed technical content can be implemented in other ways. Among them, the device embodiments described above are only schematic, for example, the division of units can be a logical function division, and there can be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point, the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of units or modules, which can be electrical or other forms.

[0190] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed over multiple units. Some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.

[0191] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0192] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server or a network device, etc.) to perform all or part of the steps of the methods of each embodiment of the present invention. The aforementioned storage medium includes: U disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, magnetic disk or optical disk and other media that can store program codes.

[0193] The above are only preferred embodiments of the present invention. It should be pointed out that, for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present invention. These improvements and modifications should also be regarded as the scope of protection of the present invention.

Claims

1. A method for identifying defects in a transmission line, characterized in that: include: Acquire an image of a transmission line to be identified; Extracting a first image feature of the image to be identified; Using a plurality of first coding information respectively, converting the first image features into second image features to obtain a plurality of second image features, wherein the first coding information is used to indicate the type of defects in the power transmission line, and the granularity of the second image features is greater than the granularity of the first image features; The plurality of second image features are identified to obtain a defect identification result of the transmission line.

2. The method according to claim 1, characterized in that Identifying the plurality of second image features to obtain the defect identification result of the transmission line includes: Determine a first mean value corresponding to the plurality of second image features and a variance value corresponding to the plurality of second image features, wherein the first mean value is used to represent an average result among the plurality of second image features; Sampling the first mean and the variance value to obtain multiple latent vectors; Predicting the multiple latent vectors to obtain multiple prediction value groups, wherein the prediction value group includes multiple prediction values, and the multiple prediction value groups correspond to the multiple first encoding information in a one-to-one manner; Based on the multiple prediction value groups, the defect identification result is determined.

3. The method according to claim 2, characterized in that Determining the defect identification result based on the multiple prediction value groups includes: Determine second means corresponding to the plurality of prediction value groups respectively, wherein the second means is used to characterize an average result of the plurality of prediction values ​​in the prediction value group; The defect identification result is determined based on the multiple second means.

4. The method according to claim 2, characterized in that: Predicting the multiple latent vectors to obtain a predicted value group includes: A classification model is called to predict the multiple latent vectors to obtain the prediction value group, wherein the classification model is trained based on historical defect images of the transmission line.

5. The method according to claim 4, characterized in that The method further comprises: Acquire historical label information corresponding to the historical defect image, and use the historical label information to perform conversion processing on the historical defect image; Determine a plurality of first historical latent vectors corresponding to the historical defect image, and determine a plurality of second historical latent vectors corresponding to the converted historical defect image; Determining target model parameters based on the plurality of first historical latent vectors and the plurality of second historical latent vectors; According to the target model parameters, the initial model parameters of the sub-classification model are adjusted to obtain the classification model.

6. The method according to claim 5, characterized in that Determining the target model parameters based on the plurality of first historical latent vectors and the plurality of second historical latent vectors includes: Determining distribution difference information between the plurality of first historical latent vectors and the plurality of second historical latent vectors; Based on the distribution difference information, adjusting the plurality of second historical latent vectors; The target model parameters are determined based on the multiple first historical latent vectors and the adjusted multiple second historical latent vectors.

7. The method according to claim 6, characterized in that Determining the target model parameters based on the plurality of first historical latent vectors and the adjusted plurality of second historical latent vectors includes: Constructing a target equation based on the plurality of first historical latent vectors and the adjusted plurality of second historical latent vectors; The target model parameters are determined using the target equation.

8. The method according to claim 2, characterized in that: The first mean and the variance value are sampled to obtain multiple latent vectors, including: Based on the first mean and the variance value, construct a Gaussian distribution result corresponding to the second image feature; The Gaussian distribution result is sampled to obtain the multiple latent vectors.

9. The method according to any one of claims 1 to 8, characterized in that The first image features are converted into the second image features by respectively using the plurality of first encoding information to obtain the plurality of second image features, including: Obtaining a feature vector of the first image feature; The computing neural network model is called to convert the feature vector into the second image feature by using the multiple first encoding information respectively, so as to obtain multiple second image features.

10. A device for identifying defects in a power transmission line, characterized in that: include: An acquisition unit, used for acquiring an image to be identified of a power transmission line; An extraction unit, used for extracting a first image feature of the image to be identified; a conversion unit, configured to convert the first image features into second image features using a plurality of first coding information respectively, to obtain a plurality of second image features, wherein the first coding information is used to indicate a type of defect in the power transmission line, and a granularity of the second image features is greater than a granularity of the first image features; The recognition unit is used to recognize the multiple second image features to obtain a defect recognition result of the transmission line.

11. A computer-readable storage medium, characterized in that: The computer-readable storage medium includes a stored program, wherein when the program is executed, the device where the computer-readable storage medium is located is controlled to execute the method according to any one of claims 1 to 9.

12. A processor, characterized in that: The processor is used to run a program, wherein the program executes the method according to any one of claims 1 to 9 when being run by the processor.

13. A computer program product, characterized in that The method comprises computer instructions, which, when executed by a processor, implement the method according to any one of claims 1 to 9.

Citation Information

Patent Citations

  • Power transmission line defect intelligent identification method and system based on deep learning

    CN112950576A

  • Power transmission line defect identification method based on image quality evaluation

    CN115272284A

  • Violence event detection method, device and equipment

    CN115470348A

  • Transmission line defect identification method based on saliency map and semantic-embedded feature pyramid

    US20230360390A1