Fault analysis method based on knowledge graph and TransGNN model
By combining knowledge graphs and TransGNN models, graph structure data of equipment failures is constructed and feature encoding is performed, and the problems of insufficient modeling of fault causes and limitations of graph structure representation in the existing technology are solved, which improves the accuracy and interpretability of fault analysis. , achieving more efficient fault diagnosis and operation and maintenance optimization.
Patent Information
- Application Number
- CN202410951793.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-16
- Publication Date
- 2024-11-22
AI Technical Summary
The existing fault analysis method based on graph neural networks has shortcomings in in-depth modeling and understanding of the causes of failures, and the limitations of graph structure acquisition and representation, as well as training efficiency and generalization capabilities need to be improved.
Using the fault analysis method based on knowledge graph and TransGNN model, the graph structure data containing the causes and relationships of equipment failures is constructed, and the feature encoding is used for pre-trained BERT model, and a TransGNN model based on Transformer architecture is constructed to capture complex knowledge dependencies. , improve the accuracy and interpretability of fault analysis.
It improves the accuracy and interpretability of fault analysis, enhances the generalization ability and training efficiency of the model, provides more intelligent and accurate fault diagnosis support, and provides strong support for equipment operation and maintenance optimization.
Smart Images

Figure CN119004164A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of fault analysis technology, and in particular to a fault analysis method based on a knowledge graph and a TransGNN model. Background Art
[0002] In the industrial field, the identification and classification of equipment failures is an important research issue. Equipment failures may lead to serious consequences such as production interruption, product quality degradation, and equipment damage. Therefore, timely and accurate diagnosis and analysis of the cause of the failure is crucial. Traditional fault analysis methods usually rely on expert experience and manual diagnosis, which have disadvantages such as low efficiency and strong professionalism. In recent years, with the development of machine learning and deep learning technologies, data-driven fault diagnosis methods have been widely used. Among them, methods based on graph neural networks have attracted attention because they can effectively model the complex relationships between devices. Graph neural networks can use the topological structure and interaction between devices to learn the potential patterns of equipment failures. Some researchers have proposed a fault diagnosis framework based on graph neural networks, which constructs a relationship graph between devices and uses models such as graph convolutional networks to identify and classify faults. These methods have improved the accuracy and automation level of fault analysis to a certain extent.
[0003] However, existing fault analysis methods based on graph neural networks still have some problems and limitations. First, these methods mainly focus on fault identification and classification based on equipment data. The analysis of fault causes is relatively simple, and there is a lack of in-depth modeling and understanding of the causes of equipment failures. Secondly, there are limitations in the acquisition and representation of graph structures. Existing methods usually construct graph structures based on process flow charts or equipment topology diagrams, which cannot fully utilize equipment fault information and expert knowledge. In addition, during the model training process, due to problems such as insufficient samples and overfitting, the training efficiency and generalization ability of these methods need to be further improved.
[0004] In general, the fault analysis method based on knowledge graph and graph neural network provides a new solution for intelligent fault diagnosis and root cause analysis of industrial equipment. By making full use of equipment fault knowledge and complex relationship modeling capabilities, this method is expected to achieve more intelligent and accurate fault analysis and provide strong support for equipment operation and maintenance optimization. Summary of the invention
[0005] To solve the above problems, the present invention proposes a fault analysis method based on knowledge graph and TransGNN model. This method uses knowledge graph to model the causes and relationships of equipment failures, and combines TransGNN model to identify and classify faults. This method can not only improve the accuracy and interpretability of fault analysis, but also improve the generalization ability and training efficiency of the model.
[0006] Furthermore, the model training phase specifically includes the following steps:
[0007] S1: Data preparation: Collect and organize relevant data sources, including historical fault records, maintenance logs, sensor data, and expert knowledge bases. These data will be integrated into a comprehensive fault analysis dataset to provide strong support for subsequent analysis and modeling;
[0008] S2: The construction of the knowledge graph is a key part of this method. The causes and relationships of equipment failures will be modeled based on the collected data and domain knowledge, and a graph structure data containing various entities and relationships will be constructed. By constructing a knowledge graph, the correlation and complex dependencies between equipment failures can be clearly displayed, laying the foundation for subsequent failure analysis;
[0009] S3: Obtain fault-related entities and their relationships from the knowledge graph to construct graph structure data;
[0011] S4: Use the pre-trained Bert-base-Chinese model to encode the features of the nodes (entities) in the graph and obtain node feature vectors. These feature vectors contain rich information about the nodes, which helps the model better grasp the semantics and association relationships between nodes.
[0012] S5: TransGNN model construction: Based on the obtained graph structure data and node feature vectors, a TransGNN model based on the Transformer architecture and graph neural network will be constructed to effectively capture complex knowledge dependencies;
[0013] S6: Input the node feature vector into the TransGNN model, and input the feature-encoded node feature vector into the TransGNN model to provide detailed node information for the model;
[0014] S7: Model training and validation: Train the TransGNN model on the prepared dataset and conduct rigorous performance validation, optimizing model parameters to enhance cross-scenario robustness;
[0015] S8: Fault analysis and evaluation: Use the trained TransGNN model to perform fault diagnosis and root cause analysis, and use indicators such as precision, recall, and F1 score to evaluate model performance. The calculation formula is as follows:
[0016]
[0017] In the formula, TP (True Positive) represents the number of samples correctly classified as positive examples, and FP (False Positive) represents the number of samples incorrectly classified as positive examples. Precision represents the proportion of samples that are actually positive examples among those judged as positive examples by the classifier.
[0018]
[0019] In the formula, FN (False Negative) represents the number of samples that are incorrectly classified as negative examples. Recall rate represents the proportion of samples that are actually positive examples that are correctly predicted as positive examples by the classifier.
[0020]
[0021] In the formula, the F1 score comprehensively considers the performance of precision and recall, and is the harmonic mean of precision and recall.
[0022] S9: Result Display and Insights: Provides detailed visualization of detected faults, root cause analysis, and potential optimization suggestions, providing valuable insights for system maintenance and optimization.
[0023] Features and beneficial effects of the present invention:
[0024] Combining knowledge graph modeling with the TransGNN model. This approach makes full use of the rich fault cause and relationship information in the knowledge graph, and effectively captures complex dependencies through the TransGNN model, improving the accuracy of fault analysis while enhancing interpretability. BRIEF DESCRIPTION OF THE DRAWINGS
[0025] Figure 1 It is a flow chart of a fault analysis method based on a knowledge graph and a TransGNN model of the present invention.
[0026] Figure 2 This is a schematic diagram of the knowledge graph of the present invention
[0027] Figure 3 This is a schematic diagram of the pre-trained Bert-base-Chinese model module of the present invention
[0028] Figure 4 Schematic diagram of the stacked structure of the multi-layer Transformer encoder of the Bert-base-Chinese model of the present invention DETAILED DESCRIPTION
[0029] The present invention is further described in detail below in conjunction with the accompanying drawings.
[0030] 1. Data preparation stage: collect and organize relevant data sources, including historical fault records, maintenance logs, sensor data, and expert knowledge bases. These data will be integrated into a comprehensive fault analysis data set to provide strong support for subsequent analysis and modeling;
[0031] 2. The construction of the knowledge graph is a key part of this method. The causes and relationships of equipment failures will be modeled based on the collected data and domain knowledge, and a graph structure data containing various entities and relationships will be constructed. By constructing a knowledge graph, the correlation and complex dependencies between equipment failures can be clearly displayed, laying the foundation for subsequent failure analysis;
[0032] 3. Feature extraction stage: Use the pre-trained BERT model to encode the features of the nodes (entities) in the graph to obtain node feature vectors. These feature vectors contain rich information about the nodes, which helps the model better grasp the semantics and association relationships between nodes. The specific process of the steps includes:
[0033] (1) Data preprocessing:
[0034] The original knowledge graph data is processed to convert each node (entity) in the graph into a text format that can be input by the BERT model. The node name, description and other related information are integrated into a complete text fragment.
[0035] (2) Bert-base-Chinese encoding:
[0036] Input the preprocessed node text into the pre-trained Bert-base-Chinese model. The Bert-base-Chinese model automatically learns the semantics, grammar and other features of the node text and outputs the feature vector of each node. The Bert-base-Chinese model is a pre-trained language model based on Transformer. It is pre-trained on a large-scale corpus and learns rich semantic feature representations.
[0037] (3) Feature vector generation:
[0038] The BERT model outputs a high-dimensional feature vector for each node, which contains information about the semantics, syntax, context, etc. of the node text. These feature vectors can better capture the semantic relevance between nodes, which helps subsequent graph neural network models (such as TransGNN) to better understand and model the complex dependencies between nodes.
[0039] 4. TransGNN model construction phase: For graph-structured knowledge graph data, a TransGNN model based on the Transformer architecture and graph neural network is constructed to effectively capture complex knowledge dependencies. The specific process of the steps includes:
[0040] (1) Input feature code
[0041] The input is the feature vector X of the node in the knowledge graph = {x1, x2, ..., x N}}, where x i ∈R d Represents the d-dimensional feature vector of the i-th node.
[0042] Encode the input features through a linear transformation layer to obtain the Transformer input features:
[0043] H (0) =W (0) X+b (0) (4)
[0044] (2) Transformer Encoder
[0045] The Transformer encoder uses a multi-head attention mechanism and a feedforward neural network to process the input features H (0) Encode and capture complex knowledge dependencies.
[0046] The calculation formula of the multi-head attention mechanism is as follows:
[0047]
[0048] MultiHead(Q,K,V)=Concat(head1,...,head h )W o (6)
[0049] Among them, Q, K, and V are query, key, and value matrices respectively, and d k is the dimension of the key and h is the number of attention heads.
[0050] The Transformer encoder combines multi-head attention with a feed-forward neural network to model the context of the input features:
[0051] H (l+1) =LayerNorm(H (l) +MultiHead(H (l) , H (l) , H (l) )) (7)
[0052] H(l+2 )=LayerNorm(H (l+1) +FFN(H (l+1) )) (8)
[0053] Among them, FFN represents feed-forward neural network, and LayerNorm is the layer normalization operation.
[0054] (3) Graph Convolutional Network
[0055] The output H of the Transformer encoder (L) Send it to the graph convolutional network (GCN) layer and use the graph structure information for feature aggregation:
[0056]
[0057] in, is the matrix after adding self-loops to the adjacency matrix, yes , W is the learnable weight matrix, and σ is the activation function.
[0058] (4) Output layer
[0059] The output Z of the GCN layer is regularized through the Dropout layer to prevent overfitting:
[0060] H drop =Dropout(Z,p=dropout) (10)
[0061] 5. Model training and validation phase: Train the TransGNN model on the prepared dataset, conduct rigorous performance validation, and optimize model parameters to enhance cross-scenario robustness. During the training phase, we use the negative log-likelihood loss function as the optimization objective:
[0062]
[0063] Among them, y i is the true label, is the output probability predicted by the model.
[0064] 6. Fault analysis and evaluation phase: Use the trained TransGNN model to perform fault diagnosis and root cause analysis, and use indicators such as precision, recall rate, and F1 score to evaluate model performance.
[0065] 7. Results display and insight phase: Provides detailed visualization of detected faults, root cause analysis, and potential optimization suggestions, providing valuable insights for system maintenance and optimization.
[0066] (1) For root cause analysis, it provides visualization of key nodes and edges to help users understand the causes and consequences of failures.
[0067] (2) Based on the evaluation results of the model performance indicators, potential system optimization suggestions are given, such as feature engineering optimization for certain fault types and adjustment of model hyperparameters.
[0068] (3) The interactive visual interface allows users to gain in-depth understanding of the fault diagnosis process and results, providing valuable insights for system maintenance and optimization.
Claims
1. A fault analysis method combining a TransGNN model with a knowledge graph, characterized in that: By utilizing Based on the Transformer architecture and graph neural network principles, the TransGNN model can effectively capture complex relationships, dependencies, and patterns in knowledge graphs, thereby achieving accurate fault detection and analysis.
2. According to claim 1, a fault analysis method based on knowledge graph and TransGNN model is characterized in that: The specific process of the steps includes: S1: Data preparation: Collect and organize relevant data sources, including historical fault records, maintenance logs, sensor data, and expert knowledge base, to form a comprehensive fault analysis data set; S2: Build a knowledge graph; S3: Obtain fault-related entities and their relationships from the knowledge graph and construct graph structure data; S4: Use the pre-trained BERT model to encode the features of the nodes (entities) in the graph and obtain the node feature vector; S5: TransGNN model construction: For graph-structured knowledge graph data, a TransGNN model based on the Transformer architecture and graph neural network is constructed to effectively capture complex knowledge dependencies; S6: Input the node feature vector into the TransGNN model; S7: Model training and validation: Train the TransGNN model on the prepared dataset, conduct rigorous performance validation, and optimize model parameters to enhance cross-scenario robustness; S8: Fault analysis and evaluation: Use the trained TransGNN model to perform fault diagnosis and root cause analysis, and use indicators such as precision, recall, and F1 score to evaluate model performance; S9: Result Display and Insights: Provides detailed visualization of detected faults, root cause analysis, and potential optimization suggestions, providing valuable insights for system maintenance and optimization.
3. According to claim 2, the pre-trained BERT model is a bert-base-chinese model.
4. According to claim 2, the TransGNN model uses the Transformer architecture and graph neural network technology to effectively capture the complex relationships and dependency patterns in the knowledge graph and improve the accuracy of fault analysis.
5. According to claim 2, the fault analysis evaluation step uses indicators such as precision, recall rate and F1 score to quantify the performance of the TransGNN model in fault diagnosis and root cause analysis tasks. The calculation formula is as follows: In the formula, TP (True Positive) represents the number of samples correctly classified as positive examples, and FP (False Positive) represents the number of samples incorrectly classified as positive examples. Precision represents the proportion of samples that are actually positive examples among those judged as positive examples by the classifier. In the formula, FN (False Negative) represents the number of samples that are incorrectly classified as negative examples. Recall rate represents the proportion of samples that are actually positive examples that are correctly predicted as positive examples by the classifier. In the formula, the F1 score comprehensively considers the performance of precision and recall, and is the harmonic mean of precision and recall.
6. According to claim 2, the data preparation step covers multi-source information, such as historical fault records, maintenance logs, sensor data, and expert knowledge base, etc., to build a comprehensive fault analysis data set.
7. According to claim 2, the model training step improves the generalization performance and robustness of the TransGNN model in different operating scenarios by iteratively optimizing model parameters.
8. According to claim 2, the result display and insight step provides detailed visualization of detected faults, root cause analysis, and potential optimization suggestions, providing valuable insights for system maintenance and optimization.
9. A computer-readable storage medium comprising instructions for implementing the method as claimed in claim 1.
10. A computer program product comprising a computer readable storage medium storing computer executable instructions for performing the method as claimed in claim 1.
Citation Information
Cited By
Limited open space building explosive power field machine learning and escape planning method
CN119578680A
Enterprise ESG index determination method and system based on artificial intelligence
CN120106636A
Root cause positioning method and device based on Graph-Transform framework and medium
CN120448176A
Mine global sensing and cooperative intelligent control system based on transboundary edge AI component
CN122568956A
Fault determination method, train operation scheduling method, vehicle inspection and maintenance scheduling method, and train
WO2026153378A1
