JPH05282152A - Device and method for managing knowledge base - Google Patents

Device and method for managing knowledge base

Info

Publication number
JPH05282152A
JPH05282152A JP4109152A JP10915292A JPH05282152A JP H05282152 A JPH05282152 A JP H05282152A JP 4109152 A JP4109152 A JP 4109152A JP 10915292 A JP10915292 A JP 10915292A JP H05282152 A JPH05282152 A JP H05282152A
Authority
JP
Japan
Prior art keywords
condition
knowledge base
rules
knowledge
rule
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.)
Granted
Application number
JP4109152A
Other languages
Japanese (ja)
Other versions
JPH0820959B2 (en
Inventor
Hiroshi Shinjo
広 新庄
Masaru Oki
優 大木
Eiji Ohira
栄二 大平
Masahiro Abe
正博 阿部
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.)
National Institute of Advanced Industrial Science and Technology AIST
Original Assignee
Agency of Industrial Science and Technology
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 Agency of Industrial Science and Technology filed Critical Agency of Industrial Science and Technology
Priority to JP4109152A priority Critical patent/JPH0820959B2/en
Publication of JPH05282152A publication Critical patent/JPH05282152A/en
Publication of JPH0820959B2 publication Critical patent/JPH0820959B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Devices For Executing Special Programs (AREA)

Abstract

PURPOSE:To reduce the redundancy of a rule in a knowledge base, to hold compatibility and to attain systematization by analyzing plural different condition values, detecting a redundant condition value between rules and changing the condition value. CONSTITUTION:A knowledge comparing part 104 extracts a rule from a knowledge base 100 and judges whether a condition part and a consequence part are mutually different or not by a condition part comparing part 106 and a consequence part comparing part 110. A condition value analyzing part 108 in the comparing part 106 compares and analyzes individual condition values and detects a redundant condition value. The pattern of the condition value, the redundant condition value and the information of the consequence part which are obtained from the comparing part 104 are transmitted to a knowledge polishing part 116, a new condition value pattern is formed by a condition value changing part 114 to form a new rule 120. The new rule is recorded in the base 100 and the preceding processing is repeated to manage the knowledge base storing rules having no redundancy.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、エキスパートシステム
をはじめとする知識処理を行なうための知識ベース管理
装置及びその方法に係わり、特に、知識ベース中の冗長
なルールの管理及び矛盾の検出に好適な知識ベース管理
装置及びその方法に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a knowledge base management apparatus and method for performing knowledge processing including an expert system, and is particularly suitable for managing redundant rules in a knowledge base and detecting inconsistencies. Related knowledge base management apparatus and method.

【0002】[0002]

【従来の技術】エキスパートシステム等に用いられる知
識ベースを利用するには、次のような問題がある。
2. Description of the Related Art The use of a knowledge base used in an expert system has the following problems.

【0003】まず、知識ベースに知識を追加したとき
に、知識が冗長になる恐れがあることである。
First, when knowledge is added to the knowledge base, the knowledge may become redundant.

【0004】次に、知識ベース中のルールを増やす場
合、ルール間の整合性を保つことが困難であることであ
る。複数のルール同士が矛盾した結論をだせば、推論シ
ステムが機能しなくなるからである。特に、知識ベース
のデバッグを行う際や、既存の知識ベースに新たなルー
ルを追加する際には、知識間での矛盾をなくし、整合性
を図ることが必要である。
Next, when the number of rules in the knowledge base is increased, it is difficult to maintain consistency between the rules. This is because the reasoning system will not work if multiple rules make contradictory conclusions. In particular, when debugging a knowledge base or adding a new rule to an existing knowledge base, it is necessary to eliminate inconsistencies between the knowledge and ensure consistency.

【0005】上記の課題に対して、従来の技術として
「事例を用いた知識洗練支援システム」(情報処理学会
第41回(平成2年後期)全国大会予稿集第2巻、53
〜56ページ)がある。
[0005] To solve the above problems, as a conventional technique, "knowledge refinement support system using cases" (Information Processing Society of Japan 41st (second half of 1990) National Convention Proceedings Vol. 2, 53)
~ Page 56).

【0006】この技術では、知識ベース内のルール群を
以下のような木構造の形式で表現している。
In this technique, the rule group in the knowledge base is expressed in the following tree structure format.

【0007】ルール: (条件1の値...条件Mの値
結論) この表現は条件1から条件Mを満足すれば、結論が成立
するということを意味する。ここで、個々のルールにつ
いて条件値の組合せを条件値パターンと定義している。
Rule: (Value of Condition 1 ... Value of Condition M Conclusion) This expression means that the conclusion is satisfied if the conditions 1 to M are satisfied. Here, a combination of condition values for each rule is defined as a condition value pattern.

【0008】ルール間の整合処理は以下のとおりであ
る。まず、新規に追加するルールの条件値パターンと知
識ベース内のルールを比較する。次に、一つだけ異なる
条件値を持つ知識ベース内のルールを検出する。ただ
し、新規に追加するルールの条件部に含まれていない条
件値については、比較の対象としない。最後に、異なる
条件値を修正して、ルールを修正する。
The matching process between the rules is as follows. First, the condition value pattern of the newly added rule is compared with the rule in the knowledge base. Next, the rule in the knowledge base having only one different condition value is detected. However, the condition values that are not included in the condition part of the newly added rule are not included in the comparison. Finally, modify the rule by modifying different condition values.

【0009】従来技術におけるルールの変更について、
図11〜図14を用いて説明する。図11は、新たなル
ールの条件値パターン、帰結部ともに知識ベース内に存
在しない場合である。ここでは、新たなルールが (a1 b2 ハ) 知識ベース内の既存のルールが [(a1 b1 イ) (a2 − ロ)] である例を考える。この場合、a1のみ等しいので、枝
を一つ追加し、知識ベースを以下のように更新する。
Regarding the change of the rule in the prior art,
This will be described with reference to FIGS. 11 to 14. FIG. 11 shows a case where neither the condition value pattern of the new rule nor the consequent part exists in the knowledge base. Here, consider an example in which the new rule is (a1 b2 c) and the existing rule in the knowledge base is [(a1 b1 b) (a2-b)]. In this case, since only a1 is equal, one branch is added and the knowledge base is updated as follows.

【0010】[(a1 b1 イ) (a1 b2 ハ) (a2 − ロ)] 図12は、新たなルールの条件値パターンは知識ベース
内に存在しないが、帰結部が知識ベース内に存在する場
合である。ここでは、新たなルールが (a1 b2 イ) 知識ベース内の既存のルールが [(a1 b1 イ) (a2 − ロ)] である例を考える。この場合、条件Bについての条件値
を書き直し、知識ベースを以下のように更新する。
[(A1 b1 b) (a1 b2 c) (a2-b)] FIG. 12 shows that the condition value pattern of the new rule does not exist in the knowledge base, but the consequent part exists in the knowledge base. Is. Here, consider an example in which the new rule is (a1 b2 b) and the existing rule in the knowledge base is [(a1 b1 b) (a2-ro)]. In this case, the condition value for condition B is rewritten and the knowledge base is updated as follows.

【0011】[(a1 b1 or b2 イ) (a2 − ロ)] なお、条件Bがb1とb2しか取らないというメタ知識
があれば、条件Bについては省略でき、以下のようにな
る。
[(A1 b1 or b2 b) (a2-b)] If there is meta-knowledge that the condition B only takes b1 and b2, the condition B can be omitted, and the condition is as follows.

【0012】[(a1 − イ) (a2 − ロ)] 図13は、新たなルールの条件値パターンは知識ベース
内に共通する部分を持つが、帰結部が知識ベース内に存
在しない場合である。ここでは、新たなルールが (a2 b2 ハ) 知識ベース内の既存のルールが [(a1 b1 イ) (a2 − ロ)] である例を考える。この場合、知識ベースの条件Bはb
1とb2しかないという知識があれば知識ベースは以下
のように更新できる。
[(A1-i) (a2-b)] FIG. 13 shows a case where the condition value pattern of the new rule has a common part in the knowledge base, but the consequent part does not exist in the knowledge base. .. Here, consider an example in which the new rule is (a2 b2 c) and the existing rule in the knowledge base is [(a1 b1 b) (a2-b)]. In this case, the condition B of the knowledge base is b
With the knowledge that there are only 1 and b2, the knowledge base can be updated as follows.

【0013】[(a1 b1 イ) (a2 b1 ロ) (a2 b2 ハ)] 図14は、新たなルールの条件値パターンは知識ベース
内に存在するが、帰結部が知識ベース内に存在しない場
合である。すなわち、新たなルールが既存の知識ベース
に矛盾する場合である。ここでは、新たなルールが (a2 − ハ) 知識ベース内の既存のルールが [(a1 b1 イ) (a2 − ロ)] である例を考える。この場合、新たなルールと既存のル
ールを区別するための新たな条件が無いかを問い合わせ
る。条件Nによって区別できれば、知識ベースは以下の
ように更新できる。
[(A1 b1 b) (a2 b1 b) (a2 b2 c)] FIG. 14 shows that the condition value pattern of the new rule exists in the knowledge base, but the consequent part does not exist in the knowledge base. Is. That is, when the new rules conflict with the existing knowledge base. Here, consider an example in which the new rule is (a2-c) and the existing rule in the knowledge base is [(a1 b1 b) (a2-b)]. In this case, an inquiry is made as to whether there is a new condition for distinguishing the new rule from the existing rule. If it can be distinguished by the condition N, the knowledge base can be updated as follows.

【0014】[(a1 b1 − イ) (a2 − n1 ロ) (a2 − n2 ハ)][(A1 b1-a) (a2-n1 b) (a2-n2 c)]

【0015】[0015]

【発明が解決しようとする課題】かかる従来の技術で
は、ルール間の比較を行なった際に、条件値パターンの
単純な比較しか行なっていないため、条件値が一種類の
み異なる場合にしか適用できないという問題がある。
In the conventional technique, when the rules are compared with each other, only the condition value patterns are simply compared. Therefore, the conventional technique can be applied only when the condition values are different by one kind. There is a problem.

【0016】さらに、従来の技術では、一部のルールに
おいて複数の条件値が異なっていても、それらの条件値
を互いに比較解析することにより見つけることができる
冗長な条件値を取り除くことができないという問題があ
る。
Further, in the conventional technique, even if a plurality of condition values are different in some rules, the redundant condition values that can be found by comparing and analyzing the condition values cannot be removed. There's a problem.

【0017】したがって、本発明の一つの目的は、ルー
ル間の条件部の条件値と帰結部をそれぞれ比較すること
により、複数の条件値の変更を行ない、知識ベース内の
冗長な条件を除去する装置及びその方法を提供するもの
である。
Therefore, an object of the present invention is to change a plurality of condition values by comparing the condition value of the condition part between the rules and the consequent part, and remove the redundant condition in the knowledge base. An apparatus and a method thereof are provided.

【0018】本発明の他の目的は、ルール間の条件部の
条件値と帰結部をそれぞれ比較することにより、ルール
間の矛盾を検出し、知識ベースの整合性を保つ装置及び
その方法の提供である。
Another object of the present invention is to provide an apparatus and method for detecting a contradiction between rules and maintaining the consistency of a knowledge base by comparing the condition value of a condition part between rules and the consequent part. Is.

【0019】[0019]

【課題を解決するための手段】上記の目的を達成するた
めに、本発明は、一例として知識ベースを持つ知識ベー
ス管理装置において、ルール間について、条件部を構成
する条件値を解析する条件値解析部を含む条件部比較部
と、帰結部を比較する帰結部比較部を含む知識比較部を
有し、条件部と帰結部をそれぞれ比較した結果、複数の
条件値を統合、分割、削除を行なう条件値変更部を含
み、条件値を変更した結果に基づいて、新規のルールを
作成する知識洗練部を有し、その新規ルールを知識ベー
スに格納することにより冗長性のない新規のルールを作
成する。
In order to achieve the above object, the present invention is, as an example, a knowledge base management apparatus having a knowledge base, and a condition value for analyzing a condition value constituting a condition part between rules. It has a condition comparison unit that includes an analysis unit and a knowledge comparison unit that includes a result comparison unit that compares the result units.As a result of comparing each condition unit and the result unit, multiple condition values can be combined, divided, or deleted. It has a knowledge value refinement unit that creates a new rule based on the result of changing the condition value, including the condition value changing unit, and stores the new rule in the knowledge base to create a new rule without redundancy. create.

【0020】[0020]

【作用】本発明によれば、ルール同士の条件値と帰結部
を比較し、複数の異なる条件値を解析することによりル
ール間の冗長な条件値を検出し、その条件値を変更する
ことにより、知識ベース内のルールの冗長性を減少さ
せ、整合性を保ち、体系化をはかることができる。
According to the present invention, by comparing the condition values of the rules and the consequent part and analyzing a plurality of different condition values, redundant condition values between the rules are detected, and the condition values are changed. , It is possible to reduce the redundancy of rules in the knowledge base, maintain consistency, and systematize.

【0021】[0021]

【実施例】図2は、本発明の一実施例である知識ベース
管理装置の構成図である。装置全体の構成と動作の概要
を説明する。
2 is a block diagram of a knowledge base management apparatus according to an embodiment of the present invention. An outline of the configuration and operation of the entire device will be described.

【0022】装置は、制御装置(CPU)200と主メ
モリ206、磁気ディスク208、CRT202、キー
ボード204からなる。知識ベース100は、磁気ディ
スク装置208に格納されている。また、知識比較部1
04や知識洗練部116のプログラムも磁気ディスク装
置208に格納されている。キーボード204は、プロ
グラムの指示のために使用する。CRT202は結果の
表示などに使用する。
The device comprises a control device (CPU) 200, a main memory 206, a magnetic disk 208, a CRT 202 and a keyboard 204. The knowledge base 100 is stored in the magnetic disk device 208. Also, the knowledge comparison unit 1
04 and programs of the knowledge refining unit 116 are also stored in the magnetic disk device 208. The keyboard 204 is used for program instructions. The CRT 202 is used to display the result.

【0023】必要に応じて、知識比較部や知識洗練部の
プログラムや、知識ベースの内容が主メモリ206にロ
ーディングされる。この操作は、キーボード204から
行われる。また、推論部や推論制御部のプログラムを主
記憶206に呼び込むための指令や実行開始指令の指定
もキーボード204から行われる。推論経過や結果など
は、CRT202に表示される。
The programs of the knowledge comparison unit and the knowledge refinement unit and the contents of the knowledge base are loaded into the main memory 206 as needed. This operation is performed from the keyboard 204. The keyboard 204 also designates a command for calling the programs of the inference unit and the inference control unit into the main memory 206 and an execution start command. The inference process and results are displayed on the CRT 202.

【0024】以下、本発明を具体的に説明する。まず、
一実施例の概要について説明する。図1は、全体のプロ
グラムおよびデータ構成について示したものである。知
識比較部104は知識ベース100よりルールを取りだ
し、条件比較部106と帰結部比較部110において、
それぞれ、条件部と帰結部が互いに異なるかどうかを判
定する。さらに、条件比較部106の条件値解析部10
8において、個々の条件値を比較解析し、冗長な条件値
を検出する。知識比較部104から得られた条件値のパ
ターンと冗長な条件値、および帰結部の情報は、知識洗
練部114に伝えられ、条件値変更部114により新し
い条件値パターンを生成して、新規ルール120を作成
する。この新規ルール120を知識ベース100に記録
し、前記の処理を繰り返すことにより、冗長性のないル
ールを持つ知識ベースの管理が可能である。
The present invention will be specifically described below. First,
The outline of one embodiment will be described. FIG. 1 shows the entire program and data structure. The knowledge comparison unit 104 fetches a rule from the knowledge base 100, and the condition comparison unit 106 and the consequent unit comparison unit 110
It is determined whether the conditional part and the consequent part are different from each other. Furthermore, the condition value analysis unit 10 of the condition comparison unit 106
At 8, the individual condition values are compared and analyzed to detect redundant condition values. The condition value pattern, redundant condition value, and consequent part information obtained from the knowledge comparing unit 104 are transmitted to the knowledge refining unit 114, and the condition value changing unit 114 generates a new condition value pattern to generate a new rule. Create 120. By recording this new rule 120 in the knowledge base 100 and repeating the above processing, it is possible to manage a knowledge base having rules without redundancy.

【0025】次に、知識比較部と知識洗練部の処理につ
いて、図3から図5を用いて説明する。まず、比較対象
とするルールを記録し(302)、記録されたルールの
条件値パターンを知識ベース内の他のルールの条件値パ
ターンと一致するかどうかを調べる(304)。条件値
パターンが一致するものがあれば、それらのルールの間
で帰結部同士を比較する(306)。帰結部も一致する
場合には、比較対象のルールは知識ベース内の他のルー
ルと同じものであるので、知識ベースを更新せず終了す
る(320)。また、306で帰結部を比較した結果、
比較対象のルールの帰結部が知識ベース内のルールの帰
結部の部分集合となっている場合には、比較対象のルー
ルは知識ベース内の他のルールを狭く解釈したものであ
るので、知識ベースを更新せず終了する(320)。
Next, the processing of the knowledge comparing section and the knowledge refining section will be described with reference to FIGS. First, the rule to be compared is recorded (302), and it is checked whether the recorded condition value pattern of the rule matches the condition value pattern of another rule in the knowledge base (304). If there is a match of the condition value patterns, the consequent parts are compared between these rules (306). If the consequent parts also match, the rule to be compared is the same as the other rules in the knowledge base, so the knowledge base is not updated and the process ends (320). Also, as a result of comparing the consequent parts in 306,
If the resulting part of the compared rule is a subset of the resulting part of the rule in the knowledge base, then the compared rule is a narrow interpretation of the other rules in the knowledge base. Ends without updating (320).

【0026】306において、帰結部が一致するものが
ない場合には、同じ条件値パターンを持ちながら互いに
異なる結論を持つルールが存在することになるので、比
較対象のルールは知識ベース内の他のルールと矛盾して
いる。したがって、矛盾除去の処理(308)を行な
う。この処理は、図6で説明する。
In 306, if there is no matching consequent part, there is a rule having the same condition value pattern but different conclusions from each other. Therefore, the rule to be compared is the other rule in the knowledge base. Inconsistent with the rules. Therefore, the contradiction removal process (308) is performed. This process will be described with reference to FIG.

【0027】一方、304において、条件値パターンが
異なる場合には、比較対象のルールの条件部が知識ベー
ス内のルールの条件部の部分集合となっているものがあ
るかどうかを調べる(310)。部分集合になっていれ
ば、それらのルールの間で帰結部同士を比較する(31
2)。帰結部も一致する場合には、比較対象のルールは
知識ベース内の他のルールより少ない条件で成立するこ
とになるので、既存の知識ベースは冗長である。したが
って、冗長性の除去の処理を行なう(314)。
On the other hand, if the condition value patterns are different in 304, it is checked whether or not the condition part of the rule to be compared is a subset of the condition part of the rule in the knowledge base (310). .. If they are subsets, the resulting parts are compared between these rules (31
2). If the consequent parts also match, the rule to be compared is satisfied with less conditions than the other rules in the knowledge base, so the existing knowledge base is redundant. Therefore, processing for removing redundancy is performed (314).

【0028】312において、帰結部が一致しなけれ
ば、比較対象のルールは知識ベース内の他のルールと矛
盾するので、矛盾除去の処理を行なう(308)。
In 312, if the consequent parts do not match, the rule to be compared is inconsistent with other rules in the knowledge base, so the process for removing the inconsistency is performed (308).

【0029】さらに、310において比較対象のルール
の帰結部が知識ベース内のルールの条件部の帰結部とな
っているものがあるかどうかを調べる(316)。帰結
部が一致する場合には、比較対象のルールは知識ベース
内の他のルールと冗長である可能性があるので、冗長性
の除去を行なう処理(316)を行なう。
Further, in 310, it is checked whether or not the result part of the rule to be compared is the result part of the condition part of the rule in the knowledge base (316). If the consequent parts match, the rule to be compared may be redundant with other rules in the knowledge base, and therefore the process of removing redundancy (316) is performed.

【0030】316において、帰結部が一致しなけれ
ば、比較対象のルールは知識ベース内の他のルールとは
異なるので、そのルールを新規のルールとして知識ベー
スに追加する(318)。
If the consequents do not match in 316, the rule to be compared is different from the other rules in the knowledge base, so that rule is added to the knowledge base as a new rule (318).

【0031】図3の314における冗長性の除去1の処
理を、図4を用いて説明する。この場合、比較対象のル
ールは知識ベース内の他のルールより少ない条件で成立
することになるので、既存の知識ベースは冗長である。
したがって、比較対象のルールを知識ベースに登録し
(402)、既存のルールを知識ベースから削除する
(404)。
The processing of redundancy elimination 1 in 314 of FIG. 3 will be described with reference to FIG. In this case, the rule to be compared is satisfied with less conditions than the other rules in the knowledge base, so the existing knowledge base is redundant.
Therefore, the rule to be compared is registered in the knowledge base (402), and the existing rule is deleted from the knowledge base (404).

【0032】図3の316における冗長性の除去2の処
理を、図5を用いて説明する。まず、異なる条件値パタ
ーンのうち、異なる条件値が一種類であれば(50
2)、それらの条件値の和集合を取ることにより(50
4)、条件値を修正して一つのルールに統合して(50
6)、知識ベースに登録する(520)。そして、既存
のルールを知識ベースから削除する(522)。
The process of redundancy elimination 2 in 316 of FIG. 3 will be described with reference to FIG. First, if there is only one kind of different condition value among different condition value patterns (50
2) By taking the union of those condition values (50
4) Modify the condition values and combine them into one rule (50
6) Register with the knowledge base (520). Then, the existing rule is deleted from the knowledge base (522).

【0033】502において、異なる条件値が一種類で
ないときには、ルール間で重複関係にある条件値がない
かどうか調べる(508)。重複するものがあれば、そ
れらの条件値を重複している部分と重複していない部分
に分割する(510)。重複している部分を条件値パタ
ーンに持つものについては(512)、それらのルール
間で排反関係にある条件値がないか調べる(514)。
排反関係にある条件値があれば、前述の重複する条件値
の範囲では、排反関係にある条件値はどのような値でも
よいので、排反関係にある条件値を条件値パターンから
除去することにより(516)、ルールの修正を行う
(518)。
In 502, when there is not one kind of different condition value, it is checked whether there is a condition value having an overlapping relation between the rules (508). If there are overlapping values, those condition values are divided into overlapping parts and non-overlapping parts (510). For a condition value pattern having an overlapping portion (512), it is checked whether or not there is a condition value having a reciprocal relation between these rules (514).
If there is a condition value having a discharge relation, the condition value having a discharge relation may be any value in the range of the overlapping condition values described above, so that the condition value having a discharge relation is removed from the condition value pattern. By doing so (516), the rules are modified (518).

【0034】512において、重複している部分を条件
値パターンに持たないものについても、条件値を変更し
てルールを修正する(518)。これらの処理を、知識
ベース内の全てのルールの間で、508において、条件
値に重複関係を持つものがなくなるか、514におい
て、排反関係にある条件値を持つものがなくなるまで繰
り返し行い、冗長性のないルールを作成し、知識ベース
に登録する(520)。そして、既存のルールを知識ベ
ースから削除する(522)。この図5で説明した処理
により、知識ベースの冗長性を減少させることができ
る。
At 512, even if the condition value pattern does not have an overlapping portion, the condition value is changed to modify the rule (518). These processes are repeated among all the rules in the knowledge base until there is no condition having an overlapping relation in the condition value at 508 or there is no condition having a contradictory condition value at 514. A rule without redundancy is created and registered in the knowledge base (520). Then, the existing rule is deleted from the knowledge base (522). By the processing described with reference to FIG. 5, the redundancy of the knowledge base can be reduced.

【0035】図3の308における矛盾の除去の処理
を、図6を用いて説明する。まず、矛盾であることを利
用者に知らせ(602)、矛盾を解消するために新しく
追加するべき条件値がないかを聞く(604)。新しく
追加する条件値があれば、その条件値を条件値パターン
に追加してルールを修正し(606)、修正したルール
を知識ベースに登録する(608)。そして、既存のル
ールを知識ベースから削除する(610)。604にお
いて新しく追加する条件値がなければ、比較対象のルー
ルは知識ベース内の他のルールと矛盾していることとを
知らせる(612)。図6で説明した処理により、知識
ベースの整合性を保つことができる。
The process of removing the contradiction in 308 of FIG. 3 will be described with reference to FIG. First, the user is informed of a contradiction (602) and asked if there is a new condition value to be added to resolve the contradiction (604). If there is a new condition value to be added, the condition value is added to the condition value pattern to modify the rule (606), and the modified rule is registered in the knowledge base (608). Then, the existing rule is deleted from the knowledge base (610). If there is no new condition value to be added in 604, it is informed that the rule to be compared is inconsistent with other rules in the knowledge base (612). The processing described with reference to FIG. 6 makes it possible to maintain the consistency of the knowledge base.

【0036】なお、以上の説明では、あらかじめ知識ベ
ースに存在するルールについて冗長性の除去を行なった
が、この処理は、図7に示すように、既存の知識ベース
700に新たなルール704を追加する際にも適用でき
る。その他は図1と同様である。
In the above description, the redundancies are removed for the rules existing in the knowledge base in advance, but this process adds a new rule 704 to the existing knowledge base 700 as shown in FIG. It can also be applied when doing. Others are the same as in FIG.

【0037】また、本発明はルール同士の比較を行なっ
ているので、図6で説明した矛盾に対応した処理を用い
て、知識ベース内のルールの矛盾の検出610をはじめ
とする知識ベースの整合性を保つ処理にして応用するこ
とができる。さらに、本発明は構築中の知識ベースのデ
バッグに応用することができる。
Further, since the present invention compares the rules with each other, the knowledge base matching including the rule contradiction detection 610 in the knowledge base is detected by using the process corresponding to the contradiction described in FIG. It can be applied as a treatment that preserves sex. Furthermore, the present invention has application in debugging knowledge bases under construction.

【0038】次に、本発明を簡単なルールの冗長性の削
除に応用した例を図8を用いて説明する。図8において
帰結部が同じで、条件部が1と2に示す2つのルールが
与えられた場合を考える。条件値は条件Aも条件Bも異
なる。ここで、条件Bはb1とb2しかとらないとす
る。条件Aについてはa2が重複しているので、ルール
1をルール1−1、1−2に、ルール2をルール2−
1、2−2に分割する。すると、ルール1−2とルール
2−1は条件Aが共通で、条件Bが排反関係にあるの
で、条件Bを削除し、新たにルール3を作成する。した
がって、ルール3ではa2のみを満たせばよいことにな
る。
Next, an example in which the present invention is applied to the deletion of simple rule redundancy will be described with reference to FIG. In FIG. 8, consider the case where the consequent part is the same and the condition part is given two rules 1 and 2. The condition value is different between the condition A and the condition B. Here, it is assumed that the condition B is only b1 and b2. As for condition A, a2 is duplicated, so rule 1 is rule 1-1, rule 1-2 is rule 2-
It is divided into 1, 2-2. Then, the rule 1-2 and the rule 2-1 have the condition A in common and the condition B has an anti-relationship relationship, so the condition B is deleted and a new rule 3 is created. Therefore, in rule 3, only a2 needs to be satisfied.

【0039】次に、本発明をシュミット・トリガの挙動
推論で得た知識の管理に応用した例を、シュミット・ト
リガ回路の回路図である図9と入出力特性である図10
を用いて説明する。この2つの図において、同じ参照番
号は同じものをさす。この回路は電源電圧(Vcc)8
04を付加し、入力電圧(Vi)800を増加、減少さ
せることにより、出力電圧(Vo)802が、図9に示
すようなヒステリシスのある入出力特性を持つ。ここ
で、V1(901)は出力電圧の値が電源電圧804か
ら低い値(V3)904に変化する入力電圧の値。V2
(902)はその逆の変化を行なう入力電圧の値であ
る。入力電圧800を0から出力電圧802が飽和する
まで増加させるシミュレーションと、入力電圧800を
出力電圧802が飽和している状態から減少させるシミ
ュレーションを行なうと以下のような知識が得られる。
Next, an example in which the present invention is applied to the management of the knowledge obtained by the behavior inference of the Schmitt trigger, is a circuit diagram of the Schmitt trigger circuit, and FIG. 10 is an input / output characteristic.
Will be explained. Like reference numerals refer to like elements in the two figures. This circuit has a power supply voltage (Vcc) of 8
By adding 04 and increasing / decreasing the input voltage (Vi) 800, the output voltage (Vo) 802 has an input / output characteristic with hysteresis as shown in FIG. Here, V1 (901) is the value of the input voltage at which the value of the output voltage changes from the power supply voltage 804 to the low value (V3) 904. V2
(902) is the value of the input voltage that undergoes the opposite change. The following knowledge can be obtained by performing a simulation of increasing the input voltage 800 from 0 until the output voltage 802 is saturated and a simulation of decreasing the input voltage 800 from the state where the output voltage 802 is saturated.

【0040】(1)入力電圧(Vi)増加時 (a)dVi/dt>0,0≦Vi<V2 のとき V
o=V3 (b)dVi/dt>0,V2≦Vi のときVo=V
cc (2)入力電圧(Vi)減少時 (c)dVi/dt<0,V1<Vi のとき Vo=
Vcc (d)dVi/dt<0,0≦Vi≦V1 のときVo
=V3 上記の4つのルールのうち、(a)と(d)を比較する
と、条件部が異なる(304)が、帰結部はVo=V3
で同じである(312)。この2つのルールについてV
iに関しては、0≦Vi<V2の範囲は重複している
(508)。Viについての条件値を分割する(51
0)と、重複している範囲では、dVi/dtは正と負
の両方共取ることができるため、dVi/dtの条件は
排反関係である(514)。したがって、この範囲では
dVi/dtの値はどのような値でもよい。そこで、こ
の条件を冗長として除去することにより(516)、
(a)と(d)のルールの代わりに以下の2つのルール
を作成することができる。
(1) When the input voltage (Vi) is increased (a) When dVi / dt> 0, 0 ≦ Vi <V2 V
o = V3 (b) When dVi / dt> 0 and V2 ≦ Vi, Vo = V
cc (2) When input voltage (Vi) decreases (c) When dVi / dt <0, V1 <Vi Vo =
Vcc (d) dVi / dt <0, Vo when 0 ≦ Vi ≦ V1
= V3 Among the above four rules, comparing (a) and (d), the condition part is different (304), but the consequent part is Vo = V3
And the same (312). About these two rules V
Regarding i, the range of 0 ≦ Vi <V2 overlaps (508). The condition value for Vi is divided (51
0) and dVi / dt can take both positive and negative in the overlapping range, the condition of dVi / dt is anti-reciprocal relation (514). Therefore, the value of dVi / dt may be any value in this range. Therefore, by removing this condition as redundant (516),
The following two rules can be created instead of the rules of (a) and (d).

【0041】 (e)0≦Vi<V1 のとき Vo=V3 (f)dVi/dt<0,V1≦Vi≦V2 のときV
o=V3 同様に、(b)と(c)の代わりに以下の2つのルール
を作成することができる。
(E) When 0 ≦ Vi <V1, Vo = V3 (f) When dVi / dt <0 and V1 ≦ Vi ≦ V2, V = V3
o = V3 Similarly, the following two rules can be created instead of (b) and (c).

【0042】(g)V2≦Vi のときVo=Vcc (h)dVi/dt<0,V1<Vi≦V2 のとき
Vo=Vcc このように、ルールの冗長な条件を取り除き、条件値を
変更することで、ルールの冗長性を減少させることがで
きる。
(G) When V2≤Vi Vo = Vcc (h) When dVi / dt <0, V1 <Vi≤V2
Vo = Vcc In this way, the redundancy of the rule can be reduced by removing the redundant condition of the rule and changing the condition value.

【0043】[0043]

【発明の効果】以上説明したように、本発明によれば、
知識ベース内の冗長な条件を除去することにより、知識
ベースの冗長性を減らすことができ、個別のルール適用
範囲を広げることができる。さらに、知識ベース内のル
ールを整合性を保つことができる。
As described above, according to the present invention,
By eliminating redundant conditions in the knowledge base, the redundancy of the knowledge base can be reduced and the individual rule coverage can be broadened. Moreover, the rules in the knowledge base can be kept consistent.

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

【図1】本発明の一実施例を示す知識ベース管理装置の
ブロック図。
FIG. 1 is a block diagram of a knowledge base management apparatus showing an embodiment of the present invention.

【図2】本発明の知識ベース管理装置の一構成図。FIG. 2 is a block diagram of a knowledge base management apparatus of the present invention.

【図3】ルールの比較を示すフローチャート。FIG. 3 is a flowchart showing comparison of rules.

【図4】冗長性の除去1の処理を示すフローチャート。FIG. 4 is a flowchart showing processing of redundancy removal 1;

【図5】冗長性の除去2の処理を示すフローチャート。FIG. 5 is a flowchart showing processing of redundancy removal 2;

【図6】矛盾除去の処理を示すフローチャート。FIG. 6 is a flowchart showing a process of removing a contradiction.

【図7】本発明の他の実施例を示す知識ベース管理装置
のブロック図。
FIG. 7 is a block diagram of a knowledge base management apparatus showing another embodiment of the present invention.

【図8】ルールの冗長性の除去を示す図。FIG. 8 is a diagram showing removal of rule redundancy.

【図9】シュミットトリガ回路を示す図。FIG. 9 is a diagram showing a Schmitt trigger circuit.

【図10】シュミットトリガ回路の入出力特性を示す
図。
FIG. 10 is a diagram showing input / output characteristics of a Schmitt trigger circuit.

【図11】従来の技術におけるルールの変更を示す図。FIG. 11 is a diagram showing a rule change in the conventional technique.

【図12】従来技術におけるルールの変更を示す図。FIG. 12 is a diagram showing a change in rule in the conventional technique.

【図13】従来技術におけるルールの変更を示す図。FIG. 13 is a diagram showing a change in rule in the conventional technique.

【図14】従来技術におけるルールの変更を示す図。FIG. 14 is a diagram showing a change in rule in the conventional technique.

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

100…知識ベース、104…知識比較部、116…知
識洗練部、120…新規ルール。
100 ... Knowledge base, 104 ... Knowledge comparing unit, 116 ... Knowledge refining unit, 120 ... New rule.

───────────────────────────────────────────────────── フロントページの続き (72)発明者 阿部 正博 東京都国分寺市東恋ケ窪1丁目280番地 株式会社日立製作所中央研究所内 ─────────────────────────────────────────────────── ─── Continuation of the front page (72) Inventor Masahiro Abe 1-280, Higashi Koikekubo, Kokubunji, Tokyo Inside the Central Research Laboratory, Hitachi, Ltd.

Claims (6)

【特許請求の範囲】[Claims] 【請求項1】条件部とその条件が満足されたときに有効
となる帰結部を持つルールの集合である知識ベースを持
つ知識ベース管理装置において、前記知識ベース内のル
ール間について、条件部を構成する条件値を解析する条
件値解析部を含む条件部比較部と、帰結部を比較する帰
結部比較部を含む知識比較部を有し、条件部と帰結部を
それぞれ比較した結果、複数の条件値を変更する条件値
変更部を含み、条件値を変更した結果に基づいて、新規
のルールを作成する知識洗練部を有し、前記新規ルール
を知識ベースに格納することを特徴とする知識ベース管
理装置。
1. A knowledge base management apparatus having a knowledge base, which is a set of rules having a condition part and a consequent part which is effective when the condition is satisfied, is provided with a condition part between rules in the knowledge base. It has a condition part comparison part that includes a condition value analysis part that analyzes the condition value to be configured, and a knowledge comparison part that includes a consequent part comparison part that compares the consequent part. A knowledge including a condition value changing unit for changing a condition value, a knowledge refining unit for creating a new rule based on a result of changing the condition value, and storing the new rule in a knowledge base. Base management device.
【請求項2】条件部とその条件が満足されたときに有効
となる帰結部を持つルールの集合である知識ベースを持
つ知識ベース管理装置において、前記知識ベースに追加
されたルールと前記知識ベース中の既存のルールに対し
て、条件部を構成する条件値を解析する条件値解析部を
含む条件部比較部と、帰結部を比較する帰結部比較部を
含む知識比較部を有し、条件部と帰結部をそれぞれ比較
した結果、複数の条件値を変更する条件値変更部を含
み、条件値を変更した結果に基づいて、新規のルールを
作成する知識洗練部を有し、前記新規ルールを知識ベー
スに格納することを特徴とする知識ベース管理装置。
2. A knowledge base management apparatus having a knowledge base, which is a set of rules having a condition part and a consequent part that is effective when the condition is satisfied, in the knowledge base management device, the rules added to the knowledge base, and the knowledge base. For existing rules in, the condition part comparison part that includes the condition value analysis part that analyzes the condition values that form the condition part, and the knowledge comparison part that includes the consequent part comparison part that compares the consequent part Section and consequent section, the result includes a condition value changing section for changing a plurality of condition values, and a knowledge refinement section for creating a new rule based on the result of changing the condition value. A knowledge base management device characterized by storing the information in a knowledge base.
【請求項3】条件部とその条件が満足されたときに有効
となる帰結部を持つルールの集合である知識ベースを持
つ知識ベース管理方法において、前記知識ベース内のル
ール間について、条件部を構成する条件値を解析する条
件同士を解析し、帰結部同士を解析し、条件部と帰結部
をそれぞれ比較した結果に基づいて複数の条件値を変更
し、新規のルールを作成し、前記新規ルールを知識ベー
スに格納することを特徴とする知識ベース管理方法。
3. A knowledge base management method having a knowledge base, which is a set of rules having a condition part and a consequent part which is effective when the condition is satisfied, in the knowledge base, a condition part is defined between rules in the knowledge base. Analyze the condition values to be composed Analyze the conditions, analyze the consequent parts, change the condition values based on the result of comparing the condition part and the consequent part, create a new rule, A knowledge base management method characterized by storing rules in a knowledge base.
【請求項4】条件部とその条件が満足されたときに有効
となる帰結部を持つルールの集合である知識ベースを持
つ知識ベース管理方法において、前記知識ベースに追加
されたルールと知識ベース中の既存のルールに対して、
条件部を構成する条件値を解析する条件同士を解析し、
帰結部同士を解析し、条件部と帰結部をそれぞれ比較し
た結果に基づいて複数の条件値を変更し、新規のルール
を作成し、前記新規ルールを知識ベースに格納すること
を特徴とする知識ベース管理方法。
4. A knowledge base management method having a knowledge base, which is a set of rules having a conditional part and a consequent part that is effective when the condition is satisfied, in a rule and a knowledge base added to the knowledge base. For existing rules of
Analyze conditions that analyze the condition values that make up the condition part,
Knowledge characterized by analyzing the consequent parts, changing a plurality of condition values based on the result of comparing the consequent part and the consequent part, creating a new rule, and storing the new rule in a knowledge base Base management method.
【請求項5】条件部とその条件が満足されたときに有効
となる帰結部を持つルールの集合である知識ベースを持
つ知識ベース管理方法において、前記知識ベース内のル
ール間について、条件部を構成する条件値を解析する条
件同士を解析し、帰結部同士を解析し、条件部と帰結部
をそれぞれ比較した結果に基づいてルール間の矛盾を検
出することを特徴とする知識ベース管理方法。
5. A knowledge base management method having a knowledge base, which is a set of rules having a conditional part and a consequent part that is effective when the condition is satisfied, in the knowledge base, a conditional part is provided between rules in the knowledge base. A knowledge base management method characterized in that conditions for analyzing constituent conditions are analyzed, consequent parts are analyzed, and a contradiction between rules is detected based on a result of comparison between the condition part and the consequent part.
【請求項6】条件部とその条件が満足されたときに有効
となる帰結部を持つルールの集合である知識ベースを持
つ知識ベース管理方法において、知識ベースに追加され
たルールと知識ベース中の既存のルールに対して、条件
部を構成する条件値を解析する条件同士を解析し、帰結
部同士を解析し、条件部と帰結部をそれぞれ比較した結
果に基づいてルール間の矛盾を検出することを特徴とす
る知識ベース管理方法。
6. A knowledge base management method having a knowledge base, which is a set of rules having a conditional part and a consequent part which is effective when the condition is satisfied, in a rule added to the knowledge base and in the knowledge base. For existing rules, analyze the condition values that make up the condition part, analyze the conditions, analyze the consequence parts, and detect inconsistencies between the rules based on the results of comparing the condition part and the consequence part. A knowledge base management method characterized by the above.
JP4109152A 1992-04-03 1992-04-03 Knowledge base management method Expired - Lifetime JPH0820959B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP4109152A JPH0820959B2 (en) 1992-04-03 1992-04-03 Knowledge base management method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP4109152A JPH0820959B2 (en) 1992-04-03 1992-04-03 Knowledge base management method

Publications (2)

Publication Number Publication Date
JPH05282152A true JPH05282152A (en) 1993-10-29
JPH0820959B2 JPH0820959B2 (en) 1996-03-04

Family

ID=14502948

Family Applications (1)

Application Number Title Priority Date Filing Date
JP4109152A Expired - Lifetime JPH0820959B2 (en) 1992-04-03 1992-04-03 Knowledge base management method

Country Status (1)

Country Link
JP (1) JPH0820959B2 (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008065448A (en) * 2006-09-05 2008-03-21 Nec Corp Policy inspection system, method and program
JP2015057723A (en) * 2014-10-15 2015-03-26 洋彰 宮崎 Autonomous learning type knowledge construction device
JP2015118449A (en) * 2013-12-17 2015-06-25 三菱重工業株式会社 Rule verification device, rule verification method and program
WO2024075307A1 (en) * 2022-10-07 2024-04-11 富士通株式会社 Information processing program, information processing method and information processing device

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008065448A (en) * 2006-09-05 2008-03-21 Nec Corp Policy inspection system, method and program
JP2015118449A (en) * 2013-12-17 2015-06-25 三菱重工業株式会社 Rule verification device, rule verification method and program
JP2015057723A (en) * 2014-10-15 2015-03-26 洋彰 宮崎 Autonomous learning type knowledge construction device
WO2016059733A1 (en) * 2014-10-15 2016-04-21 洋彰 宮崎 Autonomous learning-type knowledge construction machine
WO2024075307A1 (en) * 2022-10-07 2024-04-11 富士通株式会社 Information processing program, information processing method and information processing device

Also Published As

Publication number Publication date
JPH0820959B2 (en) 1996-03-04

Similar Documents

Publication Publication Date Title
JP2710555B2 (en) System and method for automating the enforcement of constraints in a database
EP2863311B1 (en) Domain centric test data generation
JP2814691B2 (en) Fault diagnosis method based on inference method
JPH05282152A (en) Device and method for managing knowledge base
US6678853B1 (en) Method and apparatus for generating random code
US7080056B1 (en) Automatic programming
Wordsworth Specifying and refining programs with Z
JPS62198930A (en) Reasoning method
JPS583027A (en) Semantic information processing system on data base
JPH0330024A (en) Expert system
JPH04177460A (en) Record processor
JPS61123929A (en) Data retrieval system
Rubin Relaxed fuzzy randomization
Grummitt Automated Performance Management Advice Using Computational Intelligence
Ryman Illuminating software specifications
JP3945144B2 (en) Inductive reasoning system
JPS63205760A (en) Test coverage system for logical simulation
JPS62163156A (en) Control system for access of data set
JPS62115569A (en) System for detecting matching contradiction between managing lists
JPH03252814A (en) Knowledge base system
JPH04279936A (en) Rule knowledge base system in expert system
Haslach Isn't That Our Software?
JPH02204835A (en) Rule type program executing method
JPH0774997B2 (en) Qualitative reasoning system
JPH02163823A (en) Set value check system at decision of system constitution

Legal Events

Date Code Title Description
EXPY Cancellation because of completion of term