Automatic discovery of qualitative and quantitative patterns inherent in data sets is accomplished by use of a unified framework which employs adjusted residual analysis in statistics to test the significance of the pattern candidates generated from data sets. This framework consists of a search engine...http://www.google.co.uk/patents/US5809499?utm_source=gb-gplus-sharePatent US5809499 - Computational method for discovering patterns in data sets

Computational method for discovering patterns in data setsUS 5809499 A

Abstract

Automatic discovery of qualitative and quantitative patterns inherent in data sets is accomplished by use of a unified framework which employs adjusted residual analysis in statistics to test the significance of the pattern candidates generated from data sets. This framework consists of a search engine for different order patterns, a mechanism to avoid exhaustive search by eliminating impossible pattern candidates, an attributed hypergraph (AHG) based knowledge representation language and an inference engine which measures the weight of evidence of each pattern for classification and prediction. If a pattern candidate passes the statistical significance test of adjusted residual, it is regarded as a pattern and represented by an attributed hyperedge in AHG. In the task of classification and/or prediction, the weights of evidence are calculated and compared to draw the conclusion.

Images(1)

Claims(4)

Therefore what is claimed is:

1. A method in a computer of pattern discovery in a data base, comprising the steps of:

a) operating a computer to provide a data base comprising M samples, each sample being described in terms of N attributes represented by X={X1, . . . ZN }, each attribute Xi comprising a random variable taking on values from its alphabet αi ={αi, . . . , αmin} where mi is the cardinality of an alphabet of the ith attribute, wherein a primary event is a realization (xi) of Xi which takes on a value from αi ;

b) operating said computer to set an initial pattern candidate set C comprising a plurality of candidates c and an Attributed Hypergraph (AHG) pattern set P (AHG P) to be empty, placing all primary events ri into a primary event set R, and setting order O=1;

c) operating said computer to increment O and generating a candidate set C of order O from previous and primary event set R and if C is empty, go to step (e); otherwise go to step (d);

(d) operating said computer to count, for each candidate c in C, its occurrences o and to calculate its expected occurrence e given by

e=M o.sub.i /M! ##EQU21## where o.sub.i is the occurrence of the i-th primary event in c and M is the total number of instances in said database, if said expected occurrence is less than a preselected threshold, remove c from C, if the expected occurrence is greater than said preselected threshold, calculate an adjusted residual d of this candidate given by

d=(o-e)/√V! ##EQU22## where v is a maximum likelihood estimate of the variance of residual (o-e), if |d| is larger than a preselected confidence level, put c into AHG P, and if c is a negative pattern and the occurrence o is less than said preselected threshold, remove c from C, and if order O is equal to a highest order in demand, go to step (e) below, otherwise go to step (b);

(e) operating said computer to output AHG P.

2. The method according to claim 1 including subjecting the output AHG P to an inference process comprising the steps of:

(a) operating said computer to identify the variable X of whose value is to be predicted;

(b) operating said computer to search AHG P for patterns related to variable X and available information including but not limited to other attribute values of the same object, previous occurrence and history of the series, place such patterns into P, if P is empty, set result S to unknown and proceed to step (e) below;

c) for each possible realization xi of X, operating said computer to extract from P a pattern set Pi in which all patterns are related to the value x, calculate a weight of evidence wi in support of xi against other values given Pi,

w.sub.i =max(ΣW(x.sub.i /x.sub.i |p.sub.k)! ##EQU23## where n.sub.j is the number of disjoint patterns in the j-th combination of .sub.i P, and W.sub.i (x/x.sub.i |p.sub.k) is the weight of evidence in support of x.sub.i against other values given pattern P.sub.k in the combination where W(x.sub.i /x.sub.i |p.sub.k)=Log (Prob(p.sub.k)(1-Prob(x.sub.i))/(Prob(x.sub.i)(Prob(p.sub.k \x.sub.i)-Prob(p.sub.k)) where Prob ( ) is the probability, if P.sub.i is empty then skip x.sub.i ;

d) operating said computer to select a maximum weight of evidence, WL, so that xL is the most plausible value, set S equal to xL ; and

e) operating said computer to output S.

3. The method according to claim 1 wherein the step of generating a candidate set C of order O includes generating a time-dependent candidate set C of order O comprising:

(a) operating said computer to determine if the condition C is empty and O is not 2 is satisfied, and if so go to step (b) below, otherwise go to step (e) below;

(b) operating said computer to determine if the condition C is empty and O is equal to 2 is satisfied, and if it is, for any two primary events r1 and r2 in R, such that r1 and r2 belong to two different variables, construct a compound event c, add c into C;

(c ) if C is not empty, let C' be an empty set, for any c in C, select a primary event r from R such that r is not a sub-compound event of c, construct a new compound event c'=c+r, if c' has not been in C', put c' into C', delete c from C;

(d) when step (c ) is complete, rename C' to C;

(e) return C.

4. The method according to claim 1 wherein said data base is a sequential database, the step of generating a candidate set C of order O includes generating a time-dependent candidate set C of order O comprising;

(a) operating said computer to determine if the condition C is empty and O is not 2 is satisfied, and if so go to step (b) below, otherwise go to step (e) below;

(b) operating said computer to determine if the condition C is empty and O is equal to 2 is satisfied, and if it is, for any two primary events r1 and r2 in R, construct compound events, where t1, t2 ε, add said compound events to C;

(c ) if C is not empty, let C' be an empty set, for any c in C, select a primary event r from R, construct a new compound event c't =c+rt, where t ε, if c't (O≦t≦T) has not been in C', put c't into C', delete c from C;

The present invention relates to a new method of discovering qualitative and quantitative patterns, and, more particularly, to an improved framework of statistical pattern discovery.

2. BACKGROUND OF THE INVENTION

One of the basic tasks of machine learning and data analysis is to automatically uncover the qualitative and quantitative patterns in a data set. When a large database is given, to discover the inherent patterns and regularities becomes a challenging task especially when no domain knowledge is available or when the domain knowledge is too weak. Because of the size of the database, it is almost impossible for a decision maker to manually abstract from it the useful patterns. Hence it is desirable to have automatic pattern discovery tools to support various types of decision making tasks.

Consider that we have a set D of M observations or samples obtained from a database. Then each observation is described by N attributes. Thus, for any distinct attribute, there is a domain of possible values which can be numeric, boolean and/or symbolic. If the order of the instances in the database is important, the instances forms a sequence. Otherwise, the instances are only a collections of occurrences.

The purpose of pattern discovery, be it referred to as conceptual clustering 14! or rule induction 17!, is to find the relations among the attributes and/or among their values. We seek to find those events whose occurrences are significantly different from those based on a "random" model. Thus, the co-occurrence of events detected may reflect the nature of the data set and provide useful information for future inferences and reasoning.

Several open problems in machine learning and automatic knowledge acquisition are considered when developing this invention. The first is in regard to learning in the presence of uncertainty. Early machine learning systems were developed in the noise-free or deterministic environment 11!. The training data set is assumed to be entirely correct. However, for a real-world database, this assumption hardly stands. The instances in the database may include attributes based on measurement or subjective judgments, both of which may give rise to errors in the value of attributes 10!. Our method does not assume that the data set are exhaustive and/or noise-free. It is an inherently probabilistic method using standard statistical hypothesis testing to select patterns from the candidates. It is also able to detect deterministic patterns governed by first order logic. In view of this, this method is a more general approach to pattern discovery than most of its contemporaries.

The second problem concerns the detection of polythetic patterns without relying on exhaustive search. There are efficient systems available for detecting only the monothetic patterns such as 3!. There are also systems for detecting polythetic patterns but with them exhaustive search is required 7!. Many well-known systems, including the original version of ID3 16!, DISCON 12! and RUMMAGE 4!, are monothetic in that they detect only relationships between two attributes. Some other systems, such as AQ 13!, Cluster/2 14!. COBWEB 5!, ITRULE 17! and some Bayesian-based systems, are polythetic in that they consider the conjunction of more than two attributes. Due to the nature of most real world data, monothetic relations are inadequate to describe many problem domains. For robust learning, polythetic assessments of feature combinations (or higher order relationship detection) are imperative. Newer versions of ID3 use various pre- and post-pruning techniques to achieve polythetic learning. But when the number of attributes are large, learning time becomes a serious problem. Cluster/2 is also computationally expensive even with its Hierarchy-building Module. Another drawback of such a deterministic system is that it would not be able to give correct clustering results in the presence of noise. An incremental algorithm, COBWEB, employs optimistic learning, by which the concept tree generated might be very large and post-pruning techniques have to be applied. ITRULE generates rules directly from data sets. Since the measurement it uses cannot be summed, it is hard to quantitatively evaluate the evidence of a set of observations in the inference process. This system cannot incorporate negative information in the inference process. Our method attempts to resolve these problems by directly constructing polythetic concepts without pre- or post-pruning steps. It is able to speed up the process by screening out non-informative lower-order pattern candidates from high order consideration using statistics-based heuristics in the discovering process. Both positive and negative patterns will be discovered and applied in the reasoning stage.

Up to our knowledge, none of an existing system can detect both time-independent and time-dependent polythetic patterns in the presence of uncertainty. PIT 2! can detect both types of patterns, but the patterns it detects are only monothetic. There is a need to design a system which is capable of formulate pattern discovery into one scheme.

The last problem concerns the representation of the detected patterns. To use the detected patterns for further inferencing and reasoning, it is essential to represent them in appropriate explicit schemas. Traditionally, if-then rules and graphs, including networks and trees, are the most popular ones. However, when dealing with multilevel and multiple order patterns, traditional representations would have shortcomings due to the non-exhaustive and unpredictable hierarchical nature of the inherent patterns. Here, we use Attributed HyperGraph (AHG) as the representation of the detected patterns. The AHG is a structure that is general enough to encode information at many levels of abstraction yet simple enough to quantify the information content of its organized structure. It is able to encode both the qualitative and the quantitative characteristics and relations inherent in the data set.

3. OBJECTS

The principal object of the invention is to discover qualitative and quantitative, time-dependent and time-independent pattern in one framework by statistical analysis of data sets.

Further objects include the provisions of:

1. new algorithm of detecting different order patterns.

2. elimination of non-informative pattern candidates to avoid exhaustive search and to speed up the discovery process.

3. knowledge representation language which can encode both the qualitative and the quantitative pattern, is transparent to the user and is easy to be accessed by inferring engine.

4. incorporation of domain knowledge to the pattern discovery and inference process.

5. system which is capable of detecting both time-dependent and time-independent patterns.

6. inferring engine which can incorporate the information of both positive and negative patterns.

Other objects and further scope of applicability of the present invention will become apparent from the detailed description given hereinafter; it should be understood, however, that the detailed description, while indicating preferred embodiments of the invention, is given by way of illustration only, since various changes and modifications within the spirit and scope of the invention will become apparent to those skilled in the art from this detailed description.

4. SUMMARY OF THE INVENTION

The objects are accomplished in accordance with the present invention by the provision of a new pattern discovery system which consists of (a) an algorithm based on adjusted residual analysis which is capable of detecting different order patterns in the presence of noise. This algorithm can discover deterministic as well as probabilistic patterns from imperfect data sets; (b) heuristics based on the occurrence of negative patterns and asymptotic requirements which help eliminate non-informative candidates in the early stage to avoid exhaustive search which is common in existing systems, so as to speed up discovery process; (c) attributed hypergraph (AHG) based knowledge representation language which is general enough to encode information at many levels of abstraction yet simple enough to quantify the information content of its organized structure. It is a general case of all tree and network based representations. Since AHG representation is lucid and transparent for visualization, retrieval and interpretation of different order patterns can be easily achieved; (d) domain knowledge which is presented as selected attribute(s) or various combinations of attributes, When necessary, according to the a priori knowledge of certain application area, interested attributes or combination of attributes can be singled out as a guidance for pattern search, or eliminated to reduce search space. One can also invent new attributes from the data set for better interpretation of domain; (e) an mechanism to detect time-dependent pattern from sequential data set by attaching a time label to each entity in the data set. This mechanism enables the new system of detecting both time-dependent and time-independent patterns, so as to perform prediction and forecasting as well as classification, association, and clustering, which cannot be done by conventional approaches; (f) an inferring engine which uses weight of evidence in information theory to evaluate to what extent a pattern will contribute to a conclusion. This approach makes use of both positive and negative patterns, which are normally ignored by existing methods.

The present technique, with its generality, versatility, efficiency and flexibility, is well suited for automatic pattern discovery, data analysis, trend prediction and forecasting. Applications are evident in data mining, healthcare, stock market prediction, risk analysis, decision support, and economic analysis, as well as other other fields.

Feature features and advantages of the invention will become more readily apparent from the following detailed description when taken in conjunction with the accompanying drawings.

A method in a computer of pattern discovery in a data base, comprising the steps of:

a) operating a computer to provide a data base comprising M samples, each sample being described in terms of N attributes represented by X={X1, . . . XN }, each attribute Xi comprising a random variable taking on values from its alphabet αi ={αi, . . . αmin } where mi is the cardinality of an alphabet of the ith attribute, wherein a primary event is a realization (xi) of Xi which takes on a value from αi ;

b) operating the computer to set an initial pattern candidate set C comprising a plurality of candidates c and an Attributed Hypergraph (AHG) pattern set P (AHG P) to be empty, placing all primary events ri into a primary event set R, and setting order O=1;

c) operating the computer to increment O and generating a candidate set C of order O from previous and primary event set R and if C is empty, go to step (e); otherwise go to step (d);

(d) operating said computer to count, for each candidate c in C, its occurrences o and to calculate its expected occurrence e given by ##EQU1## where oi is the occurrence of the i-th primary event in c and M is the total number of instances in said database, if the expected occurrence is less than a preselected threshold, remove c from C, if the expected occurrence is greater than the preselected threshold, calculate an adjusted residual d of this candidate given by ##EQU2## where v is a maximum likelihood estimate of the variance of residual (o-e), if |d| is larger than a preselected confidence level, put c into AHG P, and if c is a negative pattern and the occurrence o is less than the preselected threshold, remove c from C, and if order O is equal to a highest order in demand, go to step (e) below, otherwise go to step (b); and

(e) operating the computer to output AHG P.

5. BRIEF DESCRIPTION OF THE DRAWINGS

FIG. 1 is a block diagram, in schematic form, of the skeleton of the invention.

6. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

FIG. 1 shows the skeleton of the pattern discovery and inference system. In the first block, pattern discovery algorithm detects statistical significant patterns together with the parameters which describe the characteristics of the pattern, from a given data set. These detected patterns are then encoded in an AHG based representation. This representation will act as a knowledge base for the inference process. In the inference process, new objects are classified, various queries are answered, future occurrence/trends are predicted.

The following sections will describe the invention one part at a time in details.

6.1 Definitions and Notations

Consider that we have a data set D containing M samples. Every sample is described in terms of N attributes, each of which can assume values in a corresponding discrete finite alphabet. Let X={X1, . . . , XN } represent this attribute set. Then each attribute, Xi 1≦i≦N, can be seen as a random variable taking on values from its alphabet αi ={ai1, . . . , aimi }, where mi is the cardinality of the alphabet of the ith attribute. Thus, a realization of X can be denoted as xj ={x1j, . . . , xNj }, where xij can assume any value in αi. In this manner, each sample in the data set is a realization of X. If the order of the samples in D is important, any realization of an attribute will be associated with a position t, where 1≦t≦M. If not necessary, we ignore t to keep a simple notation. With the above notations, the following terms are defined.

Definition 1 A primary event of a random variable Xi (1≦i≦N) is a realization of Xi which takes on a value from αi.

We denote the pth (1≦p≦mi) primary event of Xi as

X.sub.i =α.sub.i.sup.p !

or simply xip. For data set D, there are ##EQU3## different primary events. We assume that two primary events, xip and xiq, of the same variable Xi are mutually exclusive if p≠q.

Let s be a subset of integers {1, . . . , N} containing k elements (k≦N), and Xs be a subset of X such that

X.sup.s ={X.sub.i |i εS}.

Then xs denotes the realization of Xs.

Definition 2 A compound event associated with the variable set Xs is a set of primary events instantiated by a realization xs. The order of the compound event is |s|.

The jth compound event associated with the variable set Xs can be represented by

A 1-compound event is a primary event. A k-compound event is made up of k primary events of k distinctive variables. Every sample in the data set is an N-compound event.

Definition 3 A sub-compound event of xjs is a compound event xjs' ∀s'.OR right.s and s'≠φ.

Definition 4 The expected occurrence of a compound event xjs in data set D is its expected total under the assumption that the variables in Xs are mutually independent. The expected occurrence of xjs is denoted as ex.sbsb.j.spsb.s.

Definition 5 Let T be a statistical significance test. If the occurrence of a compound event Xjs is significantly different from its expectation, we say that the primary events of xjs have a statistically significant association according to T or simply they are associated.

Definition 6 If a compound event xjs passes the statistical significance test T, we say that xjs is a significant pattern, or simply a pattern, of order |s|.

The advantages of defining patterns as statistical significant compound events are (a) patterns are described at the event level which is efficient and comprehensive than at the variable level, (b) it enables the system of detecting patterns in the presence of noise, and (c) it reflects the basic nature of patterns--event associations.

6.2 Attributed Hypergraph Representation

First, let us give a formal definition of hypergraph 1!.

Definition 7 Let Y={y1, y2, . . . yn } be a finite set. A hypergraph on Y is a family H=(E1, E2, . . . Em) of subsets of Y such that

Definition 8 A simple hypergraph is a hypergraph H with hyperedges (E1, E2, . . . , Em) such that

E.sub.i =E.sub.j i=j.

Unless otherwise indicated, we refer hypergraph to simple hypergraph.

To describe patterns of various orders for a data set by an AHG, each vertex represents a primary event. Each pattern or statistically significant association among the primary events is represented by a hyperedge. A kth order pattern is a hyperedge containing k primary events. The following list gives some hypergraph terminologies and their corresponding meanings in pattern representation:

Each vertex of a hypergraph is a primary event of a data set;

Each hyperedge represents a pattern (significant event association) in the data set;

The order of a hypergraph is the number of primary events appearing in the data set;

The rank of a hypergraph is the highest order of the patterns detected from the data set; similarly, the anti-rank is the lowest order of detected patterns;

For a primary event xij, the star H(xij) of hypergraph H with center xij represents all the patterns related to the primary event xij.

Let A be a subset of all primary events, the sub-hypergraph of hypergraph H induced by A represents the associations among the primary events in A.

In AHG representation, both the vertices and the hyperedges of the hypergraph are attributed. In our case, the attribute of each vertex is the number of observations of the corresponding primary event xip, denoted by ox.sbsb.ip, or simply oip. If the data set is sequential, the position t of the primary event is also one of the attribute. The attributes of each hyperedge are: 1) the number of observations of the corresponding compound event xjs, denoted by ox.sbsb.j.spsb.s ; 2) the number of expected observations of the event, denoted by ex.sbsb.j.spsb.s ; 3) the significance threshold τx.sbsb.j.spsb.s used by the significance testing T; and 4) the occurrences of (|s|-1)th order sub-compound events of xjs. All of them will be useful for the inference process. It should be noted that the selection of attribute is domain dependent. One can select other descriptions of the hypergraph for a better interpretation of their problem domain. Hyperedges depict the qualitative relations among their elementary vertices (primary events), while the attributes associated with the hyperedges and the vertices quantify these relations.

The advantage of using attributed hypergraph as pattern representation language is obvious. Hypergraph is the general form of graphs, trees and networks. Different from graphs, trees and networks, hypergraph can distinguish between set connectivity and connectivity among their elements. Hence, it is ideal for representing different order patterns.

Compared to production (if-then) rules, hypergraph based representation is more flexible. Each rule has a left-hand antecedent involving one or more attribute and a right-hand consequent normally regarding to only one attribute. In a general case, however, with changing interest, values of different attributes are to be predicted. To be able to predict the values of many attributes, or achieve flexible prediction a huge number of rules have to be generated. This is sometimes impractical in the real world. On the contrary, hypergraph based representation can easily re-organize the represented knowledge according to changing environment.

Compared to relational representations such as Horn clause and First Order Logic, AHG based representation is more suitable for numerical inference. Since logic representations are originally designed to formalize mathematical reasoning, patterns in these representations are deterministic rather than probabilistic. To do probabilistic reasoning, adoptions have to be done to cope with numerical variables as well as probabilistic patterns. This problem also exists in structured representations such as semantic networks. Besides, logic based representations are considered less comprehensible and harder to visualize than other graph based representations. By adding attributes to hypergraphs, probabilistic properties of patterns are easily encoded. Numerical reasoning is as easy as logic reasoning.

Attributed hypergraph representation proposed here overcomes the shortcomings of the traditional representation. AHG is a direct, simple and efficient representation for describing the information at different and/or mixed levels of abstraction. In AHG, both the qualitative relations (the structure of the hypergraph) and the quantitative relations (the quantitative attribute values of the vertices and the hyperedges) are encoded. Since AHG representation is lucid and transparent for visualization, retrieval and interpretation of different order patterns can be easily achieved. A good number of mature algorithms can be adopted for the implementation of various operations, which help retrieve and/or re-organize the patterns encoded in an AHG.

6.3 Statistical Significant Test by Adjusted Residual

Considering a k-compound event xjs, we would like to determine whether or not xjs is a pattern by testing if the probability, Pr(xjs) is significantly different from the probability of xjs under the assumption that all the variables (attributes) in Xs are independent. If it is true, the compound event xjs is then a pattern which indicates that the primary events involved are likely (or unlikely) to occur together. A hyperedge will be generated to enclose the primary events (vertices) of xjs as a statistically significant association.

Let us denote the observed occurrences of compound event xjs as ox.sbsb.j.spsb.s and its expected occurrences as ex.sbsb.j.spsb.s.

Testing whether or not Pr(xjs) is significantly different from ##EQU5## can be performed by testing the significance of model departure measured by residual

According to 18!, however, Υx.sbsb.j.spsb.s, cannot be employed for evaluating the relative size of the discrepancy between ox.sbsb.j.spsb.s and ex.sbsb.j.spsb.s because the absolute difference may be affected by the marginal totals. To solve this problem, standardized residual defined in 8! is used to scale this difference as below: ##EQU6##

The standardized residuals have the property that it has an asymptotic normal distribution with a mean of approximately zero and a variance less than one. That is: ##EQU7## where vx.sbsb.j.spsb.s is the variance of zx.sbsb.j.spsb.s, and vx.sbsb.j.spsb.s ≦1.

Standardized residual is considered to be of normal distribution only when the asymptotic variance v is close to 1, otherwise, standardized residual has to be adjusted by its variance for a more precise analysis. The adjusted residual can be expressed as: ##EQU8## where cx.sbsb.j.spsb.s is the variance of Υx.sbsb.j.spsb.s. Hence, ##EQU9##

In practice, to calculate adjusted residual, the maximum likelihood estimate of cx.sbsb.j.spsb.s has to be first obtained. If N is fixed in data set D, under the independent assumption, the occurrence of a compound event belongs to a multinomial model. To calculate the expected occurrence of xjs, we have ##EQU10## where M is the sample size and the maximum likelihood estimate of the probability is given by

Pr(X.sub.i =α.sub.i.sup.p)=o.sub.x.sbsb.ip /M. (6)

Since we are testing the significance of departure from independence, we can assume the testing model is a hierarchical model without two or higher order interactivity. This assumption is equivalent to that of which all involved variables are mutually independent. For this kind of hierarchical model, the maximum likelihood estimate of the residual variance always has an explicit solution in the form of: ##EQU11## where e is the estimate of expected occurrence (Eqn. 5), nT(a) is marginal total of a single variable involved, and nV(a) is marginal total of more than one variable.

By Eqn. 5 and Eqn. 7, adjusted residual of a compound event can be calculated. Since adjusted residual follows normal distribution N(0,1), we can easily identify whether a compound event is significant deviated from the independent model. With a given confidence level, 95% for example, if the absolute value of the residual dx.sbsb.j.spsb.s, is greater than the predefined significant level, 1.96 for 95%), then xjs is considered as a pattern. If the true value of dx.sbsb.j.spsb.s exceeds the level, we conclude that the primary events of xjs are "associated" and likely to occur together, with a confidence level of 95%. In this case, xjs is referred to as a positive pattern. If zx.sbsb.j.spsb.s is less than -1.96, we conclude that the primary events are unlikely to co-occur. It is referred to as a negative pattern. This testing can be formalized as:

1. Ho : xjs is random; H1 : xjs is significant;

2. The decision rule has the following form: (|dx.sbsb.j.spsb.s |>threshold)H1

The sign of dx.sbsb.j.spsb.s determines whether xjs is a positive or a negative significant compound event.

Residual analysis in statistics has long been used to test the goodness of fit of data and model. Statisticians try to find a good model to describe the data. But in practice, data are so complicated that a good model may not be found. In this invention, we modify this technique and apply it to detect the significant patterns, not a model for the whole data. To the extend of our knowledge, such technique has not been seen in the application of pattern discovery.

6.4 Technique for Eliminating Non-Informative Candidates

Exhaustive search which is used by many existing approaches may behave well at lower orders or in small problem domains, but not practical when applied to large databases. Therefore, it is crucial that exhaustive search is avoided in real-world applications. Heuristics are introduced here to eliminate statistically insignificant pattern candidates (compound events) as early as possible in the pattern discovery process.

There are essentially two criteria for eliminating impossible pattern candidates. One is for the validation of the significance test and the other is for test of higher order negative patterns.

6.4.1 Validation of the Significance Test

Those events to which statistical testing is no longer valid for higher order patterns cannot be possibly included in the formalization of higher order patterns. Hence, a compound event will not be considered if there are enough evidences indicating that it is either statistically untestable or impossible to be significant.

For a valid statistical significance test of a compound event, the expected occurrence of this event is required to be at least 3 based on the common practice in hypothesis testing for contingency table. That is to say, only when

e.sub.x.sbsb.j.spsb.s ≧ω.sub.e (8)

where ωe ≧3, the test is valid. For a test of a particular cell in a contingency table, this requirement might be even stricter--ωe can be selected as greater than 5.

If the expected occurrence of a compound event xjs is ex.sbsb.j.spsb.s, the expected occurrences of any higher order compound event xir such that xir .OR left.xjs cannot be greater than ex.sbsb.j.spsb.s. Thus, when the expected occurrence of a compound event xjs is less than ωe, those higher order compound events which have xjs as one of their sub-compound events are all statistically untestable, and therefore eliminated from further consideration.

6.4.2 Negative Patterns

When determining whether or not a compound event xjs is a possible component of a higher order pattern, we should realize that there are some differences in handling negatively significant and positively significant associations. If xjs is a negative pattern, whether or not a higher order compound event xir (xir .OR left.xjs) should be tested is decided by the occurrence of xjs.

A negative pattern means that the primary events in this pattern are not likely to occur together. If primary events xip1, and xjp2 never occur together (the occurrence of compound event xip, xjp2 ! is zero) in data set D, the primary events of any compound events containing xip1 and Xjp2 will not occur together either. In the inference process, if we observe anyone of xip1 and xjp2, no more higher order evidence will be necessary to draw the conclusion that the other event will not happen together.

In a general case, especially in the presence of noise, the occurrence of a negative pattern may not be zero. To determine whether or not higher order compound events xir containing negative pattern xjs should be tested, the occurrence of xjs, ox.sbsb.j.spsb.s, should be investigated. Given ex.sbsb.i.spsb.r, to test whether or not adjusted residual dx.sbsb.i.spsb.r is greater (or less) than a threshold is equivalent to testing whether or not ox.sbsb.i.spsb.r is greater (or less) than a correspondent threshold. Defined as the requirement of ox.sbsb.i.spsb.r for xir to be significant, ox.sbsb.i.spsb.r is calculated by ##EQU12## where, cx.sbsb.i.spsb.r is calculated by Eqn. 7 and threshold is a constant according to a fixed confidence level.

Let xjs a pth order negatively significant pattern whose occurrence is ox.sbsb.j.spsb.s. Of all the qth order compound events (q>p) which contain xjs as a sub-compound event, xir has the minimum expectation. If ox.sbsb.j.spsb.s is less than ox.sbsb.i.spsb.r, then it is not necessary to test those compound events whose orders are between p and q. If q is the highest order for the data set, all of the compound events containing xjs will be eliminated from consideration.

When ox.sbsb.j.spsb.s is very small comparing with ex.sbsb.j.spsb.s, it provides very strong evidence that the primary events in xjs are not likely to co-occur. An extreme case happens when ox.sbsb.j.spsb.s is zero. In this case, the occurrence of any higher order compound event xir which contains xjs is also zero, since

That is to say, if we are sure (with high confidence level) that a pattern xjs is negative, all compound events containing xjs cannot be positive patterns. From the view point of inference, higher order negative pattern xir provides no more information than xjs itself. The discovery of negatively significant pattern xjs makes the detection of its associated higher order patterns unnecessary. Hence, none of the compound events containing xjs will be examined.

If xjs is positively significant, situations can be more complicated since the higher order compound events containing xjs may be positively significant, negatively significant, or insignificant. It is difficult to decide whether or not higher order events should be eliminated according to the occurrence of xjs. In this case, only the requirement of expected occurrence applies.

6.5 Pattern Discovery Algorithm

The pattern discovery process can be described by the following steps:

1. Set the initial candidate set C and pattern set P (AHG) to be empty, put all primary events into R, set order O=1;

2. Increment O and generate candidate set C of order O from previous C and primary event set R (C←GenCandidate(C, R));

3. If C is empty, go to Step 6;

4. For each candidate c in C, count its occurrences o and calculate its expected occurrence e. If the expected occurrence is less than a pre-define threshold, remove c from C.

Otherwise, calculate the adjusted residual d of this candidate. If |d| is larger than a confidence level, put c to AHG P. If c is a negative pattern and the occurrence o is less than a pre-defined threshold, also remove c from C;

5. If order O is equal to the highest order in demand, go to Step 6, otherwise, go to Step 2;

6. Output AHG P (all patterns found).

Detecting time-independent patterns and time-dependent patterns shares the same process stated above. The only different is the way of generating pattern candidates. When detecting time-independent patterns, time span is not considered. The process of generating time-independent pattern candidates can be depicted as the following steps:

1. If C is empty and O is not 2, go to Step 5;

2. If C is empty and O is equal to 2, for any two primary events Υ1 and Υ2 in R, such that Υ1 and Υ2 belong to two different variables, construct a compound event c. Add c into C;

3. If C is not empty, let C' be an empty set. For any c in C, select a primary event Υ from R, such that Υ is not a sub-compound event of c. Construct new compound event c'=c+Υ. If c' has not been in C', put c' into C'. Delete c from C;

4. When finished Step 3, rename C' to C;

5. Return C.

For time-dependent pattern detection, we have to consider the time span which interests us. Suppose we are interested in a time span from 0 to T, the process of generating time-dependent pattern candidates is performed as:

1. If C is empty and O is not 2, go to Step 5;

2. If C is empty and O is equal to 2, for any two primary events Υ1 and Υ2 in R, construct compound events Υ1t.sbsb.1, Υ2t.sbsb.2 !, where t1, t2 ε 0,T!. Add them to C;

3. If C is not empty, let C' be an empty set. For any c in C, select a primary event Υ from R. Construct compound event c't =c+Υt, where t ε 0, T! and Υt not in c. If c't (o≦t≦T) has not been in C', put c't into C'. Delete c from C;

4. When finished Step 3, rename C' to C;

5. Return C.

By doing this, we combine the process of detecting time-independent patterns with the process of detecting time-dependent patterns. Domain knowledge can be easily incorporated into the pattern discovery process by making constraints on the selection of primary event and on the combination of compound event. For example, if we are going to classify a set of objects, only those patterns related to the class information are interested. We can oidy detect those patterns containing class information. If domain knowledge says that primary event Υ1 and Υ2 will never happen together, we just add this pattern to the AHG and will not generate pattern candidates containing these two events. In the case of time-dependent pattern discovery, if domain knowledge tells us that only a fixed delay of time t is interesting, we then will not try to detect patterns containing time delay other than t. By imposing such kind of constraints, we can save time for the whole process.

6.6 Inference with Weight of Evidence

The inference of a intelligent system performs three tasks, association, classification and prediction.

To extract associations from an AHG is very straightforward, since every hyperedge in an AHG represents an association among certain number of primary events. If the association is related to a certain attribute, a certain primary event or a set of attributes/events, are interesting, all the hyperedges containing such attribute(s) and/or event(s) are directly extracted from the AHG without any calculation.

With respect to classification and prediction, they can be formulated into one problem. In classification, given a new object, we want to find to which class it belongs, that is, to find the value of the class attribute. In prediction, we have a sequence of objects, the task is to find the value of the next object. Thus, both problems can be seen as to find the missing value of a certain attribute, according to the patterns we have already found.

Suppose that a pattern xjs is associated with the attribute Xi whose value is missing. Since {xjs \xijs } is a subset of {xl \?}, it provides some evidence supporting Xi taking on the value of xijs. Based on mutual information, the weight of evidence provided by xjs in favor of xijs being a plausible value of Xi as opposed to other values is denoted by W(xijs /xijs |xjs \xijs), and defined as follows: ##EQU13##

It may be interpreted as a measure of the difference in the gain of information when Xi takes the value xijs and when it takes some other values, given xjs. W(xijs /xijs |xjs \xijs) is positive if xjs provides positive evidence supporting xijs being a plausible value of Xi, otherwise, it is negative.

In a similar manner, the weights of evidence that are provided by other relevant values of the inference process regarding the predicting attribute can be computed. It must be noted that a negative weight of evidence implies that there is negative evidence against the attribute taking certain value. In other words, it is more likely for this attribute to take another value.

Suppose that the value of an attribute Xi, is missing. It is quite possible that there is more than one statistically significant pattern which is associated with one of Xi 's possible values. Some of them may provide evidences supporting Xi to take a certain value whereas others may provide evidences against it. For an inference process, there is a need for an uncertainty measure to quantitatively combine and compare the positive and negative evidences provided by the observations.

Osteyee's uncertainty measure--the weight of evidence, which is originally defined for applications involving two variables 15! is extended in this invention. A more general weight of evidence measure for high-order reasoning is proposed. It measures the evidence provided by related patterns x1s.spsb.1, . . . , xns.spsb.n in favor of Xi taking the value of xij as as opposed to other values. The definition is: ##EQU15## where O(xij /xij |x12.spsb.1, . . . , xns.spsb.n) is the odds in favor of Xi taking the value of xij as opposed to other values, and defined as: ##EQU16## and O(xij /xij) is the odds in favor of Xi taking the value of zij as opposed to other values, which is defined as: ##EQU17##

The weight of evidence W can therefore be rewritten as: ##EQU18## or equivalently: ##EQU19##

If two patterns have no intersection, we can assume that they are conditionally independent. If x1s.spsb.1, . . . , xns.spsb.n are n disjoint patterns, the weight of evidence is extended to higher orders and can be expressed as: ##EQU20## where xps.spsb.p and xqs.spsb.q satisfy

x.sub.p.sup.s.spsb.p ∩x.sub.q.sup.s.spsb.q =φ, if p≠q, 1≦p,q≦n.

Implictly, it is always assumed that each attribute is of the same importance in characterizing the system. There is no a priori knowledge concerning the interrelation of the attributes in the observed events. If such domain knowledge is available, we can always take into account in the process of calculating the weight of evidence. Higher order statistically significant compound events describe the system's behavior more accurate than lower order events. When calculating the weight of evidence for or against an attribute taking certain value, the highest order compound event should be considered first. The total weight of evidence in support of a certain value given a set of patterns is the maximum sum of individual weight of evidence of non-intersected patterns.

The inference (reasoning) process based on weight of evidence can be summarized as the following steps:

1. Identify the variable X of whose value is going to be predicted;

2. Search AHG for all patterns related to variable X and all available information, such as other attribute values of the same object, or previous occurrence and history of the series, put such patterns into P;

3. If P is empty, set result S to unknown, go to Step 6;

4. For each possible value xi of X, extract from P pattern set Pi in which all patterns are related to the value xi, calculate the weight of evidence ωi in support of xi given Pi, if Pi is empty, skip xi ;

5. Of all weights of evidence. select the maximum one, say ωk, then value xk will be the most plausible value, set S to xk ; if two or more weights of evidence are equal, choose one value xk from them with the maximum probability, set S to xk ;

6. Output S.

The advantage of using weight of evidence as a measure is that negative information can also be considered in the inference process. Since we cannot assume that a data set is complete, negative information is important for correct inference. Most existing methods fail to do this. Another advantage of weight of evidence is its addability. If we observe one than one pattern regarding the same value and they are mutually exclusive, the contribution of each pattern to the value can be summed up. This unified measure is theoretically well defined.