Alarm message processing method, device, equipment, medium and program product
By introducing AI large models in the field of operation and maintenance to process alarm messages, the problem of insufficient processing capabilities in the existing technology is solved, efficient alarm message processing and knowledge base updates are achieved, saving operation and maintenance manpower and improving processing capabilities.
Patent Information
- Application Number
- CN202410299677.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-03-15
- Publication Date
- 2024-10-22
AI Technical Summary
Existing technologies in the field of operation and maintenance rely on manual flow of monitoring and alarm message processing, have insufficient computing power and data model scale, limited ability to analyze and solve problems, and lack of effective feedback mechanisms.
Introduce a large AI model to receive alarm messages monitored by edge clusters and determine whether they are recorded in the knowledge base. If not recorded, call the pre-trained AI large model for analysis, generate predictive processing measures, and update the knowledge base to achieve automatic processing or transfer. Manual processing to complete closed-loop feedback.
It improves the computing power and data model scale of alarm message processing, realizes complete closed-loop feedback, saves operation and maintenance monitoring manpower, and improves processing capabilities.
Smart Images

Figure CN118820002A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of artificial intelligence, and in particular to an alarm message processing method, device, equipment, medium and program product. Background Art
[0002] In the field of operation and maintenance, monitoring alarms and the processing of the resulting work orders are one of the most important tasks of operation and maintenance engineers. Through multi-level operation and maintenance monitoring alarms, problems in the system can be quickly located and the system availability can be improved.
[0003] At present, monitoring alarm messages are still mainly handled by manual transfer work orders. Some fields have ways to process alarm messages based on models and algorithms, but they are not particularly perfect in terms of computing power or data model scale, and the ability to analyze and solve problems is limited. At the same time, there is a problem of insufficient feedback, and the original algorithms and models have not been optimized. Summary of the invention
[0004] The purpose of the embodiments of the present invention is to provide an alarm message processing method, device, equipment, medium and program product, which introduces an AI big model to realize the processing of alarm messages and update the knowledge base, thereby improving the processing capability of alarm messages.
[0005] To achieve the above object, an embodiment of the present invention provides a method for processing an alarm message, comprising:
[0006] Receive alarm messages detected by each edge cluster;
[0007] Determine whether the alarm message is recorded in a preset knowledge base; wherein the knowledge base records a correspondence between a number of alarm messages and alarm processing measures;
[0008] When the alarm message is not recorded in the knowledge base, a pre-trained AI big model is called to perform analysis to obtain a predicted processing measure for the alarm message;
[0009] The knowledge base is updated according to the warning message and the predicted processing measures.
[0010] As an improvement of the above solution, when the alarm message is not recorded in the knowledge base, a pre-trained AI large model is called for analysis to obtain a prediction processing measure for the alarm message, including:
[0011] When the warning message is not recorded in the knowledge base, generating a question statement according to the warning message;
[0012] Calling a pre-trained AI big model, and inputting the question sentence into the AI big model for analysis;
[0013] When the return result of the AI big model is received, the processing statement in the return result is extracted to obtain the predicted processing measures of the alarm message.
[0014] As an improvement of the above solution, the updating of the knowledge base according to the alarm message and the predicted processing measure includes:
[0015] Generate a binding relationship between the warning message and the predicted processing measure and input it into the knowledge base to be manually marked for verification;
[0016] When the verification is passed, the predicted processing measure is used as the alarm processing measure of the alarm message, and a corresponding relationship between the alarm message and the alarm processing measure is generated and stored in the knowledge base.
[0017] As an improvement of the above solution, the method further includes:
[0018] When the return result of the AI large model is not received, the alarm message is marked as a manual processing message.
[0019] As an improvement of the above solution, before determining whether the alarm message is recorded in a preset knowledge base, the method further includes:
[0020] Parsing the alarm message to determine alarm-related fields;
[0021] According to the alarm related fields, determining whether the alarm message is recorded in a preset metadata database;
[0022] If yes, encapsulate the alarm message according to a preset message body structure to obtain an encapsulated alarm message; wherein the message body structure is composed of relevant attributes of the alarm message;
[0023] If not, the warning message is discarded.
[0024] As an improvement of the above solution, the determining whether the alarm message is recorded in a preset knowledge base includes:
[0025] Obtaining the message body structure of the encapsulated alarm message;
[0026] When the message body structure is recorded in the knowledge base, determining that the alarm information is recorded in the preset knowledge base;
[0027] When the message body structure is not recorded in the knowledge base, it is determined that the alarm information is not recorded in the preset knowledge base.
[0028] As an improvement of the above solution, after determining whether the alarm message is recorded in the preset knowledge base, the method further includes:
[0029] When the alarm message is recorded in the knowledge base, querying the alarm processing measures corresponding to the alarm message according to the knowledge base;
[0030] Execute the alarm handling measures.
[0031] As an improvement of the above solution, after receiving the alarm messages monitored by each edge cluster, the method further includes:
[0032] Record the alarm message into the work order database;
[0033] Obtaining a processing result of the alarm message; wherein the processing result includes manual processing, successful automatic processing, or failed automatic processing;
[0034] The work order status of the alarm message in the work order library is updated according to the processing result.
[0035] The embodiment of the present invention further provides an alarm message processing device, including:
[0036] A message receiving module is used to receive alarm messages detected by each edge cluster;
[0037] A message judgment module, used to judge whether the alarm message is recorded in a preset knowledge base; wherein the knowledge base records the correspondence between a number of alarm messages and alarm processing measures;
[0038] A message analysis module, used to call a pre-trained AI large model for analysis when the alarm message is not recorded in the knowledge base, and obtain a predicted processing measure for the alarm message;
[0039] A knowledge base updating module is used to update the knowledge base according to the alarm message and the predicted processing measures.
[0040] An embodiment of the present invention also provides an alarm message processing device, including a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor, and when the processor executes the computer program, the alarm message processing method as described in any one of the above items is implemented.
[0041] An embodiment of the present invention further provides a computer-readable storage medium, which includes a stored computer program, wherein when the computer program is running, the device where the computer-readable storage medium is located is controlled to execute any of the alarm message processing methods described above.
[0042] An embodiment of the present invention further provides a computer program product, which includes a computer program or a computer instruction. When the computer program or the computer instruction is executed by a processor, the alarm message processing method as described in any one of the above is implemented.
[0043] Compared with the prior art, the alarm message processing method, device, equipment, medium and program product disclosed in the present invention collects the alarm messages monitored by each edge cluster, and automatically processes or transfers them to manual processing according to the results of knowledge base matching and AI answers, and adds the knowledge of AI answers to the knowledge base. The embodiments of the present invention improve the computing power and data model scale for processing alarm messages, improve the processing ability of alarm messages, and the embodiments of the present invention realize complete closed-loop feedback, receive alarm information, match the knowledge base and expand based on artificial intelligence, and call the corresponding script to automatically operate to cure the fault, which can save a lot of operation and maintenance monitoring manpower and further improve the processing ability of alarm messages. BRIEF DESCRIPTION OF THE DRAWINGS
[0044] Figure 1 It is a flowchart of a method for processing an alarm message provided by an embodiment of the present invention;
[0045] Figure 2 is a schematic diagram of the relationship between the central cluster and the edge cluster in an embodiment of the present invention;
[0046] Figure 3 It is a schematic diagram of the flow of work performed by the message receiving module in an embodiment of the present invention;
[0047] Figure 4 It is a schematic diagram of the flow of work performed by the message distribution module in an embodiment of the present invention;
[0048] Figure 5 It is a schematic diagram of the flow of work performed by the message processing module in an embodiment of the present invention;
[0049] Figure 6 is a schematic diagram of the structure of a service management module in an embodiment of the present invention;
[0050] Figure 7 It is a structural diagram of an alarm message processing device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0051] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0052] In the description of the present application, it should be understood that the terms "center", "up", "down", "front", "back", "left", "right", "vertical", "horizontal", "top", "bottom", "inside", "outside", etc., indicating orientations or positional relationships, are based on the orientations or positional relationships shown in the accompanying drawings, and are only for the convenience of describing the present application and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore should not be understood as a limitation on the present application.
[0053] The terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of the features. In the description of this application, unless otherwise specified, "plurality" means two or more.
[0054] See also Figure 1 , is a flow chart of a method for processing an alarm message provided by an embodiment of the present invention. An embodiment of the present invention provides a method for processing an alarm message, the method is applied to a central cluster, and the method includes steps S11 to S14:
[0055] S11, receiving alarm messages monitored by each edge cluster;
[0056] S12, determining whether the alarm message is recorded in a preset knowledge base; wherein the knowledge base records a correspondence between a plurality of alarm messages and alarm processing measures;
[0057] S13. When the alarm message is not recorded in the knowledge base, a pre-trained AI big model is called to perform analysis to obtain a predicted processing measure for the alarm message;
[0058] S14. Update the knowledge base according to the alarm message and the predicted processing measures.
[0059] In the embodiment of the present invention, a monitoring alarm self-healing system based on artificial intelligence is mainly provided, and the monitoring alarm self-healing system includes a central cluster and several edge clusters, and the central cluster and the edge cluster are connected through a network to form a cloud-edge structure. Figure 2, is a schematic diagram of the relationship between the central cluster and the edge cluster in the embodiment of the present invention. Each edge cluster is deployed with a prometheus node, which is responsible for monitoring alarm messages and reporting them to the central cluster, and is implemented through the remote_push mode to achieve southbound alarm push. In addition, the edge cluster can also deploy a launch script group, which can be triggered by an external remote remote_call to achieve northbound command push, and execute self-healing operations such as restarting and cleaning disks on the server.
[0060] It should be noted that Prometheus is an open source monitoring and alarm system based on a time series database, which is very suitable for monitoring Kubernetes clusters. The basic principle of Prometheus is to periodically capture the status of monitored components through the HTTP protocol. Any component can be connected to the monitoring as long as it provides the corresponding HTTP interface. It does not require any SDK or other integration process, and is very suitable for virtualized environment monitoring systems, such as VM, Docker, Kubernetes, etc. The HTTP interface that outputs the monitored component information is called exporter, such as Varnish, Haproxy, Nginx, MySQL, Linux system information (including disk, memory, CPU, network, etc.).
[0061] The central cluster is mainly used to analyze and process the received alarm messages, automatically process or transfer them to manual processing through knowledge base matching and the results of the AI large model answer, and add the knowledge of the AI answer to the knowledge base. Specifically, the central cluster mainly includes a message receiving module, a message distribution module and a message processing module, as well as a business management module for management. Among them, the message receiving module, the message distribution module and the message processing module communicate through the message bus.
[0062] The message receiving module is mainly used to execute step S11, that is, it is responsible for receiving the push of alarm messages generated by the prometheus nodes of each edge cluster. The alarm distribution module is the core module of this system, which is used to execute steps S12 to S14, that is, matching the alarm message from the knowledge base and interacting with the API of the AI big model to supplement the knowledge base.
[0063] In an embodiment of the present invention, a knowledge base is pre-set to store the correspondence between a number of alarm messages and alarm processing measures, and a large AI model is pre-trained to give a corresponding predicted processing measure answer to the alarm message in the form of a question input. During the application process, when the message receiving module receives an alarm message from the edge cluster, the alarm message is sent to the message distribution module. The message distribution module first determines whether the alarm message is recorded in the preset knowledge base. When the alarm message is not recorded in the knowledge base, the pre-trained AI large model is called for analysis to obtain the predicted processing measures of the alarm message, and then the knowledge base is updated according to the alarm message and the predicted processing measures.
[0064] Preferably, after step S12, that is, determining whether the alarm message is recorded in the preset knowledge base, the method further comprises step S15:
[0065] S15. When the alarm message is recorded in the knowledge base, query the alarm processing measure corresponding to the alarm message according to the knowledge base; and execute the alarm processing measure.
[0066] The message processing module is used to execute step S15, and mainly plays the role of an automatic execution worker. It logs in to the remote host through the login method of the remote host saved in the metadata, calls the launch script, performs operations on the host, and executes the alarm processing measures corresponding to the alarm message.
[0067] By adopting the technical means of the embodiment of the present invention, the alarm messages monitored by each edge cluster are collected, and the results of knowledge base matching and AI answers are automatically processed or transferred to manual processing, and the knowledge of AI answers is added to the knowledge base. The embodiment of the present invention improves the computing power and data model scale for processing alarm messages, improves the ability to process alarm messages, and the embodiment of the present invention realizes a complete closed loop, receiving alarm information, matching the knowledge base and expanding based on artificial intelligence, and calling the corresponding script to automatically operate to cure the fault, which can save a lot of operation and maintenance monitoring manpower and further improve the ability to process alarm messages.
[0068] Furthermore, the embodiment of the present invention is further implemented on the basis of the above embodiment, and each module in the central cluster is explained.
[0069] As a preferred implementation, the message receiving module is explained in the embodiment of the present invention, see Figure 3, is a flow chart of the work performed by the message receiving module in an embodiment of the present invention. The message receiving module is also used to parse the received alarm message, generate a work order, and finally encapsulate the message and send the alarm message to the processing module through the message bus.
[0070] Specifically, in step S12, that is, before determining whether the alarm message is recorded in a preset knowledge base, the method further includes the following steps performed by the message receiving module:
[0071] Parsing the alarm message to determine alarm-related fields;
[0072] According to the alarm related fields, determining whether the alarm message is recorded in a preset metadata database;
[0073] If yes, encapsulate the alarm message according to a preset message body structure to obtain an encapsulated alarm message; wherein the message body structure is composed of relevant attributes of the alarm message;
[0074] If not, the warning message is discarded.
[0075] In the embodiment of the present invention, the message bus is implemented using kafka, and the message receiving module is registered as both a producer and a consumer. Kafka is deployed in a high-availability cluster, and the message reliability level is set to -1. Performance is sacrificed to ensure that messages are not lost. When a large number of alarms are generated, the message reliability level can be adjusted.
[0076] The message receiving module provides an HTTP RESTful interface to receive the alarm message pushed by the Prometheus node, and parses the alarm message to determine whether it conforms to the uniformly defined Prometheus field. If not, it is considered that the parsing failed and the alarm message is directly discarded. When the parsing is successful, the preset metadata database is read to determine whether the parsed alarm-related field is in the metadata database. If it does not exist, it is considered to be an incorrect configuration access and the message is also discarded. If the alarm-related information exists, the alarm message is encapsulated.
[0077] Specifically, the alarm message is encapsulated according to the following message body structure and produced to Kafka. The message format is JSON, and the message body includes the cluster to which it belongs, the alarm level (such as fatal, severe, general), the alarm level (such as device layer, system layer, business layer, perception layer), the host / middleware and other related attributes, and the message body used for processing, including the jump server connection method, the processing script location, and the automatically generated work order number and other information.
[0078] The message receiving module can directly access the metadata database, and interacts with the metadata database mainly to identify the legitimacy of the message. After receiving the message, it is determined whether the message needs further analysis. If the required fields are missing or the format is incorrect, it is directly discarded without further processing.
[0079] Preferably, in step S11, that is, after receiving the alarm messages monitored by each edge cluster, the method further includes the following steps performed by the message receiving module:
[0080] Record the alarm message into the work order database;
[0081] Obtaining a processing result of the alarm message; wherein the processing result includes manual processing, successful automatic processing, or failed automatic processing;
[0082] The work order status of the alarm message in the work order library is updated according to the processing result.
[0083] In the embodiment of the present invention, after receiving the alarm message, the message receiving module also records the alarm message to the work order library and sends it to the message bus asynchronously. If the sending fails, the work order library status is changed to not pushed, and the timing thread is started to retry later.
[0084] It should be noted that all modules are decoupled through the message bus, and business logic is implemented by producing and subscribing to different topics. The message receiving module consumes the messages produced by the prometheus node of the cluster, processes its own business logic, and encapsulates the messages to be distributed as a producer and sends them to the message bus. The downstream message distribution module consumes (meaning receiving messages) the messages produced by the message receiving module, processes its own business logic, and encapsulates the messages to be processed as a producer and sends them to the message bus. The downstream message processing module consumes the messages produced by the message distribution module, processes its own business logic, and encapsulates the message processing results as a producer and sends them to the message bus. The message receiving module consumes as a consumer to realize a closed loop of logic.
[0085] The message receiving module also receives the processing result message of the alarm message from the message bus, records the processing result, and updates the work order status through the field of whether the automatic processing is successful. If the automatic processing success status is failure, notify manual processing, such as sending an email to notify manual processing.
[0086] As a preferred implementation, the message distribution module is explained in the embodiment of the present invention. Figure 4 , is a flowchart of the work performed by the message distribution module in an embodiment of the present invention, then step 12, i.e., determining whether the alarm message is recorded in a preset knowledge base, includes:
[0087] Obtaining the message body structure of the encapsulated alarm message;
[0088] When the message body structure is recorded in the knowledge base, determining that the alarm information is recorded in the preset knowledge base;
[0089] When the message body structure is not recorded in the knowledge base, it is determined that the alarm information is not recorded in the preset knowledge base.
[0090] Then step S13, that is, when the alarm message is not recorded in the knowledge base, calling the pre-trained AI big model for analysis to obtain the predicted processing measures for the alarm message, includes:
[0091] When the warning message is not recorded in the knowledge base, generating a question statement according to the warning message;
[0092] Calling a pre-trained AI big model, and inputting the question sentence into the AI big model for analysis;
[0093] When receiving the return result of the AI big model, extract the processing statement in the return result to obtain the predicted processing measure of the alarm message;
[0094] When the return result of the AI large model is not received, the alarm message is marked as a manual processing message.
[0095] Then step S14, that is, updating the knowledge base according to the alarm message and the predicted processing measures, includes:
[0096] Generate a binding relationship between the warning message and the predicted processing measure and input it into the knowledge base to be manually marked for verification;
[0097] When the verification is passed, the predicted processing measure is used as the alarm processing measure of the alarm message, and a corresponding relationship between the alarm message and the alarm processing measure is generated and stored in the knowledge base.
[0098] In the embodiment of the present invention, after receiving the alarm message from the message bus, the message distribution module performs a match in the knowledge base according to the message body structure field of the alarm message to see whether the alarm information is in the knowledge base.
[0099] Optionally, the matching method can obtain the result by using SQL precise query. The knowledge base includes fields of related attributes such as the cluster to which the alarm message belongs, the alarm level, the host / middleware to which it belongs, etc. for query and matching, and also saves the relevant information of the preset processing script, including the script location and the information of the calling parameters. It can be directly assembled into a JSON message format, including the alarm information substituted as it is, and the processing information obtained from the knowledge base, and sent to the message processing module through the message bus.
[0100] When the alarm message is not accurately matched in the knowledge base, the message distribution module starts to call the preset AI big model interface, generates a question statement based on the alarm message and inputs it into the AI big model for analysis to obtain the return result of the AI big model. As an example, the request parameter is prompt information: As an operation and maintenance expert, please answer the following alarm how to handle it, then splice the alarm information, send it to the AI big model API, and get the returned information.
[0101] It should be noted that the AI big model can quickly generate executable code according to user needs or generate more matching response content based on the platform's own various data according to user needs. As an example, the AI big model uses the Baidu Qianfan big model approved by the Ministry of Industry and Information Technology, calls the API of the ChatGLM-6B training model, and uses the trained big model data set to obtain richer results.
[0102] When the AI large model does not return a result, the alarm message is directly marked as manual processing, a manual processing message is sent, and the process ends.
[0103] When the AI big model returns the result, the returned result is parsed to extract the <code>hint, and transfer the processing statements to the knowledge base to be manually marked, so as to manually mark the returned results and enter the knowledge base for expanding and enriching the knowledge base information.
[0104] It should be noted that prompt is used to prompt the large model AI, and then the returned results are manually annotated, which ultimately continuously increases the success rate of automatic processing and self-healing. The manual marking function in the embodiment of the present invention can be manually annotated and processed through the background business management platform.
[0105] The embodiment of the present invention also integrates the function of manual training of large models into the system. The prompt can be continuously strengthened and eventually evolved into a multi-round dialogue function, which can obtain matching results more accurately.
[0106] As a preferred implementation, the message processing module is explained in the embodiment of the present invention. Figure 5 , is a flowchart of the work performed by the message processing module in the embodiment of the present invention. After receiving the alarm message, the message processing module determines whether it is manually processed. If it is manually processed, it directly generates the processing result message as manual processing, and sends it to the alarm receiving module, and updates the work order status in the work order library as a manual work order. If it is received and determined to be automatically processed, then according to the parameters of the received alarm processing measures, remotely log in to the host, execute the corresponding script, encapsulate the processed message body according to the execution result, determine the processing result as automatic processing success or automatic processing failure, and send it to the alarm receiving module, and update the work order status in the work order library.
[0107] As a preferred implementation, the present invention explains the service management module. Figure 6 , is a schematic diagram of the structure of a business management module in an embodiment of the present invention, wherein the business management module includes a metadata maintenance unit, a knowledge base maintenance unit, a work order processing unit and a prompt management unit.
[0108] The metadata maintenance unit mainly maintains the metadata database, including cluster related information, alarm related information configuration, and information identification of each cluster jump server IP, login account, login password, launch script location, script supported functions, etc. Optionally, management and maintenance are performed through mysql database tables.
[0109] The knowledge base maintenance unit mainly performs alarm-related maintenance, such as clusters, alarm levels, alarm levels, hosts / instances, processing solutions and processing scripts and statements based on these dimensions, parameters of corresponding launch scripts, etc. It is also managed and maintained through MySQL database tables.
[0110] The work order processing unit mainly processes and updates the work order library. The work order library is mainly a database with work orders as the core, which mainly maintains information related to work orders and performs status change flow, creation time, corresponding alarm number, whether to automatically process, corresponding knowledge base number, current status, flow time and other information. Use MySQL database for storage and management.
[0111] The prompt management unit directly interacts with the API of the AI big model to manage the prompt template, which is used to maintain the prompt template and call the API for management.
[0112] It should be noted that the above module units are mainly implemented in go language, and the httpserver and message queue consumption server are developed through the gin framework to implement various functional modules. They can be easily deployed by packaging them into docker image packages.
[0113] Furthermore, the embodiments of the present invention illustrate the manual labeling and training process of the AI model:
[0114] Manual labeling process:
[0115] First, create a prompt word: create a prompt template and prompt the AI with the following identity information. The identity information mainly includes 5 items: LINUX operating system expert, database expert, message queue expert, open source middleware expert, and JAVA development expert. Then, according to the host / instance information brought by different alarm distribution messages, when splicing AI question messages, use the identity information as the content of interpolation variable 1, call the API to replace it, and get a complete template. Add the content required to be returned, for example, only require the operation commands under the LINUX system to be given. Finally, call the question API with the complete content spliced in the above steps to get the answer result of the AI model. Manual labeling in the early training stage requires labeling for each return of AI to indicate whether the result is correct.
[0116] The training process of the AI model is mainly as follows:
[0117] Data and preparation: Get data from the data source, clean and pre-process the data to ensure the accuracy of model training. Use the system manuals, Linux man files, and middleware troubleshooting manuals that you have accumulated and collected from the Internet as data sources for basic training;
[0118] Select a suitable algorithm: According to the characteristics of the data and the task requirements, select a suitable algorithm for training. Here, based on the principle of text similarity, the k-means algorithm is selected to calculate the similarity of the matching texts, adjust and cluster the center points. The present invention uses the torch.nn.init.kmean function to implement this.
[0119] Build the model: Use the selected algorithm to build the model. Use the deep learning framework PyTorch and Python to implement text similarity calculation. Since the field is relatively concentrated, the training samples and training volume will not be large, and ordinary PCs can handle it. Use the GloVe model and cosine similarity for calculation. First, use the GloVe model to segment words, convert the text into vectors, and then use the cosine_similarity function to calculate the cosine similarity.
[0120] Model training: Input the training data set into the model for training, and continuously adjust the model parameters and hyperparameters to optimize the performance of the model on the validation set. The variance of the distance can be used to minimize the loss function to confirm the accuracy of the training results. The training here calls the API and repeatedly simulates the problem until it confirms that the AI's return is similar to the actual result. Through the results, the similarity is obtained and the following feedback is given:
[0121] 1> Similarity>0.9: Accept and add to the knowledge base;
[0122] 0.9>similarity>0.8: repeated questions;
[0123] 0.8> Similarity>0.5: Repeat the question and ask for readjustment;
[0124] Similarity < 0.5: Repeat the question and ask for the result again;
[0125] Model evaluation and tuning: After model training is completed, use the test set to evaluate the model and calculate the model's accuracy, error and other indicators. If the model's performance is not ideal, you need to adjust the model's parameters or change the hyperparameters to optimize the model's performance.
[0126] Deployment and monitoring: Deploy the trained model to the actual application scenario and monitor the model in real time to ensure its normal operation and meet business needs. During the application process, it is also necessary to continuously collect feedback data to facilitate continuous optimization and upgrading of the model. The feedback data here is the process of manual labeling, such as <code>< / code> The code between the hints is tested and manually adjusted. The correct result is called to the API to inform the AI, and the prompt words are given: repeat the question + correct answer + please return this result. After successful operation, the returned result is solidified into a script and stored in the metadata database and script library.
[0127] By adopting the technical means of the embodiment of the present invention and through the above functional modules, the embodiment of the present invention realizes a complete closed loop, from receiving the alarm message to knowledge base matching and expansion based on artificial intelligence, to calling the corresponding script for automatic operation to cure the fault, which can save a lot of operation and maintenance monitoring manpower. The embodiment of the present invention uses the AI big model technology that is currently popular in the IT industry, based on massive training data. With the help of a huge amount of experience accumulation, the monitoring alarm and self-healing system can have an almost unlimited knowledge base, assisted by simple manual training, to achieve a closed loop of automatic processing of work orders. At the same time, the embodiment of the present invention also introduces big model technology and cloud edge architecture, uses the trained big model data set to obtain richer results, and at the same time, through prompting the big model for prompt training, the knowledge base can be continuously improved to realize the self-learning mechanism under manual assistance. In addition, the embodiment of the present invention plans a self-healing function, based on the knowledge base trained with a big model, it can handle more complex scenarios, and can continuously learn and enrich the knowledge base and gradually improve it.
[0128] The present invention also provides an alarm message processing device, which is applied to a central cluster, and the device includes:
[0129] A message receiving module is used to receive alarm messages detected by each edge cluster;
[0130] A message judgment module, used to judge whether the alarm message is recorded in a preset knowledge base; wherein the knowledge base records the correspondence between a number of alarm messages and alarm processing measures;
[0131] A message analysis module, used to call a pre-trained AI large model for analysis when the alarm message is not recorded in the knowledge base, and obtain a predicted processing measure for the alarm message;
[0132] A knowledge base updating module is used to update the knowledge base according to the alarm message and the predicted processing measures.
[0133] It should be noted that the alarm message processing device provided in the embodiment of the present invention is used to execute all the process steps of the alarm message processing method in the above embodiment, and the working principles and beneficial effects of the two correspond one to one, so they are not repeated here. Among them, the message judgment module, the message analysis module and the knowledge base update module are submodules in the message distribution module in the above embodiment.
[0134] See also Figure 7 , is a structural diagram of an alarm message processing device provided in an embodiment of the present invention. The embodiment of the present invention also provides an alarm message processing device 20, including a processor 21, a memory 22, and a computer program stored in the memory and configured to be executed by the processor, and when the processor executes the computer program, it implements the alarm message processing method described in any one of the above embodiments.
[0135] It should be noted that an alarm message processing device provided in an embodiment of the present invention is used to execute all process steps of an alarm message processing method in the above embodiment, and the working principles and beneficial effects of the two correspond one to one, so they will not be repeated.
[0136] An embodiment of the present invention further provides a computer-readable storage medium, which includes a stored computer program, wherein when the computer program is running, the device where the computer-readable storage medium is located is controlled to execute the alarm message processing method as described in any one of the above embodiments.
[0137] An embodiment of the present invention further provides a computer program product, which includes a computer program or computer instructions. When the computer program or the computer instructions are executed by a processor, the alarm message processing method as described in any one of the above embodiments is implemented.
[0138] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiments can be implemented by instructing the relevant hardware through a computer program, and the program can be stored in a computer-readable storage medium, and when the program is executed, it can include the processes of the embodiments of the above-mentioned methods. The storage medium can be a disk, an optical disk, a read-only memory (ROM) or a random access memory (RAM), etc.
[0139] The above is a preferred embodiment of the present invention. It should be pointed out that a person skilled in the art can make several improvements and modifications without departing from the principle of the present invention. These improvements and modifications are also considered to be within the scope of protection of the present invention.< / code>
Claims
1. A method for processing an alarm message, characterized in that: include: Receive alarm messages detected by each edge cluster; Determine whether the alarm message is recorded in a preset knowledge base; wherein the knowledge base records a correspondence between a number of alarm messages and alarm processing measures; When the alarm message is not recorded in the knowledge base, a pre-trained AI big model is called to perform analysis to obtain a predicted processing measure for the alarm message; The knowledge base is updated according to the warning message and the predicted processing measures.
2. The method for processing an alarm message according to claim 1, wherein: When the alarm message is not recorded in the knowledge base, the pre-trained AI big model is called for analysis to obtain the predicted processing measures for the alarm message, including: When the warning message is not recorded in the knowledge base, generating a question statement according to the warning message; Calling a pre-trained AI big model, and inputting the question sentence into the AI big model for analysis; When the return result of the AI big model is received, the processing statement in the return result is extracted to obtain the predicted processing measures of the alarm message.
3. The method for processing an alarm message according to claim 2, wherein: The updating of the knowledge base according to the alarm message and the predicted processing measure includes: Generate a binding relationship between the warning message and the predicted processing measure and input it into the knowledge base to be manually marked for verification; When the verification is passed, the predicted processing measure is used as the alarm processing measure of the alarm message, and a corresponding relationship between the alarm message and the alarm processing measure is generated and stored in the knowledge base.
4. The method for processing an alarm message according to claim 2, wherein: The method further comprises: When the return result of the AI large model is not received, the alarm message is marked as a manual processing message.
5. The method for processing an alarm message according to claim 1, wherein: Before determining whether the alarm message is recorded in a preset knowledge base, the method further includes: Parsing the alarm message to determine alarm-related fields; According to the alarm related fields, determining whether the alarm message is recorded in a preset metadata database; If yes, encapsulate the alarm message according to a preset message body structure to obtain an encapsulated alarm message; wherein the message body structure is composed of relevant attributes of the alarm message; If not, the warning message is discarded.
6. The method for processing an alarm message according to claim 5, wherein: The determining whether the alarm message is recorded in a preset knowledge base includes: Obtaining the message body structure of the encapsulated alarm message; When the message body structure is recorded in the knowledge base, determining that the alarm information is recorded in the preset knowledge base; When the message body structure is not recorded in the knowledge base, it is determined that the alarm information is not recorded in the preset knowledge base.
7. The method for processing an alarm message according to claim 1, wherein: After determining whether the alarm message is recorded in the preset knowledge base, the method further includes: When the alarm message is recorded in the knowledge base, querying the alarm processing measures corresponding to the alarm message according to the knowledge base; Execute the alarm handling measures.
8. The method for processing an alarm message according to claim 4 or 7, characterized in that: After receiving the alarm messages monitored by each edge cluster, the method further includes: Record the alarm message into the work order database; Obtaining a processing result of the alarm message; wherein the processing result includes manual processing, successful automatic processing, or failed automatic processing; The work order status of the alarm message in the work order library is updated according to the processing result.
9. An alarm message processing device, characterized in that: include: A message receiving module is used to receive alarm messages detected by each edge cluster; A message judgment module, used to judge whether the alarm message is recorded in a preset knowledge base; wherein the knowledge base records the correspondence between a number of alarm messages and alarm processing measures; A message analysis module, used to call a pre-trained AI large model for analysis when the alarm message is not recorded in the knowledge base, and obtain a predicted processing measure for the alarm message; A knowledge base updating module is used to update the knowledge base according to the alarm message and the predicted processing measures.
10. An alarm message processing device, characterized in that: The method comprises a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor, wherein the processor implements the alarm message processing method according to any one of claims 1 to 8 when executing the computer program.
11. A computer-readable storage medium, characterized in that: The computer-readable storage medium includes a stored computer program, wherein when the computer program is executed, the device where the computer-readable storage medium is located is controlled to execute the alarm message processing method according to any one of claims 1 to 8.
12. A computer program product, characterized in that The computer program product comprises a computer program or a computer instruction, and when the computer program or the computer instruction is executed by a processor, the alarm message processing method according to any one of claims 1 to 8 is implemented.
Citation Information
Cited By
Early warning processing and knowledge closed-loop method and device, electronic equipment and storage medium
CN119512033A
