Fuzzy logic

From Wikipedia, the free encyclopedia
  (Redirected from Fuzzy Logic)
Jump to: navigation, search

Fuzzy logic is a form of many-valued logic which deals with reasoning that is approximate rather than fixed and exact. Compared to traditional binary sets (where variables may take on true or false values), fuzzy logic variables may have a truth value that ranges in degree between 0 and 1. Fuzzy logic has been extended to handle the concept of partial truth, where the truth value may range between completely true and completely false.[1] Furthermore, when linguistic variables are used, these degrees may be managed by specific functions.[2]

The term "fuzzy logic" was introduced with the 1965 proposal of fuzzy set theory by Lotfi A. Zadeh.[3][4] Fuzzy logic has been applied to many fields, from control theory to artificial intelligence. Fuzzy logic had, however, been studied since the 1920s, as infinite-valued logic—notably by Łukasiewicz and Tarski.[5]


Classical logic only permits propositions having a value of truth or falsity. The notion of whether 1+1=2 is an absolute, immutable, mathematical truth. However, there exist certain propositions with variable answers, such as asking various people to identify a color. The notion of truth doesn't fall by the wayside, but rather a means of representing and reasoning over partial knowledge is afforded, by aggregating all possible outcomes into a dimensional spectrum.

Both degrees of truth and probabilities range between 0 and 1 and hence may seem similar at first. For example, let a 100 ml glass contain 30 ml of water. Then we may consider two concepts: empty and full. The meaning of each of them can be represented by a certain fuzzy set. Then one might define the glass as being 0.7 empty and 0.3 full. Note that the concept of emptiness would be subjective and thus would depend on the observer or designer. Another designer might, equally well, design a set membership function where the glass would be considered full for all values down to 50 ml. It is essential to realize that fuzzy logic uses truth degrees as a mathematical model of the vagueness phenomenon while probability is a mathematical model of ignorance.

Applying truth values[edit]


Fuzzy logic temperature


Linguistic variables[edit]

While variables in mathematics usually take numerical values, in fuzzy logic applications, the non-numeric are often used to facilitate the expression of rules and facts.[6]

A linguistic variable such as age may have a value such as young or its antonym old. However, the great utility of linguistic variables is that they can be modified via linguistic hedges applied to primary terms. These linguistic hedges can be associated with certain functions.

Early applications[edit]

The Japanese were the first to utilize fuzzy logic for practical applications. 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.[7] 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 Metrology, Japan.[8]


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 this reason. For example, a simple temperature regulator that uses a fan might look like this:

IF temperature IS very cold THEN stop fan
IF temperature IS cold THEN turn down fan
IF temperature IS normal THEN maintain level
IF temperature IS hot THEN speed up fan

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))


Define with multiply[edit]

x AND y = x*y
x OR y = 1-(1-x)*(1-y)

1-(1-x)*(1-y) comes from this:

x OR y = NOT( AND( NOT(x), NOT(y) ) )
x OR y = NOT( AND(1-x, 1-y) )
x OR y = NOT( (1-x)*(1-y) )

Define with sigmoid[edit]

sigmoid(x)+sigmoid(-x) = 1
(sigmoid(x)+sigmoid(-x))*(sigmoid(y)+sigmoid(-y))*(sigmoid(z)+sigmoid(-z)) = 1

Logical analysis[edit]


Propositional fuzzy logics[edit]

The most important propositional fuzzy logics are:

  • Monoidal t-norm-based propositional fuzzy logic MTL is an axiomatization of logic where conjunction is defined by a left continuous t-norm and implication is defined as the residuum of the t-norm. Its models correspond to MTL-algebras that are prelinear commutative bounded integral residuated lattices.
  • Gödel fuzzy logic is the extension of basic fuzzy logic BL where conjunction is Gödel t-norm. It has the axioms of BL plus an axiom of idempotence of conjunction, and its models are called G-algebras.
  • Product fuzzy logic is the extension of basic fuzzy logic BL where conjunction is product t-norm. It has the axioms of BL plus another axiom for cancellativity of conjunction, and its models are called product algebras.

Predicate fuzzy logics[edit]

These extend the above-mentioned fuzzy logics by adding universal and existential quantifiers in a manner similar to the way that predicate logic is created from propositional logic. The semantics of the universal (resp. existential) quantifier in t-norm fuzzy logics is the infimum (resp. supremum) of the truth degrees of the instances of the quantified subformula.

Decidability issues for fuzzy logic[edit]

The notions of a "decidable subset" and "recursively enumerable subset" are basic ones for classical mathematics and classical logic. Thus the question of a suitable extension of these concepts to fuzzy set theory arises. A first proposal in such a direction was made by E.S. Santos by the notions of fuzzy Turing machine, Markov normal fuzzy algorithm and fuzzy program (see Santos 1970). Successively, L. Biacino and G. Gerla argued that the proposed definitions are rather questionable and therefore they proposed the following ones. Denote by Ü the set of rational numbers in [0,1]. Then a fuzzy subset s : S \rightarrow[0,1] of a set S is recursively enumerable if a recursive map h : S×N \rightarrowÜ exists such that, for every x in S, the function h(x,n) is increasing with respect to n and s(x) = lim h(x,n). We say that s is decidable if both s and its complement –s are recursively enumerable. An extension of such a theory to the general case of the L-subsets is possible (see Gerla 2006). The proposed definitions are well related with fuzzy logic. Indeed, the following theorem holds true (provided that the deduction apparatus of the considered fuzzy logic satisfies some obvious effectiveness property).


It is an open question to give supports for a Church thesis for fuzzy mathematics the proposed notion of recursive enumerability for fuzzy subsets is the adequate one. To this aim, an extension of the notions of fuzzy grammar and fuzzy Turing machine should be necessary (see for example Wiedermann's paper). Another open question is to start from this notion to find an extension of Gödel's theorems to fuzzy logic.

It is known that any boolean logic function could be represented using a truth table mapping each set of variable values into set of values \{0,1\}. The task of synthesis of boolean logic function given in tabular form is one of basic tasks in traditional logic that is solved via disjunctive (conjunctive) perfect normal form.

Each fuzzy (continuous) logic function could be represented by a choice table containing all possible variants of comparing arguments and their negations. A choice table maps each variant into value of an argument or a negation of an argument. For instance, for two arguments a row of choice table contains a variant of comparing values x_1, \lnot x_1, x_2, \lnot x_2 and the corresponding function value f(x_2\leq\lnot x_1 \leq x_1 \leq \lnot x_2)=\lnot x_1.

The task of synthesis of fuzzy logic function given in tabular form was solved in.[9] New concepts of constituents of minimum and maximum were introduced. The sufficient and necessary conditions that a choice table defines a fuzzy logic function were derived.

Fuzzy databases[edit]


Much progress has been made to take fuzzy logic database applications to the web and let the world easily use them, for example: http://sullivansoftwaresystems.com/cgi-bin/fuzzy-logic-match-algorithm.cgi?SearchString=garia This enables fuzzy logic matching to be incorporated into a database system or application.

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 a variable is in a set (there is not necessarily any uncertainty about this degree), and probability theory uses the concept of subjective probability, i.e., how probable is it that a variable is in a set (it either entirely is or entirely is not in the set in reality, but there is uncertainty around whether it is or is not). The technical consequence of this distinction is that fuzzy set theory relaxes the axioms of classical probability, which are themselves derived from adding uncertainty, but not degree, to the crisp true/false distinctions of classical Aristotelian logic.

Bruno de Finetti argues[citation needed] that only one kind of mathematical uncertainty, probability, is needed, and thus fuzzy logic is unnecessary. However, 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.[10])

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. See also probabilistic logics.

Relation to ecorithms[edit]

Leslie Valiant, winner of the Turing Award, 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. 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.

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. See in particular p. 58 of the reference comparing induction/invariance, robust, mathematical and other logical limits in computing, where techniques including fuzzy logic and natural data selection (ala "computational Darwinism") can be used to shortcut computational complexity and limits in a "practical" way (such as the brake temperature example in this article).[11]

Compensatory Fuzzy Logic[edit]

The CFL (Compensatory Fuzzy Logic) is a branch of Fuzzy Logic. This is a new multivalent system that breaks with traditional axioms of such systems to achieve better semantic behavior to classical systems.[attribution needed]

In processes involving decision making, trade with the experts leads to obtaining complex and subtle formulations and requires compound predicates. The truth values obtained on these compound predicates must possess sensitivity to changes in the truth values of basic predicates. This need is met by the use of the CFL, waiving compliance of the classical properties of conjunction and disjunction and rather opposing to them the idea that the increase or decrease of the truth value of the conjunction or disjunction caused by change the truth value of one of its components can be compensated with a corresponding decrease or increase in the other. This increase or decrease in truth may be offset by the increase or decrease in another component. This notion makes the CFL logical and useful. There are cases in which compensation is not possible. This occurs when certain thresholds are violated and there is a veto preventing compensation.

Compensatory Fuzzy Logic consists of a quatrain of continuous operators: conjunction (c), disjunction (d), fuzzy strict order (or) and negation (n). The conjunction is the geometric mean and its dual as conjunctive and disjunctive operators.[12]

See also[edit]


  1. ^ Novák, V., Perfilieva, I. and Močkoř, J. (1999) Mathematical principles of fuzzy logic Dodrecht: Kluwer Academic. ISBN 0-7923-8595-0
  2. ^ Ahlawat, Nishant, Ashu Gautam, and Nidhi Sharma (International Research Publications House 2014) "Use of Logic Gates to Make Edge Avoider Robot." International Journal of Information & Computation Technology (Volume 4, Issue 6; page 630) ISSN 0974-2239 (Retrieved 27 April 2014)
  3. ^ "Fuzzy Logic". Stanford Encyclopedia of Philosophy. Stanford University. 2006-07-23. Retrieved 2008-09-30. 
  4. ^ Zadeh, L.A. (1965). "Fuzzy sets". Information and Control 8 (3): 338–353. doi:10.1016/s0019-9958(65)90241-x. 
  5. ^ Pelletier, Francis Jeffry (2000). "Review of Metamathematics of fuzzy logics" (PDF). The Bulletin of Symbolic Logic 6 (3): 342–346. JSTOR 421060. 
  6. ^ Zadeh, L. A. et al. 1996 Fuzzy Sets, Fuzzy Logic, Fuzzy Systems, World Scientific Press, ISBN 981-02-2421-4
  7. ^ Kosko, B (June 1, 1994). "Fuzzy Thinking: The New Science of Fuzzy Logic". Hyperion. 
  8. ^ Bansod, Nitin A., Marshall Kulkarni, and S.H. Patil (Bharati Vidyapeeth College of Engineering) "Soft Computing- A Fuzzy Logic Approach". Soft Computing (Allied Publishers 2005) (page 73)
  9. ^ Zaitsev D.A., Sarbei V.G., Sleptsov A.I., Synthesis of continuous-valued logic functions defined in tabular form, Cybernetics and Systems Analysis, Volume 34, Number 2 (1998), 190-195.
  10. ^ Novák, V (2005). "Are fuzzy sets a reasonable tool for modeling vague phenomena?". Fuzzy Sets and Systems 156: 341–348. doi:10.1016/j.fss.2005.05.029. 
  11. ^ Valiant, Leslie, (2013) Probably Approximately Correct: Nature's Algorithms for Learning and Prospering in a Complex World New York: Basic Books. ISBN 978-0465032716
  12. ^ Cejas, Jesús, (2011) Compensatory Fuzzy Logic. La Habana: Revista de Ingeniería Industrial. ISSN 1815-5936


  • Arabacioglu, B. C. (2010). "Using fuzzy inference system for architectural space analysis". Applied Soft Computing 10 (3): 926–937. doi:10.1016/j.asoc.2009.10.011. 
  • Hájek, Petr (1998). Metamathematics of fuzzy logic. Dordrecht: Kluwer. ISBN 0-7923-5238-6. 
  • Klir, George J.; St Clair, Ute H.; Yuan, Bo (1997). Fuzzy set theory: foundations and applications. Englewood Cliffs, NJ: Prentice Hall. ISBN 0-13-341058-7. 
  • Kosko, Bart; Isaka, Satoru (July 1993). "Fuzzy Logic". Scientific American 269 (1): 76–81. doi:10.1038/scientificamerican0793-76. 
  • Lohani, A.K.; Goel, N.K.; Bhatia K.K.S. (2006). "Takagi–Sugeno fuzzy inference system for modeling stage–discharge relationship". Journal of Hydrology 331 (1): 146–160. doi:10.1016/j.jhydrol.2006.05.007. 
  • Lohani, A.K.; Goel, N.K.; Bhatia K.K.S. (2007). "Deriving stage–discharge–sediment concentration relationships using fuzzy logic". Hydrological Sciences Journal 52 (4): 793–807. doi:10.1623/hysj.52.4.793. 
  • Lohani, A.K.; Goel, N.K.; Bhatia K.K.S. (2011). "Comparative study of neural network, fuzzy logic and linear transfer function techniques in daily rainfall‐runoff modelling under different input domains". Hydrological Processes 25 (2): 175–193. doi:10.1002/hyp.7831. 
  • Lohani, A.K.; Goel, N.K.; Bhatia K.K.S. (2012). "Hydrological time series modeling: A comparison between adaptive neuro-fuzzy, neural network and autoregressive techniques". Journal of Hydrology. 442-443 (6): 23–35. doi:10.1016/j.jhydrol.2012.03.031. 
  • Malek Masmoudi and Alain Haït, Project scheduling under uncertainty using fuzzy modelling andsolving techniques, Engineering Applications of Artificial Intelligence - Elsevier, July 2012.
  • Malek Masmoudi and Alain Haït, Fuzzy uncertainty modelling for project planning; application tohelicopter maintenance, International Journal of Production Research, Vol 50, issue 24, November2012.
  • Novák, Vilém (2005). "On fuzzy type theory". Fuzzy Sets and Systems 149 (2): 235–273. doi:10.1016/j.fss.2004.03.027. 
  • Novák, Vilém; Perfilieva, Irina; Močkoř, Jiří (1999). Mathematical principles of fuzzy logic. Dordrecht: Kluwer Academic. ISBN 0-7923-8595-0. 
  • Onses, Richard (1996). Second Order Experton: A new Tool for Changing Paradigms in Country Risk Calculation. ISBN 84-7719-558-7. 
  • Onses, Richard (1994). Détermination de l´incertitude inhérente aux investissements en Amérique Latine sur la base de la théorie des sous ensembles flous. Barcelona. ISBN 84-475-0881-1. 
  • Passino, Kevin M.; Yurkovich, Stephen (1998). Fuzzy control. Boston: Addison-Wesley. ISBN 0-201-18074-X. 
  • Pedrycz, Witold; Gomide, Fernando (2007). Fuzzy systems engineering: Toward Human-Centerd Computing. Hoboken: Wiley-Interscience. ISBN 978-0-471-78857-7. 
  • Sahoo, Bhabagrahi; Lohani, A.K.; Sahu, Rohit K. (2006). "Fuzzy multiobjective and linear programming based management models for optimal land-water-crop system planning". Water resources management,Springer Netherlands 20 (1): 931–948. doi:10.1007/s11269-005-9015-x. 
  • Santos, Eugene S. (1970). "Fuzzy Algorithms". Information and Control 17 (4): 326–339. doi:10.1016/S0019-9958(70)80032-8. 
  • Seising, Rudolf (2007). The Fuzzification of Systems. The Genesis of Fuzzy Set Theory and Its Initial Applications -- Developments up to the 1970s. Springer-Verlag. ISBN 978-3-540-71795-9. 
  • Tsitolovsky, Lev; Sandler, Uziel (2008). Neural Cell Behavior and Fuzzy Logic. Springer. ISBN 978-0-387-09542-4. 
  • Wiedermann, J. (2004). "Characterizing the super-Turing computing power and efficiency of classical fuzzy Turing machines". Theor. Comput. Sci. 317 (1–3): 61–69. doi:10.1016/j.tcs.2003.12.004. 
  • Wilkinson, R.H. (1963). "A method of generating functions of several variables using analog diode logic". IEEE Transactions on Electronic Computers 12 (2): 112–129. doi:10.1109/PGEC.1963.263419. 
  • Zemankova-Leech, M. (1983). "Fuzzy Relational Data Bases". Ph. D. Dissertation. Florida State University. 
  • Moghaddam, M. J., M. R. Soleymani, and M. A. Farsi. "Sequence planning for stamping operations in progressive dies." Journal of Intelligent Manufacturing(2013): 1-11.

External links[edit]