JPH01270141A - Inference system for expert system - Google Patents

Inference system for expert system

Info

Publication number
JPH01270141A
JPH01270141A JP63099650A JP9965088A JPH01270141A JP H01270141 A JPH01270141 A JP H01270141A JP 63099650 A JP63099650 A JP 63099650A JP 9965088 A JP9965088 A JP 9965088A JP H01270141 A JPH01270141 A JP H01270141A
Authority
JP
Japan
Prior art keywords
inference
slot
frame
attribute
procedure
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
JP63099650A
Other languages
Japanese (ja)
Inventor
Yukimasa Shiyou
行正 招
Kazuo Takahashi
和男 高橋
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 JP63099650A priority Critical patent/JPH01270141A/en
Publication of JPH01270141A publication Critical patent/JPH01270141A/en
Pending legal-status Critical Current

Links

Landscapes

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

Abstract

PURPOSE:To obtain inference with high functionality using an addition procedure by setting the start condition of the addition procedure, and performing the inference using the addition procedure based on the condition. CONSTITUTION:In an expert system of frame system having the addition procedure, the inference is performed by giving the attribute and the start conditional equation of each slot on a frame, and enabling the specification and the feasibility/infeasibility of start-up of the addition procedure to be selected from the conditional equation and the attribute at the time of referring to a slot value. Therefore, it is possible to set the start-up and the specification of the addition procedure from the attribute and the start conditional equation in spite of the presence/absence of the slot value, and to perform the inference by finding the slot value corresponding to a various kinds of status. In such a way, it is possible to attain the high functionality of the slot value and the inference using the slot value.

Description

【発明の詳細な説明】 A、産業上の利用分野 本発明は、エキスバートンステムに係り、特に付加手続
きによる推論方式に関する。
DETAILED DESCRIPTION OF THE INVENTION A. Field of Industrial Application The present invention relates to an Exverton stem, and more particularly to an inference method using an additive procedure.

B1発明の概要 本発明は、付加手続きを持つフレーム方式のエキスパー
トシステムにおいて、 付加手続きの起動条件を設定し、この条件から付加手続
きを使用した推論を行うことにより、付加手続きを使用
した推論の高機能化を図るものである。
B1 Overview of the Invention The present invention improves the level of inference using the additional procedure by setting a starting condition for the additional procedure and performing inference using the additional procedure from this condition in a frame-based expert system having an additional procedure. This is intended to improve functionality.

C1従来の技術 エキスパートシステムは、第2図に示すように構成され
る。各分野の専門家の知識をナレッジエンジニア(KE
)が整理して知識ベースlに格納しておき、ユーザから
の質問に対して推論システム2が知識ベースlの知識を
使用した推論によって回答を得る。
C1 The conventional technical expert system is configured as shown in FIG. Knowledge Engineers (KE) utilize the knowledge of experts in each field.
) and store them in the knowledge base l, and the inference system 2 obtains answers to questions from the user by inference using the knowledge in the knowledge base l.

推論システム2は、L I St)、PROLOG等の
記述言語3を持し、知識ベース1の知識格納には知識ベ
ースエディタ4及びデバッガ5のマン・マシン・インタ
フェースを使用し、また推論にはワーキングメモリ6に
作業過程に必要な知識ベースの領域、ルール、事実等の
データを確保しながら推論エンジン7による演えき的な
推論を行う。
The inference system 2 has a description language 3 such as LISt) and PROLOG, uses a man-machine interface of a knowledge base editor 4 and a debugger 5 to store knowledge in the knowledge base 1, and uses a working computer for inference. While securing data such as knowledge base areas, rules, facts, etc. necessary for the work process in the memory 6, the inference engine 7 performs a mathematical inference.

また、ユーザとのマン・マシン・インタフェースに説明
機能8を持って質問の意図受付けや推論手順表示を行う
In addition, an explanation function 8 is provided in the man-machine interface with the user to accept the intention of the question and display the inference procedure.

ここで、知識ベースlの知識表現には、IFく条件部>
THEN<結論部〉形式のプロダクションルール表現と
、抽象的概念及び実体を夫々フレームとして階層型ネッ
トワークで表現するフレーム表現とが知られ、これら知
識により推論を行うプロダクションシステムとフレーム
システム、さらには両者を融合したハイブリッドシステ
ムが知られている。
Here, the knowledge expression of the knowledge base l has an IF conditional section>
There are production rule expressions in the THEN (conclusion part) format and frame expressions in which abstract concepts and entities are expressed as frames in a hierarchical network. A fused hybrid system is known.

また、推論方法にはルールの条件部から結論部に至る前
向き推論と、ルールの結論部から条件部に至る後向き推
論が知られる。
Also, known inference methods include forward inference leading from the condition part of a rule to the conclusion part, and backward inference leading from the conclusion part of the rule to the condition part.

このような知識ルールや推論方式のほかに、競合解決手
段、ワーキングメモリ操作方法、メタルールの作成方法
、確信度導入等の各種手法によって推論の効率化、高速
化、高機能化が図られる。
In addition to such knowledge rules and inference methods, efficiency, speed, and functionality of inference can be improved by various methods such as conflict resolution means, working memory manipulation methods, meta-rule creation methods, and certainty factor introduction.

ここで、フレーム表現による知識ルールと推論の従来方
法を詳細に説明する。第3図は乗物のフレーム構成を示
し、乗用車という抽象的な概念を表現するクラスAの下
位概念に小型車と軽乗用車等のクラスBl、B2を持た
せ、クラスB1.、B2には夫々具体的な物あるいは概
念になるインスタンスCI、C2,C3,C4−Cnを
持たせる。
Here, the conventional method of knowledge rules and inference using frame representation will be explained in detail. FIG. 3 shows the frame structure of a vehicle, in which classes B1, B2, etc., such as small cars and light passenger cars, are included as sub-concepts of class A, which expresses the abstract concept of a passenger car. , B2 have instances CI, C2, C3, C4-Cn, which are concrete objects or concepts, respectively.

これらクラス又はインスタンスは夫々フレーム(又はオ
ブジェクト)と呼ばれ、各フレームにはその属性名(ス
ロット)と該属性を示す記述(値、バリュウ)、さらに
は付加手続き(デーモン)や手続き的知識(メソッド)
等が記述されている。
Each of these classes or instances is called a frame (or object), and each frame includes its attribute name (slot) and a description (value) indicating the attribute, as well as additional procedures (daemons) and procedural knowledge (methods). )
etc. are described.

例えば、クラスAには車名、車輪の数等のスロットが3
己述され、これらスロットのうちクラスAの概念レベル
で決定できるバリュウとして車輪の数4が記述される。
For example, class A has 3 slots for car name, number of wheels, etc.
The number of wheels, 4, is described as a value that can be determined at the conceptual level of class A among these slots.

また、メソッドには移動という手続きによって走行距離
や燃料消費量の積算手続きが記述される。また、付加手
続きには燃料計目盛の不明において自動的に起動される
属性固有の手続きが記述される。゛ また、クラスB1では定員や燃費というスロットと値が
決定され、インスタンスCIでは車名、色、ナンバー等
の実体的な内各が決定される。
Additionally, the method describes a procedure for accumulating travel distance and fuel consumption using a procedure called movement. Further, the additional procedure describes an attribute-specific procedure that is automatically activated when the fuel gauge scale is unknown. ``Furthermore, in class B1, slots and values such as passenger capacity and fuel efficiency are determined, and in instance CI, substantive information such as car name, color, number, etc. is determined.

このようなフレーム表現において、クラススロットはそ
のクラスの全てのインスタンスが参照できる変数として
の役割を持ち、付加手続き及びクラスメソッドはそのク
ラスの全てのインスタンスが参照できる手続きプログラ
ムになる。すなわら、下位フレームは上位フレームの属
性を継承することができ、これによりデータの冗長な表
現を無くすことができる。例えば、インスタンスC1に
はそのスロットに定員、燃費、車輪の数を記述°ケろこ
となく、その上位概念になるクラスBl及び八−を参照
することで、定員、燃費、車輪の数を知ることができる
。また、付加手続きの付加によって、例えばAさんの屯
の燃料計の目盛が故障して残りの燃料が判らないとき、
クラスAの付加手続きを参照し、前回の給油からの走行
距離に燃費を掛けて燃料タンク容h1から引算すること
で残燃料を推論できる。
In such a frame representation, class slots serve as variables that can be referenced by all instances of the class, and additional procedures and class methods become procedural programs that can be referenced by all instances of the class. That is, a lower frame can inherit the attributes of an upper frame, thereby eliminating redundant representations of data. For example, in instance C1, the passenger capacity, fuel efficiency, and number of wheels are written in that slot, and by referring to classes Bl and 8, which are superordinate concepts, the passenger capacity, fuel efficiency, and number of wheels can be known. I can do it. In addition, by adding additional procedures, for example, if the scale of the fuel gauge in Mr. A's ton malfunctions and the remaining fuel cannot be determined,
The remaining fuel can be inferred by referring to the class A additional procedure and multiplying the distance traveled since the last refueling by the fuel consumption and subtracting it from the fuel tank volume h1.

D1発明が解決しようとする課題 従来のフレーム方式では、フレーム内スロットの値が未
定(未代入)のときに当該スロット(直について−1−
位フレームを参照する。そして、上位フレームにもスロ
ット値が未定又は不明のとき、付加手続きが自動的に起
動され、当該スロットの値を推定した推論の継続が実現
される。
D1 Problem to be Solved by the Invention In the conventional frame system, when the value of a slot within a frame is undetermined (unassigned),
Refer to the frame. Then, when the slot value is undetermined or unknown in the upper frame, an additional procedure is automatically activated to continue the inference that estimated the value of the slot.

しかし、付加手続きの起動はスロットの値が未定のとき
に限られるもので、機能的には単純な手続きになって各
種状況に応じた推論を難しくする問題があった。
However, the activation of the additional procedure is limited to when the value of the slot is undetermined, and this results in a functionally simple procedure, which poses a problem that makes it difficult to make inferences in accordance with various situations.

本発明の目的は、スロット値に対する付加手続きの高機
能化を図ることができる推論方式を提供するにある。
SUMMARY OF THE INVENTION An object of the present invention is to provide an inference method that can improve the functionality of addition procedures for slot values.

00課題を解決するための手段と作用 本発明は、上記目的を達成するため、付加手続きを持つ
フレーム方式のエキスパートシステムにおいて、フレー
ム内各スロットには付加手続きの取扱条件を設定する属
性を持たせかつ付加手続起動の条件を与える起動条件式
を設定し、スロット参照に前記属性と起動方式から付加
手続きの選択と起動可否を決定して推論を行うようにし
、スロットの値有無に拘わらずその属性と起動条件式か
ら付加手続きの起動及び種別を任意に設定可能にし、各
種状況に応じたスロット値を求めて推論を行う。
In order to achieve the above object, the present invention provides a frame-based expert system having an additional procedure, in which each slot in the frame has an attribute for setting handling conditions for the additional procedure. In addition, an activation conditional expression that provides a condition for activating the additional procedure is set, and inference is made by determining the selection and activation of the additional procedure from the above-mentioned attributes and activation method in the slot reference, and the attribute is set regardless of the value of the slot. The activation and type of additional procedures can be arbitrarily set from the activation conditional expression and the slot value corresponding to various situations is determined and inference is performed.

F、実施例 第1図は本発明の一実施例を示すフレーム構成図である
。同図は多角形のフレーム構成を示し、クラス11の゛
多角形″の下位インスタンス12.13に゛三角形″、
゛四角f等を用意する。インスタンス12.13には1
2に代表して示すように、スロット化に1角、2角。3
角1種別等を与え、各スロット化に対するデータ型、値
、デフォルト値。
F. Embodiment FIG. 1 is a frame configuration diagram showing an embodiment of the present invention. The figure shows the frame structure of a polygon, with lower instances 12 and 13 of ``polygon'' in class 11 having ``triangle'',
゛Prepare a square f etc. 1 for instance 12.13
As shown in Figure 2, there are one corner and two corner slots. 3
Give the angle type, etc., data type, value, default value for each slot.

属性、起動条件式を与え、また付加手続きを与える。Give attributes, activation condition expressions, and additional procedures.

ここで、属性は当該スロット化に付加手続きの取扱条件
を設定し、読取り専用と書込み専用と読取・書込み可の
設定ができるようにし、これら条件に従った付加手続き
を起動できるようにする。
Here, the attribute sets handling conditions for the additional procedure in the slot, and allows setting of read-only, write-only, and read/write, and activates the additional procedure according to these conditions.

例えば、属性が読込み専用であれば、スロットへの書込
み時には付加手続きの起動をせず、スロットからの読出
し時にのみ付加手続きの起動が行われる。
For example, if the attribute is read-only, the additional procedure will not be activated when writing to the slot, but will be activated only when reading from the slot.

一方、起動条件式は、スロットへの書込み又は書替え時
に書込む値について条件を与え、この条件が成立すると
きのみ付加手続きの起動を許容する。また、読込み時に
はスロットの値が条件式を満たしているときに読込む。
On the other hand, the activation conditional expression provides a condition for a value to be written when writing or rewriting a slot, and allows activation of the additional procedure only when this condition is satisfied. Also, when reading, the slot value is read when it satisfies the conditional expression.

このように、フレームには各スロットについてその属性
と起動条件式を与え、スロット値の参照時に条件式と属
性から付加手続きの種別と起動可否が選択可能となる。
In this way, the attribute and activation conditional expression for each slot are given to the frame, and the type of additional procedure and whether or not it can be activated can be selected from the conditional expression and the attribute when referring to the slot value.

従って、属性によってスロット値に書込み・読出し時に
特別の意味を持たせることができる。例えば、角度の単
位の変換を自動的に行うことができる。即ち、多角系の
角度をラジアンで推論するシステムに対して、ユーザが
度(デグリー)で人力するとき、読出し専用の付加手続
きをスロットに持たせておけば、読出し時にユーザが角
度の変換を行うことなく指令する推論には付加手続きに
よる自動変換によってラジアンを使った推論ができる。
Therefore, depending on the attribute, a slot value can be given a special meaning when writing or reading. For example, conversion of angular units can be performed automatically. In other words, when a user manually infers the angles of a polygon system in degrees in radians, if a slot has a read-only additional procedure, the user can convert the angles at the time of readout. Inferences that use radians can be made using automatic conversion using an additional procedure.

一方、起動条件式によって条件成立時のみ付加手続きを
起動させることができ、従来の付加手続きがスロット値
未定で毎回実行されていたのに比べて条件が満たされた
ときのみ起動され、従来の付加手続き内部での条件の比
較を不要にするし、無用な付加手続き起動を少な(する
し、起動条件記述がスロット別になって細かい条件設定
を容易にする。
On the other hand, an additional procedure can be started only when a condition is met using a startup conditional expression, and compared to conventional methods, which were executed every time with an undetermined slot value. It eliminates the need to compare conditions within a procedure, reduces the number of unnecessary additional procedure launches, and makes detailed condition settings easier because the launch condition descriptions are separated by slot.

G0発明の効果 以上のとおり、本発明によれば、付加手続きの起動をス
ロットの属性と起動条件式によって設定するようにした
ため、スロット値とこれを使用した推論の高機能化を図
ることもできる効果がある。
Effects of the G0 Invention As described above, according to the present invention, since the activation of the additional procedure is set by the attribute of the slot and the activation conditional expression, it is possible to improve the functionality of the slot value and the inference using this. effective.

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

第1図は本発明の一実施例を示すフレーム構成図、第2
図はエキスパートシステムの基本的構成図、第3図は従
来のフレーム構成図である。 !・・・知識ベース、2・・・推論システム、ll・・
・クラス、12.13・・・インスタンス。
FIG. 1 is a frame configuration diagram showing one embodiment of the present invention, and FIG.
The figure is a basic configuration diagram of an expert system, and FIG. 3 is a conventional frame configuration diagram. ! ...Knowledge base, 2...Inference system, ll...
- Class, 12.13... Instance.

Claims (1)

【特許請求の範囲】[Claims] (1)付加手続きを持つフレーム方式のエキスパートシ
ステムにおいて、フレーム内各スロットには付加手続き
の取扱条件を設定する属性を持たせかつ付加手続起動の
条件を与える起動条件式を設定し、スロット参照に前記
属性と起動条件式から付加手続きの選択と起動可否を決
定して推論を行うことを特徴とするエキスパートシステ
ムの推論方式。
(1) In a frame-based expert system that has attached procedures, each slot in the frame has an attribute that sets the handling conditions for the attached procedure, and an activation conditional expression that provides the conditions for starting the additional procedure is set, and the slot reference is An inference method for an expert system, characterized in that inference is performed by selecting an additional procedure and determining whether or not to start it based on the attributes and the start conditional expression.
JP63099650A 1988-04-22 1988-04-22 Inference system for expert system Pending JPH01270141A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP63099650A JPH01270141A (en) 1988-04-22 1988-04-22 Inference system for expert system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP63099650A JPH01270141A (en) 1988-04-22 1988-04-22 Inference system for expert system

Publications (1)

Publication Number Publication Date
JPH01270141A true JPH01270141A (en) 1989-10-27

Family

ID=14252932

Family Applications (1)

Application Number Title Priority Date Filing Date
JP63099650A Pending JPH01270141A (en) 1988-04-22 1988-04-22 Inference system for expert system

Country Status (1)

Country Link
JP (1) JPH01270141A (en)

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6344236A (en) * 1986-08-11 1988-02-25 Nec Corp Supporting system for generating separation type knowledge base

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6344236A (en) * 1986-08-11 1988-02-25 Nec Corp Supporting system for generating separation type knowledge base

Similar Documents

Publication Publication Date Title
Woodbury et al. Whither design space?
Michon Generic intelligent driver support
Abu-Naser Sl5 Object: Simpler Level 5 Object Expert System Language
Leiser et al. The traveller: A computational model of spatial network learning
Russell Complete Guide to MRS
Bjørner Domain analysis and description principles, techniques, and modelling languages
CN114547247B (en) A method, apparatus, and storage medium for constructing the architecture of an autonomous transportation system
Strand et al. A case-study on drivers' mental model of partial driving automation
JPH01270141A (en) Inference system for expert system
Smith Rapid software prototyping
Grigoriev Reason, language, history: Pragmatism's contested promise
Tuzet Projectual abduction
Keet Conceptual Data Models
Weiser et al. From Human Computer Interaction to Human Systems Migration: Internal Interaction in Automated Road Vehicles
CN120725162B (en) Image-text question-answering processing method, electronic equipment and computer readable storage medium
Davies Propositional attitudes
Snaprud et al. Types and inheritance in hypertext
JP2712267B2 (en) Expert system knowledge base structure.
Kuhn An algebraic interpretation of semantic networks
Farrar et al. General ontology baseline
Kayser Ontologically yours
Logan et al. Enduring support: on defeasible reasoning in design support systems
Su et al. Smart City Software Revolution-Blackboard Systems for Smart City Solutions
Bache Towards a unified theory of metaphor
Shumate Layered virtual machine/object-oriented design