A fault detection method and related device

By extracting time-series and log features from IT systems, constructing a topology graph, and utilizing graph attention networks and fault diagnosis agents for automatic fault detection, the problem of detection accuracy caused by manually set thresholds in existing technologies is solved. This achieves highly accurate and timely fault detection, improving system security and user experience.

CN123145164APending Publication Date: 2026-11-20CHINA TELECOM CORP LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611299553.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-08-25
Publication Date
2026-11-20

AI Technical Summary

Technical Problem

In existing technologies for IT system fault detection, manually setting static thresholds or logical conditions leads to reduced accuracy, increased false negative rates, and compromises system security.

Method used

By acquiring time-series and log data from IT systems, features are extracted and a topology graph is constructed. A graph attention network and a fault diagnosis agent are used to match fault feature templates. If a match is successful, the detection result is output; otherwise, it is input into a pre-trained diagnostic model for detection. The fault propagation relationship topology is combined for matching to achieve automatic and rapid fault detection.

Benefits of technology

It improves the accuracy, timeliness, reliability and robustness of fault detection, enhances system security and user experience, and strengthens the generalization ability and prediction accuracy of fault detection.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123145164A_ABST
    Figure CN123145164A_ABST
Patent Text Reader

Abstract

The embodiment of the application provides a kind of fault detection method and related equipment, belong to computer technical field.The method comprises: extracting timing feature and log feature;Topology graph and node feature are constructed;Node feature and the adjacency matrix of topology graph are input into graph attention network, and topology feature is obtained;Based on timing feature and log feature, match fault feature template, based on the successful fault feature template of matching, output target fault detection result;If fail, then input diagnosis model to timing feature and log feature, and obtain first fault detection result;Find fault conduction relationship topology and obtain fault node feature, match fault node feature with the node feature in topology feature, if successful, then first fault detection result is regarded as target fault detection result.The embodiment of the application can realize automatic and fast fault detection, improve the generalization ability, reliability, robustness and prediction accuracy of fault detection, improve the security of system and user experience.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of computer technology, and in particular to a fault detection method and related equipment. Background Technology

[0002] In related technologies, existing solutions for fault detection in IT systems typically require manual setting of static thresholds or logical conditions. Reducing manual workload may lead to decreased accuracy in fault detection, increased false negative rate, and consequently affect the security of IT systems.

[0003] In summary, the technical problems existing in the relevant technologies need to be improved. Summary of the Invention

[0004] The main objective of this application is to propose a fault detection method and related equipment to achieve automatic and rapid fault detection without manual operation, thereby improving the generalization ability, reliability, robustness, and prediction accuracy of fault detection.

[0005] To achieve the above objectives, one aspect of this application proposes a fault detection method, the method comprising: Acquire time-series data and log data of the target IT system, extract time-series features from the time-series data, and extract log features from the log data; Construct a topology graph of the target IT system, construct the node features of the topology graph based on the real-time status data of the components in the target IT system, and construct the adjacency matrix of the topology graph; The node features and the adjacency matrix of the topology graph are input into a pre-trained graph attention network to obtain the topology features; The fault diagnosis agent matches fault feature templates from the knowledge base with the time-series features and the log features. If the template matches successfully, the target fault detection result is output based on the successfully matched fault feature template. If template matching fails, the time-series features and the log features are input into the pre-trained diagnostic model to obtain the first fault detection result output by the diagnostic model. The first fault detection result includes a first fault type and a first fault stage. The fault diagnosis agent obtains fault node features by searching the fault propagation relationship topology based on the first fault diagnosis result, and matches the fault node features with the corresponding node features in the topology features. If the feature matching is successful, the first fault detection result is used as the target fault detection result.

[0006] In some embodiments, extracting time-series features from the time-series data and extracting log features from the log data includes: A sliding window is used to calculate higher-order statistics point by point on the time series data to obtain skewness, kurtosis and symmetry, and the skewness, kurtosis and symmetry are used as the first time series feature information; The first time-series feature information is decomposed into trend term, seasonal term and residual by the STL decomposition algorithm, and the second time-series feature information is constructed by the trend term, the seasonal term and the residual; The second temporal feature information is input into a temporal convolutional network for feature extraction to obtain the temporal features; The log data is mapped into word vectors using the BERT model; The log features are obtained by capturing the dependencies between words from the word vectors using a bidirectional long short-term memory network model.

[0007] In some embodiments, the fault feature template includes time-series fault features and log fault features of the target IT system at different fault stages, and the fault feature template is matched with a knowledge base by the fault diagnosis agent based on the time-series features and the log features, including: The fault diagnosis agent matches the time-series features with the time-series fault features and the log features with the log fault features. The timing fault feature matched by the timing feature is determined to correspond to the first fault feature template of the first fault stage, and the log fault feature matched by the log feature is determined to correspond to the second fault feature template of the second fault stage. If the first fault feature template is the same as the second fault feature template, and the first fault stage is the same as the second fault stage, then the template matching is successful, and a successfully matched fault feature template is obtained. The successfully matched fault feature template is the first fault feature template of the first fault stage. If the first fault feature template is different from the second fault feature template, or the first fault stage is different from the second fault stage, then the template matching is determined to be unsuccessful.

[0008] In some embodiments, the method further includes: Obtain historical log data, and extract features from the historical log data to obtain historical log features; Fault type labels are set for the historical log features to obtain the first sample data; The first basic model is trained using the first sample data to obtain the first diagnostic model; Obtain historical time-series data; The historical time-series data is cleaned using time-series indicators to obtain fault time-series data. Extract fault timing features from the fault timing data; Fault stage labels are set for the fault timing features to obtain second sample data; The second basic model is trained using the second sample data to obtain the second diagnostic model.

[0009] In some embodiments, the diagnostic model includes a pre-trained first diagnostic model and a second diagnostic model. If template matching fails, the time-series features and the log features are input into the pre-trained diagnostic model to obtain a first fault detection result output by the diagnostic model, including: If template matching fails, the log features are input into the first diagnostic model through the fault diagnosis agent to obtain the first fault type; The fault diagnosis agent inputs the time-series features into the second diagnosis model to obtain the first fault stage. The first fault detection result is determined based on the first fault type and the first fault stage.

[0010] In some embodiments, the step of cleaning the historical time-series data with time-series indicators to obtain fault time-series data includes: For indicators that do not have periodic characteristics in the historical time series data, the rolling quantile value of the indicators that do not have periodic characteristics in the previous time period is collected based on a preset time window. The rolling quantile value is used as the indicator threshold for the current time period, and the fault time series data is filtered based on the indicator threshold. For indicators with periodic characteristics in the historical time series data, construct historical benchmark templates for different periods; Calculate the similarity between the index with periodic characteristics and the corresponding historical benchmark template, distinguish normal business fluctuations from abnormal sudden traffic based on the similarity, and filter the fault time series data based on the abnormal sudden traffic.

[0011] To achieve the above objectives, another aspect of this application provides a fault detection device, the device comprising: The feature extraction unit is used to acquire time-series data and log data of the target IT system, extract time-series features from the time-series data, and extract log features from the log data. A topology building unit is used to build a topology graph of the target IT system, construct the node features of the topology graph based on the real-time status data of the components in the target IT system, and construct the adjacency matrix of the topology graph. The topology feature extraction unit is used to input the node features and the adjacency matrix of the topology graph into a pre-trained graph attention network to obtain topology features; The template matching unit is used to match the fault feature templates of the knowledge base with the fault diagnosis intelligent agent based on the time-series features and the log features. If the template matching is successful, the target fault detection result is output based on the successfully matched fault feature template. The model detection unit is used to input the time-series features and the log features into a pre-trained diagnostic model if template matching fails, and obtain the first fault detection result output by the diagnostic model. The first fault detection result includes a first fault type and a first fault stage. The feature matching unit is used to obtain fault node features by searching the fault transmission relationship topology based on the first fault diagnosis result through the fault diagnosis agent, and to match the fault node features with the corresponding node features in the topology features. If the feature matching is successful, the first fault detection result is used as the target fault detection result.

[0012] To achieve the above objectives, another aspect of this application provides an electronic device, which includes a memory and a processor. The memory stores a computer program, and the processor executes the computer program to implement the method described above.

[0013] To achieve the above objectives, another aspect of the embodiments of this application proposes a computer-readable storage medium storing a computer program that, when executed by a processor, implements the methods described above.

[0014] To achieve the above objectives, another aspect of the embodiments of this application proposes a computer program product, including a computer program that, when executed by a processor, implements the aforementioned method.

[0015] The embodiments of this application include at least the following beneficial effects: This application provides a fault detection method, apparatus, electronic device, storage medium, and program product. This solution acquires time-series data and log data of a target IT system, extracts time-series features from the time-series data, and extracts log features from the log data; constructs a topology graph of the target IT system, builds node features of the topology graph based on real-time status data of components in the target IT system, and constructs an adjacency matrix of the topology graph; inputs the node features and the adjacency matrix of the topology graph into a pre-trained graph attention network to obtain topology features; and uses a fault diagnosis agent to match fault feature templates from a knowledge base based on the time-series and log features. If the template matches successfully, the target fault detection result is output based on the successfully matched fault feature template, achieving automatic and rapid fault detection without manual operation, thus improving fault detection efficiency. Accuracy and timeliness help users discover and resolve faults promptly, improving system security and user experience. If template matching fails, time-series features and log features are input into the pre-trained diagnostic model to obtain the first fault detection result output by the diagnostic model. The first fault detection result includes the first fault type and the first fault stage, realizing fault detection in the case of template matching failure, improving the accuracy, usability, and robustness of fault detection. The fault diagnosis agent finds the fault transmission relationship topology based on the first fault diagnosis result to obtain fault node features. The fault node features are matched with the corresponding node features in the topology features. If the feature match is successful, the first fault detection result is used as the target fault detection result, realizing fault detection in the case of template matching failure, improving the generalization ability, reliability, robustness, and prediction accuracy of fault detection. Attached Figure Description

[0016] Figure 1 This is a flowchart of the fault detection method provided in the embodiments of this application; Figure 2 yes Figure 1 The flowchart of step S101 in the text; Figure 3 yes Figure 1 The flowchart of step S104 in the process; Figure 4 This is a flowchart of the diagnostic model training steps of the fault detection method provided in this application embodiment; Figure 5 Yes, yes Figure 1 The flowchart of step S105 in the process; Figure 6 Yes, yes Figure 1 The flowchart of step S405 in the document; Figure 7 This is a flowchart of a fault detection method provided in an embodiment of this application; Figure 8This is a schematic diagram of an IT system fault detection system provided in an embodiment of this application; Figure 9 This is a schematic diagram of the fault detection device provided in the embodiments of this application; Figure 10 This is a schematic diagram of the hardware structure of the electronic device provided in the embodiments of this application. Detailed Implementation

[0017] To make the objectives, technical solutions, and advantages of this application clearer, the following detailed description is provided in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of this application and are not intended to limit it. In the following description, when referring to the accompanying drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with those of this application; they are merely examples of apparatuses and methods consistent with some aspects of the embodiments of this application as detailed in the appended claims.

[0018] It is understood that the terms “first,” “second,” etc., used in this application may be used herein to describe various concepts, but unless otherwise stated, these concepts are not limited by these terms. These terms are only used to distinguish one concept from another. For example, without departing from the scope of the embodiments of this application, first information may also be referred to as second information, and similarly, second information may also be referred to as first information. Depending on the context, the words “if,” “when,” or “in response to a determination” as used herein may be interpreted as “when…” or “when…” or “in response to a determination.”

[0019] As used in this application, the terms "at least one", "multiple", "each", "any", etc., "at least one" includes one, two or more, "multiple" includes two or more, "each" refers to each of the corresponding multiples, and "any" refers to any one of the multiples.

[0020] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs. The terminology used herein is for the purpose of describing embodiments of this application only and is not intended to limit this application.

[0021] Before providing a detailed description of the embodiments of this application, some of the nouns and terms involved in the embodiments of this application will be explained first. The nouns and terms involved in the embodiments of this application are subject to the following interpretations.

[0022] 1) Time-series data: refers to the sequence data of various indicators (such as CPU utilization, memory utilization, network traffic, etc.) in the target IT system as they change over time, used to reflect the dynamic performance status of system components.

[0023] 2) Topology diagram: A graphical model used to describe the components (such as servers, network devices, databases, etc.) in the target IT system and their interconnections. Nodes represent components, and edges represent dependencies or communication relationships between components.

[0024] 3) Node features: Feature vectors extracted from real-time status data of IT system components (such as running status, configuration parameters, performance indicators, etc.) are used to characterize the attributes and status of nodes in the topology graph.

[0025] 4) Adjacency matrix: The mathematical representation of a topology graph. The matrix elements are used to describe whether there is a connection between nodes (usually represented by 0 / 1), reflecting the network structure of the system components.

[0026] 5) Graph Attention Network (GAT): A neural network model based on graph structure. It uses an attention mechanism to weight and aggregate neighborhood information of nodes in the topological graph, extract the correlation features between nodes, and generate topological features.

[0027] 6) Fault Diagnosis Intelligent Agent: An intelligent decision-making module that integrates AI models and knowledge bases. Through the analysis and matching of multi-source data (time series features, log features, topology features), it can identify fault types, determine fault stages, and verify fault transmission relationships.

[0028] 7) Knowledge Base: Stores predefined fault feature templates, including time-series fault features and log fault features of IT systems at different fault stages, to support rule matching and result verification of fault diagnosis agents.

[0029] 8) Diagnostic Models: AI models trained based on historical data (such as the first diagnostic model and the second diagnostic model) are used to identify fault types based on log features and to determine fault stages based on time-series features, respectively.

[0030] 9) Fault propagation topology: A topological model describing the path of fault propagation between components in an IT system, used to verify whether the fault detection results output by the diagnostic model match the actual dependencies of system components.

[0031] In related technologies, existing solutions for fault detection in IT systems mainly include rule-based, statistical modeling and time series analysis, and machine learning methods. Rule-based systems rely on expert experience to set static thresholds or logical conditions. These methods are easy to deploy in simple scenarios, but their rules require manual maintenance and are difficult to cover complex fault modes. Especially when the system scales up or the architecture changes dynamically, the lag in updating the rule base can lead to an increase in the false negative rate.

[0032] Statistical models and time series analysis capture the periodic or trend-like patterns in system behavior using mathematical methods. These methods perform well in steady-state systems, such as traditional data centers, but their ability to model nonlinear or sudden events is insufficient.

[0033] Traditional machine learning methods utilize feature engineering to transform operational data into structured inputs, then employ algorithms such as random forests and support vector machines for classification or regression. While these methods offer greater intelligence than threshold monitoring, their effectiveness is strictly limited by the quality of the feature engineering. These methods perform well on small to medium-sized datasets, but feature engineering is highly dependent on domain knowledge, and the models exhibit poor cross-environment transferability.

[0034] In view of this, this application provides a fault detection method and related equipment. This method acquires time-series data and log data of a target IT system, extracts time-series features from the time-series data, and extracts log features from the log data; constructs a topology graph of the target IT system, builds node features of the topology graph based on real-time status data of components in the target IT system, and constructs an adjacency matrix of the topology graph; inputs the node features and the adjacency matrix of the topology graph into a pre-trained graph attention network to obtain topology features; and uses a fault diagnosis agent to match fault feature templates from a knowledge base based on the time-series and log features. If the template matches successfully, the method outputs the target fault detection result based on the successfully matched fault feature template, achieving automatic and rapid fault detection without manual operation. This improves the accuracy and timeliness of fault detection and is beneficial for... Users can promptly identify and resolve faults, improving system security and user experience. If template matching fails, time-series features and log features are input into a pre-trained diagnostic model to obtain the first fault detection result output by the diagnostic model. The first fault detection result includes the first fault type and the first fault stage, realizing fault detection even when template matching fails, thus improving the accuracy, usability, and robustness of fault detection. The fault diagnosis agent uses the first fault diagnosis result to find the fault propagation relationship topology to obtain fault node features. The fault node features are then matched with the corresponding node features in the topology features. If the feature match is successful, the first fault detection result is used as the target fault detection result, realizing fault detection even when template matching fails, thus improving the generalization ability, reliability, robustness, and prediction accuracy of fault detection.

[0035] The fault detection method provided in this application relates to the field of computer technology. The fault detection method provided in this application can be applied to a terminal, a server, or software running on a terminal or server. In some embodiments, the terminal can be a smartphone, tablet, laptop, desktop computer, smart speaker, smartwatch, or vehicle terminal, but is not limited to these. The server can be configured as an independent physical server, a server cluster or distributed system composed of multiple physical servers, or a cloud server providing basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, CDN, and big data and artificial intelligence platforms. The server can also be a node server in a blockchain network. The software can be an application implementing the fault detection method, but is not limited to the above forms.

[0036] This application can be used in a wide variety of general-purpose or special-purpose computer system environments or configurations. Examples include: personal computers, server computers, handheld or portable devices, tablet devices, multiprocessor systems, microprocessor-based systems, set-top boxes, programmable consumer electronics devices, network PCs, minicomputers, mainframe computers, and distributed computing environments including any of the above systems or devices. This application can be described in the general context of computer-executable instructions executed by a computer, such as program modules. Generally, program modules include routines, programs, objects, components, data structures, etc., that perform specific tasks or implement specific abstract data types. This application can also be practiced in distributed computing environments where tasks are performed by remote processing devices connected via a communication network. In distributed computing environments, program modules can reside in local and remote computer storage media, including storage devices.

[0037] It should be noted that in all specific embodiments of this application, when processing data related to user identity or characteristics, such as user information, user behavior data, user historical data, and user location information, user permission or consent is obtained first. Furthermore, the collection, use, and processing of this data comply with relevant laws, regulations, and standards. In addition, when embodiments of this application require access to sensitive personal information of users, separate permission or consent from the user is obtained through pop-ups or redirection to confirmation pages. Only after obtaining the user's separate permission or consent is the necessary user-related data required for the proper functioning of these embodiments acquired.

[0038] Figure 1 This is an optional flowchart of the fault detection method provided in the embodiments of this application. Figure 1The method may include, but is not limited to, steps S101 to S106.

[0039] Step S101: Obtain time-series data and log data of the target IT system, extract time-series features from the time-series data, and extract log features from the log data.

[0040] Specifically, time-series data refers to relevant data collected from the target IT system based on preset time-series indicators, such as CPU utilization, memory usage, network traffic, and request latency; log data refers to log data generated by various components with logging functions in the target IT system.

[0041] It is understandable that data cleaning can be performed on time series data and log data before feature extraction, so as to carry out refined processing of multi-source heterogeneous data unique to IT systems. The purpose of data cleaning is mainly to solve problems such as noise interference, format disorder and information redundancy.

[0042] Optionally, a sliding window is used to calculate higher-order statistics point by point on the time series data to obtain skewness, kurtosis, and symmetry. Skewness, kurtosis, and symmetry are used as the first time series feature information. The first time series feature information is decomposed into trend term, seasonal term, and residual through the STL decomposition algorithm. The second time series feature information is constructed through the trend term, seasonal term, and residual. The second time series feature information is input into a temporal convolutional network for feature extraction to obtain the time series features.

[0043] In some embodiments, log data is mapped to word vectors using the BERT model; log features are obtained by capturing the dependencies between words from the word vectors using a bidirectional long short-term memory network model.

[0044] In this embodiment, time-series data and log data of the target IT system are acquired, time-series features are extracted from the time-series data, and log features are extracted from the log data to avoid model overfitting due to too many features.

[0045] Step S102: Construct a topology graph of the target IT system. Based on the real-time status data of the components in the target IT system, construct the node features of the topology graph and construct the adjacency matrix of the topology graph.

[0046] In some embodiments, components (such as servers, database instances, network devices, etc.) in the target IT system are used as nodes, and edges between nodes are constructed based on the connection relationships between components (including physical connections, network connections, and data call dependencies) to obtain the topology graph of the target IT system.

[0047] Optionally, real-time status data of each component in the target IT system (such as hardware model, software version, real-time load status, etc.) can be collected to construct the node characteristics of the topology graph.

[0048] Among them, the adjacency matrix of the topology graph is constructed.

[0049] In this embodiment, a topology graph of the target IT system is constructed. Based on the real-time status data of the components in the target IT system, the node features of the topology graph are constructed, and the adjacency matrix of the topology graph is constructed, providing data support for subsequent fault detection.

[0050] Step S103: Input the node features and the adjacency matrix of the topology graph into the pre-trained graph attention network to obtain the topology features.

[0051] In some embodiments, node features and the adjacency matrix of the topology graph are input into a pre-trained graph attention network (GAT) to obtain topology features.

[0052] In this embodiment, node features and the adjacency matrix of the topology graph are input into a pre-trained graph attention network to obtain topology features, which provides data support for subsequent fault detection.

[0053] Step S104: The fault diagnosis agent matches the fault feature templates in the knowledge base based on time-series features and log features. If the template matches successfully, the target fault detection result is output based on the successfully matched fault feature template.

[0054] Specifically, the fault feature template includes the timing fault features and log fault features of the target IT system at different fault stages.

[0055] In some embodiments, a fault diagnosis agent matches time-series features with time-series fault features and log features with log fault features; it is determined that the time-series fault features matched by the time-series features correspond to a first fault feature template for a first fault stage, and the log fault features matched by the log features correspond to a second fault feature template for a second fault stage.

[0056] Furthermore, if the first fault feature template is the same as the second fault feature template, and the first fault stage is the same as the second fault stage, then the template matching is successful, and a successfully matched fault feature template is obtained. The successfully matched fault feature template is the first fault feature template of the first fault stage.

[0057] It is understandable that if the first fault feature template is different from the second fault feature template, or the first fault stage is different from the second fault stage, then the template matching is determined to be unsuccessful.

[0058] In this embodiment, the fault diagnosis agent matches fault feature templates from the knowledge base based on time-series features and log features. If the template matches successfully, the target fault detection result is output based on the matched fault feature template, thus achieving automatic and rapid fault detection without manual operation. This improves the accuracy and timeliness of fault detection, helps users to discover and resolve faults in a timely manner, and enhances system security and user experience.

[0059] In step S105, if template matching fails, the time-series features and log features are input into the pre-trained diagnostic model to obtain the first fault detection result output by the diagnostic model.

[0060] Specifically, the first fault detection result includes the first fault type and the first fault stage.

[0061] Optionally, historical log data is acquired, features are extracted from the historical log data to obtain historical log features; fault type labels are set for the historical log features to obtain first sample data; and the first sample data is used to train a first basic model to obtain a first diagnostic model.

[0062] Further, historical time-series data is acquired; the historical time-series data is cleaned with time-series indicators to obtain fault time-series data; fault time-series features are extracted from the fault time-series data; fault stage labels are set for the fault time-series features to obtain second sample data; the second sample data is used to train the second basic model to obtain the second diagnostic model.

[0063] In some embodiments, if template matching fails, the log features are input into the first diagnostic model through the fault diagnosis agent to obtain the first fault type; the time-series features are input into the second diagnostic model through the fault diagnosis agent to obtain the first fault stage; and the first fault detection result is determined based on the first fault type and the first fault stage.

[0064] In this embodiment, if template matching fails, the time-series features and log features are input into the pre-trained diagnostic model to obtain the first fault detection result output by the diagnostic model, thereby realizing fault detection in the case of template matching failure and improving the accuracy, usability and robustness of fault detection.

[0065] Step S106: The fault diagnosis agent searches for the fault propagation relationship topology based on the first fault diagnosis result to obtain the fault node features. The fault node features are matched with the corresponding node features in the topology features. If the feature matching is successful, the first fault detection result is used as the target fault detection result.

[0066] Optionally, a fault propagation relationship topology can be constructed in advance based on historical fault event records, and the node characteristics of each fault node in the fault propagation relationship topology at different stages of the fault event can be recorded.

[0067] In some embodiments, a corresponding fault propagation relationship topology is selected according to the first fault type, the node characteristics of each fault node in the fault propagation relationship topology under the first fault stage are viewed, and the node characteristics are matched with the first fault diagnosis result.

[0068] Understandably, if a match is successful, it means that the first fault detection result is reliable, and the first fault detection result is used as the target fault detection result.

[0069] Optionally, if the matching fails, the process returns to obtaining the time-series data and log data of the target IT system, extracting time-series features from the time-series data, and extracting log features from the log data to re-perform fault detection.

[0070] In this embodiment, the fault diagnosis agent obtains fault node features by searching the fault propagation relationship topology based on the first fault diagnosis result. The fault node features are then matched with the corresponding node features in the topology features. If the feature matching is successful, the first fault detection result is used as the target fault detection result. This enables fault detection in the case of template matching failure, thereby improving the generalization ability, reliability, robustness, and prediction accuracy of fault detection.

[0071] Steps S101 to S106 of this embodiment involve acquiring time-series data and log data of the target IT system, extracting time-series features from the time-series data, and extracting log features from the log data; constructing a topology graph of the target IT system, building node features of the topology graph based on real-time status data of components in the target IT system, and constructing an adjacency matrix of the topology graph; inputting the node features and the adjacency matrix of the topology graph into a pre-trained graph attention network to obtain topology features; and using a fault diagnosis agent to match fault feature templates from a knowledge base based on the time-series and log features. If the template matches successfully, the target fault detection result is output based on the successfully matched fault feature template, achieving automatic and rapid fault detection without manual operation, improving the accuracy and timeliness of fault detection, and benefiting users. The system can detect and resolve faults in a timely manner, improving system security and user experience. If template matching fails, the time-series features and log features are input into the pre-trained diagnostic model to obtain the first fault detection result output by the diagnostic model. The first fault detection result includes the first fault type and the first fault stage, realizing fault detection in the case of template matching failure, and improving the accuracy, usability and robustness of fault detection. The fault diagnosis agent finds the fault transmission relationship topology based on the first fault diagnosis result to obtain the fault node features. The fault node features are matched with the corresponding node features in the topology features. If the feature match is successful, the first fault detection result is used as the target fault detection result, realizing fault detection in the case of template matching failure, and improving the generalization ability, reliability, robustness and prediction accuracy of fault detection.

[0072] Please see Figure 2 In some embodiments, step S101 may include, but is not limited to, steps S201 to S205: Step S201: Using a sliding window, higher-order statistics are calculated point by point on the time series data to obtain skewness, kurtosis and symmetry, and skewness, kurtosis and symmetry are used as the first time series feature information.

[0073] In step S201 of some embodiments, for time series data, a sliding window can be used to calculate higher-order statistics point by point on the time series data, and the obtained skewness, kurtosis and symmetry can be used as the first time series feature information.

[0074] Step S202: The first time series feature information is decomposed into trend term, seasonal term and residual by STL decomposition algorithm, and the second time series feature information is constructed by trend term, seasonal term and residual.

[0075] In step S202 of some embodiments, STL decomposition can be used to decompose the first time series feature information into trend terms, seasonal terms and residual terms, thereby constructing the second time series feature information.

[0076] Furthermore, by constructing hierarchical time-series feature sets targeting different indicator characteristics, long-term anomalies and short-term disturbances can be accurately distinguished.

[0077] Step S203: Input the second temporal feature information into the temporal convolutional network for feature extraction to obtain temporal features.

[0078] In step S203 of some embodiments, the second temporal feature information can be input into a temporal convolutional network for feature extraction to obtain temporal features.

[0079] Step S204: Map the log data into word vectors using the BERT model.

[0080] In step S204 of some embodiments, log data can be mapped to word vectors using the BERT model.

[0081] Step S205: Capture the dependencies between words from word vectors using a bidirectional long short-term memory network model to obtain log features.

[0082] In step S205 of some embodiments, long-distance dependencies are captured from word vectors through the attention mechanism of a bidirectional long short-term memory network model, unstructured log content is mapped into vectors, and context-sensitive key semantic information is preserved to obtain log features.

[0083] For example, long-distance dependencies include the logical association between "database connection pool exhaustion" and "transaction rollback".

[0084] Please see Figure 3 In some embodiments, step S104 may include, but is not limited to, steps S301 to S304: Step S301: The fault diagnosis agent matches the time-series features with the time-series fault features and matches the log features with the log fault features.

[0085] In step S301 of some embodiments, the fault diagnosis agent matches the time-series features with the time-series fault features in the fault feature template, and at the same time, matches the log features with the log fault features in the fault feature template.

[0086] Step S302: Determine the first fault feature template corresponding to the first fault stage for the timing fault feature matching time sequence feature, and determine the second fault feature template corresponding to the second fault stage for the log fault feature matching log feature.

[0087] Step S303: If the first fault feature template is the same as the second fault feature template, and the first fault stage is the same as the second fault stage, then the template matching is successful, and a successfully matched fault feature template is obtained.

[0088] Specifically, the successfully matched fault feature template is the first fault feature template of the first fault stage.

[0089] In step S303 of some embodiments, if the timing feature and the log feature successfully match the same fault feature template, and the timing fault feature matched by the timing feature and the log fault feature matched by the log feature belong to the same fault stage in the corresponding fault feature template, then it is determined that the timing feature and the log feature match the corresponding fault feature template, and the template matching is successful.

[0090] Step S304: If the first fault feature template is different from the second fault feature template, or the first fault stage is different from the second fault stage, then the template matching is determined to be unsuccessful.

[0091] In step S304 of some embodiments, if the first fault feature template is different from the second fault feature template, or the first fault stage is different from the second fault stage, it is determined that the timing feature and log feature do not match the corresponding fault feature template, and the template matching fails.

[0092] Please see Figure 4 In some embodiments, the fault detection method provided in this application further includes a diagnostic model training step, which may include, but is not limited to, steps S401 to S408: Step S401: Obtain historical log data, extract features from the historical log data, and obtain historical log features.

[0093] In step S401 of some embodiments, historical log features of the target IT system's historical log data are extracted.

[0094] Step S402: Set fault type labels for historical log features to obtain the first sample data.

[0095] In some embodiments, fault type labels are set for historical log features using a type recognition model or manually to obtain the first sample data.

[0096] Step S403: Train the first basic model using the first sample data to obtain the first diagnostic model.

[0097] In step S403 of some embodiments, a first base model is trained using a first sample dataset labeled with fault type, and a first diagnostic model for fault type identification is output.

[0098] Step S404: Obtain historical time series data.

[0099] In step S404 of some embodiments, historical time-series data of the target IT system is obtained.

[0100] Step S405: Perform time series index cleaning on the historical time series data to obtain fault time series data.

[0101] In step S405 of some embodiments, for indicators that do not have periodic characteristics in historical time series data, the rolling quantile value of the indicators that do not have periodic characteristics in the previous time period is collected based on a preset time window, and the rolling quantile value is used as the indicator threshold for the current time period. Fault time series data is then filtered based on the indicator threshold.

[0102] Optionally, for indicators with periodic characteristics in historical time series data, historical benchmark templates for different periods can be constructed.

[0103] Furthermore, the similarity between indicators with periodic characteristics and corresponding historical benchmark templates is calculated. Based on the similarity, normal business fluctuations and abnormal sudden traffic are distinguished, and fault time series data are filtered based on abnormal sudden traffic.

[0104] Step S406: Extract fault timing features from fault timing data.

[0105] In some embodiments, the fault time-series data is preprocessed, including missing value filling, outlier removal, noise reduction (moving average, wavelet noise reduction), time alignment, and uniform sampling frequency.

[0106] Furthermore, fault timing features are extracted, and the fault timing data is converted into structured feature vectors, preserving temporal context information and without losing fault evolution information.

[0107] Step S407: Set fault stage labels for fault timing features to obtain second sample data.

[0108] Optionally, fault stage labels can be set for fault time-series features based on time intervals or feature thresholds to obtain second sample data.

[0109] Step S408: Train the second basic model using the second sample data to obtain the second diagnostic model.

[0110] In some embodiments, a second base model is trained using a second sample dataset labeled with fault stages, and a second diagnostic model for fault stage identification is output.

[0111] Please see Figure 5 In some embodiments, step S105 may also include, but is not limited to, steps S501 to S503: In step S501, if template matching fails, the log features are input into the first diagnostic model through the fault diagnosis agent to obtain the first fault type.

[0112] In step S501 of some embodiments, a first fault type is identified based on log features using a first diagnostic model.

[0113] Step S502: Input the time-series features into the second diagnostic model through the fault diagnosis intelligent agent to obtain the first fault stage.

[0114] In step S502 of some embodiments, the first fault stage is identified based on timing characteristics using a second diagnostic model.

[0115] Step S503: Determine the first fault detection result based on the first fault type and the first fault stage.

[0116] In some embodiments, the first fault type and the first fault stage are used as the first fault detection result.

[0117] Please see Figure 6 In some embodiments, step S405 may also include, but is not limited to, steps S601 to S603: Step S601: For indicators that do not have periodic characteristics in historical time series data, collect the rolling quantile values ​​of the indicators that do not have periodic characteristics in the previous time period based on a preset time window, use the rolling quantile values ​​as the indicator threshold for the current time period, and filter the fault time series data based on the indicator threshold.

[0118] Step S602: For indicators with periodic characteristics in historical time series data, construct historical benchmark templates for different periods.

[0119] Step S603: Calculate the similarity between indicators with periodic characteristics and corresponding historical benchmark templates, distinguish between normal business fluctuations and abnormal sudden traffic based on the similarity, and filter fault time series data based on abnormal sudden traffic.

[0120] Please refer to Figure 7 , Figure 7 This is a flowchart illustrating a fault detection method proposed in one or more embodiments of this specification. This method is applicable to IT systems, such as... Figure 7 As shown, the method may include steps S700 to S708.

[0121] S700: Acquires current time-series data and log data of the target IT system, extracts time-series features from the time-series data, and extracts log features from the log data.

[0122] The aforementioned time-series data refers to relevant data collected from the target IT system based on preset time-series indicators, such as CPU utilization, memory usage, network traffic, and request latency.

[0123] The log data mentioned above refers to the log data generated by various components with logging functions in the target IT system.

[0124] Before performing feature extraction on the aforementioned time-series and log data, data cleaning can be performed on the time-series and log data to implement refined processing of the multi-source heterogeneous data unique to IT systems. The purpose of data cleaning is mainly to solve problems such as noise interference, format disorder and information redundancy.

[0125] Taking log data as an example, in the log data cleaning process, noise information can be removed first by matching rules with a rule engine. For example, for frequently occurring debugging information, DEBUG level logs left over from the development phase, or periodic status information in system logs, regular expressions can be used for targeted filtering. This ensures that the filtered log data retains only high-value log entries containing errors, warnings, and critical business events.

[0126] For unstructured log data, a multi-level parsing strategy can be designed: The first layer extracts key entities with fixed patterns through named entity recognition, such as error codes, transactions, and IP addresses; the second layer uses a pre-trained language model to perform semantic embedding on free text, mapping logs with different surface forms but similar semantics to the same vector space, and then uses the DBSCAN density clustering algorithm to merge similar abnormal events to form event clusters, thereby eliminating duplicate alarms and reducing data dimensionality.

[0127] For time-series data, it is necessary to filter out time-series data that can characterize fault-related features from the raw time-series data collected based on preset indicators. To this end, median filtering and sliding window smoothing can be used to smooth the instantaneous noise in the raw time-series data, thereby ensuring the continuity of the time-series data. Furthermore, to address the indicator drift problem in dynamic environments, dynamic baseline calibration and dynamic time warping algorithms can be used for adjustment.

[0128] For example, for metrics such as CPU utilization and memory usage that do not exhibit periodicity, dynamic baseline calibration can replace static thresholds. This involves collecting the rolling quantile of the metric in the previous time period based on a preset time window, using this as the threshold for the current time period, and then filtering out time-series data that can characterize fault-related features based on this threshold. For instance, the aforementioned time window could be set to 30 days. Data from the same time period of the previous 30 days could be collected to calculate the rolling quantile of the metric as an adaptive threshold. During data cleaning, data exceeding this threshold can be used as time-series data, thus avoiding misjudgments caused by sudden spikes in resource utilization.

[0129] For metrics with significant periodic characteristics, such as network traffic and request latency, a dynamic time warping algorithm can be introduced to align with peak business patterns. This algorithm distinguishes between normal business fluctuations and abnormal traffic bursts by calculating the similarity between real-time data and historical benchmark templates. For example, historical benchmark templates for different periods can be constructed, each including one period of normal time-series data. The similarity between real-time metric data and the corresponding historical benchmark template is calculated, and the similarity results are used to distinguish between normal business fluctuations and abnormal traffic bursts, thereby filtering out time-series data that can characterize fault-related features.

[0130] Specifically, Dynamic Time Warping (DTW) is a technique for measuring the distance between two time series, suitable for time series that may exhibit non-linear changes along the time axis. A concrete example is provided below to illustrate this: Use DTW to compare CPU utilization over a specific time period with a historical benchmark template.

[0131] ①Prepare input data CPU utilization typically exhibits cyclical characteristics. Therefore, real-time CPU utilization data for a given period can be collected based on this cyclical pattern. Simultaneously, historical time-series data of CPU utilization for the same time period can be prepared as a template. In other words, if the cyclical nature of CPU utilization indicates a significant increase in the CPU utilization of a target IT system around June 18th each year, and the current real-time time-series data covers the CPU utilization of the target IT system from June 12th to June 25th, then CPU utilization data from June 12th to June 25th of the previous year can be collected as a historical baseline template. This historical baseline template is usually constructed from data under normal conditions, i.e., it does not include fault-related data.

[0132] ② Constructing a matrix For each time point, calculate the distance between the historical baseline template and the real-time time series data. For example, if the historical baseline template and the real-time time series data each have 50 time points (the time points of the two sets of time series data need to be consistent), then construct a 50x50 matrix, where each element represents the Euclidean distance between corresponding points of the two time series.

[0133] ③ Cumulative distance Start calculating the cumulative distance from the top left corner of the cost matrix (i.e., the first time point). For each position (i,j), find the minimum cumulative distance to reach that position. The current position can be reached from three directions: left (i-1, j), above (i, j-1), or upper left (i-1, j-1). Choose the minimum of these three directions and add it to the cost value of the current position as the cumulative distance to that position.

[0134] ④ Determine the optimal path After completing the cumulative distance matrix, find a path from the top left corner to the bottom right corner that minimizes the cumulative distance. This path represents the optimal alignment of the two time series.

[0135] ⑤ Calculate similarity Finally, by analyzing this optimal path and its corresponding cumulative distance, the similarity between the current traffic pattern and the historical baseline template is determined. A smaller distance indicates a higher similarity. High similarity can be considered normal fluctuation. Low similarity may indicate abnormal bursts of traffic.

[0136] Feature extraction, as a key step in fault diagnosis, requires extracting discriminative high-order features from multimodal data to pinpoint the specific information at the time of fault occurrence, in order to support subsequent model analysis.

[0137] For log data, the BERT model can be used to map the log data into word vectors. Then, the attention mechanism of the bidirectional long short-term memory network model can be used to capture long-distance dependencies from the word vectors, such as the logical relationship between "database connection pool exhaustion" and "transaction rollback". This maps the unstructured log content into vectors, retains the context-sensitive key semantic information, and obtains log features.

[0138] For time series data, a sliding window can be used to calculate higher-order statistics point by point, and the obtained skewness, kurtosis and symmetry can be used as the first time series feature information.

[0139] Next, the first time series feature information can be decomposed into trend, seasonal and residual terms using STL (Seasonal-Trend Decomposition using Loess) to construct the second time series feature information. By constructing hierarchical time series feature sets for different indicator characteristics, long-term anomalies and short-term disturbances can be accurately distinguished.

[0140] Finally, the second temporal feature information can be input into a temporal convolutional network for feature extraction to obtain temporal features.

[0141] Clearly, before constructing the aforementioned time-series features, feature selection and dimensionality reduction can be performed on the first time-series feature information to remove useless features and retain core information. Feature selection and dimensionality reduction can avoid the problem of overfitting in AI models caused by too many features.

[0142] S702: Construct a topology graph of the target IT system and build node features of the topology graph based on the real-time status data of each component in the target IT system; input the node features and the adjacency matrix of the topology graph into a pre-trained graph attention network to obtain the topology features.

[0143] Specifically, the topology graph described above can be obtained by using components in the target IT system (such as servers, database instances, network devices, etc.) as nodes and constructing edges between nodes based on the connection relationships between components (including physical connections, network connections, and data access dependencies). Alternatively, real-time status data of each component in the target IT system (such as hardware model, software version, real-time load status, etc.) can be collected to construct the node characteristics of the topology graph.

[0144] The node features and the adjacency matrix of the topology graph are input into a pre-trained graph attention network (GAT) to obtain the topology features.

[0145] S704: Input the time series features, log features and topology features into the fault diagnosis agent; the fault diagnosis agent performs matching in the pre-built knowledge base based on the time series features and log features. If a corresponding fault feature template is matched, the fault detection result is output according to the fault feature template.

[0146] Before performing this step, a knowledge base needs to be built. The knowledge base can pre-store fault feature templates for historical fault events, fault propagation topologies for fault events, and solutions for fault events. The fault feature templates can include time-series fault characteristics and log fault characteristics of the target IT system at different fault stages during the fault event. The fault propagation topology records the topology of fault nodes affected when the corresponding fault event occurred.

[0147] The fault diagnosis agent performs matching in the knowledge base based on time-series features and log features, specifically including: The fault diagnosis agent matches time-series features with time-series fault features in the fault feature template, and at the same time, matches log features with log fault features in the fault feature template. If the time-series feature and the log feature successfully match the same fault feature template, and the time-series fault feature matched by the time-series feature and the log fault feature matched by the log feature belong to the same fault stage in the corresponding fault feature template, then it is determined that the time-series feature and the log feature match the corresponding fault feature template; otherwise, it is determined that the time-series feature and the log feature do not match the corresponding fault feature template.

[0148] If a fault feature template is matched, a fault detection result can be constructed based on the fault type corresponding to the fault feature template and the fault stage determined based on the matching result. Preferably, if the knowledge base also stores solutions for this type of fault, the solutions can also be output along with the fault detection results for reference by operations and maintenance personnel, or for the operations and maintenance system to automatically run the solution to eliminate the fault.

[0149] S706: If no corresponding fault feature template is matched, the fault diagnosis agent will input the time series features and log features into the pre-trained diagnosis model to obtain the first fault detection result output by the diagnosis model.

[0150] The aforementioned diagnostic model includes a pre-trained first diagnostic model and a second diagnostic model. The fault diagnosis agent inputs time-series features and log features into the pre-trained diagnostic model to obtain the first fault detection result output by the diagnostic model, specifically including: The fault diagnosis agent inputs log features into the first diagnostic model to obtain the fault type; The fault diagnosis agent inputs the time-series features into the second diagnostic model to obtain the fault stage; The first fault detection result is determined based on the fault type and fault stage.

[0151] Before performing this step, the first diagnostic model and the second diagnostic model need to be pre-trained so that the first diagnostic model and the second diagnostic model have the above-mentioned diagnostic capabilities.

[0152] Specifically, for the first diagnostic module, the following training method can be used: Obtain historical log data, extract features from the historical log data, and set fault type labels for the extracted historical log features to obtain the first sample data; The first basic model is trained using the first sample data to obtain the first diagnostic model.

[0153] Specifically, the following training methods can be used for the second diagnostic module: Obtain historical time-series data; Historical time-series data is cleaned using time-series indicators to obtain fault time-series data; among which, For indicators that do not have periodic characteristics, the rolling quantile value of the indicator in the previous time period is collected based on a preset time window to serve as the indicator threshold for the current time period, and the fault time series data is filtered based on the indicator threshold. For indicators with periodic characteristics, historical benchmark templates for different periods are constructed. The historical benchmark template includes normal time-series data for one period. The similarity between real-time indicator data and the corresponding historical benchmark template is calculated, and the normal business fluctuations and abnormal burst traffic are distinguished based on the similarity results, thereby filtering out fault time-series data. Fault timing features are extracted from fault timing data, and fault stage labels are set for the fault timing features to obtain second sample data; The second basic model is trained using the second sample data to obtain the second diagnostic model.

[0154] The first and second diagnostic models described above can be adaptively selected according to needs, and this embodiment does not impose any restrictions on this.

[0155] For example, in some implementations, for log features, a first diagnostic model based on a deep residual shrinking network can be selected to dynamically suppress the contribution of noise-related feature channels in the residual connections, thereby improving the model's feature selection capability under strong interference environments.

[0156] In some implementations, a second diagnostic model can be constructed using a bidirectional gated cyclic cell network to analyze signals that change over time (such as CPU temperature trends and memory usage changes) and capture the evolution of device status, outputting fault development stage labels (such as early warning, critical state, fault occurrence, and severe fault).

[0157] S708: The fault diagnosis agent searches for the pre-constructed fault propagation relationship topology based on the first fault diagnosis result, and matches the fault node features in the fault propagation relationship topology with the corresponding node features in the topology features. If the match is successful, the first fault detection result is output; if the match fails, the fault detection is performed again.

[0158] Specifically, a fault propagation relationship topology can be constructed in advance based on historical fault event records, and the node characteristics of each fault node in the fault propagation relationship topology at different stages of the fault event can be recorded.

[0159] After step S706, the fault type and fault stage are obtained. In this step, the corresponding fault propagation relationship topology is selected according to the fault type, and the node characteristics of each fault node in the fault propagation relationship topology under the fault stage are viewed. The node characteristics are matched with the first fault diagnosis result. If the match is successful, it means that the first fault detection result is reliable, and the first fault detection result can be directly output. If the match fails, for example, the diagnostic model predicts that a web server has a certain type of fault and is in a severe fault stage, but the fault propagation topology of this type of fault shows that its upstream load balancer node is healthy, then the prediction result is unreliable. Another example is that the diagnostic model predicts that the database master node has a certain type of fault and the fault stage is severe, but its downstream slave nodes do not show synchronization delay alarms, then the prediction result is unreliable. When the first fault detection result is unreliable, the fault diagnosis agent can be triggered to re-perform fault detection.

[0160] As a preferred implementation of the aforementioned IT system fault detection method, this embodiment can establish a fault probability dictionary for log fault features. After the first diagnostic model outputs the fault type diagnosis result, the fault type diagnosis result is mapped to a fault type probability vector through the fault probability dictionary, for example, [CPU overheating: 0.92, memory corruption: 0.85, high network latency: 0.45], where 0.92, 0.85, and 0.45 all represent fault probabilities.

[0161] Next, the fault type probability vector and fault stage are input into the physical constraint module for correction. This physical constraint module constrains the frequency prediction values ​​output by the diagnostic model by constructing a regularized loss function, ensuring that the output of the diagnostic model conforms to the laws of physics; at the same time, a logical tensor network layer is established to encode expert experience rules (such as "CPU temperature > 90°C for 5 minutes indicates that the cooling fan has stopped or its speed is abnormal") into structured constraints, and corrects the data-driven prediction bias through differentiable logical operations.

[0162] Next, an NLP module is built to convert the modified feature probability vectors and development stage labels into a plain description of the fault event. First, the fault type probability vectors are sorted in descending order. Based on the fault probability dictionary, the top three high-probability fault types are selected, such as [CPU overheating: 0.92, memory corruption: 0.85, high network latency: 0.45], filtering out fault types with probabilities <0.3. Then, a word mapping table is established based on probability confidence, for example, probability ≥0.8 → "clearly detected", probability 0.5-0.8 → "possibly exists", probability <0.5 → "not ruled out". Afterwards, word mapping is performed for the development stage label, for example, severe fault → "urgently needs repair". Finally, the final plain description of the fault event is generated based on the fault probability and development stage mapping. For example, if the fault probability vector is [CPU overheating: 0.92, memory corruption: 0.85, high network latency: 0.45] and the development stage label is "severe fault", then the description is generated as: "CPU overheating is clearly detected, urgent repair is needed!" As a preferred embodiment of the above-mentioned fault detection method, this embodiment may further include the following steps: If, for a certain fault event, the fault diagnosis agent fails to match the corresponding fault feature template in the knowledge base, the reliable fault detection result corresponding to the fault event can be entered into the knowledge base. That is, based on the reliable fault detection result corresponding to the fault event, the corresponding fault feature template, fault solution, and fault transmission relationship topology can be constructed.

[0163] This embodiment also provides an IT system fault detection system, which is used to implement the above-described IT system fault detection method. Please refer to... Figure 8 The system includes: The data acquisition module is configured to acquire the current time-series data and log data of the target IT system, as well as the real-time status data of each component in the target IT system.

[0164] The feature extraction module is configured to extract time-series features from time-series data and extract log features from log data.

[0165] The feature extraction module is also configured to construct a topology map of the target IT system and construct node features of the topology map based on the real-time status data of each component in the target IT system.

[0166] The fault diagnosis agent is configured to perform matching in a pre-built knowledge base based on time-series features and log features. If a corresponding fault feature template is matched, the fault detection result is output according to the fault feature template. If no corresponding fault feature template is matched, the time-series features and log features are input into the pre-trained diagnostic model to obtain the first fault detection result output by the diagnostic model. The fault diagnosis agent is also configured to search for a pre-constructed fault propagation relationship topology based on the first fault diagnosis result, and match the fault node features in the fault propagation relationship topology with the corresponding node features in the topology features. If the match is successful, the first fault detection result is output; if the match fails, the fault detection is performed again.

[0167] Optionally, for the data acquisition module, after collecting time-series data and log data, the module can perform data cleaning on the time-series data and log data, thereby implementing refined processing for the multi-source heterogeneous data unique to IT systems. The purpose of data cleaning is mainly to solve problems such as noise interference, format disorder and information redundancy.

[0168] Taking log data as an example, in the log data cleaning stage, the data acquisition module can first use a rule engine to match rules and remove noisy information. For example, for frequently occurring debugging information, DEBUG level logs left over from the development phase, or periodic status information in system logs, regular expressions can be used for targeted filtering. This ensures that the filtered log data retains only high-value log entries containing errors, warnings, and critical business events.

[0169] For unstructured log data, the data acquisition module can design a multi-level parsing strategy: the first layer extracts key entities with fixed patterns through named entity recognition, such as error codes, transactions, and IP addresses; the second layer uses a pre-trained language model to perform semantic embedding on free text, mapping logs with different surface forms but similar semantics to the same vector space, and then uses the DBSCAN density clustering algorithm to merge similar abnormal events to form event clusters, thereby eliminating duplicate alarms and reducing data dimensionality.

[0170] For time-series data, it is necessary to filter out time-series data that can characterize fault-related features from the raw time-series data collected based on preset indicators. To this end, the data acquisition module can use median filtering and sliding window smoothing to process instantaneous noise in the raw time-series data, thereby ensuring the continuity of the time-series data. Furthermore, to address indicator drift issues in dynamic environments, the data acquisition module can employ dynamic baseline calibration and dynamic time warping algorithms for adjustment.

[0171] For example, for metrics such as CPU utilization and memory usage that do not exhibit periodicity, the data acquisition module can use dynamic baseline calibration instead of static thresholds. This involves collecting the rolling quantile of the metric within a previous time period based on a preset time window, using this as the threshold for the current time period. Based on this threshold, time-series data that characterizes fault-related features can then be filtered out. For instance, the aforementioned time window could be set to 30 days. Data from the same time period within the previous 30 days could be collected to calculate the rolling quantile of the metric as an adaptive threshold. During data cleaning, data exceeding this threshold can be used as time-series data, thus avoiding misjudgments caused by sudden spikes in resource utilization.

[0172] For metrics with significant periodic characteristics, such as network traffic and request latency, the data acquisition module can introduce a dynamic time warping algorithm to align with peak business patterns. This algorithm distinguishes between normal business fluctuations and abnormal traffic spikes by calculating the similarity between real-time data and historical benchmark templates. For example, historical benchmark templates for different periods can be constructed, each including one period of normal time-series data. The similarity between real-time metric data and the corresponding historical benchmark template is calculated, and the similarity results are used to distinguish between normal business fluctuations and abnormal traffic spikes, thereby filtering out time-series data that can characterize fault-related features.

[0173] The content of the above method embodiments is applicable to this system embodiment. The specific functions implemented in this system embodiment are the same as those in the above method embodiments, and the beneficial effects achieved are also the same as those achieved in the above method embodiments.

[0174] Please see Figure 9 This application also provides a fault detection device that can implement the above-described method. The device includes: The feature extraction unit 901 is used to acquire time-series data and log data of the target IT system, extract time-series features from the time-series data, and extract log features from the log data. Topology building unit 902 is used to build a topology graph of the target IT system. It builds the node features of the topology graph based on the real-time status data of the components in the target IT system and constructs the adjacency matrix of the topology graph. The topology feature extraction unit 903 is used to input node features and the adjacency matrix of the topology graph into a pre-trained graph attention network to obtain topology features; Template matching unit 904 is used to match fault feature templates in the knowledge base with time-series features and log features by the fault diagnosis agent. If the template matching is successful, the target fault detection result is output based on the successfully matched fault feature template. The model detection unit 905 is used to input the time series features and log features into the pre-trained diagnostic model if the template matching fails, and obtain the first fault detection result output by the diagnostic model. The first fault detection result includes the first fault type and the first fault stage. The feature matching unit 906 is used to obtain fault node features by searching the fault transmission relationship topology based on the first fault diagnosis result through the fault diagnosis agent, and to match the fault node features with the corresponding node features in the topology features. If the feature matching is successful, the first fault detection result is used as the target fault detection result.

[0175] It is understood that the content of the above method embodiments is applicable to the present device embodiments. The specific functions implemented by the present device embodiments are the same as those of the above method embodiments, and the beneficial effects achieved are also the same as those achieved by the above method embodiments.

[0176] This application also provides an electronic device, which includes a memory and a processor. The memory stores a computer program, and the processor executes the computer program to implement the above-described method. This electronic device can be any smart terminal, including tablet computers, in-vehicle computers, etc.

[0177] It is understood that the content of the above method embodiments is applicable to this device embodiment. The specific functions implemented by this device embodiment are the same as those of the above method embodiments, and the beneficial effects achieved are also the same as those achieved by the above method embodiments.

[0178] Please see Figure 10 , Figure 10 The hardware structure of an electronic device according to another embodiment is illustrated. The electronic device includes: The processor 1001 can be implemented using a general-purpose CPU (Central Processing Unit), microprocessor, application-specific integrated circuit (ASIC), or one or more integrated circuits, and is used to execute relevant programs to implement the technical solutions provided in the embodiments of this application. The memory 1002 can be implemented as a read-only memory (ROM), static storage device, dynamic storage device, or random access memory (RAM). The memory 1002 can store the operating system and other applications. When the technical solutions provided in the embodiments of this specification are implemented through software or firmware, the relevant program code is stored in the memory 1002 and is called and executed by the processor 1001 using the methods described in the embodiments of this application. Input / output interface 1003 is used to implement information input and output; The communication interface 1004 is used to enable communication and interaction between this device and other devices. Communication can be achieved through wired means (such as USB, network cable, etc.) or wireless means (such as mobile network, WIFI, Bluetooth, etc.). Bus 1005 transmits information between various components of the device (e.g., processor 1001, memory 1002, input / output interface 1003, and communication interface 1004); The processor 1001, memory 1002, input / output interface 1003 and communication interface 1004 are connected to each other within the device via bus 1005.

[0179] This application also provides a computer-readable storage medium storing a computer program that, when executed by a processor, implements the above-described method.

[0180] It is understood that the content of the above method embodiments is applicable to this storage medium embodiment. The specific functions implemented in this storage medium embodiment are the same as those in the above method embodiments, and the beneficial effects achieved are also the same as those achieved in the above method embodiments.

[0181] This application also provides a computer program product, including a computer program that, when executed by a processor, implements the above-described method.

[0182] It is understood that the content of the above method embodiments is applicable to the embodiments of this program product. The specific functions implemented by the embodiments of this program product are the same as those of the above method embodiments, and the beneficial effects achieved are also the same as those achieved by the above method embodiments.

[0183] Memory, as a non-transitory computer-readable storage medium, can be used to store non-transitory software programs and non-transitory computer-executable programs. Furthermore, memory may include high-speed random access memory, and may also include non-transitory memory, such as at least one disk storage device, flash memory device, or other non-transitory solid-state storage device. In some embodiments, memory may optionally include memory remotely located relative to the processor, and these remote memories can be connected to the processor via a network. Examples of such networks include, but are not limited to, the Internet, intranets, local area networks, mobile communication networks, and combinations thereof.

[0184] The fault detection method, apparatus, electronic device, storage medium, and program product provided in this application acquire time-series data and log data of a target IT system. They extract time-series features from the time-series data and log features from the log data; construct a topology graph of the target IT system; build node features of the topology graph based on real-time status data of components in the target IT system; construct an adjacency matrix of the topology graph; input the node features and the adjacency matrix of the topology graph into a pre-trained graph attention network to obtain topology features; and use a fault diagnosis agent to match fault feature templates from a knowledge base based on the time-series and log features. If the template matches successfully, the target fault detection result is output based on the successfully matched fault feature template, achieving automatic and rapid fault detection without manual operation, thus improving the accuracy and timeliness of fault detection. This approach facilitates timely fault detection and resolution by users, enhancing system security and user experience. If template matching fails, time-series and log features are input into a pre-trained diagnostic model to obtain the first fault detection result output by the model. This first fault detection result includes the first fault type and the first fault stage, enabling fault detection even in cases of template matching failure, thus improving the accuracy, usability, and robustness of fault detection. The fault diagnosis agent then uses the first fault diagnosis result to find the fault propagation relationship topology and obtain fault node features. These features are then matched with the corresponding node features in the topology. If the feature match is successful, the first fault detection result is used as the target fault detection result, enabling fault detection even in cases of template matching failure, thereby improving the generalization ability, reliability, robustness, and prediction accuracy of fault detection.

[0185] The embodiments described in this application are for the purpose of more clearly illustrating the technical solutions of the embodiments of this application, and do not constitute a limitation on the technical solutions provided by the embodiments of this application. As those skilled in the art will know, with the evolution of technology and the emergence of new application scenarios, the technical solutions provided by the embodiments of this application are also applicable to similar technical problems.

[0186] Those skilled in the art will understand that the technical solutions shown in the figures do not constitute a limitation on the embodiments of this application, and may include more or fewer steps than shown, or combine certain steps, or different steps.

[0187] The device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separate; that is, they may be located in one place or distributed across multiple network units. Some or all of the modules can be selected to achieve the purpose of this embodiment according to actual needs.

[0188] Those skilled in the art will understand that all or some of the steps in the methods disclosed above, as well as the functional modules / units in the systems and devices, can be implemented as software, firmware, hardware, or suitable combinations thereof.

[0189] The terms “first,” “second,” “third,” “fourth,” etc. (if present) in the specification and accompanying drawings of this application are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of this application described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms “comprising” and “having,” and any variations thereof, are intended to cover non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.

[0190] It should be understood that in this application, "at least one (item)" means one or more, and "more than" means two or more. "And / or" is used to describe the relationship between related objects, indicating that three relationships can exist. For example, "A and / or B" can represent three cases: only A exists, only B exists, and both A and B exist simultaneously, where A and B can be singular or plural. The character " / " generally indicates that the preceding and following related objects are in an "or" relationship. "At least one (item) of the following" or similar expressions refer to any combination of these items, including any combination of single or plural items. For example, at least one (item) of a, b, or c can represent: a, b, c, "a and b", "a and c", "b and c", or "a and b and c", where a, b, and c can be single or multiple.

[0191] In the several embodiments provided in this application, it should be understood that the disclosed apparatus and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative; for instance, the division of the units described above is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be through some interfaces; the indirect coupling or communication connection between apparatuses or units may be electrical, mechanical, or other forms.

[0192] The units described above as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.

[0193] Furthermore, the functional units in the various embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.

[0194] If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes multiple instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods of the various embodiments of this application. The aforementioned storage medium includes various media capable of storing programs, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.

[0195] The preferred embodiments of the present application have been described above with reference to the accompanying drawings, but this does not limit the scope of the claims of the present application. Any modifications, equivalent substitutions, and improvements made by those skilled in the art without departing from the scope and substance of the embodiments of the present application shall be within the scope of the claims of the present application.

Claims

1. A fault detection method, characterized in that, The method includes the following steps: Acquire time-series data and log data of the target IT system, extract time-series features from the time-series data, and extract log features from the log data; Construct a topology graph of the target IT system, construct the node features of the topology graph based on the real-time status data of the components in the target IT system, and construct the adjacency matrix of the topology graph; The node features and the adjacency matrix of the topology graph are input into a pre-trained graph attention network to obtain the topology features; The fault diagnosis agent matches fault feature templates from the knowledge base with the time-series features and the log features. If the template matches successfully, the target fault detection result is output based on the successfully matched fault feature template. If template matching fails, the time-series features and the log features are input into the pre-trained diagnostic model to obtain the first fault detection result output by the diagnostic model. The first fault detection result includes a first fault type and a first fault stage. The fault diagnosis agent obtains fault node features by searching the fault propagation relationship topology based on the first fault diagnosis result, and matches the fault node features with the corresponding node features in the topology features. If the feature matching is successful, the first fault detection result is used as the target fault detection result.

2. The method according to claim 1, characterized in that, The step of extracting time-series features from the time-series data and extracting log features from the log data includes: A sliding window is used to calculate higher-order statistics point by point on the time series data to obtain skewness, kurtosis and symmetry, and the skewness, kurtosis and symmetry are used as the first time series feature information; The first time-series feature information is decomposed into trend term, seasonal term and residual by the STL decomposition algorithm, and the second time-series feature information is constructed by the trend term, the seasonal term and the residual; The second temporal feature information is input into a temporal convolutional network for feature extraction to obtain the temporal features; The log data is mapped into word vectors using the BERT model; The log features are obtained by capturing the dependencies between words from the word vectors using a bidirectional long short-term memory network model.

3. The method according to claim 1, characterized in that, The fault feature template includes the time-series fault features and log fault features of the target IT system at different fault stages. The fault feature template, obtained by the fault diagnosis agent by matching the time-series features and log features against a knowledge base, includes: The fault diagnosis agent matches the time-series features with the time-series fault features and the log features with the log fault features. The timing fault feature matched by the timing feature is determined to correspond to the first fault feature template of the first fault stage, and the log fault feature matched by the log feature is determined to correspond to the second fault feature template of the second fault stage. If the first fault feature template is the same as the second fault feature template, and the first fault stage is the same as the second fault stage, then the template matching is successful, and a successfully matched fault feature template is obtained. The successfully matched fault feature template is the first fault feature template of the first fault stage. If the first fault feature template is different from the second fault feature template, or the first fault stage is different from the second fault stage, then the template matching is determined to be unsuccessful.

4. The method according to claim 1, characterized in that, The method further includes: Obtain historical log data, and extract features from the historical log data to obtain historical log features; Fault type labels are set for the historical log features to obtain the first sample data; The first basic model is trained using the first sample data to obtain the first diagnostic model; Obtain historical time-series data; The historical time-series data is cleaned using time-series indicators to obtain fault time-series data. Extract fault timing features from the fault timing data; Fault stage labels are set for the fault timing features to obtain second sample data; The second basic model is trained using the second sample data to obtain the second diagnostic model.

5. The method according to claim 1, characterized in that, The diagnostic model includes a pre-trained first diagnostic model and a second diagnostic model. If template matching fails, the time-series features and the log features are input into the pre-trained diagnostic model to obtain a first fault detection result output by the diagnostic model, including: If template matching fails, the log features are input into the first diagnostic model through the fault diagnosis agent to obtain the first fault type; The fault diagnosis agent inputs the time-series features into the second diagnosis model to obtain the first fault stage. The first fault detection result is determined based on the first fault type and the first fault stage.

6. The method according to claim 4, characterized in that, The step of cleaning the historical time-series data to obtain fault time-series data includes: For indicators that do not have periodic characteristics in the historical time series data, the rolling quantile value of the indicators that do not have periodic characteristics in the previous time period is collected based on a preset time window. The rolling quantile value is used as the indicator threshold for the current time period, and the fault time series data is filtered based on the indicator threshold. For indicators with periodic characteristics in the historical time series data, construct historical benchmark templates for different periods; Calculate the similarity between the index with periodic characteristics and the corresponding historical benchmark template, distinguish normal business fluctuations from abnormal sudden traffic based on the similarity, and filter the fault time series data based on the abnormal sudden traffic.

7. A fault detection device, characterized in that, The device includes: The feature extraction unit is used to acquire time-series data and log data of the target IT system, extract time-series features from the time-series data, and extract log features from the log data. A topology building unit is used to build a topology graph of the target IT system, construct the node features of the topology graph based on the real-time status data of the components in the target IT system, and construct the adjacency matrix of the topology graph. The topology feature extraction unit is used to input the node features and the adjacency matrix of the topology graph into a pre-trained graph attention network to obtain topology features; The template matching unit is used to match the fault feature templates of the knowledge base with the fault diagnosis intelligent agent based on the time-series features and the log features. If the template matching is successful, the target fault detection result is output based on the successfully matched fault feature template. The model detection unit is used to input the time-series features and the log features into a pre-trained diagnostic model if template matching fails, and obtain the first fault detection result output by the diagnostic model. The first fault detection result includes a first fault type and a first fault stage. The feature matching unit is used to obtain fault node features by searching the fault transmission relationship topology based on the first fault diagnosis result through the fault diagnosis agent, and to match the fault node features with the corresponding node features in the topology features. If the feature matching is successful, the first fault detection result is used as the target fault detection result.

8. An electronic device, characterized in that, The electronic device includes a memory and a processor, the memory storing a computer program, and the processor executing the computer program to implement the method according to any one of claims 1 to 6.

9. A computer-readable storage medium storing a computer program, characterized in that, When the computer program is executed by a processor, it implements the method of any one of claims 1 to 6.

10. A computer program product, comprising a computer program, characterized in that, When the computer program is executed by a processor, it implements the method of any one of claims 1 to 6.