Fuzzy inference device

Abstract: A fuzzy inference device (K1) for determining an inference operational quantity in accordance with inference rules each constituted by an antecedent and a consequent, comprising: an inference rule division determiner (11) which receives data of input variables and output variables so as to determine the number of the inference rules; an antecedent neural element (12) for obtaining a membership value corresponding to an antecedent of a specific inference rule from the divided data of the input variables and the output variables; a situational change processor (13) for adaptively determining an inference quantity of a consequent of each inference rule in the case of change of an initial state or inference situations; an inference operational quantity determiner (14) which receives outputs from the antecedent neural element (12) and the situational change processor and performs (13) fuzzy inference in accordance with the inference rules so as to determine the inference operational quantity; and an evaluator (15) for evaluating, on the basis of an evaluation reference, the inference operational quantity outputted by the inference operational quantity determiner (14).

Description: BACKGROUND OF THE INVENTION The present invention relates to an inference device which determines an inference result such as control value from input data or estimates membership in pattern recognition. Initially, basic points of fuzzy inference are described briefly. In a control system to which human evaluation is related to, such a case may happen that a final inference result is determined by using indefinite variables judged by an operator, for example, "big", "medium", etc. An inference device based on fuzzy inference employs fuzzy variables as indefinite variables in an inference rule of "IF---THEN---" type. Fig. 5 shows one example of fuzzy variables. In Fig. 5, NB denotes Negative Big, NM denotes Negative Medium, NS denotes Negative Small, ZO denotes Zero, PS denotes Positive Small, PM denotes Positive Medium and PB denotes Positive Big. In fuzzy inference, a fuzzy variable is always written in an antecedent (IF part) of the inference rule, while a fuzzy variable or an equation is written in a consequent (THEN part) of the inference rule. When a real number or a fuzzy number is inputted, as data, to the inference device in the case where the fuzzy variable is written in the consequent, the inference device calculates degree of matching (membership value) between the real number or the fuzzy number and a membership function indicative of the fuzzy variable of the antecedent and determines an output fuzzy number of the consequent through a plurality of processings of degree of matching. It is possible to obtain an actual operational result by taking a value of center of gravity, etc. of output fuzzy numbers based on a plurality of rules. Meanwhile, in the case where the equation is written in the consequent, the actual operational result can be obtained without performing the processing of taking the value of center of gravity, etc. One of conventional inference methods using this fuzzy inference is fuzzy modelling disclosed, for example, by Geun-Taek Kang and Michio Sugeno in a paper entitled "Fuzzy modelling" of SOCIETY OF INSTRUMENT AND CONTROL ENGINEERS PAPERS, Vol. 23, No. 6, pp. 650-652, 1987. On the other hand, a method of and a device for automatically determining the membership function indicative of the fuzzy number and shape of the inference rule by introducing learning property of a neural network into fuzzy modelling are proposed in European Patent Application EP-A-0 378 689 by the present applicant; this document discloses an inference rule determination method by means of an inference apparatus using an inference rule of the type IF-THEN comprising a membership value determination unit, including all of the IF-parts and having a neural network, and individual inference result determiners corresponding to the THEN parts and determining the corresponding inference values for the inference rules; and a final inference result determiner which judges these inference results collectively to obtain the final results of the inference. This method is a kind of fuzzy modelling but is different from fuzzy modelling in that learning property of the neural network is introduced thereinto. The neural network is a mathematical network which simulates connection of nerve cells in the brain. In the neural network, a nonlinear problem can be solved by sequentially determining strength of connection among units constituting the neural network. Fig. 12 shows one example of known fuzzy inference devices. The known fuzzy inference device includes inference rule executors 1201 to 120r provided for inference rules, respectively and an inference result determiner 1203 for determining a final inference result from estimated values obtained for the inference rules, respectively. Each of the inference rule executors 1201 to 120r is constituted by two portions. Namely, the inference rule executors 1201 to 120r include membership value estimators 1211 to 121r for identifying antecedents of the inference rules and inference result estimators 1221 to 122r for identifying consequents of the inference rules. As shown in Fig. 9, the membership value estimators 1211 to 121r and the inference operational quantity estimators 1221 to 122r have structure of a multilayered network. In Fig. 9, reference numeral 91 denotes a multi-input/multi-output signal processor and reference numeral 92 denotes an input terminal of the neural network model. For each of the inference rules, each of the membership value estimators 1211 to 121r and each of the inference result estimators 1221 to 122r shown in Fig. 12 identify structures of the antecedent and the consequent, respectively and obtains from a given input value, a variable of a formula indicative of an estimated value of the membership. value of the antecedent and an inference operational quantity of the consequent. In accordance with each inference rule thus obtained, the inference result determiner 1203 determines the final inference result. One example of operation of the known fuzzy inference device of Fig. 12 is described by using numerals indicated by Tadashi Kondo in a paper entitled "Revised GMDH Algorithm Estimating Degree of the Complete Polynomial" of SOCIETY OF INSTRUMENT AND CONTROL ENGINEERS PAPERS, Vol. 22, No. 9, pp. 928-934, 1986. The calculation algorithm is as follows. [Step 1] Input variables x ij (j=1, 2, ---, m) associated with observations y i (i=1, 2, ---, n) are determined. If necessary, input/output data (x i ,y i ) is normalized. Fig. 6 shows the input/output data (x i ,y i ). [Step 2] The input/output data (x i ,y i ) is divided into data for identifying structure for model estimation (hereinbelow, referred to as "training data" (TRD) of n t in number) and data for evaluating an estimated model (hereinbelow, referred to as "checking data" (CHD) of n c in number such that the numbers n t and n c satisfy the relation of (n=n t +n c ). In Fig. 6, data numbered 1 to 20 is the training data, while data numbered 21 to 40 is the checking data. Thus, n t =n c =20 and m=4. [Step 3] By using clustering technique, the training data is divided into r portions in optimum manner. Character R s (s=1, 2, ---, r) denotes each of r divisions of learning data and character (x i s , y i s ) (i=1, 2, ---, (nt) s ) denotes contents of the learning data R s where (nt) s is the number of the training data in each learning data R s . In this example, the natural number r is 2 and thus, four-dimensional space acting as space for input variables is divided into two portions. [Step 4] At this step, structure of the antecedent is identified. To this end, x i is allocated to an input value of an input layer, while Wi s is allocated to an output value of an output layer. The output value W i s assumes 1 and 0 when the input value x i belongs to the learning data R s and does not belong to the learning data R s , respectively for i=1, 2, ---, n and s=1, 2, ---, r. A neural network for estimating the output value W i s by learning is identified. At this time, an estimated value of the degree W i s to which the learning data (x i ,y i ) belongs to the learning data R s is defined as a membership value of the antecedent. By using the three-layered neural network, learning is performed 5,000 times so as to obtain a fuzzy number of the antecedent. The fuzzy number of the antecedent for the learning data R s at this time is expressed by As. Fig. 7 shows the membership values of the fuzzy numbers As. [Step 5] Each evaluation data (x i ,y i ) (i=1, 2, ---, n c ) of the checking data is substituted for the neural network obtained at step 4 by using the following equation: W i s =µ As (x i ) for i=1, 2, ---,n c where character µ denotes a membership function. [Step 6] At this step, structure of the consequent is identified. A structure model of the consequent corresponding to each rule is expressed by input/output relation of the neural network. The input values x i1 , x i2 , ---, x im (i=1, 2, ---, (n t ) s ) and the output value yi are allocated to the neural network so as to estimate the output value. The input values x i1 , x i2 , ---, x im (i=1, 2, ---, n c ) of the checking data are substituted for the learned neural network so as to obtain a sum  p of squares of error by the following equation: where character ey i denotes an estimated value. This sum  p is used as an input variable and a rule for stopping algorithm. [Step 7] By using variable reduction method, the input variables are reduced. An arbitrary one of the input variables is removed in each inference rule such that the neural network is identified by using the training data in the same manner as step 6. Subsequently, a sum  p+1 of squares of estimated error of an inference result in the case of use of the checking data is calculated. In the case of the following equation (1) at this time, since it is considered that importance of the removed input variable x is low, the removed input variable x is cancelled.  p > p+1 [Step 8] Thereafter, steps 6 to 7 are repeated and the calculation is stopped until the equation (1) is not established for the whole input variables. A model which minimizes the value  is an optimum neural network. The obtained fuzzy inference rules are given as follows. R 1 : IF x=(x 1 ,x 2 ,x 3 ) is A 1 , THEN y 1 =NN 1 (x 1 ,x 2 ,x 3 ) R 2 : IF x=(x 1 ,x 2 ,x 3 ) is A 2 , THEN y 2 =NN 2 (x 2 ,x 3 ) In the above fuzzy inference rules, the equation: y=NN(x) represents input/output relation of the neural network for each rule employed at the time of identification of structure of the consequent. By steps 1 to 8, the antecedent and the consequent of each inference rule are identified and thus, identification of structure of the fuzzy model is completed. The inference result y i * is given by the following equation (2): where character my i s denotes an estimated value given from an optimum neural network obtained at step 7. Fig. 8 shows the inference result y i * of the equation (2). As described above, in known fuzzy inference employing the neural network, the inference rules can be obtained easily by utilizing learning property of the neural network without employing a method of discovery. However, in the known inference device employing the neural network, the consequent of the fuzzy inference rule is fixed by the inference result estimators 1221 to 122r. Thus, even if inference situations change, the known inference device does not have a function of changing the inference result according to change of the inference situations. Furthermore, the known inference device has such a drawback that since the structures of the antecedent and the consequent are identified by the neural network, all parameters to be determined in the neural network should be stored, thereby resulting in tremendously large memory capacity. Therefore, the known inference device employing the neural network does not have algorithm of redetermining the structures of the antecedent and the consequent according to change of the inference situations once the structures of the antecedent and the consequent have been determined by using the neural network. As a result, in order to redetermine the structures of the antecedent and the consequent, the algorithm should be started again and thus, it is impossible to rapidly determine the inference result according to change of the inference situations. SUMMARY OF THE INVENTION Accordingly, an essential object of the present invention is to provide, with a view to eliminating the disadvantages inherent in conventional fuzzy inference devices, a fuzzy inference device in which structure of a consequent is determined by using nonlinear search algorithm, in which even if inference situations change, inference rules can follow the changing inference situations and which raises speed of following the changing inference situations and reduces memory capacity as set out in independent claims 1 and 2. A fuzzy inference device according to a first embodiment of the present invention learns inference rules on the basis of an evaluation function in accordance with change of inference situations. In a fuzzy inference device according to a second embodiment of the present invention, the inference rules are learned in the same manner as the first embodiment but arrangement of an antecedent of each inference rule is different from that of the first embodiment. Meanwhile, a fuzzy inference device according to a third embodiment of the present invention learns the inference rules on the basis of right input/output data (teacher's data) in accordance with change of the inference situations. Furthermore, in a fuzzy inference device according to a fourth embodiment of the present invention, the inference rules are learned in the same manner as the third embodiment but arrangement of the antecedent of each inference rule is different from that of the third embodiment. In order to accomplish this object of the present invention, a fuzzy inference device for determining an inference result in accordance with inference rules each constituted by an antecedent and a consequent, according to a first embodiment of the present invention comprises: an inference rule division determiner which receives data of input variables and output variables so as to determine the number of the inference rules; an antecedent neural element for obtaining a membership value corresponding to an antecedent of a specific inference rule from the divided data of the input variables and the output variables; a situational change processor for adaptively determining an inference quantity of a consequent of each inference rule in the case of change of an initial state or inference situations; an inference operational quantity determiner which receives outputs from said antecedent neural element and said situational change processor and performs fuzzy inference in accordance with the inference rules so as to determine the inference result; and an evaluator for evaluating, on the basis of an evaluation reference, the inference result outputted by said inference operational quantity determiner; said situational change processor including an initialization determiner for initializing the inference value of the consequent by using an output value of said inference rule division determiner and a parameter searcher which begins a search from an output of said initialization determiner so as to search for an optimum parameter of the consequent in accordance with an output of said evaluator. By the above described arrangement of the fuzzy inference device of the present invention, structure of the antecedent of each fuzzy inference rule written in the form "IF---THEN---" is identified by using nonlinear characteristics of a neural network and an optimum parameter of the consequent of each fuzzy inference rule is determined by nonlinear search method. Consequently, in accordance with the present invention, the inference result can be flexibly adapted to changing inference situations at high speed and with reduced memory capacity. BRIEF DESCRIPTION OF THE DRAWINGS This object and features of the present invention will become apparent from the following description taken in conjunction with the preferred embodiments thereof with reference to the accompanying drawings, in which: Fig. 1 is a block diagram of a fuzzy inference device according to a first embodiment of the present invention; Fig. 2 is a block diagram of a fuzzy inference device according to a second embodiment of the present invention; Fig. 3 is a block diagram of a fuzzy inference device according to a third embodiment of the present invention; Fig. 4 is a block diagram of a fuzzy inference device according to a fourth embodiment of the present invention; Fig. 5 is a view explanatory of fuzzy variables; Fig. 6 illustrates input/output data of a prior art fuzzy inference device; Fig. 7 illustrates a membership value of each learning data in the prior art fuzzy inference device of Fig. 6; Fig. 8 illustrates results of estimation of an inference operational quantity in the fuzzy inference device of Fig. 6; Fig. 9 is a schematic view showing configuration of a neural network; Fig. 10 is a conceptual view of pattern search method; Fig. 11 is a conceptual view of steepest descent method; and Fig. 12 is a block diagram showing one example of the prior art fuzzy inference device of Fig. 6. DETAILED DESCRIPTION OF THE INVENTION Referring now to the drawings, there is shown in Fig. 1, a fuzzy inference device K1 according to a first embodiment of the present invention. The device K1 includes an inference rule division determiner 11 which receives data of input variables and output variables so as to determine the number of inference rules and an antecedent neural element 12 for obtaining a membership value corresponding to an antecedent of a specific inference rule from the divided data of the input and output variables by using a neural network. The device K1 further includes a situational change processor 13 for adaptively determining an inference quantity of a consequent of each inference rule in the case of change of an initial state or inference situations, an inference result determiner 14 which receives outputs from the antecedent neural element 12 and the situational change processor 13 and performs fuzzy inference in accordance with the inference rules so as to determine an inference result and an evaluator 15 for evaluating, on the basis of an evaluation reference, the inference result outputted by the inference result determiner 14. The situational change processor 13 is constituted by an initialization determiner 13a for initializing the inference quantity of the consequent by using an output value of the inference rule division determiner 11 and a parameter searcher 13b which begins a search from an output of the initialization determiner 13a so as to search for an optimum parameter of the consequent by changing parameters of the consequent in accordance with an output of the evaluator 15. Hereinbelow, operational steps of the device K1 are described. [Step 1] At this step, input variables x ij (j=1, 2, ---, k) associated with observations y i (i=1, 2, ---, n) are determined. The following processings are performed at the inference rule division determiner 11. Initially, only necessary input variables are determined by using variable reduction method. Character m denotes the number of the input variables. Meanwhile, all the data are divided into r portions in optimum manner by using clustering technique. Character R s (s=1, 2, ---, r) denotes each of r divisions of the learning data and character (x i s , y i s ) (i=1, 2, ---, n s ) denotes contents of the learning data R s where n s is the number of data in each learning data R s . [Step 2] At this step, a membership value of the antecedent is identified at the antecedent neural element 12. To this end, (x i s ,y i s ) is allocated to an input value of an input layer, while W i s is allocated to an output value of an output layer. The output value W i s assumes 1 and 0 when the input value (x i ,y i ) belongs to the learning data R s and does not belong to the learning data R s , respectively for i=1, 2, ---, n and s=1, 2, ---, r. A neural network for estimating the output value W i s by learning is identified. At this time, an estimated value of the degree W i s is defined as a membership value of the antecedent. [Step 3] At this step, an initial value for searching for a real number of the consequent is imparted by using the initialization determiner 13a of the situational change processor 13. For example, a mean value of output data obtained for each inference rule by the inference rule division determiner 11 is employed as the initial value. Namely, assuming that character sz denotes the initial value of the real number of the consequent for each inference rule s, the following equation is obtained. sz s =(Σy i s )/n s for i=1, 2, ---, n s [Step 4] An optimum real number of the consequent is searched for by the parameter searcher 13b by changing real numbers of the consequent in accordance with a certain search rule. For example, pattern search method or method of rotating directions is employed as a search method. Here, pattern search method is described briefly. In pattern search method, procedures of probing into state of an objective function adjacent to a current search point through search shift so as to aim at a direction of the bottom and shifting a pattern in the direction are repeated. (1) Search shift: If f(x ik +a ik d i ) < f(x ik ) for i=1, 2, ---, n, then: x i+1k -x ik +a ik d i by regarding search shift as a success. Otherwise, the same procedure is performed by setting a ik =-a ik . If both of the methods are unsuccessful, x i+1k =x ik is set. In the above description, character f denotes an evaluation function. Here, a problem for minimal realization is handled. Meanwhile, character x ik denotes a search point of k-th search in which the i-th parameter is considered currently. Furthermore, character a ik denotes weight greater than 0, i.e. a ik >0 and character d i denotes a unit vector in which the i-th unit vector is 1. (2) Pattern search: A reference point XB k is shifted over a distance between the reference point XB k and a reference point XB k-1 in a direction for connecting the reference points XB k and XB k-1 . Thus: X k =XB k +(XB k -XB k-1 ) The reference point XB k denotes a search point at the time of completion of k-th search and character X k denotes a new search point. Fig. 10 is a conceptual view of pattern search. In this algorithm, the evaluation function f is constituted for the evaluator 15. Meanwhile, the inference result obtained by the inference operational quantity determiner 14 is substituted for the evaluation function f so as to obtain an evaluated value. The inference operational quantity is an estimated value obtained as a result of fuzzy inference. The parameter X k searched for by the parameter searcher 13b is a real number value of the consequent. By the above described arrangement of the device K1, the real number value of the consequent is initially set. Then, by using the real number value, the estimated value of fuzzy inference is obtained. Subsequently, the estimated value is substituted for the evaluation function and thus, overall evaluation is performed. The real number value of the consequent, which is formed by the parameter, is learned such that the evaluated value is improved. Finally, the inference rules are changed adaptively, so that fuzzy inference has a learning function. Furthermore, since learning is performed at the consequent by using nonlinear search method, the inference rules can follow changing inference situations at a speed higher than that of a learning method employing a neural network, etc., so that its memory capacity can be reduced. Fig. 2 shows a fuzzy inference device K2 according to a second embodiment of the present invention. The device K2 includes an inference rule division determiner 21 which receives data of input variables and output variables so as to determine the number of inference rules and an antecedent numerical processing determiner 22 for obtaining a membership value corresponding to an antecedent of a specific inference rule from the divided data of the input and output variables by calculating a spatial distance. The device K2 further includes a situational change processor 23 for adaptively determining an inference value of a consequent of each inference rule in the case of change of an initial state or inference situations, an inference result determiner 24 which receives outputs from the antecedent numerical processing determiner 22 and the situational change processor 23. and performs fuzzy inference. in accordance with the inference rules so as to determine an inference result and an evaluator 25 for evaluating, on the basis of an evaluation reference, the inference result outputted from the inference result determiner 24. In the same manner as the situational change processor 13 of the device K1, the situational change processor 23 of the device K2 is constituted by an initialization determiner 13a for initializing the inference quantity of the consequent by using an output value of the inference rule division determiner 21 and a parameter searcher 13b which begins a search from an output of the initialization determiner 23a so as to search for an optimum parameter of the consequent by changing parameters of the consequent in accordance with an output of evaluator 25. Hereinbelow, operational steps of the device K2 are described. Since steps 1, 3 and 4 of the device K2 are the same as those of the device K1, description thereof is abbreviated for the sake of brevity and thus, only step 2 is described. [Step 2] At this step, a membership value of the antecedent is determined at the antecedent numerical processing determiner 22. A distance from the input/output data (x i s ,y i s ) of each inference rule to a core obtained for each inference rule by clustering is obtained and a value of the distance is normalized. Assuming that character W i s denotes a normalized degree, the degree W i s is defined as the membership value of the antecedent. By the above described arrangement of the device K2, the inference rules are changed adaptively and thus, fuzzy inference has a learning function. Meanwhile, in the device K2, since the antecedent is determined by using statistical processing and the consequent is learned by using nonlinear search method, the inference rules can follow changing inference situations at a speed higher than that of a learning method employing a neural network, etc., so that its memory capacity can be reduced. Fig. 3 shows a fuzzy inference device K3 according to a third embodiment of the present invention. The device K3 includes an inference rule division determiner 31 which receives data of input variables so as to determine the number of inference rules, an antecedent neural element 32 for obtaining a membership value corresponding to an antecedent of a specific inference rule from the divided data of the input variables by using a neural network and an output data divider 36 which receives data of output variables so as to divide the data of the output variables by the number of the inference rules in accordance with an output of the inference rule division determiner 31. The device K3 further includes a situational change processor 33 for adaptively determining an inference value of a consequent of each inference rule in the case of change of an initial state or inference situations, an inference result determiner 34 which receives outputs from the antecedent neural element 32 and the situational change processor 33 and performs fuzzy inference in accordance with the inference rules so as to determine an inference operational quantity and an evaluator 35 which compares the data of the output variables with the inference result outputted by the inference result determiner 34 so as to evaluate the inference result. The situational change processor 33 is constituted by an initialization determiner 33a for initializing the inference quantity of the consequent by using an output value of the output data divider 36 and a parameter searcher 33b which begins a search from an output of the initialization determiner 33a so as to search for an optimum parameter of the consequent by changing parameters of the consequent in accordance with an output of the evaluator 35. Hereinbelow, operational steps of the device K3 are described. [Step 1] At this step, input variables x ij (j=1, 2, ---, k) associated with observations y i (i=1, 2, ---, n) are determined. The following processings are performed at the inference rule division determiner 31. Initially, only necessary input variables are determined by using variable reduction method. Character m denotes the number of the input variables. Meanwhile, only the input data is divided into r portions in optimum manner by using clustering technique. Character R s (s=1, 2, ---, r) denotes each of r divisions of the data and character x i s (i=1, 2, ---, n s ) denotes contents of the data R s where n s is the number of data in each data R s . A group of the input data divided for each inference rule is fed to the output data divider 36. [Step 2] At this step, the output data is divided into r portions on the basis of an input data number by the output data divider 36. Character y i s (i=1, 2, ---, n s ) denotes contents of each of r divisions of the output data. [Step 3] At this step, a membership value of the antecedent is identified at the antecedent neural element 32. To this end, x i is allocated to an input value of an input layer, while W i s is allocated to an output value of an output layer. The output value W i s assumes 1 and 0 when the input value x i belongs to the data R s and does not belong to the data R s , respectively for i=1, 2, ---, n and s=1, 2, ---, r. A neural network for estimating the output value W i s by learning is identified. At this time, an estimated value of the degree W i s is defined as a membership value of the antecedent. [Step 4] At this step, an initial value for searching a real number of the consequent is imparted by using the initialization determiner 13a of the situational change processor 13. For example, a mean value of output data obtained for each inference rule by the inference rule division determiner 31 is employed as the initial value. Namely, assuming that character sz denotes the initial value of the real number of the-consequent for each inference rule s, the following equation is obtained. sz s =(Σy i s )/n S for i=1, 2, ---, n s [Step 5] An optimum real number of the consequent is searched for by the parameter searcher 33b by changing real numbers z of the consequent in accordance with a certain search rule. For example, steepest descent method is employed as a search method. Here, steepest descent method is described briefly. In this method, a directional vector d k at a point X k is expressed as follows. d k =-▿ t f(X k ) In the above equation, ▿ t f(X k ) means a gradient vector of an evaluation function f at X. This equation is used because reduction rate of the evaluation function f is maximized in a direction of the directional vector d k . In this algorithm, the following equation is used as the evaluation function f: E=Σ(y i -ey i ) 2 /2 where character ey i denotes an estimated value of fuzzy inference. A quantity ▵z s of change, which determines a direction for learning the real numbers z of the consequent up to an optimum value, is obtained. Initially, partial differential of E is performed by z as follows: dE/dz s =(dE/dey i ) x (dey i /dz s ) where dE/dey i =-(y i -ey i ) and dey i /dz s =W s /ΣW s . Thus, the following equation is obtained. dE/dz s =-(y i -ey i )W s /ΣW s If the real numbers z of the consequent are changed in the direction determined by the following value ▵z s of change in accordance with steepest descent method, the real numbers z are adaptively learned so as to be converged to the optimum value. ▵z s =-α(dE/dz s )=α(y i -ey i )W s /ΣW s Fig. 11 is a conceptual view of steepest descent method. In this algorithm, the evaluation function f is substituted for the evaluator 35. Meanwhile, the inference result obtained at the inference result determiner 34 and a correct output value are substituted for the evaluation function f, whereby an evaluation value is obtained. The inference result is an estimated value obtained as a result of fuzzy inference and the parameter X k to be searched for by the parameter searcher 33b acts as the real number of the consequent. By the above described arrangement of the device K3, the real number value of the consequent is initially set. Then, by using the real number value, the estimated value of fuzzy inference is obtained. Subsequently, the estimated value is substituted for the evaluation function and thus, overall evaluation is performed. The real number value of the consequent, which is formed by the parameter, is learned such that the evaluated value is improved. Finally, the inference rules are changed adaptively and thus, fuzzy inference has a learning function. Meanwhile, since learning is performed at the consequent by using nonlinear search method, the inference rules can follow changing inference situations at a speed higher than that of a learning method employing a neural network, etc., so that its memory capacity can be reduced. Fig. 4 shows a fuzzy inference device K4 according to a fourth embodiment of the present invention. The device K4 includes an inference rule division determiner 41 which receives data of input variables so as to determine the number of inference rules, an antecedent numerical processing determiner 42 for obtaining a membership value corresponding to an antecedent of a specific inference rule from the divided data of the input variables by calculating a spatial distance and an output data divider 46 which receives data of output variables so as to divide the data of the output variables by the number of the inference rules in accordance with an output of the inference rule division determiner 41. The device K3 further includes a situational change processor 43 for adaptively determining an inference quantity of a consequent of each inference rule in the case of change of an initial state or inference situations, an inference result determiner 44 which receives outputs from the antecedent numerical processing determiner 42 and the situational change processor 43 and performs fuzzy inference in accordance with the inference rules so as to determine an inference result and an evaluator 45 which compares the data of the output variables with the inference result outputted by the inference operational quantity determiner 44 so as to evaluate the inference result. In the same manner as the situational change processor 33 of the device K3, the situational change processor 43 of the device K4 is constituted by an initialization determiner 43a for initializing the inference quantity of the consequent by using an output value of the output data divider 46 and a parameter searcher 43b which begins a search from an output of the initialization determiner 43a so as to search for an optimum parameter of the consequent by changing parameters of the consequent in accordance with an output of the evaluator 45. Hereinbelow, operational steps of the device K4 are described. Since steps 1, 2, 4 and 5 of the device K4 are the same as those of the device K3, description thereof is abbreviated for the sake of brevity and thus, only step 3 is described. [Step 3] At this step, a membership value of the antecedent is determined at the antecedent numerical processing determiner 42. A distance from the input/output data (x i s ,y i s ) of each inference rule to a core obtained for each inference rule by clustering is obtained and a value of the distance is normalized. Assuming that character W i s denotes a normalized degree, the degree W i s is defined as the membership value of the antecedent. By the above described arrangement of the device K4, the inference rules are adaptively changed and thus, fuzzy inference has a learning function. Meanwhile, in the device K4, since the antecedent is determined by using statistical processing and the consequent is learned by using nonlinear search method, the inference rules can follow changing inference situations at a speed higher than that of a learning method employing a neural network, etc., so that its memory capacity can be reduced. In the present invention as described above, structure of the antecedent of each inference rule is identified by using nonlinear characteristics of the neural network and an optimum parameter of the consequent of each inference rule is determined such that the inference operational quantity can be adapted to changing inference situations at high speed and with reduced memory capacity. Therefore, in accordance with the present invention, the fuzzy inference device can provide an inference result satisfactory to the operator at all times. Meanwhile, in the first and second embodiments of the present invention, the optimum parameter of the consequent is searched for by using pattern search method and method of rotating directions in which methods a search can be made even if an optimum value of the parameters is not required to be outputted. However, these methods may be replaced by random search method, feasible direction method or cutting plane method. Furthermore, in the third and fourth embodiments of the present invention, the optimum parameter of the consequent is searched for by using steepest descent method in which a search can be made by formulating an evaluation function by using errors. However, this steepest descent method may be replaced by Newton's method, etc. As is clear from the foregoing description, in the. present invention, the fuzzy inference rules can be changed automatically through a self-learning function even if inference situations change. Furthermore, the optimum parameter of the consequent is searched for by nonlinear search method. Consequently, in accordance with the present invention, the inference result can be adapted to changing inference situations at high speed and with reduced memory capacity. Although the present invention has been fully described by way of example with reference to the accompanying drawings, it is to be noted here that various changes and modifications will be apparent to those skilled in the art. Therefore, unless otherwise such changes and modifications depart from the scope of the present claims, they should be construed as being included therein.

Claims: A fuzzy inference device (K1; K2) for determining an inference result in accordance with inference rules each constituted by an antecedent and a consequent, comprising an inference result determiner (14; 24) which performs fuzzy inference in accordance with the inference rules so as to determine the inference result; characterized by an inference rule division determiner (11; 21) which receives data of input variables and data of output variables so as to determine the number of inference rules; an antecedent neural element (12) or an antecedent numerical processing determiner (22) for obtaining a membership value corresponding to an antecedent of a specific inference rule from the divided data of the input variables and the output variables; a situational change processor (13; 23) for adaptively determining an inference value of a consequent of each inference rule in the case of change of an initial state or inference situations; and an evaluator (15; 25) for evaluating the inference result outputted by said inference result determiner (14; 24) on the basis of an evaluation function f; said inference result determiner (14; 24) receiving outputs from said antecedent neural element (12) or said antecedent numerical processing determiner (22), respectively, and said situational change processor (13; 23); and said situational change processor (13; 23) including an initialization determiner (13a; 23a) for initializing the inference value of the consequent by using an output value of said inference rule division determiner (11; 21) and a parameter searcher (13b; 23b) which begins a search from an output of said initialization determiner (13a; 23a) so as to search for an optimum parameter of the consequent in accordance with an output of said evaluator (15; 25) so as to optimize the evaluation function 7. A fuzzy inference device (K3; K4) for determining an inference result in accordance with inference rules each constituted by an antecedent and a consequent, comprising an inference result determiner (34; 44) which performs fuzzy inference in accordance with the inference rules so as to determine the inference result; characterized by an inference rule division determiner (31; 41) which receives at least data of input variables so as to determine the number of inference rules; an antecedent neural element (32) or an antecedent numerical processing determiner (42) for obtaining a membership value corresponding to an antecedent of a specific inference rule from the divided data of the input variables; a situational change processor (33; 43) for adaptively determining an inference value of a consequent of each inference rule in the case of change of an initial state or inference situations; an output data divider (36; 46) which receives data of output variables so as to divide the data of the output variables by the number of the inference rules in accordance with an output of said inference rule division determiner (31; 41); and an evaluator (35; 45) for evaluating the inference result comparing the data of the output variables with the inference result outputted by said inference result determiner (34; 44); said inference result determiner (34; 44) receiving outputs from said antecedent neural element (32) or said antecedent numerical processing determiner (42), respectively, and said situational change processor (33; 43); and said situational change processor (33; 43) including an initialization determiner (33a; 43a) for initializing the inference value of the consequent by using an output value of said output data divider (36; 46) and a parameter searcher (33b; 43b) which begins a search from an output of said initialization determiner (33a; 43a) so as to search for an optimum parameter of the consequent in accordance with an output of said evaluator (35; 45).

Inventors: HAYASHI ISAO, NOMURA HIROYOSHI, WAKAMI NOBORU, HAYASHI, ISAO, NOMURA, HIROYOSHI, WAKAMI, NOBORU
Applicants: MATSUSHITA ELECTRIC IND CO LTD, MATSUSHITA ELECTRIC INDUSTRIAL CO., LTD.
Application year: 1991
Main classification: G06F15
IPC codes: G06F9, G06N7, G05B13