CN111650204B - Method and system for detecting defects of transmission line fittings based on cascade target detection - Google Patents

Method and system for detecting defects of transmission line fittings based on cascade target detection Download PDF

Info

Publication number
CN111650204B
CN111650204B CN202010393940.7A CN202010393940A CN111650204B CN 111650204 B CN111650204 B CN 111650204B CN 202010393940 A CN202010393940 A CN 202010393940A CN 111650204 B CN111650204 B CN 111650204B
Authority
CN
China
Prior art keywords
target detection
network
detection model
image
transmission line
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.)
Active
Application number
CN202010393940.7A
Other languages
Chinese (zh)
Other versions
CN111650204A (en
Inventor
徐海青
陈是同
陶俊
梁翀
廖逍
余江斌
浦正国
白景坡
胡丁丁
卢大玮
胡心颖
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
State Grid Corp of China SGCC
State Grid Information and Telecommunication Co Ltd
Anhui Jiyuan Software Co Ltd
Original Assignee
State Grid Corp of China SGCC
State Grid Information and Telecommunication Co Ltd
Anhui Jiyuan Software Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by State Grid Corp of China SGCC, State Grid Information and Telecommunication Co Ltd, Anhui Jiyuan Software Co Ltd filed Critical State Grid Corp of China SGCC
Priority to CN202010393940.7A priority Critical patent/CN111650204B/en
Publication of CN111650204A publication Critical patent/CN111650204A/en
Application granted granted Critical
Publication of CN111650204B publication Critical patent/CN111650204B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01NINVESTIGATING OR ANALYSING MATERIALS BY DETERMINING THEIR CHEMICAL OR PHYSICAL PROPERTIES
    • G01N21/00Investigating or analysing materials by the use of optical means, i.e. using sub-millimetre waves, infrared, visible or ultraviolet light
    • G01N21/84Systems specially adapted for particular applications
    • G01N21/88Investigating the presence of flaws or contamination
    • G01N21/8851Scan or image signal processing specially adapted therefor, e.g. for scan signal adjustment, for detecting different kinds of defects, for compensating for structures, markings, edges
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01NINVESTIGATING OR ANALYSING MATERIALS BY DETERMINING THEIR CHEMICAL OR PHYSICAL PROPERTIES
    • G01N21/00Investigating or analysing materials by the use of optical means, i.e. using sub-millimetre waves, infrared, visible or ultraviolet light
    • G01N21/84Systems specially adapted for particular applications
    • G01N21/88Investigating the presence of flaws or contamination
    • G01N21/8851Scan or image signal processing specially adapted therefor, e.g. for scan signal adjustment, for detecting different kinds of defects, for compensating for structures, markings, edges
    • G01N2021/8854Grading and classifying of flaws
    • G01N2021/8861Determining coordinates of flaws
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F17/00Digital computing or data processing equipment or methods, specially adapted for specific functions
    • G06F17/10Complex mathematical operations
    • G06F17/15Correlation function computation including computation of convolution operations
    • YGENERAL 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
    • Y04INFORMATION OR COMMUNICATION TECHNOLOGIES HAVING AN IMPACT ON OTHER TECHNOLOGY AREAS
    • Y04SSYSTEMS 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/00Systems supporting electrical power generation, transmission or distribution
    • Y04S10/50Systems 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)
  • Computer Vision & Pattern Recognition (AREA)
  • Signal Processing (AREA)
  • Physics & Mathematics (AREA)
  • Health & Medical Sciences (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Chemical & Material Sciences (AREA)
  • Analytical Chemistry (AREA)
  • Biochemistry (AREA)
  • General Health & Medical Sciences (AREA)
  • General Physics & Mathematics (AREA)
  • Immunology (AREA)
  • Pathology (AREA)
  • Image Analysis (AREA)

Abstract

The invention discloses a transmission line hardware defect detection method and system based on cascade target detection, comprising the following steps: using a trained first target detection model to detect a connection area of the power transmission line image, and cutting the detected connection area; taking n connecting areas with the area size meeting preset conditions as images to be identified; performing fine hardware defect detection on the image to be identified by using a trained second target detection model, and obtaining coordinates of the fine hardware defect on the image to be identified; according to the method, the defect of the fine hardware fitting is displayed in an original image according to the mapping relation between the coordinates of the image to be identified and the coordinates of the original image, and the method adopts a cascade target detection algorithm to deeply convolve the neural network for identifying the small target of the fine hardware fitting of the power transmission line, and then identifies the connection area in the power transmission line image, and then identifies the defect condition of the fine hardware fitting of the connection area, so that the defect detection precision of the fine hardware fitting is remarkably improved.

Description

基于级联目标检测的输电线路金具缺陷检测方法及系统Method and system for detecting defects of transmission line fittings based on cascade target detection

技术领域technical field

本发明涉及输电线路缺陷检测领域,具体涉及基于级联目标检测的输电线路金具缺陷检测方法及系统。The invention relates to the field of transmission line defect detection, in particular to a method and system for detecting defects of transmission line fittings based on cascade target detection.

背景技术Background technique

电力螺栓等细小金具应用于我们常见的输电配送线路,需要经受较长时间的野外作业腐蚀和强烈的碰撞摩擦,在电网中拥有庞大的数量,起到座基、线路设备等的稳固作用。但是由于细细小金具所处的环境复杂恶劣,同时也是极易发生破损的元件。一旦破损,就会引起供电中断从而影响整个电网的安全运行。目前通过深度学习图像识别技术对螺栓缺销子、螺栓缺螺母等缺陷图片进行图像识别处理,从而形成缺陷诊断。Small fittings such as power bolts are used in our common power transmission and distribution lines. They need to withstand long-term field operation corrosion and strong collision friction. They have a huge number in the power grid and play a stable role in foundations and line equipment. However, due to the complex and harsh environment in which small hardware is located, it is also a component that is extremely prone to damage. Once damaged, it will cause power interruption and affect the safe operation of the entire power grid. Currently, deep learning image recognition technology is used to perform image recognition processing on defect pictures such as bolt missing parts and bolt missing nuts, so as to form defect diagnosis.

在利用深度学习网络模型对图像识别处理时,需要大量的训练样本,但是对于细小金具的缺陷检测,主要包括销钉缺失、销钉脱出等缺陷类别,但不论哪个类别,可以收集到的样本太少,用于深度学习时很容易出现过拟合,导致测试时效果不理想,而传统的图像增广方式,如随机裁剪、随机平移、随机旋转等方式,并不能提供更多的细细小金具缺陷低层次的特征。When using the deep learning network model to process image recognition, a large number of training samples are required, but for the defect detection of small fittings, it mainly includes defect categories such as missing pins and protruding pins, but no matter which category, there are too few samples that can be collected. It is easy to overfit when used in deep learning, resulting in unsatisfactory test results, and traditional image augmentation methods, such as random cropping, random translation, random rotation, etc., cannot provide more fine and small hardware defects. layered features.

而且由于细小金具类故障缺陷目标太小,占原图比例小于5%,传统的深度学习图像识别方法特征提取能力不足,导致小金具缺陷检测效果无法满足实际业务需求。Moreover, since the defect target of small fittings is too small, accounting for less than 5% of the original image, the traditional deep learning image recognition method has insufficient feature extraction capabilities, resulting in the detection effect of small fittings defects failing to meet actual business needs.

发明内容Contents of the invention

针对上述现有技术存在的问题,本发明提供了基于级联目标检测的输电线路金具缺陷检测方法,采用生成对抗网络对拍摄图像进行增广,增加了深度学习网络的训练样本数量,并且提出了一种两阶段检测策略,能够显著提升小金具缺陷检测精度,具备推广应用价值,具体包括:Aiming at the problems existing in the above-mentioned prior art, the present invention provides a method for detecting defects of transmission line fittings based on cascaded target detection, uses a generative adversarial network to augment the captured images, increases the number of training samples for the deep learning network, and proposes A two-stage detection strategy, which can significantly improve the detection accuracy of small fitting defects, has the value of promotion and application, including:

(11)获取巡检拍摄图像并进行预处理;(11) Acquiring and preprocessing the images taken by inspection;

(12)使用训练好的第一目标检测模型,对巡检拍摄图像进行连接区域检测,将检测到的矩形连接区域切割出来;(12) Use the trained first target detection model to detect the connected area of the patrol shot image, and cut out the detected rectangular connected area;

(13)获取连接区域的面积大小,并将面积大小满足预设条件的n个连接区域作为待识别图像;(13) Obtain the area size of the connected area, and use n connected areas whose area size meets the preset condition as the image to be identified;

(14)使用训练好的第二目标检测模型,对待识别图像进行细小金具缺陷检测,获取到待识别图像上细小金具缺陷的坐标;(14) Use the trained second target detection model to detect small metal defects on the image to be recognized, and obtain the coordinates of the small metal defect on the image to be recognized;

(15)根据待识别图像的坐标与原图坐标的映射关系,将细小金具缺陷在原图进行显示。(15) According to the mapping relationship between the coordinates of the image to be recognized and the coordinates of the original image, small metal defects are displayed in the original image.

作为上述方案的进一步优化,在训练第一目标检测模型和第二目标检测模型之前,对采集的输电线路图像进行数据增广处理,将增广处理产生的图像和采集的原输电线路图像共同作为训练第一目标检测模型和第二目标检测模型的数据集。As a further optimization of the above scheme, before training the first target detection model and the second target detection model, data augmentation processing is performed on the collected transmission line images, and the images generated by the augmentation processing and the collected original transmission line images are used together as Datasets for training the first object detection model and the second object detection model.

作为上述方案的进一步优化,所述数据增广处理采用训练好的生成对抗网络模型。As a further optimization of the above solution, the data augmentation process uses a trained generative adversarial network model.

作为上述方案的进一步优化,所述生成对抗网络模型训练的步骤为:As a further optimization of the above scheme, the steps of generating the confrontation network model training are:

(31)建立生成器和判别器,设置判别器的损失函数和生成对抗网络的目标函数;(31) Establish a generator and a discriminator, set the loss function of the discriminator and the objective function of generating an adversarial network;

(32)将随机的噪声信号z输入生成器,得到生成样本,将采集的输电线路图像和生成样本进行标注后输入判别器,进行真实样本和生成样本的判别,利用反向传播算法,调节判别网络的网络参数,使生成对抗网络目标函数最大化,得到优化的判别网络;(32) Input the random noise signal z into the generator to obtain generated samples, mark the collected transmission line images and generated samples, and then input them into the discriminator to distinguish between real samples and generated samples, and use the back propagation algorithm to adjust the discrimination The network parameters of the network maximize the objective function of the generative confrontation network to obtain an optimized discriminant network;

(33)将得到的优化后判别网络的网络参数代入生成对抗网络目标函数,利用反向传播算法调节生成网络的网络参数,使生成对抗网络目标函数最小化,得到优化后判别网络的网络参数,进而得到优化后的生成网络;(33) Substituting the network parameters of the optimized discriminant network into the objective function of the generative confrontation network, using the backpropagation algorithm to adjust the network parameters of the generative confrontation network, so as to minimize the objective function of the generative confrontation network, and obtain the network parameters of the discriminant network after optimization, Then the optimized generation network is obtained;

(34)判断迭代次数是否达到预设最大迭代次数,若小于预设最大迭代次数,则重复步骤(32)-(34),否则停止训练,保存训练完成的生成对抗模型。(34) Determine whether the number of iterations reaches the preset maximum number of iterations, if it is less than the preset maximum number of iterations, repeat steps (32)-(34), otherwise stop training, and save the generated confrontation model that has been trained.

作为上述方案的进一步优化,所述第一目标检测模型和第二目标检测模型,采用基于目标检测算法的深度神经网络。As a further optimization of the above solution, the first target detection model and the second target detection model use a deep neural network based on a target detection algorithm.

作为上述方案的进一步优化,所述第一目标检测模型和第二目标检测模型采用基于FasterRCNN算法的深度神经网络,FasterRCNN网络模型的训练过程包括:As a further optimization of the above scheme, the first target detection model and the second target detection model adopt a deep neural network based on the FasterRCNN algorithm, and the training process of the FasterRCNN network model includes:

(61)将用于训练模型的数据集进行嵌套标注,先对图像中的输电线路连接区域进行标注,再基于连接区域对细小金具是否具有缺陷进行标注;(61) Carry out nested labeling for the data set used for training the model, first mark the connection area of the transmission line in the image, and then mark whether the small fittings have defects based on the connection area;

(62)数据划分:按比例划分训练集和验证集;(62) Data division: divide the training set and verification set in proportion;

(63)建立第一目标检测模型和第二目标检测模型,前向网络均采用基本的FasterRCNN网络,并设置对应的损失函数和权重更新方法;(63) Establish the first target detection model and the second target detection model, the forward network all adopts the basic FasterRCNN network, and set the corresponding loss function and weight update method;

(64)以携带嵌套标注数据的训练集为输入数据分别输入第一目标检测模型和第二目标检测模型,以第一目标检测模型预设的损失函数计算前向网络的输出数据和连接区域标注数据的损失函数值,以第二目标检测模型预设的损失函数计算前向网络的输出数据和细小金具缺陷标注数据的损失函数值;(64) Use the training set with nested label data as input data to input the first target detection model and the second target detection model respectively, and calculate the output data and connection area of the forward network with the loss function preset by the first target detection model The loss function value of the labeled data is calculated by using the loss function preset by the second target detection model to calculate the output data of the forward network and the loss function value of the small fitting defect label data;

(65)当损失函数值收敛时或迭代次数达到预设最大迭代次数时,停止对应的网络模型训练,进行步骤(66),否则,以对应的权重更新方法对FasterRCNN网络进行权重更新,重复步骤(64)和(65);(65) When the loss function value converges or the number of iterations reaches the preset maximum number of iterations, stop the corresponding network model training and proceed to step (66), otherwise, update the weight of the FasterRCNN network with the corresponding weight update method, and repeat the steps (64) and (65);

(66)停止训练后,以验证集数据输入FasterRCNN网络获取输出结果,进行查全率和查准率的统计,若查全率和查准率满足预设条件,则训练结束并将训练好的目标检测模型存储,否则,进行重新训练。(66) After stopping the training, input the verification set data into the FasterRCNN network to obtain the output results, and perform statistics on the recall rate and precision rate. If the recall rate and precision rate meet the preset conditions, the training ends and the trained The object detection model is stored, otherwise, it is retrained.

作为上述方案的进一步优化,所述第二目标检测模型的损失函数包括第二类别损失和第二位置损失,As a further optimization of the above solution, the loss function of the second target detection model includes a second category loss and a second position loss,

所述第二类别损失采用修正的二值交叉熵损失函数,如下所示:The second category loss uses a modified binary cross-entropy loss function as follows:

Figure BDA0002486660080000031
Figure BDA0002486660080000031

其中,N表示网络输出的预测框个数,P0i为预测框网络输出为正常销钉的概率值,P1i为预测框网络输出为缺陷销钉的概率值,y0i=1表示为该预测框标注为正常销钉,y0i=0表示为非正常销钉,y1i=1表示为该预测框标注为缺陷销钉,y1i=0表示为非缺陷销钉,g0和g1分别表示正常销钉和缺陷销钉的Loss权重分配;Among them, N represents the number of prediction frames output by the network, P 0i is the probability value that the prediction frame network output is a normal pin, P 1i is the probability value that the prediction frame network output is a defective pin, and y 0i = 1 indicates that the prediction frame is labeled is a normal pin, y 0i = 0 indicates an abnormal pin, y 1i = 1 indicates that the prediction box is marked as a defective pin, y 1i = 0 indicates a non-defective pin, g 0 and g 1 indicate a normal pin and a defective pin, respectively Loss weight distribution;

所述第二位置损失公式如下:The second position loss formula is as follows:

Figure BDA0002486660080000032
Figure BDA0002486660080000032

其中,M表示网络输出的正样本数量,即标签值y0i或y1i为1的预测框个数,(xi,yi)表示预测框中心点位置,(wi,hi)表示预测框大小,(xi gt,yi gt)表示标注框中心点位置,(wi gt,hi gt)表示标注框大小;L1(x)采用SmoothL1函数,公式如下:Among them, M represents the number of positive samples output by the network, that is, the number of prediction frames whose label value y 0i or y 1i is 1, ( xi , y i ) represents the position of the center point of the prediction frame, (w i , h i ) represents the prediction Frame size, (x i gt , y i gt ) represents the center point of the label frame, (w i gt , h i gt ) represents the size of the label frame; L 1 (x) uses the SmoothL1 function, the formula is as follows:

Figure BDA0002486660080000033
Figure BDA0002486660080000033

gi表示位置损失中的权重分配,和类别损失中的权重分配保持一致,如下所示:g i represents the weight distribution in the position loss, which is consistent with the weight distribution in the category loss, as follows:

Figure BDA0002486660080000041
Figure BDA0002486660080000041

作为上述方案的进一步优化,所述第一目标检测模型和第二目标检测模型的权重更新方法均采用随机梯度下降法对损失函数值进行优化。As a further optimization of the above solution, the weight update methods of the first object detection model and the second object detection model both use the stochastic gradient descent method to optimize the loss function value.

基于上述基于级联目标检测的输电线路金具缺陷检测方法本发明还提供了基于级联目标检测的输电线路金具缺陷检测系统,包括:Based on the above method for detecting defects of transmission line fittings based on cascade target detection, the present invention also provides a detection system for defects of transmission line fittings based on cascade target detection, including:

数据采集模块,用于获取巡检拍摄图像并进行预处理;The data acquisition module is used to obtain and preprocess the images taken by inspection;

连接区域检测模块,使用训练好的第一目标检测模型,对巡检拍摄图像进行连接区域检测,将检测到的矩形连接区域切割出来;The connected area detection module uses the trained first target detection model to perform connected area detection on the inspection shot image, and cuts out the detected rectangular connected area;

连接区域筛选模块,用于获取连接区域的面积大小,并将面积大小满足预设条件的n个连接区域作为待识别图像;A connected area screening module, configured to obtain the area size of the connected area, and use n connected areas whose area size satisfies a preset condition as images to be identified;

细小金具缺陷检测模块,用于使用训练好的第二目标检测模型,对待识别图像进行细小金具缺陷检测,获取到待识别图像上细小金具缺陷的坐标;The fine fitting defect detection module is used to use the trained second target detection model to detect the fine fitting defect on the image to be recognized, and obtain the coordinates of the fine fitting defect on the image to be recognized;

细小金具缺陷原图显示模块,用于根据待识别图像的坐标与原图坐标的映射关系,将细小金具缺陷在原图进行显示。The original image display module of small metal defects is used to display the small metal defects in the original image according to the mapping relationship between the coordinates of the image to be recognized and the coordinates of the original image.

作为上述方案的进一步优化,还包括数据增广处理模块,用于在训练第一目标检测模型和第二目标检测模型之前,对采集的输电线路图像进行数据增广处理,将增广处理产生的图像和采集的原输电线路图像共同作为训练第一目标检测模型和第二目标检测模型的数据集。As a further optimization of the above scheme, it also includes a data augmentation processing module, which is used to perform data augmentation processing on the collected transmission line images before training the first target detection model and the second target detection model, and the data generated by the augmentation processing The image and the collected original transmission line image are jointly used as a data set for training the first object detection model and the second object detection model.

作为上述方案的进一步优化,所述第一目标检测模型和第二目标检测模型,采用基于目标检测算法的深度神经网络。As a further optimization of the above solution, the first target detection model and the second target detection model use a deep neural network based on a target detection algorithm.

本发明的基于级联目标检测的输电线路金具缺陷检测方法,具备如下有益效果:The method for detecting defects of transmission line fittings based on cascade target detection of the present invention has the following beneficial effects:

1.本发明的基于级联目标检测的输电线路金具缺陷检测方法,对于输电线路细细小金具的小目标的识别检测,由于细小金具的缺陷检测可以收集到的样本太少,采用了先对拍摄图像经过生成对抗网络,增加样本数量,避免直接使用深度学习进行识别时容易出现过拟合,导致测试时效果不理想的情况。1. The method for detecting defects of power transmission line fittings based on cascaded target detection of the present invention, for the identification and detection of small targets of fine and small fittings of power transmission lines, since there are too few samples that can be collected for the defect detection of small fittings, the method of first photographing is adopted. The image is generated through a confrontation network to increase the number of samples and avoid overfitting when directly using deep learning for recognition, resulting in unsatisfactory results during testing.

2.本发明的基于级联目标检测的输电线路金具缺陷检测方法,对于输电线路细小金具的小目标的识别检测,采用了级联目标检测算法深度卷积神经网络,先对巡检拍摄的输电线路图像中较大的目标即连接区域采用第一目标检测模型进行识别,基于第一目标检测模型的识别结果,再通过第二目标检测模型对连接区域识别细小金具的缺陷情况,减少了大量无效图像信息的特征提取工作,让网络专注于关键区域,大幅降低了图像有效信息的损失,保证关键像素信息质量,显著提升细小金具缺陷检测精度。2. The method for detecting defects of transmission line fittings based on cascaded target detection of the present invention, for the identification and detection of small targets of small fittings on transmission lines, adopts the deep convolutional neural network of the cascaded target detection algorithm, and first detects the power transmission lines captured by the patrol inspection. The larger target in the line image, that is, the connection area, is identified by the first target detection model. Based on the recognition result of the first target detection model, the second target detection model is used to identify the defects of small fittings in the connection area, reducing a lot of invalid The feature extraction of image information allows the network to focus on key areas, greatly reducing the loss of effective image information, ensuring the quality of key pixel information, and significantly improving the detection accuracy of small metal defects.

附图说明Description of drawings

图1为本发明的基于级联目标检测的输电线路金具缺陷检测方法中,对待检测的巡检图像进行细小金具缺陷检测的整体流程框图;Fig. 1 is a block diagram of the overall process for detecting small hardware defects on the inspection image to be detected in the method for detecting defects of metal fittings of transmission lines based on cascaded target detection of the present invention;

图2为本发明的基于级联目标检测的输电线路金具缺陷检测方法中,对样本数据进行对抗生成网络模型、第一目标检测模型和第二目标检测模型进行模型参数训练的整体流程框图;Fig. 2 is a block diagram of the overall process of performing model parameter training on the sample data in the method for detecting defects in transmission line fittings based on cascaded target detection, the first target detection model and the second target detection model;

图3为本发明的基于级联目标检测的输电线路金具缺陷检测方法中,对样本数据进行对抗生成网络模型参数训练的流程框图;Fig. 3 is a block diagram of the procedure for training the parameters of the adversarial generation network model on the sample data in the method for detecting the defect of the transmission line fittings based on the cascaded target detection of the present invention;

图4为本发明的基于级联目标检测的输电线路金具缺陷检测方法中,对样本数据进行第一目标检测模型和第二目标检测模型进行模型参数训练的整体流程框图;Fig. 4 is a block diagram of the overall process of performing model parameter training on the first target detection model and the second target detection model on the sample data in the method for detecting defects of transmission line fittings based on cascaded target detection according to the present invention;

图5为本发明的基于级联目标检测的输电线路金具缺陷检测系统内部结构框图;5 is a block diagram of the internal structure of the transmission line hardware defect detection system based on cascade target detection of the present invention;

图6为本发明的基于级联目标检测的输电线路金具缺陷检测方法中,对图像进行嵌套标注的图示;Fig. 6 is an illustration of nesting and labeling images in the method for detecting defects in transmission line fittings based on cascade target detection according to the present invention;

图7为本发明的基于级联目标检测的输电线路金具缺陷检测方法中,利用第二目标检测模型检测出来的细小金具缺陷图示;Fig. 7 is an illustration of small fitting defects detected by the second target detection model in the method for detecting defects of fittings of transmission line based on cascade target detection of the present invention;

图8为本发明的基于级联目标检测的输电线路金具缺陷检测方法中,将图7中识别的细小金具缺陷在原图中显示的图示。Fig. 8 is a diagram showing the small fitting defects identified in Fig. 7 in the original image in the method for detecting defects of fittings of transmission lines based on cascade target detection of the present invention.

实施方式Implementation

下面结合附图和具体实施例对本发明进行详细说明。The present invention will be described in detail below in conjunction with the accompanying drawings and specific embodiments.

参见图1-8,本发明提供了基于级联目标检测的输电线路金具缺陷检测方法,考虑到输电线路中细小金具类故障缺陷目标太小,占原图比例小于5%,传统的深度学习图像识别方法特征提取能力不足,导致小金具缺陷检测效果无法满足实际业务需求,本方案针对细小金具类故障缺陷识别提出了一种两阶段检测策略,能够显著提升小金具缺陷检测精度,具体包括:Referring to Figures 1-8, the present invention provides a method for detecting defects in transmission line fittings based on cascaded target detection. Considering that the defect targets of small fittings in transmission lines are too small, accounting for less than 5% of the original image, traditional deep learning images The feature extraction capability of the recognition method is insufficient, which leads to the fact that the detection effect of small fitting defects cannot meet the actual business needs. This solution proposes a two-stage detection strategy for the identification of small fitting fault defects, which can significantly improve the detection accuracy of small fitting defects, including:

在采用级联目标检测模型对输电线路金具缺陷进行检测之前,先进行两个阶段检测所用的目标检测模型的训练过程,另外,考虑到在利用深度学习网络模型对图像识别处理时,需要大量的训练样本,但是对于细小金具的缺陷检测,主要包括销钉缺失、销钉脱出等缺陷类别,但不论哪个类别,可以收集到的样本太少,用于深度学习时很容易出现过拟合,导致测试时效果不理想,本实施例中在训练第一目标检测模型和第二目标检测模型之前,对采集的输电线路图像进行数据增广处理,将增广处理产生的图像和采集的原输电线路图像共同作为训练第一目标检测模型和第二目标检测模型的数据集。Before using the cascaded target detection model to detect the defects of transmission line fittings, the training process of the target detection model used in the two-stage detection is carried out first. In addition, considering that when using the deep learning network model to process image recognition, a large number of Training samples, but for the defect detection of small fittings, it mainly includes defect categories such as missing pins and protruding pins, but no matter which category, there are too few samples that can be collected, and it is easy to overfit when used for deep learning, resulting in testing. The effect is not ideal. In this embodiment, before training the first target detection model and the second target detection model, data augmentation processing is performed on the collected transmission line image, and the image generated by the augmentation processing is combined with the original transmission line image. As a data set for training the first object detection model and the second object detection model.

本方案中数据增广处理采用训练好的生成对抗网络模型,对于生成对抗网络模型训练的步骤为:In this solution, the data augmentation process adopts the trained generative confrontation network model, and the steps for the training of the generative confrontation network model are as follows:

(31)建立生成器和判别器,设置判别器的损失函数和生成对抗网络的目标函数;判别器的损失函数为:(31) Establish a generator and a discriminator, set the loss function of the discriminator and the objective function of generating an adversarial network; the loss function of the discriminator is:

L(P)=-y*ln(p)+(y-1)*ln(1-p),其中,p为判别网络输出的概率值;y表示标签值,其取值为0或1;L(P)=-y*ln(p)+(y-1)*ln(1-p), wherein, p is the probability value output by the discriminant network; y represents the label value, and its value is 0 or 1;

生成对抗网络目标函数为:The objective function of generating an adversarial network is:

V(D,G)=EX~pd(x)lgD(x)+EX~pz(x)lg(1-D(x)),其中,V(D,G)=E X~pd(x) lgD(x)+E X~pz(x) lg(1-D(x)), where,

x表示判别网络输入,G表示生成网络,D表示判别网络,x~Pd(x)表示x服从采集的输电线路图像数据分布Pd(x),即表示x来自真实采集的输电线路图像,X~Pz(x)表示X服从随机的噪声信号z的分布Pz(x),即X为生成样本,E[·]表示数学期望。x represents the discriminative network input, G represents the generating network, D represents the discriminative network, x ~ Pd(x) represents that x obeys the collected transmission line image data distribution Pd(x), that is, x comes from the real collected transmission line image, X ~ Pd(x) Pz(x) means that X obeys the distribution Pz(x) of the random noise signal z, that is, X is the generated sample, and E[·] represents the mathematical expectation.

(32)将随机的噪声信号z输入生成器,得到生成样本,将采集的输电线路图像和生成样本进行标注后输入判别器,进行真实样本和生成样本的判别,利用反向传播算法,调节判别网络的网络参数,使生成对抗网络目标函数最大化,得到优化的判别网络;(32) Input the random noise signal z into the generator to obtain generated samples, mark the collected transmission line images and generated samples, and then input them into the discriminator to distinguish between real samples and generated samples, and use the back propagation algorithm to adjust the discrimination The network parameters of the network maximize the objective function of the generative confrontation network to obtain an optimized discriminant network;

(33)将得到的优化后判别网络的网络参数代入生成对抗网络目标函数,利用反向传播算法调节生成网络的网络参数,使生成对抗网络目标函数最小化,得到优化后判别网络的网络参数,进而得到优化后的生成网络;(33) Substituting the network parameters of the optimized discriminant network into the objective function of the generative confrontation network, using the backpropagation algorithm to adjust the network parameters of the generative confrontation network, so as to minimize the objective function of the generative confrontation network, and obtain the network parameters of the discriminant network after optimization, Then the optimized generation network is obtained;

(34)判断迭代次数是否达到预设最大迭代次数,若小于预设最大迭代次数,则重复步骤(32)-(34),否则停止训练,保存训练完成的生成对抗模型。(34) Determine whether the number of iterations reaches the preset maximum number of iterations, if it is less than the preset maximum number of iterations, repeat steps (32)-(34), otherwise stop training, and save the generated confrontation model that has been trained.

然后调用训练完成的生成对抗网络,利用其中的生成器对采集的输电线路图像进行数据增广处理,获得生成样本,然后将增广处理产生的生成样本和采集的原输电线路图像共同作为训练第一目标检测模型和第二目标检测模型的数据集。Then call the trained generative adversarial network, use the generator in it to perform data augmentation processing on the collected transmission line images, and obtain generated samples, and then use the generated samples generated by the augmentation processing and the collected original transmission line images together as the training first A data set of an object detection model and a second object detection model.

本实施例中,第一目标检测模型和第二目标检测模型,采用基于目标检测算法的深度神经网络,目标检测算法包括但不限于FasterRCNN、FPN、YoloV3等,本方案中采用采用基于FasterRCNN算法的深度神经网络,对于第一目标检测模型和第二目标检测模型的训练过程包括:In this embodiment, the first target detection model and the second target detection model use a deep neural network based on a target detection algorithm. The target detection algorithm includes but is not limited to FasterRCNN, FPN, YoloV3, etc. In this solution, the FasterRCNN algorithm based on For the deep neural network, the training process for the first target detection model and the second target detection model includes:

(61)将用于训练模型的数据集进行嵌套标注,参见图6,先对图像中的输电线路连接区域进行标注,再基于连接区域对细小金具是否具有缺陷进行标注;(61) Nested labeling of the data set used for training the model, referring to Figure 6, first labeling the connection area of the transmission line in the image, and then labeling whether the small metal fittings have defects based on the connection area;

(62)数据划分:按比例划分训练集和验证集;(62) Data division: divide the training set and verification set in proportion;

(63)建立第一目标检测模型和第二目标检测模型,前向网络均采用基本的FasterRCNN网络,并设置对应的损失函数和权重更新方法;(63) Establish the first target detection model and the second target detection model, the forward network all adopts the basic FasterRCNN network, and set the corresponding loss function and weight update method;

(64)以携带嵌套标注数据的训练集为输入数据分别输入第一目标检测模型和第二目标检测模型,以第一目标检测模型预设的损失函数计算前向网络的输出数据和连接区域标注数据的损失函数值,以第二目标检测模型预设的损失函数计算前向网络的输出数据和细小金具缺陷标注数据的损失函数值;(64) Use the training set with nested label data as input data to input the first target detection model and the second target detection model respectively, and calculate the output data and connection area of the forward network with the loss function preset by the first target detection model The loss function value of the labeled data is calculated by using the loss function preset by the second target detection model to calculate the output data of the forward network and the loss function value of the small fitting defect label data;

(65)当损失函数值收敛时或迭代次数达到预设最大迭代次数时,停止对应的网络模型训练,进行步骤(66),否则,以对应的权重更新方法对FasterRCNN网络进行权重更新,重复步骤(64)和(65);(65) When the loss function value converges or the number of iterations reaches the preset maximum number of iterations, stop the corresponding network model training and proceed to step (66), otherwise, update the weight of the FasterRCNN network with the corresponding weight update method, and repeat the steps (64) and (65);

(66)停止训练后,以验证集数据输入FasterRCNN网络获取输出结果,进行查全率和查准率的统计,若查全率和查准率满足预设条件,则训练结束并将训练好的目标检测模型存储,否则,进行重新训练。(66) After stopping the training, input the verification set data into the FasterRCNN network to obtain the output results, and perform statistics on the recall rate and precision rate. If the recall rate and precision rate meet the preset conditions, the training ends and the trained The object detection model is stored, otherwise, it is retrained.

其中,第一目标检测模型的损失函数包括第一类别损失和第一位置损失,Among them, the loss function of the first target detection model includes the first category loss and the first position loss,

所述第一类别损失采用交叉熵损失函数,如下所示:The first category loss uses a cross-entropy loss function as follows:

Figure BDA0002486660080000071
Figure BDA0002486660080000071

其中,N表示网络输出的预测框个数,默认为2000,pi为连接区域的网络输出概率值,yi表示标签值,1表示为该区域标注为连接区域,0表示为背景区域。Among them, N represents the number of prediction frames output by the network, and the default is 2000, p i represents the network output probability value of the connected area, y i represents the label value, 1 indicates that the area is marked as a connected area, and 0 indicates the background area.

所述第一位置损失公式如下:The first position loss formula is as follows:

Figure BDA0002486660080000072
Figure BDA0002486660080000072

其中,M表示网络输出的正样本数量,即标签值yi为1的预测框个数,(xi,yi)表示预测框中心点位置,(wi,hi)表示预测框大小,(xi gt,yi gt)表示标注框中心点位置,(wi gt,hi gt)表示标注框大小;L1(x)采用SmoothL1函数,公式如下:Among them, M represents the number of positive samples output by the network, that is, the number of prediction frames whose label value y i is 1, ( xi , y i ) represents the position of the center point of the prediction frame, (w i , h i ) represents the size of the prediction frame, (x i gt , y i gt ) represents the position of the center point of the label frame, (w i gt , h i gt ) represents the size of the label frame; L 1 (x) uses the SmoothL1 function, and the formula is as follows:

Figure BDA0002486660080000081
Figure BDA0002486660080000081

第二目标检测模型的损失函数包括第二类别损失和第二位置损失,The loss function of the second target detection model includes a second category loss and a second position loss,

所述第二类别损失采用修正的二值交叉熵损失函数,如下所示:The second category loss uses a modified binary cross-entropy loss function as follows:

Figure BDA0002486660080000082
Figure BDA0002486660080000082

其中,N表示网络输出的预测框个数,默认为2000,P0i为预测框网络输出为正常销钉的概率值,P1i为预测框网络输出为缺陷销钉的概率值,y0i=1表示为该预测框标注为正常销钉,y0i=0表示为非正常销钉,y1i=1表示为该预测框标注为缺陷销钉,y1i=0表示为非缺陷销钉,g0和g1分别表示正常销钉和缺陷销钉的Loss权重分配,由于模型重点关注的是缺陷销钉,因此g1大于g0,默认g0=0.7,g1=1.4。Among them, N represents the number of prediction frames output by the network, which is 2000 by default, P 0i is the probability value that the prediction frame network output is a normal pin, P 1i is the probability value that the prediction frame network output is a defective pin, and y 0i = 1 is expressed as The prediction box is marked as a normal pin, y 0i = 0 means an abnormal pin, y 1i = 1 means that the prediction frame is marked as a defective pin, y 1i = 0 means a non-defective pin, g 0 and g 1 mean normal Loss weight distribution of pins and defective pins, since the model focuses on defective pins, g 1 is greater than g 0 , default g 0 =0.7, g 1 =1.4.

所述第二位置损失公式如下:The second position loss formula is as follows:

Figure BDA0002486660080000083
Figure BDA0002486660080000083

其中,M表示网络输出的正样本数量,即标签值y0i或y1i为1的预测框个数,(xi,yi)表示预测框中心点位置,(wi,hi)表示预测框大小,(xi gt,yi gt)表示标注框中心点位置,(wi gt,hi gt)表示标注框大小;L1(x)采用SmoothL1函数,公式如下:Among them, M represents the number of positive samples output by the network, that is, the number of prediction frames whose label value y 0i or y 1i is 1, ( xi , y i ) represents the position of the center point of the prediction frame, (w i , h i ) represents the prediction Frame size, (x i gt , y i gt ) represents the center point of the label frame, (w i gt , h i gt ) represents the size of the label frame; L 1 (x) uses the SmoothL1 function, the formula is as follows:

Figure BDA0002486660080000084
Figure BDA0002486660080000084

gi表示位置损失中的权重分配,和类别损失中的权重分配保持一致,如下所示:g i represents the weight distribution in the position loss, which is consistent with the weight distribution in the category loss, as follows:

Figure BDA0002486660080000085
Figure BDA0002486660080000085

第一目标检测模型和第二目标检测模型的权重更新方法均采用随机梯度下降法对损失函数值进行优化。The weight update methods of the first object detection model and the second object detection model both use the stochastic gradient descent method to optimize the value of the loss function.

在采用本发明的基于级联目标检测的输电线路金具缺陷检测方法输电线路细小金具缺陷识别检测的时候,采用以下步骤:When adopting the transmission line fittings defect detection method based on cascade target detection of the present invention for identifying and detecting small fittings defects of transmission lines, the following steps are adopted:

(11)先获取巡检拍摄图像并进行预处理,考虑到拍摄图像要输入神经网络模型进行识别,本实施例中将巡检拍摄图像进行归一化、去噪声操作;(11) First obtain the inspection shot image and perform preprocessing. Considering that the shot image needs to be input into the neural network model for identification, in this embodiment, the inspection shot image is normalized and denoised;

(12)然后使用训练好的第一目标检测模型,对巡检拍摄图像进行连接区域检测,将检测到的矩形连接区域切割出来;(12) Then use the trained first target detection model to detect the connected area of the patrol shot image, and cut out the detected rectangular connected area;

(13)获取连接区域的面积大小,并将面积大小满足预设条件的n个连接区域作为待识别图像;(13) Obtain the area size of the connected area, and use n connected areas whose area size meets the preset condition as the image to be identified;

具体来说,考虑到巡检影像缺陷分布特点的研究,带缺陷的连接区域通常出现在前景相对面积较大的部分,其他区域可作为背景忽略处理,因此对切割出来的矩形连接区域通过获取到的坐标进行面积大小计算,并将检测出来的连接区域按面积大小从大到小排序,并将排序后的连接区域选取前n个作为待识别图像,本实施例中采用n=3,即面积最大的3个连接区域进行细小金具缺陷识别。Specifically, considering the research on the distribution characteristics of inspection image defects, the connection area with defects usually appears in the relatively large area of the foreground, and other areas can be ignored as the background. Therefore, the cut out rectangular connection area is obtained by obtaining The coordinates of the area are calculated, and the detected connected areas are sorted from large to small according to the area size, and the first n of the sorted connected areas are selected as images to be recognized. In this embodiment, n=3 is adopted, that is, the area The largest 3 connection areas are used to identify small hardware defects.

(14)使用训练好的第二目标检测模型,对待识别图像进行细小金具缺陷检测,获取到待识别图像上细小金具缺陷的坐标,参见图7;(14) Use the trained second target detection model to detect small metal defects on the image to be recognized, and obtain the coordinates of the small metal defects on the image to be recognized, see Figure 7;

(15)根据待识别图像的坐标与原图坐标的映射关系,将细小金具缺陷在原图进行显示,参见图8。(15) According to the mapping relationship between the coordinates of the image to be recognized and the coordinates of the original image, display the small hardware defects in the original image, see FIG. 8 .

参见图5,基于上述输电线路金具缺陷检测方法本发明还提供了基于级联目标检测的输电线路金具缺陷检测系统,包括:Referring to Fig. 5, based on the above-mentioned detection method for metal fitting defects of transmission lines, the present invention also provides a detection system for detection of metal fitting defects of transmission lines based on cascade target detection, including:

数据采集模块,用于获取巡检拍摄图像并进行预处理;The data acquisition module is used to obtain and preprocess the images taken by inspection;

连接区域检测模块,使用训练好的第一目标检测模型,对巡检拍摄图像进行连接区域检测,将检测到的矩形连接区域切割出来;其中第一目标检测模型和第二目标检测模型的训练数据集是基于生成对抗网络进行数据增广处理后的数据集,增加了网络模型训练样本的数量,减少目标检测模型深度学习时出现过拟合现象出现,提高网络模型的目标检测的准确性,第一目标检测模型和第二目标检测模型,采用基于目标检测算法的深度神经网络。The connected area detection module uses the trained first target detection model to detect the connected area of the patrol shot image, and cuts out the detected rectangular connected area; the training data of the first target detection model and the second target detection model The set is a data set after data augmentation processing based on the generative confrontation network, which increases the number of network model training samples, reduces the phenomenon of over-fitting in the deep learning of the target detection model, and improves the accuracy of the target detection of the network model. A target detection model and a second target detection model adopt a deep neural network based on a target detection algorithm.

连接区域筛选模块,用于获取连接区域的面积大小,并将面积大小满足预设条件的n个连接区域作为待识别图像;A connected area screening module, configured to obtain the area size of the connected area, and use n connected areas whose area size satisfies a preset condition as images to be identified;

细小金具缺陷检测模块,用于使用训练好的第二目标检测模型,对待识别图像进行细小金具缺陷检测,获取到待识别图像上细小金具缺陷的坐标;The fine fitting defect detection module is used to use the trained second target detection model to detect the fine fitting defect on the image to be recognized, and obtain the coordinates of the fine fitting defect on the image to be recognized;

细小金具缺陷原图显示模块,用于根据待识别图像的坐标与原图坐标的映射关系,将细小金具缺陷在原图进行显示。The original image display module of small metal defects is used to display the small metal defects in the original image according to the mapping relationship between the coordinates of the image to be recognized and the coordinates of the original image.

数据增广处理模块,采用生成对抗网络,用于在训练第一目标检测模型和第二目标检测模型之前,对采集的输电线路图像进行数据增广处理,将增广处理产生的图像和采集的原输电线路图像共同作为训练第一目标检测模型和第二目标检测模型的数据集。The data augmentation processing module adopts the generative confrontation network, which is used to perform data augmentation processing on the collected transmission line images before training the first target detection model and the second target detection model, and combines the images generated by the augmentation processing with the collected The original transmission line images are jointly used as a data set for training the first object detection model and the second object detection model.

本发明不局限于上述具体的实施方式,本领域的普通技术人员从上述构思出发,不经过创造性的劳动,所做出的种种变换,均落在本发明的保护范围之内。The present invention is not limited to the above-mentioned specific implementation manners, and various transformations made by those skilled in the art starting from the above-mentioned ideas without creative work all fall within the scope of protection of the present invention.

Claims (10)

1. The power transmission line hardware defect detection method based on cascade target detection is characterized by comprising the following steps of: comprising the following steps:
(11) Acquiring a patrol shooting image and preprocessing;
(12) Using a trained first target detection model to detect a connection area of the inspection shooting image, and cutting out the detected rectangular connection area;
(13) Acquiring the area size of the connecting areas, and taking n connecting areas with the area size meeting preset conditions as images to be identified;
(14) Performing fine hardware defect detection on the image to be identified by using a trained second target detection model, and obtaining coordinates of the fine hardware defect on the image to be identified;
(15) And displaying the fine hardware defects in the original image according to the mapping relation between the coordinates of the image to be identified and the coordinates of the original image.
2. The method for detecting the defects of the power transmission line hardware based on the cascading target detection according to claim 1, wherein the method comprises the following steps: before the first target detection model and the second target detection model are trained, data augmentation processing is carried out on the acquired power transmission line images, and the image generated by the augmentation processing and the acquired original power transmission line images are used as a data set for training the first target detection model and the second target detection model.
3. The method for detecting the defects of the power transmission line hardware based on the cascading target detection according to claim 2, wherein the method comprises the following steps: the data augmentation processing adopts a trained generation countermeasure network model, and the step of generating the countermeasure network model training is as follows:
(31) Establishing a generator and a discriminator, setting a loss function of the discriminator and generating an objective function of an countermeasure network;
(32) Inputting a random noise signal z into a generator to obtain a generated sample, marking the acquired power transmission line image and the generated sample, inputting the marked power transmission line image and the generated sample into a discriminator, discriminating a real sample and the generated sample, regulating network parameters of a discrimination network by using a back propagation algorithm, and maximizing a target function of a generated countermeasure network to obtain an optimized discrimination network;
(33) Substituting the obtained network parameters of the optimized discrimination network into a generated countermeasure network objective function, and adjusting the network parameters of the generated network by using a back propagation algorithm to minimize the generated countermeasure network objective function, so as to obtain the network parameters of the optimized discrimination network, and further obtain the optimized generated network;
(34) And (3) judging whether the iteration times reach the preset maximum iteration times, if so, repeating the steps (32) - (34), otherwise, stopping training, and storing the generated countermeasure model after training is completed.
4. The method for detecting the defects of the power transmission line hardware based on the cascading target detection according to claim 2, wherein the method comprises the following steps: the first target detection model and the second target detection model adopt a deep neural network based on a target detection algorithm.
5. The method for detecting the defects of the power transmission line hardware based on the cascading target detection according to claim 4, wherein the method comprises the following steps: the first target detection model and the second target detection model adopt a deep neural network based on a FaterRCNN algorithm, and the training process of the FaterRCNN network model comprises the following steps:
(51) Nesting and labeling a data set for training a model, firstly labeling a power transmission line connection region in an image, and then labeling whether a tiny hardware fitting has a defect or not based on the connection region;
(52) Dividing data: dividing a training set and a verification set in proportion;
(53) Establishing a first target detection model and a second target detection model, wherein a forward network adopts a basic FasterRCNN network, and a corresponding loss function and a weight updating method are set;
(54) Respectively inputting a first target detection model and a second target detection model by taking a training set carrying nested marking data as input data, calculating the loss function values of the output data of the forward network and the marking data of the connecting area by using a loss function preset by the first target detection model, and calculating the loss function values of the output data of the forward network and the marking data of the small hardware defects by using a loss function preset by the second target detection model;
(55) Stopping the corresponding network model training when the loss function value converges or the iteration number reaches the preset maximum iteration number, and performing step (56), otherwise, performing weight update on the FasterRCNN network by using a corresponding weight update method, and repeating steps (54) and (55);
(56) After training is stopped, inputting verification set data into a FaterRCNN network to obtain an output result, counting the recall ratio and the precision ratio, if the recall ratio and the precision ratio meet preset conditions, finishing training, storing a trained target detection model, and otherwise, retraining.
6. The method for detecting the defects of the power transmission line hardware based on the cascading target detection according to claim 5, wherein the method comprises the following steps: the loss function of the second object detection model includes a second class loss and a second location loss,
the second class loss employs a modified binary cross entropy loss function as follows:
Figure QLYQS_1
wherein N represents the number of predicted frames output by the network, and P 0i To predict the probability value of the frame network output as a normal pin, P 1i To predict the probability value of the frame network output as a defect pin, y 0i =1 indicates that the prediction box is marked as a normal pin, y 0i =0 as abnormal pin, y 1i =1 indicates that the prediction box is marked as a defect pin, y 1i =0, denoted as non-defective pin, g 0 And g 1 Loss weight distribution of the normal pin and the defect pin is respectively shown;
the second position loss formula is as follows:
Figure QLYQS_2
where M represents the number of positive samples of the network output, i.e. the tag value y 0i Or y 1i Number of prediction frames of 1, (x) i ,y i ) Representing the predicted box center position, (w) i ,h i ) Representing prediction block size, (x) i gt ,y i gt ) Representing the position of the center point of the marking frame, (w) i gt ,h i gt ) Representing the size of the annotation frame; l (L) 1 (x) The SmoothL1 function is used, with the following formula:
Figure QLYQS_3
g i the weight assignment in the representation location loss is consistent with the weight assignment in the category loss as follows:
Figure QLYQS_4
7. the method for detecting the defects of the power transmission line hardware based on the cascading target detection according to claim 5, wherein the method comprises the following steps: the weight updating methods of the first target detection model and the second target detection model both adopt a random gradient descent method to optimize the loss function value.
8. The utility model provides a transmission line gold utensil defect detection system based on cascade target detection which characterized in that: comprising the following steps:
the data acquisition module is used for acquiring the inspection shooting image and preprocessing the inspection shooting image;
the connection area detection module is used for detecting the connection area of the inspection shooting image by using the trained first target detection model, and cutting the detected rectangular connection area;
the connection region screening module is used for acquiring the area size of the connection regions and taking n connection regions with the area size meeting preset conditions as images to be identified;
the fine hardware defect detection module is used for detecting the fine hardware defect of the image to be identified by using the trained second target detection model, and acquiring coordinates of the fine hardware defect on the image to be identified;
and the fine hardware defects original image display module is used for displaying the fine hardware defects on the original image according to the mapping relation between the coordinates of the image to be identified and the original image coordinates.
9. The cascading object detection-based transmission line hardware defect detection system as claimed in claim 8, wherein: the system further comprises a data augmentation processing module, wherein the data augmentation processing module is used for carrying out data augmentation processing on the acquired power transmission line image before the first target detection model and the second target detection model are trained, and the image generated by the augmentation processing and the acquired original power transmission line image are used as a data set for training the first target detection model and the second target detection model together.
10. The cascading object detection-based transmission line hardware defect detection system as claimed in claim 7, wherein: the first target detection model and the second target detection model adopt a deep neural network based on a target detection algorithm.
CN202010393940.7A 2020-05-11 2020-05-11 Method and system for detecting defects of transmission line fittings based on cascade target detection Active CN111650204B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010393940.7A CN111650204B (en) 2020-05-11 2020-05-11 Method and system for detecting defects of transmission line fittings based on cascade target detection

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010393940.7A CN111650204B (en) 2020-05-11 2020-05-11 Method and system for detecting defects of transmission line fittings based on cascade target detection

Publications (2)

Publication Number Publication Date
CN111650204A CN111650204A (en) 2020-09-11
CN111650204B true CN111650204B (en) 2023-05-12

Family

ID=72346054

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010393940.7A Active CN111650204B (en) 2020-05-11 2020-05-11 Method and system for detecting defects of transmission line fittings based on cascade target detection

Country Status (1)

Country Link
CN (1) CN111650204B (en)

Families Citing this family (32)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112419680B (en) * 2020-11-19 2022-09-27 中国南方电网有限责任公司超高压输电公司检修试验中心 A method and system for classifying and identifying potential safety hazards of transmission lines
CN112508905A (en) * 2020-12-01 2021-03-16 广东电网有限责任公司 Hardware rust image detection method and computer readable storage medium
CN112581445A (en) * 2020-12-15 2021-03-30 中国电力科学研究院有限公司 Detection method and device for bolt of power transmission line, storage medium and electronic equipment
CN112683916A (en) * 2020-12-17 2021-04-20 华能新能源股份有限公司云南分公司 Method and device for identifying missing or mounting error of small hardware fittings of current collecting line tower
CN112669264B (en) * 2020-12-17 2024-07-30 国网山西省电力公司运城供电公司 Artificial intelligent defect identification method and system for unmanned aerial vehicle inspection of distribution network line
CN112712060A (en) * 2021-01-15 2021-04-27 国网浙江省电力有限公司电力科学研究院 Automatic high-voltage post porcelain insulator acoustic signal identification method
CN112837281B (en) * 2021-01-27 2022-10-28 湘潭大学 Pin defect identification method, device and equipment based on cascade convolution neural network
CN112975953B (en) * 2021-01-28 2022-06-03 珠海迪沃航空工程有限公司 Manipulator motion trajectory planning method and bolt grabbing detection system
CN112926401A (en) * 2021-01-29 2021-06-08 广州中科智巡科技有限公司 Transmission line hardware corrosion detection method and system
CN114943675A (en) * 2021-02-09 2022-08-26 富泰华工业(深圳)有限公司 Defect sample data augmentation method, electronic device, and storage medium
CN113012107B (en) * 2021-02-22 2022-07-08 江苏方天电力技术有限公司 Power grid defect detection method and system
CN113052809B (en) * 2021-03-18 2021-12-10 中科海拓(无锡)科技有限公司 EfficientNet-based nut surface defect classification method
CN113052125B (en) * 2021-04-09 2022-10-28 内蒙古科电数据服务有限公司 Construction site violation image recognition and alarm method
CN113327255A (en) * 2021-05-28 2021-08-31 宁波新胜中压电器有限公司 Power transmission line inspection image processing method based on YOLOv3 detection, positioning and cutting and fine-tune
CN113469951B (en) * 2021-06-08 2022-08-16 燕山大学 Hub defect detection method based on cascade region convolutional neural network
CN113537341A (en) * 2021-07-14 2021-10-22 安徽炬视科技有限公司 Online monitoring device and identification method for line hidden danger based on big data and self-learning
CN114049305B (en) * 2021-10-15 2024-07-16 三峡大学 Distribution line pin defect detection method based on improved ALI and fast-RCNN
CN114331965A (en) * 2021-11-30 2022-04-12 国网宁夏电力有限公司吴忠供电公司 Overhead transmission line pin missing detection method, medium and system
CN114202526A (en) * 2021-12-10 2022-03-18 北京百度网讯科技有限公司 Quality detection method, system, apparatus, electronic device, and medium
CN113903009B (en) * 2021-12-10 2022-07-05 华东交通大学 Railway foreign matter detection method and system based on improved YOLOv3 network
CN114155246B (en) * 2022-02-10 2022-06-14 国网江西省电力有限公司电力科学研究院 Deformable convolution-based power transmission tower pin defect detection method
CN114397306B (en) * 2022-03-25 2022-07-29 南方电网数字电网研究院有限公司 Power grid grading ring hypercomplex category defect multi-stage model joint detection method
CN114782679B (en) * 2022-05-05 2024-08-06 国家电网有限公司 A method and device for detecting hardware defects in power transmission lines based on cascade network
CN114882010A (en) * 2022-06-09 2022-08-09 苏州大学 Surface defect detection method based on picture recognition
CN115131335A (en) * 2022-07-21 2022-09-30 中国电力工程顾问集团华北电力设计院有限公司 Power transmission line pin missing detection method
CN115619763A (en) * 2022-10-31 2023-01-17 国网湖北省电力有限公司超高压公司 Power transmission line small part image target detection method based on multistage reasoning detection
CN115825087A (en) * 2022-12-20 2023-03-21 江苏集萃智能光电系统研究所有限公司 Dynamic visual inspection method and device for track bed defects
CN116228778B (en) * 2023-05-10 2023-09-08 国网山东省电力公司菏泽供电公司 A detection method and system for insulator rupture based on multi-modal information fusion
CN116843686B (en) * 2023-08-31 2023-11-10 成都考拉悠然科技有限公司 Method and device for detecting defects of wire clamps and nuts of contact net locator
CN116883391B (en) * 2023-09-05 2023-12-19 中国科学技术大学 A two-stage distribution line defect detection method based on multi-scale sliding windows
CN117974566B (en) * 2023-12-29 2024-09-10 北京建筑大学 Transmission line key component defect detection method and system and electronic equipment
CN119251236A (en) * 2024-12-09 2025-01-03 合肥中科类脑智能技术有限公司 Component defect identification method and device for distribution network line, electronic equipment and medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2016078081A1 (en) * 2014-11-21 2016-05-26 河南送变电工程公司 Multi-rotor-wing inspection aircraft and power transmission line inspection system
CN109344753A (en) * 2018-09-21 2019-02-15 福州大学 A deep learning-based identification method for small fittings of transmission lines in aerial images

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2016078081A1 (en) * 2014-11-21 2016-05-26 河南送变电工程公司 Multi-rotor-wing inspection aircraft and power transmission line inspection system
CN109344753A (en) * 2018-09-21 2019-02-15 福州大学 A deep learning-based identification method for small fittings of transmission lines in aerial images

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
邹捷 ; 许瑞庆 ; 习雨同 ; .深度学习在输电线路工程验收智能缺陷识别中的应用.江西电力.2020,(第02期),全文. *

Also Published As

Publication number Publication date
CN111650204A (en) 2020-09-11

Similar Documents

Publication Publication Date Title
CN111650204B (en) Method and system for detecting defects of transmission line fittings based on cascade target detection
CN111292305B (en) An improved YOLO-V3 metal processing surface defect detection method
CN109658387B (en) Method for detecting defects of pantograph carbon slide plate of electric train
WO2023155069A1 (en) Deep-learning-based surface defect detection method for mobile phone battery
CN110084165B (en) Intelligent identification and early warning method for abnormal events in open scene of power field based on edge calculation
CN113643228B (en) Nuclear power station equipment surface defect detection method based on improved CenterNet network
CN112967255A (en) Shield segment defect type identification and positioning system and method based on deep learning
CN107749058A (en) A kind of machine vision detection method and system of boiler tubing surface defect
CN111337789A (en) Method and system for detecting faulty electrical components in high-voltage transmission lines
CN113487570A (en) High-temperature continuous casting billet surface defect detection method based on improved yolov5x network model
CN114529839A (en) Unmanned aerial vehicle routing inspection-oriented power transmission line hardware anomaly detection method and system
CN116703932A (en) CBAM-HRNet model wheat spike grain segmentation and counting method based on convolution attention mechanism
CN114972316A (en) Battery case end surface defect real-time detection method based on improved YOLOv5
CN118279665A (en) Casting defect detection system based on YOLO network
CN111507249A (en) Transformer substation nest identification method based on target detection
Su et al. A defect detection method of gear end-face based on modified YOLO-V3
WO2024208102A1 (en) Deep-learning-based target detection method for defects of image of inner side of commutator
CN112381794A (en) Printing defect detection method based on deep convolution generation network
CN111707672A (en) Surface defect detection method of wind power slewing support
CN115937492B (en) Feature recognition-based infrared image recognition method for power transformation equipment
Daogang et al. Anomaly identification of critical power plant facilities based on YOLOX-CBAM
CN118521955A (en) Intelligent inspection method and system for power transmission line based on machine vision
CN112465784A (en) Method for detecting appearance abnormity of subway clamp
CN111738264A (en) An intelligent collection method of display panel data of equipment room equipment
CN114742770B (en) Electrolytic copper plate copper rumen defect detection method, training method and system

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
GR01 Patent grant
GR01 Patent grant