Fuzzy Logic: Applying Truth Values
Fuzzy Logic: Applying Truth Values
Fuzzy Logic: Applying Truth Values
Overview[edit]
Classical logic only permits conclusions which are either true or false. However, there are also
propositions with variable answers, such as one might find when asking a group of people to
identify a color. In such instances, the truth appears as the result of reasoning from inexact or
partial knowledge in which the sampled answers are mapped on a spectrum.
Humans and animals often operate using fuzzy evaluations in many everyday situations. In the
case where someone is tossing an object into a container from a distance, the person does not
compute exact values for the object weight, density, distance, direction, container height and
width, and air resistance to determine the force and angle to toss the object. Instead the person
instinctively applies quick "fuzzy" estimates, based upon previous experience, to determine what
output values of force, direction and vertical angle to use to make the toss.
Both degrees of truth and probabilities range between 0 and 1 and hence may seem similar at
first, but fuzzy logic uses degrees of truth as a mathematical model of vagueness,
while probability is a mathematical model of ignorance.
Take, for example, the concepts of "empty" and "full". The meaning of each of them can be
represented by a certain fuzzy set. The concept of emptiness would be subjective and thus
would depend on the observer or designer. A 100 ml glass containing 30 ml of water may be
defined as being 0.7 empty and 0.3 full, but another designer might, equally well, design a
set membership function where the glass would be considered full for all values down to 50 ml.
Linguistic variables[edit]
While variables in mathematics usually take numerical values, in fuzzy logic applications non-
numeric values are often used to facilitate the expression of rules and facts. [6]
A linguistic variable such as age may accept values such as young and its antonym old. Because
natural languages do not always contain enough value terms to express a fuzzy value scale, it is
common practice to modify linguistic values with adjectives or adverbs. For example, we can use
the hedges rather and somewhat to construct the additional values rather old or somewhat
young.
Fuzzification operations can map mathematical input values into fuzzy membership functions.
And the opposite de-fuzzifying operations can be used to map a fuzzy output membership
functions into a "crisp" output value that can be then used for decision or control purposes.
Process[edit]
Early applications[edit]
Many of the early successful applications of fuzzy logic were implemented in Japan. The first
notable application was on the high-speed train in Sendai, in which fuzzy logic was able to
improve the economy, comfort, and precision of the ride. [8] It has also been used in recognition of
hand written symbols in Sony pocket computers, flight aid for helicopters, controlling of subway
systems in order to improve driving comfort, precision of halting, and power economy, improved
fuel consumption for automobiles, single-button control for washing machines, automatic motor
control for vacuum cleaners with recognition of surface condition and degree of soiling, and
prediction systems for early recognition of earthquakes through the Institute of Seismology
Bureau of Meteorology, Japan. [9]
Example[edit]
Hard science with IF-THEN rules[edit]
Fuzzy set theory defines fuzzy operators on fuzzy sets. The problem in applying this is that the
appropriate fuzzy operator may not be known. For example, the logic for a simple temperature
regulator that uses a fan might look like this:
Using this rulebase and the previous image, we would expect the output fan speed to be a
combination of zero and moderate, which would be evaluated as some degree of slow when the
input value is a combination of cold and warm and not hot. The fan speed will continue to get
slower as the input temperature gets colder until the input temperature is 100% cold, 0% warm
and 0% hot, at which point the output fan speed will be zero. As the temperature input gets
warmer and hotter, the output fan speed will continue to get faster until the input temperature is
0% cold, 0% warm and 100% hot, at which point the fan speed output will be high.
If the fuzzy membership functions cover 100% of the input variable domain, then it can be proven
that the behavior of the fuzzy system is fully deterministic over the entire input domain and
nowhere ambiguous. This determinism is very important for use in control and decision systems.
There is no "ELSE"—all of the rules are evaluated, because the temperature might be "cold" and
"normal" at the same time to different degrees.
The AND, OR, and NOT operators of Boolean logic exist in fuzzy logic, usually defined as the
minimum, maximum, and complement; when they are defined this way, they are called
the Zadeh operators. So for the fuzzy variables x and y:
NOT x = (1 - truth(x))
x AND y = minimum(truth(x), truth(y))
x OR y = maximum(truth(x), truth(y))
There are also other operators, more linguistic in nature, called hedges that can be applied.
These are generally adverbs such as very, or somewhat, which modify the meaning of a set
using a mathematical formula.
x AND y = x*y
x OR y = 1-(1-x)*(1-y) = x+y-x*y
sigmoid(x)=1/(1+e^-x)
sigmoid(x)+sigmoid(-x) = 1
(sigmoid(x)+sigmoid(-x))*(sigmoid(y)+sigmoid(-y))*(sigmoid(z)+sigmoid(-z))
= 1
Logical analysis[edit]
In mathematical logic, there are several formal systems of "fuzzy logic"; most of them belong
among so-called t-norm fuzzy logic.
Fuzzy databases[edit]
Once fuzzy relations are defined, it is possible to develop fuzzy relational databases. The first
fuzzy relational database, FRDB, appeared in Maria Zemankova's dissertation (1983). Later,
some other models arose like the Buckles-Petry model, the Prade-Testemale Model, the Umano-
Fukami model or the GEFRED model by J.M. Medina, M.A. Vila et al.
Fuzzy querying languages have been defined, such as the SQLf by P. Bosc et al. and
the FSQL by J. Galindo et al. These languages define some structures in order to include fuzzy
aspects in the SQL statements, like fuzzy conditions, fuzzy comparators, fuzzy constants, fuzzy
constraints, fuzzy thresholds, linguistic labels etc.
Comparison to probability[edit]
Fuzzy logic and probability address different forms of uncertainty. While both fuzzy logic and
probability theory can represent degrees of certain kinds of subjective belief, fuzzy set
theory uses the concept of fuzzy set membership, i.e., how much an observation is within a
vaguely defined set, and probability theory uses the concept of subjective probability, i.e.,
likelihood of some event or condition. The concept of fuzzy sets was developed in the mid-
twentieth century at Berkeley [12] as a response to the lacking of probability theory for jointly
modelling uncertainty and vagueness.[13]
Bart Kosko shows in Fuzziness vs. Probability that probability theory is a subtheory of fuzzy
logic, as questions of degrees of belief in mutually-exclusive set membership in probability theory
can be represented as certain cases of non-mutually-exclusive graded membership in fuzzy
theory. In that context, he also derives Bayes' theorem from the concept of fuzzy
subsethood. Lotfi A. Zadeh argues that fuzzy logic is different in character from probability, and is
not a replacement for it. He fuzzified probability to fuzzy probability and also generalized it
to possibility theory. (cf.[14])
More generally, fuzzy logic is one of many different extensions to classical logic intended to deal
with issues of uncertainty outside of the scope of classical logic, the inapplicability of probability
theory in many domains, and the paradoxes of Dempster-Shafer theory.
Relation to ecorithms[edit]
Computational theorist Leslie Valiant uses the term ecorithms to describe how many less exact
systems and techniques like fuzzy logic (and "less robust" logic) can be applied to learning
algorithms. Valiant essentially redefines machine learning as evolutionary. In general use,
ecorithms are algorithms that learn from their more complex environments (hence eco-) to
generalize, approximate and simplify solution logic. Like fuzzy logic, they are methods used to
overcome continuous variables or systems too complex to completely enumerate or understand
discretely or exactly. [15] Ecorithms and fuzzy logic also have the common property of dealing with
possibilities more than probabilities, although feedback and feed forward, basically stochastic
weights, are a feature of both when dealing with, for example, dynamical systems.