A method for infrared image segmentation of porcelain insulators using rectangular frame annotation

Through the combination of rectangular box annotation and mask branch network structure, the problem of low sample annotation accuracy in the segmentation processing of porcelain insulator infrared images is solved, accurate segmentation and rectangular box annotation of porcelain insulator infrared images are achieved, and troubleshooting and maintenance are improved. effect.

CN114417990BActive Publication Date: 2024-08-23GUANGDONG SHUANGDIAN TECH CO LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202210038208.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-01-13
Publication Date
2024-08-23
Estimated Expiration
2042-01-13

AI Technical Summary

Technical Problem

The existing infrared image segmentation processing method of porcelain insulators has the problem of low sample labeling accuracy, which affects the troubleshooting and maintenance of porcelain insulators.

Method used

The rectangular box annotation method is used to re-design the loss function of the mask branch network structure to annotate the rectangular box of the porcelain insulator in the infrared image. The pixel-level insulator mask is obtained by combining the porcelain insulator target detection loss function and the mask loss function. .

Benefits of technology

The segmentation processing and rectangular frame annotation of infrared images of porcelain insulators are realized, which improves the accuracy of sample annotation and solves the problems in troubleshooting and maintenance of porcelain insulators.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114417990B
    Figure CN114417990B
Patent Text Reader

Abstract

The present invention provides a method for segmenting an infrared image of a porcelain insulator using a rectangular frame annotation, which comprises the following steps: extracting image features of an infrared image of a porcelain insulator; fusing the image features to obtain a fusion feature; obtaining porcelain insulator mask parameter information and porcelain insulator mask features according to the fusion feature; combining the insulator mask features and the coordinate information corresponding to the insulator mask features to obtain an insulator mask feature map; inputting the insulator mask feature map and the porcelain insulator mask parameter information into a mask branch network structure and annotating the porcelain insulator in the infrared image with a rectangular frame. The present invention can annotate the porcelain insulator in the infrared image with a rectangular frame to obtain an insulator mask at the pixel level, thereby solving the problem of low sample annotation accuracy in the existing porcelain insulator infrared image segmentation processing method.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to the technical field of image processing, and in particular to a method for segmenting infrared images of porcelain insulators using rectangular frame annotations. Background Art

[0002] As one of the important equipment of power transmission lines, porcelain insulators play a vital role in electrical insulation and mechanical support. Due to the influence of environment and climate, porcelain insulators are prone to aging and failure, which seriously threatens the safe operation of power grid. Using infrared thermal imaging technology combined with image segmentation processing technology to diagnose porcelain insulator faults is currently a more commonly used maintenance method.

[0003] However, the existing porcelain insulator infrared image segmentation and processing methods have the problem of low sample labeling accuracy, which has a great impact on porcelain insulator troubleshooting and subsequent maintenance. Summary of the invention

[0004] Based on this, in order to solve the problem of low sample annotation accuracy in the existing porcelain insulator infrared image segmentation processing method, the present invention provides a porcelain insulator infrared image segmentation method using rectangular frame annotation, and its specific technical solution is as follows:

[0005] A method for segmenting an infrared image of a porcelain insulator using a rectangular frame annotation comprises the following steps:

[0006] S1, extract the image features of the infrared image of the porcelain insulator.

[0007] S2, fusing the image features to obtain fused features.

[0008] S3, obtaining porcelain insulator mask parameter information and porcelain insulator mask feature F according to the fusion feature mask .

[0009] S4, combining the insulator mask feature F mask And the coordinate information corresponding to the insulator mask feature Fmask obtains the insulator mask feature map F′ mask .

[0010] S5, mapping the insulator mask feature F′ mask The porcelain insulator mask parameter information is input into the mask branch network structure and the porcelain insulators in the infrared image are marked with rectangular frames.

[0011] The mask branch network structure is composed of 3 1X1 convolutions with 16 channels, and the loss function L of the mask branch network structure is overall =L detect +λL mask , L detectand L mask Respectively represent the porcelain insulator target detection loss function and the mask loss function, the porcelain insulator target detection loss function The mask loss function L mask =L proj +L pairwise , L proj =L(Proj x (m'),Proj x (b))+L(Proj y (m'),Proj y (b)),

[0012] λ is a constant, p x,y ,t x,y Respectively represent the probability and regression prediction of the position (x, y) being a porcelain insulator, N pos represents the number of positive samples, c * x,y Indicates the category of the position (x, y). If the position (x, y) is a negative sample or background, c* x,y =0, t* x,y represents the regression target at position (x,y), is the indicator function, when c * x,y >0, The value is 1, otherwise The value is 0, L cls , L reg denote the local loss function and IOU loss respectively, L(·,·) denotes dice loss, m' is the mask predicted by the network, b is the GT mask, proj x (·) represents the projection operation in the x-axis direction, proj y (·) represents the projection operation on the y-axis direction, E in represents an edge set containing at least one pixel, and N represents E in The number of edges you have, 1 {Se≥τ} is the indicator function. When Se≥τ, 1 {Se≥τ} The value is 1, otherwise, 1 {Se≥τ} The value is 0, Se is the color similarity of edge e, and τ is the color similarity threshold.

[0013] P(y e =1) = f i,j ·f k,l +(1-f i,j )·(1-f k,l ), f i,j 、fk,l They represent the probability that pixel (i, j) and pixel (k, l) become the foreground.

[0014] In the present invention, the infrared image segmentation method of porcelain insulators using rectangular frame annotation is implemented by redesigning the loss function of the mask branch network structure and annotating the porcelain insulators in the infrared image with rectangular frames based on the rectangular frame annotation method, thereby realizing the segmentation processing of the infrared image of porcelain insulators.

[0015] The insulator mask at the pixel level can be obtained by marking the porcelain insulator in the infrared image with a rectangular box through the sum of the porcelain insulator target detection loss function and the mask loss function (composed of the mapping loss term and the pairwise affinity loss term).

[0016] In summary, the method for segmenting the infrared image of porcelain insulators using rectangular frame annotation can not only realize the segmentation processing of the infrared image of porcelain insulators, but also perform rectangular frame annotation on the porcelain insulators in the infrared image to obtain the insulator mask at the pixel level, which solves the problem of low sample annotation accuracy in the existing infrared image segmentation processing method of porcelain insulators.

[0017] Furthermore, in step S1, the specific method of extracting the image features of the infrared image of the porcelain insulator comprises the following steps:

[0018] S10, construct a residual neural network.

[0019] S11, inputting the infrared image of the porcelain insulator into the residual neural network to extract image features C3, C4 and C5 of three different sizes.

[0020] Furthermore, in step S2, the specific method of fusing the image features to obtain fusion features includes the following steps:

[0021] Construct feature pyramid network;

[0022] Inputting the image features C3, C4 and C5 into the feature pyramid network;

[0023] After performing a 3X3 convolution operation with a step size of 2 on the image feature C5, an image feature C6 and a fusion feature P6 are obtained. After performing a 3X3 convolution operation with a step size of 2 on the image feature C6, an image feature C7 and a fusion feature P7 are obtained. After performing a 1X1 convolution operation and a 3X3 convolution operation on the image feature C5 in sequence, a fusion feature P5 is obtained.

[0024] A double upsampling result after a 1X1 convolution operation is performed on the image feature C5 is fused with a result after a 1X1 convolution operation is performed on the image feature C4 to obtain a first intermediate result, and a fused feature P4 is obtained after a 3X3 convolution operation is performed on the first intermediate result;

[0025] The result of performing a two-fold upsampling operation on the first intermediate result and the result of performing a 1X1 convolution operation on the image feature C4 are fused to obtain a second intermediate result, and a 3X3 convolution operation is performed on the second intermediate result to obtain a fused feature P3.

[0026] Further, in step S3, the specific method of obtaining the porcelain insulator mask parameter information according to the fusion feature comprises the following steps:

[0027] S30, generating an information sharing result including a dynamic filter in each of the fusion features;

[0028] S31, generating porcelain insulator mask parameter information corresponding to the fusion feature through the dynamic filter.

[0029] Further, in step S3, the porcelain insulator mask feature F is obtained according to the fusion feature. mask The specific method includes the following steps:

[0030] S32, constructing a fully convolutional neural network and inputting the fused feature P3, the fused feature P4 and the fused feature P5 into the fully convolutional neural network;

[0031] S33, obtaining the porcelain insulator mask feature F having a resolution of 1 / 8 of the resolution of the porcelain insulator infrared image according to the fused feature P3 and the fused features P4 and P5 after the bilinear interpolation operation. mask .

[0032] Furthermore, the fully convolutional neural network is composed of 4 3X3 convolutions with 128 channels and 1 1X1 convolution with 8 channels.

[0033] Furthermore, the value of λ is 1.

[0034] Furthermore, it is characterized in that the value of τ is 0.2.

[0035] A computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method for segmenting an infrared image of a porcelain insulator using a rectangular frame annotation is implemented. BRIEF DESCRIPTION OF THE DRAWINGS

[0036] The present invention can be further understood from the following description in conjunction with the accompanying drawings. The components in the figures are not necessarily drawn to scale, but the emphasis is placed on illustrating the principles of the embodiments. In different views, the same reference numerals designate corresponding parts.

[0037] Figure 1 The overall process diagram of a method for segmenting an infrared image of a porcelain insulator using a rectangular frame in one embodiment of the present invention is shown in FIG. Figure 1 ;

[0038] Figure 2 The overall process diagram of a method for segmenting an infrared image of a porcelain insulator using a rectangular frame in one embodiment of the present invention is shown in FIG. Figure 2 ;

[0039] Figure 3 It is a structural schematic diagram of a feature pyramid network of a method for segmenting an infrared image of a porcelain insulator using a rectangular frame annotation in one embodiment of the present invention;

[0040] Figure 4 It is a structural schematic diagram of an information sharing structure of a method for segmenting an infrared image of a porcelain insulator using a rectangular frame in one embodiment of the present invention;

[0041] Figure 5 It is a schematic diagram of the principle of a mapping loss term of a method for segmenting an infrared image of a porcelain insulator using a rectangular frame in one embodiment of the present invention;

[0042] Figure 6 It is a principle schematic diagram of a pairwise affinity loss term of a porcelain insulator infrared image segmentation method marked with a rectangular frame in one embodiment of the present invention;

[0043] Figure 7 It is a schematic diagram of a marking format of a method for segmenting an infrared image of a porcelain insulator using a rectangular frame marking in one embodiment of the present invention;

[0044] Figure 8 It is a schematic diagram of the output effect of a method for segmenting an infrared image of a porcelain insulator marked with a rectangular frame in one embodiment of the present invention. DETAILED DESCRIPTION

[0045] In order to make the purpose, technical solution and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with its embodiments. It should be understood that the specific implementation methods described herein are only used to explain the present invention and do not limit the protection scope of the present invention.

[0046] It should be noted that when an element is referred to as being "fixed to" another element, it may be directly on the other element or there may be a central element. When an element is considered to be "connected to" another element, it may be directly connected to the other element or there may be a central element at the same time. The terms "vertical", "horizontal", "left", "right" and similar expressions used herein are for illustrative purposes only and do not represent the only implementation method.

[0047] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art of the present invention. The terms used herein in the specification of the present invention are only for the purpose of describing specific embodiments and are not intended to limit the present invention. The term "and / or" used herein includes any and all combinations of one or more related listed items.

[0048] The “first” and “second” mentioned in the present invention do not represent specific quantities and orders, but are merely used to distinguish names.

[0049] like Figure 1 as well as Figure 2 As shown, a method for segmenting an infrared image of a porcelain insulator using a rectangular frame in one embodiment of the present invention comprises the following steps:

[0050] S1, extract the image features of the infrared image of the porcelain insulator.

[0051] S2, fusing the image features to obtain fused features.

[0052] S3, obtaining porcelain insulator mask parameter information and porcelain insulator mask feature F according to the fusion feature mask .

[0053] S4, combining the insulator mask feature F mask And the coordinate information corresponding to the insulator mask feature Fmask obtains the insulator mask feature map F′ mask Specific examples: Figure 2 As shown, rel.cood. (related coordinates) represents the coordinate information corresponding to the insulator mask feature Fmask.

[0054] S5, mapping the insulator mask feature F′ mask The porcelain insulator mask parameter information is input into the mask branch network structure and the porcelain insulators in the infrared image are marked with rectangular frames.

[0055] The mask branch network structure mask FCN head is composed of 3 1X1 convolutions with 16 channels, and the loss function L of the mask branch network structure is overall =L detect +λL mask , L detect and L mask Respectively represent the porcelain insulator target detection loss function and the mask loss function, the porcelain insulator target detection loss function The mask loss function L mask =L proj +L pairwise , L proj =L(Proj x (m'),Proj x (b))+L(Proj y (m'),Proj y (b)).

[0056] Among them, λ is a constant, p x,y ,t x,y Represents the classification score and regression prediction of the position (x, y), N pos represents the number of positive samples, c * x,y Indicates the category of the position (x, y). If the position (x, y) is a negative sample or background, c* x,y =0,t* x,y represents the regression target at position (x,y), is the indicator function, when c * x,y >0, The value is 1, otherwise The value is 0, L cls , L reg denote the local loss function and IOU loss respectively, L(·,·) denotes dice loss, m' is the mask predicted by the network, b is the GT (ground-truth) mask, proj x (·) represents the projection operation in the x-axis direction, proj y (·) represents the projection operation in the y-axis direction.

[0057] Assume y e ∈{0,1} is the label of edge e, pixel (i,j) and pixel (k,l) are the two endpoints of edge e. When two pixels have the same GT label, y e =1, otherwise, y e =0.y e The probability can be expressed as: Among them, fi,j 、f k,l They represent the probability that pixel (i, j) and pixel (k, l) become the foreground.

[0058] According to prior knowledge, if two pixels have similar colors, they are most likely of the same category. Taking the color similarity threshold τ as the standard, if the color similarity is greater than τ, the two pixels can be considered to have the same category. The color similarity definition formula is:

[0059] Among them, Se is the color similarity of edge e, c i,j and c k,l are the color vectors of pixel (i, j) and pixel (k, l) respectively. In order to ensure that the prior knowledge is closer to human perception, the algorithm uses the LAB color space. θ is a hyperparameter, which is 2 in the present invention.

[0060] From the above, we can see that the pairwise affinity loss term is positioned as: E in represents an edge set containing at least one pixel, and N represents E in The number of edges you have, 1 {Se≥τ} is the indicator function. When Se≥τ, 1 {Se≥τ} The value is 1, otherwise, 1 {Se≥τ} The value is 0.

[0061] Further, L(·,·) represents diceloss, which is used to solve the imbalance problem between foreground and background. max x (·) indicates the maximum value operation in the x-axis direction, max y (·) indicates the maximum value operation in the y-axis direction, l x '、l y ' are the projections of m' on the x-axis and y-axis respectively, l x , l y Represent the projection of b on the x-axis and y-axis respectively.

[0062] Specifically, the parameters of the mask branch network structure mask FCN head are provided by the controller, the value of τ is 0.2, and the value of λ is 1 to adjust the balance between the porcelain insulator target detection loss function and the mask loss function.

[0063] The mask loss function consists of a mapping loss term and a pairwise affinity loss term. proj like Figure 5 As shown, the pairwise affinity loss term L pairwise like Figure 6 shown.

[0064] In the present invention, the infrared image segmentation method of porcelain insulators using rectangular frame annotation is implemented by redesigning the loss function of the mask branch network structure and annotating the porcelain insulators in the infrared image with rectangular frames based on the rectangular frame annotation method, thereby realizing the segmentation processing of the infrared image of porcelain insulators.

[0065] The cross entropy loss function is replaced by the sum of the porcelain insulator target detection loss function and the mask loss function (composed of a mapping loss term and a pairwise affinity loss term), and the porcelain insulators in the infrared image are marked with rectangular boxes to obtain the insulator mask at the pixel level.

[0066] In summary, the method for segmenting the infrared image of porcelain insulators using rectangular frame annotation can not only realize the segmentation processing of the infrared image of porcelain insulators, but also perform rectangular frame annotation on the porcelain insulators in the infrared image to obtain the insulator mask at the pixel level, which solves the problem of low sample annotation accuracy in the existing infrared image segmentation processing method of porcelain insulators.

[0067] In one embodiment, in step S1, the specific method of extracting image features of the infrared image of the porcelain insulator comprises the following steps:

[0068] S10, construct a residual neural network.

[0069] S11, inputting the infrared image of the porcelain insulator into the residual neural network to extract image features C3, C4 and C5 of three different sizes.

[0070] The core idea of ​​the residual neural network is to use fitting residual learning to solve the network degradation and gradient vanishing or gradient degradation problems. Assuming the desired potential mapping is H(x), the feature mapping is x, and the residual feature mapping is F(x), then F(x) can be expressed as F(x) = H(x)-x. According to the equation transformation, H(x) can be expressed as H(x) = F(x) + x.

[0071] The mathematical expression of the residual learning unit is as follows: y = F(x, {W i})+x. Among them, y and x represent the output vector and input vector of the residual learning unit, and the function F(x,{W i}) represents the residual mapping to be learned, W i represents the weight of the i-th layer.

[0072] Specifically, the network depth of the residual learning unit is 50.

[0073] Since the residual learning unit has the characteristics of fast convergence speed, easy assimilation and good feature learning effect, the operation speed of the infrared image segmentation method of porcelain insulators using rectangular frame annotation can be improved by training the infrared image of porcelain insulators through the residual learning unit.

[0074] In terms of image feature fusion, since the image features of porcelain insulators of different sizes have different resolutions, the contributions of the image features of porcelain insulators of different sizes to the output fusion features are also different. In order to solve the problem of multi-size image feature fusion of porcelain insulators, in one embodiment, as Figure 3 As shown, in step S2, the specific method of fusing the image features to obtain fusion features includes the following steps:

[0075] Construct feature pyramid network;

[0076] Inputting the image features C3, C4 and C5 into the feature pyramid network;

[0077] After performing a 3X3 convolution operation with a step size of 2 on the image feature C5, an image feature C6 and a fusion feature P6 are obtained. After performing a 3X3 convolution operation with a step size of 2 on the image feature C6, an image feature C7 and a fusion feature P7 are obtained. After performing a 1X1 convolution operation and a 3X3 convolution operation on the image feature C5 in sequence, a fusion feature P5 is obtained.

[0078] A double upsampling result after a 1X1 convolution operation is performed on the image feature C5 is fused with a result after a 1X1 convolution operation is performed on the image feature C4 to obtain a first intermediate result, and a fused feature P4 is obtained after a 3X3 convolution operation is performed on the first intermediate result;

[0079] The result of performing a two-fold upsampling operation on the first intermediate result and the result of performing a 1X1 convolution operation on the image feature C4 are fused to obtain a second intermediate result, and a 3X3 convolution operation is performed on the second intermediate result to obtain a fused feature P3.

[0080] Since the feature pyramid network (FPN) uses shallow features to distinguish simple targets and deep features to distinguish complex targets, it can effectively balance speed and accuracy, so that the porcelain insulator infrared image segmentation network can obtain more robust semantic information.

[0081] By using the specific method of fusing the image features to obtain fused features described in this embodiment, the diversity of image feature scales can be increased.

[0082] In one embodiment, in step S3, the specific method of obtaining the porcelain insulator mask parameter information according to the fusion feature comprises the following steps:

[0083] S30, generating an information sharing result including a dynamic filter in each of the fused features.

[0084] S31, generating porcelain insulator mask parameter information corresponding to the fusion feature through the dynamic filter.

[0085] like Figure 4 As shown, the dynamic filter in the information sharing structure is generated by a controller, and the porcelain insulator mask parameter information includes information such as the size and shape of the porcelain insulator.

[0086] After the fusion feature passes through the dynamic filter, different porcelain insulator mask parameter information will be dynamically generated. The porcelain insulator mask parameter information is applied to the mask branch network structure to ensure the integrity of the porcelain insulator mask.

[0087] The fused features of the porcelain insulator are input into each mask filter, and the pixels of the porcelain insulator are stimulated by the instance-aware filter to generate an insulator mask prediction and distinguish each porcelain insulator instance.

[0088] In one embodiment, in step S3, the porcelain insulator mask feature F is obtained according to the fusion feature. mask The specific method includes the following steps:

[0089] S32, constructing a fully convolutional neural network (FCN) and inputting the fused feature P3, the fused feature P4 and the fused feature P5 into the fully convolutional neural network;

[0090] S33, obtaining the porcelain insulator mask feature F having a resolution of 1 / 8 of the resolution of the porcelain insulator infrared image according to the fused feature P3 and the fused features P4 and P5 after the bilinear interpolation operation. mask .

[0091] Specifically, the fully convolutional neural network consists of 4 3X3 convolutions with 128 channels and 1 1X1 convolution with 8 channels. FCN uses convolutional layers to replace fully connected layers, preserving spatial information. FCN can reduce the number of generated parameters and improve the algorithm calculation speed by adjusting the last layer of convolution channels to 8.

[0092] In order to increase the attention of porcelain insulators in infrared images, dynamic masks are used in each feature layer for instance-aware prediction. For a specific porcelain insulator infrared image, different insulator masks are dynamically generated through dynamic filters, and the features of the insulator are input into each mask filter. When the insulator mask information is input into the filter, the instance-aware filter only excites the pixels of the instance, generates the insulator instance mask prediction, and distinguishes each insulator instance.

[0093] The experiment selected 500 infrared images of porcelain insulators to construct a dataset, which includes complex background images of single porcelain insulators and multiple porcelain insulators. The images were taken by a FLIR infrared thermal imager on the porcelain insulators of transmission lines, with a resolution of 640×480 and a file format of JPG.

[0094] 350 infrared images of porcelain insulators are randomly selected from the data set as the training set for algorithm model training. The Labelme annotation tool is used to annotate the porcelain insulators in the infrared images one by one using rectangular boxes. The annotation format is as follows: Figure 7 The remaining 150 images are used as a test set for algorithm performance testing.

[0095] The computer configuration used in the experiment is: i5-9300H 2.4GHz CPU and 16GB RAM. The relevant parameters are set as follows: the number of iterations is 200, the batch size is 2, and the initial learning rate is 0.001. At the same time, only the left-right flip data enhancement method is used during training.

[0096] The trained model (i.e., the network model built by the porcelain insulator infrared image segmentation method) is used to segment the test set images. Four output images are randomly selected for effect display, such as Figure 8 shown.

[0097] At the same time, the performance of the trained model is evaluated and the data in the following table is obtained.

[0098]

[0099] In summary, the infrared image segmentation method for porcelain insulators of the present invention can accurately detect, identify, locate and segment porcelain insulators. According to the principle that adjacent pixels have the same category, porcelain insulators outside the detection box can be segmented even if the detection box does not surround the insulator. The trained model achieved good scores in box AP, mask AP and inference time (inf.time). It can be proved that the present invention can achieve complete segmentation of porcelain insulators in the context of complex transmission lines.

[0100] In one embodiment, a computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method for segmenting an infrared image of a porcelain insulator using rectangular frames is implemented.

[0101] The technical features of the above-described embodiments may be arbitrarily combined. To make the description concise, not all possible combinations of the technical features in the above-described embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0102] The above-mentioned embodiments only express several implementation methods of the present invention, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the invention patent. It should be pointed out that, for ordinary technicians in this field, several variations and improvements can be made without departing from the concept of the present invention, and these all belong to the protection scope of the present invention. Therefore, the protection scope of the patent of the present invention shall be subject to the attached claims.

Claims

1. A method for segmenting an infrared image of a porcelain insulator using a rectangular frame, characterized in that: The steps include: S1, extracting image features of infrared images of porcelain insulators; S2, fusing the image features to obtain fused features; S3, obtaining porcelain insulator mask parameter information and porcelain insulator mask feature F according to the fusion feature mask ; S4, combining the insulator mask feature F mask And the coordinate information corresponding to the insulator mask feature Fmask obtains the insulator mask feature map F′ mask ; S5, mapping the insulator mask feature F′ mask The porcelain insulator mask parameter information is input into the mask branch network structure and the porcelain insulator in the infrared image is marked with a rectangular frame; The mask branch network structure is composed of 3 1X1 convolutions with 16 channels, and the loss function L of the mask branch network structure is overall =L detect +λL mask , L detect and L mask Respectively represent the porcelain insulator target detection loss function and the mask loss function, the porcelain insulator target detection loss function The mask loss function L mask =L proj +L pairwise , L proj =L(Proj x (m'),Proj x (b))+L(Proj y (m'),Proj y (b)), λ is a constant, p x,y ,t x,y Respectively represent the probability and regression prediction of the position (x, y) being a porcelain insulator, N pos represents the number of positive samples, c* x,y Indicates the category of the position (x, y). If the position (x, y) is a negative sample or background, c* x,y =0,t* x,y represents the regression target at position (x,y), is the indicator function, when c* x,y >0, The value is 1, otherwise The value is 0, L cls , L reg denote the local loss function and IOU loss respectively, L(·,·) denotes dice loss, m' is the mask predicted by the network, b is the GT mask, proj x (·) represents the projection operation in the x-axis direction, proj y (·) represents the projection operation on the y-axis direction, E in represents an edge set containing at least one pixel, and N represents E in The number of edges you have, 1 {Se≥τ} is the indicator function. When Se≥τ, 1 {Se≥τ} The value is 1, otherwise, 1 {Se≥τ} The value is 0, Se is the color similarity of edge e, and τ is the color similarity threshold; P(y e =1) = f i,j ·f k,l +(1-f i,j )·(1-f k,l ), f i,j 、f k,l They represent the probability that pixel (i, j) and pixel (k, l) become the foreground.

2. The method for segmenting an infrared image of a porcelain insulator using a rectangular frame as claimed in claim 1, characterized in that: In step S1, the specific method of extracting image features of the infrared image of the porcelain insulator comprises the following steps: S10, constructing a residual neural network; S11, inputting the infrared image of the porcelain insulator into the residual neural network to extract image features C3, C4 and C5 of three different sizes.

3. The method for segmenting an infrared image of a porcelain insulator using a rectangular frame as claimed in claim 2, characterized in that: In step S2, the specific method of fusing the image features to obtain fusion features includes the following steps: Construct feature pyramid network; Inputting the image features C3, C4 and C5 into the feature pyramid network; After performing a 3X3 convolution operation with a step size of 2 on the image feature C5, an image feature C6 and a fusion feature P6 are obtained. After performing a 3X3 convolution operation with a step size of 2 on the image feature C6, an image feature C7 and a fusion feature P7 are obtained. After performing a 1X1 convolution operation and a 3X3 convolution operation on the image feature C5 in sequence, a fusion feature P5 is obtained. A double upsampling result after a 1X1 convolution operation is performed on the image feature C5 is fused with a result after a 1X1 convolution operation is performed on the image feature C4 to obtain a first intermediate result, and a fused feature P4 is obtained after a 3X3 convolution operation is performed on the first intermediate result; The result of performing a two-fold upsampling operation on the first intermediate result and the result of performing a 1X1 convolution operation on the image feature C4 are fused to obtain a second intermediate result, and a 3X3 convolution operation is performed on the second intermediate result to obtain a fused feature P3.

4. The method for segmenting an infrared image of a porcelain insulator using a rectangular frame as claimed in claim 3, characterized in that: In step S3, the specific method of obtaining the porcelain insulator mask parameter information according to the fusion feature comprises the following steps: S30, generating an information sharing result including a dynamic filter in each of the fusion features; S31, generating porcelain insulator mask parameter information corresponding to the fusion feature through the dynamic filter.

5. The method for segmenting an infrared image of a porcelain insulator using a rectangular frame as claimed in claim 4, characterized in that: In step S3, the porcelain insulator mask feature F is obtained according to the fusion feature mask The specific method includes the following steps: S32, constructing a fully convolutional neural network and inputting the fused feature P3, the fused feature P4 and the fused feature P5 into the fully convolutional neural network; S33, obtaining the porcelain insulator mask feature F having a resolution of 1 / 8 of the resolution of the porcelain insulator infrared image according to the fused feature P3 and the fused features P4 and P5 after bilinear interpolation operation. mask .

6. The method for segmenting an infrared image of a porcelain insulator using a rectangular frame as claimed in claim 5, characterized in that: The fully convolutional neural network consists of 4 3X3 convolutions with 128 channels and 1 1X1 convolution with 8 channels.

7. The method for segmenting an infrared image of a porcelain insulator using a rectangular frame as claimed in claim 1, characterized in that: The value of λ is 1.

8. The method for segmenting an infrared image of a porcelain insulator using a rectangular frame annotation as claimed in claim 1, characterized in that: The value of τ is 0.

2.

9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method for segmenting an infrared image of a porcelain insulator using a rectangular frame annotation as described in any one of claims 1 to 8 is implemented.

Citation Information

Patent Citations

  • Image-processing-based insulator defect detection method and system

    CN106780438A

  • Image segmentation method and device and full convolutional network system

    CN107784654A

  • Composite insulator overheating defect detection method based on instance segmentation

    CN111047554A

  • Power transmission line insulator defect detection method based on improved YOLOv4 algorithm

    CN113469953A