Power transmission line operation safety supervision method and device based on scene recognition
Through the technology based on scene recognition, the monitoring device is used to collect video streams in real time and perform image processing to identify the operation objects of transmission line, solving the problems of low efficiency and uncertain safety inspection of high-altitude operations, and achieving efficient and accurate safety monitoring.
Patent Information
- Application Number
- CN202410909330.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-08
- Publication Date
- 2024-11-01
- Estimated Expiration
- 2044-07-08
AI Technical Summary
The inspection operation efficiency during high-altitude operations in the prior art is low, and there are uncertain safety problems in manual inspection, which fails to effectively solve the challenge of safety assurance for high-altitude operations.
Using the transmission line operation safety supervision method based on scene recognition, the monitoring device collects the working surface video stream in real time, extracts the tower characteristics and operation objects, uses the pre-trained line tower detection model and object detection model for image processing, and generates the operation objects work images to improve safety monitoring accuracy and efficiency.
It significantly improves the accuracy and efficiency of safety monitoring of high-altitude operating surfaces, reduces the working intensity of supervision personnel, improves the monitoring efficiency of power transmission line operating surfaces, and solves the problem of low inspection operation efficiency.
Smart Images

Figure CN118887607A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of power transmission line safety supervision or other related fields, and in particular to a method and device for power transmission line operation safety supervision based on scene recognition. Background Art
[0002] With the development of the power system and the improvement of people's living standards, power users' requirements for power quality and power supply reliability are gradually increasing. As the power load increases year by year, the quality requirements for the power grid and its related power system facilities are also significantly improved. In order to ensure the normal operation of the facilities, the safety guarantee of high-altitude live-line work is increasingly moving towards standardization, digitization and refinement. Live-line work on transmission lines is mainly used in the following two aspects: one is to perform live-line work on the insulators of the tower, including live-line inspection of the insulator string, live-line replacement of damaged insulators, cleaning and washing of pollutants on the insulators, etc.; the other is to repair damaged wires.
[0003] In the related technology, in addition to insulation protection, the safety of the work object during high-altitude live work also requires high-altitude fall protection for the work object. High-altitude fall protection is generally achieved by the work object wearing a safety rope, so it is particularly important to check the current status of the work object. At present, most of the transmission line inspections in the power system still rely on manual inspections to monitor the current status of the work object and ensure the safety of the work object. However, this monitoring method has the problems of high intensity of manual inspections and low efficiency of inspection operations. In some field inspections, manual inspections still have uncertain safety issues.
[0004] To address the above-mentioned problems, no effective solution has been proposed yet. Summary of the invention
[0005] The embodiment of the present invention provides a method and device for monitoring the safety of power transmission line operations based on scene recognition, so as to at least solve the technical problem of low patrol efficiency when monitoring high-altitude operations in the related art.
[0006] According to one aspect of an embodiment of the present invention, a method for monitoring the operation safety of a power line based on scene recognition is provided, comprising: obtaining a monitoring video stream of a power line operation surface collected by a monitoring device in a current time period, and extracting at least one frame of monitoring image containing a power line operation scene from the monitoring video stream to obtain a monitoring image set; inputting the monitoring image set into a line tower detection model, and having the line tower detection model perform tower feature extraction on the monitoring image to generate a tower edge image, and performing regularization processing on the tower edge image to obtain a tower extraction image containing a tower outline; inputting the tower extraction image into a target detection model, and determining a prediction frame containing an operation object in the tower extraction image through the target detection model; segmenting the image factors in the prediction frame into multiple superpixels, and determining the importance score of each superpixel, wherein the superpixel is a group of tightly connected pixel areas formed by aggregating adjacent image pixels; and assigning a value to each pixel in the prediction frame based on the importance score to obtain an operation image of the operation object on the target tower.
[0007] Optionally, the line tower detection model is obtained by pre-training. When training the line tower detection model, it includes: collecting original images of target towers, cropping the original images to obtain a cropped image data set; performing data enhancement on the cropped image data set, and filtering the enhanced image data set to obtain a filtered image data set; performing feature annotation on the filtered image data set based on a geographic information processing system to obtain an annotated image data set; dividing the annotated image data set into a training set and a test set; constructing an initialized tower building detection model; inputting the training set into the tower building detection model to train the tower building detection model; when all the annotated images in the training set have been input, using the test set to test the trained tower building detection model, and when the test result indicates that the output of the tower building detection model meets the classification requirements, confirming that the training is completed, and obtaining the line tower detection model based on the trained tower building detection model.
[0008] Optionally, the step of constructing an initialized electric tower building detection model includes: obtaining a deep learning model DeeplabV3+ 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 quantity threshold, and the number of network connections in the target backbone network is less than a second quantity threshold; adding two deep learning network modules ASPP that perform image segmentation tasks after the target backbone network; and generating the electric tower building detection model based on the deep learning model DeeplabV3+ model after adding the ASPP module.
[0009] Optionally, the step of regularizing the edge image of the power tower to obtain an extraction map of the power tower containing the outline of the power tower includes: eliminating blurred parts and occluded parts in the edge image of the power tower based on a coarse adjustment algorithm to obtain a coarse adjustment image; adjusting the direction of the contour lines and key node positions in the coarse adjustment image based on a fine adjustment algorithm to obtain a boundary image; and polygonizing the boundary image to obtain an extraction map of the power tower containing the outline of the power tower.
[0010] Optionally, the step of inputting the power tower extraction image into the target detection model and determining a predicted frame containing the working object in the power tower extraction image through the target detection model includes: inputting the power tower extraction image into the target detection model, extracting a feature image containing the working object in the power tower extraction image through a feature extraction network in the target detection model; inputting the feature image into an intermediate network in the target detection model, and obtaining multiple candidate frames through the intermediate network, wherein each candidate frame includes at least the confidence of the working object; removing candidate frames whose confidence is less than a preset confidence threshold, and removing overlapping candidate frames, to obtain a predicted frame containing the working object, wherein the location where the working object exists is indicated in the predicted frame.
[0011] Optionally, the image factors within the prediction box are divided into multiple superpixels, and the step of determining the importance score of each superpixel includes: obtaining parameter information of each image pixel in 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 area, and generating multiple superpixels based on the merged multiple pixel areas.
[0012] Optionally, the step of dividing the image factors within the prediction box into multiple superpixels and determining the importance score of each superpixel includes: obtaining multiple groups of sampling images containing the superpixels, wherein each group of sampling images randomly removes some superpixels and represents the removed superpixels through a sampling mask; inputting the sampling images retaining the superpixels into the target detection model, and determining the sampling selection box through the target detection model; determining the sampling score according to 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 of the sampling images according to the sampling scores in each group of sampling images to obtain the basic score of the superpixel; for each of the superpixels, calculating the ratio of the area of the superpixel in the sampling image to the area of all retained superpixels, and obtaining the weight of the superpixel based on the ratio; for each of the superpixels, performing weighted averaging on the basic scores according to the weight to obtain the importance score of the superpixel.
[0013] Optionally, the step of assigning a value to each pixel in the prediction box based on the importance score to obtain a working image of the working object on the target tower includes: assigning a value to each pixel in the prediction box based on the importance score to obtain a heat map with the importance score of each pixel; filtering the heat map, and loading the heat map into a tower extraction map containing the tower outline through a visualization interface to obtain a working image of the working object on the target tower.
[0014] According to another aspect of an embodiment of the present invention, a transmission line operation safety supervision device based on scene recognition is also provided, comprising: a video acquisition unit, used to acquire a transmission line operation surface monitoring video stream collected by a monitoring device in a current time period, and extract at least one frame of monitoring image containing a transmission line operation scene from the monitoring video stream to obtain a monitoring image set; a tower extraction unit, used to input the monitoring image set into a line tower detection model, and the line tower detection model performs tower feature extraction on the monitoring image to generate a tower edge image, and performs regularization processing on the tower edge image to obtain a tower extraction image containing a tower outline; a model detection unit, used to input the tower extraction image into a target detection model, and determine a prediction box containing an operation object in the tower extraction image through the target detection model; a superpixel segmentation unit, used to segment the image factors in the prediction box into multiple superpixels, and determine the importance score of each superpixel, wherein the superpixel is a group of closely connected pixel areas formed by aggregating adjacent image pixels; and a work image generation unit, used to assign values to each pixel in the prediction box based on the importance score to obtain a work image of the work object on the target tower.
[0015] Optionally, the line tower detection model is pre-trained. When training the line tower detection model, the power transmission line operation safety supervision device based on scene recognition includes: a tower original image acquisition unit, used to acquire the original image of the target tower, crop the original image, and obtain a cropped image data set; a data enhancement unit, used to perform data enhancement on the cropped image data set, and filter the enhanced image data set to obtain a filtered image data set; an image feature annotation unit, used to perform feature annotation on the filtered image data set based on a geographic information processing system to obtain an annotated image data set; a data partitioning ... A unit is used to divide the labeled image data set into a training set and a test set; a model initialization unit is used to construct an initialized electric tower building detection model; a model training unit is used to input the training set into the electric tower building detection model to train the electric tower building detection model; a model testing unit is used to test the trained electric tower building detection model using the test set when all the labeled images in the training set have been input, and when the test result indicates that the result output by the electric tower building detection model meets the classification requirements, confirm that the training is completed, and obtain the line electric tower detection model based on the trained electric tower building detection model.
[0016] Optionally, the model initialization unit includes: a first acquisition module, used to acquire a deep learning model DeeplabV3+ model for semantic segmentation; a network replacement module, used to replace 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 quantity threshold, and the number of network connections in the target backbone network is less than a second quantity threshold; a network adding module, used to add two deep learning network modules ASPP that perform image segmentation tasks after the target backbone network; a model generation module, used to generate the power tower building detection model based on the deep learning model DeeplabV3+ model after the ASPP module is added.
[0017] Optionally, the power tower extraction unit includes: a coarse adjustment module, which is used to eliminate blurred parts and occluded parts in the power tower edge image based on a coarse adjustment algorithm to obtain a coarse adjustment image; a fine adjustment module, which is used to adjust the direction of the contour line and the position of key nodes in the coarse adjustment image based on the fine adjustment algorithm to obtain a boundary image; and a polygonization module, which is used to polygonize the boundary image to obtain a power tower extraction image containing the power tower contour.
[0018] Optionally, the model detection unit includes: an electric tower feature extraction module, used to input the electric tower extraction image into the target detection model, and extract a feature image of the operating object in the electric tower extraction 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 of the operating object; a candidate box selection module, used to remove candidate boxes whose confidence is less than a preset confidence threshold, and remove overlapping candidate boxes, to obtain a predicted box containing the operating object, wherein the predicted box indicates the location where the operating object exists.
[0019] Optionally, the superpixel segmentation unit includes: an image pixel parameter acquisition module, used to obtain parameter information of each image pixel in the prediction box, wherein the parameter information includes color information and position information; 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 area based on the position information, and generate multiple superpixels based on the merged multiple pixel areas.
[0020] Optionally, the superpixel segmentation unit includes: a plurality of sampling image acquisition modules, used to acquire a plurality 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 selection box through the target detection model; a sampling score acquisition module, used to determine the sampling score according to the similarity between the object detection result of the sampling selection box and the object detection result of the prediction box; a superpixel assignment module, used to assign the same score to the superpixels retained in each of the sampling images according to the sampling scores in each group of sampling images, so as to obtain the basic 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; a superpixel importance score determination module, used to perform weighted averaging of the basic scores according to the weight for each superpixel, so as to obtain the importance score of the superpixel.
[0021] Optionally, the operation image generation unit includes: a heat map determination module, which is used to assign values to each pixel in the prediction box based on the importance score to obtain a heat map with the importance score of each pixel; an object acquisition module, which is used to filter the heat map and load the heat map into a tower extraction map containing the tower outline through a visualization interface to obtain a work image of the operation object on the target tower.
[0022] According to another aspect of an embodiment of the present invention, a computer-readable storage medium is also provided, wherein the computer-readable storage medium includes a stored computer program, wherein when the computer program is running, the device where the computer-readable storage medium is located is controlled to execute any one of the above-mentioned scene recognition-based transmission line operation safety supervision methods.
[0023] According to another aspect of an embodiment of the present invention, there is also provided an electronic device, comprising 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 implement any one of the above-mentioned scene recognition-based transmission line operation safety supervision methods.
[0024] According to another aspect of an embodiment of the present invention, there is further provided a computer program product, comprising a computer program, which, when executed by a processor, implements the steps of any one of the above-mentioned methods for safe supervision of power line operations based on scene recognition.
[0025] In the present invention, a monitoring video stream of a transmission line operation surface collected by a monitoring device in a current time period is obtained, and at least one frame of monitoring image containing a transmission line operation scene is extracted from the monitoring video stream to obtain a monitoring image set, which is input into a line tower detection model. The line tower detection model extracts tower features from the monitoring image to generate a tower edge image, and regularizes the tower edge image to obtain a tower extraction image containing a tower outline. The tower extraction image is input into a target detection model, and a prediction box containing an operation object in the tower extraction image is determined by the target detection model, and image factors in the prediction box are segmented into multiple superpixels, and the importance score of each superpixel is determined, wherein a superpixel is a group of tightly connected pixel areas formed by aggregating adjacent image pixels, and each pixel in the prediction box is assigned a value based on the importance score to obtain an operation image of the operation object on the target tower.
[0026] In the present invention, a monitoring device (such as a transmission line control ball) is used to collect monitoring video streams of the working surface in real time, and the video stream data is processed to extract single-frame image data containing the electric tower. The working object can be detected according to the recognition image of the electric tower (the working object in the image is identified through target detection), which can significantly improve the safety monitoring accuracy and automatic patrol of the working surface, and improve the monitoring efficiency of the transmission line working surface, thereby solving the technical problem of low patrol efficiency when monitoring high-altitude operations in related technologies.
[0027] The present invention collects the video monitoring stream of the transmission line working surface in real time through the monitoring device (such as the power grid control ball), and automatically identifies the electric towers in the video image, so as to detect the operating personnel according to the identification image of the electric tower, which can significantly improve the safety monitoring accuracy and efficiency of the working surface and reduce the workload of the supervisors. BRIEF DESCRIPTION OF THE DRAWINGS
[0028] The drawings described herein are used to provide a further understanding of the present invention and constitute a part of this application. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute an improper limitation of the present invention. In the drawings:
[0029] Figure 1 The present invention is a flowchart of an optional method for safety supervision of power transmission line operations based on scene recognition according to an embodiment of the present invention.
[0030] Figure 2 The present invention is a flowchart of a method for automatically inspecting a transmission line working surface according to an embodiment of the present invention.
[0031] Figure 3 It is an optional flowchart of determining a prediction frame of an electric tower extraction graph through a target detection model according to an embodiment of the present invention.
[0032] Figure 4 is an optional flow chart for determining the importance score of each superpixel according to an embodiment of the present invention.
[0033] Figure 5 It is a schematic diagram of an optional scene recognition-based power transmission line operation safety supervision device according to an embodiment of the present invention.
[0034] Figure 6 The present invention is a hardware structure block diagram of an electronic device (or mobile device) for a method for safely supervising power line operations based on scene recognition according to an embodiment of the present invention. DETAILED DESCRIPTION
[0035] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.
[0036] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0037] To facilitate those skilled in the art to understand the present invention, some terms or nouns involved in the embodiments of the present invention are explained below:
[0038] DeepLabV3+, a deep learning model for semantic segmentation, is an improved version of the DeepLabV3 model. It improves the performance and efficiency of the model in image segmentation tasks by introducing technologies such as atrous spatial convolution, batch normalization, and depthwise separable convolution.
[0039] The Xception network is a convolutional neural network model that combines traditional convolution operations with depthwise separable convolution operations to achieve better performance and smaller number of parameters.
[0040] A lightweight, high-performance backbone network refers to a network architecture that has a smaller number of network nodes and fewer network connections while providing efficient data transmission and processing performance.
[0041] The ASPP module, Atrous Spatial Pyramid Pooling, is a deep learning network module for image segmentation tasks. It is mainly used to process information of different scales in an image to better capture the semantic information in the image. The ASPP module can capture semantic information at different scales by applying dilated convolutions with different sampling rates (or dilation rates) at different scales, and integrate this information into a feature map, thereby improving the accuracy and effect of image segmentation.
[0042] Coarsely tune the algorithm by adjusting the basic parameters or structure of the algorithm to achieve better performance indicators, such as speed, memory consumption, etc.
[0043] The Douglas-Peucker model is an algorithm for curve simplification, also known as iterative approximation. The model recursively divides the curve into segments and determines whether each segment is simple enough to represent the original curve, thereby achieving curve simplification.
[0044] It should be noted that the scene recognition-based transmission line operation safety supervision method and device thereof in the present disclosure can be used in the field of transmission line monitoring. When automatic inspection of high-altitude operation objects is realized based on the monitoring device, it can also be used in any field except the field of transmission line monitoring technology. When automatic inspection of high-altitude operation objects is realized based on the monitoring device, the present disclosure does not limit the application field of the scene recognition-based transmission line operation safety supervision method and device thereof.
[0045] It should be noted that the information collected in this disclosure (including but not limited to personal work pictures of high-altitude work objects, transmission line pictures, user equipment information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) are information and data authorized by the user or fully authorized by all parties, and the collection, storage, use, processing, transmission, provision, disclosure and application of relevant data comply with the relevant laws, regulations and standards of the relevant regions, take necessary confidentiality measures, do not violate public order and good morals, and provide corresponding operation entrances for users to choose to authorize or refuse.
[0046] The following embodiments of the present invention can be applied to various systems / applications / devices for safety supervision of power transmission line operations based on scene recognition. The present invention uses a monitoring device (such as an operation control ball) to collect monitoring video streams of the operation surface in real time, and identifies the operators through target detection, thereby realizing real-time, fast, and efficient inspection of the power transmission line operation surface.
[0047] The present invention is described in detail below in conjunction with various embodiments.
[0048] Embodiment 1
[0049] According to an embodiment of the present invention, an embodiment of a method for safety supervision of power line operations based on scene recognition is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described may be executed in an order different from that shown here.
[0050] Figure 1 is a flow chart of an optional method for safety supervision of power transmission line operations based on scene recognition according to an embodiment of the present invention, such as Figure 1As shown, the method comprises the following steps:
[0051] Step S101, obtaining a monitoring video stream of a power transmission line operation surface collected by a monitoring device in a current time period, and extracting at least one frame of monitoring image containing a power 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, and the line tower detection model extracts tower features from the monitoring image to generate a tower edge image, and performs regularization on the tower edge image to obtain a tower extraction image containing the tower outline.
[0053] Step S103, inputting the power tower extraction image into the target detection model, and determining the prediction box containing the operation object in the power tower extraction image through the target detection model.
[0054] Step S104, dividing the image factors in the prediction box into multiple superpixels, and determining the importance score of each superpixel, wherein a superpixel is a group of densely connected pixel regions formed by aggregating adjacent image pixels.
[0055] Step S105, assigning values to each pixel in the prediction box based on the importance score to obtain an operation image of the operation object on the target tower.
[0056] Through the above steps, a monitoring video stream of the transmission line operation surface 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, which is input into the line tower detection model. The line tower detection model extracts tower features from the monitoring image to generate a tower edge image, and regularizes the tower edge image to obtain a tower extraction image containing the tower outline. The tower extraction image is input into the target detection model, and the target detection model is used to determine the prediction box containing the operation object in the tower extraction image, and the image factors in the prediction box are divided into multiple superpixels, and the importance score of each superpixel is determined, wherein a superpixel is a group of tightly connected pixel areas formed by aggregating adjacent image pixels, and each pixel in the prediction box is assigned a value based on the importance score to obtain an operation image of the operation object on the target tower. In this embodiment, a monitoring device (such as a control ball on a transmission line) can be used to collect monitoring video streams of the working surface in real time, process the video stream data, and extract single-frame image data containing the tower. The working object can be detected based on the recognition image of the tower (the working object in the image can be identified through target detection). This can significantly improve the safety monitoring accuracy and automatic patrol of the working surface, and improve the monitoring efficiency of the working surface of the transmission line, thereby solving the technical problem of low patrol efficiency when monitoring high-altitude operations in related technologies.
[0057] This embodiment can be applied to various transmission line aerial work monitoring systems or software. A transmission line work surface automatic patrol method based on scene recognition is proposed. The transmission line is monitored in real time by a monitoring device arranged on the work surface, and a video stream of the work surface is collected. The video stream data is then processed to extract single-frame image data containing the tower. The work objects in these images are then identified through target detection, thereby achieving full coverage automatic patrol of the work surface.
[0058] The embodiment of the present invention is described in detail below in combination with the above steps.
[0059] It should be noted that, before performing tower image extraction in this embodiment, it is necessary to pre-train a line tower detection model. The line tower detection model is pre-trained. When training the line tower detection model, it includes: collecting the original image of the target tower, cropping the original image, and obtaining a cropped image data set; performing data enhancement on the cropped image data set, and filtering the data-enhanced image data set to obtain a filtered image data set; performing feature annotation on the filtered image data set based on a geographic information processing system to obtain an annotated image data set; dividing the annotated image data set into a training set and a test set; constructing an initialized tower building detection model; inputting the training set into the tower building detection model to train the tower building detection model; when all the annotated images in the training set have been input, using the test set to test the trained tower building detection model, and when the test result indicates that the result output by the tower building detection model meets the classification requirements, confirming that the training is completed, and obtaining the line tower detection model based on the trained tower building detection model.
[0060] In this embodiment, when training a line tower detection model, the original image of the tower is first collected, and the original image is preprocessed to obtain preprocessed image data, wherein the preprocessing process is: cropping the original image to obtain a cropped image data set, performing data enhancement on the cropped image data set, and filtering the data-enhanced image data set to obtain a filtered image data set, performing feature annotation on the filtered image data set based on a geographic information processing system to obtain an annotated image data set, and then dividing the annotated data set into a training set, a verification set, and a test set to obtain preprocessed image data.
[0061] The target area of the filtered image dataset is annotated so that the deep learning model can learn the characteristics of the towers and transmission lines to distinguish them from other areas in the image. Therefore, the production of data labels is particularly important. In one embodiment, a semi-automatic annotation method based on a geographic information processing system (for example, using ArcGIS Pro, which has been authorized for use) can be used to obtain the annotated image dataset.
[0062] For constructing an initialized electric tower building detection model, it includes: obtaining a deep learning model DeeplabV3+ 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 quantity threshold, and the number of network connections in the target backbone network is less than a second quantity threshold; adding two deep learning network modules ASPP that perform image segmentation tasks after the target backbone network; and generating an electric tower building detection model based on the deep learning model DeeplabV3+ model after adding the ASPP module.
[0063] In an embodiment of the present invention, when initializing the electric tower building detection model, a DeepLabV3+ model can be constructed, and the DeepLabV3+ model can be improved to obtain an improved model. First, a lightweight high-performance backbone network is used to replace the Xception network in the DeepLabV3+ model, and two ASPP modules are added to the DeepLabV3+ model to obtain an improved model. The two ASPP modules are used to fuse image features to obtain more advanced semantic information and enhance the extraction of edge features.
[0064] Step S101, obtaining a monitoring video stream of a power transmission line operation surface collected by a monitoring device in a current time period, and extracting at least one frame of monitoring image containing a power 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, and the line tower detection model extracts tower features from the monitoring image to generate a tower edge image, and performs regularization on the tower edge image to obtain a tower extraction image containing the tower outline.
[0066] In this embodiment, the working surface monitoring video stream collected by the monitoring device can be obtained 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 edge image of the tower. The edge image of the tower is regularized and processed to obtain the tower contour extraction result.
[0067] Optionally, the step of regularizing the edge image of the tower to obtain an extraction map of the tower containing the outline of the tower includes: eliminating blurred parts and occluded parts in the edge image of the tower based on a coarse adjustment algorithm to obtain a coarse adjustment image; adjusting the direction of the contour lines and key node positions in the coarse adjustment image based on a fine adjustment algorithm to obtain a boundary image; and polygonizing the boundary image to obtain an extraction map of the tower containing the outline of the tower.
[0068] Since the edges of the tower area generated by the model prediction are irregular, the contour lines of the tower coverage area are regularized by extracting key points and main directions to eliminate irregular boundaries and details in the tower range geometry. The regularization method provided in this embodiment may include: extracting a boundary image of the tower edge image, specifically including: eliminating errors by eliminating the edge image based on a coarse adjustment algorithm to obtain a coarse adjustment image; adjusting the direction of the center line and the node position of the coarse adjustment image based on a fine adjustment algorithm to obtain a boundary image.
[0069] Specifically, the main steps to achieve image boundary extraction are divided into two steps: coarse-tuning the algorithm to eliminate obvious errors in segmentation and polygonization, and further fine-tuning the algorithm to adjust the direction of the line and the position of the node.
[0070] The implementation process of the rough adjustment algorithm may include: removing polygons S whose area is lower than a threshold; deleting edges Td whose length is lower than a given edge length; removing overly sharp angles α using a threshold; and removing overly smooth angles β using a threshold.
[0071] Among them, the implementation process of the fine-tuning algorithm may include: finding the long 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, δ 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 (judging θ by the threshold); if the distance between the two lines is less than (or greater than) the threshold, merging (or connecting) the parallel lines d; connecting all 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 an electric tower extraction map containing the outline of the electric tower.
[0072] Step S103, inputting the power tower extraction image into the target detection model, and determining the prediction box containing the operation object in the power tower extraction image through the target detection model.
[0073] In an embodiment of the present 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, and extracting a feature image of the power tower extraction image with a working object through the feature extraction network in the target detection model; inputting the feature image into the 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 of the working object; removing candidate boxes whose confidence is less than a preset confidence threshold, and removing overlapping candidate boxes, to obtain a predicted box containing the working object, wherein the predicted box indicates the location where the working object exists.
[0074] It should be noted that the intermediate network can use the 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. Represents the length of each candidate prediction result. Therefore, each prediction result can be represented as a vector Among them, x, y, w, h, and c represent the horizontal coordinate, vertical coordinate, width, height, and confidence of the candidate box in the detection box, respectively. Indicates the confidence level of the detected target being of different types.
[0075] In an embodiment of the present invention, a target detection model is constructed based on a convolutional neural network, which includes a convolutional layer and a pooling layer, and the convolutional layer and the pooling layer are configured to skip pixels that do not have valid values during pixel calculation.
[0076] Step S104, dividing the image factors in the prediction box into multiple superpixels, and determining the importance score of each superpixel, wherein a superpixel is a group of densely connected pixel regions formed by aggregating adjacent image pixels.
[0077] Optionally, step S104 includes: obtaining parameter information of each image pixel in 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 area, and generating multiple superpixels based on the merged multiple pixel areas.
[0078] In this embodiment, a superpixel is a group of closely connected pixel regions formed by aggregating adjacent pixels together, dividing 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 characteristics.
[0079] Optionally, the step of dividing the image factors within the prediction box into multiple superpixels and determining the importance score of each superpixel includes: obtaining multiple groups of sampling images containing superpixels, wherein each group of sampling images randomly removes some superpixels and represents the removed superpixels through a sampling mask; inputting the sampling images with retained superpixels into the target detection model, and determining the sampling selection box through the target detection model; determining the sampling score according to 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 sampling image according to the sampling scores in each group of sampling images to obtain the basic score of the superpixel; for each superpixel, calculating the ratio of the area of the superpixel in the sampling image to the area of all retained superpixels, and obtaining the weight of the superpixel based on the ratio; for each superpixel, performing weighted averaging on the basic scores according to the weight to obtain the importance score of the superpixel.
[0080] The importance score is an indicator used to measure the relative importance of superpixels. Generally, the objects within the prediction box receive relatively higher importance scores.
[0081] The sampled image with retained superpixels is input into the target detection model, the sampling box is determined by the target detection model, and the sampling score is determined based on the difference between the sampling box and the candidate box.
[0082] Among them, the removal and retention of superpixels can be represented by a sampling mask, and the image to be processed with the sampling mask can represent the retained superpixels.
[0083] Step S105, assigning values to each pixel in the prediction box based on the importance score to obtain an operation image of the operation object on the target tower.
[0084] Optionally, step S105 includes: assigning values to each pixel in the prediction box based on the importance score to obtain a heat map with the importance score of each pixel; filtering the heat map, and loading the heat map into a tower extraction map containing the tower outline through a visualization interface to obtain a working image of the working object on the target tower.
[0085] In this embodiment, after obtaining the importance score of each superpixel, each pixel in the prediction box can be assigned a value based on the importance score to obtain a heat map with the importance score of each pixel. The heat map is then filtered and loaded into the power tower extraction map through a visualization interface to obtain a visualization image containing the work object.
[0086] By automatically identifying the power towers in the video images, it is possible to detect the workers based on the identified images of the power towers, which can significantly improve the accuracy and efficiency of safety monitoring of the work surface and reduce the workload of supervisors.
[0087] The present invention is described below by means of another optional implementation manner.
[0088] Figure 2 is a flow chart of a method for automatically patrolling a transmission line working surface according to an embodiment of the present invention. Figure 2 As shown, the method is specifically implemented in the following manner:
[0089] Step 1: Build and train the tower recognition model to obtain the prediction model.
[0090] First, the original image of the power tower is collected, and the original image is preprocessed to obtain the preprocessed image data. The preprocessing process is as follows: the original image is cropped to obtain a cropped image dataset; data enhancement is performed on the cropped image dataset, and the enhanced image dataset is screened to obtain a screened image dataset; feature annotation is performed on the screened image dataset based on the geographic information system to obtain an annotated image dataset; the annotated dataset is divided into training set, validation set and test set to obtain preprocessed image data.
[0091] The target area of the filtered image dataset is annotated so that the deep learning model can learn the characteristics of the towers and transmission lines to distinguish them from other areas in the image. Therefore, the production of data labels is particularly important. In this embodiment, a semi-automatic annotation method based on a geographic information system can be used to obtain an annotated image dataset.
[0092] Furthermore, in this embodiment, the labeled image data set can be divided into three parts: a training set, a validation set, and a test set.
[0093] Then the DeepLabV3+ model is constructed and improved to obtain the improved model.
[0094] When improving the DeepLabV3+ model, we first use a lightweight high-performance backbone network to replace the Xception network in the DeepLabV3+ model; and add two ASPP modules to the DeepLabV3+ model to obtain the improved model. The DeepLabV3+ network is one of the most outstanding semantic segmentation models at present, and it has achieved excellent results on the VOC dataset. However, the DeepLabV3+ model also has some shortcomings. First, the spatial dimension of the input data is gradually reduced during the feature extraction process on the encoding side, resulting in the loss of useful information, and the details cannot be well restored during decoding; second, although the introduction of the ASPP module can improve the model's ability to extract the boundary of the target, it cannot fully simulate the connection between the local features of the target, resulting in a void in the target segmentation, which leads to a decrease in the accuracy of the target segmentation; third, in order to pursue segmentation accuracy, Xception with a large number of network layers and a large number of parameters is selected as the feature extraction network, and the convolution method in the ASPP module is ordinary convolution, which further increases the number of parameters. The deepening of the model depth and the increase in the number of parameters increase the complexity of the model, the requirements for hardware are higher, the difficulty of network training is increased, and the network training speed is slower and the convergence is slower.
[0095] In an optional embodiment of the present invention, in order to improve the network segmentation performance and improve the above shortcomings, the following improvements are made to the traditional DeeplabV3+ network structure: 1) In view of the large number of parameters of the Xception network for feature extraction of the traditional DeepLabV3+ model, a lightweight, high-performance backbone network named DenseNeXt is proposed to replace the Xception network in the traditional DeepLabV3+. The proposed DenseNeXt network incorporates the design concept of ConvNeXt on the basis of the traditional DenseNet, greatly reducing the amount of parameter calculation of the model, reducing memory usage, and improving the calculation speed of the model; 2) In order 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 the extraction of edge features; through the above improvements, an improved model is obtained.
[0096] Among them, the stacking ratio of the four-stage blocks of the DenseNeXt network proposed in this embodiment is set to 1:1:3:1. The specific number of layers in each stage is 8, 8, 24 and 8 respectively. The proposed DenseNeXt network is designed with two branches, one branch is a depth-separable convolution with a 7×7 convolution kernel, and the other is a depth-separable convolution with a 3×3 convolution kernel. Then add their output feature maps, and finally concatenate them with the input feature map of the bottleneck layer as the output feature map of the bottleneck layer, so that the model can 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 to solve the network parameters under the condition of minimizing 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 actual classification results, adjusting the network parameters based on the comparison results to obtain a prediction model.
[0099] Among them, the training data is used to solve the network parameters that minimize the loss function; the validation data is used to minimize overfitting; and the test data is used to test the classification ability of the network after the network training is completed. The test data is input into the trained deep neural network structure, the difference between the output result and its actual classification result is calculated, and the classification accuracy of the network is estimated. According to the model verification situation, the optimization adjustment or appropriate increase of the labeled samples is carried out. When the labeled sample library is optimized and adjusted, the deep neural network parameters can be fine-tuned, the network structure can be optimized, and the network classification accuracy can be further improved to obtain the prediction model.
[0100] Step 2: Obtain the work surface monitoring video stream collected by the surveillance ball in real time.
[0101] Step 3: Input the single frame image extracted from the video stream into the prediction model.
[0102] In this embodiment, a single frame image is extracted from the video stream, the extracted single frame image is input into the prediction model, the edge image of the power tower is predicted and generated, and the edge image of the power tower is regularized to obtain the power tower contour extraction result.
[0103] The regularization processing method includes: using the Marching Cubes model to extract the boundary image of the edge image of the power tower.
[0104] The method for extracting the boundary image includes: eliminating errors of the edge image based on a coarse adjustment algorithm to obtain a coarse adjustment image; and adjusting the direction of the center line and the node position of the coarse adjustment image based on a fine adjustment algorithm to obtain a boundary image.
[0105] The Douglas-Peucker model is used to polygonize the boundary image and obtain the extraction result of the tower outline.
[0106] In one embodiment of the present invention, since the edges of the tower area generated by model prediction are irregular, the contour lines of the tower coverage area are regularized by extracting key points and main directions to eliminate irregular boundaries and details in the tower range geometry.
[0107] Specifically, the Marching Cubes algorithm is first used to implement boundary extraction. The main steps are divided into two steps: coarse tuning the algorithm to eliminate obvious errors in segmentation and polygonization, and further fine tuning the algorithm to adjust the direction of the lines and the positions of the nodes.
[0108] The implementation process of the coarse adjustment algorithm is as follows: remove polygons S whose area is lower than the threshold; delete edges Td whose length is lower than the given edge length; use the threshold to remove overly sharp angles α; and use the threshold to remove overly smooth angles β.
[0109] The implementation process of the fine-tuning algorithm is as follows: find the long edge W with a threshold; add the direction of the longest edge to the main direction list; add the directions of other edges to the main direction list according to the angle threshold, δ is between their directions and the directions in the list; adjust the long edge according to the list and the angle, and adjust the short edge according to the list and the angle (judged 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 adjusted lines to form the final polygon. The thresholds in this embodiment need to be set according to the actual situation.
[0110] Then use the Douglas-Peucker algorithm to achieve polygonization.
[0111] Step 4: extract the outline of the power tower and generate a power tower extraction map.
[0112] The single-frame image to be identified is processed and input into the trained improved DeepLabV3+ network model to detect the electric towers in the image to be identified, and finally generate an electric tower extraction map.
[0113] Step 5: Input the generated tower extraction image into the target detection model to identify the operating object.
[0114] The object detection model consists of a feature extraction network and an intermediate network.
[0115] Figure 3 is an optional flow chart of determining a prediction frame of an electric tower extraction graph by a target detection model according to an embodiment of the present invention, such as Figure 3As shown, a feature map with workers in the tower extraction map is extracted through a feature extraction network; the feature map is input into an intermediate network, and a candidate box is obtained through the intermediate network. The candidate box includes at least the confidence of the worker. Candidate boxes with confidence values less than a preset confidence threshold are removed, and overlapping candidate boxes are removed to obtain a prediction box. The prediction box is a rectangular box generated by the target detection model, which is used to identify the location of the target object in the image, that is, the area of the worker in the tower extraction map.
[0116] It should be noted that the intermediate network can use the 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, Represents the length of each candidate prediction result. Therefore, each prediction result can be represented as a vector Among them, x, y, w, h, and c represent the horizontal coordinate, vertical coordinate, width, height, and confidence of the candidate box in the detection box, respectively. Indicates the confidence level of the detected target being of different types.
[0117] In one embodiment of the present invention, the target detection model is constructed based on a convolutional neural network, which includes a convolution layer and a pooling layer, and the convolution layer and the pooling layer are configured to skip pixels that do not have valid values during pixel calculation.
[0118] Then the image in the prediction box is divided into multiple superpixels, and the importance score of each superpixel is determined as follows:
[0119] Obtain parameter information of each pixel in the prediction box, including color information and position information; based on the position information, treat adjacent pixels whose color information difference is less than a preset color threshold as the same area, and obtain multiple superpixels based on multiple different areas. Superpixels are a group of tightly connected pixel areas formed by aggregating adjacent pixels together, dividing the image in the prediction box into continuous areas with semantic consistency, thereby reducing redundant information in the image. Generally speaking, multiple pixels in the same superpixel have similar texture, color, brightness and other characteristics.
[0120] In this embodiment, the image in the prediction frame can be segmented into multiple superpixels by using the QuickShift algorithm. Specifically, the QuickShift algorithm creates a set of binary superpixel masks: Where each binary superpixel mask b k ∈{0,1} w×hThe position of the pixel in the kth superpixel, w and h represent the width and height of the image respectively. These superpixels represent multiple consecutive similar pixels, and their presence or absence is controlled by a binary mask. Then, the superpixel representation of the target is obtained according to the prediction box range of each explained target. The number of superpixels related to the nth target detection result, where each superpixel has at least 1 pixel within the detection box range of the explained target.
[0121] The importance score is an indicator used to measure the relative importance of superpixels. Generally, the workers in the prediction box receive relatively higher importance scores. The steps to determine the importance score of each superpixel are as follows: Figure 4 As shown, the specific ones are:
[0122] 1) Obtain multiple groups of sampled images with superpixels; wherein each group of sampled images randomly removes some superpixels.
[0123] 2) Input the sampled image with the retained superpixels into the target detection model, determine the sampling box through the target detection model, and then determine the sampling score based on the difference between the sampling box and the candidate box. The removal and retention of superpixels can be represented by a sampling mask, and the image to be processed with the sampling mask can represent the retained superpixels.
[0124] The specific process includes:
[0125] Input each sampling mask and the tower extraction map into the target detection model to obtain a new detection result vector Then calculate the detection results of o′ and the original candidate box The similarity score S(o,o′) between them is used as the sampling score of each superpixel retained. The similarity score is mainly composed of the product of three parts and can be expressed as:
[0126]
[0127] For each part, they are expressed as:
[0128] S 1 (o,o′)=IoU(x,y,w,h,x′,y′,w′,h′);
[0129] S 2 (o,o′)=c′;
[0130]
[0131] Among them, IoU represents the intersection over union ratio between the original prediction box and the sampled prediction box. Since only the detection results with higher confidence are retained in the prediction box, S 2 Simplified to the confidence c' of the modified image. 1The larger the (o,o′) is, the more similar the modified image is to the original image, that is, the more important the retained superpixel is.
[0132] 3) Determine the weight of each superpixel according to the sampling fraction and retained area in each group of sampled images.
[0133] After obtaining the sampling score S(o,o′) of each randomly sampled image, the superpixels retained in each sampled image are given the same score, and the ratio of the area of the superpixel to all retained superpixels is retained as the weight.
[0134] Each superpixel ends up with a series of importance scores And the ratio of the area of the superpixel in the sampled image to the area of all retained superpixels Normalize all elements in R, that is, for each r 1 Normalize it to get the weight
[0135] 4) Perform weighted averaging on each sampling score based on the weight to obtain the importance score of each superpixel.
[0136] The final importance score of the superpixel is obtained by weighted averaging S according to the weight W. If the superpixel is in a superpixel that has not been sampled, the corresponding value is set to 0, then s k 、r k and w k It can be expressed as a vector of length L, that is, The weighted average can be expressed as S = diag (W × S T ), where diag(·) means taking the diagonal elements of the matrix.
[0137] Finally, this embodiment can assign values to each pixel in the prediction box based on the importance score to obtain a visualization image of the operator target, specifically including:
[0138] Step 1) assigning values to each pixel in the prediction box based on the importance score to obtain a heat map with the importance score of each pixel;
[0139] Step 2) Filter the thermal map and load the thermal map into the tower extraction map through a visualization interface to obtain a visualization image of the operator.
[0140] Through the above embodiment, the original image of the electric tower is collected, the original image is preprocessed to obtain the preprocessed image data, and then the building recognition model is constructed, and the preprocessed image data is input into the model for training to obtain the prediction model, the operation surface monitoring video stream is obtained in real time, a single frame image is extracted from the video stream and input into the prediction model to generate the electric tower contour extraction result, the generated electric tower extraction image is input into the target detection model, the prediction frame of the electric tower extraction image is determined by the target detection model, the image in the prediction frame is divided into multiple superpixels, the importance score of each superpixel is determined, and each pixel in the prediction frame is assigned a value based on the importance score to obtain a visualization image of the operator target on the electric tower. The present invention can detect the operator according to the recognition image of the electric tower, which can significantly improve the safety monitoring accuracy and efficiency of the operation surface, and reduce the work intensity of the supervisor, improve the safety monitoring accuracy and efficiency of the operation surface, and reduce the work intensity of the supervisor.
[0141] The following is a detailed description in conjunction with another embodiment.
[0142] Embodiment 2
[0143] A transmission line operation safety supervision device based on scene recognition provided in this embodiment includes multiple implementation units, each implementation unit corresponds to each implementation step in the above-mentioned embodiment 1.
[0144] Figure 5 is a schematic diagram of an optional transmission line operation safety supervision device based on scene recognition according to an embodiment of the present invention, such as Figure 5 As shown, the power transmission line operation safety supervision device based on scene recognition may include: a video acquisition unit 51, a tower extraction unit 52, a model detection unit 53, a superpixel segmentation unit 54, and an operation image generation unit 55.
[0145] The video acquisition unit 51 is used to acquire the monitoring video stream of the power transmission line operation surface collected by the monitoring device in the current time period, and extract at least one frame of monitoring image containing the power 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 image to generate a tower edge image, and performs regularization on the tower edge image to obtain a tower extraction image containing the tower outline.
[0147] The model detection unit 53 is used to input the power tower extraction image into the target detection model, and determine the prediction box containing the operation object in the power tower extraction image through the target detection model.
[0148] The superpixel segmentation unit 54 is used to segment the image factors in the prediction box into multiple superpixels and determine the importance score of each superpixel, wherein a superpixel is a group of tightly connected pixel areas formed by aggregating adjacent image pixels.
[0149] The operation image generating unit 55 is used to assign values to each pixel in the prediction box based on the importance score to obtain an operation image of the operation object on the target power tower.
[0150] The above-mentioned power transmission line operation safety supervision device based on scene recognition can obtain the power transmission line operation surface monitoring video stream 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 power transmission line operation scene from the monitoring video stream to obtain a monitoring image set, and input the monitoring image set into the line tower detection model through the tower extraction unit 52, and the line tower detection model extracts the tower features of the monitoring image to generate the tower edge image, and regularizes the tower edge image to obtain the tower extraction image containing the tower outline, and inputs the tower extraction image into the target detection model through the model detection unit 53, and determines the prediction box containing the operation object in the tower extraction image through the target detection model, and divides the image factors in the prediction box into multiple superpixels through the superpixel segmentation unit 54, and determines the importance score of each superpixel, wherein the superpixel is a group of closely connected pixel areas formed by aggregating adjacent image pixels, and 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 control ball) can be used to collect the monitoring video stream of the working surface in real time, process the video stream data, and extract single-frame image data containing the tower. The working object can be detected based on the recognition image of the tower (the working object in the image can be identified through target detection). This can significantly improve the safety monitoring accuracy and automatic patrol of the working surface, and improve the monitoring efficiency of the transmission line working surface, thereby solving the technical problem of low patrol efficiency when monitoring high-altitude operations in related technologies.
[0151] Optionally, the line tower detection model is obtained by pre-training. When training the line tower detection model, the power transmission line operation safety supervision device based on scene recognition includes: a tower original image acquisition unit, which is used to acquire the original image of the target tower, crop the original image, and obtain a cropped image data set; a data enhancement unit, which is used to perform data enhancement on the cropped image data set, and filter the enhanced image data set to obtain a filtered image data set; an image feature annotation unit, which is used to perform feature annotation on the filtered image data set based on a geographic information processing system to obtain a labeled image data set; a data division unit, which is used to divide the labeled image data set into a training set and a test set; a model initialization unit, which is used to construct an initialized tower building detection model; a model training unit, which is used to input the training set into the tower building detection model to train the tower building detection model; a model testing unit, which is used to test the trained tower building detection model using the test set when all the labeled images in the training set have been input, and when the test result indicates that the result output by the tower building detection model meets the classification requirements, confirm that the training is completed, and obtain the line tower detection model based on the trained tower building detection model.
[0152] Optionally, the model initialization unit includes: a first acquisition module, used to acquire a deep learning model DeeplabV3+ model for semantic segmentation; a network replacement module, used to replace 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 quantity threshold, and the number of network connections in the target backbone network is less than a second quantity threshold; a network joining module, used to add two deep learning network modules ASPP that perform image segmentation tasks after the target backbone network; a model generation module, used to generate a tower building detection model based on the deep learning model DeeplabV3+ model after the ASPP module is added.
[0153] Optionally, the power tower extraction unit includes: a coarse adjustment module, which is used to eliminate blurred parts and occluded parts in the power tower edge image based on a coarse adjustment algorithm to obtain a coarse adjustment image; a fine adjustment module, which is used to adjust the direction of the contour line and the position of key nodes in the coarse adjustment image based on the fine adjustment algorithm to obtain a boundary image; and a polygonization module, which is used to polygonize the boundary image to obtain a power tower extraction image containing the power tower contour.
[0154] Optionally, the model detection unit includes: an electric tower feature extraction module, used to input the electric tower extraction image into the target detection model, and extract a feature image with a working object in the electric tower extraction 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 of the working object; a candidate box selection module, used to remove candidate boxes whose confidence is less than a preset confidence threshold, and remove overlapping candidate boxes, to obtain a predicted box containing the working object, wherein the predicted box indicates the location where the working object exists.
[0155] Optionally, the superpixel segmentation unit includes: an image pixel parameter acquisition module, used to obtain parameter information of each image pixel in the prediction box, wherein the parameter information includes color information and position information; 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 area based on the position information, and generate multiple superpixels based on the merged multiple pixel areas.
[0156] Optionally, the superpixel segmentation unit includes: a plurality of sampling image acquisition modules, used to acquire a plurality of sampling images containing superpixels, wherein each group of sampling images randomly removes some superpixels and represents the removed superpixels through a sampling mask; a sampling image input module, used to input the sampling image with retained superpixels into a target detection model, and determine the sampling selection box through the target detection model; a sampling score acquisition module, used to determine the sampling score according to the similarity between the object detection result of the sampling selection box and the object detection result of the prediction box; a superpixel assignment module, used to assign the same score to the superpixels retained in each sampling image according to the sampling scores in each group of sampling images, so as to obtain the basic score of the superpixel; a superpixel weight calculation module, used to calculate, for each superpixel, the ratio of the area of the superpixel in the sampling image to the area of all retained superpixels, and obtain the weight of the superpixel based on the ratio; a superpixel importance score determination module, used to perform weighted averaging of the basic scores according to the weights for each superpixel, so as to obtain the importance score of the superpixel.
[0157] Optionally, the operation image generation unit includes: a heat map determination module, which is used to assign values to each pixel in the prediction box based on the importance score to obtain a heat map with the importance score of each pixel; an object acquisition module, which is used to filter the heat map and load the heat map into a tower extraction map containing the tower outline through a visualization interface to obtain a work image of the operation object on the target tower.
[0158] The above-mentioned scene recognition-based power transmission line operation safety supervision device may also include a processor and a memory. The above-mentioned 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 above-mentioned program units stored in the memory to realize corresponding functions.
[0159] The processor includes a kernel, which retrieves the corresponding program unit from the memory. One or more kernels can be set, and automatic inspection of the transmission line operation surface based on scene recognition can be achieved by adjusting kernel parameters.
[0160] The above-mentioned memory may include non-permanent memory in a computer-readable medium, 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 storage chip.
[0161] According to another aspect of an embodiment 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, the device where the computer-readable storage medium is located is controlled to execute any one of the scene recognition-based transmission line operation safety supervision methods in the above-mentioned embodiment 1.
[0162] According to another aspect of an embodiment of the present invention, there is also provided an electronic device, comprising 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 one or more processors, the one or more processors implement the scene recognition-based transmission line operation safety supervision method of any one of the above-mentioned embodiments one.
[0163] The present application also provides a computer program product, including a computer program, which, when executed by a processor, implements the steps of the method for safe supervision of power line operations based on scene recognition described in each embodiment of the present application.
[0164] The present application also provides a computer program product, including a non-volatile computer-readable storage medium, wherein the non-volatile computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the method for safe supervision of power line operations based on scene recognition described in each embodiment of the present application are implemented.
[0165] Figure 6 1 is a hardware structure block diagram of an electronic device (or mobile device) for a method for safely supervising power line operations based on scene recognition according to an embodiment of the present invention. Figure 6 As shown, the electronic device may include one or more ( Figure 6602a, 602b, ..., 602n are used to illustrate) processor 602 (processor 602 may include but is not limited to a processing device such as a microprocessor MCU or a programmable logic device FPGA), and memory 604 for storing data. In addition, it may also 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. It can be understood by those skilled in the art that Figure 6 The structure shown is only for illustration and does not limit the structure of the above electronic device. Figure 6 More or fewer components as shown, or with Figure 6 Different configurations shown.
[0166] The serial numbers of the above embodiments of the present invention are only for description and do not represent the advantages or disadvantages of the embodiments.
[0167] In the above embodiments of the present invention, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0168] In the several embodiments provided in this application, it should be understood that the disclosed technical content can be implemented in other ways. Among them, the device embodiments described above are only schematic. For example, the division of the units can be a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of units or modules, which can be electrical or other forms.
[0169] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple units. Some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.
[0170] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0171] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, magnetic disk or optical disk and other media that can store program codes.
[0172] The above is only a preferred embodiment of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principle of the present invention. These improvements and modifications should also be regarded as the scope of protection of the present invention.
Claims
1. A method for safety supervision of power transmission line operations based on scene recognition, It is characterized in that include: Acquire a monitoring video stream of a power transmission line operation surface collected by a monitoring device in a current time period, and extract at least one frame of monitoring image containing a power transmission line operation scene from the monitoring video stream to obtain a monitoring image set; The monitoring image set is input into a line tower detection model, and the line tower detection model extracts tower features from the monitoring image to generate a tower edge image, and regularizes the tower edge image to obtain a tower extraction image containing a tower outline; Inputting the power tower extraction image into a target detection model, and determining a prediction box containing a work object in the power tower extraction image through the target detection model; Dividing the image factors within the prediction box into a plurality of superpixels, and determining the importance score of each superpixel, wherein the superpixel is a group of closely connected pixel regions formed by aggregating adjacent image pixels; An assignment operation is performed on each pixel in the prediction frame based on the importance score to obtain an operation image of the operation object on the target power tower.
2. The method for safety supervision of power transmission line operation according to claim 1, It is characterized in that The line tower detection model is pre-trained. When training the line tower detection model, it includes: Collecting an original image of a target electric tower, and cropping the original image to obtain a cropped image data set; Performing data enhancement on the cropped image data set, and filtering the data enhanced image data set to obtain a filtered image data set; Performing feature annotation on the filtered image dataset based on a geographic information processing system to obtain an annotated image dataset; Dividing the labeled image dataset into a training set and a test set; Construct an initialized tower building detection model; Inputting the training set into the power tower building detection model to train the power tower building detection model; When all the annotated images in the training set have been input, the test set is used to test the trained electric tower building detection model, and when the test result indicates that the result output by the electric tower building detection model meets the classification requirements, the training is confirmed to be completed, and the line electric tower detection model is obtained based on the trained electric tower building detection model.
3. The method for safety supervision of power transmission line operation according to claim 2, It is characterized in that The steps to construct an initialized tower building detection model include: Get the DeeplabV3+ model for semantic segmentation; Replace 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 quantity threshold, and the number of network connections in the target backbone network is less than a second quantity threshold; Add two deep learning network modules ASPP for performing image segmentation tasks after the target backbone network; Based on the deep learning model DeeplabV3+ model after adding the ASPP module, the power tower building detection model is generated.
4. The method for safety supervision of power transmission line operation according to claim 1, It is characterized in that The step of performing regularization processing on the edge image of the power tower to obtain a power tower extraction image including the outline of the power tower comprises: Eliminate the blurred part and the blocked part in the edge image of the electric tower based on the coarse adjustment algorithm to obtain a coarse adjustment image; Adjust the direction of the contour lines and the positions of key nodes in the roughly adjusted image based on a fine-tuning algorithm to obtain a boundary image; The boundary image is polygonized to obtain an electric tower extraction image including the outline of the electric tower.
5. The method for safety supervision of power transmission line operation according to claim 1, It is characterized in that The step of inputting the power tower extraction image into a target detection model and determining a prediction box containing a work object in the power tower extraction image by using the target detection model comprises: Inputting the power tower extraction image into a target detection model, and extracting a feature image of the operation object in the power tower extraction 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 a plurality of candidate boxes through the intermediate network, wherein each of the candidate boxes at least includes a confidence level of the work object; The candidate boxes whose confidences are less than a preset confidence threshold are removed, and the overlapping candidate boxes are removed to obtain a predicted box containing the operation object, wherein the predicted box identifies a location where the operation object exists.
6. The method for safety supervision of power transmission line operation according to claim 1, It is characterized in that The step of dividing the image factor in the prediction box into a plurality of superpixels and determining the importance score of each superpixel comprises: Acquire parameter information of each image pixel in the prediction frame, wherein the parameter information includes color information and position information; Based on the position information, adjacent image pixels whose color information difference is less than a preset color threshold are merged into the same pixel region, and multiple super pixels are generated based on the merged multiple pixel regions.
7. The method for safety supervision of power transmission line operation according to claim 6, It is characterized in that The step of dividing the image factor in the prediction box into a plurality of superpixels and determining the importance score of each superpixel comprises: Acquire multiple groups of sampled images containing the superpixels, wherein each group of sampled images has some superpixels randomly removed, and the removed superpixels are represented by a sampling mask; Inputting the sampled image retaining the superpixel into the target detection model, and determining the sampling selection box through the target detection model; Determining a sampling score according to a similarity between an object detection result of the sampling selection box and an object detection result of the prediction box; According to the sampling scores in each group of sampled images, the same score is assigned to the superpixels retained in each of the sampled images to obtain a basic score of the superpixel; For each of the superpixels, a ratio of the area of the superpixel in the sampled image to the areas of all retained superpixels is calculated, and a weight of the superpixel is obtained based on the ratio; For each of the superpixels, the basic scores are weighted averaged according to the weights to obtain the importance score of the superpixel.
8. The method for safety supervision of power transmission line operation according to claim 1, It is characterized in that The step of assigning a value to each pixel in the prediction frame based on the importance score to obtain a working image of the working object on the target power tower comprises: Assigning a value to each pixel in the prediction box based on the importance score to obtain a heat map with the importance score of each pixel; The thermal map is filtered and loaded into a tower extraction map including tower outlines through a visualization interface to obtain a working image of a working object on a target tower.
9. A transmission line operation safety supervision device based on scene recognition, It is characterized in that include: A video acquisition unit, used to acquire a monitoring video stream of a power transmission line operation surface collected by a monitoring device in a current time period, and extract at least one frame of monitoring image containing a power transmission line operation scene from the monitoring video stream to obtain a monitoring image set; An electric tower extraction unit is used to input the monitoring image set into a line electric tower detection model, and the line electric tower detection model extracts electric tower features from the monitoring image to generate an electric tower edge image, and performs regularization processing on the electric tower edge image to obtain an electric tower extraction image containing an electric tower outline; A model detection unit, used for inputting the power tower extraction image into a target detection model, and determining a prediction box containing a work object in the power tower extraction image through the target detection model; A superpixel segmentation unit, configured to segment the image factor within the prediction box into a plurality of superpixels and determine an importance score of each superpixel, wherein the superpixel is a group of closely connected pixel regions formed by aggregating adjacent image pixels; The operation image generating unit is used to assign values to each pixel in the prediction frame based on the importance score to obtain an operation image of the operation object on the target power tower.
10. An electronic device, It is characterized in that It includes 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 implement the scene recognition-based transmission line operation safety supervision method as described in any one of claims 1 to 8.
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
Transmission tower satellite remote sensing operation state monitoring method based on improved Yolov5
CN116721360A
Method and device for monitoring and identifying electric power operating personnel, and electronic equipment
CN117830939A
Artificial intelligence system and method serving electric power robot
WO2022188379A1
