Power transmission line operation safety supervision method and device based on scene recognition
By collecting video streams through monitoring devices and using tower detection and target detection models to identify work objects, the problem of low efficiency in high-altitude inspection of transmission lines has been solved, achieving efficient and safe automatic inspection.
Patent Information
- Application Number
- CN202410909330.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-08
- Publication Date
- 2026-11-20
- Estimated Expiration
- 2044-07-08
AI Technical Summary
Existing technologies for high-altitude inspection of power transmission lines are inefficient and pose safety risks, especially in the field where manual inspections are subject to high uncertainty.
The monitoring device collects video streams of the transmission line work area, and uses the line tower detection model and target detection model to extract tower features and identify the work objects, generating work images containing tower outlines and work objects. Superpixel segmentation and importance score assignment techniques are used to improve monitoring accuracy.
It significantly improves the safety monitoring accuracy and automatic inspection efficiency of high-altitude work sites, reduces the workload of supervisors, and enables real-time and rapid inspection of power transmission line work sites.
Smart Images

Figure CN118887607B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of power transmission line safety supervision technology or other related fields. Specifically, it relates to a method and apparatus for power transmission line operation safety supervision based on scene recognition. Background Technology
[0002] With the development of the power system and the improvement of people's living standards, power users have increasingly higher requirements for power quality and supply reliability. Meanwhile, with the annual increase in power load, the quality requirements for the power grid and its related power system facilities have also significantly increased. To ensure the normal operation of these facilities, the safety assurance of live-line work at heights is increasingly developing towards standardization, digitalization, and refinement. Live-line work on transmission lines is mainly applied in the following two aspects: first, performing live-line work on insulators of towers, including live-line testing of insulator strings, live-line replacement of damaged insulators, and cleaning and washing contaminants from insulators; second, repairing damaged conductors.
[0003] In related technologies, for live-line work at height, safety assurance for the work object requires not only insulation protection but also fall protection. Fall protection is generally achieved by having the work object wear a safety rope, making the inspection of the work object's current condition crucial. Currently, power system transmission line inspections largely rely on manual inspections to monitor the work object's condition and ensure its safety. However, this monitoring method suffers from high workload and low efficiency, and in some field inspections, manual inspections also present uncertain safety issues.
[0004] There is currently no effective solution to the above problems. Summary of the Invention
[0005] This invention provides a method and apparatus for safety supervision of power transmission line operations based on scene recognition, which at least solves the technical problem of low inspection efficiency when monitoring high-altitude operations in related technologies.
[0006] According to one aspect of the present invention, a method for safety supervision of transmission line operations based on scene recognition is provided, comprising: acquiring a monitoring video stream of a transmission line operation face collected by a monitoring device in the current time period, and extracting at least one frame of monitoring image containing the transmission line operation scene from the monitoring video stream to obtain a monitoring image set; inputting the monitoring image set into a transmission line tower detection model, wherein the transmission line tower detection model extracts tower features from the monitoring images to generate tower edge images, and performs regularization processing on the tower edge images to obtain a tower extraction map containing the tower outline; inputting the tower extraction map into a target detection model, wherein the target detection model determines a prediction box containing the operation object in the tower extraction map; segmenting the image elements within the prediction box into multiple superpixels, determining the importance score of each superpixel, wherein the superpixel is a group of closely connected pixel regions formed by aggregating adjacent image pixels; and assigning values to each pixel within the prediction box based on the importance score to obtain an operation image of the operation object on the target tower.
[0007] Optionally, the power line tower detection model is pre-trained. Training the power line tower detection model includes: acquiring original images of the target power tower; cropping the original images to obtain a cropped image dataset; performing data augmentation on the cropped image dataset and filtering the augmented image dataset to obtain a filtered image dataset; performing feature annotation on the filtered image dataset based on a geographic information processing system to obtain an annotated image dataset; dividing the annotated image dataset into a training set and a test set; constructing an initialized power tower building detection model; inputting the training set into the power tower building detection model to train the power tower building detection model; and, with all annotated images in the training set input, testing the trained power tower building detection model using the test set. If the test results indicate that the output of the power tower building detection model meets the classification requirements, the training is confirmed to be complete, and the power line tower detection model is obtained based on the trained power tower building detection model.
[0008] Optionally, the step of constructing the initial power tower building detection model includes: obtaining a DeeplabV3+ deep learning model for semantic segmentation; replacing the convolutional neural network Xception in the DeeplabV3+ model with a target backbone network, wherein the number of network nodes in the target backbone network is less than a first threshold and the number of network connections in the target backbone network is less than a second threshold; adding two deep learning network modules ASPP for performing image segmentation tasks after the target backbone network; and generating the power tower building detection model based on the DeeplabV3+ deep learning model with ASPP modules added.
[0009] Optionally, the step of performing regularization processing on the power tower edge image to obtain a power tower extraction image containing the power tower outline includes: eliminating blurred and occluded parts in the power tower edge image based on a coarse adjustment algorithm to obtain a coarsely adjusted image; adjusting the direction of the outline lines and the position of key nodes in the coarsely adjusted image based on a fine adjustment algorithm to obtain a boundary image; and performing polygonization processing on the boundary image to obtain a power tower extraction image containing the power tower outline.
[0010] Optionally, the step of inputting the extracted power tower image into a target detection model and determining a predicted bounding box containing the work object in the extracted power tower image through the target detection model includes: inputting the extracted power tower image into the target detection model and extracting a feature map containing the work object from the extracted power tower image through a feature extraction network in the target detection model; inputting the feature map into an intermediate network in the target detection model and obtaining multiple candidate boxes through the intermediate network, wherein each candidate box includes at least the confidence score of the work object; removing candidate boxes with a confidence score less than a preset confidence threshold and removing overlapping candidate boxes to obtain a predicted bounding box containing the work object, wherein the predicted bounding box indicates the location where the work object exists.
[0011] Optionally, the step of segmenting the image factors within the prediction box into multiple superpixels and determining the importance score of each superpixel includes: obtaining parameter information for each image pixel within the prediction box, wherein the parameter information includes color information and position information; based on the position information, merging adjacent image pixels with a color information difference less than a preset color threshold into the same pixel region, and generating multiple superpixels based on the merged multiple pixel regions.
[0012] Optionally, the step of segmenting the image factors within the prediction box into multiple superpixels and determining the importance score of each superpixel includes: acquiring multiple sets of sampled images containing the superpixels, wherein a portion of superpixels is randomly removed from each set of sampled images, and the removed superpixels are represented by a sampling mask; inputting the sampled images retaining the superpixels into the object detection model, and determining the sampling selection box through the object detection model; determining the sampling score based on the similarity between the object detection result of the sampling selection box and the object detection result of the prediction box; assigning the same score to the superpixels retained in each set of sampled images based on the sampling scores in each set of sampled images, thereby obtaining the base score of the superpixels; for each superpixel, calculating the ratio of the area of the superpixel in the sampled image to the area of all retained superpixels, and obtaining the weight of the superpixel based on the ratio; for each superpixel, performing a weighted average of the base scores based on the weights to obtain the importance score of the superpixel.
[0013] Optionally, the step of assigning values to each pixel within the prediction box based on the importance score to obtain the operation image of the work object on the target power tower includes: assigning values to each pixel within the prediction box based on the importance score to obtain a heatmap with importance scores for each pixel; filtering the heatmap and loading the heatmap onto a power tower extraction map containing the power tower outline through a visualization interface to obtain the operation image of the work object on the target power tower.
[0014] According to another aspect of the present invention, a safety monitoring device for transmission line operations based on scene recognition is also provided, comprising: a video acquisition unit, configured to acquire a monitoring video stream of the transmission line operation face collected by a monitoring device in the current time period, and extract at least one frame of monitoring image containing the transmission line operation scene from the monitoring video stream to obtain a monitoring image set; a tower extraction unit, configured to input the monitoring image set into a line tower detection model, wherein the line tower detection model extracts tower features from the monitoring images to generate tower edge images, and performs regularization processing on the tower edge images to obtain a tower extraction map containing the tower outline; a model detection unit, configured to input the tower extraction map into a target detection model, and determine a prediction box containing the operation object in the tower extraction map through the target detection model; a superpixel segmentation unit, configured to segment the image elements within the prediction box into multiple superpixels, determine the importance score of each superpixel, wherein the superpixel is a group of closely connected pixel regions formed by aggregating adjacent image pixels; and an operation image generation unit, configured to assign values to each pixel within the prediction box based on the importance score to obtain an operation image of the operation object on the target tower.
[0015] Optionally, the power line tower detection model is pre-trained. During training, the power line operation safety supervision device based on scene recognition includes: a power tower original image acquisition unit for acquiring original images of the target power tower, cropping the original images to obtain a cropped image dataset; a data augmentation unit for performing data augmentation on the cropped image dataset and filtering the augmented image dataset to obtain a filtered image dataset; an image feature annotation unit for performing feature annotation on the filtered image dataset based on a geographic information processing system to obtain an annotated image dataset; and data partitioning. The system comprises: a unit for dividing the labeled image dataset into a training set and a test set; a model initialization unit for constructing an initialized power tower detection model; a model training unit for inputting the training set into the power tower detection model to train it; and a model testing unit for testing the trained power tower detection model using the test set, provided that all labeled images in the training set have been input. If the test results indicate that the output of the power tower detection model meets the classification requirements, the training is confirmed to be complete, and the power tower detection model is obtained based on the trained power tower detection model.
[0016] Optionally, the model initialization unit includes: a first acquisition module for acquiring a DeeplabV3+ deep learning model for semantic segmentation; a network replacement module for replacing the convolutional neural network Xception in the DeeplabV3+ model with a target backbone network, wherein the number of network nodes in the target backbone network is less than a first threshold, and the number of network connections in the target backbone network is less than a second threshold; a network addition module for adding two deep learning network modules ASPP for performing image segmentation tasks after the target backbone network; and a model generation module for generating the power tower building detection model based on the DeeplabV3+ deep learning model with ASPP modules added.
[0017] Optionally, the power tower extraction unit includes: a coarse adjustment module, used to eliminate blurred and occluded parts in the power tower edge image based on a coarse adjustment algorithm to obtain a coarsely adjusted image; a fine adjustment module, used to adjust the direction of the contour lines and the position of key nodes in the coarsely adjusted image based on a fine adjustment algorithm to obtain a boundary image; and a polygonization module, used to perform polygonization processing on the boundary image to obtain a power tower extraction image containing the power tower contour.
[0018] Optionally, the model detection unit includes: a power tower feature extraction module, used to input the power tower extraction image into a target detection model, and extract a feature map containing the work object from the power tower extraction image through a feature extraction network in the target detection model; a candidate box acquisition module, used to input the feature map into an intermediate network in the target detection model, and obtain multiple candidate boxes through the intermediate network, wherein each candidate box includes at least the confidence score of the work object; and a candidate box selection module, used to remove candidate boxes with confidence scores less than a preset confidence threshold, and remove overlapping candidate boxes to obtain a prediction box containing the work object, wherein the prediction box indicates the location where the work object exists.
[0019] Optionally, the superpixel segmentation unit includes: an image pixel parameter acquisition module, used to acquire parameter information of each image pixel within the prediction box, wherein the parameter information includes color information and position information; and a pixel merging module, used to merge adjacent image pixels with a color information difference less than a preset color threshold into the same pixel region based on the position information, and generate multiple superpixels based on the merged multiple pixel regions.
[0020] Optionally, the superpixel segmentation unit includes: a multi-group sampling image acquisition module, used to acquire multiple groups of sampling images containing the superpixels, wherein each group of sampling images randomly removes some superpixels, and the removed superpixels are represented by a sampling mask; a sampling image input module, used to input the sampling images retaining the superpixels into the target detection model, and determine the sampling bounding box through the target detection model; a sampling score acquisition module, used to determine the sampling score based on the similarity between the object detection result of the sampling bounding box and the object detection result of the predicted box; a superpixel assignment module, used to assign the same score to each superpixel retained in the sampling image based on the sampling score in each group of sampling images, to obtain the base score of the superpixel; a superpixel weight calculation module, used to calculate the ratio of the area of the superpixel in the sampling image to the area of all retained superpixels for each superpixel, and obtain the weight of the superpixel based on the ratio; and a superpixel importance score determination module, used to perform a weighted average of the base scores according to the weight for each superpixel, to obtain the importance score of the superpixel.
[0021] Optionally, the operation image generation unit includes: a heat map determination module, used to assign values to each pixel in the prediction box based on the importance score to obtain a heat map with importance scores for each pixel; and an object acquisition module, used to filter the heat map and load the heat map into a power tower extraction map containing the outline of the power tower through a visualization interface to obtain an operation image of the operation object on the target power tower.
[0022] According to another aspect of the present invention, a computer-readable storage medium is also provided, the computer-readable storage medium including a stored computer program, wherein, when the computer program is executed, it controls the device where the computer-readable storage medium is located to perform any of the above-described scene recognition-based transmission line operation safety supervision methods.
[0023] According to another aspect of the present invention, an electronic device is also provided, including one or more processors and a memory, the memory being used to store one or more programs, wherein when the one or more programs are executed by the one or more processors, the one or more processors cause the one or more processors to implement the scene recognition-based transmission line operation safety supervision method described above.
[0024] According to another aspect of the present invention, a computer program product is also provided, including a computer program that, when executed by a processor, implements the steps of the scene recognition-based power transmission line operation safety supervision method described above.
[0025] In this invention, a monitoring video stream of the transmission line operation face collected by the monitoring device in the current time period is acquired, and at least one frame of monitoring image containing the transmission line operation scene is extracted from the monitoring video stream to obtain a monitoring image set. The monitoring image set is input into the line tower detection model, which extracts tower features from the monitoring images to generate tower edge images. The tower edge images are then regularized to obtain a tower extraction map containing the tower outline. The tower extraction map is input into a target detection model, which determines the prediction box containing the operation object in the tower extraction map. The image elements within the prediction box are segmented into multiple superpixels, and the importance score of each superpixel is determined. A superpixel is a group of closely connected pixel regions formed by aggregating adjacent image pixels. Based on the importance score, each pixel within the prediction box is assigned a value to obtain the operation image of the operation object on the target tower.
[0026] In this invention, a monitoring device (such as a transmission line control sphere) is used to collect real-time monitoring video streams of the work site. The video stream data is processed to extract single-frame image data containing the power tower. Based on the identified image of the power tower, the work object can be detected (the work object in the image is identified through target detection). This can significantly improve the safety monitoring accuracy and automatic inspection of the work site, and improve the monitoring efficiency of the transmission line work site. This solves the technical problem of low inspection efficiency when monitoring high-altitude operations in related technologies.
[0027] This invention uses a monitoring device (such as a power grid surveillance ball) to collect video surveillance streams of the transmission line work site in real time, and automatically identifies the power towers in the video images. This enables the detection of workers based on the identified power tower images, which can significantly improve the accuracy and efficiency of safety monitoring of the work site and reduce the workload of supervisors. Attached Figure Description
[0028] The accompanying drawings, which are included to provide a further understanding of the invention and form part of this application, illustrate exemplary embodiments of the invention and, together with their description, serve to explain the invention and do not constitute an undue limitation thereof. In the drawings:
[0029] Figure 1 This is a flowchart of an optional scene recognition-based safety supervision method for power transmission line operations according to an embodiment of the present invention.
[0030] Figure 2 This is a flowchart of an automatic inspection method for a power transmission line work area according to an embodiment of the present invention.
[0031] Figure 3 This is a flowchart of an optional method for determining the prediction frame of the power tower extraction map using a target detection model according to an embodiment of the present invention.
[0032] Figure 4 This is an optional flowchart for determining the importance score of each superpixel according to an embodiment of the present invention.
[0033] Figure 5 This is a schematic diagram of an optional scene recognition-based power transmission line operation safety monitoring device according to an embodiment of the present invention.
[0034] Figure 6 This is a hardware structure block diagram of an electronic device (or mobile device) for a scene recognition-based method for safety supervision of power transmission line operations according to an embodiment of the present invention. Detailed Implementation
[0035] To enable those skilled in the art to better understand the present invention, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings of the embodiments of the present invention. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort should fall within the scope of protection of the present invention.
[0036] It should be noted that the terms "first," "second," etc., in the specification, claims, and accompanying drawings of this invention are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of the invention described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover a non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.
[0037] To facilitate understanding of the present invention by those skilled in the art, some terms or nouns involved in the various embodiments of the present invention are explained below:
[0038] DeepLabV3+ is a deep learning model for semantic segmentation. It is an improved version of the DeepLabV3 model. By introducing techniques such as dilated spatial convolution, batch normalization, and depthwise separable convolution, it improves the performance and efficiency of the model in image segmentation tasks.
[0039] The Xception network is a convolutional neural network model that combines traditional convolution operations with depthwise separable convolution operations, achieving better performance and a smaller number of parameters.
[0040] Lightweight high-performance backbone networks refer to a network architecture that has a small number of network nodes and fewer network connections, while providing efficient data transmission and processing performance.
[0041] The ASPP module, or Atrous Spatial Pyramid Pooling, is a deep learning network module used for image segmentation tasks. It primarily processes information at different scales within an image to better capture its semantic information. By applying dilated convolutions with varying sampling rates (or dilation rates) at different scales, the ASPP module captures semantic information at these scales and integrates this information into a single feature map, thereby improving the accuracy and effectiveness of image segmentation.
[0042] Coarse-tuning algorithms adjust the basic parameters or structure of the algorithm to achieve better performance metrics, such as speed and memory consumption.
[0043] The Douglas-Peucker model is an algorithm for curve simplification, also known as the iterative approximation method. This model achieves curve thinning and simplification by recursively dividing the curve into segments and determining whether each segment is simple enough to represent the original curve.
[0044] It should be noted that the method and device for safety supervision of transmission line operations based on scene recognition in this disclosure can be used in the field of transmission line monitoring when automatic inspection of objects working at height is achieved based on monitoring devices, and can also be used in any field other than the field of transmission line monitoring technology when automatic inspection of objects working at height is achieved based on monitoring devices. This disclosure does not limit the application field of the method and device for safety supervision of transmission line operations based on scene recognition.
[0045] It should be noted that the information collected in this public disclosure (including but not limited to personal photos of high-altitude work objects, power transmission line photos, user equipment information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, and displayed data, etc.) are information and data authorized by users or fully authorized by all parties. Furthermore, the collection, storage, use, processing, transmission, provision, disclosure, and application of related data all comply with the relevant laws, regulations, and standards of the relevant regions, necessary confidentiality measures have been taken, and they do not violate public order and good morals. Corresponding operation portals are provided for users to choose to authorize or refuse.
[0046] The following embodiments of the present invention can be applied to various systems / applications / equipment for safety supervision of power transmission line operations based on scene recognition. The present invention uses a monitoring device (such as a work deployment ball) to collect real-time monitoring video streams of the work site and identifies workers through target detection, thereby achieving real-time, fast, and efficient inspection of power transmission line work sites.
[0047] The present invention will now be described in detail with reference to various embodiments.
[0048] Example 1
[0049] According to an embodiment of the present invention, an embodiment of a method for safety supervision of transmission line operations based on scene recognition is provided. It should be noted that the steps shown in the flowchart in the accompanying drawings can be executed in a computer system such as a set of computer-executable instructions. Furthermore, although a logical order is shown in the flowchart, in some cases, the steps shown or described may be executed in a different order than that shown here.
[0050] Figure 1 This is a flowchart of an optional scene-recognition-based safety supervision method for power transmission line operations according to an embodiment of the present invention, such as... Figure 1As shown, the method includes the following steps:
[0051] Step S101: Obtain the monitoring video stream of the transmission line operation face collected by the monitoring device in the current time period, and extract at least one frame of monitoring image containing the transmission line operation scene from the monitoring video stream to obtain a monitoring image set.
[0052] Step S102: Input the monitoring image set into the line tower detection model. The line tower detection model extracts tower features from the monitoring images, generates tower edge images, and performs regularization processing on the tower edge images to obtain a tower extraction image containing the tower outline.
[0053] Step S103: Input the extracted image of the power tower into the target detection model, and use the target detection model to determine the predicted bounding box containing the work object in the extracted image of the power tower.
[0054] Step S104: The image factors within the prediction box are segmented into multiple superpixels, and the importance score of each superpixel is determined. A superpixel is a group of closely connected pixel regions formed by aggregating adjacent image pixels.
[0055] Step S105: Assign values to each pixel within the prediction box based on the importance score to obtain the operation image of the operation object on the target power tower.
[0056] Through the above steps, the monitoring video stream of the transmission line operation face collected by the monitoring device in the current time period can be obtained, and at least one frame of monitoring image containing the transmission line operation scene can be extracted from the monitoring video stream to obtain a monitoring image set. The monitoring image set is input into the line tower detection model, which extracts tower features from the monitoring images to generate tower edge images. The tower edge images are then regularized to obtain a tower extraction map containing the tower outline. The tower extraction map is input into the target detection model, which determines the prediction box containing the operation object in the tower extraction map. The image elements within the prediction box are segmented into multiple superpixels, and the importance score of each superpixel is determined. Here, a superpixel is a group of closely connected pixel regions formed by aggregating adjacent image pixels. Based on the importance score, each pixel in the prediction box is assigned a value to obtain the operation image of the operation object on the target tower. In this embodiment, a monitoring device (such as a surveillance sphere on a power transmission line) can be used to collect real-time monitoring video streams of the work area. The video stream data is processed to extract single-frame image data containing the power tower. Based on the identified image of the power tower, the work object can be detected (the work object in the image is identified through target detection). This can significantly improve the safety monitoring accuracy and automatic inspection of the work area, and improve the monitoring efficiency of the power transmission line work area. This solves the technical problem of low inspection efficiency when monitoring high-altitude operations in related technologies.
[0057] This embodiment can be applied to various high-altitude operation monitoring systems or software for power transmission lines. It proposes an automatic inspection method for power transmission line operation surfaces based on scene recognition. The method involves monitoring the power transmission line in real time by deploying monitoring devices on the operation surface and collecting video streams of the operation surface. The video stream data is then processed to extract single-frame image data containing power towers. Finally, the operation objects in these images are identified through target detection, thereby achieving full-coverage automatic inspection of the operation surface.
[0058] The embodiments of the present invention will now be described in detail with reference to the steps described above.
[0059] It should be noted that, before extracting images of power towers in this embodiment, a power tower detection model needs to be pre-trained. The pre-training process includes: acquiring original images of the target power towers; cropping the original images to obtain a cropped image dataset; performing data augmentation on the cropped image dataset and filtering the augmented image dataset to obtain a filtered image dataset; performing feature annotation on the filtered image dataset using a geographic information processing system to obtain an annotated image dataset; dividing the annotated image dataset into a training set and a test set; constructing an initialized power tower detection model; inputting the training set into the power tower detection model to train it; and, with all annotated images in the training set input, testing the trained power tower detection model using the test set. If the test results indicate that the output of the power tower detection model meets the classification requirements, the training is confirmed to be complete, and the power tower detection model is obtained based on the trained power tower detection model.
[0060] In this embodiment, when training the power tower detection model, the original images of the power towers are first collected. The original images are then preprocessed to obtain preprocessed image data. The preprocessing process is as follows: the original images are cropped to obtain a cropped image dataset; the cropped image dataset is augmented; the augmented image dataset is then filtered to obtain a filtered image dataset; the filtered image dataset is labeled with features based on a geographic information processing system to obtain a labeled image dataset; and finally, the labeled dataset is divided into training, validation, and test sets to obtain the preprocessed image data.
[0061] Labeling the target regions in the filtered image dataset enables the deep learning model to learn the features of power towers and transmission lines to distinguish them from other areas in the image. Therefore, the creation of data labels is particularly important. In one embodiment, a semi-automatic labeling method based on a geographic information processing system (e.g., using a licensed ArcGIS Pro) can be used to obtain the labeled image dataset.
[0062] The process of constructing the initial power tower detection model includes: obtaining the DeeplabV3+ deep learning model for semantic segmentation; replacing the convolutional neural network Xception in the DeeplabV3+ model with a target backbone network, wherein the number of network nodes in the target backbone network is less than a first threshold and the number of network connections in the target backbone network is less than a second threshold; adding two deep learning network modules ASPP for performing image segmentation tasks after the target backbone network; and generating the power tower detection model based on the DeeplabV3+ model with ASPP modules added.
[0063] In this embodiment of the invention, when initializing the power tower building detection model, a DeepLabV3+ model can be constructed and improved to obtain an improved model. First, a lightweight, high-performance backbone network is used to replace the Xception network in the DeepLabV3+ model. Two ASPP modules are then added to the DeepLabV3+ model to obtain the improved model. The two ASPP modules are used to fuse image features, thereby obtaining more advanced semantic information and enhancing edge feature extraction.
[0064] Step S101: Obtain the monitoring video stream of the transmission line operation face collected by the monitoring device in the current time period, and extract at least one frame of monitoring image containing the transmission line operation scene from the monitoring video stream to obtain a monitoring image set.
[0065] Step S102: Input the monitoring image set into the line tower detection model. The line tower detection model extracts tower features from the monitoring images, generates tower edge images, and performs regularization processing on the tower edge images to obtain a tower extraction image containing the tower outline.
[0066] In this embodiment, the monitoring video stream of the working face collected by the monitoring device can be acquired in real time, and a single frame image can be extracted from the video stream. The extracted single frame image is input into the prediction model to predict and generate the power tower edge image. The power tower edge image is then processed into a regularization method to obtain the power tower outline extraction result.
[0067] Optionally, the step of performing regularization processing on the power tower edge image to obtain a power tower extraction image containing the power tower outline includes: eliminating blurred and occluded parts in the power tower edge image based on a coarse adjustment algorithm to obtain a coarsely adjusted image; adjusting the direction of the outline and the position of key nodes in the coarsely adjusted image based on a fine adjustment algorithm to obtain a boundary image; and performing polygonization processing on the boundary image to obtain a power tower extraction image containing the power tower outline.
[0068] Because the edges of the power tower area predicted by the model are irregular, the outline of the power tower coverage area is regularized by extracting key points and main directions to eliminate irregular boundaries and details in the geometry of the power tower area. Specifically, the regularization method provided in this embodiment includes: extracting the boundary image of the power tower edge image, specifically: using a coarse adjustment algorithm to eliminate errors in the edge image to obtain a coarsely adjusted image; and using a fine adjustment algorithm to adjust the direction of lines and node positions in the coarsely adjusted image to obtain the boundary image.
[0069] Specifically, the main steps for image boundary extraction are divided into two steps: first, a coarse adjustment algorithm is used to eliminate obvious errors in segmentation and polygonization, and then a fine adjustment algorithm is used to adjust the direction of the lines and the position of the nodes.
[0070] The implementation process of the coarse adjustment algorithm may include: removing polygons S with an area lower than a threshold; deleting edges Td with a length lower than a given side length; removing overly acute angles α with a threshold; and removing overly smoothed angles β with a threshold.
[0071] The fine-tuning algorithm can be implemented as follows: finding the longest side W with a threshold; adding the direction of the longest side to the main direction list; adding the directions of other sides to the main direction list according to the angle threshold, where δ is between their directions and the directions in the list; adjusting the long side according to the list and the angle, and adjusting the short side according to the list and the angle (using the threshold to determine θ); if the distance between two lines is less than (or greater than) the threshold, merging (or connecting) the parallel lines d; and connecting all the adjusted lines to form the final polygon. The thresholds in this embodiment need to be set according to the actual situation. After completing the boundary image extraction, the boundary image is polygonized to obtain the extracted image of the power tower containing its outline.
[0072] Step S103: Input the extracted image of the power tower into the target detection model, and use the target detection model to determine the predicted bounding box containing the work object in the extracted image of the power tower.
[0073] In this embodiment of the invention, the target detection model includes a feature extraction network and an intermediate network. Optionally, step S103 includes: inputting the power tower extraction image into the target detection model, extracting feature images containing work objects from the power tower extraction image through the feature extraction network in the target detection model; inputting the feature images into the intermediate network in the target detection model, obtaining multiple candidate boxes through the intermediate network, wherein each candidate box includes at least the confidence level of the work object; removing candidate boxes with confidence levels less than a preset confidence threshold, and removing overlapping candidate boxes to obtain a prediction box containing the work object, wherein the prediction box indicates the location where the work object exists.
[0074] It should be noted that the intermediate network can use a Header model. After the feature map is input into the Header model, multiple candidate prediction results are obtained. The candidate prediction result is the candidate box mentioned above, where N represents the number of candidate prediction results. This represents the length of each candidate prediction. Therefore, each prediction can be represented as a vector. Where x, y, w, h, and c represent the x-coordinate, y-coordinate, width, height, and confidence score of the candidate bounding box, respectively, indicating that the target is present in the bounding box. This indicates that the detection target is of different types of confidence.
[0075] In this embodiment of the invention, the target detection model is constructed based on a convolutional neural network. The model includes convolutional layers and pooling layers, and the convolutional layers and pooling layers are configured to skip pixels that do not have valid values during pixel calculation.
[0076] Step S104: The image factors within the prediction box are segmented into multiple superpixels, and the importance score of each superpixel is determined. A superpixel is a group of closely connected pixel regions formed by aggregating adjacent image pixels.
[0077] Optionally, step S104 includes: obtaining parameter information for each image pixel within the prediction box, wherein the parameter information includes color information and position information; based on the position information, merging adjacent image pixels whose color information difference is less than a preset color threshold into the same pixel region, and generating multiple superpixels based on the merged multiple pixel regions.
[0078] In this embodiment, a superpixel is a group of closely connected pixel regions formed by aggregating adjacent pixels. This divides the image within the prediction box into semantically consistent continuous regions, thereby reducing redundant information in the image. It should be noted that multiple pixels within the same superpixel have similar texture, color, brightness, and other features.
[0079] Optionally, the step of segmenting image factors within the predicted bounding box into multiple superpixels and determining the importance score of each superpixel includes: acquiring multiple sets of sampled images containing superpixels, wherein some superpixels are randomly removed from each set of sampled images, and the removed superpixels are represented by a sampling mask; inputting the sampled images containing the retained superpixels into an object detection model, and determining the sampling bounding box through the object detection model; determining the sampling score based on the similarity between the object detection results of the sampling bounding box and the object detection results of the predicted bounding box; assigning the same score to the retained superpixels in each sampled image based on the sampling scores in each set of sampled images, thereby obtaining the base score of the superpixel; for each superpixel, calculating the ratio of the area of the superpixel in the sampled image to the area of all retained superpixels, and obtaining the weight of the superpixel based on the ratio; and for each superpixel, performing a weighted average of the base scores according to the weights to obtain the importance score of the superpixel.
[0080] Importance score is a metric used to measure the relative importance of superpixels. Generally, objects within the prediction box receive a relatively high importance score.
[0081] The sampled image with retained superpixels is input into the object detection model, the object detection model determines the sampling bounding box, and the sampling score is determined based on the difference between the sampling bounding box and the candidate box.
[0082] The removal and retention of superpixels can be represented by a sampling mask, and the image to be processed with a sampling mask can represent the superpixels to be retained.
[0083] Step S105: Assign values to each pixel within the prediction box based on the importance score to obtain the operation image of the operation object on the target power tower.
[0084] Optionally, step S105 includes: assigning values to each pixel within the prediction box based on importance scores to obtain a heatmap with importance scores for each pixel; filtering the heatmap and loading it onto a power tower extraction map containing the outline of the power tower through a visualization interface to obtain an image of the work object on the target power tower.
[0085] In this embodiment, after obtaining the importance score of each superpixel, values can be assigned to each pixel in the prediction box based on the importance score to obtain a heatmap with the importance score of each pixel. Then, the heatmap is filtered and loaded onto the power tower extraction map through a visualization interface to obtain a visualization image containing the work object.
[0086] By automatically identifying power towers in video images, it is possible to detect workers based on the identified tower images, which can significantly improve the accuracy and efficiency of safety monitoring at the work site and reduce the workload of supervisors.
[0087] The invention will now be described through another optional implementation.
[0088] Figure 2 This is a flowchart of an automatic inspection method for a transmission line work area according to an embodiment of the present invention, such as... Figure 2 As shown, this method is implemented in the following way:
[0089] Step 1: Build and train the power tower identification model to obtain the prediction model.
[0090] First, raw images of the power tower are acquired and preprocessed to obtain preprocessed image data. The preprocessing steps include: cropping the raw images to obtain a cropped image dataset; performing data augmentation on the cropped image dataset and then filtering the augmented image dataset to obtain a filtered image dataset; performing feature annotation on the filtered image dataset using a geographic information system to obtain an annotated image dataset; and finally, dividing the annotated dataset into training, validation, and test sets to obtain the preprocessed image data.
[0091] The selected image dataset is labeled with target regions so that the deep learning model can learn the features of power towers and transmission lines to distinguish them from other areas in the image. Therefore, the creation of data labels is particularly important. In this embodiment, a semi-automatic labeling method based on a geographic information system can be used to obtain the labeled image dataset.
[0092] Furthermore, in this embodiment, the labeled image dataset can be divided into three parts: a training set, a validation set, and a test set.
[0093] Then, a DeepLabV3+ model is constructed and improved to obtain the improved model.
[0094] When improving the DeepLabV3+ model, we first replaced the Xception network in the DeepLabV3+ model with a lightweight, high-performance backbone network. Then, we added two ASPP modules to the DeepLabV3+ model to obtain the improved model. The DeepLabV3+ network is one of the best semantic segmentation models currently available, achieving excellent results on the VOC dataset. However, the DeepLabV3+ model also has some shortcomings. First, the gradual reduction of the spatial dimension of the input data during feature extraction at the encoding end leads to the loss of useful information, resulting in poor detail recovery during decoding. Second, while the introduction of the ASPP module can improve the model's ability to extract the boundary of the target, it cannot fully simulate the relationship between local features of the target, causing gaps in the target segmentation and reducing the accuracy of target segmentation. Third, in pursuit of segmentation accuracy, Xception, with its large number of network layers and parameters, was chosen as the feature extraction network. Furthermore, the convolution method in the ASPP module is ordinary convolution, further increasing the number of parameters. The increased model depth and number of parameters lead to increased model complexity, higher hardware requirements, increased network training difficulty, and slower training and convergence.
[0095] In an optional embodiment of the present invention, to improve network segmentation performance and address the above-mentioned shortcomings, the following improvements were made to the traditional DeepLabV3+ network structure: 1) To address the issue of the large number of parameters in the Xception network used for feature extraction in the traditional DeepLabV3+ model, a lightweight, high-performance backbone network named DenseNeXt was proposed to replace the Xception network in the traditional DeepLabV3+. The proposed DenseNeXt network incorporates the design principles of ConvNeXt on the basis of the traditional DenseNet, significantly reducing the model's parameter computation, lowering memory usage, and improving computational speed; 2) To further enhance the DeepLabV3+ model's ability to extract high-level semantic features, after the DenseNeXt network extracts features from the input image, two ASPP modules are used to fuse the image features, thereby obtaining more high-level semantic information and enhancing edge feature extraction; through the above improvements, the improved model is obtained.
[0096] In this embodiment, the stacking ratio of the four stages of the DenseNeXt network is set to 1:1:3:1. The specific number of layers in each stage are 8, 8, 24, and 8, respectively. The proposed DenseNeXt network is designed with two branches: one is a depthwise separable convolution with a 7×7 kernel, and the other is a depthwise separable convolution with a 3×3 kernel. The output feature maps of these two branches are then added together, and finally concatenated with the input feature map of the bottleneck layer to form the output feature map of the bottleneck layer, thereby enabling the model to obtain multi-scale feature extraction capabilities.
[0097] Finally, based on the preprocessed image data, the improved model is trained to obtain the prediction model.
[0098] The training process includes: inputting the training set into the improved model and solving for the network parameters that minimize the loss function; inputting the validation set into the improved model to minimize the overfitting of the improved model; inputting the test set into the improved model and comparing the accuracy of the output results with the true classification results; adjusting the network parameters based on the comparison results to obtain the prediction model.
[0099] Training data is used to solve for the network parameters that minimize the loss function; validation data is used to minimize overfitting; and test data is used to test the network's classification ability after training. Test data is input into the trained deep neural network structure, and the difference between the output result and the actual classification result is calculated to estimate the network's classification accuracy. Based on the model validation results, the labeled samples are optimized or appropriately increased. When the labeled sample library is optimized, the deep neural network parameters can be fine-tuned to optimize the network structure and further improve the network's classification accuracy, thus obtaining the prediction model.
[0100] Step 2: Acquire the real-time monitoring video stream of the work surface collected by the deployment ball.
[0101] Step 3: Input the single-frame images extracted from the video stream into the prediction model.
[0102] In this embodiment, a single frame image is extracted from the video stream, and the extracted single frame image is input into the prediction model to predict and generate the power tower edge image. The power tower edge image is then regularized to obtain the power tower contour extraction result.
[0103] The regularization process includes extracting the boundary image of the power tower edge image using the Marching Cubes model.
[0104] The methods for extracting boundary images include: eliminating errors in the edge image based on a coarse adjustment algorithm to obtain a coarsely adjusted image; and adjusting the direction of lines and node positions in the coarsely adjusted image based on a fine adjustment algorithm to obtain the boundary image.
[0105] The boundary image was polygonized using the Douglas-Peucker model to obtain the extracted outline of the power tower.
[0106] In one embodiment of the present invention, since the edges of the power tower area generated by the model prediction have irregularities, the outline of the power tower coverage area is regularized by extracting key points and main directions to eliminate irregular boundaries and details in the geometry of the power tower area.
[0107] Specifically, the Marching Cubes algorithm is first used to extract the boundary. The main steps are divided into two parts: a coarse-tuning algorithm to eliminate obvious errors in segmentation and polygonization, and a fine-tuning algorithm to adjust the direction of the lines and the position of the nodes.
[0108] The implementation process of the coarse adjustment algorithm is as follows: remove polygons S with an area lower than the threshold; delete edges Td with a length lower than the given side length; remove overly acute angles α using the threshold; remove overly smoothed angles β using the threshold.
[0109] The fine-tuning algorithm is implemented as follows: Find the longest side W with a threshold; add the direction of the longest side to the main direction list; add the directions of other sides to the main direction list according to the angle threshold, where δ is between their directions and the directions in the list; adjust the long side according to the list and angle, and adjust the short side according to the list and angle (determined by the threshold θ); if the distance between two lines is less than (or greater than) the threshold, merge (or connect) the parallel lines d; connect all the adjusted lines to form the final polygon. The thresholds in this embodiment need to be set according to the actual situation.
[0110] Then, the Douglas-Peucker algorithm is used to achieve polygonization.
[0111] Step 4: Extract the outline of the power tower and generate the extracted power tower map.
[0112] The single-frame image to be identified is processed, and the processed image is input into the trained improved DeepLabV3+ network model to detect the power towers in the image to be identified, and finally generate the power tower extraction map.
[0113] Step 5: Input the generated power tower extraction image into the target detection model to identify the work object.
[0114] The object detection model includes a feature extraction network and an intermediate network.
[0115] Figure 3 This is a flowchart of an optional method for determining the prediction box of the power tower extraction map using a target detection model according to an embodiment of the present invention, such as... Figure 3As shown, a feature map containing workers is extracted from the power tower extraction image using a feature extraction network. The feature map is then input into an intermediate network to obtain candidate boxes. Each candidate box includes at least the confidence score of the workers. Candidate boxes with confidence scores below a preset confidence threshold are removed, and overlapping candidate boxes are also removed to obtain predicted boxes. The predicted boxes are rectangular boxes generated by the object detection model and are used to identify the location of target objects in the image, i.e., the area where the workers are located in the power tower extraction image.
[0116] It should be noted that the intermediate network can use a Header model. After the feature map is input into the Header model, multiple candidate prediction results are obtained. Where N represents the number of candidate prediction results. This represents the length of each candidate prediction. Therefore, each prediction can be represented as a vector. Where x, y, w, h, and c represent the x-coordinate, y-coordinate, width, height, and confidence score of the candidate bounding box, respectively, indicating that the target is present in the bounding box. This indicates that the detection target is of different types of confidence.
[0117] In one embodiment of the present invention, the target detection model is constructed based on a convolutional neural network. The model includes convolutional layers and pooling layers, and the convolutional layers and pooling layers are configured to skip pixels that do not have valid values during pixel calculation.
[0118] Then, the image within the prediction bounding box is segmented into multiple superpixels, and the importance score of each superpixel is determined, as follows:
[0119] The algorithm acquires parameter information for each pixel within the prediction bounding box, including color and position information. Based on the position information, adjacent pixels with color differences less than a preset color threshold are considered as the same region. Multiple superpixels are then obtained based on these different regions. A superpixel is a group of tightly connected pixel regions formed by aggregating adjacent pixels, dividing the image within the prediction bounding box into semantically consistent continuous regions, thereby reducing redundant information in the image. Generally, multiple pixels within the same superpixel have similar texture, color, brightness, and other features.
[0120] In this embodiment, the QuickShift algorithm can be used to segment the image within the prediction box into multiple superpixels. Specifically, the QuickShift algorithm creates a set of binary superpixel masks. Each binary superpixel mask b k ∈{0,1} w×hThe position of a pixel belonging to the k-th superpixel, where w and h represent the width and height of the image, respectively. These superpixels represent multiple consecutive and similar pixels, and their presence or absence is controlled by a binary mask. Then, based on the predicted bounding box range of each interpreted target, the number of superpixels associated with the n-th target detection result is obtained, where each superpixel has at least one pixel within the detection bounding box of the interpreted target.
[0121] Importance score is a metric used to measure the relative importance of superpixels. Generally, workers within the prediction box receive relatively high importance scores. The steps for determining the importance score of each superpixel are as follows: Figure 4 As shown, it is specifically as follows:
[0122] 1) Obtain multiple sets of sampled images with superpixels; wherein, some superpixels are randomly removed from each set of sampled images.
[0123] 2) Input the sampled image with retained superpixels into the object detection model. The object detection model determines the sampling bounding boxes, and then determines the sampling score based on the difference between the sampled bounding boxes and the candidate boxes. The removal and retention of superpixels can be represented by a sampling mask; the image to be processed with a sampling mask can represent the retained superpixels.
[0124] The specific process includes:
[0125] Each sampling mask and the extracted tower image are input into the target detection model to obtain a new detection result vector. Then, the detection results of o′ and the original candidate box are calculated. The similarity score S(o,o′) between the superpixels is used as the sampling score for each superpixel retained. The similarity score is mainly the product of three parts, which can be expressed as:
[0126] S(o,o′)=S1(o,o′)*S2(o,o′)*S3(o,o′);
[0127] Each part is represented as follows:
[0128] S1(o,o′)=IoU(x,y,w,h,x′,y′,w′,h′);
[0129] S2(o,o′)=c′;
[0130]
[0131] Where IoU represents the intersection-union ratio of the original predicted bounding box and the sampled predicted bounding box. Since only detection results with higher confidence are retained in the predicted bounding box, S2 is simplified to the confidence level c′ of the modified image. The larger S1(o,o′), the more similar the modified image is to the original image, that is, the more important the retained superpixels are.
[0132] 3) Determine the weight of each superpixel based on the sampling score and the retained area in each group of sampled images.
[0133] After obtaining the sampling score S(o,o′) for each random sampled image, assign the same score to the superpixels retained under each sampled image, while retaining the proportion of the area of the superpixel to all retained superpixels as the weight.
[0134] Each superpixel ultimately receives a series of importance scores. And the ratio of the area of this superpixel in the sampled image to the area of all retained superpixels. Will Normalizing all elements in the matrix, i.e., normalizing each r1, yields the weights.
[0135] 4) The importance score of each superpixel is obtained by weighting each sampling score based on the weight.
[0136] According to weight right A weighted average is performed to obtain the final importance score for the superpixel. If the superpixel is among the unsampled superpixels, the corresponding value is set to 0, then s k r k and w k It can be represented as a vector of length L, that is, we have The weighted average can then be expressed as Here, diag(·) means taking the diagonal elements of the matrix.
[0137] Finally, this embodiment can assign values to each pixel within the prediction box based on importance scores to obtain a visualized image of the worker target, specifically including:
[0138] Step 1) Assign values to each pixel within the prediction box based on the importance score to obtain a heatmap with the importance score of each pixel;
[0139] Step 2) Filter the heat map and load it onto the extracted tower image through the visualization interface to obtain a visualized image of the workers.
[0140] Through the above embodiments, original images of power towers are acquired, preprocessed to obtain preprocessed image data, and then a building recognition model is constructed. The preprocessed image data is input into this model for training to obtain a prediction model. Real-time monitoring video streams of the work area are acquired, and single-frame images are extracted from the video stream and input into the prediction model to generate power tower contour extraction results. The generated power tower extraction image is input into a target detection model, which determines the prediction box of the power tower extraction image. The image within the prediction box is segmented into multiple superpixels, and the importance score of each superpixel is determined. Based on the importance score, each pixel within the prediction box is assigned a value to obtain a visualized image of the workers on the power tower. This invention can detect workers based on the recognized images of power towers, which can significantly improve the accuracy and efficiency of safety monitoring of the work area and reduce the workload of supervisors.
[0141] The following is a detailed description with reference to another embodiment.
[0142] Example 2
[0143] The transmission line operation safety supervision device based on scene recognition provided in this embodiment includes multiple implementation units, each of which corresponds to a specific implementation step in Embodiment 1 above.
[0144] Figure 5 This is a schematic diagram of an optional scene-recognition-based power transmission line operation safety monitoring device according to an embodiment of the present invention, such as... Figure 5 As shown, the scene recognition-based power transmission line operation safety supervision device may include: a video acquisition unit 51, a power tower extraction unit 52, a model detection unit 53, a superpixel segmentation unit 54, and an operation image generation unit 55.
[0145] Among them, the video acquisition unit 51 is used to acquire the monitoring video stream of the transmission line operation face collected by the monitoring device in the current time period, and extract at least one frame of monitoring image containing the transmission line operation scene from the monitoring video stream to obtain a monitoring image set.
[0146] The tower extraction unit 52 is used to input the monitoring image set into the line tower detection model, and the line tower detection model extracts tower features from the monitoring images to generate tower edge images. The tower edge images are then regularized to obtain a tower extraction map containing the tower outline.
[0147] The model detection unit 53 is used to input the power tower extraction map into the target detection model, and to determine the prediction box containing the operation object in the power tower extraction map through the target detection model.
[0148] The superpixel segmentation unit 54 is used to segment the image factors within the prediction box into multiple superpixels and determine the importance score of each superpixel. Here, a superpixel is a group of closely connected pixel regions formed by aggregating adjacent image pixels.
[0149] The operation image generation unit 55 is used to assign values to each pixel in the prediction box based on the importance score to obtain the operation image of the operation object on the target power tower.
[0150] The aforementioned scene recognition-based transmission line operation safety supervision device can acquire the monitoring video stream of the transmission line operation face collected by the monitoring device in the current time period through the video acquisition unit 51, and extract at least one frame of monitoring image containing the transmission line operation scene from the monitoring video stream to obtain a monitoring image set. The monitoring image set is input into the line tower detection model through the tower extraction unit 52. The line tower detection model extracts tower features from the monitoring images to generate tower edge images, and performs regularization processing on the tower edge images to obtain a tower extraction map containing the tower outline. The tower extraction map is input into the target detection model through the model detection unit 53. The target detection model determines the prediction box containing the operation object in the tower extraction map. The image factors in the prediction box are divided into multiple superpixels by the superpixel segmentation unit 54, and the importance score of each superpixel is determined. Here, a superpixel is a group of closely connected pixel regions formed by aggregating adjacent image pixels. The operation image generation unit 55 assigns values to each pixel in the prediction box based on the importance score to obtain the operation image of the operation object on the target tower. In this embodiment, a monitoring device (such as a transmission line surveillance sphere) can be used to collect real-time monitoring video streams of the work site. The video stream data is processed to extract single-frame image data containing the power tower. Based on the identified image of the power tower, the work object can be detected (the work object in the image is identified through target detection). This can significantly improve the safety monitoring accuracy and automatic inspection of the work site, and improve the monitoring efficiency of the transmission line work site. This solves the technical problem of low inspection efficiency when monitoring high-altitude operations in related technologies.
[0151] Optionally, the power line tower detection model is pre-trained. During training, the scene-recognition-based power transmission line operation safety supervision device includes: a raw tower image acquisition unit for acquiring raw images of the target tower, cropping the raw images to obtain a cropped image dataset; a data augmentation unit for augmenting the cropped image dataset and filtering the augmented image dataset to obtain a filtered image dataset; an image feature annotation unit for annotating the filtered image dataset using a geographic information processing system to obtain an annotated image dataset; a data partitioning unit for dividing the annotated image dataset into a training set and a test set; a model initialization unit for constructing an initialized power tower detection model; a model training unit for inputting the training set into the power tower detection model and training it; and a model testing unit for testing the trained power tower detection model using the test set after all annotated images in the training set have been input, confirming training completion when the test results indicate that the output of the power tower detection model meets the classification requirements, and obtaining the power line tower detection model based on the trained power tower detection model.
[0152] Optionally, the model initialization unit includes: a first acquisition module for acquiring a DeeplabV3+ deep learning model for semantic segmentation; a network replacement module for replacing the convolutional neural network Xception in the DeeplabV3+ model with a target backbone network, wherein the number of network nodes in the target backbone network is less than a first threshold and the number of network connections in the target backbone network is less than a second threshold; a network addition module for adding two deep learning network modules ASPP for performing image segmentation tasks after the target backbone network; and a model generation module for generating a power tower building detection model based on the DeeplabV3+ deep learning model with ASPP modules added.
[0153] Optionally, the power tower extraction unit includes: a coarse adjustment module, used to eliminate blurred and occluded parts in the power tower edge image based on a coarse adjustment algorithm to obtain a coarsely adjusted image; a fine adjustment module, used to adjust the direction of the contour lines and the position of key nodes in the coarsely adjusted image based on a fine adjustment algorithm to obtain a boundary image; and a polygonization module, used to perform polygonization processing on the boundary image to obtain a power tower extraction image containing the power tower contour.
[0154] Optionally, the model detection unit includes: a power tower feature extraction module, used to input the extracted power tower image into the target detection model, and extract feature images containing work objects from the extracted power tower image through the feature extraction network in the target detection model; a candidate box acquisition module, used to input the feature image into the intermediate network in the target detection model, and obtain multiple candidate boxes through the intermediate network, wherein each candidate box includes at least the confidence score of the work object; and a candidate box selection module, used to remove candidate boxes with confidence scores less than a preset confidence threshold, and remove overlapping candidate boxes to obtain prediction boxes containing work objects, wherein the prediction boxes indicate the location where the work object exists.
[0155] Optionally, the superpixel segmentation unit includes: an image pixel parameter acquisition module, used to acquire parameter information of each image pixel within the prediction box, wherein the parameter information includes color information and position information; and a pixel merging module, used to merge adjacent image pixels whose color information difference is less than a preset color threshold into the same pixel region based on the position information, and generate multiple superpixels based on the merged multiple pixel regions.
[0156] Optionally, the superpixel segmentation unit includes: a multi-group sampling image acquisition module, used to acquire multiple groups of sampling images containing superpixels, wherein each group of sampling images randomly removes some superpixels, and the removed superpixels are represented by a sampling mask; a sampling image input module, used to input the sampling image containing the retained superpixels into an object detection model, and determine the sampling bounding box through the object detection model; a sampling score acquisition module, used to determine the sampling score based on the similarity between the object detection result of the sampling bounding box and the object detection result of the predicted bounding box; a superpixel assignment module, used to assign the same score to the retained superpixels in each sampling image based on the sampling score in each group of sampling images, to obtain the base score of the superpixel; a superpixel weight calculation module, used to calculate the ratio of the area of the superpixel in the sampling image to the area of all retained superpixels for each superpixel, and obtain the weight of the superpixel based on the ratio; and a superpixel importance score determination module, used to perform a weighted average of the base scores according to the weights for each superpixel, to obtain the importance score of the superpixel.
[0157] Optionally, the operation image generation unit includes: a heat map determination module, used to assign values to each pixel in the prediction box based on importance scores to obtain a heat map with importance scores for each pixel; and an object acquisition module, used to filter the heat map and load the heat map into a power tower extraction map containing the outline of the power tower through a visualization interface to obtain an operation image of the operation object on the target power tower.
[0158] The aforementioned scene recognition-based power transmission line operation safety supervision device may also include a processor and a memory. The aforementioned video acquisition unit 51, tower extraction unit 52, model detection unit 53, superpixel segmentation unit 54, operation image generation unit 55, etc., are all stored in the memory as program units, and the processor executes the aforementioned program units stored in the memory to realize the corresponding functions.
[0159] The aforementioned processor contains a kernel, which retrieves the corresponding program units from memory. One or more kernels can be configured, and by adjusting kernel parameters, automatic inspection of power transmission line work areas based on scene recognition can be achieved.
[0160] The aforementioned memory may include non-permanent memory in computer-readable media, such as random access memory (RAM) and / or non-volatile memory, such as read-only memory (ROM) or flash RAM, and the memory includes at least one memory chip.
[0161] According to another aspect of the present invention, a computer-readable storage medium is also provided, the computer-readable storage medium including a stored computer program, wherein, when the computer program is running, it controls the device where the computer-readable storage medium is located to execute any of the above-described scenario-recognition-based transmission line operation safety supervision methods.
[0162] According to another aspect of the present invention, an electronic device is also provided, including one or more processors and a memory, wherein the memory is used to store one or more programs, wherein when the one or more programs are executed by the one or more processors, the one or more processors cause the one or more processors to implement the scene recognition-based transmission line operation safety supervision method of any one of the above embodiments.
[0163] This application also provides a computer program product, including a computer program that, when executed by a processor, implements the steps of the scene recognition-based power transmission line operation safety supervision method described in various embodiments of this application.
[0164] This application also provides a computer program product, including a non-volatile computer-readable storage medium storing a computer program, which, when executed by a processor, implements the steps of the scene recognition-based power transmission line operation safety supervision method described in various embodiments of this application.
[0165] Figure 6 This is a hardware structure block diagram of an electronic device (or mobile device) for a scene recognition-based safety supervision method for power transmission line operations according to an embodiment of the present invention. Figure 6 As shown, an electronic device may include one or more ( Figure 6The processor 602 (which may include, but is not limited to, a microprocessor MCU or a programmable logic device FPGA, etc.) and a memory 604 for storing data may also be included. In addition, it may include: a display, an input / output interface (I / O interface), a universal serial bus (USB) port (which may be included as one of the ports of the I / O interface), a network interface, a keyboard, a power supply, and / or a camera. Those skilled in the art will understand that... Figure 6 The structure shown is for illustrative purposes only and does not limit the structure of the electronic device described above. For example, the electronic device may also include components that are more... Figure 6 The more or fewer components shown, or having the same Figure 6 The different configurations shown.
[0166] The sequence numbers of the above embodiments of the present invention are for descriptive purposes only and do not represent the superiority or inferiority of the embodiments.
[0167] In the above embodiments of the present invention, the descriptions of each embodiment have different focuses. For parts not described in detail in a certain embodiment, please refer to the relevant descriptions of other embodiments.
[0168] In the several embodiments provided in this application, it should be understood that the disclosed technical content can be implemented in other ways. The device embodiments described above are merely illustrative; for example, the division of units can be a logical functional division, and in actual implementation, there may be other division methods. For instance, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the displayed or discussed mutual coupling, direct coupling, or communication connection may be through some interfaces; the indirect coupling or communication connection between units or modules may be electrical or other forms.
[0169] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.
[0170] Furthermore, the functional units in the various embodiments of the present invention can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.
[0171] If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present invention. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, read-only memory (ROM), random access memory (RAM), portable hard drives, magnetic disks, or optical disks.
[0172] The above description is only a preferred embodiment of the present invention. It should be noted that for those skilled in the art, several improvements and modifications can be made without departing from the principle of the present invention, and these improvements and modifications should also be considered within the scope of protection of the present invention.
Claims
1. A method for safety supervision of power transmission line operations based on scene recognition, characterized in that, include: The monitoring video stream of the transmission line operation face collected by the monitoring device in the current time period is obtained, and at least one frame of monitoring image containing the transmission line operation scene is extracted from the monitoring video stream to obtain a monitoring image set. The monitoring image set is input into the power line tower detection model, which extracts tower features from the monitoring images to generate tower edge images. The tower edge images are then regularized to obtain a tower extraction image containing the tower outline. The extracted image of the power tower is input into the target detection model, and the target detection model determines the prediction box containing the work object in the extracted image of the power tower. The image factors within the prediction box are segmented into multiple superpixels, and the importance score of each superpixel is determined. This includes: obtaining parameter information for each image pixel within the prediction box, wherein the parameter information includes color information and position information; based on the position information, merging adjacent image pixels with a color information difference less than a preset color threshold into the same pixel region, and generating multiple superpixels based on the merged multiple pixel regions, wherein the superpixel is a group of closely connected pixel regions formed by aggregating adjacent image pixels; The step of segmenting image factors within the prediction bounding box into multiple superpixels and determining the importance score of each superpixel includes: acquiring multiple sets of sampled images containing the superpixels, wherein a portion of superpixels is randomly removed from each set of sampled images, and the removed superpixels are represented by a sampling mask; inputting the sampled images retaining the superpixels into the object detection model, and determining the sampling bounding box through the object detection model; determining the sampling score based on the similarity between the object detection result of the sampling bounding box and the object detection result of the prediction bounding box; assigning the same score to the retained superpixels in each set of sampled images based on the sampling scores in each set of sampled images, thereby obtaining the base score of the superpixel; for each superpixel, calculating the ratio of the area of the superpixel in the sampled image to the area of all retained superpixels, and obtaining the weight of the superpixel based on the ratio; for each superpixel, performing a weighted average of the base scores based on the weights to obtain the importance score of the superpixel. The importance score is used to assign values to each pixel within the prediction box to obtain the operation image of the target power tower.
2. The method for safety supervision of transmission line operations according to claim 1, characterized in that, The power line tower detection model is pre-trained, and the training of the power line tower detection model includes: Acquire the original image of the target power tower, crop the original image to obtain the cropped image dataset; The cropped image dataset is augmented, and the augmented image dataset is then filtered to obtain a filtered image dataset. The selected image dataset is labeled with features using a geographic information processing system to obtain a labeled image dataset. The labeled image dataset is divided into a training set and a test set; Construct an initial power tower building detection model; The training set is input into the power tower building detection model to train the power tower building detection model; With all labeled images in the training set input, the trained power tower detection model is tested using the test set. If the test results indicate that the output of the power tower detection model meets the classification requirements, the training is confirmed to be complete, and the power tower detection model is obtained based on the trained power tower detection model.
3. The method for safety supervision of transmission line operations according to claim 2, characterized in that, The steps for constructing an initial power tower building inspection model include: Obtain the DeeplabV3+ deep learning model for semantic segmentation; The convolutional neural network Xception in the DeeplabV3+ model is replaced with a target backbone network, wherein the number of network nodes in the target backbone network is less than a first threshold, and the number of network connections in the target backbone network is less than a second threshold. Two deep learning network modules, ASPP, for performing image segmentation tasks are added after the target backbone network. The power tower building detection model is generated based on the DeeplabV3+ deep learning model with the ASPP module added.
4. The method for safety supervision of transmission line operations according to claim 1, characterized in that, The step of performing regularization processing on the power tower edge image to obtain a power tower extraction image containing the power tower outline includes: The blurred and occluded parts in the edge image of the power tower are eliminated based on the coarse adjustment algorithm to obtain the coarse-adjusted image; Based on the fine-tuning algorithm, the direction of the contour lines and the position of key nodes in the coarse-tuned image are adjusted to obtain the boundary image; The boundary image is polygonized to obtain an extracted image of the power tower containing its outline.
5. The method for safety supervision of transmission line operations according to claim 1, characterized in that, The steps of inputting the extracted power tower map into the target detection model and determining the predicted bounding boxes containing the work objects in the extracted power tower map using the target detection model include: The extracted image of the power tower is input into the target detection model, and the feature extraction network in the target detection model extracts the feature image of the power tower containing the operation object. The feature map is input into the intermediate network of the target detection model, and multiple candidate boxes are obtained through the intermediate network, wherein each candidate box includes at least the confidence score of the target object; Candidate boxes with confidence levels lower than a preset confidence threshold are removed, and overlapping candidate boxes are also removed to obtain a prediction box containing the job object, wherein the prediction box indicates the location where the job object exists.
6. The method for safety supervision of transmission line operations according to claim 1, characterized in that, The steps of assigning values to each pixel within the prediction box based on the importance score to obtain the operation image of the target power tower include: The importance scores are used to assign values to each pixel within the prediction box to obtain a heatmap with importance scores for each pixel. The heat map is filtered and then loaded into a power tower extraction map containing the outline of the power tower through a visualization interface to obtain the operation image of the operation object on the target power tower.
7. A safety monitoring device for power transmission line operations based on scene recognition, characterized in that, include: The video acquisition unit is used to acquire the monitoring video stream of the transmission line operation face collected by the monitoring device in the current time period, and extract at least one frame of monitoring image containing the transmission line operation scene from the monitoring video stream to obtain a monitoring image set. The power tower extraction unit is used to input the monitoring image set into the power tower detection model, and the power tower detection model extracts power tower features from the monitoring images to generate power tower edge images. The power tower edge images are then regularized to obtain a power tower extraction image containing the power tower outline. The model detection unit is used to input the extracted image of the power tower into the target detection model, and use the target detection model to determine the prediction box containing the work object in the extracted image of the power tower. A superpixel segmentation unit is used to segment the image factors within the prediction box into multiple superpixels and determine the importance score of each superpixel. The superpixel is a group of closely connected pixel regions formed by aggregating adjacent image pixels. The superpixel segmentation unit includes: an image pixel parameter acquisition module, used to acquire parameter information of each image pixel within the prediction box, wherein the parameter information includes color information and position information; and a pixel merging module, used to merge adjacent image pixels with a color information difference less than a preset color threshold into the same pixel region based on the position information, and generate multiple superpixels based on the merged multiple pixel regions. The superpixel segmentation unit includes: a multi-group sampling image acquisition module, used to acquire multiple groups of sampling images containing the superpixels, wherein each group of sampling images randomly removes some superpixels, and the removed superpixels are represented by a sampling mask; a sampling image input module, used to input the sampling image retaining the superpixels into the target detection model, and determine the sampling bounding box through the target detection model; a sampling score acquisition module, used to determine the sampling score based on the similarity between the object detection result of the sampling bounding box and the object detection result of the predicted box; a superpixel assignment module, used to assign the same score to each superpixel retained in the sampling image based on the sampling score in each group of sampling images, to obtain the base score of the superpixel; a superpixel weight calculation module, used to calculate the ratio of the area of the superpixel in the sampling image to the area of all retained superpixels for each superpixel, and obtain the weight of the superpixel based on the ratio; and a superpixel importance score determination module, used to perform a weighted average of the base score according to the weight for each superpixel, to obtain the importance score of the superpixel. The operation image generation unit is used to assign values to each pixel in the prediction box based on the importance score to obtain the operation image of the operation object on the target power tower.
8. An electronic device, characterized in that, It includes one or more processors and a memory, the memory being used to store one or more programs, wherein when the one or more programs are executed by the one or more processors, the one or more processors cause the one or more processors to implement the scene recognition-based transmission line operation safety supervision method according to any one of claims 1 to 6.
Citation Information
Patent Citations
An electric power operation safety supervision robot safety operation identification method and system
CN109409289A
Power transmission line defect image recognition method based on cloud edge cooperative detection
CN111784685A
