Log-based failure analysis method, device, storage medium, and program product
By analyzing the probability distribution and structural features of fault logs, and combining them with fault classification trees, structural correlation information and reliability are calculated to generate fault analysis results with high accuracy and reliability, thus solving the problem of low matching degree in traditional methods.
Patent Information
- Application Number
- CN202611265006.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-08-19
- Publication Date
- 2026-11-20
AI Technical Summary
Traditional fault analysis methods, when dealing with multi-class characteristic faults, only use the closest pair of labels, resulting in a low degree of matching between the analysis results and the actual faults, and insufficient reference value.
By acquiring fault logs, analyzing fault probability distribution, extracting structural feature information using fault classification trees, calculating structural correlation information and matching degree, recalling candidate fault data, and filtering reference fault data according to reliability, the final fault analysis results are generated.
It enables accurate diagnosis of multi-dimensional faults and provides mature and reliable recommended solutions, thereby improving the accuracy and reliability of fault analysis.
Smart Images

Figure CN123137983A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of intelligent operation and maintenance technology, and in particular to a log-based fault analysis method, apparatus, computer equipment, computer-readable storage medium, and computer program product. Background Technology
[0002] With the development of intelligent operation and maintenance technology, retrieving similar cases based on historical faults has become the mainstream mode of fault handling. By identifying the type of fault logs and retrieving similar historical faults from the knowledge base based on the identification results, operation and maintenance personnel can be assisted in quickly locating problems.
[0003] In traditional techniques, fault type identification results are often represented by a single label or a discrete set of labels, with only the few classification labels with the highest confidence levels forming a discrete set. When a fault has multiple classification features, existing methods only utilize the closest pair of labels, completely losing the information of the remaining labels. This results in a low degree of matching between the analyzed fault information and the actual fault, thus leading to low reference value of the fault analysis results. Summary of the Invention
[0004] Therefore, it is necessary to provide a log-based fault analysis method, apparatus, computer equipment, computer-readable storage medium, and computer program product that can ensure the degree of matching between the output fault analysis results and the actual faults and improve the fine-grainedness of the fault analysis results, in order to address the above-mentioned technical problems.
[0005] Firstly, this application provides a log-based fault analysis method, including:
[0006] Obtain fault logs; analyze the fault logs to obtain fault analysis data; the fault analysis data includes fault probability distribution;
[0007] Obtain the fault classification tree from the knowledge base. Based on the fault classification tree in the knowledge base, obtain the first structural feature information of the fault probability distribution and the second structural feature information of the fault probability distribution of the existing fault data. Based on the first and second structural feature information, obtain the structural association information between the fault analysis data and the existing fault data. Based on the structural association information, obtain the matching degree between the fault analysis data and the existing fault data.
[0008] Candidate fault data corresponding to the fault analysis data are determined based on the matching degree and existing fault data; reference fault data are determined based on the reliability of the candidate fault data.
[0009] Based on the fault diagnosis information corresponding to the fault analysis data and the fault resolution information corresponding to the reference fault data, fault analysis results corresponding to the fault log are generated.
[0010] Secondly, this application also provides a log-based fault analysis apparatus, comprising:
[0011] The fault analysis module is used to acquire fault logs; analyze the fault logs to obtain fault analysis data; the fault analysis data includes fault probability distribution.
[0012] The matching module is used to obtain the fault classification tree in the knowledge base, obtain the first structural feature information of the fault probability distribution and the second structural feature information of the fault probability distribution of the existing fault data based on the fault classification tree in the knowledge base, obtain the structural association information between the fault analysis data and the existing fault data based on the first and second structural feature information, and obtain the matching degree between the fault analysis data and the existing fault data based on the structural association information.
[0013] The reference determination module is used to determine candidate fault data corresponding to the fault analysis data based on the matching degree and existing fault data; and to determine reference fault data based on the reliability of the candidate fault data.
[0014] The result generation module is used to generate fault analysis results corresponding to the fault log based on the fault diagnosis information corresponding to the fault analysis data and the fault resolution information corresponding to the reference fault data.
[0015] Thirdly, this application also provides a computer device, including a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to implement the steps described in the above method embodiments.
[0016] Fourthly, this application also provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps described in the above method embodiments.
[0017] Fifthly, this application also provides a computer program product, including a computer program that, when executed by a processor, implements the steps described in the above method embodiments.
[0018] The aforementioned log-based fault analysis methods, devices, computer equipment, computer-readable storage media, and computer program products acquire and analyze fault logs to obtain fault analysis data containing fault probability distributions. They retain continuous probability distribution information of faults across multi-dimensional classification features, enabling faults with multi-dimensional composite features to undergo structural correlation comparison with historical cases (existing fault data) in a knowledge base based on their complete probability distribution. This fully leverages the handling experience gained from multi-dimensional correlations in historical cases. Furthermore, by extracting the first structural feature information of the fault probability distribution and the second structural feature information of the existing fault data probability distribution based on a fault classification tree, and calculating structural correlation information and matching degree accordingly, they can... It can accurately identify the spatial layout similarity between faults in adjacent branches on the fault classification tree, and then evaluate their experience transfer value. It can overcome the limitation of traditional methods that only rely on the shortest path distance of the nearest label pair and ignore the structural information of other labels. Subsequently, it recalls candidate fault data based on matching degree, and further filters reference fault data according to the reliability of candidate fault data. It prioritizes highly reliable historical cases that have been fully verified to participate in the recommendation. Finally, it generates fault analysis results by integrating the fault diagnosis information of the current fault analysis data and the fault resolution information of the reference fault data. It achieves decoupling output of diagnostic conclusions and recommended solutions, which can ensure both the accuracy of the current fault diagnosis and the maturity and reliability of the recommended solutions. Attached Figure Description
[0019] To more clearly illustrate the technical solutions in the embodiments of this application or related technologies, the drawings used in the description of the embodiments of this application or related technologies will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other related drawings can be obtained based on these drawings without creative effort.
[0020] Figure 1 This is a flowchart illustrating a log-based fault analysis method in one embodiment;
[0021] Figure 2 This is a flowchart illustrating the steps for obtaining fault logs in one embodiment;
[0022] Figure 3 This is a flowchart illustrating the steps for analyzing a fault log in one embodiment.
[0023] Figure 4 This is a flowchart illustrating the steps of obtaining the matching degree between fault analysis data and existing fault data based on structural association information in one embodiment.
[0024] Figure 5 This is a flowchart illustrating the steps of updating the fault analysis semantic vector and determining the vector strategy in one embodiment;
[0025] Figure 6 This is a flowchart illustrating the steps for obtaining processing information in one embodiment;
[0026] Figure 7 This is a flowchart illustrating the reliability upgrade steps for existing fault data in one embodiment.
[0027] Figure 8 This is a flowchart illustrating a log-based fault analysis method in another embodiment;
[0028] Figure 9 This is a flowchart illustrating a log-based fault analysis method in yet another embodiment;
[0029] Figure 10 This is a structural block diagram of a log-based fault analysis device in one embodiment;
[0030] Figure 11 This is an internal structural diagram of a computer device in one embodiment;
[0031] Figure 12 This is a diagram of the internal structure of a computer device in another embodiment. Detailed Implementation
[0032] 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 and not intended to limit the scope of this application.
[0033] In one exemplary embodiment, such as Figure 1 As shown, a log-based fault analysis method is provided. This embodiment illustrates the application of this method to a terminal, but it is understood that the method can also be applied to a server, or to a system including both a terminal and a server, and is implemented through interaction between the terminal and the server. The terminal can be, but is not limited to, various personal computers, laptops, smartphones, tablets, IoT devices, and portable wearable devices. IoT devices can include smart speakers, smart TVs, smart air conditioners, smart in-vehicle devices, projection devices, etc. Portable wearable devices can include smartwatches, smart bracelets, head-mounted devices, etc. Head-mounted devices can be virtual reality (VR) devices, augmented reality (AR) devices, smart glasses, etc. The server can be a standalone physical server, a server cluster or distributed system composed of multiple physical servers, or a cloud server providing cloud computing services.
[0034] In this embodiment, the method includes the following steps: wherein:
[0035] Step S102: Obtain the fault log; analyze the fault log to obtain fault analysis data.
[0036] Among them, the fault log refers to the raw data collected and recorded from the target information system or monitoring platform to record the current fault events.
[0037] Among them, fault analysis data refers to the data product containing fault characteristic information obtained by analyzing and processing fault logs, including fault probability distribution.
[0038] The fault probability distribution refers to the probability allocation of the currently analyzed faults across different fault analysis types. For example, the fault probability distribution could be {token expiration: 0.82; QR code failure: 0.05; tax bureau timeout: 0.04}. The fault analysis data can be stored in the form of a structure.
[0039] In addition, fault analysis data can also include fault analysis category, fault analysis text, and fault root cause information. It's important to note that fault type (fault analysis type) is different from fault category (fault analysis category). A fault category (fault analysis category) can include multiple fault types (fault analysis types). For example, a fault category can include login faults, data collection faults, parsing faults, network faults, and data faults. Login faults can correspond to fault types such as token expiration, QR code scanning failure, and system access timeout.
[0040] For example, in response to a target instruction—which could be triggered by a developer or operations personnel in a target group chat—the target agent initiates a parallel retrieval of log logs from the log platform based on the target instruction, obtaining the fault logs corresponding to the current fault. The log platform can be multiple log platforms corresponding to isolated deployment environments. For instance, if an error occurs in the data collection process for company A, logs related to company A can be extracted from log platforms corresponding to multiple isolated deployment environments. These logs are then subjected to difference analysis and timeline alignment to filter and obtain the fault logs corresponding to the current fault. These fault logs are then analyzed to obtain fault analysis data containing multi-dimensional information.
[0041] For example, these fault logs can be analyzed using a large language model, such as parsing, extracting features, and performing semantic understanding on the collected fault logs to obtain fault analysis data. Alternatively, the fault logs can also be processed using a rule engine to obtain fault analysis data.
[0042] Step S104: Obtain the fault classification tree in the knowledge base; obtain the first structural feature information of the fault probability distribution and the second structural feature information of the fault probability distribution of the existing fault data based on the fault classification tree in the knowledge base; obtain the structural association information between the fault analysis data and the existing fault data based on the first structural feature information and the second structural feature information; obtain the matching degree between the fault analysis data and the existing fault data based on the structural association information.
[0043] The knowledge base is a collection of information maintained for fault analysis. In addition to the fault classification tree, the knowledge base also stores multiple fault mode objects (i.e., existing fault data), a knowledge graph built based on some fault mode objects, and other information.
[0044] The fault classification tree is used to store the hierarchical relationship between each fault category and each fault type.
[0045] The first structural feature information refers to the feature representation extracted from the fault probability distribution of the current fault analysis data, reflecting the spatial distribution characteristics of the fault probability distribution on the fault classification tree. For example, the first structural feature information is the probability quality allocation of the fault probability distribution on the leaf nodes of the fault classification tree and the set of their node positions. The second structural feature information refers to the feature representation of the spatial distribution characteristics of the fault probability distribution of existing fault data on the fault classification tree. For example, the second structural feature information can be the probability quality allocation of the historical probability distribution of existing fault data on the corresponding leaf nodes and the set of their node positions. In addition to the probability quality allocation and node position set, the above structural feature information (first structural feature information or second structural feature information) may also include the level depth of the node where the probability quality is located, the length of the nearest common ancestor path between nodes, or the subtree coverage topology range, etc.
[0046] Existing fault data refers to data related to historical faults stored in the knowledge base. One existing fault data point can correspond to multiple historical fault analysis data points. The currently processed fault analysis data may or may not correspond to any existing fault data point in the knowledge base. If the currently processed fault analysis data corresponds to an existing fault data point in the knowledge base, then when updating the knowledge base based on the currently processed fault analysis data, the currently processed fault analysis data may be included in the set of historical fault analysis data corresponding to that existing fault data point. If the currently processed fault analysis data does not correspond to any existing fault data point in the knowledge base, a new fault pattern object can be created for that fault analysis data, and it can be stored as a new existing fault data point in the knowledge base. For example, suppose the currently processed fault analysis data is 'a', and the knowledge base stores existing fault data points B, C, and D, where B corresponds to historical fault analysis data points {b1, b2, b3}. If, after analysis, fault analysis data 'a' corresponds to existing fault data 'B', then the historical fault analysis data {a, b1, b2, b3} corresponding to 'B' can be updated. If, after analysis, fault analysis data 'a' does not correspond to any of the existing fault data B, C, or D, and is a completely new fault, then the knowledge base can be updated with fault analysis data A (corresponding to the fault mode object of 'a'), B, C, and D.
[0047] Among them, structural association information refers to the degree of association between fault analysis data and existing fault data in the tree structure space. For example, it can be structural similarity.
[0048] The matching degree is used to characterize the similarity between the fault analysis data and the existing fault data. It can be understood that if multiple existing fault data exist in the knowledge base, the matching degree between the currently processed fault analysis data and these multiple existing fault data will be obtained.
[0049] For example, a transmission cost matrix can be constructed based on the shortest path distance between each pair of leaf nodes in the fault classification tree. The two probability distributions are used as the source and target distributions, respectively, to solve the optimal transmission problem, and the obtained optimal transmission distance is used as structural association information. Alternatively, hierarchical association components, path association components, and node association components can be calculated based on hierarchical position, path features, and node relationships, and then weighted and fused using preset weights to obtain structural association information.
[0050] For example, the matching degree between fault analysis data and existing fault data can be directly obtained based on structural association information. Optionally, semantic information of fault analysis data and existing fault data can also be obtained separately to obtain semantic association information. The matching degree is then obtained by combining the structural association information and the semantic association information.
[0051] In addition, contextual information and impact scope information corresponding to the fault analysis data and existing fault data can be obtained separately, and the matching degree can be obtained based on the comprehensive information. Contextual information may include the operational stage in which the fault occurred, the deployment environment identifier, the target system identifier, and time characteristics. Impact scope information includes the number of entities affected by the current fault and the severity level of the impact.
[0052] Step S106: Based on the matching degree and existing fault data, determine the candidate fault data corresponding to the fault analysis data; based on the reliability of the candidate fault data, determine the reference fault data.
[0053] Among them, candidate fault data refers to historical fault records that are related to the current fault and are retrieved from the knowledge base, which can be a data set.
[0054] Among them, reference fault data refers to highly reliable historical records selected from the candidate set that are suitable for providing handling suggestions (fault solutions, etc.).
[0055] Reliability refers to a quantitative indicator characterizing the credibility of existing fault data after practical verification. Reliability can be determined based on the frequency of occurrence of existing fault data and the feedback received regarding that data (e.g., information on whether the fault was successfully resolved). For example, the more times existing fault data is recalled, the higher its reliability is likely to be. When the fault solutions corresponding to existing fault data are added to the fault analysis results, and feedback confirms that the solutions are of high quality (successfully resolved the fault), the reliability of the existing fault data can also be relatively improved.
[0056] For example, the existing fault data in the knowledge base can be sorted in descending order based on the matching degree, and a preset number of existing fault data at the top of the ranking can be determined as candidate fault data. Alternatively, candidate fault data can also be determined based on existing fault data with a matching degree higher than a preset threshold.
[0057] For example, the reliability level can be a comprehensive reliability score calculated based on the historical occurrence frequency and repair success rate, with the candidate fault data having the highest reliability level being selected as the reference fault data. Alternatively, the candidate fault data can be divided into stages such as the nascent stage, validation stage, mature stage, or expert stage based on the reliability level, with only candidate fault data in the mature stage or expert stage being selected as reference fault data.
[0058] It is understandable that if there is no existing fault data with a reliability level that meets the preset reliability conditions, the fault analysis data will be directly output as the fault analysis result. The fault analysis data may include fault solutions analyzed for the current fault using a large language model.
[0059] Step S108: Generate fault analysis results corresponding to the fault log based on the fault diagnosis information corresponding to the fault analysis data and the fault resolution information corresponding to the reference fault data.
[0060] Among them, fault diagnosis information refers to the analytical information obtained from fault analysis data that characterizes the nature and root cause of the current fault. For example, fault diagnosis information may include the fault type determination, root cause analysis description, and impact range assessment of the current fault.
[0061] Among them, fault resolution information refers to information provided by reference fault data that characterizes fault handling plans and remediation measures. Fault resolution information may include validated remediation scripts, action sequences, or corrective measures based on reference fault data.
[0062] For example, fault diagnosis information and fault resolution information can be combined in an associated mapping format to output a structured report. Alternatively, the corresponding handling plan template in the reference fault data can be automatically matched and populated based on the fault diagnosis information.
[0063] The aforementioned log-based fault analysis method obtains fault logs and analyzes them to obtain fault analysis data containing fault probability distributions. It retains continuous probability distribution information of faults across multiple classification features, enabling faults with multi-dimensional composite features to be structurally correlated with historical cases (existing fault data) in the knowledge base based on their complete probability distribution. This fully leverages the handling experience gained from multi-dimensional correlations in historical cases. Furthermore, by extracting the first structural feature information of the fault probability distribution and the second structural feature information of the existing fault data probability distribution from the fault classification tree, and calculating the structural correlation information and matching degree accordingly, it can accurately identify neighboring faults on the fault classification tree. By analyzing the spatial layout similarity between branch faults and then evaluating their experience transfer value, this approach overcomes the limitations of traditional methods that rely solely on the shortest path distance between the nearest label pairs while ignoring structural information from other labels. Subsequently, candidate fault data is recalled based on matching degree, and reference fault data is further filtered based on the reliability of the candidate fault data. This allows highly reliable historical cases that have been thoroughly validated to be prioritized for recommendation. Finally, fault analysis results are generated by fusing fault diagnosis information from current fault analysis data with fault resolution information from reference fault data. This achieves decoupling of diagnostic conclusions and recommended solutions, ensuring both the accuracy of current fault diagnosis and the maturity and reliability of the recommended solutions.
[0064] In an exemplary embodiment, after the above steps, the fault analysis results can be sent to the display device of the terminal, such as the target group chat that triggered the fault analysis process. In response to receiving feedback information regarding the fault analysis results, the knowledge base can be updated based on the feedback information. This allows the quality of recommended knowledge to monotonically improve over time, thereby enhancing the reliability and granularity of the output fault analysis results.
[0065] The following is a detailed description.
[0066] First, in some embodiments, such as Figure 2 As shown, to automate the fault analysis process and improve its convenience, group chat messages on the interactive interface of the display device can be monitored. Upon recognizing a target instruction in a specific format (e.g., recognizing an @ instruction), the fault analysis process corresponding to the target instruction is triggered. The target instruction includes at least four types: single-task analysis, batch-task analysis, historical query, and knowledge graph query.
[0067] The single-task analysis type corresponds to a target instruction carrying a single task identifier. That is, it retrieves the fault log corresponding to the single task identifier, analyzes the fault log, and obtains the corresponding fault analysis result. For example, upon receiving the target instruction, the terminal can send a confirmation message to the display device, and then asynchronously complete the fault analysis before actively pushing the fault analysis result.
[0068] Among them, the batch task analysis type corresponds to target instructions carrying multiple task identifiers. Compared to the single task analysis type, the processing procedure for the batch task analysis type is to execute a batch common fault analysis process, count the frequency of fault types for all tasks, and identify common and differential faults.
[0069] Among them, the historical query type corresponds to instructions that carry query keywords but not task identifiers. For such instructions, keyword retrieval can be performed in the fault knowledge base (i.e., the aforementioned knowledge base), returning a list of historical fault modes associated with the query keyword (i.e., a list containing at least one related existing fault data), and marking the reliability level corresponding to each existing fault data, such as the knowledge maturity stage.
[0070] Among them, the knowledge graph query type corresponds to instructions containing keywords such as graph, association, and propagation. For such target instructions, a graph traversal query can be performed on the knowledge graph in the knowledge base to return causal links and propagation paths.
[0071] In practical applications, hierarchical permission configuration tables can be set and maintained for various target commands. Query commands are accessible to all group members. Repair / execution commands are only accessible to authorized members. Knowledge base management commands are only accessible to administrators. All operations at authorized levels and above are logged with complete audit logs.
[0072] In some embodiments, such as Figure 3 As shown, in response to a target command, a retrieval command is sent to the deployment environment to obtain fault logs related to the target command. For example, if multiple deployment environments exist, the obtained fault logs can be time-aligned, and then difference detection processing can be performed on the time-aligned fault logs to obtain a difference report. Subsequently, the difference report and the time-aligned fault logs can be sent to a large language model for fault log analysis to obtain fault analysis data.
[0073] Specifically, searches are initiated in parallel across multiple isolated deployment environments. Alignment anchors are extracted based on a four-level priority (global event identifier, request link identifier, business serial number, and timestamp approximation) to map logs from each environment to a unified timeline. After alignment, the cross-environment difference detection module performs four-dimensional detections: configuration parameter differences, execution result differences, response latency differences, and error code differences, generating a structured difference report.
[0074] Next, the large language model receives the anonymized timeline-aligned log set and difference report, and outputs structured analysis results (i.e., fault analysis data) based on preset structured prompts. These results include fault type, fault description, root cause analysis, remediation suggestions, severity, and confidence fields. The output format validation can be retried up to three times if it fails, and a downgraded analysis result is returned after all three attempts are exhausted.
[0075] In addition to the structured analysis results described above, further analysis of the fault logs can be performed to obtain comprehensive fault analysis data. This data may include fault type, fault probability distribution, semantic information, contextual information, and scope of impact. Optionally, this data can be stored in the form of tags for later recall.
[0076] In some embodiments, after obtaining the fault logs, field-level desensitization can be performed before the fault log data is transmitted to the large language model (i.e., before the fault logs are analyzed). For example, hash desensitization is performed on the unique entity code, full placeholder replacement is performed on the identity credential field, middle bit masking is performed on the mobile phone number, and range-based processing is performed on the transaction amount. The desensitization mapping relationship is encrypted and stored locally, and is not transmitted to the external large language model with the log data, to ensure data security during the fault analysis process.
[0077] Next, candidate fault data matching the fault analysis data needs to be selected from the existing fault data to generate fault analysis results corresponding to the current fault. For example, after obtaining the fault probability distribution, the first structural feature information of the fault probability distribution and the second structural feature information of the fault probability distribution of the existing fault data are obtained based on the fault classification tree in the knowledge base. Then, based on the first and second structural feature information, the structural association information between the fault analysis data and the existing fault data is obtained. To enable direct analysis based on continuous probability distributions and fully consider the degree of association of the global structural information of the classification tree, the following steps can be performed: construct a transmission cost matrix based on the transmission cost between each pair of nodes in the fault classification tree; using the first fault probability distribution corresponding to the first structural feature information as the source distribution and the second fault probability distribution corresponding to the second structural feature information as the target distribution, calculate the target transmission distance between the source distribution and the target distribution that meets the preset conditions based on the transmission cost matrix; obtain the structural association information based on the target transmission distance.
[0078] In this context, the transmission cost refers to the structural distance cost required to transfer the probability quality of one node to another in a fault classification tree. It is usually determined by the path length or hierarchical difference between the two nodes in the tree.
[0079] Among them, a node pair refers to an ordered or unordered combination of any two nodes in the fault classification tree, which is used to characterize the source and target positions of probabilistic quality transfer.
[0080] The transmission cost matrix refers to a data structure stored in matrix form that records the transmission cost between all relevant node pairs in the fault classification tree. Its rows and columns correspond to each node in the classification tree, and the matrix element values are the transmission costs between the corresponding node pairs.
[0081] Among them, the source distribution refers to the first fault probability distribution extracted from the first structural feature information, which represents the probability allocation of the current fault analysis data on the fault classification tree, and serves as the probability quality output in the optimal transmission problem.
[0082] The target distribution refers to the second fault probability distribution extracted from the second structural feature information, which represents the probability allocation of existing fault data on the fault classification tree, and serves as the probabilistic quality receiver in the optimal transmission problem.
[0083] Among them, the preset conditions refer to the optimization objective constraints set when solving the optimal transmission problem. They are usually expressed as minimizing the total cost of the transmission scheme, or optimizing the regularization objective function under entropy regularization conditions.
[0084] The target transmission distance refers to the minimum total transmission cost required to completely transform the source distribution into the target distribution under the optimal transmission scheme that meets the preset conditions. It is used to quantify the overall difference between the two probability distributions in the tree structure space.
[0085] Specifically, such as Figure 4 As shown, firstly, during the initialization phase or when the fault classification tree changes, the cached transmission cost matrix is pre-calculated. Specifically, all relevant nodes in the fault classification tree are traversed, usually leaf nodes, but intermediate nodes can also be included depending on accuracy requirements. For each pair of nodes i and j, the shortest path distance in the tree is calculated as the transmission cost. If the edges of the fault classification tree are not assigned weights, the distance is the number of edges traversed in the path between the two nodes; if edges at different levels have different semantic distance weights, for example, the cost of moving across levels is higher than the cost between sibling nodes at the same level, the weights of each edge on the path can be accumulated as the transmission cost. The transmission costs of all node pairs are stored in an N-by-N two-dimensional array or hash map to form a transmission cost matrix C, where N is the number of nodes involved in the calculation, and C[i][j] represents the cost required to transfer a unit probability mass from node i to node j. When a new node is added to the fault classification tree, only the transmission cost between the new node and the existing nodes needs to be calculated and the matrix updated incrementally, without recalculating all node pairs.
[0086] Subsequently, the failure probability distribution of the current fault is extracted from the first structural feature information as the source distribution P, and the failure probability distribution of historical faults is extracted from the second structural feature information as the target distribution Q. Both the source distribution P and the target distribution Q are N-dimensional probability vectors, where the i-th component P_i or Q_i represents the value of the probability mass assigned to node i. If the structural feature information only contains the probability assignments of some nodes, the node components with unassigned probabilities are set to zero.
[0087] Next, based on the transmission cost matrix C, the optimal transmission problem between the source distribution P and the target distribution Q is solved to obtain the target transmission distance that meets the preset conditions. Specifically, an N-by-N transmission scheme matrix γ is found, where γ[i][j] represents the probability mass of transmission from node i to node j. This matrix must satisfy the marginal constraints: for each row i, the sum of the probability mass of transmission from node i to all target nodes equals P_i; for each column j, the sum of the probability mass of transmission from all source nodes to node j equals Q_j; and all γ[i][j] are greater than or equal to 0. The preset condition is to minimize the total transmission cost, that is, to minimize the sum of the products of each element of the transmission scheme matrix and the corresponding element of the transmission cost matrix. For scenarios with a small number of nodes N, such as no more than 30 leaf nodes, the Hungarian algorithm, the network simplex method, or the Earth Mover's Distance exact solution algorithm can be directly used to obtain the optimal transmission scheme matrix and the corresponding minimum total cost as the target transmission distance through linear programming. For scenarios with a large number of nodes, in order to reduce computational complexity, an entropy regularization term can be introduced into the objective function, and the Sinkhorn iterative algorithm can be used to quickly approximate the solution by alternating row and column normalization, so as to obtain the approximate minimum total cost as the target transmission distance.
[0088] Finally, structural association information is obtained based on the target transmission distance.
[0089] In this embodiment, by directly constructing the source and target distributions based on the continuous fault probability distribution, and using the global node distance information of the fault classification tree to solve the optimal transmission problem, it is possible to make faults with multi-dimensional composite features correlated with historical faults in an overall structural manner, thereby significantly improving the accuracy and robustness of fault similarity assessment.
[0090] In some embodiments, obtaining structural association information based on the target transmission distance includes: acquiring a target monotonically decreasing mapping function; mapping the target transmission distance to structural similarity based on the target monotonically decreasing mapping function; and determining structural association information based on structural similarity.
[0091] Among them, the monotonically decreasing mapping function can include the exponential decay function, the reciprocal function, the negative exponential function, or the Sigmoid function after translation and scaling.
[0092] Specifically, for each fault analysis data and existing fault data to be compared, the corresponding target transmission distance is substituted into the configured mapping function as the independent variable, and numerical calculation is performed. For example, when configured as an exponential decay function, the target transmission distance is multiplied by a negative decay coefficient and the natural exponent is calculated to obtain a structural similarity value between zero and one; when configured as a reciprocal function, the target transmission distance is substituted into the denominator expression and the quotient is calculated to obtain a normalized structural similarity value. In this process, if the target transmission distance is zero, that is, the probability distributions of the two faults completely overlap on the tree, the mapped structural similarity reaches its maximum value (usually one); if the target transmission distance approaches the maximum possible distance in the classification tree, the mapped structural similarity approaches its minimum value (usually zero). The calculated structural similarity value is temporarily stored in the result buffer or directly written to the matching result record as a preliminary quantitative representation of the structural correlation between the fault analysis data and the existing fault data, thereby obtaining structural correlation information.
[0093] In this embodiment, by introducing a target monotonically decreasing mapping function to convert the target transmission distance into a normalized structural similarity, comparable structural association information can be output, thereby significantly improving the stability and interpretability of fault similarity assessment.
[0094] like Figure 4 As shown, after obtaining structural association information, the matching degree between fault analysis data and existing fault data can be directly obtained based on the structural association information. Alternatively, it can be obtained by combining other types of data (such as semantic information, contextual information, and scope of influence information). When the structural association between two faults in the classification tree is weak, their textual semantic similarity is often highly random. In this case, assigning too high a decision weight to semantic similarity can easily lead to incorrect association of faults of different categories. Conversely, when the structural association is strong, differences in textual semantics are more likely to reflect different manifestations, triggering conditions, or supplementary information of the same type of fault. In this case, semantic similarity should be given higher trust to refine the differentiation of similar cases. Therefore, when combining semantic and structural association information to obtain the matching degree, the semantic association information can be adjusted based on the structural association information.
[0095] For example, the fault analysis data includes fault analysis text, and the existing fault data includes existing fault text. The matching degree between the fault analysis data and the existing fault data is obtained based on structural association information, including: obtaining semantic association information between the fault analysis text and the existing fault text; adjusting the weight of the semantic association information based on the structural association information; and obtaining the matching degree based on the adjusted semantic association information and structural association information.
[0096] Among them, the degree of structural association corresponding to structural association information is directly proportional to the weight of semantic association information.
[0097] Among them, fault analysis text refers to the text information that represents the current fault in natural language description after parsing, extracting and semantically understanding the fault log. For example, it may include error summary, description of abnormal phenomenon, trigger context or key text fragments in the stack.
[0098] Among them, the existing fault text refers to the text information in the knowledge base that describes the natural language content of the historical fault corresponding to the fault data that has been stored. It is usually comparable to the fault analysis text in terms of content dimension.
[0099] Among them, semantic association information refers to the quantitative information obtained by calculating the proximity between the fault analysis text and the existing fault text in the semantic vector space, which is used to characterize the similarity between the two texts in semantic content.
[0100] Specifically, first, the fault analysis text and existing fault text are obtained. Semantic encoding is performed on both texts to calculate semantic association information. For example, the fault analysis text and existing fault text can be input into a pre-trained language model to obtain dense semantic vector representations of fixed dimensions. Next, the cosine similarity between the two semantic vectors is calculated, and this cosine similarity value is used as the semantic association information.
[0101] Next, the weights of the semantic association information are adjusted based on the structural association information. First, the structural association information calculated in the previous steps is read. Then, based on the direct proportionality between the degree of structural association and the semantic weight, the current weight value of the semantic association information is dynamically calculated. For example, a base semantic weight and modulation coefficient can be preset. The semantic weight is calculated as the base weight plus the product of the modulation coefficient and the structural association information; that is, the higher the degree of structural association, the greater the semantic weight, and vice versa. Optionally, a piecewise linear modulation strategy can also be adopted. For example, when the structural association information is below a first structural threshold, the semantic weight is set to a lower base value; when the structural association information is between the first and second structural thresholds, the semantic weight is increased by linear interpolation; when the structural association information is above the second structural threshold, the semantic weight is set to a preset upper limit value. During this process, the structural association information itself can also be normalized to the zero-to-one range to ensure that the modulated semantic weight is within a reasonable numerical range, avoiding weight overflow or negative values.
[0102] Then, the matching degree is calculated based on the weighted semantic association information and structural association information. For example, the structural association information and the weighted semantic association information can be linearly fused to obtain the matching degree. The calculated matching degree value is used for subsequent candidate fault data screening. The existing fault data in the knowledge base can be sorted in descending order according to the matching degree, and existing fault data with matching degrees higher than a preset matching threshold can be included in the candidate fault data set, or a preset number of existing fault data with the highest ranking can be selected as candidate fault data.
[0103] In this embodiment, by introducing a proportional modulation relationship between the degree of structural association and semantic weight, a nonlinear adaptive fusion of semantic similarity and structural similarity is achieved. This allows subtle differences in text semantics to be fully captured and participate in similarity decision-making when two faults have a strong structural association on the classification tree. When the structural association is weak, the influence of semantic similarity is automatically suppressed, thereby effectively avoiding mismatches caused by cross-category word coincidences and missed matches caused by differences in expression within the same category. This significantly improves the accuracy and robustness of fault similarity assessment.
[0104] In practical applications, candidate fault data is a set of historical faults retrieved from the knowledge base based on matching degree, which have structural or semantic associations with the current fault. However, the retrieval results only reflect the similarity between historical faults and the current fault in the feature space, without considering the quality and credibility of the solutions carried by the historical faults themselves. The knowledge base inevitably contains recently entered fault records that have not yet been fully validated in practice. While these records may be highly similar to the current fault in superficial features, their associated solutions may be flawed, lack applicability, or even be misleading. Directly using all candidate fault data for recommendations may push unverified or low-quality solutions to users, leading to the risk of misoperation. Therefore, a secondary screening mechanism based on reliability needs to be introduced between candidate recall and final recommendation to distinguish the credibility levels of historical records, ensuring that only fully validated fault data enters the recommendation process. Thus, for example, determining reference fault data based on the reliability of candidate fault data includes: selecting target candidate fault data whose reliability meets preset conditions from multiple candidate fault data; and determining reference fault data based on the target candidate fault data.
[0105] Among them, the preset conditions refer to the judgment rules or threshold standards applied when screening target candidate fault data, which are used to define the minimum admission requirements for reliability.
[0106] Specifically, the first step involves reading the candidate fault data set retrieved from the previous steps based on matching degree. This set typically contains multiple existing fault data records. For each candidate fault data, its corresponding reliability index in the knowledge base is queried. This reliability index can be represented as a comprehensive reliability score, a reliability level label, or a quantitative value calculated based on historical feedback statistics. Its specific value or level has been obtained through the cumulative calculation of handling feedback information during the knowledge base maintenance process.
[0107] Next, preset conditions are obtained and applied to the screening of candidate fault data. Preset conditions can be in the form of a single threshold, such as requiring a reliability score no lower than a preset reliability threshold, or requiring a reliability level to reach the verification period or above. They can also be in the form of composite conditions, such as simultaneously requiring the frequency of occurrence to be no lower than a preset frequency threshold and the repair success rate to be no lower than a preset success rate threshold. The reliability of each candidate fault data point is compared item by item with the preset conditions, and candidate fault data that meets all conditions is retained to form the target candidate fault data set. Candidate fault data that does not meet the conditions is removed from the current recommendation process to prevent it from entering subsequent recommendation stages.
[0108] After obtaining the target candidate fault data set, reference fault data is determined based on this set. For example, if the target candidate fault data set contains only a single existing fault data, that existing fault data is directly determined as the reference fault data. If the target candidate fault data set contains multiple existing fault data, they can be further sorted based on their reliability, and the target candidate fault data with the highest reliability is determined as the reference fault data. Furthermore, when the target candidate fault data set is empty, i.e., when the reliability of all candidate fault data does not meet the preset conditions, low-reliability reference fault data may not be forcibly output.
[0109] In this embodiment, by introducing a reliability-based screening and reference determination mechanism after candidate recall, it can be ensured that only historical fault data that has been fully verified in practice and has high reliability can be used as a reference source to participate in the final recommendation. This effectively suppresses the contamination of the recommendation results by unverified or low-quality cases in the knowledge base, thereby significantly improving the accuracy and security of fault handling solution recommendations.
[0110] In practical applications, due to significant differences in the expression methods, recording granularity, and terminology used in fault logs from different sources, even faults with the same root cause may exhibit considerable dispersion in the semantic vector space, making it difficult to effectively cluster similar faults during retrieval. Therefore, the semantic vector of new faults (i.e., the current fault) can be corrected. For example, fault analysis data includes fault analysis text, and the method further includes: obtaining a category prototype vector library from a knowledge base; the category prototype vector library is used to store prototype vectors corresponding to at least one fault category; each prototype vector is configured with a category prototype reliability level; each fault category corresponds to at least one existing fault data; obtaining the fault analysis semantic vector corresponding to the fault analysis text; if the category prototype reliability level corresponding to each prototype vector in the category prototype vector library does not meet a preset reliability condition, then the fault analysis semantic vector is not updated; if there is an activated prototype vector in the category prototype vector library that meets the preset reliability condition, then the fault analysis semantic vector is updated based on the activated prototype vector to obtain the updated fault analysis semantic vector.
[0111] Among them, the category prototype vector library refers to the data structure deployed in the knowledge base for centrally storing the prototype vectors corresponding to each fault category.
[0112] Among them, the prototype vector refers to the vector that represents the central position or typical semantic features of a certain fault category in the semantic vector space. It can be obtained by aggregating the semantic vectors of historical fault data under that category and is used to represent the semantic benchmark of that category.
[0113] Among them, the reliability of the category prototype refers to the quantitative index configured on each prototype vector, which represents the degree to which the fault category corresponding to the prototype vector has been verified in practice. It is used to control whether the prototype vector is qualified to participate in semantic correction.
[0114] Among them, the preset reliability condition refers to the threshold standard or judgment rule applied when determining whether the prototype vector is allowed to participate in the semantic vector update. It usually requires the reliability of the category prototype to reach a specific level or numerical threshold.
[0115] Among them, the activated prototype vector refers to the prototype vector in the category prototype vector library whose category prototype reliability meets the preset reliability conditions and is therefore allowed to participate in the fault analysis semantic vector update operation.
[0116] Specifically, the first step is to retrieve the category prototype vector library from the knowledge base. Each entry in this library corresponds to a fault category, storing the current prototype vector and its category prototype reliability. The dimension of the prototype vector is consistent with the dimension of the vector output by the semantic encoding model. The category prototype reliability can be linked to a reliability level mechanism, such as being maintained by a knowledge maturity state machine. When there is at least one existing fault data in the expert stage under a certain fault category, the prototype vector of that category is assigned a category prototype reliability that meets the preset reliability conditions. Conversely, if the highest reliability level under that fault category is only the nascent stage or the verification stage, then its category prototype reliability does not meet the preset reliability conditions. For example, the category prototype reliability can be divided into a cold start stage, a progressive activation stage, and a progressive update stage. In the initial deployment phase, all category prototype vectors are in the cold start stage and do not participate in any correction calculations, ensuring normal operation even without any domain knowledge accumulation. When the first existing fault data under a certain fault category enters the expert stage, the fault semantic vector corresponding to the existing fault data is directly initialized as the prototype vector of that fault category, and the category prototype vector changes to the progressive activation stage. Subsequently, if new expert-level objects contribute, the prototype vector for that category enters a progressive update phase. In this phase, the prototype vectors are updated using a weighted average method; the more contributions a historical prototype vector makes, the higher its weight, ensuring stable convergence. It should be noted that both the prototype vectors in the category prototype vector library and the existing fault data have corresponding levels of reliability. For example, the prototype vectors can be divided into three phases: a cold start phase, a progressive activation phase, and a progressive update phase. Existing fault data can be divided into four phases: the nascent phase, the validation phase, the mature phase, and the expert phase.
[0117] Next, a pre-deployed semantic encoding model is invoked, and the fault analysis text is input into the model for forward inference to obtain the fault analysis semantic vector. Alternatively, the corresponding fault analysis semantic vector can be extracted directly from the fault analysis data.
[0118] Next, the system iterates through each prototype vector in the category prototype vector library, checking whether its category prototype reliability meets the preset reliability conditions. These preset reliability conditions can be statically set in the configuration, for example, requiring the category prototype reliability to be no lower than a specific numerical threshold, or requiring the reliability level label to be "expert period." If, after iteration, it is found that the category prototype reliability of all prototype vectors corresponding to the current fault analysis category does not meet the preset reliability conditions, the update operation for the fault analysis semantic vector is directly abandoned. The fault analysis semantic vector output by the original large language model is then passed unchanged to the subsequent matching degree calculation stage, avoiding semantic drift caused by the intervention of low-quality prototypes.
[0119] If, during the traversal, at least one prototype vector is found to have a category prototype reliability that meets a preset reliability condition, these prototype vectors are marked as activated prototype vectors, and an update operation is performed on the fault analysis semantic vector based on the activated prototype vectors. For example, for all activated category prototype vectors, an attention relevance score is calculated between the fault analysis semantic vector and each prototype vector. If an attention relevance score exceeds a preset correction threshold, the fault analysis semantic vector is updated based on the target prototype category corresponding to the target prototype vector with that attention relevance score, so that the updated vector is moderately shifted towards the category center represented by the activated prototype vector. If no attention relevance score exceeds the preset correction threshold, the fault analysis semantic vector is not updated.
[0120] Optionally, when updating the fault analysis semantic vector based on the target prototype category corresponding to the target prototype vector corresponding to the attention relevance score, the category prototype vector can be incorporated into the fault analysis semantic vector with a weighted strength that is positively correlated with the attention score. It can be understood that the higher the attention score, the greater the correction magnitude.
[0121] In this embodiment, by introducing a selective semantic correction mechanism based on the reliability of category prototypes, it is possible to effectively prevent low-quality, unverified category prototypes from polluting the semantic vectors of new faults. This ensures that only highly reliable expert knowledge that has been fully verified in practice can participate in the shaping and correction of the semantic space. As a result, the degree of aggregation of similar faults in the semantic vector space continues to improve with the accumulation of knowledge, forming a positive cycle in which the retrieval quality and recommendation accuracy improve monotonically with running time.
[0122] To improve the accuracy of fault analysis, the knowledge base can be updated and maintained. However, in some embodiments, the textual representation of fault logs has high uncertainty. For example, faults with different root causes may exhibit high superficial similarity in the semantic vector space due to sharing some error keywords, similar error code formats, or similar system module descriptions. Therefore, a multi-strategy branching mechanism based on semantic consistency can be introduced during the knowledge base update process to select differentiated update intensities based on the true semantic fit between new and historical faults. For example, such as... Figure 5 As shown, the fault analysis data includes fault analysis text. The method further includes: updating the knowledge base based on the fault analysis data; when updating the knowledge base based on the fault analysis data, obtaining the fault analysis semantic vector corresponding to the fault analysis text; determining the vector update strategy based on the semantic consistency between the fault analysis semantic vector and the semantic vector of the target existing fault data; the vector update strategy includes at least a convergent update strategy, a conservative update strategy, or a rejection update strategy; the fault category in the target existing fault data is consistent with the fault analysis category.
[0123] Among them, the vector update strategy refers to the specific vector merging or isolation scheme selected based on the degree of semantic consistency between the new fault and the target historical fault when integrating the semantic information of the new fault into the existing knowledge base. It is used to control the evolution direction and update intensity of the semantic vectors in the knowledge base.
[0124] The convergence update strategy refers to the vector update method adopted when the semantic consistency between the new fault and the target historical fault is at a high level. It is characterized by weighting the new and old semantic vectors with the number of times they occur in the past as the weight, so that the updated vector smoothly converges to the semantic center of the fault category.
[0125] The conservative update strategy refers to a vector update method adopted when the semantic consistency between the new fault and the target historical fault is at a moderate level. This is manifested in significantly increasing the weight of historical semantic vectors and reducing the influence of new semantic vectors during the weighted fusion process, in order to suppress the excessive dilution of existing semantic centers by single representation differences.
[0126] The "reject update" strategy refers to a vector isolation method adopted when the semantic consistency between a new fault and a target historical fault is below an acceptable level. This manifests as completely preserving the historical semantic vector, refusing to merge the semantic vector of the new fault into the target historical fault, and recording this semantic divergence event for subsequent processing.
[0127] Specifically, when updating the knowledge base based on fault analysis data, the first step is to identify the existing fault data to be updated. This existing fault data refers to the existing records in the knowledge base that match the new fault, and its fault category field must be consistent with the fault analysis category of the current fault analysis data to ensure that the update operation is performed only within the same category.
[0128] First, retrieve the currently stored semantic vector of the target's existing fault data from the knowledge base, and denote it as the historical semantic vector. Then, obtain the fault analysis semantic vector corresponding to the current fault.
[0129] Subsequently, the semantic consistency between the fault analysis semantic vector and the historical semantic vector is calculated. For example, cosine similarity can be used as a quantitative indicator of semantic consistency.
[0130] Next, the vector update strategy is determined based on the semantic consistency score. For example, two consistency thresholds can be pre-configured, denoted as the first consistency threshold and the second consistency threshold, with the first consistency threshold being higher than the second consistency threshold.
[0131] Execution branch judgment: If the semantic consistency score is higher than the first consistency threshold, then a convergence update strategy is adopted. Under this strategy, the historical occurrence counts of the target's existing fault data can be obtained. The historical semantic vector and the fault analysis semantic vector are then weighted and averaged according to their historical occurrence counts. That is, the historical semantic vector is multiplied by the historical occurrence count plus one, added to the new vector, and then divided by the historical occurrence count plus two to obtain the updated semantic vector. This allows the new vector to be smoothly integrated into the historical semantic center while maintaining the dominant position of historical accumulation.
[0132] If the semantic consistency score falls between the second consistency threshold and the first consistency threshold, a conservative update strategy is adopted. Under this strategy, a weighted average is still performed, but the weight of the fault analysis semantic vector is significantly reduced. For example, the weight of the historical semantic vector is set to a preset multiple (e.g., five to ten times) of the weight of the fault analysis semantic vector, or the weight coefficient of the new vector is set to a fixed value much smaller than that of the historical vector (e.g., 0.1 to 0.2), thereby ensuring that the existing semantic information is not excessively diluted by a single wording difference.
[0133] If the semantic consistency score is lower than the second consistency threshold, a rejection update strategy is adopted. Under this strategy, the vector merging operation is completely skipped, and the historical semantic vectors remain unchanged. Simultaneously, a semantic divergence event record is appended to the divergence record field of the target existing fault data. The record content may include the identifier of the current fault analysis data, the divergence timestamp, and the semantic consistency score. If the cumulative number of semantic divergence events associated with the target existing fault data reaches a preset divergence threshold, it is determined that there is a substantial semantic difference between the current fault analysis data and the target existing fault data. This triggers the process of creating a new fault data object, writing the current fault analysis data as an independent new record to the knowledge base, rather than continuing to attempt to merge it into an existing record.
[0134] In this embodiment, by introducing a three-strategy hierarchical update mechanism based on semantic consistency, highly consistent faults can smoothly converge to the semantic center, moderately consistent faults have a limited impact on historical vectors with conservative strength, and low-consistency faults are completely isolated and trigger divergence management. This effectively blocks the chain reaction of error merging caused by similar wording but different root causes, thereby ensuring the long-term purity of the semantic space of the knowledge base and the accuracy of retrieval.
[0135] In some embodiments, to enable the knowledge base to dynamically adjust the reliability of each fault record based on real-world application effects and drive knowledge to continuously evolve from low reliability levels to high reliability levels, while triggering corresponding knowledge refinement and structuring operations, and achieving monotonically increasing rather than degrading knowledge quality over time, the following steps can be performed: updating the knowledge base based on fault analysis data; when updating the knowledge base based on fault analysis data, associating the fault analysis data with target existing fault data based on matching degree; updating the occurrence frequency and repair success rate of the target existing fault data based on the handling feedback information corresponding to the fault analysis data; the handling feedback information is the feedback information received after sending the fault analysis results to the target terminal; based on the updated occurrence frequency and updated repair success rate, determining whether the target existing fault data meets the reliability level upgrade conditions; if it does, unidirectionally upgrading the target existing fault data from the current reliability level to the next reliability level, and triggering the preset knowledge processing operation corresponding to the next reliability level.
[0136] Among them, the handling feedback information refers to the feedback information received from the target terminal or related channels after the fault analysis results are sent to the target terminal, which characterizes the fault handling process and the handling effect, and is used to evaluate the practical application value of the fault analysis results.
[0137] The occurrence count refers to the total number of times that the target's existing fault data has been associated with and participated in the handling recommendation since its creation.
[0138] Among them, the repair success rate refers to the proportion of times that the handling plan associated with the existing fault data of the target has been verified as successfully resolving the fault in historical applications, out of the total number of times the fault record occurs.
[0139] Among them, the reliability upgrade conditions refer to the quantitative judgment criteria that the existing fault data of the target must meet to be upgraded from the current reliability level to the next higher reliability level. It can be composed of the occurrence threshold and the repair success rate threshold.
[0140] Among them, one-way upgrade refers to a state transition constraint mechanism that only allows the reliability level of existing fault data to migrate from a low level to a high level, and does not allow it to regress to a low level due to negative feedback or statistical fluctuations.
[0141] Among them, the preset knowledge processing operation refers to the knowledge processing or refinement task corresponding to the reliability level that is triggered synchronously when the reliability level is upgraded. It is used to transform low-level knowledge into higher-level structured or expert knowledge.
[0142] Specifically, after generating the fault analysis results and completing the external output, the knowledge base update process can be initiated. First, based on the matching degree calculated in the previous steps, the current fault analysis data is associated with the target existing fault data. For example, the existing fault data with the highest matching degree can be determined as the target existing fault data for this association, and the identifier, association timestamp, and matching degree value of the current fault analysis data are written to the association history log of the target existing fault data. Optionally, if there are multiple existing fault data with matching degrees all exceeding a preset association threshold, the current fault analysis data can be associated with the existing fault data with the highest matching degree and the same fault category; or if the matching degree of the existing fault data with the highest matching degree is lower than the preset threshold, the current fault analysis data can be created as a new independent fault data object in the knowledge base without performing subsequent association updates.
[0143] Subsequently, the fault analysis results are sent to the target terminal, which can be the operator's terminal, the execution interface of the automated operation and maintenance platform, or the processing node of the fault ticket system. Upon receiving the fault analysis results, the target terminal performs corresponding fault investigation and repair operations based on the fault diagnosis and resolution information contained within. After the handling process is completed, the target terminal or the associated monitoring feedback module returns handling feedback information to the system. This handling feedback information can take various forms: for example, it could be confirmation information of the repair effect submitted by the operation and maintenance personnel on the terminal interface, including markers for successful, failed, or partially repaired repairs; it could also be the task execution status code collected by the automated operation and maintenance platform after executing the repair script, success indicators in the logs, or abnormal error messages; or it could be the valid or invalid judgment result obtained after semantic understanding of the natural language feedback text parsed from the operation and maintenance group chat.
[0144] After receiving the feedback information on the handling, it is analyzed and standardized to extract binary or multivariate judgment results that characterize the success or failure of the handling.
[0145] Next, the occurrence count and repair success rate of the target's existing fault data are updated based on the parsed handling feedback information. Specifically, the occurrence count field of the target's existing fault data is incremented by one to record instances where the historical fault solution is referenced again. Simultaneously, the repair success rate is updated based on the success or failure determination in the current handling feedback information: for example, if the feedback information indicates successful handling, the success count is incremented by one, and the repair success rate is recalculated as the ratio of the success count to the updated occurrence count. If the feedback information includes a partially successful repair or downgrade status, it can be included in the success count according to a preset conversion factor, or the repair success rate can remain unchanged while recording a partial repair marker. The updated occurrence count and repair success rate are persistently written to the corresponding fields of the target's existing fault data in the knowledge base.
[0146] Then, the reliability upgrade conditions are read, and the updated occurrence count and repair success rate are compared with these conditions. The reliability upgrade conditions are predefined in the configuration and can include two dimensions: an occurrence count threshold and a repair success rate threshold. For example, the conditions for upgrading from the nascent stage to the verification stage can be configured as follows: the occurrence count is not less than the first occurrence threshold and the cumulative positive feedback count is not less than one; the conditions for upgrading from the verification stage to the mature stage can be configured as follows: the occurrence count is not less than the second occurrence threshold and the repair success rate is not less than the first success rate threshold; the conditions for upgrading from the mature stage to the expert stage can be configured as follows: the occurrence count is not less than the third occurrence threshold and the repair success rate is not less than the second success rate threshold. Each existing faulty data of the target is checked to see if it meets the upgrade conditions for the next level corresponding to its current reliability level.
[0147] If, after comparison, the reliability upgrade conditions are met, the target's existing faulty data will be unidirectionally upgraded from the current reliability level to the next reliability level. This upgrade operation has a unidirectional constraint, meaning that regardless of whether negative feedback is subsequently received, the upgraded target's existing faulty data cannot be reverted to the original level. If quality degradation or negative feedback occurs, it can be characterized through a confidence decay mechanism or weight adjustment mechanism independent of the reliability level, without triggering a level downgrade. Simultaneously with the level upgrade, the preset knowledge processing operation corresponding to the next reliability level is atomically triggered.
[0148] In some other implementations, such as Figure 6 As shown, after receiving multi-dimensional feedback information, the feedback can be weighted and aggregated to obtain a comprehensive confidence level. This comprehensive confidence level is then used to update the repair success rate. For example, the feedback information can include feedback from three channels: group chat, automatic detection, and manual annotation. Group chat feedback involves parsing the natural language expressions of group chat replies and outputting a three-category judgment: valid, partially valid, and invalid. Automatic detection feedback involves a scheduled detection task initiated after repair execution, periodically collecting the task execution success rate within a preset detection window, comparing it with normal and alarm thresholds, and then outputting the judgment result. Manual annotation feedback involves developers submitting a zero-to-five-point performance rating on the management interface; manual annotation feedback has the highest weight, overriding the judgment results from other channels. Then, within a preset aggregation time window, the comprehensive confidence level adjustment can be calculated using a weighting of 0.5 for manual annotation, 0.35 for automatic detection, and 0.15 for group chat interaction, updating the confidence level and repair success rate of the fault mode object, and triggering preset knowledge processing operations corresponding to the reliability level.
[0149] In this embodiment, by establishing a closed-loop update mechanism based on handling feedback information, the reliability of historical fault records can be continuously accumulated and quantitatively improved based on the actual handling effect, while driving the corresponding level of knowledge structure refinement and semantic space optimization, thereby effectively solving the problem of coexistence of knowledge base growth and quality degradation.
[0150] In some embodiments, as described above, the fault analysis data includes fault root cause information, and the reliability level includes at least triggering a preset knowledge processing operation corresponding to the next reliability level, including: when the next reliability level is the third target stage, acquiring historical fault root cause information corresponding to the target existing fault data, extracting consensus information from multiple historical fault root cause information, and updating the fault root cause information corresponding to the target existing fault data based on the consensus information; when the next reliability level is the fourth target stage, updating the prototype vector corresponding to the fault category corresponding to the target stored fault data based on the fault semantic vector corresponding to the target stored fault data.
[0151] Among them, historical fault root cause information refers to multiple root cause description records that are associated with the target's existing fault data and are accumulated during each fault hit and analysis process. They are usually stored in the historical root cause field or associated log table of the fault data in chronological order.
[0152] Consensus information refers to common feature elements or core descriptive patterns that recur stably in multiple records, obtained from multiple historical failure root cause information through pattern recognition, semantic extraction, or statistical analysis.
[0153] The third target stage refers to a specific high-order stage in the reliability level system, corresponding to a mature state where fault data has a sufficient practical verification basis and meets the triggering conditions for root cause structure extraction. For example, the maturity stage mentioned above.
[0154] The fourth objective stage refers to the highest stage in the reliability level system, corresponding to an expert state where fault data has become an authoritative reference for that type of fault and meets the triggering conditions for category prototype vector updates. For example, the expert period mentioned above.
[0155] For example, when upgrading to the mature stage, a root cause structure extraction operation is triggered. This involves extracting consensus patterns from historical root cause descriptions of existing fault data for the target, generating structured expert knowledge containing triggering conditions, core fault mechanisms, immediate handling actions, and fundamental rectification measures, and writing this knowledge into the corresponding fields. When upgrading to the expert stage, a category prototype vector update operation is triggered. This updates the corresponding prototype vector in the category prototype vector library based on the semantic vectors of existing fault data for the target and other similar high-reliability data (other existing fault data of the same category upgraded to the expert stage). The level status change and the triggered knowledge processing operation are included in the same transaction management. If the knowledge processing operation fails, the level upgrade operation is rolled back to ensure the consistency of the knowledge base state.
[0156] like Figure 7 As shown, when the reliability of existing fault data changes, its corresponding recommendation weight also changes. Subsequent decisions regarding reference fault data can be based on this recommendation weight.
[0157] In this embodiment, by performing root cause structure extraction and category prototype vector update, the description of the root cause of the fault can be transformed from the random output of a single analysis into structured consensus knowledge after multiple rounds of verification. The category center of the semantic space is continuously calibrated towards highly reliable expert knowledge, which significantly improves the long-term accuracy, consistency and retrieval stability of the knowledge base.
[0158] In one exemplary embodiment, such as Figure 8 As shown, the following steps can be performed to perform fault analysis and knowledge base maintenance:
[0159] Step 1: Configure the intelligent agent to listen to group chat messages. Upon detecting a command containing trigger keywords and a task identifier (i.e., a target command in a target format), identify the command type and extract the task identifier. The task identifier can be, for example, a company identifier, an organization identifier, etc.
[0160] Step 2: Based on the task identifier, initiate retrieval requests in parallel to the log platforms of multiple isolated deployment environments. Using the global event identifier as the alignment benchmark, merge the logs of each environment along a unified timeline, perform cross-environment difference detection, and obtain the fault log.
[0161] Step 3: Align the timeline log set with the preset system prompt word template to construct structured prompt words, input them into the large language model, and output structured analysis results (i.e., fault analysis data) containing fault type, fault description, root cause analysis, repair suggestions, severity and confidence level.
[0162] Step 4: Perform four-layer automatic tagging processing, where the fault type tag retains the complete probability distribution (i.e., fault probability distribution) for subsequent optimal transmission calculation.
[0163] Step 5: Treat the complete probability distribution as the quality distribution on the leaf nodes of the classification tree. Calculate the structural similarity based on the pre-computed transmission cost matrix using the optimal transmission method. After weighting and combining the structural similarity with semantic similarity, context matching degree, and influence range matching degree, return the Top-K candidates (i.e., candidate fault data).
[0164] Step Six: Based on the comparison between the matching score (i.e., matching degree) and the preset merging threshold, perform merging or addition, that is, consider whether to include the current fault analysis data into the historical fault analysis data set corresponding to the existing fault data. Maintain the knowledge maturity status (i.e., the reliability level corresponding to the existing fault data), trigger root cause structure extraction in the maturity stage (i.e., the third objective stage), and trigger category prototype vector update in the expert stage (i.e., the fourth objective stage).
[0165] Step 7: Calculate the attention correlation between the new fault semantic vector (i.e., the fault analysis semantic vector) and the activated category prototype vector. If the correlation exceeds the correction threshold, perform conditional weighted correction.
[0166] Step 8: Calculate the consistency score between the new and old semantic vectors (i.e., calculate the semantic consistency between the fault analysis semantic vector and other existing fault data under the same fault category), and select one of the three strategies based on the score: normal convergence update, conservative update, or rejection update.
[0167] Step 9: Push the results and collect feedback from the three channels, integrate them according to weights, update the knowledge base, and drive the maturity status transition assessment.
[0168] From the perspective of data flow, such as Figure 9As shown, this embodiment includes a data-driven fault handling process (forward flow) and a result-driven knowledge evolution process (backward feedback). Specifically, the forward flow is as follows: 1. Developers send an @ instruction in a group chat, including the task identifier task_id. 2. After parsing the instruction type, the AI Agent Bot initiates parallel searches to log platforms in multiple isolated deployment environments. 3. The search results are input into a large language model after cross-environment difference detection and timeline alignment to generate structured analysis results. 4. The analysis results undergo four layers of automatic tagging processing (fault type tag, semantic feature tag, context tag, and impact scope tag), where the fault type tag retains the complete probability distribution. 5. The tree structure similarity calculation engine matches the current analysis results with existing fault pattern objects in the knowledge base and returns the Top-K best matches. 6. Based on the matching results, the current analysis is merged, updated, or added, and the knowledge maturity status is evaluated. 7. The semantic vector of the new fault is written to the knowledge base after hierarchical perception correction and distillation update. 8. The analysis results, historical reference cases, and matching scores are pushed to developers in a formatted way via group chat messages. 9. The knowledge base is updated and maturity state transitions are driven by a weighted combination of feedback from developers, automatic detection results, and manual annotation results.
[0169] Reverse Feedback (Outcome-Driven Knowledge Evolution): 10. When maturity reaches the mature stage, root cause structure extraction is triggered, refining the accumulated original root cause descriptions into structured expert knowledge. 11. When maturity reaches the expert stage, category prototype vector updates are triggered, contributing stable semantic vectors to the corresponding category's prototype vector. 12. The updated category prototype vectors continue to correct the semantic vectors of subsequent new faults, forming a positive cycle of knowledge accumulation and vector quality.
[0170] The following examples illustrate this.
[0171] Example 1: Handling the first fault after a system cold start (early stage knowledge creation).
[0172] Scenario: After the system was first deployed, the first failure occurred - the credit space batch collection task failed on a large scale due to token expiration.
[0173] Trigger: The operations engineer sends the @ command "@logAI TASK_20241001_001" in the group chat.
[0174] Processing Procedure: Upon receiving the instruction, the agent immediately replies with a confirmation message ("Analysis request received, expected completion in approximately 30-60 seconds"), and asynchronously initiates the analysis process. The log acquisition module retrieves credit space and tax space logs (logs from multiple deployment environments) in parallel, merges them using the global link identifier as the alignment anchor, and detects the unique error code ERR_TOKEN_EXPIRED_401 specific to the credit space. After large language model analysis, the structured results are output: the fault type is login anomaly, the fault description is "a large number of credit space tokens expired, causing login failures for 156 enterprises," the root cause is "the unified setting of token expiration time caused batch tasks to trigger failure simultaneously," and the recommended remediation solutions include calling the token batch reset interface and adjusting the token expiration distribution strategy. The severity level is P1, and the confidence level is 0.88%.
[0175] Knowledge base processing: The knowledge base is currently empty, with no historical matching objects (i.e., no existing fault data). A new fault mode object is created directly (i.e., an existing fault data object is created), numbered FP_001. Knowledge maturity (i.e., reliability) is set to the nascent stage, with a recommended weight coefficient of 0.60. The fault probability distribution is fully stored (token expiration 0.82%, QR code failure 0.05%, tax bureau timeout 0.04, etc.). All category prototype vectors are in a cold state, and semantic vector correction is not performed.
[0176] Feedback Collection: After the operations engineer manually resets the token, they reply "Valid" in the group chat. The automatic detection unit detected that the data collection success rate had recovered to 94% after 30 minutes, thus determining it as valid. The overall confidence adjustment is positive, the FP_001 confidence is updated, and the repair success rate is updated to a total of one success per instance. The occurrence count is one, indicating that the upgrade conditions have not yet been met; it remains in the nascent stage.
[0177] Example 2: The same fault occurs again (verification period upgrade and distilled vector update).
[0178] Scenario: Two weeks later, the same fault occurred again (TASK_20241015_089).
[0179] Processing Procedure: The new fault probability distributions (token expiration 0.79, QR code failure 0.08, tax bureau timeout 0.06, etc.) output by the large language model analysis engine, and the probability distribution of FP_001 (token expiration 0.82, QR code failure 0.05, tax bureau timeout 0.04, etc.) are compared using optimal transmission calculations. The primary quality of both distributions is concentrated at the token expiration node, while secondary quality is distributed among sibling nodes under the same parent node (login anomaly). Overall transmission cost is low, and structural similarity is close to the maximum. Context matching (environmental identifier and operation stage matching, different time features) is moderate. The overall score exceeds the merging threshold, so a merge update is performed.
[0180] Distilled Vector Update: The semantic description of this failure is "Batch expiration of credit space authentication tokens caused a large number of data collection tasks to be interrupted," which differs significantly from the previous description, "The unified setting of token expiration time caused batch tasks to fail simultaneously." The calculated new and old semantic vectors are both 0.81, falling within the conservative update range (between 0.65 and 0.85). A conservative update is performed, using a historical retention coefficient of 0.85 for weighted fusion. Historical semantic information is fully preserved, and the new wording only brings minor adjustments.
[0181] Knowledge base upgrade: The occurrence count of FP_001 has been updated to twice, and there has been one positive feedback. The conditions for upgrading to the verification period have been met (the occurrence count is not less than twice and the positive feedback is not less than once). The status has been upgraded from the nascent stage to the verification stage, and the recommendation weight coefficient has been increased to 1.00.
[0182] Example 3: Knowledge accumulation to maturity stage (triggered by root cause structure extraction).
[0183] Scenario: After three months of operation, the number of FP_001 (token failure) occurrences reached five times, and the repair success rate stabilized at 83%, meeting the conditions for maturity upgrade.
[0184] Maturity upgrade trigger: When the knowledge maturity state machine detects that FP_001 meets the maturity conditions (occurring at least five times and with a success rate of at least 70%), it executes a state upgrade and triggers root cause structure extraction.
[0185] Root cause structured extraction execution: Collect root cause description texts from five historical AI analyses of FP_001, including descriptions from different angles such as unified token expiration time settings, batch invalidation of authentication tokens, unified token expiration at the top of the hour, lack of distributed token expiration strategy, and improper token lifecycle management. The resulting consensus-based structured root causes include: the triggering condition is that the credit space token expiration time is not distributed and batch collection tasks are concentrated around the token expiration time; the core fault mechanism is the time coupling between the unified token expiration time strategy and the batch collection tasks; the priority of immediate handling actions is batch resetting the interface (first) and switching to a backup authentication channel (second choice); the fundamental rectification measures are adopting a random offset distribution strategy and adding token validity pre-check logic. The structured root cause object replaces the original root cause description, the recommendation weight coefficient is increased to 1.30, and the vector state is upgraded to stable.
[0186] Example 4: Knowledge Accumulation to Expert Stage (Category Prototype Vector Activation).
[0187] Scenario: After six months of system operation, the number of times FP_001 occurred reached fifteen, and the repair success rate stabilized at 87%, meeting the conditions for expert upgrade.
[0188] Expert phase upgrade triggered: The knowledge maturity state machine detects that FP_001 meets the expert phase conditions (occurrence frequency not less than 15 times and success rate not less than 85%), executes a state upgrade, and triggers the update of the login exception category prototype vector. The prototype vector of the login exception category was previously in a cold state (the first expert phase failure in this system), and is now activated by directly initializing the login exception category prototype vector with the stable semantic vector of FP_001.
[0189] Positive feedback loop effect: Subsequently, when a new login anomaly occurs (such as QR code failure), if the attention relevance score between its original semantic vector and the login anomaly category prototype vector exceeds the correction threshold (0.73 exceeds 0.60), hierarchical perceptual correction is performed, and the corrected vector moves closer to the semantic center of the login anomaly. Simultaneously, tree structure similarity calculation shows that QR code failure and token expiration belong to the same login anomaly category and have high structural similarity. The comprehensive score resulted in the successful recall of FP_001. As a reference case, developers can refer to the token expiration handling framework to consider optimization directions for QR code failure, demonstrating a positive feedback loop between knowledge accumulation and vector quality.
[0190] Example 5: Batch task analysis mode.
[0191] Scenario: In a certain batch of data collection, eighteen tasks simultaneously reported network anomalies, suspected to be due to a batch of proxy IPs becoming invalid.
[0192] Trigger: The developer sends a batch command containing eighteen task_ids in a group chat.
[0193] Processing Procedure: The intelligent agent was identified as a batch task analysis mode, performing log retrieval and AI analysis in parallel on eighteen tasks. Frequency analysis of fault type tags revealed that proxy IP failure and connection timeout (both belonging to the network anomaly category) each occurred sixteen times (89%), exceeding the commonality threshold of 50%, thus identified as common fault types. DNS resolution failure occurred twice, identified as a differential fault. The common context tags intersected with the environmental identifier "Credit Space," the operation stage "Collection," and the time feature "Workday." The generated batch analysis summary was: "Common Fault: Network Anomaly > Proxy IP Failure (eighteen out of sixteen tasks, accounting for 89%); Common Root Cause: Credit Space proxy IP pool resources exhausted or batch failure; Differential Distribution: Two tasks were DNS resolution failures, handled independently." The batch summary was pushed to the group chat, and a common fault pattern object was added to the knowledge base, with the initial occurrence count set to sixteen.
[0194] It should be understood that although the steps in the flowcharts of the above embodiments are shown sequentially according to the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless explicitly stated herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least some steps in the flowcharts of the above embodiments may include multiple steps or multiple stages. These steps or stages are not necessarily completed at the same time, but can be executed at different times. The execution order of these steps or stages is not necessarily sequential, but can be performed alternately or in turn with other steps or at least some of the steps or stages of other steps.
[0195] In this embodiment, by preserving the complete probability distribution and employing the optimal transmission method to calculate tree structure similarity, the structural information of multi-class labeled faults is fully utilized. Compared to the shortest path distance of the nearest label pair in existing technologies, it is expected to improve the recall rate of cross-subclass faults within the same category by approximately 15 to 25 percentage points. Differentiated recommendation weight coefficients (0.60 to 1.50) are applied to fault pattern objects at different maturity stages. Expert-stage knowledge that has been validated multiple times enjoys higher priority in retrieval recommendations, while unvalidated nascent-stage knowledge is appropriately downgraded. The proportion of expert-stage and mature-stage objects in the knowledge base continuously increases, and the overall quality of recommended knowledge monotonically improves over time. Furthermore, the root cause structure extraction mechanism triggered by the mature stage allows the root cause descriptions obtained by developers to evolve from random outputs of a large model analysis into structured expert knowledge refined after multiple validations. This knowledge includes four dimensions: precise triggering conditions, core mechanisms, immediate handling, and fundamental rectification, significantly enhancing its decision-making reference value. In addition, the category prototype vector is dynamically updated with the accumulation of expert-stage knowledge and continuously corrects the semantic vector expression of new faults, gradually increasing the clustering degree of similar faults in the semantic space with knowledge accumulation. The system becomes increasingly accurate with use, and its retrieval quality continuously improves over time. Furthermore, a three-strategy update mechanism driven by semantic consistency (normal convergence update, conservative update, and update rejection) avoids vector pollution caused by different faults being mistakenly merged due to similar wording. The update rejection strategy conservatively preserves historical vectors when semantic discrepancies are detected, triggering a discrepancy management process to ensure the accuracy of the knowledge base structure. Finally, developers complete the entire process of fault analysis triggering, result viewing, repair execution, and effect feedback within a group chat, without switching between multiple systems. The fault handling process is visible to all group members in real time, significantly improving team collaboration efficiency.
[0196] Based on the same inventive concept, this application also provides a log-based fault analysis apparatus for implementing the log-based fault analysis method described above. The solution provided by this apparatus is similar to the implementation scheme described in the above method; therefore, the specific limitations in one or more log-based fault analysis apparatus embodiments provided below can be found in the limitations of the log-based fault analysis method described above, and will not be repeated here.
[0197] In one exemplary embodiment, such as Figure 10 As shown, a log-based fault analysis device 1000 is provided, including: a fault analysis module 1001, a matching module 1002, a reference determination module 1003, and a result generation module 1004, wherein:
[0198] The fault analysis module 1001 is used to acquire fault logs; analyze the fault logs to obtain fault analysis data; the fault analysis data includes fault probability distribution.
[0199] The matching module 1002 is used to obtain the fault classification tree in the knowledge base, obtain the first structural feature information of the fault probability distribution and the second structural feature information of the fault probability distribution of the existing fault data based on the fault classification tree in the knowledge base, obtain the structural association information between the fault analysis data and the existing fault data based on the first structural feature information and the second structural feature information, and obtain the matching degree between the fault analysis data and the existing fault data based on the structural association information.
[0200] The reference determination module 1003 is used to determine candidate fault data corresponding to the fault analysis data based on the matching degree and existing fault data; and to determine reference fault data based on the reliability of the candidate fault data.
[0201] The result generation module 1004 is used to generate fault analysis results corresponding to the fault log based on the fault diagnosis information corresponding to the fault analysis data and the fault resolution information corresponding to the reference fault data.
[0202] In some embodiments, when obtaining structural association information between fault analysis data and existing fault data based on first structural feature information and second structural feature information, the matching module is specifically used to: construct a transmission cost matrix based on the transmission cost between each pair of nodes in the fault classification tree; take the first fault probability distribution corresponding to the first structural feature information as the source distribution and the second fault probability distribution corresponding to the second structural feature information as the target distribution, and solve the target transmission distance between the source distribution and the target distribution that meets the preset conditions based on the transmission cost matrix; and obtain structural association information based on the target transmission distance.
[0203] In some embodiments, when obtaining structural association information based on the target transmission distance, the matching module is specifically used to: obtain a target monotonically decreasing mapping function; map the target transmission distance to structural similarity based on the target monotonically decreasing mapping function; and determine structural association information based on structural similarity.
[0204] In some embodiments, the matching module is specifically used to: obtain semantic association information between fault analysis data and stored fault data based on structural association information; adjust the weight of semantic association information based on structural association information; and obtain the matching degree based on the adjusted semantic association information and structural association information; wherein the degree of structural association corresponding to the structural association information is directly proportional to the weight of the semantic association information.
[0205] In some embodiments, when determining reference fault data based on the reliability of candidate fault data, the reference determination module is specifically used to: filter out target candidate fault data whose reliability meets preset conditions from multiple candidate fault data; and determine reference fault data based on the target candidate fault data.
[0206] In some embodiments, the log-based fault analysis device includes a maintenance module, configured to: obtain a category prototype vector library from a knowledge base; the category prototype vector library stores prototype vectors corresponding to at least one fault category; each prototype vector is configured with a category prototype reliability level; each fault category corresponds to at least one stored fault data; obtain a fault analysis semantic vector corresponding to the fault analysis text; if the category prototype reliability level corresponding to each prototype vector in the category prototype vector library does not meet a preset reliability condition, then the fault analysis semantic vector is not updated; if there is an activated prototype vector in the category prototype vector library that meets the preset reliability condition, then the fault analysis semantic vector is updated based on the activated prototype vector to obtain the updated fault analysis semantic vector.
[0207] In some embodiments, the maintenance module is further configured to: update the knowledge base based on fault analysis data; when updating the knowledge base based on fault analysis data, obtain the fault analysis semantic vector corresponding to the fault analysis text; determine the vector update strategy based on the semantic consistency between the fault analysis semantic vector and the semantic vector of the target existing fault data; the vector update strategy includes at least a convergent update strategy, a conservative update strategy, or a rejection update strategy; and the fault category in the target existing fault data is consistent with the fault analysis category.
[0208] In some embodiments, the maintenance module is further configured to update the knowledge base based on fault analysis data; when updating the knowledge base based on fault analysis data, the fault analysis data is associated with the target existing fault data based on the matching degree; based on the handling feedback information corresponding to the fault analysis data, the occurrence frequency and repair success rate of the target existing fault data are updated; the handling feedback information is the feedback information received after the fault analysis results are sent to the target terminal; based on the updated occurrence frequency and updated repair success rate, it is determined whether the target existing fault data meets the reliability upgrade conditions; if it does, the target existing fault data is unidirectionally upgraded from the current reliability level to the next reliability level, and a preset knowledge processing operation corresponding to the next reliability level is triggered.
[0209] In some embodiments, when the reliability level includes at least triggering a preset knowledge processing operation corresponding to the next reliability level, the maintenance module is specifically used to: when the next reliability level is the third target stage, obtain historical fault root cause information corresponding to the target existing fault data, extract consensus information from multiple historical fault root cause information, and update the fault root cause information corresponding to the target existing fault data based on the consensus information; when the next reliability level is the fourth target stage, update the prototype vector corresponding to the fault category corresponding to the target stored fault data based on the fault semantic vector corresponding to the target stored fault data.
[0210] The modules in the aforementioned log-based fault analysis device can be implemented entirely or partially through software, hardware, or a combination thereof. These modules can be embedded in the processor of a computer device in hardware form or independent of it, or stored in the memory of the computer device in software form, so that the processor can call and execute the corresponding operations of each module.
[0211] In one exemplary embodiment, a computer device is provided, which may be a server, and its internal structure diagram may be as follows: Figure 11As shown, this computer device includes a processor, memory, input / output interfaces (I / O), and a communication interface. The processor, memory, and I / O interfaces are connected via a system bus, and the communication interface is also connected to the system bus via the I / O interfaces. The processor provides computational and control capabilities. The memory includes non-volatile storage media and internal memory. The non-volatile storage media stores the operating system, computer programs, and a database. The internal memory provides the environment for the operation of the operating system and computer programs stored in the non-volatile storage media. The database stores knowledge bases and other data used for fault analysis. The I / O interfaces allow the processor to exchange information with external devices. The communication interface allows communication with external terminals via a network connection. When the computer program is executed by the processor, it implements a log-based fault analysis method.
[0212] In one exemplary embodiment, a computer device is provided, which may be a terminal, and its internal structure diagram may be as follows: Figure 12 As shown, the computer device includes a processor, memory, input / output interfaces, a communication interface, a display unit, and an input device. The processor, memory, and input / output interfaces are connected via a system bus, and the communication interface, display unit, and input device are also connected to the system bus via the input / output interfaces. The processor provides computational and control capabilities. The memory includes non-volatile storage media and internal memory. The non-volatile storage media stores the operating system and computer programs. The internal memory provides an environment for the operation of the operating system and computer programs stored in the non-volatile storage media. The input / output interfaces are used for exchanging information between the processor and external devices. The communication interface is used for wired or wireless communication with external terminals; wireless communication can be achieved through Wi-Fi, mobile cellular networks, Near Field Communication (NFC), or other technologies. When the computer program is executed by the processor, it implements a log-based fault analysis method. The display unit is used to form a visually visible image and can be a display screen, a projection device, or a virtual reality imaging device. The display screen can be an LCD screen or an e-ink screen. The input device of the computer device can be a touch layer covering the display screen, or buttons, trackballs, or touchpads set on the casing of the computer device, or external keyboards, touchpads, or mice, etc.
[0213] Those skilled in the art will understand that Figure 11 or Figure 12The structure shown is merely a block diagram of a portion of the structure related to the present application and does not constitute a limitation on the computer device to which the present application is applied. Specific computer devices may include more or fewer components than those shown in the figure, or combine certain components, or have different component arrangements.
[0214] In one exemplary embodiment, a computer device is provided, including a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to implement the steps in the above-described method embodiments.
[0215] In one embodiment, a computer-readable storage medium is provided having a computer program stored thereon, which, when executed by a processor, implements the steps in the above method embodiments.
[0216] In one embodiment, a computer program product is provided, including a computer program that, when executed by a processor, implements the steps in the above method embodiments.
[0217] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, data stored, data displayed, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of the relevant data must comply with relevant regulations.
[0218] Those skilled in the art will understand that all or part of the processes in the methods of the above embodiments can be implemented by a computer program instructing related hardware. The computer program can be stored in a non-volatile computer-readable storage medium, and when executed, it can include the processes of the embodiments of the above methods. Any references to memory, databases, or other media used in the embodiments provided in this application can include at least one of non-volatile memory and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM). The databases involved in the embodiments provided in this application may include at least one type of relational database and non-relational database. Non-relational databases may include, but are not limited to, blockchain-based distributed databases. The processors involved in the embodiments provided in this application may be general-purpose processors, central processing units, graphics processing units, digital signal processors, programmable logic devices, quantum computing-based data processing logic devices, artificial intelligence (AI) processors, etc., and are not limited to these.
[0219] The technical features of the above embodiments can be combined in any way. For the sake of brevity, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this application.
[0220] The embodiments described above are merely illustrative of several implementation methods of this application, and while the descriptions are specific and detailed, they should not be construed as limiting the scope of this patent application. It should be noted that those skilled in the art can make various modifications and improvements without departing from the concept of this application, and these all fall within the protection scope of this application. Therefore, the protection scope of this application should be determined by the appended claims.
Claims
1. A log-based fault analysis method, characterized in that, The method includes: Obtain fault logs; analyze the fault logs to obtain fault analysis data; the fault analysis data includes fault probability distribution; Obtain the fault classification tree in the knowledge base; based on the fault classification tree in the knowledge base, obtain the first structural feature information of the fault probability distribution and the second structural feature information of the fault probability distribution of the existing fault data; based on the first structural feature information and the second structural feature information, obtain the structural association information between the fault analysis data and the existing fault data; based on the structural association information, obtain the matching degree between the fault analysis data and the existing fault data. Based on the matching degree and the existing fault data, candidate fault data corresponding to the fault analysis data are determined; based on the reliability of the candidate fault data, reference fault data is determined. Based on the fault diagnosis information corresponding to the fault analysis data and the fault resolution information corresponding to the reference fault data, a fault analysis result corresponding to the fault log is generated.
2. The method according to claim 1, characterized in that, The step of obtaining structural correlation information between the fault analysis data and the existing fault data based on the first structural feature information and the second structural feature information includes: Based on the transmission cost between each node pair in the fault classification tree, a transmission cost matrix is constructed. Using the first fault probability distribution corresponding to the first structural feature information as the source distribution and the second fault probability distribution corresponding to the second structural feature information as the target distribution, the target transmission distance between the source distribution and the target distribution that meets the preset conditions is solved based on the transmission cost matrix. The structural association information is obtained based on the target transmission distance.
3. The method according to claim 2, characterized in that, The process of obtaining the structural association information based on the target transmission distance includes: Obtain the target monotonically decreasing mapping function; The target transmission distance is mapped to structural similarity based on the target monotonically decreasing mapping function. The structural association information is determined based on the structural similarity.
4. The method according to claim 1, characterized in that, The fault analysis data includes fault analysis text, and the stored fault data includes stored fault text. The step of obtaining the matching degree between the fault analysis data and the stored fault data based on the structural association information includes: Obtain semantic association information between the fault analysis text and the stored fault text; The weights of the semantic association information are adjusted based on the structural association information; The matching degree is obtained based on the weighted semantic association information and the structural association information. The degree of structural association corresponding to the structural association information is directly proportional to the weight of the semantic association information.
5. The method according to claim 1, characterized in that, The step of determining reference fault data based on the reliability of the candidate fault data includes: Select target candidate fault data whose reliability meets preset conditions from multiple candidate fault data; The reference fault data is determined based on the target candidate fault data.
6. The method according to claim 1, characterized in that, The fault analysis data includes fault analysis text, and the method further includes: Obtain a category prototype vector library from the knowledge base; the category prototype vector library is used to store prototype vectors corresponding to at least one fault category; each prototype vector is configured with a category prototype reliability level; each fault category corresponds to at least one of the stored fault data; Obtain the fault analysis semantic vector corresponding to the fault analysis text; If the reliability of the category prototype corresponding to each prototype vector in the category prototype vector library does not meet the preset reliability condition, then the fault analysis semantic vector will not be updated. If there is an activated prototype vector in the category prototype vector library that meets the preset reliability conditions, then the fault analysis semantic vector is updated based on the activated prototype vector to obtain the updated fault analysis semantic vector.
7. The method according to claim 1, characterized in that, The fault analysis data includes fault analysis text and fault analysis category; the method further includes: The knowledge base is updated based on the fault analysis data. When updating the knowledge base based on the fault analysis data, obtain the fault analysis semantic vector corresponding to the fault analysis text; Based on the semantic consistency between the fault analysis semantic vector and the semantic vector of the target existing fault data, a vector update strategy is determined; the vector update strategy includes at least a convergent update strategy, a conservative update strategy, or a rejection update strategy; the fault category in the target existing fault data is consistent with the fault analysis category.
8. The method according to claim 1, characterized in that, The method further includes: The knowledge base is updated based on the fault analysis data. When updating the knowledge base based on the fault analysis data, the fault analysis data is associated with the target existing fault data based on the matching degree; Based on the handling feedback information corresponding to the fault analysis data, the occurrence frequency and repair success rate of the target's existing fault data are updated; the handling feedback information is the feedback information received after the fault analysis results are sent to the target terminal; Based on the updated occurrence count and the updated repair success rate, determine whether the target existing fault data meets the reliability upgrade conditions; If the conditions are met, the existing fault data of the target will be unidirectionally upgraded from the current reliability level to the next reliability level, and a preset knowledge processing operation corresponding to the next reliability level will be triggered.
9. The method according to claim 8, characterized in that, The fault analysis data includes fault root cause information, and the reliability level at least includes the preset knowledge processing operation that triggers the next reliability level, including: When the next reliability level is the third target stage, historical fault root cause information corresponding to the target existing fault data is obtained, consensus information is extracted from multiple historical fault root cause information, and the fault root cause information corresponding to the target existing fault data is updated based on the consensus information. When the next reliability level is the fourth target stage, the prototype vector corresponding to the fault category corresponding to the stored fault data of the target is updated based on the fault semantic vector corresponding to the stored fault data of the target.
10. A computer device comprising a memory and a processor, wherein the memory stores a computer program, characterized in that, When the processor executes the computer program, it implements the steps of the method according to any one of claims 1 to 9.
11. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the steps of the method according to any one of claims 1 to 9.
12. A computer program product, comprising a computer program, characterized in that, When the computer program is executed by a processor, it implements the steps of the method according to any one of claims 1 to 9.
