32
國國國國國國國國 National Yunlin University of Science and T echnology Distributed Higher Order Association Rule Mining Using Information Extracted from Textual Data From: Shenzhi Li, Tianhao Wu,William M. Po ttenger, SIGKDD Explorations.Vol. 7, Issue 1, pp. 26-35. Presenter : Wei-Shen Tai Advisor : Professor Chung-Chian Hs u 2005/8/3

Distributed Higher Order Association Rule Mining Using Information Extracted from Textual Data

  • Upload
    enya

  • View
    24

  • Download
    1

Embed Size (px)

DESCRIPTION

Distributed Higher Order Association Rule Mining Using Information Extracted from Textual Data. From: Shenzhi Li, Tianhao Wu,William M. Pottenger, SIGKDD Explorations .Vol. 7, Issue 1, pp. 26-35. Presenter : Wei-Shen Tai Advisor : Professor Chung-Chian Hsu 2005/8/ 3. Outline. Introduction - PowerPoint PPT Presentation

Citation preview

Page 1: Distributed Higher Order Association Rule Mining Using Information Extracted from Textual Data

國立雲林科技大學National Yunlin University of Science and Technology

Distributed Higher Order Association Rule Mining Using Information

Extracted from Textual Data

From: Shenzhi Li, Tianhao Wu,William M. Pottenger, SIGKDD Explorations.Vol. 7, Issue 1, pp. 26-35.

Presenter : Wei-Shen TaiAdvisor : Professor Chung-Chian Hsu

2005/8/3

Page 2: Distributed Higher Order Association Rule Mining Using Information Extracted from Textual Data

N.Y.U.S.T.

I. M.

Outline

Introduction Related work D-HOTM framework

Entity extraction Distributed High-Order ARM A example for application

Metrics for evaluation Conclusion and future work

Page 3: Distributed Higher Order Association Rule Mining Using Information Extracted from Textual Data

N.Y.U.S.T.

I. M.

Information extraction and mining Why we need them?

The burgeoning amount of textual data in distributed sources combined with the obstacles involved in creating and maintaining central repositories.

“System of Systems” The United States Department of Homeland Security

(DHS) recognizes that the proliferation of databases and schemas involving fragmented data poses a challenge to information sharing.

In response, the DHS is promulgating a approach that acknowledges the infeasibility of creating a single massive centralized database.

Page 4: Distributed Higher Order Association Rule Mining Using Information Extracted from Textual Data

N.Y.U.S.T.

I. M.

DHS’s problems Overlap between tiers

A three-tier structure with some local databases, state databases and federal databases.

Constraints on system interoperability and legal restrictions on data sharing,

More centralized the database, the less information that is shared.

A “System of Systems” approach A standards for interoperability and communication in areas. Indeed, efforts are underway to establish standards in database sch

ema integration(e.g., OWL, GJXDM, etc.)..

Page 5: Distributed Higher Order Association Rule Mining Using Information Extracted from Textual Data

N.Y.U.S.T.

I. M.

Mining distributed data Current algorithms for mining distributed data

Only when the global schema across all databases is known. Information extracted from distributed textual data

No preexisting global schema (i.e., dictionary of terms) is available. This is due to the fact that the entities extracted may differ between textual documents at the same or different locations.

Schemas of textual entities are highly fluid in nature. As a result, a fixed global schema cannot be assumed and current

algorithms that rely on the existence of such a schema cannot be employed.

Page 6: Distributed Higher Order Association Rule Mining Using Information Extracted from Textual Data

N.Y.U.S.T.

I. M.Distributed Association Rule Mining (ARM)

Distributed Association Rule Mining (ARM) algorithms Mine association rules from data in horizontally or vertically

fragmented databases. Useful rules can be mined from diverse databases with different

local schemas as long as records can be linked via. Higher-order

Implies that rules may be inferred between items that do not occur in the same local database schema.

In other words, rules can be inferred based on items (entities) that may never occur together in any record in any of the distributed databases being mined.

Page 7: Distributed Higher Order Association Rule Mining Using Information Extracted from Textual Data

N.Y.U.S.T.

I. M.

Distributed higher-order text mining(D-HOTM)

Advantage Requires neither the knowledge of the global schema

nor schema integration as a precursor to mining rules. Extracts entities and discovers rules based on higher-

order associations between entities in records linked by a common key.

Major components: Entity extraction

Based on information extraction rules learned using a semi-supervised active learning algorithm.

Distributed association rule mining

Page 8: Distributed Higher Order Association Rule Mining Using Information Extracted from Textual Data

N.Y.U.S.T.

I. M.

About ARM

Association rule mining (ARM) Discovers associations between items. Given two distin

ct sets of items, X and Y, we say Y is associated with X if the appearance of X implies the appearance of Y in the same context.

ARM outputs a list of association rules of the format XY, where X Y has a predetermined support and confidence.

Many ARM algorithms are based on the well-known Apriori algorithm.

Page 9: Distributed Higher Order Association Rule Mining Using Information Extracted from Textual Data

N.Y.U.S.T.

I. M.

Parallelism in ARM (1/2) Data parallelism

Logically partitions the database among processors. Each processor works on its local partition using the same comput

ational model. Count distribution (CD) is a simple data-parallelism algorithm. Ea

ch processor generates the local candidate itemsets independently based on the local partition.

Then the global counts are computed by sharing (or broadcasting) the local counts, and the global frequent candidate itemsets are generated.

Data-parallelism exchanges only the counts among processors, which minimizes the communication cost. As a result, it seems ideal for use in a distributed environment.

Page 10: Distributed Higher Order Association Rule Mining Using Information Extracted from Textual Data

N.Y.U.S.T.

I. M.

Parallelism in ARM (2/2) Task parallelism

Each processor performs different computations independently, yet all have access to the entire dataset.

For example, the computation of candidate itemsets of different sizes might be distributed among processors in a parallel loop across itemsets.

In this case, each processor generates global counts independently.

In a distributed environment, this can be accomplished by performing an initial ‘copy-in’ operation of the dataset, albeit often at great cost.

Page 11: Distributed Higher Order Association Rule Mining Using Information Extracted from Textual Data

N.Y.U.S.T.

I. M.Fast Distributed Mining v.s.

Optimized Distributed Association Mining Fast Distributed Mining (FDM)

Based on count distribution. The advantage of FDM over CD is that it reduces the communication cost

by sending the local frequent candidate itemsets to a polling site instead of broadcasting.

Optimized Distributed Association Mining (ODAM) algorithm Both reduces the size of the average transaction and reduces the number o

f message exchanges in order to achieve better performance. The transactions are reduced by deleting the non-frequent items from the i

temsets and merging several transactions with the same itemsets into one record.

As for the message exchange, instead of using broadcast as with CD or polling sites like FDM, ODAM just sends all local information to one site, called the receiver.

Page 12: Distributed Higher Order Association Rule Mining Using Information Extracted from Textual Data

N.Y.U.S.T.

I. M.Distributed mining of vertically fragmented data

A privacy preserving association rule mining algorithm for vertically distributed data.

The authors use a vector to represent each (vertically fragmented) record in which the attributes in the schema are distributed amongst the different local sites.

It is a method for mining association rules when the (global) schema is distributed amongst multiple sites.

This approach requires a priori knowledge of the complete (global) schema by all sites, and is thus unsuitable for mining rules from distributed data for which local schemas differ and the global schema is unknown.

Three assumptions: (1) the databases are vertically fragmented;(2) there is a global key to unambiguously link subsets of items, and no

additional techniques are needed to identify which subsets should be linked;

(3) the global database schema is known.

Page 13: Distributed Higher Order Association Rule Mining Using Information Extracted from Textual Data

N.Y.U.S.T.

I. M.

Entity Extraction reduced regular expression (RRE)

Discovers sequences of words and/or part-of-speech tags that, for a given entity, have high frequency in the labeled instances of the training data (true set) and low frequency in the unlabeled instances (false set).

First discovers the most common element1 of an RRE, termed the root of the RRE. The algorithm then extends the RRE in “AND”, “GAP”, and “Start/End” learning phases.

In each iteration, a single RRE is generated. This RRE is considered a sub-rule of the current entity.

Page 14: Distributed Higher Order Association Rule Mining Using Information Extracted from Textual Data

N.Y.U.S.T.

I. M.

RRE Discovery Process

Discover the

Root

“AND”

Learning Process

“GAP”

Learning Process

RRE Start and End

Learning Process

Page 15: Distributed Higher Order Association Rule Mining Using Information Extracted from Textual Data

N.Y.U.S.T.

I. M.

Definition in D-HOTM

Object In a given local database apply a row to represe

nt it. For example a particular individual mentioned in an investigative report.

Item (or items) Identifying the object such as a person’s name

or SSN, each row also contains other items known to exist in the source document.

Page 16: Distributed Higher Order Association Rule Mining Using Information Extracted from Textual Data

N.Y.U.S.T.

I. M.

Fragmentation types Horizontally fragmented

There is no guarantee that every site will include the same set of items,

And in the case where an object is not a document or report but a person, different distributed sites may also refer to the same object multiple times (e.g., investigative reports about different crimes committed by the same individual).

Vertically fragmented There is no one-to-one mapping connecting records in the

distributed databases. In addition, the (local) ‘schema’ for each individual document

varies, and no clean division of all objects’ items into identical sets.

Page 17: Distributed Higher Order Association Rule Mining Using Information Extracted from Textual Data

N.Y.U.S.T.

I. M.

Skeleton of D-HO ARM

(1) Select linkage items

(2) Assign a globally unique ID to each record/object

(3) Identify linkable records using Apriori on global IDs

(4) Exchange information about linkable records

(5) For each site

(6) Apply the Apriori algorithm locally

Page 18: Distributed Higher Order Association Rule Mining Using Information Extracted from Textual Data

N.Y.U.S.T.

I. M.

Select linkage items Items used for linking records

One requirement for this set is that the item (or combination of items) must uniquely identify objects.

In police investigative reports, SSN (suspect No.) might be selected as the subset used for linkage because such reports are written about individuals, and individuals are uniquely identified by SSN.

SSN uniquely represents person objects. object vs. record

the items in the subset used for linkage refer to objects, while a record consists of the collection of items (i.e., entities) extracted from a given document (e.g., a police report).

Naturally this implies that one or more of the items in a given record uniquely represent the object used for record linkage.

Page 19: Distributed Higher Order Association Rule Mining Using Information Extracted from Textual Data

N.Y.U.S.T.

I. M.

Discovers linkable records using the item(s)

For example If a given suspect appears in a burglary record in

Detroit, and the same suspect also appears in a mugging case in Philadelphia, and the SSN is chosen as the linking item, then those two distributed records are considered linkable.

Application In a practical sense, linking these two records might

reveal new information to the investigating police officer.

Page 20: Distributed Higher Order Association Rule Mining Using Information Extracted from Textual Data

N.Y.U.S.T.

I. M.

Identifiers problem Ideally assumption

The item (or combination of items) should be globally unique and consistent.

Unique means different objects have different identifiers while consistent implies that the records about the same object have the same identifiers.

Problems Two databases will have the same object (a reference to a scholarl

y research article) with different items. {ID, title, year, citenum} and {ID, title, year, code}

The 2-itemset {code citenum} can then be calculated using the global ID to match records in the two different databases – a higher-order association between code and citenum via the global ID.

Page 21: Distributed Higher Order Association Rule Mining Using Information Extracted from Textual Data

N.Y.U.S.T.

I. M.

Detection of Linkable Records If each local record corresponds to a single document obje

ct. The combination of the title and author attributes serve both to lin

k records from different sites and to uniquely identify objects. Record identifiers (such as DOIs for investigative reports)

differ from the object identifiers used for linking. For example, suppose records are comprised of the entities extract

ed from reports that contain criminal suspect information such as SSN and modus operandi. Higher-order associations can be discovered by linking two such records through the SSN item.

In this case, the linking item, SSN, uniquely identifies individuals, not records.

A single investigative report record may contain multiple SSNs.

Page 22: Distributed Higher Order Association Rule Mining Using Information Extracted from Textual Data

N.Y.U.S.T.

I. M.

Theory for the Detection of Linkable Records (1/3)

Definition 1: Given two records Ri and Rj, let T= Ri Rj, and T. For any item aT, we say Ri and Rj are 2nd-order linkable through a, or a2-linkable, denoted as Ri ~a Rj.

Theorem 1: The relation between records that are a2-linkable is reflexive, symmetric and transitive.

Page 23: Distributed Higher Order Association Rule Mining Using Information Extracted from Textual Data

N.Y.U.S.T.

I. M.

Theory for the Detection of Linkable Records (2/3) Definition 2: Given n distinct records R1, R2, …, Ri, …, Rn

and Ti= Ri Ri+1 with Ti, let L be a list of items L = (a1, a2, …, ai,…, an-1) such that aiTi. Then we say records R1 and Rn are (k+1)th-order linkable through L, where k is the number of distinct items in L. The (k+1)th-order link is denoted R1 ~a1 R2 ~a2 R3 ~a3 R4 … Ri-1 ~a(i-1) Ri … Rn-1 ~a(n-1) Rn, or in short, R1 ~L Rn. We term L a viable path.

Theorem 2: For any higher-order link between two records, there must exist at least one link which does not have repeated items in the viable path, or repeated records in the link.

Page 24: Distributed Higher Order Association Rule Mining Using Information Extracted from Textual Data

N.Y.U.S.T.

I. M.

Theory for the Detection of Linkable Records (3/3) Definition 3: The length of a higher-order link cluster is defined as the numbe

r of groups in the cluster. The distance between two groups is defined as the shortest of all possible higher-order links.

For example, given the following two higher-order link clusters: Ra ~a Rab ~b Rbc ~c Rc Ra ~a Rac ~c Rc

The length of the first cluster is four while the length of the second is three. Suppose these two link clusters contain the only links between Ra and Rc, then from the link cluster Ra ~a Rac ~c Rc. we see that the distance between Ra and Rc is three.

Theorem 4: Given a frequent k-itemset X generated by Apriori for k2, for any pair of items which are members of X, the distance between the groups on those items is at most three.

Theorem 5: Given a frequent k-itemset A and j-itemset B (j,k2) for which A is not a subset of B and B is not a subset of A, suppose there exists at least one item which is a member of A and B. Furthermore, suppose there are items aA and bB, then the distance between groups Ra and Rb is at most four.

Page 25: Distributed Higher Order Association Rule Mining Using Information Extracted from Textual Data

N.Y.U.S.T.

I. M.

An Example Application

Page 26: Distributed Higher Order Association Rule Mining Using Information Extracted from Textual Data

N.Y.U.S.T.

I. M.

Link results

1. The distance between RJack and RDiana is three, and the groups are higher-order linked as follows: RJack-Jack,Diana ~Jack RJack,Diana ~Diana RDiana-Jack,Diana.

2. Using the GIDLists to represent the groups on the items, we have{2,6,8}-{6} ~Jack {6} ~Diana {4,6}-{6}, or {2,8}~Jack {6} ~Diana {4}.

Page 27: Distributed Higher Order Association Rule Mining Using Information Extracted from Textual Data

N.Y.U.S.T.

I. M.

Merged records based on the higher-order links discovered

The Apriori algorithm is applied again, this time to each local database. Since higher-order associations have been implicitly included in the new, merged records, both higher-order and the usual first-order associations will be included in the resulting rules generated by Apriori. For example, “Gun Þ Robbery” and “Diana Þ Robbery” are rules generated based on higher-order associations discovered by the D-HO ARM algorithm.

Page 28: Distributed Higher Order Association Rule Mining Using Information Extracted from Textual Data

N.Y.U.S.T.

I. M.

Metrics for evaluation Support value

One of the most important metrics used in ARM, which is defined as the frequency of an itemset divided by the total number of instances.

In distributed databases, the total number of instances can be calculated by counting the number of unique global object IDs.

Problems Different objects (and subsequently records) can be incorrectly ma

pped to the same global ID Records that should be mapped to a single global ID can be mappe

d to different IDs. The error rate of the mapping function will thus influence both the

support and confidence metrics.

Page 29: Distributed Higher Order Association Rule Mining Using Information Extracted from Textual Data

N.Y.U.S.T.

I. M.

An example of mapping

1. The ground truth data set is obtained through experts’ identification.2. The modeled data set is obtained through the mapping function.3. The sample data set is R={1,2,3,4,5,6}, where records 1 and 2 represe

nt the same object (e.g., have the same primary key), records 3 and 4 represent another object, and records 5 and 6 represent a third object.

{1,3} {2,4}

{5,6}

{1,2} {3,4}

{5,6}

1,2,3,4,5,6

Mapping

function

Human

Expert

Ground truth Modeled data

Sample data

P G

Page 30: Distributed Higher Order Association Rule Mining Using Information Extracted from Textual Data

N.Y.U.S.T.

I. M.

Error rate and difference degree

Observed error rate f is:

We also define the observed difference degree t’ as:

where n’ is the size of the modeled data set and n is the size of the ground truth.

G

PGG

n

nn

n

PGf

1

0','

' tn

nt

Page 31: Distributed Higher Order Association Rule Mining Using Information Extracted from Textual Data

N.Y.U.S.T.

I. M.

Conclusions

Heterogeneous distributed databases can be easily centralized.

Distributed higher-order rules can be mined from multiple diverse databases without knowledge of the global schema.

Propose a support metric in the context of distributed higher-order ARM.

Mining higher-order rules from distributed textual data in a hybrid fragmented form independent of the knowledge of the global schema.

Page 32: Distributed Higher Order Association Rule Mining Using Information Extracted from Textual Data

N.Y.U.S.T.

I. M.

Future work ID identification automatically

This process could be partially automated given semantic mappings such as those supported by the recently released Web Ontology Language.

Distributed ARM deals with the efficiency of computation Make workload balancing as well as optimization of both computation an

d communication. Opposite direction mining

Be used to mine association rules from the results returned from a search (as opposed to mining rules from entire databases).

For example, a user may wish to find strong associations between Axiom’s classification codes and the number of citations on Citeseer for a particular set of documents returned by queries.

Multilevel parallelism Can be introduced to improve runtime performance: e.g., at each distribut

ed database, a parallel ARM algorithm can be executed.