CN102510287A - Method for rapidly compressing industrial real-time data - Google Patents
Method for rapidly compressing industrial real-time data Download PDFInfo
- Publication number
- CN102510287A CN102510287A CN2011103438781A CN201110343878A CN102510287A CN 102510287 A CN102510287 A CN 102510287A CN 2011103438781 A CN2011103438781 A CN 2011103438781A CN 201110343878 A CN201110343878 A CN 201110343878A CN 102510287 A CN102510287 A CN 102510287A
- Authority
- CN
- China
- Prior art keywords
- point
- data
- compression
- window
- slope
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
- 238000000034 method Methods 0.000 title claims abstract description 38
- 238000007906 compression Methods 0.000 claims abstract description 72
- 230000006835 compression Effects 0.000 claims abstract description 71
- 238000013144 data compression Methods 0.000 abstract description 14
- 238000004364 calculation method Methods 0.000 abstract description 5
- 238000003860 storage Methods 0.000 description 11
- 238000012545 processing Methods 0.000 description 10
- 238000005516 engineering process Methods 0.000 description 7
- 230000000694 effects Effects 0.000 description 6
- 238000010586 diagram Methods 0.000 description 5
- 238000013213 extrapolation Methods 0.000 description 5
- 238000012360 testing method Methods 0.000 description 4
- 238000012669 compression test Methods 0.000 description 2
- 230000006870 function Effects 0.000 description 2
- 238000009776 industrial production Methods 0.000 description 2
- 238000003672 processing method Methods 0.000 description 2
- 238000005070 sampling Methods 0.000 description 2
- 230000005540 biological transmission Effects 0.000 description 1
- 230000001186 cumulative effect Effects 0.000 description 1
- 238000013500 data storage Methods 0.000 description 1
- 230000007423 decrease Effects 0.000 description 1
- 238000001514 detection method Methods 0.000 description 1
- 238000003745 diagnosis Methods 0.000 description 1
- 238000012544 monitoring process Methods 0.000 description 1
- 238000004886 process control Methods 0.000 description 1
- 230000000717 retained effect Effects 0.000 description 1
- 239000007787 solid Substances 0.000 description 1
Images
Landscapes
- Compression, Expansion, Code Conversion, And Decoders (AREA)
Abstract
Description
技术领域 technical field
本发明属于数据压缩技术领域,更为具体地讲,涉及一种工业实时数据的快速压缩方法。The invention belongs to the technical field of data compression, and more specifically relates to a fast compression method for industrial real-time data.
背景技术 Background technique
1、数据压缩概述1. Overview of Data Compression
数据压缩技术在图像,音频处理等领域已有非常广泛的应用,技术日趋先进成熟并已形成了国际化标准,如图像处理领域的JEPG压缩技术,音频处理中的MP3压缩技术等。但是由于现代存储设备容量的不断增大,在工业自动化领域则应用的较少,在电力系统、故障检测与诊断系统、过程控制、过程监测、多通道数据采集系统等会产生海量实时和历史数据的自动化系统中,数据压缩还没有得到广泛的重视和应用。在多通道自动测试系统中数据一般由数据采集模块采集得到,采集的信号一般为传感器信号,目前的数据采集模块采样频率都较高,例如总采样速率为100KHz,则如果系统为16个通道,单个通道每秒可采集62次,现行更高的从几十MHz到几十GHz不等的采集模块比这个次数还要高的多,这样每秒就可产生大量高精度的浮点数据,面对海量的存储数据,人们解决的办法只是单纯的增加存储设备,而很少应用数据压缩技术对其中大量的冗余数据进行压缩,以达到减少数据量,节约存储设备的目的。Data compression technology has been widely used in image, audio processing and other fields. The technology is becoming more and more advanced and mature and has formed an international standard, such as JPEG compression technology in the field of image processing, MP3 compression technology in audio processing, etc. However, due to the continuous increase in the capacity of modern storage devices, it is less used in the field of industrial automation. Massive real-time and historical data will be generated in power systems, fault detection and diagnosis systems, process control, process monitoring, and multi-channel data acquisition systems. In the automatic system, the data compression has not been widely paid attention to and applied. In a multi-channel automatic test system, the data is generally collected by the data acquisition module. The collected signal is generally a sensor signal. The current data acquisition module has a high sampling frequency. For example, the total sampling rate is 100KHz. If the system has 16 channels, A single channel can collect 62 times per second, and the current higher acquisition modules ranging from dozens of MHz to tens of GHz are much higher than this number, so that a large amount of high-precision floating-point data can be generated per second. For massive storage data, people's solution is simply to increase storage devices, but rarely apply data compression technology to compress a large amount of redundant data, so as to reduce the amount of data and save storage devices.
2.现有工业实时数据压缩方法2. Existing industrial real-time data compression methods
数据压缩根据不同编码对原始文件数据产生的不同损失效果,可把数据压缩技术分为无损压缩和有损压缩。无损压缩一般以通用压缩理论为基础,采取哈佛曼算法等经典的压缩算法,具有无失真、无差错或无噪声编码的性质。有损压缩是在压缩过程中损失一定的信息以获得较高的压缩比。有损压缩虽然不能完全恢复原始数据,但损失的数据对理解原始数据的信息影响不大,并由此获得较大的压缩比,从而节约大量存储空间。Data compression can be divided into lossless compression and lossy compression according to the different loss effects of different encodings on the original file data. Lossless compression is generally based on general compression theory, adopts classic compression algorithms such as Huffman algorithm, and has the properties of distortion-free, error-free or noise-free coding. Lossy compression is to lose certain information in the compression process to obtain a higher compression ratio. Although lossy compression cannot completely restore the original data, the lost data has little effect on understanding the information of the original data, and thus obtains a large compression ratio, thereby saving a large amount of storage space.
目前比较有效并且应用较多的工业实时数据压缩方法主要有稳态阈值法,即死区算法,旋转门算法,线性外插算法,这三种方法均属于有损压缩。At present, the more effective and widely used industrial real-time data compression methods mainly include the steady-state threshold method, that is, the dead zone algorithm, the revolving door algorithm, and the linear extrapolation algorithm. These three methods are all lossy compression methods.
2.1稳态阈值法2.1 Steady-state threshold method
稳态阈值法的原理是以一般能容忍的失真范围为限定,通过判断当前数据值与下一个数据值是否大于压缩限值来决定是否舍弃或记录该数据,限值设置越大,数据压缩率越高,但失真度也越大。如图1所示,如果压缩限值设置为0.5,当前数据值是10.0,则下一个数据值如果在10.5以上或9.5以下都将被记录,并以记录的数据点为起点,设该点的值为y,0.5为判别门限,判断下一个数据值是否在y±0.5之间,如果在,则舍弃该数据点,如果不在,则记录该数据点,再以记录的数据点为起点,进行判断,对数据进行压缩。如图1中,打圈的数据点被记录下来。The principle of the steady-state threshold method is to limit the distortion range that can be generally tolerated, and decide whether to discard or record the data by judging whether the current data value and the next data value are greater than the compression limit value. The larger the limit value setting, the higher the data compression rate. The higher the value, the greater the distortion. As shown in Figure 1, if the compression limit is set to 0.5 and the current data value is 10.0, the next data value will be recorded if it is above 10.5 or below 9.5, and the recorded data point is used as the starting point. The value is y, and 0.5 is the discrimination threshold. It is judged whether the next data value is between y±0.5. If it is, the data point is discarded. If not, the data point is recorded, and then the recorded data point is used as the starting point for Judgment, compress the data. As shown in Figure 1, circled data points are recorded.
2.2旋转门算法2.2 Revolving door algorithm
旋转门算法是一种线性趋势化压缩算法,将线性趋势化的斜率变化情况作为重点考虑的因素,强调寻找改变斜率的线性“触发点”,主要有平行四边形和三角形两种处理方式。算法的主要思想是利用当前数据点与前一个存储点缩构成的压缩限值覆盖区来判断数据是否应当保留。如果两点构成的压缩覆盖区能覆盖两点之间所有数据点,则舍弃当前数据点,反之如果有数据点落在覆盖区以外,就保存当前点的前一个数据点,并以该点为新的起点与后读入的点构成新的覆盖区继续判断压缩的取舍点。具体压缩判断流程介绍如下:The revolving door algorithm is a linear trend compression algorithm. It takes the slope change of the linear trend as a key consideration and emphasizes finding the linear "trigger point" that changes the slope. There are mainly two processing methods: parallelogram and triangle. The main idea of the algorithm is to judge whether the data should be kept or not by using the compression limit coverage area formed by the compression of the current data point and the previous storage point. If the compressed coverage area formed by two points can cover all data points between the two points, discard the current data point; otherwise, if any data point falls outside the coverage area, save the previous data point of the current point and use this point as The new starting point and the later read-in points form a new coverage area to continue judging the cut-off points for compression. The specific compression judgment process is introduced as follows:
设旋转门的压缩限值设为0.1,数据存储时间间隔为1s。从读入的第一个数据点开始,以它到当前数据点之间的连线为中轴,过这两点做一个宽度为2倍压缩限值的平行四边形,判断平行四边形覆盖的区域是否能覆盖所有从上个存储点到当前点之间的所有数据点,随着数据点的读入,以同样的方法作新的平行四边形,如图2所示。Set the compression limit of the revolving door to 0.1, and the data storage time interval to 1s. Starting from the first data point read in, take the line between it and the current data point as the central axis, pass through these two points to make a parallelogram whose width is twice the compression limit, and judge whether the area covered by the parallelogram is It can cover all the data points between the last storage point and the current point. With the data points read in, a new parallelogram is made in the same way, as shown in Figure 2.
当产生的平行四边形不能容纳上个存储点到当前点之间的所有数据点时,即有数据点落在当前平行四边形覆盖面积之外时,则对当前点通过本段压缩,将一个数据点保存,其他点舍弃。如图2中,第10秒时有数据点落在了平行四边形覆盖范围之外,所以将起点和前一点,即第9秒的数据点保存,其余数据舍弃。以新保存的数据点为起点继续重复上述过程,判断后续数据点是否满足判别要求。When the generated parallelogram cannot accommodate all the data points between the last storage point and the current point, that is, when some data points fall outside the coverage area of the current parallelogram, the current point will be compressed by this section to compress a data point Save and discard other points. As shown in Figure 2, at the 10th second, some data points fall outside the coverage of the parallelogram, so the starting point and the previous point, that is, the data points at the 9th second are saved, and the rest of the data are discarded. Continue to repeat the above process starting from the newly saved data points, and judge whether the subsequent data points meet the discrimination requirements.
2.3线性外插算法2.3 Linear extrapolation algorithm
线性外插算法也是一种利用线性化思想进行压缩处理的方法,其主要处理方式是读入两个数据点,用这两点作出一条直线,直线方程为y=ax+b,设后续点的横坐标值为xi,把横坐标的值带入直线方程,算出该点的对应的函数值yi是实际读入点的数据值,δ是门限值,判断后续点是否满足y′-δ<y<y′+δ,若满足则舍弃该数据点,不满足则记录该数据点及该数据点的前一点的值。并以不满足门限值的数据点为下次判断直线的起点,与后续的一个数据点作出直线进行判断,算法的主要思路如图3所示。The linear extrapolation algorithm is also a method of compression processing using the idea of linearization. Its main processing method is to read in two data points, use these two points to make a straight line, and the equation of the line is y=ax+b. The value of the abscissa is x i , bring the value of the abscissa into the equation of the line, and calculate the corresponding function value of the point y i is the data value of the actual read-in point, δ is the threshold value, judge whether the subsequent point satisfies y′-δ<y<y′+δ, if it is satisfied, the data point is discarded, and if it is not satisfied, the data point is recorded and The value of the previous point for this data point. The data point that does not meet the threshold value is used as the starting point of the next judgment line, and a straight line is made with the subsequent data point for judgment. The main idea of the algorithm is shown in Figure 3.
重复上述判别步骤,经过判断,只有图3中打圈的点被保存下来,其余满足判别门限的点都被压了。Repeat the above discrimination steps, after judgment, only the circled points in Figure 3 are saved, and the rest of the points that meet the discrimination threshold are suppressed.
上述方法中,稳态阈值法更适用于相对稳态的变化数据,对实时变化较大的数据效果则不是很好;旋转门压缩算法,主要利用当前数据点与前一个存储点所构成的压缩限制覆盖区来判断数据是否该保留,此算法中,可能重复判断多个数据点,从而使压缩时间过长;线性外插算法对压缩限值较小的数据压缩效果较好,对压缩限值较大时效果则较差。Among the above methods, the steady-state threshold method is more suitable for relatively steady-state changing data, and the effect on data with large real-time changes is not very good; the revolving door compression algorithm mainly uses the compression data formed by the current data point and the previous storage point. Limit the coverage area to determine whether the data should be retained. In this algorithm, multiple data points may be repeatedly judged, which makes the compression time too long; the linear extrapolation algorithm has a better compression effect on data with a smaller compression limit, and the compression limit Larger values are less effective.
发明内容 Contents of the invention
本发明的目的在于克服旋转门压缩算法压缩时间过长的不足,提供一种计算量小、判断速度快的工业实时数据的快速压缩方法。The purpose of the present invention is to overcome the shortcoming of too long compression time of the revolving door compression algorithm, and provide a fast compression method of industrial real-time data with small calculation amount and fast judgment speed.
为实现上述发明目的,本发明工业实时数据的快速压缩方法,其特征在于,包括以下步骤:In order to realize the above-mentioned object of the invention, the fast compression method of industrial real-time data of the present invention is characterized in that, comprises the following steps:
(1)、将数据起点(xi,yi)保存,读入下一个数据点(xj,yj),此时,j=i+1;(1), save the data starting point ( xi , y i ), and read the next data point (x j , y j ), at this time, j=i+1;
(2)、将下一数据点(xj,yj)与前一保存点(xi,yi)生成上下两斜率值kup、klow: ( 2) Generate the upper and lower slope values k up and k low from the next data point (x j , y j ) and the previous saved point (xi , y i ):
kup=(yj+d-yi)/(xj-xi)k up =(y j +dy i )/(x j -x i )
klow=(yj-d-yi)/(xj-xi) ①k low =(y j -dy i )/(x j -x i ) ①
其中d为压缩限值,j=i+1;Where d is the compression limit, j=i+1;
等待后续点(xj+1,yj+1)到来,并作为当前点;Wait for the subsequent point (x j+1 , y j+1 ) to arrive and use it as the current point;
(3)、计算当前点(xj+1,yj+1)与前一个保存点(xi,yi)的斜率值k:(3) Calculate the slope value k between the current point (x j+1 , y j+1 ) and the previous saved point ( xi , y i ):
k=(yj+1-yi)/(xj+1-xi) ②;k=(y j+1 -y i )/(x j+1 -x i ) ②;
(4)、如果kup≤k≤klow成立,则进行步骤(5),如果不成立,则进行步骤(6)(4), if k up ≤ k ≤ k low is established, proceed to step (5), if not, proceed to step (6)
(5)、将上一数据点(xj,yj)舍弃,如果当前点(xj+1,yj+1)为采样数据的最后一个点,则保存该数据点,压缩结束;(5) Discard the previous data point (x j , y j ), if the current point (x j+1 , y j+1 ) is the last point of the sampled data, save the data point and the compression ends;
否则,用当前点(xj+1,yj+1)计算出新的上下两斜率值 Otherwise, use the current point (x j+1 , y j+1 ) to calculate the new upper and lower slope values
并比较,如果则否则kup保持不变;如果则否则klow保持不变;and compare if but Otherwise k up remains unchanged; if but Otherwise k low remains unchanged;
j=j+1,继续等待下一数据点(xj+1,yj+1)的到来,并作为当前点,返回步骤(3);j=j+1, continue to wait for the arrival of the next data point (x j+1 , y j+1 ), and return to step (3) as the current point;
(6)、将上一数据点(xj,yj)保存,并作为保存点(xi,yi);如果当前点(xj+1,yj+1)为采样数据的最后一个点,则保存该数据点,压缩结束;否则,返回步骤(2)。(6) Save the previous data point (x j , y j ) as the saved point ( xi , y i ); if the current point (x j+1 , y j+1 ) is the last sampled data point point, save the data point, and the compression ends; otherwise, return to step (2).
本发明的发明目的是这样实现的:The purpose of the invention of the present invention is achieved like this:
本发明工业实时数据的快速压缩方法简称为关键窗趋势法,在旋转门算法的思路,对生成的判定区域加入了斜率的概念,用于找到变化的信号中的斜率触发点。关键窗趋势法在旋转门算法的基础上进行的改进,目的是使算法更简捷,从而使代码实现时计算量小、判断速度快。首先根据压缩限值生成上下两个斜率kup、klow构成一个窗口,读入下一个数据点后,判断该点是否在这个窗口内,如果在,则前一点可以舍弃,然后生成新的上下斜率这两个斜率是与原先的两个斜率比较得出的,从而使关键窗口缩小。The rapid compression method of industrial real-time data in the present invention is referred to as the key window trend method for short. In the idea of the revolving door algorithm, the concept of slope is added to the generated judgment area to find the slope trigger point in the changing signal. The key window trend method is improved on the basis of the revolving door algorithm, the purpose is to make the algorithm simpler, so that the calculation amount is small and the judgment speed is fast when the code is implemented. Firstly, the upper and lower slopes k up and k low are generated according to the compression limit to form a window. After reading the next data point, judge whether the point is within this window. If it is, the previous point can be discarded, and then a new upper and lower points can be generated. slope These two slopes are compared with the original two slopes, so that the critical window is narrowed.
关键窗趋势法每个数据点只判断一次,即只判断每个数据点与上一个保存数据点形成的斜率与上下限斜率的大小。而旋转门算法,若有n点在窗内,则窗内的第一点需判断n次,即同一个点经过了n次比较,第二点也重复比较了n-1次,后续点比较次数依次递减,在窗内的n个点累计比较次数为(n+1)n/2,计算量相对较大,在判断速度上会明显低于关键窗趋势法。The key window trend method only judges each data point once, that is, only judges the slope formed by each data point and the last saved data point and the magnitude of the upper and lower limit slopes. For the revolving door algorithm, if there are n points in the window, the first point in the window needs to be judged n times, that is, the same point has been compared n times, and the second point is also compared n-1 times, and the subsequent points are compared The number of times decreases in turn, and the cumulative number of comparisons at n points in the window is (n+1)n/2, the calculation amount is relatively large, and the judgment speed will be significantly lower than the key window trend method.
附图说明 Description of drawings
图1是现有技术稳态阈值法一实例示意图;Fig. 1 is a schematic diagram of an example of the prior art steady-state threshold method;
图2是现有技术旋转门算法一实例示意图;Fig. 2 is a schematic diagram of an example of a revolving door algorithm in the prior art;
图3是现有技术线性外插算法一实例示意图;Fig. 3 is a schematic diagram of an example of a prior art linear extrapolation algorithm;
图4是本发明工业实时数据的快速压缩方法一具体实施方式示意图;Fig. 4 is a schematic diagram of a specific embodiment of the fast compression method of industrial real-time data of the present invention;
图5是需要压缩的工业实时数据;Figure 5 is the industrial real-time data that needs to be compressed;
图6是图5的工业实时数据四种压缩方法在不同压缩限值下的压缩比曲线图。FIG. 6 is a graph of the compression ratios of the four compression methods for industrial real-time data in FIG. 5 under different compression limits.
具体实施方式 Detailed ways
下面结合附图对本发明的具体实施方式进行描述,以便本领域的技术人员更好地理解本发明。需要特别提醒注意的是,在以下的描述中,当已知功能和设计的详细描述也许会淡化本发明的主要内容时,这些描述在这里将被忽略。Specific embodiments of the present invention will be described below in conjunction with the accompanying drawings, so that those skilled in the art can better understand the present invention. It should be noted that in the following description, when detailed descriptions of known functions and designs may dilute the main content of the present invention, these descriptions will be omitted here.
实施例Example
图4是本发明工业实时数据的快速压缩方法一具体实施方式示意图。Fig. 4 is a schematic diagram of a specific embodiment of the rapid compression method for industrial real-time data in the present invention.
在本实施例中,如图4所示,在图4(a)将数据起点(xi,yi)保存,保存点(xi,yi)与下一个读入数据点(xj,yj)生成关键窗的上下限斜率值kup、klow,其中,j=i+1。In this embodiment, as shown in FIG . 4 , the data starting point (xi , y i ) is saved in FIG . y j ) Generating the upper and lower limit slope values k up and k low of the key window, where j=i+1.
在图4(b)中下一个数据点(xj+1,yj+1)作为当前点,计算与保存点(xi,yi)生成的斜率值k,并比较该斜率值k与图4(a)中上下限斜率值kup、klow的大小,若满足kup≤k≤klow条件,则舍弃当前点(xj+1,yj+1)的前一点,即数据点(xj,yj)。由图4(b)可知,该斜率值k满足上述条件,故舍去当前点(xj+1,yj+1)的前一点,即数据点(xj,yj)。In Figure 4(b), the next data point (x j+1 , y j+1 ) is used as the current point, calculate and save the slope value k generated by the point ( xi , y i ), and compare the slope value k with If the upper and lower limit slope values k up and k low in Figure 4(a) meet the condition of k up ≤ k ≤ k low , then discard the previous point of the current point (x j+1 , y j+1 ), that is, the data point (x j , y j ). It can be seen from Figure 4(b) that the slope value k satisfies the above conditions, so the point before the current point (x j+1 , y j+1 ), that is, the data point (x j , y j ), is discarded.
关键窗的起点不变,即仍然为起点(xi,yi),重新生成关键窗的上下两斜率值并比较,如果
j=j+1,继续等待下一数据点(xj+1,yj+1)的到来,并作为当前点,返回步骤(3),重新计算斜率值k。由图4(d)可知,斜率值k仍然满足kup≤k≤klow,则舍弃当前点(xj+1,yj+1)的前一点,即数据点(xj,yj)。计算新的上下两斜率值由于 故保持不变,新的关键窗上下限值kup、klow,新取得的关键窗上下限值如图4(e)所示。j=j+1, continue to wait for the arrival of the next data point (x j+1 , y j+1 ), and use it as the current point, return to step (3), and recalculate the slope value k. It can be seen from Figure 4(d) that the slope value k still satisfies k up ≤ k ≤ k low , then discard the previous point of the current point (x j+1 , y j+1 ), that is, the data point (x j , y j ) . Compute new upper and lower slope values because so Keeping unchanged, the new upper and lower limits of the key window k up , k low , the newly acquired upper and lower limits of the key window are shown in Figure 4(e).
j=j+1,继续等待下一数据点(xj+1,yj+1)的到来,并作为当前点,返回步骤(3),重新计算斜率值k。由图4(f)中,斜率值k不满足kup≤k≤klow,保存该数据点(xj+1,yj+1)的前一数据点(xj,yj),返回步骤(2),以该点为新的保存点(xi,yi)与下一数据(xj,yj)点生成关键窗的上下斜率值kup、klow,如图(g)。j=j+1, continue to wait for the arrival of the next data point (x j+1 , y j+1 ), and use it as the current point, return to step (3), and recalculate the slope value k. From Figure 4(f), the slope value k does not satisfy k up ≤ k ≤ k low , save the previous data point (x j , y j ) of this data point (x j +1 , y j+1 ), and return Step (2), use this point as the new save point ( xi , y i ) and the next data point (x j , y j ) to generate the upper and lower slope values k up and k low of the key window, as shown in figure (g) .
同理,下一个数据点(xj+1,yj+1)作为当前点,如图4(h)所示,计算与保存点(xi,yi)生成的斜率值k,并比较该斜率值k与图4(a)中上下限斜率值kup、klow的大小,满足kup≤k≤klow条件,舍弃当前点(xj+1,yj+1)的前一点,即数据点(xj,yj);重新生成关键窗的上下两斜率值由于 故kup保持不变,关键窗上下斜率值kup、klow如4图(i)所示,在这段数据,最后归档的数据点为图4(j)中的实心点。Similarly, the next data point (x j+1 , y j+1 ) is used as the current point, as shown in Figure 4(h), calculate the slope value k generated with the saved point (xi , y i ), and compare The slope value k and the upper and lower limit slope values k up and k low in Figure 4(a) satisfy the condition of k up ≤ k ≤ k low , and discard the previous point of the current point (x j+1 , y j+1 ) , that is, the data point (x j , y j ); regenerate the upper and lower slope values of the key window because Therefore k up remains unchanged, The upper and lower slope values k up and k low of the key window are shown in Figure 4(i). In this data, the last archived data point is the solid point in Figure 4(j).
1、四种种压缩方法压缩率的比较1. Comparison of the compression ratio of the four compression methods
压缩测试即为对压缩效果的测试,本测试工业实时数据如图5所示,点数为6000点,得出各压缩方法在不同压缩限值时的压缩测试结果。num表示压缩后点数,ratio表示压缩比,结果如表1所示。The compression test is the test of the compression effect. The industrial real-time data of this test is shown in Figure 5, and the number of points is 6000 points. The compression test results of each compression method at different compression limits are obtained. num represents the number of points after compression, ratio represents the compression ratio, and the results are shown in Table 1.
表1Table 1
图6是图5的工业实时数据四种压缩方法在不同压缩限值下的压缩比曲线图。如表1、图6所示,本发明关键窗趋势法与现有技术的旋转门算法压缩在不同压缩限值下的压缩比完全相同,具有旋转门算法压缩比高的特点。FIG. 6 is a graph showing the compression ratios of the four compression methods for industrial real-time data in FIG. 5 under different compression limits. As shown in Table 1 and Figure 6, the compression ratios of the key window trend method of the present invention and the revolving door algorithm of the prior art under different compression limits are exactly the same, and have the characteristics of high compression ratio of the revolving door algorithm.
2、各压缩算法测试时间比较2. Comparison of test time of each compression algorithm
表2Table 2
表2是在噪声为0.0,压缩限值为0.5时进行测试得到的压缩时间。从表2可以看出,发明关键窗趋势法比现有技术的旋转门算法压缩需要的时间少得多。Table 2 is the compression time obtained when the noise is 0.0 and the compression limit is 0.5. It can be seen from Table 2 that the inventive key window trend method requires much less time to compress than the prior art revolving door algorithm.
本发明在于针对工业实时数据的特点,分析和研究其采集数据的特点与结构,探索和设计出适用于工业实时数据,切实可行,可靠高效的数据压缩方法,使大量的采集数据得到更好的压缩效果,提高压缩率,减少压缩时间,节约存储空间,降低工业生产成本,提高系统处理数据的速度。The present invention is aimed at the characteristics of industrial real-time data, analyzes and studies the characteristics and structure of its collected data, explores and designs a practical, reliable and efficient data compression method suitable for industrial real-time data, so that a large amount of collected data can be better Compression effect, improve compression rate, reduce compression time, save storage space, reduce industrial production costs, and improve the speed of system processing data.
在工业自动化领域应用数据压缩技术具有非常重要的意义。首先,现有的工业自动化系统很难处理工业生产过程中产生的海量实时和历史数据,这里说很难处理,包括处理速度和磁盘容量。磁盘容量只是问题的一个方面,另一方面,数据的高压缩率意味着整个系统的数据处理速度更快,这体现在:高压缩率的数据,占用磁盘空间小,将数据从磁盘读入内存的速度快,网络传输的速度快,数据在内存中占用的空间小。一个良好的工业自动化系统,必须要解决好数据的实时处理问题,利用数据压缩技术,不仅能节约存储设备,还能提高系统速度,使系统的整体性能达到某个可用性指标。本发明关键窗趋势法针对工业实时数据的特点,不仅具有很好的数据压缩率,并且判断速度快,具有良好的实时处理性,可以很好的解决工业数据的处理问题。It is of great significance to apply data compression technology in the field of industrial automation. First of all, the existing industrial automation system is difficult to deal with the massive real-time and historical data generated in the industrial production process. Here it is difficult to deal with, including processing speed and disk capacity. Disk capacity is only one aspect of the problem. On the other hand, the high compression rate of data means that the data processing speed of the whole system is faster, which is reflected in: data with high compression rate occupies less disk space, and reads data from disk into memory The speed is fast, the speed of network transmission is fast, and the space occupied by data in memory is small. A good industrial automation system must solve the problem of real-time data processing. Using data compression technology can not only save storage devices, but also improve system speed, so that the overall performance of the system can reach a certain availability index. The key window trend method of the present invention is aimed at the characteristics of industrial real-time data, not only has good data compression rate, but also has fast judgment speed and good real-time processing performance, and can well solve the problem of industrial data processing.
尽管上面对本发明说明性的具体实施方式进行了描述,以便于本技术领的技术人员理解本发明,但应该清楚,本发明不限于具体实施方式的范围,对本技术领域的普通技术人员来讲,只要各种变化在所附的权利要求限定和确定的本发明的精神和范围内,这些变化是显而易见的,一切利用本发明构思的发明创造均在保护之列。Although the illustrative specific embodiments of the present invention have been described above, so that those skilled in the art can understand the present invention, it should be clear that the present invention is not limited to the scope of the specific embodiments. For those of ordinary skill in the art, As long as various changes are within the spirit and scope of the present invention defined and determined by the appended claims, these changes are obvious, and all inventions and creations using the concept of the present invention are included in the protection list.
Claims (1)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201110343878.1A CN102510287B (en) | 2011-11-03 | 2011-11-03 | Method for rapidly compressing industrial real-time data |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201110343878.1A CN102510287B (en) | 2011-11-03 | 2011-11-03 | Method for rapidly compressing industrial real-time data |
Publications (2)
Publication Number | Publication Date |
---|---|
CN102510287A true CN102510287A (en) | 2012-06-20 |
CN102510287B CN102510287B (en) | 2014-06-11 |
Family
ID=46222345
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201110343878.1A Expired - Fee Related CN102510287B (en) | 2011-11-03 | 2011-11-03 | Method for rapidly compressing industrial real-time data |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN102510287B (en) |
Cited By (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103040462A (en) * | 2012-10-12 | 2013-04-17 | 东华大学 | Electrocardiosignal processing and data compression method |
CN103701468A (en) * | 2013-12-26 | 2014-04-02 | 国电南京自动化股份有限公司 | Data compression and decompression method on basis of orthogonal wavelet packet transform and rotating door algorithm |
CN104160629A (en) * | 2013-01-31 | 2014-11-19 | 株式会社东芝 | Data compression device, data compression method, and computer program product |
CN104682962A (en) * | 2015-02-09 | 2015-06-03 | 南京邦耀科技发展有限公司 | Compression method for massive fuel gas data |
CN105279917A (en) * | 2015-09-25 | 2016-01-27 | 卡斯柯信号有限公司 | Real-time early warning method based on swinging door algorithm |
CN110007854A (en) * | 2019-02-21 | 2019-07-12 | 湖南大唐先一科技有限公司 | One kind being based on time series data compression method and system |
CN111294054A (en) * | 2020-02-13 | 2020-06-16 | 北京天拓智领科技有限公司 | Compression method for collecting and storing industrial interconnection data |
CN113271106A (en) * | 2021-04-25 | 2021-08-17 | 江苏方天电力技术有限公司 | Sparse representation power plant data compression method |
CN114142864A (en) * | 2021-10-28 | 2022-03-04 | 上海麦杰科技股份有限公司 | Lossy concurrent compression method and device for industrial Internet of Things real-time database |
CN115793979A (en) * | 2022-12-08 | 2023-03-14 | 北京力控元通科技有限公司 | Data compression method, system, electronic equipment and storage medium |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105117504A (en) * | 2015-07-27 | 2015-12-02 | 卡斯柯信号有限公司 | Improved revolving door data acquisition method used for signal system |
Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101000605A (en) * | 2006-01-09 | 2007-07-18 | 中国科学院自动化研究所 | Intelligent two-stage compression method for process industrial historical data |
-
2011
- 2011-11-03 CN CN201110343878.1A patent/CN102510287B/en not_active Expired - Fee Related
Patent Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101000605A (en) * | 2006-01-09 | 2007-07-18 | 中国科学院自动化研究所 | Intelligent two-stage compression method for process industrial historical data |
Non-Patent Citations (2)
Title |
---|
卢秉亮等: "基于实时数据库的一个改进的数据压缩算法", 《计算机应用与软件》 * |
王君: "基于实时数据库的有损线性压缩算法研究与改进", 《微计算机应用》 * |
Cited By (13)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103040462A (en) * | 2012-10-12 | 2013-04-17 | 东华大学 | Electrocardiosignal processing and data compression method |
CN104160629A (en) * | 2013-01-31 | 2014-11-19 | 株式会社东芝 | Data compression device, data compression method, and computer program product |
CN104160629B (en) * | 2013-01-31 | 2017-09-01 | 株式会社东芝 | Data compression device and data compression method |
CN103701468A (en) * | 2013-12-26 | 2014-04-02 | 国电南京自动化股份有限公司 | Data compression and decompression method on basis of orthogonal wavelet packet transform and rotating door algorithm |
CN104682962A (en) * | 2015-02-09 | 2015-06-03 | 南京邦耀科技发展有限公司 | Compression method for massive fuel gas data |
CN105279917A (en) * | 2015-09-25 | 2016-01-27 | 卡斯柯信号有限公司 | Real-time early warning method based on swinging door algorithm |
CN110007854A (en) * | 2019-02-21 | 2019-07-12 | 湖南大唐先一科技有限公司 | One kind being based on time series data compression method and system |
CN111294054A (en) * | 2020-02-13 | 2020-06-16 | 北京天拓智领科技有限公司 | Compression method for collecting and storing industrial interconnection data |
CN111294054B (en) * | 2020-02-13 | 2023-05-23 | 北京天拓智领科技有限公司 | Compression method for industrial interconnection data acquisition and storage |
CN113271106A (en) * | 2021-04-25 | 2021-08-17 | 江苏方天电力技术有限公司 | Sparse representation power plant data compression method |
CN113271106B (en) * | 2021-04-25 | 2022-07-08 | 江苏方天电力技术有限公司 | Sparse representation power plant data compression method |
CN114142864A (en) * | 2021-10-28 | 2022-03-04 | 上海麦杰科技股份有限公司 | Lossy concurrent compression method and device for industrial Internet of Things real-time database |
CN115793979A (en) * | 2022-12-08 | 2023-03-14 | 北京力控元通科技有限公司 | Data compression method, system, electronic equipment and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN102510287B (en) | 2014-06-11 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102510287A (en) | Method for rapidly compressing industrial real-time data | |
CN102611454B (en) | Dynamic lossless compressing method for real-time historical data | |
CN107102220B (en) | Recording data processing method and device | |
CN114640355B (en) | Lossy compression and decompression method, system, storage medium and equipment of time sequence database | |
CN102436465A (en) | On-orbit spacecraft telemetry data compression storage and rapid query method | |
CN116974258B (en) | Production process monitoring method based on multi-dimensional data | |
CN102098058A (en) | Method for efficiently and linearly compressing and decompressing time-series data in real time | |
CN109962742A (en) | Portable telemetry data monitoring platform and monitoring method | |
CN105938542A (en) | Empirical-mode-decomposition-based noise reduction method for bridge strain signal | |
CN102752798A (en) | Method for losslessly compressing data of wireless sensor network | |
CN115940959B (en) | A Low Power Consumption Electric Energy Data Acquisition and Management System | |
CN103941116A (en) | Data compression method for fault recording indicator | |
CN114900191B (en) | An improved algorithm for compressing differential protection data using the revolving door algorithm | |
CN117574305A (en) | A method and system for real-time monitoring of equipment operating status | |
CN105356886A (en) | Power line noise compression method and device thereof based on compressive sensing | |
CN103220054B (en) | A kind of cognitive radio frequency spectrum sensing method based on Gabor algorithm and system | |
CN101895760A (en) | Joint photographic expert group-lossless and near lossless (JPEG-LS) algorithm-based code stream splicing system and method | |
CN106452626B (en) | Broader frequency spectrum compressed sensing based on multigroup relatively prime sampling | |
CN105825530A (en) | Coastal zone hyperspectral image distributed lossy coding and decoding method based on region of interest | |
CN108226682B (en) | Compression algorithm for fault indicator recording waveform | |
CN103532552B (en) | Random sampling slope analog-to-digital converter | |
CN112234993A (en) | Strong transient signal data compression method | |
CN113242041A (en) | Data hybrid compression method and system thereof | |
CN103701468A (en) | Data compression and decompression method on basis of orthogonal wavelet packet transform and rotating door algorithm | |
CN104008153A (en) | Data processing method and device orientated towards big data processing |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20140611 Termination date: 20161103 |
|
CF01 | Termination of patent right due to non-payment of annual fee |