JPH02260041A - Fuzzy multistage inference device - Google Patents

Fuzzy multistage inference device

Info

Publication number
JPH02260041A
JPH02260041A JP1083408A JP8340889A JPH02260041A JP H02260041 A JPH02260041 A JP H02260041A JP 1083408 A JP1083408 A JP 1083408A JP 8340889 A JP8340889 A JP 8340889A JP H02260041 A JPH02260041 A JP H02260041A
Authority
JP
Japan
Prior art keywords
inference
fuzzy
stage
stores
data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP1083408A
Other languages
Japanese (ja)
Inventor
Noboru Wakami
昇 若見
Isao Hayashi
勲 林
Eiichi Naito
内藤 榮一
Hiroyoshi Nomura
博義 野村
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Panasonic Holdings Corp
Original Assignee
Matsushita Electric Industrial Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Matsushita Electric Industrial Co Ltd filed Critical Matsushita Electric Industrial Co Ltd
Priority to JP1083408A priority Critical patent/JPH02260041A/en
Priority to EP19900303368 priority patent/EP0390563A3/en
Priority to US07/501,037 priority patent/US5191638A/en
Publication of JPH02260041A publication Critical patent/JPH02260041A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To attain a fuzzy multistage inference and to perform an inference which is more approximate to a human inference than a single stage inference by transferring the intermediate result of a fuzzy inference to the next inference in a real number or a fuzzy label. CONSTITUTION:A fuzzy number storage part 105 stores the fuzzy variables showing the value of the controlled variables such as 'negative and large', 'zero', 'positive and small', etc., which are used at the anteceedent and consequent parts of a fuzzy inference arithmetic. An inference rule control part 106 takes an inference rule out of a fuzzy inference rule storage part 103. A fuzzy inference arithmetic part 107 performs a fuzzy inference in accordance with the inference rule against the initial data received from a work area 102 or the intermediate data on an inference. Then the part 107 outputs the result of inference. A fuzzy number/real number arithmetic part 108 converts the fuzzy number of the result of inference into a real number. If the inference is not finished yet, the converted real number value is stored in the area 102 as an intermediate variable. Then an inference mechanism part 104 performs the next inference. When the inference is completed, the real number value is inputted to a result output part 109 as the result of inference.

Description

【発明の詳細な説明】 産業上の利用分野 本発明は、ファジィ推論規則を用いた推論による推論結
果を再び入力として用いることによって多段推論を行う
ファジィ多段推論装置に関する。
DETAILED DESCRIPTION OF THE INVENTION Field of the Invention The present invention relates to a fuzzy multi-stage inference device that performs multi-stage inference by using the inference results obtained by inference using fuzzy inference rules as input again.

従来の技術 従来のファジィ推論装置としては、多数のIF〜THE
N〜ルールで示される推論を、ある入力データに対して
並列に同時処理し推論動作を一段で完了し、制御装置の
制御操作量としている(例えば東芝L/ ヒ、 −Vo
i43  No・4  PP3GON303)。
BACKGROUND OF THE INVENTION A conventional fuzzy inference device has a large number of IF to THE
The inferences indicated by the N~ rules are simultaneously processed in parallel on certain input data, and the inference operation is completed in one step, which is used as the control operation amount of the control device (for example, Toshiba L/H, -Vo
i43 No.4 PP3GON303).

従来のファジィ推論に基づいた制御量の決定法について
説明する。
A conventional method for determining the control amount based on fuzzy inference will be explained.

例えば、室温を一定にするための簡単な温度制御を例に
取った場合、室温と目標温度との偏差e1その変化率d
eの2人力と、暖房機の火力量である制御出力(操作量
)Uとの関係は次のIF〜丁HEN・・・規則として記
述できる。
For example, in the case of simple temperature control to keep the room temperature constant, the deviation e1 between the room temperature and the target temperature is the rate of change d
The relationship between the two human power of e and the control output (operation amount) U, which is the amount of heating power of the heater, can be described as the following IF~DHEN... rule.

IF e Is Approxlmate Zero 
and do l5Poslt1ye Medium THEN  u  is  Negative  Me
dium、     −・・・−・(1)式(1)式の
推論規則は”もし、室温が目標温度にほぼ近く、室温が
中位(ゆるやか)に上昇ならば、その時、火力を中位に
ゆるめなさい”という規則を示す。ファジィ制御(推論
)は(1)式のような推論規則を複数個用意する。例え
ば、第2番目の推論規則として、 IF e Is Approximate Zero 
and de isムpprox1mate Zer。
IF e Is Approxlmate Zero
and do l5Posltlye Medium THEN u is Negative Me
dium, -...-(1) The inference rule for equation (1) is ``If the room temperature is close to the target temperature and the room temperature rises moderately (slowly), then set the heat to medium. Indicates the rule, ``Be loose.'' Fuzzy control (inference) prepares a plurality of inference rules such as equation (1). For example, as the second inference rule, IF e Is Approximate Zero
and de ism pprox1mate Zer.

TO):N  u  is  legatIve  S
mall。
TO): N u is legat Ive S
mall.

などを用意する。ここで、IF〜の部分を前件部、T 
HE N−・・の部分を後件部、また、e Is Ap
proxlmato Zero”等を前件命題、”u 
1s Negative )Iedlu+s”を後件命
題と呼ぶ。Approximate Zero、 Po
sit1veMe旧ulなどは規則の記述に用いる入力
や出力のファジィ数を表すラベルであり、ファジィ変数
と呼ばれる。第7図にその一例を示す。通常ではファジ
ィ変数は三角型の対称なメンバシップ関数とする。よく
用いられるファジィ変数として16BtiveB1g(
FIB)、 Negative Medlus(IN)
、 Negative Small(Is)、  Ap
proxlmte  Zero(20)、  Po5i
tive  Small(PS)、 Po5itive
 Medlum(PM)、 Po51tlve Big
(PR)などがある(第7図参照)。
Prepare etc. Here, the part IF~ is the antecedent part, T
HE N-... is the consequent, and e Is Ap
proxlmato Zero” etc. as an antecedent proposition, “u
1s Negative) Iedlu+s” is called the consequent proposition. Approximate Zero, Po
sit1veMe old ul, etc. are labels representing fuzzy numbers of inputs and outputs used to describe rules, and are called fuzzy variables. An example is shown in FIG. Usually, fuzzy variables are triangular and symmetrical membership functions. 16BtiveB1g (
FIB), Negative Medlus (IN)
, Negative Small (Is), Ap
proxlmte Zero (20), Po5i
tive Small (PS), Po5itive
Medlum(PM), Po51tlve Big
(PR) (see Figure 7).

次にファジィ推論過程を説明する。各種センサー等から
の実測入力値として、通常の実数値611゜de−が計
測され、(1)式から得られる推論規則(第1番目の規
則)の結論のファジィ数を次のように求める。
Next, the fuzzy inference process will be explained. A normal real value of 611° de- is measured as an actual input value from various sensors, etc., and the fuzzy number of the conclusion of the inference rule (first rule) obtained from equation (1) is determined as follows.

μ+(u):μzs Ce” )Aμpn(de”)A
μ5n(u) ”(2)式ここで、Aはmlnを示し、
ファジィデータ1日はファジィ変数と同様な三角型のフ
ァジィ数とする。
μ+(u):μzs Ce")Aμpn(de")A
μ5n(u)” (2) where A represents mln,
The fuzzy data for one day is a triangular fuzzy number similar to the fuzzy variable.

第8図にファジィ変数μm(u)を示す。第8図に示す
ように μm(u)は前件部のファジィ数ZOに属する
69の度合(メンバシップ値)μzs(e”)、ファジ
ィ数PMに属するde”の度合μPN(Δe9)を比較
して、最も値の小さい度合μzi(e@)で後件部のフ
ァジィ変数NMをカット(win)することにより得ら
れる。
FIG. 8 shows the fuzzy variable μm(u). As shown in Figure 8, μm(u) compares the degree (membership value) μzs(e”) of 69 belonging to the fuzzy number ZO in the antecedent part and the degree μPN(Δe9) of de” belonging to the fuzzy number PM. Then, it is obtained by cutting (win) the fuzzy variable NM of the consequent part with the degree μzi(e@) having the smallest value.

制御規則(1)式は複数個あるので、すべての結論のフ
ァジィ数を結合したファジィ数丁は〔2)式を用いて μv(u)”μ+(u)Vua(u)V、、、、、、V
μn(u)と求められる。ここで、VはWaXを示す。
Since there are multiple control rule equations (1), the fuzzy numbers that combine the fuzzy numbers of all the conclusions are μv(u)”μ+(u)Vua(u)V, , , using equation [2). ,,V
It is calculated as μn(u). Here, V represents WaX.

例として第9図に第1番目の規則と第2番目の規則との
場合(n = 2 )の、μv(u):μ+(u)VH
2(u)を表す。このファジィ数Tは制御操作量を表す
結論のファジィ数であるが、実際の制御操作量U@はフ
ァジィ数ではなく実数値であるので、以下に示す(3)
式の重み付き重心を採用して最終結果(制御操作量)u
eを決定する(第9図参照)。
As an example, in the case of the first rule and the second rule (n = 2), μv(u):μ+(u)VH is shown in FIG.
2(u). This fuzzy number T is a fuzzy number of the conclusion that represents the amount of control operation, but the actual amount of control operation U@ is not a fuzzy number but a real value, so it is shown below (3)
By adopting the weighted center of gravity of the formula, the final result (control operation amount) u
Determine e (see Figure 9).

U・ 8丁(u)  du u@=         ・・・・(3)式%式%) なお、ここ・では推論方法としてMamdanlの方法
で説明したが他の推論方法もあり、(3)式の重み付き
重心も結論のファジィ数Tの中央値や最大値などをとる
という方法もある。
U・ 8 dings (u) du u@= ... (3) formula % formula %) Although Mamdanl's method was explained here as the inference method, there are other inference methods, and the formula (3) There is also a method of taking the median value or maximum value of the fuzzy number T of the conclusion as the weighted center of gravity.

このようにして求めた操作量U−をファジィ推論に基ず
いた制御量として制御対象に作用させる。
The manipulated variable U- obtained in this way is applied to the controlled object as a controlled variable based on fuzzy inference.

発明が解決しようとする課題 しかしながら上記のような構成では、次のような問題点
がみられた。ファジィ推論を一段で処理しているため、
例えば、ある時刻tに生じた入力データに基すいてファ
ジィ推論を行い、その推論結果を踏まえて、次の動作を
推論するといった多段の推論を必要とする処理に対して
は、対処できない。
Problems to be Solved by the Invention However, the above configuration has the following problems. Because fuzzy inference is processed in one step,
For example, it cannot handle processing that requires multi-stage inference, such as performing fuzzy inference based on input data that occurred at a certain time t, and inferring the next action based on the inference result.

またある時刻tの推論結果と時刻t+1の入力データと
で推論するといったような多段の推論を必要とする処理
に対しても、対処できない。
Furthermore, it cannot handle processing that requires multi-stage inference, such as inference using an inference result at a certain time t and input data at time t+1.

また入力データが実数値あるいはファジィラベルで入力
される時の多段推論が出来ないといった問題点がある。
Another problem is that multi-stage inference cannot be performed when input data is input as real values or fuzzy labels.

本発明はかかる点に鑑み、ファジィ推論の中間結果の処
理を実数またはファジィラベルで受は渡すことにより、
ファジィ多段推論が可能な装置を提供することを目的と
する。
In view of this point, the present invention processes intermediate results of fuzzy inference using real numbers or fuzzy labels.
The purpose of this invention is to provide a device capable of fuzzy multi-stage inference.

課題を解決するための手段 本発明は、実数値の入力データに対してこのファジィ推
論規則を用いてファジィ推論を行い、そのファジィ推論
で得られたファジィ数の中間結果を実数値の形にし、再
びこの実数値のデータにもとづき多段推論を行うことを
特徴とするものである。
Means for Solving the Problems The present invention performs fuzzy inference on real-valued input data using the fuzzy inference rules, converts the fuzzy number intermediate result obtained by the fuzzy inference into a real-valued form, The feature is that multi-stage inference is performed again based on this real value data.

また本発明は、推論の中間結果データおよび入力データ
から多段推論を行うことを特徴とするものである。
Further, the present invention is characterized in that multi-stage inference is performed from intermediate result data of inference and input data.

さらに本発明は、ファジィ推論で得られたファジィ数を
ファジィラベルにおきかえ、前記ファジィラベルを推論
機構部にファジィデータとして入力し、多段推論を行う
ことを特徴とするものである。
Furthermore, the present invention is characterized in that the fuzzy numbers obtained by fuzzy inference are replaced with fuzzy labels, and the fuzzy labels are input as fuzzy data to the inference mechanism section to perform multi-stage inference.

また本発明は、ファジィ推論で得られたファジィ数をフ
ァジィラベルにおきかえ、このファジィラベルをこの中
間結果として、この時点の入力データとともに推論機構
部に入力し、多段推論を行うことを特徴とするものであ
る。
Further, the present invention is characterized in that the fuzzy numbers obtained by fuzzy inference are replaced with fuzzy labels, and this fuzzy label is input as an intermediate result to the inference mechanism unit along with the input data at this point to perform multi-stage inference. It is something.

作用 本発明は上記の構成により、−段のファジィ推論で生じ
た推論結果を中間結果として実数またはファジィラベル
で次の推論の入力として処理するため多段のファジィ推
論を行うことができる。
Effect of the Invention With the above-described configuration, the present invention can perform multi-stage fuzzy inference in order to process the inference result produced in -stage fuzzy inference as an intermediate result as an input for the next inference using a real number or a fuzzy label.

実施例 以下、第1の発明の一実施例を第1図を用いて説明する
EXAMPLE An example of the first invention will be described below with reference to FIG.

101はデータ入力部でセンサー等から得られる実数値
が入力される。102は作業領域部でデータ入力部10
1からのデータまたは推論の中間結果が格納される。1
03はファジィ推論規則記憶部で、ファジィ推論に用い
る推論規則を多数記憶している。ここで用いられる規則
はrIF・・・(前件部)・・・THEN・・・(後件
部)である」の形式で表現され、前件部はファジィ変数
を含む推論命題で。
101 is a data input unit into which real values obtained from sensors and the like are input. 102 is a work area section and a data input section 10
1 or intermediate results of inference are stored. 1
03 is a fuzzy inference rule storage unit which stores a large number of inference rules used in fuzzy inference. The rule used here is expressed in the form "rIF...(antecedent part)...THEN...(consequent part)", where the antecedent part is an inferential proposition containing fuzzy variables.

また後件部は通常の実数を含む関数で表現されている。Furthermore, the consequent part is expressed as a function containing ordinary real numbers.

104は推論機構部で以下の各部より構成される。10
5はファジィ数記憶部で、ファジィ推論演算の前件部、
後件部で用いる「負で大きい」「ゼロ」 「正で小さい
」などの制御量の大小を表わすファジィ変数を記憶して
いる。106は推論規則管理部で、ファジィ推論規則記
憶部103から推論規則を取り出す。107はファジィ
推論演算部で1作業領域102からの初期データまたは
推論の中間データに対して、推論規則に適応して、ファ
ジィ推論を行い、推論結果を導出する。108はこの推
論結果のファジィ数を実数に変換する演算部である。推
論が途中であれば、この変換した実数値を中間変数とし
て作業領域102に格納し、推論機構部104にて、次
の推論を行う。推論が完了すればこの実数値を推論結果
として、109の結果出力部に入力する。
Reference numeral 104 denotes an inference mechanism section, which is composed of the following sections. 10
5 is a fuzzy number storage unit, which is the antecedent part of the fuzzy inference operation,
It stores fuzzy variables used in the consequent that represent the magnitude of the control amount, such as ``negative and large,''``zero,'' and ``positive and small.'' 106 is an inference rule management unit that retrieves inference rules from the fuzzy inference rule storage unit 103; A fuzzy inference calculation unit 107 performs fuzzy inference on the initial data or inference intermediate data from one work area 102 in accordance with inference rules, and derives inference results. 108 is an arithmetic unit that converts the fuzzy numbers resulting from this inference into real numbers. If the inference is in progress, the converted real value is stored in the work area 102 as an intermediate variable, and the inference mechanism unit 104 performs the next inference. When the inference is completed, this real value is inputted to the result output section 109 as the inference result.

前記のように構成された本発明のファジィ多段推論の動
作説明を第2図とともに説明する。
The operation of the fuzzy multi-stage inference of the present invention configured as described above will be explained with reference to FIG.

車の運転時、時刻tにおける車間距離(OL)が30m
1 走行速度(OS)が80に/mのときのブレーキの
強さ(BR)を−段目の推論で推論する。次に(時刻t
+1)、求めたブレーキの強さに応じて音声合成装置等
により、同乗者に警告音をどの程度強く発するかを推論
する。
When driving a car, the inter-vehicle distance (OL) at time t is 30 m.
1 Infer the braking strength (BR) when the running speed (OS) is 80/m using the -th inference. Next (time t
+1) Based on the determined braking strength, a voice synthesizer or the like infers how strongly the warning sound should be emitted to the passenger.

ファジィ推論規則記憶部103にはOL、OSとBRと
の関係が以下2つのルールの形で知識ベース1として格
納されている。
The fuzzy inference rule storage unit 103 stores the relationship between the OL, OS, and BR in the form of the following two rules as a knowledge base 1.

R1:   IF  CL  ls  Small(P
S)  And  CS  1s  Bfg(PR)T
HEN BR18Big(PB) R2: IF CL Is Blg(PR)And C
S Is Small(PS)THEN BRis S
mall(PS)−段目の推論では推論規則管理部10
6はファジィ推論規則記憶部103から上述の知識ベー
ス1を取り出す。そして初期値データ(0L=3h+ 
、0S=80Ks八)に対して、ファジィ推論演算部1
07にて前述した(1)式に従って1n演算を行い、前
件部、後件部の適合度が各ルールに対して計算される。
R1: IF CL ls Small (P
S) And CS 1s Bfg(PR)T
HEN BR18Big(PB) R2: IF CL Is Blg(PR)And C
S Is Small (PS) THEN BRis S
mall (PS) - Inference rule management unit 10 in the inference of the stage
6 takes out the above-mentioned knowledge base 1 from the fuzzy inference rule storage unit 103. And initial value data (0L=3h+
, 0S=80Ks8), the fuzzy inference calculation unit 1
In step 07, the 1n operation is performed according to the above-mentioned equation (1), and the goodness of fit of the antecedent part and the consequent part is calculated for each rule.

この結果を(2)式のmax演算にて結合し推論結果T
、を得る。推論結果T、をそのまま中間結果として次の
推論に受は渡す方法も考えられるが、以下の2点の問題
点がある。
These results are combined using the max operation in equation (2), and the inference result T
, get . Although it is possible to pass the inference result T as an intermediate result to the next inference, there are the following two problems.

ファジィ推論演算部107は初期データが実数値のため
、実数値入力の推論構成が必要である。
Since the initial data of the fuzzy inference calculation unit 107 is a real value, an inference configuration for inputting a real value is required.

一方、中間結果はファジィ数のままで入力されるため、
ファジィ推論演算部107はファジィ数入力の推論構成
も必要となり複雑である。
On the other hand, intermediate results are input as fuzzy numbers, so
The fuzzy inference calculation unit 107 requires an inference configuration for inputting fuzzy numbers and is complicated.

また、中間結果をファジィ数のまま多段に受渡していく
とn+ax演算をしているため、推論結果のファジィ数
の高さが低く、巾が広がり現実と異なった推論になる。
Furthermore, if intermediate results are passed to multiple stages as fuzzy numbers, n+ax operations are performed, so the height of the fuzzy numbers in the inference results is low and the range is widened, resulting in inferences that differ from reality.

このため推論結果T+をファジィ数実数演算部108に
て前述した(3)式に従い重心を計算し、実数値u+”
を中間結果として作業領域102に格納する。重心の他
に高さ法でファジィ数の一番高い所をとったりしても良
いことは言うまでもない。
Therefore, the center of gravity of the inference result T+ is calculated by the fuzzy real number calculation unit 108 according to the above-mentioned equation (3), and the real value u+"
is stored in the work area 102 as an intermediate result. Needless to say, in addition to the center of gravity, it is also possible to use the height method to take the highest point of the fuzzy number.

二段目の推論では推論規則管理部106はファジィ推論
規則記憶部103に知識ベース2として格納されている
次の3つのルールを取り出す。
In the second stage of inference, the inference rule management unit 106 takes out the following three rules stored in the fuzzy inference rule storage unit 103 as the knowledge base 2.

R1:  夏F  BRIs  Small(PS)T
HEN AL Is Small(PS)R2: IF
 BRis Medium(PM)THEN AL i
s Nedlum(PM)R1: IF BRIs B
ig(PR)THEN AL Is Big(PR)次
にファジィ推論演算部107にて中間結果U富°を入力
として一段目と同様の推論を行い、推論結果Teをファ
ジィ数として得る。ファジィ数実数演算部108にて実
数値u2°に変換し、音声合成装置に入力して同乗者へ
の警告音とする。以下、3段め以降の推論も同様にして
行い多段の推論が可能となる。
R1: Summer F BRIs Small (PS) T
HEN AL Is Small (PS) R2: IF
BRis Medium (PM) THEN AL i
s Nedlum (PM) R1: IF BRIs B
ig (PR) THEN AL Is Big (PR) Next, the fuzzy inference calculation unit 107 performs inference similar to the first stage by inputting the intermediate result U, and obtains the inference result Te as a fuzzy number. The fuzzy number real number calculation unit 108 converts it into a real number u2°, and inputs it to the speech synthesizer to generate a warning sound to the fellow passenger. Thereafter, the third and subsequent stages of inference are performed in the same manner, allowing multi-stage inference.

また第1の発明として2段目の推論には中間結果のみを
用いた例を述べたが第2の発明として第1図の作業領域
102からファジィ推論演算部107に点線で示したよ
うに時刻t+1の時の入力データを推論の中間結果とと
もに推論してもよい。その他の構成は第1の発明と同様
なため、詳細な説明は省略する。この構成では過去のデ
ータから推論した結果と現状の入力データとで多段な推
論が可能となり、学習とか、予見的な推論ができて特に
好都合である。
Furthermore, as the first invention, an example in which only intermediate results are used in the second-stage inference has been described, but as a second invention, it is possible to transfer the time from the work area 102 in FIG. Input data at time t+1 may be inferred together with intermediate results of inference. Since the other configurations are similar to those of the first invention, detailed explanations will be omitted. This configuration enables multi-stage inference using the results of inference from past data and current input data, and is especially convenient for learning and predictive inference.

次に第3の発明の一実施例を第3図を用いて、説明する
。第1の発明と異なる点は入力が実数値でなくファジィ
数で入力される。即ち、301はデータ入力部でコント
ロールパネル等から入力されるファジィデータが入力さ
れる。302は作業領域部で初期値データまたは推論の
中間結果が格納される。303はファジィ推論規則記憶
部で、ファジィ推論に用いる推論規則を多数記憶してい
る。ここで用いられる規則はrIF・・・(前件部)・
・・THEN・・・(後件部)である」の形式で表現さ
れ。
Next, an embodiment of the third invention will be described with reference to FIG. The difference from the first invention is that the input is not a real value but a fuzzy number. That is, 301 is a data input unit into which fuzzy data input from a control panel or the like is input. A work area 302 stores initial value data or intermediate results of inference. A fuzzy inference rule storage unit 303 stores a large number of inference rules used in fuzzy inference. The rules used here are rIF... (antecedent part).
...THEN... (consequent part)" is expressed in the form.

前件部はファジィ変数を含む推論命題で、また後件部は
通常の実数を含む関数で表現されている。
The antecedent part is expressed by an inferential proposition containing fuzzy variables, and the consequent part is expressed by a function containing ordinary real numbers.

304は推論機構部で以下の各部より構成される。Reference numeral 304 denotes an inference mechanism section, which is composed of the following sections.

305はファジィ数記憶部で、ファジィ推論演算の前件
部、後件部で用いる「負で大きい」 「ゼロ」「正で小
さい」などの制御量の大小を表わすファジィ変数を記憶
している。306は推論規則管理部で、ファジィ推論規
則記憶部303から推論規則を取り出す。307はファ
ジィ推論演算部で、作業領域302からの初期データま
たは推論の中間データに対して、推論規則に適応して、
ファジィ推論を行い、推論結果を導出する。308はこ
の推論結果のファジィ数をファジィラベルに変換する演
算部である。推論が途中であれば、この変換したファジ
ィラベルを中間変数として作業領域302に格納し、推
論機構部304にて、次の推論を行う。推論が完了すれ
ばこの実数値を推論結果として、309の結果出力部に
入力する。
A fuzzy number storage unit 305 stores fuzzy variables representing the magnitude of the control amount, such as "negative and large,""zero," and "positive and small," used in the antecedent and consequent parts of the fuzzy inference calculation. 306 is an inference rule management unit that retrieves inference rules from the fuzzy inference rule storage unit 303; 307 is a fuzzy inference calculation unit that applies inference rules to the initial data or inference intermediate data from the work area 302,
Perform fuzzy inference and derive inference results. 308 is an arithmetic unit that converts the fuzzy number resulting from this inference into a fuzzy label. If inference is in progress, the converted fuzzy label is stored in the work area 302 as an intermediate variable, and the inference mechanism unit 304 performs the next inference. When the inference is completed, this real value is inputted to the result output unit 309 as the inference result.

前記のように構成された本発明のファジィ多段推論の動
作説明を第4図および第5図とともに説明する。
The operation of the fuzzy multi-stage inference of the present invention configured as described above will be explained with reference to FIGS. 4 and 5.

車の運転時、時刻tにおける車間距離(OL)が中位で
、走行速度(CS)が中位のときのブレーキの強さ(B
R)を−段目の推論で推論する。次に(時刻t+1)、
求めたブレーキの強さに応じてデイスプレィ上の右側は
注意、左側は安全のスケールでどの範囲にランプを点灯
して、同乗者に警告するかを推論する。
When driving a car, the braking strength (B
R) is inferred using the -th stage of reasoning. Next (time t+1),
Depending on the strength of the brakes determined, the right side of the display indicates caution, and the left side indicates safety, and the system infers in what range the lamp should be lit to warn passengers.

ファジィ推論規則記憶部303には第一の発明と同様に
CL、OSとBRとの関係が以下2つのルールの形で知
識ベース1として格納されている。
Similar to the first invention, the fuzzy inference rule storage unit 303 stores the relationship between CL, OS, and BR in the form of the following two rules as knowledge base 1.

R1: IF CL Is Small(PS) An
d CS is 81g(PB)THEN BRIs 
Big(PH) R2: IF CL Is Blg(PB) And 
CS 1s Small(PS)THEN BRIs 
Small(PS)−段目の推論では推論規則管理部3
06はファジィ推論規則記憶部303から上述の知識ベ
ース1を取り出す。そして初期値データ(OL=Med
 1nm 。
R1: IF CL Is Small (PS) An
d CS is 81g (PB) THEN BRIs
Big(PH) R2: IF CL Is Blg(PB) And
CS 1s Small (PS) THEN BRIs
Small (PS) - Inference rule management unit 3 for stage inference
06 takes out the above-mentioned knowledge base 1 from the fuzzy inference rule storage unit 303. And initial value data (OL=Med
1 nm.

OS:Medlum)に対して、ファジィ推論演算部3
07にて以下に示す式に従ってm1n演算を行い、前件
部、後件部の適合度を各ルールに対して計算する。
OS: Medlum), fuzzy inference calculation unit 3
In step 07, m1n calculation is performed according to the formula shown below, and the degree of suitability of the antecedent part and the consequent part is calculated for each rule.

「車間距離は中位」 「走行速度は中位」のファジィ数
(ファジィデータ)F”、Flがコントロールパネル等
から入力された場合、上記の推論規則(第1番目の規則
)の結論のファジィ数は次のようになる。
When the fuzzy numbers (fuzzy data) F'' and Fl of ``the inter-vehicle distance is medium'' and ``the traveling speed is medium'' are input from the control panel, etc., the fuzzy number of the conclusion of the above inference rule (first rule) is The numbers are as follows.

μ+(u)”μps(F”)Aμpa (F’ )ただ
し μps(F”):1aX(μps(f)AμplI(f
))μpe(F’ト:n+ax(μpe(f)Aμp’
(f))ここで、Aは1nを示し、ファジィデータ戸、
1’lはファジィ変数と同様な三角型のファジィ数とす
る。第4図にファジィ変数μI(u)を示す。第4図に
示すようにμ、(U)は前件部のファジィ数PSに属す
るF−の度合(メンバシップ値)μps(F”)、ファ
ジィ数PRに属するFlの度合μpe (F’ )を比
較して、最も値の小さい度合μp s (F” )で後
件部のファジィ変数PBをカット(1n)することによ
り得られる。
μ+(u)"μps(F") Aμpa (F') However, μps(F"): 1aX(μps(f) AμplI(f
))μpe(F'to:n+ax(μpe(f)Aμp'
(f)) Here, A indicates 1n, and the fuzzy data door,
1'l is a triangular fuzzy number similar to the fuzzy variable. FIG. 4 shows the fuzzy variable μI(u). As shown in Fig. 4, μ, (U) is the degree (membership value) of F- belonging to the fuzzy number PS of the antecedent part μps (F”), and the degree μpe (F') of Fl belonging to the fuzzy number PR is obtained by comparing the values and cutting (1n) the fuzzy variable PB of the consequent part at the degree μps (F'') having the smallest value.

制御規則(1)式は複数個あるので、すべての結論のフ
ァジィ数を結合したファジィ数T3は前述した(2)式
を用いて II yz(11)”μ+ (u)V Is (u)V
と求められる。このファジィ数T3は制御操作量を表す
推論結果のファジィ数であるが、第1の発明と同様の理
由でファジィラベル演算部308にてファジィラベルF
3に変換する。
Since there are multiple control rule equations (1), the fuzzy number T3 that combines the fuzzy numbers of all the conclusions is II yz(11)”μ+ (u)V Is (u)V using the above-mentioned equation (2).
is required. This fuzzy number T3 is a fuzzy number of the inference result representing the control operation amount, but for the same reason as the first invention, the fuzzy label calculation unit 308 generates a fuzzy label
Convert to 3.

ファジィラベルに変換する方法としては、得られた推論
結果T3とSmal 1(PS) 、led lung
(PM) 、B fg(PR)の各々のファジィラベル
の面積の差が最小になるように選択する。第4図の例で
はPMを選択しファジィラベルF3として、作業領域3
02に入力し二段目の推論データとする。
As a method of converting to fuzzy labels, the obtained inference result T3 and Small 1 (PS), led lung
(PM) and B fg (PR) so that the difference in area between the respective fuzzy labels is minimized. In the example shown in Figure 4, PM is selected and the fuzzy label F3 is assigned to work area 3.
02 and use it as the second stage inference data.

二段目の推論では推論規則管理部308はファジィ推論
規則記憶部303に知識ベース2として格納されている
次の3つのルールを取り出す。
In the second stage of inference, the inference rule management unit 308 takes out the following three rules stored in the fuzzy inference rule storage unit 303 as the knowledge base 2.

R1: IF ORIs Sa+all(PS)THE
N AL 1s Small(PS)R2: IF B
Ris Medium(PM)THEN AL Is 
Medlum(PM)R1: IF BRi8 Big
(PR)THEN AL is Big(PB)次にフ
ァジィ推論演算部307にて中間結果F2を入力として
一段目と同様の推論を行い、第5図に示すように推論結
果T4をファジィ数として得る。
R1: IF ORIs Sa+all(PS)THE
N AL 1s Small (PS) R2: IF B
Ris Medium (PM) THEN AL Is
Medlum(PM)R1: IF BRi8 Big
(PR) THEN AL is Big (PB) Next, in the fuzzy inference calculation unit 307, the intermediate result F2 is input and the same inference as in the first stage is performed, and the inference result T4 is obtained as a fuzzy number as shown in FIG.

ファジィラベル演算部368にてファジィラベルF4に
変換し、パネル面の左右の位置上に表示して同乗者への
警告とする。以下、3段め以降の推論も同様にして行い
多段の推論が可能となる。
The fuzzy label calculation unit 368 converts it into a fuzzy label F4, which is displayed on the left and right positions of the panel surface as a warning to fellow passengers. Thereafter, the third and subsequent stages of inference are performed in the same manner, allowing multi-stage inference.

また第3の発明として2段目の推論には中間結果のみを
用いた例を述べたが第4の発明として第3図の作業領域
302からファジィ推論演算部307に点線で示したよ
うに時刻t+1の時の入力データを推論の中間結果とと
もに推論してもよい。その他の構成は第3の発明と同様
なため、詳細な説明は省略する。この構成では過去のデ
ータから推論した結果と現状の入力データとで多段な推
論が可能となり、学習とか、予見的な推論ができて特に
好都合である。
In addition, as a third invention, an example was described in which only intermediate results are used in the second stage of inference, but as a fourth invention, the time as shown by the dotted line from the work area 302 in FIG. Input data at time t+1 may be inferred together with intermediate results of inference. Since the other configurations are similar to the third invention, detailed explanations will be omitted. This configuration enables multi-stage inference using the results of inference from past data and current input data, and is especially convenient for learning and predictive inference.

また、第6の発明として第6図に示すように、知識ベー
スを格納しているファジィ推論規則記憶部103及びフ
ァジィ推論規則記憶部303を共通化して一つとし、フ
ァジィ推論機構104およびファジィ推論機構304を
各々持つ構成にすれば、入力が実数値、ファジィ数いず
れの場合にも多段推論が出来、しかも同一の知識ベース
を利用でき、推論規則作成の手間およびメモリが半減で
きる。
Further, as a sixth invention, as shown in FIG. 6, the fuzzy inference rule storage unit 103 and the fuzzy inference rule storage unit 303 that store the knowledge base are unified into one, and the fuzzy inference mechanism 104 and the fuzzy inference By having each mechanism 304, multi-stage inference can be performed whether the input is a real number or a fuzzy number, the same knowledge base can be used, and the effort and memory required for creating inference rules can be halved.

発明の詳細 な説明したように、本発明によれば、ファジィ推論の中
間結果を実数またはファジィラベルでつぎの推論に受は
渡すことにより、ファジィ多段推論が可能となり、−段
の推論よりもさらに人間の推論に近い推論が出来る。
As described in detail, according to the present invention, fuzzy multi-stage inference is possible by passing intermediate results of fuzzy inference to the next inference using real numbers or fuzzy labels, which is even more efficient than -stage inference. Can make inferences similar to human reasoning.

【図面の簡単な説明】[Brief explanation of drawings]

第1図は第1および第2の発明における一実施例のファ
ジィ多段推論装置のブロック図、第2図は第1の発明に
おけるファジィ推論演算過程の説明図、第3図は第3お
よび第4の発明における一実施例のファジィ多段推論装
置のブロック図、第4図は第3の発明における一段目の
ファジィ推論演算過程の説明図、第6図は第3の発明に
おける二段目のファジィ推論演算過程の説明図、第6図
は第5の発明における一実施例のファジィ多段推論装置
のブロック図、第7図は本発明におけるファジィ変数の
説明図、第8図は推論規則におけるファジィ推論過程の
説明図、第8図は推論結果のフ1シイ数の説明図である
。 101・・データ入力部、102・・作業領域部、10
3・・ファジィ推論規則記憶部、104・・推論機構部
、105・・ファジィ数記憶部、108・・推論規則管
理部、107・・ファジィ推論演算部、108・・ファ
ジィ数実数演算部、109・・結果出力部、301・・
データ入力部、302・・作業領域部、303・・ファ
ジィ推論規則記憶部、304・・推論機構部、305・
・ファジィ数記憶部、308・・推論規則管理部。 307・・ファジィ推論演算部、308・・ファジィラ
ベル演算部、308・・結果出力部。 代理人の氏名 弁理士 粟野重孝 ほか1名第 図 礪 図 鵠 図 時刻t (−s目のm1) −−−−−−−−−−−J 申 旺刺℃↑1 (二噌目の撓Kg ) 第 図 前件部 湊汗叩 第 図 第 図 第 図 第 図 第 図 ■
FIG. 1 is a block diagram of a fuzzy multi-stage inference device according to an embodiment of the first and second inventions, FIG. 2 is an explanatory diagram of the fuzzy inference calculation process in the first invention, and FIG. FIG. 4 is an explanatory diagram of the first stage fuzzy inference calculation process in the third invention, and FIG. 6 is a block diagram of the second stage fuzzy inference in the third invention. An explanatory diagram of the calculation process, FIG. 6 is a block diagram of a fuzzy multi-stage inference device according to an embodiment of the fifth invention, FIG. 7 is an explanatory diagram of fuzzy variables in the present invention, and FIG. 8 is a fuzzy inference process in the inference rule. FIG. 8 is an explanatory diagram of the frequency of the inference results. 101...Data input section, 102...Work area section, 10
3... Fuzzy inference rule storage unit, 104... Inference mechanism unit, 105... Fuzzy number storage unit, 108... Inference rule management unit, 107... Fuzzy inference calculation unit, 108... Fuzzy number real number calculation unit, 109 ...Result output section, 301...
Data input section, 302...Work area section, 303...Fuzzy inference rule storage section, 304...Inference mechanism section, 305.
-Fuzzy number storage section, 308...Inference rule management section. 307...Fuzzy inference calculation unit, 308...Fuzzy label calculation unit, 308...Result output unit. Name of agent Patent attorney Shigetaka Awano and 1 other person Time t (-sth m1) -J Shenwangshi℃↑1 (Second-seat m1) Kg) Figure antecedent part Minato sweat stroke Figure Figure Figure Figure Figure ■

Claims (7)

【特許請求の範囲】[Claims] (1) ファジィ推論規則を格納した推論規則記憶部と
、実数値の入力データに対してこのファジィ推論規則を
用いてファジィ推論を行う推論機構部と、推論の中間結
果および入力データを格納する作業領域とからなり、推
論機構部ではファジィ推論で得られたファジィ数の中間
結果を実数値の形にして前記作業領域に格納し、再びこ
の実数値のデータを推論機構部に入力して多段推論を行
うことを特徴とするファジィ多段推論装置。
(1) An inference rule storage unit that stores fuzzy inference rules, an inference mechanism unit that performs fuzzy inference using the fuzzy inference rules on real-valued input data, and a task that stores intermediate results of inference and input data. The inference mechanism section stores the intermediate results of fuzzy numbers obtained by fuzzy inference in the form of real numbers in the work area, and inputs this real value data to the inference mechanism section again to perform multi-stage inference. A fuzzy multi-stage inference device that performs the following.
(2) ファジィ推論規則を格納した推論規則記憶部と
、実数値の入力データに対してこのファジィ推論規則を
用いてファジィ推論を行う推論機構部と、推論の中間結
果および入力データを格納する作業領域とからなり、推
論機構部ではファジィ推論で得られたファジィ数の中間
結果を実数値の形にして前記作業領域に格納し、再びこ
の実数値の中間結果データとこの時点の入力データとを
ともに推論機構部に入力して多段推論を行うことを特徴
とするファジィ多段推論装置。
(2) An inference rule storage unit that stores fuzzy inference rules, an inference mechanism unit that performs fuzzy inference using the fuzzy inference rules on real-value input data, and a task that stores intermediate results of inference and input data. The inference mechanism section stores the intermediate results of fuzzy numbers obtained by fuzzy inference in the form of real numbers in the work area, and again combines the intermediate result data of real numbers with the input data at this point. A fuzzy multi-stage inference device is characterized in that both are input to an inference mechanism section to perform multi-stage inference.
(3) ファジィ推論で得られたファジィ数の中間結果
の重心をとることにより実数値の形にして作業領域に格
納することを特徴とする請求項1または2記載のファジ
ィ多段推論装置。
(3) The fuzzy multi-stage inference device according to claim 1 or 2, characterized in that the center of gravity of intermediate results of fuzzy numbers obtained by fuzzy inference is taken, and the result is stored in the work area in the form of real numbers.
(4) ファジィ推論規則を格納した推論規則記憶部と
、ファジィデータの入力に対してこのファジィ推論規則
を用いてファジィ推論を行う推論機構部と、推論の中間
結果および入力データを格納する作業領域とからなり、
推論機構部ではファジィ推論で得られたファジィ数をフ
ァジィラベルにおきかえ、ファジィラベルで前記作業領
域に格納し、再びこのファジィラベルを推論機構部にフ
ァジィデータとして入力し、多段推論を行うことを特徴
とするファジィ多段推論装置。
(4) An inference rule storage unit that stores fuzzy inference rules, an inference mechanism unit that performs fuzzy inference using the fuzzy inference rules on input fuzzy data, and a work area that stores intermediate results of inference and input data. It consists of
The inference mechanism unit replaces the fuzzy numbers obtained by fuzzy inference with fuzzy labels, stores the fuzzy labels in the work area, and inputs the fuzzy labels to the inference mechanism unit again as fuzzy data to perform multi-stage inference. A fuzzy multi-stage inference device.
(5) ファジィ推論規則を格納した推論規則記憶部と
、ファジィデータの入力に対してこのファジィ推論規則
を用いてファジィ推論を行う推論機構部と、推論の中間
結果および入力データを格納する作業領域とからなり、
推論機構部ではファジィ推論で得られたファジィ数をフ
ァジィラベルにおきかえ、ファジィラベルで前記作業領
域に格納し、再びこの中間結果のファジィラベルとこの
時点の入力データとをともに推論機構部に入力し、多段
推論を行うことを特徴とするファジィ多段推論装置。
(5) An inference rule storage unit that stores fuzzy inference rules, an inference mechanism unit that performs fuzzy inference using the fuzzy inference rules on input fuzzy data, and a work area that stores intermediate results of inference and input data. It consists of
The inference mechanism section replaces the fuzzy numbers obtained by fuzzy inference with fuzzy labels, stores them in the work area as fuzzy labels, and inputs both the fuzzy label of this intermediate result and the input data at this point into the inference mechanism section again. , a fuzzy multi-stage inference device characterized by performing multi-stage inference.
(6) ファジィ推論で得られたファジィ数の中間結果
とファジィラベルとの面積の差が最小になるファジィラ
ベルを選択して中間結果として作業領域に格納すること
を特徴とする請求項4または5記載のファジィ多段推論
装置。
(6) Claim 4 or 5, characterized in that the fuzzy label that minimizes the difference in area between the fuzzy number intermediate result obtained by fuzzy inference and the fuzzy label is selected and stored in the work area as the intermediate result. Fuzzy multi-stage reasoning device described.
(7) ファジィ推論規則を格納した推論規則記憶部と
、実数値の入力データに対してこのファジィ推論規則を
用いてファジィ推論を行う推論機構部と、この推論の中
間結果およびこの時の入力データを格納する作業領域と
、この推論機構部ではファジィ推論で得られたファジィ
数の中間結果を実数値の形にして前記作業領域に格納し
、再びこの実数値のデータを推論機構部に入力して多段
推論を行う手段と、ファジィデータの入力に対して前記
推論規則記憶部からのファジィ推論規則を用いてファジ
ィ推論を行う推論機構部と、この推論の中間結果および
この時のファジィラベルの入力データを格納する作業領
域とからなり、この推論機構部ではファジィ推論で得ら
れたファジィ数をファジィラベルにおきかえ、ファジィ
ラベルで前記作業領域に格納し、再びこのファジィラベ
ルを推論機構部にファジィデータとして入力し、多段推
論を行う手段とからなるファジィ多段推論装置。
(7) An inference rule storage unit that stores fuzzy inference rules, an inference mechanism unit that performs fuzzy inference using the fuzzy inference rules on real-valued input data, intermediate results of this inference, and input data at this time. This inference mechanism section stores the intermediate results of fuzzy numbers obtained by fuzzy inference in the form of real numbers in the work area, and inputs this real value data to the inference mechanism section again. an inference mechanism section that performs fuzzy inference on input fuzzy data using fuzzy inference rules from the inference rule storage section; and an input of intermediate results of this inference and fuzzy labels at this time. This inference mechanism section replaces the fuzzy numbers obtained by fuzzy inference with fuzzy labels, stores them in the work area with fuzzy labels, and then transfers the fuzzy labels to the inference mechanism section again as fuzzy data. A fuzzy multi-stage inference device comprising a means for inputting and performing multi-stage inference.
JP1083408A 1989-03-31 1989-03-31 Fuzzy multistage inference device Pending JPH02260041A (en)

Priority Applications (3)

Application Number Priority Date Filing Date Title
JP1083408A JPH02260041A (en) 1989-03-31 1989-03-31 Fuzzy multistage inference device
EP19900303368 EP0390563A3 (en) 1989-03-31 1990-03-29 Fuzzy multi-stage inference apparatus
US07/501,037 US5191638A (en) 1989-03-31 1990-03-29 Fuzzy-boolean multi-stage inference apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1083408A JPH02260041A (en) 1989-03-31 1989-03-31 Fuzzy multistage inference device

Publications (1)

Publication Number Publication Date
JPH02260041A true JPH02260041A (en) 1990-10-22

Family

ID=13801603

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1083408A Pending JPH02260041A (en) 1989-03-31 1989-03-31 Fuzzy multistage inference device

Country Status (1)

Country Link
JP (1) JPH02260041A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5625561A (en) * 1994-01-31 1997-04-29 Toyota Jidosha Kabushiki Kaisha Apparatus and method for feedback adjusting machine working condition for improving dimensional accuracy of processed workpieces
US6999846B2 (en) 1992-02-14 2006-02-14 Toyota Jidosha Kabushiki Kaisha Apparatus and method for feedback-adjusting working condition for improving dimensional accuracy of processed workpieces

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6999846B2 (en) 1992-02-14 2006-02-14 Toyota Jidosha Kabushiki Kaisha Apparatus and method for feedback-adjusting working condition for improving dimensional accuracy of processed workpieces
US5625561A (en) * 1994-01-31 1997-04-29 Toyota Jidosha Kabushiki Kaisha Apparatus and method for feedback adjusting machine working condition for improving dimensional accuracy of processed workpieces

Similar Documents

Publication Publication Date Title
Aladin et al. Control of vehicles and robots: creating of knowledge bases for mivar decision making systems robots and vehicles
Von Altrock et al. Advanced fuzzy logic control of a model car in extreme situations
Clarke New utopias for old: Fordist dreams and post-Fordist fantasies
JPH06504132A (en) Automotive route guidance system
Loasby The significance of Penrose's theory for the development of economics
Li et al. Using mega-fuzzification and data trend estimation in small data set learning for early FMS scheduling knowledge
Artuñedo et al. A primitive comparison for traffic-free path planning
JPH02260041A (en) Fuzzy multistage inference device
Castellano et al. Automatic generation of fuzzy rules for reactive robot controllers
JPH09192980A (en) Position control device for machine tool
Chen et al. Towards transparent robotic planning via contrastive explanations
Rychener et al. Integration of Multiple Knowledge Sources in ALADIN: An Alloy Design System
Gray et al. Impacts of fuzzy logic modeling for constraints optimization
Nguyen et al. Methodology of fuzzy control: an introduction
JPH10340192A (en) Fuzzy logic controller and its non-fuzzying method
Masoumi et al. The challenges and advantages of fuzzy systems applications
Da Silva et al. Navigation of mobile robots using fuzzy logic controllers
Faruffini et al. Vehicle autonomous navigation with context awareness
JPH0293904A (en) Fuzzy control device
JPH1078803A (en) Method for designing or adapting fuzzy controller or system of integrated fuzzy controller
JPH01293401A (en) Fuzzy control arithmetic device and fuzzy inference method
Rotshtein et al. Fuzzy rule based innovation projects estimation
Poplawski et al. Implementation of fuzzy logic controller in FPGA circuit for guiding electric wheelchair
Xiang et al. Research on formulation method of complicated decision making problem based on domain knowledge
Wang A mathematical formulation of hierarchical systems using fuzzy logic systems