Docsity

Understanding Similarity and Distance Measures in Computational Intelligence - Prof. 1452, Apuntes de Estadística

Toggle sidebar
bg1
1On the Notion of Similarity
in Case Based Reasoning
and Fuzzy Theory
by Hans-Dieter Burkhard and Michael M. Richter
Summary. Notions of similarity and neighborhood play an important
role in informatics. Different disciplines have developed their own
treatment of related measures. We consider this problem under the
viewpoint of Case Based Reasoning and Fuzzy Theory. While distance
and similarity can be considered to be formally equivalent, there exist
some differences concerning their intuitive use which have impact to
the composition of global measuresfrom local ones.
1.1 Motivation
Notions of similarity and neighborhood play an important explicite or implicite
role in a lot of fields in informatics and other disciplines. We may think of e.g.
statistics, classification, machine learning, data mining, information retrieval, or
neural networks. Two of such fields, namely Case Based Reasoning (CBR) and
Fuzzy Theory, are to be considered in this paper.
Similarity itself is not a fixed notion, it depends on the aspects under consid-
eration:
Any two things which are from one point of view similar may be dissim-
ilar from another point of view. (POPPER)
Thus, two people may be similar because of similar faces, or they may be sim-
ilar because of related characters, respectively. Moreover, it is possible to find
similarities between very different things:
An essay is like a fish. (TVERSKY)
(Why: Both have head, body, tail etc.)
Similarity always depends on the underlyingcontexts, and it is often used as
an attempt to handle deeper or hidden relationships between objects from a more
shallow level. Such a deeper relationship is e.g. the usefulness of a case in CBR
1
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13

Vista previa parcial del texto

¡Descarga Understanding Similarity and Distance Measures in Computational Intelligence - Prof. 1452 y más Apuntes en PDF de Estadística solo en Docsity!

On the Notion of Similarity

in Case Based Reasoning

and Fuzzy Theory

by Hans-Dieter Burkhard and Michael M. Richter

Summary. Notions of similarity and neighborhood play an important role in informatics. Different disciplines have developed their own treatment of related measures. We consider this problem under the viewpoint of Case Based Reasoning and Fuzzy Theory. While distance and similarity can be considered to be formally equivalent, there exist some differences concerning their intuitive use which have impact to the composition of global measures from local ones.

1.1 Motivation

Notions of similarity and neighborhood play an important explicite or implicite role in a lot of fields in informatics and other disciplines. We may think of e.g. statistics, classification, machine learning, data mining, information retrieval, or neural networks. Two of such fields, namely Case Based Reasoning (CBR) and Fuzzy Theory, are to be considered in this paper. Similarity itself is not a fixed notion, it depends on the aspects under consid- eration:

Any two things which are from one point of view similar may be dissim- ilar from another point of view. (P OPPER )

Thus, two people may be similar because of similar faces, or they may be sim- ilar because of related characters, respectively. Moreover, it is possible to find similarities between very different things:

An essay is like a fish. (T VERSKY ) (Why: Both have head, body, tail etc.)

Similarity always depends on the underlying contexts, and it is often used as an attempt to handle deeper or hidden relationships between objects from a more shallow level. Such a deeper relationship is e.g. the usefulness of a case in CBR

2 Title of Your Book

for solving a new problem. It is the acceptance of a document in information retrieval as an answer for a query. It is the customer’s satisfaction by a product found in an electronic catalogue. It is present in the matching of linguistic terms in Fuzzy Theory. When talking about similarity, people often consider similarity as a naturally given fixed property. They are not aware that there must have been some choice before: which features are considered for similarity. Thereby, aspects of avail- ability and tractability may play a major role, and aspects of intuitive feeling may play another major role. For the design of systems which exploit some notion of similarity, there ex- ists some freedom in the choice of similarity: When designing similarity based systems, it is useful to start with the underlying purposes. Then the features and relations establishing similarity should be chosen corresponding to the relation- ships of actual interest. The interesting relationship in information retrieval is in fact not the similarity between a query and a document. Instead, the question of interest concerns acceptance : Would the user accept a document as an an- swer to his question? It makes things much more clear when talking about the underlying relationships. But, the actually interesting relationships are often not directly accessible for different reasons. They may be not tractable, or they may be more or less un- predictable (like the user’s expectations about an acceptable document). Here similarity comes into play as a vehicle for the approximation of the really inter- esting things. Thus, we have two aspects for considering similarity: The obvious aspect concerns tractability, availability and intuitivity. But the second aspect, namely the correspondence to the actually interesting relationships is differently treated in different disciplines, and we are going to compare CBR and Fuzzy Theory for their uses of similarity related notions. We assume that the reader is familiar with both CBR and Fuzzy Theory, and we will recall only the notions when needed in the text. Especially we will use the term “query” for the description of a problem which is to be solved using former cases in CBR, or a set of fuzzy rules, respectively. A query is matched against the problem description parts of cases or against the preconditions of the rules. To solve the problem described by the query, the solution parts of best matching cases are adapted or the conclusions of the rules are combined according to their activations. The paper is organized as follows: We start with primary considerations of similarity and distance as related notions. Common axioms for both kinds of measures are discussed. In the following section we consider the composition of global measures from local ones. The relations between fuzzy notions and similarity are considered in Section 1.4. Then the reasoning processes in CBR and in Fuzzy Theory are compared. While distance and similarity can be considered to be formally equivalent, there exist some differences concerning their intuitive meaning in the use of composite measures. This is discussed in Section 1.6, and Section 1.7 provides a related viewpoint for Fuzzy Theory.

4 Title of Your Book

An often used distance measure with S = [0; 1 ) is the Manhattan-Distance :

DIST ([x 1 ; x 2 ; x 3 ]; [y 1 ; y 2 ; y 3 ]) :=

X

i=1; 2 ; 3

jxi yi j: (1.8)

1.2.2 Relations between the Different Notions

There are some relations between these approaches. At first, binary relations RS I M are equivalent to special similarity measures SIM with only the two bi- nary values 0 and 1. Vice versa, similarity relations R (^) S I M can be defined by the “most similar” objects according to a similarity measure SIM. The concept of a nearest neigh- bor is often used for such purposes. We consider a subset C  U (e.g. a case base in CBR). Then c 2 C is called a nearest neighbor of an arbitrary object u 2 U (a query in CBR) if it satisfies the following definition:

NN (^) C (u; c) :, 8 c^0 2 C : SIM (u; c)  SIM (u; c^0 ): (1.9) Equivalently, for a distance measure we can define the nearest neighbor concept by NN (^) C (u; c) :, 8 c^0 2 C : DIST (u; c)  DIST (u; c^0 ): (1.10) In a related way, the concept of the ”‘ k nearest neighbors ”’ is defined. By another common concept, objects u, v are called similar if their degree of similarity exceeds a certain threshold value b:

RS I M (u; v ) := SIM (u; v ) > b: (1.11) Equivalently, for a distance measure we would use DIST (u; v ) < b. Related concepts are basic in CBR: The most (hopefully) useful cases from a case base C are selected according to a query q by such concepts. Extending the concept of a nearest neighbor, we can consider the ordering between the pairs of objects induced by a similarity/distance measure:

O R DS I M (x; y ; u; v ) :, SIM (x; y )  SIM (u; v ); (1.12) O R DD I S T (x; y ; u; v ) :, DIST (x; y )  DIST (u; v ): (1.13) We call two (similarity or distance) measures m 1 and m 2 relationally compatible iff

8 x; y ; u; v 2 U : O R Dm 1 (x; y ; u; v ) , O R Dm 2 (x; y ; u; v ): (1.14) If a subset S of the reals is given, any one-one order inverting mapping f of S to itself induces for a similarity measure with range S a relationally compatible distance measure and vice versa in a natural way. If S = [0; 1] is the range of SIM then f (1) = 0 , and SIM (x; x) = 1 would be translated to DIST (x; x) = 0 for the induced distance measure. In the same way any property of similarity measures can be expressed in terms of distance measures and vice versa. This new expression is, however, not always of a simple character. Nevertheless, in a principle sense both notions are mathematically equivalent. Measures with different ranges can be mapped by related functions f , too.

1 On the Notion of Similarity 5

1.2.3 First Look to Asymmetry and Missing Values

Similarity and distances are usually considered to be symmetrical. We will dis- cuss this point later in detail, but one important fact should be mentioned here. It is due to the usage of similarity/distances. In CBR, a query q is matched against the cases c of the case base C. While q might be (in principle) arbitrarily chosen from U , the cases c are restricted to come from the (usually finite) set C  U. As a consequence, the nearest neighbor relation NN (^) C (u; c) is not symmetrically defined. Moreover, even for u; c 2 C the relation NN (^) C (u; c) is in general not symmetric. Similarly in fuzzy rules, the linguistic terms can be considered as referring to special focal values, and the most queries will match the rules only to some extend. In the consequence, missing values appear in different meanings. A missing value in a case in CBR (as well as an attribute not mentioned in a fuzzy rule) means, that the related attribute was not relevant for that case. On the other hand, an unknown value in a query makes it difficult to find the best matching case.

1.2.4 The Range of the Measures

We assume that the range S of the measures is always a (bounded or unbounded) interval of real numbers. Most of our considerations are related to S = [0; 1] which has two major characteristics:  (^) There is a maximal value for the similarity, and a minimal value for the distance, respectively.  (^) There are no negative values.

A second possibility is an unbounded range, say S = [0; 1 ]. The impact for similarity is some difficulty for defining reflexivity (see below), if there is no maximal similarity value. For the distances the consequence is less dramatic because it only means that there are no maximal distances. A third possibility is the existence of negative values. For distances this is not intuitive, and it would rise difficulties with reflexivity when DIST (x; x) = 0 is not the minimal value. An unwanted consequence could be elements which are not the nearest neighbor of themselves. There are no direct consequences for similarity measures. But for combining global measures from local ones, negative similarity values could be of some interest (cf. Section 1.6).

1.2.5 Common Axioms for the Measures

There are various possible axioms for distance measures as well as for similarity measures in the literature. We discuss a few of them and assume that the range is [0; 1].

Reflexivity

SIM (x; x) = 1 and for distances: DIST (x; x) = 0 : (1.15)

1 On the Notion of Similarity 7

This shows that the triangle inequality is not easy to express if all inverting functions f have to be regarded. For the concrete function f (x) = 1 x we simply get SIM (u; v ) + SIM (v ; w )  1 + SIM (u; w ). As another candidate we might consider the inverted triangle inequality of distances:

SIM (u; w )  SIM (u; v ) + SIM (v ; w ): (1.20)

Together with reflexivity and symmetry, we obtain

1 = SIM (u; u)  SIM (u; v ) + SIM (v ; u) = 2 SIM (u; v ) (1.21)

and therewith SIM (u; v )  0 : 5 for arbitrary u; v. On the other hand,

SIM (u; w )  SIM (u; v ) + SIM (v ; w ) (1.22)

makes problems, too. It would lead to SIM (u; v )  0 : 5 for arbitrary u; v. As a concrete illustration we consider

SIM ([x 1 ; x 2 ]; [y 1 ; y 2 ]) := M in(f 1 ; car d(f i j xi = yi g g: (1.23)

There we have

SIM ([0; 0]; [0; 1]) = SIM ([0; 1]; [1; 1]) = SIM ([0; 0]; [0; 0]) = 1

SIM ([0; 0]; [1; 1]) = SIM ([1; 1]; [0; 0]) = 0 and hence

SIM ([0; 0]; [0; 1]) + SIM ([0; 1]; [1; 1]) > SIM ([0; 0]; [1; 1])

SIM ([0; 0]; [1; 1]) + SIM ([1; 1]; [0; 0]) < SIM ([0; 0]; [0; 0]): If we replace SIM by DIST using an invertion function f with f (0) = 1 and f (1) = 0 , then we have especially

DIST ([0; 0]; [0; 1]) + DIST ([0; 1]; [1; 1]) < DIST ([0; 0]; [1; 1]):

That means that there are intuitive distance measures where the triangle inequal- ity does not hold. It turns out that metrics may be too restrictive and cannot be used for implementing nearest neighbor concepts in certain cases. (Remark: We could slightly modify the example such that it satisfies the “strong” reflexivity as in (1.18), but still misses the triangle inequality). We feel that this observation is important, since many distance based ap- proaches do have in mind a metric. On the other hand, it is always possible to define a relationally compatible metric to a given similarity function SIM : U  U! [0; 1] by:

DIST (u; v ) :=

 0 ; if u = v 1 2 ^ (2^ ^ SIM^ (u;^ v^ ))^ ;^ other^ w^ ise:^

There we have always 12  DIST (u; v )  1 , and hence the triangle inequality must be satisfied.

8 Title of Your Book

1.3 Composite Measures

1.3.1 The Local-Global Principle

We have restricted ourselves to the description of objects (problem descriptions) by real valued vectors u 2 U. Thus we will consider only attribute-value repre- sentations (leaving, e.g., object oriented representations for future discussions). The attributes A 1 ; :::; An constitute the components of our objects (queries: problem descriptions in the cases, preconditions in the fuzzy rules). This forces appropriate connections between the level of the attributes and the level of the objects. The local-global principle for similarities (and distances) is formulated in the following way: There are similarity measures sim (^) i on the domains of the attributes A (^) i (on the reals in our case) and some composition function COMP : R  : : :  R! R such that

SIM ([q 1 ; :::; qn ]; [u 1 ; :::; un ]) = COMP (sim 1 (q 1 ; u 1 ); :::; sim (^) n (qn ; un )): (1.25) The measures sim (^) i are called local measures and SIM is the global measure. A similarity measure SIM is called composite if it can be combined from some local similarity measures as in (1.25). Weighted Hamming measures, i.e. weighted linear functions COMP are pop- ular:

SIM ([q 1 ; :::; qn ]; [u 1 ; :::; un ]) =

X

i=1;:::;n

wi  sim (^) i (qi ; ui ): (1.26)

1.3.2 The Global Monotonicity Axiom

The local-global principle connects the representation language for objects with measures. This gives rise to a new axiom for composite measures which we call the Global Monotonicity Axiom :

SIM (u; v ) > SIM (u; w )! 9 i 2 f 1 ; :::; ng : sim (^) i (ui ; vi ) > sim (^) i (ui ; wi ): (1.27) The axiom states a necessary condition: A higher global similarity must be sup- ported by at least one higher local similarity. There are situations where the monotonicity axiom does not hold. As an ex- ample we adopt the XOR-problem known from neural nets: We consider two boolean-valued attributes and therefore U = f[0; 0]; [0; 1]; [1; 0]; [1; 1]g. The XOR-problem is represented by S I M ([u 1 ; u 2 ]; [v 1 ; v 2 ]) = 1 iff X O R (u 1 ; u 2 ) = X O R (v 1 ; v 2 ), i.e.

SIM ([0; 0]; [1; 1]) = SIM ([0; 1]; [1; 0]) = 1 SIM ([0; 0]; [0; 1]) = SIM ([0; 0]; [1; 0]) = SIM ([1; 1]; [1; 0]) = SIM ([1; 1]; [0; 1]) = 0 :

10 Title of Your Book

1.4 Fuzzy Notions and Similarity

1.4.1 Fuzzy Sets

Fuzzy subsets A of U are denoted by A  (^) f U , and  (^) A : U! [0; 1] is the membership function of A. A fuzzy partition of U into n fuzzy subsets is given by membership functions  1 (x); :::; n (x) such that

8 x 2 U :

X

i=1;:::;n

i (x) = 1 : (1.31)

The classical Boolean operations are replaced by real-valued functions which compute the membership function of a Boolean combination of fuzzy sets from membership values of the arguments. It is common to assume some axiomatic properties of these functions. For our further discussion it is convenient to list two examples.  (^) t -norms f (x; y ) (intended to compute  (^) A\B ): Axioms: (T1) f (x; y ) = f (y ; x) (T2) f (x; f (y ; z )) = f (f (x; y ); z ) (T3) x  x 0 ^ y  y 0! f (x; y )  f (x^0 ; y 0 ) (T4) f (x; 1) = x Typical t-norms are f (x; y ) = min(x; y ) or f (x; y ) = x  y.  (^) co-t-norms f (x; y ) (intended to compute  (^) A[B ): Axioms: (T1), (T2), (T3) and (T4)* f (x; 0) = x Typical co-t-norms are f (x; y ) = max(x; y ) or f (x; y ) = x + y x  y.

Consequences are f (x; 0) = 0 for t-norms, and f (x; 1) = 1 for co-t-norms, respectively. There are other fuzzy combination rules available which are fuzzy versions of general Boolean operators like different types of implication.

1.4.2 Similarities and Fuzzy Sets: First Observations

For any similarity measure SIM over U we define a fuzzy subset SIM  (^) f V := U  U by S I M (u; v ) := SIM (u; v ) (1.32) We can also associate to each u 2 U a fuzzy subset F (^) u f U by

u (v ) := Fu (v ) := SIM (u; v ) (1.33)

where symmetry of SIM implies  (^) u (v ) = v (u). Starting with a fixed SIM , we obtain for each u 2 U some fuzzy subset F (^) u , which describes how U is structured by SIM from the viewpoint of u. This treatment of similarity was essentially introduced in [5], where similarity was treated as a fuzzy equivalence relation with the membership function  (^) S I M from above.

1 On the Notion of Similarity 11

The “similarity class” of u (representing the fuzzy equivalence of u) was in- troduced as ([2]) SIM ; u (v ) = S I M (u; v ): (1.34) Essentially the same is the treatment of fuzzy equality as a fuzzy equivalence relation E (u; v ) f V := U  U: (1.35) If one argument, say u = a, is fixed then this leads to a fuzzy set

Ea (v ) = E (a; v ) f U: (1.36)

Now we can use  (^) u like a measure of usefulness in a case base C. For example, the nearest neighbor relation for C  U reads as

NN (^) C (u; c) , 8 c^0 2 C : u (c)  u (c^0 ) (1.37)

or equivalently

NN (^) C (u; c) , 8 c^0 2 C : S I M (u; c)  S I M (u; c^0 ): (1.38)

These considerations show that we can interpret the basic Case Based Reasoning concepts in terms of fuzzy set terminology. The other direction of an interpretation needs some addition. One aspect is easy. Suppose we have a fuzzy subset S  (^) f V := U  U with related properties of reflexivity ( (^) S (u; u) = 1 ), and symmetry ( (^) S (u; v ) = S (v ; u)) – as far as wanted. Then  (^) S defines obviously a similarity measure. But if we have simply a fuzzy set K  (^) f U then we would need in addition a reference object in order to define a measure. Such a reference object a has to satisfy  (^) K (a) = 1 since we want to have reflexivity for the similarity measure. We call a a focal value for K. Then we can define a similarity measure by

SIM (u; a) = K (u): (1.39)

Suppose that there is a subset C  U such that for each c 2 C we have some fuzzy subset K (^) c f U with membership functions  (^) c (u) satisfying  (^) K (c) = 1. Then we can define a similarity measure on U  C by

SIM (u; c) := c (u) for u 2 U; c 2 C : (1.40)

As an example we consider a partition of U into two (unknown) classes K and U n K. We suppose that the classification of the elements of a case base C  U is known. Then we may regard the fuzzy subsets

Kc f U for c 2 K and K (^) c f U for c 2 U n K (1.41)

as “fuzzy versions” of K and U n K , respectively (i.e. again these are K and U n K from the viewpoint of c). C \ K and C \ U n K can be regarded as prototypes of K and U n K respectively, presented by the case base C.

1 On the Notion of Similarity 13

CBR : The problem description parts of the cases c from the case base have to be considered. They are of the form [c 1 ; :::; cn ] 2 C  U. Matching to a query q = [q 1 ; :::; qn ] consists of computing SIM ([q 1 ; :::; qn ]; [c 1 ; :::; cn ]): If SIM is a composite measure, then it is computed according to (1.25) by

SIM ([q 1 ; :::; qn ]; [c 1 ; :::; cn ]) = COMP (sim 1 (q 1 ; c 1 ); :::; sim (^) n (qn ; cn )): (1.42) Fuzzy Control : The preconditions of a fuzzy rule r j^ are expressed using lin- guistic terms l ji for the attributes A (^) i. For simplicity we can assume, that all n attributes are considered in a rule, which makes formally no problem. Fuzzification is done using membership functions  ji for the linguistic terms l ji , where i 2 f 1 ; :::; ng is the index of attribute A (^) i , and j 2 f 1 ; :::; l g is the index of the fuzzy rule r j^. Each linguistic term l corresponds to some Kl f U. Then we can define a local similarity measure sim (u; a) at the special point a by

sim (u; a) = Kl (u) (1.43)

as in (1.39), where a has to satisfy  (^) Kl (a) = 1. In such a way we have focal values a ji for each linguistic term l ji , which now can be interpreted as “having a value of attribute A (^) i about a ji ”. For each attribute A (^) i we get a similarity measure sim (^) i which is defined over fa^1 i ; :::; ali g  U by (1.43). The values fa j 1 ; :::; ajn g for each fuzzy rule r j^ are representatives of the linguistic terms l ji. They can be considered to as the ”standard case” [a j 1 ; :::; ajn ] which is covered by the rule r j^. We need to have a value a with  (^) Kl (a) = 1 for reasons of reflexivity of sim (^) i. But obviously sim (^) i is not symmetrical because of different ranges of the arguments. Strong reflexivity may also be missing since there may exist different values a with  (^) Kl (a) = 1. Using the similarity measures from above, the activation of a fuzzy rule r j is then computed by a composition function COMP j^ according to fuzzy operations in the form of a composite measure:

ACT j^ ([u 1 ; ::; un ]; [aj 1 ; ::; ajn ]) = COMP j^ (sim 1 (u 1 ; aj 1 ); ::; sim (^) n (un ; ajn )): (1.44)

Again we have a close relationship between both approaches. But in the com- putational details, there are also essential differences. We are going to discuss this matter in the following.

14 Title of Your Book

1.6 Implementing Intuitive Meanings by

Composite Measures

It is a central problem in the design and maintenance of CBR systems to adopt a notion of similarity/distance such that the following assumptions are satisfied:

  1. Similarity between a query and a case implies usefulness.
  2. The similarity is based on a priori known facts.
  3. As cases can be more or less useful for a query, similarity must provide a quantitative measurement.

It starts with the choice of appropriate attributes and ends up with a measure that (intuitively) corresponds to usefulness. Because there is a lot of freedom in design, the choice of the measures appears often as a non-trivial task. Related assumptions have to be met in fuzzy control, but there the design task is much more guided by the ideas of linguistic terms and by the fuzzy operators. Fuzzy rules can easily be related to intuitive meanings. There are two basic choices when constructing similarities/distances:

  1. Appropriate definitions of the local similarities/distances. Since they are di- rectly connected to the attributes, they should have an intuitive impact on the intended usefulness. In the case of linguistic terms the relation is usually obvious.
  2. Appropriate definition of intuitive composition functions. Fuzzy approaches are usually restricted to the use of t-norms and t-co-norms, while CBR al- lows more flexibility for composition functions.

Both global and local monotonicity appear as a good guidance for intuitivity.

1.6.1 Local Measures

Local similarities/distances can be considered as preferences on the local level (in correspondence to global preferences by the global monotonicity axiom). We have considered local measures ranging over [0; 1], where 0 indicates min- imal similarity/distance, and 1 indicates maximal similarity/distance. Minimal similarity corresponds to maximal distance and vice versa. The intuitive meaning of maximal similarity is maximal preference (identity on the local level: strong reflexivity, or at least “as good as identity” : reflexivity). The intuitive meaning of minimal similarity is not so obvious. It could mean ”no impact to global similarity” (if weighted sums are used for composition), but it could also mean “global similarity has to be minimal” (if t-norms are used). The intuitive meaning of minimal distance is the same as for maximal sim- ilarity: maximal preference on the local level. The intuitive meaning of maxi- mal distance is again not so obvious, but the interpretation differs from that for minimal similarity: It could mean a “considerable impact to global distance (if weighted sums are used for composition), and it could mean “global distance has to be maximal” (if t-co-norms are used), respectively.

16 Title of Your Book

In the consequence we need different approaches for similarity based retrieval strategies cf. [1]: Accumulation for rejection allows for pruning strategies as it is used in (top-down) decision trees. Accumulation for acceptance permits (bottom-up) net-like procedures which collect local contributions for similarity.

1.7 Accumulation of Similarities in Fuzzy Theory

Suppose now we represent the local measure by fuzzy sets as indicated above. We remark that although a local measure is concerned with a single attribute it can still be regarded as a measure on all of U (usually not a very good one). Strictly speaking, the combination of local measures extends the local measures to the product space. In the terminology of fuzzy sets then a combination function applied to mem- bership functions is needed. Suppose we want to accumulate sim 1 and sim (^2) where SIM 1  (^) f V and SIM 2  (^) f V are the corresponding fuzzy sets. At a first glance the phrase “look for the accumulation of sim 1 and sim 2 ” would ask for the fuzzy intersection of SIM 1 and SIM 2 and would therefore require the application of some t-norm. The situation is, however, somewhat more involved which is due to the fact that it is not clear what we mean by the “accumulation of similarities”. There are basically two ways to think of such an accumulation as discussed above: From the viewpoint of similarity and from the viewpoint of distances, respectively, which we will reformulate as two types concerning some “equivalence”.

Type 1 : Each measure contributes a nonnegative evidence to the proposition that two elements a^ and^ b^ are equivalent.^ sim^ (a;^ b)^ =^0 contributes just nothing, and sim (a; b) = 1 guarantees for sure that a and b are equivalent. Type 2 : Each measure contributes also a negative evidence to the proposition that a and b are equivalent. sim (a; b) = 0 guarantees that a and b are not equivalent.

If we have several measures (e.g. several local measures) then some may be of type 1 and others of type 2. The standard similarity measures (e.g. weighted Hamming measures and their variations) assume all type 1 because otherwise negative weight factors occur, while Hamming distances favor 2. Difficulties arise if measures of type 1 and type 2 occur in the same context (see below). In terms of fuzzy operations we can state the following: Type 1 : For the accumulation of sim 1 , sim 2 of type 1 some co-t-norm f is applied to SIM 1 and SIM 2. Type 2 : For accumulating sim 1 , sim 2 of type 2 some t-norm f is applied to SIM 1 and SIM 2. It is easy to see that at least on the present level of discussion the axioms (T1) - (T3), (T4) and (T4*) are meaningful. They do not cover, however, all situations discussed so far. If we consider fuzzy sets SIM derived from weighted Ham- ming measures, then axiom (T1) fails, i.e. conjunction and disjunction are not

1 On the Notion of Similarity 17

commutative. This means that fuzzy sets coming from very common measures in CBR need to be treated in a more generalized manner. Accumulating similarities of type 1 has the consequence that even small con- tributions can only add something in favor for the similarity; the missing part is regarded as ignorance and not automatically as a contribution to the opposite. This point of view interprets similarities of x and y as evidences about the event that x and y are equivalent in the sense of Dempster - Shafer. This is discussed in [4]. The viewpoint of measures of type 2 is basically that of probability (although this is for many situations a too narrow view): The similarity of x and y repre- sents the probability that x and y are equivalent. A consequence is that indepen- dent contributions to a similarity are combined multiplicatively. Fuzzy t-norms are in this context more related to probabilities and co-t-norms are more related to evidences. A problem arises when sim 1 is of type 1 and sim 2 is of type 2. At first, a nonsolvable conflict arises when sim 1 (a; b) = 1 and sim 2 (a; b) = 0 , and in this case we have a contradiction. As a consequence, the accumulation of sim (^1) and sim 2 should be undefined. In evidence theory an analogous contradiction occurs if one evidence says with certainty 1 that a  (^) f U n K and another ev- idences guarantees that a  (^) f K. Here again the accumulation of evidences is not defined. Our above considerations suggest that  (^) sim 1 should be treated from the additive point of view.  (^) sim 2 should be treated from the multiplicative point of view.

From the view point of fuzzy sets  (^) sim 1 asks for the application of a co-t-norm.  (^) sim 2 asks for the application of a t-norm.

Here we have a related difficulty. One way is to apply one of the fuzzy versions of other Boolean operators (in particular employing negation or some of the various forms of implication).

1.8 Conclusions

There are different approaches to deal with “problem solving by experience”, i.e. by referring to past situations. Reasoning by experience is an alternative for situations where exact computations are not possible. Reasons may be a lack of exact knowledge (missing formulae etc.) as well as intractability of exact algo- rithms. Such approaches are established in different disciplines. The basis are collections of related cases, and most disciplines try to extract generalizations from such case collections (in the form of rules, clusters, decision trees etc.

  • note that even the retrieval structures in CBR provide such generalizations). Thereby, the knowledge is compiled to a more dense description using congre- gations of “similar cases”. Afterwards in later applications, a new problem has to be matched against these descriptions using “similarity” once again.

References

[1] Burkhard, H. D. (1998) Extending some Concepts of CBR – Foundations of Case Re- trieval Nets. In: Case-Based Reasoning Technology: From Foundations to Applications. (ed. M.Lenz, B.Bartsch-Sp¨orl, H.D.Burkhard, S.Wess), LNAI 1400, Springer-Verlag 1998, 17-50. [2] Klawohn, F., Gebhardt, J., Kruse, R. (1995) Fuzzy Control on the Basis of Equality Relations with an Example from Idle Speed Control. IEEE Transactions on Fuzzy Systems 3(1995)3, 336-350. [3] Mitchell, T. M. (1997) Machine Learning. McGraw-Hill, 1997. [4] Richter, M. M. (1995) On the Notion of Similarity in Case-Based Reasoning. In: Mathemati- cal and Statistical Methods in Artificial Intelligence (ed. G.della Riccia, R.Kruse, R.Viertel), Springer-Verlag 1995, 171-184. [5] Zadeh, L. (1971) Similarity Relations and Fuzzy Orderings. Inf.Sci.3(1971), 177-200.