Disclosure of Invention
In order to solve the defects of the prior art, the invention provides the transmission line inspection method and the transmission line inspection system based on multi-source image fusion, which effectively avoid the problem of energy characteristic loss in the fusion process, reduce the application of a large-scale neural network model and improve the recognition efficiency and the recognition precision.
In order to achieve the above purpose, the present invention adopts the following technical scheme:
the invention provides a transmission line inspection method based on multi-source image fusion.
A transmission line inspection method based on multi-source image fusion comprises the following steps:
respectively decomposing the obtained infrared image and visible light image of the power transmission line to obtain a high-frequency component and a low-frequency component of the infrared image and a high-frequency image and a low-frequency component of the visible light image;
obtaining low-frequency component fusion weights according to pixel intensity information of the infrared image, and fusing the low-frequency components of the infrared image and the low-frequency components of the visible light image according to the low-frequency component fusion weights to obtain fused low-frequency components;
obtaining corresponding visual mapping of each high-frequency component according to the high-frequency component of the infrared image and the high-frequency component of the visible light image, further obtaining weight corresponding to each high-frequency component, and fusing the high-frequency components according to the weight corresponding to each high-frequency component to obtain fused high-frequency components;
and merging the fused high-frequency component and low-frequency component to obtain a fusion result image, obtaining a pollution recognition result of the insulator string of the power transmission line according to the fusion result image and the deep learning model, obtaining an ultraviolet image of the recognized pollution insulator, and obtaining an abnormal discharge recognition result of the insulator of the power transmission line according to the ultraviolet image of the recognized pollution insulator.
As a further limitation of the first aspect of the present invention, obtaining the low frequency component fusion weight according to the pixel intensity information of the infrared image includes:
and calculating the absolute value of each pixel of the low-frequency component of the infrared image, normalizing, and obtaining the low-frequency component fusion weight according to the normalized result.
As a further limitation of the first aspect of the present invention, fusing the low frequency component of the infrared image with the low frequency component of the visible light image according to the low frequency component fusion weight comprises:
the weight of the low frequency component of the infrared image is a, and the weight of the low frequency component of the visible light image is 1-a.
As a further limitation of the first aspect of the present invention, obtaining a corresponding visual map of each high frequency component, and further obtaining a weight corresponding to each high frequency component, including:
if the visual mapping of the high frequency component of the infrared image is X1 and the visual mapping of the high frequency component of the visible light image is X2, the weight corresponding to the high frequency component of the infrared image is: the weight corresponding to the high-frequency component of the visible light image is X1/(X1 + X2): x2/(x1+x2).
As a further limitation of the first aspect of the invention, the loss function L of the image fusion process is a similarity loss L 1 Loss of strength L 2 And gradient loss L 3 Is a fusion of (2);
wherein,,
,/>
and->
Is a super parameter.
The invention provides a transmission line inspection system based on multi-source image fusion.
A transmission line inspection system based on multi-source image fusion comprises:
an image decomposition module configured to: respectively decomposing the obtained infrared image and visible light image of the power transmission line to obtain a high-frequency component and a low-frequency component of the infrared image and a high-frequency image and a low-frequency component of the visible light image;
a low frequency fusion module configured to: obtaining low-frequency component fusion weights according to pixel intensity information of the infrared image, and fusing the low-frequency components of the infrared image and the low-frequency components of the visible light image according to the low-frequency component fusion weights to obtain fused low-frequency components;
a high frequency fusion module configured to: obtaining corresponding visual mapping of each high-frequency component according to the high-frequency component of the infrared image and the high-frequency component of the visible light image, further obtaining weight corresponding to each high-frequency component, and fusing the high-frequency components according to the weight corresponding to each high-frequency component to obtain fused high-frequency components;
a fusion identification module configured to: and merging the fused high-frequency component and low-frequency component to obtain a fusion result image, obtaining a pollution recognition result of the insulator string of the power transmission line according to the fusion result image and the deep learning model, obtaining an ultraviolet image of the recognized pollution insulator, and obtaining an abnormal discharge recognition result of the insulator of the power transmission line according to the ultraviolet image of the recognized pollution insulator.
As a further limitation of the second aspect of the present invention, the low-frequency component fusion weight is obtained according to the pixel intensity information of the infrared image in the low-frequency fusion module, and the method includes:
and calculating the absolute value of each pixel of the low-frequency component of the infrared image, normalizing, and obtaining the low-frequency component fusion weight according to the normalized result.
As a further limitation of the second aspect of the present invention, fusing the low frequency component of the infrared image with the low frequency component of the visible light image according to the low frequency component fusion weight comprises:
the weight of the low frequency component of the infrared image is a, and the weight of the low frequency component of the visible light image is 1-a.
As a further limitation of the second aspect of the present invention, the obtaining, in the high-frequency fusion module, a corresponding visual map of each high-frequency component, and further obtaining a weight corresponding to each high-frequency component, includes:
if the visual mapping of the high frequency component of the infrared image is X1 and the visual mapping of the high frequency component of the visible light image is X2, the weight corresponding to the high frequency component of the infrared image is: the weight corresponding to the high-frequency component of the visible light image is X1/(X1 + X2): x2/(x1+x2).
As a further limitation of the second aspect of the invention, the loss function L of the image fusion process is a similarity loss L 1 Loss of strength L 2 And gradient loss L 3 Is a fusion of (2);
wherein,,
,/>
and->
Is a super parameter.
Compared with the prior art, the invention has the beneficial effects that:
1. the invention creatively provides a transmission line inspection method and a transmission line inspection system based on multi-source image fusion, which are used for obtaining low-frequency component fusion weights according to pixel intensity information of an infrared image, and fusing the low-frequency component of the infrared image with the low-frequency component of a visible light image according to the low-frequency component fusion weights to obtain fused low-frequency components, so that the problem of energy characteristic loss in the fusion process is effectively avoided, the application of a large-scale neural network model is reduced, and the recognition efficiency and recognition precision are improved.
2. The invention creatively provides a transmission line inspection method and a transmission line inspection system based on multi-source image fusion, wherein a loss function L in an image fusion process is similarity loss L 1 Loss of strength L 2 And gradient loss L 3 Wherein l=l 1 +αL 2 + βL 3 Alpha and beta are super parameters, and heat radiation information of the infrared image and texture information of the visible light image are reserved to the maximum extent.
3. The invention creatively provides a transmission line inspection method and a transmission line inspection system based on multi-source image fusion, which are used for acquiring an ultraviolet image of an identified polluted insulator, obtaining an abnormal discharge identification result of the transmission line insulator according to the ultraviolet image of the identified polluted insulator, avoiding the influence of external interference factors on abnormal discharge identification, and being capable of more rapidly identifying flashover discharge caused by the pollution of the insulator.
Additional aspects of the invention will be set forth in part in the description which follows and, in part, will be obvious from the description, or may be learned by practice of the invention.
Detailed Description
The invention will be further described with reference to the drawings and examples.
Embodiments of the invention and features of the embodiments may be combined with each other without conflict.
Example 1:
as shown in fig. 1, embodiment 1 of the present invention provides a transmission line inspection method based on multi-source image fusion, which includes the following steps:
s1: respectively carrying out Laplacian pyramid decomposition on the obtained infrared image and visible light image of the power transmission line to obtain a high-frequency component and a low-frequency component of the infrared image and a high-frequency image and a low-frequency component of the visible light image;
s2: obtaining a low-frequency component fusion weight according to the pixel intensity information of the infrared image, and fusing the low-frequency component of the infrared image with the low-frequency component of the visible light image according to the low-frequency component fusion weight to obtain a fused low-frequency component;
s3: obtaining corresponding visual mapping of each high-frequency component according to the high-frequency component of the infrared image and the high-frequency component of the visible light image, further obtaining weight corresponding to each high-frequency component, and fusing the high-frequency components according to the weight corresponding to each high-frequency component to obtain fused high-frequency components;
s4: merging the fused high-frequency component and low-frequency component, and then executing inverse Laplacian transformation to obtain a fusion result image;
s5: obtaining a power transmission line insulator string pollution identification result according to the fusion result image and the deep learning model, obtaining an ultraviolet image of the identified pollution insulator, and obtaining a power transmission line insulator abnormal discharge identification result according to the ultraviolet image of the identified pollution insulator.
Specifically, the laplacian pyramid decomposition includes: firstly, carrying out low-pass wave on an original image, then, carrying out downsampling to obtain a low-frequency component, namely an approximate component of the original image, carrying out upsampling on the low-frequency component, carrying out high-pass filtering on the component obtained by upsampling, carrying out difference between the component obtained after high-pass and the original image, and finally, obtaining a high-restlessness component obtained after Laplace decomposition.
Specifically, obtaining a low-frequency component fusion weight according to pixel intensity information of an infrared image includes:
and calculating the absolute value of each pixel of the low-frequency component of the infrared image, normalizing, and obtaining the low-frequency component fusion weight according to the normalized result.
More specifically, it includes:
the absolute value taken from each pixel of the decomposed low frequency part in the infrared image is as follows:
wherein T reflects significant infrared characteristic distribution, T1 represents the highest level of decomposition information, i.e. low frequency information, and for a point x in the image, a larger value of T (x) results in a larger pixel intensity value and significant infrared characteristic information, and normalizing T to obtain normalized variable M.
A nonlinear transformation function is introduced to further adjust to control the relative effective information of the infrared image and the visible light image in the fused image:
in the method, in the process of the invention,
the range of (0, 1) represents the argument of the function, the function parameter +.>
Greater than 0, when->
In the event of an increase in the number of the cells,
the shape of the curve becomes steeper and the corresponding nonlinear transformation gradually increases. Thus, by adjusting->
To control the amount of infrared information in the combined result, the final low frequency information fusion weight can be expressed as:
the weight of the low-frequency component of the infrared image is a, the weight of the low-frequency component of the visible light image is 1-a, the low-frequency component of the infrared image is multiplied by a, the low-frequency component of the visible light image is multiplied by 1-a, and the two components are added to obtain a fusion result of the low-frequency component;
obtaining a corresponding visual mapping of each high-frequency component, and further obtaining a weight corresponding to each high-frequency component, including:
the visual mapping of the high-frequency component of the infrared image is X1, and the visual mapping of the high-frequency component of the visible light image is X2, the weight corresponding to the high-frequency component of the infrared image is: b=x1/(x1+x2), the weight corresponding to the high-frequency component of the visible light image is: c=x2/(x1+x2).
More specifically, b is multiplied by the high-frequency component of the infrared image, c is multiplied by the high-frequency component of the visible light image, and the two components are added to obtain a fusion result of the high-frequency component.
Optionally, the loss function L of the image fusion process is a similarity loss L 1 Loss of strength L 2 And gradient loss L 3 Continuously carrying out weight and decomposition parameter correction to achieve the optimal fusion effect;
wherein,,
,/>
and->
Is a super parameter.
The structural similarity measure Y simulates distortion according to the similarity of brightness, contrast and structural information, and is selected to constrain the structural similarity between the input source image pairs Q1 and Q2 and the fused image F, with a structural similarity loss L in this embodiment 1 The calculation formula of (2) is as follows:
L 1 =((1-Y(F,Q1))+(1-Y(F,Q1)))*0.5(4)
the intensity loss constraint fusion image maintains an intensity distribution similar to the source image, intensity loss L 2 The calculation formula of (2) is as follows:
wherein H and W represent the height and width of the image, respectively,
representing pixel error between images x and y, < >>
Is a positive parameter that controls the trade-off between the two terms.
Gradient loss forces the fusion image to be richTexture detail information, gradient penaltyL 3 The calculation formula of (2) is as follows:
where H and W represent the height and width of the image, respectively,
representing the Sobel gradient operator, ++>
Represents the loss of edge information between images x and y, of->
The method is used for adjusting the proportion of different modal gradient information in the fusion image.
Specifically, the deep learning model adopts a pre-trained BP neural network model, the BP neural network model comprises an input layer, an implied layer and an output layer, the implied layer uses a log sig function, the output layer uses a purelin function, and the number of neurons of the implied layer is as follows:
where n is the number of neurons in the hidden layer,n i for the number of neurons of the input layer,n 0 for the number of neurons of the output layer, a belongs to the set [1,10]。
Taking the pollution level of the identified insulator as an example, after shooting of the insulator image (including the visible light image and the infrared light image) is completed each time, counting all the pollution levels (manual labeling) of the insulator according to the standard, acquiring and recording the infrared thermal image under each pollution level according to the mode, collecting 500 groups of insulator fusion images of five pollution levels according to the description, wherein each pollution level corresponds to 100 groups, and 80 groups are selected as training groups and 20 groups are selected as test groups to train the BP neural network.
Alternatively, the loss function of the BP neural network may be:
wherein, T (i, j) and Q (i, j) are pixel values of the preprocessed image and the standard image at the (i, j) position, A is the maximum value of i, and B is the maximum value of j.
It can be appreciated that in other implementations, corresponding levels may be set for cracks, breakage, foreign objects, or the like, and the fused artificial annotation images are used for identification (each identification uses a different training model), and those skilled in the art may select according to specific working conditions, which will not be described herein.
After the identification result of the pollution grade of the insulator string is obtained, acquiring ultraviolet images of the insulator string with larger pollution grade or all the insulator strings with the pollution grade, and identifying the pollution discharge condition according to the ultraviolet images, wherein the identification method can adopt the existing scheme;
the ultraviolet image is adopted to identify the discharge condition, so that whether the insulator string with the larger pollution level has the larger discharge condition can be judged, and the corresponding relation between the pollution level and the discharge condition is generated according to the matching of the discharge condition and the pollution level, so that more accurate identification is realized.
Example 2:
as shown in fig. 2, embodiment 2 of the present invention provides a transmission line inspection system based on multi-source image fusion, including:
an image decomposition module configured to: respectively decomposing the obtained infrared image and visible light image of the power transmission line to obtain a high-frequency component and a low-frequency component of the infrared image and a high-frequency image and a low-frequency component of the visible light image;
a low frequency fusion module configured to: obtaining low-frequency component fusion weights according to pixel intensity information of the infrared image, and fusing the low-frequency components of the infrared image and the low-frequency components of the visible light image according to the low-frequency component fusion weights to obtain fused low-frequency components;
a high frequency fusion module configured to: obtaining corresponding visual mapping of each high-frequency component according to the high-frequency component of the infrared image and the high-frequency component of the visible light image, further obtaining weight corresponding to each high-frequency component, and fusing the high-frequency components according to the weight corresponding to each high-frequency component to obtain fused high-frequency components;
a fusion identification module configured to: and merging the fused high-frequency component and low-frequency component to obtain a fusion result image, obtaining a pollution recognition result of the insulator string of the power transmission line according to the fusion result image and the deep learning model, obtaining an ultraviolet image of the recognized pollution insulator, and obtaining an abnormal discharge recognition result of the insulator of the power transmission line according to the ultraviolet image of the recognized pollution insulator.
In this embodiment, in the low-frequency fusion module, low-frequency component fusion weights are obtained according to pixel intensity information of an infrared image, including:
and calculating the absolute value of each pixel of the low-frequency component of the infrared image, normalizing, and obtaining the low-frequency component fusion weight according to the normalized result.
In this embodiment, fusing the low-frequency component of the infrared image with the low-frequency component of the visible light image according to the low-frequency component fusion weight includes:
the weight of the low frequency component of the infrared image is a, and the weight of the low frequency component of the visible light image is 1-a.
In this embodiment, the high-frequency fusion module obtains a corresponding visual mapping of each high-frequency component, and further obtains a weight corresponding to each high-frequency component, including:
if the visual mapping of the high frequency component of the infrared image is X1 and the visual mapping of the high frequency component of the visible light image is X2, the weight corresponding to the high frequency component of the infrared image is: the weight corresponding to the high-frequency component of the visible light image is X1/(X1 + X2): x2/(x1+x2).
Optionally, the loss function L of the image fusion process is a similarity loss L 1 Loss of strengthLoss of L 2 And gradient loss L 3 Is a fusion of (2);
wherein l=l 1 +αL 2 + βL 3 Alpha and beta are hyper-parameters.
The specific working method of each module is the same as that provided in embodiment 1, and will not be described here again.
The above description is only of the preferred embodiments of the present invention and is not intended to limit the present invention, but various modifications and variations can be made to the present invention by those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention should be included in the protection scope of the present invention.