Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JP5652332B2 - Data structure comparison program and data structure comparison device - Google Patents
[go: Go Back, main page]

JP5652332B2 - Data structure comparison program and data structure comparison device - Google Patents

Data structure comparison program and data structure comparison device Download PDF

Info

Publication number
JP5652332B2
JP5652332B2 JP2011121565A JP2011121565A JP5652332B2 JP 5652332 B2 JP5652332 B2 JP 5652332B2 JP 2011121565 A JP2011121565 A JP 2011121565A JP 2011121565 A JP2011121565 A JP 2011121565A JP 5652332 B2 JP5652332 B2 JP 5652332B2
Authority
JP
Japan
Prior art keywords
data
similarity
type
data structure
sample
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.)
Expired - Fee Related
Application number
JP2011121565A
Other languages
Japanese (ja)
Other versions
JP2012248144A (en
Inventor
シャオジュン 馬
シャオジュン 馬
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.)
Fujifilm Business Innovation Corp
Original Assignee
Fuji Xerox Co Ltd
Fujifilm Business Innovation 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 Fuji Xerox Co Ltd, Fujifilm Business Innovation Corp filed Critical Fuji Xerox Co Ltd
Priority to JP2011121565A priority Critical patent/JP5652332B2/en
Publication of JP2012248144A publication Critical patent/JP2012248144A/en
Application granted granted Critical
Publication of JP5652332B2 publication Critical patent/JP5652332B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Description

本発明は、データ構造比較プログラム及びデータ構造比較装置に関する。   The present invention relates to a data structure comparison program and a data structure comparison apparatus.

従来のデータ構造を比較する方法として、例えば、ツリー構造を有する複数のデータからパターン抽出技法を用いて頻出するツリー構造を見本のデータ構造として抽出し、抽出された見本のデータ構造の類似度を算出するものがある(例えば、非特許文献1、2参照)。   As a conventional method of comparing data structures, for example, a tree structure that frequently appears using a pattern extraction technique is extracted from a plurality of data having a tree structure as a sample data structure, and the similarity of the extracted sample data structures is calculated. Some are calculated (for example, see Non-Patent Documents 1 and 2).

非特許文献1には、根ノードを頂点として分岐する内部ノード及び最底辺の葉ノードから構成されるツリー構造間の比較をする際に、それぞれのツリー構造の葉ノードの並びを比較し、一方の葉ノードの並びから他方の葉ノードの並びへ変形するのに要するデータの挿入、削除、置換等の手順の最小回数(以下、「編集距離」という。)を算出する方法が開示されている。この編集距離を用いて、編集距離が予め定められた値より小さいツリー構造同士を類似性があるツリー構造とする。   Non-Patent Document 1 compares the arrangement of leaf nodes of each tree structure when comparing between tree structures composed of an internal node that branches from a root node as a vertex and a leaf node at the bottom. Disclosed is a method for calculating a minimum number of procedures (hereinafter referred to as “edit distance”) such as insertion, deletion, and replacement of data required for transforming from one leaf node sequence to another leaf node sequence. . Using this edit distance, tree structures having an edit distance smaller than a predetermined value are set as similar tree structures.

また、非特許文献2には、ツリー構造の葉ノードだけでなく、ツリー構造間の根ノード及び内部ノードを含めて一方のツリー構造から他方のツリー構造へ変形するのに要するデータの挿入、削除、置換等の手順の最小回数(以下、「Tree Edit距離」という。)を算出する方法が開示されている。このTree Edit距離の算出方法は、上記した非特許文献1の方法に比べて計算量が増加するものの、葉ノード以外も考慮するため、ツリー構造間の類似度としてより確かな値を算出する。   Non-Patent Document 2 includes not only the leaf nodes of a tree structure but also the insertion and deletion of data required for transformation from one tree structure to the other, including root nodes and internal nodes between tree structures. , A method of calculating the minimum number of procedures such as replacement (hereinafter referred to as “Tree Edit distance”) is disclosed. This tree edit distance calculation method increases the amount of calculation compared to the method of Non-Patent Document 1 described above, but calculates a more reliable value as the similarity between tree structures in order to consider other than leaf nodes.

Gusfield, Dan (1997). Algorithms on strings, trees, and sequences: computer science and computational biology. Cambridge, UK: Cambridge University Press. ISBN0-521-58519-8.Gusfield, Dan (1997). Algorithms on strings, trees, and sequences: computer science and computational biology. Cambridge, UK: Cambridge University Press. ISBN0-521-58519-8. Philip, Bille. A survey on tree edit distance and related problems. Journal Theoretical Computer Science, Volume 337 Issue 1-3, 9 June 2005. Elsevier Science Publishers Ltd. Essex, UKPhilip, Bille.A survey on tree edit distance and related problems.Journal Theoretical Computer Science, Volume 337 Issue 1-3, 9 June 2005.Elsevier Science Publishers Ltd. Essex, UK

本発明の目的は、本構成を採用しない場合と比べて計算量を減少するデータ構造比較プログラム及びデータ構造比較装置を提供することにある。   An object of the present invention is to provide a data structure comparison program and a data structure comparison apparatus that reduce the amount of calculation compared to a case where this configuration is not adopted.

本発明の一態様は、上記目的を達成するため、以下のデータ構造比較プログラム及びデータ構造比較装置を提供する。   In order to achieve the above object, one aspect of the present invention provides the following data structure comparison program and data structure comparison apparatus.

[1]コンピュータを、
対象と、対象に属するものとして関連付けられた第1の種類のデータと、前記第1の種類のデータに属するものとして関連付けられた第2の種類のデータとを構造の要素として含む複数の比較対象のデータから、予め定めた頻度で出現するデータ構造を見本のデータ構造として取得する取得手段と、
前記取得手段が取得した複数の前記見本のデータ構造の前記第2の種類のデータを比較する際に、前記見本のデータ構造間で前記第1の種類のデータが共通する第2の種類のデータ間の第1の類似度をそれぞれ算出する第1の類似度算出手段と、
前記第1の類似度算出手段が前記第2の種類のデータ毎に算出した前記第1の類似度に基づいて前記見本のデータ構造間の第2の類似度を算出する第2の類似度算出手段と、
前記第2の類似度が予め定められた値以上の類似性を示す前記見本のデータ構造を1つの分類として抽出する抽出手段として機能させるデータ構造比較プログラム。
[1]
A plurality of comparison objects including, as a structural element, an object, a first type of data associated as belonging to the object, and a second type of data associated as belonging to the first type of data Acquisition means for acquiring a data structure that appears at a predetermined frequency from the data as a sample data structure;
The second type of data in which the first type of data is common among the sample data structures when comparing the second type of data of the plurality of sample data structures acquired by the acquisition unit First similarity calculation means for calculating a first similarity between
Second similarity calculation for calculating a second similarity between the data structures of the samples based on the first similarity calculated by the first similarity calculation unit for each of the second type of data Means,
A data structure comparison program that functions as an extraction unit that extracts the data structure of the sample showing the similarity equal to or greater than a predetermined value as the second similarity.

[2]前記取得手段が前記見本のデータ構造を取得する際に、前記見本のデータ構造を取得した前記複数の比較対象のデータから時間を単位とする日時データを取得する日時データ取得手段と、
前記第1の類似度算出手段は、複数の見本のデータ構造の前記第2の種類のデータを比較する際に、前記見本のデータ構造間で前記第1の種類のデータが共通する第2の種類のデータに前記日時データ取得手段が取得した前記日時のデータを予め定めた方法で加えて、当該日時のデータが加えられた見本のデータ構造の間の第1の類似度を算出する前記[1]に記載のデータ構造比較プログラム。
[2] Date and time data acquisition means for acquiring date and time data in units of time from the plurality of comparison target data acquired from the sample data structure when the acquisition means acquires the sample data structure;
The first similarity calculating unit compares the second type of data of a plurality of sample data structures with the second type of data having the first type of data common between the sample data structures. The date and time data acquired by the date and time data acquisition means is added to the type of data by a predetermined method, and the first similarity between the sample data structures to which the date and time data is added is calculated. 1] The data structure comparison program according to [1].

[3]前記第1の類似度算出手段は、第2の種類のデータの内容に応じて重み付けをして類似度を算出する前記[1]又は[2]に記載のデータ構造比較プログラム。 [3] The data structure comparison program according to [1] or [2], wherein the first similarity calculation unit calculates the similarity by weighting according to the content of the second type of data.

[4]対象と、対象に属するものとして関連付けられた第1の種類のデータと、前記第1の種類のデータに属するものとして関連付けられた第2の種類のデータとを構造の要素として含む複数の比較対象のデータから、予め定めた頻度で出現するデータ構造を有する見本のデータ構造を取得する取得手段と、
前記取得手段が取得した複数の前記見本のデータ構造の前記第2の種類のデータを比較する際に、前記見本のデータ構造間で前記第1の種類のデータが共通する第2の種類のデータ間の第1の類似度をそれぞれ算出する第1の類似度算出手段と、
前記第1の類似度算出手段が前記第2の種類のデータ毎に算出した前記第1の類似度に基づいて前記見本のデータ構造間の第2の類似度を算出する第2の類似度算出手段と、
前記第2の類似度が予め定められた値以上の類似性を示す前記見本のデータ構造を1つの分類として抽出する抽出手段とを有するデータ構造比較装置。
[4] A plurality of objects including a target, a first type of data associated as belonging to the target, and a second type of data associated as belonging to the first type of data as structural elements. Acquisition means for acquiring a data structure of a sample having a data structure that appears at a predetermined frequency from the comparison target data;
The second type of data in which the first type of data is common among the sample data structures when comparing the second type of data of the plurality of sample data structures acquired by the acquisition unit First similarity calculation means for calculating a first similarity between
Second similarity calculation for calculating a second similarity between the data structures of the samples based on the first similarity calculated by the first similarity calculation unit for each of the second type of data Means,
A data structure comparison apparatus comprising: extraction means for extracting the data structure of the sample showing the similarity equal to or greater than a predetermined value as the second similarity.

請求項1又は4に係る発明によれば、本構成を採用しない場合と比べて計算量を減少することができる。   According to the invention which concerns on Claim 1 or 4, the amount of calculations can be reduced compared with the case where this structure is not employ | adopted.

請求項2に係る発明によれば、日時データを含めた第1の類似度を算出することができる。   According to the invention which concerns on Claim 2, the 1st similarity including date data can be calculated.

請求項3に係る発明によれば、第2の種類のデータの内容に応じて重み付けをすることができる。   According to the invention which concerns on Claim 3, weighting can be performed according to the content of 2nd type data.

図1は、本発明の実施の形態に係るデータ構造比較装置の構成の一例を示す図である。FIG. 1 is a diagram showing an example of the configuration of a data structure comparison apparatus according to an embodiment of the present invention. 図2は、DPCデータのパターンの構成の一例を示す概略図である。FIG. 2 is a schematic diagram illustrating an example of a configuration of a DPC data pattern. 図3は、計算用係数情報の構成の一例を示す概略図である。FIG. 3 is a schematic diagram illustrating an example of a configuration of calculation coefficient information. 図4は、重み付け係数情報の構成の一例を示す概略図である。FIG. 4 is a schematic diagram illustrating an example of the configuration of the weighting coefficient information. 図5(a)及び(b)は、パターン取得手段100のパターンの取得元となるDPCデータのサポートの構成例を示す。FIGS. 5A and 5B show a configuration example of DPC data support that is a pattern acquisition source of the pattern acquisition unit 100. 図6(a)及び(b)は、追加日時データが追加されたDPCデータのパターンの構成の一例を示す概略図である。FIGS. 6A and 6B are schematic diagrams illustrating an example of a pattern configuration of DPC data to which additional date / time data is added. 図7は、第1の類似度の算出に用いる部分パターンを説明するための図である。FIG. 7 is a diagram for explaining a partial pattern used for calculating the first similarity. 図8は、第1の類似度の算出に用いるリストの生成を説明するための図である。FIG. 8 is a diagram for explaining generation of a list used for calculating the first similarity. 図9は、第1の類似度の算出方法を説明するための図である。FIG. 9 is a diagram for explaining a first similarity calculation method. 図10は、第2の類似度の算出方法を説明するための図である。FIG. 10 is a diagram for explaining a second similarity calculation method. 図11(a)〜(c)は、データ構造抽出動作の一例を説明するための概略図である。11A to 11C are schematic diagrams for explaining an example of the data structure extraction operation.

(データ構造比較装置の構成)
図1は、本発明の実施の形態に係るデータ構造比較装置の構成の一例を示す図である。
(Configuration of data structure comparison device)
FIG. 1 is a diagram showing an example of the configuration of a data structure comparison apparatus according to an embodiment of the present invention.

データ構造比較装置1は、CPU等から構成され各部を制御するとともに各種のプログラムを実行する制御部10と、HDD(Hard Disk Drive)やフラッシュメモリ等の記憶媒体から構成され情報を記憶する記憶部11とを備え、例えば、患者臨床情報及び診療行為の電子データの解析に用いられる。   The data structure comparison apparatus 1 includes a CPU and the like, and controls each unit and executes various programs, and a storage unit configured by a storage medium such as an HDD (Hard Disk Drive) or a flash memory and stores information. 11, for example, used for analyzing patient clinical information and electronic data of medical practice.

制御部10は、後述するデータ構造比較プログラム110を実行することで、パターン取得手段100、日時データ追加手段101、第1の類似度算出手段102、第2の類似度算出手段103及びデータ構造抽出手段104等として機能する。   The control unit 10 executes a data structure comparison program 110, which will be described later, to thereby obtain a pattern acquisition unit 100, a date / time data addition unit 101, a first similarity calculation unit 102, a second similarity calculation unit 103, and a data structure extraction. It functions as the means 104 or the like.

パターン取得手段100は、解析対象である電子データとして記憶部11から後述するDPCデータ111に含まれる複数の比較対象のデータ(以下、「サポート」という。)から対象として患者名を根ノードとした見本のツリー構造を複数取得する。ここで、見本のツリー構造(以下、「パターン」という。)とは、パターン抽出技法を用いて、ツリー構造を有する複数のデータに予め定めた頻度で出現する共通のツリー構造として抽出されるもののことをいう。   The pattern acquisition unit 100 uses a patient name as a root node as a target from a plurality of comparison target data (hereinafter referred to as “support”) included in DPC data 111 described later from the storage unit 11 as electronic data to be analyzed. Get multiple sample tree structures. Here, the sample tree structure (hereinafter referred to as “pattern”) is extracted as a common tree structure that appears in a plurality of data having a tree structure at a predetermined frequency by using a pattern extraction technique. That means.

なお、パターン取得手段100は、周知のパターン抽出技法を用いることで、複数のサポート間で後述するEファイル及びFファイルが共通したものをパターンとして取得する。周知のパターン抽出技法として、例えば、シーケンシャル・パターン・マイニングのPrefix Span、BIDE、CloSpan等又はサブツリーマイニング等を用いることができる。   Note that the pattern acquisition unit 100 acquires, as a pattern, a common E file and F file described later among a plurality of supports by using a well-known pattern extraction technique. As a well-known pattern extraction technique, for example, Prefix Span, BIDE, CloSpan or the like of sequential pattern mining or sub-tree mining can be used.

日時データ追加手段101は、パターン取得手段100が取得したパターンの元となった複数のサポートから時間を単位とする日時データを抽出してパターンに追加する。なお、時間は、年月日、時間、分、秒等いずれを用いてもよい。   The date / time data adding unit 101 extracts date / time data in units of time from a plurality of supports that are the basis of the pattern acquired by the pattern acquiring unit 100 and adds them to the pattern. The time may be any of date, hour, minute, second, etc.

第1の類似度算出手段102は、比較対象となるパターン間において、葉ノードであるFファイルのうち、後述するEファイルが共通するFファイルをリスト化して、パターン中の日時データをさらにリストに追加して、Eファイル毎に当該リストの類似度(以下、「第1の類似度」という。)として編集距離を算出する。   The first similarity calculation unit 102 lists F files that are common to E files, which will be described later, among the F files that are leaf nodes among the patterns to be compared, and further lists the date and time data in the patterns. In addition, the edit distance is calculated for each E file as the similarity of the list (hereinafter referred to as “first similarity”).

第2の類似度算出手段103は、第1の類似度算出手段102が算出したEファイル毎の第1の類似度に基づいて比較対象のパターン間の類似度(以下、「第2の類似度」という。)として編集距離を算出する。   Based on the first similarity for each E file calculated by the first similarity calculation unit 102, the second similarity calculation unit 103 calculates a similarity between patterns to be compared (hereinafter, “second similarity”). The edit distance is calculated.

データ構造抽出手段104は、第2の類似度算出手段103が算出した第2の類似度が予め定められた値以下である複数のパターンの集合を1つの分類として抽出する。   The data structure extraction unit 104 extracts a set of a plurality of patterns whose second similarity calculated by the second similarity calculation unit 103 is equal to or less than a predetermined value as one classification.

記憶部11は、制御部10を上述した各手段として動作させるデータ構造比較プログラム110、DPCデータ111、計算用係数情報112及び重み付け係数情報113等を記憶する。   The storage unit 11 stores a data structure comparison program 110, DPC data 111, calculation coefficient information 112, weighting coefficient information 113, and the like that cause the control unit 10 to operate as the above-described units.

DPCデータ111は、分析可能な全国統一形式の患者臨床情報及び診療行為の電子データセットである。患者臨床情報は、例えば、患者基本情報、病名、術式、各種のスコア・ステージ分類等であり、診療行為情報は、診療行為、医薬品、医療材料、実施日、回数・数量、診療科、病棟、保険種別等である。   The DPC data 111 is an electronic data set of patient clinical information and medical practice in a nationally unified format that can be analyzed. Patient clinical information includes, for example, patient basic information, disease name, technique, various score / stage classifications, etc., and medical practice information includes medical practice, pharmaceuticals, medical materials, implementation date, frequency / quantity, clinical department, ward And insurance type.

また、DPCデータ111は、基本となるデータとして様式1、Eファイル及びFファイルと呼ばれるデータを有する。様式1とは、患者の臨床情報、傷病名、術式、補助治療等である。Eファイルとは、実施日、回数、診療科、病棟、オーダ医師等の情報である。Fファイルとは、Eファイルの詳細な内容であり、例えば、行為、薬剤、材料、数量等の情報である。   The DPC data 111 includes data called format 1, E file, and F file as basic data. Form 1 includes patient clinical information, names of wounds, surgical procedures, adjuvant treatment, and the like. The E file is information such as the implementation date, number of times, clinical department, ward, order doctor, and the like. The F file is a detailed content of the E file, and is information such as an action, a medicine, a material, and a quantity.

本実施の形態では、患者を根ノードとし、その患者に属する日時データ及びEファイルを内部ノード、Eファイルに属するFファイルを葉ノードとして構成されるツリー構造をサポートとし、複数のサポートに予め定めた頻度以上で現れるサポートのデータ構造をパターンとして取得して、取得されたパターン間で類似度を算出し、算出された類似度に基づいて複数のパターンの集合を抽出する。   In the present embodiment, a tree structure including a patient as a root node, date / time data belonging to the patient and an E file as an internal node, and an F file belonging to the E file as a leaf node is supported. A support data structure that appears at a frequency higher than the specified frequency is acquired as a pattern, a similarity is calculated between the acquired patterns, and a set of a plurality of patterns is extracted based on the calculated similarity.

図2は、DPCデータのパターンの構成の一例を示す概略図である。   FIG. 2 is a schematic diagram illustrating an example of a configuration of a DPC data pattern.

DPCデータ111から取得されたパターン2a及びパターン2bは、患者に属する日時データ22と、日時データ22に属するEファイル21と、Eファイル21に属するFファイルとを有し、ツリー構造を構成する。   The patterns 2a and 2b acquired from the DPC data 111 include date / time data 22 belonging to a patient, an E file 21 belonging to the date / time data 22, and an F file belonging to the E file 21, and constitute a tree structure.

図3は、計算用係数情報の構成の一例を示す概略図である。   FIG. 3 is a schematic diagram illustrating an example of a configuration of calculation coefficient information.

計算用係数情報112は、Fファイル、期間、日単位を行列の項目とし、第1の類似度算出手段102が編集距離を算出する際にFファイル又は日時データに乗じる係数を定義する。なお、Fファイルと期間、Fファイルと日単位はそれぞれ比較すべき対象ではないので係数を「∞」としている。   The calculation coefficient information 112 defines a coefficient to be multiplied by the F file or the date / time data when the first similarity calculation unit 102 calculates the edit distance, with the F file, the period, and the day unit as matrix items. Since the F file and the period, and the F file and the day unit are not objects to be compared, the coefficient is “∞”.

図4は、重み付け係数情報の構成の一例を示す概略図である。   FIG. 4 is a schematic diagram illustrating an example of the configuration of the weighting coefficient information.

重み付け係数情報113は、Fファイル内容欄と、重み付け係数欄とを有し、第1の類似度算出手段102が編集距離を算出する際にFファイルの内容に応じてFファイル又は日時データに乗じる係数を定義する。   The weighting coefficient information 113 includes an F file content field and a weighting coefficient field. When the first similarity calculation unit 102 calculates the edit distance, the weighting coefficient information 113 is multiplied by the F file or date / time data according to the content of the F file. Define the coefficients.

(データ構造比較装置の動作)
以下に、データ構造比較装置の動作例を各図を参照しつつ、(1)基本動作、(2)類似度算出動作、(3)データ構造抽出動作に分けて説明する。
(Operation of data structure comparison device)
Hereinafter, the operation example of the data structure comparison apparatus will be described by dividing into (1) basic operation, (2) similarity calculation operation, and (3) data structure extraction operation, with reference to each drawing.

(1)基本動作
まず、パターン取得手段100は、記憶部11のDPCデータ111からデータ構造を抽出する対象となる複数のパターンを取得する。以下、説明を簡単にするため、図2に示す2つのパターン2a及び2bを取得した場合について説明する。
(1) Basic Operation First, the pattern acquisition unit 100 acquires a plurality of patterns to be extracted from the DPC data 111 of the storage unit 11. Hereinafter, in order to simplify the description, a case where the two patterns 2a and 2b shown in FIG. 2 are acquired will be described.

まず、パターンの取得方法を示すためにパターン2bを例にとって説明する。   First, the pattern 2b will be described as an example to show the pattern acquisition method.

図5(a)及び(b)は、パターン取得手段100のパターンの取得元となるDPCデータ111のサポートの構成例を示す。   FIGS. 5A and 5B show a configuration example of support of the DPC data 111 that is a pattern acquisition source of the pattern acquisition unit 100.

パターン取得手段100は、パターン抽出技法を用いて、図5(a)に示す複数のサポート200b、200b…からパターン2bを取得する。 The pattern acquisition unit 100 acquires a pattern 2b from a plurality of supports 200b 1 , 200b 2 ... Shown in FIG.

Fファイルの編集距離を利用した従来の技術では、Fファイル以外の情報を用いないため、日時データ22がサポート200b、200b…それぞれにおいて異なっていても構わないため、図2に示すように、日時データ22の内容が異なる箇所は「日単位」としてパターンBを取得していた。 In the conventional technique using the edit distance of the F file, since information other than the F file is not used, the date and time data 22 may be different in each of the supports 200b 1 , 200b 2 ... As shown in FIG. The pattern B is acquired as “day unit” at a place where the contents of the date and time data 22 are different.

しかし、本実施の形態においては日時データ22も考慮し、日時データ追加手段101は、パターン取得手段100が取得したパターン2bの元となった複数のサポート200b、200b…(図5(a))から時間を単位とする日時データ22を抽出して、異なる日時データを包括する内容の日時データとして、図5(b)に示すように、追加日時データ210b、210b…を追加する。 However, in the present embodiment, the date / time data 22 is also taken into consideration, and the date / time data adding unit 101 includes a plurality of supports 200b 1 , 200b 2 ... (FIG. 5A )) To extract the date / time data 22 in units of time, and add the additional date / time data 210b 1 , 210b 2 ... As shown in FIG. .

図6(a)及び(b)は、追加日時データが追加されたパターンの構成の一例を示す概略図である。   6A and 6B are schematic diagrams illustrating an example of a configuration of a pattern to which additional date / time data is added.

次に、日時データ追加手段101は、複数のサポート200b、200b…に追加された追加日時データ210b、210b…に基づき、図6(a)に示すように、パターン2bに追加日時データ22aを追加する。 Next, the date / time data adding unit 101 adds the added date / time to the pattern 2b as shown in FIG. 6A based on the added date / time data 210b 1 , 210b 2 ... Added to the plurality of supports 200b 1 , 200b 2 . Data 22a is added.

次に、日時データ追加手段101は、追加日時データ22bの日時の範囲内で複数のサポート200b、200b…の日時データを検索し、図6(a)に示す日時データ22aを、図6(b)に示すように、例えば、対象とする日時データを包括する最小の値である追加日時データ22bで置き換える。このように、本実施の形態では、従来の類似度の算出において用いられなかった日時データを要素として加えて類似度を算出する。なお、追加日時データ22aは、最小の値に限らず、予め定めた単位のうち全ての日時データを包括する値に設定してもよい。 Next, the date / time data adding means 101 searches the date / time data of a plurality of supports 200b 1 , 200b 2 ... Within the date / time range of the added date / time data 22b, and the date / time data 22a shown in FIG. As shown in (b), for example, the target date / time data is replaced with the additional date / time data 22b which is the minimum value. As described above, in this embodiment, the similarity is calculated by adding date and time data that has not been used in the conventional calculation of similarity as an element. The additional date / time data 22a is not limited to a minimum value, and may be set to a value that includes all date / time data in a predetermined unit.

(2)類似度算出動作
図7は、第1の類似度の算出に用いる部分パターンを説明するための図である。
(2) Similarity Calculation Operation FIG. 7 is a diagram for explaining a partial pattern used for calculating the first similarity.

次に、図7に示すように、第1の類似度算出手段102は、パターン2a及び2bをEファイル21に予め定められたデータ区分に基づき部分パターン2a〜2a、2b〜2bに分ける。 Next, as shown in FIG. 7, the first similarity calculation means 102, the partial pattern 2a 1 to 2A region 4 based on the predetermined data classified patterns 2a and 2b on the E file 21, 2b 1 ~2b 4 Divide into

次に、第1の類似度算出手段102は、区分が「60」で一致する部分パターン同士2aと2b、区分が「50」で一致する2aと2b、区分が「54」で一致する2aと2b、区分が「70」で一致する2aと2bの間の第1の類似度を算出する。以下、算出方法を説明する。 Next, the first similarity calculation unit 102 calculates that the partial patterns 2a 1 and 2b 1 that coincide with the division “60”, 2a 2 and 2b 2 that coincide with the division “50”, and the division “54”. The first similarity between the matching 2a 3 and 2b 3 and the matching 2a 4 and 2b 4 with the section “70” is calculated. Hereinafter, the calculation method will be described.

図8は、第1の類似度の算出に用いるリストの生成を説明するための図である。   FIG. 8 is a diagram for explaining generation of a list used for calculating the first similarity.

第1の類似度算出手段102は、例えば、区分が「60」で一致する部分パターン2a及び2bからそれぞれ日時データ22とFファイル20を文字列として含むリスト3a及び3bを生成する。この際、第1の類似度算出手段102は、Fファイル20が属する日時データ22をそのFファイル20の前を並び順としてリストに追加する。なお、日時データ22の追加する並び順はこれに限るものではなく、Fファイル20の後に追加してもよい。 For example, the first similarity calculation unit 102 generates lists 3a 1 and 3b 1 including the date and time data 22 and the F file 20 as character strings from the partial patterns 2a 1 and 2b 1 that match in the category “60”, respectively. . At this time, the first similarity calculation unit 102 adds the date / time data 22 to which the F file 20 belongs to the list in the order of the front of the F file 20. The order in which the date / time data 22 is added is not limited to this, and may be added after the F file 20.

図9は、第1の類似度の算出方法を説明するための図である。   FIG. 9 is a diagram for explaining a first similarity calculation method.

次に、第1の類似度算出手段102は、リスト3a及び3bの編集距離を算出する。具体的には、図9に示すように、リスト3a及び3bに含まれる項目毎の類似度を数値化して行列とし、左上の要素から右下の要素へ最小値を取るように移動する。 Next, the first similarity calculation unit 102 calculates the edit distances of the lists 3a 1 and 3b 1 . Specifically, as shown in FIG. 9, the similarity for each item included in the lists 3a 1 and 3b 1 is digitized into a matrix, and moved so as to take the minimum value from the upper left element to the lower right element. .

ここで、行列中の同一の要素に対する右下への移動はリストに対して編集しない場合であり、異なる要素に対する下への移動はリストの要素を削除する場合、異なる要素に対する右への移動はリストの要素を挿入する場合にそれぞれ対応する。   Here, moving to the lower right for the same element in the matrix is not editing for the list, moving to the lower for different elements is to move to the right for different elements when deleting elements in the list. Corresponds to the case of inserting list elements.

上記の操作の結果、得られた最小値が編集距離となる。なお、図9に折れ線で示す例において、要素「翌日」と要素「2日後」を交換、要素「TP」を挿入、要素「GPT」を削除、要素「ALP」を挿入、要素「ALb」を挿入する操作を行っている。   The minimum value obtained as a result of the above operation is the editing distance. In the example shown by the broken line in FIG. 9, the element “next day” and the element “two days later” are exchanged, the element “TP” is inserted, the element “GPT” is deleted, the element “ALP” is inserted, and the element “ALb” is inserted. You are performing an insert operation.

また、上記操作に対し、計算用係数情報112を係数として用いることで、日時データ同士の編集操作、Fファイル同士の編集操作以外を排除するとともに、Fファイルの交換に対する制限を大きくしている。なお、Fファイルの交換の係数を1としてもよい。   In addition, the calculation coefficient information 112 is used as a coefficient for the above operation, thereby excluding operations other than the editing operation between date data and the editing operation between F files, and the restriction on the exchange of F files is increased. The F file exchange coefficient may be 1.

また、上記操作に対し、重み付け係数情報113を用いても良い。つまり、要素「翌日」と要素「2日後」を交換する操作は、図4においてFファイル内容欄が「一日差」に対応するため、0.7を係数として乗じる。以下、同様に、要素「TP」を挿入する操作に対し1を係数として乗じ、要素「GPT」を削除する操作に対し1を係数として乗じ、要素「ALP」を挿入する操作に対し0.5を係数として乗じ、要素「ALb」を挿入する操作する操作に対し2を係数として乗じて編集距離を算出してもよい。   Moreover, you may use the weighting coefficient information 113 with respect to the said operation. That is, the operation of exchanging the element “next day” and the element “two days later” is multiplied by 0.7 as a coefficient because the F file content field corresponds to “one day difference” in FIG. Similarly, the operation for inserting the element “TP” is multiplied by 1 as a coefficient, the operation for deleting the element “GPT” is multiplied by 1 as a coefficient, and the operation for inserting the element “ALP” is 0.5. The edit distance may be calculated by multiplying the operation for inserting the element “ALb” by 2 as a coefficient.

上記の編集距離の算出をすべての部分パターン同士2aと2b、2aと2b、2aと2b、2aと2bについて行いそれぞれパターン2aと2b間の第1の類似度を得る。 The above edit distance is calculated for all partial patterns 2a 1 and 2b 1 , 2a 2 and 2b 2 , 2a 3 and 2b 3 , 2a 4 and 2b 4 , and the first similarity between the patterns 2a and 2b is obtained. obtain.

図10は、第2の類似度の算出方法を説明するための図である。   FIG. 10 is a diagram for explaining a second similarity calculation method.

パターン2a及び2bの対象とする全てのFファイルを項目とし、Eファイル毎に分類した行列において、得られた各部分パターンの第1の類似度は、図10に示すように、同行列中において対角上に配置される。   In the matrix in which all the F files that are the targets of the patterns 2a and 2b are items and classified for each E file, the first similarity of each partial pattern obtained is shown in FIG. Arranged diagonally.

次に、第2の類似度算出手段103は、図10に示す行列において、第2の類似度を算出する。具体的には、図9において説明したのと同様に、左上から右下へ単純に第1の類似度を加算していけばよい。このように、Eファイルが異なるFファイル間の編集距離、例えば、Eファイル21「50」と「54」、「60」と「70」等の間の第1の類似度を算出しないため、すべてのFファイル間の編集距離を算出していた従来の方法に比べて計算量が減少する。   Next, the second similarity calculation unit 103 calculates the second similarity in the matrix shown in FIG. Specifically, as described with reference to FIG. 9, the first similarity may be simply added from the upper left to the lower right. Thus, since the first similarity between the E files 21 “50” and “54”, “60” and “70”, etc. is not calculated, the editing distance between F files with different E files is not calculated. Compared to the conventional method that calculates the edit distance between F files, the amount of calculation is reduced.

(3)データ構造抽出動作
図11(a)〜(c)は、データ構造抽出動作の一例を説明するための概略図である。
(3) Data Structure Extraction Operation FIGS. 11A to 11C are schematic diagrams for explaining an example of the data structure extraction operation.

第2の類似度算出手段103によって各パターン間の第2の類似度が算出されると、図11(a)に示すように、各パターン間の第2の類似度の関係を示す行列が生成される。   When the second similarity calculation unit 103 calculates the second similarity between the patterns, a matrix indicating the relationship of the second similarity between the patterns is generated as shown in FIG. Is done.

データ構造抽出手段104は、図11(a)に示す行列において、第2の類似度の値が小さいものから順番に各パターンのデータ構造の類似性が高いと判断し、図11(b)に示すように、データ構造の類似性の高い複数のパターンを1つの分類として抽出する。   The data structure extraction unit 104 determines that the similarity of the data structure of each pattern is high in order from the smallest second similarity value in the matrix shown in FIG. As shown, a plurality of patterns having high data structure similarity are extracted as one classification.

ここで、分類の閾値を、例えば、第2の類似度の値が3未満とすると、図11(b)に示すように、パターン2a〜2hの分類と、パターン2i及び2jの分類とに分断され、図11(c)に示すように、データ構造抽出手段104は、パターン2a〜2hの分類をクラスター1、パターン2i及び2jの分類をクラスター2として抽出する。   Here, for example, if the second threshold value is less than 3, the classification threshold is divided into the patterns 2a to 2h and the patterns 2i and 2j as shown in FIG. Then, as shown in FIG. 11C, the data structure extraction unit 104 extracts the classification of the patterns 2a to 2h as the cluster 1, and the classification of the patterns 2i and 2j as the cluster 2.

[他の実施の形態]
なお、本発明は、上記実施の形態に限定されず、本発明の趣旨を逸脱しない範囲で種々な変形が可能である。
[Other embodiments]
The present invention is not limited to the above embodiment, and various modifications can be made without departing from the spirit of the present invention.

また、上記実施の形態で使用されるデータ構造比較プログラム110は、CD−ROM等の記憶媒体から装置内の記憶部に読み込んでも良く、インターネット等のネットワークに接続されているサーバ装置等から装置内の記憶部にダウンロードしてもよい。また、上記実施の形態で使用されるDPCパターン取得手段100、日時データ追加手段101、第1の類似度算出手段102、第2の類似度算出手段103及びデータ構造抽出手段104の一部または全部をASIC等のハードウェアによって実現してもよい。   In addition, the data structure comparison program 110 used in the above embodiment may be read from a storage medium such as a CD-ROM into a storage unit in the apparatus, or from a server apparatus or the like connected to a network such as the Internet. You may download to the memory | storage part. In addition, a part or all of the DPC pattern acquisition unit 100, the date / time data addition unit 101, the first similarity calculation unit 102, the second similarity calculation unit 103, and the data structure extraction unit 104 used in the above embodiment. May be realized by hardware such as ASIC.

1 データ構造比較装置
2a−2h パターン
2a−2a 部分パターン
3a、3b リスト
10 制御部
11 記憶部
20 Fファイル
21 Eファイル
22 日時データ
22a、22b 追加日時データ
100 パターン取得手段
101 日時データ追加手段
102 第1の類似度算出手段
103 第2の類似度算出手段
104 データ構造抽出手段
110 データ構造比較プログラム
111 DPCデータ
112 計算用係数情報
113 重み付け係数情報
200b、200b サポート
210b、210b 追加日時データ

1 Data structure comparison device 2a-2h Pattern 2a 1 -2a 4 Partial pattern 3a 1 , 3b 1 List 10 Control unit 11 Storage unit 20 F file 21 E file 22 Date / time data 22a, 22b Additional date / time data 100 Pattern acquisition means 101 Date / time data Additional means 102 First similarity calculation means 103 Second similarity calculation means 104 Data structure extraction means 110 Data structure comparison program 111 DPC data 112 Calculation coefficient information 113 Weighting coefficient information 200b 1 , 200b 2 Support 210b 1 , 210b 2 Additional date and time data

Claims (4)

コンピュータを、
対象と、対象に属するものとして関連付けられた第1の種類のデータと、前記第1の種類のデータに属するものとして関連付けられた第2の種類のデータとを構造の要素として含む複数の比較対象のデータから、予め定めた頻度で出現するデータ構造を見本のデータ構造として取得する取得手段と、
前記取得手段が取得した複数の前記見本のデータ構造の前記第2の種類のデータを比較する際に、前記見本のデータ構造間で前記第1の種類のデータが共通する第2の種類のデータ間の第1の類似度をそれぞれ算出する第1の類似度算出手段と、
前記第1の類似度算出手段が前記第2の種類のデータ毎に算出した前記第1の類似度に基づいて前記見本のデータ構造間の第2の類似度を算出する第2の類似度算出手段と、
前記第2の類似度が予め定められた値以上の類似性を示す前記見本のデータ構造を1つの分類として抽出する抽出手段として機能させるデータ構造比較プログラム。
Computer
A plurality of comparison objects including, as a structural element, an object, a first type of data associated as belonging to the object, and a second type of data associated as belonging to the first type of data Acquisition means for acquiring a data structure that appears at a predetermined frequency from the data as a sample data structure;
The second type of data in which the first type of data is common among the sample data structures when comparing the second type of data of the plurality of sample data structures acquired by the acquisition unit First similarity calculation means for calculating a first similarity between
Second similarity calculation for calculating a second similarity between the data structures of the samples based on the first similarity calculated by the first similarity calculation unit for each of the second type of data Means,
A data structure comparison program that functions as an extraction unit that extracts the data structure of the sample showing the similarity equal to or greater than a predetermined value as the second similarity.
前記取得手段が前記見本のデータ構造を取得する際に、前記見本のデータ構造を取得した前記複数の比較対象のデータから時間を単位とする日時データを取得する日時データ取得手段と、
前記第1の類似度算出手段は、複数の見本のデータ構造の前記第2の種類のデータを比較する際に、前記見本のデータ構造間で前記第1の種類のデータが共通する第2の種類のデータに前記日時データ取得手段が取得した前記日時のデータを予め定めた方法で加えて、当該日時のデータが加えられた見本のデータ構造の間の第1の類似度を算出する請求項1に記載のデータ構造比較プログラム。
Date and time data acquisition means for acquiring date and time data in units of time from the plurality of comparison target data acquired from the sample data structure when the acquisition means acquires the data structure of the sample;
The first similarity calculating unit compares the second type of data of a plurality of sample data structures with the second type of data having the first type of data common between the sample data structures. The date and time data acquired by the date and time data acquisition means is added to a type of data by a predetermined method, and a first similarity between sample data structures to which the date and time data is added is calculated. 1. The data structure comparison program according to 1.
前記第1の類似度算出手段は、第2の種類のデータの内容に応じて重み付けをして類似度を算出する請求項1又は2に記載のデータ構造比較プログラム。   The data structure comparison program according to claim 1, wherein the first similarity calculation unit calculates the similarity by weighting according to the content of the second type of data. 対象と、対象に属するものとして関連付けられた第1の種類のデータと、前記第1の種類のデータに属するものとして関連付けられた第2の種類のデータとを構造の要素として含む複数の比較対象のデータから、予め定めた頻度で出現するデータ構造を有する見本のデータ構造を取得する取得手段と、
前記取得手段が取得した複数の前記見本のデータ構造の前記第2の種類のデータを比較する際に、前記見本のデータ構造間で前記第1の種類のデータが共通する第2の種類のデータ間の第1の類似度をそれぞれ算出する第1の類似度算出手段と、
前記第1の類似度算出手段が前記第2の種類のデータ毎に算出した前記第1の類似度に基づいて前記見本のデータ構造間の第2の類似度を算出する第2の類似度算出手段と、
前記第2の類似度が予め定められた値以上の類似性を示す前記見本のデータ構造を1つの分類として抽出する抽出手段とを有するデータ構造比較装置。
A plurality of comparison objects including, as a structural element, an object, a first type of data associated as belonging to the object, and a second type of data associated as belonging to the first type of data Acquisition means for acquiring a data structure of a sample having a data structure that appears at a predetermined frequency from the data of
The second type of data in which the first type of data is common among the sample data structures when comparing the second type of data of the plurality of sample data structures acquired by the acquisition unit First similarity calculation means for calculating a first similarity between
Second similarity calculation for calculating a second similarity between the data structures of the samples based on the first similarity calculated by the first similarity calculation unit for each of the second type of data Means,
A data structure comparison apparatus comprising: extraction means for extracting the data structure of the sample showing the similarity equal to or greater than a predetermined value as the second similarity.
JP2011121565A 2011-05-31 2011-05-31 Data structure comparison program and data structure comparison device Expired - Fee Related JP5652332B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2011121565A JP5652332B2 (en) 2011-05-31 2011-05-31 Data structure comparison program and data structure comparison device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2011121565A JP5652332B2 (en) 2011-05-31 2011-05-31 Data structure comparison program and data structure comparison device

Publications (2)

Publication Number Publication Date
JP2012248144A JP2012248144A (en) 2012-12-13
JP5652332B2 true JP5652332B2 (en) 2015-01-14

Family

ID=47468501

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2011121565A Expired - Fee Related JP5652332B2 (en) 2011-05-31 2011-05-31 Data structure comparison program and data structure comparison device

Country Status (1)

Country Link
JP (1) JP5652332B2 (en)

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003271667A (en) * 2002-03-15 2003-09-26 Fuji Xerox Co Ltd Device and method for calculating distance between tree structures
JP4992072B2 (en) * 2005-08-16 2012-08-08 国立大学法人東京工業大学 Similarity detection system for a plurality of XML documents, and integration system for a plurality of XML documents

Also Published As

Publication number Publication date
JP2012248144A (en) 2012-12-13

Similar Documents

Publication Publication Date Title
US10579661B2 (en) System and method for machine learning and classifying data
US8862638B2 (en) Interpolation data template to normalize analytic runs
WO2017151194A1 (en) Atomic updating of graph database index structures
JP2026012904A5 (en) Document processing method, information processing system, and document processing program
Edeki et al. Comparative study of data mining and statistical learning techniques for prediction of cancer survivability
CN113161001A (en) Process path mining method based on improved LDA
Lu et al. Data mining techniques in health informatics: a case study from breast cancer research
WO2011133017A2 (en) Intelligent cancer prediction & prevention system (icp2s): e-oncologist
JP5652332B2 (en) Data structure comparison program and data structure comparison device
JP5746118B2 (en) Clustering quality improvement method
JP5761029B2 (en) Dictionary creation device, word collection method, and program
Martinón-Torres et al. Ancient human genomes offer clues about the earliest migrations out of Africa
Zou et al. HPTree: reconstructing phylogenetic trees for ultra-large unaligned DNA sequences via NJ model and Hadoop
JP5772437B2 (en) Data structure extraction program and data structure extraction device
Pate et al. rcprd: An R package to simplify the extraction and processing of Clinical Practice Research Datalink (CPRD) data, and create analysis-ready datasets
Chang et al. File recovery of high-order clearing first cluster based on FAT32
AlSaleh et al. SNAD Arabic dataset for deep learning
JP7147258B2 (en) DATA GENERATION METHOD, DATA GENERATION PROGRAM AND INFORMATION PROCESSING APPARATUS
CN108463818A (en) Create and update connection segmentation graph
Karlsson Order in the random forest
Thapa et al. A new graph database system for multi-omics data integration and mining complex biological information
CN112817969A (en) Data query method, system, electronic device and storage medium
JP5903372B2 (en) Keyword relevance score calculation device, keyword relevance score calculation method, and program
CN109858866A (en) Personnel file file formation method and system
JP5583107B2 (en) Keyword place name pair extraction apparatus, method, and program

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20140421

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20141010

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: 20141021

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20141103

R150 Certificate of patent or registration of utility model

Ref document number: 5652332

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

S533 Written request for registration of change of name

Free format text: JAPANESE INTERMEDIATE CODE: R313533

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

LAPS Cancellation because of no payment of annual fees