JPH01158537A - Inference system - Google Patents

Inference system

Info

Publication number
JPH01158537A
JPH01158537A JP62317185A JP31718587A JPH01158537A JP H01158537 A JPH01158537 A JP H01158537A JP 62317185 A JP62317185 A JP 62317185A JP 31718587 A JP31718587 A JP 31718587A JP H01158537 A JPH01158537 A JP H01158537A
Authority
JP
Japan
Prior art keywords
inference
dialogue
update
information
situation
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
JP62317185A
Other languages
Japanese (ja)
Inventor
Hideo Ohata
秀雄 大畑
Fumihiko Mori
文彦 森
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.)
Hitachi Ltd
Original Assignee
Hitachi 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 Hitachi Ltd filed Critical Hitachi Ltd
Priority to JP62317185A priority Critical patent/JPH01158537A/en
Publication of JPH01158537A publication Critical patent/JPH01158537A/en
Pending legal-status Critical Current

Links

Landscapes

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

Abstract

PURPOSE:To realize an inference system to be able to correct the error of an interactive input with a standard mechanism independent of the object knowledge and a method with high responsibility of the interactive by restoring the inference condition to the condition before updating and returning the inference up to the requested interactive point of time when the instruction of a user is executed in an interactive type knowledge base system. CONSTITUTION:In a knowledge base system having the interactive means with a user, a means 105 to store the history of the updating for the inference condition stored into a inference condition storing part 103 and a means 107 to refer to the stored updating history, restore the inference condition stored into the inference condition storing part 103 to the condition before udpating and return the inference are provided. The history of the updating operation and the history of the interactive with a user for the inference condition for the cycle of the inference are stored, and when the instruction of the user is executed, these history are traced in the sequence of the new one, the inference condition is restored in the condition before updating and the inference is returned up to the requested interactive point of time. Thus, the inference system to be able to correct the error of the interactive input information can be realized with the standard mechanism independent of the object knowledge and the method with the high responsibility of the interactive.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は知識ベースシステムにおける推論方式に関し、
特に相談業務等、利用者との対話を通して処理を遂行す
る場合に好適な推論方式に関するものである。
[Detailed Description of the Invention] [Field of Industrial Application] The present invention relates to an inference method in a knowledge-based system,
In particular, this invention relates to an inference method suitable for carrying out processing through dialogue with users, such as in consultation services.

〔従来の技術〕[Conventional technology]

対話型のシステムの実用化において、利用者が誤って入
力した情報を後から訂正できることは、使い勝手向上の
ための要件として重要である。
When putting an interactive system into practical use, it is important to be able to correct information that the user has entered incorrectly, as a requirement for improving usability.

一対象知識とその推論手段とを分離独立させる構成をと
る知識ベースシステムでは、上記要件に応える訂正機能
を標準の推論機構の中に組込むか否かで大きく二つの立
場がある。
In a knowledge base system that has a configuration in which one target knowledge and its inference means are separated and independent, there are two main positions on whether or not to incorporate a correction function that meets the above requirements into the standard inference mechanism.

従来商品化されている知識ベースシステム構築支援ツー
ルのほとんどは上記後者の立場をとっており、上述の訂
正機能を備えていない、このため応用システム毎に個別
に対処する必要がある。
Most of the knowledge base system construction support tools that have been commercialized so far take the latter position, and do not have the above-mentioned correction function, so it is necessary to deal with each application system individually.

前者の立場をとる試みの一例としては、情報処理学会第
33回(昭和61年後期)全国大会予稿集、4M−11
(1986年)、第1367〜1368頁の報告がある
。この報告では、推論の前提となる値や推論の結果求ま
る値に、再設定を許すか否かを示す属性を与えておき、
−旦推論を終了した後でも必要に応じて利用者が値を変
更すると、値の属性を参照しながら再度推論をやり直す
という方法で対処することが示されている。
An example of an attempt to take the former position is the Information Processing Society of Japan's 33rd (late 1986) National Conference Proceedings, 4M-11.
(1986), pp. 1367-1368. In this report, an attribute indicating whether or not resetting is allowed is given to the value that is the premise of the inference and the value obtained as a result of the inference.
- Even after inference has been completed, if the user changes the value as necessary, it has been shown that this can be handled by redoing the inference while referring to the attributes of the value.

〔発明が解決しようとする問題点〕[Problem that the invention seeks to solve]

上記従来技術のうち、訂正機能を標準の推論機構に含め
ない立場をとる構築支援ツールでは、応用システム毎に
個別に訂正機能を実現するための開発負担が生じること
、対象分野の問題解決知識と訂正機能実現のための処理
の記述とが混合するため、知識の保守性・拡張性を損な
うこと等の問題があった。
Among the conventional technologies mentioned above, construction support tools that do not include the correction function in the standard inference mechanism have the burden of development to implement the correction function individually for each application system, and lack of problem-solving knowledge in the target field. Since the description of the process for realizing the correction function is mixed, there are problems such as impairing the maintainability and expandability of the knowledge.

一方、訂正機能を標準の推論機構に含める立場をとる上
記報告中の技術については、訂正処理の手間が、対話の
応答性に及ぼす影響についての配慮がなされていないと
いう問題があった。この従来技術は、むしろ、前提とな
るすべての値を設定した後で、−括して推論処理を行う
用途を想定した方式であり、値の再設定が一部のもので
あっても、すべての推論を初めから再度やり直すという
ものである。このため、推論の途中で情報を動的に取込
む対話型システムにこの方式を適用しようとすると、直
前の対話の入力誤りを訂正した場合でもその度に全推論
をやり直すことになり、応答性が悪くなるという問題が
あった。
On the other hand, the technology reported above, which takes the position of including the correction function in the standard reasoning mechanism, has a problem in that it does not take into account the impact of the effort required for correction processing on the responsiveness of dialogue. Rather, this conventional technology is a method that assumes a use in which inference processing is performed all at once after setting all the prerequisite values, and even if only a part of the values are reset, all The idea is to start the reasoning over again from the beginning. Therefore, if this method is applied to an interactive system that dynamically acquires information during inference, the entire inference will have to be redone each time even if input errors in the previous interaction are corrected, resulting in poor responsiveness. The problem was that it got worse.

本発明は上記事情に鑑みてなされたもので、その目的と
するところは、従来の推論方式における上述の如き問題
を解消し、対話型の知識ベースシステムにおいで、対話
入力情報の誤りを訂正可能とする推論方式を、対象知識
に依存しない標準的な機構と対話の応答性の高い方法と
により実現して提供することにある。
The present invention has been made in view of the above circumstances, and its purpose is to solve the above-mentioned problems in conventional reasoning methods, and to make it possible to correct errors in dialog input information in an interactive knowledge base system. The purpose of this invention is to realize and provide an inference method based on a standard mechanism that does not depend on subject knowledge and a method that is highly responsive to dialogue.

〔問題点を解決するための手段〕[Means for solving problems]

本発明の上記目的は、知識記憶部と、該知識記憶部に記
憶した知識に基づいて推論を行う推論処理部と、該推論
処理部による推論状況を記憶する推論状況記憶部と、前
記推論処理部による推論に必要な情報を得るため利用者
と対話する手段とを有する知識ベースシステムにおいて
、前記推論状況記憶部に記憶した推論状況に対する更新
の履歴を記憶する手段と、該推論状況更新履歴記憶手段
に記憶した更新履歴を参照し、前記推論状況記憶部に記
憶した推論状況を更新前の状態に復元して推論を後戻り
する手段を設け、推論のサイクル毎に、推論状況に対す
る更新操作の履歴と、利用者との対話の履歴とを記憶し
ておき、利用者の指示があった場合に、これらの履歴を
新しいものから順に辿りながら、推論状況を更新前の状
態に復元し、要求された対話時点まで、推論を後戻りさ
せることを特徴とする推論方式により達成される。
The above-mentioned object of the present invention is to provide a knowledge storage section, an inference processing section that performs inference based on the knowledge stored in the knowledge storage section, an inference situation storage section that stores the inference situation by the inference processing section, and the inference processing section. a means for interacting with a user in order to obtain information necessary for inference by a part, a means for storing a history of updates to the inference situation stored in the inference situation storage part, and a memory for the update history of the inference situation. Means is provided for reversing the inference by referring to the update history stored in the inference situation storage unit and restoring the inference situation stored in the inference situation storage unit to the state before the update, and for each inference cycle, the history of update operations on the inference situation is updated. and the history of interactions with the user, and when instructed by the user, traces this history in order from the newest to the previous, and restores the inference status to the state before the update. This is achieved by an inference method that is characterized by backtracking the inference up to the point of the dialogue.

〔作用〕[Effect]

本発明に係わる推論方式においては、知識記憶部と推論
処理部と推論状況記憶部および対話処理部を有する知識
ベースシステムに、更に推論状況更新履歴記憶部と推論
後戻り処理部を設ける。
In the inference method according to the present invention, a knowledge base system having a knowledge storage section, an inference processing section, an inference situation storage section, and an interaction processing section is further provided with an inference situation update history storage section and an inference backtracking processing section.

上記推論状況更新履歴記憶部は、更新情報格納部と対話
情報格納部の集りから成る。各更新情報格納部は、対応
する推論のサイクル中に施された更新操作の内容を表わ
す情報を、また、各対話情報格納部は、対応する推論の
サイクル中に行われた対話に関する情報を、それぞれ、
推論のサイクルに対応させて記憶する。
The inference situation update history storage section is composed of an update information storage section and a dialogue information storage section. Each update information storage section stores information representing the contents of the update operation performed during the corresponding inference cycle, and each interaction information storage section stores information regarding the interaction performed during the corresponding inference cycle. Each,
It is stored in correspondence with the cycle of inference.

前記推論後戻り処理部は、利用者の指示を受けた前記対
話処理部により起動され、前記推論状況更新履歴記憶部
に記憶した履歴を新しいものから順に辿りながら、前記
更新情報格納部の記憶内容に従って、前記推論状況記憶
部に記憶した推論状況を更新前の状態に復元し、前記対
話情報格納部の記憶内容に従って、推論を後戻りさせる
位置を判断する。推論を後戻りさせる対話時点の決定方
法として、以下の各方法をとることができる。
The inference backtracking processing unit is activated by the interaction processing unit in response to an instruction from the user, and traces the history stored in the inference status update history storage unit in order from the newest one, according to the contents stored in the update information storage unit. , restoring the inference situation stored in the inference situation storage unit to the state before updating, and determining a position to backtrack the inference according to the content stored in the dialogue information storage unit. The following methods can be used to determine the point of dialogue at which the inference is to be reversed.

(1)前記推論状況更新履歴記憶部の対話情報格納部は
、対応する推論サイクル中における対話入力の有無を表
わす情報を記憶し、前記推論後戻り手段は、利用者の後
戻り指示があると、前記対話情報格納部の記憶内容を参
照しながら、最近に対話入力があった時点まで後戻りす
る。
(1) The dialog information storage section of the inference status update history storage section stores information indicating the presence or absence of a dialog input during the corresponding inference cycle, and the inference backtracking means, when a user's backtracking instruction is given, While referring to the contents stored in the dialogue information storage section, the process backtracks to the point in time when a dialogue input was made recently.

(2)前記推論状況更新履歴記憶部の対話情報格納部は
、対応する推論サイクル中に行われた対話を特定する情
報を記憶し、前記推論後戻り手段は、利用者から後戻り
すべき対話時点を指定する情報を得、前記対話情報格納
部の記憶内容を参照しながら指定された時点まで後戻り
する。更に、利用者から後戻りすべき対話時点を指定す
る情報を得る際、前記対話情報格納部に記憶した対話の
特定情報の履歴を一覧表示し、この中から対話時点を選
択形式で指定させても良い。
(2) The dialogue information storage unit of the inference status update history storage unit stores information that specifies the dialogue that took place during the corresponding inference cycle, and the inference backtracking means receives the dialogue point at which the user should backtrack. Obtain the specified information and go back to the specified point while referring to the contents stored in the dialogue information storage section. Furthermore, when obtaining information from the user specifying the point of dialogue to go back to, the history of the specific information of the dialogue stored in the dialogue information storage section may be displayed as a list, and the user may be allowed to specify the point of dialogue in a selection format from the list. good.

上述の如く、推論状況更新履歴記憶部の、更新情報格納
部と対話情報格納部の記憶内容を参照することにより、
対話入力情報による推論状況への影響を取消しながら、
要求のあった対話時点まで推論を後戻りすることができ
る。推論状況は、その対話に入る前の状態に完全に復元
されるので、入力情報を変更した上での推論の再実行が
可能になる。
As described above, by referring to the storage contents of the update information storage section and the dialogue information storage section of the inference status update history storage section,
While canceling the influence of dialogue input information on the inference situation,
Reasoning can be backtracked to the point of the requested interaction. Since the inference situation is completely restored to the state before entering the dialogue, it is possible to re-execute the inference after changing the input information.

(実施例〕 以下、本発明の実施例を図面に基づいて詳細に説明する
(Example) Hereinafter, an example of the present invention will be described in detail based on the drawings.

第2図は本発明の一実施例を示す知識ベースシステム構
成図である。図において、201は各種プログラムや推
論処理等を実行する中央処理装置、202は各種プログ
ラムやデータ、知識等を記憶する記憶装置、203は各
種プログラムの出力データや利用者への間合わせ等を表
示する表示装置、また、204は各種プログラムの入力
データや間合わせに対する利用者の回答等を入力する入
力装置を示している。
FIG. 2 is a configuration diagram of a knowledge base system showing an embodiment of the present invention. In the figure, 201 is a central processing unit that executes various programs and inference processing, etc., 202 is a storage device that stores various programs, data, knowledge, etc., and 203 displays output data of various programs and arrangements for users, etc. 204 is an input device for inputting input data of various programs, user's answers to make-up requests, etc.

第3図は上記システムの要部を示す機能構成図である。FIG. 3 is a functional configuration diagram showing the main parts of the above system.

図において、101は知識記憶部、102は推論処理部
、103は推論状況記憶部、104は対話処理部、10
5は推論状況更新履歴記憶部、106は推論状況更新履
歴格納処理部、107は推論後戻り処理部、110は推
論状況更新処理部、Illは標準対話処理部、112は
入出力処理部を示している。
In the figure, 101 is a knowledge storage unit, 102 is an inference processing unit, 103 is an inference situation storage unit, 104 is an interaction processing unit, and 10
5 is an inference situation update history storage unit, 106 is an inference situation update history storage processing unit, 107 is an inference backtracking processing unit, 110 is an inference situation update processing unit, Ill is a standard interaction processing unit, and 112 is an input/output processing unit. There is.

上記各部の機能について以下説明する。The functions of each of the above parts will be explained below.

知識記憶部101は、知識をその表現法に応じた形式の
情報として記憶する部分である。知識の表現法には、I
f−Thenルール、述語論理、フレーム、オブジェク
ト他、さまざまなものがある。本発明は、それらの知識
表現法のいずれを用いた場合にも適用可能であり、また
、それらを混用した場合にも適用可能である。
The knowledge storage unit 101 is a part that stores knowledge as information in a format corresponding to its expression method. The method of expressing knowledge includes I
There are various things such as f-then rules, predicate logic, frames, objects, etc. The present invention is applicable to any of these knowledge representation methods, and is also applicable to cases where they are used together.

推論処理部102は、上記知識記憶部101に記憶した
知識に基づいて推論処理を行う部分であり、知識検索処
理部108と知識適用処理部109から構成される。知
識の推論法にもIf−Thenルールの前向き推論また
は後向き推論、述語論理の導出。
The inference processing section 102 is a section that performs inference processing based on the knowledge stored in the knowledge storage section 101, and is composed of a knowledge search processing section 108 and a knowledge application processing section 109. Inference methods for knowledge include forward or backward inference of If-Then rules, and derivation of predicate logic.

フレームの検索、オブジェクトのメツセージ送信他、さ
まざまなものがあり、いずれも本発明の適用対象となる
There are various methods such as searching for frames, sending messages for objects, and the like, and the present invention is applicable to all of them.

知識検索処理部108は、次に適用すべき知識を前記知
識記憶部101から検索する。このとき必要に応じて、
推論状況記憶部103の内容を参照し、If−Then
ルールの場合の照合処理や、述語論理の場合の単一化処
理、フレーム、オブジェクトの場合の継承処理、適用可
能な知識が複数あった場合の選択処理等を行う。知識適
用処理部109は。
The knowledge search processing unit 108 searches the knowledge storage unit 101 for knowledge to be applied next. At this time, if necessary,
If-Then with reference to the contents of the inference situation storage unit 103
Performs matching processing in the case of rules, unification processing in the case of predicate logic, inheritance processing in the case of frames and objects, selection processing in the case of multiple applicable knowledge, etc. The knowledge application processing unit 109 is.

上述の知識検索処理部108により検索された知識の記
述内容に対応する処理を実行する。
Processing corresponding to the written content of the knowledge searched by the knowledge search processing unit 108 described above is executed.

推論状況記憶部103は、推論処理部102による推論
状況を記憶する部分である。推論状況は、推論の前提条
件や、中間結論、最終結論等を表現するさまざまな値の
集りから成る。なお、本実施例では、知識記憶部101
と推論状況記憶部103とを分けた構成とした例を示し
たが、両者ははっきりと分けない構成としても良い。
The inference situation storage unit 103 is a part that stores the inference situation by the inference processing unit 102. The inference situation consists of a collection of various values that express the preconditions, intermediate conclusions, final conclusions, etc. of the inference. Note that in this embodiment, the knowledge storage unit 101
Although an example has been shown in which the system and inference status storage unit 103 are separated, the two may not be clearly separated.

本実施例においては、推論状況記憶部103に記憶した
推論状況に対し更新操作を施すための共通インタフェー
スとして、推論状況更新処理部110を設けている。
In this embodiment, an inference situation update processing section 110 is provided as a common interface for performing update operations on the inference situations stored in the inference situation storage section 103.

対話処理部104は、前記推論処理部102により推論
を進める上で必要な情報を、利用者から得るための対話
処理を行う部分である。利用者と対話するための標準的
なインタフェースとして、標準対話処理部111を設け
ている。但し、このインタフェースを介さない専用形式
の対話を、対話処理部104で直接行うことを妨げるも
のではない。
The dialogue processing unit 104 is a part that performs dialogue processing to obtain information necessary for the inference processing unit 102 to proceed with inference from the user. A standard dialogue processing unit 111 is provided as a standard interface for dialogue with users. However, this does not prevent the dialogue processing unit 104 from directly performing a dedicated type of dialogue without going through this interface.

入出力処理部112は、対話処理部1(14や標準対話
処理部111が利用者に対し間合わせる際に、表示装置
203に間合わせ内容を表示する処理を行ったり1間合
わせに対する利用者からの回答を得る際に、入力装置2
04から回答内容を入力する処理を行う部分である。
The input/output processing unit 112 performs processing to display the details of the arrangement on the display device 203 when the interaction processing unit 1 (14) or the standard interaction processing unit 111 makes an arrangement to the user, and performs processing to display the content of the arrangement on the display device 203, When obtaining the answer, input device 2
This is the part that performs the process of inputting the answer contents from 04 onwards.

推論状況更新履歴記憶部105は、推論状況に対する更
新の履歴を記憶する部分で、更新情報格納部113と対
話情報格納部114の集りから成る。更新情報格納部1
13と対話情報格納部114は、それぞれ、推論状況に
施された更新操作の内容を表わす情報と対話に関する情
報を推論のサイクル別に記憶している。
The inference situation update history storage unit 105 is a part that stores the history of updates to the inference situation, and is composed of an update information storage unit 113 and a dialog information storage unit 114. Update information storage section 1
13 and the dialogue information storage unit 114 respectively store information representing the contents of update operations performed on the inference situation and information regarding the dialogue for each inference cycle.

推論状況更新履歴格納処理部106は、推論状況更新履
歴記憶部105に上記更新履歴を格納する処理を行う部
分である。
The inference situation update history storage processing unit 106 is a part that performs processing to store the above update history in the inference situation update history storage unit 105.

推論後戻り処理部107は、推論状況更新履歴記憶部1
05に記憶した更新履歴を参照し、推論状況を更新前の
状態に復元して推論を後戻りする処理を行う部分である
The inference backtracking processing unit 107 stores the inference status update history storage unit 1
This is a part that refers to the update history stored in 05, restores the inference status to the state before the update, and performs a process of reversing the inference.

知識ベースシステムの推論は、上記知識検索処理部10
8による知識の検索と知識適用処理部109による知識
の適用から成る推論サイクルを繰り返すことによって進
行する。
The inference of the knowledge base system is performed by the knowledge search processing unit 10.
The process proceeds by repeating an inference cycle consisting of knowledge search by 8 and knowledge application by the knowledge application processing unit 109.

知識適用処理部109は、各サイクル毎にそのタイミン
グを推論状況更新履歴格納処理部106に通知する(信
号116)。知識適用処理部109の処理内容が推論状
況の更新であるときは、推論状況更新処理部110を介
して更新する。処理内容が利用者との対話を必要とする
ときには、対話処理部1.04を起動する。それ以外の
場合は、該当する処理部を起動する(信号115)。
The knowledge application processing unit 109 notifies the inference status update history storage processing unit 106 of the timing for each cycle (signal 116). When the processing content of the knowledge application processing unit 109 is to update the inference status, the update is performed via the inference status update processing unit 110. When the processing content requires interaction with the user, the interaction processing unit 1.04 is activated. In other cases, the corresponding processing section is activated (signal 115).

対話処理部104やその他の外部処理部は、推論の流れ
に影響する副作用を、推輪状況記憶部103以外に残さ
ないものとする。
It is assumed that the dialogue processing unit 104 and other external processing units do not leave side effects that affect the flow of inference in anything other than the driving situation storage unit 103.

推論状況更新処理部110は、更新の要求を受けると要
求に従って推論状況記憶部103を更新し、更新の内容
を推論状況更新履歴格納処理部106に通知する。
Upon receiving the update request, the inference situation update processing section 110 updates the inference situation storage section 103 according to the request, and notifies the inference situation update history storage processing section 106 of the updated contents.

対話処理部104は、起動されると標準対話処理部11
1を介し利用者と標準形式による対話を行う(信号11
9)か、もしくは、直接に専用形式による対話を行う(
信号117)。対話入力情報をもとに推論状況を更新す
る場合は、推論状況更新処理部110を介して行う。対
話の内容は、標準対話処理部111か、もしくは、対話
処理部104が直接、推論状況更新履歴格納処理部10
6に通知する。
When the dialogue processing unit 104 is started, the standard dialogue processing unit 11
1 to communicate with the user in a standard format (signal 11
9) or engage in direct dialogue in a dedicated format (
signal 117). When updating the inference status based on dialogue input information, the inference status update processing unit 110 is used. The contents of the dialogue are stored in the standard dialogue processing unit 111 or directly by the dialogue processing unit 104 in the inference status update history storage processing unit 10.
6 will be notified.

推論状況更新履歴格納処理部106は、推論のサイクル
毎に、新たな更新情報格納部113と対話情報格納部1
14のための領域を確保し、通知される更新の内容と対
話の内容を格納する。
The inference status update history storage processing unit 106 updates a new update information storage unit 113 and dialogue information storage unit 1 for each inference cycle.
14, and stores the contents of the notified update and the contents of the dialogue.

推論後戻り処理部107は、利用者の後戻り指示(信号
118,120)を受けた対話処理部104や、標準対
話処理部111により起動され(信号121,122)
、必要に応じ、後戻り位置の指示(信号123)を得た
後、更新情報格納部113と対話情報格納部114を参
照しながら要求された対話時点まで推論状況を復帰させ
る。
The inference backtracking processing unit 107 is activated by the dialog processing unit 104 or the standard dialog processing unit 111 that receives the user's backtracking instructions (signals 118, 120) (signals 121, 122).
If necessary, after obtaining an instruction to return to the position (signal 123), the inference situation is returned to the requested dialogue time while referring to the update information storage section 113 and the dialogue information storage section 114.

第4図は、If−Thenルール型表現に基づく知識の
具体的な記述例を示す図である。記述形式は知識ベース
システム構築支援ツールrES/KERNEL(日立製
作所商品名)」に従っている。
FIG. 4 is a diagram showing a specific example of description of knowledge based on If-Then rule type expression. The description format follows the knowledge base system construction support tool rES/KERNEL (product name of Hitachi, Ltd.).

第4図において、ルール300は、条件部301と結論
部302から成る。推論処理部102は、条件部301
の内容が成立したとき、結論部302の内容を実行する
In FIG. 4, a rule 300 consists of a condition part 301 and a conclusion part 302. The inference processing unit 102 uses the condition unit 301
When the content of is established, the content of the conclusion section 302 is executed.

条件部301は、更に、二つの条件節303と304か
ら成る。条件節303は、フレーム「相談」のスロット
「局面」が「家族状況質問応答」であるということを意
味する。条件節304は、クラススロットが「相談者」
であり(305)、スロット「婚姻」が「既婚」であり
(306)、スロット「子供数」がrNULLJである
( 307)ようなフレームを、「?相談者基」とする
ことを意味する。但し、「?相談者基」は変数であり、
rNULLJは未定義値を表わす。
The condition section 301 further includes two condition clauses 303 and 304. The conditional clause 303 means that the slot "aspect" of the frame "consultation" is "family situation question and answer." The conditional clause 304 has a class slot of “consulter”.
(305), the slot "marriage" is "married" (306), and the slot "number of children" is rNULLJ (307). However, "?Consultant group" is a variable,
rNULLJ represents an undefined value.

結論部302は、フレーム「?相談者基」のスロット「
子供数」を、利用者に間合わせた値に変更することを意
味する。rassignJは、フレームのスロット値を
変更するメツセージであり、推論状況更新処理部110
に対する更新命令にあたる、 rgetJは。
The conclusion part 302 contains the slot “?
This means changing the "number of children" to a value that suits the user. rassignJ is a message that changes the slot value of the frame, and is a message that changes the slot value of the frame, and is sent to the inference status update processing unit 110.
rgetJ is the update command for .

対話入力値を返す関数で、標準対話処理部111に対す
る対話命令にあたる。
This is a function that returns a dialogue input value, and corresponds to a dialogue command to the standard dialogue processing unit 111.

対話処理部104による対話の一例を第5図〜第7図に
より説明する。第5図〜第7図は、対話画面の例を示す
図である。
An example of dialogue by the dialogue processing unit 104 will be explained with reference to FIGS. 5 to 7. FIGS. 5 to 7 are diagrams showing examples of dialog screens.

第5図は、質問応答の途中のある時点の画面を表わして
いる。401はコマンド領域であり、402は対話領域
である。この時点で、利用者が以前に回答した内容を訂
正したくなったとする。訂正個所への戻り方として、逐
次的に直前の質問に戻る方法と、質問個所を直接指定し
て戻る方法とがある。対応するコマンドメニュー(40
3,404)をマウスや機能キー等で選択して、後戻り
を起動する。
FIG. 5 shows the screen at a certain point during the question and answer process. 401 is a command area, and 402 is an interaction area. At this point, it is assumed that the user wants to correct the content of the previous answer. There are two ways to return to the corrected part: one is to sequentially return to the previous question, and the other is to directly specify the question part. The corresponding command menu (40
3, 404) with the mouse or function key to start backtracking.

第6図は、直接指定して戻る方法を選択して、過去の質
問応答の履歴が表示された時点の画面を表わしている。
FIG. 6 shows the screen at the time when the direct specification return method is selected and the past question and answer history is displayed.

システムは、これら過去の質問応答の内容を推論状況更
新履歴記憶部105の対話情報格納部114に記憶して
いる。質問応答の内容そのものの代りに、質問に振った
番号や、画面単位の対話であれば1画面の番号2画面の
イメージそのもの等を記憶して、使用しても良い。
The system stores the contents of these past question and answers in the dialogue information storage section 114 of the inference status update history storage section 105. Instead of the content of the question and answer itself, the number assigned to the question, the number of one screen and the image of two screens, etc. may be stored and used if the dialog is screen-based.

第7図は、第6図の画面で1番目の質問を選択して、そ
の質問まで対話を後戻りした時点の画面を表わしている
FIG. 7 shows the screen at the time when the first question is selected on the screen of FIG. 6 and the dialog backtracks to that question.

推論状況更新履歴記憶部105を実現するためのテーブ
ル構造の一例を第8図〜第12図により説明する。
An example of a table structure for realizing the inference status update history storage unit 105 will be explained with reference to FIGS. 8 to 12.

推論状況更新履歴記憶部105は、更新情報格納部11
3と対話情報格納部114の集りから成り、それぞれを
更新情報格納テーブルと対話情報格納テーブルで実現す
る。
The inference status update history storage unit 105 is the update information storage unit 11
3 and a dialog information storage section 114, each of which is realized by an update information storage table and a dialog information storage table.

第8図は、上記更新情報格納テーブルの構造を示す図で
ある。更新情報格納テーブルは、推論サイクルIDの欄
701と、更新種別の欄702と、フレーム名の170
3と、スロット名のl704と、スロット値の欄705
とから成る。推論サイクルIDの欄701には、推論の
段数等、対応する推論サイクルを識別する情報を格納す
る。更新種別の欄702には、更新操作の種別を表わす
情報を格納する。
FIG. 8 is a diagram showing the structure of the update information storage table. The update information storage table has an inference cycle ID column 701, an update type column 702, and a frame name column 170.
3, slot name field 704, and slot value field 705
It consists of The inference cycle ID column 701 stores information for identifying the corresponding inference cycle, such as the number of inference stages. The update type column 702 stores information representing the type of update operation.

フレーム名の9703には、更新操作の付随情報のうち
フムーム名に関する情報を格納する。スロット名の[4
704には、更新操作の付随情報のうちスロット名に関
する情報を格納する。スロッ1−値の41J705には
、更新操作の付随情報のうち、スロット値に関する情報
を格納する。
The frame name 9703 stores information related to the humum name among the accompanying information of the update operation. [4] of the slot name
704 stores information related to the slot name among the accompanying information of the update operation. The slot 1 value 41J705 stores information related to the slot value among the accompanying information of the update operation.

更新情報格納テーブルの情報格納形式を第9図〜第11
図により説明する。推論状況に対する更新操作としては
、フレームの生成、フレームのスロット値の変更および
フレームの削除の3種を想定する。
The information storage format of the update information storage table is shown in Figures 9 to 11.
This will be explained using figures. Three types of update operations for the inference situation are assumed: frame generation, frame slot value change, and frame deletion.

第9図は、更新情報格納テーブルへのフレーム生成情報
の格納形式を示す図である。1回のフレーム生成操作は
、一つのテーブル格納情報に対応する。テーブル格納情
報801は、推論サイクル「3」に「大知」という名称
のフレームが生成されたことを表わしている。フレーム
生成前の状態を復元するためには、フレーム「大知」を
削除すれば良く、そのための必要情報(フレーム名)が
残されている。
FIG. 9 is a diagram showing the storage format of frame generation information in the update information storage table. One frame generation operation corresponds to one piece of table storage information. Table storage information 801 indicates that a frame named "Daichi" was generated in inference cycle "3". In order to restore the state before frame generation, it is sufficient to delete the frame "Daichi", and the necessary information (frame name) for this purpose remains.

第10図は、更新情報格納テーブルへのスロット変更情
報の格納形式を示す図である。1回のスロット変更操作
は、一つのテーブル格納情報に対応する。テーブル格納
情報901は、推論サイクル「4」にフレーム「大知」
のスロット「年齢」がrNULLJから別の値に変更さ
れたことを表わしている。スロット変更前の状態を復元
するためには、フレーム「大知」のスロット「年齢」を
rNULLJに変更すれば良く、そのための必要情報(
フレーム名、スロット名、変更前のスロット値)が残さ
れている。
FIG. 10 is a diagram showing the storage format of slot change information in the update information storage table. One slot change operation corresponds to one piece of table storage information. The table storage information 901 contains frame “Daichi” in inference cycle “4”.
This indicates that the slot "age" of "rNULLJ" has been changed from rNULLJ to another value. In order to restore the state before changing the slot, all you have to do is change the slot ``age'' of the frame ``Daichi'' to rNULLJ, and the necessary information (
(frame name, slot name, slot value before change) remain.

第11図は、更新情報格納テーブルへのフレーム削除情
報の格納形式を示す図である。1回のフレーム削除操作
は、いくつかのテーブル格納情報に対応する。テーブル
格納情報1004は、推論サイクル「99」にクラス「
相談者」に属するフレーム「大知」が削除されたことを
表わしている。テーブル格納情報1003〜1001は
、削除前に、フレーム「大知」のスロット「子供数」が
「1」であり、スロット「婚姻」が「既婚」であり、ス
ロット「年齢」が「30」であったことを表わしている
。フレーム削除前の状態を復元するためにはクラス「相
談者」に属するフレーム「大知」を生成し、そのスロッ
ト「子供数」、「婚姻」。
FIG. 11 is a diagram showing the storage format of frame deletion information in the update information storage table. One frame deletion operation corresponds to several table storage information. The table storage information 1004 indicates that the inference cycle "99" has a class "
This indicates that the frame ``Daichi'' belonging to ``Consultant'' has been deleted. Table storage information 1003 to 1001 shows that before deletion, the slot "number of children" of the frame "Daichi" is "1", the slot "marriage" is "married", and the slot "age" is "30". It represents what happened. To restore the state before the frame was deleted, create a frame ``Daichi'' that belongs to the class ``Consultant,'' and select its slots ``Number of Children'' and ``Marriage.''

「年齢」を上記の値に変更すれば良く、そのための必要
情報(クラス名、フレーム名、スロット名1.削除前の
スロット値)が残されている。
It is sufficient to change the "age" to the above value, and the necessary information for that purpose (class name, frame name, slot name 1, slot value before deletion) remains.

第12図は、対話情報格納テーブルの構造を示す図であ
る。対話情報格納テーブルは、推論サイクルIDの欄1
101と、対話特定情報の欄1102とから成る。推論
サイクルIDの1illo1には、対応する推論サイク
ルを識別する情報を格納する。対話特定情報の欄110
2には、その推論サイクル中に行われた対話を特定する
情報を格納する。逐次的に直前の対話時点に後戻りする
方法をとる場合は、推論サイクル中の対話の有無に関す
る情報だけで良い。対話時点を直接指定して戻る方法を
とる場合は、質問に振った番号や、質問応答の内容その
もの、画面単位の対話であれば、画面の番号2画面のイ
メージ等の情報を使用する。
FIG. 12 is a diagram showing the structure of the dialogue information storage table. In the dialogue information storage table, inference cycle ID column 1
101, and a dialog specific information column 1102. The inference cycle ID 1illo1 stores information that identifies the corresponding inference cycle. Dialogue specific information column 110
2 stores information specifying the interaction that took place during that inference cycle. If a method of sequentially backtracking to the previous interaction point is used, only information regarding the presence or absence of interaction during the inference cycle is sufficient. When using the method of directly specifying the point of dialogue and returning, information such as the number assigned to the question, the content of the question and answer itself, and the image of the screen number 2 in the case of screen-based dialogue is used.

本発明の処理手順を、以下、第1図(、)〜(c)によ
り説明する。
The processing procedure of the present invention will be explained below with reference to FIGS. 1(,) to (c).

第1図(a)は、本実施例の全体的な処理手順を示すフ
ローチャートである。まず、ステップ1201で、推論
状況記憶部103の内容を必要に応じて参照し、知識記
憶部101から次に適用すべき知識を検索する。適用可
能な知識が複数ある場合には。
FIG. 1(a) is a flowchart showing the overall processing procedure of this embodiment. First, in step 1201, the contents of the inference situation storage section 103 are referred to as necessary, and knowledge to be applied next is searched from the knowledge storage section 101. When there is more than one applicable knowledge.

適当な方法によって選択を行う。次に、ステップ120
2で、検索した知識の記述内容に対応する処理を実行す
る。知識に記述された処理内容が処理終了を指示するも
のであれば、ステップ1203で判定し、処理を終了す
る。そうでなければ、ステップ1201に戻る。
Make the selection by any appropriate method. Next, step 120
In step 2, processing corresponding to the searched knowledge description content is executed. If the processing content described in the knowledge instructs the end of the process, it is determined in step 1203 and the process ends. Otherwise, the process returns to step 1201.

第1図(b)は本実施例における知識適用処理の手順を
示すフローチャートであり、第1図(、)のステップ1
202を詳細化したものにあたる。まず、ステップ13
01で、推論状況更新履歴記憶部105中に現在の推論
サイクルに対応する更新履歴の格納領域を確保する。次
に、ステップ1302で、知識に記述された処理内容を
判定する。利用者との対話処理であれば、ステップ13
03に進み、推論状況の更新処理であれば、ステップ1
304に進み、その他の処理であれば、ステップ130
5に進む。
FIG. 1(b) is a flowchart showing the procedure of knowledge application processing in this embodiment, and step 1 of FIG.
This corresponds to a detailed version of 202. First, step 13
At step 01, a storage area for the update history corresponding to the current inference cycle is secured in the inference status update history storage unit 105. Next, in step 1302, the processing content described in the knowledge is determined. If it is an interaction process with the user, step 13
Proceed to step 03, and if it is an inference status update process, proceed to step 1.
Proceed to step 304, and if it is other processing, proceed to step 130
Proceed to step 5.

ステップ1303に進んだ場合は、対話処理を実行し、
ステップ1306で、得られた対話情報を対話情報格納
部114に格納し、ステップ1308で、対話中に後戻
りの指示があったかどうかを判定する。指示があれば、
ステップ1310に進み4なければステップ1309に
進む。ステップ1309に進んだ場合は、対話で得た情
報を基に、更新処理を実行し、ステップ1311で、対
応する更新情報を更新情報格納部113に格納し、ステ
ップ1313で、対話処理が終了したかどうかを判定す
る。終了であれば、ステップ1314に進み、そうでな
ければ、ステップ1303に戻る。
If the process advances to step 1303, execute interactive processing,
In step 1306, the obtained dialogue information is stored in the dialogue information storage unit 114, and in step 1308, it is determined whether there is an instruction to go back during the dialogue. If you have any instructions,
The process advances to step 1310, and if it is not 4, the process advances to step 1309. If the process proceeds to step 1309, update processing is executed based on the information obtained through the dialogue, and in step 1311, the corresponding update information is stored in the update information storage unit 113, and in step 1313, the dialogue processing is completed. Determine whether or not. If the process is completed, the process advances to step 1314; otherwise, the process returns to step 1303.

ステップ1304に進んだ場合は、更新処理を実行し、
ステップ1307で、対応する更新情報を更新情報格納
部113に格納し、ステップ1314に進む。
If the process advances to step 1304, execute the update process,
In step 1307, the corresponding update information is stored in the update information storage unit 113, and the process proceeds to step 1314.

ステップ1305に進んだ場合は、対応する処理を実行
し、ステップ1314に進む。
If the process proceeds to step 1305, the corresponding process is executed, and the process proceeds to step 1314.

ステップ1314では、適用中の知識に記述された処理
内容をすべて終了したかどうかを判定する。
In step 1314, it is determined whether all processing contents described in the knowledge being applied have been completed.

終了でなければ、ステップl302に戻る。終了であれ
ば、ステップ1315に進み、この推論サイクル中に更
新情報格納部1′13または対話情報格納部114に格
納した情報があるかどうかを判定する。あれば、直ちに
処理を終了する。無ければ、ステップ1316で、現在
の推論サイクルのために確保した更新履歴の格納領域を
開放し、処理を終了する。
If it is not finished, the process returns to step l302. If it has ended, the process proceeds to step 1315, where it is determined whether there is any information stored in the update information storage unit 1'13 or the interaction information storage unit 114 during this inference cycle. If so, immediately terminate the process. If there is not, the update history storage area reserved for the current inference cycle is released in step 1316, and the process ends.

ステップ1310に進んだ場合は、現在の知識の適用中
に更新した推論状況を復元し、ステップ1312で、必
要な時点までの後戻り処理を実行し、処理を終了する。
If the process proceeds to step 1310, the inference situation updated during the application of the current knowledge is restored, and in step 1312, backtracking processing to a necessary point in time is executed, and the process ends.

第1図(c)は本実施例における推論後戻り処理の手順
を示すフローチャートであり、第1図(b)のステップ
1312を詳細化したものに相当する。まず、ステップ
1401で、指定された後戻り方法を判定する。逐次的
に直前の対話時点に後戻りする方法であれば、ステップ
1403に進み、対話時点を直接指定して戻る方法であ
れば、ステップ1402に進む。
FIG. 1(c) is a flowchart showing the procedure of the inference backtracking process in this embodiment, and corresponds to a detailed version of step 1312 in FIG. 1(b). First, in step 1401, the specified backtracking method is determined. If the method is to sequentially go back to the previous dialogue point, the process proceeds to step 1403, and if the method is to directly specify the dialogue point and return, the process proceeds to step 1402.

ステップ1403に進んだ場合は、更新履歴を1サイク
ル遡り、ステップ1405で、現サイクルの復元処理が
終了しているかどうか判定する。終了であれば、ステッ
プ1409に進み、そうでなければ、ステップ1407
で、更新情報格納部113の内容を基に現サイクルの復
元処理を行い、ステップ1405に戻る。ステップ14
09に進んだ場合は、対話情報格納部114の内容を基
に現サイクルで対話があったかどうかを判定する。対話
があったのであれば、ステップ1411で、現サイクル
から最新のサイクルまでに確保した更新履歴の格納領域
を開放し、処理を終了する。対話がなかったのであれば
、ステップ1403に戻る。
If the process proceeds to step 1403, the update history is traced back one cycle, and in step 1405 it is determined whether the restoration process for the current cycle has been completed. If it is finished, proceed to step 1409; otherwise, proceed to step 1407
Then, the current cycle is restored based on the contents of the update information storage unit 113, and the process returns to step 1405. Step 14
If the process advances to step 09, it is determined based on the contents of the dialogue information storage section 114 whether or not there was a dialogue in the current cycle. If there has been a conversation, in step 1411, the update history storage area secured from the current cycle to the latest cycle is released, and the process ends. If there is no dialogue, the process returns to step 1403.

ステップ1402に進んだ場合は、まず、後戻り位置の
指示を得てから、ステップ1404で、更新履歴を1サ
イクル遡り、ステップ1406で、現サイクルの復元処
理が終了したかどうか判定する。終了であれば、ステッ
プ1410に進み、そうでなければ、ステップ1408
で、更新情報格納部113の内容を基に現サイクルの復
元処理を行い、ステップ1406に戻る。ステップ14
10に進んだ場合は、対話情報格納部114の内容を基
に現サイクルが指示された後戻り位置かどうかを判定す
る。後戻り位置であれば、ステップ1412で現サイク
ルから最新のサイクルまでに確保した更新履歴の格納領
域を開放し、処理を終了する。後戻り位置でなければ、
ステップ1404に戻る。
If the process proceeds to step 1402, first, an instruction for the return position is obtained, and then, in step 1404, the update history is traced back by one cycle, and in step 1406, it is determined whether the restoration process for the current cycle has been completed. If finished, proceed to step 1410; otherwise, proceed to step 1408
Then, the current cycle is restored based on the contents of the update information storage unit 113, and the process returns to step 1406. Step 14
If the process proceeds to step 10, it is determined based on the contents of the dialogue information storage section 114 whether the current cycle is at the designated return position. If it is the backward position, the update history storage area secured from the current cycle to the latest cycle is released in step 1412, and the process ends. If it is not the backward position,
Return to step 1404.

本実施例によれば、前記推輪状況更FrKI歴記憶手段
は更新情報格納部と対話情報格納部の集りを含み、各更
新情報格納部は対応する推論のサイクル中に施された更
新操作の内容を表わす情報を、また、各対話情報格納部
は対応する推論のサイクル中に行われた対話に関する情
報を、それぞれ、推論のサイクルに対応させて記憶し、
前記推論後戻り手段は、利用者の指示を受けた前記対話
手段により起動され、前記推論状況更新履歴記憶手段に
記憶した履歴を新しいものから順に辿りながら前記更新
情報格納部の記憶内容に従って:前記推論状況記憶部に
記憶した推論状況を更新前の状態に復元し、前記対話情
報格納部の記憶内容に従って、推論を後戻りさせる位置
を判断し、以って、対話入力情報による推論状況への影
響を取消しながら、要求のあった対話時点まで推論を後
戻りさせ、入力情報を変更した上で推論の再実行を行う
如く構成したことにより、対話型の知識ベースシステム
において、対話入力の誤りを訂正可能とする推論方式を
、対象知識に依存しない標準的な機構と対話の応答性の
高い方法とにより実現できるという効果を奏するもので
ある。
According to this embodiment, the driving wheel status update FrKI history storage means includes a collection of update information storage units and dialogue information storage units, and each update information storage unit stores update operations performed during the corresponding inference cycle. each dialogue information storage unit stores information representing the content, and each dialogue information storage unit stores information regarding dialogues conducted during the corresponding inference cycle in correspondence with the inference cycle;
The inference backtracking means is activated by the interaction means in response to an instruction from the user, and traces the history stored in the inference status update history storage means in order from the newest one, according to the contents stored in the update information storage unit: Restoring the inference situation stored in the situation storage unit to the state before updating, and determining the position to backtrack the inference according to the memory contents of the dialogue information storage unit, thereby reducing the influence of dialogue input information on the inference situation. By configuring the system to backtrack the inference to the requested dialog point while canceling it, and re-execute the inference after changing the input information, errors in dialog input can be corrected in an interactive knowledge-based system. This has the effect that an inference method can be realized using a standard mechanism that does not depend on subject knowledge and a method that is highly responsive to dialogue.

なお、前記推論状況更新履歴記憶手段の対話情報格納部
が、対応する推論サイクル中における対話入力の有無を
表わす情報を記憶し、前記推論後戻り手段は、前記対話
情報格納部の記憶内容を参照して、最近に対話入力があ
った時点まで後戻りすることにより、後戻り指示がある
毎に、前回の対話時点まで逐次的に推論を後戻りできる
ように構成した推論方式、または、前記推論状況更新履
歴記憶手段の対話情報格納部が、対応する推論サイクル
中に行われた対話を特定する情報を記憶し、前記推論後
戻り手段は、利用者から後戻りすべき対話時点を指定す
る情報を得、前記対話情報格納部の記憶内容を参照しな
がら指定された時点まで後戻りすることにより、推論を
後戻りさせたい対話時点を利用者が直接的に指定できる
ように構成した推論方式も実施可能となる。更に、前記
推論後戻り手段が、前記推論状況更新履歴記憶手段の対
話情報格納部に記憶した対話の特定情報の履歴を一覧表
示し、推論を後戻りさせる対話時点を選択形式で指定可
能とした推論方式も実行可能となる。
The dialogue information storage section of the inference status update history storage means stores information indicating the presence or absence of dialogue input during the corresponding inference cycle, and the inference backtracking means refers to the stored content of the dialogue information storage section. An inference method configured to allow inference to be sequentially backtracked to the previous dialog point each time there is a backtracking instruction by backtracking to a point in time when there was a recent dialog input, or the inference status update history storage. The dialogue information storage section of the means stores information specifying the dialogue that took place during the corresponding inference cycle, and the inference backtracking means obtains information specifying a dialogue point to go back to from the user, and stores the dialogue information. It is also possible to carry out an inference method in which the user can directly specify the point in time in which the user wants to go back in reasoning by backtracking to a specified point in time while referring to the memory contents of the storage unit. Furthermore, the inference method is such that the inference backtracking means displays a list of the history of specific information of the dialog stored in the dialog information storage section of the inference status update history storage unit, and allows the dialog point at which the inference is to be backtracked to be specified in a selective format. is also possible.

上記実施例は1本発明の好ましい実施態様として示した
ものであり、本発明はこれに限定されるべきものではな
いことは言うまでもない。
It goes without saying that the above embodiment is shown as a preferred embodiment of the present invention, and that the present invention is not limited thereto.

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

以上述べた如く、本発明によれば、知識記憶部と該知識
記憶部に記憶した知識に基づいて推論を行う推論処理部
と、該推論処理部による推論状況を記憶する推論状況記
憶部と、前記推論処理部による推論に必要な情報を得る
ため利用者と対話する手段とを有する知識ベースシステ
ムにおいて、前記推論状況記憶部に記憶した推論状況に
対する更新の履歴を記憶する手段と、該推論状況更新履
歴記憶手段に記憶した更新履歴を参照し、前記推論状況
記憶部に記憶した推論状況を更新前の状態に復元して推
論を後戻りする手段を設け、推論のサイクル毎に、推論
状況に対する更新操作の履歴と、利用者との対話の履歴
とを記憶しておき、利用者の指示があった場合に、これ
らの履歴を新しいものから順に辿りながら、推論状況を
更新前の状態に復元し、要求された対話時点まで、推論
を後戻りさせるようにしたので、対話型の知識ベースシ
ステムにおいて、対話入力の誤りを訂正可能とする推論
方式を、対象知識に依存しない標準的な機構と対話の応
答性の高い方法とにより実現できるという顕著な効果を
奏するものである。
As described above, according to the present invention, a knowledge storage section, an inference processing section that performs inference based on the knowledge stored in the knowledge storage section, an inference situation storage section that stores the inference situation by the inference processing section, A knowledge base system comprising means for interacting with a user to obtain information necessary for inference by the inference processing unit, a means for storing a history of updates to the inference situation stored in the inference situation storage unit, and the inference situation. A means is provided for reversing the inference by referring to the update history stored in the update history storage means and restoring the inference situation stored in the inference situation storage unit to the state before the update, and updates the inference situation for each inference cycle. It memorizes the history of operations and the history of interactions with the user, and when instructed by the user, restores the inference status to its pre-update state by following this history in descending order. Since the inference is made to backtrack until the point of the requested interaction, an inference method that can correct errors in the interaction input in an interactive knowledge-based system can be combined with a standard mechanism that does not depend on the target knowledge. This has the remarkable effect of being realized by a highly responsive method.

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

第1図(a)〜(c)は本発明の一実施例である処理手
順を示すフローチャート、第2図は実施例の知識ベース
システムの構成図、第3図はその要部を示す機能構成図
、第4図はIf−Thenルール型表現に基づく知識の
具体的な記述例を示す図、第5図〜第7図は対話画面の
例を示す図、第8図は更新情報格納テーブルの構造を示
す図、第9図〜第11図は更新情報格納テーブルの情報
格納形式を示す図、第12図は対話情報格納テーブルの
構造を示す図である。 101:知識記憶部、102:推論処理部、1o3:推
論状況記憶部、104:対話処理部、105:推論状況
更新履歴記憶部、106:推論状況更新履歴格納処理部
、107:推論後戻り処理部、108:知識検索処理部
、109:知識適用処理部、110:推論状況更新処理
部、111:#J準対話処理部、112:入出力処理部
、】13:更新情報格納部、114:対話情報格納部、
115:該当処理起動、116:推論サイクル通知、1
17:専用対話、 118 、120 :後戻り指示、
119:標準対話、121 、122 :推論後戻り処
理起動、123:後戻り位置指示、201:中央処理装
置、202:記憶装置、203:表示装置。 204:入力装置、401:対話画面のコマンド領域、
402:同対話領域、 403 、404  :同コマ
ンドメニュー、701:更新情報格納テーブルの推論サ
イクルID欄、702:同更新種別欄、703:同フレ
ーム名欄、704:同スロット名欄、705:同スロッ
1〜値欄、1101 :対話情報格納テーブルの推論サ
イクルID欄、1102 :同対話特定情報欄。 第   1   図(a) 第   1   図(c) 第   2   図 第   5   図 第   6   図 第   7   図 第   8   図 第   9   図 第   10   図 第   11   図
Figures 1 (a) to (c) are flowcharts showing processing procedures according to an embodiment of the present invention, Figure 2 is a configuration diagram of a knowledge base system according to the embodiment, and Figure 3 is a functional configuration showing the main parts thereof. Figure 4 shows a specific example of knowledge description based on If-Then rule type expressions, Figures 5 to 7 show examples of dialog screens, and Figure 8 shows the update information storage table. 9 to 11 are diagrams showing the information storage format of the update information storage table, and FIG. 12 is a diagram showing the structure of the dialogue information storage table. 101: Knowledge storage section, 102: Inference processing section, 1o3: Inference situation storage section, 104: Dialogue processing section, 105: Inference situation update history storage section, 106: Inference situation update history storage processing section, 107: Inference backtracking processing section , 108: Knowledge search processing unit, 109: Knowledge application processing unit, 110: Inference status update processing unit, 111: #J quasi-dialogue processing unit, 112: Input/output processing unit, ] 13: Update information storage unit, 114: Dialogue information storage unit,
115: Applicable process start, 116: Inference cycle notification, 1
17: Dedicated dialogue, 118, 120: Backward instruction,
119: Standard dialogue, 121, 122: Start of inference backtracking process, 123: Backtracking position instruction, 201: Central processing unit, 202: Storage device, 203: Display device. 204: Input device, 401: Command area of dialogue screen,
402: Same dialog area, 403, 404: Same command menu, 701: Inference cycle ID column of update information storage table, 702: Same update type column, 703: Same frame name column, 704: Same slot name column, 705: Same Slot 1 to value column, 1101: Inference cycle ID column of dialog information storage table, 1102: Same dialog specific information column. Figure 1 (a) Figure 1 (c) Figure 2 Figure 5 Figure 6 Figure 7 Figure 8 Figure 9 Figure 10 Figure 11

Claims (1)

【特許請求の範囲】 1、知識記憶部と、該知識記憶部に記憶した知識に基づ
いて推論を行う推論処理部と、該推論処理部による推論
状況を記憶する推論状況記憶部と、前記推論処理部によ
る推論に必要な情報を得るため利用者と対話する手段と
を有する知識ベースシステムにおいて、前記推論状況記
憶部に記憶した推論状況に対する更新の履歴を記憶する
手段と、該推論状況更新履歴記憶手段に記憶した更新履
歴を参照し、前記推論状況記憶部に記憶した推論状況を
更新前の状態に復元して推論を後戻りする手段を設け、
推論のサイクル毎に、推論状況に対する更新操作の履歴
と、利用者との対話の履歴とを記憶しておき、利用者の
指示があった場合に、これらの履歴を新しいものから順
に辿りながら、推論状況を更新前の状態に復元し、要求
された対話時点まで、推論を後戻りさせることを特徴と
する推論方式。 2、前記推論状況更新履歴記憶手段は更新情報格納部と
対話情報格納部の集りを含み、各更新情報格納部は対応
する推論のサイクル中に施された更新操作の内容を表わ
す情報を、また、各対話情報格納部は対応する推論のサ
イクル中に行われた対話に関する情報を、それぞれ、推
論のサイクルに対応させて記憶し、前記推論後戻り手段
は、利用者の指示を受けた前記対話手段により起動され
、前記推論状況更新履歴記憶手段に記憶した履歴を新し
いものから順に辿りながら、前記更新情報格納部の記憶
内容に従って、前記推論状況記憶部に記憶した推論状況
を更新前の状態に復元し、前記対話情報格納部の記憶内
容に従って、推論を後戻りさせる位置を判断し、以って
、対話入力情報による推論状況への影響を取消しながら
、要求のあった対話時点まで推論を後戻りさせ、入力情
報を変更した上で推論の再実行を行う如く構成したこと
を特徴とする特許請求の範囲第1項記載の推論方式。 3、前記推論状況更新履歴記憶手段の対話情報格納部は
、対応する推論サイクル中における対話入力の有無を表
わす情報を記憶し、前記推論後戻り手段は、前記対話情
報格納部の記憶内容を参照して、最近に対話入力があっ
た時点まで後戻りし、以って、後戻り指示がある毎に、
前回の対話時点まで逐次的に推論を後戻りできるように
構成したことを特徴とする、特許請求の範囲第2項記載
の推論方式。 4、前記推論状況更新履歴記憶手段の対話情報格納部は
、対応する推論サイクル中に行われた対話を特定する情
報を記憶し、前記推論後戻り手段は、利用者から後戻り
すべき対話時点を指定する情報を得、前記対話情報格納
部の記憶内容を参照しながら指定された時点まで後戻り
し、以って、推論を後戻りさせたい対話時点を利用者が
直接的に指定できるように構成したことを特徴とする、
特許請求の範囲第2項記載の推論方式。 5、前記推論後戻り手段は、前記推論状況更新履歴記憶
手段の対話情報格納部に記憶した対話の特定情報の履歴
を一覧表示し、推論を後戻りさせる対話時点を選択形式
で指定可能としたことを特徴とする、特許請求の範囲第
4項記載の推論方式。
[Scope of Claims] 1. A knowledge storage unit, an inference processing unit that performs inference based on the knowledge stored in the knowledge storage unit, an inference situation storage unit that stores inference situations by the inference processing unit, and the inference processing unit In a knowledge base system having means for interacting with a user to obtain information necessary for inference by a processing unit, means for storing a history of updates to the inference situation stored in the inference situation storage unit, and an update history of the inference situation providing means for reversing the inference by referring to the update history stored in the storage means and restoring the inference situation stored in the inference situation storage unit to the state before the update;
For each inference cycle, the history of update operations for the inference status and the history of interactions with the user are memorized, and when instructed by the user, these histories are followed in order from the newest to the newest. An inference method characterized by restoring the inference situation to the state before updating and backtracking the inference to the requested dialogue point. 2. The inference status update history storage means includes a collection of update information storage units and dialogue information storage units, and each update information storage unit stores information representing the contents of update operations performed during the corresponding inference cycle, and , each dialogue information storage unit stores information regarding dialogues performed during the corresponding inference cycle in correspondence with the inference cycle, and the inference backtracking unit stores information regarding the dialogue performed during the corresponding inference cycle, and the inference backtracking unit stores information regarding the dialogue performed during the corresponding inference cycle, and the inference backtracking unit stores information regarding the dialogue performed during the corresponding inference cycle, and the inference backtracking unit stores information regarding the interaction performed during the corresponding inference cycle, and the inference backtracking unit and restores the inference situation stored in the inference situation storage unit to the state before the update according to the storage contents of the update information storage unit while tracing the history stored in the inference situation update history storage unit in order from the newest one. and determining a position to backtrack the inference according to the memory contents of the dialog information storage unit, thereby backtracking the inference to the requested dialog point while canceling the influence of the dialog input information on the inference situation; 2. The inference method according to claim 1, wherein the inference method is configured to re-execute the inference after changing input information. 3. The dialogue information storage section of the inference status update history storage means stores information indicating the presence or absence of dialogue input during the corresponding inference cycle, and the inference backtracking means refers to the storage content of the dialogue information storage section. Then, go back to the point where there was the most recent dialogue input, and every time there is a backward instruction,
The inference method according to claim 2, characterized in that the inference method is configured so that the inference can be sequentially backtracked to the point of the previous interaction. 4. The dialogue information storage section of the inference status update history storage means stores information specifying the dialogue that took place during the corresponding inference cycle, and the inference backtracking means specifies a point in time of the dialogue to go back to from the user. The present invention is configured so that the user can directly specify the dialogue point at which he or she wishes to go back to the inference by obtaining information about the interaction information and backtracking to the designated point in time while referring to the memory contents of the dialogue information storage unit. characterized by
An inference method according to claim 2. 5. The inference reversing means displays a list of the history of the specific information of the dialogue stored in the dialogue information storage section of the inference status update history storage means, and makes it possible to select and specify the dialogue point at which the inference is to be reverted. The inference method according to claim 4, characterized by:
JP62317185A 1987-12-15 1987-12-15 Inference system Pending JPH01158537A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP62317185A JPH01158537A (en) 1987-12-15 1987-12-15 Inference system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP62317185A JPH01158537A (en) 1987-12-15 1987-12-15 Inference system

Publications (1)

Publication Number Publication Date
JPH01158537A true JPH01158537A (en) 1989-06-21

Family

ID=18085403

Family Applications (1)

Application Number Title Priority Date Filing Date
JP62317185A Pending JPH01158537A (en) 1987-12-15 1987-12-15 Inference system

Country Status (1)

Country Link
JP (1) JPH01158537A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH07141187A (en) * 1993-06-24 1995-06-02 Nec Corp Data analysis supporting system and its method

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH07141187A (en) * 1993-06-24 1995-06-02 Nec Corp Data analysis supporting system and its method

Similar Documents

Publication Publication Date Title
JP2693108B2 (en) Computer system
US6292792B1 (en) System and method for dynamic knowledge generation and distribution
JPH07219736A (en) Creation method of multimedia application business
JP2002544584A (en) System and method for dynamic assistance in a software application using behavioral and host application models
JPH01158537A (en) Inference system
JPH03204687A (en) Presentation device
JPH01304540A (en) Inference system
CN113239172A (en) Conversation interaction method, device, equipment and storage medium in robot group
JP3528541B2 (en) Search logic input device
JPS6095625A (en) Computer system provided with skillfulness degree function
JP2940394B2 (en) Source program modification device
CN118092770A (en) Multi-mode interaction method, device, intelligent equipment and storage medium
Kaczmarek et al. Swift 4 for Absolute Beginners: Develop Apps for IOS
JPH06110834A (en) Software application executing device
JPS6320528A (en) Inference system
JPH03108017A (en) Guide information display system
JPH0273423A (en) Automatic selection system for relative software
Read et al. Specifying and generating program editors with novel visual editing mechanisms
Brown et al. A Natural Language Graphics System.
JPH01306913A (en) Information processor
JPH0793077A (en) Data processor with easy input function
JPH10207676A (en) Guidance type application support device and recording medium with recorded program
JPH0760438B2 (en) Conversation controller
JPH02193225A (en) Rule base maintaining device
JPS6349827A (en) Control system for menu screen