Root cause determination method and device
By selecting similar information from the database and generating target information to input into the root cause analysis model, the problem of low root cause analysis accuracy of machine learning models in automated operation and maintenance scenarios is solved, achieving higher positioning accuracy and model usability.
Patent Information
- Application Number
- CN202410920561.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-10
- Publication Date
- 2024-10-15
AI Technical Summary
Existing machine learning models are not very accurate when used for root cause analysis in automated operation and maintenance scenarios, and are prone to hallucinations, resulting in poor model usability.
By selecting similar information to the initial description information from the preset database, the target information is generated and input into the pre-trained root cause analysis model, and historical description information and root cause information are used for training to reduce or eliminate hallucinations and improve the accuracy of root cause analysis and positioning. sex.
It improves the positioning accuracy of the root cause analysis model, reduces the generation of error information, and enhances the usability of the model.
Smart Images

Figure CN118779140A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of automated operation and maintenance technology, and in particular to a root cause determination method and device. Background Art
[0002] In automated operation and maintenance scenarios, it is necessary to analyze the root causes of anomalies or failures that occur during server operation. Currently, machine learning methods can be used to analyze the root causes, but the root cause analysis and positioning accuracy of machine learning models is not high, and they are prone to hallucinations, that is, generating seemingly reasonable but actually wrong or meaningless information, resulting in poor usability of machine learning models. Summary of the invention
[0003] In view of this, an embodiment of the present invention provides a root cause determination method and device, which can improve the root cause location accuracy of a machine learning model.
[0004] To achieve the above objective, according to one aspect of the present invention, a root cause determination method is provided.
[0005] The root cause determination method of the embodiment of the present invention includes: receiving initial description information of a root cause to be determined, selecting at least one similar information of the initial description information from historical description information stored in a preset database; generating target information according to the initial description information and the selected similar information, inputting the target information into a pre-trained root cause analysis model, and obtaining root cause information corresponding to the initial description information; wherein the root cause analysis model is trained based on the historical description information and the root cause information corresponding to the historical description information.
[0006] Optionally, at least one similar information to the initial description information is selected from the historical description information stored in a preset database, including: obtaining a first-class feature vector of the initial description information; selecting a plurality of preliminary selected information similar to the initial description information from the historical description information based on the first-class feature vector of the initial description information; obtaining a second-class feature vector of the initial description information and a second-class feature vector of the preliminary selected information, and inputting the second-class feature vector of the initial description information and the second-class feature vector of the preliminary selected information into a pre-trained semantic sorting model to obtain similar information.
[0007] Optionally, based on the feature vector of the initial description information, multiple preliminary selection information similar to the initial description information is selected from the historical description information, including: determining the similarity between the initial description information and each historical description information based on the first type of feature vector of the initial description information and the first type of feature vector of each historical description information, and determining the historical description information whose similarity meets the preset similarity screening conditions as preliminary selection information.
[0008] Optionally, obtaining the second type of feature vector of the initial description information and the second type of feature vector of the preliminary selected information includes: for any information in the initial description information and the preliminary selected information, obtaining the word embedding vector, position embedding vector and part-of-speech vector of the information; multiplying each component in the part-of-speech vector by a preset weight coefficient of the part of speech corresponding to the component to form a part-of-speech weight vector of the information; and concatenating the word embedding vector, position embedding vector and part-of-speech weight vector into the second type of feature vector of the information.
[0009] Optionally, generating target information according to the initial description information and the selected similar information includes: splicing the initial description information and the selected similar information into the target information.
[0010] Optionally, the database includes: multiple information libraries corresponding to multiple preset categories respectively; and the method further includes: after receiving initial description information of the root cause to be determined, determining the target category corresponding to the initial description information; selecting at least one similar information of the initial description information from the historical description information stored in the preset database, including: selecting similar information from the historical description information stored in the information library corresponding to the target category.
[0011] Optionally, the root cause analysis model is trained according to the following steps: obtaining multiple training samples; wherein each training sample includes a historical description information and root cause information corresponding to the historical description information; selecting at least one similar information of the historical description information from a database, and generating purpose information based on the similar information and the historical description information; and performing training using the purpose information as training input data and the root cause information corresponding to the historical description information as a label.
[0012] Optionally, the category includes at least one of the following: database operation and maintenance, cache operation and maintenance, application operation and maintenance, and system operation and maintenance.
[0013] Optionally, the root cause analysis model is a large language model, the first type of feature vector is a term frequency-inverse text frequency TF-IDF feature, and the semantic sorting model is a Bert model; the initial description information and the historical description information include: alarm description information.
[0014] To achieve the above objective, according to another aspect of the present invention, a root cause determination device is provided.
[0015] The root cause determination device of the embodiment of the present invention may include: an information selection unit and a root cause analysis unit.
[0016] The information selection unit is used to receive initial description information of the root cause to be determined, and select at least one similar information of the initial description information from the historical description information stored in a preset database; the root cause analysis unit is used to generate target information according to the initial description information and the selected similar information, and input the target information into a pre-trained root cause analysis model to obtain root cause information corresponding to the initial description information; wherein the root cause analysis model is trained based on the historical description information and the root cause information corresponding to the historical description information.
[0017] Optionally, the information selection unit is also used to: obtain a first type of feature vector of the initial description information; select multiple preliminary selected information similar to the initial description information from the historical description information based on the first type of feature vector of the initial description information; obtain the second type of feature vector of the initial description information and the second type of feature vector of the preliminary selected information, input the second type of feature vector of the initial description information and the second type of feature vector of the preliminary selected information into a pre-trained semantic sorting model to obtain similar information.
[0018] Optionally, the information selection unit is also used to: determine the similarity between the initial description information and each historical description information based on the first type of feature vector of the initial description information and the first type of feature vector of each historical description information, and determine the historical description information whose similarity meets the preset similarity screening conditions as preliminary selected information.
[0019] Optionally, the information selection unit is also used to: for any information in the initial description information and the preliminary selected information, obtain the word embedding vector, position embedding vector and part-of-speech vector of the information; multiply each component in the part-of-speech vector by the preset weight coefficient of the part of speech corresponding to the component to form a part-of-speech weight vector of the information; concatenate the word embedding vector, position embedding vector and part-of-speech weight vector into a second type of feature vector of the information.
[0020] Optionally, the root cause analysis unit is further used to: splice the initial description information and the selected similar information into target information.
[0021] Optionally, the database includes: multiple information libraries corresponding to multiple preset categories respectively; and the device may further include: a classification unit, used to determine the target category corresponding to the initial description information after receiving the initial description information of the root cause to be determined; the information selection unit is also used to: select similar information from the historical description information stored in the information library corresponding to the target category.
[0022] Optionally, the root cause analysis model is trained according to the following steps: obtaining multiple training samples; wherein each training sample includes a historical description information and root cause information corresponding to the historical description information; selecting at least one similar information of the historical description information from a database, and generating purpose information based on the similar information and the historical description information; and performing training using the purpose information as training input data and the root cause information corresponding to the historical description information as a label.
[0023] Optionally, for operation and maintenance scenarios, the categories include at least one of the following: database operation and maintenance, cache operation and maintenance, application operation and maintenance, and system operation and maintenance.
[0024] Optionally, the root cause analysis model is a large language model, the first type of feature vector is a term frequency-inverse text frequency TF-IDF feature, and the semantic sorting model is a Bert model; the initial description information and the historical description information include: alarm description information.
[0025] To achieve the above objective, according to another aspect of the present invention, an electronic device is provided.
[0026] An electronic device of the present invention includes: one or more processors; a storage device for storing one or more programs, when the one or more programs are executed by the one or more processors, the one or more processors implement the root cause determination method provided by the present invention.
[0027] To achieve the above objective, according to yet another aspect of the present invention, a computer-readable storage medium is provided.
[0028] A computer-readable storage medium of the present invention stores a computer program, and when the program is executed by a processor, the root cause determination method provided by the present invention is implemented.
[0029] To achieve the above objective, according to yet another aspect of the present invention, a computer program product is provided.
[0030] A computer program product of the present invention includes a computer program. When the computer program is executed by a processor, the root cause determination method provided by the present invention is implemented.
[0031] According to the technical solution of the present invention, the embodiments of the above invention have the following advantages or beneficial effects:
[0032] After receiving the initial description information of the root cause to be determined, the root cause determination system selects at least one similar information of the initial description information from the historical description information stored in the preset database, and fuses the initial description information and the selected similar information to generate target information, and then inputs the target information into the pre-trained root cause analysis model to obtain the root cause information corresponding to the initial description information, and the above root cause analysis model is trained based on the historical description information and the pre-determined root cause information corresponding to the historical description information. In this way, by extracting similar information of the initial description information from the historical description information that has been learned by the root cause analysis model, and fusing the historical description information with the selected similar information and sending them to the root cause analysis model for calculation, the illusion phenomenon of the root cause analysis model can be reduced or even eliminated, and the root cause analysis positioning accuracy of the root cause analysis model can be improved.
[0033] The further effects of the above-mentioned non-conventional optional manner will be described below in conjunction with the specific implementation manner. BRIEF DESCRIPTION OF THE DRAWINGS
[0034] The accompanying drawings are used to better understand the present invention and do not constitute an improper limitation of the present invention.
[0035] Figure 1 Schematic diagram of the main steps of the root cause determination method in an embodiment of the present invention;
[0036] Figure 2 is a schematic diagram of the training and use steps of the root cause analysis model in an embodiment of the present invention;
[0037] Figure 3 is a schematic flow chart of a root cause determination method in an embodiment of the present invention;
[0038] Figure 4 Schematic diagram of the execution principle of the root cause determination method in an embodiment of the present invention;
[0039] Figure 5 is a schematic diagram of components of a root cause determination device in an embodiment of the present invention;
[0040] Figure 6 is an exemplary system architecture diagram in which embodiments of the present invention may be applied;
[0041] Figure 7 It is a schematic diagram of the structure of an electronic device used to implement the root cause determination method in an embodiment of the present invention. DETAILED DESCRIPTION
[0042] The following is a description of exemplary embodiments of the present invention in conjunction with the accompanying drawings, including various details of the embodiments of the present invention to facilitate understanding, which should be considered as merely exemplary. Therefore, it should be recognized by those of ordinary skill in the art that various changes and modifications may be made to the embodiments described herein without departing from the scope and spirit of the present invention. Similarly, for clarity and conciseness, the description of well-known functions and structures is omitted in the following description.
[0043] It should be pointed out that the embodiments of the present invention and the technical features therein may be combined with each other without conflict.
[0044] Figure 1 Schematic diagram of main steps of the root cause determination method in an embodiment of the present invention.
[0045] like Figure 1 As shown, the root cause determination method of the embodiment of the present invention can be executed by a root cause determination system (which can be a computer, a computer system or a functional module, hereinafter referred to as a system), and the specific execution steps are as follows:
[0046] Step S101: receiving initial description information of a root cause to be determined, and selecting at least one similar information of the initial description information from historical description information stored in a preset database.
[0047] The initial description information is information in any format used to describe an abnormal phenomenon or a fault condition, and the format may be text, audio, video, etc. In this step, after receiving the initial description information, the system obtains one or more similar information of the initial description information from the database, and the above similar information is used to help the initial description information perform subsequent root cause determination related steps.
[0048] Step S102: Generate target information according to the initial description information and the selected similar information, input the target information into a pre-trained root cause analysis model, and obtain root cause information corresponding to the initial description information.
[0049] In this step, the system generates target information as input data of the root cause analysis model based on the initial description information and the similar information selected in step S101, thereby obtaining the root cause information corresponding to the initial description information. In particular, the above root cause analysis model is trained based on the historical description information in the above database and the root cause information corresponding to the historical description information. Through the above steps, the system processes the initial description information and the similar information that the model has learned and inputs them into the model for calculation. The output result of the model can be optimized with the help of the above similar information, thereby reducing or eliminating the illusion phenomenon of the root cause analysis model and improving the root cause analysis positioning accuracy of the root cause analysis model.
[0050] Figure 2FIG. 1 is a schematic diagram of the training and use steps of the root cause analysis model in an embodiment of the present invention, see Figure 2 .
[0051] Step S211: The system receives initial description information. In this step, the system receives initial description information used to describe an abnormal phenomenon or a fault condition. Exemplarily, in the scenario of operation and maintenance root cause analysis, the above initial description information may be alarm description information, such as the alarm content displayed by the operating system when executing an alarm. It should be noted that although the technical solution of the present invention is described using the operation and maintenance scenario as an example, the application scenario of the present invention is not limited thereto, but may be any scenario involving root cause analysis.
[0052] Step S212: The system selects similar information of the initial description information from the historical description information stored in the database. Exemplarily, the historical description information stored in the database may also be: alarm description information. In the field of operation and maintenance, the above historical description information and its root cause information may contain a large amount of expert experience knowledge in the field of operation and maintenance. In this step, the system may calculate similar information of the initial description information by any applicable method such as similarity calculation, model judgment, etc.
[0053] As a preferred solution, the system can obtain similar information through the following two-stage steps: In the first stage, the system obtains the first-class feature vector of the initial description information, and selects multiple preliminary selected information similar to the initial description information from the historical description information based on the first-class feature vector of the initial description information. It can be understood that the above preliminary selected information is similar information that has been preliminarily screened. Specifically, the system determines the similarity between the initial description information and each historical description information based on the first-class feature vector of the initial description information and the first-class feature vector of each historical description information, and determines the historical description information whose similarity meets the preset similarity screening conditions as the preliminary selected information. Exemplarily, the above similarity screening conditions can be: determining the historical description information whose similarity is greater than a preset threshold (the threshold can be determined through the model training process) as the preliminary selected information, or determining a predetermined number of historical description information with the largest similarity as the preliminary selected information. Exemplarily, the first-class feature vector can be a feature of any applicable method such as word frequency-inverse text frequency TF-IDF feature, word embedding vector feature, etc.
[0054] In the second stage, the system obtains the second type of feature vector of the initial description information and the second type of feature vector of the preliminary selection information, and inputs the second type of feature vector of the initial description information and the second type of feature vector of the preliminary selection information into the pre-trained semantic refinement model, thereby obtaining the above similar information. Exemplarily, the above semantic refinement model can be any applicable machine learning model, such as a Transformer model, a Bert model, etc., and the number of similar information can be equal to a preset number. The above second type of feature vector can be any feature vector of an applicable form. Preferably, the second type of feature vector can be constructed by the following steps: For any information in the initial description information and the preliminary selection information, the system first obtains the word embedding vector (i.e., a vector formed by word embedding, such as a Word Embedding vector or a Token Embedding vector), the position embedding vector (i.e., an embedding vector reflecting word position information, such as a Position Embedding vector) and the part-of-speech vector of the information.
[0055] The above part-of-speech vector may include the part-of-speech of each word in the initial description information or the preliminary selection information. Exemplarily, the part-of-speech may include at least one of the following: NNP (special noun in singular form), VB (basic form of verb), NN (common noun in singular form), IN (preposition or subordinate conjunction). Then, the system multiplies each component in the part-of-speech vector by the preset weight coefficient (which may be a preset fixed coefficient or determined by model training) of the part-of-speech corresponding to the component to form a part-of-speech weight vector of the information. Thereafter, the system concatenates the word embedding vector, the position embedding vector and the part-of-speech weight vector into the second type of feature vector of the information. It can be understood that the second type of feature vector may also use feature vectors in other forms, such as directly using one of the word embedding vector, the position embedding vector, the part-of-speech vector and the part-of-speech weight vector as the second type of feature vector. Through the above two-stage steps of similar information acquisition method, an efficient and fast preliminary screening algorithm can be executed within a larger data range to obtain a certain amount of preliminary selection information, and then a high-precision fine sorting algorithm is executed in the preliminary selection information to obtain similar information with high accuracy, thereby taking into account the accuracy of similar information extraction and computational efficiency.
[0056] In an embodiment of the present invention, after receiving the initial description information, the system may determine similar information from the full amount of data in the database, or may determine similar information from data of the corresponding category. In an optional implementation, the database may include multiple information bases corresponding to multiple preset categories, for example, in an operation and maintenance scenario, the database includes a first information base corresponding to database operation and maintenance, a second information base corresponding to cache operation and maintenance, a third operation dimension corresponding to application operation and maintenance, and a fourth information base corresponding to system operation and maintenance. After receiving the initial description information of the root cause to be determined, the system may first determine the target category corresponding to the initial description information, and select similar information of the initial description information from the historical description information stored in the information base corresponding to the target category according to the aforementioned steps. Compared with the method of determining similar information from the full amount of data in the database, the preliminary screening step of this similar information acquisition method has faster computing efficiency.
[0057] Step S213: The system generates target information based on the initial description information and the selected similar information.
[0058] In this step, the system can generate target information based on the initial description information and its similar information, for example, splicing the initial description information and similar information into target information according to a preset template, or generating target information by using a known data fusion method to combine the initial description information and similar information.
[0059] Step S214: the system inputs the target information into a pre-trained root cause analysis model to obtain the root cause information corresponding to the initial description information.
[0060] Exemplarily, the above root cause analysis model can be a large language model. In the automated operation and maintenance scenario, the above root cause analysis model can be a dedicated large language model in the field of operation and maintenance. In particular, in one embodiment, the above root cause analysis model can be further trained on the basis of a pre-trained large language model that has learned a large amount of knowledge in the field of operation and maintenance, based on the historical description information in the above database and the root cause information corresponding to the historical description information. In this step, the system inputs the target information into the pre-trained root cause analysis model to obtain the root cause information corresponding to the initial description information output by the root cause analysis model. Since the input data of this model calculation process contains the historical description information that has been learned by the root cause analysis model, the correlation between the output result of the root cause analysis model and the initial description data can be improved, thereby improving the accuracy of the root cause analysis.
[0061] In an optional technical solution, the root cause analysis model can be trained according to the following steps. Step S201: Acquire multiple training samples, each training sample includes a historical description information and the root cause information corresponding to the historical description information; Step S202: Select at least one similar information of the historical description information from the database; Step S203: Generate purpose information based on the similar information and the historical description information; Step S204: Perform model training using the purpose information as training input data and the root cause information corresponding to the historical description information as a label, thereby implementing the model training process corresponding to steps S211 to S214.
[0062] In the technical solution of the embodiment of the present invention, a root cause location solution based on the operation and maintenance big model based on similar information recall and fusion is proposed. The solution utilizes a large amount of expert experience knowledge in the operation and maintenance field (i.e., historical description information in the database and its corresponding root cause information) combined with the powerful language processing capability of the AI (Artificial Intelligence) big model to generate an intelligent diagnosis expert model (i.e., root cause analysis model) that is proficient in the full-scenario technology of operation and maintenance. The solution can quickly locate faults in complex business scenarios, eliminate the illusion of the big model, improve the accuracy of the root cause analysis and location process, and meet the business SLA (Service-Level Agreement) standards.
[0063] Figure 3 FIG. 1 is a flow chart of a root cause determination method according to an embodiment of the present invention. Figure 3 . In the operation and maintenance scenario, it is first necessary to collect the operation and maintenance expert knowledge corpus of multiple operation and maintenance scenarios such as database operation and maintenance, cache operation and maintenance, application operation and maintenance, and system operation and maintenance, and then perform data preprocessing and feature functions, and then perform the construction and training of the root cause analysis model. After the training is completed, the training effect can be evaluated according to the preset indicators. After the evaluation, the root cause analysis model is applied online to solve the operation and maintenance root cause judgment problem, and the root cause analysis model is optimized through incremental data iteration. In addition, the above root cause analysis model can be used to build a base engine that connects to components such as databases and caches. It can be understood that since the root cause analysis model can perform independent root cause analysis calculations for scenarios such as database operation and maintenance, cache operation and maintenance, it can be connected to components such as databases and caches to provide root cause analysis services. In addition, in an optional implementation method, the above root cause analysis model can also be encapsulated as a software as a service SAAS service to provide root cause analysis functions to the outside world.
[0064] Figure 4 FIG. 1 is a schematic diagram showing the execution principle of the root cause determination method in an embodiment of the present invention. Figure 4. In the offline stage, it is necessary to obtain a large amount of operation and maintenance log data and perform preprocessing, vectorization and storage to form the above historical description information. In the question-answering stage, after obtaining the initial description information, the system performs preprocessing, similar information retrieval, target information construction, root cause location based on the root cause analysis model and other steps to determine the root cause information corresponding to the initial description information. The above similar information retrieval requires the use of historical description information stored in the offline stage.
[0065] A specific embodiment of the present invention is described below. Figure 3 .
[0066] There may be many types of failures in the operation of the server, and the service architecture is complex. The existing root cause analysis technology mainly relies on traditional methods, including: (1) Rule-based method: Formulate a series of expert rules to identify potential causes of failures. The advantage of this method is that it is easy to understand and implement, but the disadvantage is that the cost of writing and maintaining rules is high, and it is difficult to deal with complex and uncertain scenarios. (2) Statistical method: Statistical analysis of historical data is performed to find out the law of failure occurrence. The advantage of this method is data-driven, but the disadvantage is that it has high requirements for data quality and limited ability to identify new failure modes. (3) Machine learning-based method: Use machine learning algorithms (such as decision trees, support vector machines, etc.) to classify or regress fault data. The advantage of this method is that it has a certain degree of adaptability, but the disadvantage is that there is a hallucination phenomenon, that is, the input root cause has a low correlation with the input data. (4) Bayesian network-based method: By constructing a fault probability graph model, the relationship between each component is calculated to find the cause of the failure. The advantage of this method is that it can handle uncertainty and probabilistic inference problems, but the disadvantage is that it has high computational complexity and poor real-time performance. (5) Method based on fuzzy logic: Use fuzzy set theory to process uncertain information and perform fault diagnosis. The advantage of this method is that it can handle fuzzy and uncertain problems, but the disadvantage is that it requires the formulation of appropriate fuzzy rules and the reasoning process is relatively complicated.
[0067] In summary, when the big model is not introduced, the existing root cause analysis technology has certain limitations in some aspects, which makes it difficult for the root cause analysis coverage to reach the expected level. It is urgent to introduce the big language model (referred to as the big model) technology and optimize it, combine the big model with the operation and maintenance knowledge corpus, and improve the fault diagnosis effect in the field of intelligent operation and maintenance. This embodiment specifically performs the following steps.
[0068] First, collect and organize the experience and knowledge of experts in the field of operation and maintenance. This knowledge covers application operation and maintenance, database operation and maintenance, system operation and maintenance, cache operation and maintenance, etc., to provide data support for subsequent model training.
[0069] Second, data preprocessing and feature engineering: preprocess the collected raw data, including data cleaning, denoising, missing value filling, etc. The purpose of preprocessing is to improve data quality and lay the foundation for subsequent model training. Useful features are extracted from the preprocessed data, which will be used to train the model. Features can be structured information, text information, time series, etc. in operation and maintenance data. In this process, domain knowledge can be used to select and optimize features.
[0070] Third, operation and maintenance model construction and training: Build a large model suitable for operation and maintenance scenarios to receive input operation and maintenance corpus and troubleshooting information (i.e., description information) and output root cause analysis results. Use the collected experience and knowledge of experts in the operation and maintenance field, combined with the powerful language processing capabilities of the artificial intelligence AI large model, to train the model. During the training process, the similar information extraction technology of the above two stages is used to ensure the high correlation between the operation and maintenance corpus input to the large model and the troubleshooting, thereby improving the accuracy of online reasoning of the operation and maintenance large model.
[0071] Fourth, model evaluation: During the training process, the performance of the model is continuously evaluated. Evaluation indicators can include accuracy, recall, F1 score, etc. When the model performance reaches the expected goal, stop training.
[0072] Fifth, applied to online problem diagnosis: In the online problem diagnosis scenario, the large model base engine is used to assist operation and maintenance personnel in quickly locating faults and meeting business SLA standards.
[0073] Sixth, continuous optimization and iterative updates: Based on the actual results of online reasoning, the model is continuously adjusted and optimized to improve its performance in actual operation and maintenance scenarios. This may include adjusting the model structure, introducing new features, improving training strategies, etc.
[0074] Seventh, build a base engine: Integrate the collected operation and maintenance knowledge, build a base engine with the root cause analysis model as the core, integrate multiple operation and maintenance corpora, and integrate application operation and maintenance, database operation and maintenance, cache operation and maintenance, system operation and maintenance and other knowledge corpora into the base engine to form a comprehensive knowledge system. The lower layer of the base engine can integrate the knowledge of underlying operation and maintenance experts such as the network layer and hardware layer, and can connect to the platform as a service PaaS component operation and maintenance scenarios.
[0075] Eighth, package it into a SAAS service: Package the base engine into a SAAS service to make it easy for developers to call it, and the knowledge of operation and maintenance experts can be integrated into various operation and maintenance scenarios.
[0076] Through the technical solution of this embodiment, it is possible to utilize a large amount of expert experience and knowledge in the field of operation and maintenance, combined with the powerful language processing capabilities of the AI big model, to generate intelligent diagnostic experts who are proficient in the full-scenario technology of operation and maintenance, so as to quickly locate faults in complex business scenarios. In order to eliminate the illusion of the big model and improve the accuracy of the root cause analysis and positioning process, a two-stage similar information extraction technology is introduced to ensure the high correlation between the operation and maintenance corpus input to the big model and the problem troubleshooting, thereby improving the accuracy of online reasoning of the operation and maintenance big model and helping operation and maintenance personnel to solve problems efficiently. This embodiment integrates a variety of operation and maintenance corpora, including application operation and maintenance, database operation and maintenance, system operation and maintenance, cache operation and maintenance, etc., with the operation and maintenance big model as the base engine, the lower layer can integrate the network layer and hardware layer operation and maintenance expert knowledge, and can connect to the PAAS component operation and maintenance scenario upward, encapsulated into a SAAS service, and become the exclusive operation and maintenance expert of the developer, improving the operation and maintenance efficiency. In addition to being applied to online problem diagnosis, in the operation and maintenance knowledge question and answer scenario, operation and maintenance experts for different scenarios can be built based on the big model to help operation and maintenance answer daily difficult and complicated problems, improve the efficiency of operation and maintenance response and the quality of operation and maintenance services.
[0077] It should be noted that the collection, collection, update, analysis, processing, use, transmission, storage and other aspects of user personal information that may be involved in the technical solution of the present invention are in compliance with the provisions of relevant laws and regulations, are used for legitimate purposes, and do not violate public order and good morals. Necessary measures are taken for user personal information to prevent illegal access to user personal information data and maintain the security of user personal information, network security and national security.
[0078] For the above-mentioned method embodiments, for the convenience of description, they are expressed as a series of action combinations, but those skilled in the art should know that the present invention is not limited by the order of the actions described, and some steps can actually be performed in other orders or simultaneously. In addition, those skilled in the art should also know that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily necessary to implement the present invention.
[0079] In order to better implement the above-mentioned solution of the embodiment of the present invention, relevant devices for implementing the above-mentioned solution are also provided below.
[0080] See also Figure 5 As shown, the root cause determination device 500 provided in the embodiment of the present invention may include: an information selection unit 501 and a root cause analysis unit 502 .
[0081] Among them, the information selection unit 501 is used to receive initial description information of the root cause to be determined, and select at least one similar information of the initial description information from the historical description information stored in the preset database; the root cause analysis unit 502 is used to generate target information according to the initial description information and the selected similar information, input the target information into a pre-trained root cause analysis model, and obtain the root cause information corresponding to the initial description information; wherein the root cause analysis model is trained based on the historical description information and the root cause information corresponding to the historical description information.
[0082] In an embodiment of the present invention, the information selection unit 501 is also used to: obtain the first type of feature vector of the initial description information; select multiple preliminary selected information similar to the initial description information from the historical description information based on the first type of feature vector of the initial description information; obtain the second type of feature vector of the initial description information and the second type of feature vector of the preliminary selected information, and input the second type of feature vector of the initial description information and the second type of feature vector of the preliminary selected information into a pre-trained semantic sorting model to obtain similar information.
[0083] As a preferred solution, the information selection unit 501 is also used to determine the similarity between the initial description information and each historical description information based on the first type of feature vector of the initial description information and the first type of feature vector of each historical description information, and determine the historical description information whose similarity meets the preset similarity screening conditions as preliminary information.
[0084] Preferably, the information selection unit 501 is also used to: for any information in the initial description information and the preliminary selected information, obtain the word embedding vector, position embedding vector and part-of-speech vector of the information; multiply each component in the part-of-speech vector by the preset weight coefficient of the part of speech corresponding to the component to form a part-of-speech weight vector of the information; and concatenate the word embedding vector, position embedding vector and part-of-speech weight vector into a second type of feature vector of the information.
[0085] In one embodiment, the root cause analysis unit 502 is further configured to: splice the initial description information and the selected similar information into target information.
[0086] In an optional implementation, the database includes: multiple information libraries corresponding to multiple preset categories respectively; and the device 500 may further include: a classification unit, used to determine the target category corresponding to the initial description information after receiving the initial description information of the root cause to be determined; the information selection unit 501 is also used to: select similar information from the historical description information stored in the information library corresponding to the target category.
[0087] In an exemplary embodiment, the root cause analysis model is trained according to the following steps: obtaining multiple training samples; wherein each training sample includes a historical description information and root cause information corresponding to the historical description information; selecting at least one similar information of the historical description information from a database, and generating purpose information based on the similar information and the historical description information; and performing training using the purpose information as training input data and the root cause information corresponding to the historical description information as a label.
[0088] Preferably, for operation and maintenance scenarios, the categories include at least one of the following: database operation and maintenance, cache operation and maintenance, application operation and maintenance, and system operation and maintenance.
[0089] In addition, in an embodiment of the present invention, the root cause analysis model is a large language model, the first type of feature vector is a term frequency-inverse text frequency TF-IDF feature, and the semantic sorting model is a Bert model; the initial description information and the historical description information include: alarm description information.
[0090] According to the technical solution of the embodiment of the present invention, a root cause location solution based on the operation and maintenance big model (i.e., the root cause analysis model) based on similar information recall and fusion is proposed, which can eliminate the illusion of the big model, improve the accuracy of the root cause analysis and location process, and ensure the high correlation between the operation and maintenance corpus input into the big model (i.e., the target information generated by the fusion of similar information) and the problem troubleshooting, thereby improving the online reasoning accuracy of the operation and maintenance big model, helping operation and maintenance to efficiently solve problems and meet business SLA standards.
[0091] Figure 6 An exemplary system architecture 600 is shown to which the root cause determination method or the root cause determination apparatus according to the embodiment of the present invention can be applied.
[0092] like Figure 6 As shown, the system architecture 600 may include terminal devices 601, 602, 603, a network 604 and a server 605 (this architecture is only an example, and the components included in the specific architecture may be adjusted according to the specific circumstances of the invention). The network 604 is used to provide a medium for a communication link between the terminal devices 601, 602, 603 and the server 605. The network 604 may include various connection types, such as wired, wireless communication links or optical fiber cables.
[0093] The user can use the terminal devices 601, 602, 603 to interact with the server 605 through the network 604 to receive or send messages, etc. Various client applications can be installed on the terminal devices 601, 602, 603, such as a root cause positioning application (only an example).
[0094] The terminal devices 601 , 602 , and 603 may be various electronic devices having a display screen and supporting web browsing, including but not limited to smart phones, tablet computers, laptop computers, and desktop computers, etc.
[0095] The server 605 may be a server that provides various services, such as a background server (only as an example) that provides support for the root cause positioning application operated by the user using the terminal devices 601, 602, and 603. The background server may process the received root cause positioning request and feed back the processing result (such as the calculated root cause information - only as an example) to the terminal devices 601, 602, and 603.
[0096] It should be noted that the root cause determination method provided in the embodiment of the present invention is generally executed by the server 605 , and accordingly, the root cause determination device is generally disposed in the server 605 .
[0097] It should be understood that Figure 6 The number of terminal devices, networks and servers in the embodiment is only for illustration. Any number of terminal devices, networks and servers may be provided according to implementation requirements.
[0098] The present invention also provides an electronic device. The electronic device of an embodiment of the present invention includes: one or more processors; a storage device for storing one or more programs, when the one or more programs are executed by the one or more processors, the one or more processors implement the root cause determination method provided by the present invention.
[0099] Reference below Figure 7 , which shows a schematic diagram of the structure of a computer system 700 of an electronic device suitable for implementing an embodiment of the present invention. Figure 7 The electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present invention.
[0100] like Figure 7 As shown, the computer system 700 includes a central processing unit (CPU) 701, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 702 or a program loaded from a storage part 708 into a random access memory (RAM) 703. In the RAM 703, various programs and data required for the operation of the computer system 700 are also stored. The CPU 701, the ROM 702, and the RAM 703 are connected to each other via a bus 704. An input / output (I / O) interface 705 is also connected to the bus 704.
[0101] The following components are connected to the I / O interface 705: an input section 706 including a keyboard, a mouse, etc.; an output section 707 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 708 including a hard disk, etc.; and a communication section 709 including a network interface card such as a LAN card, a modem, etc. The communication section 709 performs communication processing via a network such as the Internet. A drive 710 is also connected to the I / O interface 705 as needed. A removable medium 711, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 710 as needed so that a computer program read therefrom is installed into the storage section 708 as needed.
[0102] In particular, according to the embodiments disclosed in the present invention, the process described in the main step diagram above can be implemented as a computer software program. For example, the embodiments of the present invention include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program contains program code for executing the method shown in the main step diagram. In the above embodiment, the computer program can be downloaded and installed from the network through the communication part 709, and / or installed from the removable medium 711. When the computer program is executed by the central processing unit 701, the above functions defined in the system of the present invention are executed.
[0103] It should be noted that the computer-readable medium shown in the present invention may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present invention, a computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, device or device. In the present invention, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, which carries a computer-readable program code. This propagated data signal may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer readable signal media may also be any computer readable medium other than computer readable storage media, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, optical cable, RF, etc., or any suitable combination of the above.
[0104] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present invention. In this regard, each box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the above-mentioned module, program segment or a part of a code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flow chart, and the combination of the boxes in the block diagram or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0105] The units involved in the embodiments of the present invention may be implemented by software or hardware. The units described may also be set in a processor, for example, it may be described as: a processor includes: an information selection unit and a root cause analysis unit. The names of these units do not constitute a limitation on the units themselves in some cases, for example, the information selection unit may also be described as "a unit that provides similar information to the root cause analysis unit".
[0106] As another aspect, the present invention also provides a computer-readable medium, which may be included in the device described in the above embodiment; or it may exist independently and not be assembled into the device. The above computer-readable medium carries one or more programs, and when the above one or more programs are executed by the device, the steps executed by the device include: receiving initial description information of the root cause to be determined, selecting at least one similar information of the initial description information from the historical description information stored in the preset database; generating target information according to the initial description information and the selected similar information, inputting the target information into a pre-trained root cause analysis model, and obtaining the root cause information corresponding to the initial description information; wherein the root cause analysis model is trained based on the historical description information and the root cause information corresponding to the historical description information.
[0107] The present invention also provides a computer program product, including a computer program, and when the computer program is executed by a processor, the root cause determination method provided by the present invention is implemented.
[0108] In the technical solution of the embodiment of the present invention, after receiving the initial description information of the root cause to be determined, the root cause determination system selects at least one similar information of the initial description information from the historical description information stored in the preset database, and fuses the initial description information and the selected similar information to generate target information, and then inputs the target information into the pre-trained root cause analysis model, thereby obtaining the root cause information corresponding to the initial description information, and the above root cause analysis model is trained based on the historical description information and the pre-determined root cause information corresponding to the historical description information. In this way, by extracting similar information of the initial description information from the historical description information that has been learned by the root cause analysis model, and fusing the historical description information with the selected similar information and sending them to the root cause analysis model for calculation, the illusion phenomenon of the root cause analysis model can be reduced or even eliminated, and the root cause analysis positioning accuracy of the root cause analysis model can be improved.
[0109] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions may occur depending on design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.
Claims
1. A root cause determination method, characterized in that: include: receiving initial description information of a root cause to be determined, and selecting at least one similar information of the initial description information from historical description information stored in a preset database; Generate target information according to the initial description information and the selected similar information, input the target information into a pre-trained root cause analysis model, and obtain root cause information corresponding to the initial description information; wherein the root cause analysis model is trained based on the historical description information and the root cause information corresponding to the historical description information.
2. The method according to claim 1, characterized in that The selecting at least one similar information of the initial description information from the historical description information stored in the preset database includes: Obtaining a first-category feature vector of the initial description information; According to the first type of feature vector of the initial description information, a plurality of preliminary selected information similar to the initial description information is selected from the historical description information; The second type of feature vector of the initial description information and the second type of feature vector of the preliminary selected information are obtained, and the second type of feature vector of the initial description information and the second type of feature vector of the preliminary selected information are input into a pre-trained semantic sorting model to obtain the similar information.
3. The method according to claim 2, characterized in that The selecting, according to the feature vector of the initial description information, a plurality of preliminary selected information similar to the initial description information from the historical description information comprises: The similarity between the initial description information and each historical description information is determined based on the first type of feature vector of the initial description information and the first type of feature vector of each historical description information, and the historical description information whose similarity meets the preset similarity screening condition is determined as the preliminary selected information.
4. The method according to claim 2, characterized in that: The obtaining of the second type of feature vector of the initial description information and the second type of feature vector of the preliminary selection information includes: For any one of the initial description information and the preliminary selected information, obtain a word embedding vector, a position embedding vector and a part-of-speech vector of the information; Multiplying each component in the part-of-speech vector by a preset weight coefficient of the part-of-speech corresponding to the component to form a part-of-speech weight vector for the information; The word embedding vector, position embedding vector and part-of-speech weight vector are concatenated into a second type of feature vector for the information.
5. The method according to claim 1, characterized in that The generating target information according to the initial description information and the selected similar information includes: The initial description information and the selected similar information are concatenated into the target information.
6. The method according to claim 1, characterized in that The database comprises: a plurality of information bases corresponding to a plurality of preset categories respectively; and The method further comprises: after receiving the initial description information of the root cause to be determined, determining a target category corresponding to the initial description information; The selecting at least one piece of similar information to the initial description information from the historical description information stored in the preset database includes: selecting the similar information from the historical description information stored in the information base corresponding to the target category.
7. The method according to claim 1, characterized in that The root cause analysis model is trained according to the following steps: Acquire multiple training samples; wherein each training sample includes a piece of historical description information and root cause information corresponding to the historical description information; Selecting at least one piece of similar information to the historical description information from the database, and generating target information according to the similar information and the historical description information; The training is performed using the purpose information as training input data and the root cause information corresponding to the historical description information as a label.
8. The method according to claim 6, characterized in that The category includes at least one of the following: database operation and maintenance, cache operation and maintenance, application operation and maintenance, and system operation and maintenance.
9. The method according to claim 2, characterized in that: The root cause analysis model is a large language model, the first type of feature vector is a word frequency-inverse text frequency TF-IDF feature, and the semantic sorting model is a Bert model; The initial description information and the historical description information include: alarm description information.
10. A root cause determination device, characterized in that: include: An information selection unit, configured to receive initial description information of a root cause to be determined, and select at least one similar information of the initial description information from historical description information stored in a preset database; A root cause analysis unit is used to generate target information according to the initial description information and the selected similar information, input the target information into a pre-trained root cause analysis model, and obtain root cause information corresponding to the initial description information; wherein the root cause analysis model is trained based on the historical description information and the root cause information corresponding to the historical description information.
11. An electronic device, characterized in that: include: one or more processors; a storage device for storing one or more programs, When the one or more programs are executed by the one or more processors, the one or more processors implement the method according to any one of claims 1 to 9.
12. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the method according to any one of claims 1 to 9 is implemented.
13. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the method according to any one of claims 1 to 9 is implemented.
Citation Information
Cited By
Reason analysis method, system and related device
CN121561138A
Root cause prediction model training method and device based on scene, equipment, medium and program product
CN122616744A
