





























































Studia grazie alle numerose risorse presenti su Docsity
Guadagna punti aiutando altri studenti oppure acquistali con un piano Premium
Questa pagina non è visibile nell’anteprima
Non perderti parti importanti!






























































A model is a representation of some entity, defined for a specific purpose. A model captures only those aspects of the entity modelled that are relevant for the purpose.
Approximation : the model features are similar to the real ones, but not the same, and cannot be further defined.
Uncertainty : we are not sure that the features of the model are the same of the entity.
Imprecision : the model feature values are incorrect, but close to the real ones.
Fuzzy sets : correct model in a finite number of points, smooth transition among them (approximation).
Neural Networks : Input samples, learning algorithms to define output values for unknown values.
Genetic algorithms : optimal solution, obtained by evaluating populations of tentative solutions and combining their parts
A fuzzy set is a set whose membership function may range on the interval [0,1]. A membership function defines a set.
Defines the degree of membership of an element to the set
Example: A 35 years old person is: Young with membership 0, Old with membership 0, Not very young with membership 0,
If an element is 0, it is not included in the fuzzy system.
MFs define fuzzy sets. Labels denote fuzzy sets. Fuzzy sets can be considered as conceptual representations.
Fuzzy sets covering the universe of discourse; each fuzzy set is a granule.
Coverage : each element of the universe of discourse is assigned to at least a granule with membership > 0
Unimodality of fuzzy sets : there is a unique set of values for each granule with maximum membership
Fuzzy partition : for each value of the universe of discourse the sum of membership degrees to the corresponding granules is 1.
Let’s consider a punctual error as the sum of the errors of interpretation by fuzzy sets due to imprecise measurements, noise, ecc
And the integral error, as the integral of e(a) over the range of a
It can be demonstrated that the integral error of a fuzzy partition is smaller than that of a Boolean partition, and that it is minimum w.r.t. (with respect to) any other frame of cognition.
The α-cuts of a fuzzy set is the crisp set of the values of x such that.
A fuzzy set is convex if
For any , in R and any λ belonging to.
Convex Non-Convex
A fuzzy set with one member.
A fuzzy set whose members have all membership = 1.
STANDARD OPERATORS ON FUZZY SETS
Complement
Union
Intersection
Using the standard operators the maximum error is the one we have on the operand’s MFs
Axioms:
For all a and b in , if then
c is a
c is , i.e., for all a in
Axioms:
implies
Drastic sum:
Axioms:
MONOTONICITY
is continuous
Logic Logic can be used to represent knowledge Propositional logic: truth values for propositions e.g.: the grass is green is true First order predicate logic: truth values for predicates There are variables and quantifiers. e.g. is true
Second order predicate logic: predicates of predicates e.g. is false
Propositional logics are concerned with propositional operators which may be applied to one or more propositions giving new propositions. Accent on the truth value of propositions, not on their meaning, and on how these truth values are composed.
A logic is truth functional if the truth value of compound sentence depends only on the truth values of the constituent atomic sentences.
In a classical, Boolean or two-valued logic every proposition is either true or false and no other feature of the proposition is relevant.
Same ad propositional logics augmented with the possibility to define predicates on variables existential and universal quantifiers.
A predicate is a feature of language which you can use to make a statement about something.
In predicate logics it is possible to infer the truth value of a proposition by inferential mechanisms, such as modus ponens.
e.g. All men are mortal, Socrates is a man Socrates is mortal
Fuzzy logic is an infinite-value logic, with truth values in [0,1]
Propositions are expressed as
Where: A is a linguistic variable L is a label denoting fuzzy set
A linguistic variable is defined by a 5-tuple: X, T(X), U, G, M X: name of the variable T(X): set of terms for X, each corresponding to a fuzzy variable denoted by T(X) and ranging on U U: universe of discourse defined on a base variable u G: syntactic rule to generate the interpretation X of each value u M: semantic rule to associate to X its meaning
e.g: X is a linguistic variable labelled “Age”.
Kind of modifiers Strong modifiers Make the predicate stronger Reduce the truth of the proposition
Weak modifiers Make the predicate weaker Increase the truth of the preposition
Properties of fuzzy modifiers They have to satisfy these properties: is a continous function If is strong, is weak Given another modifier g, the composition of g and m and viceversa are modifiers, too, and , if both are strong (or weak), so is their composition
Inference rule We can consider a rule as a model, a way to define a mapping from input to output. We consider forward chaining rules, having the shape:
Where: is a set of
Rules are used to represent inferential relationships among pieces of knowledge. They are used to implement Knowledge Based Systems, among which Expert Systems are mostly known as successful AI applications, e.g. for diagnosis, forecast, design, etc.
How do we use rules:
A fuzzy rule is a rule whose clauses have the shape:
Where V is a linguistic variable and L is a label, a value for V associated to a fuzzy set. This is a linguistic clause.
Usually, clauses in the antecedent are only related by the AND operator. The antecedent is usually matched against facts that are represented as values of ordinal variables corresponding to the linguistic variables.
Consequent may be one of two types.
Linguistic rules Consequent is a conjunction of linguistic clauses.
E.g. IF (Distance is Far) AND (BallDirection is Front) THEN (Speed is high) AND (Direction is Ahead)
This can be considered as mapping between the interpretation of an input configuration and a symbolic description of the desired output.
Model rules Model rules bind a model to the linguistic interpretation of its applicability conditions.
E.g. IF (Temperature is High) AND (Pressure is High) THEN Heating = 2000-3T-7P
A defuzzification strategy has to fulfill two tasks at the same time. It has to turn a fuzzy set into a set and it has to choose one value from a set of values. Strategies for defuzzification:
Mean of Maxima (MOM)
Where is thus the cardinality of the set M.
In contrast to the Mamdani controller, the output fuzzy set becomes larger, the less the antecedent of the rule is satisfied, that is, the lower the value is. In the extreme case , we obtain as output the fuzzy set is constantly 0.
Features: Robustness Wide range of applicability Heuristic definition Smoothness Non linearity
Fuzzy databases and information retrieval Flexible queries with human-like sensibility E.g.: “Give me the names of all the people that have recently invested a lot” SELECT Name, MatchingRate FROM Investments WHERE (( InvestmentDate is Recent ) 0,8) AND (( InvestedAmount is Large ) 0,5)
Steps for fuzzy system design:
Problem definition Analogous to what done in classical model design Selection of the input variables Selection of the output variables Selection of the goals of the model
Selection of input variables Numerical or ordinal variables so that it is possible to define fuzzy sets. Variables that can be Perceived from sensors, data or users Computed from perceived variables
In general, there are no a priori preclusions to select variables: it depends on the problem and the designer sensibility.
Selection of output variables Output variables are the results of the model, so come directly from the modeller needs
For instance: For a control application, we might either have the control variables, or the respective increments For a decision support system we might have the decision to be taken
Selection of the goals of the fuzzy model The goals of the fuzzy models depend on the specifications. For instance, a control system may reach the set point as soon as possible, with the least overshooting, as robustly as possible, etc.
Crosspoint (smoothness in the output) Singletons or more general MFs for the output Singletons: the weight of any cut is proportional to the cut level. Shapes: the relative weight is higher for lower cuts
Singletonssss Shapesssssssssss
Typical fuzzy sets with triangular MF can be interpreted as extensional hulls of single points or values. Due to their simple formulas and computational efficiency, both triangular MFs and trapezoidal MFs have been used extensively, especially in real-time implementations. However, since the MFs are composed of straight line segments, they are not smooth at the corner points specified by the parameters.
Normalization It is common to normalize data on a standard range.
Rule definition From experience
Introspective analysis Structured interview
From another model By using machine learning, or self-tuning techniques.
Selection of inferential engine The inferential engine depends on the operators selected for: AND of antecedent clauses o Min: the worst degree of matching is the most relevant o Product: all the degrees of matching are relevant Detachment: combination with the rule weight o Min o Product Aggregation of degrees of the same consequent o Max: the best degree is the most relevant o Probabilistic sum: all the collected knowledge is taken into account
Testing Aim: Verify the design goals Possible activity Dynamic simulation, if the model of subject is available E.g. if the model of the controlled system is available Static simulation Test on the process, possibly under safe conditions