CN116703822A - Transmission line insulation damage detection method, model training method, device and equipment - Google Patents
Transmission line insulation damage detection method, model training method, device and equipment Download PDFInfo
- Publication number
- CN116703822A CN116703822A CN202310438894.1A CN202310438894A CN116703822A CN 116703822 A CN116703822 A CN 116703822A CN 202310438894 A CN202310438894 A CN 202310438894A CN 116703822 A CN116703822 A CN 116703822A
- Authority
- CN
- China
- Prior art keywords
- image
- infrared
- transmission line
- visible light
- insulation damage
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T7/00—Image analysis
- G06T7/0002—Inspection of images, e.g. flaw detection
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06N—COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- G06N3/00—Computing arrangements based on biological models
- G06N3/02—Neural networks
- G06N3/04—Architecture, e.g. interconnection topology
- G06N3/045—Combinations of networks
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06N—COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- G06N3/00—Computing arrangements based on biological models
- G06N3/02—Neural networks
- G06N3/04—Architecture, e.g. interconnection topology
- G06N3/045—Combinations of networks
- G06N3/0455—Auto-encoder networks; Encoder-decoder networks
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06N—COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- G06N3/00—Computing arrangements based on biological models
- G06N3/02—Neural networks
- G06N3/04—Architecture, e.g. interconnection topology
- G06N3/0464—Convolutional networks [CNN, ConvNet]
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06N—COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- G06N3/00—Computing arrangements based on biological models
- G06N3/02—Neural networks
- G06N3/08—Learning methods
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T5/00—Image enhancement or restoration
- G06T5/50—Image enhancement or restoration using two or more images, e.g. averaging or subtraction
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T7/00—Image analysis
- G06T7/10—Segmentation; Edge detection
- G06T7/11—Region-based segmentation
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T7/00—Image analysis
- G06T7/30—Determination of transform parameters for the alignment of images, i.e. image registration
- G06T7/33—Determination of transform parameters for the alignment of images, i.e. image registration using feature-based methods
- G06T7/337—Determination of transform parameters for the alignment of images, i.e. image registration using feature-based methods involving reference images or patches
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06V—IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06V10/00—Arrangements for image or video recognition or understanding
- G06V10/40—Extraction of image or video features
- G06V10/44—Local feature extraction by analysis of parts of the pattern, e.g. by detecting edges, contours, loops, corners, strokes or intersections; Connectivity analysis, e.g. of connected components
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06V—IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06V10/00—Arrangements for image or video recognition or understanding
- G06V10/40—Extraction of image or video features
- G06V10/46—Descriptors for shape, contour or point-related descriptors, e.g. scale invariant feature transform [SIFT] or bags of words [BoW]; Salient regional features
- G06V10/462—Salient features, e.g. scale invariant feature transforms [SIFT]
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T2207/00—Indexing scheme for image analysis or image enhancement
- G06T2207/10—Image acquisition modality
- G06T2207/10048—Infrared image
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T2207/00—Indexing scheme for image analysis or image enhancement
- G06T2207/20—Special algorithmic details
- G06T2207/20021—Dividing image into blocks, subimages or windows
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T2207/00—Indexing scheme for image analysis or image enhancement
- G06T2207/20—Special algorithmic details
- G06T2207/20081—Training; Learning
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T2207/00—Indexing scheme for image analysis or image enhancement
- G06T2207/20—Special algorithmic details
- G06T2207/20084—Artificial neural networks [ANN]
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T2207/00—Indexing scheme for image analysis or image enhancement
- G06T2207/20—Special algorithmic details
- G06T2207/20112—Image segmentation details
- G06T2207/20132—Image cropping
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T2207/00—Indexing scheme for image analysis or image enhancement
- G06T2207/20—Special algorithmic details
- G06T2207/20212—Image combination
- G06T2207/20221—Image fusion; Image merging
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y04—INFORMATION OR COMMUNICATION TECHNOLOGIES HAVING AN IMPACT ON OTHER TECHNOLOGY AREAS
- Y04S—SYSTEMS INTEGRATING TECHNOLOGIES RELATED TO POWER NETWORK OPERATION, COMMUNICATION OR INFORMATION TECHNOLOGIES FOR IMPROVING THE ELECTRICAL POWER GENERATION, TRANSMISSION, DISTRIBUTION, MANAGEMENT OR USAGE, i.e. SMART GRIDS
- Y04S10/00—Systems supporting electrical power generation, transmission or distribution
- Y04S10/50—Systems or methods supporting the power network operation or management, involving a certain degree of interaction with the load-side end user applications
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Computer Vision & Pattern Recognition (AREA)
- Biomedical Technology (AREA)
- General Engineering & Computer Science (AREA)
- Health & Medical Sciences (AREA)
- Life Sciences & Earth Sciences (AREA)
- Artificial Intelligence (AREA)
- Software Systems (AREA)
- Biophysics (AREA)
- Computational Linguistics (AREA)
- Data Mining & Analysis (AREA)
- Evolutionary Computation (AREA)
- General Health & Medical Sciences (AREA)
- Molecular Biology (AREA)
- Computing Systems (AREA)
- Mathematical Physics (AREA)
- Multimedia (AREA)
- Quality & Reliability (AREA)
- Investigating Materials By The Use Of Optical Means Adapted For Particular Applications (AREA)
Abstract
Description
技术领域technical field
本申请涉及输电线路绝缘破损检测技术领域,特别是涉及一种输电线路绝缘破损检测方法、模型训练方法、装置、计算机设备和存储介质。The present application relates to the technical field of transmission line insulation damage detection, in particular to a transmission line insulation damage detection method, model training method, device, computer equipment and storage medium.
背景技术Background technique
输电线路是电力供应的关键环节,如果输电线路存在安全隐患或故障,将直接影响用户的用电质量和用电安全。输电线路长期暴露在自然环境中,受到风、雨、雷电等各种自然因素的影响,易出现腐蚀、老化、裂纹等损伤,从而导致绝缘破损。定期巡检可以及时发现这些问题并进行及时的维修,延长输电线路的使用寿命。Transmission lines are a key link in power supply. If there are potential safety hazards or failures in transmission lines, it will directly affect the quality and safety of power consumption for users. Transmission lines are exposed to the natural environment for a long time and are affected by various natural factors such as wind, rain, lightning, etc., and are prone to corrosion, aging, cracks and other damages, resulting in insulation damage. Regular inspections can detect these problems in time and carry out timely maintenance to prolong the service life of transmission lines.
在线路绝缘缺陷检测中,可见光图像和红外图像各有优劣。单一使用可见光或者红外图像进行输电线路的绝缘缺陷检测具有较大的场景限制。在可见光图像中,输电线路的定位效率较高,但仅通过纹理判断是否出现破损难度较大,稳定度较差。红外图像虽然可以通过输电线路的辐射强度判断是否存在绝缘外表的破损,但红外图像纹理较差,无法直接利用其进行精准的线路定位。因此,需要提出一种能够自动化完成线路的定位和输电线路绝缘破损的检测的方法。In the detection of line insulation defects, visible light images and infrared images have their own advantages and disadvantages. Single use of visible light or infrared images for insulation defect detection of transmission lines has a large scene limitation. In the visible light image, the positioning efficiency of the transmission line is high, but it is difficult to judge whether there is damage only through the texture, and the stability is poor. Although the infrared image can judge whether there is damage to the insulation surface through the radiation intensity of the transmission line, the texture of the infrared image is poor, and it cannot be directly used for accurate line positioning. Therefore, it is necessary to propose a method that can automatically locate the line and detect the insulation damage of the transmission line.
发明内容Contents of the invention
基于此,有必要针对上述技术问题,提供一种能够自动化完成线路定位和输电线路绝缘破损检测的输电线路绝缘破损检测方法、模型训练方法、装置、计算机设备和存储介质。Based on this, it is necessary to address the above technical problems and provide a transmission line insulation damage detection method, model training method, device, computer equipment and storage medium that can automatically complete line location and transmission line insulation damage detection.
第一方面,本申请提供了一种输电线路绝缘破损检测模型的训练方法。该方法包括:In a first aspect, the present application provides a training method for a transmission line insulation damage detection model. The method includes:
获取输电线路的可见光图像和红外图像;Obtain visible light images and infrared images of transmission lines;
对可见光图像和红外图像进行配准,获得配准可见光图像和配准红外图像;Register the visible light image and the infrared image to obtain the registered visible light image and the registered infrared image;
将配准可见光图像和配准红外图像进行融合,获得可见红外融合图像;Fusing the registered visible light image and the registered infrared image to obtain a visible infrared fusion image;
将可见红外融合图像输入图像分割模型,生成输电线路绝缘破损检测模型。The visible infrared fusion image is input into the image segmentation model to generate a transmission line insulation damage detection model.
在一个实施例中,对可见光图像和红外图像进行配准,获得配准可见光图像和配准红外图像包括:In one embodiment, registering the visible light image and the infrared image, and obtaining the registered visible light image and the registered infrared image includes:
提取可见光图像和红外图像的特征点;Extract feature points of visible light images and infrared images;
使用特征描述子将可见光图像和红外图像中的特征点进行匹配;Use feature descriptors to match feature points in visible light images and infrared images;
根据特征点匹配的结果对可见光图像和红外图像进行配准,获得配准可见光图像和配准红外图像。The visible light image and the infrared image are registered according to the result of feature point matching, and the registered visible light image and the registered infrared image are obtained.
在一个实施例中,将可见红外融合图像输入图像分割模型,生成输电线路绝缘破损检测模型包括:In one embodiment, inputting the visible-infrared fusion image into the image segmentation model to generate a transmission line insulation damage detection model includes:
将可见红外融合图像输入编码器,获取可见红外融合图像的特征信息;Input the visible infrared fusion image into the encoder to obtain the feature information of the visible infrared fusion image;
将特征信息输入解码器,获取可见红外融合图像的分割结果;Input the feature information into the decoder to obtain the segmentation result of the visible infrared fusion image;
使用交叉熵损失函数基于分割结果获取分割结果与真实标签之间的差异值;Use the cross-entropy loss function to obtain the difference value between the segmentation result and the real label based on the segmentation result;
根据差异值更新图像分割模型的参数,生成输电线路绝缘破损检测模型。The parameters of the image segmentation model are updated according to the difference value to generate a transmission line insulation damage detection model.
在一个实施例中,将可见红外融合图像输入编码器,获取可见红外融合图像的特征信息还包括:In one embodiment, inputting the visible-infrared fusion image into the encoder, and obtaining the feature information of the visible-infrared fusion image also includes:
每个编码器之间通过指定模块传递特征信息。Each encoder transmits feature information through a designated module.
在一个实施例中,将特征信息输入解码器,获取可见红外融合图像的分割结果还包括:In one embodiment, the feature information is input into the decoder, and the segmentation result of obtaining the visible-infrared fusion image also includes:
通过跳跃连接模块在编码器和解码器之间传递特征信息。The feature information is transferred between the encoder and decoder through a skip connection module.
第二方面,本申请还提供了一种输电线路绝缘破损检测方法,输电线路绝缘破损检测方法使用如第一方面提供的输电线路绝缘破损检测模型。该方法包括:In the second aspect, the present application also provides a method for detecting insulation damage of a transmission line, which uses the detection model for insulation damage of a transmission line as provided in the first aspect. The method includes:
获取实时图像集;Get a live image set;
调用输电线路绝缘破损检测模型,将实时图像集输入输电线路绝缘破损检测模型,获取绝缘破损的位置信息。Call the transmission line insulation damage detection model, input the real-time image set into the transmission line insulation damage detection model, and obtain the location information of the insulation damage.
第三方面,本申请还提供了一种输电线路绝缘破损检测模型的训练装置。In a third aspect, the present application also provides a training device for a transmission line insulation damage detection model.
该装置包括:The unit includes:
图像获取模块,用于获取输电线路的可见光图像和红外图像;An image acquisition module, configured to acquire visible light images and infrared images of power transmission lines;
图像配准模块,用于对可见光图像和红外图像进行配准,获得配准可见光图像和配准红外图像;The image registration module is used to register the visible light image and the infrared image, and obtain the registered visible light image and the registered infrared image;
图像融合模块,用于将配准可见光图像和配准红外图像进行融合,获得可见红外融合图像;The image fusion module is used to fuse the registered visible light image and the registered infrared image to obtain a visible infrared fusion image;
模型生成模块,用于将可见红外融合图像输入图像分割模型,生成输电线路绝缘破损检测模型。The model generation module is used for inputting the visible infrared fusion image into the image segmentation model to generate a transmission line insulation damage detection model.
第四方面,本申请提供了一种输电线路绝缘破损检测装置。该装置包括:In a fourth aspect, the present application provides a device for detecting insulation damage of a transmission line. The unit includes:
实时图像获取模块,用于获取实时图像集;A real-time image acquisition module is used to obtain a real-time image set;
破损信息获取模块,用于调用输电线路绝缘破损检测模型,将实时图像集输入输电线路绝缘破损检测模型,获取绝缘破损的位置信息。The damage information acquisition module is used to call the transmission line insulation damage detection model, input the real-time image set into the transmission line insulation damage detection model, and obtain the location information of the insulation damage.
第五方面,本申请还提供了一种计算机设备。该计算机设备包括存储器和处理器,该存储器存储有计算机程序,该处理器执行该计算机程序时实现上述的输电线路绝缘破损检测模型的训练方法的步骤;或者,实现上述的输电线路绝缘破损检测方法的步骤。In a fifth aspect, the present application also provides a computer device. The computer equipment includes a memory and a processor, the memory stores a computer program, and when the processor executes the computer program, the steps of the above-mentioned training method for the transmission line insulation damage detection model are realized; or, the above-mentioned transmission line insulation damage detection method is realized. A step of.
第六方面,本申请还提供了一种计算机可读存储介质。该计算机可读存储介质,其上存储有计算机程序,该计算机程序被处理器执行时实现上述的输电线路绝缘破损检测模型的训练方法的步骤;或者,实现上述的输电线路绝缘破损检测方法的步骤。In a sixth aspect, the present application further provides a computer-readable storage medium. The computer-readable storage medium has a computer program stored thereon, and when the computer program is executed by the processor, the steps of the above-mentioned training method for the transmission line insulation damage detection model are realized; or, the steps of the above-mentioned transmission line insulation damage detection method are realized. .
上述输电线路绝缘破损检测方法、模型训练方法、装置、计算机设备和存储介质,通过获取输电线路的可见光图像和红外图像,对可见光图像和红外图像进行配准,获得配准可见光图像和配准红外图像,将配准可见光图像和配准红外图像进行融合,获得可见红外融合图像,将可见红外融合图像输入图像分割模型,生成输电线路绝缘破损检测模型。将可见光图像和红外图像的优势充分利用和结合,再通过获取实时图像集,调用输电线路绝缘破损检测模型,将实时图像集输入输电线路绝缘破损检测模型,获取绝缘破损的位置信息。通过输电线路绝缘破损检测模型完成对温度异常的输电线路进行分割,从而实现绝缘破损的自动定位和检测,有助于提高输电线路的安全性和可靠性。The above transmission line insulation damage detection method, model training method, device, computer equipment and storage medium, by obtaining the visible light image and the infrared image of the transmission line, register the visible light image and the infrared image, and obtain the registered visible light image and the registered infrared image Image, the registered visible light image and the registered infrared image are fused to obtain a visible infrared fusion image, and the visible infrared fusion image is input into the image segmentation model to generate a transmission line insulation damage detection model. Make full use of and combine the advantages of visible light images and infrared images, and then obtain the real-time image set, call the transmission line insulation damage detection model, input the real-time image set into the transmission line insulation damage detection model, and obtain the location information of the insulation damage. The transmission line with abnormal temperature is segmented through the transmission line insulation damage detection model, so as to realize the automatic location and detection of insulation damage, which helps to improve the safety and reliability of the transmission line.
附图说明Description of drawings
图1为一个实施例中输电线路绝缘破损检测模型的训练方法的流程示意图;Fig. 1 is a schematic flow chart of a training method of a transmission line insulation damage detection model in an embodiment;
图2为一个实施例中输电线路绝缘破损检测模型的训练方法的模块示意图;Fig. 2 is a module schematic diagram of the training method of the transmission line insulation damage detection model in an embodiment;
图3为另一个实施例中输电线路绝缘破损检测方法的流程示意图;FIG. 3 is a schematic flow diagram of a method for detecting insulation damage of a transmission line in another embodiment;
图4为一个实施例中输电线路绝缘破损检测模型的训练装置的装置示意图;Fig. 4 is a device schematic diagram of a training device for a transmission line insulation damage detection model in an embodiment;
图5为一个实施例中计算机设备的内部结构图。Figure 5 is an internal block diagram of a computer device in one embodiment.
具体实施方式Detailed ways
输电线路是电力供应的关键环节,如果输电线路存在安全隐患或故障,将直接影响用户的用电质量和用电安全。输电线路巡检是指对电力输送过程中的输电线路进行定期或不定期的巡视、检测、监测和维护,从而确保输电线路的安全可靠运行。通过定期巡检,可以及时发现和排除各种线路故障隐患,保障供电的安全可靠。输电线路长期暴露在自然环境中,受到风、雨、雷电等各种自然因素的影响,易出现腐蚀、老化、裂纹等损伤,从而导致绝缘破损。定期巡检可以及时发现这些问题并进行及时的维修,延长输电线路的使用寿命。与此同时,线路巡检提高电网可靠性,定期巡检可以及时发现并处理线路故障,减少故障发生的概率,提高电网的可靠性。及时的输电线路缺陷检测可以及时发现并处理线路故障,减少因线路故障引发的电力事故和损失。尤其是在自然灾害和恶劣气候的情况下,定期巡检可以降低线路被破坏或损坏的风险。Transmission lines are a key link in power supply. If there are potential safety hazards or failures in transmission lines, it will directly affect the quality and safety of power consumption for users. Transmission line inspection refers to the regular or irregular inspection, detection, monitoring and maintenance of transmission lines in the process of power transmission, so as to ensure the safe and reliable operation of transmission lines. Through regular inspections, various hidden dangers of line failures can be discovered and eliminated in time to ensure the safety and reliability of power supply. Transmission lines are exposed to the natural environment for a long time and are affected by various natural factors such as wind, rain, lightning, etc., and are prone to corrosion, aging, cracks and other damages, resulting in insulation damage. Regular inspections can detect these problems in time and carry out timely maintenance to prolong the service life of transmission lines. At the same time, line inspection improves the reliability of the power grid. Regular inspection can detect and deal with line faults in time, reduce the probability of failure, and improve the reliability of the power grid. Timely transmission line defect detection can detect and deal with line faults in time, reducing power accidents and losses caused by line faults. Especially in the case of natural disasters and severe weather, regular inspections can reduce the risk of the line being damaged or damaged.
在线路绝缘缺陷检测中,可见光图像和红外图像各有优劣。可见光图像是通过可见光频段获取的图像,其主要优点是分辨率高,能够清晰地显示目标物体的形态、颜色和表面细节。可见光相机成本低、易于操作,因此广泛应用于工业和生活领域。在线路绝缘缺陷检测中,可见光图像可以用于检测缺陷的大小、形态、颜色等信息,同时还可以检测污垢、损伤等。然而,可见光图像在夜间或低光环境下表现较差,因为可见光无法穿透烟雾、雾霾、灰尘等。此外,可见光波长范围较窄,其能够探测的缺陷类型有限。In the detection of line insulation defects, visible light images and infrared images have their own advantages and disadvantages. Visible light images are images obtained through the visible light frequency band. Its main advantage is high resolution, which can clearly display the shape, color and surface details of the target object. Visible light cameras are low cost and easy to operate, so they are widely used in industry and life. In the detection of line insulation defects, visible light images can be used to detect the size, shape, color and other information of defects, as well as dirt and damage. However, visible light images perform poorly at night or in low-light environments because visible light cannot penetrate smoke, haze, dust, etc. In addition, visible light has a narrow wavelength range, which limits the types of defects it can detect.
相比之下,红外图像是通过红外辐射获取的图像,其主要优点是具有热像功能,能够探测物体表面的温度差异。因此,红外图像可以用于检测绝缘材料的热损伤、腐蚀、老化等情况,这些情况在可见光图像中很难被察觉。此外,红外图像具有较强的穿透力,能够穿透雾霾、烟尘等,因此在低光环境下也能表现较好。但是,红外图像的分辨率相对较低,不能像可见光图像那样清晰地显示目标物体的形态和表面细节。此外,红外相机成本较高,需要专业的技术人员进行操作和维护,因此使用比较局限。因此,在线路绝缘缺陷检测中,可见光图像和红外图像可以互相补充。可见光图像可以用于检测缺陷的大小、形态、颜色等信息,红外图像可以用于检测热损伤、老化等情况。同时,可以根据实际需要选择使用哪种图像。In contrast, an infrared image is an image obtained through infrared radiation, and its main advantage is that it has a thermal imaging function and can detect temperature differences on the surface of an object. Therefore, infrared images can be used to detect thermal damage, corrosion, aging, etc. of insulating materials, which are difficult to detect in visible light images. In addition, infrared images have strong penetrating power and can penetrate smog, smoke, etc., so they can also perform well in low-light environments. However, the resolution of infrared images is relatively low and cannot clearly show the morphology and surface details of target objects like visible light images. In addition, infrared cameras are expensive and require professional technicians to operate and maintain, so their use is relatively limited. Therefore, in the detection of line insulation defects, visible light images and infrared images can complement each other. Visible light images can be used to detect the size, shape, color and other information of defects, and infrared images can be used to detect thermal damage, aging, etc. At the same time, you can choose which image to use according to actual needs.
为了使本申请的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本申请进行进一步详细说明。应当理解,此处描述的具体实施例仅仅用以解释本申请,并不用于限定本申请。In order to make the purpose, technical solution and advantages of the present application clearer, the present application will be further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described here are only used to explain the present application, and are not intended to limit the present application.
在一个实施例中,如图1所示,提供了一种输电线路绝缘破损检测模型的训练方法,本实施例以该方法应用于终端进行举例说明,可以理解的是,该方法也可以应用于服务器,还可以应用于包括终端和服务器的系统,并通过终端和服务器的交互实现。本实施例中,该方法包括以下步骤:In one embodiment, as shown in FIG. 1 , a training method for a transmission line insulation damage detection model is provided. In this embodiment, the method is applied to a terminal for example. It can be understood that this method can also be applied to The server may also be applied to a system including a terminal and a server, and may be implemented through interaction between the terminal and the server. In this embodiment, the method includes the following steps:
步骤102,获取输电线路的可见光图像和红外图像。Step 102, acquiring visible light images and infrared images of the transmission line.
具体地,获取输电线路的可见光图像和红外图像为输电线路绝缘破损检测模型准备数据。Specifically, the visible light image and infrared image of the transmission line are obtained to prepare data for the insulation damage detection model of the transmission line.
其中,使用无人机或其他设备采集输电线路的可见光图像和红外图像。可选地,通常采用数字相机或红外热成像仪等设备。进一步地,采集的可见光图像和红外图像需要进行初步处理,例如去除噪声、调整图像对比度和亮度等。为输电线路绝缘破损检测模型准备的数据应该包括输电线路的图像和相应的标签图像,其中标签图像应该包括缺陷区域的标记。Among them, drones or other equipment are used to collect visible light images and infrared images of power transmission lines. Optionally, devices such as digital cameras or infrared thermal imagers are usually used. Furthermore, the collected visible light images and infrared images need to be preliminarily processed, such as removing noise, adjusting image contrast and brightness, and so on. The data prepared for the transmission line insulation damage detection model should include the image of the transmission line and the corresponding label image, where the label image should include the mark of the defect area.
步骤104,对可见光图像和红外图像进行配准,获得配准可见光图像和配准红外图像。Step 104, registering the visible light image and the infrared image to obtain a registered visible light image and a registered infrared image.
其中,对可见光图像和红外图像进行预处理,包括去除噪声、平滑、增强和对比度调整等,再对预处理后的可见光图像和红外图像进行配准,获得配准可见光图像和配准红外图像。Among them, the visible light image and the infrared image are preprocessed, including noise removal, smoothing, enhancement and contrast adjustment, etc., and then the preprocessed visible light image and the infrared image are registered to obtain the registered visible light image and the registered infrared image.
步骤106,将配准可见光图像和配准红外图像进行融合,获得可见红外融合图像。Step 106, fusing the aligned visible light image and the aligned infrared image to obtain a visible-infrared fused image.
其中,将配准可见光图像和配准红外图像进行融合,通常采用加权平均或变换域融合等技术,获得可见红外融合图像。Among them, the registered visible light image and the registered infrared image are fused, and techniques such as weighted average or transform domain fusion are usually used to obtain a visible infrared fused image.
步骤108,将可见红外融合图像输入图像分割模型,生成输电线路绝缘破损检测模型。Step 108, input the visible infrared fusion image into the image segmentation model to generate a transmission line insulation damage detection model.
具体地,图像分割模型包括TransUNet,是一种基于Transformer的图像分割模型。将可见红外融合图像输入TransUNet进行训练,生成输电线路绝缘破损检测模型,再对输电线路绝缘破损检测模型进行评估,训练和评估完成后,即可将模型应用于实际的输电线路绝缘破损缺陷分割任务中。Specifically, the image segmentation model includes TransUNet, which is a Transformer-based image segmentation model. Input the visible infrared fusion image into TransUNet for training to generate a transmission line insulation damage detection model, and then evaluate the transmission line insulation damage detection model. After the training and evaluation are completed, the model can be applied to the actual transmission line insulation damage defect segmentation task middle.
具体地,模型训练完成后,需要对模型进行评估。常用的评估指标包括精确度、召回率、F1分数和IoU(Intersection over Union,交并比)分数,可以使用测试数据集进行模型评估。Specifically, after the model training is completed, the model needs to be evaluated. Commonly used evaluation indicators include precision, recall, F1 score and IoU (Intersection over Union) score, and the test data set can be used for model evaluation.
上述输电线路绝缘破损检测模型的训练方法中,获取输电线路的可见光图像和红外图像,对可见光图像和红外图像进行配准后,获得配准可见光图像和配准红外图像,将配准可见光图像和配准红外图像进行融合,获得一幅综合信息更丰富的图像,即为可见红外融合图像。其中综合信息囊括了可见光图像和红外图像包含的信息,包括目标的形态、颜色、表面细节和温度差异等。将可见红外融合图像输入图像分割模型,生成输电线路绝缘破损检测模型。通过图像配准、融合方法将红外图像和可见光图像进行信息融合,可以获得一个同时反映场景纹理和热量辐射的空间分布图像。将可见光图像与红外图像的优势相结合,并开创性地将可见光图像与红外图像结合后用于生成输电线路绝缘破损检测模型,从而实现对输电线路绝缘破损的自动定位和检测。In the above-mentioned training method of the transmission line insulation damage detection model, the visible light image and the infrared image of the transmission line are obtained, and after the visible light image and the infrared image are registered, the registered visible light image and the registered infrared image are obtained, and the registered visible light image and the infrared image are registered. Register the infrared images for fusion to obtain an image with richer comprehensive information, which is the visible infrared fusion image. The comprehensive information includes information contained in visible light images and infrared images, including the shape, color, surface details and temperature differences of the target. The visible infrared fusion image is input into the image segmentation model to generate a transmission line insulation damage detection model. Information fusion of infrared images and visible light images by image registration and fusion methods can obtain a spatial distribution image that simultaneously reflects scene texture and thermal radiation. Combining the advantages of visible light images and infrared images, and pioneering the combination of visible light images and infrared images to generate a transmission line insulation damage detection model, so as to realize the automatic positioning and detection of transmission line insulation damage.
在一个实施例中,对可见光图像和红外图像进行配准,获得配准可见光图像和配准红外图像包括:In one embodiment, registering the visible light image and the infrared image, and obtaining the registered visible light image and the registered infrared image includes:
提取可见光图像和红外图像的特征点;使用特征描述子将可见光图像和红外图像中的特征点进行匹配;根据特征点匹配的结果对可见光图像和红外图像进行配准,获得配准可见光图像和配准红外图像。Extract the feature points of the visible light image and the infrared image; use the feature descriptor to match the feature points in the visible light image and the infrared image; register the visible light image and the infrared image according to the matching results of the feature points, and obtain the registered visible light image and registration quasi-infrared images.
具体地,在对可见光图像和红外图像进行预处理后,提取可见光图像和红外图像中的特征点,例如角点、边缘和斑点等。使用特征描述子将红外和可见光图像中的特征点进行匹配,例如SIFT(Scale-invariant feature transform,尺度不变特征变换)和SURF(Speeded Up Robust Features,加速稳健特征)等算法。Specifically, after preprocessing the visible light image and the infrared image, feature points in the visible light image and the infrared image, such as corner points, edges, and spots, are extracted. Use feature descriptors to match feature points in infrared and visible light images, such as SIFT (Scale-invariant feature transform, scale-invariant feature transform) and SURF (Speeded Up Robust Features, accelerated robust features) and other algorithms.
进一步地,根据特征匹配结果,对红外图像和可见光图像进行配准,使红外图像和可见光图像在几何变换方面对齐,获得配准可见光图像和配准红外图像。配准方法可以使用基于特征点的方法或基于图像的方法,例如ICP(Iterative Closest Point,迭代最近点)和Thin-plate-spline(薄板样条)等算法。Further, according to the feature matching result, the infrared image and the visible light image are registered, so that the infrared image and the visible light image are aligned in terms of geometric transformation, and the registered visible light image and the registered infrared image are obtained. The registration method can use a method based on feature points or an image-based method, such as algorithms such as ICP (Iterative Closest Point, iterative closest point) and Thin-plate-spline (thin plate spline).
进一步地,将配准可见光图像和配准红外图像进行融合,获取可见红外融合图像。常用的融合方法包括基于像素级别的融合和基于特征级别的融合。其中,像素级别的融合方法包括简单平均、加权平均和拉普拉斯金字塔等,而特征级别的融合方法则可以使用多分辨率分解或小波变换等方法。对于配准融合后的图像进行数据增强、数据归一化和数据裁剪。其中,可以通过旋转、翻转和缩放等方式进行数据增强,从而增加数据样本的多样性。数据归一化可以将图像像素值缩放到0-1范围内,以便于网络学习。数据裁剪可以将图像和标签分别裁剪为相同的大小,以便于网络训练。Further, the registered visible light image and the registered infrared image are fused to obtain a visible-infrared fusion image. Commonly used fusion methods include pixel-level fusion and feature-level fusion. Among them, pixel-level fusion methods include simple average, weighted average, and Laplacian pyramid, etc., while feature-level fusion methods can use methods such as multi-resolution decomposition or wavelet transform. Data enhancement, data normalization and data cropping are performed on the registered and fused images. Among them, data enhancement can be carried out by means of rotation, flipping and scaling, so as to increase the diversity of data samples. Data normalization can scale the image pixel values to the range of 0-1 to facilitate network learning. Data cropping can crop images and labels to the same size respectively for network training.
本实施例中,通过提取可见光图像和红外图像的特征点,使用特征描述子将可见光图像和红外图像中的特征点进行匹配,根据特征点匹配的结果对可见光图像和红外图像进行配准,获得配准可见光图像和配准红外图像。由于可见光图像和红外图像的成像方式和参数不同,因此需要将两幅图像进行配准,使得它们的像素在物理意义上对应。进一步地,为将配准可见光图像和配准红外图像进行融合获取可见红外融合图像做准备。In this embodiment, by extracting the feature points of the visible light image and the infrared image, using the feature descriptor to match the feature points in the visible light image and the infrared image, and registering the visible light image and the infrared image according to the matching result of the feature points, to obtain Register visible light images and register infrared images. Since the imaging methods and parameters of visible light images and infrared images are different, it is necessary to register the two images so that their pixels correspond in a physical sense. Further, preparations are made for fusing the registered visible light image and the registered infrared image to obtain a visible-infrared fusion image.
在一个实施例中,将可见红外融合图像输入图像分割模型,生成输电线路绝缘破损检测模型包括:In one embodiment, inputting the visible-infrared fusion image into the image segmentation model to generate a transmission line insulation damage detection model includes:
将可见红外融合图像输入编码器,获取可见红外融合图像的特征信息;将特征信息输入解码器,获取可见红外融合图像的分割结果;使用交叉熵损失函数基于分割结果获取分割结果与真实标签之间的差异值;根据差异值更新图像分割模型的参数,生成输电线路绝缘破损检测模型。Input the visible-infrared fusion image into the encoder to obtain the feature information of the visible-infrared fusion image; input the feature information into the decoder to obtain the segmentation result of the visible-infrared fusion image; use the cross-entropy loss function to obtain the distance between the segmentation result and the real label based on the segmentation result The difference value; according to the difference value, the parameters of the image segmentation model are updated to generate a transmission line insulation damage detection model.
其中,图像分割模型选用TransUNet,TransUNet的整体结构由两部分组成,即编码器和解码器。编码器采用Transformer的结构,用于提取可见红外融合图像的特征信息。解码器则是一个U-Net结构,用于将编码器提取的可见红外融合图像的特征信息转换为分割结果。Among them, TransUNet is selected as the image segmentation model, and the overall structure of TransUNet consists of two parts, namely encoder and decoder. The encoder adopts the structure of Transformer, which is used to extract the feature information of the visible infrared fusion image. The decoder is a U-Net structure, which is used to convert the feature information of the visible infrared fusion image extracted by the encoder into a segmentation result.
具体地,编码器由一系列的Transformer Encoder(自注意力机制编码器)组成,每个Encoder包括多头自注意力机制(multi-head self-attention)和前馈网络(feedforward network)。解码器采用U-Net结构,由一系列的上采样模块和卷积模块组成。Specifically, the encoder consists of a series of Transformer Encoders (self-attention mechanism encoders), and each Encoder includes a multi-head self-attention mechanism (multi-head self-attention) and a feedforward network (feedforward network). The decoder adopts the U-Net structure and consists of a series of upsampling modules and convolution modules.
进一步地,TransUNet使用的损失函数是交叉熵损失函数,交叉熵损失函数用于衡量模型生成的分割结果与真实标签之间的差异。具体地,给定一张输入图像I,模型生成的分割结果为真实标签为Yij,则交叉熵损失函数可以如公式(1)定义:Further, the loss function used by TransUNet is the cross-entropy loss function, which is used to measure the difference between the segmentation results generated by the model and the real labels. Specifically, given an input image I, the segmentation result generated by the model is The real label is Y ij , then the cross-entropy loss function can be defined as in formula (1):
其中,N表示像素数,C表示类别数。Among them, N represents the number of pixels, and C represents the number of categories.
进一步地,基于交叉熵损失函数获取的分割结果与真实标签之间的差异值更新图像分割模型的参数,再将更新后的参数导入图像分割模型,生成输电线路绝缘破损检测模型。Further, the parameters of the image segmentation model are updated based on the difference between the segmentation result obtained by the cross-entropy loss function and the real label, and then the updated parameters are imported into the image segmentation model to generate a transmission line insulation damage detection model.
本实施例中,TransUNet作为一种基于Transformer的图像分割模型,可以同时处理不同尺度的特征信息,并在多个数据集上取得了优秀的表现。将可见红外融合图像输入编码器,获取可见红外融合图像的特征信息。其中编码器由一系列自注意力机制编码器组成,可以有效地提取输入图像的特征。将特征信息输入解码器,获取可见红外融合图像的分割结果。其中,编码器由一系列的上采样模块和卷积模块组成,可以将编码器提取的特征信息还原为原始图像的大小,并生成分割结果。使用交叉熵损失函数基于分割结果获取分割结果与真实标签之间的差异值,该损失函数在训练过程中可以帮助模型学习到更加准确的分割结果。根据差异值更新图像分割模型的参数,生成输电线路绝缘破损检测模型,该模型是实现绝缘破损的自动定位和检测的关键。In this embodiment, TransUNet, as a Transformer-based image segmentation model, can process feature information of different scales at the same time, and has achieved excellent performance on multiple data sets. Input the visible infrared fusion image into the encoder to obtain the characteristic information of the visible infrared fusion image. The encoder consists of a series of self-attention mechanism encoders, which can effectively extract the features of the input image. The feature information is input into the decoder to obtain the segmentation result of the visible infrared fusion image. Among them, the encoder consists of a series of upsampling modules and convolution modules, which can restore the feature information extracted by the encoder to the size of the original image and generate segmentation results. Use the cross-entropy loss function to obtain the difference between the segmentation result and the real label based on the segmentation result. This loss function can help the model learn more accurate segmentation results during the training process. The parameters of the image segmentation model are updated according to the difference value to generate a transmission line insulation damage detection model, which is the key to automatic location and detection of insulation damage.
在一个实施例中,将可见红外融合图像输入编码器,获取可见红外融合图像的特征信息还包括:In one embodiment, inputting the visible-infrared fusion image into the encoder, and obtaining the feature information of the visible-infrared fusion image also includes:
每个编码器之间通过指定模块传递特征信息。Each encoder transmits feature information through a designated module.
其中,指定模块即为Transformer Inter-Block。Among them, the specified module is Transformer Inter-Block.
具体地,编码器由一系列的Transformer Encoder(自注意力机制编码器)组成,在每个Encoder之间,TransUNet还加入了一个新的模块——Transformer Inter-Block,用于在多个尺度之间传递特征信息。其中,多个尺度是指不同尺度的信号采样,在不同尺度下可以观察到不同的特征。Specifically, the encoder is composed of a series of Transformer Encoders (self-attention mechanism encoders). Between each Encoder, TransUNet also adds a new module - Transformer Inter-Block, which is used for multiple scales. transfer feature information. Among them, multiple scales refer to signal sampling at different scales, and different features can be observed at different scales.
本实施例中,每个编码器之间通过指定模块传递特征信息,从而保证模型能够处理不同尺度的特征信息。In this embodiment, each encoder transmits feature information through a designated module, so as to ensure that the model can process feature information of different scales.
在一个实施例中,将特征信息输入解码器,获取可见红外融合图像的分割结果还包括:In one embodiment, the feature information is input into the decoder, and the segmentation result of obtaining the visible-infrared fusion image also includes:
通过跳跃连接模块在编码器和解码器之间传递特征信息。The feature information is transferred between the encoder and decoder through a skip connection module.
具体地,在解码器中还加入了一个新的模块——Skip Connection TransformerBlock,即为跳跃连接模块,用于在编码器和解码器之间传递特征信息。Specifically, a new module, the Skip Connection TransformerBlock, is added to the decoder, which is the skip connection module, which is used to transfer feature information between the encoder and the decoder.
本实施例中,通过跳跃连接模块在编码器和解码器之间传递特征信息,从而更好地保留细节信息。In this embodiment, the feature information is transferred between the encoder and the decoder through the skip connection module, so as to better preserve the detail information.
在一个实施例中,提供一种输电线路绝缘破损检测方法,输电线路绝缘破损检测方法使用输电线路绝缘破损检测模型,该方法包括:In one embodiment, a method for detecting insulation damage of a transmission line is provided. The method for detecting insulation damage of a transmission line uses a detection model for a transmission line insulation damage. The method includes:
获取实时图像集;调用输电线路绝缘破损检测模型,将实时图像集输入输电线路绝缘破损检测模型,获取绝缘破损的位置信息。Obtain a real-time image set; call the transmission line insulation damage detection model, input the real-time image set into the transmission line insulation damage detection model, and obtain the location information of the insulation damage.
具体地,在输电线路绝缘破损检测模型的训练和评估完成后,即可将模型应用于实际的输电线路绝缘破损缺陷分割任务中。Specifically, after the training and evaluation of the transmission line insulation damage detection model is completed, the model can be applied to the actual transmission line insulation damage defect segmentation task.
本实施例中,通过获取实时图像集,调用输电线路绝缘破损检测模型,将实时图像集输入输电线路绝缘破损检测模型,获取绝缘破损的位置信息,能够对输电线路图像进行分割,有效地检测和定位绝缘破损缺陷,有助于提高输电线路的安全性和可靠性。In this embodiment, by acquiring the real-time image set, calling the transmission line insulation damage detection model, inputting the real-time image set into the transmission line insulation damage detection model, and obtaining the location information of the insulation damage, the transmission line image can be segmented to effectively detect and Locating insulation damage defects helps to improve the safety and reliability of transmission lines.
在一个实施例中,如图2所示,提供一种输电线路绝缘破损检测模型的训练方法的模块示意图。首先使用无人机或其他设备采集输电线路的可见光图像和红外图像,对可见光图像和红外图像中包含的绝缘破损线路进行掩膜mask标注。再对可见光图像和红外图像进行配准,获得配准可见光图像和配准红外图像。对配准可见光图像和配准红外图像进行融合,获得可见红外融合图像。基于可见红外融合图像对TransUNet模型进行训练,生成输电线路绝缘破损检测模型。对输电线路绝缘破损检测模型就是否满足精度要求进行评估,如果不满足精度要求,则继续对TransUNet模型进行训练;如果满足精度要求,则投入输电线路巡检中应用。In one embodiment, as shown in FIG. 2 , a block diagram of a training method for a transmission line insulation damage detection model is provided. First, drones or other devices are used to collect visible light images and infrared images of the transmission line, and the mask marking of the damaged insulation lines contained in the visible light images and infrared images is performed. Then the visible light image and the infrared image are registered to obtain the registered visible light image and the registered infrared image. The registered visible light image and the registered infrared image are fused to obtain a visible infrared fused image. The TransUNet model is trained based on visible-infrared fusion images to generate a transmission line insulation damage detection model. Evaluate whether the insulation damage detection model of the transmission line meets the accuracy requirements. If it does not meet the accuracy requirements, continue to train the TransUNet model; if it meets the accuracy requirements, it will be put into transmission line inspection.
在另一个实施例中,如图3所示,提供一种输电线路绝缘破损检测方法。In another embodiment, as shown in FIG. 3 , a method for detecting insulation damage of a transmission line is provided.
步骤302,获取输电线路的可见光图像和红外图像。Step 302, acquiring visible light images and infrared images of the transmission line.
步骤304,提取可见光图像和红外图像的特征点。Step 304, extracting feature points of the visible light image and the infrared image.
步骤306,使用特征描述子将可见光图像和红外图像中的特征点进行匹配。Step 306, using the feature descriptor to match the feature points in the visible light image and the infrared image.
步骤308,根据特征点匹配的结果对可见光图像和红外图像进行配准,获得配准可见光图像和配准红外图像。Step 308, registering the visible light image and the infrared image according to the matching result of the feature points, to obtain the registered visible light image and the registered infrared image.
步骤310,将可见红外融合图像输入编码器,获取可见红外融合图像的特征信息。Step 310, input the visible-infrared fusion image into the encoder to obtain feature information of the visible-infrared fusion image.
步骤312,每个编码器之间通过指定模块传递特征信息。In step 312, each encoder transmits feature information through a designated module.
步骤314,将特征信息输入解码器,获取可见红外融合图像的分割结果。Step 314, input the feature information into the decoder, and obtain the segmentation result of the visible-infrared fusion image.
步骤316,通过跳跃连接模块在编码器和解码器之间传递特征信息。Step 316, transfer feature information between the encoder and the decoder through the skip connection module.
步骤318,使用交叉熵损失函数基于分割结果获取分割结果与真实标签之间的差异值。Step 318, using a cross-entropy loss function to obtain a difference value between the segmentation result and the real label based on the segmentation result.
步骤320,根据差异值更新图像分割模型的参数,生成输电线路绝缘破损检测模型。Step 320, updating the parameters of the image segmentation model according to the difference value to generate a transmission line insulation damage detection model.
步骤322,获取实时图像集。Step 322, acquiring a real-time image set.
步骤324,调用输电线路绝缘破损检测模型,将实时图像集输入输电线路绝缘破损检测模型,获取绝缘破损的位置信息。Step 324, call the insulation damage detection model of the transmission line, input the real-time image set into the insulation damage detection model of the transmission line, and obtain the position information of the insulation damage.
本实施例中,将红外图像和可见光图像进行配准和融合,获得的可见红外融合图像不仅反映了输电线路和背景之间的纹理差异,同时还能够反映输电线路绝缘破损位置的热量增加。再基于可见红外融合图像训练TransUnet模型,生成输电线路绝缘破损检测模型。该模型能够从复杂的背景中定位输电线路并同时完成缺陷部分的分割,从而帮助巡检人员高效定位。In this embodiment, the infrared image and the visible light image are registered and fused, and the obtained visible-infrared fused image not only reflects the texture difference between the transmission line and the background, but also reflects the heat increase at the position where the insulation of the transmission line is damaged. Then the TransUnet model is trained based on the visible-infrared fusion image to generate a transmission line insulation damage detection model. The model can locate the transmission line from a complex background and at the same time complete the segmentation of the defective part, thus helping the inspectors to locate it efficiently.
应该理解的是,虽然如上所述的各实施例所涉及的流程图中的各个步骤按照箭头的指示依次显示,但是这些步骤并不是必然按照箭头指示的顺序依次执行。除非本文中有明确的说明,这些步骤的执行并没有严格的顺序限制,这些步骤可以以其它的顺序执行。而且,如上所述的各实施例所涉及的流程图中的至少一部分步骤可以包括多个步骤或者多个阶段,这些步骤或者阶段并不必然是在同一时刻执行完成,而是可以在不同的时刻执行,这些步骤或者阶段的执行顺序也不必然是依次进行,而是可以与其它步骤或者其它步骤中的步骤或者阶段的至少一部分轮流或者交替地执行。It should be understood that although the steps in the flow charts involved in the above embodiments are shown sequentially according to the arrows, these steps are not necessarily executed sequentially in the order indicated by the arrows. Unless otherwise specified herein, there is no strict order restriction on the execution of these steps, and these steps can be executed in other orders. Moreover, at least some of the steps in the flow charts involved in the above-mentioned embodiments may include multiple steps or stages, and these steps or stages are not necessarily executed at the same time, but may be performed at different times For execution, the execution order of these steps or stages is not necessarily performed sequentially, but may be executed in turn or alternately with other steps or at least a part of steps or stages in other steps.
基于同样的发明构思,本申请实施例还提供了一种用于实现上述所涉及的输电线路绝缘破损检测模型的训练方法的输电线路绝缘破损检测模型的训练装置。该装置所提供的解决问题的实现方案与上述方法中所记载的实现方案相似,故下面所提供的一个或多个输电线路绝缘破损检测模型的训练装置实施例中的具体限定可以参见上文中对于输电线路绝缘破损检测模型的训练方法的限定,在此不再赘述。Based on the same inventive concept, an embodiment of the present application further provides a training device for a transmission line insulation damage detection model for implementing the above-mentioned training method for a transmission line insulation damage detection model. The solution to the problem provided by the device is similar to the implementation described in the above method, so the specific limitations in the embodiment of the training device for one or more transmission line insulation damage detection models provided below can be referred to above for The limitation of the training method of the transmission line insulation damage detection model will not be repeated here.
在一个实施例中,如图4所示,提供了一种输电线路绝缘破损检测模型的训练装置,包括:图像获取模块402、图像配准模块404、图像融合模块406和模型生成模块408In one embodiment, as shown in FIG. 4 , a training device for a transmission line insulation damage detection model is provided, including: an image acquisition module 402, an image registration module 404, an image fusion module 406, and a model generation module 408
图像获取模块402,用于获取输电线路的可见光图像和红外图像。The image acquisition module 402 is configured to acquire visible light images and infrared images of the transmission line.
图像配准模块404,用于对可见光图像和红外图像进行配准,获得配准可见光图像和配准红外图像。The image registration module 404 is configured to register the visible light image and the infrared image, and obtain the registered visible light image and the registered infrared image.
图像融合模块406,用于将配准可见光图像和配准红外图像进行融合,获得可见红外融合图像。The image fusion module 406 is configured to fuse the registered visible light image and the registered infrared image to obtain a visible infrared fusion image.
模型生成模块408,用于将可见红外融合图像输入图像分割模型,生成输电线路绝缘破损检测模型。The model generation module 408 is configured to input the visible infrared fusion image into the image segmentation model to generate a transmission line insulation damage detection model.
在一个实施例中,该装置还包括:In one embodiment, the device also includes:
特征点提取模块,用于提取可见光图像和红外图像的特征点。The feature point extraction module is used to extract feature points of visible light images and infrared images.
特征点匹配模块,用于使用特征描述子将可见光图像和红外图像中的特征点进行匹配。The feature point matching module is used to match the feature points in the visible light image and the infrared image by using the feature descriptor.
配准图像获取模块,用于根据特征点匹配的结果对可见光图像和红外图像进行配准,获得配准可见光图像和配准红外图像。The registered image acquisition module is configured to register the visible light image and the infrared image according to the result of feature point matching, and obtain the registered visible light image and the registered infrared image.
在一个实施例中,该装置还包括:In one embodiment, the device also includes:
编码器输入模块,用于将可见红外融合图像输入编码器,获取可见红外融合图像的特征信息。The encoder input module is configured to input the visible-infrared fusion image into the encoder to obtain feature information of the visible-infrared fusion image.
解码器输入模块,用于将特征信息输入解码器,获取可见红外融合图像的分割结果。The decoder input module is used to input feature information into the decoder to obtain the segmentation result of the visible infrared fusion image.
差异值获取模块,用于使用交叉熵损失函数基于分割结果获取分割结果与真实标签之间的差异值。The difference value acquisition module is used to obtain the difference value between the segmentation result and the real label based on the segmentation result using a cross-entropy loss function.
参数更新模块,用于根据差异值更新图像分割模型的参数,生成输电线路绝缘破损检测模型。The parameter update module is used to update the parameters of the image segmentation model according to the difference value, and generate a transmission line insulation damage detection model.
在一个实施例中,该装置还包括:In one embodiment, the device also includes:
特征信息传递模块,用于每个编码器之间通过指定模块传递特征信息;还用于通过跳跃连接模块在编码器和解码器之间传递特征信息。The feature information transfer module is used to transfer feature information between each encoder through a specified module; it is also used to transfer feature information between an encoder and a decoder through a skip connection module.
上述输电线路绝缘破损检测模型的训练装置中的各个模块可全部或部分通过软件、硬件及其组合来实现。上述各模块可以硬件形式内嵌于或独立于计算机设备中的处理器中,也可以以软件形式存储于计算机设备中的存储器中,以便于处理器调用执行以上各个模块对应的操作。Each module in the training device for the above-mentioned transmission line insulation damage detection model can be fully or partially realized by software, hardware and combinations thereof. The above-mentioned modules can be embedded in or independent of the processor in the computer device in the form of hardware, and can also be stored in the memory of the computer device in the form of software, so that the processor can invoke and execute the corresponding operations of the above-mentioned modules.
在一个实施例中,提供了一种输电线路绝缘破损检测装置,包括:实时图像获取模块和破损信息获取模块,其中:In one embodiment, a transmission line insulation damage detection device is provided, including: a real-time image acquisition module and a damage information acquisition module, wherein:
实时图像获取模块,用于获取实时图像集;A real-time image acquisition module is used to obtain a real-time image set;
破损信息获取模块,用于调用输电线路绝缘破损检测模型,将实时图像集输入输电线路绝缘破损检测模型,获取绝缘破损的位置信息。The damage information acquisition module is used to call the transmission line insulation damage detection model, input the real-time image set into the transmission line insulation damage detection model, and obtain the location information of the insulation damage.
上述输电线路绝缘破损检测装置中的各个模块可全部或部分通过软件、硬件及其组合来实现。上述各模块可以硬件形式内嵌于或独立于计算机设备中的处理器中,也可以以软件形式存储于计算机设备中的存储器中,以便于处理器调用执行以上各个模块对应的操作。Each module in the above transmission line insulation damage detection device can be fully or partially realized by software, hardware and a combination thereof. The above-mentioned modules can be embedded in or independent of the processor in the computer device in the form of hardware, and can also be stored in the memory of the computer device in the form of software, so that the processor can invoke and execute the corresponding operations of the above-mentioned modules.
在一个实施例中,提供了一种计算机设备,该计算机设备可以是终端,其内部结构图可以如图5示。该计算机设备包括处理器、存储器、输入/输出接口、通信接口、显示单元和输入装置。其中,处理器、存储器和输入/输出接口通过系统总线连接,通信接口、显示单元和输入装置通过输入/输出接口连接到系统总线。其中,该计算机设备的处理器用于提供计算和控制能力。该计算机设备的存储器包括非易失性存储介质和内存储器。该非易失性存储介质存储有操作系统和计算机程序。该内存储器为非易失性存储介质中的操作系统和计算机程序的运行提供环境。该计算机设备的输入/输出接口用于处理器与外部设备之间交换信息。该计算机设备的通信接口用于与外部的终端进行有线或无线方式的通信,无线方式可通过WIFI、移动蜂窝网络、NFC(近场通信)或其他技术实现。该计算机程序被处理器执行时以实现一种输电线路绝缘破损检测模型的训练方法和电线路绝缘破损检测方法。该计算机设备的显示单元用于形成视觉可见的画面,可以是显示屏、投影装置或虚拟现实成像装置。显示屏可以是液晶显示屏或者电子墨水显示屏,该计算机设备的输入装置可以是显示屏上覆盖的触摸层,也可以是计算机设备外壳上设置的按键、轨迹球或触控板,还可以是外接的键盘、触控板或鼠标等。In one embodiment, a computer device is provided. The computer device may be a terminal, and its internal structure may be as shown in FIG. 5 . The computer device includes a processor, a memory, an input/output interface, a communication interface, a display unit and an input device. Wherein, the processor, the memory and the input/output interface are connected through the system bus, and the communication interface, the display unit and the input device are connected to the system bus through the input/output interface. Wherein, the processor of the computer device is used to provide calculation and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and computer programs. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage medium. The input/output interface of the computer device is used for exchanging information between the processor and external devices. The communication interface of the computer device is used to communicate with an external terminal in a wired or wireless manner, and the wireless manner can be realized through WIFI, mobile cellular network, NFC (Near Field Communication) or other technologies. When the computer program is executed by a processor, a training method for a transmission line insulation damage detection model and a power line insulation damage detection method are realized. The display unit of the computer equipment is used to form a visually visible picture, which may be a display screen, a projection device or a virtual reality imaging device. The display screen may be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer device may be a touch layer covered on the display screen, or a button, a trackball or a touch pad set on the casing of the computer device, or a External keyboard, touchpad or mouse etc.
本领域技术人员可以理解,图5示出的结构,仅仅是与本申请方案相关的部分结构的框图,并不构成对本申请方案所应用于其上的计算机设备的限定,具体的计算机设备可以包括比图中所示更多或更少的部件,或者组合某些部件,或者具有不同的部件布置。Those skilled in the art can understand that the structure shown in Figure 5 is only a block diagram of a partial structure related to the solution of the present application, and does not constitute a limitation to the computer equipment on which the solution of the application is applied. The specific computer equipment may include There may be more or fewer components than shown in the figures, or certain components may be combined, or have different component arrangements.
在一个实施例中,还提供了一种计算机设备,包括存储器和处理器,存储器中存储有计算机程序,该处理器执行计算机程序时实现上述各方法实施例中的步骤。In one embodiment, there is also provided a computer device, including a memory and a processor, where a computer program is stored in the memory, and the processor implements the steps in the above method embodiments when executing the computer program.
在一个实施例中,提供了一种计算机可读存储介质,其上存储有计算机程序,该计算机程序被处理器执行时实现上述各方法实施例中的步骤。In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the steps in the foregoing method embodiments are implemented.
需要说明的是,本申请所涉及的用户信息(包括但不限于用户设备信息、用户个人信息等)和数据(包括但不限于用于分析的数据、存储的数据、展示的数据等),均为经用户授权或者经过各方充分授权的信息和数据,且相关数据的收集、使用和处理需要遵守相关国家和地区的相关法律法规和标准。It should be noted that the user information (including but not limited to user equipment information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all It is information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data need to comply with relevant laws, regulations and standards of relevant countries and regions.
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机程序来指令相关的硬件来完成,所述的计算机程序可存储于一非易失性计算机可读取存储介质中,该计算机程序在执行时,可包括如上述各方法的实施例的流程。其中,本申请所提供的各实施例中所使用的对存储器、数据库或其它介质的任何引用,均可包括非易失性和易失性存储器中的至少一种。非易失性存储器可包括只读存储器(Read-OnlyMemory,ROM)、磁带、软盘、闪存、光存储器、高密度嵌入式非易失性存储器、阻变存储器(ReRAM)、磁变存储器(Magnetoresistive Random Access Memory,MRAM)、铁电存储器(Ferroelectric Random Access Memory,FRAM)、相变存储器(Phase Change Memory,PCM)、石墨烯存储器等。易失性存储器可包括随机存取存储器(Random Access Memory,RAM)或外部高速缓冲存储器等。作为说明而非局限,RAM可以是多种形式,比如静态随机存取存储器(Static Random Access Memory,SRAM)或动态随机存取存储器(Dynamic RandomAccess Memory,DRAM)等。本申请所提供的各实施例中所涉及的数据库可包括关系型数据库和非关系型数据库中至少一种。非关系型数据库可包括基于区块链的分布式数据库等,不限于此。本申请所提供的各实施例中所涉及的处理器可为通用处理器、中央处理器、图形处理器、数字信号处理器、可编程逻辑器、基于量子计算的数据处理逻辑器等,不限于此。Those of ordinary skill in the art can understand that all or part of the processes in the methods of the above-mentioned embodiments can be completed by instructing related hardware through computer programs, and the computer programs can be stored in a non-volatile computer-readable memory In the medium, when the computer program is executed, it may include the processes of the embodiments of the above-mentioned methods. Wherein, any reference to storage, database or other media used in the various embodiments provided in the present application may include at least one of non-volatile and volatile storage. Non-volatile memory can include read-only memory (Read-Only Memory, ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive variable memory (ReRAM), magnetic variable memory (Magnetoresistive Random Access Memory, MRAM), Ferroelectric Random Access Memory (FRAM), Phase Change Memory (Phase Change Memory, PCM), graphene memory, etc. The volatile memory may include random access memory (Random Access Memory, RAM) or external cache memory. As an illustration and not a limitation, RAM can be in various forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (Dynamic Random Access Memory, DRAM). The databases involved in the various embodiments provided in this application may include at least one of a relational database and a non-relational database. The non-relational database may include a blockchain-based distributed database, etc., but is not limited thereto. The processors involved in the various embodiments provided by this application can be general-purpose processors, central processing units, graphics processors, digital signal processors, programmable logic devices, data processing logic devices based on quantum computing, etc., and are not limited to this.
以上实施例的各技术特征可以进行任意的组合,为使描述简洁,未对上述实施例中的各个技术特征所有可能的组合都进行描述,然而,只要这些技术特征的组合不存在矛盾,都应当认为是本说明书记载的范围。The technical features of the above embodiments can be combined arbitrarily. To make the description concise, all possible combinations of the technical features in the above embodiments are not described. However, as long as there is no contradiction in the combination of these technical features, they should be It is considered to be within the range described in this specification.
以上所述实施例仅表达了本申请的几种实施方式,其描述较为具体和详细,但并不能因此而理解为对本申请专利范围的限制。应当指出的是,对于本领域的普通技术人员来说,在不脱离本申请构思的前提下,还可以做出若干变形和改进,这些都属于本申请的保护范围。因此,本申请的保护范围应以所附权利要求为准。The above-mentioned embodiments only express several implementation modes of the present application, and the description thereof is relatively specific and detailed, but should not be construed as limiting the patent scope of the present application. It should be noted that those skilled in the art can make several modifications and improvements without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application should be determined by the appended claims.
Claims (10)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202310438894.1A CN116703822A (en) | 2023-04-20 | 2023-04-20 | Transmission line insulation damage detection method, model training method, device and equipment |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202310438894.1A CN116703822A (en) | 2023-04-20 | 2023-04-20 | Transmission line insulation damage detection method, model training method, device and equipment |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| CN116703822A true CN116703822A (en) | 2023-09-05 |
Family
ID=87824653
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202310438894.1A Pending CN116703822A (en) | 2023-04-20 | 2023-04-20 | Transmission line insulation damage detection method, model training method, device and equipment |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN116703822A (en) |
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN118795300A (en) * | 2024-09-05 | 2024-10-18 | 中国南方电网有限责任公司超高压输电公司电力科研院 | Transmission line fault identification method, device, storage medium and program product |
| CN120807518A (en) * | 2025-09-12 | 2025-10-17 | 深圳市莱达四维信息科技有限公司 | Insulator damage detection method and device and electronic equipment |
Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN111612761A (en) * | 2020-05-20 | 2020-09-01 | 中南大学 | Damage detection method based on insulating porcelain bottle |
| KR20210037199A (en) * | 2019-09-27 | 2021-04-06 | 한국전력공사 | Apparatus for dividing, tagging an image and for detecting defect of facilities using the same |
| CN114841993A (en) * | 2022-05-31 | 2022-08-02 | 广东电网有限责任公司 | Training of insulator detection network, detection method and equipment thereof, and storage medium |
| CN115018784A (en) * | 2022-05-31 | 2022-09-06 | 广东电网有限责任公司 | Method, device, equipment and medium for detecting defect of strand scattering of lead |
| CN115376024A (en) * | 2022-08-02 | 2022-11-22 | 国网江苏省电力有限公司盐城供电分公司 | Semantic segmentation method for power accessory of power transmission line |
-
2023
- 2023-04-20 CN CN202310438894.1A patent/CN116703822A/en active Pending
Patent Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| KR20210037199A (en) * | 2019-09-27 | 2021-04-06 | 한국전력공사 | Apparatus for dividing, tagging an image and for detecting defect of facilities using the same |
| CN111612761A (en) * | 2020-05-20 | 2020-09-01 | 中南大学 | Damage detection method based on insulating porcelain bottle |
| CN114841993A (en) * | 2022-05-31 | 2022-08-02 | 广东电网有限责任公司 | Training of insulator detection network, detection method and equipment thereof, and storage medium |
| CN115018784A (en) * | 2022-05-31 | 2022-09-06 | 广东电网有限责任公司 | Method, device, equipment and medium for detecting defect of strand scattering of lead |
| CN115376024A (en) * | 2022-08-02 | 2022-11-22 | 国网江苏省电力有限公司盐城供电分公司 | Semantic segmentation method for power accessory of power transmission line |
Cited By (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN118795300A (en) * | 2024-09-05 | 2024-10-18 | 中国南方电网有限责任公司超高压输电公司电力科研院 | Transmission line fault identification method, device, storage medium and program product |
| CN120807518A (en) * | 2025-09-12 | 2025-10-17 | 深圳市莱达四维信息科技有限公司 | Insulator damage detection method and device and electronic equipment |
| CN120807518B (en) * | 2025-09-12 | 2025-11-11 | 深圳市莱达四维信息科技有限公司 | A method, apparatus and electronic equipment for detecting insulator damage |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN110929607B (en) | A remote sensing identification method and system for urban building construction progress | |
| CN110346699B (en) | Method and device for insulator discharge information extraction based on ultraviolet image processing technology | |
| CN112465746B (en) | Method for detecting small defects in ray film | |
| CN115409814A (en) | Photovoltaic module hot spot detection method and system based on fusion image | |
| CN116703822A (en) | Transmission line insulation damage detection method, model training method, device and equipment | |
| CN113837178A (en) | Deep learning-based automatic positioning and unified segmentation method for meter of transformer substation | |
| CN115713486A (en) | Defect detection method and system for pipeline magnetic flux leakage signal | |
| CN112102296A (en) | Power equipment target identification method based on human concept | |
| CN111523423A (en) | Method and device for identifying electrical equipment | |
| CN115239646A (en) | Defect detection method, device, electronic device and storage medium for transmission line | |
| WO2025208878A1 (en) | Pavement distress detection method and apparatus, and electronic device and storage medium | |
| Tang et al. | A CNN-based network with attention mechanism for autonomous crack identification on building facade | |
| CN118822988A (en) | Power equipment abnormality detection method, device and computer equipment | |
| CN118823427A (en) | A manhole cover hidden danger detection system based on YOLOV8 improved algorithm | |
| CN114266985A (en) | Glass insulator spontaneous explosion identification method, device, equipment, medium and program product | |
| CN113888395B (en) | A three-dimensional visualization method and device for electric power equipment integrating infrared temperature measurement images | |
| Zhang et al. | Enhanced YOLOv8-based pavement crack detection: A high-precision approach | |
| CN111524108B (en) | Transformer substation equipment detection method and equipment | |
| CN111931721B (en) | Method and device for detecting color and number of annual inspection label and electronic equipment | |
| CN119559113B (en) | Photovoltaic panel dust coverage detection method and system based on drone inspection images | |
| CN120634966A (en) | A method and device for detecting concrete surface quality defects based on image recognition | |
| CN118132665B (en) | Intelligent geographic mapping data processing and analyzing method and system | |
| CN118887200A (en) | Defect identification method, device, computer equipment and readable storage medium | |
| Tello-Gil et al. | Crack detection and dimensional assessment using smartphone sensors and deep learning | |
| CN114913117B (en) | Target detection method, target detection device, electronic equipment and storage medium |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination |