Fuzzy computer system

Abstract: A fuzzy computer system according to the invention comprises: a digital processor; a digital memory; a fuzzy inference processing circuit; and a fuzzy inference processing circuit interface. The digital memory stores programs of the digital processor and inference rules of the fuzzy inference processing circuit. The fuzzy inference processing circuit executes a fuzzy inference on the basis of a given inference rule. The fuzzy inference processing circuit interface connects the digital processor and the fuzzy inference processing circuit. In accordance with the programs stored in the digital memory, the digital processor gives the inference rules stored in the digital memory to the fuzzy inference processing circuit through the interface and fetches the result of the inference of the fuzzy inference processing circuit through the interface.

Description: BACKGROUND OF THE INVENTION Field of the Invention The present invention relates to a fuzzy inference processing apparatus and a computer system to execute a fuzzy inference process. Description of the Related Art Computers are used in every field of the society due to the progress of the computer techniques and the realization of low prices of the hardwares. However, the conventional computers have a problem such that an object to be handled by the system is strictly modeled and the operation of the program must be described in detail in conformity with the model. Therefore, it is extremely difficult to form the program for handling an object which cannot be strictly modeled. This is because in the conventional computers, programs are formed fundamentally on the basis of the operation to process binary data which is expressed by 1 and 0. In the conventional computers, when programs are formed, it is necessary to strictly describe by numerical expressions to execute condition discrimination. In recent years, what are called a fuzzy computer, a fuzzy controller, a fuzzy inference apparatus, and the like to execute inferences based on the fuzzy theory have been developed (for instance, "NIKKEI ELECTRONICS", No. 426, pages 129 - 152, July 27, 1987). The fuzzy inference apparatuses include an apparatus having a special architecture irrespective of the analog or digital type and an apparatus using the conventional digital computer. A circuit construction of the apparatus having a special architecture only for fuzzy inference is complicated. On the other hand, the apparatus using the digital computer needs a memory to store data indicative of a membership function. The memory must have a fairly large capacity. A fuzzy computes system according to the preamble of claim 1 is known from IEEE Expert, vol. 1, no. 3, 1986, New York, US, pages 55-62. SUMMARY OF THE INVENTION The present invention is designed to address to the problems of such conventional computers and it is an object of the invention to realize a fuzzy computer system in which an object which cannot be strictly modeled and has a vague portion can be handled by using the fuzzy theory. Another object of the invention is to provide a fuzzy inference processing apparatus in which a part of the fuzzy inference (the antecedent process of the fuzzy inference rule) can be executed at a high speed by means of a simple construction. The fuzzy computer system according to the invention is as defined in claim 1. A detailed explanation will now be made hereinbelow with respect to an embodiment using a circuit which has already been proposed as a fuzzy inference processing circuit by the applicant of the present invention, that is, a circuit in which a membership function is expressed by voltage signals distributed on a plurality of (for instance, 25) lines and the fuzzy inference is executed by directly using the signals distributed on the plurality of lines (for example, refer to JP-A-63-123177 or U.S. Patent Application Serial No. 116,777 or EP-A-0 268 182 . However, various kinds of hardware systems such as a special circuit to handle a digital signal and the like can be obviously applied as a fuzzy inference processing circuit in the invention. An antecedent processing apparatus according to the invention, for performing processing of the antecedent part of a fuzzy inference rule is as defined in claim 3. According to the invention, discrimination with respect to whether the input signal lies within a range which is covered by the set membership function or not is executed by using predetermined bits among a plurality of bits which construct the input signal, data indicative of the adaptation is made by using the other bits of the input signal in accordance with the result of the discrimination, and this data is output or data indicative of zero is output. Therefore, the process for the antecedent part of the fuzzy rules can be accomplished at a high speed by an extremely simple construction without needing any complicated arithmetic operations and a memory of a large capacity. BRIEF DESCRIPTION OF THE DRAWINGS Fig. 1 is a block diagram showing a construction of a fuzzy computer system; Fig. 2 is a block diagram showing a practical example of a fuzzy inference processing circuit and its interface; Fig. 3 is a block diagram showing another example of a fuzzy inference processing circuit and its interface; Fig. 4 is a graph showing an example of membership functions; Fig. 5 is a circuit diagram showing a practical example of an antecedent processing circuit; and Fig. 6 is a diagram for explaining the operation of the circuit shown in Fig. 5. DETAILED DESCRIPTION OF A PREFERRED EMBODIMENT Fig. 1 shows a construction of a fuzzy computer system according to the invention. The fuzzy computer system comprises: a CPU 10; digital memories; a fuzzy inference processing circuit 22; a fuzzy inference processing circuit interface 21; means 13 for controlling the operation of the system from the outside; means 16 for inputting data to the fuzzy inference processing circuit; and means 19 for using the result of the process of the fuzzy inference processing circuit. The above components are connected by a bus. An RAM 11 and an ROM 12 are used as digital memories. The RAM 11 stores various data, and inference rules, membership functions, and the like for the fuzzy inference processing circuit 22. The ROM 12 stores a program which is executed by the CPU 10. The CPU 10 controls the whole system and, in particular, controls the data input/output and the fuzzy inference processing circuit 22 in accordance with the program stored in the ROM 12. The fuzzy inference processing circuit 22 executes the operation of the fuzzy inference. The fuzzy inference processing circuit interface 21 connects the CPU 10 and the fuzzy inference processing circuit 22. Constructions of the interface 21 and circuit 22 will be described in detail hereinlater. A terminal apparatus 15 and a terminal apparatus interface 14 to use the terminal apparatus 15 are provided as means 13 for controlling the operation of the system from the outside. The terminal apparatus 15 has a CRT display and a keyboard. The terminal apparatus 15 is used to operate the system, to set and change the rule and membership function, to display data, and the like. The means 16 for inputting data from the outside is a fuzzy input interface to input signals from, for instance, external sensors 18 or the like and includes, for example, three A/D converters 17. The CPU 10 fetches data from the sensors 18 or the like which are connected to the outside and controls in a manner such that the input data is converted into the digital signals by the A/D converters 17 and is, further, converted into the fuzzy data and, thereafter, the fuzzy data can be given to the fuzzy inference processing circuit interface 21. The means 19 for using the result of the process of the fuzzy inference processing circuit 22 includes a fuzzy output interface to output a control signal to the outside. In the embodiment, the fuzzy output interface is constructed by a D/A converter 20 and outputs an analog control signal to the outside. In Fig. 1, although the means 13 for controlling the operation of the system from the outside is connected to the CPU 10 through the bus, the means 13 can be also realized by other system such as a power switching circuit or the like. In Fig. 1, the means 16 for inputting data to the fuzzy inference processing circuit 22 and the means 19 for using the result of the process of the fuzzy inference processing circuit 22 are connected to the CPU 10 via the bus. However, the means 16 and 19 can be also directly connected to the fuzzy inference processing circuit 22 or the data can be input and output to and from the means 16 and 19 through the terminal apparatus 15. Fig. 2 shows an example of constructions of the interface 21 and fuzzy inference processing circuit 22. In the diagram, binary buses are shown as blank arrow lines and a plurality of (for instance, 25) lines to transmit a voltage signal distribution indicative of the membership function are shown as hatched arrow lines. The fuzzy inference processing circuit 22 can execute the inferences using r fuzzy inference rules (called modus ponens, if-then rules). For this purpose, r fuzzy inference engines 30 are provided. The inference engines 30 have an architecture which is applied to a rule having two fuzzy proposition in the antecedent part of the implication. Fuzzy sets (or membership functions) in the antecedent part of the implication are expressed by A i and B i (i = 1 to r) and a fuzzy set (or membership function) in the consequent part of the implication is expressed by C i (i = 1 to r). On the other hand, fuzzy sets (or membership functions) of the premise are expressed by A' and B'. Each inference engine 30 comprises: a C-MIN circuit (correspondence MIN circuit) 32 which receives A' and A i ; a C-MIN circuit 33 which receives B' and B i ; an E-MAX circuit (ensemble MAX circuit) 34 which receives an output of the C-MIN circuit 32; an E-MAX circuit 35 which receives an output of the C-MIN circuit 33; a controlled MIN-MAX circuit 36 which receives outputs of the E-MAX circuits 34 and 35; and a truncation circuit 37 which receives an output of the circuit 36 as a truncating input and cuts out (MIN operation) the C i by the truncating input. An output of the truncation circuit 37 expresses one inference result C i ′. The controlled MIN-MAX circuit 36 executes the MIN operation or MAX operation in accordance with a control input. Outputs of all of the inference engines 30 are added by the C-MAX circuit 31, so that a final inference result C′ is obtained. On the basis of the data which is given from the CPU 10, the fuzzy inference processing circuit interface 21 gives the membership functions A′, B′, A i , B i , and C i and a control signal of the controlled MIN-MAX circuit 36 to the inference engines 30. The interface 21 also allows the CPU 10 to fetch the inference result C′ of the fuzzy inference processing circuit 22. The interface 21 includes membership function output interfaces 41. The interface 41 is a membership function generator (hereinafter, referred to as an MFG). The MFG 41 comprises a latch circuit 43 and a voltage distribution generator 42. The MFGs 41 are provided for all of the above membership functions A′, B′, A i , B i , and C i . Codes (labels) indicative of the membership functions are given from the CPU 10 to the latch circuit 43 via the bus. A voltage distribution indicative of the membership function corresponding to the code given to the latch circuit 43 is generated from the voltage distribution generator 42 and is input to the corresponding inference engine 30. The interface 21 also has latch circuits 44 to temporarily store the codes indicative of the control signals of the controlled MIN-MAX circuit 36. The codes are also given from the CPU 10. The interface 21 further has an inference result input interface 45 to give the inference result C′ which is obtained from the fuzzy inference processing circuit 22 to the CPU 10. The interface 45 includes A/D converters 46 which are respectively connected to the lines to output the voltage distributions indicative of the inference results C′. Voltages of the lines are converted into the digital signals and are sequentially input to the CPU 10 via the buses. The interface 21 further includes a defuzzifier 47 to convert the inference result C′ into the deterministic values and an A/D converter 48 to convert an analog output of the defuzzifier 47 into a digital signal. An output of the A/D converter 48 is input to the CPU 10 via the bus. When the CPU 10 writes data (codes) into all of the membership function output interfaces 41 and the latch circuits 44 as MIN-MAX circuit control interfaces, the fuzzy inference processing circuit 22 executes the fuzzy inference process and outputs the result of the process. The result of the process which was output from the fuzzy inference processing circuit 22 is read by the CPU 10 via the interface 45 or defuzzifier 47, so that the result of the process can be used. As mentioned above, the CPU 10 can execute one fuzzy inference by the single writing operation into the latch circuits 43 and 44 of the interface 21 in accordance with the program in the ROM 12. By changing the rules the fuzzy inference may be also repetitively executed. The codes may be also written into the interface on the basis of the inference result. In the embodiment, the user can also control the system by operating the terminal apparatus 15. For instance, the setting of the rule, starting of the inference, and stopping of the inference can be also executed from the terminal apparatus 15. For example, the commands corresponding to the setting of the rule, starting of the inference, and stopping of the inference are set to SET, RUN, and STOP, respectively. The SET command is input by "SET rule code". When the SET command is input, the CPU 10 sets the corresponding rule in the RAM 11 into the interface 21. When the RUN command is input, the CPU 10 allows the fuzzy inference to be executed. The format to execute the fuzzy inference differs depending on an object to be handled by the system. For instance, in the application to the control, the CPU 10 repetitively executes the fuzzy inference on the basis of the input data from the sensors 18 and controls the apparatuses connected to the outside. If the user inputs the STOP command from the terminal apparatus 15 during the execution of the fuzzy inference, the CPU 10 stops the fuzzy inference and is returned to the input waiting mode. In the embodiment, the signals of the sensors 18 or the like can be input via the three A/D converters 17. The CPU 10 converts the non-fuzzy values such as data which were input from the A/D converters 17 into the membership functions and stores them into the RAM 11 or sets them into the interface 21 for the fuzzy inference. Modifications will now be summarized hereinbelow. (1) Means for storing the program In the above-described embodiment, the program has been stored into the P-ROM. However, a realizing system such as to store the program into an RAM is also possible. The program can be also provided in the CPU or can be also read out of an external memory device. (2) Construction of the memory If the necessary memory capacity is small, the memory can be also assembled in the CPU. (3) Construction of the fuzzy inference processing circuit The fuzzy inference processing circuit can be also constructed by a digital circuit. (4) Fuzzy inference processing circuit interface In general, since the same membership function can be used for various objects, it is not always necessary to be rewritten. In this case, the membership function can be also set by a method different from that in the embodiment. In the embodiment, although the membership function has been generated by the voltage distribution generator, the membership function can be also generated by using the D/A converter or both of the D/A converter and the analog multiplexer. Further, the fuzzy inference engines having the fixed rule can be also used. On the other hand, if the logic which is used in the antecedent part has already been determined to either AND or OR, there is no need to use the controlled MIN-MAX circuit but it can be constructed by an MIN or MAX circuit. The control input of the controlled MIN-MAX circuit can be also set by a switch or a jumper pin instead of the CPU. (5) Means for controlling the operation of the system from the outside In the embodiment, although the system has been controlled from the outside by using the terminal apparatus, it is also possible to control the system by a signal by using an external I/O interface. Such a system is effective for control of a robot, a machine, or the like. In place of the terminal apparatus, an I/O apparatus such as keyboard, bit map display, or the like can be also combined. It is also possible to connect the system to a communication circuit and to control the operation of the system from a distant position. The interface circuit between the CPU and the outside is not always necessary to control the operation of the system from the outside. For instance, the activation of the system can be controlled by turning on the power source. In this case, the timing to start the operation after activation can be also delayed by the program. Further, in order to synchronize with an external phenomenon such as a time, the system can be also combined with, for example, a timer circuit. On the other hand, the operation of the system can be also controlled by abnormality of the power source or the like. (6) Means for inputting data to the fuzzy inference processing circuit In the above embodiment, data has been input by using the A/D converters and the fuzzy membership functions have been input to the fuzzy inference processing circuit via the fuzzy inference processing circuit interface. However, for instance, the following various inputting systems are considered in addition to the above inputting system. If the fuzzy inference processing circuit is constructed by a digital circuit, the A/D converters are unnecessary and it is sufficient to connect by, for example, latch circuits. A part of the functions which are realized by the fuzzy inference processing circuit and the program in the embodiment can be realized by external circuits and the constructions of the fuzzy inference processing circuit and the programs can be also modified. The signals can be also directly input from the external sensors or the like to the fuzzy inference processing circuit by using an interface circuit or the like without using the CPU. It is also possible to construct such that the signals are converted into the fuzzy information by the external system and the fuzzy information is directly input to the fuzzy inference processing circuit. It is also possible to construct such that the user inputs the signals from the terminal apparatus or the like and they are converted by the program of the digital CPU and are input. The user can also directly input the fuzzy information from the terminal or the like. The membership functions which were output by other fuzzy computers can be also input. In such a case, it is not always necessary to directly connect the system to the other fuzzy computers but the data which has once been recorded on a magnetic disk or the like may be also used as will be explained hereinafter. The data which is derived by being processed by the digital computer by the program can be also input to the fuzzy inference processing circuit. Data can be also formed by the simulation by the digital computer and input to the fuzzy inference processing circuit. Such a system is effective when the operation of the fuzzy computer is analyzed or the like. The data which has previously been recorded can be also input to the fuzzy inference processing circuit. For instance, it is also possible to construct in a manner such that the data input from the sensors or the like are once recorded into a memory device such as a magnetic disk or the like, and after the data was read in accordance with the program, it is input to the fuzzy inference processing circuit. If the input data is deterministic values which are obtained from the sensors or the like, it is not always necessary to execute the fuzzy operation in the antecedent part by the format of the membership function as in the above embodiment. Fig. 3 shows a part of examples of the interface 21 and the fuzzy inference processing circuit 22 in the case where deterministic values are input. For inputs a and b from the sensors or the like, membership function circuits (MFCs) 38 to output the signals indicative of the membership function value corresponding to the inputs a and b are provided, respectively. Constants (peak position and the like) to specify the membership functions of the MFCs are given from the CPU 10 to constant setting circuits 39 via the buses and are, further, input to the MFCs 38 in the formats suitable for the MFCs 38. Outputs of the two MFCs 38 are given as a truncating input of the truncation circuit 37 through an MIN circuit 36a. (7) Means of using the result of the process of the fuzzy inference processing circuit In the embodiment, the output membership function of the fuzzy inference processing circuit has been input through the A/D converters to the CPU and the data has been processed and, thereafter, the processed signal has been converted into the analog control signal by the D/A converter. However, for instance, the following other various means are considered as the means for using the result of the process. Data or signals can be also directly output from the fuzzy inference processing circuit to the outside without using the CPU. For instance, in the case of the control of an apparatus or the like, a control signal can be also directly output from the fuzzy inference processing circuit by using an interface circuit. It is also possible to construct such that the signals are output as data to the terminal apparatus, printer, or the like, thereby enabling the user to read the data or the like. As an output format, there are considered, for instance, a system in which the membership function is directly output as numerical values, a system in which the membership function is displayed as a graph, a system in which the membership function is output as a linguistic expression such as "slightly hot", and the like. The membership function is recorded in a recording medium such as a magnetic tape or the like and can be also used later. The output of the fuzzy inference processing circuit can be also used as inputs of other fuzzy computers. In this case, it is not always necessary to directly connect the system to other fuzzy computers but the data which has once been recorded on a magnetic disk or the like can be also used as will be explained hereinlater. The output of the fuzzy inference processing circuit can be also used by the program of the digital computer. For instance, when a robot, a machine, or the like is controlled by the program of the digital computer, by combining the fuzzy inference, the portion which is difficult to be processed by the ordinary program can be supplementarily processed by the fuzzy inference. On the other hand, by combining with a program to execute the inference such as an AI (Artificial Intelligence), the portion which cannot be unconditionally determined to be YES or NO can be processed by the fuzzy inference. In the fuzzy inference processing circuit, the fuzzy inference of what is called a modus ponens (If-then rule) is executed. The If-then rule is expressed by the following format. If a = A and b = B, then c = C Consideration will now be made with respect to the case where a and b are given as deterministic values like input signals from the sensors or the like instead of a fuzzy set. As in the case of the MFCs shown in Fig. 3, a circuit to generate a function value (grade) of a membership function A or B (such a function value is referred to as an adaptation of the input a or b to the membership function A or B) when the input a or b is given is called an antecedent processing circuit. The fuzzy inference is executed by applying the result of the process of the antecedent part (the above adaptation or the result of the MIN or MAX operation of a plurality of adaptations) to the membership function C of the consequent part. As shown in Fig. 4, seven kinds of membership functions having an isosceles triangular shape are presumed. NL denotes Negative Large; NM indicates Negative Medium; NS Negative Small; ZR Almost Zero; PS Positive Small; PM Positive Medium; and PL Positive Large, respectively. The input a has a range from -I to +I. If ZR is set as a membership function A in the If-then rule, when the input a is given to the antecedent processing circuit, an adaptation a₁ of the input a to the ZR is output from the processing circuit. If PS is set as the membership function A, when the input a is given, an adaptation a₂ of the input a to the PS is obtained. A practical example of the antecedent processing circuit to obtain the adaptation of the input a to the set membership function when the input is given as mentioned above will now be described with reference to Figs. 5 and 6. Fig. 5 shows the antecedent processing circuit and Fig. 6 is a diagram for explaining the operation of the processing circuit. Different from the MFCs shown in Fig. 3, the input signal a is given as a digital signal to the antecedent processing circuit and an adaptation (output) of the input a to the set membership function is also expressed by a digital value. The input signal a is expressed by eight bits of i₀, i₁, .... i₆, and i s . Bit i s indicates the positive or negative sign of the input a. When i s = 1, the input a is a negative value. When i s = 0, the input a is a positive value. The other seven bits i₀ to i₆ indicate the absolute value of the input a. i₆ is the most significant bit. i₀ is the least significant bit. The values of the bits of the input a in an input range from -I to +I are set as shown in the lower portion in Fig. 6. The range from -I to +I is divided into eight areas by three bits i s , i₆ and i₅. Each of the eight areas is divided into 32 areas by five bits i₄, ..., i₀ in each area. The membership functions of NL, NM, ..., PL are shown in the upper portion in Fig. 6. In the circuit of Fig. 5, the lower bits i₄, ..., i₀ of the input signal are respectively individually applied to one input terminal of each of NAND circuits G₄, G₃ ..., G₀. The higher bits i₆ and i₅ of the input signal are connected to the input terminals of an NAND circuit G. Output terminals of the NAND circuit G are connected to the other input terminals of the NAND circuits G₄, ..., G₀. Output terminals of the NAND circuits G₄, ..., G₀ are connected to an adaptation output circuit 50 comprising: NAND circuits G₁₄, G₁₃, ..., G₁₀, OR circuits G₂₄, G₂₃, ..., G₂₀, and NAND circuits G₃₄, G₃₃, ..., G₃₀. The bits i₅ and i₆ of the input signal are given to the input terminals of the OR circuit G₆. Further, the bit i₅ is connected to an inverter N₅. The bits i s , i₆ and i₅ of the input signal are connected to one input terminal of each of exclusive OR circuits G 1s , G₁₆, and G₁₅. Further, the bit i s , output terminals of the OR circuit G₆, and output terminals of the inverter N₅ are connected to one input terminal of each of exclusive OR circuits G 2s , G₂₆, and G₂₅, respectively. r₀, r₁, and r s denote codes indicative of the kind of the membership function A in the rule which has been set in the antecedent processing circuit. The codes are defined such that NL = 111, NM = 110, NS = 101, ZR = *00 (* may be set to either 0 or 1), PS = 001, PM = 010, and PL = 011. The codes are determined so as to have the intimate relations with the codes comprising the bits i s , i₆, and i₅ indicative of the input data of the area which is covered by each membership function. The bit r₀ is connected to the other input terminals of the exclusive OR circuits G₁₅ and G₂₅. The bit r₁ is connected to the other input terminals of the exclusive OR circuits G₁₆ and G₂₆. The bit r s is connected to the other input terminals of the exclusive OR circuits G 1s and G 2s . The bits r₀ and r₁ are connected to input terminals of an OR circuit G 1R . Output terminals of the exclusive OR circuit G 1s and output terminals of the OR circuit G 1R are connected to input terminals of an AND circuit G₁₇. Output terminals of the exclusive OR circuits G₁₅ and G₁₆ and AND circuit G₁₇ are connected to input terminals of an NOR circuit G₁₈. Output terminals of the exclusive OR circuits G₂₅, G₂₆, and G 2s are connected to input terminals of an NOR circuit G₂₇. Output terminals of the NOR circuit G₁₈ are directly connected to the adaptation output circuit 50. Output terminals of the NOR circuit G₂₇ are connected to the adaptation output circuit 50 through an inverter N₇. A gate control circuit 51 is constructed by the OR circuits, AND circuits, exclusive OR circuits, and NOR circuits which are provided in a range from the OR circuit G₆ and inverter N₅ to the inverter N₇ in Fig. 5 and by the inverters mentioned above. The gate control circuit 51 discriminates whether the input signal a lies within a range which is covered by the membership function A (either one of NL to PL) of the rule which has been set in the antecedent processing circuit or not, thereby controlling the gates (group of NAND circuits) of the adaptation output circuit 50. In the circuit of the embodiment, if both of the bits i₆ and i₅ are set to "1", the output of the NAND circuit G is set to "0" and all of the outputs OA₄, ..., OA₀ of the NAND circuits G₄, ..., G₀ are set to "1". These outputs corresponds to an L₁ portion of the membership function in Fig. 6. In the cases other than the case where both of the bits i₆ and i₅ are set to "1", the output of the NAND circuit G is set to "1". Thus, the outputs OA₄, ..., OA₀ of the NAND circuits G₄, ..., G₀ result in the bits which are obtained by inverting the input bits i₄, ..., i₀. This means that, for instance, on the negative side, the bits i₄, ..., i₀ "11111" to "00000" are inverted to "00000" to "11111". Outputs of the first group comprising the OA s , OA₆, ..., OA₀ (i s , i₆ and i₅ assume OA s , OA₆, and OA₅) correspond to an L₂ portion of the membership function in Fig. 6. The bit i s of the input signal assumes OB s , the output of the OR circuit G₆ assumes OB₆, and the output of the inverter N₅ assumes OB₅. On the other hand, the outputs of inverters N₄, ..., N₀ assume outputs OB₄, ..., OB₀. The outputs OB s , OB₆, ..., OB₀ construct the outputs of the second group. In this case, the relations between the input bits i s , i₆ and i₅ and the outputs OB s , OB₆ and OB₅ are as shown in the following table. i s 1 1 1 1 0 0 0 0 i₆ 1 1 0 0 0 0 1 1 i₅ 1 0 1 0 0 1 0 1 OB s 1 1 1 1 0 0 0 0 OB₆ 1 1 1 0 0 1 1 1 OB₅ 0 1 0 1 1 0 1 0 In the cases other than the case where both of the bits i₆ and i₅ are set to "0", the output of the NAND circuit G is set to "1", so that the outputs of the NAND circuits G₄, ..., G₀ become the bits which are obtained by inverting the inputs i₄, ..., i₀. Therefore, the outputs of the inverters N₄, ..., N₀ that is, the outputs OB₄, ..., OB₀ indicate the bits i₄, ..., i₀ of the input signal. This means that, for instance, on the negative side, the bits "11111" to "00000" of i₄ ..., i₀ are directly output as "11111" to "00000". The second group outputs comprising OB s , OB₆, ..., OB₀ correspond to an L₃ portion of the membership function in Fig. 6. When the first group outputs OA s , OA₆ and OA₅ coincide with the code r₀, r₁ and r s , the control signal from the NOR circuit G₁₈ of the gate control circuit 51 is input to the output circuit 50. Five bits of the outputs OA₄, ..., OA₀ are directly output, that is, the signals which are derived by inverting the input bits i₄, ..., i₀ are directly output as signals 0₄, ..., 0₀ indicative of the adaptations from the output circuit 50. On the other hand, when the second group outputs OB s , OB₆ and OB₅ coincide with the code r₁, r₀ and r s , the output signal of the NOR circuit G₂₇ of the gate control circuit 51 is input to the output circuit 50 through the inverter N₇. Five bits of OA₄, ..., OA₀ are inverted, that is, the signals which are same as the input bits i₄, ..., i₀ are directly output as the signals 0₄, ..., 0₀ indicative of the adaptations from the output circuit 50. It is now assumed that the bits i s , i₆, ..., i₀ of the input signal are, for instance, "10111110" and that the code r₀, r₁ and r s is "101". The code r₀, r₁ and r s coincide with "101" of OA s , OA₆ and OA₅. OA₄, ..., OA₀ = "00001" which are derived by inverting the input bits i₄, ..., i₀ are generated as the outputs 0₄, ..., 0₀ indicative of the adaptations from the output circuit 50. On the other hand, since the second group outputs OB s , OB₆ and OB₅ are set to "110", this coincides with the case where the code r₀, r₁ and r s is "110". The input bits i₄, ..., i₀ are directly generated as the outputs OB₄, ..., OB₀ = "11110" (0₄, ..., 0₀) indicative of the adaptations from the output circuit 50. On the other hand, for instance, when the bit code i s , i₆, ..., i₀ of the input signal is set to "00100001" and the code r₀, r₁, and r s is set to "001", the code r₀, r₁ and r s coincides with OA s , OA₆ and OA₅ = "001". OA₄, ..., OA₀ = "11110" which are obtained by inverting the input bits i₄, ..., i₀ are output as 0₄, ..., 0₀ indicative of the adaptations from the output circuit 50. On the other hand, since the second group outputs OB s , OB₆, and OB₅ are set to "010", if the code r₀, r₁ and r s is set to "010", the input bits i₄, ..., i₀ are set to OB₄, ..., OB₀ = "00001" and they are directly output as the adaptations 0₄, ..., 0₀ from the output circuit 50. In the above embodiment, the inverters N₄, ..., N₀ have been provided for convenience of explanation of the outputs OB₄, ..., OB₀ and they are actually unnecessary. In the embodiment, the range of the input signal has been set to a range from -I to +I. However, the invention can be also obviously applied to the case of a single polarity (that is, the case where the input signal lies within a range from -I to 0 or from 0 to +I). On the other hand, the number input is not limited to 8 (= 1 + 7) bits. Although the membership functions having an isosceles triangular shape have been used as an example, the invention can be also applied to the case where the overlap shapes of the isosceles triangles of the membership functions differ or where the membership functions have a trapezoidal shape. In brief, the invention can be applied to the case where the membership functions are fixed and their gradients represent positive or negative straight lines. On the other hand, although the embodiment has been realized by the logic circuits, the invention is not limited to such a construction but also incorporates an arrangement which is realized by the software processes in the digital computer.

Claims: A fuzzy computer system comprising: a digital processor (10); a digital memory (11, 12); a fuzzy inference processing circuit (22); and a fuzzy inference processing circuit interface (21), wherein the digital memory (11, 12) stores programs of the digital processor and inference rules of the fuzzy inference processing circuit, the fuzzy inference processing circuit (22) executes a fuzzy inference on the basis of a given inference rule, the fuzzy inference processing circuit interface (21) connects the digital processor and the fuzzy inference processing circuit, and in accordance with the programs stored in the digital memory, the digital processor (10) gives the inference rules stored in the digital memory to the fuzzy inference processing circuit (22) through the interface (21) and fetches the result of the inference of the fuzzy inference processing circuit (22) through the interface (21), characterized in that said fuzzy inference processing circuit (22) includes an antecedent processing means for performing processing of the antecedent part of a fuzzy inference rule, and said antecedent processing means comprises: gate control means (51) for comparing predetermined bits of an input signal which is expressed by a binary signal of a plurality of bits with a code indicative of a set membership function and for outputting a gate control signal when the input signal lies within a range which is covered by said membership function; and adaptation output means (50) for outputting a signal indicative of an adaptation of the input signal to the set membership function by using the bits other than said predetermined bits when the gate control signal is given and for outputting a signal indicative of zero when the gate control signal is not given. A system according to claim 1, wherein said adaptation output means outputs said other bits as they are or outputs the bits which are obtained by inverting said other bits in accordance with the result of the comparison by said gate control means. An antecedent processing apparatus for performing processing of the antecedent part of a fuzzy inference rule, the antecedent processing apparatus comprising: gate control means (51) for comparing predetermined bits of an input signal which is expressed by a binary signal of a plurality of bits with a code indicative of a set membership function and for outputting a gate control signal when the input signal lies within a range which is covered by said membership function; and adaptation output means (50) for outputting a signal indicative of an adaptation of the input signal to the set membership function by using the bits other than said predetermined bits when said gate control signal is given and for outputting a signal indicative of zero when the gate control signal is not given. An apparatus according to claim 3, wherein said adaptation output means (50) outputs said other bits as they are or outputs the bits which are obtained by inverting said other bits in accordance with the result of the comparison by said gate control means (51).

Inventors: ANDO TANICHI, URASAKI KAZUAKI, ANDO, TANICHI, URASAKI, KAZUAKI, ANDO, TANICHI C/O OMRON TATEISI ELECTRONICS CO., URASAKI, KAZUAKI C/O OMRON TATEISI ELECTRONICS CO.
Applicants: OMRON TATEISI ELECTRONICS CO, OMRON TATEISI ELECTRONICS CO.
Application year: 1989
Main classification: G06F7
IPC codes: G06N7