JPH07334371A - Inference device - Google Patents

Inference device

Info

Publication number
JPH07334371A
JPH07334371A JP6128626A JP12862694A JPH07334371A JP H07334371 A JPH07334371 A JP H07334371A JP 6128626 A JP6128626 A JP 6128626A JP 12862694 A JP12862694 A JP 12862694A JP H07334371 A JPH07334371 A JP H07334371A
Authority
JP
Japan
Prior art keywords
rule
inference
evaluation value
storage unit
evaluation
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.)
Withdrawn
Application number
JP6128626A
Other languages
Japanese (ja)
Inventor
Akinori Nishikawa
彰紀 西川
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.)
Fujitsu Ltd
Original Assignee
Fujitsu 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 Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP6128626A priority Critical patent/JPH07334371A/en
Publication of JPH07334371A publication Critical patent/JPH07334371A/en
Withdrawn legal-status Critical Current

Links

Landscapes

  • Devices For Executing Special Programs (AREA)

Abstract

PURPOSE:To efficiently and easily execute debugging or the like by accumulating the evaluated values of respective inference rules. CONSTITUTION:Concerning the inference device equipped with an inference engine 6 for performing inference based on a knowledge base, this device is provided with a control item storage part 10 for storing the evaluated values and the information of action, evaluated value storage part 11 for storing rule identification numbers, accumulated evaluated values and number of times of ignition, ignition rule storage part 12, and evaluation control part 8 for storing the rule identification number in the ignition rule storage part each time any rule is ignited, adding the inputted evaluated value to the accumulated evaluated values in the evaluated value storage part when any evaluated value corresponding to the inference is inputted, and adding the ignition this time to the number of times of ignition. Further, the inference engine is provided with a rule evaluation part 7 for advancing inference processing based on the action information when the evaluated value of the ignited rule satisfies prescribed conditions while referring to the information in the evaluated value storage part and the control item storage part each time the rule is ignited.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明は、エキスパート・システ
ム等に利用可能な推論装置に関する。現在では、様々な
分野において人工知能技術が利用され、該人工知能技術
を利用した装置が製品化されている。しかし、エキスパ
ート・システムのような専門的な知識を持った推論装置
(推論システム)では、推論ルールが膨大になり、しか
も、推論ルールそのものの妥当性が曖昧である場合も少
なくない。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an inference device that can be used in expert systems and the like. At present, artificial intelligence technology is used in various fields, and a device using the artificial intelligence technology is commercialized. However, in a reasoning device (reasoning system) having specialized knowledge such as an expert system, there are many cases where the reasoning rules become enormous and the validity of the reasoning rules themselves is ambiguous.

【0002】従って、開発とデバッグに多くの時間と労
力を費やしているのが現状である。このような時代背景
にあって、専門知識を必要とせず、簡便にデバッグ、カ
スタマイズ、或いはシステムの学習を行う推論装置の開
発が要望されていた。
Therefore, a lot of time and labor is spent on development and debugging at present. Against this background of the times, there has been a demand for the development of an inference device that does not require specialized knowledge and can easily perform debugging, customization, or system learning.

【0003】[0003]

【従来の技術】従来、エキスパート・システム等に利用
される推論装置(推論システム)として、各種の推論装
置が開発されていた。このような推論装置では、一般
に、知識ベース(推論ルール等)を格納した知識ベース
格納部と、前記知識ベースに基づいて推論を行う推論エ
ンジンを備えている。
2. Description of the Related Art Conventionally, various inference devices have been developed as inference devices (inference systems) used in expert systems and the like. Such an inference apparatus generally includes a knowledge base storage unit that stores a knowledge base (inference rules, etc.) and an inference engine that makes an inference based on the knowledge base.

【0004】そして、前記推論装置では、知識ベースの
デバッグ(推論ルールの検証)、或いはカスタマイズ
(利用者の使い易いものにすること)を行うことが必要
である。そこで、従来は、知識ベースにおける推論ルー
ルの表現に、自然言語を使用して、推論ルールを分かり
易く(人間に対して分かり易く)していた。
In the inference apparatus, it is necessary to debug the knowledge base (verify inference rules) or customize (make it easy for the user to use). Therefore, conventionally, natural language is used to express the inference rules in the knowledge base to make the inference rules easy to understand (easy to understand for humans).

【0005】また、知識ベースのデバッグを行う場合、
推論ルールを1つ1つ実行しながら、推論過程での矛盾
の抽出を行ったり、或いは、モデル(特定の事象)を用
いて前記推論装置の妥当性(推論装置全体としての妥当
性)をテストすることで実施していた。
In addition, when debugging a knowledge base,
While executing each inference rule, the contradiction is extracted in the inference process, or the validity of the inference device (validity as the whole inference device) is tested by using a model (specific event). It was carried out by doing.

【0006】[0006]

【発明が解決しようとする課題】前記のような従来のも
のにおいては、次のような課題があった。 (1) :推論ルールを自然言語で表現すれば、推論ルール
を分かり易くすることはできるが、推論ルールそのもの
が妥当であるかどうかという検証を行う手段は提供しな
い。すなわち、推論ルールを自然言語で表現しても、こ
れだけでは推論ルール自体の妥当性の検証はできない。
SUMMARY OF THE INVENTION The above-mentioned conventional device has the following problems. (1): Expressing the inference rules in natural language can make them easier to understand, but does not provide a means for verifying whether the inference rules themselves are valid or not. That is, even if the inference rules are expressed in natural language, the validity of the inference rules themselves cannot be verified by this alone.

【0007】(2) :知識ベースのデバッグ、或いはカス
タマイズを行う場合、1つ1つの推論ルールを実行しな
がら、推論過程での矛盾の抽出を行うため、デバッグに
要する手間と時間が多くかかる。
(2): When debugging or customizing a knowledge base, since inconsistencies are extracted in the inference process while executing each inference rule, it takes a lot of time and effort to debug.

【0008】(3) :知識ベースのデバッグ、或いはカス
タマイズを行う場合、モデルを用いて前記推論装置の妥
当性をテストした場合、推論装置全体としての妥当性を
評価することは可能であるが、個々の推論ルールの妥当
性を評価することは困難である。
(3): When debugging or customizing the knowledge base, if the validity of the inference apparatus is tested using a model, it is possible to evaluate the validity of the inference apparatus as a whole. It is difficult to evaluate the validity of each inference rule.

【0009】本発明は、このような従来の課題を解決
し、個々の推論ルールに対する評価値を累積することに
より、推論装置のデバッグ、或いはカスタマイズを効率
的に、かつ容易に実行できるようにすることを目的とし
ている。
The present invention solves such a conventional problem and accumulates evaluation values for individual inference rules, thereby enabling debugging or customization of an inference device to be performed efficiently and easily. Is intended.

【0010】また、本発明は、エキスパートの経験則に
基づくルールや、直観や、感覚的なルールに対しても、
推論ルールの評価値、及び累積発火回数を自動的に累積
できるようにして、推論結果に対する簡便な評価手段を
提供することを目的としている。
The present invention also applies to rules based on the rules of thumb of experts, intuition, and sensuous rules.
It is an object of the present invention to provide a simple evaluation means for an inference result by automatically accumulating the evaluation value of the inference rule and the cumulative number of firings.

【0011】[0011]

【課題を解決するための手段】図1は本発明の原理説明
図であり、図1中、2は知識ベース格納部、5は入力装
置、6は推論エンジン、7はルール評価部、8は評価制
御部、10は制御項目記憶部、11は評価値記憶部、1
2は発火ルール記憶部を示す。
FIG. 1 is a diagram for explaining the principle of the present invention. In FIG. 1, 2 is a knowledge base storage unit, 5 is an input device, 6 is an inference engine, 7 is a rule evaluation unit, and 8 is Evaluation control unit, 10 is a control item storage unit, 11 is an evaluation value storage unit, 1
Reference numeral 2 denotes a firing rule storage unit.

【0012】本発明は前記の目的を達成するため、知識
ベースを格納した知識ベース格納部2と、知識ベースを
基に推論処理を行う推論エンジン6と、データの入力を
行う入力装置5を備えた推論装置において、特定の評価
値、比較演算子、及びアクションの各情報(評価値情
報、及びアクション情報)を予め格納した制御項目記憶
部10と、ルール識別番号、累積評価値、及び発火回数
(累積発火回数)を格納する評価値記憶部11と、発火
したルールの識別番号(ロギングデータ)を格納する発
火ルール記憶部12と、推論過程でルールが発火する毎
に、そのルールのルール識別番号を発火ルール記憶部1
2へ格納すると共に、最終的に導き出された結論に対し
て入力装置5から評価値が入力された際、評価値記憶部
11に格納されている累積評価値に、前記入力された評
価値を加算し、発火回数には今回の発火を加算(+1)
する評価制御部8を設けた。
In order to achieve the above-mentioned object, the present invention comprises a knowledge base storage unit 2 in which a knowledge base is stored, an inference engine 6 for performing an inference process based on the knowledge base, and an input device 5 for inputting data. In the inference device, a control item storage unit 10 in which information (evaluation value information and action information) of a specific evaluation value, a comparison operator, and an action is stored in advance, a rule identification number, a cumulative evaluation value, and the number of firings. (Evaluation value storage unit 11 that stores (cumulative number of firings), firing rule storage unit 12 that stores the identification number (logging data) of the fired rule, and rule identification of the rule each time the rule fires in the inference process) Number firing rule storage 1
When the evaluation value is input from the input device 5 with respect to the finally derived conclusion while being stored in 2, the input evaluation value is added to the cumulative evaluation value stored in the evaluation value storage unit 11. Add and add this firing to the number of firings (+1)
The evaluation control unit 8 is provided.

【0013】また、前記推論エンジン6には、推論の過
程でルールが発火する毎に、評価値記憶部11、及び制
御項目記憶部10の情報を参照することにより、発火し
たルールの累積評価値が、比較演算子の条件を満たした
場合、アクション情報を基に推論処理を進める処理を行
うルール評価部7を設けた。
Further, the inference engine 6 refers to the information in the evaluation value storage unit 11 and the control item storage unit 10 every time a rule is fired in the process of inference, and thereby the cumulative evaluation value of the fired rule is calculated. However, when the condition of the comparison operator is satisfied, the rule evaluation unit 7 that performs the process of proceeding the inference process based on the action information is provided.

【0014】[0014]

【作用】前記構成に基づく本発明の作用を、図1に基づ
いて説明する。先ず、推論エンジン6は、知識ベース格
納部2に格納されている知識ベース(推論ルール)を基
に推論を行う。この推論の過程でルールが発火すると、
推論エンジン6から評価制御部8に対し、発火した推論
ルールの識別番号を送り、該評価制御部8が発火ルール
記憶部12に、前記識別番号をロギングデータとして格
納する。
The operation of the present invention based on the above construction will be described with reference to FIG. First, the inference engine 6 makes an inference based on the knowledge base (inference rule) stored in the knowledge base storage unit 2. If the rule fires during this inference process,
The inference engine 6 sends the identification number of the fired inference rule to the evaluation control unit 8, and the evaluation control unit 8 stores the identification number in the firing rule storage unit 12 as logging data.

【0015】このようにして推論を行い、最終的に推論
結果が導き出された時に、利用者等が妥当なものである
か否かを評価して評価値を算出する。そして、利用者等
は、前記評価値を入力装置5から入力する。
Inference is performed in this way, and when the inference result is finally derived, it is evaluated whether the user or the like is appropriate and an evaluation value is calculated. Then, the user or the like inputs the evaluation value from the input device 5.

【0016】入力された評価値は、評価制御部8が受け
取った後、その評価値を、発火ルール記憶部12に記憶
されているルール識別番号に従って、評価値記憶部11
内の累積評価値に加算し、かつ、発火回数に1を加え
る。すなわち、推論で発火したルール全てに対して、累
積評価値と発火回数を更新する。
After the evaluation control unit 8 receives the input evaluation value, the evaluation value is stored in the evaluation value storage unit 11 according to the rule identification number stored in the firing rule storage unit 12.
Is added to the cumulative evaluation value in, and 1 is added to the number of firings. That is, the cumulative evaluation value and the number of firings are updated for all rules fired by inference.

【0017】このようにして累積した評価値記憶部11
の累積評価値、及び発火回数を基に、例えば、累積評価
値/発火回数の演算を行うことにより、そのルールの平
均的な妥当性を検証することができる。
The evaluation value storage unit 11 thus accumulated
By calculating the cumulative evaluation value / the number of firings based on the cumulative evaluation value and the number of firings, the average validity of the rule can be verified.

【0018】また、推論エンジン6が推論を行い、ルー
ルが発火すると、ルール評価部7では、評価値記憶部1
1に格納されている累積評価値と、発火回数のデータを
読み出し、累積評価値/発火回数の演算を行うことによ
り、現在発火中のルールについて、平均の評価値を求め
る。
When the inference engine 6 makes an inference and the rule fires, the rule evaluation unit 7 causes the evaluation value storage unit 1 to operate.
The cumulative evaluation value and the number of firings stored in 1 are read out, and the cumulative evaluation value / the number of firings is calculated to obtain an average evaluation value for the rule currently firing.

【0019】そして、制御項目記憶部10に記憶されて
いる評価値のどれかが現在発火中のルールの平均の評価
値(評価値/発火回数)に合致すれば、該当するアクシ
ョンから、例えば、そのルールを適用して推論を進める
かどうかを決定する。
Then, if any of the evaluation values stored in the control item storage unit 10 matches the average evaluation value (evaluation value / firing number) of the rule currently being fired, the corresponding action, for example, Decide whether to apply the rule and proceed with inference.

【0020】以上のように、推論結果が出力される度
に、評価値を与え、その評価値の累積を行うことによっ
て、それぞれのルールの妥当性を評価できる。また、発
火回数を用いてルールの重要度を検証することも可能で
ある。
As described above, the validity of each rule can be evaluated by giving an evaluation value each time the inference result is output and accumulating the evaluation values. It is also possible to verify the importance of the rule by using the number of firings.

【0021】更に、前記のようにして得られた評価値記
憶部の累積評価値、及び累積発火回数のデータは、推論
時に検証を行い、制御項目記憶部の情報を参照すること
により、そのルールを適用するかどうかを決定(アクシ
ョン情報により決定)することも可能となり、推論装置
の学習や、デバッグ、或いはカスタマイズを簡単、かつ
効率的に行うことが出来る。
Furthermore, the data of the cumulative evaluation value and the cumulative number of firings in the evaluation value storage unit obtained as described above is verified at the time of inference, and the information in the control item storage unit is referred to to determine the rule. It is also possible to determine whether or not to apply (determine based on action information), and learning, debugging, or customization of the inference device can be performed easily and efficiently.

【0022】[0022]

【実施例】以下、本発明の実施例を図面に基づいて説明
する。図2〜図5は、本発明の実施例を示した図であ
り、図2〜図5中、2は知識ベース格納部、3は推論制
御部、4は記憶装置、5は入力装置、6は推論エンジ
ン、7はルール評価部、8は評価制御部、9は作業領
域、10は制御項目記憶部、11は評価値記憶部、12
は発火ルール記憶部を示す。
Embodiments of the present invention will be described below with reference to the drawings. 2 to 5 are diagrams showing an embodiment of the present invention. In FIGS. 2 to 5, 2 is a knowledge base storage unit, 3 is an inference control unit, 4 is a storage device, 5 is an input device, 6 Is an inference engine, 7 is a rule evaluation unit, 8 is an evaluation control unit, 9 is a work area, 10 is a control item storage unit, 11 is an evaluation value storage unit, and 12 is an evaluation value storage unit.
Indicates a firing rule storage unit.

【0023】§1:推論装置の構成の説明・・・図2参
照 図2は実施例の装置構成図である。以下、図2に基づい
て推論装置の構成を説明する。本実施例の推論装置は、
エキスパートシステムのような専門的な知識を使用した
推論装置の例である。
§1: Description of the configuration of the inference device--see FIG. 2 FIG. 2 is a device configuration diagram of the embodiment. The configuration of the inference device will be described below with reference to FIG. The inference apparatus of this embodiment is
It is an example of an inference device that uses specialized knowledge such as an expert system.

【0024】図示のように、この推論装置には、知識ベ
ース(推論ルール)を格納した知識ベース格納部2と、
推論時に各種制御を行う推論制御部3と、推論過程での
各種情報を格納する記憶装置4と、評価情報等の各種情
報を入力するための入力装置5等が設けてある。
As shown in the figure, the inference apparatus includes a knowledge base storage unit 2 storing a knowledge base (inference rule),
An inference control unit 3 that performs various controls during inference, a storage device 4 that stores various information in the inference process, an input device 5 that inputs various information such as evaluation information, and the like are provided.

【0025】そして、前記推論制御部3には、知識ベー
ス格納部2に格納されている知識ベース(推論ルール)
を基に、各種推論処理を行う推論エンジン6と、推論結
果に対する評価情報の制御を行う評価制御部8が設けて
あり、前記推論エンジン6には、推論ルールの評価等を
行うルール評価部7が設けてある。
The inference control section 3 has a knowledge base (inference rule) stored in the knowledge base storage section 2.
An inference engine 6 that performs various inference processes based on the above, and an evaluation control unit 8 that controls evaluation information for inference results are provided. The inference engine 6 includes a rule evaluation unit 7 that evaluates inference rules. Is provided.

【0026】また、記憶装置4には、推論エンジン6が
推論の過程で、作業用として使用する作業領域9と、制
御項目を格納するための制御項目記憶部10と、推論結
果の評価情報を格納するための評価値記憶部11と、発
火した推論ルールのロギング情報を格納するための発火
ルール記憶部12が設けてある。
In the storage device 4, a work area 9 used as a work by the inference engine 6 in the process of inference, a control item storage section 10 for storing control items, and inference result evaluation information. An evaluation value storage unit 11 for storing and a firing rule storage unit 12 for storing logging information of a fired inference rule are provided.

【0027】前記記憶装置4は、例えば、磁気ディスク
装置を使用したり、或いは磁気ディスク装置と、半導体
メモリとを併用した記憶装置を使用する。特に、制御項
目記憶部10、評価値記憶部11、発火ルール記憶部1
2のデータは、装置の電源が遮断されても消失しないよ
うに、磁気ディスク装置等の記憶装置(不揮発性の記憶
媒体)へ格納しておく。
As the storage device 4, for example, a magnetic disk device is used, or a storage device in which a magnetic disk device and a semiconductor memory are used in combination is used. In particular, the control item storage unit 10, the evaluation value storage unit 11, the firing rule storage unit 1
The data No. 2 is stored in a storage device (nonvolatile storage medium) such as a magnetic disk device so as not to be lost even when the power supply of the device is cut off.

【0028】§2:記憶装置内の各部フォーマット説明
・・・図3参照 図3は記憶装置内の各部フォーマット説明図であり、A
図は制御項目記憶部フォーマット、B図は評価値記憶部
フォーマット、C図は発火ルール記憶部フォーマットで
ある。以下、図3に基づいて、図2に示した記憶装置内
の各部のフォーマットを説明する。
§2: Explanation of format of each part in storage device ... See FIG. 3 FIG. 3 is an explanatory view of format of each part in storage device.
The figure shows the control item storage section format, the B figure shows the evaluation value storage section format, and the C figure shows the firing rule storage section format. The format of each unit in the storage device shown in FIG. 2 will be described below with reference to FIG.

【0029】(1) :制御項目記憶部のフォーマット説明
・・・A図参照 前記制御項目記憶部10には、「評価値(実数)」の項
目と、「比較演算子(等/不等号)」の項目と、「アク
ション」の項目からなる3つの項目を1組とした制御項
目情報を格納しておく。
(1): Explanation of format of control item storage section ... See FIG. A In the control item storage section 10, an item of "evaluation value (real number)" and "comparison operator (equal / inequality sign)" And the control item information in which three items including the item of "action" and the item of "action" are set as a set.

【0030】この場合、前記評価値(実数)、比較演算
子、及びアクションの各データは、装置の通常運用を行
う前に、予め格納しておくデータであり、その後、ルー
ル評価部7により読み出して使用される。
In this case, the evaluation value (real number), the comparison operator, and the action data are data stored in advance before the normal operation of the apparatus, and then read by the rule evaluation unit 7. Used.

【0031】この場合、比較演算子は評価値(実数)に
対する条件等を等号、或いは不等号等により表現したデ
ータであり、アクションは比較演算子で表現された条件
を満たした場合のアクション(例えば、ルールに対し、
使用不可、注意、警告等のアクション情報)を格納して
おくものである。
In this case, the comparison operator is data in which the condition or the like for the evaluation value (real number) is expressed by an equal sign or an inequality sign, and the action is an action when the condition expressed by the comparison operator is satisfied (for example, , For the rule,
Action information such as unusable, caution, and warning) is stored.

【0032】具体例としては、例えば、評価値の項目が
「0.1」、比較演算子の項目が「≧」、アクションの
項目が「使用不可」のように記述される。この例では、
比較対象の評価値xに対し、0.1≧xの条件を満たし
た場合、その評価値xのルールは使用不可とする。
As a concrete example, for example, the evaluation value item is "0.1", the comparison operator item is "≥", and the action item is "unusable". In this example,
When the condition of 0.1 ≧ x is satisfied for the evaluation value x to be compared, the rule of the evaluation value x is disabled.

【0033】また、評価値の項目が「0.5」、比較演
算子の項目が「≧」で、アクションの項目が「警告」の
ように記述される。この例では、比較対象の評価値xに
対し、0.5≧xの条件を満たした場合、その評価値x
のルールは警告(適切でない)とする。
Further, the evaluation value item is described as “0.5”, the comparison operator item is described as “≧”, and the action item is described as “warning”. In this example, when the condition of 0.5 ≧ x is satisfied for the evaluation value x to be compared, the evaluation value x
Rule is a warning (not appropriate).

【0034】なお、前記評価値の項目、及び比較演算子
の項目を一緒にして、これらの項目には、例えば、
「0.1<x≦0.5」(x:評価値)と記述し、アク
ションの項目を「警告」のように記述することも可能で
ある。この例では、評価値xに対し、0.5≧x>0.
1の条件を満たした場合、そのルールは警告(適切でな
い)とする。
The evaluation value item and the comparison operator item are put together, and these items are, for example,
It is also possible to describe “0.1 <x ≦ 0.5” (x: evaluation value) and describe the action item like “warning”. In this example, for the evaluation value x, 0.5 ≧ x> 0.
When the condition of 1 is satisfied, the rule is a warning (not appropriate).

【0035】(2) :評価値記憶部のフォーマット説明・
・・B図参照 前記評価値記憶部11には、「ルール識別番号」の項目
と、「累積評価値」の項目と、「発火回数」の項目があ
る。前記「ルール識別番号」の項目には、全ルールの識
別番号を格納するものであり、「累積評価値」の項目に
は、累積評価値を格納し、「発火回数」の項目には、累
積発火回数を格納する。
(2): Explanation of format of evaluation value storage unit
.. see FIG. B The evaluation value storage unit 11 has an item of "rule identification number", an item of "cumulative evaluation value", and an item of "number of firings". The item "rule identification number" stores the identification numbers of all rules, the item "cumulative evaluation value" stores the cumulative evaluation value, and the item "number of firings" stores the cumulative evaluation value. Stores the number of firings.

【0036】前記評価値記憶部11の各データは、最初
はクリア(0にクリア)されており、その後、ルールの
発火により推論結果が得られ、この推論結果に対して、
外部から評価値が入力された場合に、評価制御部8が前
記累積評価値と発火回数のデータを更新するものであ
る。
Each data in the evaluation value storage unit 11 is initially cleared (cleared to 0), and then an inference result is obtained by firing the rule.
When the evaluation value is input from the outside, the evaluation control unit 8 updates the data of the cumulative evaluation value and the number of firings.

【0037】(3) :発火ルール記憶部のフォーマット説
明・・・C図参照 発火ルール記憶部12には、推論の過程でルールが発火
した場合に、発火したルールの識別番号を、ロギングデ
ータとして順次格納するものである。
(3): Explanation of format of firing rule storage unit ... See FIG. C In the firing rule storage unit 12, when a rule is fired in the process of inference, the identification number of the fired rule is used as logging data. It is to be stored sequentially.

【0038】例えば、1度目にルールAが発火したら、
ルールAの識別番号として、例えば01を格納する。続
いて、2番目にルールCが発火したら、ルールCの識別
番号として、例えば03を格納する。このように、ルー
ルが発火する毎に、その識別番号をロギングデータとし
て順次格納するものである。
For example, if rule A fires for the first time,
For example, 01 is stored as the identification number of the rule A. Then, when the second rule C is fired, for example, 03 is stored as the identification number of the rule C. Thus, each time the rule is fired, its identification number is sequentially stored as logging data.

【0039】§3:推論装置の動作説明・・・図2参照 以下、図2に示した推論装置の動作を説明する。先ず、
推論エンジン6は、知識ベース格納部2に格納されてい
る推論ルールを順次読み出し、推論を行う。この推論の
過程で推論ルールが発火すると、推論エンジン6から評
価制御部8へ発火した推論ルールの識別番号を送り、評
価制御部8が発火ルール記憶部12に、前記ルール識別
番号をロギングデータとして格納する。
§3: Operation of the inference apparatus ... See FIG. 2 The operation of the inference apparatus shown in FIG. 2 will be described below. First,
The inference engine 6 sequentially reads out the inference rules stored in the knowledge base storage unit 2 and makes an inference. When the inference rule is fired in the process of this inference, the inference engine 6 sends the identification number of the fired inference rule to the evaluation control unit 8, and the evaluation control unit 8 sends the identification number of the rule to the firing rule storage unit 12 as logging data. Store.

【0040】このようにして順次推論を行い、最終的に
推論結果が導き出された時に、例えば、利用者が妥当な
ものであるか否かを評価して評価値を算出する。そし
て、前記利用者は、前記評価値を入力装置5から入力す
る。
In this way, the inference is sequentially performed, and when the inference result is finally derived, for example, it is evaluated whether or not the user is appropriate, and the evaluation value is calculated. Then, the user inputs the evaluation value from the input device 5.

【0041】入力された評価値は、評価制御部8が受け
取った後、その評価値を、発火ルール記憶部12に記憶
されているルール識別番号に従って、評価値記憶部11
内の累積評価値に加算し、更に、発火回数に1を加え
る。すなわち、推論で発火したルール全てに対して、評
価値記憶部11内の累積評価値と発火回数(累積発火回
数)を更新する。
After the evaluation value inputted is received by the evaluation control unit 8, the evaluation value is stored in the evaluation value storage unit 11 according to the rule identification number stored in the firing rule storage unit 12.
It is added to the cumulative evaluation value in, and 1 is added to the number of firings. That is, the cumulative evaluation value and the number of firings (cumulative firing number) in the evaluation value storage unit 11 are updated for all rules fired by inference.

【0042】このようにして累積した評価値記憶部11
の累積評価値、及び発火回数を基に、例えば、累積評価
値/発火回数の演算を行うことにより、そのルールの平
均的な妥当性を検証することができる。
Evaluation value storage unit 11 accumulated in this way
By calculating the cumulative evaluation value / the number of firings based on the cumulative evaluation value and the number of firings, the average validity of the rule can be verified.

【0043】また、推論エンジン6が推論を行い、ルー
ルが発火すると、ルール評価部7では、評価値記憶部1
1に格納されている累積評価値と、発火回数(累積発火
回数)のデータを読み出し、累積評価値/発火回数(累
積発火回数)の演算を行うことにより、現在発火中のル
ールについて、平均の評価値を求める。
When the inference engine 6 makes an inference and a rule is fired, the rule evaluation unit 7 causes the evaluation value storage unit 1 to operate.
By reading the cumulative evaluation value and the number of firings (cumulative firings) stored in 1 and calculating the cumulative evaluation value / the number of firings (cumulative firings), the average of the rules currently firing is calculated. Obtain an evaluation value.

【0044】そして、制御項目記憶部10に記憶されて
いる評価値のどれかが現在発火中のルールの平均の評価
値(評価値/発火回数)に合致すれば、該当するアクシ
ョンから、そのルールを適用して推論を進めるかどうか
を決定する。このような処理により推論装置の学習を自
動的に行うことができる。
If any of the evaluation values stored in the control item storage unit 10 matches the average evaluation value (evaluation value / number of firings) of the rules currently being fired, the rule is selected from the corresponding action. To determine whether to proceed with inference. With such processing, the inference device can be automatically learned.

【0045】以上のように、推論結果が出力される度
に、評価値を与え、その評価値の累積を行うことによっ
て、それぞれのルールの妥当性を評価できる。また、発
火回数を用いてルールの重要度を検証することも可能で
ある。
As described above, the validity of each rule can be evaluated by giving an evaluation value each time the inference result is output and accumulating the evaluation values. It is also possible to verify the importance of the rule by using the number of firings.

【0046】このようにして得られたデータは、デバッ
グすべきルールの抽出や、推論時に評価値を検証するこ
とによって、そのルールを適用するかどうかを決定する
ことも可能となり、効率的なデバッグや、推論装置のカ
スタマイズ(利用者の要望に合わせること)、或いは学
習を行うことができる。
With the data thus obtained, it becomes possible to decide whether or not to apply the rule by extracting the rule to be debugged and verifying the evaluation value at the time of inference. It is also possible to customize the inference apparatus (to meet the user's request) or to learn.

【0047】§4:具体例による実施例の処理説明・・
・図4参照 図4は実施例の処理説明図1、図5は実施例の処理説明
図2である。以下、図4、図5に基づいて、具体例によ
る実施例の処理を説明する。
§4: Processing explanation of the embodiment by a concrete example ...
-Refer to FIG. 4. FIG. 4 is a process explanatory diagram 1 of the embodiment, and FIG. 5 is a process explanatory diagram 2 of the embodiment. The processing of the embodiment according to the concrete example will be described below with reference to FIGS. 4 and 5.

【0048】図2に示した知識ベース格納部2には、知
識ベースとして、多数の推論ルールが格納されており、
これらの推論ルールには、それぞれ識別番号が付けてあ
る。例えば、図4に示したように、推論ルールがA〜G
の7個あり、ルールAは識別番号が01、ルールBは識
別番号が02、ルールCは識別番号が03、ルールDは
識別番号が04、ルールEは識別番号が05、ルールF
は識別番号が06、ルールGは識別番号が07となって
いたとする。
A large number of inference rules are stored as a knowledge base in the knowledge base storage unit 2 shown in FIG.
An identification number is attached to each of these inference rules. For example, as shown in FIG. 4, the inference rules are AG
The rule A has an identification number of 01, the rule B has an identification number of 02, the rule C has an identification number of 03, the rule D has an identification number of 04, the rule E has an identification number of 05, and a rule F.
The identification number is 06, and the identification number of rule G is 07.

【0049】評価値記憶部11には、全てのルール識別
番号と、それに対応した累積評価値、及び発火回数(累
積発火回数)の各データが格納されており、図5では、
評価前と評価後のデータを示している。
The evaluation value storage unit 11 stores all the rule identification numbers, the cumulative evaluation values corresponding to them, and the respective data of the number of firings (cumulative firing number). In FIG.
Data before and after evaluation are shown.

【0050】評価前のデータとしては、この例の場合、
識別番号01のルールの累積評価値は1.0、発火回数
は1、識別番号02のルールの累積評価値は2.4、発
火回数は2、識別番号03のルールの累積評価値は0.
5、発火回数は1、識別番号04のルールの累積評価値
は0.7、発火回数は1、識別番号05のルールの累積
評価値は3.2、発火回数は4、識別番号06のルール
の累積評価値は1.1、発火回数は2、識別番号07の
ルールの累積評価値は0.3、発火回数は1となってい
る。
As data before evaluation, in the case of this example,
The cumulative evaluation value of the rule with identification number 01 is 1.0, the number of firings is 1, the cumulative evaluation value of the rule with identification number 02 is 2.4, the number of firings is 2, and the cumulative evaluation value of the rule with identification number 03 is 0.
5, the number of firings is 1, the cumulative evaluation value of the rule of identification number 04 is 0.7, the number of firings is 1, the cumulative evaluation value of the rule of identification number 05 is 3.2, the number of firings is 4, the rule of identification number 06 Has a cumulative evaluation value of 1.1, the number of firings is 2, the rule of identification number 07 has a cumulative evaluation value of 0.3, and the number of firings is 1.

【0051】このような状態で、推論エンジン6では、
前記知識ベースから推論ルールを取り出して推論を行う
が、この場合、例えば、ルールA、ルールC、ルールF
が発火し、或る結論が得られたとする。この場合、推論
エンジン6から、前記発火した推論ルールA、C、Fの
識別番号を評価制御部8へ送り、評価制御部8が発火ル
ール記憶部12に格納する。
In this state, the inference engine 6
Inference is performed by extracting inference rules from the knowledge base. In this case, for example, rule A, rule C, rule F
Is ignited and a certain conclusion is obtained. In this case, the inference engine 6 sends the identification numbers of the fired inference rules A, C, and F to the evaluation control unit 8, and the evaluation control unit 8 stores them in the firing rule storage unit 12.

【0052】すなわち、この時、発火ルール記憶部12
には、発火したルールA、C、Fの識別番号である0
1、03、06がロギングデータとして格納される。こ
こで、ルールA、C、Fの発火により或る結論が得られ
たので、この結論に対して、利用者等が評価を行う。こ
の評価により、例えば、評価値が0.7であったとする
と、前記利用者等は、入力装置5から0.7を評価値と
して入力する。
That is, at this time, the firing rule storage unit 12
Is 0, which is the identification number of rules A, C, and F that have fired.
1, 03, 06 are stored as logging data. Here, since a certain conclusion is obtained by the firing of the rules A, C, and F, the user or the like evaluates this conclusion. If, for example, the evaluation value is 0.7 according to this evaluation, the user or the like inputs 0.7 as the evaluation value from the input device 5.

【0053】入力された前記評価値は、評価制御部8が
受け取り、この評価値0.7を基に、評価値記憶部11
に格納されている評価値を更新する。この評価値の更新
は次のようにして行う。この場合、発火したルールA、
C、Fがデータ更新対象のルールであるから、これらの
ルールに対応した識別番号01、03、06のデータを
更新することになる。
The input evaluation value is received by the evaluation control unit 8, and based on this evaluation value 0.7, the evaluation value storage unit 11
Update the evaluation value stored in. This evaluation value is updated as follows. In this case, rule A that fired,
Since C and F are rules for data update, the data of the identification numbers 01, 03, 06 corresponding to these rules will be updated.

【0054】そこで、評価制御部8では、外部から入力
された評価値0.7を基に、評価値記憶部11のデータ
を図示のように(評価後のデータ参照)更新する。この
場合、識別番号01のルールでは、評価前の累積評価値
1.0に、新たな評価値0.7を加えた値1.7(1.
0+0.7=1.7)を更新後の累積評価値とし、評価
前の発火回数1に、新たに発火した回数1を加えた値2
(1+1=2)を更新後の発火回数とする。
Therefore, the evaluation control unit 8 updates the data in the evaluation value storage unit 11 based on the evaluation value 0.7 input from the outside, as shown in the drawing (see data after evaluation). In this case, according to the rule of the identification number 01, a value 1.7 (1.
0 + 0.7 = 1.7) as the cumulative evaluation value after the update, and the value 2 which is the number of firings 1 before the evaluation plus the number of firings 1 newly 2
Let (1 + 1 = 2) be the number of firings after updating.

【0055】識別番号03のルールでは、評価前の累積
評価値0.5に、新たな評価値0.7を加えた値1.2
(0.5+0.7=1.2)を更新後の累積評価値と
し、評価前の発火回数1に、新たに発火した回数1を加
えた値2(1+1=2)を更新後の発火回数とする。
In the rule of the identification number 03, the value 1.2 which is obtained by adding the new evaluation value 0.7 to the cumulative evaluation value 0.5 before the evaluation.
(0.5 + 0.7 = 1.2) is the cumulative evaluation value after the update, and the value 2 (1 + 1 = 2) obtained by adding 1 to the number of new firings before evaluation is the number of firings after the update. And

【0056】識別番号06のルールでは、評価前の累積
評価値1.1に、新たな評価値0.7を加えた値1.8
(1.1+0.7=1.8)を更新後の累積評価値と
し、評価前の発火回数2に、新たに発火した回数1を加
えた値3(2+1=3)を更新後の発火回数とする。
According to the rule of the identification number 06, a value 1.8 obtained by adding a new evaluation value 0.7 to the cumulative evaluation value 1.1 before the evaluation.
(1.1 + 0.7 = 1.8) is the cumulative evaluation value after updating, and the value 3 (2 + 1 = 3), which is the number of firings 2 before evaluation, is added to the number of firings 1 newly, is 3 (2 + 1 = 3). And

【0057】以降、前記の処理を繰り返して行い、ルー
ルが発火して或る結論が出されると、評価を行って、評
価値記憶部11のデータ更新を行う。このようにして得
られた評価値記憶部11のデータは、例えば、累積評価
値/発火回数の演算を行うことにより、ルールの平均的
な妥当性が検証できる。
After that, when the rule is fired and a certain conclusion is reached, the above-described processing is repeated, and then the evaluation is performed and the data in the evaluation value storage unit 11 is updated. For the data of the evaluation value storage unit 11 thus obtained, the average validity of the rules can be verified by, for example, calculating the cumulative evaluation value / the number of firings.

【0058】更に、前記ルールの平均的な妥当性を用い
て、デバッグすべきルールの検索をすることもできる
し、前記平均的な妥当性の閾値と、その閾値に合致する
ルールが発火した時に、推論エンジン6がとるべきアク
ションを制御項目記憶部10に設けて、妥当性の低いル
ールを発火しないような制御を加えて推論処理を行うこ
とも可能である。
Further, the average validity of the rules can be used to search for a rule to be debugged, and when the threshold of the average validity and a rule matching the threshold are fired. It is also possible to provide an action to be taken by the inference engine 6 in the control item storage unit 10 and to perform inference processing by adding control so that a rule with low validity is not fired.

【0059】[0059]

【発明の効果】以上説明したように、本発明によれば次
のような効果がある。 (1) :推論装置の運用時に、その利用者等がルール内部
を意識することなく、結論に対してのみ評価を与えるこ
とにより、1つ1つのルールに対しての評価を行うこと
ができる。従って、推論装置のデバッグ、或いはカスタ
マイズを容易に行うことができる。
As described above, the present invention has the following effects. (1): When operating the inference apparatus, the user or the like can evaluate each rule by giving an evaluation only to the conclusion without being aware of the inside of the rule. Therefore, it is possible to easily debug or customize the inference apparatus.

【0060】(2) :エキスパートの経験則に基づくルー
ルや、直観や、感覚的なルールに対しても、推論ルール
の評価値、及び発火回数を自動的に累積することができ
る。従って、推論結果に対する簡便な評価手段を提供す
ることができる。
(2): The evaluation value of the inference rule and the number of firings can be automatically accumulated even for a rule based on an empirical rule of an expert, an intuition, or a sensory rule. Therefore, a simple evaluation means for the inference result can be provided.

【0061】(3) :発火したルールのロギングデータ、
及び個々の推論ルールに対する評価値と、累積発火回数
を累積することにより、推論装置のデバッグ、或いはカ
スタマイズを効率的に、かつ容易に実行できる。また、
発火回数を用いてルールの重要度を検証することも可能
である。
(3): Logging data of the fired rule,
Also, by accumulating the evaluation value for each inference rule and the cumulative number of firings, debugging or customization of the inference device can be efficiently and easily executed. Also,
It is also possible to verify the importance of the rule using the number of firings.

【0062】(4) :推論ルールの評価値、及び発火回数
を累積しておくことにより、例えば、累積評価値/発火
回数の演算を行って、そのルールの平均的な妥当性を検
証することができる。また、累積した評価値を利用し、
特定の評価値のルールを抽出するなど、デバッグ時に利
用することも可能であり、効率的なデバッグや、推論装
置のカスタマイズを容易に行うことができる。
(4): By accumulating the evaluation value of the inference rule and the number of firings, for example, the cumulative evaluation value / the number of firings is calculated to verify the average validity of the rule. You can Also, using the accumulated evaluation value,
It can also be used during debugging, such as extracting a rule of a specific evaluation value, and efficient debugging and customization of the inference device can be easily performed.

【0063】(5) :推論を行ってルールが発火した際、
制御項目記憶部に記憶されている評価値のどれかが、現
在発火中のルールの平均の評価値(評価値/発火回数)
に合致した場合、該当するアクションの情報から、その
ルールを適用して推論を進めるかどうかを決定すること
ができる。このような処理により、推論装置の学習を自
動的に、かつ効率的に実施することができる。
(5): When inference is performed and the rule is fired,
Any of the evaluation values stored in the control item storage unit is the average evaluation value of the currently firing rules (evaluation value / number of firings)
If it matches with, it is possible to decide whether to apply the rule and proceed with the inference from the information of the corresponding action. With such processing, learning of the inference apparatus can be automatically and efficiently performed.

【0064】(6) :専門知識を必要とせず、簡便にデバ
ッグ、カスタマイズ、或いはシステムの学習を行う推論
装置が実現できる。
(6): It is possible to realize an inference device that does not require specialized knowledge and can easily perform debugging, customization, or system learning.

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

【図1】本発明の原理説明図である。FIG. 1 is a diagram illustrating the principle of the present invention.

【図2】実施例の装置構成図である。FIG. 2 is a device configuration diagram of an embodiment.

【図3】実施例における記憶装置内の各部フォーマット
説明図である。
FIG. 3 is an explanatory diagram of a format of each unit in the storage device according to the embodiment.

【図4】実施例の処理説明図1である。FIG. 4 is a process explanatory diagram 1 of the embodiment.

【図5】実施例の処理説明図2である。FIG. 5 is a process explanatory diagram 2 of the embodiment.

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

2 知識ベース格納部 5 入力装置 6 推論エンジン 7 ルール評価部 8 評価制御部 10 制御項目記憶部 11 評価値記憶部 12 発火ルール記憶部 2 Knowledge base storage unit 5 Input device 6 Inference engine 7 Rule evaluation unit 8 Evaluation control unit 10 Control item storage unit 11 Evaluation value storage unit 12 Firing rule storage unit

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】 知識ベースを格納した知識ベース格納部
(2)と、 前記知識ベースを基に推論処理を行う推論エンジン
(6)を備えた推論装置において、 或る結論を導くために発火されたルールのロギングデー
タを格納する発火ルール記憶部(12)と、 各ルール毎に、そのルールの妥当性を表す累積評価値、
及び累積発火回数を格納する評価値記憶部(11)と、 前記推論エンジンによる推論処理で、ルールが発火する
毎にそのルールのロギングデータを発火ルール記憶部へ
格納すると共に、 最終的に導き出された結論に対して外部から評価値が入
力された際、評価値記憶部に格納されているデータに対
し、累積評価値には前記入力された評価値を加算し、累
積発火回数には今回の発火を加算(+1)する評価制御
部(8)を設けたことを特徴とする推論装置。
1. An inference device comprising a knowledge base storage unit (2) storing a knowledge base and an inference engine (6) for performing an inference process based on the knowledge base, which is fired to draw a certain conclusion. A firing rule storage unit (12) for storing the logging data of the rule, and a cumulative evaluation value indicating the validity of the rule for each rule,
And an evaluation value storage unit (11) for storing the cumulative number of firings, and by the inference processing by the inference engine, each time the rule fires, the logging data of the rule is stored in the firing rule storage unit and finally derived. When an evaluation value is input from the outside in response to the conclusion, the input evaluation value is added to the cumulative evaluation value for the data stored in the evaluation value storage unit, and the cumulative number of firings is calculated as follows. An inference apparatus comprising an evaluation control unit (8) for adding (+1) firing.
【請求項2】 請求項1記載の推論装置において、 特定の評価値情報、及びその評価値情報の条件を満たし
たルールが発火した時に推論エンジンが行うべきアクシ
ョンに関する情報を格納した制御項目記憶部(10)を
設けると共に、 前記推論エンジン(6)には、推論の過程でルールが発
火する毎に、前記評価値記憶部、及び制御項目記憶部の
情報を参照して、発火したルールの評価値が、前記評価
値情報の条件を満たした場合、前記アクション情報を基
に推論処理を進める処理を行うルール評価部(7)を設
けたことを特徴とする推論装置。
2. The inference apparatus according to claim 1, wherein the control item storage unit stores specific evaluation value information and information about an action to be performed by the inference engine when a rule satisfying the condition of the evaluation value information is fired. (10) is provided, and the inference engine (6) evaluates the fired rule by referring to the information in the evaluation value storage unit and the control item storage unit every time the rule fires in the process of inference. An inference apparatus, comprising: a rule evaluation unit (7) for performing inference processing based on the action information when a value satisfies the condition of the evaluation value information.
JP6128626A 1994-06-10 1994-06-10 Inference device Withdrawn JPH07334371A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP6128626A JPH07334371A (en) 1994-06-10 1994-06-10 Inference device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP6128626A JPH07334371A (en) 1994-06-10 1994-06-10 Inference device

Publications (1)

Publication Number Publication Date
JPH07334371A true JPH07334371A (en) 1995-12-22

Family

ID=14989459

Family Applications (1)

Application Number Title Priority Date Filing Date
JP6128626A Withdrawn JPH07334371A (en) 1994-06-10 1994-06-10 Inference device

Country Status (1)

Country Link
JP (1) JPH07334371A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2014059891A (en) * 2007-04-10 2014-04-03 Ab Initio Technology Llc Method, computer program, and system for editing and compiling business rules
US9547638B2 (en) 2008-06-30 2017-01-17 Ab Initio Technology Llc Data logging for rule specifications
US9984059B2 (en) 2013-09-27 2018-05-29 Ab Initio Technology Llc Evaluating rules applied to data

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2014059891A (en) * 2007-04-10 2014-04-03 Ab Initio Technology Llc Method, computer program, and system for editing and compiling business rules
US9589232B2 (en) 2007-04-10 2017-03-07 Ab Initio Technology Llc Editing and compiling business rules
US9547638B2 (en) 2008-06-30 2017-01-17 Ab Initio Technology Llc Data logging for rule specifications
US9984059B2 (en) 2013-09-27 2018-05-29 Ab Initio Technology Llc Evaluating rules applied to data
US10540436B2 (en) 2013-09-27 2020-01-21 Ab Initio Technology Llc Evaluating rules applied to data

Similar Documents

Publication Publication Date Title
Sacerdoti A structure for plans and behavior
Wilkins Practical planning: extending the classical AI planning paradigm
Arora et al. Uses of artificial intelligence in design optimization
Ruan et al. Restart policies with dependence among runs: A dynamic programming approach
KR102582779B1 (en) Knowledge completion method and apparatus through neuro symbolic-based relation embeding
JPH07334371A (en) Inference device
CN115906673B (en) Combat entity behavior model integrated modeling method and system
US8019716B2 (en) Reflective processing of TMK hierarchies
JPH0831037B2 (en) Inference method using knowledge base
JPH05341999A (en) Network judging circuit network for indicating stage in real time
JPH04313195A (en) Plant monitoring device
JPH0328929A (en) Method and device for inference and method and device for demonstrating theorem
Stuckey et al. Models for using stochastic constraint solvers in constraint logic programming
Angelova et al. Implementation of the reducing operators over generalized nets in GN IDE
Courtney et al. Exten: A system for computing default logic extensions
CN112183630A (en) Embedded vector generation method, device, equipment and medium based on embedded point hierarchy
Westhofen et al. On-the-fly Model Checking of Probabilistic Programs
Chaitin et al. Research and applications: Artificial intelligence
JP3594106B2 (en) Automatic programming device, automatic programming method and recording medium
Chauvet Multiway Storage Modification Machines
JP2642413B2 (en) Forward control inference method for process control system
JPH10143370A (en) Method for storing and collating knowledge
CN115713127A (en) Artificial intelligence model training method and device, electronic equipment and storage medium
JPH03156535A (en) Frame knowledge management system for expert system
Weygand et al. The representation of knowledge within model-based control systems

Legal Events

Date Code Title Description
A300 Application deemed to be withdrawn because no request for examination was validly filed

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 20010904