Real-time monitoring method and system for power transformer operating status based on infrared image

By combining infrared thermal imaging technology and background modeling with an improved target detection algorithm, the problem of low accuracy and insufficient real-time performance in power transformer monitoring in the existing technology is solved, and efficient identification and timely alarm of abnormal operating status of power transformers are achieved.

CN118552910BActive Publication Date: 2024-10-25JIAXIANG POWER SUPPLY CO OF STATE GRID SHANDONG ELECTRIC POWER CO
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411016802.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-29
Publication Date
2024-10-25
Estimated Expiration
2044-07-29

AI Technical Summary

Technical Problem

Existing power transformer operating status monitoring methods cannot meet the requirements of monitoring accuracy and real-time performance. In particular, there are problems of false detection and low detection accuracy in detection under high temperature and fire conditions.

Method used

Infrared thermal imaging technology is used to obtain infrared images of power transformers, and the foreground area is extracted through background modeling, and an improved target detection algorithm is used to detect abnormal areas and perform secondary confirmation to determine the operating status of the power transformer.

Benefits of technology

It improves the detection accuracy, reduces false detections, meets the real-time requirements of monitoring, and can promptly identify abnormal operating conditions and issue alarms.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118552910B_ABST
    Figure CN118552910B_ABST
Patent Text Reader

Abstract

The present invention discloses a real-time monitoring method and system for the operation status of a power transformer based on infrared images, which relates to the technical field of monitoring the operation status of power transformers, including: obtaining continuous frame infrared images of the power transformer in operation in real time, using an improved background modeling method, extracting and framing the foreground area of ​​the current frame infrared image after preprocessing, if the area of ​​the foreground area is greater than a set value, the foreground area is used as a suspected abnormal area, otherwise the operation status is judged to be normal; the abnormal area includes an abnormally high temperature area and a fire area; the current frame infrared image of the framed foreground area is input into an improved R-CNN-based target detection model, and an abnormal area detection frame is output; a secondary confirmation is performed based on the suspected abnormal area and the abnormal area detection frame to judge whether the power transformer has an abnormal operation state, and an alarm is issued according to the judgment result. The present invention can meet the requirements of accuracy and real-time monitoring of the operation status of power transformers.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to the technical field of power transformer operating state monitoring, and in particular to a real-time monitoring method and system for the operating state of a power transformer based on infrared images. Background Art

[0002] As one of the important equipment in the power grid, the safe and reliable operation of power transformers is the fundamental guarantee for the normal operation of the power system. In production and operation, the damage and failure of power transformers will not only cause the loss of power assets and power loss caused by power outages, but also affect the quality of power supply services. At present, on the one hand, due to the increasingly wide coverage of the power system, the load of transformers is getting larger and larger. On the other hand, the operating environment of power transformers itself will have high temperature, high voltage and strong current, and they will work in harsh environments for a long time. Transformer failures occur frequently. In severe cases, fires will occur and burn transformers, causing paralysis of the power system and major property losses. Moreover, after the fire occurs, it is easy to cause the transformer to explode, causing more serious secondary accidents. Therefore, real-time monitoring of the operating status of power transformers, reducing and preventing transformer fires and failures, and ensuring the stable operation of transformers and ensuring power transmission safety are one of the important measures to maintain the safe operation of the power grid.

[0003] The daily operation and maintenance inspection of traditional power system transformers relies on manpower, which is time-consuming and labor-intensive, and cannot avoid failures or secondary accidents in time. In recent years, with the rapid development of neural network technology, many target detection algorithms have been widely used, which provides a new solution for online monitoring of abnormal transformer conditions. Since the current and voltage effects will generate heat, when the internal components of the transformer fail, the defective parts will have abnormal heating and discharge. The use of infrared thermal imagers can present the temperature status of the equipment non-contactly, and is widely used in the field of power equipment diagnosis. Therefore, using infrared thermal imagers to collect infrared images of power transformers, using target detection algorithms to process the infrared images, identifying abnormal temperature areas in power transformers and issuing abnormal operating status alarms are common monitoring methods for the operating status of power transformers.

[0004] However, the existing power transformer operation status monitoring method has certain drawbacks. The mainstream target detection algorithms used in this method include one-stage and two-stage. The two-stage algorithm is represented by the R-CNN (regional convolutional neural network) series, while the one-stage algorithm is represented by the YOLO (You Only Look Once, an object detection and image segmentation model) series. The core of the two-stage algorithm is to extract the target candidate area from the image first, and then classify the features of the candidate area and accurately judge the position through the classification network; while the one-stage algorithm only needs to send the input image into the network once to obtain the target category and location information. Compared with the one-stage algorithm, the two-stage has the advantage of high accuracy, but because it has more network parameters, its calculation result rate is slower. Considering that the monitoring of the operation status of the transformer in the store requires both high accuracy to avoid false detection and high timeliness to avoid secondary accidents, the existing monitoring methods cannot meet the requirements of monitoring accuracy and real-time performance. Summary of the invention

[0005] In order to solve the deficiencies of the above-mentioned prior art, the present invention provides a real-time monitoring method and system for the operating status of a power transformer based on infrared images. Considering that when the power transformer is operating abnormally, there may be high temperature or fire in the abnormal area, infrared thermal imaging technology is used to collect infrared images of the power transformer during operation, and background modeling is performed on the infrared image to extract the foreground area. A preliminary judgment is made based on the foreground area, and then an improved target detection algorithm is used to perform target detection in the abnormal area of ​​the infrared image. The target detection area and the foreground area are jointly judged to monitor and identify the abnormal operating status. The above method can avoid the problems of low detection accuracy and false detection caused by only using the target detection algorithm, and the background modeling and detection algorithm are highly efficient, which can meet the real-time requirements of monitoring.

[0006] In a first aspect, the present invention provides a method for real-time monitoring of the operating status of a power transformer based on infrared images.

[0007] A real-time monitoring method for the operation status of a power transformer based on infrared images, comprising:

[0008] Real-time acquisition of continuous frame infrared images of power transformers during operation;

[0009] Preprocessing the acquired continuous frame infrared images;

[0010] The improved background modeling method is used to extract and frame the foreground area of ​​the current frame infrared image after preprocessing. If the area of ​​the foreground area is larger than the set value, the foreground area is regarded as a suspected abnormal area, otherwise the operating state is judged to be normal; the abnormal area includes abnormally high temperature area and fire area, and the abnormally high temperature area is an area where the temperature exceeds the normal operating temperature of the power transformer;

[0011] Input the current frame infrared image with the foreground area framed into the improved R-CNN-based target detection model, and output the abnormal area detection frame;

[0012] A secondary confirmation is performed based on the suspected abnormal area and the abnormal area detection frame to determine whether the power transformer is in an abnormal operating state, and an alarm is issued based on the judgment result.

[0013] In a second aspect, the present invention provides a real-time monitoring system for the operating status of a power transformer based on infrared images.

[0014] A real-time monitoring system for the operation status of a power transformer based on infrared images, comprising:

[0015] An image acquisition module is used to acquire continuous frame infrared images of the power transformer in operation in real time;

[0016] An image preprocessing module is used to preprocess the acquired continuous frame infrared images;

[0017] The operating status preliminary detection module is used to extract and frame the foreground area of ​​the infrared image of the current frame after preprocessing by using an improved background modeling method. If the area of ​​the foreground area is larger than the set value, the foreground area is regarded as a suspected abnormal area, otherwise the operating status is judged to be normal; wherein the abnormal area includes an abnormally high temperature area and a fire area, and the abnormally high temperature area is an area where the temperature exceeds the normal operating temperature of the power transformer;

[0018] The abnormal area detection module is used to input the current frame infrared image with the foreground area framed into the improved R-CNN-based target detection model and output the abnormal area detection frame;

[0019] The operating status secondary confirmation module is used to perform secondary confirmation based on the suspected abnormal area and the abnormal area detection frame to determine whether the power transformer has an abnormal operating state and issue an alarm based on the judgment result.

[0020] One or more of the above technical solutions have the following beneficial effects:

[0021] The present invention proposes a real-time monitoring method and system for the operation status of a power transformer based on infrared images. Considering that abnormal operation of the power transformer may result in high temperature or fire in abnormal areas, infrared thermal imaging technology is used to collect infrared images of the power transformer during operation, background modeling is performed on the infrared image to extract the foreground area, a preliminary judgment is made based on the foreground area, and then an improved target detection algorithm is used to perform target detection on the infrared image in the abnormal area. The target detection area and the foreground area are jointly judged to monitor and identify the abnormal operation status. The above method can avoid the problems of low detection accuracy and false detection caused by only using the target detection algorithm, and the background modeling and detection algorithm are highly efficient, which can meet the real-time monitoring requirements. BRIEF DESCRIPTION OF THE DRAWINGS

[0022] The accompanying drawings in the specification, which constitute a part of the present invention, are used to provide a further understanding of the present invention. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute improper limitations on the present invention.

[0023] Figure 1 This is an overall flow chart of the real-time monitoring method for the operating status of a power transformer based on infrared images according to an embodiment of the present invention;

[0024] Figure 2 A schematic diagram of the network structure of a target detection model in an embodiment of the present invention;

[0025] Figure 3 Schematic diagram of the network structure of Swin-Transformer Block in an embodiment of the present invention. DETAILED DESCRIPTION

[0026] It should be noted that the following detailed descriptions are exemplary only, are intended to describe specific embodiments, are intended to provide further explanation of the present invention, and are not intended to limit exemplary embodiments according to the present invention. Unless otherwise specified, all technical and scientific terms used herein have the same meanings as those of ordinary skill in the art to which the present invention belongs. In addition, it should also be understood that when the terms "comprising" and / or "including" are used in this specification, it indicates the presence of features, steps, operations, devices, components and / or combinations thereof.

[0027] Embodiment 1

[0028] This embodiment provides a method for real-time monitoring of the operating status of a power transformer based on infrared images. Figure 1 As shown, the specific steps include:

[0029] Step S1, acquiring continuous frame infrared images of the power transformer during operation in real time;

[0030] Step S2, preprocessing the acquired continuous frame infrared images;

[0031] Step S3, using an improved background modeling method, extracting and framing the foreground area of ​​the preprocessed current frame infrared image, if the area of ​​the foreground area is larger than the set value, the foreground area is regarded as a suspected abnormal area, otherwise it is judged that the operating state is normal; wherein the abnormal area includes an abnormally high temperature area and a fire area, and the abnormally high temperature area is an area where the temperature exceeds the normal operating temperature of the power transformer;

[0032] Step S4, inputting the infrared image of the current frame with the foreground area framed into the improved R-CNN-based target detection model, and outputting the abnormal area detection frame;

[0033] Step S5: Perform secondary confirmation based on the suspected abnormal area and the abnormal area detection frame to determine whether the power transformer is in an abnormal operating state, and issue an alarm based on the determination result.

[0034] The following content introduces the real-time monitoring method of the power transformer operating status based on infrared images proposed in this embodiment in more detail.

[0035] In this embodiment, an existing infrared thermal imager is used to monitor the operating status of the power transformer and accurately identify abnormal areas of the transformer. Therefore, in step S1, the infrared thermal imager is used to obtain infrared video of the power transformer in operation in real time, that is, to obtain corresponding continuous frame infrared images.

[0036] In step S2, the acquired continuous frame infrared images are preprocessed. Specifically, since the infrared thermal imager is easily affected by the environment and the internal electronic components of the device during the imaging process, the infrared image will have a lot of noise interference and other problems, which will cause the overall imaging of the target to be blurred and the edge information to be lost. To address these problems, an effective image filtering algorithm is used to remove noise and clutter, and an effective image enhancement algorithm is used to enhance important information, so that the original infrared image is converted into a form suitable for feature extraction.

[0037] Furthermore, filtering and noise reduction can be implemented by neighborhood averaging, low-pass filtering, median filtering, etc., and the image enhancement method can be implemented by differential method, high-pass filtering method, etc. In this embodiment, the continuous frame infrared image with an input size of 384×288 pixels is preprocessed, including: firstly, median filtering and denoising the infrared image grayscale image to reduce the noise interference formed by the infrared imaging principle; then Laplace differential processing is performed on the denoised image to effectively enhance the detail information of the target through image enhancement; finally, the image is pseudo-colored for easy viewing of the imaging.

[0038] (1) Median filtering can effectively suppress pulse interference and salt and pepper noise. Median filtering is a nonlinear image smoothing method that sorts the grayscale (i.e., pixel value) of each pixel in a sliding window and replaces the grayscale at the center of the window with the median. The original grayscale of the pixel is:

[0039] ;

[0040] In the above formula, Representing images The pixel value at Represents the set of all pixel locations of an image.

[0041] (2) Image blur is equivalent to image averaging or integration. Its inverse differential method can enhance the effect of high-frequency components, thereby making the image contour clear. This is a spatial domain processing method. For image enhancement, second-order differential processing is better than first-order differential processing. Therefore, in this embodiment, based on the transformation definition of the Laplace operator of the second-order differential, the differential digital implementation of the two-dimensional Laplace is clarified as:

[0042] ;

[0043] In the above formula, Representing images The pixel value at .

[0044] Through the above-mentioned Laplace differential processing, more enhanced optimization processing of the details of the infrared image is achieved.

[0045] (3) Pseudo-color transformation Infrared thermal imaging is formed by capturing the thermal radiation information on the surface of an object with an infrared camera. Since infrared images are presented in the form of grayscale images and the human eye is not sensitive to grayscale images, in order to more intuitively display the temperature distribution information in the image, the image is subjected to pseudo-color transformation. Pseudo-color transformation is to convert a grayscale image into a color image by mapping pixels of different grayscale levels to different colors to achieve better visual effects and help the human eye more intuitively identify the location and range of different temperature areas, as well as the temperature distribution of the object.

[0046] In this embodiment, the pseudo color conversion method adopts a method based on a color mapping table. This method maps gray levels to different colors by defining a color mapping table, that is, by mapping the gray values ​​of the collected infrared gray image to three color components of red (R), green (G), and blue (B), and then recombining the values ​​of these three components to obtain the corresponding pseudo color image. After the conversion is completed, pixels with lower gray levels are mapped to darker colors, while pixels with higher gray levels are mapped to brighter colors.

[0047] After completing the above-mentioned infrared image preprocessing, considering that during the operation of the power transformer, heat will be generated due to the current and voltage effects, when the internal components of the transformer fail (that is, when there is an abnormal operating state), the fault defective part will have abnormal heating and discharge. At this time, there is an abnormal area, which can be divided into an abnormally high temperature area and a fire area. The main task of abnormal area detection is to timely and accurately identify the abnormal area by adopting high-performance and high-precision algorithms.

[0048] In this embodiment, abnormal area monitoring is mainly divided into two parts: motion feature detection and deep learning algorithm precise detection: first, the motion features are detected, and the foreground information is extracted by analyzing the dynamic characteristics of the abnormal area of ​​the power transformer. If the area of ​​the foreground area is larger than the set value, the subsequent steps are executed; the corresponding deep learning algorithm is used to more accurately detect the current operating status of the transformer from the frame of infrared image. By fusing the above two methods, static background interference can be removed while improving the recognition accuracy.

[0049] Therefore, in step S3, based on the preprocessed infrared image, an improved background modeling method is used to extract and frame the foreground area of ​​the current frame infrared image. If the area of ​​the foreground area is larger than the set value, the foreground area is regarded as a suspected abnormal area, otherwise the operating status is judged to be normal.

[0050] The abnormal area of ​​the transformer includes the abnormal high temperature area and the fire area. First, the characteristics of the fire area are analyzed. The fire area has strong transient and uncertainty. The flame in the fire area has rich characteristic information. The characteristic information of the flame mainly includes two parts: static characteristics and dynamic characteristics. The static characteristics of the flame usually refer to the color, shape and texture of the flame. The dynamic characteristics of the flame usually include area change, shape change and brightness change. Compared with the static characteristics of the flame, the expression of its dynamic characteristics is more conducive to distinguishing its foreground and background. In the initial stage of fire formation, the flame will jump frequently and its area will gradually expand. During the combustion process, the flame and the background of the combustible are constantly converted, resulting in the irregular area and shape of the flame, which is the most obvious difference compared with other interferences. The dynamic characteristics of the flame contain richer motion trend information, which can effectively distinguish it from general interferences and background. The moving target detection algorithm pays more attention to objects with motion trends and distinguishes them from the background. In the application of flame detection, due to the characteristics of the constantly changing area and shape of the flame, the suspected flame area can be effectively extracted and subsequently detected.

[0051] Secondly, since the infrared thermal imager images the infrared energy radiated by the object, the surface temperature of the equipment in the power system is often higher than its background temperature, so the infrared image can clearly display the objects within the field of view. When the power equipment is working normally, the temperature of its surface is basically maintained within a horizontal range, so its imaging feature is that the brightness of the overall surface imaging is basically consistent. At this time, the surface temperature of the power equipment is its normal operating temperature, which is known. However, when the equipment is defective or faulty, the temperature of its local parts will gradually increase due to the hysteresis effect of the current, and then there will be a gap with the surface temperature of the entire equipment. The brightness of its infrared imaging will also be higher than the whole, and then the temperature of the surrounding adjacent areas will gradually increase accordingly due to heat conduction. At this time, there will be an area where the temperature exceeds the normal operating temperature of the equipment, that is, the abnormally high temperature area. There will also be dynamic changes in the infrared thermal imaging during the entire heat conduction process, which will gradually increase the grayscale pixel value corresponding to the defective part of the equipment, and form a sharp contrast with the overall surface and background of the equipment. Therefore, in the case of abnormally high temperature of the equipment, the abnormally high temperature area actually has dynamic characteristics. Although the dynamic characteristics are not as severe as the fire area, the dynamic characteristics also exist and can be extracted.

[0052] Since the area and outline of the flame will undergo violent and irregular changes during the combustion process, presenting a jittery motion state, this embodiment adopts an improved background modeling method to extract and frame the foreground area of ​​the current frame infrared image, that is, the foreground area is extracted according to the dynamic characteristics of the fire area and the abnormally high temperature area, and the extracted foreground area is used as a suspected abnormal area.

[0053] The current video background modeling algorithms include foreground target detection algorithms such as frame difference method, optical flow method and background difference method, among which the background difference method is superior to the other two algorithms in terms of detection effect and algorithm operation time. The background difference method can be divided into three steps: background initialization, foreground detection and background update. Among them, background initialization and background update are collectively referred to as background modeling. Background modeling is the key technology of the background difference method, and the quality of its modeling directly affects the background difference result. In actual application scenarios, due to the interference of illumination changes, noise, etc., relying only on the information of a certain frame image to construct the background will have a serious impact on the result of foreground target detection. Therefore, it is necessary to construct the background based on the original multi-frame images in the image sequence and continuously update the background. The background difference method includes the median background modeling method, the mixed Gaussian background modeling algorithm and the adaptive mean background modeling algorithm. This embodiment adopts the adaptive mean background modeling algorithm and improves the method, that is, the improved adaptive mean background modeling method is adopted to extract the foreground area of ​​the infrared image.

[0054] Specifically, the existing mean background modeling mainly uses the idea of ​​statistical filtering, and regards the moving foreground target pixels in the image sequence as noise points. The mean background modeling method is suitable for the case where the video scene is relatively uncomplicated and the number of foreground targets is small. Its specific implementation method is to take the average value of multiple frames of images to represent the reference initial background model, and then combine the current frames of image information to update the background. That is, firstly, the initial background modeling is performed, and the first few frames of infrared images of continuous frames of infrared images are used as the initial background. Secondly, according to the linear combination of the initial background and the current frame of infrared images, the background of the current frame of infrared images is updated, so as to extract the foreground area of ​​the current frame of infrared images.

[0055] Furthermore, the specific calculation formula for initial background modeling is as follows:

[0056] = ;

[0057] In the above formula, Represents the mean background position The pixel value on ; Indicates Position in frame image The pixel value on ; Num Indicates the number of image frames used for background modeling.

[0058] The specific formula for background update is:

[0059] = + ( );

[0060] In the above formula, Indicates that the updated background is at position The pixel value on the background image obtained by the previous calculation is at position The pixel value on , the image position of the current frame (i.e. the n+1th frame) The pixel value on and n-Num+ 2 frame image position The pixel value on Obtained by recursion.

[0061] However, considering that only the above-mentioned mean background modeling method is used, the robustness is still poor. Therefore, in this embodiment, an improved adaptive mean background modeling algorithm is adopted. The algorithm has less operation time and strong robustness. It mainly improves the background update part of the mean background modeling. Specifically, first, the initial background modeling is performed, and the first infrared image of the continuous frame infrared image is used as the initial background image, that is, the initial background is the first infrared image in the image sequence. Instead, it is usually a special case of the initial background model of the general mean background modeling, that is, the case when n=1 and Num=1 in the above initial background modeling formula.

[0062] Secondly, according to the linear combination of the background of the previous infrared image and the previous infrared image, the background of the current infrared image is updated to extract the foreground area of ​​the current infrared image. That is, the background update is the linear combination of the background of the previous image and the previous image, as shown in the following formula:

[0063] ;

[0064] In the above formula, is the learning rate, which reflects the ability of the background model to update as the scene changes. Its value range is between 0 and 1. Represents a binary mask. The calculation method of the binary mask is: use two consecutive frames of images to make a difference. When the position in the difference result image is When the pixel value at the current position in the image is greater than the threshold T, that is, the pixel value at the current position in the image changes due to illumination or moving objects, then =1; when the position in the difference result image When the pixel value at the current position in the image is less than or equal to the threshold T, that is, the pixel value at the current position in the image has not changed, then = 0. The above threshold value T is a preset constant value, which is artificially determined according to the degree of change of the pixel value in the differential result image. The value of the preset threshold value T can be determined according to the specific actual situation.

[0065] Furthermore, considering that there are often large noise points in the image sequence, the binary mask result calculated by the above pixel-based method will also be accompanied by large noise points. To address this problem, the above algorithm is improved, that is, when updating the background of the current frame of infrared image, each frame of the image sequence is processed in blocks, and two consecutive frames of infrared images after block processing are used to calculate the difference between the sum of all pixel values ​​in the image blocks at corresponding positions in the two frames of infrared images, and then the infrared image is linearly combined according to the binary mask obtained by calculation.

[0066] Specifically, each frame of the image sequence is processed in blocks, that is, when calculating the binary mask, each frame of the image sequence is processed in blocks, and the sum of all pixel values ​​in the image blocks at corresponding positions in the two consecutive infrared images after block division is subtracted to calculate and obtain the binary mask, so as to eliminate the noise points. The specific formula is:

[0067] ( i,j )= ;

[0068] ;

[0069] In the above formula, Indicates the image i Row and j Column image blocks; Indicates n Frame image c Position in channel The binary mask is essential in the adaptive mean background modeling algorithm. The learning rate in the above formula is calculated based on the binary mask, and its calculation formula is:

[0070] ;

[0071] In the above formula, Area represents the area of ​​the binary mask.

[0072] The foreground information of the infrared video image is extracted through the above-mentioned background modeling. This background modeling can effectively detect the movement state of the flame during the combustion process and separate the foreground and background of the flame. The dynamic information and edge information of the flame can be better extracted, and it has strong adaptability even in the complex environmental background of the transformer; at the same time, this method can extract the foreground information of the abnormally high temperature of the transformer box. When a thermal fault occurs in the transformer, the local temperature will gradually increase, and the temperature of the surrounding local areas will be higher than the overall surface temperature of the transformer through heat transfer. In the process of continuous temperature increase, the grayscale value and brightness of the infrared imaging of the fault area will also change, and its movement state is manifested as spreading from the central hot spot to the surrounding areas. Although the movement state is not as violent as the flame shaking, the background modeling algorithm can also accurately extract the foreground area under the abnormally high temperature state.

[0073] Furthermore, according to the dynamic characteristics of the above-mentioned abnormal area and the background modeling method, the corresponding foreground information can be extracted. If the area of ​​the detected foreground is larger than the set threshold T1, the boundingRect function in OpenCV is used to frame the foreground information of the suspected abnormal area in the image, and the current image is input into the target detection network for accurate identification of the abnormal area. Otherwise, the extracted foreground area is judged as the background to continue the detection of the next frame of infrared image.

[0074] In step S4, the infrared image of the current frame with the foreground area framed is input into the improved R-CNN-based target detection model to output the abnormal area detection frame.

[0075] In this embodiment, an improved R-CNN-based target detection model is used for target detection. Figure 2As shown in the figure, the infrared image of the current frame is input into the improved R-CNN-based target detection model, which includes a feature extraction module, a multi-scale feature fusion module, a candidate region extraction module and an output module connected in sequence. First, the Swin-T (Swin Transformer) network is used as the backbone network to form a feature extraction module, through which feature extraction modules extract feature maps of four scales from the input image; then, the feature maps are reorganized and fused through the multi-scale feature fusion module to obtain a fused feature map, thereby providing richer semantic information; then, the target region is identified and extracted from the fused feature map through the candidate region extraction module (Region Proposal Network, RPN), and candidate target regions containing the detection target are generated and output, wherein these generated candidate regions of interest (Region of Interests, RoI), also known as RoIs, are converted into feature maps with fixed sizes through the RoI pooling layer; finally, these RoI pooled feature maps are passed to the output module, and target classification and bounding box regression are performed through the fully connected layer, activation layer and Softmax layer, and the detection box of the labeled category is output.

[0076] In the above process, the application of regression loss function (Loss) can measure the accuracy of target classification and bounding box regression, which is helpful for training the model; at the same time, in order to remove the overlap between candidate boxes, the non-maximum suppression strategy is adopted to obtain the final target detection result.

[0077] Specifically, in this embodiment, the Swin-T network is introduced as the backbone network to extract features, such as Figure 2 As shown in the figure, it can more effectively capture long-distance dependencies and global context information. In addition, Swin-T performs self-attention calculations in local areas, reducing the overall computational complexity. Compared with the traditional R-50 backbone network, Swin-T can reduce the amount of calculation and capture multi-scale information more flexibly in target detection tasks, improving the performance of the detector in complex scenes. The Swin-T network contains multiple feature extraction blocks, namely Swin-Transformer Block, such as Figure 3As shown in the figure, Swin-TransformerBlock consists of a window-based multi-head attention (Windows Multi-Head Self-Attention, W-MSA) module and a shifted window multi-head self-attention (Shifted Windows Multi-Head Self-Attention, SW-MSA) module, and a two-layer multi-layer perceptron MLP (Multi-Layer Perceptron, MLP) with (Gaussian Error Linear Unit, GELU) GELU nonlinearity is set between the two. A normalization layer (Layer Normalization, LN) is applied before each MSA module and each MLP module, and a residual connection is applied after each module.

[0078] Furthermore, as the number of network layers increases, more semantic information can be extracted from the network features, but detailed information will also be lost. On the contrary, a large amount of details, especially location information, is retained in the underlying network. The use of multi-scale prediction can make full use of the underlying information and effectively improve the detection accuracy of the algorithm. Currently, most algorithms commonly use feature pyramid networks (FPN) for multi-scale feature extraction. In this embodiment, path aggregation feature pyramid networks (PAFPN) are used as a multi-scale feature fusion module for feature extraction. Compared with FPN, PAFPN adds a bottom-up downsampling to enhance the feature pyramid and shorten the transmission path of the underlying information. Figure 2 As shown in the figure, PAFPN uses the existing FCA-Resnet50 as the backbone network structure, in which each feature extraction layer (stage) is stacked by the FCA-ResNet residual structure. Specifically, different scale feature layers (C2, C3, C4, C5) are first extracted, and the channel dimensions are 256, 512, 1024, and 2048 respectively. Then, feature maps (P2, P3, P4, P5) are generated by top-down upsampling, and then (N2, N3, N4, N5) are generated by bottom-up downsampling. The features of the target (Proposal) are extracted and scaled respectively, and sent to the fully connected layer for classification and regression.

[0079] Furthermore, during the training process, considering that the fixed nature of the loss function will lead to insufficient training of high-quality candidate target areas, this embodiment introduces a dynamic Smooth L1 loss function instead of the L1 Loss loss function for the regression branch, which can better adapt to changes in the distribution of regression labels and ensure the contribution of high-quality samples to the overall training. Due to the large difference in target scales in remote sensing images, the gradient of the Smooth L1 loss function is a constant when the regression label value is relatively large; when the regression label value is small, the gradient will dynamically decrease. The SmoothL1 loss function used in the regression branch is:

[0080] ;

[0081] In the above formula, z represents the regression label, Represents a hyperparameter, which is used to control the range in which a gentler loss function is used. Considering the robustness of training, Set to the default value of 1.0 to prevent the loss from growing too large in the early training stages due to poor network performance.

[0082] In step S5, secondary confirmation is performed based on the suspected abnormal area and the abnormal area detection frame to determine whether the power transformer is in an abnormal operating state, and an alarm is issued according to the judgment result. Specifically, the abnormal area detection frame is detected by the above-mentioned target detection model, and the IoU value is calculated between it and the motion frame extracted by background modeling. If the IoU value is greater than the set threshold T2, the infrared image determines that there is an abnormal area. On the contrary, if the IoU value is less than the set threshold T2, there is no abnormal area and the next frame of infrared image detection is performed.

[0083] By integrating the above two algorithms, the background interference can be effectively reduced and the monitoring accuracy can be improved. The problems of low detection accuracy and false detection caused by using only the target detection algorithm can be avoided. The background modeling and detection algorithm are highly efficient and can meet the real-time requirements of monitoring.

[0084] Embodiment 2

[0085] This embodiment provides a real-time monitoring system for the operation status of a power transformer based on infrared images, including:

[0086] An image acquisition module is used to acquire continuous frame infrared images of the power transformer in operation in real time;

[0087] An image preprocessing module is used to preprocess the acquired continuous frame infrared images;

[0088] The operating status preliminary detection module is used to extract and frame the foreground area of ​​the infrared image of the current frame after preprocessing by using an improved background modeling method. If the area of ​​the foreground area is larger than the set value, the foreground area is regarded as a suspected abnormal area, otherwise the operating status is judged to be normal; wherein the abnormal area includes an abnormally high temperature area and a fire area, and the abnormally high temperature area is an area where the temperature exceeds the normal operating temperature of the power transformer;

[0089] The abnormal area detection module is used to input the current frame infrared image with the foreground area framed into the improved R-CNN-based target detection model and output the abnormal area detection frame;

[0090] The operating status secondary confirmation module is used to perform secondary confirmation based on the suspected abnormal area and the abnormal area detection frame to determine whether the power transformer has an abnormal operating state and issue an alarm based on the judgment result.

[0091] The steps involved in the above embodiment 2 correspond to those in the method embodiment 1. For the specific implementation method, please refer to the relevant description part of the embodiment 1.

[0092] The above description is only a preferred embodiment of the present invention. Although the specific implementation mode of the present invention is described in conjunction with the accompanying drawings, it is not a limitation of the protection scope of the present invention. Those skilled in the art should understand that on the basis of the technical solution of the present invention, various modifications or variations that can be made by those skilled in the art without creative work are still within the protection scope of the present invention.

Claims

1. A real-time monitoring method for the operating status of a power transformer based on infrared images, characterized in that: include: Real-time acquisition of continuous frame infrared images of power transformers during operation; Preprocessing the acquired continuous frame infrared images; The improved background modeling method is used to extract and frame the foreground area of ​​the infrared image of the current frame after preprocessing. If the area of ​​the foreground area is larger than the set value, the foreground area is regarded as a suspected abnormal area, otherwise the operating state is judged to be normal; wherein the abnormal area includes an abnormally high temperature area and a fire area, and the abnormally high temperature area is an area where the temperature exceeds the normal operating temperature of the power transformer; the improved background modeling method used is an improved adaptive mean background modeling algorithm, and the foreground area of ​​the infrared image of the current frame after preprocessing is extracted and framed by the improved algorithm, including: Perform initial background modeling, using the first infrared image of the continuous infrared images as the initial background image; According to the linear combination of the background of the previous infrared image frame and the previous infrared image frame, the background of the current infrared image frame is updated to extract the foreground area of ​​the current infrared image frame; when updating the background of the current infrared image frame, each frame of the image sequence is processed in blocks, and two consecutive infrared images after the blocks are used to calculate the difference between the sum of all pixel values ​​in the image blocks at corresponding positions in the two infrared images, and a binary mask is obtained; then, a linear combination operation is performed on the infrared image according to the binary mask obtained by calculation; The infrared image of the current frame with the foreground area framed is input into the improved target detection model based on R-CNN, and the abnormal area detection frame is output; the target detection model includes a feature extraction module, a multi-scale feature fusion module, a candidate area extraction module and an output module connected in sequence, and the infrared image of the current frame is input into the improved target detection model based on R-CNN, including: The Swin-T network is used as the backbone network to form a feature extraction module, through which feature maps of four scales are extracted from the input image; The feature map is reorganized and fused through the multi-scale feature fusion module to obtain a fused feature map; The candidate region extraction module is used to identify and extract the target region of the fused feature map, generate and output the candidate target region containing the detected target, and convert it into a feature map with a fixed size through the RoI pooling layer; The feature map after RoI pooling is passed to the output module, and the target classification and bounding box regression are performed through the fully connected layer, activation layer and Softmax layer, and the detection box of the labeled category is output; A secondary confirmation is performed based on the suspected abnormal area and the abnormal area detection frame to determine whether the power transformer is in an abnormal operating state, and an alarm is issued based on the judgment result.

2. The method for real-time monitoring of the operating status of a power transformer based on infrared images as claimed in claim 1 is characterized in that: The preprocessing shown includes median filtering denoising, Laplace differential processing image enhancement and image pseudo color conversion for the infrared image in sequence.

3. The real-time monitoring method for the operation status of a power transformer based on infrared images as claimed in claim 1 is characterized in that: The loss function of the object detection model shown is the dynamic Smooth L1 loss function.

4. The method for real-time monitoring of the operating status of a power transformer based on infrared images as claimed in claim 1, characterized in that: Secondary confirmation is performed based on the suspected abnormal area and abnormal area detection frame, including: The IoU value is calculated between the suspected abnormal area and the abnormal area detection box. If the IoU value is greater than the set threshold, it is judged that the infrared image determines that there is an abnormal area, that is, it is determined that the power transformer is in an abnormal operating state and an alarm is issued; conversely, if the IoU value is less than the set threshold, it is judged that there is no abnormal area in the infrared image, that is, it is determined that the operating state of the power transformer is normal, and the next frame of infrared image detection is performed.

5. A real-time monitoring system for the operation status of a power transformer based on infrared images, characterized in that: include: An image acquisition module is used to acquire continuous frame infrared images of the power transformer in operation in real time; An image preprocessing module is used to preprocess the acquired continuous frame infrared images; The operating status preliminary detection module is used to extract and frame the foreground area of ​​the infrared image of the current frame after preprocessing by using an improved background modeling method. If the area of ​​the foreground area is larger than the set value, the foreground area is regarded as a suspected abnormal area, otherwise the operating status is judged to be normal; wherein the abnormal area includes an abnormally high temperature area and a fire area, and the abnormally high temperature area is an area where the temperature exceeds the normal operating temperature of the power transformer; the improved background modeling method adopted is an improved adaptive mean background modeling algorithm, and the foreground area of ​​the infrared image of the current frame after preprocessing is extracted and framed by using the improved algorithm, including: Perform initial background modeling, using the first infrared image of the continuous infrared images as the initial background image; According to the linear combination of the background of the previous infrared image frame and the previous infrared image frame, the background of the current infrared image frame is updated to extract the foreground area of ​​the current infrared image frame; when updating the background of the current infrared image frame, each frame of the image sequence is processed in blocks, and two consecutive infrared images after the blocks are used to calculate the difference between the sum of all pixel values ​​in the image blocks at corresponding positions in the two infrared images, and a binary mask is obtained; then, a linear combination operation is performed on the infrared image according to the binary mask obtained by calculation; The abnormal area detection module is used to input the current frame infrared image with the foreground area framed into the improved R-CNN-based target detection model, and output the abnormal area detection frame; the target detection model includes a feature extraction module, a multi-scale feature fusion module, a candidate area extraction module and an output module connected in sequence, and inputs the current frame infrared image into the improved R-CNN-based target detection model, including: The Swin-T network is used as the backbone network to form a feature extraction module, through which feature maps of four scales are extracted from the input image; The feature map is reorganized and fused through the multi-scale feature fusion module to obtain a fused feature map; The candidate region extraction module is used to identify and extract the target region of the fused feature map, generate and output the candidate target region containing the detected target, and convert it into a feature map with a fixed size through the RoI pooling layer; The feature map after RoI pooling is passed to the output module, and the target classification and bounding box regression are performed through the fully connected layer, activation layer and Softmax layer, and the detection box of the labeled category is output; The operating status secondary confirmation module is used to perform secondary confirmation based on the suspected abnormal area and the abnormal area detection frame to determine whether the power transformer has an abnormal operating state and issue an alarm based on the judgment result.

6. The real-time monitoring system for the operation status of a power transformer based on infrared images as claimed in claim 5 is characterized in that: The preprocessing shown includes median filtering denoising, Laplace differential processing image enhancement and image pseudo color conversion for the infrared image in sequence.

7. The real-time monitoring system for the operation status of a power transformer based on infrared images as claimed in claim 5 is characterized in that: The loss function of the object detection model shown is the dynamic Smooth L1 loss function.

8. The real-time monitoring system for the operation status of a power transformer based on infrared images as claimed in claim 5 is characterized in that: Secondary confirmation is performed based on the suspected abnormal area and abnormal area detection frame, including: The IoU value is calculated between the suspected abnormal area and the abnormal area detection box. If the IoU value is greater than the set threshold, it is judged that the infrared image determines that there is an abnormal area, that is, it is determined that the power transformer is in an abnormal operating state and an alarm is issued; conversely, if the IoU value is less than the set threshold, it is judged that there is no abnormal area in the infrared image, that is, it is determined that the operating state of the power transformer is normal, and the next frame of infrared image detection is performed.