Method, device, equipment and storage medium for processing large-scale discrete data

By processing large-scale discrete data through segmentation processing and interpolation algorithms, it solves the problems of high data processing costs and poor results in the existing technology, achieves efficient data processing and display, and improves the efficiency of automated operation and maintenance.

CN113849545BActive Publication Date: 2024-08-27JINAN INSPUR DATA TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202110932498.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-08-13
Publication Date
2024-08-27
Estimated Expiration
2041-08-13

AI Technical Summary

Technical Problem

Existing technologies are costly and ineffective when processing large-scale discrete data, resulting in a waste of resources and failure to achieve expected data processing effects.

Method used

By acquiring large-scale data collected by the data monitoring module, the data is processed in segments and stripped of redundant data. The interpolation algorithm is used to perform the best approximation according to the application scenario, and the data change trend function is generated to supplement the required time point data and display it in real time.

Benefits of technology

It achieves efficient real-time collection, processing and display of large-scale data, saves computing resources and achieves expected processing effects. It also supports manual settings and fully automated data processing algorithms, improving the efficiency of automated operation and maintenance.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113849545B
    Figure CN113849545B
Patent Text Reader

Abstract

The present invention provides a method, device, equipment and storage medium for processing large-scale discrete data, the method steps: obtaining large-scale data collected by a data monitoring module, segmenting each data, extracting partial segments of each data, and generating pre-processed data; stripping redundant data from the pre-processed data according to the data collection cycle and the real data time point, generating discretized data, and adding the discretized data to a database; when the data collection frequency is less than the frequency threshold, the data processing module selects an interpolation algorithm according to the application scenario to best approximate the discretized data in the database, obtains a data change trend function, supplements the required time point data according to the data change trend function, and displays it in real time. The present invention realizes efficient processing of real-time collection, processing and display of large-scale data, saves computing resources, and can achieve the expected processing effect; and supports manual settings and fully automated data processing algorithms at the same time.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of data processing, and in particular relates to a method, device, equipment and storage medium for processing large-scale discrete data. Background Art

[0002] In the era of cloud computing and big data, real-world application scenarios have increasingly higher requirements for the real-time and reliability of data. In our lives, time is considered continuous, and we also consider the numbers 1, 2, 3... to be continuous, but if we convert them into corresponding strings and store them in a computer, these are not necessarily continuous data. Especially when the amount of data is getting larger and larger, the cost of traversing and analyzing data by improving computer performance is getting higher and higher, resulting in a waste of resources. At the same time, the effect of existing traversal and analysis of data does not meet expectations.

[0003] This is a shortcoming of the prior art. Therefore, in view of the above-mentioned defects in the prior art, it is very necessary to provide a method, device, equipment and storage medium for processing large-scale discrete data. Summary of the invention

[0004] In view of the above-mentioned defects of the prior art that as the amount of data increases, the cost of traversing and analyzing the original data becomes increasingly high, resulting in waste of resources and failing to achieve the expected data processing effect, the present invention provides a method, device, equipment and storage medium for processing large-scale discrete data to solve the above-mentioned technical problems.

[0005] In a first aspect, the present invention provides a method for processing large-scale discrete data, comprising the following steps:

[0006] S1. Obtain a large amount of data collected by the data monitoring module, segment each data, extract part of each data segment, and generate preprocessed data;

[0007] S2. According to the data collection cycle and the real data time point, the pre-processed data is stripped of redundant data, discretized data is generated, and the discretized data is added to the database;

[0008] S3. When the data collection frequency is less than the frequency threshold, the data processing module selects the interpolation algorithm according to the application scenario to best approximate the discretized data in the database, obtains the data change trend function, supplements the data at the required time point according to the data change trend function, and displays it in real time.

[0009] Furthermore, the specific steps of step S1 are as follows:

[0010] S11. Obtaining large-scale data collected by the data monitoring module; the amount of large-scale data is greater than a set threshold;

[0011] S12. Obtain the first data and the last data collected in a unit time, compare the first data and the last data, set the same part as a constant segment, and set the different part as a variable segment;

[0012] S13. Divide each data into constant segments and variable segments, and extract the variable segments of each data to generate preprocessed data. For continuously changing data, usually only a small part changes, while most of it does not change. Therefore, the time period of this small part change is set as the unit time. By comparing the first data and the last data collected in the unit time, the constant constant segment and the variable variable segment can be obtained. Only the variable segment is collected, so that not all data are stored in the warehouse, and only the segment that can show obvious changes in each data is stored in the warehouse, which saves storage performance and avoids algorithm errors.

[0013] Furthermore, the specific steps of step S2 are as follows:

[0014] S21. Determine whether the preprocessed data is real discrete data;

[0015] If yes, go to step S25;

[0016] If not, proceed to step S22;

[0017] S22. Obtain the data collection cycle and data collection time point of the data monitoring module;

[0018] S23. Stripping the continuous pre-processed data according to the acquisition cycle and the data acquisition time point to obtain the stripped discretized data;

[0019] S24. Determine whether the discretized data after stripping is available;

[0020] If yes, go to step S25;

[0021] If not, return to step S23;

[0022] S25. Aggregate the real discrete data and the discretized data after stripping, sort them by time point, and add them to the database. After capturing a large amount of data and preprocessing, they are not directly stored in the database, but it is determined whether these data are real discrete data or fitted continuous data with errors. If they are fitted continuous data with errors, the large-scale preprocessed data is filtered by the acquisition frequency to eliminate errors, retain the real discrete data and its data acquisition time point, and add them to the database after sorting.

[0023] Furthermore, the specific steps of step S3 are as follows:

[0024] S31. The data processing module determines whether the data collection frequency is less than the set threshold;

[0025] If yes, go to step S32;

[0026] If not, proceed to step S37;

[0027] S32. The data processing module obtains the application scenario;

[0028] When the application scenario is that the acquisition frequency is moderate and the computing power is low, proceed to step S33;

[0029] When the application scenario is that the acquisition frequency is moderate and the computing power is large, proceed to step S34;

[0030] When the application scenario is low acquisition frequency and low computing power, proceed to step S35;

[0031] S33. Select a linear interpolation algorithm to best approximate the discretized data in the database, obtain a data change trend function, and proceed to step S36;

[0032] S34. Select a quadratic interpolation algorithm to best approximate the discretized data in the database, obtain a data change trend function, and proceed to step S36;

[0033] S35. Select Newton interpolation algorithm to best approximate the discretized data in the database, obtain the data change trend function, and proceed to step S36;

[0034] S36. Supplement the data at the required time point according to the data change trend function;

[0035] S37. Receive data query requests and display real-time data. When the data collection frequency is too low to meet the data demand, it is necessary to use the interpolation algorithm to achieve the best approximation to obtain the data change trend function, so that the data can be supplemented within the change trend without the need to collect data through the data monitoring module.

[0036] Furthermore, before step S32, the following steps are also included:

[0037] S32A. The data processing module is trained through the neural network algorithm and the artificial intelligence algorithm, and data sampling and data interpolation are continuously performed until the data error is less than the set threshold, so that the output data is infinitely close to the true value. The data processing module is trained through the two machine learning algorithms, the neural network algorithm and the artificial intelligence algorithm, and the specific distinction of the application scenarios, as well as the data adoption and data interpolation of each interpolation algorithm are continuously iterated and trained, and the results are compared with the preset conditions until it is infinitely close to the true value.

[0038] Furthermore, the data processing module is also provided with a manual setting interface;

[0039] Before step S32, the following steps are also included:

[0040] S32B determines whether the manual setting interface of the data processing module receives the manual selection algorithm;

[0041] If yes, use the manually selected algorithm to best approximate the discretized data in the database to obtain the data change trend function, and then go to step S36;

[0042] If not, proceed to step S32. The data processing module can select the interpolation algorithm autonomously, or receive the interpolation algorithm selected manually, so as to obtain the required data change trend function.

[0043] Further, in step S32, when the acquisition frequency is greater than the lower frequency limit and less than the upper frequency limit, it is determined that the frequency is moderate;

[0044] When the computing power is lower than the first computing power threshold, it is judged as low computing power;

[0045] When the computing power is higher than the second computing power threshold, it is determined to be high computing power. The limits of computing power and sampling frequency are different in different application scenarios, but the purpose is to make the output result curve smooth and the error small.

[0046] In a second aspect, the present invention provides a device for processing large-scale discrete data, comprising:

[0047] A data preprocessing unit is used to obtain a large number of data collected by the data monitoring module, perform segment processing on each data, extract a partial segment of each data, and generate preprocessed data;

[0048] A data discretization unit is used to strip redundant data from pre-processed data according to the data collection cycle and the real data time point, generate discretized data, and add the discretized data to the database;

[0049] The data calculation unit is used to select the interpolation algorithm according to the application scenario to best approximate the discretized data in the database when the data collection frequency is less than the frequency threshold, and obtain the data change trend function. The data at the required time point is supplemented according to the data change trend function and displayed in real time.

[0050] Furthermore, the data preprocessing unit includes:

[0051] A data acquisition subunit, used to acquire large-scale data collected by a data monitoring module; the amount of the large-scale data is greater than a set threshold;

[0052] The data segmentation subunit is used to obtain the first data and the last data collected in a unit time, compare the first data and the last data, set the same part as a constant segmentation, and set the different part as a variable segmentation;

[0053] The data part extraction subunit is used to divide each data into constant segments and variable segments, and extract the variable segments of each data to generate preprocessed data.

[0054] Furthermore, the data discretization unit includes:

[0055] A data discrete judgment subunit is used to judge whether the preprocessed data is real discrete data;

[0056] The acquisition cycle acquisition subunit is used to acquire the acquisition cycle and data acquisition time point of the data monitoring module when the pre-processed data is not real discrete data;

[0057] A data stripping subunit is used to strip the continuous pre-processed data according to the collection cycle and the data collection time point to obtain the stripped discretized data;

[0058] A data availability judgment subunit is used to judge whether the discretized data after stripping is available;

[0059] The data aggregation and storage subunit is used to aggregate the real discrete data and the discretized data after stripping, sort them by time point, and then add them to the database.

[0060] Furthermore, the data calculation unit includes:

[0061] The acquisition frequency judgment subunit is used by the data processing module to judge whether the data acquisition frequency is less than a set threshold;

[0062] The application scenario acquisition subunit is used for the data processing module to acquire the application scenario when the data collection frequency is less than a set threshold;

[0063] The linear interpolation selection subunit is used to select the linear interpolation algorithm to best approximate the discretized data in the database and obtain the data change trend function when the application scenario is moderate acquisition frequency and low computing power;

[0064] The quadratic interpolation algorithm selection subunit is used to select the quadratic interpolation algorithm to best approximate the discretized data in the database and obtain the data change trend function when the application scenario is moderate acquisition frequency and large computing power;

[0065] The Newton interpolation algorithm selection subunit is used to select the Newton interpolation algorithm to best approximate the discretized data in the database and obtain the data change trend function when the application scenario is low acquisition frequency and low computing power;

[0066] The discrete data supplement subunit is used to supplement the data at the required time point according to the data change trend function;

[0067] The data query and display subunit is used to receive data query requests and display real-time data when the data collection frequency is not less than the set threshold, or when the data collection frequency is less than the set threshold and data is supplemented.

[0068] In a third aspect, a device is provided, including a processor and a memory.

[0069] The memory is used to store a computer program, and the processor is used to call and run the computer program from the memory, so that the terminal executes the method described in the first aspect above.

[0070] In a fourth aspect, a computer storage medium is provided, wherein the computer-readable storage medium stores instructions, and when the instructions are executed on a computer, the computer executes the method described in the first aspect.

[0071] According to a fifth aspect, a computer program product comprising instructions is provided, which, when executed on a computer, enables the computer to execute the methods described in the above aspects.

[0072] The beneficial effects of the present invention are:

[0073] The method, device, equipment and storage medium for processing large-scale discrete data provided by the present invention realize efficient processing of real-time collection, processing and display of large-scale data, save computing resources, and achieve the expected processing effect; at the same time, it supports manual settings and fully automated data processing algorithms, greatly improving the efficiency of automated operation and maintenance.

[0074] In addition, the invention has a reliable design principle, a simple structure and a very broad application prospect.

[0075] It can be seen that compared with the prior art, the present invention has outstanding substantive features and significant progress, and the beneficial effects of its implementation are also obvious. BRIEF DESCRIPTION OF THE DRAWINGS

[0076] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0077] Figure 1 This is a schematic diagram of the method flow for processing large-scale discrete data of the present invention. Figure 1 .

[0078] Figure 2 This is a schematic diagram of the method flow for processing large-scale discrete data of the present invention. Figure 2 .

[0079] Figure 3 It is a schematic diagram of a device for processing large-scale discrete data according to the present invention.

[0080] In the figure, 1-data preprocessing unit; 1.1-data acquisition subunit; 1.2-data segmentation subunit; 1.3-data partial extraction subunit; 2-data discretization unit; 2.1-data discrete judgment subunit; 2.2-acquisition period acquisition subunit; 2.3-data stripping subunit; 2.4-data availability judgment subunit; 2.5-data aggregation and storage subunit; 3-data calculation unit; 3.1-acquisition frequency judgment subunit; 3.2-application scenario acquisition subunit; 3.3-linear interpolation selection subunit; 3.4-quadratic interpolation algorithm selection subunit; 3.5-Newton interpolation algorithm selection subunit; 3.6-discrete data supplement subunit; 3.7-data query and display subunit. DETAILED DESCRIPTION

[0081] In order to enable those skilled in the art to better understand the technical solutions in the present invention, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.

[0082] Embodiment 1:

[0083] like Figure 1 As shown, the present invention provides a method for processing large-scale discrete data, comprising the following steps:

[0084] S1. Obtain a large amount of data collected by the data monitoring module, segment each data, extract part of each data segment, and generate preprocessed data;

[0085] S2. According to the data collection cycle and the real data time point, the pre-processed data is stripped of redundant data, discretized data is generated, and the discretized data is added to the database;

[0086] S3. When the data collection frequency is less than the frequency threshold, the data processing module selects the interpolation algorithm according to the application scenario to best approximate the discretized data in the database, obtains the data change trend function, supplements the data at the required time point according to the data change trend function, and displays it in real time.

[0087] Embodiment 2:

[0088] like Figure 2 As shown, the present invention provides a method for processing large-scale discrete data, comprising the following steps:

[0089] S1. Obtain a large amount of data collected by the data monitoring module, segment each data, extract part of each data segment, and generate preprocessed data; the specific steps are as follows:

[0090] S11. Obtaining large-scale data collected by the data monitoring module; the amount of large-scale data is greater than a set threshold;

[0091] S12. Obtain the first data and the last data collected in a unit time, compare the first data and the last data, set the same part as a constant segment, and set the different part as a variable segment;

[0092] S13. Divide each data into constant segments and variable segments, and extract the variable segments of each data to generate preprocessed data;

[0093] S2. Remove redundant data from preprocessed data according to the data collection cycle and real data time point, generate discretized data, and add the discretized data to the database; the specific steps are as follows:

[0094] S21. Determine whether the preprocessed data is real discrete data;

[0095] If yes, go to step S25;

[0096] If not, proceed to step S22;

[0097] S22. Obtain the data collection cycle and data collection time point of the data monitoring module;

[0098] S23. Stripping the continuous pre-processed data according to the acquisition cycle and the data acquisition time point to obtain the stripped discretized data;

[0099] S24. Determine whether the discretized data after stripping is available;

[0100] If yes, go to step S25;

[0101] If not, return to step S23;

[0102] S25. aggregate the real discrete data and the discretized data after stripping, sort them by time point, and add them to the database;

[0103] S3. When the data collection frequency is less than the frequency threshold, the data processing module selects an interpolation algorithm according to the application scenario to best approximate the discretized data in the database, obtains a data change trend function, supplements the data at the required time point according to the data change trend function, and displays it in real time; the specific steps are as follows:

[0104] S31. The data processing module determines whether the data collection frequency is less than the set threshold;

[0105] If yes, go to step S32;

[0106] If not, proceed to step S37;

[0107] S32. The data processing module obtains the application scenario;

[0108] When the application scenario is that the acquisition frequency is moderate and the computing power is low, proceed to step S33;

[0109] When the application scenario is that the acquisition frequency is moderate and the computing power is large, proceed to step S34;

[0110] When the application scenario is low acquisition frequency and low computing power, proceed to step S35;

[0111] S33. Select a linear interpolation algorithm to best approximate the discretized data in the database, obtain a data change trend function, and proceed to step S36;

[0112] S34. Select a quadratic interpolation algorithm to best approximate the discretized data in the database, obtain a data change trend function, and proceed to step S36;

[0113] S35. Select Newton interpolation algorithm to best approximate the discretized data in the database, obtain the data change trend function, and proceed to step S36;

[0114] S36. Supplement the data at the required time point according to the data change trend function;

[0115] S37. Receive data query requests and display real-time data.

[0116] Embodiment 3:

[0117] like Figure 2 As shown, the present invention provides a method for processing large-scale discrete data, comprising the following steps:

[0118] S1. Obtain a large amount of data collected by the data monitoring module, segment each data, extract part of each data segment, and generate preprocessed data; the specific steps are as follows:

[0119] S11. Obtaining large-scale data collected by the data monitoring module; the amount of large-scale data is greater than a set threshold;

[0120] S12. Obtain the first data and the last data collected in a unit time, compare the first data and the last data, set the same part as a constant segment, and set the different part as a variable segment;

[0121] S13. Divide each data into constant segments and variable segments, and extract the variable segments of each data to generate preprocessed data;

[0122] S2. Remove redundant data from preprocessed data according to the data collection cycle and real data time point, generate discretized data, and add the discretized data to the database; the specific steps are as follows:

[0123] S21. Determine whether the preprocessed data is real discrete data;

[0124] If yes, go to step S25;

[0125] If not, proceed to step S22;

[0126] S22. Obtain the data collection cycle and data collection time point of the data monitoring module;

[0127] S23. Stripping the continuous pre-processed data according to the acquisition cycle and the data acquisition time point to obtain the stripped discretized data;

[0128] S24. Determine whether the discretized data after stripping is available;

[0129] If yes, go to step S25;

[0130] If not, return to step S23;

[0131] S25. aggregate the real discrete data and the discretized data after stripping, sort them by time point, and add them to the database;

[0132] S3. When the data collection frequency is less than the frequency threshold, the data processing module selects an interpolation algorithm according to the application scenario to best approximate the discretized data in the database, obtains a data change trend function, supplements the data at the required time point according to the data change trend function, and displays it in real time; the specific steps are as follows:

[0133] S31. The data processing module determines whether the data collection frequency is less than the set threshold;

[0134] If yes, go to step S32;

[0135] If not, proceed to step S37;

[0136] S32B determines whether the manual setting interface of the data processing module receives the manual selection algorithm;

[0137] If yes, use the manually selected algorithm to best approximate the discretized data in the database to obtain the data change trend function, and then go to step S36;

[0138] If not, proceed to step S32;

[0139] S32. The data processing module obtains the application scenario;

[0140] When the application scenario is that the acquisition frequency is moderate and the computing power is low, proceed to step S33;

[0141] When the application scenario is that the acquisition frequency is moderate and the computing power is large, proceed to step S34;

[0142] When the application scenario is low acquisition frequency and low computing power, proceed to step S35;

[0143] S33. Select a linear interpolation algorithm to best approximate the discretized data in the database, obtain a data change trend function, and proceed to step S36;

[0144] S34. Select a quadratic interpolation algorithm to best approximate the discretized data in the database, obtain a data change trend function, and proceed to step S36;

[0145] S35. Select Newton interpolation algorithm to best approximate the discretized data in the database, obtain the data change trend function, and proceed to step S36;

[0146] S36. Supplement the data at the required time point according to the data change trend function;

[0147] S37. Receive data query requests and display real-time data.

[0148] In some embodiments, the following steps are also included before step S32:

[0149] S32A. The data processing module is trained through the neural network algorithm and the artificial intelligence algorithm, and data sampling and data interpolation are continuously performed until the data error is less than the set threshold, so that the output data is infinitely close to the true value. The data processing module is trained through the two machine learning algorithms, the neural network algorithm and the artificial intelligence algorithm, and the specific distinction of the application scenarios, as well as the data adoption and data interpolation of each interpolation algorithm are continuously iterated and trained, and the results are compared with the preset conditions until it is infinitely close to the true value.

[0150] In some embodiments, in step S32, when the acquisition frequency is greater than the lower frequency limit and less than the upper frequency limit, it is determined that the frequency is moderate;

[0151] When the computing power is lower than the first computing power threshold, it is judged as low computing power;

[0152] When the computing power is higher than the second computing power threshold, it is determined to be high computing power. The limits of computing power and sampling frequency are different in different application scenarios, but the purpose is to make the output result curve smooth and the error small.

[0153] For continuously changing data, usually only a small part changes, while most of it does not change. For example, if the flow of a port of a switch is "1468431567613", then as time goes by, the next time this data is collected, the data will obviously increase on this basis. In other words, if the data is not processed, the data we need to interact with every second is this ever-increasing value. "1468431567XXX", "1468431567XXX", "1468431567XXX" will continue to appear. This value is not only large but also occupies performance and resources. And this is just the value generated by a field of a port of a switch. The switch has many ports, and each port has a large number of fields. A data volume multiplied by dozens of fields will expand dozens of times. On this basis, it will expand dozens of times again by multiplying dozens of ports. On this basis, it will expand again by multiplying the number of times collected per unit time. The data volume will expand again, and this is only the real-time data volume of a switch. Obviously, this causes a waste of resources and performance, and data processing requires a lot of computing power. Therefore, the time period of this small part of the change is set as the unit time. By comparing the first data and the last data collected in the unit time, the unchanged constant segment 1468431567 and the changed variable segment XXX can be obtained. Only the variable segment is collected, so that not all data are stored in the database, but only the segment that can show obvious changes in each data is stored in the database, which saves storage performance and avoids algorithm errors.

[0154] After capturing and preprocessing a large amount of data, it is not directly stored in the database. Instead, it is determined whether the data is real discrete data or fitted continuous data with errors. If it is fitted continuous data with errors, the large-scale preprocessed data is filtered by the acquisition frequency to eliminate the errors, retain the real discrete data and its data acquisition time point, and add it to the database after sorting;

[0155] When the data collection frequency is too low to meet the data demand, it is necessary to use the interpolation algorithm to achieve the best approximation to obtain the data change trend function, so that the data can be supplemented within the change trend without the need to collect data through the data monitoring module;

[0156] The data processing module can select the interpolation algorithm independently, or accept the interpolation algorithm selected manually, so as to obtain the required data change trend function;

[0157] The linear interpolation algorithm is based on a series of discrete data points connected together. The height of the data point in each line segment is used as the interpolation height value, with (X i , Y i ) represents the previous point of a line segment, with (X i+1 , Y i+1) represents the next point of the line segment. These two points are the two real data points collected. i , X i+1 ) is the time interval of acquisition, and its change Y is:

[0158]

[0159] The Y obtained here is the change. The linear interpolation algorithm is easy to calculate and saves computing power, but its disadvantage is also very obvious, that is, the smoothness is very poor, but the change trend of its data will be more real. Therefore, linear interpolation is suitable for application scenarios that just meet or are close to meeting real-time requirements. In this application scenario, the linear interpolation algorithm can be used to meet the data smoothness, with small errors and saving computing power.

[0160] The quadratic interpolation algorithm is based on the linear interpolation algorithm, adding one more data point. At this time, the variable Y is:

[0161]

[0162] Compared with the linear interpolation algorithm, the quadratic interpolation algorithm already has sufficient data to present, and the amount of extra data compared to the linear interpolation algorithm is not large. However, when there is a lot of data, sharp data points will still appear. Quadratic interpolation is suitable for scenarios where linear interpolation can be applied, and it will obtain curves with more data points than linear interpolation, and the amount of calculation is slightly larger. By analogy, there are also multiple interpolations, which can be selected according to the application scenario.

[0163] The formula for Newton interpolation algorithm is as follows:

[0164] P(x)=f(x0)+f[x0,x1](x-x0)+f[x0,...,x n ](x-x0)...(xx n )

[0165]

[0166] The polynomial interpolation algorithm and the Newton interpolation algorithm both have very high curve smoothness and similarity, but the Newton interpolation algorithm can save more computing power than the polynomial difference algorithm. At the same time, the Newton interpolation algorithm and the polynomial interpolation algorithm have the same problem, that is, when the number is high, the data will also produce strong oscillations, resulting in data distortion and increased errors. Compared with the linear interpolation algorithm and the quadratic interpolation algorithm, the Newton interpolation method is more suitable for application scenarios with low acquisition frequency and real-time performance that is far from meeting the conditions, and too many real data points cannot be brought into the calculation.

[0167] Embodiment 4:

[0168] like Figure 3 As shown, the present invention provides a device for processing large-scale discrete data, comprising:

[0169] The data preprocessing unit 1 is used to obtain the large-scale data collected by the data monitoring module, perform segmentation processing on each data, extract part of the segments of each data, and generate preprocessed data; the data preprocessing unit 1 includes:

[0170] The data acquisition subunit 1.1 is used to acquire large-scale data collected by the data monitoring module; the amount of the large-scale data is greater than a set threshold;

[0171] The data segmentation subunit 1.2 is used to obtain the first data and the last data collected in a unit time, compare the first data and the last data, set the same part as a constant segmentation, and set the different part as a variable segmentation;

[0172] The data part extraction subunit 1.3 is used to divide each data into constant segments and variable segments, and extract the variable segments of each data to generate preprocessed data;

[0173] The data discretization unit 2 is used to strip redundant data from the pre-processed data according to the data collection cycle and the real data time point, generate discretized data, and add the discretized data to the database; the data discretization unit 2 includes:

[0174] Data discreteness judgment subunit 2.1, used to judge whether the preprocessed data is real discrete data;

[0175] The collection cycle acquisition subunit 2.2 is used to obtain the collection cycle and data collection time point of the data monitoring module when the pre-processed data is not real discrete data;

[0176] The data stripping subunit 2.3 is used to strip the continuous pre-processed data according to the collection period and the data collection time point to obtain the stripped discretized data;

[0177] The data availability judgment subunit 2.4 is used to judge whether the discretized data after stripping is available;

[0178] The data aggregation and storage subunit 2.5 is used to aggregate the real discrete data and the discretized data after stripping, and add them to the database after sorting them by time points;

[0179] The data calculation unit 3 is used for when the data collection frequency is less than the frequency threshold, the data processing module selects the interpolation algorithm according to the application scenario to best approximate the discretized data in the database, obtains the data change trend function, supplements the required time point data according to the data change trend function, and displays it in real time; the data calculation unit 3 includes:

[0180] The acquisition frequency judgment subunit 3.1 is used by the data processing module to judge whether the data acquisition frequency is less than a set threshold;

[0181] The application scenario acquisition subunit 3.2 is used for the data processing module to acquire the application scenario when the data collection frequency is less than a set threshold;

[0182] The linear interpolation selection subunit 3.3 is used to select a linear interpolation algorithm to best approximate the discretized data in the database and obtain a data change trend function when the application scenario is a moderate acquisition frequency and low computing power;

[0183] The quadratic interpolation algorithm selection subunit 3.4 is used to select the quadratic interpolation algorithm to best approximate the discretized data in the database and obtain the data change trend function when the application scenario is moderate acquisition frequency and large computing power;

[0184] The Newton interpolation algorithm selection subunit 3.5 is used to select the Newton interpolation algorithm to best approximate the discretized data in the database and obtain the data change trend function when the application scenario is low acquisition frequency and low computing power;

[0185] The discrete data supplement subunit 3.6 is used to supplement the data at the required time point according to the data change trend function;

[0186] The data query and display subunit 3.7 is used to receive data query requests and display real-time data when the data collection frequency is not less than the set threshold, or when the data collection frequency is less than the set threshold and data is supplemented.

[0187] Embodiment 5:

[0188] The present invention provides a device, including a processor and a memory.

[0189] The memory is used to store a computer program, and the processor is used to call and run the computer program from the memory, so that the terminal executes the method described in the above-mentioned embodiment 1, embodiment 2 or embodiment 3.

[0190] Embodiment 6:

[0191] The present invention provides a storage medium, wherein the computer-readable storage medium stores instructions, and when the computer-readable storage medium is run on a computer, the computer executes the method described in Example 1, Example 2, or Example 3.

[0192] Although the present invention has been described in detail by referring to the accompanying drawings and in combination with the preferred embodiments, the present invention is not limited thereto. Without departing from the spirit and essence of the present invention, a person of ordinary skill in the art may make various equivalent modifications or substitutions to the embodiments of the present invention, and these modifications or substitutions shall be within the scope of the present invention. Any person of ordinary skill in the art may easily think of changes or substitutions within the technical scope disclosed by the present invention, and these shall be within the scope of protection of the present invention. Therefore, the scope of protection of the present invention shall be subject to the scope of protection of the claims.

Claims

1. A method for processing large-scale discrete data, characterized in that: The steps include: S1. Obtain a large amount of data collected by the data monitoring module, segment each data, extract part of each data segment, and generate preprocessed data; S2. According to the data collection cycle and the real data time point, the pre-processed data is stripped of redundant data, discretized data is generated, and the discretized data is added to the database; S3. When the data collection frequency is less than the frequency threshold, the data processing module selects an interpolation algorithm according to the application scenario to best approximate the discretized data in the database, obtains a data change trend function, supplements the required time point data according to the data change trend function, and displays it in real time; the specific steps of step S3 are as follows: S31. The data processing module determines whether the data collection frequency is less than the set threshold; If yes, go to step S32; If not, proceed to step S37; S32. The data processing module obtains the application scenario; When the application scenario is that the acquisition frequency is moderate and the computing power is low, proceed to step S33; When the application scenario is that the acquisition frequency is moderate and the computing power is large, proceed to step S34; When the application scenario is low acquisition frequency and low computing power, proceed to step S35; S33. Select a linear interpolation algorithm to best approximate the discretized data in the database, obtain a data change trend function, and proceed to step S36; S34. Select a quadratic interpolation algorithm to best approximate the discretized data in the database, obtain a data change trend function, and proceed to step S36; S35. Select Newton interpolation algorithm to best approximate the discretized data in the database, obtain the data change trend function, and proceed to step S36; S36. Supplement the data at the required time point according to the data change trend function; S37. Receive data query requests and display real-time data.

2. The method for processing large-scale discrete data according to claim 1, characterized in that: The specific steps of step S1 are as follows: S11. Obtaining large-scale data collected by the data monitoring module; the amount of large-scale data is greater than a set threshold; S12. Obtain the first data and the last data collected in a unit time, compare the first data and the last data, set the same part as a constant segment, and set the different part as a variable segment; S13. Divide each data into constant segments and variable segments, extract the variable segments of each data, and generate preprocessed data.

3. The method for processing large-scale discrete data according to claim 1, characterized in that: The specific steps of step S2 are as follows: S21. Determine whether the preprocessed data is real discrete data; If yes, go to step S25; If not, proceed to step S22; S22. Obtain the data collection cycle and data collection time point of the data monitoring module; S23. Stripping the continuous pre-processed data according to the acquisition cycle and the data acquisition time point to obtain the stripped discretized data; S24. Determine whether the discretized data after stripping is available; If yes, go to step S25; If not, return to step S23; S25. Aggregate the real discrete data and the discretized data after stripping, sort them by time points, and add them to the database.

4. The method for processing large-scale discrete data as claimed in claim 1, characterized in that , before step S32, the following steps are also included: S32A. The data processing module is trained through neural network algorithms and artificial intelligence algorithms, and data sampling and data interpolation are continuously performed until the data error is less than the set threshold, so that the output data is infinitely close to the true value.

5. The method for processing large-scale discrete data according to claim 1, characterized in that: The data processing module also has a manual setting interface; Before step S32, the following steps are also included: S32B determines whether the manual setting interface of the data processing module receives the manual selection algorithm; If yes, use the manually selected algorithm to best approximate the discretized data in the database to obtain the data change trend function, and then go to step S36; If not, go to step S32.

6. The method for processing large-scale discrete data according to claim 1, characterized in that: In step S32, when the acquisition frequency is greater than the lower frequency limit and less than the upper frequency limit, it is determined that the frequency is moderate; When the computing power is lower than the first computing power threshold, it is judged as low computing power; When the computing power is higher than the second computing power threshold, it is determined that the computing power is large.

7. A device for processing large-scale discrete data, characterized in that: include: The data preprocessing unit (1) is used to obtain a large number of data collected by the data monitoring module, perform segment processing on each data, extract a part of each data segment, and generate preprocessed data; A data discretization unit (2) is used to remove redundant data from the pre-processed data according to the data collection cycle and the real data time point, generate discretized data, and add the discretized data to the database; A data calculation unit (3) is used for, when the data collection frequency is less than the frequency threshold, the data processing module selects an interpolation algorithm according to the application scenario to best approximate the discretized data in the database, obtains a data change trend function, supplements the data at the required time point according to the data change trend function, and displays it in real time; The data calculation unit includes: The acquisition frequency judgment subunit is used by the data processing module to judge whether the data acquisition frequency is less than a set threshold; The application scenario acquisition subunit is used for the data processing module to acquire the application scenario when the data collection frequency is less than a set threshold; The linear interpolation selection subunit is used to select the linear interpolation algorithm to best approximate the discretized data in the database and obtain the data change trend function when the application scenario is moderate acquisition frequency and low computing power; The quadratic interpolation algorithm selection subunit is used to select the quadratic interpolation algorithm to best approximate the discretized data in the database and obtain the data change trend function when the application scenario is moderate acquisition frequency and large computing power; The Newton interpolation algorithm selection subunit is used to select the Newton interpolation algorithm to best approximate the discretized data in the database and obtain the data change trend function when the application scenario is low acquisition frequency and low computing power; The discrete data supplement subunit is used to supplement the data at the required time point according to the data change trend function; The data query and display subunit is used to receive data query requests and display real-time data when the data collection frequency is not less than the set threshold, or when the data collection frequency is less than the set threshold and data is supplemented.

8. A device, characterized in that: Including processor, memory, The memory is used to store a computer program, and the processor is used to call and run the computer program from the memory, so that the terminal executes the method described in any one of claims 1 to 6.

9. A storage medium, characterized in that: The storage medium stores instructions, which, when executed on a computer, enable the computer to execute the method according to any one of claims 1 to 6.