Transformer fault diagnosis method based on Res-CNN-ECA-Net model
Through the Res-CNN-ECA-Net model, combined with one-dimensional convolution layer and ECA-Net layer, the problems of insufficient diagnosis timeliness and difficulty in locating complex faults in traditional transformer fault diagnosis methods are solved, and efficient and accurate fault identification is achieved. and diagnosis, which improves the intelligent level of transformer fault diagnosis.
Patent Information
- Application Number
- CN202410725043.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-05
- Publication Date
- 2024-09-24
AI Technical Summary
Traditional transformer fault diagnosis methods have problems such as insufficient diagnosis timeliness, difficulty in fault location, high requirements for diagnosticians, and high preventive maintenance costs. It is especially difficult to identify minor faults and complex faults early, and lacks non-intrusive real-time monitoring and high intelligence. Data analysis.
A transformer fault diagnosis method based on the Res-CNN-ECA-Net model is adopted. By building a fault case library, data cleaning and enhancement, and using the Res-CNN-ECA-Net model for training, it combines one-dimensional convolution layers, residual blocks and The ECA-Net layer performs feature extraction and diagnosis, and uses the Adam adaptive learning rate and Dropout layer to improve model generalization capabilities.
It improves the accuracy and efficiency of transformer fault diagnosis, enhances the learning ability of complex sequence patterns, reduces the risk of over-fitting, optimizes calculation efficiency, simplifies the model structure, adapts to multi-task requirements, and improves the intelligence of diagnosis level.
Smart Images

Figure CN118690241A
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of transformer operation and maintenance, and specifically relates to a transformer fault diagnosis method based on a Res-CNN-ECA-Net model. Background Art
[0002] Traditional transformer fault diagnosis methods mostly rely on periodic offline detection and maintenance, including oil chromatography analysis, electrical tests (such as dielectric loss test, insulation resistance test) and mechanical vibration analysis. Although these methods can reflect the health status of the transformer to a certain extent, they have the following limitations:
[0003] 1. Insufficient timeliness of diagnosis: Offline detection requires the transformer to stop running, which not only affects the reliability of power supply, but also makes it difficult to detect and respond to sudden faults in a timely manner; 2. Difficulty in fault location: Especially for internal faults of transformers, such as winding short circuit and insulation aging, it is difficult to accurately locate them by external detection alone. It usually requires a combination of multiple test results and rich experience to make judgments; 3. High requirements for the comprehensive analysis ability of diagnostic personnel: Transformer fault symptoms are diverse and may be intertwined, requiring diagnostic personnel to have deep theoretical knowledge and practical experience to correctly interpret complex test data; 4. High cost of preventive maintenance: Although regular large-scale inspections and maintenance strategies can reduce the risk of transformer failures, the implementation cost is high and may cause waste of resources due to excessive maintenance.
[0004] In order to better realize transformer fault diagnosis, the technical difficulties that need to be solved mainly include:
[0005] 1. Accuracy of early fault identification: Minor faults or initial signs of degradation are often difficult to capture through conventional detection methods, resulting in missing the best time for maintenance; 2. Accurate distinction of complex faults: When a transformer has multiple faults or similar fault symptoms, it is a challenge to distinguish and prioritize the main faults; 3. Non-invasive detection of in-service transformers: How to use more advanced non-invasive detection technology for real-time monitoring and fault diagnosis without affecting the normal operation of the transformer is the key to improving the efficiency and accuracy of transformer diagnosis; 4. Data analysis and intelligence level: The effective analysis and utilization of massive detection data are insufficient, which limits the accuracy and practicality of the transformer fault prediction model. It is urgent to use big data and artificial intelligence technology to improve the intelligence level of transformer diagnosis. Summary of the invention
[0006] The purpose of the present invention is to provide an efficient and accurate transformer fault diagnosis method based on the Res-CNN-ECA-Net model for the power system. This method has made innovations in improving the efficiency of key feature extraction, model training efficiency, and enhancing the focus on key information. It is particularly suitable for industrial diagnosis scenarios with limited resources and high accuracy, and solves the technical problems existing in the above-mentioned background technology. The technical solution of the present invention is:
[0007] The transformer fault diagnosis method based on the Res-CNN-ECA-Net model includes the following steps:
[0008] Step 1: Build a transformer fault case library. Each case in the transformer fault case library records the type and specific concentration value of the key characteristic gas in the transformer oil, as well as the corresponding transformer equipment status type. The types of key characteristic gases include but are not limited to: H2, CH4, C2H2, C2H4 and C2H6. The transformer fault case library is a comprehensive transformer fault database with clear conclusions. It collects 750 examples based on dissolved gas analysis in transformer oil, covering a wide range of practical application scenarios. Through these data, the correlation between different gas types and concentrations and transformer internal faults can be clearly seen.
[0009] Step 2: Clean the transformer fault case database to obtain a new transformer fault case data set. The specific methods include: replacing abnormal zero values with minimum values; performing data transformation, scaling the data (using the minimum-maximum scaling method to map the data to the [0,1] interval), and adding new features (such as gas ratios); selecting some gas features for pairwise division to obtain additional features; performing data enhancement, expanding the data set by adding Gaussian noise to meet the needs of the training model.
[0010] Step 3: In order to ensure that the constructed transformer fault diagnosis model has high accuracy and generalization ability, 80% of the new transformer fault case data set with clear conclusions processed in step 2 is used as the training data set of the Res-CNN-ECA-Net model by random sampling. This part of the data covers the diverse combination of characteristic gases dissolved in transformer oil and their matching relationship with the corresponding equipment fault state. Through complex machine learning algorithms or deep learning models, the Res-CNN-ECA-Net model can learn the intrinsic connection between characteristic gases and fault types, and gradually optimize its recognition and prediction capabilities. The remaining 20% of the fault cases are used as the test data set to verify the accuracy of the Res-CNN-ECA-Net model.
[0011] Step 4: Input the training data set into the training model to build the Res-CNN-ECA-Net model, and use the grid search method to adjust the hyperparameters of the Res-CNN-ECA-Net model, such as the learning rate and the number of iterations.
[0012] Step 5: Update the parameters of the Res-CNN-ECA-Net model according to the Adam adaptive learning rate method. When updating the parameters of the Res-CNN-ECA-Net model using the Adam adaptive learning rate method, if the model training meets the iterative convergence conditions, stop updating the parameters of the Res-CNN-ECA-Net model; after stopping updating the parameters of the Res-CNN-ECA-Net model, retain the parameters of the Res-CNN-ECA-Net model calculated in the last step.
[0013] Step 6: Input the transformer operation data into the Res-CNN-ECA-Net model, and finally output the transformer fault diagnosis results through a series of representation learning and dimensionality reduction operations.
[0014] Preferably, a test data set is used to test the performance of the Res-CNN-ECA-Net model. In order to more effectively evaluate the performance of the Res-CNN-ECA-Net model, the accuracy Acc is used as the evaluation index of the Res-CNN-ECA-Net model. The higher the index, the higher the fault diagnosis accuracy.
[0015] Preferably, when constructing the Res-CNN-ECA-Net model, the processed raw data is passed through a convolution layer to extract local features in the time series data to obtain a preliminary feature map, and the preliminary feature map is further transmitted to the three residual blocks of the next level, each residual block contains two layers of convolution operations, and an ECA-Net layer is embedded after each residual block.
[0016] Preferably, the ECA-Net layer captures cross-channel information based on global average pooling and global maximum pooling operations, and then encodes the cross-channel information through a pair of shared fully connected layers, and generates channel attention weights using a sigmoid activation function.
[0017] Preferably, an additional ECA-Net layer is deployed after the last residual block and before the Flatten flattening process to enhance the utilization of global context information.
[0018] The beneficial effects of the present invention are:
[0019] 1. Improve feature expression capabilities: One-dimensional convolutional layers and residual blocks can effectively capture local features and long-distance dependencies in sequence data, enhancing the model's ability to learn complex sequence patterns.
[0020] 2. Enhanced focus on key features: The introduction of the ECA-Net layer realizes the dynamic weighting of input features, allowing the model to automatically focus on the features that are most critical to the classification task, thereby improving the recognition accuracy and generalization performance of the model.
[0021] 3. Reduce the risk of overfitting: The use of the Dropout layer randomly discards some neurons, reducing the model's excessive dependence on training data, which helps improve the model's performance on unseen data, that is, improves the generalization ability.
[0022] 4. Optimize computational efficiency: Despite the addition of the attention mechanism, ECA-Net is designed to be relatively lightweight. Compared with some complex attention models, it can effectively control model complexity and training time while providing high performance.
[0023] 5. Simplify the understanding of model structure: The residual structure not only helps to solve the gradient vanishing problem of deep networks, but also makes the model easier to understand and debug. The role of each part is clear, which facilitates subsequent model optimization and adjustment.
[0024] 6. Flexible adaptation to multi-task requirements: The model structure is relatively flexible and can be adjusted according to different input dimensions and classification task requirements, such as by modifying the input shape, increasing or decreasing the number of residual blocks, etc., to adapt to different scenarios.
[0025] In summary, this model can effectively improve the accuracy and efficiency of diagnosis in sequence data classification tasks such as transformer oil chromatography data analysis, while maintaining good model interpretability and computational economy. BRIEF DESCRIPTION OF THE DRAWINGS
[0026] The accompanying drawings are used to provide a further understanding of the present invention and constitute a part of the specification. Together with the embodiments of the present invention, they are used to explain the present invention and do not constitute a limitation of the present invention. In the accompanying drawings:
[0027] Figure 1 is a schematic diagram of a Res-CNN-ECA-Net model according to an embodiment of the present invention;
[0028] Figure 2 It is a schematic flow chart of the steps of the transformer fault diagnosis method according to an embodiment of the present invention. DETAILED DESCRIPTION
[0029] The technical solution of the present invention will be clearly and completely described below in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present invention, rather than all of the embodiments.
[0030] The transformer fault diagnosis method based on the Res-CNN-ECA-Net model has the following specific steps:
[0031] Step 1: Collect the measured data of five main types of dissolved gases in oil of faulty transformers of the power grid company over the years and the DGA data of a large number of known fault types in the literature, including data of acetylene (C2H2), ethylene (C2H4), ethane (C2H6), methane (CH4) and hydrogen (H2) as gas content characteristic data. Common transformer faults include high-temperature overheating, medium-temperature overheating, low-temperature overheating, high-energy discharge, partial discharge and low-energy discharge.
[0032] Step 2: Based on the original gas content characteristic data, ten gas content ratio characteristic data such as H6 / C2H4, C2H6 / C2H2, C2H6 / CH4, and C2H6 / H2 are added. By supplementing the characteristic data, the accuracy of fault diagnosis is effectively improved. The gas characteristic data is shown in the following table:
[0033]
[0034] When calculating the ratio, if the denominator is 0, the denominator is modified to a minimum value to avoid invalid values. The present invention takes the minimum value as 10-6. Since deep learning models often require a large amount of data, data enhancement is required to increase the amount of data. The new data set is expanded to 3000 cases by superimposing Gaussian noise. The probability density function of the superimposed noise obeys a Gaussian distribution (ie, a normal distribution), as shown in the following formula:
[0035]
[0036] Among them, μ is the mean, σ is the standard deviation, and p G (g) is the probability density function of Gaussian noise.
[0037] Due to the different dimensions of different features, in order to speed up model training and improve accuracy, the data is normalized to the interval [0, 1], as shown in the following formula:
[0038]
[0039] Where: x and x' are the values before and after data normalization, respectively, x max and x min are the maximum and minimum values in the data respectively. The next step is to perform hot encoding on the label data. The encoding results are shown in the following table:
[0040]
[0041]
[0042] Finally, the data processed in the previous step is randomly sampled from 80% of the cases as the training set, and then supervised deep learning is performed, and 20% of the transformer failure cases randomly sampled are used as the test set to verify the accuracy and rationality of the analysis model. Thus, the processing of the original data is completed.
[0043] Step 3: Build the Res-CNN-ECA-Net model. Input layer: Receive an input sequence of shape (15,1), where 15 represents the length of the sequence and 1 represents a single-channel feature representation.
[0044] Preliminary feature extraction: The processed raw data is passed through a convolution layer to preliminarily extract local features in the time series data, laying the foundation for the subsequent deep learning process. The convolution operation can be expressed as a function F init (X; W init ,b init ), where W init is the convolution kernel weight matrix, b init is the bias term.
[0045] Residual learning module: The feature map after preliminary feature extraction is further transmitted to the next level, namely the SE-ECA module. Three residual blocks are designed in this part. Each block contains two layers of convolution operations. Skip connections are used to alleviate the gradient vanishing problem and promote the effective training of deep networks. In particular, an ECA-Net layer is embedded after each residual block to dynamically adjust the attention between channels and optimize feature representation. For the i-th residual block (a total of 3), its internal convolution operation is set to F resi (X in ; W resi ,b resi ), where X in is the input, X out is the output, and the residual connection can be expressed as X outi =F resi (X in )+X in . ECA-Net layer: This layer is the key innovation of the model. It captures cross-channel information based on global average pooling and global maximum pooling operations, and then encodes these statistics through a pair of shared fully connected layers, and generates channel attention weights using the sigmoid activation function. This mechanism enables the network to adaptively emphasize feature channels that are more important for classification tasks, thereby improving the expressiveness and generalization performance of the model. In particular, the additional deployment of the ECA-Net layer after the last residual block and before the Flatten process further enhances the utilization of global contextual information. The ECA-Net operation after each residual block can be simply described as F eca (X; W eca), where W eca Including all weights used for attention calculation. ECA-Net weights the input X by calculating the channel attention weights to form, ⊙ represents element-by-element multiplication. The detailed steps inside ECA-Net are as follows:
[0046] 1. Global average pooling: P avg =GAP(X), where GAP is the global pooling operation.
[0047] 2. Global maximum pooling: P max =GMP(X), where GMP is the global maximum pooling operation.
[0048] 3. Feature fusion and scaling: transform f through shared fully connected layers shared (·)=Dense(.;W fc1 ,b fc1 ) and g(·)=Dense(.;W fc2 ,b fc2 ), where . represents the input variable of the function, and the part after ; indicates the specific parameters of the function, namely the weight matrix and the bias term. fc1 , W fc2 is the weight matrix of the fully connected layer, b fc1 , b fc2 is the bias term
[0049] Where S avg =f shared (P avg ),S max =f shared (P max ), attention weighted X eca =X⊙α. Pooling and regularization: The model applies maximum pooling to reduce the spatial dimension and introduces the Dropout layer for regularization to reduce the risk of overfitting. Maximum pooling can be expressed as X pool =MP(X out3 ; k = 2), MP is the maximum pooling function, k is the pooling size, and the Dropout operation is X drop = Dropout(X pool ; p = 0.2), where p is the discard ratio.
[0050] Classification output: After the feature fusion extraction in the previous step, the graph is flattened through the Flatten process, and then a fully connected layer is used with the softmax activation function to achieve classification prediction of 8 types of targets. The softmax function is used to ensure that the sum of the probabilities is 1.
[0051] The overall architecture of the Res-CNN-ECA-Net model is shown in the following table:
[0052]
[0053] In summary, the entire Res-CNN-ECA-Net model performs end-to-end feature learning and classification prediction on the input sequence through a series of convolutions, residual learning, ECA-Net attention mechanism, and final classification operations.
[0054] Step 4: Configure the Res-CNN-ECA-Net model. In order to verify the performance and effectiveness of the method proposed in the present invention, the code is run on the Tensorflow2.16 learning framework using Python language. The computer uses an Intel(R) Core(TM) i7-9700CPU@2.80GHz processor and 16GB memory hardware configuration. Iterate 200 generations. The final result is an accuracy of 94.7%.
[0055] The Res-CNN-ECA-Net model is a deep learning network built on Keras. It is mainly used to process one-dimensional sequence data and perform multi-classification tasks. It is particularly suitable for sequence signal processing scenarios such as transformer oil chromatography analysis. The core components of the model include ECA-Net layer, residual block, convolution layer, pooling layer, Dropout and fully connected layer. The model is a sequence data processor used for classification tasks. Its workflow can be simplified as follows: Input processing: Receive a series of feature vectors, each of which consists of 15 features. Feature extraction: First, capture local features through convolutional layers; then, maximum pooling reduces data complexity but retains important information; and ECA-Net layers emphasize which channels (features) are more important.
[0056] Deep learning: Several residual blocks deepen learning, allowing the model to capture more complex features, while the dropout layer prevents over-reliance on certain features and improves the versatility of the model. Decision making: After a series of operations such as convolutional layers, pooling layers, ECA-Net layers, and residual blocks. These operations produce one or more feature maps that artificial intelligence considers useful. The purpose of flattening is to convert these multi-dimensional feature maps into one-dimensional vector form so that they can be directly processed by the fully connected layer (also called densely connected layer). The fully connected layer requires its input to be a vector, not a multi-dimensional matrix. Therefore, flattening is a bridge connecting the convolution / pooling layer and the fully connected layer. It does not involve any learning process, but simply reorganizes the data structure, that is, "flattening" the multi-dimensional data into a one-dimensional array so that each element corresponds to a specific position or feature in the original multi-dimensional data. After flattening, the data is sent to the fully connected layer, and finally the probability of each category is output through the softmax function to determine which category the data belongs to. Training setup: The model uses the Adam optimizer to adjust internal parameters and learns based on the difference between the predicted results and the actual labels (cross entropy loss) with the goal of improving classification accuracy.
[0057] The embodiment of the present invention proposes a transformer fault diagnosis model based on deep learning, and its core technical features include the following points:
[0058] 1. Integrated ECA-Net (Efficient Channel Attention Network) mechanism: This invention realizes adaptive weighting of input signals in the channel dimension by introducing the ECA-Net layer, thereby effectively enhancing the model's ability to capture key features. ECA-Net extracts cross-channel information of time series data by combining global average pooling and global maximum pooling, and dynamically adjusts the importance of each channel using two fully connected layers. Finally, the attention weight is output through the Sigmoid activation function, which is multiplied element by element with the original input, thereby strengthening the learning of fault features in transformer operation data.
[0059] 2. Fusion application of residual networks (Residual Blocks): Multi-layer residual blocks are integrated in the model construction process. Each block contains two one-dimensional convolution operations and a skip connection structure to solve the gradient vanishing problem in deep networks, while improving the feature extraction depth and generalization ability of the model. This design enables the network to learn richer time series features, which is particularly effective for the identification of complex fault modes.
[0060] 3. Data-optimized network architecture: This model is specially designed for the operation data of power transformers. The input layer accepts data with a fixed length sequence. Through a series of representation learning and dimensionality reduction operations, the fully connected layer finally outputs the fault classification results. The characteristics of oil chromatography data are taken into account in the model structure, and the stability and generalization of the model are further enhanced through the MaxPooling and Dropout layers.
[0061] The Res-CNN-ECA-Net model of the embodiment of the present invention, 1. The ECA-Net mechanism is integrated in the Res-CNN-ECA-Net model to optimize the importance distribution of features between channels; 2. The residual network block is used as the basic building block in the Res-CNN-ECA-Net model structure, and the training efficiency and expression ability of the deep network are improved through residual learning; 3. The network architecture design specific to time series data analysis, including but not limited to one-dimensional convolution, maximum pooling, Dropout and the fully connected layer finally used for classification, is aimed at performing efficient and accurate fault diagnosis for the operation time series data of the power transformer; 4. The specific implementation method of the above-mentioned Res-CNN-ECA-Net model, including the construction and training process of the Res-CNN-ECA-Net model and how to use the Res-CNN-ECA-Net model to perform real-time or offline detection of transformer faults.
[0062] In the embodiments of the present invention, technical features that are not described in detail are all existing technologies or conventional technical means and will not be described in detail here.
[0063] Finally, it should be noted that the above embodiments are only specific implementation methods of the present invention, which are used to illustrate the technical solutions of the present invention, rather than to limit them, and the protection scope of the present invention is not limited thereto. Those skilled in the art should understand that any technician familiar with the technical field can modify the technical solutions recorded in the above embodiments within the technical scope disclosed by the present invention, or can easily think of changes, or make equivalent replacements for some of the technical features therein; and these modifications, changes or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present invention, and should be covered within the protection scope of the present invention.
Claims
1. A transformer fault diagnosis method based on the Res-CNN-ECA-Net model, characterized in that: The following steps are involved: Step 1: Build a transformer fault case library; Step 2: Clean the transformer fault case database to obtain a new transformer fault case data set; Step 3: Using random sampling, 80% of the fault cases in the new transformer fault case data set are used as the training data set, and the remaining 20% of the fault cases are used as the test data set; Step 4: Input the training data set into the training model to build the Res-CNN-ECA-Net model, and use the grid search method to adjust the hyperparameters of the Res-CNN-ECA-Net model; Step 5: Update the parameters of the Res-CNN-ECA-Net model according to the Adam adaptive learning rate method. If the model training meets the iterative convergence conditions, stop updating the parameters of the Res-CNN-ECA-Net model and retain the parameters of the Res-CNN-ECA-Net model calculated in the last step. Step 6: Input the transformer operation data into the Res-CNN-ECA-Net model, and finally output the transformer fault diagnosis results through a series of representation learning and dimensionality reduction operations.
2. The transformer fault diagnosis method based on the Res-CNN-ECA-Net model according to claim 1 is characterized in that: In step 1, each case in the transformer fault case library records the type and specific concentration value of the key characteristic gas in the transformer oil, as well as the corresponding transformer equipment status type.
3. The transformer fault diagnosis method based on the Res-CNN-ECA-Net model according to claim 1 is characterized in that: In step 2, the abnormal zero value is replaced by the minimum value; data transformation is performed, the data is proportionalized, and new features are added; Select some gas features and divide them two by two to obtain additional features; Perform data augmentation and expand the dataset by adding Gaussian noise.
4. The transformer fault diagnosis method based on the Res-CNN-ECA-Net model according to claim 1 is characterized in that: The test data set is used to test the performance of the Res-CNN-ECA-Net model, and the accuracy Acc is used as the evaluation indicator of the Res-CNN-ECA-Net model.
5. The transformer fault diagnosis method based on the Res-CNN-ECA-Net model according to any one of claims 1 to 4, characterized in that: When building the Res-CNN-ECA-Net model, the processed raw data is passed through a convolutional layer to extract local features in the time series data to obtain a preliminary feature map, which is then transmitted to the three residual blocks at the next level. Each residual block contains two layers of convolution operations, and an ECA-Net layer is embedded after each residual block.
6. The transformer fault diagnosis method based on the Res-CNN-ECA-Net model according to claim 5 is characterized in that: The ECA-Net layer captures cross-channel information based on global average pooling and global maximum pooling operations, and then encodes the cross-channel information through a pair of shared fully connected layers, and generates channel attention weights using the sigmoid activation function.
7. The transformer fault diagnosis method based on the Res-CNN-ECA-Net model according to claim 6 is characterized in that: An additional ECA-Net layer is deployed after the last residual block and before the Flatten process to enhance the utilization of global context information.
