JP3151857B2 - Inference device with learning function - Google Patents

Inference device with learning function

Info

Publication number
JP3151857B2
JP3151857B2 JP13499491A JP13499491A JP3151857B2 JP 3151857 B2 JP3151857 B2 JP 3151857B2 JP 13499491 A JP13499491 A JP 13499491A JP 13499491 A JP13499491 A JP 13499491A JP 3151857 B2 JP3151857 B2 JP 3151857B2
Authority
JP
Japan
Prior art keywords
inference
knowledge group
learning
knowledge
value
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.)
Expired - Fee Related
Application number
JP13499491A
Other languages
Japanese (ja)
Other versions
JPH04360238A (en
Inventor
敏巳 工藤
太治 十河
浩 熊本
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.)
Omron Corp
Original Assignee
Omron Corp
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 Omron Corp filed Critical Omron Corp
Priority to JP13499491A priority Critical patent/JP3151857B2/en
Publication of JPH04360238A publication Critical patent/JPH04360238A/en
Application granted granted Critical
Publication of JP3151857B2 publication Critical patent/JP3151857B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Devices For Executing Special Programs (AREA)
  • Feedback Control In General (AREA)

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【産業上の利用分野】本発明は、株価予測システムな
ど、非線形モデルを対象としたシステムに好適な推論装
置に関し、特に、学習機能を有する推論装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an inference apparatus suitable for a system targeting a nonlinear model such as a stock price prediction system, and more particularly to an inference apparatus having a learning function.

【0002】[0002]

【従来の技術】従来の学習機能付推論装置としては、例
えば特開平2−178801号に示されるものがある。
同公報に示される推論装置では、推論にファジィを使用
している。この装置では、一定期間毎に、例えばデータ
の入力回数をカウントして所定の入力回数を越える毎に
推論のための学習を開始する。この結果、例えばテレビ
ジョンの音量やクーラーの温度などのコントロールに適
用すると、次第に操作者の好みに応じた制限が行われて
いくようになる。
2. Description of the Related Art A conventional inference apparatus with a learning function is disclosed, for example, in Japanese Patent Application Laid-Open No. 2-178801.
In the inference apparatus disclosed in the publication, fuzzy is used for inference. In this apparatus, the learning for inference is started every predetermined period, for example, the number of times of data input is counted, and every time the number of times exceeds a predetermined number of times. As a result, for example, when the present invention is applied to controls such as the volume of a television and the temperature of a cooler, restrictions are gradually made in accordance with the preference of the operator.

【0003】[0003]

【発明が解決しようとする課題】しかし、以上のような
推論装置では以下のような問題点がある。
However, the above-described inference apparatus has the following problems.

【0004】(1)推論を行う対象の状態変化に対応し
た学習の開始時期と終了時期とを指定することが不可能
である。
(1) It is impossible to designate a start time and an end time of learning corresponding to a change in state of an inference target.

【0005】(2)推論を行う対象の状態が急激に変化
し、それまでの知識群の推論結果が正当性を失ったとき
でも、所定の入力回数に達するまで学習を開始すること
ができない。
(2) Even when the state of the inference target changes abruptly and the inference result of the knowledge group up to that point loses validity, learning cannot be started until a predetermined number of inputs is reached.

【0006】すなわち、株価予測システムなど、推論対
象が非線形モデルの場合、上記のような従来の推論装置
の学習機能では学習効果がほとんど得られない欠点があ
った。
That is, when the inference target is a non-linear model such as a stock price prediction system, there is a disadvantage that the learning function of the conventional inference apparatus as described above hardly provides a learning effect.

【0007】本発明の目的は、推論対象の状態変化に対
応して学習を行うことにより、上記の欠点を解決するこ
とのできる学習機能付き推論装置を提供することにあ
る。
An object of the present invention is to provide an inference apparatus with a learning function capable of solving the above-mentioned drawbacks by performing learning in response to a state change of an inference target.

【0008】本発明は、入力値を受け取り、推論を行う
知識群推論手段と、前記知識群推論手段の推論結果と正
当値を受け取り、知識群更新のための学習の必要性を評
価し、学習の開始と終了のタイミングを決定する学習機
能起動判定手段と、前記学習機能起動判定手段で学習が
必要であると判定されたときに入力値と正当値とから知
識群を学習して前記知識群推論手段内の知識群を更新す
る知識群推論部更新手段と、を備えてなる、学習機能付
き推論装置において、 前記学習機能起動判定手段は、推
論サイクル毎に前記知識群推論手段の各知識群の推論結
果と正当値とを比較した結果を各知識群の評価値として
それぞれ記憶し、記憶された過去m回(m>1)の推論
サイクル分の評価値に基づいて学習の必要性を推論サイ
クル毎に判定し、学習の開始と終了のタイミングを決定
することを特徴とする。
[0008] The present invention receives the input value, and knowledge group inference means for performing inference receives inference result and legal value of the knowledge group inference means, to evaluate the need for learning for knowledge group update, learning starting the learning function activation determining means for determining the timing of the completion of the learning in the learning function activation determining means
A knowledge group inference unit updating means for learning a knowledge group from an input value and a valid value when it is determined necessary and updating the knowledge group in the knowledge group inference means .
In the inference apparatus, the learning function activation determining means includes:
Inference conclusion of each knowledge group of the knowledge group inference means for each logic cycle
The result of comparing the result with the legal value is used as the evaluation value of each knowledge group.
Infer each of the past m times (m> 1) memorized and stored
Infer the need for learning based on the evaluation value for the cycle
Judgment is made for each vehicle and the timing of learning start and end is determined
It is characterized by doing.

【0009】前記知識群推論部更新手段は、学習した知
識群を新しい知識群として作成する知識群学習手段と、
新しい知識群を前記知識群推論手段に追加する知識群追
加手段と、を備えることを特徴とする。
The knowledge group inference unit updating means includes: a knowledge group learning means for creating a learned knowledge group as a new knowledge group;
Means for adding a new knowledge group to the knowledge group inference means.

【0010】[0010]

【0011】[0011]

【作用】知識群推論手段には、通常複数の知識群が並列
的に設けられており、入力値はこれらの知識群に並列的
に入力する。各知識群は入力値を受け取ることによって
推論を実行し、その結果を出力する。推論結果は学習機
能起動判定手段に導かれる。この学習機能起動判定手段
は、上記推論結果と正当値とを比較して学習の必要性を
評価する。正当値は入力値に対する実際の結果を表す。
例えば株価予測システムにおいては、予測のための各種
パラメータが入力値となり、正当値が実際の株価であ
る。学習機能起動判定手段では、さらに、その学習の必
要性の評価の後、その評価結果に応じて学習の開始と終
了のタイミングを決定する。学習の必要性の評価の方法
は、一般には、上記推論結果と正当値との差が大きいか
もしくはそうでないかによって行われる。学習期間の長
さも、一般には、その差の大きさに応じて変化する。
A plurality of knowledge groups are usually provided in parallel in the knowledge group inference means, and input values are input to these knowledge groups in parallel. Each knowledge group executes an inference by receiving an input value, and outputs the result. The inference result is led to a learning function activation determination unit. The learning function activation determining means evaluates the necessity of learning by comparing the inference result with a valid value. The legitimate value represents the actual result for the input value.
For example, in a stock price prediction system, various parameters for prediction are input values, and a valid value is an actual stock price. The learning function activation determining means further evaluates the necessity of the learning, and then starts and ends the learning according to the evaluation result.
End timing . The method of evaluating the necessity of learning is generally performed depending on whether the difference between the above inference result and the valid value is large or not. In general, the length of the learning period also changes according to the magnitude of the difference.

【0012】学習機能起動判定手段によって学習の開始
と終了のタイミング間の学習期間が設定されると、その
期間において知識群推論部更新手段が起動され、上記入
力値と正当値とから知識群を学習して知識群推論手段内
の知識群を更新する。
The learning is started by the learning function activation determining means.
When the learning period between the end timing and the end timing is set, the knowledge group inference unit updating means is activated in that period, the knowledge group is learned from the input value and the valid value, and the knowledge group in the knowledge group inference means is updated. Update.

【0013】上記知識群推論部更新手段による知識群の
更新においては、すでに存在する知識群を修正すること
も可能であるが、学習した知識群を新しい知識群として
作成し、その新しい知識群を新たな知識群として追加す
ることも可能である。
In updating the knowledge group by the knowledge group inference unit updating means, it is possible to modify the existing knowledge group. However, the learned knowledge group is created as a new knowledge group, and the new knowledge group is created. It is also possible to add it as a new knowledge group.

【0014】[0014]

【0015】[0015]

【実施例】図1は、本発明の実施例の推論装置のブロッ
ク図である。
FIG. 1 is a block diagram of an inference apparatus according to an embodiment of the present invention.

【0016】入力値入力装置1は、推論を実行するため
のデータを入力する。入力値は、例えば、株価予測シス
テムに適用される場合には各種予測パラメータとなる。
The input value input device 1 inputs data for executing inference. The input values are, for example, various prediction parameters when applied to a stock price prediction system.

【0017】知識群推論部2は、複数の知識群2a〜2
cを備えている。各知識群2a〜2cは前記入力値入力
装置1から入力値を同時に受け取る。各知識群は、ファ
ジィ演算部を含み、各知識毎のファジィルール適合度演
算と適合度に基づく各知識毎の推論結果を求める演算
と、各知識毎の推論結果を合成する演算とを行う。本実
施例では、知識群推論部2がn個の知識群で構成されて
おり、最大n個の推論結果を出力する。
The knowledge group inference unit 2 includes a plurality of knowledge groups 2a to 2
c. Each of the knowledge groups 2a to 2c receives input values from the input value input device 1 at the same time. Each knowledge group includes a fuzzy calculation unit, and performs a fuzzy rule matching calculation for each knowledge, a calculation for obtaining an inference result for each knowledge based on the matching, and a calculation for synthesizing the inference result for each knowledge. In the present embodiment, the knowledge group inference unit 2 includes n knowledge groups, and outputs a maximum of n inference results.

【0018】正当値入力装置3は、入力値に対応した正
当な値を入力する。例えば、株価予測システムに適用さ
れる場合には、正当値は実際の株価である。入力値入力
装置1から入力される入力値と、正当値入力装置3から
入力される正当値とは、入力値に対して正当値が一回遅
れて入力される関係となる。したがって、タイミング的
には先ず入力値が入力され、その後に推論結果が出力さ
れ、さらにその後に正当値が入力される。
The valid value input device 3 inputs a valid value corresponding to the input value. For example, when applied to a stock price prediction system, the legitimate value is the actual stock price. The input value input from the input value input device 1 and the valid value input from the valid value input device 3 have a relationship in which the valid value is input once after the input value. Therefore, in terms of timing, first, an input value is input, then an inference result is output, and then a valid value is input.

【0019】学習機能判定装置4は、知識群推論部2の
各知識群から出力される推論結果と正当値入力装置3か
ら入力される正当値とから、各知識群が正しい値を出力
しているどうかを評価する。後述のように評価には所定
のしきい値を使用する。どの知識群も正しい値を出力し
ていないと評価したときには知識群学習装置9を起動さ
せる。
The learning function determination device 4 outputs a correct value for each knowledge group from the inference result output from each knowledge group of the knowledge group inference unit 2 and the valid value input from the valid value input device 3. Evaluate if As described later, a predetermined threshold value is used for evaluation. When it is evaluated that no knowledge group outputs a correct value, the knowledge group learning device 9 is started.

【0020】重み付け調整装置5は、前記学習機能起動
判定装置4で評価された各知識群の推論結果の評価値よ
り各知識群の推論結果の重み値を調整する。この場合、
正しい値を出力している知識群に対しての重み値は大き
くなり、そうでない知識群に対しての重み値は小さくな
る。
The weight adjustment device 5 adjusts the weight value of the inference result of each knowledge group from the evaluation value of the inference result of each knowledge group evaluated by the learning function activation determination device 4. in this case,
The weight value for a knowledge group that outputs a correct value increases, and the weight value for a knowledge group that does not output a correct value decreases.

【0021】重み付け装置51〜53は、重み付け調整
装置5で得られた重み値より、各知識群の推論結果に対
して実際の重み付けを行う。
The weighting devices 51 to 53 actually weight the inference results of each knowledge group based on the weight values obtained by the weight adjusting device 5.

【0022】推論結果合成装置6は上記重み付け装置5
1〜53の出力に表れる各知識群の重み付き推論結果を
合成する。合成後推論結果出力装置7は、上記推論結果
合成装置6より得られる合成された推論結果を出力す
る。この場合、出力装置としては例えばファイル,回
線,ディスプレイ装置などがある。
The inference result synthesizing unit 6 includes the weighting unit 5
The weighted inference results of each knowledge group appearing in the outputs 1 to 53 are synthesized. The synthesized inference result output device 7 outputs the synthesized inference result obtained from the inference result synthesis device 6. In this case, examples of the output device include a file, a line, and a display device.

【0023】出力制御装置8は、上記学習機能起動判定
装置4が知識群学習装置9に対して学習を起動させた場
合に推論結果を外部に出力しないようにするためのもの
で、そのための情報を合成後推論結果出力装置7に送
る。
The output control device 8 prevents the inference result from being output to the outside when the learning function activation determination device 4 activates the learning to the knowledge group learning device 9. To the inference result output device 7 after synthesis.

【0024】知識群学習装置9は上記入力値入力装置1
から入力される入力値と、正当値入力装置3から入力さ
れる正当値とに基づいて新しい知識群を作成する。
The knowledge group learning device 9 includes the input value input device 1
A new knowledge group is created based on the input value input from the valid value input device 3 and the valid value input from the valid value input device 3.

【0025】知識群追加装置10は、上記知識群学習装
置9で得られる新しい知識群を知識群推論部2に追加す
る。
The knowledge group adding device 10 adds a new knowledge group obtained by the knowledge group learning device 9 to the knowledge group inference unit 2.

【0026】上記知識群学習装置9、知識群追加装置1
0で知識群を更新する手段(知識群推論部更新手段)
構成している。
The above-mentioned knowledge group learning device 9 and knowledge group addition device 1
A means for updating the knowledge group with 0 (knowledge group inference unit updating means) is configured.

【0027】次に、学習機能起動判定装置について詳細
に説明する。
Next, the learning function activation determination device will be described in detail.

【0028】図2は各知識群の推論結果と正当値とから
学習の必要性を評価する動作を示す。
FIG. 2 shows the operation of evaluating the necessity of learning from the inference result of each knowledge group and the valid value.

【0029】先ず、差分値と微分値との計算を行う。差
分値は推論結果と正当値との差分である。
First, the difference value and the differential value are calculated. The difference value is a difference between the inference result and the valid value.

【0030】ei=|PVi−RV| ei:i番目の知識群の推論結果と正当値の差分 PVi:i番目の知識群の推論結果 RV:正当値 また、微分値は、一回前の推論時の差分値と今回の差分
値の差である。微分値の計算は、上記差分値の計算で得
られた差分値と一回前の推論時に計算した差分値との差
を計算することで行う。
Ei = | PVi-RV | ei: Difference between inference result of i-th knowledge group and valid value PVi: Inference result of i-th knowledge group RV: valid value This is the difference between the difference value at the time and the difference value this time. The calculation of the differential value is performed by calculating the difference between the difference value obtained in the calculation of the difference value and the difference value calculated in the previous inference.

【0031】e´i=|ei−ei(old)| e´i: i番目の差分値の微分値 ei(old):i番目の一回前の推論値の差分値 上記の演算後、eiをei(old)に入力する。E'i = | ei-ei (old) | e'i: Differential value of i-th difference value ei (old): Difference value of i-th previous inference value After the above operation, ei Is input to ei (old).

【0032】続いて、しきい値との比較を行う。差分値
と微分値とが共にしきい値を越えている場合には、学習
機能起動判定テーブルに1をセットする。しきい値を越
えていない場合には、0をセットする。差分値と微分値
のしきい値は予めセットしておく(例えば、正当値の5
%)。図3は学習機能起動判定テーブルを示している。
m×nの二次元配列からなり、n個の知識群それぞれに
対して過去m回分の推論結果について記憶している。
記テーブルの初期値はどのような値であってもよい。m
回後には正しく動作するようになる。テーブルの数値は
推論一回毎に左シフトする。例えば、知識群1において
今回の推論についての差分値および微分値が共にしきい
値を越えていたために該当フラグには1がセットされて
いる。フラグに1がセットされてた場合には推論値と正
当値が掛け離れていることを表す。全知識群に対する上
記のテストを行った後フラグの集計を行う。図4は、過
去10回分の推論結果を評価する(監視する)場合の集
計表を示す。集計表の行方向に対して集計(加算)を行
い、右端に集計結果を書く。図4に示す例では、知識群
1の過去9回分の推論結果が正当値と一致していること
を示し、今回の推論値が正当値から掛け離れたことを示
している。また、知識群2〜nまでは全て推論値が正当
値から掛け離れていることを示している。
Subsequently, comparison with a threshold value is performed. If both the difference value and the derivative value exceed the threshold value, 1 is set in the learning function activation determination table. If the threshold is not exceeded, 0 is set. The threshold values of the difference value and the differential value are set in advance (for example, 5
%). FIG. 3 shows a learning function activation determination table.
It consists of an m × n two-dimensional array, and stores inference results for the past m times for each of n knowledge groups. Previous
The initial value of the table may be any value. m
After that time it will work properly. The values in the table are shifted left by one inference. For example, in the knowledge group 1, since the difference value and the differential value of the current inference both exceed the threshold value, 1 is set in the corresponding flag. If the flag is set to 1, it indicates that the inferred value is far from the legal value. After performing the above test for all knowledge groups, the flags are totaled. FIG. 4 shows a tabulation table when evaluating (monitoring) the inference results of the past 10 times. Aggregation (addition) is performed in the row direction of the aggregation table, and the aggregation result is written on the right end. The example illustrated in FIG. 4 indicates that the inference results of the past nine times of the knowledge group 1 match the legal values, and indicates that the current inference value is far from the legal values. Further, all of the knowledge groups 2 to n indicate that the inference value is far from the legal value.

【0033】続いて、フラグの集計をしきい値と比較す
る。図4は過去10回分の推論結果を評価する(監視す
る)場合の集計表の例を示している。各知識群の集計結
果に対してしきい値と比較する。全知識群のフラグの集
計がしきい値を越えていた場合には学習機能を起動させ
る。知識群の1つ以上がしきい値を越えていない場合に
は通常の処理を行う。この場合には、図1における重み
付け調整装置5がしきい値を越えていない知識群の出力
に対する重み付けを大きくする。図5に示す例でしきい
値を7とすると、全知識群のフラグの集計はしきい値を
越えている。これは、全知識群の推論結果が正当値と掛
け離れていることを示している。つまり、現在の知識群
ては正当値の推論が不可能であることを示している。こ
の場合学習を開始する。なお、学習するデータとして
は、過去10回の推論時に用いた入力値と正当値に加え
て、次に学習が終了するまでの入力値と正当値が使用さ
れる。
Subsequently, the tally of the flags is compared with a threshold value. FIG. 4 shows an example of an aggregation table in the case of evaluating (monitoring) the inference results of the past 10 times. The totaling result of each knowledge group is compared with a threshold. If the total of the flags of all the knowledge groups exceeds the threshold, the learning function is activated. If one or more of the knowledge groups does not exceed the threshold, normal processing is performed. In this case, the weight adjustment device 5 in FIG. 1 increases the weight for the output of the knowledge group that does not exceed the threshold. Assuming that the threshold value is 7 in the example shown in FIG. 5, the total of the flags of all the knowledge groups exceeds the threshold value. This indicates that the inference results of all the knowledge groups are far from the legal values. In other words, it indicates that it is impossible to infer a valid value for the current knowledge group. In this case, learning is started. Note that, as learning data, in addition to the input value and the valid value used in the past ten inferences, the input value and the valid value until the next learning is completed are used.

【0034】差分値と微分値とを推論値と正当値とが一
致しているかどうかの判断に用いているのは、偶然にそ
れぞれの値が一致した場合に誤った判断を避けるためで
ある。
The reason why the difference value and the differential value are used to determine whether the inferred value matches the legal value is to avoid erroneous determination when the respective values match by chance.

【0035】図6は学習開始後の学習機能起動判定装置
4の動作を示している。
FIG. 6 shows the operation of the learning function activation determination device 4 after the start of learning.

【0036】図2に示す動作とフラグの集計ステップま
では同一である。そのフラグの集計の結果、ある知識群
のフラグの集計値がしきい値以下かどうかの判定を行
い、以下であればその時点で学習を終了する。そうでな
い場合には学習を続行する。図7は10回分の推論結果
を評価する(監視する)場合の集計表の例を示してい
る。この例ではしきい値を3とすると知識群2のフラグ
の集計値はしきい値以下になる。これは知識群2の推論
結果が正当値とほぼ一致していることを示している。つ
まり、知識群2で正当値の推論が可能であることを示
す。この場合、学習を終了する。
The operation shown in FIG. 2 is the same as the operation up to the flag totaling step. As a result of the tallying of the flags, it is determined whether or not the tallying value of the flag of a certain knowledge group is equal to or smaller than a threshold value. If not, the learning continues. FIG. 7 shows an example of a tabulation table when evaluating (monitoring) the inference results for ten times. In this example, assuming that the threshold value is 3, the total value of the flags of the knowledge group 2 is equal to or smaller than the threshold value. This indicates that the inference result of the knowledge group 2 substantially matches the legal value. That is, it indicates that the knowledge group 2 can infer a valid value. In this case, the learning ends.

【0037】以上の動作により、学習機能起動判定装置
4は、各知識群の推論結果と正当値とを受け取って知識
群更新のための学習の必要性を評価するとともに、しき
い値を使用することによって学習開始のタイミングと学
習終了のタイミングを自動的に設定する。知識群推論部
更新手段を構成する知識群学習装置9と知識群追加装置
10は次のように動作する。
With the above operation, the learning function activation determining device 4 receives the inference result and the valid value of each knowledge group, evaluates the necessity of learning for updating the knowledge group, and uses the threshold value. This automatically sets the learning start timing and the learning end timing. Knowledge group inference unit The knowledge group learning device 9 and the knowledge group adding device 10 that constitute the updating means operate as follows.

【0038】すなわち、知識群学習装置9は、学習機能
起動判定装置4から学習開始の起動信号を受けたとき、
過去10回の推論時に用いた入力値と正当値、および次
に推論結果と正当値が一致するまでの、すなわち学習終
了信号が出るまでの正当値を用いて学習を行い、知識群
を生成する。知識群追加装置10は上記知識群学習装置
9で生成された知識を知識群推論部2の空き領域に追加
する。図8は知識群推論部2の構成を示している。知識
群推論部にはN個の知識群を推論する機能がある。通常
はN個全てに知識群が格納されておらず、n個が推論に
使用されている。
That is, when receiving the learning start signal from the learning function activation determining device 4, the knowledge group learning device 9
Learning is performed using the input value and the valid value used during the past ten inferences and the valid value until the inference result and the valid value match next, that is, until the learning end signal is generated, and a knowledge group is generated. . The knowledge group adding device 10 adds the knowledge generated by the knowledge group learning device 9 to a free area of the knowledge group inference unit 2. FIG. 8 shows the configuration of the knowledge group inference unit 2. The knowledge group inference unit has a function of inferring N knowledge groups. Normally, knowledge groups are not stored in all N, and n are used for inference.

【0039】知識群の格納されていない推論部を知識群
a,知識群bとする。知識群が格納されていなければフ
ラグ11に1を立てる。知識群が格納されていればフラ
グ11に0が立てられる。図8に示す例では、知識群
a,bにフラグ1が立てられているために、これらの知
識群a,bには知識が格納されていないことを表してい
る。この状態で、上記知識群追加装置10によって新た
な知識群が追加されると知識群aから順番にその新たな
知識群が埋められていき、フラグ11が0になる。図9
は知識群追加装置10の動作を示している。知識群学習
装置9で新たな知識群が生成されるとポインタを使用す
ることによってフラグ11の状態を上から順に見てい
く。知識群が格納されていないフラグを検出すると、そ
の知識群格納領域に対して新たに生成された知識群を格
納し、該当フラグを立てる。
The inference units in which no knowledge groups are stored are referred to as knowledge groups a and b. If the knowledge group is not stored, the flag 11 is set to 1. If the knowledge group is stored, 0 is set in the flag 11. In the example shown in FIG. 8, since the flag 1 is set for the knowledge groups a and b, it indicates that no knowledge is stored in these knowledge groups a and b. In this state, when a new knowledge group is added by the knowledge group adding device 10, the new knowledge group is buried in order from the knowledge group a, and the flag 11 becomes 0. FIG.
Indicates the operation of the knowledge group adding apparatus 10. When a new knowledge group is generated by the knowledge group learning device 9, the state of the flag 11 is checked in order from the top by using a pointer. When a flag in which no knowledge group is stored is detected, the newly generated knowledge group is stored in the knowledge group storage area, and the corresponding flag is set.

【0040】なお、以上の実施例では新たな知識群が生
成されると空き領域に対して順次追加するようにしてい
るが、集計表を監視することによって、集計値がしきい
値を長期間越えたままの知識群を判断することもできる
ために、このような知識群を推論部2から削除して空き
領域を増やすことも可能である。また、新たな知識群を
生成して追加するのに代えて、適当な知識群を呼び出し
て学習の結果その知識群を修正することも可能である。
以上の動作をまとめると次のようになる。入力値入力装
置1より推論を実行するためのデータが入力されると、
知識群推論部2は前記入力データを入力値として受け取
る。このとき知識群学習装置9も同時に前記入力データ
を入力値として受け取る。入力値を受け取った前記知識
群推論部2はファジイ推論を行って、知識群ごとに推論
結果を出力する。推論結果出力後、正当値入力装置3か
ら正当値が入力され、学習機能起動判定装置4で前記推
論結果と前記正当値とから、各知識群が正しい値を出力
しているかどうかを評価し、評価結果を記憶する。前記
学習機能起動判定装置4で評価された前記推論結果の評
価値に基づき、重み付け調整装置5により前記推論結果
の重み値を調整し、重み付け装置51〜53で各知識群
の前記推論結果に重み付けを行う。各知識群の重み付け
推論結果は推論結果合成装置6にて合成され、合成後推
論結果出力装置7に出力される。一方、学習機能起動判
定装置4は、各知識群の前記評価結果と、各知識群の過
去10回の評価値とを集計して学習の必要性を判定す
る。前記学習機能起動判定装置4が学習が必要であると
判定した時には前記知識群学習装置9を起動させて学習
を開始する。このとき、出力制御装置8は前記重み付け
推論結果を出力しないよう前記合成後推論結果出力装置
7にそのための情報を送る。学習を開始した前記知識群
学習装置9は、過去10回の推論時に用いた入力値と正
当値に加えて、前記知識群学習装置9が受け取った前記
入力値と、前記正当値入力装置3から入力された前記正
当値を使用して学習する。前記知識群学習装置9で学習
により生成された知識群は知識群追加装置10により知
識群推論部2に追加され、知識群推論部2が更新され
る。知識群推論部2の更新後に前記入力 値入力装置1か
ら次のデータが入力される。そして、前述の同じフロー
で処理がなされ、前記学習機能起動判定装置4で学習終
了と判定されるまでそれを繰り返し継続する。
In the above embodiment, when a new knowledge group is generated, the new knowledge group is sequentially added to the empty area. Since it is possible to judge the knowledge group that has exceeded, it is also possible to delete such a knowledge group from the inference unit 2 and increase the free area. Instead of generating and adding a new knowledge group, it is also possible to call an appropriate knowledge group and correct the knowledge group as a result of learning.
The above operation is summarized as follows. Input value input device
When data for executing inference is input from the device 1,
The knowledge group inference unit 2 receives the input data as an input value.
You. At this time, the knowledge group learning device 9 also
As input values. The knowledge that received the input value
The group inference unit 2 performs fuzzy inference and infers for each knowledge group.
Output the result. After outputting the inference result, is the valid value input device 3
The valid value is input from the
Each knowledge group outputs a correct value based on the theoretical result and the valid value
It evaluates whether or not the evaluation is performed, and stores the evaluation result. Said
Evaluation of the inference result evaluated by the learning function activation determination device 4
Based on the value, the inference result is obtained by the weight adjustment device 5.
Are adjusted by weighting devices 51-53.
Is weighted to the above inference result. Weighting of each knowledge group
The inference result is synthesized by the inference result synthesis device 6, and the synthesized inference is performed.
It is output to the logical result output device 7. On the other hand,
The determination device 4 determines the evaluation result of each knowledge group and the
Judge the necessity of learning by summing up the evaluation values of the last 10 times
You. When the learning function activation determination device 4 needs learning
When the determination is made, the knowledge group learning device 9 is activated to perform learning.
To start. At this time, the output control device 8
The synthesized inference result output device so as not to output the inference result
7 for that purpose. The knowledge group that started learning
The learning device 9 uses the input values used during the past ten inferences and the positive values.
In addition to this value, the knowledge group learning device 9 receives the
An input value and the correct value input from the correct value input device 3.
Learn using this value. Learning with the knowledge group learning device 9
Is generated by the knowledge group adding device 10.
Added to Knowledge Group Inference Unit 2 and updated Knowledge Group Inference Unit 2
You. After updating the knowledge group inference unit 2, the input value input device 1
Then, the following data is input. And the same flow as above
The learning function activation determination device 4 terminates the learning.
This is repeated until it is determined to be complete.

【0041】[0041]

【発明の効果】現状態の知識群推論手段の持つ知識群で
は対応できない状況を認識し、推論対象の状態の変化に
合わせた新しい学習の開始と終了を知識群更新手段に指
示することができる。
According to the present invention, it is possible to recognize a situation which cannot be handled by the knowledge group of the current state knowledge group inference means, and to instruct the knowledge group update means to start and end a new learning in accordance with a change in the state of the inference target. .

【0042】どの知識群でも対応できない状況下のデー
タを学習データとし収集することができ、必要且つ十分
な学習用データを知識群更新手段に与え、知識群更新手
段の有効利用ができる。
Data in a situation that cannot be handled by any knowledge group can be collected as learning data, and necessary and sufficient learning data can be provided to the knowledge group updating means, so that the knowledge group updating means can be used effectively.

【0043】学習した結果、新たに作成された知識群を
知識群推論手段に加え、知識群推論装置の対応できない
状況を減少させることができる。
As a result of learning, a newly created knowledge group is added to the knowledge group inference means, and the situation in which the knowledge group inference device cannot cope can be reduced.

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

【図1】本発明の実施例の構成図である。FIG. 1 is a configuration diagram of an embodiment of the present invention.

【図2】学習機能起動判定装置の学習開始判定動作を示
すフローチャートである。
FIG. 2 is a flowchart illustrating a learning start determination operation of the learning function activation determination device.

【図3】〜FIG. 3

【図5】学習機能起動判定テーブル(集計表)を示す。FIG. 5 shows a learning function activation determination table (total table).

【図6】学習機能起動判定装置の学習終了判定動作を行
うフローチャートである。
FIG. 6 is a flowchart illustrating a learning end determination operation performed by the learning function activation determination device.

【図7】集計表を示す図である。FIG. 7 is a diagram showing an aggregation table.

【図8】知識群推論部と各知識群に接続されるフラグを
示す図である。
FIG. 8 is a diagram showing a knowledge group inference unit and flags connected to each knowledge group.

【図9】知識群追加装置の動作を示すフローチャートで
ある。
FIG. 9 is a flowchart showing the operation of the knowledge group adding device.

【符号の説明】[Explanation of symbols]

1−入力値入力装置 2−知識群推論部 2a〜2c−知識群 3−正当値入力装置 4−学習機能起動判定装置 9−知識群学習装置 10−知識追加装置 1-input value input device 2-knowledge group inference unit 2a-2c-knowledge group 3-proper value input device 4-learning function activation determination device 9-knowledge group learning device 10-knowledge addition device

───────────────────────────────────────────────────── フロントページの続き (56)参考文献 特開 平3−67358(JP,A) (58)調査した分野(Int.Cl.7,DB名) G06F 9/44 G06N 3/00 - 7/06 G05B 13/02 ──────────────────────────────────────────────────続 き Continuation of the front page (56) References JP-A-3-67358 (JP, A) (58) Fields investigated (Int. Cl. 7 , DB name) G06F 9/44 G06N 3/00-7 / 06 G05B 13/02

Claims (2)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】入力値を受け取り、推論を行う知識群推論
手段と、 前記知識群推論手段の推論結果と正当値を受け取り、知
識群更新のための学習の必要性を評価し、学習の開始と
終了のタイミングを決定する学習機能起動判定手段と、 前記学習機能起動判定手段で学習が必要であると判定さ
れたときに入力値と正当値とから知識群を学習して前記
知識群推論手段内の知識群を更新する知識群推論部更新
手段と、を備えてなる、学習機能付き推論装置におい
て、 前記学習機能起動判定手段は、推論サイクル毎に前記知
識群推論手段の各知識群の推論結果と正当値とを比較し
た結果を各知識群の評価値としてそれぞれ記憶し、記憶
された過去m回(m>1)の推論サイクル分の評価値に
基づいて学習の必要性を推論サイクル毎に判定し、学習
の開始と終了のタイミングを決定することを特徴とする
学習機能付き推論装置。
1. A knowledge group inference means for receiving an input value and performing inference, receiving an inference result and a valid value of the knowledge group inference means, evaluating necessity of learning for updating a knowledge group, and starting learning. When
Learning function activation determining means for determining an end timing; and learning function activation determining means determining that learning is necessary.
Comprising and a knowledge group inference unit updating means for updating the knowledge groups within the knowledge group inference means to learn knowledge group from the input value and the legal value when, with learning function inference apparatus odor
In addition, the learning function activation determining means may be configured to provide the information for each inference cycle.
Compare the inference result of each knowledge group of the knowledge group inference means with its legal value.
The stored results are stored as the evaluation value of each knowledge group.
Evaluation values for the past m inference cycles (m> 1)
The necessity of learning is determined for each inference cycle based on
An inference apparatus with a learning function, which determines the start and end timings of the learning.
【請求項2】前記知識群推論部更新手段は、学習した知
識群を新しい知識群として作成する知識群学習手段と、
新しい知識群を前記知識群推論手段に追加する知識群追
加手段と、を備えることを特徴とする、請求項1記載の
学習機能付き推論装置。
2. The knowledge group inference unit updating means includes: knowledge group learning means for creating a learned knowledge group as a new knowledge group;
The inference device with a learning function according to claim 1, further comprising: a knowledge group adding unit that adds a new knowledge group to the knowledge group inference unit.
JP13499491A 1991-06-06 1991-06-06 Inference device with learning function Expired - Fee Related JP3151857B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP13499491A JP3151857B2 (en) 1991-06-06 1991-06-06 Inference device with learning function

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP13499491A JP3151857B2 (en) 1991-06-06 1991-06-06 Inference device with learning function

Publications (2)

Publication Number Publication Date
JPH04360238A JPH04360238A (en) 1992-12-14
JP3151857B2 true JP3151857B2 (en) 2001-04-03

Family

ID=15141457

Family Applications (1)

Application Number Title Priority Date Filing Date
JP13499491A Expired - Fee Related JP3151857B2 (en) 1991-06-06 1991-06-06 Inference device with learning function

Country Status (1)

Country Link
JP (1) JP3151857B2 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4028384B2 (en) * 2001-02-05 2007-12-26 本田技研工業株式会社 Agent learning apparatus, method, and program
KR20200036352A (en) * 2018-09-28 2020-04-07 삼성전자주식회사 Operating method and learning method of neural network and neural network thereof

Also Published As

Publication number Publication date
JPH04360238A (en) 1992-12-14

Similar Documents

Publication Publication Date Title
US6292738B1 (en) Method for adaptive detection of engine misfire
JP3151857B2 (en) Inference device with learning function
US6578057B1 (en) Method of and apparatus for deriving prime numbers, as well as record medium having program for executing prime number deriving method recorded thereon
KR920001363A (en) Approximate reasoning device
JPH08129480A (en) Ic for generating random number and pachinko play device
JP3025592B2 (en) Neurocomputer
JPH0371303A (en) Fuzzy controller
JP3181018B2 (en) Weather forecasting device
JPH10508124A (en) Rule decoding and rule evaluation device for high-resolution fuzzy inference processor
JP2007287185A (en) Matrix calculating device, and recording medium with matrix calculation processing program recorded thereon
JP3049738B2 (en) Approximate reasoning device and human interface device
JPH1078803A (en) Method for designing or adapting fuzzy controller or system of integrated fuzzy controller
Feinberg Constrained discounted semi-Markov decision processes
JP2966076B2 (en) Learning device self-learning method
JP3289517B2 (en) Associative memory and thinking simulator
JPH05108364A (en) Method and device for fuzzy inference operation
JPH0193807A (en) Monitoring device for plant operation
JPH08263420A (en) Input/output processor
JP2845650B2 (en) Logical expression evaluation arithmetic unit
JPH06301663A (en) Learning system for serial connection type recurrent neural network
JP2002116912A (en) Fuzzy inference arithmetic processing method
JPS6254377A (en) Selecting method for vector
JP4504423B2 (en) A coupling method for coupling a controller and a program modeling active chain diagnostics
JPH03288882A (en) Operation training simulator device
JPH07253906A (en) Pseudo fault generating circuit

Legal Events

Date Code Title Description
FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090126

Year of fee payment: 8

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090126

Year of fee payment: 8

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20100126

Year of fee payment: 9

LAPS Cancellation because of no payment of annual fees