Fuzzy logic analog processor

Abstract: Analog processor (2) of antecedent parts of fuzzy logic inference rules and comprising a plurality of analog generators (3) of membership function (FA) each having an output (4) supplying a value corresponding to a degree of truth complemented to one (α') of logical assignments of the type (A is A') with the outputs (4) being connected together to form a common circuit node (7) and also connected to a current generator (9) and the processor (2) comprising also a voltage control device (5) inserted between a supply voltage pole (V D ) and a ground voltage reference (GND) and a one-way element (8) connected to the common circuit node (7) and the one-way element (8) having an output (10) producing an overall degree of truth (Ω) for the antecedent part of the fuzzy rule to be processed.

Description: Field of application The present invention relates to an analog processor for computation of the antecedent parts of fuzzy logic inference rules. More specifically the present invention relates to an analog processor for computation of the antecedent parts of fuzzy logic inference rules and comprising a plurality of analog generators of membership functions each having an output supplying a value corresponding to a degree of truth complemented to one of logical assignments of the "A is A'" type and said outputs being connected together to form a common circuit node and said node being connected also to a current generator. Prior art Fuzzy logic has now been established as a technique capable of supplying solutions for broad classes of control problems for which conventional techniques, e.g. those based on Boolean logic, have proven unsuited for providing acceptable performance at acceptable cost. Fuzzy logic supplies a method of modelling the 'unprecise' kinds of reasoning typical of the human mind but which play an essential role in the human ability to make decisions under conditions of uncertainty. Fuzzy logic operates on a linguistic description of reality using a particular class of variables termed linguistic variables. The value of said variables consists for example of words or phrases of any natural or artificial language. Virtually to each variable is assigned a corresponding semantic meaning of the words or phrases used during modelling of a given problem. In addition, to each variable can be syntactically joined a group of values depending thereon and which can assume different meanings depending on the context in which they are employed. Each value assigned to a linguistic variable is represented by a so-called fuzzy set, i.e. a possibilistic distribution function which links each value of the variable in the corresponding definition domain known also as universe of discourse U. The functions which identify a fuzzy set in the universe of discourse of a variable are called membership functions FA. For example, a value FA(m) = 0 indicates non-membership of the point m in the fuzzy set identified by the function while viceversa a value FA(m) = 1 indicates certainty of membership of the point m in the fuzzy set. Among the membership functions, appropriate logical operations - termed 'inferential' - which permit description of the behaviour of a system with the change in input parameters are performable. These operations are performed by mean of fuzzy rules which have generally a syntax of the following type: IF (A 1 is A' 1 ) AND(OR) (A 2 is A' 2 )..., THEN (Y is Y') where Ai are the input values, A'i and Y' are fuzzy sets, associated with respective membership functions FA and Y is the output value. The part of the rule preceding the term THEN is called "left" or antecedent part while that following said term is called "right" or consequent part of the inference rule. One of the basic fuzzy logic operations is the I assignment operation "A is A'" where A is the term associated with an input of the system and A' is the linguistic expression identifying one of the fuzzy sets associated with said input with associated membership function FA. Let us consider for example an input T corresponding to the temperature values. T' will be one of the attributes associable with said temperature variable, e.g. 'LOW'. In computing terms the assignment "T is T'" is equivalent to attribution of a value between 0 and 1 expressing the 'degree of truth' α with which is verified the statement: 'temperature' is LOW. This degree of truth α is the value of the membership functions T' opposite the input temperature T as shown in FIG. 1. Here as below we shall consider input functions of the so-called 'crisp' type, i.e. functions with only one value like the inputs of a real process. Use of the logical operator AND (logical sum) between two or more assignments expresses with an overall degree of truth Ω, again between 0 and 1, 'how much' it is true that the two or more expressions are simultaneously true. In the known technical solutions calculation of the logical sum AND between two linguistic assignments is performed by choosing the smallest of the degrees of truth α of the individual expressions. The logical operators of type OR are typically linked to the computation of the highest among the degrees of truth α of the individual assignments "A is A'". Use of said operators is not however strictly necessary since there can always be used AND type operators on the values complemented to 1 of the degrees of truth α. Calculation of the inferences in the fuzzy multivalue logic was performed heretofore essentially thanks to the use of fuzzy digital processors which however exhibit considerable problems from the view point of the memory area necessary for storing the data on the membership functions FA describing the process to be analysed. Besides these digital processors there has gained a footing, even though more modestly, the concept of structures based on an analog approach to the problem of fuzzy calculation. Among the undeniable advantages brought by analog calculation in comparison with digital are: the absence of analog-digital (A/D) interfaces in input and digital-analog (D/A) interfaces in output of the fuzzy processor, the computation takes place in a fully asynchronous manner, i.e. in the absence of a clock signal, and memorisation of rules and membership functions takes place by means of analog levels and not through bit words to be written in appropriate memories, as takes place in digital processors. The use of analog processors with simplified architecture in comparison with digital is made possible by the use of sophisticated emulators supplying the processor with the programming parameters starting from the definition by the user of an 'objective function', i.e. an input-output law which the fuzzy processor must synthesise. As an alternative or in synergy with the objective function the user can also write the fuzzy inference rules and introduce another degree of freedom of the system which is to be managed by the emulator as shown in FIG. 5. The tradition of analog structures for fuzzy logic has a first historical reference in Yamakawa's machine. Therein the inferential operators receive a number of analog levels which is a function of the resolution, i.e. of the number of intervals in which is divided the universe of discourse U (as shown e.g. in FIG. 2), as well as the complexity of the inference rule. In practice the number of levels to be memorised is calculated on the basis of the resolution of the universe of discourse U and on the basis of the number of input variables and the number of fuzzy sets for each variable. It is therefore clear that complexities and dimensions of such a machine become enormous with the increase in these parameters. This technique was therefore abandoned in favour of techniques of generation of the membership functions of the fuzzy sets with circuits based on an input/output constructive law reproducing a triangular or trapezoidal form. Introduction of this limitation in the form of the membership functions, limitation which does not prevent good operation of the fuzzy inference logic in the greater part of real applications, has allowed obtaining circuits termed 'second generation' and realizable in CMOS technology. Among these the most widely used is Sasaki's circuit since it appears to be the most expedient as regards simplicity and chip area occupation. This is a structure provided in CMOS technology and having a first input under voltage for computation, a second and third inputs again under voltage for control of the position and form of the membership function and an output under current containing the information on the degree of truth α of the individual membership function complemented to 1. FIG. 3a shows schematically Sasaki's membership function generator 1' receiving as input the computation voltage Vin and supplying as output the complemented value α' of the degree of truth α corresponding to said input. Operation of the Sasaki generator 1' is regulated by two control voltages Vr and Vf which establish the position and form of the membership function FA' generated as shown in the graphs of FIGS. 3B and 3C. The hardware embodiment of the Sasaki generator is shown in FIG. 4 and comprises a pair of squaring circuits each comprising a pair of MOS transistors arranged so as to have as output the superposition of their partial characteristics. Each squaring circuit is supplied by a generator of current of Imax value equal to the highest degree of activation. The Sasaki membership function generation 1' is hence an example of structure based on an input/output law of the current/voltage type. A limitation of this circuit is the impossibility of controlling the slope of the falling and rising sections of the complementary membership function FA' generated. A third known circuit is based on an input/output law of the current/current type and was developed by Huertas. This is a structure permitting control also of the slopes of the ascending and descending sections of the complementary membership function FA' generated at the expense however of a structural complication of the circuit. All known circuits face the problem of insertion of analog blocks specifically assigned to calculation of the maximum (operator OR) and/or of the minimum (operator AND) of the degrees of truth α. These analog blocks have serious limitations in terms of area occupied and circuit response quickness. To overcome said limitations Landolt introduced a new method for calculation of the AND operators as described in the article 'Efficient analog CMOS implementation of fuzzy rules by direct synthesis of multidimensional fuzzy subspace'. FIG. 6 shows an analog processor 2' of antecedent parts of fuzzy logic inference rules comprising a plurality of analog generators 3' of membership functions FA each having an output 4' in current. In particular, as analog processor 2' it is possible to use the Sasaki generator already described with reference to FIG. 3A. Every analog generator 3' supplies at the output 4' a value α' equal to the value complemented to one of the degree of truth α of the membership function FA generated therein opposite a given input value I. The outputs 4' of the analog generators 3' are connected at input to a computational structure 5' which has an output 6' for producing a value Ω corresponding to the overall degree of truth of the antecedent part of the fuzzy logic rule processed by the analog processor 2'. The computational structure 5' uses Landolt's AND operator definition and is described here in the framework of the processing of fuzzy inference rules by way of non-limiting example. Specifically said α i and α' i , the degrees of truth of the assignments "A i is A' i " contained in the antecedent part of the fuzzy rule to by processed and the associated complements to one respectively, the operator AND gives back the values: 1 - Σ α' i if Σ α' i ≤ 1 0 if Σ α' i > 1 The operation of the structure of FIG. 6 is as follows. The analog generators 3' linking up with said rule are connected to a common node 7' on which is input a current Imax equal to the highest degree of activation, i.e. the highest value which the overall degree of truth Ω can assume. Application of Kirkoff's law to said node 7' shows how there flows to output 6' a current corresponding to the overall degree of truth Ω of the antecedent part of the rule to be processed in accordance with the definition of AND given above. A one-way element and in particular a diode 8' is inserted between the node 7' and the output 6' to make the current path one-way. Even though it fulfils the purpose this solution is not free of shortcomings either. The technical problem underlying the present invention is to provide an analog device for computation of the antecedent part of fuzzy logic inference rules and having structural and functional characteristics such as to overcome the shortcomings which still limit the devices provided in accordance with the known art. Summary of the invention The solution idea underlying the present invention is to use the meaning given by Landolt to the AND operator in such a manner as to simplify the structure of a device for computation of the antecedent part of fuzzy logic inference rules and using membership functions defined analogically with AND logic operators to achieve simultaneously high performance in terms of operating interval and performance speed. On the basis of the above solution idea the technical problem is solved by a structure of the type set forth above and defined in the characterising part of claim 1. The characteristics and advantages of the device in accordance with the present invention are set forth in the description of an embodiment thereof given below by way of non-limiting example with reference to the annexed drawings. Brief description of the drawings In the drawings: FIG. 1 shows a LOW membership function in relation to a temperature input variable, FIG. 2 shows an example of sampling of the universe of discourse U, FIG. 3A shows schematically a generator of membership functions in accordance with the prior art, FIGS. 3B and 3C show complementary membership functions FA' generated by the device of FIG. 3A, FIG. 4 shows a circuitry embodiment of the device of FIG. 3A, FIG. 5 shows schematically a correlation between hardware and software elements in a processor operating on fuzzy logic, FIG. 6 shows schematically an analog processor in accordance with Landolt's definition of AND, FIG. 7 shows schematically an analog processor in accordance with the present invention, FIG. 8 shows an embodiment in CMOS technology of the diagram of FIG. 7, and FIG. 9 shows another embodiment in CMOS technology of the diagram of FIG. 7. Detailed description With reference to the diagram of FIG. 7 reference number 2 indicates as a whole an analog processor of antecedent parts of fuzzy inference rules using Landolt's definition of the AND operator. The processor 2 comprises a plurality of analog generators 3 of membership functions FA. In particular said analog generators 3 can be provided by means of Sasaki generators as described in the known art. Every analog generator 3 exhibits an output terminal 4 connected to a common circuit node 7. The common circuit node 7 is in turn connected to a current generator 9 delivering a current Imax, to a voltage control device 5, to a voltage pull-up device 6 and to a one-way element 8. The output of said one-way element 8 constitutes the output 10 of the processor 2 in accordance with the present invention. FIG. 8 shows an embodiment in CMOS technology of the processor 2. The common circuit node 7 is connected to the drain terminal D2 of a first p-channel MOS transistor M2 having its source terminal S2 connected to a supply voltage pole V D . The gate terminal G2 of the first transistor M2 receives a first polarisation voltage Vg. The common circuit node 7 is also connected to the source terminal S3 of a second p-channel MOS transistor M3 whose drain terminal D3 constitutes the output 10 of the processor 2 in accordance with the present invention. The transistor M3 constitutes the one-way element 8 of the diagram of FIG. 7. The common circuit node 7 is connected then to the voltage control device 5 comprising a third p-channel MOS transistor M4 and a fourth n-channel MOS transistor M5 and a second polarisation voltage Vb. In particular the common circuit node 7 is connected to the gate terminal G4 of the third transistor M4 whose source terminal S4 is connected to the pole of the supply voltage VD while the drain terminal D4 is connected to the drain terminal D5 of the fourth transistor M5. The source terminal S5 of the fourth transistor M5 is connected to a ground reference GND while the gate terminal G5 receives the second polarisation voltage Vb. The transistors M4 and M5 form a complementary pair inserted between the power supply and ground GND. Their drain terminals D4 and D5 are connected to the gate terminal G3 of the second transistor M3. Advantageously the common circuit node 7 is connected also to the voltage pull-up device 6 comprising a fifth n-channel MOS transistor M1. The common circuit node 7 is indeed connected to the source terminal S1 of the fifth transistor M1 which has its drain terminal D1 connected to the pole of the supply voltage V D . The gate terminal G1 of the fifth transistor M1 receives a third polarisation voltage Vs. We shall now discuss operation of said analog processor 2. The first transistor M2 is biased through the first polarisation voltage Vg in such a way as to generate a current Imax corresponding to the highest degree of truth of the membership functions of the fuzzy rule to be processed. The transistors M4 and M5 have the job of holding the common circuit node 7 at a very steady fixed potential and annulling the modulation effects of the current Imax generated by the first transistor M2 with the change in the drain-source voltage of the transistor M2. They also constitute null current absorption paths. The second biasing voltage Vb allows control of the voltage at the common circuit node 7. The second transistor M3 has the job of separating in voltage the common circuit node 7 held at a steady value in voltage by the output 10 so that any circuits connected downstream of the processor 2 will not affect its regular operation. To do this the transistor M3 is biased through the drain voltage of the transistors M4 and M5 which varies with variation in the operating conditions of the processor 2. Advantageously the fifth transistor M1 is biased through the third polarisation voltage Vs at the boundary of the interdiction zone. In this manner delivery of a current sufficient to maintain in saturation the n-channel MOS transistors present at the output of the analog generators 3 as provided by Sasaki is ensured if the following conditions occur: Σ α' i > 1. This holds a voltage level at the common circuit node 7 capable of ensuring high response speed of the circuit in accordance with the analog processor of the present invention. The use of an analog processor in accordance with the present invention brings two main advantages, to wit: it raises the voltage of the common circuit node 7 and thus widens the interval of operation for the analog generators 3 used thanks to the presence of the voltage control device 5, and it quickens the processor 2 in the passage from the operating condition where: Σ α' i ≤ 1. to that where: Σ α'i > 1. thanks to the presence of the voltage pull-up device 6. FIG. 9 shows an alternative embodiment with CMOS technology for the processor 2 in accordance with the present invention. In this FIG. 9 is seen how the voltage control device 5 comprises a sixth n-channel MOS transistor M6 inserted between the third transistor M4 and the fourth transistor M5. In particular the drain terminal D6 of the sixth transistor M6 is connected to the drain terminal of the third transistor M4 while the source terminal S6 of the sixth transistor M6 is connected to the drain terminal D5 of the fourth transistor M5. In addition the gate terminal G6 of the sixth transistor M6 is advantageously connected to the gate terminal G1 of the fifth transistor M1. The embodiment of FIG. 9 brings two further advantages in relation to that of FIG. 8, to wit: The presence of an external supply voltage Vs is no longer necessary since the sixth transistor M6 connected as a diode supplies to the fifth transistor M1 a voltage sufficient to interdict said transistor M1 when the output 10 exhibits a value Ω > 0. In addition, the voltage variations of the gate terminal G6 of the sixth transistor M6 satisfy the current requirement of the analog generators 3 connected to the common circuit node 7 even when the output value Ω is zero. In the passage of the output 10 from a value Ω > 0 to a value Ω = 0 the voltage difference on the gate terminal G3 of the second transistor M3 is less than that of the embodiment of FIG. 8 and further increases the response speed of the device in accordance with the analog processor of the present invention.

Claims: Analog processor (2) for computation of the antecedent parts of fuzzy logic inference rules and comprising a plurality of analog generators (3) of membership functions (FA) each having an output (4) supplying a value corresponding to a degree of truth complemented to one (α') of logical assignments of the "A is A'" type and said outputs (4) being connected together to form a common circuit node (7) and said node being connected also to a current generator (9), characterised in that said processor (2) comprises a voltage control device (5) that is inserted between a supply voltage (V D ) and a ground voltage reference (GND), and a one-way element (8), said voltage control device (5) and said one-way element (8) being connected to the common circuit node (7), wherein said voltage control device (5) holds the common circuit node (7) at a steady fixed potential and annuls the modulation effects of the current generation (7), and wherein said one-way element (8) has an output (10) producing a degree of overall truth (Ω) related to the antecedent part of the fuzzy rule to be processed. Analog processor (2) in accordance with claim 1, characterised in that said voltage control device (5) comprises a first and second transistors (M4,M5) inserted in mutual series between said pole of the supply voltage (V D ) and the second ground voltage reference (GND) and the command terminal (G4) of the first transistor (M4) being connected to said common circuit node (7) and the command terminal (G5) of the second transistor (M5) being connected to a first polarisation voltage pole (Vb). Analog processor (2) in accordance with claim 2, characterised in that said one-way element (8) comprises a third transistor (M3) whose control terminal (G3) is connected to the drain terminal (D4) of said first transistor (M4) and whose source terminal (S3) is connected to the common circuit node (7). Analog processor (2) in accordance with claim 3, characterised in that it comprises another voltage pull-up device (6) inserted between said supply voltage reference (V D ) and the common circuit node (7). Analog processor (2) in accordance with claim 4, characterised in that said voltage pull-up device (6) comprises a fourth transistor (M1) whose command terminal (G1) is connected to a second polarisation voltage pole (Vs) and whose source terminal (S1) is connected to the common circuit node (7). Analog processor (2) in accordance with claim 2, characterised in that said voltage control device (5) comprises a fifth transistor (M6) inserted between the drain terminal (D4) of the first transistor (M4) and the drain terminal (D5) of the second transistor (M5). Analog processor (2) in accordance with claim 6, characterised in that it comprises another voltage pull-up device (6) inserted between said supply voltage reference (V D ) and the common circuit node (7). Analog processor (2) in accordance with claim 7, characterised in that said voltage pull-up device (6) comprises a fourth transistor (M1) whose command terminal (G1) is connected to the command terminal of the fifth transistor (M6) and whose source terminal (S1) is connected to the common circuit node (7). Analog processor (2) in accordance with claim 1, characterised in that said current generator (9) delivers a current (Imax) equal to the highest degree of truth (α) of the membership functions of the fuzzy rule to be processed. Analog processor (2) in accordance with claim 9, characterised in that said current generator (9) comprises a sixth transistor (M2) whose source terminal (S2) is connected to the supply voltage pole (V D ) and whose drain terminal (D2) is connected to the common circuit node (7) and whose command terminal (G2) receives a third polarisation voltage (Vg). Analog processor (2) in accordance with claim 10, characterised in that said voltage control device (5) holds the common circuit node (7) at a fixed and very steady potential and annuls the modulation effects of the current (Imax) delivered by the current generator (9) with variation in the drain-source voltage of the sixth transistor (M2). Analog processor (2) in accordance with claim 5, characterised in that said fourth transistor (M1) included in the voltage pull-up device (6) is biased at the boundary of the interdiction zone through said second polarisation voltage (Vs) in such a manner as to ensure delivery of a current sufficient to hold in saturation the transistors present in the analog generators (3) if the following condition occurs: Σ α' i > 1. Analog processor (2) in accordance with claim 3, characterised in that said third transistor (M3) included in said one-way element (8) separates in voltage the common circuit node (7) held at a steady value in voltage from the output (10) so that any circuits connected downstream of the processor (2) do not affect its regular operation. Analog processor (2) in accordance with claim 2, characterised in that said first and second transistors (M4,M5) constitute null current absorption paths.

Inventors: BRUNO DARIO, GIACALONE BIAGIO, MANARESI NICOLO, BRUNO,DARIO, GIACALONE,BIAGIO, MANARESI, NICOLO, Manaresi, Nicolò
Applicants: CONS RIC MICROELETTRONICA, CO.RI.M.ME.
Application year: 1994
Main classification: G06G7
IPC codes: G06G7, G06N7, G05F3