Login| Sign Up| Help| Contact|

Patent Searching and Data


Title:
GENERALIZED NOTION OF SIMILARITIES BETWEEN UNCERTAIN TIME SERIES
Document Type and Number:
WIPO Patent Application WO/2012/004387
Kind Code:
A2
Abstract:
A method for finding a distance between a plurality of time series, wherein each individual time series in the plurality of time series includes data, wherein the data is uncertain data, the method comprising: selecting at least two time series from a plurality of time series; computing a first difference value between the two series at a given instant of time; mapping the first difference value with a table of values; computing a second difference value using the table of values, wherein the second distance value is a measure of similarity between the time series.

Inventors:
SARANGI SMRUTI RANJAN (IN)
MURTHY KARIN (IN)
Application Number:
PCT/EP2011/061630
Publication Date:
January 12, 2012
Filing Date:
July 08, 2011
Export Citation:
Click for automatic bibliography generation   Help
Assignee:
IBM (US)
SARANGI SMRUTI RANJAN (IN)
MURTHY KARIN (IN)
International Classes:
G06F17/18
Foreign References:
US20090327185A12009-12-31
US20100002538A12010-01-07
US20090222472A12009-09-03
US20030093227A12003-05-15
Other References:
Smruti R. Sarangi: "DUST: A Generalized Notion of Similarity between Uncertain Time Series", KDD '10, 25 July 2010 (2010-07-25), 28 July 2010 (2010-07-28), XP055028828, Washington DC, USA Retrieved from the Internet: URL:http://www.cse.iitd.ernet.in/~srsarangi/files/papers/dust.pdf [retrieved on 2012-06-04]
Mahesh Kumar: "Clustering seasonality patterns in the presence of errors", KDD '02, 23 July 2002 (2002-07-23), 26 July 2002 (2002-07-26), pages 557-563, XP055028659, Edmonton, Alberta, Canada Retrieved from the Internet: URL:http://delivery.acm.org/10.1145/780000 /775129/p557-kumar.pdf?ip=145.64.134.242&a cc=ACTIVE SERVICE&CFID=85520916&CFTOKEN=94161917&__a cm__=1338475815_72e107e79a4d255dfb20c2850a abc10c [retrieved on 2012-05-31]
John R. Taylor: "An Introduction to Error Analysis. The Study of Uncertainties in Physical Measurements. Second Edition" In: 1 August 1996 (1996-08-01), University Science Books, XP055032113, ISBN: 978-0-93-570275-0 pages 286-293, page 286 - page 293
WARREN LIAO ET AL: "Clustering of time series data-a survey", PATTERN RECOGNITION, ELSEVIER, GB, vol. 38, no. 11, 1 November 2005 (2005-11-01), pages 1857-1874, XP027610890, ISSN: 0031-3203, DOI: 10.1016/J.PATCOG.2005.01.025
Jessica Lin: "A Symbolic Representation of Time Series, with Implications for Streaming Algorithms", , 13 June 2003 (2003-06-13), XP055028285, Retrieved from the Internet: URL:http://www.abdn.ac.uk/~csc242/teaching/CS4031/information/SAX.pdf [retrieved on 2012-05-29]
KUMAR ET AL: "Clustering data with measurement errors", COMPUTATIONAL STATISTICS AND DATA ANALYSIS, vol. 51, no. 12, 31 July 2007 (2007-07-31) , pages 6084-6101, XP022181627, NORTH-HOLLAND, AMSTERDAM, NL ISSN: 0167-9473, DOI: 10.1016/J.CSDA.2006.12.012
AGGARWAL C C ET AL: "A Survey of Uncertain Data Algorithms and Applications", IEEE TRANSACTIONS ON KNOWLEDGE AND DATA ENGINEERING, vol. 21, no. 5, 1 May 2009 (2009-05-01), pages 609-623, XP011248214, IEEE SERVICE CENTER, LOS ALAMITOS, CA, US ISSN: 1041-4347
Attorney, Agent or Firm:
ROBERTS, Scott (Intellectual Property LawHursley Park, Winchester Hampshire SO21 2JN, GB)
Download PDF:
Claims:
CLAIMS

1. A method for finding a distance between a plurality of time series, wherein each individual time series in the plurality of time series includes data, wherein the data is uncertain data, the method comprising:

selecting at least two time series from a plurality of time series;

computing a first difference value between the two series at a given instant of time; mapping the first difference value with a table of values;

computing a second difference value using the table of values, wherein the second distance value is a measure of similarity between the time series.

2. The method as claimed in claim 1, further comprise providing as input a new distance for data mining tasks associated with any other time series.

3. The method as claimed in claim 1, wherein computing the first difference value comprises computing a difference between a first data value from the first time series and the second data value from the second time series.

4. The method as claimed in claim 3, wherein the first difference value is computed for multiple pairs of first data value in the first time series and second data value in the second time series

5. The method as claimed in claim 4, wherein the first data value in the first time series and the second data value in the second time series always occur at the same instant of time in the first and second time series.

6. The method as claimed in claim 1, wherein the table of values is a lookup table.

7. The method as claimed in claim 6, wherein the look-up table is dynamically generated.

8. The method as claimed in claim 1, wherein the plurality of time series is stored in a repository.

9. The method as claimed in claim 1, further comprises determining an error function for the first data value and the second data value.

10. The method as claimed in claim 8, wherein, based on the error function an appropriate table of values is assigned.

11. A data processing system comprising at least a processor and a memory, the system configured for finding a distance between a plurality of time series, wherein each individual time series in the plurality of time series includes data, wherein the data is uncertain data, the system comprising:

a selector for selecting at least two time series from a plurality of time series;

a first computing component for computing a first difference value between the two series at a given instant of time;

a mapper for mapping the first difference value with a table of values;

a second computing component for computing a second difference value using the table of values, wherein the second distance value is a measure of similarity between the time series.

12. The system as claimed in claim 11 further comprise means for providing, as input, a new distance for data mining tasks associated with any other time series.

13. The system as claimed in claim 11, wherein the first computing component is further operable to compute the first difference value by computing a difference between a first data value from the first time series and the second data value from the second time series.

14. The system as claimed in claim 13, wherein the first computing component is further operable to compute the first difference value for multiple pairs of first data value in the first time series and second data value in the second time series

15. The system as claimed in claim 14, wherein the first data value in the first time series and the second data value in the second time series always occur at the same instant of time in the first and second time series.

16. The system as claimed in claim 11, wherein the table of values is a lookup table.

17. The system as claimed in claim 16, wherein the look-up table is dynamically generated.

18. The system as claimed in claim 11 , wherein the plurality of time series is stored in a repository.

19. The system as claimed in claim 11, further comprises means for determining an error function for the first data value and the second data value.

20. The system as claimed in claim 18, wherein, based on the error function an appropriate table of values is assigned.

21. A computer program element comprising computer program code to, when loaded into a computer system and executed thereon, cause the computer to perform the steps of a method as claimed in any of claims 1 to 10.

Description:
GENERALIZED NOTION OF SIMILARITIES BETWEEN

UNCERTAIN TIME SERIES

FIELD OF THE INVENTION

The present invention relates to the identification of a distance between a plurality of time series.

BACKGROUND

Distance measures used for similarity search and data mining are often focused towards uncertain data, such as data arising from sensor networks. However, recently there has been a move to acknowledge that in many application domains, the uncertainty of such data should be captured and accounted for. However, not many approaches deal with time series or streaming data.

Typically, values corresponding to different time slots in a time series have different error distributions. A technique is required to perform data mining tasks such as classification and clustering of time series. Conventional distance metrics are not effective with uncertain data.

The paper "A framework for clustering uncertain data streams" (C. C. Aggarwal and P. S. Yu, 2008). presents a framework for clustering uncertain data streams. The paper assumes that some statistics are known about the uncertainty. Based on this micro-clusters are created and dynamically updated as new data points arrive based on an expected value of similarity. This approach is thus not applicable to general data mining tasks.

The papers "Probabilistic similarity search for uncertain time series" (J. ABfalg, H. Kriegel, P. Kr ' ger, and M. Renz., SSDBM, 2009) and "Proud: A probabilistic approach to processing similarity queries over uncertain data streams" (M. Yeh, K. Wu, P. S. Yu, and M. Chen, EDBT, 2009) introduce the notion of probabilistic bounded range queries (PBRQ) for time series data. Given a distance bound, e, and a probability threshold τ , two time series are considered to be similar if the probability that the distance between them is equal or less than e , is equal or greater than τ. This is an approach to similarity search.

ABfalg et al assume that the uncertainty of a time series is represented by a set of sample observations at each time slot. Thus, an uncertain time series T represents a set of regular time series S(T) where each regular time series is constructed by picking one sample point for each time slot. The distance between two uncertain time series Tl and T2 is defined as the set of distances between all combinations from S(T1 ) and S(T2 ). Not all application domains provide multiple sample points for each time slot. Also, this approach is not computationally efficient.

The approach of Mi- Yen Yeh et al handles uncertainty for data streams. The uncertainty at each time point is modelled as a continuous random variable for which only the mean and standard deviation are known. The distance between two time series is a random variable. This is sufficient for computing the result of a probabilistic bounded range query but it does not allow the direct computation of a distance between two time series. Another limitation of this approach is that, in order to make the computation of a PBRQ more efficient and to allow early pruning of candidates, it is assumed that the uncertain deviation is the same for all time points of a series.

US patent publication US20090327185 "Systems for Structural Clustering of Time

Sequences" discloses a distance function that takes into account a non linearity of error distributions in two time series. Structural clustering is performed between different time series by ascertaining structural features relating to received the time series data, determining a distance between different time series and partitioning different time series into clusters containing at least one of the time series based on the distance.

US patent publication US20100002538 "Determining the Structure of a Towed Seismic Spread Element" discloses an approach where a non-Gaussian error distribution in readings/measured values is taken into account for determining the position/distance between seismic sources. US patent publication US20090222472 "Method and Apparatus for Aggregation in

Uncertain Data" discloses a feature of computing a distance between error induced values by taking into account first order and second order error statistics.

US patent publication US20030093227 "Statistical Combining of Cell Expression Profiles" discloses a feature wherein a distance function takes into account a non linearity of error distributions in the values by using data from multiple repeated experiments to generate a confidence value for each data point, increase sensitivity, and eliminate systematic experimental bias.

Sensor based systems that generate uncertain data are becoming increasingly important. Furthermore, sensors play a vital role in industrial control systems. In most cases there is a certain amount of error associated with a sensor. Without effective techniques for handling error in uncertain data it will not be possible to efficiently process and use sensor data effectively.

SUMMARY

Embodiments of the invention relate generally to a method, a system and a computer program product for finding a distance between a plurality of time series, wherein each individual time series in the plurality of time series including a data, wherein the data represents data values, and wherein the data values of the time series are uncertain. At least two time series from a plurality of time series are selected. A difference value between the two series at a given instant of time is computed and a mapping is made between the computed difference value with a table of values. A new difference value using the table of values is computed and using the difference value a distance value is computed, wherein the distance value is a measure of similarity between the time series. The new computed distance value is provided as input for example advantageously for data mining tasks that can be associated with other time series. Other embodiments are also disclosed.

In accordance with a first aspect, the present invention accordingly provides A method for finding a distance between a plurality of time series, wherein each individual time series in the plurality of time series includes data, wherein the data is uncertain data, the method comprising: selecting at least two time series from a plurality of time series; computing a first difference value between the two series at a given instant of time; mapping the first difference value with a table of values; computing a second difference value using the table of values, wherein the second distance value is a measure of similarity between the time series.

In accordance with a second aspect, the present invention accordingly provides a data processing system comprising at least a processor and a memory, the system configured for finding a distance between a plurality of time series, wherein each individual time series in the plurality of time series includes data, wherein the data is uncertain data, the system comprising: a selector for selecting at least two time series from a plurality of time series; a first computing component for computing a first difference value between the two series at a given instant of time; a mapper for mapping the first difference value with a table of values; a second computing component for computing a second difference value using the table of values, wherein the second distance value is a measure of similarity between the time series.

In accordance with a third aspect, the present invention accordingly provides a computer program element comprising computer program code to, when loaded into a computer system and executed thereon, cause the computer to perform the steps of a method as described above.

BRIEF DESCRIPTION OF THE DRAWINGS

Preferred embodiments of the present invention will be described by way of example only with reference to the following drawings in which:

FIG. 1 is an exemplary embodiment of a data processing system, such as a computer system, which includes at least a processor and memory, on which the general embodiments illustrated in FIGS. 2 to 5 may be implemented on;

FIG. 2 is an exemplary embodiment of a typical sensor network setting and a method of gathering data from a plurality of sensors according to a general embodiment of the invention; FIG. 3 is an exemplary embodiment of a flowchart of a method according to a general embodiment of the invention;

FIG. 4 is an exemplary embodiment of a flowchart of a method according to a general embodiment of the invention; and

FIG. 5 is an exemplary embodiment of a flowchart of a method according to a general embodiment of the invention.

DETAILED DESCRIPTION

Where reference is made in any one or more of the accompanying drawings to steps and/or features, which have the same reference numerals, those steps and/or features have for the purposes of this description the same function(s) or operation(s), unless the contrary intention appears.

"Computer" or "data processing system" means any device capable of performing the methods, producing compressed bitmaps as described herein, or performing logical comparisons between a plurality of compressed bitmaps, and compressed and uncompressed bitmaps, as disclosed herein, including but not limited to: a microprocessor, a

microcontroller, a digital state machine, a field programmable gate array (FGPA), a digital signal processor, a collocated integrated memory system with microprocessor and analog or digital output device, a distributed memory system with microprocessor and analog or digital output device connected by digital or analog signal protocols.

"Computer readable media" means any source of organized information that may be processed by a computer to perform the steps described herein to result in, store, perform logical operations upon, or transmit, a Word Aligned Hybrid compressed bitmap, including but not limited to: a magnetically readable storage system; optically readable storage media such as punch cards or printed matter readable by direct methods or methods of optical character recognition; other optical storage media such as a compact disc (CD), a digital versatile disc (DVD), a rewritable CD and/or DVD; electrically readable media such as programmable read only memories (PROMs), electrically erasable programmable read only memories (EEPROMs), field programmable gate arrays (FGPAs), flash random access memory (flash RAM); and remotely transmitted information by electromagnetic or optical methods including, but not limited to, wireless transmission, copper wires, and optical fibers.

A computer-readable medium of an embodiment of the invention has one or more computer programs stored thereon to execute a method. The computer-readable medium may be a recordable data storage medium, or another type of tangible computer-readable medium. The method determines whether one or more first processors have a first task utilization rate that is less than a threshold. The first processors have one or more first tasks partially bound thereto such that by default the first processors execute the first tasks. The first task utilization rate is a utilization rate of the first processors in executing the first tasks. In response to determining that the first task utilization rate is less than the threshold, the method causes one or more first tasks that have migrated to a second processor group to migrate back to first processor group. If that it is not possible, then one or more second tasks currently being executed on one or more second processors are caused to migrate to the first processors, such that the first processors execute the second tasks.

A computer-readable medium of another embodiment of the invention also has one or more computer programs stored thereon to execute a method. The computer-readable medium may be a recordable data storage medium, or another type of tangible computer-readable medium. The method determines whether one or more first processors have a second task utilization rate that is less than a threshold. The first processors have one or more first tasks partially bound thereto such that by default the first processors execute the first tasks. The first processors are currently executing one or more second tasks that have been migrated to the first processors and that are not partially bound to the first processors. The second task utilization rate is a utilization rate of the first processors in executing the second tasks. In response to determining that the second task utilization rate is less than the threshold, the method causes the second tasks currently being executed on the first processors to migrate to one or more second processors, such that the second processors execute the second tasks.

FIG. 1 shows a detailed schematic of a data processing system, hereinafter referred to as a computer system, used implementing the exemplary data flow embodiments as illustrated in FIG. 2 to FIG. 5. The computer system 100 includes at least a processor 104. It should be understood although FIG. 1 illustrates a single processor, one skilled in the art would appreciate that more than one processor can be included as needed. The processor 104 is connected to a communication infrastructure 102 (for example, a communications bus, cross-over bar, or network) where the communication infrastructure 104 is configured to facilitate communication between various elements of the exemplary computer system 100. Various software embodiments are described in terms of this exemplary computer system. After reading this description, it will become apparent to a person of ordinary skill in the relevant art(s) how to implement the invention using other computer systems and/or computer architectures.

Exemplary computer system 100 can include a display interface 108 configured to forward graphics, text, and other data from the communication infrastructure 102 (or from a frame buffer not shown) for display on a display unit 110. The computer system 100 also includes a main memory 106, which can be random access memory (RAM), and may also include a secondary memory 112. The secondary memory 1 12 may include, for example, a hard disk drive 114 and/or a removable storage drive 116, representing a floppy disk drive, a magnetic tape drive, an optical disk drive, etc. The removable storage drive 116 reads from and/or writes to a removable storage unit 118 in a manner well known to those having ordinary skill in the art. The removable storage unit 118, represents, for example, a floppy disk, magnetic tape, optical disk, etc. which is read by and written to by the removable storage drive 116. As will be appreciated, the removable storage unit 118 includes a computer usable storage medium having stored therein computer software and/or data.

In exemplary embodiments, the secondary memory 112 may include other similar means for allowing computer programs or other instructions to be loaded into the computer system. Such means may include, for example, a removable storage unit 122 and an interface 120. Examples of such may include a program cartridge and cartridge interface (such as that found in video game devices), a removable memory chip (such as an EPROM, or PROM) and associated socket, and other removable storage units 122 and interfaces 120 which allow software and data to be transferred from the removable storage unit 122 to the computer system 100. The computer system 100 may also include a communications interface 124. The communications interface 124 allows software and data to be transferred between the computer system and external devices. Examples of the communications interface 124 may include a modem, a network interface (such as an Ethernet card), a communications port, a PCMCIA slot and card, etc. Software and data transferred via the communications interface 124 are in the form of signals which may be, for example, electronic, electromagnetic, optical, or other signals capable of being received by communications interface 124. These signals are provided to the communications interface 124 via a communications path (that is, channel) 126. The channel 126 carries signals and may be implemented using wire or cable, fiber optics, a phone line, a cellular phone link, an RF link, and/or other communications channels.

With reference to the embodiments disclosed, the terms "computer program medium," "computer usable medium," and "computer readable medium" are used to generally refer to media such as the main memory 106 and the secondary memory 112, the removable storage drive 116, a hard disk installed in the hard disk drive 114, and signals. These computer program products are means for providing software to the computer system. The computer readable medium allows the computer system to read data, instructions, messages or message packets, and other computer readable information from the computer readable medium. The computer readable medium, for example, may include non-volatile memory, such as Floppy, ROM, Flash memory, Disk drive memory, CD-ROM, and other permanent storage. It can be used, for example, to transport information, such as data and computer instructions, between computer systems. Furthermore, the computer readable medium may comprise computer readable information in a transitory state medium such as a network link and/or a network interface, including a wired network or a wireless network that allows a computer to read such computer readable information.

Computer programs (also referred to herein as computer control logic) are stored in the main memory 106 and/or the secondary memory 112. Computer programs may also be received via the communications interface 124. Such computer programs, when executed, can enable the computer system to perform the features of exemplary embodiments of the present invention as discussed herein. In particular, the computer programs, when executed, enable the processor 104 to perform the features of the computer system 100. Accordingly, such computer programs represent controllers of the computer system.

The embodiments disclosed above may be implemented as a method, apparatus or article of manufacture involving software, firmware, micro-code, hardware such as logic, memory and/or any combination thereof. The term "article of manufacture" as used herein refers to code or logic and memory implemented in a medium, where such medium may include hardware logic and memory [e.g., an integrated circuit chip, Programmable Gate Array (PGA), Application Specific Integrated Circuit (ASIC), etc.] or a computer readable medium, such as magnetic storage medium (e.g., hard disk drives, floppy disks, tape, etc.), optical storage (CD-ROMs, optical disks, etc.), volatile and non- volatile memory devices [e.g., Electrically Erasable Programmable Read Only Memory (EEPROM), Read Only Memory (ROM), Programmable Read Only Memory (PROM), Random Access Memory (RAM), Dynamic Random Access Memory (DRAM), Static Random Access Memory (SRAM), flash, firmware, programmable logic, etc.]. Code in the computer readable medium is accessed and executed by a processor. The medium in which the code or logic is encoded may also include transmission signals propagating through space or a transmission media, such as an optical fiber, copper wire, etc.

The transmission signal in which the code or logic is encoded may further include a wireless signal, satellite transmission, radio waves, infrared signals, Bluetooth, the internet etc. The transmission signal in which the code or logic is encoded is capable of being transmitted by a transmitting station and received by a receiving station, where the code or logic encoded in the transmission signal may be decoded and stored in hardware or a computer readable medium at the receiving and transmitting stations or devices. Additionally, the "article of manufacture" may include a combination of hardware and software components in which the code is embodied, processed, and executed. Of course, those skilled in the art will recognize that many modifications may be made without departing from the scope of embodiments, and that the article of manufacture may include any information bearing medium. For example, the article of manufacture includes a storage medium having stored therein instructions that when executed by a machine results in operations being performed Certain embodiments can take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment containing both hardware and software elements. In a preferred embodiment, the invention is implemented in software, which includes but is not limited to firmware, resident software, microcode, etc. Elements that are in

communication with each other need not be in continuous communication with each other, unless expressly specified otherwise. In addition, elements that are in communication with each other may communicate directly or indirectly through one or more intermediaries. Additionally, a description of an embodiment with several components in communication with each other does not imply that all such components are required. On the contrary a variety of optional components are described to illustrate the wide variety of possible embodiments.

A system of an embodiment of the invention includes processors and a computer-readable medium. The processors are organized into processor groups. Each processor group has one or more of the processors assigned thereto. The computer-readable medium is to store a list of native tasks, a list of foreign tasks, and a list of migrated tasks for each processor group. The native tasks are those tasks that have been partially bound to the processor group, such that by default the processors of the processor group execute the native tasks. It is noted that the native task list does not contain tasks present in the migrated task list. The foreign tasks are those tasks that have been partially bound to a different processor group but that have been temporarily migrated to the processor group such that the processors of the processor group temporarily execute the foreign tasks. The migrated tasks are native tasks of the processor group that have been temporarily migrated away from the processor group to a different processor group such that the processors of the different processor group temporarily execute the migrated tasks.

Reference is now made to FIG. 2, which illustrates an exemplary embodiment of a typical sensor network setting and a method for gathering data from a plurality of sensors according to a general embodiment of the invention. Typical sensors 201 ... 20N, where N is an integer, illustrate a network setting of a plurality of sensors in a network coupled to a database. There are multiple sensors 201 ... 20N and hence if each of the sensors produces sensor values, for example these sensor values or data values can be recorded as a time series, with a multiple sensor network, multiple sensor values are produced. The sensor values that are produced by the sensors are aggregated to a time series at step 210, preferably by time or by location of the sensors in the network. In step 220, the various time series that are collected for the plurality of sensors may be stored in a repository. In step 230, if additional time series data is required, a request may be made to the sensors or the sensors may be programmed to periodically send in sensor values, which can be aggregated and then stored in the repository.

FIG. 3 is an exemplary embodiment of a flowchart of a method according to a general embodiment of the invention. FIG. 3 illustrates a typical flow for any business intelligence application which will use the time series data produced by sensors. In step 310, the business application is first initialized. In step 320, the application is configured to iterate over the time series data available in the repository. In step 330, a check is made to determine if there is any additional times series data in the repository. If there is no additional data, the output 360 is provided to a user. If there is additional time series data available in the repository, in step 340, at least two time series data is selected from the plurality of times series data in the repository and a distance between the two time series data is computed. In step 350, the computed distances as results are processed and aggregated, and in step 360, the output is provided to the user. Most business intelligence applications for time series data iterate over a database of time series (step 320) and compute distances between two time series (step 340). Examples of such business intelligence applications include classification, k-nearest- neighbor search, and motif detection.

FIG. 4 is an exemplary embodiment of a flowchart of a method according to a general embodiment of the invention, which illustrates an example workflow for nearest-neighbor search on time-series data. In step 410, read the input time series (TS) for which the nearest neighbor (that is the time series TS' with the smallest distance to TS) is to be found. In step 420, the minimum distance is set to a maximum value and the result variable NN that will in the end hold the nearest neighbor of TS is set to null. In step 430, iteration is performed over all the time series (TS'), where time series TS is the time series for which the nearest neighbor is to be found and TS' successively takes the value of all other time series. In step 440 a check is made to determine if there are any additional time series in the repository. If there aren't any new time series, then in step 470 the nearest neighbor NN is output. If there are additional new time series in the repository, in step 450, the distance between the time series TS and TS' is computed and in step 460, if the distance is smaller than the minimum distance, then the distance is set as the minimum distance and the nearest neighbor NN is set to TS'.

FIG. 5 is an exemplary embodiment of a flowchart of a method according to a general embodiment of the invention. FIG. 5 shown is based on a modification of the Euclidean distance, but can also be used in conjunction with the Dynamic Time Warping (DTW) distance. In step 510 the time series Tl and T2 are received as input. In step 520, the distance d is set to zero and the time series Tl and T2 are normalized. In step 530, a data value at a given instant of time in the time series is selected. For each pair of time series this data value is represented as Tl .v and T2.v. In step 540, a distance dl between the two data values of Tl .v and T2.v is computed. In 550, based on the error function chosen for the current pair of data values, an appropriate look-up table is selected. In step 560, a binary search is performed on the look-up table to locate the correct segment of dl in the look-up table. Once dl is determined from the look-up table, in step 570, a distance value d2 is computed based on the origin and slope of the segment. In step 580, compute the square of d2 and add the computed square of d2 to the distance d. In step 590, the square root of d is computed and provided to the user.

Further, although process steps, method steps or the like may be described in a sequential order, such processes, methods and algorithms may be configured to work in alternate orders. In other words, any sequence or order of steps that may be described does not necessarily indicate a requirement that the steps be performed in that order. The steps of processes described herein may be performed in any order practical. Further, some steps may be performed simultaneously, in parallel, or concurrently. Further, some or all steps may be performed in run-time mode. The terms "certain embodiments", "an embodiment", "embodiment", "embodiments", "the embodiment", "the embodiments", "one or more embodiments", "some embodiments", and "one embodiment" mean one or more (but not all) embodiments unless expressly specified otherwise. The terms "including", "comprising", "having" and variations thereof mean "including but not limited to", unless expressly specified otherwise. The enumerated listing of items does not imply that any or all of the items are mutually exclusive, unless expressly specified otherwise. The terms "a", "an" and "the" mean "one or more", unless expressly specified otherwise.

Computer program or computer program in the present context means any expression, in any language, code or notation, of a set of instructions intended to cause a system having an information processing capability to perform a particular function either directly or after either or both of the following a) conversion to another language, code or notation; b) reproduction in a different material form.

Although exemplary embodiments of the invention have been described in detail, it should be understood that various changes, substitutions and alternations could be made thereto without departing from spirit and scope of the inventions as defined by the appended claims. Variations described for exemplary embodiments of the present invention can be realized in any combination desirable for each particular application. Thus particular limitations, and/or embodiment enhancements described herein, which may have particular advantages to a particular application, need not be used for all applications. Also, not all limitations need be implemented in methods, systems, and/or apparatuses including one or more concepts described with relation to exemplary embodiments of the invention.