A transformer fault diagnosis method and device based on oil chromatogram time-frequency domain information and residual attention network
Through a method based on oil chromatography time-frequency domain information and residual attention network, the accuracy and over-fitting problems of fault diagnosis in the existing technology are solved, and higher transformer fault classification accuracy and faster training speed are achieved. .
Patent Information
- Application Number
- CN202111121300.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-09-24
- Publication Date
- 2024-09-24
- Estimated Expiration
- 2041-09-24
AI Technical Summary
Existing transformer fault diagnosis methods cannot accurately identify early faults and dynamic fault processes. Traditional intelligent algorithms ignore the frequency domain information of oil chromatography data, and increasing the number of network layers leads to overfitting and reduces classification accuracy.
A fault diagnosis method based on oil chromatography time-frequency domain information and residual attention network is adopted. By collecting and cleaning oil chromatography monitoring data, time-frequency domain information sample data is generated, and the residual attention network is used to classify faults and reduce over-fitting. Combine risks and improve classification accuracy.
It improves the accuracy of transformer fault classification, reduces network training time, and better focuses on important information through the attention mechanism, enhancing the ability to identify faults.
Smart Images

Figure CN113889198B
Abstract
Description
[Technical field]
[0001] The present invention relates to the technical field of power station equipment fault classification, and in particular to a transformer fault diagnosis method and device based on oil chromatogram time-frequency domain information and residual attention network. [Background technology]
[0002] Chromatography, also known as chromatography or chromatographic method, is a physical and chemical analysis method that uses the difference in the forces (distribution, adsorption, ion exchange, etc.) between different solutes (samples) and the stationary phase and the mobile phase. When the two phases move relative to each other, each solute undergoes multiple equilibriums between the two phases, so that each solute is separated from each other. The purpose of analytical chromatography is to quantitatively or qualitatively determine the properties and content of each component in a mixture. The chromatogram refers to the image of the distribution of the detection signal of the separated components over time. The signal-time curve obtained when the sample flows through the chromatographic column and the detector is also called the chromatographic elution curve.
[0003] For the diagnosis and detection of transformer faults in power systems, it is very important to quickly determine the fault type and give a maintenance plan in time for troubleshooting and maintenance. This will directly affect whether a large-scale power outage will occur, or even cause an explosion of equipment, affecting the life safety of surrounding workers and causing significant economic losses to people's production and life. At present, oil-immersed transformers are widely used. The use of chromatography to determine the component content of dissolved gas in transformer oil is an effective means for power generation and supply companies to determine whether there are latent overheating, discharge and other faults in the oil-filled power equipment in operation, so as to ensure the safe and effective operation of the power grid. In the operation of oil-immersed transformers, they will be affected by the external environment and their own operation, and some gases such as methane, ethane, acetylene, etc. will be produced. In normal operation and abnormal state, the concentrations of these gases will present different proportions. Therefore, according to these gas concentrations, the transformer status can be evaluated and the faults can be classified.
[0004] Existing research methods include threshold method, three-ratio method and data-driven intelligent algorithm. The threshold method summarizes an empirical range through a large amount of actual data. The threshold can only roughly judge whether the equipment is in normal operation. If an abnormality occurs, the specific fault type cannot be determined. In addition, the occurrence of transformer faults is a dynamic and continuous process. In the early stage of the fault, the concentration may not exceed the threshold, but it is already considered as a fault at this time, so the threshold method cannot detect early faults. The three-ratio method is also a conclusion drawn through experimental summary. The methods used include IEC ratio, Rogers ratio, Dornenburg ratio and Duval ratio. In actual transformer operation, due to the uncertainty and complexity of the fault, the boundaries specified by the ratio method are too absolute, and the coding area divided has a certain ambiguity and cannot accurately cover all fault forms. At the same time, the three-ratio method cannot analyze the dynamic process of the fault, and the recognition effect of early faults is poor. At present, with the use of online monitoring devices, a large amount of measured data can be obtained. And with the continuous research and development of intelligent algorithms, there are many data-driven intelligent algorithms to evaluate the operating status of substations.
[0005] In recent years, although data-driven intelligent algorithms have achieved certain research results, there are still some problems. First of all, traditional intelligent algorithms only input the raw data of oil chromatography data, that is, the time domain information, into the network model, ignoring the rich potential information contained in the frequency domain. Currently popular artificial intelligence methods such as various convolutional neural networks are often not interpretable. The features extracted by the model are incomprehensible to humans, and therefore it is impossible to judge the quality of the features and introduce prior knowledge. Secondly, due to the diversity and complexity of substation faults, in order to classify faults more accurately, traditional models expect to improve the learning ability of the network by increasing the number of network layers. However, as the number of network layers increases, the model can easily tend to overfitting, which reduces the classification accuracy. And more network layers mean that there are more network parameters that need to be trained, which greatly increases the training time of the network.
[0006] Based on this, it is expected to obtain a new fault classification diagnosis method, which can further improve the accuracy of transformer fault classification diagnosis.
[0007] Attention Mechanism, in cognitive science, due to the bottleneck of information processing, humans will selectively focus on part of all information and ignore other visible information. The attention mechanism has two main aspects: deciding which part of the input needs to be focused on; allocating limited information processing resources to important parts; the neural attention mechanism can enable the neural network to focus on its input (or feature) subset and select specific inputs. Assuming that the input is Q (Query), and the context is stored in the form of key-value pairs (K, V) in the Memory, then the attention mechanism is actually a mapping function from Query to a series of key-value pairs (Key, Value). In mathematical statistics, residual refers to the difference between the actual observed value and the estimated value (fitted value). If the regression model is correct, the residual can be regarded as the observed value of the error. The residual network is a convolutional neural network that is easy to optimize and can improve accuracy by increasing the depth. The residual block inside it uses jump connections to alleviate the gradient vanishing problem caused by increasing the depth in the deep neural network. The idea of residual is to remove the same main part to highlight small changes.
[0008] The present invention aims at solving the technical problems existing in the prior art and makes technical improvements to the data-driven transformer fault classification diagnosis method. [Summary of the invention]
[0009] The purpose of the present invention is to propose a method for improving the accuracy of transformer fault classification diagnosis based on oil chromatogram time-frequency domain information and residual attention network.
[0010] To achieve the above-mentioned purpose, the technical solution adopted by the present invention is a transformer fault diagnosis method based on oil chromatogram time-frequency domain information and residual attention network. The implementation of the method depends on the oil chromatogram time-frequency domain information acquisition and processing program module and the residual attention network program module. The oil chromatogram time-frequency domain information acquisition and processing program module includes an oil chromatogram monitoring data acquisition and cleaning program submodule and an oil chromatogram time-frequency domain information sample data generation program submodule. The residual attention network program module stacks multiple layers of residual attention mechanism program submodules. The residual attention mechanism program submodule is composed of a surface attention network for calculating attention weights and a representation residual network for feature extraction and learning. The residual network model for learning residuals according to cross-layer connections constructs a residual attention network; the steps include:
[0011] S1, oil chromatography monitoring data collection and cleaning program submodule collects oil chromatography monitoring data of oil-immersed transformers and performs data cleaning;
[0012] S2, the oil chromatogram time-frequency domain information sample data generation program submodule generates a gas concentration time-domain sequence, a frequency-domain component sequence, a time-domain sequence ratio, and a frequency-domain sequence concentration ratio sample data set according to the data of step S1;
[0013] S3, the residual attention network program module uses the sample data set generated in step S2 to train and test the transformer fault classification residual attention network;
[0014] S4, the residual attention network program module uses the trained residual attention network to input the sample data generated by steps S1 and S2 to perform transformer fault identification and warning.
[0015] Preferably, the step S2: generating a sample data set by cutting and slicing the data using a time window with an adjustable window length, and performing normalization processing on the generated sample data set.
[0016] Preferably, in step S3, the residual attention network classifies transformer faults into normal state and abnormal state, and the abnormal state includes six fault types: low temperature overheating, medium temperature overheating, high temperature overheating, partial discharge, low energy discharge and high energy discharge.
[0017] Preferably, the residual attention mechanism program submodule provides attention weights through the surface attention network to dynamically and adaptively adjust the weights learned by the residual network.
[0018] Preferably, the surface attention network uses three activation functions to provide attention weights, including a hybrid attention activation function that uses a sigmoid function for each channel and spatial position of the residual attention network without adding additional constraints L2 regularization is used to constrain each spatial position of all channels of the residual attention network to eliminate the channel attention activation function of spatial information And the spatial attention activation function that regularizes each channel of the residual attention network The range of i covers all spatial positions of the residual attention network, c covers all channels of the residual attention network, and mean c and std c represents the mean and variance of the c-th channel feature map of the residual attention network, x i,c The feature vector representing the i-th spatial position of the residual attention network.
[0019] Preferably, the residual attention network is trained in an end-to-end mode, and the surface attention network adopts a bottom-to-top structure to imitate the forward and feedback mechanism in the attention training process; the input of any of the residual attention mechanism program submodules is x, the output corresponding to the residual network is T(x), the attention weight output M(x) obtained by the surface attention network, and finally the output of any of the residual attention mechanism program submodules is H i,c (x) = M i,c (x)×T i,c (x), where the range of i covers all spatial positions of the residual attention network, and c∈{1,K,C} represents the index of the residual attention network channel.
[0020] Preferably, the attention weight output by the surface attention network of the residual attention mechanism program submodule is used as a feature selection method in the forward propagation, and participates in the gradient update in the back propagation. The gradient of the input feature of the residual attention mechanism program submodule is Where θ is the surface attention network parameter and φ is the representation residual network parameter.
[0021] Preferably, when the residual attention network is connected across layers to learn the residual, the output of the residual attention mechanism program submodule is H i,c (x) = (1 + M i,c (x))×F i,c (x), where M(x) ranges from [0 to 1]. When M(x) is close to 0, H(x) is close to the original feature F(x). i,c (x) is a series of features generated by the representation residual network during the cross-layer connection process.
[0022] Preferably, the training process of the surface attention network includes a forward scanning process and a reverse feedback process; the scanning process quickly collects global information of the input information, and the feedback process calculates the collected global information and feature map information; the forward scanning process and the reverse feedback process are implemented by convolution operations from bottom to end and then from top to bottom; specifically:
[0023] First, the surface attention network increases the input information acceptance threshold by using the maximum pooling layer;
[0024] After that, after the surface attention network reaches the lowest sampling granularity, the global information is used to guide the attention weight of the input information at each position, and upsampling is achieved through linear interpolation, where the number of interpolations is the same as the number of maximum pooling layers, so that the output size is the same as the size of the feature map;
[0025] Finally, the surface attention network uses the sigmoid activation function to normalize the output.
[0026] Another object of the present invention is to propose a device for improving the accuracy of transformer fault classification diagnosis based on oil chromatogram time-frequency domain information and residual attention network.
[0027] To achieve the above-mentioned further purpose, the technical solution adopted by the present invention is a transformer fault diagnosis device based on oil chromatography time-frequency domain information and residual attention network, the device includes an oil chromatography time-frequency domain information acquisition and processing program module and a residual attention network program module, the oil chromatography time-frequency domain information acquisition and processing program module includes an oil chromatography monitoring data acquisition and cleaning program submodule and an oil chromatography time-frequency domain information sample data generation program submodule, the residual attention network program module stacks multiple layers of residual attention mechanism program submodules, the residual attention mechanism program submodule is composed of a surface attention network for calculating attention weights and a representation residual network for feature extraction and learning, and a residual network model for learning residuals according to cross-layer connections is used to construct a residual attention network; the transformer fault diagnosis device based on oil chromatography time-frequency domain information and residual attention network is used to execute the above-mentioned transformer fault diagnosis method based on oil chromatography time-frequency domain information and residual attention network.
[0028] The present invention has the following beneficial effects: 1. For the input information of the fault classification convolutional neural network, not only the time domain information of the original sequence of the oil chromatogram is considered, but also the frequency domain characteristics of the oil chromatogram are introduced; in addition, with reference to the principle of the ratio method, the ratio corresponding to the time-frequency domain sequence of the oil chromatogram is also input into the fault classification network model as a characteristic parameter; 2. For the fault classification convolutional neural network, a residual attention network is selected to judge the transformer fault. The residual attention network stacks the attention modules in a cross-layer connection manner, which reduces the influence of network overfitting and speeds up the training speed of the residual attention network model; in addition, the attention module can better focus on the information that has a higher impact on the fault classification, increase its corresponding weight, and thus further improve the accuracy of the transformer fault classification.
Brief Description of the Drawings
[0029] Figure 1 This is a step-by-step diagram of a transformer fault diagnosis method based on oil chromatogram time-frequency domain information and residual attention network.
[0030] Figure 2 It is a flow chart of a transformer fault diagnosis method based on oil chromatogram time-frequency domain information and residual attention network. [Specific implementation method]
[0031] The present invention will be further described below in conjunction with embodiments and with reference to the accompanying drawings.
[0032] Example 1
[0033] This embodiment implements a transformer fault diagnosis method based on oil chromatogram time-frequency domain information and residual attention network.
[0034] Figure 1 This is a step diagram of a transformer fault diagnosis method based on oil chromatogram time-frequency domain information and residual attention network. Figure 1 As shown, in this embodiment, a transformer fault diagnosis method based on oil chromatogram time-frequency domain information and residual attention network is implemented, and the method relies on an oil chromatogram time-frequency domain information acquisition processing program module and a residual attention network program module. The oil chromatogram time-frequency domain information acquisition processing program module includes an oil chromatogram monitoring data acquisition and cleaning program submodule and an oil chromatogram time-frequency domain information sample data generation program submodule. The residual attention network program module stacks multiple layers of residual attention mechanism program submodules. The residual attention mechanism program submodule is composed of a surface attention network for calculating attention weights and a representation residual network for feature extraction and learning. A residual network model for learning residuals according to cross-layer connections is used to construct a residual attention network; the steps include:
[0035] S1, oil chromatography monitoring data collection and cleaning program submodule collects oil chromatography monitoring data of oil-immersed transformers and performs data cleaning;
[0036] S2, the oil chromatogram time-frequency domain information sample data generation program submodule generates a gas concentration time-domain sequence, a frequency-domain component sequence, a time-domain sequence ratio, and a frequency-domain sequence concentration ratio sample data set according to the data of step S1;
[0037] S3, the residual attention network program module uses the sample data set generated in step S2 to train and test the transformer fault classification residual attention network;
[0038] S4, the residual attention network program module uses the trained residual attention network to input the sample data generated by steps S1 and S2 to perform transformer fault identification and warning.
[0039] The step S2: generating a sample data set by cutting and slicing the data using a time window with adjustable window length, and performing normalization processing on the generated sample data set.
[0040] Step S3: the residual attention network classifies transformer faults into normal state and abnormal state, and the abnormal state includes six fault types: low temperature overheating, medium temperature overheating, high temperature overheating, partial discharge, low energy discharge and high energy discharge.
[0041] The residual attention mechanism program submodule provides attention weights through the surface attention network to dynamically and adaptively adjust the weights learned by the residual network.
[0042] Example 2
[0043] This embodiment implements a transformer fault diagnosis method based on oil chromatogram time-frequency domain information and residual attention network.
[0044] This embodiment of a transformer fault diagnosis method based on oil chromatogram time-frequency domain information and residual attention network, for the input information of the fault classification neural network, not only considers the time domain information of the original sequence, but also introduces its frequency domain characteristics; in addition, referring to the principle of the ratio method, the ratio corresponding to the time-frequency domain sequence is also input into the network model as a feature parameter. For the fault classification neural network, this embodiment of a transformer fault diagnosis method based on oil chromatogram time-frequency domain information and residual attention network uses residual attention network to judge the substation fault. The residual attention network stacks attention modules in a cross-layer connection manner, which reduces the influence of network overfitting and speeds up the training speed of the model; in addition, the attention module can better focus on the information that has a higher impact on the classification, increase its corresponding weight, and thus can further improve the accuracy of transformer fault classification.
[0045] Figure 2 This is a flow chart of a transformer fault diagnosis method based on oil chromatogram time-frequency domain information and residual attention network. Figure 2 As shown, in this embodiment, a transformer fault diagnosis method based on oil chromatogram time-frequency domain information and residual attention network utilizes oil chromatogram monitoring data of an oil-immersed transformer to implement transformer fault diagnosis, which includes the following steps:
[0046] (1) First, the collected oil chromatography monitoring data and the corresponding sample case library data are cleaned. The obviously erroneous sample data are eliminated to prevent the subsequent model from learning incorrect information;
[0047] (2) In order to better reflect the dynamic process of fault changes, this embodiment considers the change of gas concentration over a period of time. For various concentration sequences, a sliding window with adjustable window length is used to slice the data;
[0048] (3) In each time window, the frequency domain components of various gas concentration sequences are calculated and added to the corresponding sample data;
[0049] For each time window, the gas concentration ratio is calculated for the time domain sequence and the frequency domain sequence, and is also added to the training data. Thus, the data for each time window includes: the time domain sequence of gas concentration, the frequency domain component sequence, the time domain sequence ratio, and the frequency domain sequence concentration ratio;
[0050] Normalizing all training data can eliminate the adverse effects caused by the scale differences of the data itself;
[0051] The residual attention network is trained by taking the oil chromatography data as input and the transformer status as output. In order to better evaluate the transformer status, its status is divided into normal and abnormal. The abnormal status includes six fault types: low temperature overheating, medium temperature overheating, high temperature overheating, partial discharge, low energy discharge and high energy discharge.
[0052] After the training is completed, the test data is input into the trained residual attention network for testing;
[0053] Input transformer status results. Through the residual attention network, if an abnormality is found, it needs to be identified and an early warning is issued, and the results are immediately sent to the substation maintenance personnel to guide subsequent maintenance work.
[0054] In this embodiment, a transformer fault diagnosis method based on oil chromatogram time-frequency domain information and residual attention network is introduced for the first time, including residual learning and attention mechanism:
[0055] Residual learning: Deep neural networks generally improve the overall learning ability of the network by stacking multiple hidden layers and increasing the number of neurons in each hidden layer. However, simply increasing the number of network layers will lead to problems of network overfitting and increased model training time. To address these two problems, He Kaiming's team proposed the Deep Residual Network (ResNet) in 2015. This network learns residuals through cross-layer connections, improving the network's ability to train deep networks.
[0056] Attention mechanism: The attention mechanism imitates the process of human visual observation, focusing on the main parts in the image and then judging them. This mechanism greatly improves the efficiency and accuracy of visual information processing. At present, the commonly used one is the normalized dot product attention mechanism model. This model (normalized dot product attention mechanism model) was first proposed by the Google team. The input of the model includes query value Q, key value K and value point V. The dimensions of the query value and key value are both d k , the dimension of the numerical point is d v By performing a dot multiplication operation on the query value and all key values and passing the Softmax function, we can get the weight at the numerical point, which is the attention value. Its matrix expression is:
[0057]
[0058] Where Softmax is a normalized exponential function, which is often used in deep learning network models. It can compress the elements in the vector within the range of (0, 1) and make the sum of all elements equal to 1. Assume that the vector is (z1, z2, K z N), the Softmax function can be expressed as:
[0059]
[0060] Compared with the prior art, the transformer fault diagnosis method based on oil chromatogram time-frequency domain information and residual attention network in this embodiment has the following advantages and beneficial effects: attention modules are stacked in a cross-layer connection manner, which reduces the impact of network overfitting and speeds up the training of the model; in addition, the attention module can better focus on information that has a higher impact on classification, increase its corresponding weight, and thus further improve the accuracy of transformer fault classification.
[0061] Residual Attention Network: Inspired by the Resnet network and the attention mechanism model, the residual attention network can not only ensure that the model still converges when adding multiple layers, but also enable the entire network to have the ability to identify differences, focusing on input content that has a great impact on the target. Each residual attention mechanism module consists of two submodules: the surface module and the representation module. The surface module calculates the attention information, and the representation module is used to extract and learn the features of the input information. The current mainstream network structure model can be used.
[0062] This embodiment uses a residual network to construct a residual attention mechanism module. The residual network is a variant of a convolutional neural network, which generally includes a convolutional layer, a pooling layer, and a fully connected layer.
[0063] The convolution layer has a strong feature extraction capability by sharing the parameters of the convolution kernel. Using the learnable convolution kernel, the feature map of the previous layer will be convolved in the next layer. The specific process can be expressed as:
[0064]
[0065] In the formula is the output of the w-th feature map at layer l, is the input of the nth feature map of the l-1th layer, M g is the set sum of the input feature maps, refers to the convolution operation, and Represent the weights and biases in the convolutional layer respectively.
[0066] After the convolution layer, in order to ensure that the output has nonlinear characteristics, it needs to pass through an activation function. The ReLU function is usually used as the activation function, which compares the input with zero and returns the larger value. Its expression is:
[0067] ReLU(x)=max(0,x) (4)
[0068] After that, a pooling layer is usually used to reduce the total number of features. This embodiment uses an average pooling layer to perform the operation, and the expression corresponding to its rule is:
[0069]
[0070] In the formula represents the multiplicative bias of the output feature map, represents the additional bias, and Pooling(·) represents the pooling function. The average pooling function can be expressed as:
[0071]
[0072] Where α p,q Represented as a filter of size p×q.
[0073] Finally, the fully connected layer is used to merge the features proposed by the previous convolutional layer. The function of the fully connected layer can be expressed as:
[0074] y l =K l x l-1 +b l (7)
[0075] Where K l represents the weight from layer l-1 to layer l, b l is the corresponding additional bias.
[0076] Let the input information of the representation module be x, and its corresponding output be T(x). The surface module uses a bottom-to-top structure to obtain an output of the same size M(x), and multiplies it with T(x) as the attention weight. This bottom-to-top structure mimics the forward and feedback mechanism in the attention training process. Finally, the output of a residual attention mechanism module H is:
[0077] H i,c (x) = M i,c (x)×T i,c (x) (8)
[0078] Where i covers all spatial positions, and c∈{1, K, C} represents the index of the channel. The entire structure is trained in an end-to-end mode.
[0079] In the residual attention mechanism module, the surface module attention value can not only be used as a feature selection method in the forward propagation, but also participate in the gradient update in the back propagation. The gradient of the input feature can be calculated as:
[0080]
[0081] Where θ is the parameter of the surface module, and φ is the parameter of the representation module. This gradient update method can make the residual attention mechanism module robust to noisy labels. The reason is that for noisy data, the surface module can prevent the representation module from making incorrect parameter updates.
[0082] If the residual attention mechanism modules are simply stacked, the model will also be overfitted, which will cause the performance of the model to deteriorate. The cross-layer connection in the residual attention network is a model for residual learning. This embodiment also constructs the residual attention mechanism module in the same way. By mapping, formula (8) can be rewritten as:
[0083] H i,c (x) = (1 + M i,c (x))×F i,c (x) (10)
[0084] Where M(x) is in the range of [0, 1]. When M(x) is close to 0, H(x) will also be close to the original feature F(x).
[0085] In the traditional residual network, the residual learning process can be expressed as H i,c (x) = x + F i,c (x), where F i,c (x) is used to approximate the residual function. However, in the method of this embodiment, as shown in formula (10), F i,c (x) is a series of features generated by the deep convolutional network. The surface module M(x) is used to assist learning to obtain better features and to compress the noise information in the representation module. In addition, the cross-layer connection method is essentially an incremental learning model. This model not only ensures that the original learned features have good recognition capabilities, but also can better enhance the feature screening capability by using the forward propagation mechanism of the surface network.
[0086] The training process of the surface module includes forward scanning and reverse feedback process. The former is to quickly collect global information of the input information, and the latter is mainly calculated on the collected global information and feature map information. In convolutional neural networks, these two operations can be implemented by convolution operations from bottom to end and then from top to bottom. Starting from the input information, the acceptance threshold is increased by using the maximum pooling layer. After reaching the lowest sampling granularity, the global information is expanded to guide the attention value of the input information at each position. This process achieves upsampling through linear interpolation, where the number of interpolations is the same as the number of maximum pooling, so that the output size is the same as the size of the feature map. Then the sigmoid activation function is used to normalize the output so that its range is between [0, 1], which can eliminate the impact of different data scales on the model effect. It is expressed as:
[0087]
[0088] In addition, a 1×1 convolutional layer is used to achieve the mapping effect, and a cross-layer connection operation is added.
[0089] The attention weights provided by the surface module can dynamically and adaptively adjust the weights learned by the representation module. The traditional method only adds a normalization function before the output, without considering the characteristics of the outputs of other modules. To address this problem, this embodiment uses three activation functions, including mixed attention f1, channel attention f2, and spatial attention f3, and the expressions are:
[0090]
[0091]
[0092]
[0093] where i covers all spatial locations and c covers all channels. c and std c represents the mean and variance of the feature map of the cth channel. i,c The eigenvector representing the i-th spatial position.
[0094] Mixed attention f1 only uses a simple sigmoid function for each channel and spatial position without adding additional constraints. Channel attention f2 uses L2 regularization to constrain each spatial position of all channels to eliminate spatial information. Spatial attention f3 implements regularization for each channel. Regularization is a commonly used technique in machine learning, and its main purpose is to control model complexity and reduce overfitting. L2 regularization is to add the L2 norm of the parameter to the loss for optimization, thereby limiting the neural network from learning high-frequency components and preferring a low-frequency smooth function, thereby alleviating overfitting.
[0095] Example 3
[0096] This embodiment implements a transformer fault diagnosis method based on oil chromatogram time-frequency domain information and residual attention network. This embodiment is a specific implementation of embodiment 2.
[0097] This embodiment provides a transformer fault diagnosis method based on oil chromatogram time-frequency domain information and residual attention network, and the steps are as follows:
[0098] (1) Time-frequency domain feature extraction: When using oil chromatography data for oil-immersed transformer fault diagnosis, commonly used oil chromatography monitoring data include: methane, ethane, ethylene, ethane, acetylene, hydrogen, carbon monoxide and carbon dioxide. According to the typical fault and fault type relationship of power transformers given in my country's GB / T 7252-2001 "Guidelines for Analysis and Judgment of Dissolved Gases in Transformer Oil", the fault types can be divided into the following six types: low-temperature overheating, medium-temperature overheating, high-temperature overheating, partial discharge, low-energy discharge and high-energy discharge. When different fault types occur, the corresponding oil chromatography data changes also have certain differences. According to the collected real-time and historical data, the transformer fault type can be analyzed. The current method mainly analyzes the original collected data. Commonly used methods include threshold method, three-ratio method and intelligent algorithm.
[0099] Taking the three-ratio method as an example, a large number of experiments have shown that only the three-ratio method can be used for rough judgment, and there is a large misjudgment rate. With the introduction of intelligent algorithms, deep learning networks have been used to judge the type of transformer faults. However, the input of the network only relies on the original time series data, and the frequency domain information is not well considered and modeled. At present, waveform decomposition examples can be used: the original time domain information can be obtained through wavelet decomposition and other technologies to obtain frequency domain component information. This information can be input into the network model as prior knowledge for modeling, thereby improving the classification and recognition accuracy of the model.
[0100] (2) Training the residual attention network:
[0101] 1) Data source and evaluation: 90% of the sample data are randomly selected from the fault case library (low temperature overheating case, medium temperature overheating case, high temperature overheating case, partial discharge case, low energy discharge case, high energy discharge case) to train the residual attention network, and the remaining 10% of the sample data are used as test samples to test the accuracy of classification. The classification ability of the model can be evaluated by constructing a confusion matrix;
[0102] 2) Hyperparameter settings: Different hyperparameter settings will have a certain impact on the classification performance of the model. Therefore, this embodiment first analyzes the impact of different attention modules on the transformer state classification. The study shows that with the increase in the number of attention modules, the average classification accuracy is first improved. This is because the number of layers of the network is insufficient, and the model cannot perform deep feature extraction on the data of the training set, which leads to underfitting. As the number of layers of the network continues to increase, the network structure becomes more complex, and the accuracy of the model is also improved; when the number of layers exceeds a certain layer (6 layers), as the number of layers of the network increases, the classification accuracy of the model has a downward trend. This is partly because when the number of hidden layers is too high, the training data is overfitted, and the generalization ability of new data is reduced, resulting in a decrease in the classification accuracy of the model. The training time continues to increase with the increase in the number of attention modules, and its growth rate is also getting faster and faster. Based on the above situation, in order to ensure that the network has a high classification accuracy and good generalization ability, and has a fast training time, the number of attention modules selected in this embodiment is 4.
[0103] 3) Comparison of classification accuracy of different algorithms: In order to compare with the currently commonly used algorithms, this embodiment uses the basic residual network Resnet and support vector machine (SVM) as the comparison algorithms. The number of network layers of Restnet is also set to 4 layers. Studies have shown that the effectiveness of the method of this embodiment is superior. At the same time, it can be seen that the normal state classification effect is better than the fault classification effect. This is because the number of normal type samples is significantly greater than the number of other fault types, so that the sample information can be better learned. The trained model can first distinguish whether the transformer is operating normally or has certain faults at this time. The result can be used as preliminary analysis information. Secondly, for different fault types, it can be seen that the classification effect of overheating type faults is better than that of discharge type faults.
[0104] Since a single experiment has a certain degree of randomness, this embodiment repeats the three methods for 100 times. The results show that the method proposed in this embodiment is superior to the other two comparison methods in terms of both average and variance.
[0105] 4) The impact of different numbers of samples: Since the number of training samples will affect the experimental results, the effects are further compared. The number of samples was reduced to 2000, 1500 and 1000 respectively. The number of samples of each type was also reduced accordingly. The sample data was also divided into training set and test set at a ratio of 9:1. The test results showed that when the training samples were reduced, the classification effects of all methods were significantly reduced. For data-driven models, larger data samples are required to train a more accurate model. As the number of samples decreases, the SVM model effect decreases the most. In contrast, although the model performance of the method in this embodiment decreases when the samples are reduced, the decrease is not very large. The method in this embodiment can also maintain a high classification performance, which proves that the network structure proposed in this embodiment has a high feature extraction and recognition classification capability, and can be better applied to the state assessment and fault classification problems of substations.
[0106] 5) Influence of different characteristic parameters: Since this embodiment introduces frequency domain information as the input of the network model and considers the ratio information of different characteristic quantities. The effectiveness of this design is verified. In order to conduct the analysis, four scenarios are designed. Scenario 1 inputs the original time domain information to the model; Scenario 2 inputs the time domain sequence and the corresponding ratio information; Scenario 3 inputs the time domain information and frequency domain information; Scenario 4 inputs the time domain information, frequency domain information, time domain sequence ratio and frequency domain sequence ratio. The research results show that the model effect of scenario 4 is the best, and the effects of scenarios 2 and 3 are also better than those of scenario 1. This shows that the introduction of frequency domain information can enable the model to add some prior knowledge and improve the breadth of input information. At the same time, referring to the traditional ratio method, the ratio information of different parameters of the time domain and frequency domain sequences is also used as input, which can also improve the effect of the model to a certain extent. Combining the above two information, it is verified that the effectiveness of the method proposed in this embodiment is superior.
[0107] From the above, it can be seen that the transformer fault diagnosis method based on oil chromatogram time-frequency domain information and residual attention network in this embodiment uses the residual attention network model to stack attention modules in a cross-layer connection manner, which reduces the impact of network overfitting and speeds up the training speed of the model. The attention module can better focus on information that has a higher impact on classification and increase its corresponding weight, thereby further improving the accuracy of transformer fault classification.
[0108] It should be noted that the prior art in the protection scope of the present invention is not limited to the embodiments given in the present application documents. All prior art that does not contradict the scheme of the present invention, including but not limited to prior patent documents, prior public publications, prior public uses, etc., can be included in the protection scope of the present invention.
[0109] In addition, it should be noted that the combination of the various technical features in this case is not limited to the combination described in the claims of this case or the combination described in the specific embodiments. All technical features described in this case can be freely combined or combined in any way unless there is a contradiction between them.
[0110] Those skilled in the art will appreciate that all or part of the steps to implement the above embodiments may be accomplished by hardware, or by a program to instruct related hardware, and the program may be stored in a computer-readable storage medium, wherein the storage medium may be a magnetic disk, an optical disk, a read-only memory (ROM) or a random access memory (RAM), etc.
[0111] The above is only a preferred embodiment of the present invention. It should be pointed out that ordinary technicians in this technical field can make several improvements and supplements without departing from the principle of the present invention. These improvements and supplements should also be regarded as the scope of protection of the present invention.
Claims
1. A transformer fault diagnosis method based on oil chromatogram time-frequency domain information and residual attention network, characterized in that: The implementation of the method relies on an oil chromatogram time-frequency domain information acquisition and processing program module and a residual attention network program module, wherein the oil chromatogram time-frequency domain information acquisition and processing program module includes an oil chromatogram monitoring data acquisition and cleaning program submodule and an oil chromatogram time-frequency domain information sample data generation program submodule, and the residual attention network program module stacks multiple layers of residual attention mechanism program submodules, wherein the residual attention mechanism program submodule is composed of a surface attention network for calculating attention weights and a representation residual network for feature extraction and learning, and a residual network model for learning residuals according to cross-layer connections is used to construct a residual attention network; the method comprises the following steps: S1, oil chromatography monitoring data collection and cleaning program submodule collects oil chromatography monitoring data of oil-immersed transformers and performs data cleaning; S2, the oil chromatogram time-frequency domain information sample data generation program submodule generates a gas concentration time-domain sequence, a frequency-domain component sequence, a time-domain sequence ratio, and a frequency-domain sequence concentration ratio sample data set according to the data of step S1; S3, the residual attention network program module uses the sample data set generated in step S2 to train and test the transformer fault classification residual attention network; S4, the residual attention network program module uses the trained residual attention network to input the sample data generated by step S1 and step S2 to perform transformer fault identification and early warning; The surface attention network uses three activation functions to provide attention weights, including a hybrid attention activation function that uses a sigmoid function for each channel and spatial position of the residual attention network without adding additional constraints L2 regularization is used to constrain each spatial position of all channels of the residual attention network to eliminate the channel attention activation function of spatial information And the spatial attention activation function that regularizes each channel of the residual attention network The range of i covers all spatial positions of the residual attention network, c covers all channels of the residual attention network, and mean c and std c represents the mean and variance of the c-th channel feature map of the residual attention network, x i,c The feature vector representing the i-th spatial position of the residual attention network; The residual attention network is trained in an end-to-end mode, and the surface attention network adopts a bottom-to-top structure to imitate the forward and feedback mechanisms in the attention training process; the input of any of the residual attention mechanism program submodules is x, the output corresponding to the residual network is T(x), and the attention weight output obtained by the surface attention network is M(x). Finally, the output of any of the residual attention mechanism program submodules is H i,c (x) = M i,c (x)×T i,c (x), where the range of i covers all spatial positions of the residual attention network, and c∈{1,K,C} represents the index of the residual attention network channel; The attention weights of the surface attention network output of the residual attention mechanism program submodule are used as a feature selection method in the forward propagation, and participate in the gradient update in the back propagation. The gradient of the input feature of the residual attention mechanism program submodule is Where θ is the surface attention network parameter, φ is the representation residual network parameter; When the residual attention network is connected across layers to learn the residual, the output of the residual attention mechanism program submodule is H i,c (x) = (1 + M i,c (x))×F i,c (x), where M(x) ranges from [0 to 1]. When M(x) is close to 0, H(x) is close to the original feature F(x). i,c (x) is a series of features generated by the representation residual network during the cross-layer connection process; The training process of the surface attention network includes a forward scanning process and a reverse feedback process; the scanning process quickly collects global information of the input information, and the feedback process calculates the collected global information and feature map information; the forward scanning process and the reverse feedback process are implemented by convolution operations from bottom to end and then from top to bottom; first, the surface attention network increases the input information acceptance threshold by using the maximum pooling layer; then, after the surface attention network reaches the lowest sampling granularity, the global information is used to guide the attention weight of the input information at each position, and upsampling is achieved through linear interpolation, where the number of interpolations is the same as the number of maximum pooling layers, so that the output size is the same as the size of the feature map; finally, the surface attention network uses the sigmoid activation function to achieve output normalization.
2. A transformer fault diagnosis method based on oil chromatogram time-frequency domain information and residual attention network according to claim 1, characterized in that The step S2: generating a sample data set by cutting and slicing the data using a time window with an adjustable window length, and performing normalization processing on the generated sample data set.
3. A transformer fault diagnosis method based on oil chromatogram time-frequency domain information and residual attention network according to claim 1, characterized in that Step S3: the residual attention network classifies transformer faults into normal state and abnormal state, and the abnormal state includes six fault types: low temperature overheating, medium temperature overheating, high temperature overheating, partial discharge, low energy discharge and high energy discharge.
4. The transformer fault diagnosis method based on oil chromatogram time-frequency domain information and residual attention network according to claim 1 is characterized in that: The residual attention mechanism program submodule provides attention weights through the surface attention network to dynamically and adaptively adjust the weights learned by the residual network.
5. A transformer fault diagnosis device based on oil chromatogram time-frequency domain information and residual attention network, characterized in that: The device includes an oil chromatography time-frequency domain information acquisition and processing program module and a residual attention network program module. The oil chromatography time-frequency domain information acquisition and processing program module includes an oil chromatography monitoring data acquisition and cleaning program submodule and an oil chromatography time-frequency domain information sample data generation program submodule. The residual attention network program module stacks multiple layers of residual attention mechanism program submodules. The residual attention mechanism program submodule is composed of a surface attention network for calculating attention weights and a representation residual network for feature extraction and learning. The residual network model for learning residuals according to cross-layer connections constructs a residual attention network. The transformer fault diagnosis device based on oil chromatography time-frequency domain information and residual attention network is used to execute a transformer fault diagnosis method based on oil chromatography time-frequency domain information and residual attention network as described in any one of claims 1 to 4.
Citation Information
Patent Citations
Oil chromatogram online monitoring data change trend detection method based on wavelet maxima
CN108646124A
Converter transformer fault diagnosis method based on deep convolutional neural network
CN110929847A
GIS partial discharge type identification method based on deep residual network
CN112149549A
Distribution transformer fault diagnosis method with automatic feature mining and automatic parameter optimization
CN112327219A
Deep parallel fault diagnosis method and system for dissolved gas in transformer oil
US20210278478A1
