A method for identifying risks in power operations based on deep learning

By using deep learning methods combined with image feature processing and multi-scale feature fusion, the problem of adaptability and accuracy to complex scenes in power operation risk identification is solved, efficient power operation risk positioning and identification is achieved, labor costs are saved, and High quality framed images.

CN117994594BActive Publication Date: 2024-10-15WUHAN TEXTILE UNIV
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202410403204.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-04-03
Publication Date
2024-10-15
Estimated Expiration
2044-04-03

AI Technical Summary

Technical Problem

Existing power operation risk identification methods based on deep learning are prone to interference from lighting changes, noise and image quality when dealing with complex and diverse power operation scenarios, and are not accurate enough for small target detection. Traditional methods require a large number of manual annotations and experts. It consumes a lot of knowledge and resources, and cannot adapt to complex scenarios.

Method used

A power operation risk identification method based on deep learning is designed, including an image feature processing module, a feature pyramid network module, a corner point positioning module and a center point positioning module. The model is trained through multi-scale feature fusion and loss function combination to improve target detection. accuracy and adaptability.

Benefits of technology

Effectively locates risk locations in power scene pictures, improves the accuracy and efficiency of target detection, saves labor costs, provides high-quality frame selection pictures, adapts to the scale and shape of diverse targets, and improves the risk identification of power operations Overall performance.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117994594B_ABST
    Figure CN117994594B_ABST
Patent Text Reader

Abstract

The present invention discloses a method for identifying risks of power operations based on deep learning, and the method comprises the following steps: S1: designing a target detection model suitable for power operation risks; S2: training the designed target detection model to obtain a trained target detection model; S3: using the trained target detection model to identify and locate risky positions in power operations. The present invention extracts image features through an image feature processing module, sends the extracted features to a feature pyramid network module for fusing feature maps of different resolutions, and then associates the corner point positions obtained by the corner point positioning module with the center point position obtained by the center positioning module, and uses a positioning decoding module to obtain the position and size information of the object, thereby improving the accuracy of target detection model recognition.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of target detection, and in particular to a method for identifying risks in power operations based on deep learning. Background Art

[0002] The power operation risk identification method based on deep learning has important application potential in the power industry. This method uses deep learning algorithms and large-scale power operation data sets to accurately identify risks in power operations in real time and improve the safety and efficiency of operations.

[0003] Deep learning methods, especially convolutional neural networks (CNNs), have achieved remarkable results in target detection tasks. These methods can learn hierarchical features in images and locate targets in images at the pixel level. The technical foundation behind the deep learning-based power operation risk identification method mainly includes advanced architectures and algorithms for target detection in deep learning.

[0004] As time goes by, traditional methods can no longer meet the task of identifying risks in power operations, and risk identification is based on manually defined rules and statistical models. These rules and models require experienced experts to design and adjust, and cannot adapt to complex and diverse power operation scenarios; traditional methods are sensitive to interference factors such as lighting changes, noise and image quality, and are easily disturbed and lead to misjudgment. This will limit the ability to identify risks in power operations in resource-constrained environments; traditional methods usually require manual annotation of data and training of expert knowledge, which requires a lot of time and resources. The identification of power risks according to the deep learning method has an identification accuracy far exceeding that of traditional algorithms.

[0005] The Chinese patent with publication number CN106504233B discloses "Method and system for identifying small power components in drone inspection images based on Faster R-CNN". The accuracy and efficiency of identifying small power components using deep learning algorithms such as Faster R-CNN are relatively high. Specific GPU computing units can be used to enable statistical deep learning methods to achieve real-time target detection and recognition of inspection videos or images. However, for the identification of risks in power operations, it is necessary not only to accurately detect small targets, but also to accurately identify categories that are easily misdetected, such as gloves.

[0006] Therefore, it is urgent to design a power operation risk identification method based on deep learning to solve the problems existing in the above-mentioned existing technologies. Summary of the invention

[0007] In view of the above defects or improvement needs of the prior art, the present invention provides a method for identifying risks in power operations based on deep learning, the purpose of which is to effectively locate the risk positions in power scene images through deep learning algorithms and improve the accuracy of risk positions in images.

[0008] In order to achieve the above object, the present invention adopts the following technical solutions:

[0009] A first aspect of the present invention provides a method for identifying risks in power operations based on deep learning, comprising the following steps:

[0010] S1: Design a target detection model suitable for power operation risks;

[0011] The target detection model includes an image feature processing module, a feature pyramid network module, a corner point positioning module, a center point positioning module and a positioning decoding module; the specific steps include:

[0012] S11: sending the image to be detected to the image feature processing module, first preprocessing the input image to be detected, including adjusting the image size, normalizing and enhancing the image, and then extracting image features through the backbone network;

[0013] S12: sending the extracted image features to the feature pyramid network module, fusing feature maps of different resolutions through upsampling and downsampling operations, adding reversible branches to capture information, and finally generating multi-scale feature maps;

[0014] S13: Send the generated multi-scale feature map to the corner location module, and obtain the corner position through 3 convolution layers and 1 pooling layer;

[0015] S14: Send the generated multi-scale feature map to the center point positioning module, and obtain the center point position through 2 convolution layers and 1 activation function;

[0016] S15: Using the positioning decoding module to restore the bounding box information of the object using the corner point positions obtained by the corner point positioning module and the center point position obtained by the center point positioning module, so as to obtain the position and size information of the object;

[0017] S2: Train the designed target detection model to obtain a trained target detection model;

[0018] S3: Use the trained object detection model to identify and locate risky locations in power operations.

[0019] As an embodiment of the present application, the corner location module in step S13 includes 3 convolutional layers and 1 pooling layer, and the specific steps include:

[0020] S131: sending the generated multi-scale feature map to the first convolution layer, performing a convolution operation using a convolution kernel, and generating a new feature map;

[0021] S132: An activation function is applied after each convolutional layer to introduce nonlinearity;

[0022] S133: extract and compress features through the second convolution layer and pooling layer to obtain a feature map with reduced size;

[0023] S134: After passing through a third convolutional layer whose number of channels is equal to the number of corner points to be predicted, a heat map having the same size as the feature map with the reduced size is generated to obtain the positions of the corner points.

[0024] As an embodiment of the present application, the center point positioning module in step S14 includes 2 convolutional layers and 1 activation function, and the specific steps include:

[0025] S141: sending the generated multi-scale feature map to the first convolution layer for convolution operation, wherein the convolution operation adopts a sliding window method, performing point multiplication and sum operation on the convolution kernel and the generated multi-scale feature map, and obtaining a new feature map of the convolution output;

[0026] S142: An activation function is then applied to introduce nonlinearity;

[0027] S143: After passing through the second convolution layer whose number of output channels is the same as the number of center points to be predicted, a heat map of the same size as the new feature map is generated to obtain the position of the center point.

[0028] As an embodiment of the present application, step S15 includes:

[0029] S151: by calculating the relative position relationship between the corner point and the center point, using the nearest neighbor matching method to associate the corner point with the center point;

[0030] S152: Decoding the associated corner points and center points, calculating the distance between the corner points and the center points to determine the width and height of the object, and combining the center position and size information to form a final bounding box;

[0031] S153: Predict the object category of the bounding box and use the softmax function to convert the category prediction into a probability distribution to represent the confidence of each category.

[0032] As an embodiment of the present application, the scale loss function is used in step S2 , center point heat map loss function , Corner heatmap loss function And the classification loss function The target detection model is trained, and the scale loss function , center point heat map loss function , Corner heatmap loss function And the classification loss function The combination forms an overall loss function, which is calculated as follows:

[0033]

[0034] in, , , , is the weight of each loss function.

[0035] As an embodiment of the present application, the scale loss function The calculation formula is:

[0036]

[0037] in, represents the scale of the prediction, Indicates the true scale, represents the sliding L1 loss function, Indicates the sample size.

[0038] As an embodiment of the present application, the center point heat map loss function The calculation formula is:

[0039]

[0040] in, represents the predicted center point heat map, represents the true center point heat map, Indicates the sample size.

[0041] As an embodiment of the present application, the corner heat map loss function The calculation formula is as follows:

[0042]

[0043] in, represents the predicted corner heatmap, represents the true corner heat map, Indicates the sample size.

[0044] As an embodiment of the present application, the classification loss function The calculation formula is as follows:

[0045]

[0046] in, represents the predicted class probability, represents the true category label, represents the cross entropy loss function, Indicates the sample size.

[0047] The beneficial effects of the present invention are:

[0048] 1. The present invention first extracts image features through an image feature processing module, and then sends the extracted features to a feature pyramid network module for fusing feature maps of different resolutions. Then, the corner point positions obtained by the corner point positioning module and the center point positions obtained by the center positioning module are associated, and the location and size information of the object is obtained by using a positioning decoding module, so as to effectively locate the risk position in the power scene image and improve the accuracy of target detection model recognition.

[0049] 2. The present invention uses four innovative loss functions to train the target detection model, which can improve the target positioning accuracy and precision, improve the determination of the target bounding box, adapt to the scale and shape of diverse targets, and improve the accuracy of target classification; by combining these loss functions, the performance of the target detection algorithm in terms of positioning, scale and classification can be comprehensively considered, so that the model training pays more attention to the detection target, and the training effect is better, which is more in line with the power scenario, thereby improving the overall target detection performance;

[0050] 3. The present invention greatly saves labor costs by inputting the power image to be detected into the model for detection and finally generating a framed image, and provides high-quality framed images for subsequent statistical risk and other technologies. BRIEF DESCRIPTION OF THE DRAWINGS

[0051] Figure 1 A technical solution flow chart of a method for identifying risks in power operations based on deep learning provided in an embodiment of the present invention;

[0052] Figure 2 Schematic diagram of a feature pyramid network module of a method for identifying risks in power operations based on deep learning provided in an embodiment of the present invention. DETAILED DESCRIPTION

[0053] The following will be combined with the 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. 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.

[0054] It should be noted that all directional indications (such as up, down, left, right, front, back, etc.) in the embodiments of the present invention are only used to explain the relative position relationship, movement status, etc. between the components under a certain specific posture (as shown in the accompanying drawings). If the specific posture changes, the directional indication will also change accordingly.

[0055] In the present invention, unless otherwise clearly specified and limited, the terms "connection", "fixation", etc. should be understood in a broad sense. For example, "fixation" can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection or an indirect connection through an intermediate medium, it can be the internal connection of two elements or the interaction relationship between two elements, unless otherwise clearly defined. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.

[0056] In addition, if there are descriptions involving "first", "second", etc. in the embodiments of the present invention, the descriptions of "first", "second", etc. are only used for descriptive purposes and cannot be understood as indicating or implying their relative importance or implicitly indicating the number of technical features indicated. Therefore, the features defined as "first" and "second" may explicitly or implicitly include at least one of the features. In addition, the meaning of "and / or" appearing in the full text includes three parallel schemes. Taking "A and / or B" as an example, it includes scheme A, or scheme B, or a scheme that satisfies both A and B. In addition, the technical solutions between the various embodiments can be combined with each other, but it must be based on the ability of ordinary technicians in the field to implement. When the combination of technical solutions is contradictory or cannot be implemented, it should be deemed that such a combination of technical solutions does not exist and is not within the scope of protection required by the present invention.

[0057] Reference Figure 1 and Figure 2 In a first aspect, the present invention provides a method for identifying risks in power operations based on deep learning, the method comprising the following steps:

[0058] S1: Design a target detection model suitable for power operation risks;

[0059] The target detection model includes an image feature processing module, a feature pyramid network module, a corner point positioning module, a center point positioning module and a positioning decoding module; the specific steps include:

[0060] S11: Send the image to be detected to the image feature processing module, first pre-process the input image to be detected, including image resizing, normalization, image enhancement and other operations, and then extract image features through a backbone network, which maps the input image to feature maps of different resolutions for subsequent target detection tasks;

[0061] S12: sending the extracted image features to the feature pyramid network module, and fusing feature maps of different resolutions through upsampling and downsampling operations, which helps the model detect objects of different scales, and adding reversible branches at the same time. The reversible branches are implemented by reversible residual blocks. Adding reversible branches can capture more detailed information in the feature fusion process, and finally generate a set of multi-scale feature maps;

[0062] S13: Send the generated multi-scale feature map to the corner location module, and obtain the corner position through 3 convolution layers and 1 pooling layer;

[0063] S14: Send the generated multi-scale feature map to the center point positioning module, and obtain the center point position through 2 convolution layers and 1 activation function;

[0064] S15: Using the positioning decoding module, the corner point positions obtained by the corner point positioning module and the center point positions obtained by the center point positioning module are used to restore the bounding box information of the object. By associating the corner points and the center points, the position and size information of the object can be obtained. At the same time, the model also predicts the object category of each bounding box.

[0065] S2: Train the designed target detection model to obtain a trained target detection model;

[0066] S3: Use the trained target detection model to identify and locate risky locations in power operations; specifically, use the trained model for target detection inference. Input the image of the power operation scene into the model, and the model will output the detected target category and location information to generate a method that can identify and locate risky locations in power operations. Specifically, by inputting the power image to be detected into the model for detection, the detected image is the generated framed image. Compared with the traditional power operation risk identification method, the present invention greatly saves labor costs and provides high-quality framed images for subsequent statistical risk and other technologies.

[0067] Specifically, the present invention first extracts image features through an image feature processing module, and then sends the extracted features to a feature pyramid network module for fusing feature maps of different resolutions. The corner point positions obtained by the corner point positioning module and the center point positions obtained by the center positioning module are then associated, and the location and size information of the object is obtained using a positioning decoding module to improve the accuracy of model recognition.

[0068] As an embodiment of the present application, the corner location module in step S13 includes 3 convolutional layers and 1 pooling layer, and the specific steps include:

[0069] S131: sending the generated multi-scale feature map to the first convolution layer, the function of the convolution layer is to locally perceive the multi-scale feature map by means of a sliding window and extract local features; the convolution layer uses a set of learnable convolution kernels to perform convolution operations on the multi-scale feature map and the convolution kernel to generate a set of new feature maps;

[0070] S132: An activation function is applied after each convolutional layer to introduce nonlinearity, and the role of the activation function is to increase the representation ability of the model so that it can better adapt to complex data distribution and patterns;

[0071] S133: Next, extract and compress features through a second convolution layer and a pooling layer to obtain a feature map with a reduced size; specifically, the second convolution layer and the pooling layer can help the model extract local features required for corner points from more advanced semantic information, while reducing the size of the feature map to reduce computational complexity;

[0072] S134: After a third convolutional layer whose number of channels is equal to the number of corner points to be predicted, a heat map of the same size as the reduced-size feature map is generated to obtain the positions of the corner points, wherein each pixel indicates whether the corresponding position contains a corner point of the object; the heat map can be regarded as a confidence map of the corner points, and a higher value indicates that the corner point is more likely to exist.

[0073] Specifically, the present invention can provide accurate positioning capability for a target through a corner point positioning module, and can more accurately determine the target's bounding box by predicting the top left and bottom right corner points of the target.

[0074] As an embodiment of the present application, the center point positioning module in step S14 includes 2 convolutional layers and 1 activation function, and the specific steps include:

[0075] S141: Send the generated multi-scale feature map to the convolution layer for convolution operation. The convolution operation uses a sliding window method to perform point multiplication and sum operations on the convolution kernel and the input feature map to obtain a new feature map of the convolution output; specifically, each convolution kernel corresponds to an output channel, representing a specific feature. In the convolution operation, the size of the convolution kernel determines the size of the local receptive field. A smaller convolution kernel can extract detailed features, while a larger convolution kernel can capture a wider range of contextual information; the stride determines the sliding distance of the convolution kernel on the feature map. A larger stride will result in a reduction in the size of the output feature map.

[0076] S142: After the convolutional layer, an activation function is applied to introduce nonlinearity, which helps to increase the representation power of the model and improve the ability to model complex patterns;

[0077] S143: Finally, after passing through a convolutional layer whose output channel number is the same as the number of center points to be predicted, a heat map of the same size as the new feature map is generated, in which each pixel indicates whether the corresponding position contains the center point of the object, and the position of the center point is obtained. Specifically, the pixel points in the heat map represent the confidence or probability that the target exists at the corresponding position. By processing and analyzing the heat map, the target object can be located and detected.

[0078] Specifically, the present invention can eliminate a large amount of confusion caused by erroneously identifying some non-target areas or areas that are similar to the target but are not actually the target as candidate boxes or bounding boxes of the target object through the center point positioning module.

[0079] As an embodiment of the present application, step S15 includes:

[0080] S151: by calculating the relative position relationship between the corner point and the center point, using the nearest neighbor matching method to associate the corner point with the center point;

[0081] S152: By decoding the associated corner points and center points, the bounding box information of the object can be restored. Specifically, the width and height of the object can be determined by calculating the distance between the associated points, and the center position and size information can be combined to form a final bounding box;

[0082] S153: Finally, the object category of the bounding box is predicted, and the category prediction is converted into a probability distribution using a softmax function to represent the confidence of each category. Specifically, the object category of the predicted bounding box can be illustrated as follows: recognition and detection of different objects in an electric power scenario. For example, if a person is detected but a helmet is not detected, there is a risk.

[0083] As an embodiment of the present application, the scale loss function is used in step S2 , center point heat map loss function , Corner heatmap loss function And the classification loss function The target detection model is trained, and the scale loss function , center point heat map loss function , Corner heatmap loss function And the classification loss function The combination forms an overall loss function, which is calculated as follows:

[0084]

[0085] in, , , , is the weight of each loss function. By adjusting the weight, the impact of each loss function on model training can be balanced.

[0086] As an embodiment of the present application, the scale loss function The calculation formula is:

[0087]

[0088] in, represents the scale of the prediction, Indicates the true scale, represents the sliding L1 loss function, Indicates the sample size.

[0089] As an embodiment of the present application, the center point heat map loss function The calculation formula is:

[0090]

[0091] in, represents the predicted center point heat map, represents the true center point heat map, Indicates the sample size.

[0092] As an embodiment of the present application, the corner heat map loss function The calculation formula is as follows:

[0093]

[0094] in, represents the predicted corner heatmap, represents the true corner heat map, Indicates the sample size.

[0095] As an embodiment of the present application, the classification loss function The calculation formula is as follows:

[0096]

[0097] in, represents the predicted class probability, represents the true category label, represents the cross entropy loss function, Indicates the sample size.

[0098] Specifically, these loss functions can improve the accuracy and precision of target positioning, improve the determination of target bounding boxes, adapt to the scale and shape of diverse targets, and improve the accuracy of target classification. By combining these loss functions, the performance of target detection algorithms in terms of positioning, scale, and classification can be comprehensively considered, so that model training can focus more on detection targets, and the training effect is better and more in line with power scenarios, thereby improving the overall target detection performance.

[0099] The present invention extracts image features through an image feature processing module, and then sends the extracted features to a feature pyramid network module for fusing feature maps of different resolutions, and then associates the corner point positions obtained by the corner point positioning module with the center point position obtained by the center positioning module, and uses a positioning decoding module to obtain the position and size information of the object, effectively locating the risk position in the power scene image, and improving the accuracy of the risk position in the image. At the same time, by inputting the power image to be detected into the model for detection, and finally generating a framed picture, the labor cost is greatly saved, and high-quality framed pictures are provided for subsequent statistical risk and other technologies.

[0100] The above descriptions are only some preferred embodiments of the present disclosure and an explanation of the technical principles used. Those skilled in the art should understand that the scope of the invention involved in the embodiments of the present disclosure is not limited to the technical solutions formed by a specific combination of the above technical features, but should also cover other technical solutions formed by any combination of the above technical features or their equivalent features without departing from the above inventive concept. For example, the above features are replaced with (but not limited to) technical features with similar functions disclosed in the embodiments of the present disclosure.

Claims

1. A method for identifying risks in power operations based on deep learning, characterized in that: The method comprises the following steps: S1: Design a target detection model suitable for power operation risks; The target detection model includes an image feature processing module, a feature pyramid network module, a corner point positioning module, a center point positioning module and a positioning decoding module; the specific steps include: S11: sending the image to be detected to the image feature processing module, first preprocessing the input image to be detected, including adjusting the image size, normalizing and enhancing the image, and then extracting image features through the backbone network; S12: sending the extracted image features to the feature pyramid network module, fusing feature maps of different resolutions through upsampling and downsampling operations, adding reversible branches to capture information, and finally generating multi-scale feature maps; S13: Send the generated multi-scale feature map to the corner location module, and obtain the corner position through 3 convolution layers and 1 pooling layer; S14: Send the generated multi-scale feature map to the center point positioning module, and obtain the center point position through 2 convolution layers and 1 activation function; S15: Using the positioning decoding module to restore the bounding box information of the object using the corner point positions obtained by the corner point positioning module and the center point position obtained by the center point positioning module, so as to obtain the position and size information of the object; S2: Train the designed target detection model to obtain a trained target detection model; S3: Use the trained object detection model to identify and locate risky locations in power operations; The corner location module in step S13 includes three convolutional layers and one pooling layer, and the specific steps include: S131: sending the generated multi-scale feature map to the first convolution layer, performing a convolution operation using a convolution kernel, and generating a new feature map; S132: An activation function is applied after each convolutional layer to introduce nonlinearity; S133: extract and compress features of the new feature map through the second convolution layer and pooling layer to obtain a feature map with reduced size; S134: After passing through a third convolutional layer whose number of channels is equal to the number of corner points to be predicted, a heat map having the same size as the feature map with the reduced size is generated to obtain the positions of the corner points; The center point positioning module in step S14 includes two convolutional layers and one activation function, and the specific steps include: S141: sending the generated multi-scale feature map to the first convolution layer for convolution operation, wherein the convolution operation adopts a sliding window method, performs point multiplication and sum operation on the convolution kernel and the generated multi-scale feature map, and obtains a new feature map of the convolution output; S142: An activation function is then applied to introduce nonlinearity; S143: After passing through a second convolutional layer whose number of output channels is the same as the number of center points to be predicted, a heat map of the same size as the new feature map is generated to obtain the position of the center point; In step S2, a scale loss function is used , center point heat map loss function , Corner heat map loss function And the classification loss function The target detection model is trained; the scale loss function , center point heat map loss function , Corner heat map loss function And the classification loss function The combination forms an overall loss function, which is calculated as follows: ,in, , , , is the weight of each loss function; The scale loss function The calculation formula is: ,in, represents the scale of the prediction, Indicates the true scale, represents the sliding L1 loss function, represents the number of samples; The center point heat map loss function The calculation formula is: ,in, represents the predicted center point heat map, represents the true center point heat map, represents the number of samples; The corner heatmap loss function The calculation formula is as follows: ,in, represents the predicted corner heatmap, represents the true corner heat map, represents the number of samples; The classification loss function The calculation formula is as follows: ,in, represents the predicted class probability, represents the true category label, represents the cross entropy loss function, Indicates the sample size.

2. The method for identifying risks in power operations based on deep learning according to claim 1, characterized in that: The step S15 comprises: S151: by calculating the relative position relationship between the corner point and the center point, using the nearest neighbor matching method to associate the corner point with the center point; S152: Decoding the associated corner points and center points, calculating the distance between the corner points and the center points to determine the width and height of the object, and combining the center position and size information to form a final bounding box; S153: Predict the object category of the bounding box and use the softmax function to convert the category prediction into a probability distribution to represent the confidence of each category.

Citation Information

Cited By

  • Power generation enterprise operation risk identification method and system based on multi-modal large model

    CN119539494A