Transformer fault early warning method and system based on oil chromatography analysis
By constructing an oil chromatogram structure and a multi-modal deep learning model, combined with a graph convolution network and a temporal convolution network, the problem of untimely fault warning and high false alarm rate in transformer fault detection is solved, and real-time, real-time detection of transformer faults is achieved. Accurate early warning improves the stability of the power grid.
Patent Information
- Application Number
- CN202410941031.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-15
- Publication Date
- 2024-10-11
- Estimated Expiration
- 2044-07-15
AI Technical Summary
Existing transformer fault detection methods rely on regular detection and manual analysis, resulting in untimely fault warnings and high false alarm rates. It is difficult to achieve real-time monitoring and accurate warnings of early faults, which affects the stability of the power grid.
A transformer fault early warning method based on oil chromatography analysis is used to construct an oil chromatogram structure by obtaining real-time oil chromatography data and operating data, and uses graph convolution network and time convolution network to extract features, and combines multi-modal deep learning models to detect faults Prediction, integrating adaptive and sparse attention mechanisms to achieve more accurate fault type prediction.
It significantly improves the timeliness and accuracy of fault early warning, reduces the false alarm rate, ensures efficient, accurate and reliable early warning of transformer faults, and improves the stability of the power grid and the safety of equipment.
Smart Images

Figure CN118503792B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of smart grid systems, and in particular to a transformer fault early warning method and system based on oil chromatography analysis. Background Art
[0002] As the core equipment of the power system, the reliability and safety of the transformer are directly related to the stable operation of the power grid. Oil chromatography analysis is one of the important means of transformer fault prediction and detection. By detecting the type and concentration of dissolved gas in the oil, the internal state of the transformer and early fault prediction can be determined.
[0003] Dissolved Gas Analysis (DGA) is a method to determine internal transformer faults by detecting the composition of dissolved gases in transformer oil. Commonly used dissolved gases include hydrogen , Methane , Ethylene , acetylene Different fault types will cause different chemical reactions inside the transformer, thus generating different types and quantities of gases. For example, a large amount of acetylene will be generated under arc discharge faults. , accompanied by hydrogen and methane In the event of an overheating fault, temperatures between 150°C and 300°C produce mainly methane and ethane ; while temperatures between 300°C and 700°C produce ethylene and a small amount of acetylene .
[0004] Traditional oil chromatography analysis methods include gas chromatography (GC), ion mobility spectrometry (IMS) and mass spectrometry (MS). These methods rely on preset thresholds and empirical formulas, such as the Rogers Ratio Method and the IEC Ratio Method, to determine the fault type corresponding to the change in gas concentration.
[0005] Although the traditional oil chromatography analysis method has been widely used in transformer fault detection, it still has many defects in practical application. Specifically, the traditional method relies on regular inspection and manual analysis, usually collecting and analyzing oil samples every few months or a year, which leads to untimely fault warning and makes it difficult to achieve real-time monitoring and early warning of transformer early faults. When the fault is discovered, it may have caused serious equipment damage and grid stability. In addition, the traditional method mainly relies on fixed thresholds and ratios to judge the fault type, and these thresholds and ratios may be affected by environmental factors, load fluctuations, transformer aging and other factors. It is a gradual and long-term continuous process. Therefore, offline measurement and single measurement cannot accurately reflect the early fault status of the transformer. In addition, the traditional analysis method usually only considers the oil chromatography data, but ignores the influence of other important parameters during the operation of the transformer, and it is difficult to fully and accurately reflect the operating status of the transformer.
[0006] In response to the above problems, the industry has not yet proposed a better technical solution. Summary of the invention
[0007] The present application provides a transformer fault warning method, system, storage medium, computer program product and electronic device based on oil chromatography analysis, which are used to at least solve the problem in the current related technology that transformers cannot detect faults in time and issue early warnings, and the false alarm rate of fault detection is high, resulting in instability of the power grid system.
[0008] In the first aspect, an embodiment of the present application provides a transformer fault warning method based on oil chromatography analysis, including: obtaining real-time oil chromatography data of the transformer, real-time transformer operation data and a historical transformer operation data group corresponding to a preset historical time period; the transformer operation data includes the transformer primary side voltage, the transformer secondary side voltage, the transformer primary side current, the transformer secondary side current, the transformer oil temperature and the transformer load rate; constructing an oil chromatogram structure based on the real-time oil chromatography data and the real-time transformer operation data; the oil chromatogram structure includes multiple graph nodes and edges, each of the graph nodes uniquely corresponds to a gas type, and the node characteristics of the graph nodes are defined by the gas concentration of the corresponding gas type in the real-time oil chromatography data; each edge is defined according to the chemical reaction relationship between the gas types of the corresponding graph nodes, and the edge weight is updated or a new edge is constructed through the real-time transformer operation data; based on the graph convolution network, the node characteristics of each graph node in the oil chromatogram structure are updated; based on the time convolution network, the historical transformer operation data group is processed to obtain the corresponding transformer The transformer operation timing dependency feature and each updated node feature are input into the transformer fault prediction model, so that the transformer fault prediction model determines the corresponding transformer fault prediction result; the transformer fault prediction model adopts a multimodal deep learning model, which includes a cascaded input layer, a feature fusion module and a classification output layer; the input layer is used to receive each of the updated node features and the transformer operation timing dependency feature; the feature fusion module includes a feature splicing layer, an adaptive attention layer and a sparse attention layer; the feature splicing layer is used to splice each of the updated node features and the transformer operation timing dependency feature to obtain a comprehensive feature vector; the adaptive attention layer is used to perform weighted fusion on the comprehensive feature vector by calculating the importance weight of each feature to obtain an intermediate fusion feature; the sparse attention layer is used to update the intermediate fusion feature according to the ranking of the importance weights of each feature to determine the corresponding target fusion feature; the classification output layer is used to predict the transformer fault prediction result corresponding to the target fusion feature.
[0009] In a second aspect, an embodiment of the present application provides a transformer fault warning system based on oil chromatography analysis, including: a data acquisition unit, used to acquire real-time oil chromatography data of the transformer, real-time transformer operation data and a historical transformer operation data group corresponding to a preset historical time period; the transformer operation data includes the transformer primary side voltage, the transformer secondary side voltage, the transformer primary side current, the transformer secondary side current, the transformer oil temperature and the transformer load rate; a graph structure construction unit, used to construct an oil chromatogram structure based on the real-time oil chromatography data and the real-time transformer operation data; the oil chromatogram structure includes a plurality of graph nodes and edges, each of the graph nodes uniquely corresponding to a gas type, and the node characteristics of the graph nodes are defined by the gas concentration of the corresponding gas type in the real-time oil chromatogram data; each edge is defined according to the chemical reaction relationship between the gas types of the corresponding graph nodes, and the edge weight is updated or a new edge is constructed through the real-time transformer operation data; a graph node updating unit, used to update the node characteristics of each graph node in the oil chromatogram structure based on a graph convolutional network; a temporal feature extraction unit, used to process the historical transformer operation data based on a time convolutional network; A row data group is prepared to obtain the corresponding transformer operation timing dependency feature; a transformer fault prediction unit is used to input the transformer operation timing dependency feature and each updated node feature into a transformer fault prediction model, so that the transformer fault prediction model determines the corresponding transformer fault prediction result; the transformer fault prediction model adopts a multimodal deep learning model, which includes a cascaded input layer, a feature fusion module and a classification output layer; the input layer is used to receive each of the updated node features and the transformer operation timing dependency feature; the feature fusion module includes a feature splicing layer, an adaptive attention layer and a sparse attention layer; the feature splicing layer is used to splice each of the updated node features and the transformer operation timing dependency feature to obtain a comprehensive feature vector; the adaptive attention layer is used to perform weighted fusion on the comprehensive feature vector by calculating the importance weight of each feature to obtain an intermediate fusion feature; the sparse attention layer is used to update the intermediate fusion feature according to the ranking of the importance weights of each feature to determine the corresponding target fusion feature; the classification output layer is used to predict the transformer fault prediction result corresponding to the target fusion feature.
[0010] In a third aspect, an electronic device is provided, comprising: at least one processor, and a memory communicatively connected to the at least one processor, wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can perform the steps of the transformer fault warning method based on oil chromatography analysis of any embodiment of the present application.
[0011] In a fourth aspect, an embodiment of the present application provides a storage medium on which a computer program is stored, characterized in that when the program is executed by a processor, the steps of the transformer fault warning method based on oil chromatography analysis of any embodiment of the present application are implemented.
[0012] In a fifth aspect, an embodiment of the present application provides a computer program product, including a computer program / instruction, which, when executed by a processor, implements the steps of the transformer fault warning method based on oil chromatography analysis of any embodiment of the present application.
[0013] The transformer fault early warning method based on oil chromatography analysis provided by the present application can produce at least the following technical effects:
[0014] (1) Compared with the traditional method that relies on periodic inspection and manual analysis, in this technical solution, by obtaining the real-time oil chromatography data and real-time transformer operation data of the transformer, the operating status of the transformer can be monitored in real time, which significantly improves the timeliness of fault warning. It can identify and warn at the early stage of the fault, avoiding the problem of failure to discover the fault in time due to the long detection cycle, thereby reducing equipment damage and the impact on the stability of the power grid.
[0015] (2) By constructing the oil chromatogram structure and updating the node features of each graph node in the oil chromatogram structure based on the graph convolutional network (GCN), the chemical reaction relationship between the gas types and the influence of the transformer's real-time operation data on the edge weights are fully considered. It can more accurately capture the complex relationship between the gases in the oil chromatogram data, effectively realize multimodal data fusion and feature extraction, and ensure more accurate fault prediction results. In addition, the historical transformer operation data group is processed through the temporal convolutional network (TCN) to extract the corresponding transformer operation timing dependency features. It not only focuses on real-time data, but also comprehensively considers the timing dependency of historical data. It can more comprehensively reflect the operating status and historical change trend of the transformer, further improving the accuracy of fault prediction.
[0016] (3) The transformer fault prediction model adopts a multimodal deep learning model, which comprehensively utilizes the oil chromatogram update node features and transformer operation sequence dependency features to achieve accurate prediction of fault types. A feature fusion module based on adaptive and sparse attention mechanism is also integrated into the transformer fault prediction model. Through the application of multi-level attention mechanism, the model can more effectively focus on important features and ignore irrelevant or noise features, thereby improving the accuracy of feature fusion and prediction effect.
[0017] (4) Traditional oil chromatography analysis methods rely on fixed thresholds and ratios, which are easily affected by environmental factors, load fluctuations, and transformer aging, resulting in a high false alarm rate. In this scheme, by integrating multimodal data and the adaptive capabilities of deep learning models, the limitations of single threshold dependence are avoided, the false alarm rate is effectively reduced, and the reliability and stability of fault detection are improved.
[0018] Through this technical solution, real-time monitoring, graph convolutional network and temporal convolutional network feature extraction, and prediction output of adaptive and sparse attention mechanisms are comprehensively utilized to achieve efficient fusion of multimodal features, ensure efficient, accurate and reliable transformer fault warning, and significantly improve the stability of the power grid and the safety of equipment. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, a brief introduction will be given below to the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0020] Figure 1 A flowchart showing an example of a transformer fault early warning method based on oil chromatography analysis according to an embodiment of the present application is shown;
[0021] Figure 2 A flowchart of an example of constructing an oil chromatogram structure according to an embodiment of the present application is shown;
[0022] Figure 3 A schematic diagram of the structural connection of an example of a transformer fault prediction model according to an embodiment of the present application is shown;
[0023] Figure 4 A flowchart showing another example of a transformer fault early warning method based on oil chromatography analysis according to an embodiment of the present application is shown;
[0024] Figure 5 A structural block diagram of an example of a transformer fault early warning system based on oil chromatography analysis according to an embodiment of the present application is shown;
[0025] Figure 6 It is a schematic structural diagram of an embodiment of an electronic device of the present application. DETAILED DESCRIPTION
[0026] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0027] In the technical solution of this application, the collection, storage, use, processing, transmission, provision and disclosure of user personal information involved shall comply with the relevant laws and regulations and shall not violate public order and good morals.
[0028] Figure 1 A flowchart of an example of a transformer fault early warning method based on oil chromatography analysis according to an embodiment of the present application is shown.
[0029] Regarding the execution subject of the method of the embodiment of the present application, it can be any controller or processor with computing or processing capabilities. Through the combination of real-time data acquisition, comprehensive data analysis, dynamic adjustment and deep learning technology, the real-time, accuracy and adaptability of transformer fault detection are significantly improved, providing a more reliable technical guarantee for the stable operation of the power grid. In some examples, it can be a transformer fault warning platform, and can be integrated and configured in an electronic device or terminal through software, hardware or a combination of software and hardware, and the type of terminal or electronic device can be diverse, such as a mobile phone, a tablet computer or a desktop computer, etc.
[0030] like Figure 1 As shown, in step S110, real-time oil chromatography data of the transformer, real-time transformer operation data and a historical transformer operation data group corresponding to a preset historical time period are obtained.
[0031] In some embodiments, an oil chromatograph is used to collect the concentration of different gases (such as hydrogen, methane, ethane, ethylene, acetylene, carbon monoxide and carbon dioxide) in transformer oil in real time, and a transformer monitoring device is used to collect data such as the primary side voltage, secondary side voltage, primary side current, secondary side current, oil temperature and load rate of the transformer in real time. Then, these data are transmitted to the transformer fault early warning platform in real time through the data transmission interface. In addition, the transformer fault early warning platform can obtain historical transformer operation data within a preset time period from the transformer operation data history database according to the transformer identification. Therefore, by combining real-time acquisition and historical data, a comprehensive data foundation is provided to ensure the accuracy and reliability of subsequent analysis.
[0032] In step S120, an oil chromatogram structure is constructed based on the real-time oil chromatogram data and the real-time transformer operation data.
[0033] Here, the oil chromatogram structure contains multiple graph nodes and edges, each graph node uniquely corresponds to a gas type, and the node characteristics of the graph node are defined by the gas concentration of the corresponding gas type in the real-time oil chromatogram data. Each edge is defined according to the chemical reaction relationship between the gas types of the corresponding graph nodes, and the edge weight is updated or a new edge is constructed through the real-time transformer operation data.
[0034] In this embodiment, each gas type (such as hydrogen, methane, etc.) corresponds to a unique graph node in the graph structure, and the node characteristics of the graph node are initialized and set by the concentration value of the corresponding gas. In addition, the edges between the graph nodes are initialized and defined according to the known chemical reaction relationship between different gas types (for example, cracking reaction, hydrogenation reaction, etc.). In addition, the weights of the edges are dynamically updated using real-time transformer operation data. For example, when certain operating parameters (such as temperature or load rate) change, the weights of the corresponding edges are adjusted or new edges are added. Therefore, based on the constructed oil chromatogram structure, the relationship between different gas types and their concentrations can be intuitively represented, and the operating status of the transformer and its impact on the oil chromatogram can be dynamically reflected.
[0035] Figure 2 FIG. 1 shows a flowchart of an example of constructing an oil chromatogram structure according to an embodiment of the present application. Figure 2 As shown, in step S210, corresponding graph nodes are determined according to various gas concentration parameters in the real-time oil chromatogram data. In step S220, edges are created between corresponding graph nodes according to the associated gas types corresponding to at least one preset chemical reaction relationship. In step S230, at least one created edge is updated based on the real-time transformer operation data. More specifically, the edge is updated using the physical / chemical relationship changes triggered or updated by the real-time transformer operation data.
[0036] More specifically, temperature changes affect the solubility and reaction rate of gases. For example, an increase in temperature will cause a decrease in gas solubility and an increase in the concentration of some gases. Therefore, the weights of the edges between the various gas nodes are dynamically adjusted according to the temperature changes. In addition, during arc discharge and overheating faults inside the transformer, chemical reactions will occur between different gases. For example, arc discharge will generate acetylene , accompanied by the generation of hydrogen and methane Therefore, the edges between these gas nodes can be defined, and the weights are dynamically adjusted according to the changes in gas concentration.
[0037] More specifically, in the case of high voltage, more arc discharge may occur, thereby generating more gas. The edge weights between gas nodes are updated using voltage data. At this time, when the voltage rises above a certain threshold, hydrogen needs to be increased accordingly. and acetylene The edge weights between .
[0038] In addition, high current may cause local overheating, which in turn affects gas concentration. The edge weights between gas nodes are updated using current data. When the high current exceeds a certain threshold, methane needs to be increased accordingly. and ethylene The edge weights between .
[0039] In addition, when the temperature changes significantly, it may promote new chemical reactions to produce different gases. At this time, new edges are dynamically constructed according to the temperature change. For example, when the temperature rises to a certain threshold, acetylene is constructed. and methane The edge between.
[0040] In addition, when the transformer is operating in an abnormal state (such as excessive voltage, current, or temperature), new gas combinations may be generated, so new edges can be constructed when abnormal operating conditions are detected. For example, when abnormally high current is detected, hydrogen gas is constructed. and ethylene The edge between.
[0041] In some examples of the present embodiment, the created edges include a first edge, a second edge, a third edge, and a fourth edge, wherein the first edge is hydrogen-methane, the second edge is methane-ethylene, the third edge is acetylene-ethylene, and the fourth edge is hydrogen-acetylene. When the transformer primary side voltage exceeds a preset voltage threshold (e.g., 220 kV), the edge weights of the first edge and the fourth edge are increased, because the high voltage may cause more arc discharges, thereby generating more acetylene and hydrogen. When the transformer primary side current exceeds a first preset current threshold (e.g., 150 A), the edge weight of the second edge is increased, because the high current may cause local overheating, thereby generating more methane and ethylene. When the transformer primary side current exceeds a second preset current threshold (e.g., 200 A), a new edge hydrogen-ethylene is constructed, because the abnormally high current may cause a serious overheating fault, generating a new gas combination. When the transformer oil temperature exceeds the preset temperature threshold (for example, 85°C), the edge weight of the third edge is increased, because high temperature may promote new chemical reactions to produce more acetylene and ethylene; at the same time, a new edge acetylene-methane is constructed, because high temperature promotes new chemical reactions and may produce different gas combinations.
[0042] Therefore, combining the transformer environment and physical and chemical laws, dynamically adjusting the edge weights in the oil chromatogram structure and constructing new edges can help improve the accuracy and real-time performance of transformer fault prediction.
[0043] In step S130, based on the graph convolutional network, the node features of each graph node in the oil chromatogram structure are updated.
[0044] In some embodiments, the graph convolutional network (GCN) includes multiple layers of graph convolutional layers, each layer including graph convolution operations, activation functions, and batch normalization steps. In each layer of GCN, the node features are updated by weighted summation of neighbor nodes and edge weights, and the updated node features are nonlinearly transformed using a nonlinear activation function (such as ReLU). Then, multiple layers of GCN are superimposed to extract higher-order features layer by layer. Thus, the use of graph convolutional networks can effectively capture the complex relationships in oil chromatographic data, enhance the expressive power of node features, and provide more discernible features for fault prediction.
[0045] In step S140, the historical transformer operation data set is processed based on the time convolution network to obtain the corresponding transformer operation sequence dependency features.
[0046] In some embodiments, the temporal convolutional network includes multiple layers of temporal convolutional networks, each layer including steps such as temporal convolution operations, dilated convolutions, activation functions, and batch normalization. Specifically, dilated convolution is used to process time series data to capture dependencies at different time scales. In each layer of TCN, the input data is processed layer by layer through convolution operations and activation functions to extract time series dependency features, providing more comprehensive time series features for fault prediction.
[0047] In step S150, the transformer operation sequence dependency characteristics and each updated node characteristic are input into the transformer fault prediction model, so that the transformer fault prediction model determines the corresponding transformer fault prediction result.
[0048] Here, the parallel architecture of the GCN layer and the TCN layer enables the model to process multimodal data and time series data simultaneously, improving the model's real-time processing capability and the feasibility of fault warning. In addition, the transformer fault prediction model can comprehensively consider the oil chromatogram structure and time series dependency characteristics, provide accurate fault prediction results, and improve the reliability and safety of transformer operation.
[0049] Figure 3 A schematic diagram of the structural connection of an example of a transformer fault prediction model according to an embodiment of the present application is shown.
[0050] like Figure 3 As shown, the transformer fault prediction model 300 adopts a multimodal deep learning model, which includes a cascaded input layer 310, a feature fusion module 320 and a classification output layer 330.
[0051] The input layer 310 is used to receive each updated node feature and transformer runtime dependency feature.
[0052] The feature fusion module 320 includes a feature concatenation layer 321, an adaptive attention layer 322, and a sparse attention layer 323. The feature concatenation layer 321 is used to concatenate each updated node feature and transformer runtime dependency feature to obtain a comprehensive feature vector. The adaptive attention layer 322 is used to perform weighted fusion on the comprehensive feature vector by calculating the importance weight of each feature to obtain an intermediate fusion feature. The sparse attention layer 323 is used to update the intermediate fusion feature according to the ranking of the importance weights of each feature to determine the corresponding target fusion feature.
[0053] The classification output layer 330 is used to predict the transformer fault prediction result corresponding to the target fusion feature.
[0054] In this embodiment, the transformer fault prediction model 300 can obtain more comprehensive fault feature information by fusing the oil chromatogram data and the transformer operation data, thereby improving the accuracy of fault detection. The comprehensive use of multimodal data enables the model to more accurately identify the fault type. The adaptive attention mechanism dynamically adjusts the feature weights, and the sparse attention mechanism selects key features for weighted fusion. The two are used in series, which can effectively reduce the interference of irrelevant features, enhance the effectiveness of features, and improve the real-time fault detection capability of the model.
[0055] In the practice of this application, combined with the characteristics of the real-time perception scenario of transformer faults, we also made a series of enhanced designs for graph convolutional networks, temporal convolutional networks, and transformer fault prediction models to improve their advantages in this scenario. More details will be expanded in the following text in conjunction with other examples.
[0056] In some examples of the embodiments of the present application, the graph convolution network adopts a multi-scale graph convolution network, and the multi-scale graph convolution layer extracts multi-level feature information of the node through neighborhood aggregation operations of different scales. Since the edges of the oil chromatogram structure in this embodiment are given more meanings, that is, the role of real-time transformer operation data is integrated, in the process of updating node features, in addition to using the features of neighboring nodes, sufficient information of the corresponding edges will also be used, so that the model can more comprehensively capture the complex relationship between nodes.
[0057] More specifically, the multi-scale graph convolutional network updates node features in the following way:
[0058] , formula (1)
[0059] , formula (2)
[0060] In the formula, Indicates The node feature matrix of the layer, represents the activation function, represents the total number of scales, Indicates The weight matrix of each scale, Indicates Tier The node feature matrix of each scale; Representation Node The set of neighbor graph nodes of Representation Node and nodes The normalization coefficient between Representation Node and nodes The edge features between Represents a vector concatenation operation; Representation Node In the The feature vector of the layer, Representation Node In the The feature vector of the layer; Represents the graph convolution weight matrix.
[0061] Through the embodiments of the present application, based on the multi-scale graph convolution layer and the information update combined with the edge features, the model can capture the complex relationship between nodes more comprehensively and accurately, and enhance the feature expression ability. In addition, through multi-scale feature fusion and dynamic adjustment of edge weights, the model can more accurately reflect the real-time operating status of the transformer and improve the accuracy and real-time performance of fault prediction. In addition, the multi-scale graph convolution layer enhances the model's adaptability to complex scenarios, and the information update combined with the edge features reduces information loss, improving the overall performance and generalization ability of the model.
[0062] In some examples of the embodiments of the present application, the temporal convolutional network adopts a temporal convolutional network based on an attention mechanism. By introducing the attention mechanism, the feature extraction capability of the temporal convolutional network (TCN) can be enhanced, so that it can dynamically adjust the importance weights of each time step, thereby improving the accuracy and real-time performance of fault prediction.
[0063] More specifically, the attention-based temporal convolutional network extracts transformer runtime dependency features in the following way.
[0064] Extract preliminary time-dependent features through the temporal convolution layer:
[0065] , formula (3)
[0066] Through the attention mechanism layer, the importance weight of each time step is dynamically adjusted to enhance the feature expression ability:
[0067] , Formula (4)
[0068] , Formula (5)
[0069] , Formula (6)
[0070] In the formula, Indicates The feature matrix of the layer, represents the temporal convolution kernel, represents the temporal convolution bias term, Represents the convolution operation; is the time step The weight of is the time step The score, and Represent the attention weight matrix and attention bias term respectively; Indicates that at time step Features, represents the total number of time steps; Represents the attention-weighted transformer runtime dependency features.
[0071] Through the attention mechanism, TCN can dynamically adjust the attention weights of each time step, so that the model can focus on more important time step features. By dynamically adjusting the weights of time steps, the attention mechanism can effectively reduce the interference of unimportant or noisy time steps on the prediction results, and can dynamically adapt to different operating scenarios and failure modes, thereby improving the robustness of the model and the reliability of prediction results.
[0072] Regarding the more specific implementation details of the transformer fault prediction model, the input layer in the transformer fault prediction model is used to receive the feature matrix corresponding to each updated node and the transformer runtime dependency feature matrix .
[0073] The feature concatenation layer in the feature fusion module is used to determine the comprehensive feature vector using the following formula:
[0074] , Formula (7)
[0075] Therefore, by combining the node features of the oil chromatogram updated by the splicing graph convolutional network and the time series features processed by the temporal convolutional network, the effective fusion of multimodal features is achieved. This can comprehensively utilize the information from different data sources and improve the overall feature expression ability of the model.
[0076] The adaptive attention layer is used to determine the intermediate fusion features through the following formula:
[0077] , Formula (8)
[0078] , Formula (9)
[0079] , Formula (10)
[0080] In the formula, Representation characteristics The importance weight of Representation characteristics The attention score, Represents the comprehensive feature vector The total number of features in ; Represents the comprehensive feature vector The Features, and Represent the weight matrix and bias term of the adaptive attention layer respectively; Represents the weighted fusion vector.
[0081] Therefore, by calculating the importance weight of each feature and dynamically adjusting the weight of each feature, the model can focus on more important features. This dynamic weighting mechanism can improve the flexibility and accuracy of feature fusion, thereby enhancing the predictive ability of the model.
[0082] The sparse attention layer updates the intermediate fusion features according to the order of the importance weights of each feature, and determines the target fusion feature by the following formula:
[0083] , Formula (11)
[0084] , Formula (12)
[0085] , Formula (13)
[0086] Among them, the comprehensive feature vectors are arranged in descending order according to their importance weights. Each feature in Indicates the top importance weights The feature index set of features, Represents sparse attention features; express The average value of all features in express The standard deviation of all features in ; Represents the target fusion feature.
[0087] Therefore, by sorting the importance of features, selecting the most important features for weighted fusion, reducing the interference of unimportant features, and using the sparse attention mechanism, the generalization ability and robustness of the model can be further improved.
[0088] The classification output layer contains a cascaded stacked autoencoder module (Stacked Autoencoder, SAE), a fully connected layer module and a Softmax layer, and is used to predict the transformer fault prediction result by the following formula:
[0089] Further feature extraction by stacking autoencoders:
[0090] , Formula (14)
[0091] Therefore, by further extracting features through multi-layer autoencoders, higher-order feature information can be captured. This deep feature extraction mechanism improves the model's ability to express complex data, thereby enhancing the accuracy of fault prediction.
[0092] The features of the stacked autoencoders are further processed through fully connected layers:
[0093] , Formula (15)
[0094] , Formula (16)
[0095] Therefore, the extracted features are further processed using a multi-layer fully connected network to ensure that the features can fully play their role and improve the classification effect. The fully connected layer can effectively process high-dimensional features and enhance the classification ability and generalization performance of the model.
[0096] The final feature vector is converted into a probability distribution of fault types using the Softmax activation function:
[0097] , Formula (17)
[0098] The final feature vector is converted into the probability distribution of the fault type through the Softmax activation function, which can achieve accurate classification of the fault type and provide clear fault classification results, which is convenient for decision-making and processing in practical applications.
[0099] In the formula, Indicates The input feature vector of the layer stacked autoencoder, and It is The weight matrix and bias term of the layer stacked autoencoder; Indicates The input feature vector of the fully connected layer, and Respectively represent The weight matrix and bias term of the fully connected layer; and Represent the weight matrix and bias term of the last fully connected layer, respectively. Represents the output feature vector of the last layer of the fully connected layer; Indicates The unnormalized scores of the classes, Indicates the total number of transformer fault types; is the transformer fault prediction result, which means The probability of a transformer failure type.
[0100] Through this embodiment, the oil chromatography data and transformer operation data are combined to achieve the fusion of multi-source data, provide more comprehensive fault feature information, and improve the model's ability to identify different fault types. In addition, by using the adaptive attention layer and the sparse attention layer, the feature weights can be dynamically adjusted to reduce the interference of noise and unimportant features, improve the robustness of the model, and enhance the model's adaptability to different fault modes. In addition, by stacking autoencoders and fully connected layers for deep feature extraction, higher-order feature information is captured, the generalization ability of the model is improved, and the performance of the model on different data sets is more stable and accurate.
[0101] Figure 4 A flowchart of another example of a transformer fault early warning method based on oil chromatography analysis according to an embodiment of the present application is shown.
[0102] like Figure 4 As shown, in step S410, the transformer operation sequence dependency characteristics and each updated node characteristic are input into the transformer fault prediction model, so that the transformer fault prediction model determines the corresponding transformer fault prediction result.
[0103] For more details about step S410, please refer to the description in combination with other examples above, which will not be repeated here.
[0104] In step S420, the risk transformer fault type indicated by the transformer fault prediction result is determined.
[0105] Specifically, the transformer fault prediction results are analyzed to obtain one or more risk transformer fault types with a relatively high corresponding fault probability.
[0106] In step S430, based on the transformer risk control table, target control measures matching the risk transformer fault type are determined. The transformer risk control table pre-stores a plurality of pre-calibrated transformer fault types and corresponding control measures.
[0107] In some embodiments, a transformer risk control table is established and pre-stored on the transformer fault warning platform, which includes a variety of pre-calibrated fault types and their corresponding control measures. Then, according to the determined fault type, the corresponding control measures are extracted from the risk control table, such as reducing the load, adjusting the temperature, replacing components, etc.
[0108] For example, for partial discharge faults, the corresponding control measures may be to use partial discharge detection equipment (such as ultrasonic detectors) to check the state of the insulating material. For short circuit faults, the corresponding control measures may be to quickly isolate the fault area through a circuit breaker or disconnector to prevent the fault from expanding, and to use winding testing equipment (such as a DC resistance tester) to check the state of the winding to determine whether there is a short circuit point.
[0109] Therefore, by matching the fault type and control measures, we can ensure that effective measures are taken quickly and accurately to reduce the losses caused by transformer failures.
[0110] In step S440, an early warning operation is performed according to the risk transformer fault type and target control measures.
[0111] In some embodiments, according to the determined risk level and control measures, an early warning notification is sent to relevant maintenance personnel through the monitoring system, and the early warning notification includes the fault type, risk level, recommended control measures and emergency processing steps. In addition, the monitoring system can also perform corresponding automated processing steps (such as adjusting loads, starting backup equipment, etc.) according to the early warning information. Therefore, through data mining and analysis, early warning and automated processing for transformers can effectively reduce the impact of transformer failures on the power grid and improve the stability and safety of power grid operation.
[0112] In some examples of the embodiments of the present application, in order to ensure the prediction performance of the transformer fault prediction model, it is particularly necessary to pay attention to the design details of the loss function of the transformer fault prediction model. Here, by adopting a comprehensive loss function, the mutual information loss term and the contrastive learning loss term are integrated to better meet the needs of transformer fault prediction.
[0113] More specifically, the loss function of the transformer fault prediction model is for:
[0114] , Formula (18)
[0115] , Formula (19)
[0116] , formula (20)
[0117] In the formula, represents the mutual information loss term, represents the contrastive learning loss term, and denote the corresponding loss adjustment factors respectively; Representation characteristics and tags The mutual information between Representation characteristics and tags The joint probability distribution between Representation characteristics The marginal probability distribution of Representation Tags The marginal probability distribution of represents the total number of samples in the data sample set, is a label, the label value of the positive sample pair is 1, and the label value of the negative sample pair is 0; represents the distance between positive sample pairs, represents the distance of negative sample pairs, Representation sample The characteristic representation of Indicates the preset distance boundary value.
[0118] It should be noted that mutual information can measure the dependency between two variables and aims to maximize the mutual information between input features and fault types. It measures the dependency between input features and output labels and enhances the representation ability of features to labels.
[0119] In transformer fault prediction, the input features include oil chromatogram node features updated by graph convolutional network (GCN) and time series features processed by temporal convolutional network (TCN). The output label is the fault type. Maximizing mutual information can help the model better capture the dependency between input features and fault types and improve the accuracy of fault prediction.
[0120] On the other hand, contrastive learning learns more robust feature representations by bringing similar samples closer together and pushing dissimilar samples further apart. In transformer fault prediction, similar samples can be samples of the same fault type, and dissimilar samples can be samples of different fault types.
[0121] Through the loss function provided in this embodiment, the mutual information loss is used to maximize the mutual information between the input features and the fault type, which helps the model better understand and utilize the distribution of the input features and the relationship between the labels, and helps improve the model's recognition accuracy for complex fault types. By contrasting the learning loss, more sample features can be focused on during training, effectively reducing the risk of overfitting, allowing the model to better adapt to different input data during training, and improving the generalization ability of the model. In the comprehensive loss function, the coefficient and The adjustment of can flexibly control the influence of mutual information loss and contrastive learning loss, so as to optimize the model performance in different application scenarios and adapt to different fault prediction needs.
[0122] It should be noted that, for the aforementioned method embodiments, for the sake of simplicity of description, they are all expressed as a series of actions combined, but those skilled in the art should be aware that the present application is not limited by the described order of actions, because according to the present application, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the present application. In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, please refer to the relevant description of other embodiments.
[0123] Figure 5 A structural block diagram of an example of a transformer fault early warning system based on oil chromatography analysis according to an embodiment of the present application is shown.
[0124] like Figure 5 As shown, the transformer fault early warning system 500 based on oil chromatography analysis includes a data acquisition unit 510 , a graph structure construction unit 520 , a graph node update unit 530 , a time series feature extraction unit 540 and a transformer fault prediction unit 550 .
[0125] The data acquisition unit 510 is used to acquire the real-time oil chromatography data of the transformer, the real-time transformer operation data and the historical transformer operation data group corresponding to the preset historical time period; the transformer operation data includes the transformer primary side voltage, the transformer secondary side voltage, the transformer primary side current, the transformer secondary side current, the transformer oil temperature and the transformer load rate.
[0126] The graph structure construction unit 520 is used to construct an oil chromatogram structure based on the real-time oil chromatogram data and the real-time transformer operation data; the oil chromatogram structure includes multiple graph nodes and edges, each of the graph nodes uniquely corresponds to a gas type, and the node characteristics of the graph nodes are defined by the gas concentration of the corresponding gas type in the real-time oil chromatogram data; each edge is defined according to the chemical reaction relationship between the gas types of the corresponding graph nodes, and the edge weight is updated or a new edge is constructed through the real-time transformer operation data.
[0127] The graph node updating unit 530 is used to update the node features of each graph node in the oil chromatogram structure based on a graph convolutional network.
[0128] The time series feature extraction unit 540 is used to process the historical transformer operation data group based on a time convolutional network to obtain corresponding transformer operation time series dependency features.
[0129] The transformer fault prediction unit 550 is used to input the transformer operation sequence dependency characteristics and each updated node characteristic into the transformer fault prediction model, so that the transformer fault prediction model determines the corresponding transformer fault prediction result.
[0130] The transformer fault prediction model adopts a multimodal deep learning model, which includes a cascaded input layer, a feature fusion module and a classification output layer;
[0131] The input layer is used to receive each of the updated node features and the transformer running timing dependency features;
[0132] The feature fusion module includes a feature concatenation layer, an adaptive attention layer and a sparse attention layer; the feature concatenation layer is used to concatenate each of the updated node features and the transformer runtime dependency features to obtain a comprehensive feature vector; the adaptive attention layer is used to perform weighted fusion on the comprehensive feature vector by calculating the importance weight of each feature to obtain an intermediate fusion feature; the sparse attention layer is used to update the intermediate fusion feature according to the ranking of the importance weights of each feature to determine the corresponding target fusion feature;
[0133] The classification output layer is used to predict the transformer fault prediction result corresponding to the target fusion feature.
[0134] In some embodiments, an embodiment of the present application provides a non-volatile computer-readable storage medium, in which one or more programs including execution instructions are stored, and the execution instructions can be read and executed by an electronic device (including but not limited to a computer, a server, or a network device, etc.) to execute the steps of any of the above-mentioned transformer fault early warning methods based on oil chromatography analysis in the present application.
[0135] In some embodiments, the embodiments of the present application also provide a computer program product, which includes a computer program stored on a non-volatile computer-readable storage medium, and the computer program includes program instructions. When the program instructions are executed by a computer, the computer executes any step of the above-mentioned transformer fault early warning method based on oil chromatography analysis.
[0136] In some embodiments, the embodiments of the present application also provide an electronic device, comprising: at least one processor, and a memory communicatively connected to the at least one processor, wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the steps of a transformer fault warning method based on oil chromatography analysis.
[0137] Figure 6 is a hardware structure diagram of an electronic device for executing a transformer fault early warning method based on oil chromatography analysis provided by another embodiment of the present application, such as Figure 6 As shown, the device includes:
[0138] One or more processors 610 and memory 620, Figure 6 A processor 610 is taken as an example.
[0139] The device for executing the transformer fault early warning method based on oil chromatography analysis may further include: an input device 630 and an output device 640 .
[0140] The processor 610, the memory 620, the input device 630 and the output device 640 may be connected via a bus or other means. Figure 6 The example of connecting through bus is taken in the following.
[0141] The memory 620, as a non-volatile computer-readable storage medium, can be used to store non-volatile software programs, non-volatile computer executable programs and modules, such as program instructions / modules corresponding to the transformer fault early warning method based on oil chromatography analysis in the embodiment of the present application. The processor 610 executes various functional applications and data processing of the server by running the non-volatile software programs, instructions and modules stored in the memory 620, that is, the transformer fault early warning method based on oil chromatography analysis in the above method embodiment is realized.
[0142] The memory 620 may include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function; the data storage area may store data created according to the use of the electronic device, etc. In addition, the memory 620 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other non-volatile solid-state storage device. In some embodiments, the memory 620 may optionally include a memory remotely arranged relative to the processor 610, and these remote memories may be connected to the electronic device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0143] The input device 630 can receive input digital or character information and generate signals related to user settings and function control of the electronic device. The output device 640 can include a display device such as a display screen.
[0144] The one or more modules are stored in the memory 620 , and when executed by the one or more processors 610 , the transformer fault early warning method based on oil chromatography analysis in any of the above method embodiments is executed.
[0145] The above-mentioned product can execute the method provided in the embodiment of the present application, and has the functional modules and beneficial effects corresponding to the execution method. For technical details not fully described in this embodiment, please refer to the method provided in the embodiment of the present application.
[0146] The electronic devices of the embodiments of the present application exist in various forms, including but not limited to:
[0147] (1) Mobile communication equipment: This type of equipment is characterized by having mobile communication functions and its main purpose is to provide voice and data communications. This type of terminal includes: smart phones, multimedia phones, functional phones, and low-end phones.
[0148] (2) Ultra-mobile personal computer devices: These devices belong to the category of personal computers, have computing and processing functions, and generally also have mobile Internet access features. These terminals include: PDA, MID and UMPC devices, etc.
[0149] (3) Portable entertainment devices: These devices can display and play multimedia content. They include audio and video players, handheld game consoles, e-books, smart toys, and portable car navigation devices.
[0150] (4) Other onboard electronic devices with data interaction functions, such as on-board devices installed in vehicles.
[0151] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0152] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a general hardware platform, and of course, by hardware. Based on this understanding, the above technical solution, in essence, or the part that contributes to the relevant technology, can be embodied in the form of a software product, which can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiment.
[0153] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit it. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application.
Claims
1. A transformer fault early warning method based on oil chromatography analysis, include: Acquire real-time oil chromatography data of the transformer, real-time transformer operation data, and a historical transformer operation data group corresponding to a preset historical time period; Transformer operation data includes transformer primary side voltage, transformer secondary side voltage, transformer primary side current, transformer secondary side current, transformer oil temperature and transformer load factor; An oil chromatogram structure is constructed based on the real-time oil chromatogram data and the real-time transformer operation data; the oil chromatogram structure comprises a plurality of graph nodes and edges, each of the graph nodes uniquely corresponds to a gas type, and the node feature of the graph node is defined by the gas concentration of the corresponding gas type in the real-time oil chromatogram data; each edge is defined according to the chemical reaction relationship between the gas types of the corresponding graph nodes, and the edge weight is updated or a new edge is constructed according to the real-time transformer operation data; Based on a graph convolutional network, updating node features of each graph node in the oil chromatogram structure; Processing the historical transformer operation data group based on a temporal convolutional network to obtain corresponding transformer operation timing dependency features; Inputting the transformer operation timing dependency characteristics and each updated node characteristic into a transformer fault prediction model so that the transformer fault prediction model determines a corresponding transformer fault prediction result; The transformer fault prediction model adopts a multimodal deep learning model, which includes a cascaded input layer, a feature fusion module and a classification output layer; The input layer is used to receive each of the updated node features and the transformer running timing dependency features; The feature fusion module includes a feature concatenation layer, an adaptive attention layer and a sparse attention layer; The feature concatenation layer is used to concatenate the updated node features and the transformer runtime dependency features to obtain a comprehensive feature vector; the adaptive attention layer is used to perform weighted fusion on the comprehensive feature vector by calculating the importance weight of each feature to obtain an intermediate fusion feature; The sparse attention layer is used to update the intermediate fusion features according to the order of importance weights of each feature to determine the corresponding target fusion features; The classification output layer is used to predict the transformer fault prediction result corresponding to the target fusion feature; The graph convolution network adopts a multi-scale graph convolution network and updates the node features in the following way: , , In the formula, Indicates The node feature matrix of the layer, represents the activation function, represents the total number of scales, Indicates The weight matrix of each scale, Indicates Tier The node feature matrix of each scale; Representation Node The set of neighbor graph nodes of Representation Node and nodes The normalization coefficient between Representation Node and nodes The edge features between Represents a vector concatenation operation; Representation Node In the The feature vector of the layer, Representation Node In the The feature vector of the layer; Represents the graph convolution weight matrix; The temporal convolutional network adopts a temporal convolutional network based on the attention mechanism, and extracts the transformer running timing dependency features in the following way: , , , , In the formula, Indicates The feature matrix of the layer, represents the temporal convolution kernel, represents the temporal convolution bias term, Represents the convolution operation; is the time step The weight of is the time step The score, and Represent the attention weight matrix and attention bias term respectively; Indicates that at time step Features, represents the total number of time steps; Represents the attention-weighted transformer runtime dependency features; Among them, the loss function of the transformer fault prediction model is for: , , , In the formula, represents the mutual information loss term, represents the contrastive learning loss term, and denote the corresponding loss adjustment factors respectively; Representation characteristics and tags The mutual information between represents the joint probability distribution between feature 𝑥 and label 𝑦, represents the marginal probability distribution of feature 𝑥 and, represents the marginal probability distribution of label 𝑦; represents the total number of samples in the data sample set, is a label, the label value of the positive sample pair is 1, and the label value of the negative sample pair is 0; represents the distance between positive sample pairs, represents the distance of negative sample pairs, Representation sample The characteristic representation of Indicates the preset distance boundary value.
2. The method according to claim 1, in, The step of constructing an oil chromatogram structure based on the real-time oil chromatogram data and the real-time transformer operation data includes: Determine corresponding graph nodes respectively according to various gas concentration parameters in the real-time oil chromatogram data; According to the associated gas type corresponding to at least one preset chemical reaction relationship, edges are created between corresponding graph nodes; the created edges include a first edge, a second edge, a third edge, and a fourth edge, the first edge is hydrogen-methane, the second edge is methane-ethylene, the third edge is acetylene-ethylene, and the fourth edge is hydrogen-acetylene; Updating at least one created edge based on the real-time transformer operation data specifically includes: When the voltage on the primary side of the transformer exceeds a preset voltage threshold, increasing the edge weights of the first edge and the fourth edge; When the current on the primary side of the transformer exceeds a first preset current threshold, increasing the edge weight of the second edge; When the current on the primary side of the transformer exceeds a second preset current threshold, constructing a new side hydrogen-ethylene; When the transformer oil temperature exceeds a preset temperature threshold, the edge weight of the third edge is increased, and a new edge acetylene-methane is constructed.
3. The method according to claim 1, in, The feature concatenation layer in the feature fusion module is used to determine the comprehensive feature vector by the following formula: , The adaptive attention layer is used to determine the intermediate fusion features by the following formula: , , , In the formula, Representation characteristics The importance weight of Representation characteristics The attention score, Represents the comprehensive feature vector The total number of features in ; Represents the comprehensive feature vector The Features, and Represent the weight matrix and bias term of the adaptive attention layer respectively; represents the weighted fusion vector; The sparse attention layer is used to determine the target fusion feature by the following formula: , , , Among them, the comprehensive feature vectors are arranged in descending order according to their importance weights. Each feature in Indicates the top importance weights The feature index set of features, Represents sparse attention features; express The average value of all features in express The standard deviation of all features in ; represents the target fusion feature; The classification output layer includes a cascaded stacked autoencoder module, a fully connected layer module, and a Softmax layer, and is used to predict the transformer fault prediction result by the following formula: , , , , In the formula, Indicates The input feature vector of the layer stacked autoencoder, and It is The weight matrix and bias term of the layer stacked autoencoder; Indicates The input feature vector of the fully connected layer, and Respectively represent The weight matrix and bias term of the fully connected layer; and Represent the weight matrix and bias term of the last fully connected layer, respectively. Represents the output feature vector of the last layer of the fully connected layer; Indicates The unnormalized scores of the classes, Indicates the total number of transformer fault types; is the transformer fault prediction result, which means The probability of a transformer failure type.
4. The method according to claim 3, in, After inputting the transformer operation timing dependency feature and each updated node feature into the transformer fault prediction model so that the transformer fault prediction model determines a corresponding transformer fault prediction result, the method further includes: Determining a risk transformer fault type indicated by the transformer fault prediction result; Based on the transformer risk control table, determine the target control measures that match the risk transformer fault type; the transformer risk control table pre-stores multiple pre-calibrated transformer fault types and corresponding control measures; Perform early warning operations based on the risk transformer fault type and the target control measures.
5. A transformer fault early warning system based on oil chromatography analysis, the system being used to implement the transformer fault early warning method based on oil chromatography analysis as claimed in any one of claims 1 to 4.
