Presentation is loading. Please wait.

Presentation is loading. Please wait.

Exploiting Wikipedia as External Knowledge for Document Clustering Sakyasingha Dasgupta, Pradeep Ghosh Data Mining and Exploration-Presentation School.

Similar presentations


Presentation on theme: "Exploiting Wikipedia as External Knowledge for Document Clustering Sakyasingha Dasgupta, Pradeep Ghosh Data Mining and Exploration-Presentation School."— Presentation transcript:

1 Exploiting Wikipedia as External Knowledge for Document Clustering Sakyasingha Dasgupta, Pradeep Ghosh Data Mining and Exploration-Presentation School of Informatics, The University of Edinburgh

2 Outline Introduction Framework Concept Mapping: Exact and Relatedness Match Category Mapping Clustering Experiments & Results Conclusions & Future work

3 Introduction Problems of BOW-based clustering: – Ignores the relationships among words – If two documents use different collections of core words to represent the same topic, they would be assigned to different clusters. Solution: enrich document representation with the background knowledge represented by an ontology.

4 Introduction Two issues for enhancing text clustering by leveraging ontology semantics: – An ontology which can cover the topical domain of individual document collections as completely as possible. – A proper matching method which can enrich the document representation by fully leveraging ontology terms and relations without introducing more noise. This paper aims to address both issues.

5 Wikipedia as Ontology Wikipedia is a free, multilingual encyclopedia project supported by the non-profit Wikimedia Foundation. Wikipedia's articles have been written collaboratively by volunteers around the world. Almost all of its articles can be edited by anyone who can access the Wikipedia website. The free encyclopedia that anyone can edit ----http://en.wikipedia.org/wiki/Wikipeida

6 Wikipedia as Ontology Unlike other standard ontologies, such as WordNet and Mesh, Wikipedia itself is not a structured thesaurus. However, it is more… – Comprehensive: it contains 12 million articles (2.8 million in the English Wikipedia) – Accurate : A study by Giles (2005) found Wikipedia can compete with Encyclopædia Britannica in accuracy*. – Up to date: Current and emerging concepts are absorbed timely. * Giles, J. 2005. Internet encyclopaedias go head to head. Nature 438: 900–901.

7 Wikipedia as Ontology Moreover, Wikipedia has a well-formed structure – Each article only describes a single concept. – The title of the article is a short and well-formed phrase like a term in a traditional thesaurus.

8 Wikipedia Article that describes the Concept Artificial intelligence

9 Wikipedia as Ontology Moreover, Wikipedia has a well-formed structure – Each article only describes a single concept – The title of the article is a short and well-formed phrase like a term in a traditional thesaurus. – Equivalent concepts are grouped together by redirected links.

10 AI is redirected to its equivalent concept Artificial Intelligence

11 Wikipedia as Ontology Moreover, Wikipedia has a well-formed structure – Each article only describes a single concept – The title of the article is a short and well-formed phrase like a term in a traditional thesaurus. – Equivalent concepts are grouped together by redirected links. – It contains a hierarchical categorization system, in which each article belongs to at least one category.

12 The concept Artificial Intelligence belongs to four categories: Artificial intelligence, Cybernetics, Formal sciences & Technology in society

13 Wikipedia as Ontology Moreover, Wikipedia has a well-formed structure – Each article only describes a single concept – The title of the article is a short and well-formed phrase like a term in a traditional thesaurus. – Equivalent concepts are grouped together by redirected links. – It contains a hierarchical categorization system, in which each article belongs to at least one category. – Polysemous concepts are disambiguated by Disambiguation Pages.

14 The different meanings that Artificial intelligence may refer to are listed in its disambiguation page.

15 The Framework of leveraging Wikipedia for document clustering Similarity metric between two documents:  SIM(d1, d2)= Sim(W1, W2)+ α∙Sim(C1, C2) + β∙Sim(Cat1, Cat2)

16 Concept Mapping Match documents to Wikipedia concepts. Result: A document-concept Matrix Matching Schemes: – Exact Match – Relatedness Match D1 D2 C1 C2 w 11 w 12 w 21 w 22 Wikipedia Concept Documents

17 Artificial Intelligence, or AI for short, is a combination of computer science, physiology, and philosophy. … Wikipedia concept dictionary Wiki Concepts C artificial Intelligence …computer science …physiology…philosophy… d12…1…1…1… artificial Intelligence, AI … computer science … physiology … philosophy … document-concept Vector Exact match d1 1. Concept Mapping ---Exact Match

18 Concept Mapping Schemes: Exact Match – Each document is scanned to find Wikipedia concepts (article titles). – The searched Wikipedia concepts are used to comprise the concept vector of the corresponding document. – Synonymous phrases to the same concept are grouped together through the redirect links in Wikipedia.

19 Concept Mapping Schemes: Exact Match – A dictionary is constructed, with each entry corresponding to a topic covered by Wikipedia. – Each entry includes not only the preferred Wikipedia concept which is used as the title of the article, but also all the redirected concepts representing the same topic. – Based on the dictionary, both preferred concepts and redirected concepts are retrieved from documents. – Only preferred concepts are used to build the concept vector for each document. The weight of each preferred concept equals to the frequency of itself plus the frequencies of all the redirected concepts appearing in a document. – The document-concept TFIDF matrix is further calculated based on the document-concept frequency matrix.

20 Concept Mapping Schemes: Exact Match – High efficiency – Low recall. Only the concepts which explicitly appear in a document are extracted and used to construct the concept vector of the document.

21 Artificial Intelligence, or AI for short, is a combination of computer science, physiology, and philosophy. … d1d1 Wiki concepts C c1c1 c2c2 …cMcM Wiki article terms W w1w1 tfidf 11 tfidf 12 …tfidf 1N w2w2 tfidf 21 tfidf 22 …tfidf 2N …………… wNwN tfidf N1 tfidf N2 …tfidf NM terms W w1w1 w2w2 …wNwN d1d1 tfidf 11 tfidf 12 tfidf 1N term vector of document d1 Wikipedia collection Wikipedia term concept matrix Wiki concepts C c1c1 c2c2 …cMcM d1 r 11 r 12 r 1N document-concept Vector 2. Concept Mapping –Relatedness Match

22 Concept Mapping Schemes: Relatedness Match Step 1: A Wikipedia term-concept matrix is constructed from Wikipedia article collection. – The values in the matrix are TFIDF scores, which denote the relatedness of each term to each Wikipedia concept article. – For each word, only top k concepts with highest TFIDF scores are selected. (In this study, k = 5)

23 Concept Mapping Schemes: Relatedness Match Step 2: The word-concept matrix is used as a bridge to build Document- Wikipedia concept Matrix. The relatedness of a Wikipedia concept to a given document is calculated as: : the TFIDF score of word in document ; representing the importance of to : the TFIDF score of word in concept ; representing the importance of to o For each document, only the top M concepts with highest relatedness score are selected. (In this experiment, M is set to 200)

24 Concept Mapping Schemes: Relatedness Match – More time consuming – Helpful for identify relevant Wikipedia concepts which are not explicitly present in a document. – Especially useful when Wikipedia concepts have less coverage for a dataset.

25 Category Mapping D1 D2 C1 C2 w 11 w 12 w 21 w 22 Wikipedia Concept Documents CAT1 CAT2 C1 C2 10 11 Wikipedia Concepts Wikipedia Category CAT1 CAT2 D1 D2 v 11 v 12 v 21 v 22 Wikipedia Category Documents

26 Wiki concepts C c1c1 c2c2 …cMcM d1d1 r 11 r 12 r 1N Wiki categories CAT cat 1 cat 2 …cat k Wiki Concepts C c1c1 10…0 c2c2 00…1 …………… cNcN 01…0 Wiki categories CAT cat 1 cat 2 …cat k d1d1 v 11 v 12 v 1k Wiki Concept-Category Matrix document-concept Vector document-category Vector 3. Category Mapping Concept Mapping (Exact Match or Relatedness Match) The hierarchical categorization system of Wikipedia

27 Category Mapping Exact match: – A document-category frequency matrix is first derived from the document-concept frequency matrix by replacing each concept with its corresponding categories. – If a category is mapped to a document through more than one concept, the sum of the frequencies of these concepts is the category’s frequency. – Based on the generated document-category frequency matrix, we further derive the document- category TFIDF matrix

28 Category Mapping Relatedness Match – The document-category matrix is generated by replacing each concept in the document-concept matrix with its corresponding categories, which share the same normalized relatedness score as the concept. – If a category is mapped to a document through more than one concept, its relatedness score to the document is the sum of the scores of all these concepts.

29 Document Clustering Agglomerative Clustering Partitional Clustering and respectively indicate the importance of concept vector and category vector in measuring the similarity between two documents.

30 Experiments Wikipedia data: 911,028 articles and about 29000 categories after pre-processing and filtering. Clustering dataset: TDT2, LA Times (from TREC), and 20-newsgroups (20NG). Evaluation Metrics: – Purity – F-score – NMI (normalized mutual information )

31 Experiments Clustering Schemes under Comparison NotationExplanation WordClustering solely based on word vector ConceptClustering solely based on concept vector CategoryClustering solely based on category vector Word_Concept Clustering based on the linear combination of word vector and concept vector Word_Category Clustering based on the linear combination of word vector and category vector Concept_Category Clustering based on the linear combination of concept vector and category vector Word_Concept_Category Clustering based on the linear combination of word vector, concept vector and category vector

32 Experiments Parameter Setting (α and β that indicate the importance of concept vector and category vector in measuring the similarity between two documents.) – For Word_Concept scheme, β is set to zero and α is set to 0.1, 0.2, ∙∙∙, 1.0 respectively. The average result of the ten runs is used as the final clustering results for Word_Concept scheme. – For Word_Category scheme, α is set to zero and β is set to 0.1, 0.2, ∙∙∙, 1.0 respectively. The average result of the ten runs is used as the final clustering results for Word_Category scheme. – For Word_Concept_Category scheme, α is set to the value which produces best results for Word_Concept based clustering, and β is set to the value that generates best results for Word_Category based clustering.

33 Agglomerative clustering results 20 News Group NMIF-ScorePurity Match SchemeEMRMEMRMEMRM Word (BaseLine)0.1440.1460.132 Concept0.1340.1570.1020.0620.1030.081 Cateogory0.1110.160*0.1280.1110.1430.114 Concept_Category0.1310.1480.1460.0840.1600.095 Word_Concept0.1440.1500.1530.1680.1360.148 Word_Category0.166*0.171*0.189*0.209*0.201*0.180* Word_Concept_Category0.166*0.1540.196*0.195*0.206*0.165 * indicates the improvement is significant according to the paired-sample T-test at the level of p<0.05.

34 Agglomerative clustering results LA Times NMIF-ScorePurity Match SchemeEMRMEMRMEMRM Word (BaseLine)0.0480.0660.124 Concept0.0600.0730.0570.0440.1200.113 Cateogory0.071*0.0530.1740.0540.1110.118 Concept_Category0.0730.0540.1770.0540.2020.118 Word_Concept0.0510.0520.0640.0720.1240.128 Word_Category0.101*0.0490.210*0.097*0.238*0.142* Word_Concept_Category0.103*0.0520.204*0.100*0.232*0.144* * indicates the improvement is significant according to the paired-sample T-test at the level of p<0.05.

35 Agglomerative clustering results TDT2 NMIF-ScorePurity Match SchemeEMRMEMRMEMRM Word (BaseLine)0.5370.6220.600 Concept0.2960.3720.3980.4830.3680.463 Cateogory0.577*0.4480.6370.5390.649*0.549 Concept_Category0.581*0.4440.6560.5430.659*0.560 Word_Concept0.5630.6090.6370.689*0.6200.678* Word_Category0.695*0.660*0.754*0.721*0.769*0.737* Word_Concept_Category0.675*0.661*0.734*0.726*0.751*0.747* * indicates the improvement is significant according to the paired-sample T-test at the level of p<0.05.

36 Partitional Clustering Results 20 News Group NMIF-ScorePurity Match SchemeEMRMEMRMEMRM Word (BaseLine)0.3900.3820.411 Concept0.2880.3130.3120.3720.3020.401 Cateogory0.2910.3260.3320.3830.3410.391 Concept_Category0.2870.3220.3330.3540.3170.388 Word_Concept0.3900.3830.3800.3820.411 Word_Category0.409*0.429*0.402*0.412*0.430*0.442* Word_Concept_Category0.3980.4120.400*0.418*0.429*0.442* * indicates the improvement is significant according to the paired-sample T-test at the level of p<0.05.

37 Partitional Clustering Results LA Times NMIF-ScorePurity Match SchemeEMRMEMRMEMRM Word (BaseLine)0.1880.3170.328 Concept0.1860.0820.3120.2530.3330.251 Cateogory0.1850.0970.3150.2410.3270.249 Concept_Category0.1900.1120.3100.2420.3290.245 Word_Concept0.1590.1280.2920.2640.3040.275 Word_Category0.1940.1790.3250.3120.3350.322 Word_Concept_Category0.1890.1400.3190.2760.3300.286 * indicates the improvement is significant according to the paired-sample T-test at the level of p<0.05.

38 Partitional Clustering Results TDT2 NMIF-ScorePurity Match SchemeEMRMEMRMEMRM Word (BaseLine)0.7900.8250.848 Concept0.5560.4470.6220.5220.6470.544 Cateogory0.5770.4480.6370.5390.6490.549 Concept_Category0.5430.4420.6300.5230.6430.545 Word_Concept0.7870.7660.8150.7920.8400.819 Word_Category0.8040.7370.8300.7200.8540.763 Word_Concept_Category0.8020.8040.8330.8460.8540.876 * indicates the improvement is significant according to the paired-sample T-test at the level of p<0.05.

39 Conclusions 1.Category information is most useful for improving clustering results. In both agglomerative clustering and partitional clustering, combining category information with document content information generates the best results in most cases. 2.Clustering based on all three document vectors (word vector, concept vector, category vector) also gets significantly better results than the baseline, but does not outperform clustering based only on word vector and category vector. 3.Concept information is not as useful as category information for improving clustering performance due to the noisy information it contains and sense ambiguity problem. 4.The effect of category and concept information on k-means clustering is not as significant as it on agglomerative clustering. But, in most cases, Word_Category based clustering still achieves best performance among all clustering schemes. 5.The effect of the two mapping schemes depends on the dataset, quality metric and clustering approach.

40 Future Work Introduce sense disambiguation functions into the concept mapping process by leveraging Wikipedia disambiguation pages. Explore how to utilize the link structure among Wikipedia concepts for document clustering.

41


Download ppt "Exploiting Wikipedia as External Knowledge for Document Clustering Sakyasingha Dasgupta, Pradeep Ghosh Data Mining and Exploration-Presentation School."

Similar presentations


Ads by Google