JPH02220136A - Inference system - Google Patents
Inference systemInfo
- Publication number
- JPH02220136A JPH02220136A JP1044594A JP4459489A JPH02220136A JP H02220136 A JPH02220136 A JP H02220136A JP 1044594 A JP1044594 A JP 1044594A JP 4459489 A JP4459489 A JP 4459489A JP H02220136 A JPH02220136 A JP H02220136A
- Authority
- JP
- Japan
- Prior art keywords
- slot
- node
- token
- inference
- knowledge
- 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
Links
- 238000000034 method Methods 0.000 description 4
- 238000005516 engineering process Methods 0.000 description 3
- 230000000694 effects Effects 0.000 description 2
- 230000000052 comparative effect Effects 0.000 description 1
- 239000000470 constituent Substances 0.000 description 1
- 238000007796 conventional method Methods 0.000 description 1
- 230000010365 information processing Effects 0.000 description 1
- 230000008520 organization Effects 0.000 description 1
Landscapes
- Devices For Executing Special Programs (AREA)
Abstract
Description
【発明の詳細な説明】 〔産業上の利用分野〕 本発明は知識情報処理で用いられる推論方式に関する。[Detailed description of the invention] [Industrial application field] The present invention relates to an inference method used in knowledge information processing.
従来、この種の知識ベースシステムにおいては、構造化
されるべき知識を表現する枠組であるフレームの順序ず
けられた一対のタグとデータ要素のリストであり推論対
象であるトークンがルールの管理組織である推論ネット
ワーク上を流れると、そのフレームの構成要素で、その
フレームの属性情報であるスロット値を有する全てのス
ロットに関する1つのルールに対するインフラテストが
行われていた。つまり、スロットを単位とした判断が行
われていなかった。従来の技術としては、FORGY、
C,L、、RETE : rア・ファースト拳アルゴリ
ズム・フォー啼ザ・メニイ・パターン/メニイ・オブジ
ェクト・パターン・マツチ・プロプレムコアーティフィ
シャル′・インテリジェンス、第19巻、1982年を
参照できる。Conventionally, in this type of knowledge-based system, the management organization of rules consists of an ordered pair of tags and a list of data elements in a frame, which is a framework for expressing knowledge to be structured, and tokens, which are objects of inference. When flowing on a certain inference network, an infrastructure test is performed on one rule regarding all slots that are constituent elements of that frame and have slot values that are attribute information of that frame. In other words, decisions were not made on a slot-by-slot basis. Conventional technologies include FORGY,
C, L, RETE: Reference can be made to ``First Fist Algorithm for the Many Patterns/Many Object Patterns Matches Proprietary Artificial'' Intelligence, Volume 19, 1982.
このような従来の知識ベースシステムにおいては、スロ
ットを単位とした判断が行わhていなかったので、更新
が行われたフレームのすべてのスロットに関するイント
ラテストが行われ、推論が無限ループを起こす可能性が
高いという欠点があった。In such conventional knowledge-based systems, decisions are not made on a slot-by-slot basis, so intra-tests are performed on all slots in the updated frame, which may cause an infinite loop of inference. It had the disadvantage of being high.
次に、無限ループを起こす例を示す。Here is an example that causes an infinite loop.
IF A、al=5 THEN A、a:2−
10゜上記ルール知識において、Aはフレーム、alお
よびa2はAのスロットであり、「フレームAのスロッ
トa1が5ならハ、フレームAのスロットa2に10を
設定せよ」ということを表現している。このルール知識
が実行されるとフレームAのスロワ)a2に10が設定
される。そのとき、推論ネットワーク上を“フレームA
が更新された”というトークンが流れる。ここで、“フ
レームAのスロワ)a2が更新された”という情報では
なく、“フレームAが更新された”という情報であるこ
とに注意する必要がある。このとき、その情報は推論ネ
ットワーク上のクラスノードAを通過し、クラスノード
A配下のすべてのイントラテストが行なわれる。つまり
、クラスノードAの持つすべてのスロットに関するイン
トラテストが行われる。従って、スロットa1に関する
テストも行われることになり、前記ルール知識の条件部
が評価を受け、その結果、条件部が成立するのでふたた
びそのルールが実行されることになる。このように、前
記ルール知識の場合、無限ループに陥ってしまう。IF A, al=5 THEN A, a:2-
10゜In the above rule knowledge, A is a frame, al and a2 are slots of A, and it expresses "If slot a1 of frame A is 5, set 10 to slot a2 of frame A." . When this rule knowledge is executed, 10 is set in the thrower a2 of frame A. At that time, “Frame A” is displayed on the inference network.
Here, it is necessary to note that the information is not "the thrower a2 of frame A has been updated," but rather the information is "frame A has been updated." At this time, the information passes through class node A on the inference network, and all intra tests under class node A are performed.In other words, intra tests regarding all slots held by class node A are performed. A test regarding a1 will also be conducted, and the conditional part of the rule knowledge will be evaluated, and as a result, the conditional part will be satisfied, so the rule will be executed again.In this way, in the case of the rule knowledge , it will fall into an infinite loop.
本発明の方式は、推論時に必要となる情報を格納する推
論ネットワーク手段(以下推論ネットワーク)と、
トークンを含む知識を格納する知識ベース手段(以下知
識ベース)と、
前記推論ネットワークに流すべきトークンが前記知識ベ
ースに存在するか否かを判断し、存在するとき該トーク
ンを流すべきノードな前記推論ネットワークに設定し、
設定されたノードがスロットノードか否かを判定する推
論手段と、この推論手段によるスロットノードの判定に
応答して、現在流しているトークンが対象となっている
スロットノードのスロットに関するものか否かを判断す
るスロット判断手段とを備え、このスロット判断手段で
、トークンが該スロットに関するものでないとの判断に
応答して前記推論手段が該トークンを用いてインフラテ
ストを行なわないことを特徴とする。The method of the present invention comprises: an inference network means (hereinafter referred to as an inference network) that stores information necessary for inference; a knowledge base means (hereinafter referred to as a knowledge base) that stores knowledge including tokens; and tokens to be sent to the inference network. determining whether the token exists in the knowledge base, and setting it in the inference network as a node to which the token should flow if it exists;
An inference means for determining whether or not the set node is a slot node, and in response to the determination of the slot node by the inference means, whether or not the currently flowing token relates to the slot of the target slot node. slot determining means for determining the slot, and in response to the slot determining means determining that the token is not related to the slot, the reasoning means does not perform an infrastructure test using the token.
次に、本発明の一実施例について図面を参照して詳細に
説明する。Next, one embodiment of the present invention will be described in detail with reference to the drawings.
第1図を参照すると、本発明の一実施例は知識を格納す
る知識ベース5と、推論時に必要となる情報を格納する
推論ネットワーク2と、知識ベース5に格納された知識
および推論ネットワーク2を利用し、推論を行い、結論
を導く推論手段1と、スロット判断処理が行われるスロ
ットノード4と、スロット判断処理を行うスロット判断
手段3とを含む。本発明の一実施例の特徴は、第1図に
おいて、スロット判断手段3とスロットノード4とを設
けたことにある。Referring to FIG. 1, one embodiment of the present invention includes a knowledge base 5 that stores knowledge, an inference network 2 that stores information necessary for inference, and a knowledge base 5 that stores knowledge and the inference network 2. 1, a slot node 4 for performing slot determination processing, and a slot determination means 3 for performing slot determination processing. A feature of one embodiment of the present invention is that, in FIG. 1, a slot determining means 3 and a slot node 4 are provided.
次に、本発明の一実施例の動作について第1図および第
2図を参照して詳細に説明する。Next, the operation of one embodiment of the present invention will be described in detail with reference to FIGS. 1 and 2.
第1図および第2図を参照すると、まず、推論手段1が
ステップ21において、推論ネットワーク2に流すべき
推論対象であるトークンがあるか否かを調べる。そのよ
うなトークンがない場合は、推論手段1がステップ21
0において、実行すべきルール知識があるか否かを調べ
、実行すべきルール知識がない場合は、処理を終了する
。実行すべきルール知識がある場合は、推論手段1がス
テップ211で実行すべきルール知識の中から実行する
ルール知識を1つ選択する。更に、推論手段1がステッ
プ212で選択されているルール知識を実行し、ステッ
プ21以降の処理を行う。Referring to FIGS. 1 and 2, first, in step 21, the inference means 1 checks whether there is a token to be inferred that should be sent to the inference network 2. If there is no such token, the reasoner 1 performs step 21
At step 0, it is checked whether there is any rule knowledge to be executed, and if there is no rule knowledge to be executed, the process is terminated. If there is rule knowledge to be executed, the reasoning means 1 selects one rule knowledge to be executed from among the rule knowledge to be executed in step 211. Further, the inference means 1 executes the rule knowledge selected in step 212, and performs the processing from step 21 onwards.
方、そのようなトークンがある場合は、推論手段1がス
テップ22で知識ベース5からトークンを取出す。次に
、推論手段1がステップ23でトークンを流す対象とす
るノードを推論ネットワーク2の最上位レベルのノード
に設定する。次に、推論手段1がステップ24で現在ト
ークンを流す対象となっているノードはスロットノード
4であるか否かを調べ、スロットノード4でない場合は
。On the other hand, if such a token exists, the reasoning means 1 retrieves the token from the knowledge base 5 in step 22. Next, the inference means 1 sets the node at the highest level of the inference network 2 as the node to which the token is to be passed in step 23 . Next, the inference means 1 checks in step 24 whether or not the node to which the token is currently flowing is the slot node 4, and if it is not the slot node 4;
推論手段1がステップ28でそのノード固有の処理を行
い、ステップ27以降の処理を行う。スロットノード4
である場合は、スロット判断手段3が、ステップ25で
現在流しているトークンが対象となっているスロットノ
ード4のスロットに関するものであるか否かを判断する
。トークンが対象となっているスロットノード4のスロ
ットに関するものである場合は、推論手段1がステップ
26で、そのトークンを使ってイントラテストを行い、
ステップ27以降の処理を行う。トークンが対象となっ
ているスロットに関するものでない場合は、推論手段1
がステップ27で、推論ネットワーク2上の他のノード
に、今流してきたトークンを流す必要があるか否かを調
べ、流してきたトークンを流す必要がない場合はステッ
プ21以降の処理を行う。必要がある場合は、推論手段
1がステップ29で流す対象とするノードをその流す必
要のあるノードに設定し、ステップ24以降の処理を行
う。The inference means 1 performs processing specific to that node in step 28, and performs processing from step 27 onwards. slot node 4
If so, the slot determining means 3 determines in step 25 whether or not the currently flowing token relates to the slot of the target slot node 4. If the token relates to the slot of the slot node 4 in question, the reasoning means 1 performs an intratest using the token in step 26;
Processing from step 27 onwards is performed. If the token is not related to the slot in question, reasoner 1
In step 27, it is checked whether the token that has just been passed needs to be passed to another node on the inference network 2, and if it is not necessary to pass the token that has just been passed, the processing from step 21 onwards is performed. If necessary, the inference means 1 sets the node to be streamed in step 29 to the node that needs to be streamed, and performs the processing from step 24 onwards.
次に、本発明の一実施例を具体例をもって示す。Next, one embodiment of the present invention will be described with a specific example.
前述したルール知識
IF A、al=5 THEN A、a2←1
0を考える。このルール知識は、従来の技術においては
無限ループを起こしていたものである。まず、このルー
ル知識が実行されると、フレームAのスロワ)a2に値
“10”が設定さhる。次に、フレームAのスロットa
2に関するトークンが推論ネットワーク2に流される。The aforementioned rule knowledge IF A, al=5 THEN A, a2←1
Think 0. This rule knowledge causes an infinite loop in conventional technology. First, when this rule knowledge is executed, the value "10" is set in the thrower a2 of frame A. Next, slot a of frame A
2 is passed to the inference network 2.
そのトークンがフレームAのスロットa2に関するスロ
ットノード4に流されてくると、スロットa2に関する
イントラテストが行われる。しかし、そのトークンがフ
レームAのスロット&1に関するスロットノード4に流
されてきたとしても、スロット判断手段3は、そのトー
クンがスロワ)alのものではないことを認識するので
、スロットa1に関するイントラテストは行われない。When the token is streamed to slot node 4 for slot a2 of frame A, an intratest for slot a2 is performed. However, even if the token is passed to the slot node 4 related to slot &1 of frame A, the slot determination means 3 recognizes that the token does not belong to the thrower )al, so the intratest regarding slot a1 is Not done.
つまり、このルール知識の条件部は評価されず、その実
行も行われない。このように、従来の技術において無限
ループを起こしていたものが、この実施例の方式により
無限ループが回避されている。In other words, the conditional part of this rule knowledge is not evaluated and its execution is not performed. In this way, the conventional technique that causes an infinite loop can be avoided by the method of this embodiment.
以上説明したように、本発明にはスロットノードおよび
スロット判断手段を設け、トークンとスロットノードと
の比較判断を行うことにより推論の無限ループを回避す
ることができ、ルール知識の記述性を向上させることが
できるという効果がある。As explained above, the present invention is provided with a slot node and a slot judgment means, and by making a comparative judgment between a token and a slot node, an infinite loop of inference can be avoided, and the descriptive nature of rule knowledge can be improved. It has the effect of being able to
第1図において、1・・・・・・推論手段、2・・・・
・・推論ネットワーク、3・・・・・・スロット判断手
段、4・・・・・・スロットノード、訃・・・・・知識
ベース。In FIG. 1, 1...inference means, 2...
... Reasoning network, 3 ... Slot judgment means, 4 ... Slot node, Death ... Knowledge base.
Claims (1)
段と、 トークンを含む知識を格納する知識ベース手段と、 前記推論ネットワーク手段に流すべきトークンが前記知
識ベース手段に存在するか否かを判断し、存在するとき
該トークンを流すべきノードを前記推論ネットワーク手
段に設定し、設定されたノードがスロットノードか否か
を判定する推論手段と、この推論手段によるスロットノ
ードの判定に応答して、現在流しているトークンが対象
となっているスロットノードのスロットに関するものか
否かを判断するスロット判断手段とを備え、 このスロット判断手段でトークンが該スロットに関する
ものでないとの判断に応答して前記推論手段が、該トー
クンを用いてインフラテストを行なわないことを特徴と
する推論方式。[Scope of Claims] Inference network means for storing information necessary for inference; knowledge base means for storing knowledge including tokens; and whether or not tokens to be sent to the inference network exist in the knowledge base means. an inference means for determining whether or not the set node is a slot node, setting a node to which the token should flow when it exists in the inference network means, and determining whether or not the set node is a slot node, and responding to the determination of the slot node by the inference means; and slot determination means for determining whether or not the currently flowing token relates to the slot of the target slot node, and in response to a determination by the slot determination means that the token does not relate to the slot. and the inference means does not perform an infrastructure test using the token.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP1044594A JPH02220136A (en) | 1989-02-22 | 1989-02-22 | Inference system |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP1044594A JPH02220136A (en) | 1989-02-22 | 1989-02-22 | Inference system |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JPH02220136A true JPH02220136A (en) | 1990-09-03 |
Family
ID=12695793
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP1044594A Pending JPH02220136A (en) | 1989-02-22 | 1989-02-22 | Inference system |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH02220136A (en) |
-
1989
- 1989-02-22 JP JP1044594A patent/JPH02220136A/en active Pending
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN112565193B (en) | Network security policy conflict resolution method, system, storage medium and equipment | |
| Elwahsh et al. | A novel approach for classifying Manets attacks with a neutrosophic intelligent system based on genetic algorithm | |
| CN119004475B (en) | Smart contract functional vulnerability detection method and system based on large language model | |
| Ullah et al. | An ensemble-based hybrid model for the detection of attacks in the internet of vehicular things | |
| Chkirbene et al. | Data augmentation for intrusion detection and classification in cloud networks | |
| US5642471A (en) | Production rule filter mechanism and inference engine for expert systems | |
| Yeung et al. | Handling interaction in fuzzy production rule reasoning | |
| JPH03288285A (en) | Learning method for data processor | |
| Wang et al. | A graph neural network with negative message passing for graph coloring | |
| CN111291065A (en) | Asset data change method and device executed by computing equipment and computing equipment | |
| CN114926279A (en) | Terminal payment method and system based on block chain | |
| JPH02220136A (en) | Inference system | |
| CN110717537A (en) | Method and device for training user classification model and executing user classification prediction | |
| US10936666B2 (en) | Evaluation of plural expressions corresponding to input data | |
| Kamimura | Collective interpretation and potential joint information maximization | |
| CN114943446B (en) | Transaction risk control method and device | |
| US20060224543A1 (en) | Guidance system | |
| Michalopoulos | Comparing explanations for black-box intrusion detection systems | |
| Davis et al. | Casual Models and Exploratory Analysis in Heterogeneous Information Fusion for Detecting Potential Terrorists | |
| US20260106800A1 (en) | Systems and methods for an intelligent network configuration capability (incc) for mesh networks | |
| CN116405259B (en) | A Decision Tree-Based Method for Joint Authorization Strategy Conflict Detection and Execution | |
| CN109995756B (en) | Online single-classification active machine learning method for information system intrusion detection | |
| Jaszcz et al. | Type-2 Fuzzy Controller as a Client Reputation Mechanism for Federated Learning | |
| Liu et al. | Topology sensing in wireless networks by leveraging symmetrical connectivity | |
| Clymer et al. | Simulation-based engineering of complex adaptive systems using a classifier block |