Chaotic engineering system risk prediction method based on graph attention network

By adopting a graph attention network-based method in the chaos engineering system, using topological structure information and self-attention mechanism to process data, graph convolutional network aggregation information, decoder and classifier for risk prediction, the problem of failure to fully utilize topological structure and integrate heterogeneous data in the existing technology is solved, and efficient and reliable risk prediction and real-time response capabilities are achieved.

CN120197959AActive Publication Date: 2025-06-24NANJING ZHENGFENG INFORMATION TECH CO LTD

Patent Information

Application Number
CN202510689152.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-05-27
Publication Date
2025-06-24
Estimated Expiration
2045-05-27

AI Technical Summary

Technical Problem

The existing technology fails to fully utilize the topological information between system components in the chaotic engineering system risk prediction, it is difficult to effectively model the propagation mechanism of risk in the system, lacks the ability to integrate heterogeneous data, is highly dependent on artificial feature engineering, and lacks a global perspective, resulting in insufficient real-time response capabilities and lacks interpretability in predicting results.

Method used

The graph attention network-based method is adopted, and the topological structure information between components is stored through the fault drill result log and the CMDB topology database. The self-attention mechanism is used to process classified data and digital data. The graph convolution network aggregates the topological structure information, decoder and classifier for risk prediction, and the model is optimized through joint learning loss function.

Benefits of technology

Make full use of the system's inherent topological relationships to achieve effective fusion of heterogeneous data, reduce dependence on artificial feature engineering, accurately model risk propagation paths and impact ranges, improve the reliability and interpretability of prediction results, and meet the real-time requirements of the financial system for risk prediction.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120197959A_ABST
    Figure CN120197959A_ABST
Patent Text Reader

Abstract

The invention discloses a chaotic engineering system risk prediction method based on a graph attention network, and belongs to the chaotic engineering system risk prediction technology, and the method comprises the steps: storing topological structure information interacted between components in a chaotic engineering system; feature representations are generated for the classified data and the digital data through a self-attention mechanism, and intermediate vectors are obtained after connection; aggregating the topological structure information by using a graph convolutional network to obtain a final representation of an intermediate vector; reconstructing the final representation of the intermediate vector by using a decoder, and performing risk prediction on the chaotic engineering system by using a classifier; and predicting the system risk by using the trained classifier. According to the method, the internal topological relation of the system is fully utilized, and the limitation that complex interaction between components is ignored in a traditional method is overcome; weights are distributed to different features in a self-adaptive mode through a self-attention mechanism, complex correlation between data is captured, and the quality of feature representation is greatly improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to a method for predicting risks of a chaos engineering system, specifically a method for predicting risks of a chaos engineering system based on a graph attention network, belonging to the technical field of chaos engineering. Background Art

[0002] In recent years, machine learning technologies represented by deep learning have made breakthrough progress and can achieve good results in fields such as image recognition, speech recognition, and natural language processing. The application of deep learning in chaos engineering has also become a research hotspot that people pay attention to, such as automated fault injection, fault path analysis, risk scenario modeling, etc., but its application in system risk prediction is still relatively few. The chaos engineering system simulates various abnormal situations that may occur in the financial system, such as risk scenarios like network latency, hardware failures, and service unavailability, and detects the elasticity and fault tolerance of the financial system in advance through drills.

[0003] Currently, the monitoring of chaos engineering on the market mainly focuses on indicators such as system availability, network latency, fault recovery time, and error rate. The risk prediction of the chaos engineering system mainly relies on traditional statistical methods, rule engine methods, basic machine learning algorithms, and simple deep learning models. Traditional statistical methods construct prediction models through time series analysis and regression analysis; the rule engine method sets thresholds based on expert experience to trigger early warnings; machine learning methods such as decision trees and random forests use system indicators as features for risk prediction; simple deep learning models such as RNN and LSTM are used to process system time series data. In addition, many institutions adopt isolated monitoring systems, and each subsystem is independently deployed with monitoring tools. However, these existing technologies have the following significant defects when dealing with the risk prediction of complex financial systems: (1) They fail to make full use of the topological structure information between system components, often treating components as independent individuals and ignoring the rich topological relationships contained in the Configuration Management Database (CMDB).

[0004] (2) It is difficult to effectively model the propagation mechanism of risks in the system and cannot accurately reflect the cascading failure characteristics.

[0005] (3) The financial system contains various heterogeneous data such as log texts, system indicators, and network traffic, while traditional methods lack the ability to integrate different data sources.

[0006] (4) Traditional machine learning methods highly rely on manual feature engineering, resulting in limited adaptability and scalability.

[0007] (5) Usually only focuses on local component risks, lacks a global perspective, and is difficult to capture the complex non-linear relationships between system components, resulting in insufficient real-time response capabilities, insufficient interpretability of prediction results, and difficulty in providing effective support for decision-makers. Summary of the Invention

[0008] Object of the Invention: Aiming at the above problems, the object of the present invention is to provide a risk prediction method for a chaos engineering system based on a graph attention network.

[0009] Technical Solution: A risk prediction method for a chaos engineering system based on a graph attention network according to the present invention includes the following steps: Step 1, based on the CMDB topology database according to the fault drill result log of the financial system chaos engineering, store the topology structure information of the interaction between components in the chaos engineering system; Step 2, extract features from the fault drill result log to obtain classification data, use the system monitoring data as digital data, respectively use the self-attention mechanism to generate feature representations for the classification data and the digital data, and obtain an intermediate vector after connection; Step 3, use the graph convolutional network to aggregate the topology structure information, update the intermediate vector, and obtain the final representation of the intermediate vector; Step 4, use the decoder to reconstruct the final representation of the intermediate vector, and use the classifier to predict the risk of the chaos engineering system; Step 5, construct a joint learning loss function, and use the joint learning loss function for backpropagation to optimize the decoder and the classifier; Step 6, use the trained classifier to predict the system risk.

[0010] Further, Step 2 includes: Denote the classification data as and denote the digital data as , convert the scattered classification data into a continuous low-dimensional vector representation through an embedding technique, where m represents the total number of classifications, n represents the total number of features of the digital data, that is, the number of system monitoring indicators, and d represents the embedding size; Apply the self-attention mechanism to the embedded classification data for feature representation, and the formula is: , In the formula, respectively represent the query vector, the key vector, and the value vector, represents the self-attention function of the embedded representation of the classification data, is the learned weight matrix, is the bias vector, is the scaling factor; After normalizing the digital data, the self-attention mechanism is applied for feature representation, and the formula is: , In the formula, respectively represent the query vector, key vector, and value vector, represents the self-attention function, is the learned weight matrix, is the bias vector, is the normalized digital data; Connect the feature representation of the categorical data and the feature representation of the digital data to construct an intermediate vector , and the formula is: , In the formula, represents the concatenation operation; Use the softmax function to scale the values of the intermediate vector to the interval [0,1], and the formula is: , In the formula, represents the value of the i-th variable in the intermediate vector C, represents the value of the j-th variable in the intermediate vector C; j is used for the accumulation function, and the range is from 1 to .

[0011] Furthermore, in step 3, the update formula of the intermediate vector is: , In the formula, is the intermediate vector after the (l + 1)-th layer of the graph convolutional network, represents the non-linear activation function, is 's degree matrix, represents the matrix without normalization, , is the adjacency matrix of the graph convolutional network, represents the identity matrix, is the weight matrix of the l-th layer; Define a learning parameter , and use the graph convolutional network to aggregate the adjacency matrix to obtain the final intermediate vector, and the formula is: , where G is the final representation of the intermediate vector.

[0012] Furthermore, step 4 includes: Input the final representation of the intermediate vector into the decoder for reconstruction, and the formula for obtaining the reconstructed feature vector is: , Among them, is the weight matrix of the linear transformation, and T represents the transpose; The original digital data and the intermediate vector are concatenated as a combination for predicting the risk probability and input into the classifier to obtain the prediction result. The formula is: , Among them, is the sigmoid activation function, represents the fully connected layer.

[0013] Furthermore, the joint learning loss function includes the mean square loss and the cross-entropy loss of these two tasks, namely the reconstruction task and the classification task. The joint learning loss function is expressed as follows: , Among them, is the weight; represents the forward incentive, represents the reverse incentive; is the risk prediction probability, that is, the output after the classifier passes through the softmax layer; respectively represent the original intermediate vector and the reconstructed intermediate vector; represents the set of trainable parameters; is the L2 regularization.

[0014] Beneficial effects: Compared with the prior art, the remarkable advantages of the present invention are: 1. Based on the fault drill result log of the financial system chaos engineering and the CMDB topology database, the present invention stores and utilizes the interactive topology structure information between system components, providing a complete data basis for subsequent risk prediction. This method makes full use of the inherent topological relationship of the system and overcomes the limitation of the traditional method that ignores the complex interactions between components; 2. By generating the embedded representation of the classification data and applying the self-attention mechanism to process the embedding and digital data, the present invention realizes the effective fusion of heterogeneous data; 3. Through the self-attention mechanism, weights can be adaptively assigned to different features, capturing the complex associations between data, greatly improving the quality of feature representation, and reducing the dependence on manual feature engineering; 4. Innovatively introducing the graph convolutional network to connect and update the feature representation enables the model to effectively model the propagation path and influence range of risks in the system. The graph convolutional operation enables each node to aggregate the information of its neighbor nodes through the message passing mechanism, thereby capturing the interactive effects of components in different ranges and accurately identifying potential systemic risks; 5. The present invention uses a decoder to reconstruct the intermediate vector to obtain a better representation of the original data, and at the same time uses a classifier for system risk prediction. This not only improves the depth of the classifier's understanding of the input data, but also enhances the reliability of the prediction results, providing a solid foundation for risk warning. 6. By constructing a joint learning loss function and applying it to input vector reconstruction and system risk prediction, the present invention realizes multi-objective optimization, can simultaneously focus on data representation learning and risk prediction performance, and achieves a more balanced and comprehensive optimization effect. The joint learning framework continuously learns from new fault drill data and continuously improves the prediction ability. 7. Using the trained classifier for system risk prediction realizes an end-to-end process from input data to risk prediction results. Based on the optimized classifier architecture, the present invention can achieve an inference speed of milliseconds, meeting the real-time requirements of the financial system for risk prediction. BRIEF DESCRIPTION OF THE DRAWINGS

[0015] Figure 1 is a flowchart of the present invention; Figure 2 is the overall working block diagram of the present invention. DETAILED DESCRIPTION OF THE EMBODIMENTS

[0016] In order to make the objectives, technical solutions and advantages of the present application clearer, the present application will be further described in detail below with reference to the accompanying drawings and embodiments.

[0017] Combined with Figures 1 to 2 As shown, a method for predicting system risks of a chaos engineering system based on a graph attention network according to this embodiment includes the following steps: Step 1, according to the fault drill result log of the financial system chaos engineering, based on the CMDB topology database, store the topological structure information of the interaction between components in the chaos engineering system.

[0018] Obtain the fault drill result log of the financial system chaos engineering. The fault drill result log usually includes the specific types and parameters of fault injection, the target components and time nodes of injection, the state changes and performance indicators (such as response time, error rate, etc.) of each component of the system during the fault, the call relationship and exception information between components, as well as the fault recovery process and the final drill effect evaluation, etc. Use the CMDB (Configuration Management Database) topology database to store the topological structure information of the interaction between components in the chaos engineering system, where the topological structure information refers to the adjacency matrix between components, and the scenario support is provided by the chaos engineering automated fault injection drill.

[0019] In this example, the topology structure information is represented as a graph data structure, which is composed of nodes and edges, and the graph data structure is stored in the form of an adjacency matrix. If a graph data structure has N nodes, then the adjacency matrix is if there is an edge connecting node n i and node n j i.e., the two nodes are related, then the value of the n i th row and n j th column of the adjacency matrix will be 1, otherwise it will be 0.

[0020] Step 2: Extract features from the fault drill result log to obtain classification data, use the system monitoring data as digital data, and respectively use the self-attention mechanism to generate feature representations for the classification data and the digital data, and obtain an intermediate vector after connection.

[0021] In the fault drill result log, different fault types such as service downtime, latency injection, abnormal return, resource exhaustion, etc. correspond to different classification data. Each fault type serves as a class label, indicating whether this type of fault has occurred or the specific status of this fault in the drill. For example: {"fault type": [1, 0, 1, 0]}, where each position in the array corresponds to a fault type, 1 indicates that this fault type has occurred, and 0 indicates that it has not occurred. The positions correspond to [service downtime, latency injection, abnormal return, resource exhaustion] in sequence. During the operation of the system, monitoring data will be generated regularly, mainly including indicators such as CPU usage, memory occupancy, disk read and write speed, network traffic, response time, error rate, number of threads, and system load.

[0022] Further, Step 2 includes: Denote the classification data as , where x em represents the mth classification attribute, denote the digital data as , and convert the scattered classification data into a continuous low-dimensional vector representation , , where, represents the embedding matrix, m represents the total number of classifications, n represents the total number of features of the digital data, that is, the number of system monitoring indicators, and d represents the embedding size; Apply the self-attention mechanism to the embedded classification data for feature representation, and the formula is: , In the formula, respectively represent the query vector, key vector, and value vector, represents the self-attention function of the embedding representation of the classification data, is the learned weight matrix, is a bias vector, is a scaling factor; After normalizing the digital data, the self-attention mechanism is applied for feature representation, and the formula is: , In the formula, respectively represent the query vector, key vector, and value vector, represents the self-attention function, is the learned weight matrix, is a bias vector, is the normalized digital data; Connect the feature representation of the categorical data and the feature representation of the digital data to construct an intermediate vector , and the formula is: , In the formula, represents the concatenation operation, respectively represent the query vector, key vector, and value vector of the i-th variable; Through the above formula, the set All categorical attributes in and the set All digital attributes in are concatenated to form an intermediate vector C; Use the softmax function to scale the values of the intermediate vector to the interval [0,1], and the formula is: , In the formula, represents the value of the i-th variable in the intermediate vector C, represents the value of the j-th variable in the intermediate vector C; j is used for the accumulation function, and the range is from 1 to .

[0023] Step 3: Use the graph convolutional network to aggregate the topological structure information and update the intermediate vector to obtain the final representation of the intermediate vector.

[0024] In this example, the system topology structure data is supported by the scenario provided by the chaos engineering automated fault injection drill, and the graph convolutional network (GCN) is used to aggregate neighbor information. The graph convolutional network (GCN) is the application of CNN to non-Euclidean data in graph structures. GCN is an important branch of graph neural networks. In fact, GCN is a special form of Laplacian smoothing. The main idea of GCN is to take the weighted average of the features of all neighbor nodes, including its own node. Nodes with lower degrees obtain greater weights, and then the obtained feature vectors are trained through a neural network. In GCN, the update of node features is achieved by continuously aggregating the features of neighbor nodes, which enhances the similarity of adjacent nodes and thus greatly enhances the classification ability.

[0025] For a graph structure dataset G, where there are N nodes and each node has its own features, let the features of these nodes form a matrix X of size, and D represents the hidden state dimension of each node. In addition, the relationships between various nodes can also be extracted as a relationship matrix A of size, also known as the adjacency matrix. X and A are the features input in the GCN network. X represents node features, and each node has its own vector representation; the adjacency matrix A represents the graph structure features, that is, the information of the edges between nodes.

[0026] Furthermore, in step 3, the update formula for the intermediate vector is: , where, is the intermediate vector after the layer of the graph convolutional network, represents the non-linear activation function; is the degree matrix of, represents the matrix without normalization, , is the adjacency matrix of the graph convolutional network, I represents the identity matrix, is the weight matrix of the l-th layer; Define a learning parameter , and use the graph convolutional network to aggregate the adjacency matrix to obtain the final intermediate vector. The formula is: , where G is the final representation of the intermediate vector.

[0027] Step 4, use the decoder to reconstruct the final representation of the intermediate vector, and use the classifier to predict the risks of the chaos engineering system.

[0028] The decoder is used to reconstruct the intermediate vector to capture a better representation of the original data. Among them, the decoder includes two fully connected layers.

[0029] The classifier uses a fully connected layer to predict whether there is a system risk. Although the intermediate vector can capture semantic information from the original data, it is prone to losing shallow information in the original data. To make up for the information loss, in this example, the original numerical input and the intermediate vector are concatenated as the combined input for predicting the risk probability.

[0030] Further, step 4 includes: Input the final representation of the intermediate vector into the decoder for reconstruction, and the formula for the reconstructed feature vector is: , where is the weight matrix of the linear transformation, and T represents the transpose; Concatenate the original digital data and the intermediate vector as the combination for predicting the risk probability, and input it into the classifier to obtain the prediction result. The formula is: , where is the sigmoid activation function, represents the fully connected.

[0031] Step 5, construct a joint learning loss function, and use the joint learning loss function for backpropagation to optimize the decoder and the classifier.

[0032] Further, the joint learning loss function includes the mean square loss and the cross-entropy loss of these two tasks, namely the reconstruction task and the classification task. The joint learning loss function is expressed as follows: , where is the weight; represents the forward incentive, represents the reverse incentive; is the risk prediction probability, that is, the output of the classifier after passing through the softmax layer; respectively represent the original intermediate vector and the reconstructed intermediate vector; represents the set of trainable parameters; is the L2 regularization.

[0033] Step 6, use the trained classifier to predict the system risk.

[0034] After optimizing the decoder and classifier using the loss function in Step 5, a trained classifier can be obtained. After inputting the fault drill result data into the classifier, the classifier will model the risk scenarios and finally generate the risk prediction results of the chaos engineering system. The fault drill result data includes node features (such as performance metrics, logs, etc.), graph structure (service / component dependency relationships), and labels (whether there is a risk), and the specific data is sourced from the CMDB topology database.

Claims

1. A risk prediction method for a chaos engineering system based on a graph attention network, characterized in that, It includes the following steps: Step 1: Based on the fault drill result log of the financial system chaos engineering and the CMDB topology database, store the topology structure information of the interaction between components in the chaos engineering system; Step 2: Extract features from the fault drill result log to obtain classification data, and use the system monitoring data as digital data. Respectively, use the self-attention mechanism to generate feature representations for the classification data and the digital data, and obtain an intermediate vector after concatenation; Step 3: Use the graph convolutional network to aggregate the topology structure information and update the intermediate vector to obtain the final representation of the intermediate vector; Step 4: Use the decoder to reconstruct the final representation of the intermediate vector, and use the classifier to predict the risk of the chaos engineering system; Step 5: Construct a joint learning loss function, and use the joint learning loss function for backpropagation to optimize the decoder and the classifier; Step 6: Use the trained classifier to predict the system risk.

2. The risk prediction method of a chaos engineering system based on a graph attention network according to claim 1, characterized in that Step 2 includes: Denote the categorical data as , and denote the numerical data as . Convert the scattered categorical data into a continuous low-dimensional vector representation , where m represents the total number of categories, n represents the total number of features of the numerical data, that is, the number of system monitoring indicators, and d represents the embedding size; Apply the self-attention mechanism to the embedded classification data for feature representation, and the formula is: , In the formula, respectively represent the query vector, the key vector, and the value vector, represents the self-attention function of the embedded representation of the classification data, is the learned weight matrix, is the bias vector, is the scaling factor; After normalizing the digital data, apply the self-attention mechanism for feature representation, and the formula is: , In the formula, respectively represent the query vector, the key vector, and the value vector, represents the self-attention function, is the learned weight matrix, is the bias vector, is the normalized digital data; Concatenate the feature representation of categorical data and the feature representation of numerical data to construct an intermediate vector , and the formula is: , In the formula, represents a connection operation; Use the softmax function to scale the values of the intermediate vector to the interval [0, 1], and the formula is: , In the formula, represents the value of the i-th variable in the intermediate vector C, represents the value of the j-th variable in the intermediate vector C; j is used in the accumulation function and ranges from 1 to .

3. The risk prediction method of a chaos engineering system based on a graph attention network according to claim 2, characterized in that, In Step 3, the update formula of the intermediate vector is: , Wherein, is the intermediate vector after the (l + 1)-th layer of the graph convolutional network, represents the non-linear activation function, is the degree matrix of represents the matrix without normalization, , is the adjacency matrix of the graph convolutional network, represents the identity matrix, is the weight matrix of the l-th layer; Define a learning parameter , and aggregate the adjacency matrix using a graph convolutional network to obtain the final intermediate vector. The formula is as follows: , where G is the final representation of the intermediate vector.

4. A risk prediction method for a chaos engineering system based on a graph attention network according to claim 3, wherein, Step 4 includes: Input the final representation of the intermediate vector into the decoder for reconstruction, and the formula for obtaining the reconstructed feature vector is: , Among them, is the weight matrix of the linear transformation, and T represents the transpose; Concatenate the original digital data and the intermediate vector as a combination for predicting the risk probability, and input it into the classifier to obtain the prediction result, and the formula is: , Among them, is the sigmoid activation function, represents the fully connected layer.

5. A method for predicting risks of a chaos engineering system based on a graph attention network according to claim 4, characterized in that, The joint learning loss function includes the mean square loss and the cross-entropy loss of the two tasks of the reconstruction task and the classification task. The joint learning loss function is expressed as follows: , Among them, is the weight; represents positive incentive, represents negative incentive; is the risk prediction probability, that is, the output after the classifier passes through the softmax layer; respectively represent the original intermediate vector and the reconstructed intermediate vector; represents the set of trainable parameters; is L2 regularization.

Citation Information

Patent Citations

  • Fault exercise method and device, apparatus and computer storage medium

    CN110308969A

  • Fault drilling method and device based on chaos engineering

    CN113010393A

  • Distributed system risk identification method, device, equipment, medium and program product

    CN114238046A

  • Method and device for vehicle-machine fault drilling based on chaos engineering

    CN116860496A

  • Micro-service fault root cause positioning method based on graph convolutional neural network

    CN119420629A

Cited By

  • Intelligent control system and method for sintering temperature of powder metallurgy green body

    CN120848643A