An object of the present invention is to perform dimensional compression without losing the features of data for more efficient search for time series data. More specifically, the present invention does not aim to improve compression efficiency but to compress time series data to a determined dimension and extract a larger volume of information therein.
Conventional dimensionality reduction techniques on time series data include Piesewise Aggregate Approximation (PAA) that is described in “Dimensionality Reduction for Fast Similarity Search in Large Time Series Databases” by E. Keogh, K. Chakrabarti, M. Pazzani, and Mehrotra in Journal of Knowledge and Information Systems, 2000, for example.
With PAA, time series data is divided into segments, and the mean value of a segment is used as a representative value of the individual segment for time series data compression.
Mean value calculation is simpler than Fourier Transform or Singular Value Decomposition, and can generate dimensional compression time series data at higher speed.
Another conventional technique of dimensional reduction on time series data is a method using singular value decomposition that is described in “Efficiently Supporting Ad Hoc Queries in Large Datasets of Time Sequences” by F. Korn, H. V. Jagadish, and C. Faloutsos in Proceedings of SIGMOD '97, pp 289-300, for example. The method using singular value decomposition does not employ all elements processed by singular value decomposition. Only leading singular values (large singular values) are used for time series data compression.
Dimensional compression by singular value decomposition has the advantage of high search efficiency with better extraction of the shape of data than by any other method.
With dimensionality reduction on image data, a “transform coding system” is disclosed in JP61-285870 as a conventional technology, for example. Image data is divided into blocks and compressed on a block basis. Divided blocks are compressed by using a combination of Discrete Cosine Transform (DCT) and a transform representing a horizontal and vertical angle of gradient of a matrix.
The thus combining two transforms can achieve a higher compression rate for the block-based extraction of the features of blocks and the selection of the optimal transform.
The PAA can achieve a faster dimensional compression by using the mean value of each segment as the representative value of the segment. However, PAA has the following problem when searching for time series data or in similarity search. In the search procedure for time series data, solution candidates are found first in a compression space and then a final solution is searched for among the solution candidates in a real space. Therefore if a large number of solution candidates found in the compression space are not real solutions in the real space, then the search becomes inefficient. The problem of inefficient search of PAA is resulted from insufficient information after compression that is caused by the deformation of a time series by the use of a mean value as the representative value of each segment. With a flat time series, a time series with upward sloping, and a time series with downward sloping, when their mean values are the same, then their values after compression become the same.
The SVD, which extracts the form of data efficiently, is search efficient in the sense of the search efficiency mentioned above. The problem is, however, that singular value decomposition takes a considerable amount of time dealing with a large volume of data, and cannot handle that much data within a realistic time frame.
The “transform coding system” of JP61-285870, which is directed to improve the compression rate, has the following problem when used in search for time series data. The first thing that needs to be done in search for time series data is to compress all segments (blocks) at the same compression rate in order to search for solution candidates in a compression space. With the above-mentioned system, however, the compression rates are different among different blocks.
A time series data dimensional compression apparatus according to the present invention is characterized by including the following elements:
Further in consideration of a time series subsequence generation, n−N time series of length less than n and more than N are added thereafter. They are called supplemental time series whose values of the starting time t are between m−n+2 and m−N+1. The values of their end point t are m.
The length of a time series starting at m−n+2 is n−1.
The length of a time series starting at m−n+3 is n−2.
The length of a time series starting at m−N+1 is N.
The time series subsequence generating section 112 selects the first N pieces of data of each piece of the time series data 151 to generate the time series subsequence 152. This is done for all pieces of the time series to generate time series subsequences of length N whose start points are from t=1 to t=m−n+1. The time series subsequence generating section 112 also reads the first N pieces of data of the supplemental time series generated by the time series data generating section 110, and generates supplemental time series subsequence data. The time series subsequences and the supplemental time series subsequence data are stored in the time series subsequence memory section 122. It is assumed here that the segment width N is predetermined. This makes it possible to generate all the time series subsequences of length N with the start points from t=1 to t=m−N+1 from the time series source data.
Since all pieces of the time series data are derived from a single piece of the time series source data 150, every segment of the respective pieces of the time series data matches one of the time series subsequences.
As shown in
The SVD processing section 113 reads the time series subsequence 152 from the time series subsequence generating section 112, and performs singular value decomposition of a matrix with m−N+1 rows and N columns.
Singular value decomposition is a well-known expression where an arbitrary m×n matrix Y is expressed by the product of three matrices of U, S, and V as expressed below.
where r=rank(Y); s1, s2, . . . , sr is the square root of a positive eigenvalue (a singular value) of YT Y when s1≧s2≧ . . . ≧sr; and v1, v2, . . . , vr are the n-th vectors and correspond to proper vectors, of an eigenvalue, s12, s22, . . . , sr2, of YT Y. The v1, v2, . . . , vr are 1 in size and orthogonal to one another. The u1, u2, . . . , ur are the m-th vectors and defined by
where U is an m×r matrix with columns u1, u2, . . . , ur; V is an n×r matrix with columns v1, v2, . . . , vr; and S is the r-th diagonal matrix with diagonal elements, s1, s2, . . . , sr.
The r-th row is a time series subsequence when start point t=r, and its representative value is the product of the r-th element of the vector u1 and s1. The SVD processing section generates the representative values of all segments (all time series subsequences).
The dimensional compression time series data generating section 114 generates dimensional compression time series data by using the first element of singular value decomposition as the representative value of each segment. The time series data 151 when start point t=k includes the following time series subsequences:
Start point t=k, k+N, k+2N, . . . .
Therefore, the first representative value of the dimensional compression time series data is the product of the k-th element of the vector u1 and s1. The next representative value is the product of the k+N-th element of the vector u1 and s1.
The dimensional compression time series data 153 includes n/N points. The time series subsequences obtained by dividing the time series data 151 into segments are processed by SVD to obtain elements. The graph gives plots of the first elements thereof.
The time series data dimensional compression apparatus that is characterized by including the following means is thus described: means for generating a plurality of pieces of time series data of the specified length by sliding the start point of time series data at the predetermined interval along the time axis on the sequential data measured at the regular interval along the time axis; means for generating time series subsequences of the specified segment width by which each of the plurality of pieces of time series data of the specified length is divided; means for performing singular value decomposition on all of the divided time series subsequences; means for using the specified number of high-order elements of the singular value decomposition (up to the first element in this particular case) as the representative value of each of the divided time series subsequences of the specified segment width; means for compressing the dimension of the time series data of the specified length by combining the representative values.
Next, the data analyzing section 117 reads the time series data from the time series data storage section 121 and analyzes it. As a result of analysis, the data analyzing section 117 determines a segment width and an element of a singular value decomposition result up to which the singular value decomposition result is valid in order to have the highest hit rates in searches. With this particular case, the result is used up to the second element.
The time series subsequence generating section 112 reads the time series data 151 sequentially from the time series data storage section 121, generates the time series subsequence 152, and stores it in the time series subsequence memory section 122. As the segment width of the time series subsequence, a value determined by the data analyzing section 117 is used. Next, the SVD processing section 113 reads the time series subsequence from the time series subsequence memory section 122, and processes it by singular value decomposition. As a result of singular value decomposition, an SVD result is stored in the SVD result memory section up to the value determined by the data analyzing section 117 about the element of the SVD result up to which the result is to be used. With this particular case, the SVD result is stored up to the second element in the SVD result memory section. The dimensional compression time series data generating section 114 generates the dimensional compression time series data 153 by using the content of the SVD result memory section, and stores it in the dimensional compression time series data storage section 123.
When the segment width is 32, and the SVD result is used up to the second element, a dimension after compression is obtained as follows: Number of Segments 128÷32=4, Segment Representing Value=2, Number of Segments×Segment Representing Value=8. That is, compression is done to the 8-th dimension.
There are several choices of how to determine the segment width and the segment representative value when using the same dimension after compression. It is the function of the data analyzing section 117 to determine the segment width and the number of the segment representative value such that the highest hit rate is achieved among the choices.
The time series data dimensional compression apparatus of claim 1 including the following means is thus described: means for analyzing the time series data, and determining the segment width by which the time series data is divided, and an element from the singular value decomposition up to which the singular value decomposition is used as the representative value of a time series subsequence.
Thus, according to this invention, SVD is performed on divided segments, so that the feature of each segment may be extracted in comparison to all other data. This allows generation of compressed data with high search efficiency. Faster performance of SVD may also be achieved than when SVD is performed solely because of the matrix with the same number of rows but N/n columns.
The intermediate dimension determining section 181 reads and analyzes time series source data, and determines an intermediate dimension p and a segment width to take a mean value. The width to take the mean value is within a range where time series data increases or decreases monotonously.
Next, the dimensional compression time series data generating section 114 generates dimensional compression time series data by using the singular value decomposition result up to the 8-th element. More specifically, the dimensionally compressed time series data is generated by an approximately expression of each time series 151 using the following eight pieces of data:
(s1u1, s2u2, s3u3, s4u4, s5u5, s6u6, s7u7, s8u8).
The time series data dimensional compression system that is characterized by including the following means is thus described: means for determining the segment width to take the mean for the plurality of pieces of time series data of the specified length; means for calculating the mean value of the time series for each segment width to take the mean; means for generating the intermediate time series by using the mean value as the segment representative value; means for performing the singular value decomposition on each intermediate time series; and means for using the specified number of high-order elements of the singular value decomposition as compressed data of the intermediate time series.
Thus, according to this invention, the mean value is taken in the width within which time series data varies monotonously, so that the amount of data may be reduced without losing the features of data. Furthermore, fast singular value decomposition may be achieved on a reduced amount of data and the features of data may also be extracted.
The time series data dimensional compression apparatus is a computer. Therefore it is possible to implement every element thereof by a program. It is also possible to store the program in a storage medium, so that the program is read by a computer from the storage medium.
Dimensional compression for better search efficiency for time series data may be achieved without losing the features of data. The compression is made to a determined dimension so that more pieces of information may be extracted therein.
Filing Document | Filing Date | Country | Kind | 371c Date |
---|---|---|---|---|
PCT/JP2004/002252 | 2/26/2004 | WO | 00 | 6/14/2006 |
Publishing Document | Publishing Date | Country | Kind |
---|---|---|---|
WO2005/083890 | 9/9/2005 | WO | A |
Number | Name | Date | Kind |
---|---|---|---|
5583794 | Shimizu et al. | Dec 1996 | A |
5818463 | Tao et al. | Oct 1998 | A |
5905814 | Mochizuki et al. | May 1999 | A |
6373986 | Fink | Apr 2002 | B1 |
6486881 | Hunter et al. | Nov 2002 | B2 |
6609085 | Uemura et al. | Aug 2003 | B1 |
6757432 | Hijiri et al. | Jun 2004 | B2 |
6947045 | Ostermann et al. | Sep 2005 | B1 |
7103222 | Peker | Sep 2006 | B2 |
20040260521 | Aggarwal | Dec 2004 | A1 |
20050002584 | Qian et al. | Jan 2005 | A1 |
Number | Date | Country |
---|---|---|
61-285870 | Dec 1986 | JP |
62-25381 | Feb 1987 | JP |
6-139345 | May 1994 | JP |
11-28894 | Oct 1999 | JP |
Number | Date | Country | |
---|---|---|---|
20070147519 A1 | Jun 2007 | US |