Fuzzy Logic: Lofti A. Zadeh University of California, Berkeley

You might also like

You are on page 1of 11

Fuzzy Logic

Lofti A. Zadeh
University of California, Berkeley

ogic, according to Webster’s dic- First, the meaning of a lexically imprecise


tionary, is the science of the nor- proposition is represented as an elastic
mative formal principles of constraint on a variable; and second, the
reasoning. In this sense, fuzzy logic is con- Fuzzy logic - the answer to a query is deduced through a
cerned with the formal principles of propagation of elastic constraints.
approximate reasoning, with precise
logic underlying
During the past several years, fuzzy
reasoning viewed as a limiting case. approximate, rather logic has found numerous applications in
In more specific terms, what is central fields ranging from finance to earthquake
about fuzzy logic is that, unlike classical than exact, modes of engineering. But what is striking is that its
logical systems, it aims at modeling the
imprecise modes of reasoning that play an
reasoning - is finding most important and visible application
today is in a realm not anticipated when
essential role in the remarkable human applications that fuzzy logic was conceived, namely, the
ability to make rational decisions in an realm of fuzzy-logic-based process con-
environment of uncertainty and impreci- range from process trol. The basic idea underlying fuzzy logic
sion. This ability depends, in turn, on our control to medical control was suggested in notes published
ability to infer an approximate answer to in 1968 and 1972l,* and described in
a question based on a store of knowledge diagnosis. greater detail in 1973.3 The first imple-
that is inexact, incomplete, or not totally mentation was pioneered by Mamdani and
reliable. For example: Assilian in 19744 in connection with the
(1) Usually it takes about an hour to regulation of a steam engine. In the ensu-
drive from Berkeley to Stanford and about ing years, once the basic idea underlying
half an hour to drive from Stanford to San fuzzy logic control became well under-
Jose. How long would it take to drive from lems of this type. First, they do not provide stood, many applications followed. In
Berkeley to San Jose via Stanford? a system for representing the meaning of Japan, in particular, the use of fuzzy logic
(2) Most of those who live in Belvedere propositions expressed in a natural lan- in control processes is being pursued in
have high incomes. It is probable that guage when the meaning is imprecise; and many application areas, among them
Mary lives in Belvedere. What can be said second, in those cases in which the mean- automatic train operation (Hitachi),’
about Mary’s income? ing can be represented symbolically in a vehicle control (Sugeno Laboratory at
(3) Slimness is attractive. Carol is slim. meaning representation language, for Tokyo Institute of Technology),’ robot
Is Carol attractive? example, a semantic network or a control (Hirota Laboratory at Hosei Uni-
(4) Brian is much taller than most of his conceptual-dependency graph, there is no versity),’ speech recognition (Ricoh),’
close friends. How tall is Brian? mechanism for inference. universal controller (Fuji),’ and stabiliza-
There are two main reasons why classi- As will be seen, fuzzy logic addresses tion control (Yamakawa Laboratory at
cal logical systems cannot cope with prob- these problems in the following ways. Kumamoto U n i v e r ~ i t y ) . More
~ about

April 1988 00l8-9162/88/0400-0083$0l.00 1988 IEEE 83


usually (snow is white) nonfuzzy subset of the universe of dis-
course. In fuzzy logic, the predicates may
In this proposition, “usually” plays the be crisp-for example, “ m o r t a l , ”
role of a fuzzy proportion of the form “even,” and “father of”-or, more
shown in Figure 1. generally, fuzzy-for example, “ill,”
The importance of dispositional logic “tired, ” “large,” “tall, ” ‘‘much heav-
stems from the fact that most of what is ier,” and “friend of.”
usually referred to as common sense (3) Two-valued as well as multivalued
knowledge may be viewed as a collection logics allow only two quantifiers: “all”
of dispositions. Thus, the main concern of and “some.” By contrast, fuzzy logic
dispositional logic lies in the development allows, in addition, the use of fuzzy quan-
of rules of inference from common sense tifiers exemplified by “most,” “many,”
I
0 0.5 0.8 1 v knowledge. “several,” “few,” “much of,” “fre-
In what follows, I present a condensed quently,’’ “occasionally,” “about ten,”
exposition of some basic ideas underlying and so on. Such quantifiers may be inter-
Figure 1. Representation of “usually” fuzzy logic and describe some representa- preted as fuzzy numbers that provide an
as a fuzzy proportion. tive applications. More detailed informa- imprecise characterization of the cardinal-
tion regarding fuzzy logic and its ity of one or more fuzzy or nonfuzzy sets.
applications may be found in the cited In this perspective, a fuzzy quantifier may
literature. be viewed as a second-order fuzzy predi-
cate. Based on this view, fuzzy quantifiers
may be used to represent the meaning of
Basic principles propositions containing fuzzy probabili-
some of these projects will be said in the ties and thereby make it possible to manip-
section dealing with applications. Fuzzy logic may be viewed as an exten- ulate probabilities within fuzzy logic.
In most of the current applications of sion of multivalued logic. Its uses and (4) Fuzzy logic provides a method for
fuzzy logic, software is employed as a objectives, however, are quite different. representing the meaning of both non-
medium for the implementation of fuzzy Thus, the fact that fuzzy logic deals with fuzzy and fuzzy predicate-modifiers exem-
algorithms and control rules. What is approximate rather than precise modes of plified by “not,” “very,” “more or less,”
clear, however, is that it would be cheaper reasoning implies that, in general, the “extremely,” “slightly,” “much,” “a lit-
and more effective to use fuzzy logic chips chains of reasoning in fuzzy logic are short tle,” and so on. This, in turn, leads to a
and, eventually, fuzzy computers. The in length, and rigor does not play as impor- system for computing with linguistic var-
first logic chip was developed by Togai and tant a role as it does in classical logical sys- i a b l e ~that
, ~ is, variables whose values are
Watanabe at Bell Telephone Laboratories tems. In a nutshell, in fuzzy logic words or sentences in a natural or synthetic
in 1985, and it is likely to become available everything, including truth, is a matter of language. For example, “Age” is a linguis-
for commercial use in 1988 or 1989. On the degree. tic variable when its values are assumed to
heels of this important development came The greater expressive power of fuzzy be “young,” “old,” “very young,” “not
the announcement of a fuzzy computer logic derives from the fact that it contains very old,” and so forth. More about lin-
designed by Yamakawa at Kumamoto as special cases not only the classical two- guistic variables will be said at a later
University. These developments on the valued and multivalued logical systems but point.
hardware front may lead to an expanded also probability theory and probabilistic (5) In two-valued logical systems, a
use of fuzzy logic not only in industrial logic. The main features of fuzzy logic that propositionp may be qualified, principally
applications but, more generally, in differentiate it from traditional logical sys- by associating withp a truth value, “true”
knowledge-based systems in which the tems are the following: or “false”; a modal operator such as
deduction of an answer to a query requires (1) In two-valued logical systems, a “possible” or “necessary”; and an inten-
the inference machinery of fuzzy logic. propositionp is either true or false. In mul- sional operator such as “know” or
One important branch of fuzzy logic tivalued logical systems, a proposition “believe.” Fuzzy logic has three principal
may be called dispositional logic. This may be true or false or have an intermedi- modes of qualification:
logic, as its name implies, deals with dis- ate truth value, which may be an element truth-qualification, as in
positions, that is, propositions that are of a finite or infinite truth value set T. In (Mary is young) is not quite true,
preponderantly but not necessarily always fuzzy logic, the truth values are allowed to in which the qualified proposition
true. For example, “snow is white” is a range over the fuzzy subsets of T. For is (Mary is young) and the qualify-
disposition, as are the propositions example, if T i s the unit interval, then a ing truth value is “not quite true”;
“Swedes are blond” and “high quality is truth value in fuzzy logic, for example, probability-qualification, as in
expensive.” A disposition may be viewed “very true,” may be interpreted as a fuzzy
(Mary is young) is unlikely,
as a usuality-qualified proposition in subset of the unit interval. In this sense, a
which the qualifying quantifier “usually” fuzzy truth value may be viewed as an in which the qualifying fuzzy prob-
is implicit rather than explicit. In this imprecise characterization of a numerical ability is “unlikely”; and
sense, the disposition “snow is white” may truth value. possibility-qualification, as in
be viewed as the result of suppressing the (2) The predicates in two-valued logic (Mary is young) is almost
fuzzy quantifier “usually” in the usuality- are constrained to be crisp in the sense that impossible,
qualified proposition the denotation of a predicate must be a in which the qualifying fuzzy possi-

84 COMPUTER
bility is “almost impossible.” 1, . . ., n , is the domain of X;. Represen- membership of U in TALL or, equiva-
An important issue in fuzzy logic relates tation o f p in its canonical form requires, lently, the degree to which a numerical
to inference from qualified propositions, in general, the construction of an explana- height U satisfies the constraint induced by
especially from probability-qualified tory database and a test procedure that the relation TALL.
propositions. This issue is of central tests and aggregates the test scores Whenp is a conditional proposition, its
importance in the management of uncer- associated with the elastic constraints C1, canonical form may be expressed as “ Yis
tainty in expert systems and in the formali- . . ., c k . 6 Bif XisA,” implying thatpinduces acon-
zation of common sense reasoning. In the In more concrete terms, the canonical ditional possibility distribution of Ygiven
latter, it’s important to note the close con- form of p implies that the possibility X , written as ll(ylm. In fuzzy logic, nlylm
nection between probability-qualification distribution6 of X i s equal t o A-that is, may be defined in a variety of ways,’
and usuality-qualification and the role among which is a definition consistent
played by fuzzy quantifiers. For example, with the definition of implication in
the disposition Lakasiewicz’s LAleppho logic. In this case,
which in turn implies that the conditional possibility distribution
Swedes are blond function, n(yIx),which defines n(yim,may
Poss{X=u} = pa(u), U E U be expressed as
may be interpreted as
where pA is the membership function of A
most Swedes are blond; and Poss{X= U } is the possibility that X
may take U as its value. Thus, when the
or, equivalently, as meaning o f p is represented in the form of
Equation 1, it signifies that p induces a where
(Swede is blond) is likely, possibility distribution n, that is equal to
A , with A playing the role of an elastic n(Ylx)(u,
A Poss{X=u, Y = v J
v)=
where “likely” is a fuzzy probability that constraint on a variable X that is implicit
is numerically equal to the fuzzy quantifier i n p . In effect, the possibility distribution pA and pa denote the membership func-
“most”; or, equivalently, as of X , nx, is the set of possible values of tions of A and B, respectively; and A
X , with the understanding that possibility denotes the operator min.
usually (a Swede is blond), is a matter of degree. Viewed in this per- When p is a quantified proposition of
spective, a proposition p constrains the the form
where “usually” qualifies the proposition possible values that X can take and thus
“a Swede is blond.” defines its possibility distribution. This p 4 Q A’Sare B‘S
As alluded earlier, inference from implies that the meaning o f p is defined by
propositions of this type is a main concern (1) identifying the variable that is con- for example,
of dispositional logic. More about this strained and (2) characterizing the con-
logic will be said at a later point. straint to which the variable is subjected p A most tall men are not very fat
through its possibility distribution. Note
that Equation 1 asserts that the possibility where Q is a fuzzy quantifier and A and B
Meaning representation that Xcan take U as its value is numerically are fuzzy predicates, the constrained var-
and inference equal to the grade of membership, p A ( u ) , iable, X , is the proportion of B’s in A’s,
of u in A . with Q representing an elastic constraint
A basic idea serving as a point of depar- As an illustration, consider the propo- on X . More specifically, if Uis a finite set
ture in fuzzy logic is that a proposition p sition {U,,. . . , U,,,}, the proportion of B‘s in
in a natural or synthetic language may be A‘s is defined as the relative sigma-count
viewed as a collection of elastic con- p A John is tall
straints, C,, . . . , ck, which restrict the 1PA@,) A PB(U,)
values of a collection of variables X = in which the symbol1 should be read as ZCount @ / A ) = ’ /AA(u,)
(3)
(Xl, . . ., Xn).6In general, the constraints “denotes” or “is equal to by definition.”
as well as the variables they constrain are In this case, X = Height(John), A = j = 1,. . . , m
implicit rather than explicit in p . Viewed TALL, and the canonical form o f p reads
in this perspective, representation of the where pa(u,) and pB(u,) denote the grades
meaning of p is, in essence, a process by Height(John) is TALL of membership of uj in A and B , respec-
which the implicit constraints and vari- tively. Thus, expressed in its canonical
ables i n p are made explicit. In fuzzy logic, where the fuzzy relation TALL is in upper- form, Equation 3 may be written as
this is accomplished by representing p in case letters to underscore that it plays the
the so-called canonical form role of a constraint in the canonical form. zCount(B/A) is Q
From the canonical form, it follows that
p-+XisA which places in evidence the constrained
Poss {Height (John) = U } = ~TALL(u) variable, X, i n p and the elastic constraint,
in which A is a fuzzy predicate or, equiva- Q, to which X i s subjected. Note that X i s
lently, an n-ary fuzzy relation in U, where where /ATALL is the membership function the relative sigma-count of B in A .
U = U, x U2 x . . . x U”, and U;, i = of TALL and ~ T A L L ( u ) is the grade of The concept of a canonical form pro-

April 1988 85
1 1 expressed as the inference rule

QI A‘s are B’s (5)


Q2 ( A and B)’s are C‘s
(QI 63 Qz) A’s are ( B and C)’s

in which Q I and Q2 are fuzzy quantifiers,


A , B , and C a r e fuzzy predicates, and Q1
Q2
€3 Q2 is the product of the fuzzy numbers
Q1and Qz in fuzzy arithmetic.” (See Fig-
ure 2 ) . For example, as a special case of
Equation 5 , we may write
most students are single
a little more than a half of single
Figure 2. Representation of fuzzy quantifiers in the intersection/product syllogism. students are
(most €3 a little more than a half) of
students are single and male

Since the intersection of B and Cis con-


tained in C, the following corollary of
vides an effective framework for formulat- constrained variables X I , . . . ,X,, are the Equation 5 is its immediate consequence.
ing the problem of inference in expert same for all propositions in KB since the
systems. Specifically, consider a knowl- set { X I ,. . . , X,,} may be taken to be the QI A’s are B‘s (6)
edge base, K B , which consists of a collec- union of the constrained variables for each 0, ( A and BYs are C‘s
I- ~

tion of propositions { p l , . . . , p N } . proposition.


Now suppose that we are interested in
2 (Ql 63 (22) A‘s are C’s
Typically, a constituent proposition, p,, i ~.

= 1, . . . , N,may be (1) a fact that may inferring the value of a specified function
be expressed in a canonical form as “Xis f(X1, . . . ,X,,), f: U -,V , of the vari- where the fuzzy number 2 (Q1 63 Q2)
A” or (2) a rule that may be expressed in ables constrained by the knowledge base. should be read as “at least (Q163 e’).” In
a canonical form as “ Y is B,” if “X is Because of the incompleteness and impre- particular, if the fuzzy quantifiers Q1and
cision of the information resident in K B , Q2 are monotone increasing (for example,
A,.” More generally, both facts and rules
may be probability-qualified or, equiva- what we can deduce, in general, is not the when “ Q I = Q2 ! !most”), then
lently, expressed as quantified proposi- value o f f ( X l , . . . , X,,) but its possibility
tions. For example, a rule of the general distribution, n,. By employing the exten-
form “QA’s are B‘s” may be interpreted sion principle,’ it can be shown that the
as the probability-qualified proposition ( X possibility distribution function of f is and Equation 6 becomes
is B if X i s A ) is A, where A is a fuzzy prob- given by the solution of the nonlinear
ability whose denotation as a fuzzy subset program Q I A‘s are B’s (7)
of the unit interval is the same as that of Q2 ( A and B)’s are C‘s
the fuzzy quantifier Q and X i s chosen at (Q1 63 Q2)A’s are C’s
random in U. . . . ,U,>A
mtx,,. ,x,,)(U,,
Now ifp, induces a possibility distribu- ... Furthermore, if B is a subset of A , then A
tion ili;rl, J,,), where X,, . . . , X,, are and B = B , and Equation 7 reduces to the
the variables constrained by p , , then the A nkI, , x,,)( ~ 1 , ... 9 chaining rule
possibility distribution n, which
,x,,),
is induced by the totality of propositions subject to the constraint QI A‘s are E’s
in KB is given by the intersection3 of the Q2 B’s are C’s
nix1, .X,). That is, (QI 63 Q2)A’s are C’s
whereuJE UJ, i = 1 , . . . , n, and v E V.
The reduction to the solution of a non- For example,
linear program constitutes the principal
tool for inference in fuzzy logic. most students are undergraduates
or, equivalently, most undergraduates are young
Fuzzy syllogisms. A basic fuzzy syllo- most‘ students are young
gism in fuzzy logic that is of considerable
relevance to the rules of combination of where “most’” represents the product of
evidence in expert systems is the intersec- the fuzzy number “most” with itself (see
is the possibility distribution
n ( x l , ,) , , ,
, , tionlproduct syllogism-a syllogism that Figure 3).
function of ,fl, ,?,). Note that there is
, , , serves as a rule of inference for quantified What is important to observe is that the
no loss of generality in assuming that the propositions.’ This syllogism may be chaining rule expressed by Equation 8

86 COMPUTER
serves the same purpose as the chaining containment of B in A and the monotonic-
rules in Mycin, Prospector, and other ity of Ql and Q2are conditions for robust-
probability-based expert systems. How- ness in the case of the intersection/product
ever, Equation 8 is formulated in terms of syllogism.
fuzzy quantifiers rather than numerical Another basic syllogism is the conse-
probabilities or certainty factors, and it is quent conjunction sylIogism
a logical consequence of the concept of a
relative sigma-count in fuzzy logic. Fur- QI A’s are B’s (9)
thermore, the chaining rule (Equation 8) Q2 A’s are C’s
is robust in the sense that if Q1and Q2are Q A’s are ( B and C)’s
close to unity, so is their product QI C3 Q 2 .
More specifically, if QI and Q2 are where
expressed as

in which the operators a,Q, e, 0, and the Figure 3. Representation of “most”


where E~ and c2 are small fuzzy numbers, inequality 5 are the extensions of A , V, and “most2.”
then, to a first approximation, Q may be +, -, and 5 ,respectively, to fuzzy
expressed as numbers.
The consequent conjunction syllogism
plays the same role in fuzzy logic as the rule ties and certainty factors are real numbers,
of combination of evidence for conjunc- in the consequent conjunction syllogism
An important issue concerns the general tive hypotheses does in Mycin and the fuzzy quantifiers are fuzzy numbers.
properties QI, Q2,A , B , and C must have Prospector.” However, whereas in Mycin As can be seen from the result expressed by
to ensure robustness. As shown above, the and Prospector the qualifying probabili- Equation 9, the conclusion yielded by the

Inference with fuzzy probabilities


An example of an important problem to which the reduction linear program, it can be shown that, in general, the inference
to a nonlinear program may be applied is the following. process is not compositional if the Ai and A are numerical prob-
Assume that from a knowledge base K B = { p , , . . . , p N }in abilities. This result calls into question the validity of the rules
which the constituent propositions are true with probability of combination of evidence in those expert systems in which
one, we can infer a proposition q which, like the premises, is the certainty factor of the conclusion is expressed as a func-
true with probability one. Now suppose that each p, in K 6 is tion of the certainty factors of the premises. However, com-
replaced with a probability-qualified proposition “p,*bp, is A,,” positionality does hold, in general, if the A, and I are assumed
in which A, is a fuzzy probability. For example to be fuzzy probabilities, for this allows the probability of q to
be interval-valuedwhen the A, are numerical probabilities,
p,! x is small which is consistent with known results in inductive logic.
Another important conclusion relating to the robustness of
and the inference process is that, in general, robustness does not
hold without some restrictive assumptions on the premises.
p , * i X is small is very likely For example, the brittleness of the transitivity of implication is
an instance of the lack of robustness when no assumptions
As a result of the qualification of the p,, the conclusion, q, will are made regarding the fuzzy predicates A, 6,and C. On the
also be a probability-qualified proposition that may be expressed other hand, if in the inference schema
as
XisA
q‘ = qisA Y is 6 if X is A
YisB
in which A is a fuzzy probability. The problem is to determine A
as a function of the A,, if such a function exists. A special case the major premise is replaced by “X is A is probable,” where
of this problem, which is of particular relevanceto the manage- “probable” is a fuzzy probability close to unity, then it can be
ment of uncertainty in expert systems, is one in which the shown that, under mildly restrictive assumptions on A, the
fuzzy probabilities Ai are close to unity. We shall say that the resulting conclusion may be expressed as “ Y is B is 2 proba-
inference process is compositional if A can be expressed as a ble,” where ‘‘2probable” is a fuzzy probability that, as a fuzzy
function of the A,; it is robust if whenever the A, are close to number, is greater than or equal to the fuzzy number “proba-
unity, so is A. ble.” In this case, then, robustness does hold, for if “probable”
By reducing the determination of A to the solution of a non- is close to unity, so is ‘‘2probable.”

April 1988 87
application of fuzzy logic to the premises Mycin, Prospector, and related systems is ZCount ( C / A n B ) =
in question is both robust and composi- that the items of evidence are conditionally ECount ( C I A ) ZCount ( C / B ) d
tional. independent, given the hypothesis (and its
A more complex problem is presented complement). That is, where the factor d is expressed by
by what in Mycin and Prospector cor-
responds to the conjunctive combination t c o u n t ( A )Z c o u n t ( B )
of evidence. Stated in terms of quantified d = (12)
premises, the inference rule in question where P (E,,E2 1 H ) is the joint probabil- t c o u n t (A n B ) t c o u n t (c)
may be expressed as ity of El and E,, given the hypothesis H
and P ( E , I H ) and P (E21 H ) are the con- Inspection of Equation 12 shows that
Q1A‘s are C’s ditional probabilities of E , given H and the assumption expressed by Eqaution 11
O7B’s are C‘s E2 given H , respectively. Expressed in does not ensure the compositionality of Q.
However, it can be shown that composi-
~

Q ( A and B)‘s are C’s terms of the relative sigma-counts, this


assumption may be written as tionality can be achieved through the use
of the concept of a relative esigma-count,
where the value of Q is to be determined.
which is defined as
T o place in evidence the symmetry
between Equation 9 and Equation 10, we
shall refer to the rule in question as the
antecedent conjunction syllogism. where n denotes the intersection of fuzzy
sets.3
It can readily be shown that, without To determine the value of Q in Equation where +?
denotes the negation of B. The
any restrictive assumptions on Q,, Q2, A , 10 we have to compute the relative sigma- use of esigma-counts in place of sigma-
E , and C, there is nothing that can be said count of Cin A fl B. It can be verified that, counts is analogous to the use of odds
about Q, which is equivalent to saying that under the assumption (Equation 1 l ) , the instead of probabilities in Prospector, and
“Q = none to all.” A basic assumption in sigma-count in question is given by it serves the same purpose.

Interpolation
An important problem that arises in the operation of any consistency, yf,, is defined as
rule-basedsystem is the following. Suppose the user supplies
a fact that, in its canonical form, may be expressed as “X is Yl,
A= SUP (R,l n RI)
A,” where A is a fuzzy or nonfuzzy predicate. Furthermore, sup- = (Me,, A pR,
pose that there is no conditional rule in K 6 whose antecedent
matches A exactly. The question arises: Which rules should in which pe and pe are the membership functions of R, and R,
be executed and how should their results be combined? respectivelv; U, is dgeneric element of U,;and the supremum
An approach to this problem, sketched in Reference 8, is taken over U,.
involves the use of an interpolation technique in fuzzy logic Next, we compute the overall degree of consistency, Y,, of
which requires a computation of the degree of partial match the input n-tuple ( R , , . . . , R,) with the i t h row of R, i = 1,. . . ,
between the user-suppliedfact and the rows of a decision m, by employing A (min) as the aggregation operator. Thus,
table. More specifically, suppose that upon translation into
their canonical forms, a group of propositions in K6 may be Y, = Y,I A Yi2 A ... A Ym
expressed as a fuzzy relation of the form
which implies that y , may be interpreted as a conservative
measure of agreement between the input n-tuple (R,, . . . , R,)
and the ith-row n-tuple (R,,, . . . , R,,). Then, employing y, as a
weighting coefficient, the desired expression for X,,, may be
written as a “linear” combination
X,+, = ~1 A . , . + Ym
Z1 i- A Z,,,

in which the entries are fuzzy sets; the input variables are X,,
in which + denotes the union, and Y, A z, is a fuzzy set defined
. . . , X,, with domains U,,.. . , U,;and the output variable is by
X,+,, with domain U,,,.The problem is: Given an input n-tuple
p liui
(U,+,) = Yi A pz, ( U i + r ) , i = 1, . . . v m
( R , , . . . , R,), in which R, i = 1, . . . , n, is a fuzzy subset of U,,
what is the value of X,,, expressed as a fuzzy subset of U,,,? The above approach ceases to be effective, however, when R
A possible approach to the problem is to compute for each is a sparse relation in the sense that no row of R has a high
pair (R,,, R,) the degree of consistency of the input R, with the degree of consistency with the input n-tuple. For such cases,
R,, element of R, i = 1,. . . , m , i = 1,. . . , n. The degree of a more general interpolation technique has to be employed.

88 COMPUTER
Basic rules of inference where PYOUNC and OLD are, respectively, of R and the supremum is taken over v E
the membership functions of YOUNG and V.
One distinguishing characteristic of OLD, and the universe of discourse is the
fuzzy logic is that premises and conclu- interval [0, 1001. Compositional rule.
sions in an inference rule are generally Viewed in a different perspective, the
Xis A
expressed in canonical form. This repre- entailment principle in fuzzy logic may be (X, Y ) i s R
sentation places in evidence the fact that regarded as a generalization to fuzzy sets
of the inheritance principle widely used in YisA 0 R
each premise is a constraint on a variable
and that the conclusion is an induced con- knowledge representation systems. More
specifically, if the proposition “ X i s A ” is where A o R , the composition of the
straint computed through a process of
interpreted as “X has property A ,” then unary relation A with the binary relation
constraint propagation - a process that,
the conclusion “ X is B” may be inter- R , is defined by
in general, reduces to the solution of a non-
linear program. The following briefly preted as “X has property B,” where B is
presents - without derivation - some of any superset of A. In other words, X
the basic inference rules in fuzzy logic. inherits property B if B is a superset of A .
Most of these rules can be deduced from Among other categorical rules that play The compositional rule of inference may
the basic inference rule expressed by Equa- a basic role in fuzzy logic are the follow- be viewed as a combination of the con-
tion 4. ing. In all of these rules, X , Y, Z, . . . are junctive and projection rules.
The rules of inference in fuzzy logic may variables ranging over specified universes
be classified in a variety of ways. One basic of discourse, and A , B , C, . . . are fuzzy Generalized modus ponens.
class is categoricalrules, that is, rules that predicates o r , equivalently, fuzzy
d o not contain fuzzy quantifiers. A more relations. XisA
general class is dispositionalrules, rules in Y is Cif X i s B
which one or more premises may contain, Conjunctive rule.
Y is A 0 ( T B8 C )
explicitly or implicitly, the fuzzy quantifier
“usually.” For example, the inference rule XisA
Xis B where 1 B denotes the negation of B and
known as the entailment principle: the bounded sum is defined by
XisA nB
XisA
A C B where A n B is the intersection of A and
Xis B B defined by An important feature of the generalized
modus ponens, which is not possessed by
where Xis a variable taking values in a uni- the modus ponens in binary logical sys-
verse of discourse U , and A and B are tems, is that the antecedent “Xis B” need
fuzzy subsets of U , is a categorical rule. On not be identical with the premise “XisA.”
the other hand, the dispositional entail- Cartesian product. I t should be noted that the generalized
ment principle is an inference rule of the modus ponens is related to the interpola-
form XisA tion rule which was described earlier. An
Yis B additional point that should be noted is
usually ( X is A )
( X , Y) is A x B that the generalized modus ponens may be
A C B
regarded as an instance of the composi-
usually (Xis B ) where (X, Y) is a binary variable and A x tional rule of inference.
In the limiting case where “usually” B is defined by
Dispositional modus ponens. In many
becomes “always,” Equation 14 reduces
applications involving common sense
to Equation 13.
reasoning, the premises in the generalized
In essence, the entailment principle
modus ponens are usuality-qualified. In
asserts that from the proposition “XisA”
such cases, one may employ a dispositional
we can always infer a less specific propo- Projection rule.
version of the modus ponens. I t may be
sition “ X i s B.” For example, from the
expressed as
proposition “Mary is young,” which in its (X, Y) is R
canonical form reads X i s xR usually (X is A )
usually ( Y is B i f X is A )
Age(Mary) is YOUNG where xR, the projection of the binary
usually’ ( Y is B )
relation R on the domain of X, is defined
where YOUNG is interpreted as a fuzzy set by
or, equivalently, as a fuzzy predicate, we where “usually’” is the square of
can infer “Mary is not old,” provided “usually” (see Figure 4). For simplicity,
YOUNG is a subset of the complement of it’s assumed that the premise “ X i s A”
OLD. That is matches the antecedent in the conditional
proposition; also, the conditional propo-
where p R ( u , v )is the membership function sition is interpreted as the statement, “The

April 1988 89
COMPATIBILITY

USUALLY

0 1
Proportion
0 30 50 60

Figure 4. Representation of “usually” Figure 5. The linguistic values of “Age.”


and 6‘usually2.11

value of the fuzzy conditional probability X i s small In general, the values of a linguistic var-
of B given A is the fuzzy number iable can be generated from a primary
x is small2
USUALLY .” term (for example, “young”) its antonym
(“old”), acollection of modifiers (“not,”
and
Extension principle. The extension prin- “very,” “more or less,” “quite,” “not
ciple plays an important role in fuzzy logic very,” etc.), and the connectives “and”
by providing a mechanism for computing and “or.” For example, one value of
induced constraints. More specifically, “Age” may be “not very young and not
As in the case of the entailment rule, the
assume that a variable X taking values in dispositional version of the extension prin- very old.” Such values can be generated by
a universe of discourse Uis constrained by ciple has the simple form a context-free grammar. Furthermore,
the proposition “ X i s A .” Furthermore, each value of a linguistic variable
assume that f is a mapping from U to V represents a possibility distribution, as
usually ( X is A )
so that X i s mapped intof(X). The ques- shown in Figure 5 for the variable “Age.”
tion is: What is the constraint on f ( X ) usually Cf(X)isf(A)) These possibility distributions may be
which is induced by the constraint on X? computed from the given possibility distri-
The answer provided by the extension The dispositional extension principle butions of the primary term and its anto-
principle may be expressed as the inference plays an important role in inference from nym through the use of attributed
rule common sense knowledge. In particular, grammar techniques.
it is one of the inference rules that play an
XisA essential role in answering the questions An interesting application of the linguis-
posed in the introduction. tic variable is embodied in the fuzzy car
conceived and designed by Sugeno of the
Tokyo Institute of Technology.’ The
where the membership function offlA) is
The linguistic variable car’s fuzzy-logic-based control system lets
it move autonomously along a track with
defined by and its application to rectangular turns and park in a designated
fuzzy control space (see Figure 6). An important feature
is the car’s ability to learn from examples.
A basic concept in fuzzy logic that plays
subject to the condition a key role in many of its applications, espe- The basic idea behind the Sugeno fuzzy
cially in the realm of fuzzy control and car is the following. The controlled vari-
v = f ( u ) , u E U, v E v fuzzy expert systems, is a linguistic able Y , which is the steering angle, is
variable. assumed to be a function of the state vari-
In particular, if the functionfis 1: 1, then A linguistic variable, as its name sug- ables X I , x , , x , , . . . , x,,, which repre-
Equation 15 simplifies to gests, is a variable whose values are words sent the distances of the car from the
or sentences in a natural or synthetic lan- boundaries of the track at a corner (see
guage. For example, “Age” is a linguistic Figure 7). These values are treated as lin-
variable if its values are “young,” “not guistic variables, with the primary terms
where v - ’ is the inverse of v . For young,” “very young,” “old,” “not represented as triangular possibility distri-
example, old,” “very old,” and so on. butions (see Figure 8).

90 COMPUTER
The control policy is represented as a
finite collection of rules of the form kk
R': if (X, is A ' ' ) and . . . (X,is A i ) ,

B
,car
then
Y ' = a b + d l x , + ... +a;x,,

where R' is the ith rule; A; is a linguistic


value of X, in RI; Y ' is the value of the
control variable suggested by R'; and ah,
. . . , a i are adjustable parameters, which
define Y ' as a linear combination of the L1
state variables.
In a given state ( X I ,. . . , X,,),
the truth
value of the antecedent of R' may be
expressed as Figure 6. The Sugeno fuzzy car. Figure 7. The state variables in Sugeno's
car.
w'= A ' , ( X ' A) . . . A Ai(X,,)

where A;(X,) is the grade of membership


of X,in A;. The aggregated value of the
controlled variable Y is computed as the
normalized linear combination

WI Y' + ...+w,Y"
Y = (16)
W' + . . . + w,,

Thus, Equation 16 may be interpreted


as the result of a weighted vote in which the
value suggested by R' is given the weight
W,/(W, + . . . + W,,).
The values of the coefficients a',, . . . ,
a', are determined through training.
Training consists of an operator guiding a
model car along the track a few times until
an identification algorithm converges on
parameter values consistent with the con-
trol rules. By its nature, the training pro-
cess cannot guarantee that the
identification algorithm will always con-
verge on the correct values of the coeffi-
cients. The justification is pragmatic: the
system works in most cases.
Variations on this idea are embodied in
most of the fuzzy-logic-based control sys-
tems developed so far. Many of these sys-
tems have proven to be highly reliable and
superior in performance to conventional
systems.' 0 XS'Y
Since most rules in expert systems have
fuzzy antecedents and consequents, expert
systems provide potentially important
applications for fuzzy logic. For
example'':

IF the search "space" is moderately


small
THEN exhaustive search is feasible X1 P

IF a piece of code is called frequently


THEN it is worth optimizing Figure 8. The linguistic values of state variables.

April 1988 91
IF large oil spill or strong acid spill computer employs a parallel architecture. 4. E.H. Mamdani and S. Assilian, “ A Case
THEN emergency is strongly suggested Basically, it has a fuzzy memory, a set of Study on the Application of Fuzzy Set The-
inference engines, a MAX block, and a ory to Automatic Control,” Proc. IFAC
Stochastic ControlSymp., Budapest, 1974.
The fuzziness of such rules is a con- defuzzifier. The computer is designed to
5. Preprints of the Second Congress of the
sequence of the fact that a rule is a sum- process linguistic inputs, for example, International Fuzzy Systems Association,
mary, and summaries, in general, are “more or less small” and “very large,” Tokyo, Japan, 1987.
fuzzy. However, in the context of expert which are represented by analog voltages 6. L.A. Zadeh, “Test-Score Semantics as a
systems and fuzzy logic control, fuzziness on data buses. A binary RAM, an array of Basic for a Computational Approach to the
has the positive effect of reducing the num- registers and a membership function Representation of Meaning,” Literary and
generator form the computer’s fuzzy Linguistic Computing, Vol. 1, 1986, pp.
ber of rules needed to approximately 24-35.
characterize a functional dependence memory.
7. D. Duboisand H . Prade, TheoriedesPos-
between two or more variables. The linguistic inputs are fed to inference sibilites, Masson, Paris, 1985.
engines in parallel, with each rule yielding 8. L.A. Zadeh, “The Role of Fuzzy Logic in
Fuzzy hardware. Several expert system an output. The outputs are aggregated in the Management of Uncertainty in Expert
shells based on fuzzy logic are now com- the MAX block, yielding an overall fuzzy Systems,” F u w Sets and Systems, Vol. 11,
mercially available, among them Reveal output that appears in the output data bus 1983, pp. 199-227.
and Flops.’ The seminal work of Togai as a set of distributed analog voltages. In 9. L.A. Zadeh, “Syllogistic Reasoning in
Fuzzy Logic and its Application to Usual-
and Watanabe at Bell Telephone Labora- intelligent fuzzy control and other appli- ity and Reasoning with Dispositions,”
tories, which resulted in the development cations requiring nonfuzzy commands, the IEEE Trans. Systems, Man, and Cyber-
of a fuzzy logic chip, set the stage for using fuzzy output is fed to a defuzzifier for netics, Vol. SMC-15, 1985, pp. 754-763.
such chips in fuzzy-logic-based expert sys- transformation into crisp output. 10. A. Kaufmann and M. M. Gupta, Introduc-
tems and, more generally, in rule-based Yamakawa’s fuzzy computer may be an tion to Fuzzy Arithmetic, Van Nostrand,
New York, 1985.
systems not requiring a high degree of pre- important step toward a sixth-generation
11. B. Buchanan and E. K. Shortliffe, Rule-
cision.’* More recently, the fuzzy com- computer capable of processing common
Based Expert Systems, Addison-Wesley ,
puter developed by Yamakawa of sense knowledge. This capability is a Reading, Mass., 1984.
Kumamoto University has shown great prerequisite to solving many AI problems 12. M. Togai and H . Watanabe, “Expert Sys-
promise as a general-purpose tool for pro- - for example, handwritten text recogni- tems on a Chip: An Engine for Real-Time
cessing linguistic data at high speed and tion, speech recognition, machine transla- Approximate Reasoning,” IEEE Expert,
with remarkable r o b u s t n e ~ s . ~ tion, summarization, a n d image Vol. 1, 1986, pp. 55-62.
Togai and Watanabe’s fuzzy inference understanding - that do not lend them-
chip consists of four major components: selves to cost-effective solution within the
a rule set memory, an inference processor, bounds of conventional technology. 0
a controller, and 1 / 0 circuitry. In a recent
implementation, a rule set memory is real-
ized by a random-access memory. In the
inference processor, there are 16 data
paths; one data path is laid out for each
rule. All 16 rules on the chip are executed
in parallel. The chip requires 64 clock
Acknowledgment Related Publications
cycles to produce an output. This trans- The research reported in this article has been Adams, E.W., and H.F. Levine, “On the
lates to an execution speed of approxi- supported in part by NASA Grant NCC-2-275 Uncertainties Transmitted from Premises to
and NSF Grant DCR-85 13139. The article was Conclusions in Deductive Inferences,” Syn-
mately 250,000 fuzzy logical inferences per written while the author was a visiting scholar these, Vol. 30, 1975, pp. 429-460.
second (FLIPS) at 16 megahertz clock. A at the Center for the Study of Language and
fuzzy inference accelerator, which is a Information at Stanford University. It is dedi- Baldwin, J.F., and S.Q. Zhou, “A New
coprocessor board for a designated com- cated to the Japanese scientists and engineers Approach to Approximate Reasoning Using a
who have contributed so importantly to the Fuzzy Logic,” Fuzzy Sets and Systems, Vol. 2,
puter, is currently being designed. This
development of fuzzy logic and its applications. 1979, pp. 302-325.
board accommodates the new chips.
In the current implementation, the con- Bellman, R.E., and L.A. Zadeh, “Local and
trol variables are assumed to range over a Fuzzy Logics,” in G. Epstein, ed., Modern Uses
finite set having no more than 31 elements. of Multiple- Valued Logic, Reidel, Dordrecht,
1977, pp. 103-165.
The membership function is quantized at References
16 levels, with 15 representing full mem- 1. L.A. Zadeh, “Fuzzy Algorithms,” Infor- Dubois, D., a n d H . Prade, FuzzySetsandSys-
bership. Once the Togai/Watanabe chip mation and Control, Vol. 12, 1968, pp. tems: Theory and Applications, Academic
becomes available commercially in 1988or 94- 102. Press, New York, 1980.
1989, it should find many uses in both 2. L.A. Zadeh, “ A Rationale for Fuzzy Con-
Goguen, J.A., “The Logic of Inexact Con-
fuzzy-logic-based intelligent controllers trol,” J. Dynamic Systems, Measurement
and Control, Vol. 94, Series G, 1972, pp. cepts,” Synthese, Vol 19, 1969, pp. 325-373.
and expert systems. 3-4.
Yamakawa’s fuzzy computer, whose Klir, G.J., and T.A. Folger, Fuzzy Sets, Uncer-
hardware was built by OMRON Tateise 3. L.A. Zadeh, “Outlineofa New Approach tainty, andlnformation, Prentice Hall, Engle-
to the Analysis of Complex Systems and wood Cliffs, N.J., 1988.
Electronics Corporation, is capable of per- Decision Processes,” IEEE Trans. Systems,
forming fuzzy inference at the very high Man, andcybernetics, Vol. SMC-3,1973, Moisil, G.C., Lectures on the Logic oJFuzzy
speed of 10 megaFLIPS. Yamakawa’s pp. 28-44. Reasoning, Scientific Editions, Bucharest, 1975.

92 COMPUTER
Prade, H., and C . V . Negoita, Fuzzy Logic in
Knowledge Engineering, Verlag TUV Rhein- SOFTWARE ENGINEERS
land, Koln, 1986.

Sugeno, M . , ed., Industrial Applications of


Fuzzy Control, Elsevier Science Publishers BV,
The Netherlands, 1985.

Watanabe, H., and W. Dettloff, “Fuzzy Logic


Inference Processor for Real Time Control: A
Second Generation Full Custom Design,” Proc.
2lst Asilomar Conference on Signals, Systems,
and Computers, Asilomar, Calif., 1987. at

Some of the nation’s most exciting Software reliability/fault


developments in software technol- tolerance
ogy, supercomputer architecture, Environment test and eval-
AI, and expert systems are under uation (including assessing
scrutiny right now at the Institute impacts on productivity and
for Defense Analyses. IDA is a reliability)
Federally Funded Research and Standards for environmental and
Development Center serving the operational software interfaces
Office of the Secretary of Defense.
the Joint Chiefs of Staff, Defense Specialists in other areas of Com-
Agencies. and other Federal puter Science are also sought: Dis-
sponsors. tributed Systems, Artificial Intelli-
gence and Expert Systems,
IDA’S Computer and Software Programming Language Experts
Engineering Division (CSED) is and Computer Security Scientists.
seeking professional staff members
with an in-depth theoretical and We offer career opportunities at
practical background in software many levels of experience. You
engineering tools, techniques, and may be a highly experienced indi-
theories. One emphasis of the Div- vidual able to lead IDA projects
ision’s work is on defining, build- and programs. . . or a recent
ing, and evaluating tools,’envir- MS 1 P h D graduate. You can
onments to support the entire expect a competitive salary, excel-
software life-cycle of mission criti- lent benefits, and a superior pro-
Lofti A. Zadeh joined the Department of Elec- cal computer based systems, fessional environment. Equally
trical Engineering at the University of Califor- focused on Ada and artificial intel- important, you can expect a role
nia, Berkeley, in 1959, serving as its chairman ligence environments. Tasks on the leading edge of the state of
from 1963 t o 1968. Earlier he was a member of include efforts in prototyping the art in computing. If this kind
the electrical engineering faculty at Columbia tools/ systems, testing and evaluat- of future appeals to you, we urge
University. He has held a number of visiting ing support tools, advising major you to investigate a career with
appointments, among them a visiting scientist IDA. Please forward your resume
D o D programs on appropriate
appointment at the IBM Research Laboratory, to:
San Jose, and a visiting scholar appointment at
technologies. and assisting the
the AI Center, SRI International. D o D in defining advanced policies Mr. Thomas J. Shirhall
Zadeh’s work centered on system theory and for software development and Manager of Professional Staf‘ting
decision analysis until 1965 when his interests maintenance. Institute for Defense Analyses
shifted t o the theory of fuzzy sets and its appli- 1801 N. Beauregard Street
cations. Specific desired interests and skills
include: Alexandria, VA 22311
An alumnus of the University of Teheran in
An equal opportunity employer.
Iran, MIT, and Columbia University, Zadeh is Formal representation of
a fellow of the IEEE and AAAS and a member U.S. Citizenship is required.
requirements and designs
of the National Academy of Engineering. He
Program verification, test and
holds a doctorate honoris causa from Paul

1-
-I DA
Sabatier University, France, in recognition of evaluation
his development of the theory of fuzzy sets. Combined hardware/software
system design methodologies
Zadeh’s address is Computer Science Divi- Transformational approaches to
sion, Dept. of EECS, University of California, automated program generation
Berkeley, C A 94720. Software reusability and reuse

April 1988

You might also like