JPH0275024A - Knowledge input method for expert system - Google Patents

Knowledge input method for expert system

Info

Publication number
JPH0275024A
JPH0275024A JP22781788A JP22781788A JPH0275024A JP H0275024 A JPH0275024 A JP H0275024A JP 22781788 A JP22781788 A JP 22781788A JP 22781788 A JP22781788 A JP 22781788A JP H0275024 A JPH0275024 A JP H0275024A
Authority
JP
Japan
Prior art keywords
rule
column
rules
hypothesis
hypotheses
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
JP22781788A
Other languages
Japanese (ja)
Inventor
Atsushi Arai
淳 荒井
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.)
Meidensha Corp
Meidensha Electric Manufacturing Co Ltd
Original Assignee
Meidensha Corp
Meidensha Electric Manufacturing Co 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 Meidensha Corp, Meidensha Electric Manufacturing Co Ltd filed Critical Meidensha Corp
Priority to JP22781788A priority Critical patent/JPH0275024A/en
Publication of JPH0275024A publication Critical patent/JPH0275024A/en
Pending legal-status Critical Current

Links

Landscapes

  • Devices For Executing Special Programs (AREA)

Abstract

PURPOSE:To easily grasp the relation between rules by arranging the opinions serving as the elements of a rule condition part in a vertical row together with the rule hypothesis parts arranged in a horizontal row of a table respectively and adding the marks to the intersecting points between those vertical and horizontal rows for production of rules. CONSTITUTION:The opinions serving as the elements of a rule condition part are arranged in a vertical or horizontal column together with the rule hypotheses arranged in the other column respectively. Thus a rule table is produced and displayed on a screen 5. A mark is added to the intersecting point between the column of the table corresponding to the opinion of the rule to be produced and the column corresponding to the rule hypotheses via a man-machine interface MI. Then a rule describing part 6 detects the mark of the table, and the hypotheses and opinions are picked up out of the column related to the mark for production of a rule where the AND conditions of the relevant opinion are defined as a condition part. The produced rule is stored in a rule memory 1. Thus the rules are produced based on the opinions and hypotheses displayed on the screen 5 via a table or a tree structure. In such a way, the correspondence between the hypotheses and opinions can be easily grasped.

Description

【発明の詳細な説明】 A、産業上の利用分野 本発明は人工知能の応用分野の一つであるエキスパート
システムを構築する場合の知識の入力方法に関するもの
である。
DETAILED DESCRIPTION OF THE INVENTION A. Field of Industrial Application The present invention relates to a knowledge input method when constructing an expert system, which is one of the applied fields of artificial intelligence.

B1発明の概要 本発明は、ルール記憶部内のルールを用いて推論機構に
より推論を実行するエキスパートシステムの知識を入力
する方法において、 ルールの条件部の要素である所見の各々を例えば縦の列
に配列すると共にルールの仮説部を横の列に配列してな
るテーブルを作成し、それらの交点に印を付してルール
を作成することによって、ルール間の関係を容易に把握
できるようにしたものである。
B1 Summary of the Invention The present invention provides a method for inputting knowledge of an expert system that performs inference by an inference mechanism using rules in a rule storage unit, in which each finding, which is an element of a conditional part of a rule, is arranged in a vertical column, for example. A table is created in which the hypothesis parts of rules are arranged in horizontal columns, and the intersection points are marked to create rules, making it easy to understand the relationships between rules. It is.

C0従来の技術 人工知能の応用分野の一つとしてエキスパートシステム
があり、このシステムは専門家の持っている知識を知識
工学の手法を用いてコンピュータFに組み込み、その専
門家と同じレベルの能力を持つシステムを実現しようと
するものである。こうしたエキスバートンステムの一例
としてプロダクションシステムをとりあげて説明すると
、先ず問題を解決するために必要な知識を第4図に示t
ようにマンマシン・インターフェイスMlを介17てル
ールとしてルール記憶部l内に予め格納しておく、そし
て例えばマンマシン・、インターフェイスMlを介して
必要な情報を作業記憶部(ワーキングメモリ)2に書き
込み、推論機構3によりルール記憶部l内のルール群の
中から萌記情報に適合するルールを選択し、そのルール
を適用する。
C0 Conventional technology One of the application fields of artificial intelligence is the expert system.This system incorporates the knowledge of experts into the computer F using knowledge engineering methods, and creates the same level of ability as the experts. The aim is to realize a system that has To explain a production system as an example of such an exuberant system, first, the knowledge necessary to solve a problem is shown in Figure 4.
This is stored in advance as a rule in the rule storage unit l via the man-machine interface Ml 17, and necessary information is written into the working memory unit (working memory) 2 via the man-machine interface Ml, for example. , the inference mechanism 3 selects a rule that matches the Moeki information from the rule group in the rule storage unit l, and applies that rule.

ルールは「もし温度がT℃以−Lならバルブを閉める」
といったIP−THEN〜の形で表現されIF〜の部分
は条件部、THEN〜の部分は仮説(実行部)と呼ばれ
ている。推論過程では、ルールの適用に従って作業記憶
部2内のデータか更新され、最終的に適用するルールが
なくなったとき。
The rule is ``If the temperature is below T℃ -L, close the valve.''
It is expressed in the form IP-THEN~, where the IF~ part is called the condition part, and the THEN~ part is called the hypothesis (execution part). In the inference process, the data in the working memory unit 2 is updated in accordance with the application of rules, and finally when there are no more rules to apply.

あるいは予め指定された状態になったときに推論が終了
する。
Alternatively, the inference ends when a prespecified state is reached.

このようなシステムを構築するにあたってルールをルー
ル記憶部内に格納するためには、各ルールについてルー
ル記述の文法に従い例えばルール名 IF  A=B THEN   I=1+1 のようにルール名、条件部及び仮説をマンマシンインタ
ーフェイスを介して入力していた。
In order to store rules in the rule storage unit when constructing such a system, for each rule, the rule name, condition part, and hypothesis must be written according to the rule description grammar, for example, rule name IF A=B THEN I=1+1. The input was through a man-machine interface.

B1発明が解決しようとする課題 しかしながらこのような方法でルールを入力する場合、
ルール数が増えてくると、ルール間の関係を把握しにく
くて整理しにくいという問題点が1  ある。このため
誤って記述1.たルールを検出するのに長い時間と多く
の手間を要する。
Problems to be solved by the B1 invention However, when entering rules in this way,
One problem is that as the number of rules increases, it becomes difficult to understand and organize the relationships between the rules. For this reason, incorrect description 1. It takes a long time and a lot of effort to detect the rules that have been created.

本発明の目的はこのような課題を解決することにある。An object of the present invention is to solve such problems.

IC3課題を解決するための手段 第1の発明は[ルールの条件部の要素である所見を縦ま
たは横の欄の一方の欄に配列すると共に、ルールの仮説
を他方の欄に配列する。二とによって作成したルール用
テーブルを画面に表示(2、作成すべきルールの所見に
対応する前記テーブルの欄と当該ルールの仮説に対応す
る欄との交点にマンマシンインターフェイスを介して印
を付]7、ルール記述部が前記テーブルの印を検出して
、当該印に係る欄の仮説と所見とを拾い出し、その所見
のアンド条件を条件部とするルールを作成し、ルール記
憶部内に格納することを特徴と6゛る。」第2の発明は
[ルールの条件部の要素である所見とルールの仮説とを
分けて画面上に配列すると共に、作成すべきルールの条
件部の所見の総てに対して当該ルールの仮説から木構造
となるようにマンマシンインターフェイスを介してライ
ンを引き、ルール記述部がその木構造にもとずいてルー
ルを作成し、ルール記憶部内に格納することを特徴とす
る。I F、実施例 第1図は本発明方法を実施する装置の一例を示す構成図
であり、第4図と同一符号のものは同一部分を示す。こ
の実施例できマンマシンインターフェイスMlからデー
タを入力して内部メモリ4にルール用テーブルを構築し
、これを例えばCRT画面5に表示する。このテーブル
はルールの条件部の要素である所見を縦の欄に配列する
と共にルールの仮説を横の欄に配列してなる。ここで所
見及び仮説については、「もしある値lが下限値を下ま
わっていれば、ポンプlを駆動ケる」というルールを想
定すると、前段の[ある値1が下限値を丁まわっている
−1という部分が所見に相当し、「ポンプ1を駆動する
」という部分が仮説に相当する。
Means for Solving the IC3 Problem The first invention is [Arranging findings, which are elements of the condition part of a rule, in one column of vertical or horizontal columns, and arranging the hypotheses of the rule in the other column. Display the rule table created by 2 on the screen (2. Mark the intersection of the column of the table corresponding to the findings of the rule to be created and the column corresponding to the hypothesis of the rule via the man-machine interface. ]7. The rule description unit detects the mark in the table, picks out the hypothesis and findings in the column related to the mark, creates a rule with the AND condition of the finding as the condition part, and stores it in the rule storage unit. The second invention is characterized in that [findings that are elements of the conditional part of a rule and hypotheses of the rule are arranged separately on the screen, and the findings of the conditional part of the rule to be created are A line is drawn through the man-machine interface so that a tree structure is created from the hypothesis of the rule for all the rules, and the rule description section creates rules based on the tree structure and stores them in the rule storage section. IF, Embodiment FIG. 1 is a block diagram showing an example of an apparatus for carrying out the method of the present invention, and the same reference numerals as in FIG. 4 indicate the same parts. A rule table is constructed in the internal memory 4 by inputting data from the interface Ml, and this is displayed, for example, on the CRT screen 5.This table arranges findings, which are elements of the condition part of the rule, in vertical columns, and also displays the rules. Hypotheses are arranged in the horizontal column.As for the findings and hypotheses, assuming the rule ``If a certain value l is below the lower limit value, the pump l can be driven.'' [The part where a certain value 1 is just below the lower limit -1 corresponds to the finding, and the part that says "pump 1 is driven" corresponds to the hypothesis.

第2図はルール用テーブルの一例を示す図であり、この
例では所見を文章を数値化した欄が設置3られでいる。
FIG. 2 is a diagram showing an example of a rule table, and in this example, there is provided a column 3 in which sentences of findings are digitized.

テーブル中の51 ”−84は夫々値1−4に相当する
。このようなテーブルを作成した後ルールを入力するた
めには、ルールの条件部の所見に対応する欄と当該ルー
ルの仮説に対応する側との交点の総てにマンマシンイン
ターフェイスM■を介して印を付す。例えば仮説lをも
つルールの条件部がテーブルの1.3.5.7段目の所
見のアンド条件により構成される場合、仮説lに対応す
る欄において1.3.5.7段目にO印を付す。ルール
記述部6はテーブルの印を拾い出して印の付された所見
のアンド条件を条件部とするルールを作成し、ルール記
憶部l内に格納する。
51"-84 in the table corresponds to the values 1-4, respectively. To enter a rule after creating such a table, enter the column corresponding to the finding in the condition part of the rule and the column corresponding to the hypothesis of the rule. Mark all the intersection points with the side that does If so, mark O in the column 1, 3, 5, or 7 in the column corresponding to hypothesis l.The rule description part 6 picks up the marks from the table and sets the AND condition of the marked finding as the condition part. A rule is created and stored in the rule storage section l.

また本発明では、第1図に示す画面5にて第3図に示す
ような木構造としてルール全体を表示するようにしても
よい。この場合所見とルールとを分けて画面上に配列す
ると共に、作成すべきルールの条件部の所見の総てに対
して当該ルールの仮説から木構造となるようにマンマシ
ンインターフ、丁イスM Iを介してラインを引く。第
3図中下段のO印は所見に対応するもの、中段の○印は
中間仮説に対応するもの、−L段の○印は仮説に対応す
るものであり、2つの○印から1つの○印にラインが伸
びているということは、前者のアンド条件によって後者
が成り立つことを意味し、オア(o r)の指定がある
場合にはオア条件に成り立−1)ことを意味している。
Further, in the present invention, the entire rule may be displayed on the screen 5 shown in FIG. 1 as a tree structure as shown in FIG. 3. In this case, the findings and rules are arranged separately on the screen, and the man-machine interface, DICE M I Draw a line through. The O mark in the middle lower row of Figure 3 corresponds to the findings, the ○ mark in the middle row corresponds to the intermediate hypothesis, and the ○ mark in the -L row corresponds to the hypothesis. The line extending to the mark means that the latter holds true due to the former AND condition, and if there is an or (or) specification, it means that the OR condition holds -1). .

なお中間仮説とは、全体の構造がより理解し易いように
、例えば[所見1.2が同時に成り立っていること」の
ように所見の成立状態を示すために取り入れられたもの
である。その後ルール記述部6がこの木構造にもとすい
てルールを作成し、ルール記憶部1内に格納する。
Note that the intermediate hypothesis is introduced to make the overall structure easier to understand, and to indicate the state in which the findings hold, for example, [Findings 1 and 2 hold simultaneously.] Thereafter, the rule description unit 6 creates rules based on this tree structure and stores them in the rule storage unit 1.

G1発明の効果 本発明によれば、ルールの条件部の要素である所見と仮
説とをテーブルや木構造によって画面に表示し、この表
示にもとすいてルールが作成されるため、仮説と所見と
の対応を容易に把握することができるからルール間の関
係が把みやすく、従って誤って記述したルールを短時間
で確実に検出することができると共に、知識全体を容易
に理解することができる。
G1 Effects of the Invention According to the present invention, findings and hypotheses, which are elements of the condition part of a rule, are displayed on the screen in a table or tree structure, and rules are created based on this display. Since the correspondence between rules can be easily grasped, it is easy to understand the relationship between rules, and therefore, incorrectly written rules can be detected reliably in a short time, and the entire knowledge can be easily understood.

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

第1図は本発明の実施例に用いた装置を示す構成図、第
2図はルール用テーブルを画面に表示した状態を示す説
明図、第3図は木構造を画面に表示した状態を示す説明
図、第4図は従来例を示す構造図である。 ト・・ルール記憶部、2・・・作業記憶部、3・・・推
論機構、4・・・内部メモリ、5・・・画面、6・・・
ルール記述部。 外2名 実施例に用いた装置の構成図 1・・・ルール記憶部 2・作業記憶部 3・・・推論機構 4・・・内部メモリ 5・・・画面 6・・・ルール記述部 第3図 木構造の画面表示図 仮          仮             
       仮説         説      
             説見    見    見
    見    見    見    見    見
    見    ql 2345678910 第4図 従来例を示す構成図
Fig. 1 is a configuration diagram showing a device used in an embodiment of the present invention, Fig. 2 is an explanatory diagram showing a state where a rule table is displayed on the screen, and Fig. 3 shows a state where a tree structure is displayed on the screen. The explanatory diagram, FIG. 4, is a structural diagram showing a conventional example. ... rule storage section, 2 ... working memory section, 3 ... inference mechanism, 4 ... internal memory, 5 ... screen, 6 ...
Rule description section. Configuration diagram of the device used in the example by two people 1... Rule storage section 2, working memory section 3... Inference mechanism 4... Internal memory 5... Screen 6... Rule description section 3rd Temporary screen display diagram of tree structure
hypothesis theory
Commentary See See See See See See See ql 2345678910 Figure 4 Configuration diagram showing a conventional example

Claims (2)

【特許請求の範囲】[Claims] (1)条件部と仮説とからなるルールをルール記憶部内
に格納し、このルールを用いて推論機構により推論を実
行するエキスパートシステムの知識を入力する方法にお
いて、 ルールの条件部の要素である所見を縦または横の欄の一
方の欄に配列すると共に、ルールの仮説を他方の欄に配
列することによって作成したルール用テーブルを画面に
表示し、作成すべきルールの所見に対応する前記テーブ
ルの欄と当該ルールの仮説に対応する欄との交点にマン
マシンインターフェイスを介して印を付し、ルール記述
部が前記テーブルの印を検出して、当該印に係る欄の仮
説と所見とを拾い出し、その所見のアンド条件を条件部
とするルールを作成し、ルール記憶部内に格納すること
を特徴とするエキスパートシステムの知識入力方法。
(1) A method in which a rule consisting of a conditional part and a hypothesis is stored in a rule storage part, and the knowledge of an expert system that uses this rule to perform inference by an inference mechanism is inputted. A rule table created by arranging the rules in one of the vertical or horizontal columns and the rule hypotheses in the other column is displayed on the screen, and the table corresponding to the findings of the rule to be created is displayed. The intersection of the column and the column corresponding to the hypothesis of the rule is marked via the man-machine interface, and the rule description section detects the mark in the table and picks up the hypothesis and findings in the column corresponding to the mark. A knowledge input method for an expert system, characterized in that a rule is created having the AND condition of the finding as a condition part, and the rule is stored in a rule storage part.
(2)ルール記憶部内のルールを用いて推論機構により
推論を実行するエキスパートシステムの知識を入力する
方法において、 ルールの条件部の要素である所見とルールの仮説とを分
けて画面上に配列すると共に、作成すべきルールの条件
部の所見の総てに対して当該ルールの仮説から木構造と
なるようにマンマシンインターフェイスを介してライン
を引き、ルール記述部がその木構造にもとずいてルール
を作成し、ルール記憶部内に格納することを特徴とする
エキスパートシステムの知識入力方法。
(2) In a method of inputting knowledge to an expert system that performs inference by an inference mechanism using the rules in the rule storage section, findings, which are elements of the conditional part of the rule, and the hypothesis of the rule are arranged separately on the screen. At the same time, lines are drawn through the man-machine interface to form a tree structure based on the hypothesis of the rule for all findings in the condition part of the rule to be created, and the rule description part is based on that tree structure. A knowledge input method for an expert system characterized by creating rules and storing them in a rule storage unit.
JP22781788A 1988-09-12 1988-09-12 Knowledge input method for expert system Pending JPH0275024A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP22781788A JPH0275024A (en) 1988-09-12 1988-09-12 Knowledge input method for expert system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP22781788A JPH0275024A (en) 1988-09-12 1988-09-12 Knowledge input method for expert system

Publications (1)

Publication Number Publication Date
JPH0275024A true JPH0275024A (en) 1990-03-14

Family

ID=16866842

Family Applications (1)

Application Number Title Priority Date Filing Date
JP22781788A Pending JPH0275024A (en) 1988-09-12 1988-09-12 Knowledge input method for expert system

Country Status (1)

Country Link
JP (1) JPH0275024A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2014016998A1 (en) * 2012-07-24 2014-01-30 日本電気株式会社 Rule management device, rule management method, and program

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2014016998A1 (en) * 2012-07-24 2014-01-30 日本電気株式会社 Rule management device, rule management method, and program

Similar Documents

Publication Publication Date Title
Kumar et al. Parallel branch-and-bound formulations for and/or tree search
JPH04271443A (en) Method and device for data base constitution
JPH07325832A (en) Retrieval method for utilizing timewise change of word usage pattern and information retrieval device
CN110837566B (en) Dynamic construction method of knowledge graph for CNC (computerized numerical control) machine tool fault diagnosis
JPH0275024A (en) Knowledge input method for expert system
CN102157084A (en) Completion setting method and device for electronic whiteboard
Permpool et al. Interactive SQL learning tool with automated grading using MySQL sandbox
CN112001089B (en) Shale gas fracturing engineering tracking deduction method
CN112184511A (en) Online vocational education personalized course content pushing algorithm based on big data
JPH0275026A (en) Knowledge input method for expert system
Taylor et al. The application of Goldratt’s thinking process to problem solving
CN114612070B (en) Intelligent management talent culture integrated lifting system
JPS634333A (en) Expert system
JPS62157910A (en) Display method for numerical controller
JPH01128139A (en) System for processing procedure knowledge
JPH0275025A (en) Knowledge input method for expert system
JPS6244804A (en) Method for accessing working program by numerical controller
Miller et al. Extracting target information from composite mental structures.
JPH01309146A (en) Process monitor device and production of network chart used for the same
JPS62165684A (en) Simulator for operation training
JPS63172344A (en) Method and device for inference
Prychitko Marxisms and market processes
Goh et al. EpiList: An ITS shell to develop generic cognitive skills for bottom-up knowledge construction
JPS63316142A (en) System for displaying trace of logic type program
JPS63155228A (en) Icon control method