Data anomaly detection method and device, equipment and storage medium
By generating and reconstructing multi-dimensional time series data and using target weight information to identify data anomalies, it solves the problem of error identification in the data management system, improves data security and accuracy, and enhances anomaly detection capabilities.
Patent Information
- Application Number
- CN202410791102.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-18
- Publication Date
- 2024-10-01
AI Technical Summary
Errors or failures may occur during the operation of the data management system, leading to data security risks and business failures. It is difficult for existing technologies to accurately identify and respond to data anomalies in a timely manner.
By generating multi-dimensional time series data, reconstructed data is obtained, anomaly scores are determined based on target weight information, and data anomalies are predicted. Historical data is used to adjust initial weight information to improve identification accuracy.
It realizes the identification and prediction of data anomalies in the data management system, improves data security and accuracy, reduces the false alarm rate of anomaly detection, and enhances the ability to capture abnormal events and positioning accuracy.
Smart Images

Figure CN118734216A_ABST
Abstract
Description
Technical Field
[0001] One or more embodiments of the present specification relate to the field of data processing technology, and in particular, to a data anomaly detection method, apparatus, device, and storage medium. Background Art
[0002] In today's digital age, data management systems (such as large-scale data centers) will continuously generate and collect large amounts of data during operation. However, data management systems may have errors or failures. Once errors or failures occur in data management systems, they may have a serious impact on subsequent business processing and even cause data security risks and business failures. Therefore, timely and accurate identification of data anomalies in data management systems and taking appropriate measures to deal with the anomalies are one of the important measures to ensure data security and data accuracy of data management systems. Summary of the invention
[0003] In view of this, one or more embodiments of the present specification provide a data anomaly detection method, apparatus, device, and storage medium.
[0004] To achieve the above objectives, one or more embodiments of this specification provide the following technical solutions:
[0005] According to a first aspect of one or more embodiments of this specification, a data anomaly detection method is proposed, including:
[0006] Generate data to be processed based on the operation data of the data management system on multiple data dimensions, and obtain reconstructed data of the data to be processed, wherein the data to be processed is time series data arranged in time sequence by the operation data on multiple data dimensions, and the reconstructed data of the data to be processed is time series data composed of reconstructed data corresponding to the operation data on the multiple data dimensions;
[0007] Determine the abnormality scores of the data to be processed under different candidate abnormality types based on the data to be processed, the reconstructed data of the data to be processed and the target weight information corresponding to different candidate abnormality types, wherein the target weight information is obtained by adjusting the initial weight information based on the abnormality detection result of the historical data and the actual abnormality type of the historical data, and the target weight information is used to indicate the weight parameters corresponding to each of the multiple data dimensions;
[0008] Based on the anomaly scores of the data to be processed under different candidate anomaly situation types and the target score threshold, a data anomaly prediction result of the data to be processed is determined.
[0009] According to a second aspect of one or more embodiments of this specification, a data anomaly detection device is provided, including:
[0010] A generating module, used to generate data to be processed based on the operating data of the data management system in multiple data dimensions, wherein the data to be processed is time series data arranged in chronological order by the operating data in multiple data dimensions;
[0011] An acquisition module, used for acquiring reconstructed data of the data to be processed, wherein the reconstructed data of the data to be processed is time series data composed of reconstructed data corresponding to the operating data on the multiple data dimensions;
[0012] A first determination module is used to determine the abnormality scores of the data to be processed under different candidate abnormality types based on the data to be processed, the reconstructed data of the data to be processed and the target weight information corresponding to different candidate abnormality types, wherein the target weight information is obtained by adjusting the initial weight information based on the abnormality detection results of the historical data and the actual abnormality types of the historical data, and the target weight information is used to indicate the weight parameters corresponding to each of the multiple data dimensions;
[0013] The second determination module is used to determine the data anomaly prediction result of the data to be processed based on the anomaly score of the data to be processed under different candidate anomaly situation types and the target score threshold.
[0014] According to a third aspect of one or more embodiments of this specification, a computing device is provided, including:
[0015] processor;
[0016] a memory for storing processor-executable instructions;
[0017] The processor implements the method as described in the first aspect by running the executable instructions.
[0018] According to a fourth aspect of one or more embodiments of the present specification, a computer-readable storage medium is provided, on which computer instructions are stored, and when the instructions are executed by a processor, the steps of the method described in the first aspect are implemented.
[0019] According to a fifth aspect of one or more embodiments of this specification, a computer program product is proposed, including a computer program, and when the computer program is executed by a processor, the method described in the first aspect above is implemented.
[0020] This specification generates the data to be processed, which is arranged in chronological order by the operation data on multiple data dimensions based on the operation data of the data management system on multiple data dimensions, and obtains the reconstructed data of the data to be processed, thereby determining the abnormal scores of the data to be processed under different alternative abnormal situation types based on the target weight information corresponding to the data to be processed, the reconstructed data of the data to be processed and different alternative abnormal situation types, and then determining the data abnormality prediction result of the data to be processed based on the abnormal scores and target score thresholds of the data to be processed under different alternative abnormal situation types. Among them, the target weight information is used to indicate the weight parameters corresponding to each of the multiple data dimensions. By setting the corresponding weight parameters for each data dimension, the differentiated weighting of the multiple data dimensions can be achieved, so that the influence of non-critical dimensional noise can be identified and weakened, and the accuracy of data abnormality recognition can be improved; in addition, the target weight information is obtained by adjusting the initial weight information based on the abnormal detection results of the historical data and the actual abnormal situation types of the historical data, so as to ensure the accuracy and effectiveness of the target weight information, so as to ensure the accuracy of data abnormality recognition. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] Figure 1 It is a schematic diagram of an application scenario of a data anomaly detection method provided by an exemplary embodiment.
[0022] Figure 2 It is a flowchart of a data anomaly detection method provided by an exemplary embodiment.
[0023] Figure 3 It is a flowchart of a weight information updating process provided by an exemplary embodiment.
[0024] Figure 4 It is a flowchart of a data anomaly detection process provided by an exemplary embodiment.
[0025] Figure 5 It is a schematic structural diagram of a computing device provided by an exemplary embodiment.
[0026] Figure 6 It is a schematic block diagram of a data anomaly detection device provided by an exemplary embodiment. DETAILED DESCRIPTION
[0027] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the following exemplary embodiments do not represent all implementations consistent with one or more embodiments of this specification. Instead, they are merely examples of devices and methods consistent with some aspects of one or more embodiments of this specification as detailed in the appended claims.
[0028] It should be noted that: in other embodiments, the steps of the corresponding method are not necessarily performed in the order shown and described in this specification. In some other embodiments, the steps included in the method may be more or less than those described in this specification. In addition, a single step described in this specification may be decomposed into multiple steps for description in other embodiments; and multiple steps described in this specification may be combined into a single step for description in other embodiments.
[0029] The user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this manual are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with the relevant laws, regulations and standards of relevant countries and regions, and provide corresponding operation entrances for users to choose to authorize or refuse.
[0030] The data anomaly detection method provided in this specification can be used to implement data anomaly detection in a distributed system. For example, the data anomaly detection method provided in this specification can be used to implement data anomaly detection in a distributed system such as a distributed database system, a distributed file system, a distributed computing system, a distributed storage system, and a distributed message queue system, but is not limited thereto.
[0031] Take the data anomaly detection method provided in this specification as an example to realize data anomaly in a distributed database system. Figure 1 , Figure 1 is a schematic diagram of an application scenario of a data anomaly detection method provided by an exemplary embodiment. Figure 1 As shown, the application server can initiate an anomaly detection instruction to the proxy server. When the proxy server receives the anomaly detection instruction, it can obtain the observation data to be detected from the data stored in multiple database servers using a distributed architecture, and then return the obtained observation data to the application server, so that the application server can perform data anomaly detection based on the received observation data, thereby realizing data anomaly detection for the distributed database system.
[0032] It should be noted that Figure 1 This is only an illustrative description of the application scenarios of the data anomaly detection method provided in this specification, and does not constitute a limitation on the application scenarios of the data anomaly detection method provided in this specification. In more possible implementations, the data anomaly detection method provided in this specification can also realize data anomaly detection for other distributed systems. In addition, the data anomaly detection method provided in this specification can also realize data anomaly detection for non-distributed (such as centralized) systems, and this specification does not limit this.
[0033] Optionally, the data anomaly detection method provided in this specification may be executed by a computing device, and the computing device may be a server, such as one server, multiple servers, a server cluster, a cloud computing platform, etc., but is not limited thereto.
[0034] After introducing the application scenarios of the data anomaly detection method provided in this specification, the implementation method of the data anomaly detection method provided in this specification is introduced below.
[0035] join Figure 2 , Figure 2 is a flow chart of a data anomaly detection method provided by an exemplary embodiment. Figure 2 As shown, the method includes:
[0036] Step 201: Generate data to be processed based on the operating data of the data management system on multiple data dimensions, and obtain reconstructed data of the data to be processed, wherein the data to be processed is time series data in which the operating data on multiple data dimensions are arranged in chronological order, and the reconstructed data of the data to be processed is time series data composed of reconstructed data corresponding to the operating data on multiple data dimensions.
[0037] Optionally, the data management system may record the operating data generated during operation, including but not limited to the operating status of the equipment, performance parameters, operation logs, error logs, sensor data, etc.
[0038] It should be noted that by recording the operating data generated during the operation of the data management system, when there is a need for data anomaly detection, data anomaly detection can be implemented based on the recorded operating data.
[0039] The data management system may be a database system, a business system, a data center (such as a large-scale data center), etc., but is not limited thereto.
[0040] It should be noted that the reconstructed data of the data to be processed and the data to be processed have the same multiple data dimensions, and the time points corresponding to the data included in the reconstructed data of the data to be processed and the time points corresponding to the data included in the data to be processed are the same.
[0041] Step 202: Based on the data to be processed, the reconstructed data of the data to be processed and the target weight information corresponding to the different alternative abnormal situation types, determine the abnormality scores of the data to be processed under different alternative abnormal situation types. The target weight information is obtained by adjusting the initial weight information based on the abnormality detection results of the historical data and the actual abnormal situation types of the historical data. The target weight information is used to indicate the weight parameters corresponding to each of the multiple data dimensions.
[0042] Optionally, the candidate abnormal situation type can be a variety of possible abnormal situations set according to business conditions, or a variety of possible abnormal situations integrated according to the actual situation of the data management system operation process, etc., but not limited thereto. In addition, the candidate abnormal situation type can also be updated according to the current situation to ensure the real-time and accuracy of the abnormal detection results.
[0043] Optionally, different alternative abnormal situation types may correspond to respective target weight information, and the target weight information corresponding to each of the multiple alternative abnormal situation types may be obtained by adjusting the initial weight information based on the abnormality detection results of historical data and the actual abnormal situation types of historical data.
[0044] The target weight information can be used to indicate the weight parameters corresponding to different dimensional data. For any data dimension, the corresponding weight parameter is used to indicate the degree of influence of the data dimension on the abnormal result.
[0045] Step 203: Determine a data anomaly prediction result of the data to be processed based on the anomaly scores of the data to be processed under different candidate anomaly situation types and the target score threshold.
[0046] The target score threshold may be generated according to the actual situation of the data currently being detected for anomaly, or may be set according to business requirements, which is not limited in this specification. Optionally, the target score threshold may be a scalar value or a vector value.
[0047] Optionally, for any candidate abnormal situation type, the target score thresholds corresponding to different time points may be the same or different, which is not limited in this specification.
[0048] The above embodiment generates the data to be processed arranged in chronological order by the operation data on multiple data dimensions based on the operation data of the data management system on multiple data dimensions, and obtains the reconstructed data of the data to be processed, thereby determining the abnormal scores of the data to be processed under different alternative abnormal situation types based on the target weight information corresponding to the data to be processed, the reconstructed data of the data to be processed and different alternative abnormal situation types, and then determining the data abnormality prediction result of the data to be processed based on the abnormal scores and target score thresholds of the data to be processed under different alternative abnormal situation types. Among them, the target weight information is used to indicate the weight parameters corresponding to each of the multiple data dimensions. By setting the corresponding weight parameters for each data dimension, the differentiated weighting of the multiple data dimensions can be achieved, so that the influence of non-critical dimension noise can be identified and weakened, and the accuracy of data abnormality recognition can be improved; in addition, the target weight information is obtained by adjusting the initial weight information based on the abnormal detection results of the historical data and the actual abnormal situation types of the historical data, so as to ensure the accuracy and effectiveness of the target weight information, so as to ensure the accuracy of data abnormality recognition.
[0049] After introducing the basic implementation process of this specification, various optional implementations of the data anomaly detection method provided in this specification are introduced below.
[0050] In some embodiments, for step 201, when generating the data to be processed based on the operation data of the data management system in multiple data dimensions, it can be implemented by the following steps:
[0051] Step 2011: In response to the anomaly detection instruction, obtain the operation data of the data management system in multiple data dimensions.
[0052] Optionally, the anomaly detection instruction can be triggered by the user according to the data detection needs. For example, the data anomaly detection function can be provided to the user through the terminal device, and the user can trigger the anomaly detection instruction through the data anomaly detection function provided by the terminal device. The terminal device can send the anomaly detection instruction triggered by the user to the computing device (such as a server) so that the computing device can receive the anomaly detection instruction, thereby responding to the received anomaly detection instruction to obtain the operating data of the data management system in multiple data dimensions.
[0053] Optionally, the anomaly detection instruction may also be triggered periodically. For example, the computing device may automatically trigger the anomaly detection instruction at preset time intervals, thereby obtaining operating data of the data management system in multiple data dimensions in response to the triggered anomaly detection instruction.
[0054] The preset duration may be any duration, and this specification does not limit the value of the preset duration.
[0055] In one possible implementation, the anomaly detection instruction is triggered by the user according to the data detection requirements. The user can specify the time period for anomaly detection when triggering the anomaly detection instruction. The computing device can respond to the anomaly detection instruction triggered by the user and obtain the operating data generated by the data management system within the corresponding time period as the basis for generating the data to be processed.
[0056] In another possible implementation, the anomaly detection instruction is triggered periodically, and the computing device can respond to the anomaly detection instruction triggered in the current cycle and obtain the operating data generated by the data management system in the previous cycle as the basis for generating the data to be processed.
[0057] Optionally, the operation data may include system performance data, log data, and trace data, but is not limited thereto.
[0058] The system performance data is used to indicate the performance data corresponding to different times during the operation of the data management system. The system performance data may include some system-level indicators (such as central processing unit (CPU) utilization, memory utilization, etc.) and user-perceived indicators (such as average response time, etc.). In addition, the system performance data may be time series data collected at certain time intervals. Optionally, the system performance data may be metrics data, but is not limited thereto.
[0059] The log data may be an operation log generated by the data management system during operation. The log data may record some comprehensive time of services in the system. For example, the log data may record operations and timestamp information corresponding to the operations, but is not limited thereto. The timestamp information may be used to indicate the time when the operation occurred.
[0060] Among them, the trace data is used to indicate the service call status in the data management system. Optionally, the trace data can record the execution path of the request. For example, the trace data can record the call path between services when the request is executed and the call time of the service, but is not limited to this.
[0061] Step 2012: Perform data integration processing based on the operating data of the data management system in multiple data dimensions to obtain data to be processed.
[0062] In a possible implementation, the various data included in the log data and the tracking data can be respectively embedded into the system performance data according to the timestamp information of the log data and the service call time indicated by the tracking data to obtain the data to be processed.
[0063] Optionally, the log data can be text-embedded according to the timestamp information of the log data so that the various data included in the log data can be embedded into the system performance data. In addition, the tracing data can be graph-embedded according to the service call time indicated by the tracing data so that the various data included in the tracing data can be embedded into the system performance data, thereby realizing the generation of data to be processed.
[0064] Through the above embodiments, the system performance data, log data and tracking data can be aligned in the time dimension to obtain the data to be processed used in subsequent processing.
[0065] Through the above embodiments, multi-dimensional data fusion can be achieved, so that complex interactive relationships between data can be modeled, thereby discovering potential abnormal patterns by capturing the synergy and dependencies between different dimensions, so as to reveal hidden anomalies that cannot be revealed by single-dimensional analysis alone, thereby improving the accuracy of anomaly detection.
[0066] In more possible implementations, the system performance data may be normalized before the log data and the trace data are embedded into the system performance data.
[0067] By normalizing the system performance data, model training can be accelerated in the subsequent model processing process to help the model converge to the optimal solution faster, improve the accuracy of the model processing process, and improve model stability to avoid problems such as gradient disappearance or gradient explosion.
[0068] In addition, in some embodiments, after the log data and the tracking data are embedded into the system performance data to realize the generation of the data to be processed, the data to be processed may be normalized.
[0069] By normalizing the data to be processed, model training can be accelerated in the subsequent model processing process to help the model converge to the optimal solution faster, improve the accuracy of the model processing process, and improve model stability to avoid problems such as gradient disappearance or gradient explosion.
[0070] In some embodiments, after the data to be processed is obtained through the above embodiments, reconstructed data of the data to be processed may also be obtained through step 201 .
[0071] In some embodiments, when obtaining the reconstructed data of the data to be processed, data reconstruction may be performed based on the data to be processed to obtain the reconstructed data of the data to be processed.
[0072] In one possible implementation, a deep learning model may be used to model and predict the data to be processed to achieve reconstruction of the data to be processed, thereby obtaining reconstructed data of the data to be processed.
[0073] Optionally, the deep learning model can be an autoencoder (Autoencoder), a variational autoencoder (VAE), a recurrent autoencoder (RAE) long short-term memory (LSTM) network, a diffusion model (Diffusion Model), a generative adversarial network (GAN), etc., but is not limited to these.
[0074] In another possible implementation, historical information and a time series model of the data to be processed may be used to model and predict the data to be processed, so as to reconstruct the data to be processed and obtain reconstructed data of the data to be processed.
[0075] In another possible implementation, a smoothing operation may be performed on the data to be processed in a smoothing manner to achieve reconstruction of the data to be processed, thereby obtaining reconstructed data of the data to be processed.
[0076] It should be noted that the above are only several exemplary methods for reconstructing the data to be processed and do not constitute a limitation on the data reconstruction process. This specification does not limit the method for achieving data reconstruction of the data to be processed.
[0077] In addition, it should be noted that both the data to be processed and the reconstructed data to be processed are time series data in which data corresponding to multiple data dimensions are arranged in chronological order, and the data dimensions corresponding to the data to be processed and the reconstructed data to be processed are the same.
[0078] After obtaining the data to be processed and the reconstructed data of the data to be processed through the above embodiment, step 202 can be used to determine the abnormality scores of the data to be processed under different alternative abnormal situation types based on the data to be processed, the reconstructed data of the data to be processed and the target weight information corresponding to different alternative abnormal situation types.
[0079] Among them, the target weight information corresponding to each alternative abnormal situation type can be obtained by pre-adjusting the initial weight information based on the abnormal detection results of historical data and the actual abnormal situation type of historical data. The following is a detailed introduction to the process of obtaining the target weight information corresponding to any alternative abnormal situation type.
[0080] In some embodiments, this can be achieved by the following steps:
[0081] Step 1: Based on the anomaly detection result of the first historical data and the actual anomaly type, the initial weight information is updated to obtain updated weight information.
[0082] Among them, the historical data can be past observation data, the anomaly detection result can be obtained by processing the historical data through an anomaly detection algorithm, and the anomaly detection result can be used to indicate whether the historical data has a data anomaly prediction result. When the anomaly detection result indicates that the historical data has a data anomaly, the anomaly detection result can also be used to indicate the predicted anomaly type of the historical data and the credibility of the predicted anomaly type.
[0083] It should be noted that the predicted abnormal situation type of the historical data indicated by the abnormality detection result and the credibility of the predicted abnormal situation type can be obtained through root cause analysis.
[0084] Optionally, root cause analysis can be implemented through expert opinions and experience, or root cause analysis can be implemented through a machine learning model, or root cause analysis can be implemented through fault tree analysis, or root cause analysis can be implemented through Pareto analysis, or root cause analysis can be implemented through Block diagram analysis, etc., but not limited to these.
[0085] Optionally, the initial weight information may include initial weight parameters corresponding to multiple data dimensions, and the initial weight parameters corresponding to the multiple data dimensions may be the same.
[0086] When the initial weight information is updated based on the anomaly detection result of the first historical data and the actual anomaly type to obtain updated weight information, it can be achieved in the following way:
[0087] In one possible implementation, the anomaly detection result indicates that there is a data anomaly in the first historical data, and the predicted anomaly type indicated by the anomaly detection result is consistent with the actual anomaly type of the first historical data, and the average value of the credibility of the current weight information and the predicted anomaly type indicated by the anomaly detection result is determined as the updated weight information.
[0088] For example, when the anomaly detection result indicates that the first historical data has a data anomaly, and the predicted anomaly type indicated by the anomaly detection result is consistent with the actual anomaly type of the first historical data, the weight parameter corresponding to any data dimension in the updated weight information can be determined by the following formula (1):
[0089] w = w1 + w2 (1)
[0090] Among them, w represents the weight parameter corresponding to a certain data dimension in the updated weight information, w1 represents the weight parameter corresponding to the data dimension in the current weight information, and w2 represents the credibility of the predicted abnormal situation type indicated by the anomaly detection result.
[0091] In another possible implementation, the anomaly detection result indicates that there is a data anomaly in the first historical data, and the predicted anomaly type indicated by the anomaly detection result is inconsistent with the actual anomaly type of the first historical data. The average value of the credibility of the current weight information and the predicted anomaly type indicated by the anomaly detection result is determined, and the difference between the average value and the first value is used as the updated weight information.
[0092] For example, when the anomaly detection result indicates that there is a data anomaly in the first historical data, and the predicted anomaly type indicated by the anomaly detection result is inconsistent with the actual anomaly type of the first historical data, the average value can be determined in the manner shown in formula (1) above, thereby determining the difference between the average value and the first value to obtain updated weight information.
[0093] The first numerical value may be any value between 0 and 1, and this specification does not limit the value of the first numerical value.
[0094] In another possible implementation, the anomaly detection result indicates that there is no data anomaly in the first historical data, and the alternative anomaly situation type includes the actual anomaly situation type of the first historical data, and the average value of the credibility of the current weight information and the predicted anomaly situation type indicated by the anomaly detection result is determined as the updated weight information.
[0095] That is, when the anomaly detection result indicates that there is no data anomaly in the first historical data, and the alternative anomaly situation type includes the actual anomaly situation type of the first historical data, the average value can be determined in the manner shown in formula (1) above, so that the determined average value can be used as the updated weight information.
[0096] In another possible implementation, the anomaly detection result indicates that there is no data anomaly in the first historical data, and the alternative abnormal situation type does not include the actual abnormal situation type of the first historical data, the actual abnormal situation type is recorded as the alternative abnormal situation type, and the credibility of the predicted abnormal situation type indicated by the anomaly detection result is determined as the weight information of the newly recorded alternative abnormal situation type.
[0097] That is, when the anomaly detection result indicates that there is no data anomaly in the first historical data, and the candidate anomaly type does not include the actual anomaly type of the first historical data, the actual anomaly type can be added to the candidate normal type, and the weight information of the candidate anomaly type of the new record can be determined by the following formula (2):
[0098] w = w2 (2)
[0099] Among them, w represents the weight parameter corresponding to a certain data dimension in the weight information of the candidate abnormal situation type of the new record, and w2 represents the credibility of the predicted abnormal situation type indicated by the abnormality detection result.
[0100] Step 2: Based on the anomaly detection results of the second and subsequent historical data and the actual anomaly type, the updated weight information is iteratively updated to obtain the target weight information.
[0101] In one possible implementation, the anomaly detection result indicates that there is a data anomaly in the Nth historical data, and the predicted anomaly type indicated by the anomaly detection result is consistent with the actual anomaly type of the Nth historical data, and the average value of the credibility of the current weight information and the predicted anomaly type indicated by the anomaly detection result is determined as the updated weight information.
[0102] In another possible implementation, the anomaly detection result indicates that there is a data anomaly in the Nth historical data, and the predicted abnormal situation type indicated by the anomaly detection result is inconsistent with the actual abnormal situation type of the Nth historical data. The average value of the credibility of the current weight information and the predicted abnormal situation type indicated by the anomaly detection result is determined, and the difference between the average value and the first value is used as the updated weight information.
[0103] In another possible implementation, the anomaly detection result indicates that there is no data anomaly in the Nth historical data, and the alternative anomaly situation type includes the actual anomaly situation type of the Nth historical data, and the average value of the credibility of the current weight information and the predicted anomaly situation type indicated by the anomaly detection result is determined as the updated weight information.
[0104] In another possible implementation, the anomaly detection result indicates that there is no data anomaly in the Nth historical data, and the alternative abnormal situation type does not include the actual abnormal situation type of the Nth historical data, the actual abnormal situation type is recorded as the alternative abnormal situation type, and the credibility of the predicted abnormal situation type indicated by the anomaly detection result is determined as the weight information of the newly recorded alternative abnormal situation type.
[0105] Wherein, N is a positive integer greater than 1.
[0106] It should be noted that after iterative processing of the second and subsequent historical data is implemented in the above manner, the updated weight information obtained by processing all historical data can be obtained, and the updated weight information is the target weight information corresponding to an alternative abnormal situation type.
[0107] In addition, it should be noted that the above embodiment is described by taking the determination of target weight information corresponding to one candidate abnormal situation type as an example, and the determination method of target weight information corresponding to other candidate abnormal situation types is similar, which will not be repeated here.
[0108] For any historical data, the process of updating weight information based on the historical data can be found in Figure 3 , Figure 3 is a flowchart of a weight information updating process provided by an exemplary embodiment. Figure 3 As shown, after the judgment of data anomalies is realized based on multiple alternative anomaly types and multidimensional data, the root cause of the data anomaly generated in the multidimensional data (i.e., the data dimension causing the data anomaly and the credibility of the judgment result) can be determined through root cause analysis, so that the weight information can be updated according to the judged data anomaly and the root cause of the data anomaly determined by the root cause analysis. Optionally, the abnormal situation type is correctly identified (i.e., it is determined through abnormality detection that there are data anomalies in the historical data, and the predicted abnormal situation type determined by the abnormality detection is consistent with the actual abnormal situation type of the historical data), and the weight information is updated according to the abnormality detection result; the normal situation type is incorrectly identified (i.e., it is determined through abnormality detection that there are data anomalies in the historical data, and the predicted abnormal situation type determined by the abnormality detection is inconsistent with the actual abnormal situation type of the historical data), and the average value is determined according to the abnormality detection result and then the determined average value is reduced to achieve the update of the weight information; an underreporting occurs (it is determined through abnormality detection that there are no data anomalies in the historical data but there are data anomalies in the historical data), if the alternative abnormal situation type includes the actual abnormal situation type of the historical data, the weight information is updated according to the abnormality detection result; if the alternative abnormal situation type does not include the actual abnormal situation type of the historical data, the corresponding abnormal situation type is added to the alternative abnormal situation type according to the actual triggered abnormal situation, and the weight information of the added abnormal situation type is set according to the abnormality detection result.
[0109] Through the above embodiments, differentiated processing of abnormal contributions of different data dimensions can be achieved, so that the importance of each data dimension in detecting anomalies can be reflected by reasonably allocating weights, so that different weights can be assigned according to the sensitivity and influence of the data dimension on the abnormal state, without assigning the same weight to all dimensions, thereby making the anomaly detection results more targeted and accurate.
[0110] It should be noted that the process of determining the target weight information provided in the above embodiment can be executed before step 201 or before step 202. This specification does not limit this. It only needs to ensure that the target weight information can be obtained when executing step 202.
[0111] In some embodiments, for step 202, when determining the abnormality scores of the data to be processed under different candidate abnormality types based on the data to be processed, the reconstructed data of the data to be processed and the target weight information corresponding to the different candidate abnormality types, it can be implemented by the following steps:
[0112] Step 2021: Determine error data based on the data to be processed and the reconstructed data of the data to be processed, where the error data is used to indicate the reconstruction error of the data corresponding to each time point in multiple data dimensions.
[0113] In a possible implementation, the difference between the data to be processed and the reconstructed data of the data to be processed at different time points in each data dimension can be determined respectively to obtain the reconstruction error of the data in each data dimension at each time point, thereby achieving the acquisition of error data.
[0114] Step 2022: Determine the abnormality scores of the data to be processed under different candidate abnormality types based on the error data and the target weight information corresponding to the different candidate abnormality types.
[0115] It should be noted that the target weight information corresponding to each candidate abnormal situation type includes weight parameters corresponding to multiple data dimensions. Therefore, based on the error data and the target weight information corresponding to different candidate abnormal situation types, the abnormality scores of the data to be processed under different candidate abnormal situation types can be determined by the following steps:
[0116] Step 2022A: For any alternative abnormal situation type among the multiple alternative abnormal situation types, based on the weight parameters corresponding to each data dimension indicated by the target weight information corresponding to the alternative abnormal situation type, the reconstruction error of each time point in the corresponding data dimension is weighted averaged to obtain the abnormal score of the data corresponding to each time point in the data to be processed under the alternative abnormal situation type.
[0117] For example, taking the example that the data to be processed includes data in three dimensions and the data included in the data to be processed corresponds to 10 time points, the target weight information corresponding to each alternative abnormal situation type will include weight parameters corresponding to these three data dimensions. For any alternative abnormal situation type, the reconstruction error of time point 1 in data dimension 1 can be weighted based on the weight parameter corresponding to data dimension 1 in the target weight information corresponding to the alternative abnormal situation type, the reconstruction error of time point 1 in data dimension 2 can be weighted based on the weight parameter corresponding to data dimension 2, and the reconstruction error of time point 1 in data dimension 3 can be weighted based on the weight parameter corresponding to data dimension 3. The above three weighted processing results are averaged to obtain the data corresponding to time point 1 in the data to be processed under the alternative abnormal situation type. anomaly score; the reconstruction error of time point 2 in data dimension 1 can be weighted based on the weight parameter corresponding to data dimension 1 in the target weight information corresponding to the alternative anomaly situation type, the reconstruction error of time point 2 in data dimension 2 can be weighted based on the weight parameter corresponding to data dimension 2, and the reconstruction error of time point 2 in data dimension 3 can be weighted based on the weight parameter corresponding to data dimension 3, and the above three weighted processing results are averaged to obtain the anomaly score of the data corresponding to time point 2 in the data to be processed under the alternative anomaly situation type, and so on, until the anomaly score of the data corresponding to time point 10 in the data to be processed under the alternative anomaly situation type is determined, so that the anomaly score of the data corresponding to each time point in the data to be processed under the alternative anomaly situation type can be obtained.
[0118] Step 2022B: Determine the abnormality score of the data to be processed under the alternative abnormal situation type based on the abnormality score of the data corresponding to each time point in the data to be processed under the alternative abnormal situation type.
[0119] In a possible implementation, the abnormality score of the data corresponding to each time point in the data to be processed under the candidate abnormal situation type may be determined as the abnormality score of the data to be processed under the candidate abnormal situation type.
[0120] It should be noted that the abnormality score determined by the above implementation is a one-dimensional vector, and the number of columns of the one-dimensional vector is consistent with the number of time points corresponding to the data included in the data to be processed.
[0121] For example, still taking the example that the data to be processed includes data of three dimensions and the data included in the data to be processed corresponds to 10 time points, after determining the abnormality score of the data corresponding to each time point from time point 1 to time point 10 in the data to be processed under the alternative abnormal situation type, the vector composed of the abnormality scores of the data corresponding to each time point from time point 1 to time point 10 under the alternative abnormal situation type can be determined as the abnormality score of the data to be processed under the alternative abnormal situation type, and the determined abnormality score is a one-dimensional vector with 10 columns.
[0122] In another possible implementation, a statistical value of anomaly scores of data corresponding to each time point in the data to be processed under the candidate abnormal situation type may be determined as the anomaly score of the data to be processed under the candidate abnormal situation type.
[0123] Optionally, the anomaly scores corresponding to each time point may be averaged to obtain the anomaly score of the data to be processed under the alternative anomaly situation type, or the anomaly scores corresponding to each time point may be summed to obtain the anomaly score of the data to be processed under the alternative anomaly situation type, and so on, but not limited to this.
[0124] It should be noted that the anomaly score determined by the above implementation is a scalar.
[0125] It should be noted that the above is explained by taking the method of determining the abnormality score of the data to be processed under one alternative abnormal situation type as an example. The method of determining the abnormality score of the data to be processed under other alternative abnormal situation types is similar and will not be repeated here.
[0126] After obtaining the anomaly scores of the data to be processed under different candidate anomaly situation types through the above embodiment, step 203 can be used to determine the data anomaly prediction result of the data to be processed based on the anomaly scores of the data to be processed under different candidate anomaly situation types and the target score threshold.
[0127] The data anomaly prediction result is used to indicate whether the data to be processed has data anomalies. When the data anomaly prediction result indicates that the data to be processed has data anomalies, the data anomaly prediction result is also used to indicate the type of predicted anomaly of the data to be processed.
[0128] Optionally, the target score threshold may be a one-dimensional vector whose number of columns is consistent with the number of time points corresponding to the data included in the data to be processed, or the target score threshold may be a scalar, which is not limited in this specification. For example, the abnormality score of the data to be processed under a certain alternative abnormal situation type is the abnormality score of the data corresponding to each time point in the data to be processed under the alternative abnormal situation type, then the target score threshold may be a one-dimensional vector whose number of columns is consistent with the number of time points corresponding to the data included in the data to be processed; for another example, the abnormality score of the data to be processed under a certain alternative abnormal situation type is the statistical value of the abnormality score of the data corresponding to each time point in the data to be processed under the alternative abnormal situation type, then the target score threshold may be a scalar.
[0129] Taking the target score threshold as a one-dimensional vector whose number of columns is consistent with the number of time points corresponding to the data included in the data to be processed as an example, for any time point, the data anomaly rate of the multi-dimensional data corresponding to the time point in the data to be processed can be counted, so as to determine the quantile of the data anomaly rate corresponding to the time point as the target score threshold corresponding to the time point.
[0130] Optionally, the median of the data anomaly rate corresponding to the time point can be used as the target score threshold corresponding to the time point; or, the quartile of the data anomaly rate corresponding to the time point can be used as the target score threshold corresponding to the time point, and so on, but not limited to this.
[0131] In addition, when the target score threshold is a one-dimensional vector whose number of columns is consistent with the number of time points corresponding to the data included in the data to be processed, the target score thresholds corresponding to different time points can also be set according to actual business needs. In addition, when the target score threshold is a scalar, a target score threshold can also be set according to actual business needs, and the target score threshold can be applicable to each time point.
[0132] It should be noted that, when the anomaly score determined by step 202 is the anomaly score of the data corresponding to each time point in the data to be processed under the alternative anomaly situation type (that is, the anomaly score is a one-dimensional vector), the target score threshold can be a one-dimensional vector, or the target score threshold can be a scalar; when the anomaly score determined by step 202 is the statistical value of the anomaly score of the data corresponding to each time point in the data to be processed under the alternative anomaly situation type (that is, the anomaly score is a scalar), the target score threshold can be a scalar.
[0133] In some embodiments, for step 203, in the case where the anomaly score is the anomaly score of the data corresponding to each time point in the data to be processed under the candidate anomaly situation type, for any candidate anomaly situation type, when determining the data anomaly prediction result of the data to be processed based on the anomaly score of the data to be processed under different candidate anomaly situation types and the target score threshold, it can be implemented in the following manner:
[0134] In one possible implementation, if the number of time points at which the anomaly score of the data to be processed under the alternative anomaly type is greater than the corresponding target score threshold meets the quantity requirement, it is determined that there is a data anomaly in the data to be processed, and the alternative anomaly type is determined as the predicted anomaly type of the data to be processed.
[0135] For example, for any candidate abnormal situation type, when the number of time points at which the abnormality score is greater than the corresponding target score threshold is greater than the quantity threshold, it can be determined that there is a data anomaly in the data to be processed, and the candidate abnormal situation type can be determined as the predicted abnormal situation type of the data to be processed.
[0136] Among them, the quantity threshold can be any value. For example, the quantity threshold can be 1, so that when the data to be processed triggers any alternative exception type, it can be determined that there is a data anomaly in the data to be processed; for example, the quantity threshold can be any value greater than 1, so that when the data to be processed triggers a certain number of alternative exception types, it can be determined that there is a data anomaly in the data to be processed.
[0137] In another possible implementation, if the number of time points at which the anomaly score of the data to be processed under the alternative anomaly situation type is greater than the corresponding target score threshold does not meet the quantity requirement, it is determined that the data to be processed does not have a data anomaly corresponding to the alternative anomaly situation type.
[0138] That is, for any alternative abnormal situation type, when the number of time points at which the abnormality score is greater than the corresponding target score threshold is less than or equal to the quantity threshold, it can be determined that the data to be processed does not trigger the data anomaly corresponding to the alternative abnormal situation type, and thus it can be further determined whether the data to be processed triggers data anomalies corresponding to other alternative abnormal situation types.
[0139] It should be noted that, when the data to be processed does not trigger data anomalies corresponding to all candidate abnormal situation types, it can be determined that there is no data anomaly in the data to be processed.
[0140] In some embodiments, for step 203, for the case where the anomaly score is a statistical value of the anomaly score of the data corresponding to each time point in the data to be processed under the candidate anomaly situation type, for any candidate anomaly situation type, when determining the data anomaly prediction result of the data to be processed based on the anomaly score of the data to be processed under different candidate anomaly situation types and the target score threshold, it can be implemented in the following manner:
[0141] In a possible implementation, if the anomaly score of the data to be processed under the candidate anomaly type is greater than the target score threshold, it is determined that there is a data anomaly in the data to be processed, and the candidate anomaly type is determined as the predicted anomaly type of the data to be processed.
[0142] In another possible implementation, if the anomaly score of the data to be processed under the candidate anomaly type is less than or equal to the target score threshold, it is determined that the data to be processed does not have a data anomaly corresponding to the candidate anomaly type.
[0143] It should be noted that, when the data to be processed does not trigger data anomalies corresponding to all candidate abnormal situation types, it can be determined that there is no data anomaly in the data to be processed.
[0144] In addition, in some embodiments, after determining the data anomaly prediction result of the data to be processed based on the anomaly score and target score threshold of the data to be processed under different alternative anomaly types, it is also possible to determine the credibility of the predicted anomaly type of the data to be processed when the data anomaly prediction result indicates that there is a data anomaly in the data to be processed, thereby updating the target weight information based on the predicted anomaly type of the data to be processed and the credibility of the predicted anomaly type. The credibility of the predicted anomaly type can be obtained through root cause analysis. The method of obtaining the credibility of the predicted anomaly type and updating the target weight information through root cause analysis can be referred to the above embodiment and will not be repeated here.
[0145] By introducing causal reasoning information (i.e., the degree of credibility of predicting the type of abnormal situation), the logical rationality and interpretability of anomaly detection can be further improved by understanding the background and causal chain of data generation. In addition, by updating the target weight information, the alternative abnormal situation types and weights can be dynamically adjusted according to the anomaly detection results, so that the anomaly detection process can flexibly respond to changing environmental conditions.
[0146] See also Figure 4 , Figure 4 is a flowchart of a data anomaly detection process provided by an exemplary embodiment, such as Figure 4As shown, anomaly detection can be performed on the data to be processed, that is, the reconstructed differences of the data to be processed in multiple data dimensions (that is, data dimension 1, data dimension 2, ..., data dimension n) are determined respectively, so as to calculate the anomaly score based on the weight parameters corresponding to each data dimension (that is, weight 1, weight 2, ..., weight n), and then after the anomaly score is calculated, it is determined whether the anomaly score exceeds the target score threshold. If the anomaly score exceeds the target score threshold, it can be determined that there is data anomaly in the data to be processed, so that the root cause analysis of the data to be processed can be performed, so that the anomaly analysis can be implemented in combination with the anomaly detection result and the actual abnormal situation type, thereby realizing the optimization of weight information.
[0147] Through the scheme provided in this specification, by differentially weighting the abnormal contribution of each data dimension, the abnormal detection process can identify and weaken the influence of non-critical dimension noise, avoid false alarm warnings caused by changes in irrelevant dimensions, and reduce the false alarm rate of abnormal detection. In addition, by differentially weighting the abnormal contribution of each data dimension, the consideration of abnormal sensitive dimensions in the abnormal detection process can be strengthened, so that the abnormal detection process can focus on indicators that truly reflect the abnormal state of the system, thereby improving the capture ability and positioning accuracy of abnormal events, and then improving the detection accuracy. In addition, by assigning different specific weights to different data dimensions, the results of abnormal detection can clearly indicate which indicators are the most abnormal, which helps analysts to quickly understand and locate the problem, and improves the practicality and interpretability of the abnormal detection results. In addition, by fusing multiple observation data into data to be processed, multi-dimensional data fusion can be achieved, so that the abnormal detection process can adapt to the changes in the importance of each dimension in different situations, and enhance the adaptability and robustness of the model when facing complex and heterogeneous data.
[0148] Corresponding to the aforementioned method embodiments, this specification also provides corresponding equipment embodiments and device embodiments.
[0149] Figure 5 is a schematic structural diagram of a computing device provided by an exemplary embodiment. Figure 5 At the hardware level, the computing device includes a processor 502, an internal bus 504, a network interface 506, a memory 508, and a non-volatile memory 510, and may also include hardware required for other tasks. One or more embodiments of this specification may be implemented based on software, such as the processor 502 reading the corresponding computer program from the non-volatile memory 510 into the memory 508 and then running it. Of course, in addition to the software implementation, one or more embodiments of this specification do not exclude other implementations, such as logic devices or a combination of software and hardware, etc., that is, the execution subject of the following processing flow is not limited to each logic unit, but may also be hardware or logic devices.
[0150] Please refer to Figure 6 , Figure 6 is a schematic block diagram of a data anomaly detection device provided by an exemplary embodiment. The data anomaly detection device can be applied to Figure 5 In the computing device shown in the figure, the technical solution of this specification is implemented. Among them, the data anomaly detection device may include:
[0151] A generating module 601 is used to generate data to be processed based on the operation data of the data management system in multiple data dimensions, where the data to be processed is time series data arranged in chronological order by the operation data in multiple data dimensions;
[0152] An acquisition module 602 is used to acquire reconstructed data of the data to be processed, where the reconstructed data of the data to be processed is time series data composed of reconstructed data corresponding to the operating data on multiple data dimensions;
[0153] A first determination module 603 is used to determine the abnormality scores of the data to be processed under different candidate abnormality types based on the data to be processed, the reconstructed data of the data to be processed and the target weight information corresponding to the different candidate abnormality types, wherein the target weight information is obtained by adjusting the initial weight information based on the abnormality detection results of the historical data and the actual abnormality types of the historical data, and the target weight information is used to indicate the weight parameters corresponding to each of the multiple data dimensions;
[0154] The second determination module 604 is used to determine the data anomaly prediction result of the data to be processed based on the anomaly scores of the data to be processed under different candidate anomaly situation types and the target score threshold.
[0155] In some embodiments, the generating module 601, when used to generate the data to be processed based on the operation data of the data management system in multiple data dimensions, is used to:
[0156] In response to the anomaly detection instruction, obtaining operation data of the data management system in multiple data dimensions;
[0157] Data integration processing is performed based on the operating data of the data management system in multiple data dimensions to obtain the data to be processed.
[0158] In some embodiments, the operation data includes system performance data, log data and tracking data, wherein the system performance data is used to indicate the performance data corresponding to the data management system at different times during the operation process, the log data is the operation log generated by the data management system during the operation process, and the tracking data is used to indicate the service call status in the data management system.
[0159] In some embodiments, the generating module 601, when performing data integration processing based on the operation data of the data management system in multiple data dimensions to obtain the data to be processed, is used to:
[0160] According to the timestamp information of the log data and the service call time indicated by the tracking data, each data included in the log data and the tracking data is respectively embedded into the system performance data to obtain the data to be processed.
[0161] In some embodiments, the generation module 601 is further used to normalize the data to be processed.
[0162] In some embodiments, the first determination module 603, when used to determine the abnormality scores of the data to be processed under different candidate abnormal situation types based on the data to be processed, the reconstructed data of the data to be processed and the target weight information corresponding to the different candidate abnormal situation types, is used to:
[0163] Determine error data based on the data to be processed and the reconstructed data of the data to be processed, where the error data is used to indicate the reconstruction error of the data corresponding to each time point in multiple data dimensions;
[0164] Based on the error data and target weight information corresponding to different candidate abnormal situation types, the abnormality scores of the data to be processed under different candidate abnormal situation types are determined.
[0165] In some embodiments, the first determination module 603, when used to determine the abnormality scores of the to-be-processed data under different candidate abnormality types based on the error data and the target weight information corresponding to the different candidate abnormality types, is used to:
[0166] For any candidate abnormal situation type among the multiple candidate abnormal situation types, based on the weight parameters corresponding to each data dimension indicated by the target weight information corresponding to the candidate abnormal situation type, weighted average processing is performed on the reconstruction error of each time point under the corresponding data dimension to obtain the abnormal score of the data corresponding to each time point in the data to be processed under the candidate abnormal situation type;
[0167] Based on the anomaly scores of the data corresponding to each time point in the data to be processed under the alternative anomaly situation type, the anomaly scores of the data to be processed under the alternative anomaly situation type are determined.
[0168] In some embodiments, the first determination module 603, when used to determine the abnormality score of the data to be processed under the alternative abnormal situation type based on the abnormality score of the data corresponding to each time point in the data to be processed under the alternative abnormal situation type, is used to:
[0169] Determine the abnormality score of the data corresponding to each time point in the data to be processed under the alternative abnormal situation type as the abnormality score of the data to be processed under the alternative abnormal situation type;
[0170] The statistical value of the anomaly score of the data corresponding to each time point in the data to be processed under the alternative anomaly situation type is determined as the anomaly score of the data to be processed under the alternative anomaly situation type.
[0171] In some embodiments, the data anomaly prediction result is used to indicate whether the data to be processed has data anomalies. When the data anomaly prediction result indicates that the data to be processed has data anomalies, the data anomaly prediction result is also used to indicate the type of predicted anomaly of the data to be processed;
[0172] For any candidate abnormal situation type, the abnormality score of the data to be processed under the candidate abnormal situation type is the abnormality score of the data corresponding to each time point in the data to be processed under the candidate abnormal situation type. The second determination module 604, when used to determine the data abnormality prediction result of the data to be processed based on the abnormality score of the data to be processed under different candidate abnormal situation types and the target score threshold, is used for any of the following:
[0173] If the number of time points at which the anomaly score of the data to be processed under the alternative anomaly type is greater than the corresponding target score threshold meets the quantity requirement, it is determined that the data to be processed has data anomalies, and the alternative anomaly type is determined as the predicted anomaly type of the data to be processed;
[0174] If the number of time points at which the anomaly score of the data to be processed under the alternative anomaly type is greater than the corresponding target score threshold does not meet the quantity requirement, it is determined that the data to be processed does not have a data anomaly corresponding to the alternative anomaly type.
[0175] In some embodiments, the data anomaly prediction result is used to indicate whether the data to be processed has data anomalies. When the data anomaly prediction result indicates that the data to be processed has data anomalies, the data anomaly prediction result is also used to indicate the type of predicted anomaly of the data to be processed;
[0176] For any candidate abnormal situation type, the abnormal score of the data to be processed under the candidate abnormal situation type is a statistical value of the abnormal score of the data corresponding to each time point in the data to be processed under the candidate abnormal situation type. The second determination module 604, when used to determine the data abnormality prediction result of the data to be processed based on the abnormal score of the data to be processed under different candidate abnormal situation types and the target score threshold, is used for any of the following:
[0177] If the anomaly score of the data to be processed under the candidate anomaly type is greater than the target score threshold, it is determined that the data to be processed has data anomaly, and the candidate anomaly type is determined as the predicted anomaly type of the data to be processed;
[0178] If the anomaly score of the data to be processed under the alternative anomaly type is less than or equal to the target score threshold, it is determined that the data to be processed does not have a data anomaly corresponding to the alternative anomaly type.
[0179] In some embodiments, the second determination module 604 is further configured to determine the credibility of the predicted abnormal situation type of the data to be processed when the data abnormality prediction result indicates that the data to be processed has data abnormality;
[0180] The second determination module 604 is further used to update the target weight information based on the predicted abnormal situation type of the data to be processed and the credibility of the predicted abnormal situation type.
[0181] In some embodiments, the process of obtaining target weight information includes:
[0182] Based on the anomaly detection result of the first historical data and the actual anomaly type, the initial weight information is updated to obtain updated weight information;
[0183] Based on the anomaly detection results of the second and subsequent multiple historical data and the actual abnormal situation types, the updated weight information is iteratively updated to obtain the target weight information.
[0184] In some embodiments, the anomaly detection result is used to indicate whether the historical data has a predicted result of data anomaly. When the anomaly detection result indicates that the historical data has a data anomaly, the anomaly detection result is also used to indicate the predicted anomaly type of the historical data and the credibility of the predicted anomaly type;
[0185] For any historical data, the process of updating the weight information based on the anomaly detection result of the historical data and the actual anomaly type includes any of the following:
[0186] The anomaly detection result indicates that the historical data has data anomalies, and the predicted anomaly type indicated by the anomaly detection result is consistent with the actual anomaly type of the historical data, and the average value of the credibility of the current weight information and the predicted anomaly type indicated by the anomaly detection result is determined as the updated weight information;
[0187] The anomaly detection result indicates that the historical data has data anomalies, and the predicted anomaly type indicated by the anomaly detection result is inconsistent with the actual anomaly type of the historical data, and an average value of the credibility of the current weight information and the predicted anomaly type indicated by the anomaly detection result is determined, so as to use the difference between the average value and the first value as the updated weight information;
[0188] The anomaly detection result indicates that there is no data anomaly in the historical data, and the candidate anomaly type includes the actual anomaly type of the historical data, and the average value of the credibility of the current weight information and the predicted anomaly type indicated by the anomaly detection result is determined as the updated weight information;
[0189] The anomaly detection result indicates that there is no data anomaly in the historical data, and the alternative anomaly type does not include the actual anomaly type of the historical data, the actual anomaly type is recorded as the alternative anomaly type, and the credibility of the predicted anomaly type indicated by the anomaly detection result is determined as the weight information of the newly recorded alternative anomaly type.
[0190] The systems, devices, modules or units described in the above embodiments may be implemented by computer chips or entities, or by products with certain functions. A typical implementation device is a computer, which may be in the form of a personal computer, a laptop computer, a cellular phone, a camera phone, a smart phone, a personal digital assistant, a media player, a navigation device, an email transceiver, a game console, a tablet computer, a wearable device or a combination of any of these devices.
[0191] In a typical configuration, a computer includes one or more processors (Central Processing Unit, CPU), input / output interface, network interface and memory.
[0192] Memory may include non-permanent storage in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. Memory is an example of a computer-readable medium.
[0193] Computer readable media include permanent and non-permanent, removable and non-removable media that can be used to store information by any method or technology. Information can be computer-readable instructions, data structures, modules of programs, or other data. Examples of computer storage media include, but are not limited to, phase change random access memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disc read-only memory (CD-ROM), digital versatile disc (DVD) or other optical storage, magnetic cassettes, disk storage, quantum memory, graphene-based storage media or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. According to the definition in this article, computer-readable media does not include temporary computer-readable media (transitory media), such as modulated data signals and carrier waves.
[0194] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.
[0195] The above is a description of a specific embodiment of the specification. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recorded in the claims can be performed in an order different from that in the embodiments and still achieve the desired results. In addition, the processes depicted in the drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
[0196] The terms used in one or more embodiments of this specification are only for the purpose of describing specific embodiments, and are not intended to limit one or more embodiments of this specification. The singular forms of "a", "said" and "the" used in one or more embodiments of this specification and the appended claims are also intended to include plural forms, unless the context clearly indicates other meanings. It should also be understood that the term "and / or" used herein refers to and includes any or all possible combinations of one or more associated listed items.
[0197] It should be understood that although the terms first, second, third, etc. may be used to describe various information in one or more embodiments of this specification, these information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other. For example, without departing from the scope of one or more embodiments of this specification, the first information may also be referred to as the second information, and similarly, the second information may also be referred to as the first information. Depending on the context, the word "if" as used herein may be interpreted as "at the time of" or "when" or "in response to determining".
[0198] The above description is merely a preferred embodiment of one or more embodiments of the present specification and is not intended to limit one or more embodiments of the present specification. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of one or more embodiments of the present specification shall be included in the scope of protection of one or more embodiments of the present specification.
Claims
1. A data anomaly detection method, comprising: Generate data to be processed based on the operation data of the data management system on multiple data dimensions, and obtain reconstructed data of the data to be processed, wherein the data to be processed is time series data arranged in time sequence by the operation data on multiple data dimensions, and the reconstructed data of the data to be processed is time series data composed of reconstructed data corresponding to the operation data on the multiple data dimensions; Determine the abnormality scores of the data to be processed under different candidate abnormality types based on the data to be processed, the reconstructed data of the data to be processed and the target weight information corresponding to different candidate abnormality types, wherein the target weight information is obtained by adjusting the initial weight information based on the abnormality detection result of the historical data and the actual abnormality type of the historical data, and the target weight information is used to indicate the weight parameters corresponding to each of the multiple data dimensions; Based on the anomaly scores of the data to be processed under different candidate anomaly situation types and the target score threshold, a data anomaly prediction result of the data to be processed is determined.
2. The method according to claim 1, wherein generating the data to be processed based on the operation data of the data management system in multiple data dimensions comprises: In response to the anomaly detection instruction, obtaining operation data of the data management system in multiple data dimensions; Data integration processing is performed based on the operating data of the data management system in multiple data dimensions to obtain the data to be processed.
3. The method according to claim 2, wherein the operation data includes system performance data, log data and tracking data, wherein: The system performance data is used to indicate the performance data corresponding to different times during the operation of the data management system. The log data is the operation log generated by the data management system during the operation. The tracking data is used to indicate the service call status in the data management system.
4. The method according to claim 3, wherein the step of performing data integration processing based on the operation data of the data management system in multiple data dimensions to obtain the data to be processed comprises: According to the timestamp information of the log data and the service call time indicated by the tracking data, each data included in the log data and the tracking data is respectively embedded into the system performance data to obtain the data to be processed.
5. The method according to claim 1, after generating the data to be processed based on the operation data of the data management system in multiple data dimensions, the method further comprises: The data to be processed is normalized.
6. The method according to claim 1, wherein determining the abnormality scores of the data to be processed under different candidate abnormality types based on the data to be processed, the reconstructed data of the data to be processed and the target weight information corresponding to different candidate abnormality types comprises: Determine error data based on the data to be processed and the reconstructed data of the data to be processed, where the error data is used to indicate a reconstruction error of the data corresponding to each time point in the multiple data dimensions; Based on the error data and target weight information corresponding to different candidate abnormal situation types, abnormality scores of the to-be-processed data under different candidate abnormal situation types are determined.
7. The method according to claim 6, wherein determining the abnormality scores of the to-be-processed data under different candidate abnormality types based on the error data and target weight information corresponding to different candidate abnormality types comprises: For any candidate abnormal situation type among the multiple candidate abnormal situation types, based on the weight parameters corresponding to each data dimension indicated by the target weight information corresponding to the candidate abnormal situation type, weighted average processing is performed on the reconstruction error of each time point under the corresponding data dimension to obtain the abnormal score of the data corresponding to each time point in the data to be processed under the candidate abnormal situation type; Based on the abnormality scores of the data corresponding to each time point in the data to be processed under the alternative abnormal situation type, the abnormality scores of the data to be processed under the alternative abnormal situation type are determined.
8. The method according to claim 7, wherein determining the abnormality score of the data to be processed under the candidate abnormality type based on the abnormality score of the data corresponding to each time point in the data to be processed under the candidate abnormality type comprises: Determine the abnormality score of the data corresponding to each time point in the to-be-processed data under the candidate abnormal situation type as the abnormality score of the to-be-processed data under the candidate abnormal situation type; A statistical value of anomaly scores of data corresponding to each time point in the data to be processed under the candidate abnormal situation type is determined as the anomaly score of the data to be processed under the candidate abnormal situation type.
9. The method according to claim 8, wherein the data anomaly prediction result is used to indicate whether the data to be processed has data anomaly, and when the data anomaly prediction result indicates that the data to be processed has data anomaly, the data anomaly prediction result is further used to indicate the type of predicted anomaly of the data to be processed; For any candidate abnormal situation type, the abnormality score of the data to be processed under the candidate abnormal situation type is the abnormality score of the data corresponding to each time point in the data to be processed under the candidate abnormal situation type, and the data abnormality prediction result of the data to be processed is determined based on the abnormality score of the data to be processed under different candidate abnormal situation types and the target score threshold, including any of the following: If the number of time points at which the anomaly score of the data to be processed under the candidate anomaly type is greater than the corresponding target score threshold meets the quantity requirement, it is determined that the data to be processed has data anomaly, and the candidate anomaly type is determined as the predicted anomaly type of the data to be processed; If the number of time points at which the anomaly score of the data to be processed under the alternative anomaly situation type is greater than the corresponding target score threshold does not meet the quantity requirement, it is determined that the data to be processed does not have a data anomaly corresponding to the alternative anomaly situation type.
10. The method according to claim 8, wherein the data anomaly prediction result is used to indicate whether the data to be processed has data anomaly, and when the data anomaly prediction result indicates that the data to be processed has data anomaly, the data anomaly prediction result is further used to indicate the type of predicted anomaly of the data to be processed; For any candidate abnormal situation type, the abnormal score of the data to be processed under the candidate abnormal situation type is a statistical value of the abnormal score of the data corresponding to each time point in the data to be processed under the candidate abnormal situation type, and the data abnormality prediction result of the data to be processed is determined based on the abnormal score of the data to be processed under different candidate abnormal situation types and the target score threshold, including any of the following: If the anomaly score of the data to be processed under the candidate anomaly type is greater than the target score threshold, it is determined that the data to be processed has a data anomaly, and the candidate anomaly type is determined as the predicted anomaly type of the data to be processed; If the anomaly score of the data to be processed under the candidate anomaly situation type is less than or equal to the target score threshold, it is determined that the data to be processed does not have a data anomaly corresponding to the candidate anomaly situation type.
11. The method according to claim 9 or 10, after determining the abnormality score of the data to be processed under the candidate abnormality type based on the abnormality score of the data corresponding to each time point in the data to be processed under the candidate abnormality type, the method further comprises: When the data anomaly prediction result indicates that the data to be processed has data anomaly, determining the credibility of the predicted anomaly type of the data to be processed; The target weight information is updated based on the predicted abnormal situation type of the data to be processed and the credibility of the predicted abnormal situation type.
12. The method according to claim 1, wherein the process of obtaining the target weight information comprises: Based on the anomaly detection result of the first historical data and the actual anomaly type, the initial weight information is updated to obtain updated weight information; Based on the anomaly detection results of the second and subsequent multiple historical data and the actual abnormal situation type, the updated weight information continues to be iteratively updated to obtain the target weight information.
13. The method according to claim 12, wherein the anomaly detection result is used to indicate a prediction result of whether the historical data has data anomalies, and when the anomaly detection result indicates that the historical data has data anomalies, the anomaly detection result is further used to indicate the predicted anomaly type of the historical data and the credibility of the predicted anomaly type; For any historical data, the process of updating the weight information based on the anomaly detection result of the historical data and the actual anomaly type includes any of the following: The anomaly detection result indicates that the historical data has data anomalies, and the predicted anomaly type indicated by the anomaly detection result is consistent with the actual anomaly type of the historical data, and an average value of the credibility of the current weight information and the predicted anomaly type indicated by the anomaly detection result is determined as the updated weight information; The anomaly detection result indicates that the historical data has a data anomaly, and the predicted anomaly type indicated by the anomaly detection result is inconsistent with the actual anomaly type of the historical data, and an average value of the credibility of the current weight information and the predicted anomaly type indicated by the anomaly detection result is determined, so as to use the difference between the average value and the first value as the updated weight information; The anomaly detection result indicates that there is no data anomaly in the historical data, and the candidate anomaly type includes the actual anomaly type of the historical data, and an average value of the credibility of the current weight information and the predicted anomaly type indicated by the anomaly detection result is determined as the updated weight information; The anomaly detection result indicates that there is no data anomaly in the historical data, and the alternative abnormal situation type does not include the actual abnormal situation type of the historical data, the actual abnormal situation type is recorded as the alternative abnormal situation type, and the credibility of the predicted abnormal situation type indicated by the anomaly detection result is determined as the weight information of the newly recorded alternative abnormal situation type.
14. A data anomaly detection device, comprising: A generating module, used to generate data to be processed based on the operating data of the data management system in multiple data dimensions, wherein the data to be processed is time series data arranged in chronological order by the operating data in multiple data dimensions; An acquisition module, used for acquiring reconstructed data of the data to be processed, wherein the reconstructed data of the data to be processed is time series data composed of reconstructed data corresponding to the operating data on the multiple data dimensions; A first determination module is used to determine the abnormality scores of the data to be processed under different candidate abnormality types based on the data to be processed, the reconstructed data of the data to be processed and the target weight information corresponding to different candidate abnormality types, wherein the target weight information is obtained by adjusting the initial weight information based on the abnormality detection results of the historical data and the actual abnormality types of the historical data, and the target weight information is used to indicate the weight parameters corresponding to each of the multiple data dimensions; The second determination module is used to determine the data anomaly prediction result of the data to be processed based on the anomaly score of the data to be processed under different candidate anomaly situation types and the target score threshold.
15. A computing device comprising: processor; a memory for storing processor-executable instructions; The processor implements the method according to any one of claims 1 to 13 by running the executable instructions.
16. A computer-readable storage medium having computer instructions stored thereon, wherein the instructions, when executed by a processor, implement the steps of the method according to any one of claims 1 to 13.
Citation Information
Patent Citations
Anomaly detection method, device and equipment and storage medium
CN112084056A
Abnormal data detection method and device, computer readable medium and electronic equipment
CN113568819A
Abnormality identification method and device
CN115270887A
Operation and maintenance data anomaly detection device and method and storage medium
CN116302835A
Bastion host operation and maintenance management system
CN117874680A
Cited By
Intelligent operation and maintenance management system
CN119440968A
Abnormality processing method and device, storage medium, electronic equipment and product
CN122022992A
