Visual big data-based time series data analysis method and system

By organizing the data matrix and binding the anomaly degree of the time series data, combined with the two-dimensional Fourier transform and hash table inverted index, the key data nodes are analyzed, which solves the problem of improper segment length setting in the anomaly analysis of the time series data and improves the efficiency of the time series data. Improve the accuracy and efficiency of anomaly identification.

CN118536035APending Publication Date: 2024-08-23HEBEI HUAYE JIKE INFORMATION TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410625014.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-20
Publication Date
2024-08-23

AI Technical Summary

Technical Problem

In the prior art, in time series data anomaly analysis, improper segment length settings lead to inaccurate data anomaly analysis, and multiple continuously distributed abnormal data cause distribution anomalies in the same segment, affecting the anomaly identification effect.

Method used

By obtaining the data to be analyzed, its application scenarios and historical analysis data, organize it into a data matrix, and perform anomaly binding and environmental information binding, using two-dimensional Fourier transform and hash table inverted index to analyze key data nodes and abnormality, screening and monitoring.

Benefits of technology

It improves the accuracy and efficiency of data anomaly monitoring, reduces the processing volume, and ensures the accuracy of time series data anomaly analysis.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118536035A
    Figure CN118536035A
Patent Text Reader

Abstract

The invention relates to the technical field of data processing, in particular to a time series data analysis method and system based on visual big data, electronic equipment and a storage medium, and the method comprises the steps: obtaining to-be-analyzed data, a data application scene and historical analysis data, performing data arrangement on the historical analysis data according to a timestamp, a data task type and a data process association degree to obtain a first data matrix, determining whether abnormal data exists in the first data matrix, if yes, performing corresponding data node binding on the data abnormal degree and the first data matrix, and if not, performing data processing on the data abnormal degree; obtaining a second data matrix after binding processing, binding environment information with data nodes to obtain a third data matrix, carrying out abnormal weight data node analysis on the third data matrix to obtain key data nodes, and carrying out abnormal degree analysis monitoring on screening data to obtain a data abnormal degree. According to the invention, the time series data anomaly identification efficiency is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of data processing, and in particular to a time series data analysis method and system based on visualized big data. Background Art

[0002] Visualizing big data is a process of acquiring, cleaning, analyzing big data, and displaying the analysis results in the form of graphics, icons, etc. The purpose of big data visualization is to enhance the presentation of large amounts of complex data, so that users can observe the data in a more intuitive way and discover the hidden information in the data. It involves two specific steps: data analysis and visualization transformation of analysis results. The purpose of data analysis is data governance or information management of large data sets to ensure the acquisition of clean data, that is, to analyze abnormal data that affects the visualization results, so that the visualization transformation presentation effect is better. Therefore, in big data visualization, abnormal analysis of data sets is an indispensable step.

[0003] The data set contains a special type of data, namely time series data, which is a data column recorded in chronological order with unified indicators. At present, when analyzing time series data anomalies, the main focus is on the difference between the data and the surrounding data, and the data interquartile range is used to judge the abnormal data. However, for large amounts of data, large data needs to be processed in segments. The length of the segmented data directly affects the distribution characteristics of each segmented data, thereby affecting the accuracy of data anomaly analysis in the segmented data. Currently, the segment length is often set directly, which cannot guarantee that the segmented data can meet the needs of time series data anomaly analysis. At the same time, when multiple continuously distributed abnormal data are in the same segmented data, it may cause abnormal distribution of the segmented data, affecting the abnormal analysis of the corresponding segmented data, making the abnormality of the final identified time series data not accurate enough, and the anomaly recognition effect is poor. Summary of the invention

[0004] In order to solve at least one of the above technical problems, the present application provides a time series data analysis method and system based on visualized big data.

[0005] In the first aspect, the present application provides a time series data analysis method based on visualized big data, which adopts the following technical solution: Acquire data to be analyzed, data application scenarios corresponding to the data to be analyzed, and historical analysis data corresponding to the data application scenarios; Arrange the historical analysis data according to timestamps, data task types, and data flow relevance to obtain a first data matrix; Determine a historical analysis result based on the first data matrix, determine whether there is abnormal data in the first data matrix according to the historical analysis result, and if so, determine the degree of data abnormality of the abnormal data according to the historical analysis result; Binding the data abnormality degree to the corresponding data nodes of the first data matrix to obtain a second data matrix after binding; Determine the environmental information when different node data in the historical analysis data are generated based on the data application scenario, and bind the environmental information with the corresponding data nodes in the second data matrix to obtain a third data matrix after binding processing; Performing abnormal weight data node analysis on the third data matrix to obtain key data nodes; Performing inverse indexing on the data to be analyzed using a hash table structure to obtain screening data corresponding to the key data node; The screening data is analyzed and monitored for abnormality to obtain the degree of data abnormality.

[0006] In a possible implementation, performing abnormal weight data node analysis on the third data matrix to obtain key data nodes includes: Performing a two-dimensional Fourier transform on the third data matrix to obtain a two-dimensional frequency spectrum diagram corresponding to the third data matrix; Determine the data map point corresponding to each node data in the historical analysis data according to the two-dimensional spectrum graph, wherein the data map point includes data coordinates, data scene features, data environment features, and data anomaly features of the node data; Determine a second data map point according to the timestamp, and use the second data map point as the starting map point to perform adjacent map point calculations to obtain a data difference set between each data map point and a data map point of an adjacent previous node; Matching the difference in the data difference set with the preset difference interval to obtain the data weight corresponding to each data map point; Determine whether the data weight meets the preset data weight. If so, take the node of the node data corresponding to the data weight as the key data node.

[0007] In a possible implementation manner, performing a two-dimensional Fourier transform on the third data matrix includes: ; Among them, f(x, y) is the M*N spatial data matrix of the two-dimensional spectrum graph, x=0, 1, 2,…, M-1 and y=0, 1, 2,…N-1, F(u, v) represents the Fourier transform of f(x, y), which is a frequency domain data matrix of size M*N, u=0, 1, 2,…, M-1 and v=0, 1, 2,…N-1, M is the number of node data, and N is the number of frequency test points.

[0008] In a possible implementation, the abnormality degree analysis and monitoring of the screening data to obtain the abnormality degree of the data includes: Segmenting the screening data to obtain at least two segmented data; Group each segmented data according to the data service level to obtain a data level group; The data distribution features in the data level group are input into a preset anomaly recognition model for training to obtain the data anomaly degree of each data in the segmented data.

[0009] In a possible implementation, the calculation of adjacent map points is performed with the second data map point as the starting map point to obtain a set of data differences between each data map point and the data map point of the adjacent previous node, including: Classify the data map points into scene categories according to the data scene characteristics to obtain data map point groups of different scenes; Dividing the data map point groups into environment categories according to the data environment characteristics to obtain data map point groups under different environments; Positioning the second data map point in each of the data map point groups respectively, performing difference calculation between the data in the second data map point and the data in the first data map point in the same data map point group to obtain a first data difference; After calculating the difference between the data in the second data map point and the data in the first data map point, the difference determination step is executed cyclically until the difference corresponding to all the data points in the data map point group except the first data map point is obtained, and the difference corresponding to all the data points in the data map point group except the first data map point is aggregated to obtain a data difference set; The difference determination steps are: Determine the second data map point as a target data map point, calculate the difference between data in the target data map point and data in a previous data map point of the target data map point, and obtain a first data difference; After the difference between the data in the second data map point and the data in the first data map point is calculated, the next data map point of the target data map point is used as the new target data map point and the difference between it and the data in the previous data map point of the new target data map point is calculated to obtain a second data difference. The final target data map point is the Nth data map point, and N is the number of data map points in the data map point grouping.

[0010] In a possible implementation, the data map point groups are divided into environment categories according to the data environment characteristics to obtain data map point groups under different environments, and then the following steps are further included: It is determined whether the data map point has the data anomaly feature. If so, the data map point grouping is updated based on the position of the data map point having the data anomaly feature within the data map point grouping to obtain an updated data map point grouping.

[0011] In a possible implementation, the screening data is segmented to obtain at least two segmented data, including: Obtaining the current segment length of the screening data; Determine the current overlapping data length according to the current segment length and a preset relationship formula, wherein the preset relationship formula indicates that the segment length of the screening data is positively correlated with the total length of the screening data and the overlapping data length; At least two segmented data corresponding to the screening data are generated based on the current segment length and the overlapping data length.

[0012] In the second aspect, the present application provides a time series data analysis system based on visualized big data, which adopts the following technical solutions: A time series data analysis system based on visualized big data, comprising: A data acquisition module, used to acquire data to be analyzed, data application scenarios corresponding to the data to be analyzed, and historical analysis data corresponding to the data application scenarios; A data sorting module, used to sort the historical analysis data according to timestamps, data task types and data flow relevance to obtain a first data matrix; an abnormality determination module, used to determine a historical analysis result based on the first data matrix, determine whether there is abnormal data in the first data matrix according to the historical analysis result, and if so, determine the degree of data abnormality of the abnormal data according to the historical analysis result; A first binding module, used for binding the data abnormality degree with the corresponding data node of the first data matrix to obtain a second data matrix after binding processing; A second binding module is used to determine the environmental information when different node data in the historical analysis data are generated based on the data application scenario, and bind the environmental information with the corresponding data nodes in the second data matrix to obtain a third data matrix after binding processing; A weight analysis module, used for performing abnormal weight data node analysis on the third data matrix to obtain key data nodes; An inverted index module, used to perform inverted indexing on the data to be analyzed using a hash table structure to obtain screening data corresponding to the key data node; The abnormality monitoring module is used to analyze and monitor the abnormality degree of the screening data to obtain the abnormality degree of the data.

[0013] In a possible implementation, when the weight analysis module performs abnormal weight data node analysis on the third data matrix to obtain key data nodes, it is specifically used to: Performing a two-dimensional Fourier transform on the third data matrix to obtain a two-dimensional frequency spectrum diagram corresponding to the third data matrix; Determine the data map point corresponding to each node data in the historical analysis data according to the two-dimensional spectrum graph, wherein the data map point includes data coordinates, data scene features, data environment features, and data anomaly features of the node data; Determine a second data map point according to the timestamp, and use the second data map point as the starting map point to perform adjacent map point calculations to obtain a data difference set between each data map point and a data map point of an adjacent previous node; Matching the difference in the data difference set with the preset difference interval to obtain the data weight corresponding to each data map point; Determine whether the data weight meets the preset data weight. If so, take the node of the node data corresponding to the data weight as the key data node.

[0014] In another possible implementation, the weight analysis module performs a two-dimensional Fourier transform on the third data matrix, including: ; Among them, f(x, y) is the M*N spatial data matrix of the two-dimensional spectrum graph, x=0, 1, 2,…, M-1 and y=0, 1, 2,…N-1, F(u, v) represents the Fourier transform of f(x, y), which is a frequency domain data matrix of size M*N, u=0, 1, 2,…, M-1 and v=0, 1, 2,…N-1, M is the number of node data, and N is the number of frequency test points.

[0015] In another possible implementation, when the abnormality monitoring module performs abnormality analysis and monitoring on the screening data to obtain the abnormality degree of the data, it is specifically used to: Segmenting the screening data to obtain at least two segmented data; Group each segmented data according to the data service level to obtain a data level group; The data distribution features in the data level group are input into a preset anomaly recognition model for training to obtain the data anomaly degree of each data in the segmented data.

[0016] In another possible implementation, when the weight analysis module calculates adjacent map points with the second data map point as the starting map point to obtain a data difference set between each data map point and the data map point of the adjacent previous node, it is specifically used to: Classify the data map points into scene categories according to the data scene characteristics to obtain data map point groups of different scenes; Dividing the data map point groups into environment categories according to the data environment characteristics to obtain data map point groups under different environments; Positioning the second data map point in each of the data map point groups respectively, performing difference calculation between the data in the second data map point and the data in the first data map point in the same data map point group to obtain a first data difference; After calculating the difference between the data in the second data map point and the data in the first data map point, the difference determination step is executed cyclically until the difference corresponding to all the data points in the data map point group except the first data map point is obtained, and the difference corresponding to all the data points in the data map point group except the first data map point is aggregated to obtain a data difference set; The difference determination steps are: Determine the second data map point as a target data map point, calculate the difference between data in the target data map point and data in a previous data map point of the target data map point, and obtain a first data difference; After the difference between the data in the second data map point and the data in the first data map point is calculated, the next data map point of the target data map point is used as the new target data map point and the difference between it and the data in the previous data map point of the new target data map point is calculated to obtain a second data difference. The final target data map point is the Nth data map point, and N is the number of data map points in the data map point grouping.

[0017] In another possible implementation, the system further includes: a grouping update module, wherein: The grouping update module is used to determine whether the data map point has the data anomaly feature. If so, the data map point grouping is updated based on the position of the data map point with the data anomaly feature within the data map point grouping to obtain an updated data map point grouping.

[0018] In another possible implementation, when the abnormality monitoring module segments the screening data to obtain at least two segmented data, it is specifically used to: Obtaining the current segment length of the screening data; Determine the current overlapping data length according to the current segment length and a preset relationship formula, wherein the preset relationship formula indicates that the segment length of the screening data is positively correlated with the total length of the screening data and the overlapping data length; At least two segmented data corresponding to the screening data are generated based on the current segment length and the overlapping data length.

[0019] On the third side, the present application provides an electronic device, which adopts the following technical solution: at least one processor; Memory; At least one application, wherein at least one application is stored in a memory and configured to be executed by at least one processor, and the at least one application is configured to: execute a time series data analysis method based on visualized big data as described in any one of the first aspects.

[0020] In a fourth aspect, the present application provides a computer-readable storage medium, which adopts the following technical solution: A computer-readable storage medium stores a computer program thereon. When the computer program is executed in a computer, the computer is caused to execute a time series data analysis method based on visualized big data as described in any one of the first aspects.

[0021] In summary, the present application includes at least one of the following beneficial technical effects: When data anomalies are monitored for the data to be analyzed, the data application scenarios corresponding to the data to be analyzed and the historical analysis data corresponding to the data application scenarios are obtained through visualization big data technology, and then the historical analysis data are sorted according to timestamps, data task types, and data flow correlation to obtain a first data matrix, thereby sorting the historical analysis data group into ordered related data to facilitate subsequent data processing of the historical analysis data, and then determining the historical analysis results based on the first data matrix, and determining whether there is abnormal data in the first data matrix based on the historical analysis results. When there is abnormal data, the data anomaly degree of the abnormal data is determined through the historical analysis results, and then the data anomaly degree is bound to the corresponding data nodes of the first data matrix to obtain a second data matrix after binding processing. , so as to mark the data with data anomalies, and then determine the environmental information when the data of different nodes in the historical analysis data is generated based on the data application scenario, and bind the environmental information with the corresponding data nodes in the second data matrix to obtain the third data matrix after binding processing, so as to improve the spatiality of the data, and then perform abnormal weight data node analysis on the third data matrix to obtain key data nodes, and use a hash table structure to perform inverted indexing on the data to be analyzed, and obtain the screening data corresponding to the key data nodes, so as to determine the representative screening data in the data to be analyzed, and then perform abnormal degree analysis and monitoring on the screening data to obtain the data abnormality degree. Through the above technical content, not only the processing volume of data anomaly monitoring is reduced, but also the monitoring accuracy of data anomalies is improved. BRIEF DESCRIPTION OF THE DRAWINGS

[0022] Figure 1 A flowchart of a time series data analysis method based on visualized big data is provided in an embodiment of the present application.

[0023] Figure 2 A schematic diagram of the structure of a time series data analysis system based on visualized big data provided in an embodiment of the present application.

[0024] Figure 3 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0025] The following is combined with Figure 1-3 This application is described in further detail.

[0026] This specific embodiment is merely an explanation of the present application and is not a limitation of the present application. After reading this specification, a person skilled in the art may make non-creative modifications to the present embodiment as needed, but such modifications are protected by the patent law as long as they are within the scope of the present application.

[0027] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0028] In addition, the term "and / or" in this article is only a description of the association relationship of associated objects, indicating that there can be three relationships. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " in this article, unless otherwise specified, generally means that the associated objects before and after are in an "or" relationship.

[0029] The embodiments of the present application are further described in detail below in conjunction with the drawings in the specification.

[0030] The embodiment of the present application provides a method for time series data analysis based on visualized big data, which is executed by an electronic device, which can be a server or a terminal device, wherein the server can be an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides cloud computing services. The terminal device can be a smart phone, a tablet computer, a laptop computer, a desktop computer, etc., but is not limited thereto. The terminal device and the server can be directly or indirectly connected via wired or wireless communication, which is not limited in the embodiment of the present application. Figure 1 As shown, the method includes: Step S10: Acquire data to be analyzed, data application scenarios corresponding to the data to be analyzed, and historical analysis data corresponding to the data application scenarios.

[0031] For the embodiments of the present application, the data to be analyzed can be the data to be detected input by the personnel, or the file data uploaded by the personnel, or the data downloaded by the personnel from the Internet, which is not limited here. The data application scenario corresponding to the data to be analyzed represents the use and purpose of the data, such as: data used to construct user portraits (user personal data: including height, weight, etc.), data used for risk assessment, etc. The historical analysis data is the data obtained for each data application scenario within a preset historical time period, where the preset historical time period is a time period manually set by the personnel.

[0032] Step S11: sort the historical analysis data according to timestamps, data task types, and data flow relevance to obtain a first data matrix.

[0033] Specifically, the historical analysis data is arranged in a first matrix according to the data task type to obtain an initial data matrix, and the arrangement method is that each row corresponds to a data task type, and then the initial data matrix is ​​arranged in a second matrix according to the timestamp generated by the data to obtain a secondary data matrix, that is, the order of each row of data in the initial data matrix is ​​swapped according to the timeline development of the timestamp, and then the secondary data matrix is ​​arranged in a third matrix according to the data flow correlation to obtain a first data matrix. In the embodiment of the present application, the data flow correlation represents the degree of data correlation between different data task types. Although the data task type of each row of data is different, there are different degrees of correlation between the data task types. Therefore, on the basis of the secondary data matrix, the row order of the matrix where each row of data is located is adjusted. For example: there are three rows of data in the secondary data matrix, namely, row a data, row b data and row c data. After the third matrix arrangement, the three rows of data of the first data matrix obtained are row b data, row a data and row c data.

[0034] Each row of data in the present application refers to the data of each process link, for example: the first row of data is the data generated by the first business process link, and this process link is the data verification link, which verifies the collected data to ensure its accuracy and completeness, and the verification method includes data cleaning, format conversion and other steps. The second row of data is the data generated by the second business process link, and this process link is the data processing link, which performs data conversion, calculation, aggregation and other operations on the verified data so that the processed data meets business needs. The third row of data is the data generated by the third business process link, and this process link is data transmission, and different data contents of the processed data are transmitted to different systems or departments respectively, so that the data can be reasonably applied subsequently.

[0035] Step S12: determining the historical analysis results based on the first data matrix, and determining whether there is abnormal data in the first data matrix according to the historical analysis results; if there is, determining the degree of data abnormality of the abnormal data according to the historical analysis results.

[0036] Specifically, the historical analysis result is the analysis result generated when performing abnormal data analysis on the historical analysis data. In the embodiment of the present application, when performing abnormal data analysis on the historical analysis data, a one-by-one abnormal analysis method is adopted to determine the abnormality degree corresponding to each historical analysis data.

[0037] In the embodiment of the present application, the degree of abnormality corresponding to each abnormal analysis data is performed in a traversal manner, that is, the historical analysis data is traversed and each data is detected one by one. The specific detection method includes: pre-defining abnormal data evaluation standards, detecting each data according to the abnormal data evaluation standards, and determining the degree of abnormality corresponding to each data. The degree of abnormality can be a negligible abnormality or a non-negligible abnormality.

[0038] Step S13: Bind the data anomaly degree to the corresponding data nodes of the first data matrix to obtain a second data matrix after binding.

[0039] For the embodiment of the present application, the degree of data anomaly is bound to the corresponding data nodes in the first data matrix as a marking parameter to obtain a second data matrix. The second data matrix not only contains the original matrix data, but also has the binding marking parameters corresponding to each data.

[0040] Step S14: determine the environmental information when different node data in the historical analysis data are generated based on the data application scenario, and bind the environmental information with the corresponding data nodes in the second data matrix to obtain a third data matrix after binding processing.

[0041] Specifically, the environmental information is the environmental information when the data of different nodes in the historical analysis data are generated. The environmental information includes online and offline. Among them, the online environmental information indicates that the data source is the environment in which the data is generated by the processing system through logical processing. Its environmental information includes network configuration, audit mechanism, and personnel control behavior parameters, etc. The offline environmental information indicates the environment in which the actual equipment generates data after periodic operation. Its environmental information includes: environmental parameter information of the equipment, such as temperature, humidity, voltage, etc.

[0042] The environmental information is processed in a manner of binding the data anomaly degree with the corresponding data nodes in the first data matrix in step S13 to obtain a third data matrix.

[0043] Step S15: Perform abnormal weight data node analysis on the third data matrix to obtain key data nodes.

[0044] Specifically, a two-dimensional Fourier transform is performed on the third data matrix to obtain a two-dimensional spectrum graph corresponding to the third data matrix, and the data map point corresponding to each node data in the historical analysis data is determined according to the two-dimensional spectrum graph, wherein the data map point includes the data coordinates, data scene characteristics, data environment characteristics and data abnormality characteristics of the node data, and the second data map point is determined according to the timestamp, and the adjacent map points are calculated with the second data map point as the starting map point to obtain a data difference set between each data map point and the data map point of the adjacent previous node, and the differences in the data difference set are matched with a preset difference interval to obtain the data weight corresponding to each data map point, and it is determined whether the data weight meets the preset data weight. If so, the node of the node data corresponding to the data weight is used as the key data node.

[0045] In the embodiment of the present application, the formula for performing a two-dimensional Fourier transform on the third data matrix is:

[0046] Among them, f(x, y) is the M*N spatial data matrix of the two-dimensional graph, x=0, 1, 2,…, M-1 and y=0, 1, 2,…N-1, F(u, v) represents the Fourier transform of f(x, y), which is a frequency domain data matrix of size M*N, u=0, 1, 2,…, M-1 and v=0, 1, 2,…N-1, M is the number of node data, and N is the number of frequency test points.

[0047] In an embodiment of the present application, adjacent map points are calculated with the second data map point as the starting map point to obtain a data difference set between each data map point and the data map point of the adjacent previous node, including: dividing the data map points into scene categories according to data scene characteristics to obtain data map point groups for different scenes; dividing the data map point groups into environment categories according to data environment characteristics to obtain data map point groups under different environments, locating the second data map point in each data map point group respectively, performing a difference calculation between the data in the second data map point in the same data map point group and the data in the first data map point to obtain a first data difference, after performing a difference calculation between the data in the second data map point and the data in the first data map point, looping through the difference determination step until the differences corresponding to all data points in the data map point group except the first data map point are obtained, summarizing the differences corresponding to all data points in the data map point group except the first data map point to obtain a data difference set.

[0048] The difference determination steps are: Determine the second data map point as the target data map point, calculate the difference between the data in the target data map point and the data in the previous data map point of the target data map point to obtain a first data difference, after the difference between the data in the second data map point and the data in the first data map point is calculated, use the next data map point of the target data map point as the new target data map point and calculate the difference between the data in the previous data map point of the new target data map point to obtain a second data difference, and the final target data map point is the Nth data map point, where N is the number of data map points in the data map point grouping.

[0049] Specifically, the key data node is the data node with the most representative significance in the historical data, for example: within a certain time period, there are one hundred data nodes, and the four data nodes with the most representative significance among the one hundred data nodes are determined by adopting the above technical solution. The four data nodes are the fifth data node, the thirtieth data node, the seventy-fifth data node and the one hundredth data node, wherein the fifth data node can represent the first data node to the fifth data node. The thirtieth data node can represent the sixth data node to the thirtieth data node, the seventy-fifth data node can represent the thirty-first data node to the seventy-fifth data node, and the one hundredth data node can represent the seventy-sixth data node to the one hundredth data node. In the embodiment of the present application, the so-called most representative data node actually represents that the data difference between the data node and the preceding data node does not meet the preset difference interval, and the data weight corresponding to the data node meets the preset data weight, wherein the preset difference interval and the preset data weight are data values ​​set by the staff according to actual needs.

[0050] Step S16: Use a hash table structure to perform inverted indexing on the data to be analyzed, and obtain screening data corresponding to the key data nodes.

[0051] For the embodiment of the present application, a hash table structure is used to perform inverted indexing on the data to be analyzed, which can play a role in fast retrieval and quickly find the screening data corresponding to the key data nodes in the data to be analyzed.

[0052] Step S17, analyzing and monitoring the abnormality of the screening data to obtain the abnormality of the data.

[0053] Specifically, the screening data is segmented to obtain at least two segmented data, each segmented data is grouped according to the data business level to obtain a data level group, and the data distribution characteristics in the data level group are input into a preset anomaly recognition model for training to obtain the data anomaly degree of each data in the segmented data.

[0054] In the embodiment of the present application, the screening data is segmented, and the number and range of segments are determined according to the distribution characteristics of the data and business needs. The data can be divided into multiple interval segments using, but is not limited to, statistical methods. Then the data segments are grouped according to the business level of the data (such as user level, product level, time level, etc.). Data of the same business level are divided into the same data level group, and then for each data level group, the relevant characteristics of the data distribution are calculated and extracted. These characteristics include the periodic characteristics of the time series and the frequency characteristics based on the text data, that is, the data distribution characteristics.

[0055] The preset anomaly recognition model is a pre-created and trained neural network model. Its training set includes data distribution characteristics corresponding to different training data and the degree of data anomaly corresponding to the data distribution characteristics. The data distribution characteristics in the data level group are taken as input and input into the preset anomaly recognition model, and anomaly detection is performed on the screening data based on the data distribution characteristics.

[0056] For the embodiment of the present application, the preset abnormality recognition model includes a neural network model.

[0057] Based on the above embodiment, when data anomalies are monitored for the data to be analyzed, the data application scenario corresponding to the data to be analyzed and the historical analysis data corresponding to the data application scenario are obtained through visualization big data technology, and then the historical analysis data are sorted according to timestamps, data task types, and data flow correlation to obtain a first data matrix, thereby sorting the historical analysis data group into ordered related data to facilitate subsequent data processing of the historical analysis data, and then determining the historical analysis results according to the first data matrix, and determining whether there is abnormal data in the first data matrix according to the historical analysis results. When there is abnormal data, the data anomaly degree of the abnormal data is determined through the historical analysis results, and then the data anomaly degree is bound to the corresponding data nodes of the first data matrix to obtain a second data matrix after binding processing. A data matrix is ​​provided to mark data with data anomalies, and then the environmental information when the data of different nodes in the historical analysis data are generated is determined based on the data application scenario, and the environmental information is bound to the corresponding data nodes in the second data matrix to obtain a third data matrix after binding processing, so as to improve the spatiality of the data, and then the third data matrix is ​​analyzed for abnormal weight data nodes to obtain key data nodes, and a hash table structure is used to perform inverted indexing on the data to be analyzed, and the screening data corresponding to the key data nodes are obtained, so as to determine the representative screening data in the data to be analyzed, and then the screening data is analyzed and monitored for abnormality to obtain the degree of data anomaly. The above technical content not only reduces the processing volume of data anomaly monitoring, but also improves the monitoring accuracy of data anomalies.

[0058] Further, in an embodiment of the present application, the data map point group is divided into environmental categories according to data environment characteristics to obtain data map point groupings under different environments, and then it also includes: determining whether there are data abnormality features in the data map points, and if so, updating the data map point grouping based on the position of the data map point with the data abnormality features in the data map point grouping to obtain an updated data map point grouping.

[0059] In one possible implementation method of the present application, the screening data is segmented to obtain at least two segmented data, including: obtaining the current segment length of the screening data, determining the current overlapping data length according to the current segment length and a preset relationship formula, the preset relationship formula characterizing that the segment length of the screening data is positively correlated with the total length of the screening data and the overlapping data length, and generating at least two segmented data corresponding to the screening data based on the current segment length and the overlapping data length.

[0060] In the embodiment of the present application, the preset relationship formula is: K≈ , where K represents the current segment length of the screening data, N represents the current overlapping data length, and E represents the data length of the screening data. According to the preset relationship formula, after obtaining a certain length of screening data E, the segment length K to be segmented can be determined according to the specific needs of the corresponding scene, thereby determining the current overlapping data length.

[0061] In the embodiment of the present invention, the screening data is time series data, and the time series data includes a timestamp. Before analyzing and calculating the abnormality of the screening data, the screening data is segmented to obtain a plurality of segmented data, and then the analysis and calculation of the data mining algorithm is performed. Since the length of the data segment affects the calculation time and storage space, it is necessary to determine the optimal segment length of the screening data.

[0062] In the embodiments of the present application, the data mining algorithm refers to the algorithm used when data mining is required based on the screening data, and the appropriate data mining algorithm is selected according to the nature of the data, business requirements, and the goal of anomaly detection. For example: anomaly detection algorithm, anomaly detection algorithm is used to identify data points that are different from or non-compliant with other data points. Common anomaly detection algorithms include k-nearest neighbor algorithm (KNN) and outlier detection algorithm. Technicians in this field can also use different data mining algorithms to implement anomaly detection according to different forms of screening data, which is not limited here.

[0063] Specifically, the filtered data is segmented, and the obtained segmented data includes segmented data and overlapping data directly segmented from the filtered data. Taking time data as an example, the filtered data is the original time data, and after segmentation, three segmented time data (segmented time data 1, segmented time data 2, and segmented time data 3) are obtained, and the original time data = segmented time data 1 + segmented time data 2 + segmented time data 3. After determining the length of overlapping data, the overlapping data is added before and after each segmented time data. For segmented time data 1, overlapping data is added on its right side, and the overlapping data is the data selected from segmented time data 2 and located after segmented time data 1 with a preset overlapping data length; for segmented time data 2, overlapping data is added on its left and right sides respectively, and the overlapping data is the data selected from segmented time data 1 and located before segmented time data 2 with a preset overlapping data length, and the data selected from segmented time data 3 and located after segmented time data 2 with a preset overlapping data length; for segmented time data 3, overlapping data is added on its left side, and the overlapping data is the data selected from segmented time data 2 and located before segmented time data 3 with a preset overlapping data length. In this way, data exists before and after the boundary data of each segmented data, so that the calculation result of the boundary data becomes accurate. The segment boundary accuracy is improved by overlapping data between segmented data. At the same time, each segment has a certain continuity, and the connection between each segment is retained.

[0064] The following is an introduction to a time series data analysis system based on visualized big data provided by an embodiment of the present application. The time series data analysis system based on visualized big data described below and the time series data analysis method based on visualized big data described above can be referred to each other. Please refer to Figure 2 , Figure 2 2 is a schematic diagram of a time series data analysis system 20 based on visualized big data provided by an embodiment of the present application, including: A data acquisition module 21 is used to acquire data to be analyzed, data application scenarios corresponding to the data to be analyzed, and historical analysis data corresponding to the data application scenarios; A data sorting module 22 is used to sort the historical analysis data according to timestamps, data task types and data flow relevance to obtain a first data matrix; An abnormality determination module 23 is used to determine the historical analysis results based on the first data matrix, determine whether there is abnormal data in the first data matrix according to the historical analysis results, and if so, determine the degree of data abnormality of the abnormal data according to the historical analysis results; A first binding module 24 is used to bind the data abnormality degree to the corresponding data node of the first data matrix to obtain a second data matrix after binding processing; The second binding module 25 is used to determine the environmental information when different node data in the historical analysis data are generated based on the data application scenario, and bind the environmental information with the corresponding data nodes in the second data matrix to obtain a third data matrix after binding processing; The weight analysis module 26 is used to analyze the abnormal weight data nodes of the third data matrix to obtain key data nodes; An inverted index module 27 is used to perform inverted indexing on the data to be analyzed using a hash table structure to obtain screening data corresponding to key data nodes; The abnormality monitoring module 28 is used to analyze and monitor the abnormality degree of the screening data to obtain the abnormality degree of the data.

[0065] In a possible implementation of the embodiment of the present application, when the weight analysis module 26 performs abnormal weight data node analysis on the third data matrix to obtain key data nodes, it is specifically used to: Performing a two-dimensional Fourier transform on the third data matrix to obtain a two-dimensional frequency spectrum diagram corresponding to the third data matrix; Determine the data map point corresponding to each node data in the historical analysis data according to the spectrum two-dimensional graph, the data map point includes the data coordinates of the node data, data scene characteristics, data environment characteristics and data abnormal characteristics; Determine the second data map point according to the timestamp, and use the second data map point as the starting map point to perform adjacent map point calculations to obtain a data difference set between each data map point and the data map point of the adjacent previous node; Match the difference in the data difference set with the preset difference interval to obtain the data weight corresponding to each data map point; Determine whether the data weight meets the preset data weight. If so, the node of the node data corresponding to the data weight is used as the key data node.

[0066] In another possible implementation, the weight analysis module 26 performs a two-dimensional Fourier transform on the third data matrix, including: ; Among them, f(x, y) is the M*N spatial data matrix of the two-dimensional spectrum graph, x=0, 1, 2,…, M-1 and y=0, 1, 2,…N-1, F(u, v) represents the Fourier transform of f(x, y), which is a frequency domain data matrix of size M*N, u=0, 1, 2,…, M-1 and v=0, 1, 2,…N-1, M is the number of node data, and N is the number of frequency test points.

[0067] In another possible implementation, when the abnormality monitoring module 28 performs abnormality analysis and monitoring on the screening data to obtain the abnormality level of the data, it is specifically used to: Segmenting the screening data to obtain at least two segmented data; Group each segmented data according to the data service level to obtain a data level group; The data distribution characteristics in the data level group are input into the preset anomaly recognition model for training to obtain the data anomaly degree of each data in the segmented data.

[0068] In another possible implementation, when the weight analysis module 26 calculates adjacent map points with the second data map point as the starting map point to obtain a data difference set between each data map point and the data map point of the adjacent previous node, it is specifically used to: According to the data scene characteristics, the data map points are divided into scene categories to obtain data map point groups of different scenes; According to the data environment characteristics, the data map point groups are divided into environmental categories to obtain data map point groups in different environments; Positioning the second data map point in each data map point group respectively, performing difference calculation between data in the second data map point and data in the first data map point in the same data map point group, and obtaining a first data difference; After the difference between the data in the second data map point and the data in the first data map point is calculated, the difference determination step is executed cyclically until the difference corresponding to all the data points in the data map point group except the first data map point is obtained, and the difference corresponding to all the data points in the data map point group except the first data map point is summarized to obtain a data difference set; The difference determination steps are: Determine the second data map point as the target data map point, calculate the difference between the data in the target data map point and the data in the previous data map point of the target data map point, and obtain a first data difference; After the difference between the data in the second data map point and the data in the first data map point is calculated, the next data map point of the target data map point is used as the new target data map point and the difference between it and the data in the previous data map point of the new target data map point is calculated to obtain a second data difference. The final target data map point is the Nth data map point, and N is the number of data map points in the data map point grouping.

[0069] In another possible implementation, the system 20 further includes: a grouping update module, wherein: The grouping update module is used to determine whether there are data anomaly features in the data map points. If so, the data map point grouping is updated based on the position of the data map points with the data anomaly features within the data map point grouping to obtain updated data map point grouping.

[0070] In another possible implementation, when the abnormality monitoring module 28 segments the screening data to obtain at least two segmented data, it is specifically used to: Get the current segment length of the screening data; Determine the current overlapping data length according to the current segment length and a preset relationship formula, wherein the preset relationship formula indicates that the segment length of the screening data is positively correlated with the total length of the screening data and the overlapping data length; At least two segmented data corresponding to the screening data are generated based on the current segment length and the overlapping data length.

[0071] An electronic device provided in an embodiment of the present application is introduced below. The electronic device described below and the time series data analysis method based on visualized big data described above can refer to each other.

[0072] The present application embodiment provides an electronic device, such as Figure 3 As shown, Figure 3 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application, Figure 3 The electronic device 300 shown includes: a processor 301 and a memory 303. The processor 301 and the memory 303 are connected, such as through a bus 302. Optionally, the electronic device 300 may also include a transceiver 304. It should be noted that in actual applications, the transceiver 304 is not limited to one, and the structure of the electronic device 300 does not constitute a limitation on the embodiments of the present application.

[0073] The processor 301 may be a CPU (Central Processing Unit), a general-purpose processor, a DSP (Digital Signal Processor), an ASIC (Application Specific Integrated Circuit), an FPGA (Field Programmable Gate Array), or other programmable logic devices, transistor logic devices, hardware components, or any combination thereof. It may implement or execute various exemplary logic blocks, modules, and circuits described in conjunction with the disclosure of the embodiments of the present application. The processor 301 may also be a combination that implements computing functions, such as a combination of one or more microprocessors, a combination of a DSP and a microprocessor, and the like.

[0074] The bus 302 may include a path to transmit information between the above components. The bus 302 may be a PCI (Peripheral Component Interconnect) bus or an EISA (Extended Industry Standard Architecture) bus. The bus 302 may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 3 Only one thick line is used in the diagram, but this does not mean that there is only one bus or only one type of bus.

[0075] The memory 303 may be a ROM (Read Only Memory) or other types of static storage devices that can store static information and instructions, a RAM (Random Access Memory) or other types of dynamic storage devices that can store information and instructions, or an EEPROM (Electrically Erasable Programmable Read Only Memory), a CD-ROM (Compact Disc Read Only Memory) or other optical disk storage, optical disk storage (including compressed optical disk, laser disk, optical disk, digital versatile disk, Blu-ray disk, etc.), a magnetic disk storage medium or other magnetic storage device, or any other medium that can be used to carry or store the desired program code in the form of instructions or data structures and can be accessed by a computer, but is not limited thereto.

[0076] The memory 303 is used to store application code for executing the solution of the embodiment of the present application, and the execution is controlled by the processor 301. The processor 301 is used to execute the application code stored in the memory 303 to implement the content shown in the above method embodiment.

[0077] Among them, electronic devices include but are not limited to: mobile terminals such as mobile phones, laptops, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. Figure 3 The electronic device shown is merely an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.

[0078] A computer-readable storage medium provided in an embodiment of the present application is introduced below. The computer-readable storage medium described below and the method described above can be referenced to each other.

[0079] An embodiment of the present application provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the above-mentioned time series data analysis method based on visualized big data are implemented.

[0080] Since the embodiments of the computer-readable storage medium part and the embodiments of the method part correspond to each other, the embodiments of the computer-readable storage medium part refer to the description of the embodiments of the method part.

[0081] It should be understood that, although the steps in the flowchart of the accompanying drawings are displayed in sequence as indicated by the arrows, these steps are not necessarily executed in sequence in the order indicated by the arrows. Unless otherwise specified herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least a part of the steps in the flowchart of the accompanying drawings may include multiple sub-steps or multiple stages, and these sub-steps or stages are not necessarily executed at the same time, but can be executed at different times, and their execution order is not necessarily sequential, but can be executed in turn or alternately with other steps or at least a part of the sub-steps or stages of other steps.

[0082] The above are only some implementation methods of the present application. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present application. These improvements and modifications should also be regarded as the scope of protection of the present application.

Claims

1. A time series data analysis method based on visualized big data, characterized in that: include: Acquire data to be analyzed, data application scenarios corresponding to the data to be analyzed, and historical analysis data corresponding to the data application scenarios; Arrange the historical analysis data according to timestamps, data task types, and data flow relevance to obtain a first data matrix; Determine a historical analysis result based on the first data matrix, determine whether there is abnormal data in the first data matrix according to the historical analysis result, and if so, determine the degree of data abnormality of the abnormal data according to the historical analysis result; Binding the data abnormality degree to the corresponding data nodes of the first data matrix to obtain a second data matrix after binding; Determine the environmental information when different node data in the historical analysis data are generated based on the data application scenario, and bind the environmental information with the corresponding data nodes in the second data matrix to obtain a third data matrix after binding processing; Performing abnormal weight data node analysis on the third data matrix to obtain key data nodes; Performing inverse indexing on the data to be analyzed using a hash table structure to obtain screening data corresponding to the key data node; The screening data is analyzed and monitored for abnormality to obtain the degree of data abnormality.

2. According to the time series data analysis method based on visualized big data according to claim 1, it is characterized in that: The performing abnormal weight data node analysis on the third data matrix to obtain key data nodes includes: Performing a two-dimensional Fourier transform on the third data matrix to obtain a two-dimensional frequency spectrum diagram corresponding to the third data matrix; Determine the data map point corresponding to each node data in the historical analysis data according to the two-dimensional spectrum graph, wherein the data map point includes data coordinates, data scene features, data environment features, and data anomaly features of the node data; Determine a second data map point according to the timestamp, and use the second data map point as the starting map point to perform adjacent map point calculations to obtain a data difference set between each data map point and a data map point of an adjacent previous node; Matching the difference in the data difference set with the preset difference interval to obtain the data weight corresponding to each data map point; Determine whether the data weight meets the preset data weight. If so, take the node of the node data corresponding to the data weight as the key data node.

3. The time series data analysis method based on visualized big data according to claim 2 is characterized in that: The performing a two-dimensional Fourier transform on the third data matrix comprises: ; Among them, f(x, y) is the M*N spatial data matrix of the two-dimensional spectrum graph, x=0, 1, 2,…, M-1 and y=0, 1, 2,…N-1, F(u, v) represents the Fourier transform of f(x, y), which is a frequency domain data matrix of size M*N, u=0, 1, 2,…, M-1 and v=0, 1, 2,…N-1, M is the number of node data, and N is the number of frequency test points.

4. The time series data analysis method based on visualized big data according to claim 3 is characterized in that: The abnormality degree analysis and monitoring of the screening data to obtain the abnormality degree of the data includes: Segmenting the screening data to obtain at least two segmented data; Group each segmented data according to the data service level to obtain a data level group; The data distribution features in the data level group are input into a preset anomaly recognition model for training to obtain the data anomaly degree of each data in the segmented data.

5. The method for analyzing time series data based on visualized big data according to claim 2, characterized in that: The calculation of adjacent map points is performed with the second data map point as the starting map point to obtain a data difference set between each data map point and the data map point of the adjacent previous node, including: Classify the data map points into scene categories according to the data scene characteristics to obtain data map point groups of different scenes; Dividing the data map point groups into environment categories according to the data environment characteristics to obtain data map point groups under different environments; Positioning the second data map point in each of the data map point groups respectively, performing difference calculation between the data in the second data map point and the data in the first data map point in the same data map point group to obtain a first data difference; After calculating the difference between the data in the second data map point and the data in the first data map point, the difference determination step is executed cyclically until the difference corresponding to all the data points in the data map point group except the first data map point is obtained, and the difference corresponding to all the data points in the data map point group except the first data map point is aggregated to obtain a data difference set; The difference determination steps are: Determine the second data map point as a target data map point, calculate the difference between data in the target data map point and data in a previous data map point of the target data map point, and obtain a first data difference; After the difference between the data in the second data map point and the data in the first data map point is calculated, the next data map point of the target data map point is used as the new target data map point and the difference between it and the data in the previous data map point of the new target data map point is calculated to obtain a second data difference. The final target data map point is the Nth data map point, and N is the number of data map points in the data map point grouping.

6. The method for analyzing time series data based on visualized big data according to claim 5, characterized in that: The data map point groups are divided into environment categories according to the data environment characteristics to obtain data map point groups under different environments, and then the following steps are further included: It is determined whether the data map point has the data anomaly feature. If so, the data map point grouping is updated based on the position of the data map point having the data anomaly feature within the data map point grouping to obtain an updated data map point grouping.

7. The time series data analysis method based on visualized big data according to claim 4 is characterized in that: The step of segmenting the screening data to obtain at least two segmented data includes: Obtaining the current segment length of the screening data; Determine the current overlapping data length according to the current segment length and a preset relationship formula, wherein the preset relationship formula indicates that the segment length of the screening data is positively correlated with the total length of the screening data and the overlapping data length; At least two segmented data corresponding to the screening data are generated based on the current segment length and the overlapping data length.

8. A time series data analysis system based on visualized big data, characterized in that: include: A data acquisition module, used to acquire data to be analyzed, data application scenarios corresponding to the data to be analyzed, and historical analysis data corresponding to the data application scenarios; A data sorting module, used to sort the historical analysis data according to timestamps, data task types and data flow relevance to obtain a first data matrix; an abnormality determination module, used to determine a historical analysis result based on the first data matrix, determine whether there is abnormal data in the first data matrix according to the historical analysis result, and if so, determine the degree of data abnormality of the abnormal data according to the historical analysis result; A first binding module, used for binding the data abnormality degree with the corresponding data node of the first data matrix to obtain a second data matrix after binding processing; A second binding module is used to determine the environmental information when different node data in the historical analysis data are generated based on the data application scenario, and bind the environmental information with the corresponding data nodes in the second data matrix to obtain a third data matrix after binding processing; A weight analysis module, used for performing abnormal weight data node analysis on the third data matrix to obtain key data nodes; An inverted index module, used to perform inverted indexing on the data to be analyzed using a hash table structure to obtain screening data corresponding to the key data node; The abnormality monitoring module is used to analyze and monitor the abnormality degree of the screening data to obtain the abnormality degree of the data.

9. An electronic device, characterized in that: include: at least one processor; Memory; At least one application, wherein at least one application is stored in a memory and configured to be executed by at least one processor, and the at least one application is configured to: execute a time series data analysis method based on visualized big data as described in any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that: A computer program is stored which can be loaded by a processor and execute a time series data analysis method based on visualized big data as described in any one of claims 1 to 7.