Abnormity detection method, device, equipment, medium and product
Using offline large language models and information retrieval enhancement algorithms to analyze service indicator data in privatized scenarios solves the security risks and insufficient reasoning capabilities of AIOps technology in offline scenarios, and achieves efficient anomaly detection and data privacy protection.
Patent Information
- Application Number
- CN202410839255.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-26
- Publication Date
- 2024-09-27
AI Technical Summary
Existing AIOps technology cannot effectively analyze service indicator data in offline scenarios. There are security risks and insufficient reasoning capabilities. It is difficult to ensure data privacy and analysis efficiency in privatization scenarios.
The offline large language model is combined with the information retrieval enhancement algorithm to extract features from the indicator data to be analyzed, and screen out the target judgment criteria based on the pre-built judgment criteria library to determine the abnormal analysis results and enhance the analysis capabilities of the offline model.
It improves the accuracy and precision of service indicator data anomaly detection, ensures data security, solves the security risks of online models and insufficient reasoning capabilities of offline models, and is suitable for privacy environments in privatization scenarios.
Smart Images

Figure CN118708458A
Abstract
Description
Technical Field
[0001] The present invention relates to the field of artificial intelligence technology, and in particular to an anomaly detection method, device, equipment, medium and product. Background Art
[0002] With the development of modern software technology, the complexity of software systems has increased dramatically, bringing huge challenges to system operation and maintenance. Large-scale platforms such as data centers and cloud computing generate massive amounts of indicator data every day. These indicator data record various system events, operations, and possible error information, and are indispensable resources for ensuring the stable operation of the system. However, manual analysis of these huge indicator data sets is not only time-consuming and labor-intensive, but also difficult to detect potential problems and anomalies in the system in a timely manner, which directly affects the reliability of the system.
[0003] In order to improve the efficiency of indicator analysis, automated operation and maintenance technology has developed rapidly, and the concept of artificial intelligence for IT operations (AIOps) has also been proposed. AIOps aims to use artificial intelligence technology to analyze existing operation and maintenance data (indicators, monitoring information, application information, etc.) to further improve the effect of automated operation and maintenance. AIOps does not rely on manually specified rules, but advocates that machine learning algorithms automatically learn from massive operation and maintenance data, and continuously refine and summarize rules. AIOps can quickly analyze a large amount of indicator data, efficiently handle abnormal information, and significantly reduce the burden on operation and maintenance experts.
[0004] However, the level of AIOps in operation and maintenance data analysis and exception handling is a key challenge in the current AIOps field, and it has obvious limitations and cannot be used in offline scenarios. In order to protect the privacy information in private data and avoid the leakage of sensitive information, most privatization scenarios are maintained offline, which cannot connect to the Internet or send indicator data outside the local area network. Summary of the invention
[0005] The present invention provides an anomaly detection method, device, equipment, medium and product to improve the accuracy of anomaly detection of service indicator data and ensure the security of service indicator data in a privacy environment.
[0006] According to a first aspect of the present invention, there is provided an anomaly detection method, comprising:
[0007] Obtain offline large language models, indicator data to be analyzed, and pre-built judgment standard libraries;
[0008] Extracting indicator features from the indicator data to be analyzed based on the offline large language model;
[0009] Based on the information retrieval enhancement algorithm, selecting the target judgment standard matching the indicator characteristics from the judgment standard library;
[0010] An abnormal analysis result is determined according to the target judgment standard, the indicator characteristics and the offline large language model.
[0011] According to a second aspect of the present invention, there is provided an abnormality detection device, comprising:
[0012] Information acquisition module, used to obtain offline large language models, indicator data to be analyzed, and pre-built judgment standard libraries;
[0013] An indicator extraction module, used for extracting indicator features from the indicator data to be analyzed based on the offline large language model;
[0014] A rule determination module, used to screen out target judgment criteria matching the indicator characteristics from the judgment criteria library based on an information retrieval enhancement algorithm;
[0015] The result determination module is used to determine the abnormal analysis result according to the target judgment standard, the indicator characteristics and the offline large language model.
[0016] According to a third aspect of the present invention, there is provided an electronic device, the electronic device comprising:
[0017] at least one processor; and
[0018] a memory communicatively connected to the at least one processor; wherein,
[0019] The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the anomaly detection method described in any embodiment of the present invention.
[0020] According to a fourth aspect of the present invention, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the anomaly detection method described in any embodiment of the present invention when executed.
[0021] According to a fifth aspect of the present invention, an embodiment of the present invention further provides a computer program product, the computer program product comprising a computer program, and when the computer program is executed by a processor, the anomaly detection method of any embodiment of the present invention is implemented.
[0022] The technical solution of the embodiment of the present invention is to obtain an offline large language model, indicator data to be analyzed and a pre-built judgment standard library; extract indicator features from the indicator data to be analyzed based on the offline large language model; screen out target judgment standards that match the indicator features from the judgment standard library based on the information retrieval enhancement algorithm; and determine the abnormal analysis results based on the target judgment standards, indicator features and the offline large language model. Through the judgment standard library generated by the online large language model, the target judgment standards that match the indicator data to be analyzed are first retrieved, and then the indicator features are analyzed based on the target judgment standards through the offline large language model to determine the abnormal analysis results. The indicator analysis capability of the offline large language model is effectively enhanced, the problems of online model security risks and insufficient offline model reasoning capabilities are solved, and the accuracy of service indicator analysis is effectively improved.
[0023] It should be understood that the contents described in this section are not intended to identify the key or important features of the embodiments of the present invention, nor are they intended to limit the scope of the present invention. Other features of the present invention will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0024] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0025] Figure 1 is a flowchart of an anomaly detection method provided according to Embodiment 1 of the present invention;
[0026] Figure 2 is a flow chart of an anomaly detection method provided according to Embodiment 2 of the present invention;
[0027] Figure 3 is a schematic diagram of the structure of an abnormality detection device provided according to Embodiment 3 of the present invention;
[0028] Figure 4 It is a schematic diagram of the structure of an electronic device implementing an embodiment of the present invention. DETAILED DESCRIPTION
[0029] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings 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 should fall within the scope of protection of the present invention.
[0030] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0031] Embodiment 1
[0032] Figure 1 A flowchart of an abnormality detection method is provided for the first embodiment of the present invention. This embodiment is applicable to abnormality detection of service indicators. The method can be performed by an abnormality detection device. The abnormality detection device can be implemented in the form of hardware and / or software. The abnormality detection device can be configured in an electronic device. Figure 1 As shown, the method includes:
[0033] S110, obtaining an offline large language model, indicator data to be analyzed, and a pre-built judgment standard library.
[0034] In this embodiment, in order to ensure the problem of sensitive information leakage in a privatization scenario, an offline large language model is used. The offline large language model can be understood as a large language model that is not connected to the network. The large language model is a model based on machine learning and natural language processing technology.
[0035] In this embodiment, the indicator data to be analyzed can be understood as indicator data used for abnormality detection. The pre-built judgment standard library can be understood as a library including multiple rules for abnormality judgment.
[0036] Specifically, the processor can obtain the indicator data to be analyzed in real time, and correspondingly obtain the offline large language model and the constructed judgment standard library from the memory.
[0037] S120: extracting indicator features from the indicator data to be analyzed based on the offline large language model.
[0038] In this embodiment, the indicator feature can be understood as an indicator feature used for abnormality judgment.
[0039] Specifically, the processor may extract indicator features from the indicator data to be analyzed by using a feature extraction module in an offline large language model or the like.
[0040] S130. Filter out target judgment criteria that match the indicator characteristics from the judgment criteria library based on the information retrieval enhancement algorithm.
[0041] In this embodiment, the information retrieval enhancement algorithm can be understood as a technology that combines retrieval technology and a large language model to enhance the response capability of the language model. The target judgment standard can be understood as a standard rule for judging whether an indicator feature is abnormal.
[0042] Specifically, the processor may determine the similarity between the indicator feature and each judgment standard in the judgment standard library based on the information retrieval enhancement algorithm, and then retrieve the target judgment standard with the highest similarity to the indicator feature, and the target judgment standard may be one or more.
[0043] S140: Determine the abnormal analysis result according to the target judgment standard, indicator characteristics and offline large language model.
[0044] In this embodiment, the abnormality analysis result can be understood as a result including an indication of whether it is abnormal, and the cause of the abnormality.
[0045] Specifically, the processor can form indication information corresponding to the offline large language model based on the target judgment standard, input the indication information and indicator features into the offline large language model, and determine whether there are abnormalities in the indicator features and the cause of the abnormality when an abnormality exists based on the output result of the offline large language model, so as to obtain the abnormal analysis results corresponding to the indicator data to be analyzed.
[0046] The technical solution of the embodiment of the present invention is to obtain an offline large language model, indicator data to be analyzed and a pre-built judgment standard library; extract indicator features from the indicator data to be analyzed based on the offline large language model; screen out target judgment standards that match the indicator features from the judgment standard library based on the information retrieval enhancement algorithm; and determine the abnormal analysis results based on the target judgment standards, indicator features and the offline large language model. Through the judgment standard library generated by the online large language model, the target judgment standards that match the indicator data to be analyzed are first retrieved, and then the indicator features are analyzed based on the target judgment standards through the offline large language model to determine the abnormal analysis results. The indicator analysis capability of the offline large language model is effectively enhanced, the problems of online model security risks and insufficient offline model reasoning capabilities are solved, and the accuracy of service indicator analysis is effectively improved.
[0047] As a first optional embodiment of the first embodiment, based on the above embodiment, the steps of building a judgment standard library include:
[0048] Obtain the service indicator data of the microservice application in the associated platform and form a service indicator sequence; analyze each service indicator sequence to determine the running status information; decompose the running status information according to the online large language model, determine the timestamp, HTTP method and endpoint, HTTP status code and response size, response time and reference field in the running status information, and obtain the decomposed feature information; and analyze the decomposed feature information based on the online large language model, determine the abnormal analysis result, and perform the next round of iteration; when the iteration end condition is met, construct a judgment standard library according to each abnormal analysis result and the preset rule template, wherein the preset rule template includes request port characteristics, service path characteristics, status code characteristics, execution operation characteristics and response time characteristics.
[0049] In this embodiment, the associated platform can be understood as a platform for providing services, such as a Kubernetes platform. The microservice application can be understood as an application for providing services on the associated platform. The service indicator data can be understood as the indicator data generated when the application is running. The service indicator sequence can be understood as a sequence of service indicator data sorted in time. The operating status information can be understood as information that characterizes the state of the microservice application at runtime. The preset rule template can be understood as a template for forming a judgment standard. The decomposition feature information can be understood as feature information used for abnormal judgment. The iteration end condition can be understood as a condition for ending the iteration, for example, the maximum number of iterations can be set.
[0050] Specifically, the service indicator data of the microservice application in the associated platform is obtained and a service indicator sequence is formed. In the real business context, such as e-commerce, financial services, and healthcare, according to its unique business needs and operation processes, the microservice application deployed in the associated platform is monitored and recorded through the indicator collection tool. The operation and behavior of the application program is obtained, and the service indicator data is then constructed through the service indicator data. The service indicator data may include the occurrence of events, operations, system errors, and other calculation information. The processor can analyze each service indicator sequence based on the preset standard to determine the operation status information. The processor can decompose the running status information according to the online large language model, determine the timestamp (Timestamp), HTTP method and endpoint (HTTP Methodand Endpoint), HTTP status code and response size (HTTP Status Code and Response Size), response time (Response Time) and referrer field (Referrer Field) in the running status information, obtain the decomposed feature information, and analyze the decomposed feature information based on the online large language model to determine the abnormal analysis result, and perform the next round of iteration. When the iteration end condition is met, the processor can form a judgment standard based on each abnormal analysis result and the preset rule template, and construct a judgment standard library through each judgment standard. Among them, the specific form of the preset rule template can include five features, request port feature: such as Request:POST, service path feature: such as: Service: / path / , status code feature: such as: Status code, execution operation feature: such as: Operation:Request authentication Token and response time feature: such as: Response time:XXXX milliseconds.
[0051] The steps of analyzing each service indicator sequence and determining the operation status information can be specifically described as follows:
[0052] For each service indicator sequence, the service indicator sequence is decomposed to determine the residual sequence; the starting point correlation value of the sequence starting point and the midpoint correlation value of the sequence midpoint of the residual sequence are determined; according to the starting point correlation value and the midpoint correlation value, the correlation difference value of the service indicator sequence is determined; based on the preset threshold set and the correlation difference information, it is determined whether the service indicator sequence is an operating status indicator; according to each operating status indicator, the operating status information is constructed.
[0053] In this embodiment, the residual sequence can be understood as the part of data variation that cannot be explained in the service indicator sequence model. The starting point of the sequence can be understood as the first data in the residual sequence. The starting point association value can be understood as the correlation measurement value of the starting point of the sequence. The midpoint association value can be understood as the correlation measurement value of the midpoint of the sequence. The association difference value can be understood as the difference between the starting point of the sequence and the midpoint of the sequence. The preset threshold set can be understood as a set of thresholds used to determine whether the service indicator sequence can be used as an operating status indicator.
[0054] Specifically, for each service indicator sequence, the processor may first perform sequence decomposition on the service indicator sequence to determine a residual sequence. The specific formula is as follows:
[0055]
[0056] Where T represents the service indicator sequence, is the trend term estimate of the service indicator series, k is the number of single-sided data points referenced by the moving average method, T i represents the i-th point in the sequence, T r Refers to the residual sequence after sequence decomposition.
[0057] Secondly, in order to save computational overhead, the processor may only determine the starting point associated value of the sequence starting point and the midpoint associated value of the sequence midpoint of the residual sequence. The specific formula is as follows
[0058]
[0059] Among them, A i is the midpoint T of the residual sequence ri The associated value of , N is the sequence length, when i is 1, it is the starting point of the sequence, when i = 0.5*N+1, it is the midpoint of the sequence.
[0060] Finally, the processor can determine the correlation difference value of the service indicator sequence by subtracting the starting point correlation value from the midpoint correlation value. The processor can compare the preset threshold set and the correlation difference information to determine whether the correlation difference information is greater than or equal to the corresponding threshold in the preset threshold set. If it is greater than or equal to, the service indicator sequence is judged to be an operating status indicator. If it is less than, it is not an operating status indicator, or it can be identified by the set judgment criteria. These criteria can be set based on indicators such as error frequency, indicator level (error, warning, information, etc.) and response time. The processor can form the operating status information with each operating status indicator.
[0061] The associated difference value is determined as follows:
[0062] ΔA=|A i -A i+0.5*N
[0063] The first optional embodiment of the first embodiment of the present invention uses an online large language model to analyze service indicator data obtained from real business scenarios from multiple feature dimensions, summarize different judgment criteria, and then form a judgment standard library, which provides support for subsequent abnormal analysis of the offline large language model, thereby improving the analysis accuracy of the offline large language model.
[0064] As a second optional embodiment of the first embodiment, after determining the abnormal analysis result according to the target judgment standard, the indicator characteristics and the offline large language model, it also includes:
[0065] When the abnormal analysis results meet the preset addition conditions, the judgment standard library is updated.
[0066] In this embodiment, the preset adding condition can be understood as a condition for determining whether the abnormal analysis result can be added to the determination standard library.
[0067] Specifically, if the results in the abnormal analysis results show special trends or patterns, or abnormal situations that cannot be automatically identified, the preset addition conditions are met. The processor can form added judgment criteria according to the preset rule template based on the indicator data to be analyzed corresponding to the abnormal analysis results and the abnormal analysis results, and add them to the judgment criteria library.
[0068] The second optional embodiment of the first embodiment improves the judgment standard library by updating the judgment standard library when the preset adding condition is met.
[0069] Embodiment 2
[0070] Figure 2 This is a flowchart of an abnormality detection method provided in Embodiment 2 of the present invention. This embodiment is a further refinement of the above embodiment. Figure 2 As shown, the method includes:
[0071] S201, obtaining an offline large language model, indicator data to be analyzed, and a pre-built judgment standard library.
[0072] S202: extracting indicator features from the indicator data to be analyzed based on the offline large language model.
[0073] S203: Convert the indicator feature into an indicator vector.
[0074] In this embodiment, the indicator vector can be understood as an indicator feature in a vector form. The judgment standard vector can be understood as a judgment standard in a vector form.
[0075] Specifically, the processor may convert the indicator features into an indicator vector through a semantic embedding model, wherein the semantic embedding model may be understood as a model for capturing semantic information and contextual relationships.
[0076] S204, converting each judgment standard in the judgment standard library into a judgment standard vector.
[0077] In this embodiment, the judgment criterion vector can be understood as a judgment criterion in a vector form.
[0078] Specifically, the processor may map the text of each judgment criterion to a vector space through a semantic embedding model to obtain a judgment criterion vector.
[0079] For example, define the indicator to be analyzed as t, a single criterion in the criterion library R as r, and use the semantic embedding model M e Embed the indicators and rules to obtain the embedded indicator vector x t and the judgment criterion vector x r :
[0080] x t =M e (t)
[0081] x r =M e (r)
[0082] S205: Determine the similarity value between the index vector and each judgment standard vector.
[0083] In this embodiment, the similarity value can be understood as being used to characterize the degree of similarity between two vectors.
[0084] Specifically, the processor may use a cosine similarity algorithm to determine the similarity value between the index vector and each judgment standard vector.
[0085] For example, the similarity value Sim(x t ,x r ) can be calculated by the following formula:
[0086]
[0087] S206: Use the judgment standard vector with the largest similarity value as the target judgment standard that matches the indicator feature.
[0088] Specifically, the processor can sort by similarity value, determine the judgment standard vector with the largest similarity value, or use the first few judgment standard vectors sorted from high to low in similarity value as the target judgment standard for matching the indicator features, where the number of target standard vectors can be set according to actual needs.
[0089] S207. Construct analysis prompt information based on the target judgment standard.
[0090] In this embodiment, the analysis prompt information can be understood as information used to guide the offline large language model to perform a specific task or generate a specific output.
[0091] The processor can construct analysis prompt information based on the target judgment criteria in a set format.
[0092] S208: Input the analysis prompt information and indicator features into the offline large language model to determine the abnormality recognition result and the corresponding abnormality cause.
[0093] In this embodiment, the abnormality identification result can be understood as a result used to indicate whether an abnormality exists. The abnormality cause can be understood as a cause that causes the abnormality.
[0094] Specifically, the processor can input the analysis prompt information and indicator features into the offline large language model, and analyze the indicator features based on the offline large language model according to the context and judgment criteria provided by the analysis prompt information to determine whether there are any abnormalities in the indicator features, and analyze the causes of the abnormalities to determine the abnormal identification results and the corresponding causes of the abnormalities.
[0095] S209: Use the abnormality identification result and the abnormality cause as the abnormality analysis result.
[0096] Specifically, the processor may use the abnormality identification result and the abnormality cause together as the abnormality analysis result.
[0097] The technical solution of the embodiment of the present invention is to obtain an offline large language model, indicator data to be analyzed and a pre-built judgment standard library; extract indicator features from the indicator data to be analyzed based on the offline large language model; screen out the target judgment standard that matches the indicator features from the judgment standard library based on the information retrieval enhancement algorithm; determine the abnormal analysis result according to the target judgment standard, indicator features and the offline large language model. Through the judgment standard library generated by the online large language model, the target judgment standard that matches the indicator data to be analyzed is first retrieved, and the judgment standard that best suits the standard data to be analyzed is retrieved, thereby improving the pertinence of the judgment, and then the indicator features are analyzed based on the target judgment standard through the offline large language model to determine the abnormal analysis result. The indicator analysis capability of the offline large language model is effectively enhanced, the problems of online model security risks and insufficient offline model reasoning capabilities are solved, and the accuracy of service indicator analysis is effectively improved. The accuracy and generalization performance of service indicator data anomaly detection in real business contexts are improved.
[0098] Embodiment 3
[0099] Figure 3 This is a schematic diagram of the structure of an abnormality detection device provided in Embodiment 3 of the present invention. Figure 3As shown, the device includes: an information acquisition module 31, an indicator extraction module 32, a rule determination module 33 and a result determination module 34.
[0100] The information acquisition module 31 is used to obtain the offline large language model, the indicator data to be analyzed and the pre-built judgment standard library;
[0101] An indicator extraction module 32, used to extract indicator features from the indicator data to be analyzed based on the offline large language model;
[0102] A rule determination module 33, for screening out target judgment criteria matching the indicator characteristics from the judgment criteria library based on an information retrieval enhancement algorithm;
[0103] The result determination module 34 is used to determine the abnormal analysis result according to the target judgment standard, the indicator characteristics and the offline large language model.
[0104] Furthermore, the rule determination module 33 is specifically used for:
[0105] Converting the indicator feature into an indicator vector;
[0106] Convert each judgment standard in the judgment standard library into a judgment standard vector;
[0107] Determining a similarity value between the indicator vector and each of the judgment standard vectors;
[0108] The judgment standard vector with the largest similarity value is used as the target judgment standard that matches the indicator feature.
[0109] Furthermore, the result determination module 34 is specifically used for:
[0110] Based on the target judgment criteria, construct analysis prompt information;
[0111] Inputting the analysis prompt information and the indicator features into the offline large language model to determine the abnormality recognition result and the corresponding abnormality cause;
[0112] The abnormality identification result and the abnormality cause are used as the abnormality analysis result.
[0113] The technical solution of the embodiment of the present invention is to obtain an offline large language model, indicator data to be analyzed and a pre-built judgment standard library; extract indicator features from the indicator data to be analyzed based on the offline large language model; screen out target judgment standards that match the indicator features from the judgment standard library based on the information retrieval enhancement algorithm; and determine the abnormal analysis results based on the target judgment standards, indicator features and the offline large language model. Through the judgment standard library generated by the online large language model, the target judgment standards that match the indicator data to be analyzed are first retrieved, and then the indicator features are analyzed based on the target judgment standards through the offline large language model to determine the abnormal analysis results. The indicator analysis capability of the offline large language model is effectively enhanced, the problems of online model security risks and insufficient offline model reasoning capabilities are solved, and the accuracy of service indicator analysis is effectively improved.
[0114] Optionally, the device also includes: a standard library construction module.
[0115] The standard library building blocks include:
[0116] A sequence determination unit, used to obtain service indicator data of microservice applications in the associated platform and form a service indicator sequence;
[0117] A first determining unit, configured to analyze each of the service indicator sequences to determine operation status information;
[0118] A second determining unit is used to decompose the running status information according to the online large language model, determine the timestamp, HTTP method and endpoint, HTTP status code and response size, response time and reference field in the running status information, and obtain decomposed feature information;
[0119] A result iteration unit, used to analyze the decomposed feature information based on the online large language model, determine an abnormal analysis result, and perform a next round of iteration;
[0120] The standard library construction unit is used to construct a judgment standard library according to each of the abnormal analysis results and the preset rule template when the iteration end condition is met, wherein the preset rule template includes request port characteristics, service path characteristics, status code characteristics, execution operation characteristics and response time characteristics.
[0121] The first determining unit is specifically used for:
[0122] For each service indicator sequence, performing sequence decomposition on the service indicator sequence to determine a residual sequence;
[0123] Determine a starting point associated value of a sequence starting point and a midpoint associated value of a sequence midpoint of the residual sequence;
[0124] Determining the correlation difference value of the service indicator sequence according to the starting point correlation value and the midpoint correlation value;
[0125] Based on a preset threshold set and the associated difference information, determining whether the service indicator sequence is an operating status indicator;
[0126] The operating status information is constructed based on the operating status indicators.
[0127] Optionally, the device further comprises:
[0128] The standard library updating module is used to update the judgment standard library after determining the abnormal analysis result according to the target judgment standard, the indicator characteristics and the offline large language model, when the abnormal analysis result meets the preset adding condition.
[0129] The anomaly detection device provided in the embodiment of the present invention can execute the anomaly detection method provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the execution method.
[0130] Embodiment 4
[0131] Figure 4 A schematic diagram of the structure of an electronic device 40 that can be used to implement an embodiment of the present invention is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices (such as helmets, glasses, watches, etc.) and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present invention described and / or required herein.
[0132] like Figure 4 As shown, the electronic device 40 includes at least one processor 41, and a memory connected to the at least one processor 41, such as a read-only memory (ROM) 42, a random access memory (RAM) 43, etc., wherein the memory stores a computer program that can be executed by at least one processor, and the processor 41 can perform various appropriate actions and processes according to the computer program stored in the read-only memory (ROM) 42 or the computer program loaded from the storage unit 48 to the random access memory (RAM) 43. In the RAM 43, various programs and data required for the operation of the electronic device 40 can also be stored. The processor 41, the ROM 42, and the RAM 43 are connected to each other through a bus 44. An input / output (I / O) interface 45 is also connected to the bus 44.
[0133] A number of components in the electronic device 40 are connected to the I / O interface 45, including: an input unit 46, such as a keyboard, a mouse, etc.; an output unit 47, such as various types of displays, speakers, etc.; a storage unit 48, such as a disk, an optical disk, etc.; and a communication unit 49, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 49 allows the electronic device 40 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.
[0134] The processor 41 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the processor 41 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various special artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any appropriate processor, controller, microcontroller, etc. The processor 41 performs the various methods and processes described above, such as an anomaly detection method.
[0135] In some embodiments, the anomaly detection method may be implemented as a computer program, which is tangibly contained in a computer-readable storage medium, such as a storage unit 48. In some embodiments, part or all of the computer program may be loaded and / or installed on the electronic device 40 via the ROM 42 and / or the communication unit 49. When the computer program is loaded into the RAM 43 and executed by the processor 41, one or more steps of the anomaly detection method described above may be performed. Alternatively, in other embodiments, the processor 41 may be configured to perform the anomaly detection method in any other suitable manner (e.g., by means of firmware).
[0136] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.
[0137] Computer programs for implementing the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that when the computer program is executed by the processor, the functions / operations specified in the flow chart and / or block diagram are implemented. The computer program may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.
[0138] In the context of the present invention, a computer-readable storage medium may be a tangible medium that may contain or store a computer program for use by or in combination with an instruction execution system, device or equipment. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices or equipment, or any suitable combination of the foregoing. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, 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 foregoing.
[0139] To provide interaction with a user, the systems and techniques described herein may be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and a pointing device (e.g., a mouse or trackball) through which the user can provide input to the electronic device. Other types of devices may also be used to provide interaction with the user; for example, the feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form (including acoustic input, voice input, or tactile input).
[0140] The systems and techniques described herein may be implemented in a computing system that includes backend components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes frontend components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such backend components, middleware components, or frontend components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), a blockchain network, and the Internet.
[0141] A computing system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The client and server relationship is generated by computer programs running on the corresponding computers and having a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and VPS services.
[0142] In one embodiment, the embodiment of the present invention further includes a computer program product, the computer program product includes a computer program, and the computer program implements the anomaly detection method of any embodiment of the present invention when executed by a processor.
[0143] In the process of implementation, the computer program product can be written in one or more programming languages or a combination thereof to perform the computer program code of the present invention, including object-oriented programming languages, such as Java, Smalltalk, C++, and conventional procedural programming languages, such as "C" language or similar programming languages. The program code can be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer can be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or can be connected to an external computer (for example, using an Internet service provider to connect through the Internet).
[0144] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps described in the present invention can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solution of the present invention can be achieved, and this document does not limit this.
[0145] 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 can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.
Claims
1. An anomaly detection method, It is characterized in that include: Obtain offline large language models, indicator data to be analyzed, and pre-built judgment standard libraries; Extracting indicator features from the indicator data to be analyzed based on the offline large language model; Based on the information retrieval enhancement algorithm, select the target judgment standard matching the indicator characteristics from the judgment standard library; An abnormal analysis result is determined according to the target judgment standard, the indicator characteristics and the offline large language model.
2. The method according to claim 1, It is characterized in that The steps of constructing the judgment standard library include: Obtain service indicator data of microservice applications in the associated platform and form a service indicator sequence; Analyze each of the service indicator sequences to determine operation status information; Decomposing the running status information according to the online large language model, determining the timestamp, HTTP method and endpoint, HTTP status code and response size, response time and reference field in the running status information, and obtaining decomposed feature information; and analyzing the decomposed feature information based on the online large language model, determining abnormal analysis results, and performing the next round of iteration; When the iteration end condition is met, a judgment standard library is constructed according to each of the exception analysis results and the preset rule template, wherein the preset rule template includes request port characteristics, service path characteristics, status code characteristics, execution operation characteristics and response time characteristics.
3. The method according to claim 2, It is characterized in that The analyzing each of the service indicator sequences to determine the operation status information includes: For each service indicator sequence, performing sequence decomposition on the service indicator sequence to determine a residual sequence; Determine a starting point associated value of a sequence starting point and a midpoint associated value of a sequence midpoint of the residual sequence; Determining the correlation difference value of the service indicator sequence according to the starting point correlation value and the midpoint correlation value; Based on a preset threshold set and the associated difference information, determining whether the service indicator sequence is an operating status indicator; The operating status information is constructed based on the operating status indicators.
4. The method according to claim 1, It is characterized in that The information retrieval enhancement algorithm is used to select target judgment criteria that match the indicator characteristics from the judgment criteria library, including: Converting the indicator feature into an indicator vector; Convert each judgment standard in the judgment standard library into a judgment standard vector; Determining a similarity value between the indicator vector and each of the judgment standard vectors; The judgment standard vector with the largest similarity value is used as the target judgment standard that matches the indicator feature.
5. The method according to claim 1, It is characterized in that Determining the abnormal analysis result according to the target judgment standard, the indicator characteristics and the offline large language model includes: Based on the target judgment criteria, construct analysis prompt information; Inputting the analysis prompt information and the indicator features into the offline large language model to determine the abnormality recognition result and the corresponding abnormality cause; The abnormality identification result and the abnormality cause are used as the abnormality analysis result.
6. The method according to claim 1, It is characterized in that After determining the abnormal analysis result according to the target judgment standard, the indicator characteristics and the offline large language model, the method further includes: When the abnormal analysis result meets the preset adding condition, the judgment standard library is updated.
7. An abnormality detection device, It is characterized in that include: Information acquisition module, used to obtain offline large language models, indicator data to be analyzed, and pre-built judgment standard libraries; An indicator extraction module, used for extracting indicator features from the indicator data to be analyzed based on the offline large language model; A rule determination module, used to screen out target judgment criteria matching the indicator characteristics from the judgment criteria library based on an information retrieval enhancement algorithm; The result determination module is used to determine the abnormal analysis result according to the target judgment standard, the indicator characteristics and the offline large language model.
8. An electronic device, It is characterized in that The electronic device comprises: at least one processor; and a memory communicatively connected to the at least one processor; wherein, The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the abnormality detection method according to any one of claims 1 to 6.
9. A computer-readable storage medium, It is characterized in that The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the anomaly detection method according to any one of claims 1 to 6 when executed.
10. A computer program product, It is characterized in that The computer program product comprises a computer program, which, when executed by a processor, implements the anomaly detection method according to any one of claims 1 to 6.
