A method and system for identifying defects of contact network insulators

Through the combination of the improved YOLOv5x network and specific activation functions, a catenary insulator defect identification model is constructed, which solves the problem of low efficiency of traditional manual detection and achieves efficient and accurate insulator defect identification.

CN118411570BActive Publication Date: 2024-10-01JIANGXI BAOLIFENG ELECTRICAL PORCELAIN ELECTRIC CO LTD
View PDF 8 Cites 0 Cited by

Patent Information

Application Number
CN202410850604.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-06-28
Publication Date
2024-10-01
Estimated Expiration
2044-06-28

AI Technical Summary

Technical Problem

Traditional catenary insulator inspection relies on manual inspection, which is inefficient and prone to missed inspections, making it difficult to meet the monitoring needs of large-scale railway lines.

Method used

The improved YOLOv5x network is used, combined with the VeRcl initialization rule, JreU combined activation function and Ribery weighted comprehensive loss function, to construct an insulator defect recognition model, and identify and detect catenary insulator defects through image information.

Benefits of technology

It improves the efficiency and accuracy of catenary insulator detection, reduces dependence on manual detection, and is suitable for monitoring large-scale railway lines.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118411570B_ABST
    Figure CN118411570B_ABST
Patent Text Reader

Abstract

The present invention discloses a method and system for identifying defects of contact network insulators. The method comprises: obtaining historical image data of contact network insulators, wherein the historical image data comprises image information of contact network insulators and defect information after the image information is annotated, wherein the defect information comprises defect position and defect type; using the image information as input of an improved YOLOv5x network, and using the defect information as output of the improved YOLOv5x network, adjusting the network parameters of the improved YOLOv5x network, and obtaining an insulator defect identification model; obtaining real-time image information including contact network insulators, and inputting the real-time image information into the insulator defect identification model, wherein the insulator defect identification model outputs target defect information corresponding to the real-time image information. The detection efficiency of the insulator defect identification model for contact network insulators is improved, and the detection accuracy is also improved accordingly.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention belongs to the technical field of insulator identification, and in particular relates to a method and system for identifying defects of contact network insulators. Background Art

[0002] Railway contact network insulators are an important part of the railway power supply system. Their safe operation is directly related to the safety and stability of railway transportation. The railway electrification system needs to provide power to the moving trains through the contact network, and the contact network insulators can effectively isolate the electrical connection between the contact network and the ground to prevent the current from flowing to the ground. The contact network insulators are usually installed on the contact network pillars to support the contact network and ensure that it can maintain a stable position and shape when the train is running. In addition, the contact network insulators can also protect the power system and detect the insulation level of the contact network. However, when the insulator is damaged or aged, its insulation performance will decrease. If it is not discovered in time, it may cause power system failures and even cause major safety accidents.

[0003] Traditional overhead line insulator inspection usually relies on manual inspection, which is inefficient and prone to problems such as missed inspection. At the same time, manual inspection also has the disadvantages of subjectivity and high labor intensity, which makes it difficult to meet the monitoring needs of large-scale railway lines. Summary of the invention

[0004] The present invention provides a method and system for identifying defects of contact network insulators, which are used to solve the technical problems that traditional contact network insulator detection usually relies on manual inspection, is inefficient and prone to missed inspections.

[0005] In a first aspect, the present invention provides a method for identifying defects of a contact network insulator, comprising:

[0006] Acquire historical image data of the contact network insulator, wherein the historical image data includes image information of the contact network insulator and defect information after the image information is annotated, wherein the defect information includes a defect location and a defect type;

[0007] Using the image information as input of an improved YOLOv5x network, and using the defect information as output of the improved YOLOv5x network, adjusting network parameters of the improved YOLOv5x network to obtain an insulator defect recognition model, wherein the improved YOLOv5x network includes a VeRcl initialization rule, a JreU combined activation function, and a Ribery weighted comprehensive loss function;

[0008] The VeRcl initialization rule is located in the convolution layer of the backbone network in the improved YOLOv5x. The VeRcl initialization rule determines the connection mode of each convolution layer. The input of the convolution layer is the feature map of the previous layer with different numbers of channels, and the output is a new feature map obtained after the input is processed by the convolution operation and the activation function.

[0009] Adjust the connection channels of each convolutional layer based on the JreU combined activation function, the input of the JreU combined activation function is the weighted sum from the convolutional layer, that is, the result after linear transformation, and the output is the result after processing by the JreU combined activation function, which represents the nonlinear response of the improved YOLOv5x network under a given input;

[0010] The input of the Ribéry weighted comprehensive loss function is the prediction result of the improved YOLOv5x network for the given input data, and the output is the loss value of the improved YOLOv5x network on the given input data;

[0011] Real-time image information containing the contact network insulator is obtained, and the real-time image information is input into the insulator defect recognition model, and the insulator defect recognition model outputs target defect information corresponding to the real-time image information.

[0012] In a second aspect, the present invention provides a contact network insulator defect identification system, comprising:

[0013] An acquisition module is configured to acquire historical image data of the contact network insulator, wherein the historical image data includes image information of the contact network insulator and defect information after the image information is annotated, wherein the defect information includes a defect location and a defect type;

[0014] An adjustment module is configured to use the image information as an input of an improved YOLOv5x network, and use the defect information as an output of the improved YOLOv5x network, and adjust network parameters of the improved YOLOv5x network to obtain an insulator defect recognition model, wherein the improved YOLOv5x network includes a VeRcl initialization rule, a JreU combined activation function, and a Ribery weighted comprehensive loss function;

[0015] The VeRcl initialization rule is located in the convolution layer of the backbone network in the improved YOLOv5x. The VeRcl initialization rule determines the connection mode of each convolution layer. The input of the convolution layer is the feature map of the previous layer with different numbers of channels, and the output is a new feature map obtained after the input is processed by the convolution operation and the activation function.

[0016] Adjust the connection channels of each convolutional layer based on the JreU combined activation function, the input of the JreU combined activation function is the weighted sum from the convolutional layer, that is, the result after linear transformation, and the output is the result after processing by the JreU combined activation function, which represents the nonlinear response of the improved YOLOv5x network under a given input;

[0017] The input of the Ribéry weighted comprehensive loss function is the prediction result of the improved YOLOv5x network for the given input data, and the output is the loss value of the improved YOLOv5x network on the given input data;

[0018] The output module is configured to obtain real-time image information containing the contact network insulator and input the real-time image information into the insulator defect recognition model, and the insulator defect recognition model outputs target defect information corresponding to the real-time image information.

[0019] According to a third aspect, an electronic device is provided, comprising: at least one processor, and a memory communicatively connected to the at least one processor, wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can perform the steps of the contact network insulator defect identification method of any embodiment of the present invention.

[0020] In a fourth aspect, the present invention further provides a computer-readable storage medium having a computer program stored thereon, wherein when the program instructions are executed by a processor, the processor executes the steps of the contact network insulator defect identification method of any embodiment of the present invention.

[0021] The contact network insulator defect recognition method and system of the present application uses image information as the input of the improved YOLOv5x network and defect information as the output of the improved YOLOv5x network, adjusts the network parameters of the improved YOLOv5x network, and obtains an insulator defect recognition model, thereby improving the detection efficiency of the insulator defect recognition model for contact network insulators, and correspondingly improves the detection accuracy, further reduces the reliance on manual detection, and is conducive to the practical application of the method. BRIEF DESCRIPTION OF THE DRAWINGS

[0022] In order to more clearly illustrate the technical solutions of 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 some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0023] Figure 1A flow chart of a method for identifying defects of contact network insulators provided by one embodiment of the present invention;

[0024] Figure 2 A structural block diagram of a contact network insulator defect identification system provided by an embodiment of the present invention;

[0025] Figure 3 It is a schematic diagram of the structure of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0026] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution 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 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.

[0027] See also Figure 1 , which shows a flow chart of a method for identifying defects of contact network insulators of the present application.

[0028] like Figure 1 As shown, the contact network insulator defect identification method specifically includes the following steps:

[0029] Step S101, obtaining historical image data of a contact network insulator, wherein the historical image data includes image information of the contact network insulator and defect information after the image information is annotated, wherein the defect information includes a defect location and a defect type.

[0030] In this step, historical image data of contact network insulators are collected and annotated, and the defect locations and types are marked to obtain defect information. The collected image data are preprocessed, including image resizing, brightness adjustment, denoising and other operations, to ensure that the image data input to the network is of good quality and meets the input requirements of the improved YOLOv5x network.

[0031] Step S102, using the image information as the input of the improved YOLOv5x network, and using the defect information as the output of the improved YOLOv5x network, adjusting the network parameters of the improved YOLOv5x network to obtain an insulator defect recognition model, wherein the improved YOLOv5x network includes a VeRcl initialization rule, a JreU combined activation function, and a Ribéry weighted comprehensive loss function.

[0032] In this step, the VeRcl initialization rule is located in the convolution layer of the backbone network in the improved YOLOv5x, and the VeRcl initialization rule determines the connection mode of each convolution layer. The input of the convolution layer is the feature map with different number of channels of the previous layer, and the output is the new feature map obtained after the input is processed by the convolution operation and the activation function; the connection channels of each convolution layer are adjusted based on the JreU combined activation function, and the input of the JreU combined activation function is the weighted sum from the convolution layer, that is, the result after linear transformation, and the output is the result after processing by the JreU combined activation function, which represents the nonlinear response of the improved YOLOv5x network under the given input; the input of the Ribery weighted comprehensive loss function is the prediction result of the improved YOLOv5x network for the given input data, and the output is the loss value of the improved YOLOv5x network on the given input data.

[0033] It should be noted that the VeRcl initialization rule is a method for initializing the weights of a neural network. Its principle is to determine the initial value of the weight based on the number of connections between the input and output of each layer and the characteristics of the activation function. The VeRcl initialization rule specifically includes:

[0034] The weight vector is introduced in the initialization of the convolutional layer. The weight vector will change its direction of action following the propagation direction of the corresponding network:

[0035] ,

[0036] ,

[0037] In the formula, is the full addition set of weight vectors, For the real data set, is any vector variable in the full addition set, , , They are the horizontal vector function independent variable, the vertical vector function independent variable and the tangential vector function independent variable in the full addition set of the weight vector, is the recall rate of any vector variable in the full addition set, is the harmonic mean of the precision and recall of any vector variable in the full addition set, is the initialization period under the VeRcl initialization rule, Represents the vector under the initialization cycle;

[0038] The weights are randomly drawn from a uniform distribution or a normal distribution. For randomly drawing weights from a uniform distribution:

[0039] ,

[0040] In the formula, is the number of input neurons, is the number of output neurons, is the weight in the neural network, For uniform distribution;

[0041] For randomly drawing weights from a normal distribution:

[0042] ,

[0043] In the formula, is a normal distribution;

[0044] Adjust the learning rate and optimize the parameter update process of the neural network based on the update rule, reduce the learning rate of the parameters with larger gradients, and increase the learning rate of the parameters with smaller gradients. The update rule is:

[0045] ,

[0046] ,

[0047] ,

[0048] In the formula, is the value of parameter i in the t+1th iteration, is the value of parameter i in the tth iteration, is the initial learning rate, is the gradient of parameter i in the tth iteration, is a constant between (-1, 1), is the squared sum of the gradients of all parameters in the tth iteration, is the cumulative sum of the squared gradients of parameter i in the tth iteration, is the level 1 gradient in the tth iteration, is the level 2 gradient in the tth iteration, is the n-level gradient in the t-th iteration;

[0049] Considering the historical information of the gradient, the moving average of the squared gradient is calculated, and the normalized learning rate is updated according to the moving average of the squared gradient, specifically:

[0050] ,

[0051] ,

[0052] In the formula, is the decay rate, which is used to control the weight of the moving average of the squared gradient and takes a value close to 1. is the moving average of the squared gradient in the t+1th iteration, is the moving average of the squared gradient in the tth iteration, is the value of the parameter in the t+1th iteration, is the value of the parameter in the tth iteration, is the initial learning rate.

[0053] In the process of introducing the VeRcl initialization rule, momentum optimization and adaptive learning rate adjustment optimization algorithms are combined to achieve convergence and generalization, increase the amount of data, use data enhancement technology, introduce regularization methods, optimize model structure design, calculate the first-order moment (momentum) and second-order moment (moving average of the square of the gradient), and use the estimated values ​​of the first-order moment and second-order moment to adjust the update of the momentum characteristic. The specific rules are:

[0054] ,

[0055] ,

[0056] ,

[0057] ,

[0058] ,

[0059] In the formula, is the decay rate of momentum, is the squared sum of the gradients of all parameters in the tth iteration, is the moving average of the squared gradient in the t+1th iteration, is the decay rate of the moving average of the squared gradient, is the moving average of the squared gradient in the tth iteration, is the estimated value of the momentum after correction in the t+1th iteration, is the first-order moment estimate of momentum in the t+1th iteration, is the first-order moment estimate of momentum in the t-th iteration, is the decay rate of the momentum in the t+1th round, is the decay rate of the moving average of the squared gradient in the t+1th round, is the estimated value of the moving average of the squared gradient in the t+1th iteration after correction, is the initial learning rate, is the value of the parameter in the t+1th iteration, is the value of the parameter in the tth iteration, is a constant.

[0060] The JreU combined activation function replaces the ReLU and Sigmoid activation functions in the backbone network and adjusts the connection channels of each convolutional layer. When the input is negative, it will not be completely set to zero, but multiplied by a small slope. The linear and nonlinear parts are as follows:

[0061] ,

[0062] ,

[0063] In the formula, is a constant greater than 0 and less than 1, here it is 0.01; when the input x is greater than zero, the output of the activation function is equal to the input x, which is a linear relationship. When the input x is less than or equal to zero, the output of the activation function has the characteristic of exponential growth, that is, it has both linear and nonlinear parts;

[0064] The expression of the JreU combination activation function is:

[0065] ,

[0066] In the formula, is the total output set of the JreU combined activation function, is the bias of the activation function, is the fitting coefficient of weight and bias, is the threshold parameter, is the error value of the JreU combined activation function on the horizontal coordinate of the space, is the error value of the JreU combined activation function on the spatial ordinate, is the comprehensive output set of the horizontal and vertical coordinates of the JreU combined activation function in the spatial coordinate system, Accumulate the first coefficient for the nonlinear transformation of the original data, is the angle of the component vector of the error value on the spatial horizontal coordinate, Accumulate the second coefficient for the nonlinear transformation of the original data, It is the angle of the component vector of the error value on the spatial ordinate.

[0067] Normalize the input data, that is, linearly scale the input data to a specified range:

[0068] ,

[0069] In the formula, is the data set X after data normalization, is the original input data, is the minimum value of the input data, is the maximum value of the input data;

[0070] The input data is transformed into data with the same covariance matrix and unit variance through linear transformation, where the expression of the transformation is:

[0071] ,

[0072] In the formula, is the whitened data set X, For transposition, is the characteristic value of the input data, is the feature vector of the input data, is the mean of the input data.

[0073] Furthermore, the Ribery weighted comprehensive loss function is used to replace the original loss function in the improved YOLOv5x network to measure the difference between the predicted probability distribution of each contact network insulator defect category and the true label of the YOLOv5x network:

[0074] ,

[0075] In the formula, Represents the measure of the cross entropy loss function for the probability distribution of the true label and the model prediction, represents the probability distribution of the i-th true label, represents the probability distribution of the prediction;

[0076] It is calculated based on the degree of overlap between the predicted box and the true label box, expressed as the ratio of the intersection area of ​​the predicted box and the true label box to their union area, expressed as the ratio of the intersection area of ​​the predicted box and the true label box to their union area:

[0077] ,

[0078] In the formula, represents the true label box, represents the prediction box, and the ratio of the intersection area to the union area represents the degree of overlap;

[0079] The expression of Ribery's weighted comprehensive loss function is:

[0080] ,

[0081] In the formula, is the predicted value obtained based on the input data set, that is, the prediction result, It is the calculation process of Ribéry's weighted comprehensive loss function to obtain the predicted value within T time. is the first weight adjustment amount, is the second weight adjustment amount, is the bias amount when the first weight adjustment amount is adjusted, is the bias amount when the second weight adjustment amount is adjusted, is the required sample size, for The sample characteristics at time 1, for The sample characteristics at that time.

[0082] For binary classification in multi-classification tasks, refer to Log Loss to balance the excessive granularity loss in the prediction process:

[0083] ,

[0084] In the formula, is the predicted probability value, is the particle size loss during sample testing, is the total number of samples tested, is the true category of the i-th sample. When the true label is 1, the loss function will penalize the case where the model predicts 0. Conversely, when the true label is 0, the loss function will penalize the case where the model predicts 1.

[0085] In regression, for outliers, the method of combining square loss and absolute loss is used:

[0086] ,

[0087] In the formula, is the true label, is the predicted distance value, is a small constant between 0 and 1, here it is 0.01, and the true label The absolute difference is less than or equal to When , square loss is used; otherwise, absolute loss is used.

[0088] The vectors output by the training model have a specific angular relationship in a specific task, so that the angles between the image representations of contact network insulator defects of the same type are as small as possible, and the angles between the image representations of contact network insulator defects of different types are as large as possible. An additional angular interval is introduced on the basis of the softmax loss, and the cosine similarity is used to measure the similarity between samples. Based on this, the Ribéry weighted comprehensive loss function introduces the angle loss sub-function and the distance loss sub-function.

[0089] The expression of the angle loss subfunction is:

[0090] ,

[0091] In the formula, is the angle of the true category of the i-th sample, is the scaling factor for the angle, is the true category of the i-th sample, is the angle between the i-th sample and the j-th category, and s is the scale parameter;

[0092] The expression of the distance loss subfunction is:

[0093] ,

[0094] In the formula, is the total number of samples after image decomposition, is the distance of sample i, is the interval parameter.

[0095] Step S103, obtaining real-time image information containing the contact network insulator, and inputting the real-time image information into the insulator defect recognition model, and the insulator defect recognition model outputs target defect information corresponding to the real-time image information.

[0096] In this step, real-time image information containing contact network insulators is input into the insulator defect recognition model. Defect recognition is performed based on the connection mode of each convolutional layer in the insulator defect recognition model, the connection channels of each convolutional layer, the difference between the category probability distribution predicted by the insulator defect recognition model and the actual category label, and the degree of overlap between the bounding box predicted by the insulator defect recognition model and the real bounding box to obtain target defect information corresponding to the real-time image information.

[0097] In summary, the method of the present application introduces a new VeRcl initialization rule in the convolutional layer of the improved YOLOv5x network to control the size of the weight, so that the gradient distribution of the improved YOLOv5x network is reasonable, and the improved YOLOv5x network converges to the optimal solution faster in the early stage of training, replacing the automatic processing of the deep learning framework, and improving the training speed and stability of the insulator defect recognition model; further, the JreU combined activation function is used to replace the ReLU and Sigmoid in the backbone network to improve the nonlinear expression ability of the insulator defect recognition model, reduce the volatility in the training process, better adapt to negative value input, and solve the gradient vanishing and dead ReLU problems; finally, the Ribéry weighted comprehensive loss function is used to replace the original loss function to optimize the multi-target detection task, improve the accuracy and robustness of the insulator defect recognition model in detecting targets, reduce the risk of overfitting, and enable the insulator defect recognition model to focus on both the classification accuracy and the positioning accuracy of the target.

[0098] See also Figure 2 , which shows a structural block diagram of a contact network insulator defect identification system of the present application.

[0099] like Figure 2 As shown, the contact network insulator defect identification system 200 includes an acquisition module 210, an adjustment module 220 and an output module 230.

[0100] Among them, the acquisition module 210 is configured to acquire historical image data of the contact network insulator, wherein the historical image data includes image information of the contact network insulator and defect information after the image information is annotated, and the defect information includes defect location and defect type; the adjustment module 220 is configured to use the image information as the input of the improved YOLOv5x network, and use the defect information as the output of the improved YOLOv5x network, adjust the network parameters of the improved YOLOv5x network, and obtain an insulator defect recognition model, wherein the improved YOLOv5x network includes a VeRcl initialization rule, a JreU combined activation function, and a Ribery weighted comprehensive loss function; the VeRcl initialization rule is located in the convolution layer of the backbone network in the improved YOLOv5x, and the VeRcl initialization rule determines the connection mode of each convolution layer, and the convolution layer input is a feature map of the previous layer with different numbers of channels, and the output is a new feature map obtained after the input is processed by convolution operation and activation function; the connection channels of each convolution layer are adjusted based on the JreU combined activation function, the input of the JreU combined activation function is the weighted sum from the convolution layer, that is, the result after linear transformation, and the output is the result after processing by the JreU combined activation function, representing the nonlinear response of the improved YOLOv5x network under a given input; the input of the Ribery weighted comprehensive loss function is the prediction result of the improved YOLOv5x network for given input data, and the output is the loss value of the improved YOLOv5x network on the given input data; the output module 230 is configured to obtain real-time image information containing the contact network insulator, and input the real-time image information into the insulator defect recognition model, and the insulator defect recognition model outputs target defect information corresponding to the real-time image information.

[0101] It should be understood that Figure 2 Modules and references documented in Figure 1 Therefore, the operations and features described above for the method and the corresponding technical effects are also applicable to Figure 2 The modules in it will not be described in detail here.

[0102] In some other embodiments, the embodiments of the present invention further provide a computer-readable storage medium having a computer program stored thereon, wherein when the program instructions are executed by a processor, the processor is caused to execute the contact network insulator defect identification method in any of the above method embodiments;

[0103] As an implementation mode, the computer-readable storage medium of the present invention stores computer-executable instructions, and the computer-executable instructions are configured as follows:

[0104] Acquire historical image data of the contact network insulator, wherein the historical image data includes image information of the contact network insulator and defect information after the image information is annotated, wherein the defect information includes a defect location and a defect type;

[0105] Using the image information as input of an improved YOLOv5x network, and using the defect information as output of the improved YOLOv5x network, adjusting network parameters of the improved YOLOv5x network to obtain an insulator defect recognition model, wherein the improved YOLOv5x network includes a VeRcl initialization rule, a JreU combined activation function, and a Ribery weighted comprehensive loss function;

[0106] The VeRcl initialization rule is located in the convolution layer of the backbone network in the improved YOLOv5x. The VeRcl initialization rule determines the connection mode of each convolution layer. The input of the convolution layer is the feature map of the previous layer with different numbers of channels, and the output is a new feature map obtained after the input is processed by the convolution operation and the activation function.

[0107] Adjust the connection channels of each convolutional layer based on the JreU combined activation function, the input of the JreU combined activation function is the weighted sum from the convolutional layer, that is, the result after linear transformation, and the output is the result after processing by the JreU combined activation function, which represents the nonlinear response of the improved YOLOv5x network under a given input;

[0108] The input of the Ribéry weighted comprehensive loss function is the prediction result of the improved YOLOv5x network for the given input data, and the output is the loss value of the improved YOLOv5x network on the given input data;

[0109] Real-time image information containing the contact network insulator is obtained, and the real-time image information is input into the insulator defect recognition model, and the insulator defect recognition model outputs target defect information corresponding to the real-time image information.

[0110] The computer-readable storage medium may include a program storage area and a data storage area, wherein the program storage area may store an operating system and an application required by at least one function; the data storage area may store data created according to the use of the contact network insulator defect identification system, etc. In addition, the computer-readable storage medium may include a high-speed random access memory, and may also include a memory, such as at least one disk storage device, a flash memory device, or other non-volatile solid-state storage device. In some embodiments, the computer-readable storage medium may optionally include a memory remotely arranged relative to the processor, and these remote memories may be connected to the contact network insulator defect identification system 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.

[0111] Figure 3 is a schematic diagram of the structure of an electronic device provided by an embodiment of the present invention, such as Figure 3 As shown, the device includes: a processor 310 and a memory 320. The electronic device may also include: an input device 330 and an output device 340. The processor 310, the memory 320, the input device 330 and the output device 340 may be connected via a bus or other means. Figure 3 The example of the bus connection is taken. The memory 320 is the computer-readable storage medium mentioned above. The processor 310 executes various functional applications and data processing of the server by running the non-volatile software programs, instructions and modules stored in the memory 320, that is, the contact network insulator defect identification method of the above method embodiment is implemented. The input device 330 can receive input digital or character information, and generate key signal input related to user settings and function control of the contact network insulator defect identification system. The output device 340 may include display devices such as display screens.

[0112] The electronic device can execute the method provided by the embodiment of the present invention, and has the functional modules and beneficial effects corresponding to the execution method. For technical details not described in detail in this embodiment, please refer to the method provided by the embodiment of the present invention.

[0113] As an implementation mode, the electronic device is applied to a contact network insulator defect identification system and is used for a client, and includes: at least one processor; and a memory connected to the at least one processor in communication; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can:

[0114] Acquire historical image data of the contact network insulator, wherein the historical image data includes image information of the contact network insulator and defect information after the image information is annotated, wherein the defect information includes a defect location and a defect type;

[0115] Using the image information as input of an improved YOLOv5x network, and using the defect information as output of the improved YOLOv5x network, adjusting network parameters of the improved YOLOv5x network to obtain an insulator defect recognition model, wherein the improved YOLOv5x network includes a VeRcl initialization rule, a JreU combined activation function, and a Ribery weighted comprehensive loss function;

[0116] The VeRcl initialization rule is located in the convolution layer of the backbone network in the improved YOLOv5x. The VeRcl initialization rule determines the connection mode of each convolution layer. The input of the convolution layer is the feature map of the previous layer with different numbers of channels, and the output is a new feature map obtained after the input is processed by the convolution operation and the activation function.

[0117] Adjust the connection channels of each convolutional layer based on the JreU combined activation function, the input of the JreU combined activation function is the weighted sum from the convolutional layer, that is, the result after linear transformation, and the output is the result after processing by the JreU combined activation function, which represents the nonlinear response of the improved YOLOv5x network under a given input;

[0118] The input of the Ribéry weighted comprehensive loss function is the prediction result of the improved YOLOv5x network for the given input data, and the output is the loss value of the improved YOLOv5x network on the given input data;

[0119] Real-time image information containing the contact network insulator is obtained, and the real-time image information is input into the insulator defect recognition model, and the insulator defect recognition model outputs target defect information corresponding to the real-time image information.

[0120] Through the description of the above implementation modes, those skilled in the art can clearly understand that each implementation mode can be implemented by means of software plus a necessary general hardware platform, or of course by hardware. Based on such an understanding, the above technical solution can essentially or in other words be embodied in the form of a software product that contributes to the prior art. The computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a magnetic disk, an optical disk, etc., and includes a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods of each embodiment or some parts of the embodiment.

[0121] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. 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 method for identifying defects in contact network insulators, characterized in that: include: Acquire historical image data of the contact network insulator, wherein the historical image data includes image information of the contact network insulator and defect information after the image information is annotated, wherein the defect information includes a defect location and a defect type; The image information is used as the input of the improved YOLOv5x network, and the defect information is used as the output of the improved YOLOv5x network, and the network parameters of the improved YOLOv5x network are adjusted to obtain an insulator defect recognition model, wherein the improved YOLOv5x network includes a VeRcl initialization rule, a JreU combined activation function, and a Ribery weighted comprehensive loss function, and the VeRcl initialization rule specifically includes: The weight vector is introduced in the initialization of the convolutional layer. The weight vector will change its direction of action following the propagation direction of the corresponding network: , , In the formula, is the full addition set of weight vectors, For the real data set, is any vector variable in the full additive set, , , They are the horizontal vector function independent variable, the vertical vector function independent variable and the tangential vector function independent variable in the full addition set of the weight vector, is the recall rate of any vector variable in the full addition set, is the harmonic mean of the precision and recall of any vector variable in the full addition set, is the initialization period under the VeRcl initialization rule, Represents the vector under the initialization cycle; The weights are randomly drawn from a uniform distribution or a normal distribution. For randomly drawing weights from a uniform distribution: , In the formula, is the number of input neurons, is the number of output neurons, is the weight in the neural network, For uniform distribution; For randomly drawing weights from a normal distribution: , In the formula, is a normal distribution; Adjust the learning rate and optimize the parameter update process of the neural network based on the update rule, reduce the learning rate of the parameters with larger gradients, and increase the learning rate of the parameters with smaller gradients. The update rule is: , , , In the formula, is the value of parameter i in the t+1th iteration, is the value of parameter i in the tth iteration, is the initial learning rate, is the gradient of parameter i in the tth iteration, is a constant between (-1, 1), is the squared sum of the gradients of all parameters in the tth iteration, is the cumulative sum of the squared gradients of parameter i in the tth iteration, is the level 1 gradient in the tth iteration, is the level 2 gradient in the tth iteration, is the n-level gradient in the t-th iteration; Considering the historical information of the gradient, calculating the moving average of the squared gradient, and performing a normalized learning rate update based on the moving average of the squared gradient; The expression of the JreU combined activation function is: , In the formula, is the total output set of the JreU combined activation function, is the bias of the activation function, is the fitting coefficient of weight and bias, is the threshold parameter, is the error value of the JreU combined activation function on the horizontal coordinate of the space, is the error value of the JreU combined activation function on the spatial ordinate, is the comprehensive output set of the horizontal and vertical coordinates of the JreU combined activation function in the spatial coordinate system, Accumulate the first coefficient for the nonlinear transformation of the original data, is the angle of the component vector of the error value on the spatial horizontal coordinate, Accumulate the second coefficient for the nonlinear transformation of the original data, is the angle of the component vector of the error value on the spatial ordinate; The expression of the Ribéry weighted comprehensive loss function is: , In the formula, is the predicted value obtained based on the input data set, that is, the prediction result, It is the calculation process of Ribéry's weighted comprehensive loss function to obtain the predicted value within T time. is the first weight adjustment amount, is the second weight adjustment amount, is the bias amount when the first weight adjustment amount is adjusted, is the bias amount when the second weight adjustment amount is adjusted, is the required sample size, for The sample characteristics at time 1, for Sample characteristics at the time The VeRcl initialization rule is located in the convolution layer of the backbone network in the improved YOLOv5x. The VeRcl initialization rule determines the connection mode of each convolution layer. The input of the convolution layer is the feature map of the previous layer with different numbers of channels, and the output is a new feature map obtained after the input is processed by the convolution operation and the activation function. Adjust the connection channels of each convolutional layer based on the JreU combined activation function, the input of the JreU combined activation function is the weighted sum from the convolutional layer, that is, the result after linear transformation, and the output is the result after processing by the JreU combined activation function, which represents the nonlinear response of the improved YOLOv5x network under a given input; The input of the Ribéry weighted comprehensive loss function is the prediction result of the improved YOLOv5x network for the given input data, and the output is the loss value of the improved YOLOv5x network on the given input data; Real-time image information containing the contact network insulator is obtained, and the real-time image information is input into the insulator defect recognition model, and the insulator defect recognition model outputs target defect information corresponding to the real-time image information.

2. A method for identifying defects in contact network insulators according to claim 1, characterized in that: in, The expression for normalized learning rate update is: , , , , , In the formula, is the decay rate of momentum, is the squared sum of the gradients of all parameters in the tth iteration, is the moving average of the squared gradient in the t+1th iteration, is the decay rate of the moving average of the squared gradient, is the moving average of the squared gradient in the tth iteration, is the estimated value of the momentum after correction in the t+1th iteration, is the first-order moment estimate of momentum in the t+1th iteration, is the first-order moment estimate of momentum in the t-th iteration, is the decay rate of the momentum in the t+1th round, is the decay rate of the moving average of the squared gradient in the t+1th round, is the estimated value of the moving average of the squared gradient in the t+1th iteration after correction, is the initial learning rate, is the value of the parameter in the t+1th iteration, is the value of the parameter in the tth iteration, is a constant.

3. A method for identifying defects in contact network insulators according to claim 1, characterized in that: Before adjusting the connection channels of each convolutional layer based on the JreU combined activation function, the method further includes: The input data is normalized according to the JreU combined activation function, that is, the input data is linearly scaled to a preset range, wherein the expression for normalizing the input data is: , In the formula, is the data set X after data normalization, is the original input data, is the minimum value of the input data, is the maximum value of the input data; The input data is transformed into data with the same covariance matrix and unit variance through linear transformation, where the expression of the transformation is: , In the formula, is the whitened data set X, For transposition, is the characteristic value of the input data, is the feature vector of the input data, is the mean of the input data.

4. A method for identifying defects in contact network insulators according to claim 1, characterized in that: The Ribéry weighted comprehensive loss function is a comprehensive loss function obtained by weighted combination of the angle loss sub-function after Hillras transformation and the distance loss sub-function; The expression of the angle loss subfunction is: , In the formula, is the angle of the true category of the i-th sample, is the scaling factor for the angle, is the true category of the i-th sample, is the angle between the i-th sample and the j-th category, and s is the scale parameter; The expression of the distance loss subfunction is: , In the formula, is the total number of samples after image decomposition, is the distance of sample i, is the interval parameter.

5. A contact network insulator defect identification system, characterized in that: include: An acquisition module is configured to acquire historical image data of the contact network insulator, wherein the historical image data includes image information of the contact network insulator and defect information after the image information is annotated, wherein the defect information includes a defect location and a defect type; The adjustment module is configured to use the image information as the input of the improved YOLOv5x network, and use the defect information as the output of the improved YOLOv5x network, and adjust the network parameters of the improved YOLOv5x network to obtain an insulator defect recognition model, wherein the improved YOLOv5x network includes a VeRcl initialization rule, a JreU combined activation function, and a Ribery weighted comprehensive loss function, and the VeRcl initialization rule specifically includes: The weight vector is introduced in the initialization of the convolutional layer. The weight vector will change its direction of action following the propagation direction of the corresponding network: , , In the formula, is the full addition set of weight vectors, For the real data set, is any vector variable in the full additive set, , , They are the horizontal vector function independent variable, the vertical vector function independent variable and the tangential vector function independent variable in the full addition set of the weight vector, is the recall rate of any vector variable in the full addition set, is the harmonic mean of the precision and recall of any vector variable in the full addition set, is the initialization period under the VeRcl initialization rule, Represents the vector under the initialization cycle; The weights are randomly drawn from a uniform distribution or a normal distribution. For randomly drawing weights from a uniform distribution: , In the formula, is the number of input neurons, is the number of output neurons, is the weight in the neural network, For uniform distribution; For randomly drawing weights from a normal distribution: , In the formula, is a normal distribution; Adjust the learning rate and optimize the parameter update process of the neural network based on the update rule, reduce the learning rate of the parameters with larger gradients, and increase the learning rate of the parameters with smaller gradients. The update rule is: , , , In the formula, is the value of parameter i in the t+1th iteration, is the value of parameter i in the tth iteration, is the initial learning rate, is the gradient of parameter i in the tth iteration, is a constant between (-1, 1), is the squared sum of the gradients of all parameters in the tth iteration, is the cumulative sum of the squared gradients of parameter i in the tth iteration, is the level 1 gradient in the tth iteration, is the level 2 gradient in the tth iteration, is the n-level gradient in the t-th iteration; Considering the historical information of the gradient, calculating the moving average of the squared gradient, and performing a normalized learning rate update based on the moving average of the squared gradient; The expression of the JreU combined activation function is: , In the formula, is the total output set of the JreU combined activation function, is the bias of the activation function, is the fitting coefficient of weight and bias, is the threshold parameter, is the error value of the JreU combined activation function on the horizontal coordinate of the space, is the error value of the JreU combined activation function on the spatial ordinate, is the comprehensive output set of the horizontal and vertical coordinates of the JreU combined activation function in the spatial coordinate system, Accumulate the first coefficient for the nonlinear transformation of the original data, is the angle of the component vector of the error value on the spatial horizontal coordinate, Accumulate the second coefficient for the nonlinear transformation of the original data, is the angle of the component vector of the error value on the spatial ordinate; The expression of the Ribéry weighted comprehensive loss function is: , In the formula, is the predicted value obtained based on the input data set, that is, the prediction result, It is the calculation process of Ribéry's weighted comprehensive loss function to obtain the predicted value within T time. is the first weight adjustment amount, is the second weight adjustment amount, is the bias amount when the first weight adjustment amount is adjusted, is the bias amount when the second weight adjustment amount is adjusted, is the required sample size, for The sample characteristics at time 1, for Sample characteristics at the time The VeRcl initialization rule is located in the convolution layer of the backbone network in the improved YOLOv5x. The VeRcl initialization rule determines the connection mode of each convolution layer. The input of the convolution layer is the feature map of the previous layer with different numbers of channels, and the output is a new feature map obtained after the input is processed by the convolution operation and the activation function. Adjust the connection channels of each convolutional layer based on the JreU combined activation function, the input of the JreU combined activation function is the weighted sum from the convolutional layer, that is, the result after linear transformation, and the output is the result after processing by the JreU combined activation function, which represents the nonlinear response of the improved YOLOv5x network under a given input; The input of the Ribéry weighted comprehensive loss function is the prediction result of the improved YOLOv5x network for the given input data, and the output is the loss value of the improved YOLOv5x network on the given input data; The output module is configured to obtain real-time image information containing the contact network insulator and input the real-time image information into the insulator defect recognition model, and the insulator defect recognition model outputs target defect information corresponding to the real-time image information.

6. An electronic device, characterized in that: include: At least one processor, and a memory communicatively connected to the at least one processor, wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the method described in any one of claims 1 to 4.

7. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the method according to any one of claims 1 to 4 is implemented.

Citation Information

Patent Citations

  • Method for in-SITU and real-time collection and processing of geometric parameters of railway lines

    CA3163192A1

  • Insulator defect detection method and system, electronic equipment and readable storage medium

    CN113298789A

  • Insulator defect detection model generation method and device, equipment and storage medium

    CN115829999A

  • Insulator defect detection method, device and equipment and storage medium

    CN115953371A

  • Lightweight improved insulator defect automatic detection method

    CN116343064A