A method, system, computer equipment and medium for identifying foreign objects in power transmission lines
Through super-resolution reconstruction dehazing and image segmentation algorithms, combined with arbitrary segmentation models and morphological augmentation technology, a sample library of foreign objects in transmission lines is constructed, which solves the problem of low foreign object identification accuracy in complex backgrounds and achieves high-precision foreign objects in transmission lines. Identify.
Patent Information
- Application Number
- CN202410873603.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-02
- Publication Date
- 2024-09-03
- Estimated Expiration
- 2044-07-02
AI Technical Summary
Existing foreign object recognition algorithms for transmission lines fail to effectively handle the confusion between complex background terrain and foreign objects, resulting in low recognition accuracy.
The super-resolution reconstruction and defogging algorithm is used to eliminate environmental effects, and the image segmentation algorithm is combined for semantic segmentation. A foreign object sample library based on arbitrary segmentation models and target object morphology augmentation is constructed to achieve rapid and accurate identification.
It improves the accuracy and reliability of foreign object identification in transmission lines and is suitable for identification tasks in complex environments.
Smart Images

Figure CN118410724B
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of image recognition, and in particular relates to a method, system, computer equipment and medium for identifying foreign objects in a power transmission line. Background Art
[0002] With the continuous development of information technology, transmission line inspection technology based on drones and video cameras has gradually replaced manual inspection technology. After drones and video cameras obtain images of transmission lines, they upload the images to the background server to identify foreign objects in the transmission lines. In the early days, the transmission line operation and maintenance team used manual inspection images to identify foreign objects in the transmission lines. Due to the large number of images and the influence of human factors, it is easy to miss inspections during the video image inspection process, resulting in the failure to timely discover the existence of foreign objects in the transmission lines, thus affecting the safe operation of the transmission lines.
[0003] Therefore, in order to solve the above problems of manual identification, a lot of research has been done on intelligent algorithms for foreign body identification in power transmission lines. For example, (1) Foreign body identification technology for power transmission lines based on the improved YOLOv4 algorithm, which generates an adapted sample data set through k-means clustering, and uses spatial pyramid pooling to identify foreign bodies in power transmission lines; (2) Foreign body identification technology for power transmission lines based on convolutional neural networks, which constructs four types of foreign bodies in power transmission lines, such as balloons, kites, plastics, and bird nests, and uses convolutional neural networks to identify the types of foreign bodies in power transmission lines; (3) Foreign body identification technology for power transmission lines based on the Dense-net network, which effectively identifies the intrusion of foreign bodies such as kites, bird nests, garbage, and mechanical construction; (4) Foreign body identification technology for power transmission lines based on Hough transform, which identifies the characteristics of foreign bodies in power transmission lines through Hough transform and Hough transform accumulator. However, transmission lines cross complex terrains such as mountains, rivers, and forests, and the image background and foreign objects on the transmission lines are easily confused. The above-mentioned existing transmission line anomaly recognition algorithms have not fully considered this problem, resulting in a low accuracy rate in transmission line foreign object image recognition. Summary of the invention
[0004] In order to solve the problem that the background terrain of the transmission line is complex and the background image and foreign objects on the transmission line are easily confused, resulting in a low accuracy rate of foreign object image recognition on the transmission line, the present invention proposes a method, system, computer equipment and medium for foreign object recognition on the transmission line. The present invention eliminates the influence of the environment on the inspection image of the transmission line by adopting a super-resolution reconstruction defogging algorithm, and then uses an image segmentation algorithm to perform semantic segmentation on the transmission line image to reduce the influence of the background image on the foreign object recognition of the transmission line. Finally, according to the transmission line foreign object sample library constructed based on an arbitrary segmentation model and a target object morphology augmentation algorithm, foreign object recognition on the transmission line is realized quickly and accurately.
[0005] The present invention is achieved through the following technical solutions:
[0006] A method for identifying foreign objects in a power transmission line, the method comprising:
[0007] The collected transmission line images are processed using super-resolution reconstruction and defogging algorithm;
[0008] The processed transmission line image is semantically segmented using a foreign body segmentation and extraction algorithm to extract abnormal features.
[0009] The extracted abnormal feature image is compared with the image in the transmission line foreign body sample library to identify the type of transmission line foreign body; wherein the transmission line foreign body sample library is constructed by an arbitrary segmentation model and a morphological augmentation algorithm.
[0010] In some embodiments, the super-resolution reconstruction and defogging algorithm processes the power transmission line image through a pre-built and trained super-resolution reconstruction and defogging model;
[0011] The super-resolution reconstruction and dehazing model construction and training process includes:
[0012] Based on the collected historical transmission line images, a comparison data set of original normal images and weather images of the transmission line is constructed, and the data set is denoised; the weather image refers to the transmission line image collected under abnormal weather conditions, and the normal image refers to the transmission line image collected under normal weather conditions;
[0013] A super-resolution reconstruction and defogging model is constructed, and the constructed super-resolution reconstruction and defogging model includes a super-resolution structure and a defogging structure. The super-resolution structure continuously samples the weather image so that the feature map of the image develops from a low size to a high size. The model autonomously learns to interpolate pixels according to the image information, and the interpolated high-size feature map does not destroy the original image information. The defogging structure starts from the high-size feature map and restores the normal image through the channel attention mechanism network structure.
[0014] The control data set is input into the super-resolution reconstruction dehazing model for training, and the perceptual loss is used to restore the perceptual quality of the image.
[0015] In some implementations, a normal image is restored through a channel attention mechanism network structure, specifically:
[0016] The features in each convolution kernel channel are extracted through the attention mechanism, each channel is compressed into a point, and the average is directly calculated as the feature value of this channel, thereby achieving image restoration.
[0017] In some implementations, before processing the power transmission line image using the constructed and trained super-resolution reconstruction and defogging model, the method further includes:
[0018] The collected transmission line images are denoised.
[0019] In some embodiments, the foreign body segmentation and extraction algorithm specifically includes:
[0020] The image segmentation model is used to segment the transmission line image's focus area;
[0021] Obtain the multi-scale sample features of the top1 feature from the memory module and the corresponding multi-scale features of the image for channel dimension fusion;
[0022] A semi-supervised learning model is used to extract abnormal features from the image after feature fusion.
[0023] In some implementations, the process of identifying the type of foreign object in a power transmission line specifically includes:
[0024] Calculating the image similarity between the abnormal feature image and the images in the power transmission line foreign body sample library;
[0025] The type of foreign matter on the transmission line is determined based on image similarity.
[0026] In some implementations, the process of constructing the power transmission line foreign body sample library specifically includes:
[0027] Input the historical abnormal feature images into the arbitrary segmentation model to generate a foreign body sample set for the transmission line;
[0028] Screening the abnormal target objects in the power transmission line foreign body sample set, screening out the abnormal generated targets that meet the power transmission scenario, and using the contour information in the annotation to extract the target image by stroking, and retaining the target image at the original size to form a foreign body target image data set;
[0029] Performing morphological augmentation on the foreign body target images in the foreign body target image data set, including: performing random angle rotation and random flipping operations on the foreign body target images; randomly generating a perspective transformation matrix based on a certain pixel point on the foreign body target, and performing perspective transformation to transform the foreign body target from a certain perspective to another perspective;
[0030] The morphologically augmented foreign body target image and the power transmission line scene image are fused; during the image fusion process, the following conditions need to be met: the interface between the foreign body target image and the power transmission line scene image should be smooth; and the interface between the foreign body target image and the power transmission line scene image should be seamless.
[0031] In a second aspect, the present invention provides a transmission line foreign body identification system, the system comprising:
[0032] A super-resolution reconstruction and defogging module, wherein the super-resolution reconstruction and defogging module uses a super-resolution reconstruction and defogging algorithm to process the collected power transmission line images;
[0033] An abnormal segmentation and extraction module, wherein the abnormal segmentation and extraction module uses a foreign body segmentation and extraction algorithm to perform semantic segmentation on the processed power transmission line image to complete abnormal feature extraction;
[0034] And, a foreign object type recognition model, the foreign object type recognition module compares the extracted abnormal feature image with the image in the transmission line foreign object sample library to identify the type of foreign object in the transmission line; wherein the transmission line foreign object sample library is constructed by an arbitrary segmentation model and a morphological augmentation algorithm.
[0035] In a third aspect, the present invention proposes an electronic device, comprising a memory and a processor, wherein the memory stores a computer program, and the processor implements the steps of the method of the present invention when executing the computer program.
[0036] In a fourth aspect, the present invention provides a computer-readable storage medium having a computer program stored thereon, wherein the computer program implements the steps of the method of the present invention when executed by a processor.
[0037] The invention proposes a method, system, computer equipment and medium for identifying foreign objects in a power transmission line. The method reduces the influence of rain, fog, snow, haze and other environments on the power transmission line inspection images through a super-resolution reconstruction defogging algorithm. Then, the image segmentation algorithm is used to perform semantic segmentation on the power transmission line images, and abnormal feature extraction is completed to reduce the influence of the background image on the identification of foreign objects in the power transmission line. Finally, based on a power transmission line foreign object sample database constructed by an arbitrary segmentation model and a target object morphology augmentation algorithm, the type of foreign objects in the power transmission line is accurately and quickly identified, solving the problem of low accuracy of foreign object image identification in the power transmission line caused by the complex power transmission line environment and the easy confusion between the background image and the foreign objects in the power transmission line.
[0038] The invention provides a method, system, computer equipment and medium for identifying foreign objects in a power transmission line, which can be applied to identifying foreign objects in a power transmission line under various complex power transmission line environments, and has high identification accuracy and reliability. BRIEF DESCRIPTION OF THE DRAWINGS
[0039] The drawings described herein are used to provide a further understanding of the embodiments of the present invention, constitute a part of this application, and do not constitute a limitation of the embodiments of the present invention. In the drawings:
[0040] Figure 1 is a flow chart of a method according to an embodiment of the present invention;
[0041] Figure 2 A U-net network structure diagram of an embodiment of the present invention;
[0042] Figure 3 is a system principle block diagram of an embodiment of the present invention;
[0043] Figure 4 The figure is a schematic diagram of the computer device architecture according to an embodiment of the present invention. DETAILED DESCRIPTION
[0044] In order to make the objectives, technical solutions and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with embodiments and drawings. The exemplary embodiments of the present invention and their description are only used to explain the present invention and are not intended to limit the present invention.
[0045] Example:
[0046] The existing transmission line foreign object recognition technology does not fully consider the complex background terrain of the transmission line. The background image and the transmission line foreign object are easily confused, resulting in a low accuracy rate of transmission line foreign object recognition. In response to this problem, this embodiment proposes a transmission line foreign object recognition method. The transmission line foreign object recognition method proposed in this embodiment fully considers the impact of the transmission line environment on the transmission line inspection image, and reduces the impact of the background image on the transmission line foreign object recognition. Finally, the target object morphology augmentation algorithm is used to achieve high-precision recognition of transmission line foreign objects.
[0047] like Figure 1 As shown, the method for identifying foreign objects in a power transmission line proposed in this embodiment specifically includes the following steps:
[0048] Step 100: Process the collected power transmission line image using a super-resolution reconstruction and defogging algorithm.
[0049] In order to ensure that the transmission line foreign object recognition algorithm can realize all-weather foreign object recognition, this step 100 adopts a super-resolution reconstruction and defogging algorithm to restore the transmission line images collected on rainy days, foggy days, haze days, snowy days, etc. to images in normal weather, so as to reduce the impact of rain, fog, snow and other environments on the transmission line inspection images, and provide more reliable transmission line images for subsequent steps.
[0050] Optionally, this step 100 processes the power transmission line image by using a pre-built and trained super-resolution reconstruction and defogging model to reduce the impact of the environment on the power transmission line image and provide a more reliable data source for subsequent abnormality identification. The super-resolution reconstruction and defogging model construction and training process specifically includes:
[0051] Step 101, data preparation and preprocessing: Based on the collected historical transmission line images, a comparison data set of original normal transmission line images and weather images is constructed, and used as an evaluation benchmark for super-resolution reconstruction and defogging, and the data set is denoised to eliminate the impact of noise on image recognition. Among them, weather images refer to transmission line images collected under abnormal weather conditions such as rain, fog, haze, and snow. Normal images refer to transmission line images collected under normal weather conditions.
[0052] Step 102, super-resolution reconstruction and defogging model construction: The constructed super-resolution reconstruction and defogging model includes two parts: super-resolution structure and defogging structure. The super-resolution structure continuously samples the weather image so that the feature map of the image develops from low size to high size. The model autonomously learns to interpolate pixels according to the image information. The interpolated high-size feature map will not destroy the original image information. The defogging structure starts from the high-size feature map and restores the normal image through the channel attention mechanism network structure, and restores the details of various objects in the output line scene as well as the brightness and color changes.
[0053] Among them, the channel attention mechanism extracts the features in each convolution kernel channel, compresses each channel into a point, and directly calculates the average as the feature value of this channel, thereby realizing image restoration. The channel defogging result of the transmission line image super-resolution reconstruction defogging model is expressed as:
[0054]
[0055] In the formula, e ZC represents the channel dehazing result, l H , l W are the length and width of the channel attention mechanism feature map channel; β ik are different feature map channels; sum is the summation function.
[0056] Step 103, super-resolution reconstruction defogging model training: After the super-resolution reconstruction defogging model is built, the corresponding weather image and the original normal image are input for training, and the perceptual loss is used to restore the perceptual quality of the image. The perceptual loss takes into account the similarity of color, contrast and structure. Compared with the traditional pixel-level loss, the perceptual loss is more capable of generating images with better visual perception quality. At the same time, due to the use of high-level feature representation, the perceptual loss has generalization ability to a certain extent and is not easy to overfit to specific training data. After training, the desired defogging effect is finally achieved.
[0057] After that, the trained super-resolution reconstruction defogging model can be used to defog and restore the real-time collected power line images, reduce the impact of factors such as weather on the recognition of foreign objects in the transmission line, and thus improve the accuracy of foreign object recognition in the transmission line. Optionally, before defogging and restoring the real-time collected power line images, the transmission line images need to be denoised to eliminate the impact of noise on image recognition.
[0058] Step 200, using a foreign body segmentation and extraction algorithm to perform semantic segmentation on the processed power transmission line image to complete abnormal feature extraction.
[0059] This step 200 uses a foreign body segmentation and extraction algorithm to perform semantic segmentation on the transmission line image, thereby reducing the impact of the background image on the recognition of foreign bodies in the transmission line and further improving the recognition accuracy. Optionally, the foreign body segmentation and extraction algorithm used in this step 200 specifically includes:
[0060] Step 201, key area positioning: Use an image segmentation model to segment the transmission line image focus area. The image segmentation model can use a U-net network structure, which introduces jump connections to greatly improve the accuracy of image segmentation. Specifically, the U-net network structure consists of an encoder, a decoder, and a bottleneck layer. Figure 2 The encoder part includes four blocks (such as Figure 2 The decoder consists of four blocks (such as Figure 2 The bottleneck layer (i.e. Figure 2 The front end of the output image is composed of two 3*3 convolutional layers with Relu activation function and one 1*1 convolutional layer to obtain the final output image.
[0061] The U-net network structure can be trained with a small number of historical power transmission line image sample sets to obtain an image segmentation model, which can predict the pixel edge category and thus segment the image focus area.
[0062] The anchor box method is used to divide the bounding box of the power line. The anchor box method is a method for dividing the boundaries of image regions. This method takes the power line as the center and generates multiple bounding boxes with different scaling ratios and aspect ratios, that is, multi-scale input sample features, which has the characteristics of fast division speed. Specifically, the power line anchor box takes the power line as the center, and its width and height are:
[0063]
[0064] Where w, h are the width and height of the anchor box respectively; W, H are the power line input images respectively; o is the scaling ratio of the power line image; z is the aspect ratio of the power line image.
[0065] Step 202, feature fusion: obtain the multi-scale sample features of the top1 feature from the memory module and the corresponding multi-scale features of the image for channel dimension fusion. Specifically, the 4X, 8X, 16X multi-scale sample features of the top1 feature obtained from the memory module and the input sample features are fused in the channel dimension according to the 4X, 8X, 16X multi-scale features of the image. In order to improve the robustness of the detection model, a variety of fusion operators can be used, for example, differential fusion according to differences and weighted fusion of prominent features can be used. After fusion, the attention mechanism of deep learning is introduced to adjust the weight of the degree of attention to a certain image channel so that it focuses on the differences under a certain feature dimension.
[0066] Step 203, abnormal feature extraction: continue to extract abnormal features from the information after feature fusion. This embodiment uses a semi-supervised learning (SSL) model to extract abnormal features. The semi-supervised learning model can use the fusion training method of labeled and unlabeled transmission line foreign body samples to reduce the workload of transmission line image annotation. When training the semi-supervised learning model, the goal is to minimize the mean squared error (MSE). The more training times, the more convergence the transmission line image. Among them, the mean squared loss function D MSE for:
[0067]
[0068] In the formula, m d is the number of transmission line images; F j is the predicted value of abnormal features of the j-th transmission line image; Z j The true value of the abnormal feature of the j-th transmission line image.
[0069] Step 300, compare the extracted abnormal feature image with the image in the power transmission line foreign body sample library to identify the type of power transmission line foreign body. The power transmission line foreign body sample library is constructed by an arbitrary segmentation model and a morphological augmentation algorithm.
[0070] Optionally, this embodiment may use a similarity algorithm to compare the abnormal feature image with the images in the power line foreign object sample library, that is, by calculating the similarity between the abnormal feature image and the images in the power line foreign object sample library, the type of foreign object is determined based on the similarity. Specifically, the image similarity calculation method is:
[0071]
[0072] In the formula, e cd is the similarity value; m is the number of PIPS layers of the transmission line foreign body image; n is the number of weights of each layer of the transmission line foreign body image PIPS; u j Training weights for the j-th layer of transmission line foreign body images; v j is the mapping score of the j-th layer transmission line foreign body image; ω k is the kth weight of the PIPS layer of the transmission line foreign body image. ak and ak They respectively represent the normalized values of the current transmission line foreign object image and the transmission line foreign object image sample after feature extraction.
[0073] The data set generated by the Segment Anything Model (SAM) contains a large amount of data and a rich variety of data. At the same time, the annotation information of each target is relatively complete, so it is very suitable for the needs of generating abnormal sample sets in this embodiment. Therefore, this embodiment adopts the Segment Anything Model to establish a transmission line foreign body sample set, and expands the various forms and color changes of foreign bodies through the target morphology augmentation algorithm, thereby constructing a transmission line foreign body sample library to achieve accurate identification of transmission line foreign bodies. Specifically, the construction process of the transmission line foreign body sample library specifically includes:
[0074] Step 301, foreign body target screening: input the historical abnormal feature image into SAM to generate a transmission line foreign body sample set. In order to be as close to the actual foreign body situation as possible, it is necessary to screen the abnormal target objects and screen out the abnormal targets that meet the transmission scenario. Considering that objects hanging on the transmission line are generally light in weight, and the foreign objects are in the shape of cloth or rope and can surround the transmission line. Therefore, after statistics on the transmission line foreign body sample set, it is found that there are many target objects that meet the characteristics of foreign objects in high-altitude transmission lines. Target objects such as dustproof nets, clothes, and films are selected as foreign body generation intrusions, and the contour information in the annotation is used to extract the target image by tracing, and the target image is saved at the original size to form a target image data set for use in subsequent steps.
[0075] Step 302, augmentation of the morphology of foreign object targets: After the target objects are screened, the obtained foreign object target image data set covers almost all foreign objects that may appear in the high-altitude line. Considering that foreign objects are not only different in type, but also in morphology, in order to make the morphology more diverse, the morphological augmentation algorithm is used in this step to expand the morphology of foreign object targets, making the abnormal targets more diverse. The size of the abnormal target object is proportionally scaled to within a certain pixel to ensure that the generated high-altitude foreign object image will not appear too large and is closer to reality.
[0076] The foreign object target image is rotated at random angles and flipped randomly to simulate various forms of hanging objects on the transmission line.
[0077] Based on a certain pixel point on the abnormal target object, a perspective transformation matrix is randomly generated and a perspective transformation is performed to transform the target object from one perspective to another, thereby simulating the shape of the hanging object near or far on the transmission line.
[0078] After the above operations, abnormal targets become more diverse, and the recognition model becomes more robust and more generalizable due to morphological augmentation.
[0079] Step 303, target object background fusion: After the abnormal target (foreground) is screened and the morphological augmentation is completed, it is necessary to fuse the image with the power transmission line scene (background). In order to make the fusion effect closer to reality, when the foreground image (i.e., the foreign object target image) is placed on the background image, two factors need to be considered: (1) The junction between the foreground image and the background image should be kept as smooth as possible; (2) The junction between the foreground image and the background image should be seamless, that is, the pixel values of the foreground image and the background image at the junction point need to keep the boundary consistent.
[0080] The above two factors can be understood as the same gradient of the foreground image and the background image and the same pixel value on the boundary. Among them, smoothness can be expressed as:
[0081]
[0082] Where δ represents the area covered by the foreground after image fusion, f represents the pixel function within δ after image fusion, and v represents the gradient field of the foreground image area. Represents the gradient operator.
[0083] Keeping the boundaries consistent can be expressed as:
[0084]
[0085] In the formula, f * Represents the pixel function outside δ after image fusion. The above can be simplified to solving the Poisson equation in discrete space, and the optimal fusion state of the foreground and background can be obtained after the solution. After fusion, a transmission line foreign body sample library consisting of foreign body target images of various forms and types is obtained.
[0086] This embodiment also proposes a transmission line foreign body identification system, such as Figure 3 As shown, the system proposed in this embodiment specifically includes:
[0087] The super-resolution reconstruction and defogging module uses the super-resolution reconstruction and defogging algorithm to process the collected transmission line images. The specific processing process of the super-resolution reconstruction and defogging module is as described in the above method, and will not be repeated here.
[0088] The abnormal segmentation and extraction module uses the foreign body segmentation and extraction algorithm to perform semantic segmentation on the processed power transmission line image and complete the abnormal feature extraction. The specific processing process of the abnormal segmentation and extraction module is as described in the above method, and will not be repeated here.
[0089] And, a foreign body type recognition module, which compares the extracted abnormal feature image with the image in the transmission line foreign body sample library to identify the type of foreign body on the transmission line. The transmission line foreign body sample library is constructed by an arbitrary segmented model data set and a morphological augmentation algorithm. The specific processing process of the foreign body type recognition module and the construction process of the transmission line foreign body sample library are as described in the above method, and will not be repeated here.
[0090] Optionally, the system provided in this embodiment further includes:
[0091] A data acquisition module collects images of power transmission lines using a drone or an image acquisition device.
[0092] This embodiment also provides a computer device for executing the above method of this embodiment.
[0093] Specific as Figure 4 As shown, a computer device includes a processor, a memory and a system bus; various device components including the memory and the processor are connected to the system bus. The processor is a piece of hardware used to execute computer program instructions through basic arithmetic and logical operations in a computer system. The memory is a physical device used to temporarily or permanently store computer programs or data (e.g., program status information). The system bus can be any of the following types of bus structures, including a memory bus or a memory controller, a peripheral bus, and a local bus. The processor and the memory can communicate data through the system bus. The memory includes a read-only memory (ROM) or a flash memory (not shown in the figure), and a random access memory (RAM), and RAM generally refers to the main memory loaded with the operating system and computer programs.
[0094] Computer devices generally include a storage device. The storage device can be selected from a variety of computer-readable media, which refers to any available media that can be accessed by the computer device, including both removable and fixed media. For example, computer-readable media include, but are not limited to, flash memory (micro SD card), CD-ROM, digital versatile disc (DVD) or other optical disk storage, magnetic tape cassettes, magnetic tapes, magnetic disk storage or other magnetic storage devices, or any other medium that can be used to store the desired information and can be accessed by the computer device.
[0095] Computer devices can be logically connected to one or more network terminals in a network environment. Network terminals can be personal computers, servers, routers, smart phones, tablets, or other public network nodes. Computer devices are connected to network terminals through network interfaces (local area network LAN interfaces). A local area network (LAN) is a network of computers interconnected within a limited area, such as a home, school, computer laboratory, or office building using network media. WiFi and twisted pair cabling Ethernet are the two most commonly used technologies for building LANs.
[0096] It should be noted that other computer systems including more or fewer subsystems than a computer device may also be suitable for the invention.
[0097] As described in detail above, the computer device applicable to the present embodiment can perform the specified operations of the above-mentioned power transmission line foreign body identification method. The computer device performs these operations in the form of software instructions running in a computer-readable medium by a processor. These software instructions can be read into the memory from a storage device or from another device through a local area network interface. The software instructions stored in the memory enable the processor to perform the above-mentioned power transmission line foreign body identification method. In addition, the present invention can also be implemented by hardware circuits or hardware circuits combined with software instructions. Therefore, the implementation of this embodiment is not limited to any specific combination of hardware circuits and software.
[0098] The specific implementation methods described above further illustrate the objectives, technical solutions and beneficial effects of the present invention in detail. It should be understood that the above description is only a specific implementation method of the present invention and is not intended to limit the scope of protection of the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the scope of protection of the present invention.
Claims
1. A method for identifying foreign objects in a power transmission line, characterized in that: The method comprises: The collected transmission line images are processed using super-resolution reconstruction and defogging algorithms; The processed transmission line image is semantically segmented using a foreign body segmentation and extraction algorithm to extract abnormal features. The extracted abnormal feature image is compared with the image in the transmission line foreign body sample library to identify the type of foreign body on the transmission line; wherein the transmission line foreign body sample library is constructed by an arbitrary segmentation model and a morphological augmentation algorithm; the super-resolution reconstruction and defogging algorithm processes the transmission line image by using a pre-constructed and trained super-resolution reconstruction and defogging model; The super-resolution reconstruction and dehazing model construction and training process includes: Based on the collected historical transmission line images, a comparison data set of original normal images and weather images of the transmission line is constructed, and the data set is denoised; the weather image refers to the transmission line image collected under abnormal weather conditions, and the normal image refers to the transmission line image collected under normal weather conditions; A super-resolution reconstruction and defogging model is constructed, and the constructed super-resolution reconstruction and defogging model includes a super-resolution structure and a defogging structure. The super-resolution structure continuously samples the weather image so that the feature map of the image develops from a low size to a high size. The model autonomously learns to interpolate pixels according to the image information, and the interpolated high-size feature map does not destroy the original image information. The defogging structure starts from the high-size feature map and restores the normal image through the channel attention mechanism network structure. Inputting the control data set into the super-resolution reconstruction dehazing model for training, and using perceptual loss to restore the perceptual quality of the image; The foreign body segmentation and extraction algorithm specifically includes: The image segmentation model is used to segment the transmission line image's focus area; Obtain the multi-scale sample features of the top1 feature from the memory module and the corresponding multi-scale features of the image for channel dimension fusion; A semi-supervised learning model is used to extract abnormal features from the image after feature fusion; The construction process of the transmission line foreign body sample library specifically includes: Input the historical abnormal feature images into the arbitrary segmentation model to generate a foreign body sample set for the transmission line; Screening the abnormal target objects in the power transmission line foreign body sample set, screening out the abnormal generated targets that meet the power transmission scenario, and using the contour information in the annotation to extract the target image by stroking, and retaining the target image at the original size to form a foreign body target image data set; Performing morphological augmentation on the foreign body target images in the foreign body target image data set, including: performing random angle rotation and random flipping operations on the foreign body target images; randomly generating a perspective transformation matrix based on a certain pixel point on the foreign body target, and performing perspective transformation to transform the foreign body target from a certain perspective to another perspective; The morphologically augmented foreign body target image and the power transmission line scene image are fused; during the image fusion process, the following conditions need to be met: the interface between the foreign body target image and the power transmission line scene image should be smooth; and the interface between the foreign body target image and the power transmission line scene image should be seamless.
2. A method for identifying foreign objects in a power transmission line according to claim 1, characterized in that: After the channel attention mechanism network structure, the normal image is restored, specifically: The features in each convolution kernel channel are extracted through the attention mechanism, each channel is compressed into a point, and the average is directly calculated as the feature value of this channel, thereby achieving image restoration.
3. A method for identifying foreign objects in a power transmission line according to claim 1, characterized in that: Before using the constructed and trained super-resolution reconstruction and dehazing model to process the transmission line image, it also includes: The collected transmission line images are denoised.
4. A method for identifying foreign objects in a power transmission line according to claim 1, characterized in that: The process of identifying the type of foreign matter on a transmission line specifically includes: Calculating the image similarity between the abnormal feature image and the images in the power transmission line foreign body sample library; The type of foreign matter on the transmission line is determined based on image similarity.
5. A foreign body identification system for a power transmission line, characterized in that: The system comprises: A super-resolution reconstruction and defogging module, wherein the super-resolution reconstruction and defogging module uses a super-resolution reconstruction and defogging algorithm to process the collected power transmission line images; An abnormal segmentation and extraction module, wherein the abnormal segmentation and extraction module uses a foreign body segmentation and extraction algorithm to perform semantic segmentation on the processed power transmission line image to complete abnormal feature extraction; and, a foreign body type recognition model, wherein the foreign body type recognition module compares the extracted abnormal feature image with the image in the transmission line foreign body sample library to identify the type of the transmission line foreign body; wherein the transmission line foreign body sample library is constructed by an arbitrary segmentation model and a morphological augmentation algorithm; The super-resolution reconstruction and defogging algorithm processes the transmission line image through a pre-built and trained super-resolution reconstruction and defogging model; The super-resolution reconstruction and dehazing model construction and training process includes: Based on the collected historical transmission line images, a comparison data set of original normal images and weather images of the transmission line is constructed, and the data set is denoised; the weather image refers to the transmission line image collected under abnormal weather conditions, and the normal image refers to the transmission line image collected under normal weather conditions; A super-resolution reconstruction and defogging model is constructed, and the constructed super-resolution reconstruction and defogging model includes a super-resolution structure and a defogging structure. The super-resolution structure continuously samples the weather image so that the feature map of the image develops from a low size to a high size. The model autonomously learns to interpolate pixels according to the image information, and the interpolated high-size feature map does not destroy the original image information. The defogging structure starts from the high-size feature map and restores the normal image through the channel attention mechanism network structure. Inputting the control data set into the super-resolution reconstruction dehazing model for training, and using perceptual loss to restore the perceptual quality of the image; The foreign body segmentation and extraction algorithm specifically includes: The image segmentation model is used to segment the transmission line image's focus area; Obtain the multi-scale sample features of the top1 feature from the memory module and the corresponding multi-scale features of the image for channel dimension fusion; A semi-supervised learning model is used to extract abnormal features from the image after feature fusion; The construction process of the transmission line foreign body sample library specifically includes: Input the historical abnormal feature images into the arbitrary segmentation model to generate a foreign body sample set for the transmission line; Screening the abnormal target objects in the power transmission line foreign body sample set, screening out the abnormal generated targets that meet the power transmission scenario, and using the contour information in the annotation to extract the target image by stroking, and retaining the target image at the original size to form a foreign body target image data set; Performing morphological augmentation on the foreign body target images in the foreign body target image data set, including: performing random angle rotation and random flipping operations on the foreign body target images; randomly generating a perspective transformation matrix based on a certain pixel point on the foreign body target, and performing perspective transformation to transform the foreign body target from a certain perspective to another perspective; The morphologically augmented foreign body target image and the power transmission line scene image are fused; during the image fusion process, the following conditions need to be met: the interface between the foreign body target image and the power transmission line scene image should be smooth; and the interface between the foreign body target image and the power transmission line scene image should be seamless.
6. An electronic device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 4 are implemented.
7. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 4 are implemented.
