JPH02220135A - Inference system - Google Patents

Inference system

Info

Publication number
JPH02220135A
JPH02220135A JP1044593A JP4459389A JPH02220135A JP H02220135 A JPH02220135 A JP H02220135A JP 1044593 A JP1044593 A JP 1044593A JP 4459389 A JP4459389 A JP 4459389A JP H02220135 A JPH02220135 A JP H02220135A
Authority
JP
Japan
Prior art keywords
inference
knowledge
update
rule
information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP1044593A
Other languages
Japanese (ja)
Inventor
Toru Nitta
徹 新田
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.)
NEC Corp
Original Assignee
NEC 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 NEC Corp filed Critical NEC Corp
Priority to JP1044593A priority Critical patent/JPH02220135A/en
Publication of JPH02220135A publication Critical patent/JPH02220135A/en
Pending legal-status Critical Current

Links

Landscapes

  • Devices For Executing Special Programs (AREA)

Abstract

PURPOSE:To improve the description property of a rule source program by securing a constitution where an update reporting means reflects the information on the update of knowledge carried out during the inference onto an update information table and an inference means obtains the update information by reference to the update information table to supply the update information to an inference network for execution of the inference. CONSTITUTION:An inference means 1 refers to an inference network 3 and decides the presence of the rule knowledge that satisfies a conditional part. Thus the means 1 selects one of those rule knowledges stored in the network 3. Then the means 1 carries out the selected rule knowledge and an update reporting means 5 decides that the knowledge is updated in execution of a rule. Thus the means 5 reflects the update onto an update information table 4. The means 1 refers to the table 4 to acquire the information on the updated knowledge and supplies this information to the network 3 to carry out the second condition collating process. As a result, the description property is improved for a rule source program.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は知識情報処理で用いられる推論方式に関する。[Detailed description of the invention] [Industrial application field] The present invention relates to an inference method used in knowledge information processing.

〔従来の技術〕[Conventional technology]

従来、この種の知識ベースシステムにおいては、推論中
に更新される知識の情報がルールコンパイル時にルール
ソースプログラムから予め収集されている。その情報が
推論時に推論ネットワークに流されることにより、推論
中に行われた知識の更新が推論に反映されている。この
例として、FORGY。
Conventionally, in this type of knowledge base system, knowledge information updated during inference is collected in advance from a rule source program at the time of rule compilation. By flowing this information to the inference network during inference, knowledge updates made during inference are reflected in inference. An example of this is FORGY.

C,L、、RETE : rア・ファースト・アルゴリ
ズム・フォー・ザ・メニイ・パターン/メニイ・オブジ
ェクト・パターン・マツチ・プロブレム」アーティフィ
シャル・インテリジェンス、第19巻、1982年を参
照できる。
C, L, RETE: ``A First Algorithm for the Many Patterns/Many Object Patterns Match Problem'', Artificial Intelligence, Vol. 19, 1982.

〔発明が解決しようとする課題〕[Problem to be solved by the invention]

上述した従来の知識ベースシステムにおいては、推論中
に行わhる知識の情報がルールコンパイル時にルールソ
ースプログラムから収集されていたため、ルールソース
プログラム上に明示的に現われない知識の更新を推論に
反映させることができなかった。そのため、利用者は知
識の更新を推論に更新させたい場合は必ずルールソース
プログラムに明示的にその更新を記述しなければならな
いという記述上の制限を受けるという欠点があった。
In the conventional knowledge-based system described above, information on the knowledge performed during inference is collected from the rule source program at the time of rule compilation, so updates to knowledge that do not explicitly appear on the rule source program are reflected in inference. I couldn't do that. Therefore, if the user wants to update the knowledge to the inference, the user must explicitly write the update in the rule source program, which is a disadvantage in terms of description.

〔課題を解決するための手段〕[Means to solve the problem]

本発明の方式は、推論時に必要な情報を格納する推論ネ
ットワーク手段(以下推論ネットワーク)と、知識を格
納する知識ベース手段(以下知識ベース)ト、この知識
ベースをアクセスして得られた知識および前記推論ネッ
トワークの情報を利用して推論する推論手段と、この推
論手段での推論による前記知識ベース手段の知識の更新
に応答して推論時に更新された知識を更新情報として保
持する更新情報保持手段(以下の実施例では更新情報テ
ーブル4および更新通知手段5に相当する)とを備え、
前記推論手段が前記更新情報保持手段からの更新情報を
前記推論ネットワークに反映して推論することを特徴と
する。
The method of the present invention includes 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, and knowledge and knowledge obtained by accessing this knowledge base. an inference means for making an inference using the information of the inference network; and an update information holding means for holding the knowledge updated at the time of inference as updated information in response to the update of the knowledge in the knowledge base means by the inference by the inference means. (corresponding to the update information table 4 and update notification means 5 in the following embodiments),
The invention is characterized in that the inference means reflects update information from the update information holding means on the inference network to make inferences.

〔実施例〕〔Example〕

次に、本発明の一実施例について図面を参照して詳細に
説明する。
Next, one embodiment of the present invention will be described in detail with reference to the drawings.

第1図を参照すると、本発明の一実施例は知識をストア
する知識ベース2と、推論時に必要となる情報を格納す
る推論ネットワーク3と、知識ベース2に格納された知
識および推論ネットワーク3を利用し、推論を行い、結
論を導く推論手段lと、この推論手段1の推論中に更新
された知識の情報を格納する更新情報テーブル4と、更
新情報テーブル4を管理する更新通知手段5とを含む。
Referring to FIG. 1, one embodiment of the present invention includes a knowledge base 2 that stores knowledge, an inference network 3 that stores information necessary for inference, and a knowledge base 2 that stores knowledge and the inference network 3. an inference means 1 that utilizes the information, performs inference, and draws a conclusion; an update information table 4 that stores information on knowledge updated during inference by the inference means 1; and an update notification means 5 that manages the update information table 4. including.

本発明の一実施例の特徴は更新情報テーブル4と更新通
知手段5とを設けたことにある。
The feature of one embodiment of the present invention is that an update information table 4 and an update notification means 5 are provided.

次に、本発明の一実施例の動作について第1図および第
2図を参照して説明する。
Next, the operation of one embodiment of the present invention will be described with reference to FIGS. 1 and 2.

第1図および第2図を参照すると、まず、ステップ21
において推論手段1がすべてのルール知識の条件部と知
識ベース2に格納されている知識との照合を、推論ネッ
トワーク3を用いて行う。
Referring to FIGS. 1 and 2, first, step 21
In this step, the inference means 1 uses the inference network 3 to check the condition parts of all the rule knowledge and the knowledge stored in the knowledge base 2.

次に、ステップ22において、推論手段1が推論ネット
ワーク3を参照し、条件部を満足しているルール知識が
あるか否かを判断し、ないと判断された場合は終了する
。ルール知識があると判断された場合には、ステップ2
3において、推論手段1が推論ネットワーク3に格納さ
れているルール知識を1つ選択する。次に、ステップ2
4において、推論手段1がステップ23で選択されたル
ール知識を実行する。更新通知手段5は、ステップ25
において、ステップ24で行われたルール実行において
、知識の更新が行われたか否かを判断し、更新がないと
判断された場合はステップ22以降を行う。更新がある
と判断された場合は、更新通知手段5がステップ26に
おいて、その更新を更新情報テーブル4に反映する。次
に、ステップ27において、推論手段1は、更新情報テ
ーブル4を参照し、更新の行われた知識の情報を得、そ
の情報を推論ネットワーク3に流すことにより再条件照
合処理を行った後、ステップ22以降を行う。
Next, in step 22, the inference means 1 refers to the inference network 3 and determines whether there is any rule knowledge that satisfies the condition part, and if it is determined that there is no rule knowledge, the process ends. If it is determined that there is rule knowledge, step 2
3, the inference means 1 selects one piece of rule knowledge stored in the inference network 3. Next, step 2
4, the reasoning means 1 execute the rule knowledge selected in step 23. The update notification means 5 performs step 25.
In the rule execution carried out in step 24, it is determined whether knowledge has been updated, and if it is determined that there has been no update, steps 22 and subsequent steps are performed. If it is determined that there is an update, the update notification means 5 reflects the update in the update information table 4 in step 26 . Next, in step 27, the inference means 1 refers to the update information table 4, obtains information on the knowledge that has been updated, and performs recondition matching processing by passing the information to the inference network 3. Perform step 22 and subsequent steps.

ここで、ルール知識とは、知識ベースシステムが対象と
している分野における判断に関する知識であり、 IF  状況   THEN  結論 等の形式を持つ。
Here, the rule knowledge is knowledge related to judgment in the field targeted by the knowledge base system, and has a format such as IF, situation, THEN, and conclusion.

次に、ルールの例を示す。Next, an example of a rule is shown.

IF  患者の症状が頭痛、頂部硬直および発熱THE
N  患者は髄膜炎である。
IF The patient's symptoms are headache, vertex stiffness and fever THE
N The patient has meningitis.

次に、本実施例を具体例をもって示す。Next, this embodiment will be described with a concrete example.

IF  A、a=5   THEN  B、b=15前
記ルール知識において、A、Bはフレームであり、a、
bは、それぞれA、Bのスロットとする。前記ルール知
識は「フレームAのスロワ)aが5ならば、フレームB
のスロワ)bを15に設定せよ」ということを表わして
いる。このルール知識が実行されると、フレームBのス
ロットbが15に更新される。この更新を更新通知手段
5が検知し、更新情報テーブル4のフレームBのスロワ
)bの値を15に変更する。推論手段1は、更新情報テ
ーブルを参照し、フレームBのスロットbが15に変更
されていることを知る。そこで、推論手段lは、その変
更情報を推論ネットワーク3に流すことにより、再条件
照合を行う。
IF A, a=5 THEN B, b=15 In the rule knowledge above, A and B are frames, and a,
Let b be the slots of A and B, respectively. The rule knowledge is "thrower of frame A) if a is 5, then frame B
"Set the thrower) b to 15." When this rule knowledge is executed, slot b of frame B is updated to 15. The update notification means 5 detects this update and changes the value of thrower b) of frame B in the update information table 4 to 15. Inference means 1 refers to the update information table and learns that slot b of frame B has been changed to 15. Therefore, the inference means 1 transmits the change information to the inference network 3 to perform recondition matching.

〔発明の効果〕〔Effect of the invention〕

本発明の特徴は、更新情報テーブルおよび更新通知手段
を設け、推論中に行われた知識の更新に関する情報を更
新通知手段が更新情報テーブルに反映し、推論手段が更
新情報テーブルを参照し、更新情報を得、その更新情報
を推論ネットワークに流し、推論を進めることにある。
A feature of the present invention is that an update information table and an update notification means are provided, the update notification means reflects information regarding updates of knowledge performed during inference on the update information table, and the inference means refers to the update information table and updates the knowledge. The goal is to obtain information, send updated information to the inference network, and proceed with inference.

この結果、本発明は、ルールソースプログラムに明示的
に記述されていない更新を推論に反映することができ、
ルールソースプログラムの記述性が向上するという効果
がある。
As a result, the present invention can reflect updates that are not explicitly described in the rule source program in the inference,
This has the effect of improving the descriptive nature of the rule source program.

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

第1図は本発明の一実施例の構成を示す図および第2図
は本発明の一実施例の動作を示す流れ図である。第1図
において、l・・・・・・推論手段、2・・・・・・知
識ベース、3・・・・・・推論ネットワーク、4・・・
・・・更新情報テーブル、5・・・・・・更新通知手段
。 代理人 弁理士  内 原   音 事
FIG. 1 is a diagram showing the configuration of an embodiment of the present invention, and FIG. 2 is a flowchart showing the operation of the embodiment of the invention. In FIG. 1, l...inference means, 2...knowledge base, 3...inference network, 4...
...Update information table, 5...Update notification means. Agent Patent Attorney Otoji Uchihara

Claims (1)

【特許請求の範囲】 推論時に必要な情報を格納する推論ネットワーク手段と
、 知識を格納する知識ベース手段と、 この知識ベース手段をアクセスして得られた知識および
前記推論ネットワークの情報を利用して推論する推論手
段と、 この推論手段での推論による前記知識ベース手段の知識
の更新に応答して推論時に更新された知識を更新情報と
して保持する更新情報保持手段とを備え、 前記推論手段が前記更新情報保持手段からの更新情報を
前記推論ネットワークに反映して推論することを特徴と
する推論方式。
[Claims] Inference network means for storing information necessary for inference, knowledge base means for storing knowledge, and knowledge obtained by accessing this knowledge base means and information of the inference network are utilized. an inference means for inferring; and an update information holding means for retaining knowledge updated at the time of inference as updated information in response to updating of knowledge in the knowledge base means by inference by the inference means, and the inference means An inference method characterized in that update information from an update information holding means is reflected in the inference network for inference.
JP1044593A 1989-02-22 1989-02-22 Inference system Pending JPH02220135A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP1044593A JPH02220135A (en) 1989-02-22 1989-02-22 Inference system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1044593A JPH02220135A (en) 1989-02-22 1989-02-22 Inference system

Publications (1)

Publication Number Publication Date
JPH02220135A true JPH02220135A (en) 1990-09-03

Family

ID=12695769

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1044593A Pending JPH02220135A (en) 1989-02-22 1989-02-22 Inference system

Country Status (1)

Country Link
JP (1) JPH02220135A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2025158507A1 (en) * 2024-01-22 2025-07-31 Ntt株式会社 Inference device, inference method, program, and inference system

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2025158507A1 (en) * 2024-01-22 2025-07-31 Ntt株式会社 Inference device, inference method, program, and inference system

Similar Documents

Publication Publication Date Title
US4849905A (en) Method for optimized RETE pattern matching in pattern-directed, rule-based artificial intelligence production systems
US5720009A (en) Method of rule execution in an expert system using equivalence classes to group database objects
US20070100781A1 (en) Conditional CSP solving using constraint propagation
Gao et al. Potential Based Reward Shaping for Hierarchical Reinforcement Learning.
US7418434B2 (en) Forward-chaining inferencing
CN110991871B (en) Risk monitoring method, device, equipment and computer readable storage medium
CA3221550A1 (en) Systems and methods for operating an autonomous system
CN108830376A (en) For the multivalence value network depth intensified learning method of the environment of time-sensitive
Sammut Learning concepts by performing experiments
JPH02220135A (en) Inference system
Eberbach $-calculus of bounded rational agents: Flexible optimization as search under bounded resources in interactive systems
Affenzeller A new approach to evolutionary computation: Segregative genetic algorithms (SEGA)
JPH0782439B2 (en) Inference engine execution monitoring method and apparatus
JPH05341999A (en) Network judging circuit network for indicating stage in real time
JP2024040936A (en) Information processing device, control method for information processing device, program
JPH0329030A (en) Decentralized cooperative inference device
JPS63311441A (en) Knowledge acquiring system using time history
JPS63208127A (en) Production system
JPH0468441A (en) Knowledge inspection supporting system
JP2002132504A (en) Inductive reasoning system
JPH01280834A (en) Inferring device
Ryzko et al. Exchange of knowledge and learning in default reasoning based agent systems
JPH01270139A (en) Leat algorithm system for expert system
JPH0423064A (en) Solution optimizing method for parallel processing network
JPH02277135A (en) Inference system