JP2000155680A - Device and method for correcting judgment rule - Google Patents

Device and method for correcting judgment rule

Info

Publication number
JP2000155680A
JP2000155680A JP10328625A JP32862598A JP2000155680A JP 2000155680 A JP2000155680 A JP 2000155680A JP 10328625 A JP10328625 A JP 10328625A JP 32862598 A JP32862598 A JP 32862598A JP 2000155680 A JP2000155680 A JP 2000155680A
Authority
JP
Japan
Prior art keywords
extracting
case
parameter
data set
rule
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP10328625A
Other languages
Japanese (ja)
Other versions
JP3670500B2 (en
Inventor
Shigeaki Sakurai
茂明 櫻井
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.)
Toshiba Corp
Original Assignee
Toshiba Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Toshiba Corp filed Critical Toshiba Corp
Priority to JP32862598A priority Critical patent/JP3670500B2/en
Publication of JP2000155680A publication Critical patent/JP2000155680A/en
Application granted granted Critical
Publication of JP3670500B2 publication Critical patent/JP3670500B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

PROBLEM TO BE SOLVED: To partially and quickly correct a judgment rule by extracting a part in which the inference of a judgment rule described in a system is erroneous from a data set, and correcting this part by using an algorithm capable of parameter adjustment. SOLUTION: Events constituted of classified classes corresponding to image file names are stored in an event storing part 11, and judgment rules described in a system which is used at present are stored in a judgment rule storing part 12. Then, the events stored in the vent storing part 11 are inferred by an inferring part 13 according to the judgment rules stored in the judgment rule storing part 12. When the inferred class is different from the classified class corresponding to the stored event, an object to be corrected extracting part 14 extracts a parameter appearing on a path related with the event as the object to be corrected of the judgment rule. A retrieval range to be corrected is stored in a retrieval range storing part 15. At last, retrieval is operated in a range to be corrected by using an adjustable prescribed algorithm by an object to be corrected retrieving part 16 so that the parameter can be attained.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明は、例えば画像または
音声データを入力することにより、予め不良品として記
憶された製品とのマッチングを使い製品に発生する不良
を識別するシステムや制御対象の現在の状況を示す状態
量を入力することにより、制御対象を制御するシステム
において、専門家が下した診断結果に適合するようにシ
ステム内の判断規則を自動的に修正する装置及び判断規
則を自動的に修正する方法に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a system for identifying a defect occurring in a product by inputting, for example, image or audio data and using a matching with a product stored in advance as a defective product, or a current control object. By inputting a state quantity indicating a situation, in a system for controlling a control target, a device and a judgment rule for automatically correcting a judgment rule in the system so as to match a diagnosis result given by an expert are automatically set. How to fix.

【0002】[0002]

【従来の技術】従来、機械知能による最適化あるいは探
索として、予め決められた関数にパラメータを代入して
得られる特徴量から判断規則を決定し、その判断規則を
修正する場合には、パラメータを調節する方法が採られ
ている。その1つの手法がジェネティックアルゴリズム
( 以下「GA」と言う。) ;参考文献「ジェネティック
アルゴリズム/安居院猛、長尾智晴 著/昭晃堂/19
93年」がある。GAとは生物の進化の過程を基本原理
とした最適化・探索アルゴリズムの一種である。GAで
は、染色体同士の一部を入れ換える操作(交差)、染色
体を構成する一部の文字列の値を反転させる操作(突然
変異)、染色体ごとの評価値(適合度)を利用して、染
色体集団の中から染色体を選ぶ操作(選択)、といった
操作を行ない新たな染色体集団を生成する。GAはこの
ような染色体集団の生成を何世代かに渡って繰り返して
いくことにより、適合度の高い染色体を探索するアルゴ
リズムである。
2. Description of the Related Art Conventionally, as optimization or search by machine intelligence, a decision rule is determined from a feature quantity obtained by substituting a parameter into a predetermined function, and when the decision rule is modified, the parameter is determined. The method of adjusting is adopted. One method is the Genetic Algorithm
(Hereinafter referred to as “GA”); References “Genetic Algorithm / Takeharu Yasui, Tomoharu Nagao / Shokodo / 19
1993. " GA is a kind of optimization / search algorithm based on the evolutionary process of living organisms. In GA, chromosome using the operation of exchanging a part of chromosomes (crossing), the operation of inverting the value of some character strings constituting the chromosome (mutation), and the evaluation value (fitness) of each chromosome An operation (selection) of selecting a chromosome from a group is performed to generate a new chromosome group. GA is an algorithm for searching for a chromosome with a high degree of fitness by repeating such generation of a chromosome population for several generations.

【0003】例えばこのGAを利用して判断規則に含ま
れるパラメータを調整する手法として、参考文献「ファ
ジールールの獲得とその表現に対する一手法/前橋覚、
鬼沢武久 著/日本ファジー学会関東支部・東北支部
第9回ワークショップ/1997年」が挙げられる。こ
の手法では、判断規則に含まれるパラメータを0あるい
は1を連結した文字列で表すこと(2進数表現)によ
り、判断規則と染色体の対応付けを行っている。また染
色体に対応する判断規則を用いて、制御対象をどの程度
上手く制御できたかどうかを評価することにより、染色
体の適合度を求めている。そうして染色体が世代交代を
繰り返す中で、適合度の高い染色体が淘汰されるよう判
断規則を調整するものである。
For example, as a method of adjusting parameters included in a decision rule using this GA, a reference document “One method for obtaining and expressing fuzzy rules / Satoru Maebashi,
Takehisa Onizawa / Kanto Branch and Tohoku Branch of the Japan Fuzzy Society
9th Workshop / 1997 ". In this method, the parameters included in the judgment rule are represented by a character string obtained by connecting 0 or 1 (binary representation), thereby associating the judgment rule with the chromosome. In addition, the degree of fitness of the chromosome is determined by evaluating how well the control target can be controlled using the determination rule corresponding to the chromosome. In this way, the decision rules are adjusted so that chromosomes with high relevance are eliminated while the chromosomes repeat generational changes.

【0004】しかしながら、最適な解を探索するGAを
用いたとしても、通常考えられている探索空間では全て
を探索するのに膨大な時間を必要とする。さらに、この
手法では、限りある時間の中で実用上解けない問題も発
生する。また、探索空間中の真の最大値あるいは最小値
を与える点を探索する必要がある場合には、膨大な時間
を必要とするとしても、全探索を実行する以外に術はな
いのが実情であった。
[0004] However, even if a GA for searching for an optimal solution is used, it takes an enormous amount of time to search all in a normally considered search space. Furthermore, this method also has a problem that cannot be solved practically in a limited time. Also, when it is necessary to search for a point in the search space that gives the true maximum or minimum value, there is no other way than to perform a full search, even if an enormous amount of time is required. there were.

【0005】[0005]

【発明が解決しようとする課題】上述したように従来の
技術においては、判断規則の修正は最初から全て生成し
直すことを前提としており、たとえ判断規則の修正箇所
は部分的であっても規則全体を修正対象とみなしている
ために、この規則修正の際に多くの時間を要し、効率が
悪いという問題があった。
As described above, in the prior art, it is premised that all the corrections of the decision rules are regenerated from the beginning. Since the whole is regarded as an object to be modified, there is a problem that it takes a lot of time to modify the rule and the efficiency is low.

【0006】本発明は、上述した問題を解決するために
なされたものであって、与えられたデータの推論を行っ
た場合、データに対して正しい推論結果が得られなかっ
た時、そのデータが正しい推論結果に導かれるよう判断
規則を部分的かつ高速に修正する方法と装置を提供する
ことを目的としている。
SUMMARY OF THE INVENTION The present invention has been made to solve the above-described problem. When inference is performed on given data, if a correct inference result cannot be obtained for the data, the data is inferred. It is an object of the present invention to provide a method and an apparatus for partially and quickly modifying a decision rule so as to lead to a correct inference result.

【0007】本発明の別の目的は、これまでGAを利用
する上で懸念されていた探索空間の大きさ、つまり探索
範囲が広すぎて処理に膨大な時間が掛かっていたことを
改善することによって、GAをより使いやすい探索手法
とすることにある。
Another object of the present invention is to improve the size of the search space, which has been a concern in the use of GA, that is, the fact that the search range is too wide and the processing takes an enormous amount of time. Therefore, it is intended to make GA a more easy-to-use search method.

【0008】[0008]

【課題を解決するための手段】かかる課題を解決するた
め、請求項1記載の本発明に係る判断規則修正装置は、
データと該データを識別する分類クラスを併せ持つデー
タ集合に対し、システム内に記述された判断規則の推論
が誤っている部分を抽出する手段と、前記抽出した判断
規則をパラメータ調整が可能なアルゴリズムを用いて修
正する手段とを具備する。
In order to solve the above-mentioned problem, a judgment rule correcting device according to the present invention according to claim 1 is provided.
Means for extracting, from a data set having both data and a classification class for identifying the data, a part in which the inference of the judgment rules described in the system is incorrect, and an algorithm capable of adjusting the parameters of the extracted judgment rules. Means for using the correction.

【0009】請求項2記載の本発明に係る判断規則修正
装置は、データと該データを識別する分類クラスを併せ
持つデータ集合に対し、システム内に記述された判断規
則の推論が誤っている部分を抽出する手段と、前記抽出
した判断規則をパラメータ調整が可能なアルゴリズムを
用いて修正する手段と、誤った推論結果に導かれるデー
タ集合を対象として、該データ集合に対応する判断規則
上のパラメータを抽出する手段と、誤った推論結果に導
かれるデータ集合が属する分類クラスを対象として、該
分類クラスに対応する判断規則上のパラメータを抽出す
る手段とを具備する。
According to a second aspect of the present invention, there is provided a decision rule correcting apparatus according to the present invention, for a data set having both data and a classification class for identifying the data, a part in which the inference of the decision rule described in the system is incorrect. Means for extracting, a means for correcting the extracted decision rule using an algorithm capable of adjusting parameters, and a parameter on a decision rule corresponding to the data set for a data set led to an incorrect inference result. Means for extracting, and for a classification class to which a data set led to an erroneous inference result belongs, means for extracting a parameter on a decision rule corresponding to the classification class.

【0010】請求項3記載の本発明に係る判断規則修正
装置は、データと該データを識別する分類クラスを併せ
持つデータ集合に対し、システム内に記述された判断規
則の推論が誤っている部分を抽出する手段と、前記抽出
した判断規則をパラメータ調整が可能なアルゴリズムを
用いて修正する手段と、誤った推論結果に導かれるデー
タ集合を対象として、該データ集合に対応する判断規則
上のパラメータを抽出する手段と、誤った推論結果に導
かれるデータ集合が属する分類クラスを対象として、該
分類クラスに対応する判断規則上のパラメータを抽出す
る手段と、請求項2で抽出したパラメータを対象とし
て、誤った推論結果に導かれるデータ集合が正しい推論
結果が得られる推論経路上で、修正を要するパラメータ
のみを抽出する手段を具備する。
According to a third aspect of the present invention, there is provided a decision rule correcting device for a data set having both data and a classification class for identifying the data, wherein a part in which the inference of the decision rule described in the system is incorrect is performed. Means for extracting, a means for correcting the extracted decision rule using an algorithm capable of adjusting parameters, and a parameter on a decision rule corresponding to the data set for a data set led to an incorrect inference result. Means for extracting, for a classification class to which a data set led to an erroneous inference result belongs, means for extracting a parameter on a judgment rule corresponding to the classification class, and for a parameter extracted in claim 2, A means for extracting only parameters that need to be modified on an inference route that provides a correct inference result for a data set that leads to an incorrect inference result Comprising.

【0011】請求項4記載の本発明に係る判断規則修正
方法は、データと該データを識別する分類クラスを併せ
持つデータ集合に対し、システム内に記述された判断規
則の推論が誤っている部分を抽出するステップと、前記
抽出した判断規則をパラメータ調整が可能なアルゴリズ
ムを用いて修正するステップとを具備する。
According to a fourth aspect of the present invention, there is provided a method for correcting a judgment rule according to the present invention, wherein a part of a data set having both data and a classification class for identifying the data in which the inference of the judgment rule described in the system is erroneous. Extracting, and correcting the extracted judgment rule using an algorithm capable of adjusting parameters.

【0012】請求項5記載の本発明に係る判断規則修正
方法は、データと該データを識別する分類クラスを併せ
持つデータ集合に対し、システム内に記述された判断規
則の推論が誤っている部分を抽出するステップと、前記
抽出した判断規則をパラメータ調整が可能なアルゴリズ
ムを用いて修正するステップと、誤った推論結果に導か
れるデータ集合を対象として、該データ集合に対応する
判断規則上のパラメータを抽出するステップと、誤った
推論結果に導かれるデータ集合が属する分類クラスを対
象として、該分類クラスに対応する判断規則上のパラメ
ータを抽出するステップとを具備する。
According to a fifth aspect of the present invention, there is provided a method for modifying a decision rule according to the present invention, wherein a part of a data set having both data and a classification class for identifying the data in which the inference of the decision rule described in the system is erroneous. Extracting, correcting the extracted decision rule using an algorithm capable of adjusting parameters; and targeting a data set led to an incorrect inference result to a parameter on a decision rule corresponding to the data set. Extracting, and for a classification class to which a data set derived from an incorrect inference result belongs, extracting a parameter on a determination rule corresponding to the classification class.

【0013】請求項6記載の本発明に係る判断規則修正
方法は、データと該データを識別する分類クラスを併せ
持つデータ集合に対し、システム内に記述された判断規
則の推論が誤っている部分を抽出するステップと、前記
抽出した判断規則をパラメータ調整が可能なアルゴリズ
ムを用いて修正するステップと、誤った推論結果に導か
れるデータ集合を対象として、該データ集合に対応する
判断規則上のパラメータを抽出するステップと、誤った
推論結果に導かれるデータ集合が属する分類クラスを対
象として、該分類クラスに対応する判断規則上のパラメ
ータを抽出するステップと、請求項5で抽出したパラメ
ータを対象として、誤った推論結果に導かれるデータ集
合が正しい推論結果が選られる推論経路上で修正を要す
るパラメータのみを抽出するステップを具備する。
According to a sixth aspect of the present invention, there is provided a method for correcting a decision rule according to the present invention, wherein a part of a data set having both data and a classification class for identifying the data, in which the inference of the decision rule described in the system is erroneous. Extracting, correcting the extracted decision rule using an algorithm capable of adjusting parameters; and targeting a data set led to an incorrect inference result to a parameter on a decision rule corresponding to the data set. Extracting, for a classification class to which a data set led to an erroneous inference result belongs, extracting a parameter on a determination rule corresponding to the classification class, and for a parameter extracted in claim 5, Data set that leads to incorrect inference result Only parameters that need correction on the inference path from which the correct inference result is selected Comprising the step of extracting.

【0014】請求項1及び請求項4記載の本発明の修正
規則判断装置及び修正規則判断方法では、これまで全て
のパラメータを探索範囲としていたが、修正の必要のあ
るパラメータとその周りのパラメータだけに修正範囲を
限定することによって、最適解が求まるまでの探索時間
の短縮が可能になった。これは、使用者にとって探索パ
ラメータの設定が簡単になるだけでなく、GAが現実の
システムに耐えうる条件を満たすことにもなる。
In the modification rule judging device and the modification rule judging method according to the present invention, all the parameters have been set as the search range so far, but only the parameters that need to be modified and the parameters around them are described. By limiting the range of correction, it became possible to shorten the search time until the optimal solution was obtained. This not only makes it easier for the user to set search parameters, but also satisfies the conditions under which the GA can withstand a real system.

【0015】請求項2及び請求項5記載の本発明の修正
規則判断装置及び修正規則判断方法では、修正の必要の
あるパラメータとその周りのパラメータを抽出する方法
として、1つは誤った分類クラスに導かれたデータが本
来属する分類クラスに対して、もう1つは誤った分類ク
ラスに導かれたデータのみに対してパラメータを抽出す
る。そして、これらの抽出で得られたパラメータの和集
合を修正対象範囲とする。 請求項3及び請求項6記載
の本発明の修正規則判断装置及び修正規則判断方法で
は、上記で抽出したパラメータをさらに特徴量との関係
から修正の可能性の高い部分だけを抽出する。これによ
って、探索範囲はさらに吟味され、探索時間の減少につ
ながる。
In the modification rule judging apparatus and the modification rule judging method according to the present invention, one of the methods for extracting a parameter that needs to be modified and parameters around the parameter is one of an incorrect classification class. The parameters are extracted for the classification class to which the data derived to the original belongs, and for the other only for the data derived to the wrong classification class. Then, the union of the parameters obtained by these extractions is set as the correction target range. According to the modification rule judging device and the modification rule judging method of the present invention described in claims 3 and 6, only the part having a high possibility of modification is extracted from the parameters extracted above in relation to the characteristic amount. This further scrutinizes the search range, leading to a reduction in search time.

【0016】[0016]

【発明の実施の形態】以下、本発明の実施の形態につい
て図面を参照にして詳細に説明する。
Embodiments of the present invention will be described below in detail with reference to the drawings.

【0017】図1(a)は本発明の一実施形態に係る装
置の構成を示すブロック図である。同図に示すように、
事例格納部11には図2に示す画像ファイル名と対応す
る分類クラスからなる事例が格納されている。判断規則
格納部12には現在使用するシステム内に記述された判
断規則が格納されている。そして事例格納部11に格納
された事例は、判断規則格納部12に格納された判断規
則によって推論部13で推論される。修正対象抽出部1
4は、推論部13が推論したクラスと事例格納部11に
格納されている事例に対応する分類クラスが異なる場
合、その事例に係る経路上に表れるパラメータを判断規
則の修正対象として抽出する。探索範囲格納部15には
修正対象抽出部14で抽出された修正対象の探索範囲が
格納される。ただし探索範囲格納部15は、ここでGA
手法によって判断規則修正(生成)するために用いられ
るのであって、他の手法を用いる場合は使用しないこと
もある(図1(b)参照)。最後に、修正対象探索部1
6によって修正対象範囲内で探索が行われ、パラメータ
の変更すなわち判断規則が修正される。
FIG. 1A is a block diagram showing a configuration of an apparatus according to an embodiment of the present invention. As shown in the figure,
The case storage unit 11 stores a case including a classification class corresponding to the image file name shown in FIG. The judgment rule storage unit 12 stores judgment rules described in the currently used system. Then, the case stored in the case storage unit 11 is inferred by the inference unit 13 according to the judgment rule stored in the judgment rule storage unit 12. Correction target extraction unit 1
When the class inferred by the inference unit 13 is different from the classification class corresponding to the case stored in the case storage unit 11, the parameter 4 extracts a parameter appearing on a route related to the case as a correction target of the determination rule. The search range storage unit 15 stores the search range of the correction target extracted by the correction target extraction unit 14. However, the search range storage unit 15 stores the GA
It is used to correct (generate) a judgment rule by a method, and may not be used when another method is used (see FIG. 1B). Finally, the correction target search unit 1
A search is performed within the correction target range by 6 to change the parameter, that is, to correct the determination rule.

【0018】次に、以上のような構成を持つ判断規則修
正装置の動作をフローチャートに沿って説明する。図3
は判断規則修正装置の一実施形態に係る修正の流れを示
すフローチャートである。
Next, the operation of the decision rule correcting device having the above configuration will be described with reference to the flowchart. FIG.
5 is a flowchart showing a flow of a correction according to an embodiment of the judgment rule correction device.

【0019】同図に示すように、まず入力されたデータ
とそのデータを識別する分類クラスを併せ持つデータ集
合を読み込む(ステップ31)。これは図1(a)の事
例格納部11に格納された事例に対し、判断規則格納部
12に格納されている判断規則が正しい推論を行うかど
うかを評価するための準備を行なう。ここでは図4の事
例S1を読み込む。
As shown in FIG. 1, a data set having both input data and a classification class for identifying the data is read (step 31). This makes preparations for evaluating whether or not the judgment rule stored in the judgment rule storage unit 12 makes a correct inference with respect to the case stored in the case storage unit 11 of FIG. Here, the case S1 of FIG. 4 is read.

【0020】次に、読み込まれた事例S1を判断規則格
納部12に格納されている判断規則によって評価し、読
み込んだ事例に対応する分類クラスを推論する(ステッ
プ32)。例えば図5で示す判断規則を用いて評価し、
図4の事例S1に対する推論されるクラスを求める。た
だし、図5の判断規則の条件部分に記述されている「面
積」、「密度」、「幅」に対しては、画像ファイル名f
ilen及びパラメータを引数とする関数area(f
ilen,Q1)、density(filen,Q
2)、width(filen,Q3)がそれぞれ定義
されているとする。また、探索範囲格納部15には、図
6に示すパラメータの探索可能範囲と現在の設定値が格
納されている。また、その範囲はパラメータ毎に「最大
値」と「最小値」および範囲内の「刻幅」を持つ。画像
ファイル名がfile11、クラスが分類1である事例
S1を評価する際には、パラメータとしてQ1=4,Q
2=4,Q3=4という値を持っている。これらのパラ
メータを上記関数に代入し、その解である特徴量を得
る。特徴量とは、事例が持つ属性を数値で表したもので
ある。事例S1に関し、パラメータを代入した結果、図
7に示した値SA1が求まるとすると、filenは
「面積」8、「密度」5、「幅」1の特徴量を有する。
Next, the read case S1 is evaluated according to the judgment rules stored in the judgment rule storage unit 12, and a classification class corresponding to the read case is inferred (step 32). For example, the evaluation is performed using the judgment rule shown in FIG.
The inferred class for the case S1 in FIG. 4 is determined. However, “area”, “density”, and “width” described in the condition part of the determination rule in FIG.
A function area (f which takes ilen and parameters as arguments
ilen, Q1), density (filen, Q
2) and width (filen, Q3) are defined respectively. Further, the search range storage unit 15 stores a searchable range of the parameters shown in FIG. 6 and a current set value. The range has a “maximum value” and a “minimum value” for each parameter, and a “step size” within the range. When evaluating the case S1 in which the image file name is file11 and the class is class 1, Q1 = 4, Q
It has a value of 2 = 4, Q3 = 4. These parameters are substituted into the above function to obtain a feature amount as a solution. The feature amount is an attribute of a case represented by a numerical value. Assuming that the value SA1 shown in FIG. 7 is obtained as a result of substituting the parameters for the case S1, filen has the feature amounts of “area” 8, “density” 5, and “width” 1.

【0021】事例を推論する時、まず図5の判断規則の
最上位分岐ノードN1に割り当てられている特徴量「面
積」の値を用いて評価を行う。事例S1では、「面積」
に対する特徴量は8であるから,分岐ノードN1の左側
に連結している枝の条件10未満が成り立つ。よって事
例は分岐ノードN1の左側に伝播し、分岐ノードN2に
移る。次に分岐ノードN2に割り当てられている特徴量
「密度」の値を用いて評価を行う。図4の事例では「密
度」の特徴量は5であるから、分岐ノードN2の右側に
連結している枝の条件5以上が成り立ち、事例は分岐ノ
ードN5へ伝播する。最後に、分岐ノードN5に割り当
てられている特徴量「幅」の値を用いて評価を行う。図
4の事例では「幅」の特徴量は1であるから、分岐ノー
ドN5の左側に連結する枝の条件6未満が成り立ち、左
側すなわち「分類2」が割り当てられた末端ノードE4
へ伝播する。結果として、事例はクラス「分類2」と推
論される。図8の斜線で囲んだノードは、事例S1が判
断規則に従って推論される様子を示す。
When inferring a case, first, evaluation is performed using the value of the feature amount “area” assigned to the highest-order branch node N1 in the decision rule of FIG. In case S1, "area"
Is 8, the condition of the branch connected to the left side of the branch node N1 is less than 10. Therefore, the case propagates to the left side of the branch node N1 and moves to the branch node N2. Next, evaluation is performed using the value of the feature amount “density” assigned to the branch node N2. In the case of FIG. 4, the feature amount of “density” is 5, so that the condition of 5 or more of the branch connected to the right side of the branch node N2 is satisfied, and the case propagates to the branch node N5. Finally, evaluation is performed using the value of the feature amount “width” assigned to the branch node N5. In the example of FIG. 4, since the feature amount of “width” is 1, the condition of the branch connected to the left side of the branch node N5 is less than 6, and the left side node, that is, the terminal node E4 to which “classification 2” is assigned.
Propagate to As a result, the case is inferred as class "Category 2". The hatched nodes in FIG. 8 indicate how the case S1 is inferred according to the determination rules.

【0022】続いて、ステップ32で推論された事例S
1のクラスと推論前の事例格納部11で格納されている
分類クラスを比較する(ステップ33)。双方のクラス
が一致していれば判断規則の修正は不要であり、アルゴ
リズムは終了する。しかし、一致していなければ、判断
規則を修正する必要があると判断する。事例S1の場
合、ステップ32においてクラスは「分類2」と推論さ
れたが、事例格納部1上では「分類1」が割り当てられ
ており一致しない。よってこの場合、判断規則を修正す
る必要があると判断する。
Subsequently, the case S inferred in step 32
The class No. 1 is compared with the classification class stored in the case storage unit 11 before inference (step 33). If the two classes match, the decision rule does not need to be modified, and the algorithm ends. However, if they do not match, it is determined that the determination rule needs to be modified. In the case of the case S1, the class was inferred to be “class 2” in step 32, but “class 1” is assigned in the case storage unit 1 and does not match. Therefore, in this case, it is determined that the determination rule needs to be modified.

【0023】判断規則を修正する場合、まず修正対象の
抽出を行う(ステップ34)。抽出には次に示す3つの
方法を持つ。
When modifying the judgment rule, first, a modification target is extracted (step 34). The extraction has the following three methods.

【0024】1つは、事例のクラスに関連する修正対象
を抽出する方法である。つまり、誤った推論結果を得た
事例の画面ファイル名に対応するクラスと同じ推論結果
(末端ノードのクラス)を持つ推論経路を、末端ノード
から最上位の分岐ノードまで溯り、該経路上のパラメー
タを修正対象として抽出する。具体的に図4の事例S1
で言えば、本来割り当てられているクラス「分類1」に
関連する経路を溯ってみる。図5の判断規則で「分類
1」が推論されるのは、末端ノードE1、E6の2ヵ所
である。末端ノードE1から最上位の分岐ノードN1ま
での経路は、分岐ノードN4と末端ノードE1を結ぶ
枝、分岐ノードN4、分岐ノードN2と分岐ノードN4
を結ぶ枝、分岐ノードN2、分岐ノードN1と分岐ノー
ドN2を結ぶ枝、分岐ノードN1である。各ノードや枝
には各々パラメータP5、Q3、P2、Q2、P1、Q
1が対応する。末端ノードE6の場合、分岐ノードN3
と末端ノードE6を結ぶ枝、分岐ノードN3、分岐ノー
ドN1と分岐ノードN3を結ぶ枝、分岐ノードN1であ
り、パラメータP3、Q3、P1、Q1が対応する。よ
って、クラスに関連する修正対象として、パラメータP
1、P2、P3、P5、Q1、Q2、Q3を抽出する。
図9の斜線で囲んだノードはパラメータ抽出の様子を示
す。
One is a method of extracting a correction target related to a case class. In other words, an inference route having the same inference result (class of the terminal node) as the class corresponding to the screen file name of the case in which an incorrect inference result is obtained is traced back from the terminal node to the highest branch node, and the parameters on the path Is extracted as a correction target. Specifically, case S1 in FIG.
In other words, the route related to the originally assigned class "class 1" is traced back. The “classification 1” is inferred at the two end nodes E1 and E6 by the determination rule of FIG. The path from the terminal node E1 to the uppermost branch node N1 is a branch connecting the branch node N4 and the terminal node E1, the branch node N4, the branch node N2 and the branch node N4.
, A branch node N2, a branch connecting the branch node N1 and the branch node N2, and a branch node N1. Parameters P5, Q3, P2, Q2, P1, Q
1 corresponds. In the case of the terminal node E6, the branch node N3
And a branch node N3, a branch node N3, a branch connecting the branch node N1 and the branch node N3, and a branch node N1, and the parameters P3, Q3, P1, and Q1 correspond to each other. Therefore, as a correction target related to the class, the parameter P
1, P2, P3, P5, Q1, Q2, and Q3 are extracted.
The nodes surrounded by oblique lines in FIG. 9 indicate how parameters are extracted.

【0025】2つは、事例の評価に関連する修正対象を
抽出する方法である。つまり、修正対象と判定された事
例が辿った最上位の分岐ノードから末端ノードまでの判
断経路のパラメータを、事例の評価に関連する修正対象
として抽出する。図4の事例S1の場合、図8で示すよ
うに、分岐ノードN1、分岐ノードN1と分岐ノードN
2の枝、分岐ノードN2、分岐ノードN2と分岐ノード
N5の枝、分岐ノードN5、分岐ノードN5と末端ノー
ドE4の枝を通って末端ノードE4に伝播する。これら
に対応するパラメータは、Q1、P1、Q2、P2、Q
3、P7であり、これを事例の評価に関連する修正対象
として抽出する。
The second is a method of extracting a correction target related to the evaluation of a case. That is, the parameters of the determination path from the highest branch node to the terminal node followed by the case determined to be the correction target are extracted as correction targets related to the evaluation of the case. In the case S1 of FIG. 4, as shown in FIG. 8, the branch node N1, the branch node N1, and the branch node N
2, the branch node N2, the branch between the branch node N2 and the branch node N5, the branch node N5, and the branch between the branch node N5 and the terminal node E4 to propagate to the terminal node E4. The parameters corresponding to these are Q1, P1, Q2, P2, Q
3, P7, which is extracted as a correction target related to the evaluation of the case.

【0026】3つは、上記2つの方法を使って抽出した
修正対象をさらに絞り込むことを前提とした方法であ
る。つまり、読み込まれた事例が誤った推論結果となっ
た場合、該事例が正しい推論結果を得る(末端ノードに
行き着く)ための推論経路を想定し、該事例の持つ特徴
量と該経路上の閾値(分岐する基準となる値)を比較す
る。該事例が該閾値によって該経路から外れるのであれ
ば、該閾値の修正すなわち、該閾値のパラメータを探索
すべき修正対象として抽出する。一方、該特徴量と該閾
値が該推論経路上にあれば、修正対象としない。図5に
示す判断規則において図4の事例S1で言えば、末端ノ
ードから見てE1またはE6に推論が達すればよく、そ
のためには該末端ノードの上位、すなわち分岐ノードN
4もしくはN3に達する必要がある。そこで、事例S1
の「幅」の特徴量は1であり、分岐ノードN4と末端ノ
ードE1を結ぶ枝の条件は4(=P5)未満、および分
岐ノードN3と末端ノードE6を結ぶ枝の条件は2(=
P3)未満であるからこれらの値を変化させる必要はな
い。つまりパラメータP5、P3および「幅」の特徴量
を変えるQ3は修正対象とならない。さらに上位ノード
を見ていくと、事例S1の「密度」の特徴量は5である
のに対し、分岐ノードN2と分岐ノードN4を結ぶ枝の
条件は5(=P2)未満であるから、パラメータP2は
修正対象となる。同様に事例S1の「面積」の特徴量は
8であるのに対し、分岐ノードN1と分岐ノードN3を
結ぶ枝の条件は10(=P1)以上であるので、パラメ
ータP1も修正対象となる。また、分岐ノードN5に事
例が到達しても、正しい推論結果を得ることができない
ので、パラメータP7は修正対象外となる。
The three methods are based on the premise that the correction targets extracted using the above two methods are further narrowed down. In other words, if the read case becomes an incorrect inference result, an inference route for obtaining a correct inference result (ending at the terminal node) for the case is assumed, and the feature amount of the case and the threshold value on the route are assumed. (Value used as a reference for branching). If the case deviates from the route due to the threshold, the threshold is corrected, that is, the parameters of the threshold are extracted as correction targets to be searched. On the other hand, if the feature value and the threshold value are on the inference route, they are not corrected. In the decision rule shown in FIG. 5, in the case of the case S1 of FIG. 4, the inference only needs to reach E1 or E6 when viewed from the terminal node.
4 or N3. Therefore, case S1
Is 1, the condition of the branch connecting the branch node N4 and the terminal node E1 is less than 4 (= P5), and the condition of the branch connecting the branch node N3 and the terminal node E6 is 2 (=
Since these values are less than P3), there is no need to change these values. That is, the parameters P5 and P3 and Q3 that changes the feature amount of “width” are not to be corrected. Looking further at the upper nodes, the characteristic amount of “density” in case S1 is 5, whereas the condition of the branch connecting branch node N2 and branch node N4 is less than 5 (= P2). P2 is to be corrected. Similarly, while the feature amount of the “area” in the case S1 is 8, the condition of the branch connecting the branch node N1 and the branch node N3 is 10 (= P1) or more, so the parameter P1 is also to be corrected. Further, even if the case reaches the branch node N5, a correct inference result cannot be obtained, and therefore, the parameter P7 is not to be corrected.

【0027】従って、最終的な修正対象は、クラス及び
事例の評価に関連する修正対象から、変化させる必要の
ないパラメータを除いたパラメータP1、P2、Q1、
Q2となる。
Therefore, the final correction targets are the parameters P1, P2, Q1, Q2 except for the parameters that do not need to be changed from the correction targets related to class and case evaluation.
It becomes Q2.

【0028】さらにこの方法が、例えば図10に示す判
断規則が判断規則格納部12に格納されている場合の修
正パラメータ抽出について考える。
Further, the method considers the correction parameter extraction in the case where the judgment rule shown in FIG. 10 is stored in the judgment rule storage unit 12, for example.

【0029】ここでは、図4の事例S1を評価する際の
パラメータとして、パラメータQ4=2、Q5=3を与
え、関数hight(filen,Q4) 、lengt
h(filen,Q5) により「高さ」の特徴量4及び
「長さ」の特徴量3を加えた変化形の事例S2(図示せ
ず)を使う。但し、分類クラスは事例S1と同じとす
る。
Here, parameters Q4 = 2 and Q5 = 3 are given as parameters for evaluating the case S1 of FIG. 4, and the functions high (filen, Q4) and length
A variant case S2 (not shown) obtained by adding the "height" feature amount 4 and the "length" feature amount 3 by h (filen, Q5) is used. However, the classification class is the same as the case S1.

【0030】図10の判断規則に従えば、事例S2は末
端ノードE8、つまり「分類2」という推論結果を得
る。しかし本来事例S2にはクラス「分類1」が割り当
てられ、判断規則の修正が必要となる。上述した図5の
判断規則における抽出方法と同様に、図10の判断規則
においてもクラス「分類1」に関連する修正対象とし
て、パラメータP1、P2、P3、P5、P6、P8、
P9、P10、Q1、Q2、Q3、Q4を抽出する。さ
らに事例の評価に関連する修正対象として、パラメータ
Q1、P1、Q2、P2、Q3、P7を抽出する。最後
に特徴量に注目すると、正しい推論とされる末端ノード
E3、E6、E10はそれぞれ分岐ノードN6、N7、
N3から分岐し、「高さ」の特徴量4に対して分岐ノー
ドN6と末端ノードE3を結ぶ枝の条件は5(=P8)
以上8(=P9)未満である。よって、パラメータP
8、P9および「高さ」の特徴量を変えるQ4は、修正
対象となる。また、分岐ノードN7と末端ノードE6を
結ぶ枝の条件は8(=P10)未満であるが、Q4が修
正対象となっているので、「高さ」の特徴量が変わる可
能性がある。従って、P10は修正対象となる。「幅」
の特徴量1に対して、分岐ノードN3と末端ノードE1
0を結ぶ枝の条件は2(=P3)未満、分岐ノードN4
と分岐ノードN6を結ぶ枝の条件は4(=P5)未満で
ある。よって、パラメータP3、P5およびQ3は修正
対象外となる。また、分岐ノードN4と分岐ノードN7
を結ぶ枝の条件は9(=P6)以上であるが、P6はP
5よりも小さくなれないので、分岐ノードN7には到達
しない。従って、P6は対象外となる。そしてさらに上
位のノードを辿ると、「密度」の特徴量5に対して、分
岐ノードN2と分岐ノードN4を結ぶ枝の条件は5(=
P2)未満であるから、パラメータP2およびQ2は修
正対象となる。その上の分岐ノードN1と分岐ノードN
2、および分岐ノードN1と分岐ノードN3をそれぞれ
結ぶ枝の条件は、分岐ノードN2側で10(=P1)未
満、分岐ノードN3側で10(=P1)以上となってい
るので、P1およびQ1は修正対象となる。
According to the determination rule shown in FIG. 10, the case S2 obtains the inference result of the terminal node E8, that is, "classification 2". However, the class “Category 1” is originally assigned to the case S2, and the determination rule needs to be modified. Similar to the extraction method in the determination rule of FIG. 5 described above, in the determination rule of FIG. 10, parameters P1, P2, P3, P5, P6, P8,
P9, P10, Q1, Q2, Q3, and Q4 are extracted. Further, parameters Q1, P1, Q2, P2, Q3, and P7 are extracted as correction targets related to the case evaluation. Finally, paying attention to the features, the end nodes E3, E6, and E10, which are assumed to be correct inferences, are branch nodes N6, N7,
The condition of the branch that branches from N3 and connects the branch node N6 and the terminal node E3 is 5 (= P8) for the feature amount 4 of “height”.
It is less than 8 (= P9). Therefore, the parameter P
8, P9 and Q4 that changes the feature amount of “height” are to be corrected. The condition of the branch connecting the branch node N7 and the terminal node E6 is less than 8 (= P10). However, since Q4 is to be corrected, the feature amount of “height” may change. Therefore, P10 is a correction target. "width"
Branching node N3 and terminal node E1
The condition of the branch connecting 0 is less than 2 (= P3), the branch node N4
Is less than 4 (= P5). Therefore, the parameters P3, P5, and Q3 are not to be corrected. Also, the branch node N4 and the branch node N7
Is more than 9 (= P6), but P6 is
Since it cannot be smaller than 5, it does not reach the branch node N7. Therefore, P6 is out of the target. Then, when tracing further higher nodes, the condition of the branch connecting the branch node N2 and the branch node N4 is 5 (=
Since it is less than P2), the parameters P2 and Q2 are to be corrected. Branch node N1 and branch node N on it
2, and the condition of the branch connecting the branch node N1 and the branch node N3 is less than 10 (= P1) on the branch node N2 side and 10 or more (= P1) or more on the branch node N3 side. Are to be corrected.

【0031】また、分岐ノードN5に事例が到達して
も、正しい推論結果を得ることはできないので、パラメ
ータP7は修正対象外とする。
Even if the case reaches the branch node N5, a correct inference result cannot be obtained, so the parameter P7 is excluded from the correction target.

【0032】従って、図10の事例S2でクラス及び事
例の評価に関連する修正対象から、変化させる必要のな
いパラメータを除くと、パラメータP1、P2、P8、
P9、P10、Q1、Q2、Q4が最終的な修正対象と
なる。
Therefore, in the case S2 shown in FIG. 10, if the parameters that do not need to be changed are excluded from the correction targets related to the class and the case evaluation, the parameters P1, P2, P8,
P9, P10, Q1, Q2, and Q4 are final correction targets.

【0033】次に、修正対象範囲の探索開始位置を決め
る(ステップ35)。言い換えれば、修正対象抽出部1
4からステップ34で求められた修正対象の探索範囲を
格納する探索範囲格納部15によって修正対象の探索可
能な範囲を獲得し、さらに該修正対象をビット表現した
文字列に変換する。ビット表現については、参考文献
「ジェネティックアルゴリズム/安居院猛、長尾智晴著
/昭晃堂/1993年」によると、GAを使う場合遺伝
子型を表す記号としてどのようなものを用いるかは任意
であるが、一般的には0と1であるとされる。従って、
本実施例ではパラメータを0と1を用いて2進数で表現
する。
Next, the search start position of the correction target range is determined (step 35). In other words, the correction target extraction unit 1
4 to obtain a searchable range of the correction target by the search range storage unit 15 that stores the search range of the correction target obtained in step 34, and further converts the correction target into a character string expressed in bits. Regarding the bit representation, according to the reference document "Genetic algorithm / Takeharu Yasui, Tomoharu Nagao / Shokodo / 1993", when using GA, what kind of symbol is used as a symbol representing a genotype is arbitrary. , Generally 0 and 1. Therefore,
In this embodiment, the parameters are represented by binary numbers using 0 and 1.

【0034】図4で示す事例S1で求められた修正対象
で考えると、P1に対しては探索範囲格納部15から最
小値4、最大値11、刻幅1の範囲が得られる。このと
き、P1は8種類の値を取り得るため、3ビットを割り
当てればP1が取り得る値すべてを2進数で表現するこ
とができる。つまり、最小値4を2進数000に対応さ
せ、最小値が刻幅に応じて1増える毎に000の値も1
増やせば、P1の値すべてを表現することができる。同
じ方法で残りのパラメータP2、Q1、Q2について考
えると、各々3ビット、4ビット、4ビットを割り当て
れば、最小値から最大値まで取り得る値すべてを表現す
ることができる。修正対象全体で見れば、14ビットで
一つの解を表現することができる。図11は、図5の判
断規則におけるP1、P2、Q1、Q2のパラメータ設
定値を各々2進数で対応させた染色体表現である。
Considering the correction target obtained in the case S1 shown in FIG. 4, a range of the minimum value 4, the maximum value 11, and the step size 1 is obtained from the search range storage unit 15 for P1. At this time, since P1 can take eight kinds of values, all the possible values of P1 can be represented by a binary number by allocating 3 bits. That is, the minimum value 4 corresponds to the binary number 000, and the value of 000 also increases by 1 each time the minimum value increases by 1 according to the step size.
If it increases, all the values of P1 can be expressed. Considering the remaining parameters P2, Q1, and Q2 in the same manner, all the possible values from the minimum value to the maximum value can be expressed by assigning 3 bits, 4 bits, and 4 bits respectively. Looking at the entire correction target, one solution can be represented by 14 bits. FIG. 11 is a chromosome expression in which the parameter setting values of P1, P2, Q1, and Q2 in the determination rule of FIG.

【0035】そうして修正対象の現在の状態をビット表
現した染色体と、0あるいは1を乱数を用いて生成した
染色体とを合わせて予め設定された集合体の構成数にな
れば、それを第0世代の染色体集団とし、探索を開始す
る。
When the chromosome that represents the current state of the correction target in bits and the chromosome that generates 0 or 1 using random numbers are combined to form a predetermined number of aggregates, the number of chromosomes is calculated. The search is started with the chromosome population of the zero generation.

【0036】図12は、上述した第0世代の染色体集団
を示し、修正対象の現在の状態を示す染色体として図1
1に示す値と0あるいは1の乱数で生成した19個の染
色体で構成する。これらの染色体の適合度を計算する
と、例えば図11に示す現在の設定値を表現した染色体
の場合、事例格納部11に格納される図2の事例T1〜
T10が正しく判定できるとすれば、図4に示す事例S
1だけが現在の設定値で正しく判定できない事例とな
り、0. 91( =10/11) が図11の染色体の適合
度として求まる。一方、他の染色体に対しては、まず染
色体に対応するパラメータを求め、この値を図5の判断
規則のパラメータと置き換えてT1〜T10及びS1の
事例を評価する。このような各事例の評価を行った後
で、現在の設定値の場合と同様に正しく評価できた事例
の割合(正しく評価できる事例/格納された全事例)を
求めて、各染色体の適合度とする。
FIG. 12 shows the chromosome group of the 0th generation described above.
It consists of 19 chromosomes generated with the value shown in 1 and a random number of 0 or 1. When the fitness of these chromosomes is calculated, for example, in the case of a chromosome expressing the current set values shown in FIG. 11, the cases T1 to T1 of FIG.
If T10 can be determined correctly, the case S shown in FIG.
Only 1 is a case where it cannot be determined correctly with the current set value, and 0.91 (= 10/11) is obtained as the fitness of the chromosome in FIG. On the other hand, for other chromosomes, the parameters corresponding to the chromosomes are determined first, and the values are replaced with the parameters of the determination rule in FIG. 5 to evaluate the cases of T1 to T10 and S1. After each such case is evaluated, the percentage of cases that can be evaluated correctly (the cases that can be correctly evaluated / all stored cases) is determined in the same way as the current setting value, and the fitness of each chromosome is calculated. And

【0037】続いて、染色体集団の世代が予め設定した
世代に到達したか、または最も高い適合度を与える染色
体の適合度が1.0になるかどうかを判定する(ステッ
プ36)。その結果、いずれかの条件を満たす場合、判
断規則の修正を行う(ステップ38)。一方、どちらの
条件も満たさない場合、次の探索位置を決定する(ステ
ップ37)。すなわち、交差・突然変異といった遺伝子
操作を適用することによって恣意的に新たな探索点を作
り、途中段階の染色体集団を生成する。また、途中段階
の染色体集団に含まれる各染色体に対して、染色体に対
応するパラメータ値を適用した判断規則を用いて、事例
格納部11に格納されている事例及び判断規則の修正が
必要かどうかの検査用に読み込まれた事例が正しく特定
される割合を求めて、各染色体の適合度とする。さらに
は、適合度に応じた確率を各染色体に割り当てて、途中
段階の染色体集団の中から染色体を選択することによ
り、次の世代の染色体集団を選択する。
Subsequently, it is determined whether or not the generation of the chromosome population has reached the preset generation, or whether the fitness of the chromosome giving the highest fitness is 1.0 (step 36). As a result, if any of the conditions is satisfied, the judgment rule is corrected (step 38). On the other hand, if neither condition is satisfied, the next search position is determined (step 37). That is, a new search point is arbitrarily created by applying a genetic operation such as crossover / mutation, and a chromosome population at an intermediate stage is generated. In addition, for each chromosome included in the chromosome population in the middle stage, whether or not the case and the judgment rule stored in the case storage unit 11 need to be modified using the judgment rule applying the parameter value corresponding to the chromosome The ratio at which the cases read for the test are correctly identified is determined as the fitness of each chromosome. Furthermore, a probability according to the degree of fitness is assigned to each chromosome, and a chromosome is selected from the chromosome population at an intermediate stage, thereby selecting a chromosome population of the next generation.

【0038】例えば、図12に示すように第0世代の染
色体集団から遺伝子操作により第1世代の染色体集団を
生成するには、次の方法が考えられる。
For example, as shown in FIG. 12, a first generation chromosome population can be generated from a 0th generation chromosome population by genetic manipulation as follows.

【0039】まず交差の場合、第0世代の染色体集団の
中から乱数を用いて二つの染色体を取り出す。この取り
出した染色体に対して、乱数を用いて切断位置を決定す
る。この切断位置で染色体を分離し、分離した染色体の
一部を互いに交換することにより、新たな二つの染色体
を生成する。この交差を第0世代に含まれる染色体がな
くなるまで繰り返すことにより、第1世代途中段階1を
生成する。図13は、第0世代の染色体集団から交差に
より、第1世代途中段階1が生成される様子を示してい
る。
First, in the case of intersection, two chromosomes are extracted from the chromosome population of the 0th generation using random numbers. The cutting position of the extracted chromosome is determined using random numbers. Chromosomes are separated at the cut positions, and a part of the separated chromosomes is exchanged with each other to generate two new chromosomes. This intersection is repeated until there are no more chromosomes contained in the 0th generation, thereby generating the first generation intermediate stage 1. FIG. 13 illustrates a state in which the first generation middle stage 1 is generated by crossing from the 0th generation chromosome population.

【0040】次に突然変異の場合、第1世代途中段階1
の中から一つの染色体を取り出す。この染色体の各ビッ
トに対して、突然変異を実施するかどうかの判定を行
い、突然変異を実施すると判定したビットに関して、ビ
ットの反転、すなわち0→1または1→0に変換を行
い、新たな染色体を生成する。この突然変異を第1世代
途中段階1に含まれる染色体がなくなるまで繰り返すこ
とにより、第1世代途中段階2を生成する。図14は第
1世代途中段階から突然変異により、第1世代途中段階
2が生成される様子を示している。
Next, in the case of mutation, the first generation
Take out one chromosome from. For each bit of this chromosome, it is determined whether or not to carry out mutation, and the bit determined to be mutated is inverted, that is, converted into 0 → 1 or 1 → 0, and a new Generate chromosomes. This mutation is repeated until the chromosomes included in the first generation middle stage 1 disappear, thereby generating the first generation middle stage 2. FIG. 14 shows a state in which the first generation middle stage 2 is generated by mutation from the first generation middle stage.

【0041】選択の場合、操作に先立って第1世代途中
段階2に含まれる染色体の適合度を計算する。つまり、
染色体に対応するパラメータの値を図5の判断規則に適
用して図2の事例T1〜T10及び図4の事例S1を評
価する。このとき正しく評価された事例の割合を染色体
の適合度とする。そうして、n番目の染色体の適合度f
itnessnを数式1に代入することにより、n番目
の染色体の選択確率probnが求まる。
In the case of selection, prior to the operation, the degree of fitness of the chromosomes included in stage 2 of the first generation is calculated. That is,
The cases T1 to T10 in FIG. 2 and the case S1 in FIG. 4 are evaluated by applying the values of the parameters corresponding to the chromosomes to the determination rule in FIG. The proportion of cases evaluated correctly at this time is defined as the chromosome fitness. Then, the fitness f of the n-th chromosome
By substituting itnessn into Equation 1, the selection probability probn of the n-th chromosome is obtained.

【0042】[0042]

【数1】 このprobnの値を反映した乱数により、選択する染
色体を決定して、第1世代の染色体集団を生成する。図
15は、第1世代途中段階2から選択により、第1世代
の染色体集団が生成される様子を示している。
(Equation 1) A chromosome to be selected is determined by a random number reflecting the value of the probn, and a first-generation chromosome population is generated. FIG. 15 shows a state in which a chromosome population of the first generation is generated by selection from the middle stage 2 of the first generation.

【0043】最後に、染色体集団の世代が予め設定した
世代に到達したか、染色体の適合度が1.0になるかの
いずれかの条件が成り立った場合、検索した染色体の中
から最も適合度の高い染色体を取り出して、該染色体に
対するパラメータ値を求める。そして、図1(a)の判
断規則格納部12に格納されている判断規則はこのパラ
メータ値で更新(修正)される。例えば、図16の染色
体が最も適合度の高い染色体として取り出されたとす
る。このとき図16の染色体はP1=11,P2=7,
Q1=5,Q2=3を表しているので、判断規則格納部
12に格納される判断規則は図5から図17に修正され
る。
Finally, if either of the following conditions is satisfied: the generation of the chromosome population reaches the preset generation, or the chromosome fitness is 1.0, the best fitness among the searched chromosomes is obtained. The chromosome having a high chromosome is taken out and the parameter value for the chromosome is determined. Then, the determination rule stored in the determination rule storage unit 12 of FIG. 1A is updated (corrected) with this parameter value. For example, assume that the chromosome in FIG. 16 is extracted as the chromosome with the highest degree of matching. At this time, the chromosome in FIG. 16 has P1 = 11, P2 = 7,
Since Q1 = 5 and Q2 = 3, the decision rules stored in the decision rule storage unit 12 are modified from FIG. 5 to FIG.

【0044】上述したフローチャートからわかるよう
に、本発明によれば誤った推論に導かれる事例の判断に
関連する部分を、3つの方法で、すなわち誤った結果
に関して、誤った事例に関して、誤った推論に導か
れる事理の特徴量に関して修正対象として取り出し、修
正対象の周辺だけを探索することにより、高速にかつ部
分的に判断規則を修正することが可能になる。なお、本
判断規則修正装置は、本実施例に限定するものではな
い。
As can be seen from the flow chart described above, according to the present invention, the part relevant to the determination of the case leading to the wrong inference is divided in three ways, namely for the wrong result, for the wrong case, and for the wrong case. By extracting the feature amount of the reason led to the above as a correction target and searching only the vicinity of the correction target, it is possible to correct the determination rule at high speed and partially. Note that the present determination rule correcting device is not limited to the present embodiment.

【0045】例えば、本実施例で利用しいている判断規
則は、決定木形式の判断規則であるが、参考文献「帰納
学習によるファジイ決定木の生成;櫻井茂明、荒木大
著、電気学会論文誌、Vol.113c,No.7 4
88−494,1993年」に記載のファジイ決定木形
式の判断規則を利用することもできる。
For example, the decision rule used in the present embodiment is a decision rule in the form of a decision tree. However, the reference document "Generation of fuzzy decision tree by inductive learning; Shigeaki Sakurai, Dai Araki
Author, Transactions of the Institute of Electrical Engineers of Japan, Vol. 113c, no. 74
88-494, 1993 "may be used.

【0046】さらに、本実施例では判断規則のパラメー
タを修正するための探索手法として、GAを利用してい
たが、参考文献「SIMULATED ANNEALI
NG;edited by Robert Azenc
ott,John Willy& Sons,In
c.;1992」記載のシミュレーティッドアニーリン
グ(SA)を利用してパラメータの修正値を求めること
もできる。なお、図3のフローチャートは探索手法とし
てGAを用いた場合の処理手順を記したものであって、
GA以外の手法を用いる場合この処理手順には限定され
ない。
Further, in this embodiment, GA is used as a search method for correcting the parameters of the decision rule, but the reference document "SIMULATED ANNEALI" is used.
NG; edited by Robert Azenc
ott, John Willy & Sons, In
c. ; 1992 "can be used to determine a corrected value of a parameter. The flowchart of FIG. 3 describes a processing procedure when GA is used as a search method.
When a method other than GA is used, the processing procedure is not limited to this.

【0047】さらに、図3のステップ35で示した修正
対象パラメータを2進数のビットで染色体表現をするこ
とに関しても、本実施例で使用した14ビットに限定さ
れず、一般的にはそれぞれの修正対象パラメータが取り
得る値の範囲(個数)から各ビット桁数が決まり、その
桁数の和を単位とした染色体集団が生成される。
Further, the chromosome representation of the parameter to be modified shown in step 35 of FIG. 3 by binary bits is not limited to the 14 bits used in this embodiment, but is generally limited to each modification. The number of digits of each bit is determined from the range (number) of values that can be taken by the target parameter, and a chromosome population is generated in units of the sum of the digits.

【0048】また、GAでは生成する染色体集団の個数
に係る定義はなされていないため、図12で生成した数
20個に限定されない。
In the GA, the definition of the number of chromosome populations to be generated is not defined, so that the number is not limited to the number 20 generated in FIG.

【0049】また、ステップ38においては、最も適合
度の高い染色体の値を変換することにより、判断規則を
修正していたが、適合度の高い複数の染色体の値を変換
することにより、判断規則の修正候補を複数生成し、そ
の中から専門家に判断規則を選択させることもできる。
この他、本発明の技術思想を逸脱しない範囲で種々変形
して実施しうる。
In step 38, the judgment rule is modified by converting the value of the chromosome with the highest degree of conformity. However, by converting the values of a plurality of chromosomes with the highest degree of conformity, the judgment rule is modified. Can be generated, and an expert can select a judgment rule from among them.
In addition, various modifications may be made without departing from the technical spirit of the present invention.

【0050】[0050]

【発明の効果】以上詳述したように、本発明によれば、
与えられたデータを正しい推論結果へと導くように判断
規則を修正する問題において、誤った推論結果を引き起
こした場合、その原因を修正対象として抽出し、抽出し
た修正対象の周辺を探索空間として設定する。そして設
定した探索空間に対して探索手法を用いて修正を行う。
このように修正対象を抽出し、探索空間を小さく設定す
ることは、判断規則を修正する上で無駄な動作を省き、
与えられたデータを正しい推論結果へと導く判断規則に
高速に修正することができる。
As described in detail above, according to the present invention,
In the problem of erroneous inference result in the problem of modifying the judgment rule to lead the given data to the correct inference result, extract the cause as the correction target, and set the periphery of the extracted correction target as the search space I do. Then, the set search space is corrected using a search technique.
Extracting the correction target and setting the search space small in this way eliminates useless operations in correcting the determination rule,
It is possible to quickly modify given data into a decision rule that leads to a correct inference result.

【0051】さらに、修正に要する時間が短縮されるこ
とは、実際に本装置を用いた処理(例えば不良品の検査
など)の運用に与える影響を軽減することにつながる。
Further, a reduction in the time required for correction leads to a reduction in the effect on the operation of processing (for example, inspection of defective products) using the present apparatus.

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

【図1】(a)は本発明の判断規則修正装置の構成を示
したブロック図、(b)は本発明の一実施例形態に係る
判断規則修正装置の構成を示したブロック図である。
FIG. 1A is a block diagram illustrating a configuration of a decision rule modifying device according to the present invention, and FIG. 1B is a block diagram illustrating a configuration of a decision rule modifying device according to an embodiment of the present invention.

【図2】本装置の事例格納部11に格納される画像ファ
イル名と分類クラスの組を表す図である。
FIG. 2 is a diagram showing a set of an image file name and a classification class stored in a case storage unit 11 of the present apparatus.

【図3】本装置の処理の流れを示すフローチャートであ
る。
FIG. 3 is a flowchart showing a flow of processing of the present apparatus.

【図4】図5の判断規則では、推論結果を正しく判定で
きない画像ファイル名と分類クラスの組を表す図であ
る。
FIG. 4 is a diagram showing a set of an image file name and a classification class for which an inference result cannot be correctly determined according to the determination rule of FIG. 5;

【図5】本装置の判断規則格納部12に格納されている
判断規則を示す図である。
FIG. 5 is a diagram showing a judgment rule stored in a judgment rule storage unit 12 of the present apparatus.

【図6】本装置の探索範囲格納部15に格納されている
パラメータの探索可能領域を示す図である。
FIG. 6 is a diagram showing a searchable area of a parameter stored in a search range storage unit 15 of the present apparatus.

【図7】図4の画像ファイル名及びパラメータQ1〜Q
3の値を代入することにより、計算される図4の事例の
特徴量を示す図である。
FIG. 7 shows the image file name and parameters Q1 to Q in FIG.
FIG. 5 is a diagram illustrating a feature amount of the case of FIG. 4 calculated by substituting a value of 3;

【図8】図4の分類クラスを図5の判断規則で推論する
ための様子を表す図である。
8 is a diagram illustrating a state for inferring the classification class of FIG. 4 by the determination rule of FIG. 5;

【図9】図4のデータが図3の判断規則で推論される様
子を説明するための図である。
FIG. 9 is a diagram for explaining how the data in FIG. 4 is inferred by the determination rule in FIG. 3;

【図10】抽出される修正対象を表す図である。FIG. 10 is a diagram illustrating a correction target to be extracted.

【図11】修正対象となったパラメータを染色体表現し
た図である。
FIG. 11 is a chromosome representation of parameters to be corrected.

【図12】図11の染色体を含む第0世代の染色体集団
を表す図である。
FIG. 12 is a diagram showing a chromosome population of the 0th generation including the chromosome of FIG. 11;

【図13】第0世代の染色体に対して、交差を実施する
ことにより、第1世代途中状態1が生成される様子を表
す図である。
FIG. 13 is a diagram illustrating a state in which a first generation halfway state 1 is generated by performing crossover on a 0th generation chromosome.

【図14】第1世代途中状態の染色体集団に対して、突
然変異を実施することにより、第1世代途中状態2が生
成される様子を表す図である。
FIG. 14 is a diagram illustrating a state in which a first generation intermediate state 2 is generated by performing mutation on a chromosome population in the first generation intermediate state.

【図15】第1世代途中状態2の染色体集団から染色体
を選択することにより、第1世代の染色体集団が生成さ
れる様子を表す図である。
FIG. 15 is a diagram illustrating a state in which a first-generation chromosome population is generated by selecting a chromosome from the chromosome population in the first generation halfway state 2.

【図16】探索した染色体の中で最も適合度が高い染色
体を表す図である。
FIG. 16 is a diagram showing a chromosome having the highest degree of matching among the searched chromosomes.

【図17】修正された判断規則を表す図である。FIG. 17 is a diagram illustrating a modified judgment rule.

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

11 事例格納部 12 判断規則格納部 13 推論部 14 修正対象抽出部 15 探索範囲格納部 16 修正対象探索部 11 Case storage unit 12 Judgment rule storage unit 13 Inference unit 14 Correction target extraction unit 15 Search range storage unit 16 Correction target search unit

Claims (6)

【特許請求の範囲】[Claims] 【請求項1】 データと該データを識別する分類クラス
を併せ持つデータ集合に対し、 システム内に記述された判断規則の推論が誤っている部
分を抽出する手段と、 前記抽出した判断規則をパラメータ調整が可能なアルゴ
リズムを用いて修正する手段と、 を具備することを特徴とする判断規則修正装置。
1. A means for extracting, from a data set having both data and a classification class for identifying the data, a part in which inference of a judgment rule described in the system is incorrect, parameter adjustment of the extracted judgment rule Means for correcting using an algorithm capable of performing the determination.
【請求項2】 請求項1記載の判断規則修正装置におい
て、前記抽出する手段は、 誤った推論結果に導かれるデータ集合を対象として、該
データ集合に対応する判断規則上のパラメータを抽出す
る手段と、 誤った推論結果に導かれるデータ集合が属する分類クラ
スを対象として、該分類クラスに対応する判断規則上の
パラメータを抽出する手段と、 を具備することを特徴とするものである。
2. The apparatus according to claim 1, wherein said extracting means extracts a parameter on a decision rule corresponding to the data set from a data set which is derived from an incorrect inference result. And means for extracting a parameter on a decision rule corresponding to the classification class to which a data set derived from an incorrect inference result belongs, which is characterized by the following.
【請求項3】 請求項2の抽出する手段は、 さらに、請求項2で抽出したパラメータを対象として、
誤った推論結果に導かれるデータ集合が正しい推論結果
が得られる推論経路上で、修正を要するパラメータのみ
を抽出する手段を具備することを特徴とするものであ
る。
3. The extracting means according to claim 2, further comprising:
It is characterized in that it comprises means for extracting only parameters that need to be corrected on an inference route from which a data set led to an incorrect inference result can obtain a correct inference result.
【請求項4】 データと該データを識別する分類クラス
を併せ持つデータ集合に対し、 システム内に記述された判断規則の推論が誤っている部
分を抽出するステップと、 前記抽出した判断規則をパラメータ調整が可能なアルゴ
リズムを用いて修正するステップとを具備することを特
徴とする判断規則修正方法。
4. A step of extracting, from a data set having both data and a classification class for identifying the data, a part in which the inference of the decision rules described in the system is incorrect, adjusting the extracted decision rules by parameters. Correcting using an algorithm that can perform the determination.
【請求項5】 請求項4記載の判断規則修正方法におい
て、前記抽出するステップは、 誤った推論結果に導かれるデータ集合を対象として、該
データ集合に対応する判断規則上のパラメータを抽出す
るステップと、 誤った推論結果に導かれるデータ集合が属する分類クラ
スを対象として、該分類クラスに対応する判断規則上の
パラメータを抽出するステップとを具備することを特徴
とするものである。
5. The method according to claim 4, wherein said extracting step is a step of extracting a parameter on a decision rule corresponding to the data set from a data set that leads to an incorrect inference result. And extracting a parameter on a decision rule corresponding to the classification class to which a data set derived from an incorrect inference result belongs.
【請求項6】 請求項5の抽出するステップは、 さらに、請求項5で抽出したパラメータを対象として、
誤った推論結果に導かれるデータ集合が正しい推論結果
が得られる推論経路上で、修正を要するパラメータのみ
を抽出するステップを具備することを特徴とするもので
ある。
6. The extracting step according to claim 5, further comprising: targeting the parameters extracted in claim 5,
The method further comprises a step of extracting only parameters that need to be corrected on an inference route from which a data set led to an incorrect inference result can obtain a correct inference result.
JP32862598A 1998-11-18 1998-11-18 Judgment rule correction device and determination rule correction method Expired - Fee Related JP3670500B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP32862598A JP3670500B2 (en) 1998-11-18 1998-11-18 Judgment rule correction device and determination rule correction method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP32862598A JP3670500B2 (en) 1998-11-18 1998-11-18 Judgment rule correction device and determination rule correction method

Publications (2)

Publication Number Publication Date
JP2000155680A true JP2000155680A (en) 2000-06-06
JP3670500B2 JP3670500B2 (en) 2005-07-13

Family

ID=18212365

Family Applications (1)

Application Number Title Priority Date Filing Date
JP32862598A Expired - Fee Related JP3670500B2 (en) 1998-11-18 1998-11-18 Judgment rule correction device and determination rule correction method

Country Status (1)

Country Link
JP (1) JP3670500B2 (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2008096410A1 (en) 2007-02-05 2008-08-14 Fujitsu Limited Policy change processing pogram, policy change processing method and policy change processing device
JP2014147659A (en) * 2013-01-09 2014-08-21 Canon Inc Medical diagnosis support device, and medical diagnosis support method
WO2019073940A1 (en) * 2017-10-13 2019-04-18 キヤノン株式会社 Diagnosis assistance device, information processing method, diagnosis assistance system, and program
JP7502973B2 (en) 2020-11-19 2024-06-19 株式会社日立製作所 Prediction rule calibration system and prediction rule calibration method

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2008096410A1 (en) 2007-02-05 2008-08-14 Fujitsu Limited Policy change processing pogram, policy change processing method and policy change processing device
JPWO2008096410A1 (en) * 2007-02-05 2010-05-20 富士通株式会社 Policy change processing program, policy change processing method, policy change processing device
US7984011B2 (en) 2007-02-05 2011-07-19 Fujitsu Limited Policy change processing program, policy change processing method, policy change processing apparatus
JP5195433B2 (en) * 2007-02-05 2013-05-08 富士通株式会社 Policy change processing program, policy change processing method, policy change processing device
JP2014147659A (en) * 2013-01-09 2014-08-21 Canon Inc Medical diagnosis support device, and medical diagnosis support method
WO2019073940A1 (en) * 2017-10-13 2019-04-18 キヤノン株式会社 Diagnosis assistance device, information processing method, diagnosis assistance system, and program
JP2019074868A (en) * 2017-10-13 2019-05-16 キヤノン株式会社 Diagnosis support device, information processing method, diagnosis support system and program
CN111225614A (en) * 2017-10-13 2020-06-02 佳能株式会社 Diagnosis support device, information processing method, diagnosis support system, and program
US11423537B2 (en) 2017-10-13 2022-08-23 Canon Kabushiki Kaisha Diagnosis assistance apparatus, and information processing method
JP7224757B2 (en) 2017-10-13 2023-02-20 キヤノン株式会社 Diagnosis support device, information processing method, diagnosis support system and program
US11823386B2 (en) 2017-10-13 2023-11-21 Canon Kabushiki Kaisha Diagnosis assistance apparatus, and information processing method
JP7502973B2 (en) 2020-11-19 2024-06-19 株式会社日立製作所 Prediction rule calibration system and prediction rule calibration method

Also Published As

Publication number Publication date
JP3670500B2 (en) 2005-07-13

Similar Documents

Publication Publication Date Title
JP2881711B2 (en) Genetic synthesis of neural networks
CN109284363A (en) A kind of answering method, device, electronic equipment and storage medium
CN113811869A (en) Translating natural language queries into standard data queries
JP3601949B2 (en) Program synthesizing apparatus and program synthesizing method
CN108346098A (en) A kind of method and device of air control rule digging
CN114153839A (en) Integration method, device, equipment and storage medium of multi-source heterogeneous data
US11989656B2 (en) Search space exploration for deep learning
JP2000155680A (en) Device and method for correcting judgment rule
CN112365944A (en) Tree-shaped data node processing system, method, electronic equipment and storage medium
JP4921453B2 (en) Bit string data sorting apparatus, method and program
KR20180076594A (en) Method for management drawings using attributes of drawing object and drawing management system
JPH09204310A (en) Judgement rule correction device and judgement rule correction method
JP6511793B2 (en) Test case generation program, test case generation method and test case generation apparatus
Walker et al. Solving real-valued optimisation problems using cartesian genetic programming
JP6993573B2 (en) Program analysis method, program analysis device and program analysis program
CN106897301A (en) A kind of evaluating method of search quality, device and electronic equipment
JPH07225770A (en) Data retrieval device
JP2006350766A (en) Information processor, medium with information processing program recorded therein and information processing method
WO2021192152A1 (en) Programming assistance program, programming assistance device, and programming assistance method
JP6102425B2 (en) Test data generation program, test data generation method, and test data generation apparatus
WO2024116608A1 (en) Computer system and information processing method
JPH1185720A (en) Method and device for searching optimum solution
US20230037904A1 (en) Model compression device, model compression method, and program recording medium
Kvasnička et al. Simulation of Baldwin effect and Dawkins memes by genetic algorithm
JP2001034765A (en) Object recognizing device and information processor

Legal Events

Date Code Title Description
A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20040713

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20040913

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20050111

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20050228

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20050412

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20050414

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20080422

Year of fee payment: 3

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090422

Year of fee payment: 4

LAPS Cancellation because of no payment of annual fees