Matching PatternsPatterns in historical data are the lifeblood of business intelligence and knowledge
By Girish Keshav Palshikar Describing the PatternsFor most users of temporal data, it would be useful to have assistance from a system that performs inferences and reasoning, and queries, automatically identifies, and states patterns in a qualitative temporal pattern language that is easily understood.
But first, how do you formally describe a pattern for comparison with the databases and its detected instances? We decided that the answer was mathematical temporal logic. If you assume that you have a finite, linear-ordered sequence of not necessarily equally separated time instants We assume that a declarative fuzzy proposition can define each concept in the user's domain. Each such fuzzy proposition can have a truth-value from the range [0, 1]; thus it need not be fully true or fully false. In general, a fuzzy proposition has a different truth-value over the instants in time. Thus, each fuzzy proposition defines a time-dependent concept in the user's domain. In the AR example mentioned earlier, some fuzzy propositions that you can define are "collection is high," collection is low," "collection is improving," and "collection is slow." The values of these fuzzy propositions vary over time and come from the sales and AR databases. You can now use the standard logical connectives Here's an example: Let cool, humid, and raining respectively denote the fuzzy propositions that the weather is cool, humid, or raining. Then at a particular instant, truth-values of cool, humid, and raining may be 0.9, 0.4, and 0.1; meaning that the weather is very cold and somewhat humid, with very little rain at that instant. These truth-values may vary over the instants (note that instants are not necessarily adjacent instants, but say daily, hourly, or even weekly readings). You can detect a pattern of how s truth-values such as cool vary over time. However, you can construct more complex and interesting weather patterns using the logical and temporal connectives. Here are some examples of weather patterns described in natural language and also as temporal formulae. I may use special-purpose fuzzy connectives like heavy, fairly, low, high, very, and so on to emphasize the degree of truth.
Detecting the PatternsGiven fuzzy truth-values x and y (as real numbers between 0 to 1), the standard method to define the meaning of the fuzzy logical connectives is as follows:
See the sidebar, "Truth and Time." In Table 2, the first column shows the time instants and the next three columns show the value of the three fuzzy propositions (cool, humid, and rain) at each instant. You ignore the method used to compute the truth-values for the fuzzy propositions at each instant. For example, you can compute the degree of truth of the fuzzy proposition, cool, from the given temperature (T) using the following formula (when T = 9 degreesC, cool = 1.0, when T = 30 degreesC, cool = 0.0 and when T = 20 degreesC, cool = 0.33):
The truth-values of the formulas fairly cool and very humid are shown in the next two columns. The last column shows the truth-value of the formula In another example, Figure 1, shows the price and number of shares traded for a specific company (on the y-axis) over time (on the x-axis). A common normal trading pattern, in natural language, is "the volume traded is low when the price is very high or very low," which is represented as the fuzzy temporal formula Logical PatternsIn this article, I presented one approach to define the meaning of a pattern and described a fuzzy temporal logic where a formula has a truth-value at each instant in time (computed from the given underlying temporal databases). This logic can describe conceptual, high-level, approximate patterns that characterize time-dependent phenomena in various domains and applications. You can define simple algorithms to extract the time intervals where a given fuzzy temporal formula shows a significant presence. To facilitate the easy expression of more types of expert knowledge, you can add interval-based meta-temporal facilities to describe relationships between various time intervals of interest ( I would like to thank Prof. Mathai Joseph and Dr. Manasse Palshikar for their support. Girish Keshav Palshikar (girishp@pune.tcs.co.in) is a scientist at Tata Research Development and Design Centre (TRDDC) in Pune, India. TRDDC is the R&D Division of Tata Consultancy Services, India's largest software company. His areas of work include theory and applications of artificial intelligence.
|
Most Popular This Week
IE Weekly Newsletter
Subscribe to the newsletter
|
| |||||||||||||||||||||||||||||||





















