MENTAL
 Main Menu
 Applications
 Logic
 Fuzzy Logic


Fuzzy Logic
 FUZZY
LOGIC

"The model of fuzzy logic is the human mind" (Lofti Zadeh).

"The essence of fuzzy logic is that everything is a matter of degree, including the notion of membership" (Lofti Zadeh).

"Opposites are identical in nature, but different in degree" (The Kybalion).



Fuzzy Logic

Fuzzy or fuzzy logic was first proposed by Lofti Zadeh (professor at UC Berkeley) in his famous 1965 paper entitled "fuzzy Sets" [Zadeh, 1965] which revolutionized traditional logical thinking. Its principles and characteristics are as follows:
Logical operations

If we represent, in general, with C(x) the degree of truth of x with respect to a concept C, we have the following definitions: The logical implication C(x)→C(y) admits many interpretations, there being different models, which take the name of their proponents. We highlight the following:
Fuzzy sets

The idea behind a fuzzy set is very simple. In classical Cantor set theory, elements either belong or do not belong to sets. In fuzzy set theory, an element may partially belong to a set:

For any element x, its degree of belonging to a set C is defined by a function f(x). The value 1 of the function is interpreted as x belongs to C (x C), and the value 0 as x does not belong to C (xC). This is the classical conception in set theory. But if this function takes values between 0 and 1, these values indicate the degree of set membership and C is a fuzzy set.

The formalization of fuzzy sets was made by Zadeh in his 1965 paper in which he created a generalized axiomatic system of set theory based on the concept of partial membership.


Formal definitions
Operations with fuzzy sets

If we represent, in general, with C(x) the degree of membership of x in C, we have the following definitions:
Fuzzy numbers

Zadeh proposed the concept of fuzzy number (fuzzy number) as a special case of fuzzy set. Just as fuzzy logic is an extension of Boolean logic, and fuzzy sets are an extension of traditional sets, fuzzy numbers are an extension of real numbers.

A fuzzy number is an extension of a real number in the sense that it refers not to a single value, but to a set of values, each with a corresponding "weight," factor, or degree of membership (a value between 0 and 1) to the real line. The set is convex, i.e., the set of values has no "gaps", they form a continuum, which can be the entire real line or an interval of it. In general, a fuzzy number is a finite or infinite segment of the real line, whose elements have a degree of membership in the real line.

An example of a fuzzy number on the entire real line is the following triangular number:

A fuzzy number can be considered a function between the numbers of a segment of the real line and the numbers between 0 and 1. In the example, the degree of membership between 25 and 30 increases linearly between 0 and 1, and then decreases (also linearly) between 30 and 35 between 1 and 0.

A real number is a particular case of a fuzzy number: it is a segment reduced to a single point representing a real number with degree of membership 1.

Fuzzy arithmetic operations on fuzzy numbers are the same as operations with sets: complementary, sum, and product.


Linguistic variables

Zadeh introduced in 1973 the concept of "linguistic variable" in which he established an equivalence between variable and fuzzy set.

A numerical variable (e.g. "age") takes a concrete quantitative (numerical) value (e.g. age=43). A linguistic variable has a set of possible linguistic, qualitative values (or categories), e.g., The granularity of a linguistic variable is the number of qualitative values that are defined for it. In the example, the granularity of age is 5. A fine granularity indicates many qualitative values. A coarse granularity indicates few qualitative values.

There is a function that, for each age, assigns a numerical value (between 0 and 1) to each of these qualitative values, indicating the degree of membership in those categories. The result is a set. For example, The logical values "true" and "false" are qualitative values of the linguistic variable "truth".


Background information
Fuzziness vs. probability

Blurredness and probability (or randomness) are distinct concepts. There are many conceptual and theoretical differences between the two. There are also similarities, the main one being that both describe uncertainties, with associated numbers between 0 and 1.
Soft Computing

According to Zadeh, fuzzy logic is not an isolated discipline, but is part of what he calls "Soft Computing". Its characteristics are: The BISC program (The Berkeley Initiative in Soft Computing) is an initiative of Lofti Zadeh oriented to the study and development of Soft Computing.


Fuzzy Control Systems

The basic ideas of fuzzy logic control (fuzzy logic control) were provided by Zadeh [1972]. It deals with the design of control systems using a set of fuzzy rules, which have, in general, the form. siendo x1, x2,... the qualitative input variables, and v1, v2,... the values corresponding to each of these variables. Similarly for the qualitative output variables and their values (y1, y2, . .. and w1, w2, ...). Expressions of the type "xi is not vi" and the operator "or" (logical disjunction) instead of "and" (logical conjunction) may also appear in the antecedent.

Each rule has a "weight" or importance, which is a numerical value.

The advantage of fuzzy rules is that they are conceptual in nature, so they are easy to interpret, since they represent knowledge at a qualitative level only. The reasoning is performed at a qualitative level. Once the qualitative results are obtained, they are transformed into quantitative ones.

The rules of a fuzzy model to be tested in practice. The rules are refined until a satisfactory model is finally obtained.

A simple illustrative example is a control system to regulate a fan. In this case there is only one input variable, the ambient temperature t, and one output variable w, the angular velocity (in rpm) of the fan. There are 3 qualitative values for the temperature: Cold, Warm and Hot, defined according to this graph:


The angular velocity w has 3 qualitative values associated with it: Minimum, Average and Maximum. In this case, each of these qualitative values is assigned a quantitative value: w1, w2, w3, which correspond to the average or reference value of the angular velocity.

The fuzzy rules are, in this case, very simple: In this case, the weights of the rules are all unity, i.e., they all have the same weight.

The operation of a fuzzy control system consists of 3 phases:
Fuzzy quantizers

One of the most important aspects of fuzzy logic is that it allows to extend and formalize the concept of quantization, interpreted as fuzzy subset. This topic was also introduced by Zadeh [1983].

A crisp or precise quantifier is a concrete number. A fuzzy (or linguistic) quantifier allows to express a quantity in a qualitative, fuzzy, approximate way. It seems somewhat paradoxical that quantity and quality, which are different concepts, are united in this concept of fuzzy quantifier to express a quantity by means of a quality. But fuzzy quantifiers are essential for effective communication in natural language.

Fuzzy quantifiers can be of two types: absolute and relative. Quantifiers are thus functions Q(φ) between φ and [0, 1], where φ is the number of elements (in the case of the absolute quantifier) or a proportion (in the case of the relative quantifier). If Q(φ) = 1, the quantifier is fully satisfied. If Q(φ) = 0, the quantifier is not satisfied at all. An intermediate value (between 0 and 1) indicates the degree to which the quantifier is satisfied, i.e., the degree of membership in the fuzzy set.

There are increasing quantifiers. For example:



And decreasing quantifiers. For example:



Unimodal quantifiers are those that have a membership function that is first increasing and then decreasing. For example (the first is absolute and the second is relative):



In mathematical logic there are only two quantifiers: the universal quantifier ("all elements", ∀) and the existential quantifier ("at least one element", ∃). They can be considered as particular cases of fuzzy quantifiers:




Bart Kosko: Fuzzy Thinking

Bart Kosko is a noted researcher and advocate of fuzzy logic, which he has related to the philosophy of mind. He has contributed greatly to popularizing it. His best known book is "Fuzzy Thinking" [Kosko, 1994]. Kosko is a total convert to the fuzzy doctrine, more radical even than Zadeh himself.

In the concept of truth, Kosko highlights the differences between Western philosophy versus Eastern philosophy, which he summarizes in the opposition between Buddha and Aristotle (Buddha died 100 years before Aristotle was born):

AristotleBuddha
A or non-AA and non-A
All or nothingA grade
ExactFuzzy
Discrete: 0 or 1Continuous:
between 0 and 1
Formal languageNatural language
Bit (binary digit)Fit (fuzzy unit)

A bit is a binary digit (0 or 1). A fit is a degree, a value between 0 and 1.

Western philosophy, heir to Aristotle, accepted bivalence as a form of simplification of a complex reality. This philosophy has allowed remarkable advances in science, but it is an incomplete, partial philosophy. In contrast, Eastern philosophy accepts the union of opposites, the balance of the universal principles of yin and yang.

Kosko made several notable contributions to this topic, including: the concept of "fit" (the degree of membership or fuzziness), the geometric view of fuzzy sets, the clear conceptual demarcation between probability and fuzziness, fuzzy subsets, and fuzzy entropy.


The geometric view of fuzzy sets

If we have the set X={x1, x2}, its 22 = 4 subsets are: ∅, {x1}, {x2}, {x1,x2}. These subsets can be represented by bit strings (bivalent messages), where each bit (0 or 1) indicates non-belonging and belonging to the set X, respectively: (0, 0), (1, 0), (0, 1), (1, 1). In a two-dimensional Cartesian graphical system, these subsets are at the vertices of a square (see figure). In general, for a set of n elements, the 2n subsets are at the vertices in a hypercube of dimension n.



A fuzzy subset, e.g., A=(0.2, 0.6), is a point inside the square. The set of all fuzzy subsets are all points in the square except the 4 vertices, which correspond to crisp (non-fuzzy) subsets.

The complementary set of A is the complementary to 1 of its components: AC = (0.8, 0.4), such that:

AAC = (0.8, 0.6) ≠ X (the principle of the excluded third party is not fulfilled)
AAC = (0.2, 0.4) ≠ ∅ (non-contradiction principle is not satisfied)

A subset A is fuzzy if and only if AA CX and A∩AC ≠ ∅.

A subset A is crisp if and only if AAC = X and AAC = ∅.

The points corresponding to the sets A, AC, AAC and AAC form the vertices of a square inside the original square (see figure).

The midpoint of the square M = (0.5, 0.5) is a special point. It corresponds to the fuzziest set of all, since it satisfies MMC = < i>M∩MC = M = MC. It is a point equidistant from the 4 vertices of the square, and is equivalent to the metaphor of the half-full and half-empty bottle, which is where paradoxes appear.

The cardinality of a set A, represented as |A|, is the sum of its fit values: If we consider that A is the probability that a random variable has a value in the rectangle formed by the vertices (0, 0) and A, it holds:
Subconjunctivity

The degree of inclusion or subconjunctivity (subsethood) s of a set A in another B is a fit defined as: This expression is reminiscent of the formula for the (Bayesian) probability of an event B conditional on an event A: If A=(0.3, 0.3) and B=(0.5, 0.5), then s(A, B) = (0.3 + 0.3)/0.6 = 1.

If A=(0.5, 0.5) and B=(0.3, 0.3), then s(A, B) = (0.3 + 0.3)/1 = 0.6.


Fuzzy Entropy

According to Kosko, entropy is a general concept; it is not necessarily linked to probability theory. Entropy measures the uncertainty of a system or message.

Kosko introduced the concept of "fuzzy entropy," which serves to measure the degree of fuzziness of a set.

The entropy of A −symbolized by E(A)−, is the degree to which < i>A∪AC is a subset of AAC, that is, the degree to which the whole is included in the part, the degree of violation of the law of no−contradiction with respect to the law of the excluded third party: In the case of the set A=(0.2, 0.6), we have: E(A)= 0.6/1.4 = 0.42

The entropy of the vertices (crisp subsets) is 0, which is the minimum entropy. If A=AC (center point), then E(A)=1, which is the maximum entropy. As we approach the center, the entropy grows and at the center the maximum entropy is obtained.


MENTAL: The Generalization of the Fuzzy

Fuzzy Universalism and Linguistics

Fuzzy theory has a universal orientation, reflected in its principle "Everything is a matter of degree". There is talk of fuzzy sets, fuzzy logic, fuzzy numbers, fuzzy operations, fuzzy rules, fuzzy algorithms, etc. But such universality in practice is very difficult to achieve because of the lack of a common formal language.

MENTAL provides a linguistic model on a common conceptual framework and a universal theory−practice that allows to express all kinds of fuzzy expressions like: fuzzy matrices, fuzzy sequences, fuzzy vectors, fuzzy equations, fuzzy predicates, fuzzy algorithms, etc. And every discipline can be formalized in a fuzzy way: fuzzy arithmetic, fuzzy geometry, fuzzy algebra, etc. This universality of MENTAL provides an integrative framework for Soft Computing techniques.

MENTAL is a model of the mind that integrates the two modes of consciousness, those associated with the cerebral hemispheres. The Aristotelian vision (of the left hemisphere, HI) and the Buddhist vision (of the right hemisphere, HD), the integration between the precise and the diffuse, between the quantitative and the qualitative, between the discrete and the continuous, between the digital and the analogical, between the superficial and the deep, between the analytical and the synthetic, between theory and practice, between the particular and the universal, and so on. What Kosko calls "Aristotle vs. Buddha" is thus really the dichotomy or duality HI−HD.

The sharp or precise is a particular case of the diffuse. The diffuse is the universal. The sharp or precise is the particular.

Fuzzy theory attempts to humanize logic and mathematics by bringing the formal closer to the conceptual or mental. But complete humanization is achieved with MENTAL and its universal semantic primitives.


Factored expressions

In MENTAL, any expression of any type (set, sequence, function, rule, procedure, vector, matrix, truth value (V), quality, etc.), can be factored. There are 3 types of factored expressions:
  1. Crisp or precise expressions. These are expressions in which no qualitative values are involved. They correspond to the analytical mode of consciousness. For example,

      (3 7 5)   {a b c}   0.3*⟨( f(x y) = (x+y x*y )⟩

  2. Fuzzy expressions. They are qualitative values of linguistic variables. They correspond to the synthetic mode of consciousness. For example: tall, rich, fast, young, etc.

  3. Mixed expressions. They are of the type f*x, where f is a factor between 0 and 1, and x is a qualitative value, e.g., 0.7*tall, 0.3*young, etc. They correspond to the union of the two modes of consciousness (HI and HD), where the qualitative and the quantitative, the precise and the diffuse are united. This is precisely what fuzzy logic has done and which justifies its being considered a model of the human mind.

Quantitative and qualitative magnitudes

Magnitudes are of the form r*x, where r is a real number and x is a unit of measurement or a qualitative value.

If the factor r is greater than 1 and x is a unit of measurement, we have a quantitative quantity. For example, in magnitudes such as weight, height, where there is a unit of measure. If r is less than 1 and x is a qualitative value, we have a qualitative magnitude. It is interpreted as a fraction or proportion of the expression x. For example, The factor can affect any quality, including the qualities of truth (V) or falsity (F). In this case, we have a qualitative truth magnitude. For example.
Factorization in variables and linguistic values

A linguistic (or qualitative) variable x and one of its qualitative values v is represented by x/v (the particularization of x with the value v). For example: speed/high, height/medium, age/young, etc.


Factorization in sets

In the case of the membership relation of an element a to a set C, factorization can affect the element, the set, or both. There are 8 possibilities:

a∈Cf*(a∈C)
(f*a)∈Cf1*(f2*a)∈C)
a∈(f*C)(f1*a)∈(f2*C)
f1*(a∈(f2*C))f1*((f2*a)∈(f3*C))

Fuzzy logic operations
Operations with fuzzy sets
Other fuzzy operations
Example of fuzzy control system: fan

We can integrate the 3 phases of a fuzzy control system (fuzzification, evaluation of the fuzzy rules and defuzzification) into a single expression: an input function (the temperature t) and output the angular velocity w of the fan:

// control function. Input: t (temperature). Output: w (fan speed)
//
// auxiliary function for the calculation of the factor associated to each type of temperature.
//
⟨( y(x x1 y1 y1 x2 y2) = y1 + (y2 - y1)*(xx1)÷(x2x1 )⟩
//
// reference values
//
(t1=10 t2=20 t3=30) // temperatures
(w1=30 w2=60 w3=120) // fan speeds
//
// rules
//
( r1 =: (t/Cold → w/Minimum) ) // rule 1

( r2 =: (t/Weather → w/Average) ) // rule 2

( r3 =: (t/Hot → w/Maximum) ) // rule 3

//
// fuzzification: Obtaining the qualitative values as a function of the temperature t
//
( t≤t1 → (f1=1 f2=0 f3=0) )

( (t>t1 ∧ t≤t2) → (f1=y(t t1 1 t2 0) f2=(y(t t1 0 t2 1) f3=0))) )

( (t>t2 ∧ t≤t3) →
(f1=0 f2=(y(t t2 1 t3 0) f3=(y(t t2 0 t3 1))) )

( t>t3 → (f1=0 f2=0 f3=1) ) )
(f1>0 → t/Cold) (f2>0 → t/Warm) (f3>0 → t/Hot)
//
// evaluation of the rules
//
(r1 r2 r3)
//
// defuzzification
//
( w = (w1*f1 + w2*f2 + w3*f3)÷(f1+f2+f3) )
¡w)! )⟩




Addenda

Possibility theory

Zadeh "fuzzyfied" probability and turned it into fuzzy probability, a generalization of probability theory that he called "possibility theory." Both theories (fuzzy logic and fuzzy probability) deal with uncertainty. There are 3 types of uncertainty:
  1. The randomness of events. For example, rolling a die and coming up with 6. This is the field of probability.

  2. Imprecision, caused by vagueness or ambiguity. For example, fuzzy predicates high, low, fast, slow, old, young, etc. that induce fuzzy sets.

  3. A randomness with imprecision. For example, "whether or not it rains tomorrow", in which randomness (whether or not it rains) and imprecision (there are degrees of rain: fine rain, thunderstorm, etc.) appear.
This last alternative is the most generic and is the one studied by possibility theory.


MIQ (Machine Intelligence Quotient)

Fuzzy systems emulate the human mind, which is why Zadeh proposed the concept of the "intelligence quotient" of a system or machine. MIQ is a registered trademark of Zadeh.


Fuzzy logic applications

Fuzzy logic has been enormously successful because of its conceptual simplicity, ease of application, and effectiveness. Although Zadeh's initial intention was to create a formalism for human reasoning using imprecise concepts, it came as something of a surprise when success came in the field of automatic control of systems and processes.

Fuzzy control (or fuzzy control) systems are more efficient and consume less energy than classical systems. Today, a large number of product patents are based on fuzzy logic.

The first industrial application was the control of a cement kiln in Denmark in 1980 by F.L. Smidth&Co.

In the U.S., fuzzy systems were initially ignored because they were associated with artificial intelligence, a field lacking credibility after the disappointment of the expectations raised, especially in the 1980s.

It was the Japanese who first became interested in fuzzy logic, applying it to industrial and consumer systems: Other applications, in the USA and Europe, are: energy-efficient electric motors; docking (docking) automatic space; control of gates in hydroelectric plants, expert systems; auto−learning systems; automatic gear changes, ABS braking control and cruise control in cars; pattern recognition; handwriting recognition; voice-controlled robots; traffic control; thermal power plants; computer vision (object tracking by video camera); vehicle control system (airplanes, elevators, helicopters); etc.


The diffusion of fuzzy logic

Nowadays, fuzzy logic is a very wide and important field of research, both at the theoretical and practical level. There are many specialized publications. Two journals stand out: "Fuzzy Sets and Systems" and "IEEE Transactions on fuzzy Systems". International congresses are organized. There are several associations. In Spain there is the Spanish Association of Fuzzy Logic.

In the push for fuzzy logic the Japanese stand out. The Japanese government has participated in the creation of two research centers: LIFE (Laboratory for International fuzzy Engineering), created in 1985, and the FLSI (fuzzy Logic Systems Institute), created in 1990. Both centers organize conferences every two years.


Critiques of fuzzy logic

Zadeh's unorthodox ideas were initially greeted with some skepticism, but progressively gained acceptance until today, when success is considered complete and utter. But along the way there were many criticisms:

General criticisms: Authors' criticisms:
Fuzzy logic and the Internet

Fuzzy logic is well suited to represent knowledge, especially on the Internet. At Zadeh's own initiative, the first meeting on fuzzy logic and the Internet (FLIT 2001) was held at the University of Berkeley in 2001. The papers are published on the BISC website. The main idea is to use Soft Computing techniques for knowledge representation, information categorization, fuzzy search, autonomous intelligent agents, data mining, etc.


Bibliography