Data Mining: — Mining Text and Web Data — Han & Kambr

Slides:



Advertisements
Similar presentations
A Comparison of Implicit and Explicit Links for Web Page Classification Dou Shen 1 Jian-Tao Sun 2 Qiang Yang 1 Zheng Chen 2 1 Department of Computer Science.
Advertisements

Improvements and extras Paul Thomas CSIRO. Overview of the lectures 1.Introduction to information retrieval (IR) 2.Ranked retrieval 3.Probabilistic retrieval.
Chapter 5: Introduction to Information Retrieval
Web Mining Research: A Survey Authors: Raymond Kosala & Hendrik Blockeel Presenter: Ryan Patterson April 23rd 2014 CS332 Data Mining pg 01.
Data Mining: Concepts and Techniques Mining Text Data
Information Retrieval in Practice
Aki Hecht Seminar in Databases (236826) January 2009
Recommender systems Ram Akella February 23, 2011 Lecture 6b, i290 & 280I University of California at Berkeley Silicon Valley Center/SC.
Presented by Zeehasham Rasheed
Link Structure and Web Mining Shuying Wang
Recommender systems Ram Akella November 26 th 2008.
Information Retrieval
Text Mining: Finding Nuggets in Mountains of Textual Data Jochen Dijrre, Peter Gerstl, Roland Seiffert Presented by Drew DeHaas.
Chapter 5: Information Retrieval and Web Search
Overview of Search Engines
Λ14 Διαδικτυακά Κοινωνικά Δίκτυα και Μέσα
Webpage Understanding: an Integrated Approach
Title Extraction from Bodies of HTML Documents and its Application to Web Page Retrieval Microsoft Research Asia Yunhua Hu, Guomao Xin, Ruihua Song, Guoping.
MediaEval Workshop 2011 Pisa, Italy 1-2 September 2011.
Learning Object Metadata Mining Masoud Makrehchi Supervisor: Prof. Mohamed Kamel.
Chapter 7 Web Content Mining Xxxxxx. Introduction Web-content mining techniques are used to discover useful information from content on the web – textual.
Web Search. Structure of the Web n The Web is a complex network (graph) of nodes & links that has the appearance of a self-organizing structure  The.
UOS 1 Ontology Based Personalized Search Zhang Tao The University of Seoul.
Thanks to Bill Arms, Marti Hearst Documents. Last time Size of information –Continues to grow IR an old field, goes back to the ‘40s IR iterative process.
WebMining Web Mining By- Pawan Singh Piyush Arora Pooja Mansharamani Pramod Singh Praveen Kumar 1.
Chapter 6: Information Retrieval and Web Search
Search Engines. Search Strategies Define the search topic(s) and break it down into its component parts What terms, words or phrases do you use to describe.
Introduction to Digital Libraries hussein suleman uct cs honours 2003.
Mining Topic-Specific Concepts and Definitions on the Web Bing Liu, etc KDD03 CS591CXZ CS591CXZ Web mining: Lexical relationship mining.
A Scalable Machine Learning Approach for Semi-Structured Named Entity Recognition Utku Irmak(Yahoo! Labs) Reiner Kraft(Yahoo! Inc.) WWW 2010(Information.
Data Mining: Text Mining
1 Data Mining: Text Mining. 2 Information Retrieval Techniques Index Terms (Attribute) Selection: Stop list Word stem Index terms weighting methods Terms.
1/3/ Data Mining: — Mining Text and Web Data — Han & Kambr.
Digital Video Library Network Supervisor: Prof. Michael Lyu Student: Ma Chak Kei, Jacky.
Identifying “Best Bet” Web Search Results by Mining Past User Behavior Author: Eugene Agichtein, Zijian Zheng (Microsoft Research) Source: KDD2006 Reporter:
Selecting Relevant Documents Assume: –we already have a corpus of documents defined. –goal is to return a subset of those documents. –Individual documents.
1 CIS 467 :Data Mining Department of Computer Information Systems Faculty of Information Technology Yarmouk University – Jordan Instructors: Dr. Qasem.
1 Text Categorization  Assigning documents to a fixed set of categories  Applications:  Web pages  Recommending pages  Yahoo-like classification hierarchies.
WEB STRUCTURE MINING SUBMITTED BY: BLESSY JOHN R7A ROLL NO:18.
Data mining in web applications
Information Retrieval in Practice
Queensland University of Technology
CSCE822 Data Mining and Warehousing
Visual Information Retrieval
Designing Cross-Language Information Retrieval System using various Techniques of Query Expansion and Indexing for Improved Performance  Hello everyone,
Search Engine Architecture
Text Based Information Retrieval
Information Retrieval
Mining Text Data: An Introduction Data Mining / Knowledge Discovery
Mining the Data Charu C. Aggarwal, ChengXiang Zhai
Text & Web Mining 9/22/2018.
Multimedia Information Retrieval
Information Retrieval
Presented by: Prof. Ali Jaoua
Text Categorization Assigning documents to a fixed set of categories
CS 430: Information Discovery
Multimedia Information Retrieval
CSE 635 Multimedia Information Retrieval
Mining Text Data: An Introduction Data Mining / Knowledge Discovery
Introduction to Information Retrieval
Chapter 5: Information Retrieval and Web Search
CS246: Information Retrieval
Information Retrieval
Word embeddings (continued)
Web Mining Research: A Survey
Chapter 31: Information Retrieval
Chapter 19: Information Retrieval
Introduction to Search Engines
Information Retrieval and Web Design
Introduction Dataset search
Presentation transcript:

Data Mining: — Mining Text and Web Data — Han & Kambr Babu Ram Dawadi 9/8/2018

Mining Text and Web Data Text mining, natural language processing and information extraction: An Introduction Text categorization methods Mining Web linkage structures Summary 9/8/2018

Mining Text Data: An Introduction Data Mining / Knowledge Discovery Structured Data Multimedia Free Text Hypertext HomeLoan ( Loanee: Frank Rizzo Lender: MWF Agency: Lake View Amount: $200,000 Term: 15 years ) Frank Rizzo bought his home from Lake View Real Estate in 1992. He paid $200,000 under a15-year loan from MW Financial. <a href>Frank Rizzo </a> Bought <a hef>this home</a> from <a href>Lake View Real Estate</a> In <b>1992</b>. <p>... Loans($200K,[map],...) Throughout this course we have been discussing Data Mining over a variety of data types. Two former types we covered were Structured Data (relational) and multimedia data. Today and in the last class we have been discussing Data Mining over free text, and our next section will cover hypertext, such as web pages. Text mining is well motivated, due to the fact that much of the world’s data can be found in free text form (newspaper articles, emails, literature, etc.). There is a lot of information available to mine. While mining free text has the same goals as data mining in general (extracting useful knowledge/stats/trends), text mining must overcome a major difficulty – there is no explicit structure. Machines can reason will relational data well since schemas are explicitly available. Free text, however, encodes all semantic information within natural language. Our text mining algorithms, then, must make some sense out of this natural language representation. Humans are great at doing this, but this has proved to be a problem for machines. 9/8/2018

Bag-of-Tokens Approaches Documents Token Sets Four score and seven years ago our fathers brought forth on this continent, a new nation, conceived in Liberty, and dedicated to the proposition that all men are created equal. Now we are engaged in a great civil war, testing whether that nation, or … nation – 5 civil - 1 war – 2 men – 2 died – 4 people – 5 Liberty – 1 God – 1 … Feature Extraction The previous text mining presentations “made sense” out of free text by viewing text as a bag-of-tokens (words, n-grams). This is the same approach as IR. Under that model we can already summarize, classify, cluster, and compute co-occurrence stats over free text. These are quite useful for mining and managing large volumes of free text. However, there is a potential to do much more. The BOT approach loses a LOT of information contained in text, such as word order, sentence structure, and context. These are precisely the features that humans use to interpret text. Thus the natural question is can we do better? Loses all order-specific information! Severely limits context! 9/8/2018

Natural Language Processing A dog is chasing a boy on the playground Det Noun Aux Verb Prep Noun Phrase Complex Verb Prep Phrase Verb Phrase Sentence Dog(d1). Boy(b1). Playground(p1). Chasing(d1,b1,p1). Semantic analysis Lexical analysis (part-of-speech tagging) Syntactic analysis (Parsing) A person saying this may be reminding another person to get the dog back… Pragmatic analysis (speech act) Scared(x) if Chasing(_,x,_). + Scared(b1) Inference NLP, or Computational Linguistics, is an entire field dedicated to the study of automatically understanding free text. This field has been active since the 50’s. General NLP attempts to understand document completely (at the level of a human reader). There are several steps involved in NLP. …Blah… 9/8/2018 (Taken from ChengXiang Zhai, CS 397cxz – Fall 2003)

WordNet An extensive lexical network for the English language Contains over 138,838 words. Several graphs, one for each part-of-speech. Synsets (synonym sets), each defining a semantic sense. Relationship information (antonym, hyponym, meronym …) Downloadable for free (UNIX, Windows) Expanding to other languages (Global WordNet Association) WordNet is an extensive lexical network for the human language. Consists of a graph of synsets for each part of speech. Contains synonym and antonym relationships. (hyponym=isa/subset, maple is a tree -> maple is a hyponym of tree) (meronym=hasa, tree has a leaf -> leaf is a meronym of tree) As will see, this is useful throughout NLP/ShallowLinguistics. This encodes some of the lexicon that humans carry with them when interpreting text. watery parched moist wet dry arid synonym antonym 9/8/2018 damp anhydrous

Text Databases and Information Retrieval (IR) Text databases (document databases) Large collections of documents from various sources: news articles, research papers, books, digital libraries, e-mail messages, and Web pages, library database, etc. Data stored is usually semi-structured Traditional information retrieval techniques become inadequate for the increasingly vast amounts of text data Information retrieval A field developed in parallel with database systems Information is organized into (a large number of) documents Information retrieval problem: locating relevant documents based on user input, such as keywords or example documents 9/8/2018

Information Retrieval Typical IR systems Online library catalogs Online document management systems Information retrieval vs. database systems Some DB problems are not present in IR, e.g., update, transaction management, complex objects Some IR problems are not addressed well in DBMS, e.g., unstructured documents, approximate search using keywords and relevance 9/8/2018

Basic Measures for Text Retrieval Relevant Relevant & Retrieved Retrieved All Documents Precision: the percentage of retrieved documents that are in fact relevant to the query (i.e., “correct” responses) Recall: the percentage of documents that are relevant to the query and were, in fact, retrieved 9/8/2018

Information Retrieval Techniques Basic Concepts A document can be described by a set of representative keywords called index terms. Different index terms have varying relevance when used to describe document contents. This effect is captured through the assignment of numerical weights to each index term of a document. (e.g.: frequency,) DBMS Analogy Index Terms  Attributes Weights  Attribute Values 9/8/2018

Keyword-Based Retrieval A document is represented by a string, which can be identified by a set of keywords Queries may use expressions of keywords E.g., car and repair shop, tea or coffee, DBMS but not Oracle Queries and retrieval should consider synonyms, e.g., repair and maintenance Major difficulties of the model Synonymy: A keyword T does not appear anywhere in the document, even though the document is closely related to T, e.g., data mining Polysemy: The same keyword may mean different things in different contexts, e.g., mining 9/8/2018

Types of Text Data Mining Keyword-based association analysis Automatic document classification Similarity detection Cluster documents by a common author Cluster documents containing information from a common source Link analysis: unusual correlation between entities Sequence analysis: predicting a recurring event Anomaly detection: find information that violates usual patterns Hypertext analysis Patterns in anchors/links Anchor text correlations with linked objects 9/8/2018

Keyword-Based Association Analysis Motivation Collect sets of keywords or terms that occur frequently together and then find the association or correlation relationships among them Association Analysis Process Preprocess the text data by parsing, stemming, removing stop words, etc. Evoke association mining algorithms Consider each document as a transaction View a set of keywords in the document as a set of items in the transaction Term level association mining No need for human effort in tagging documents The number of meaningless results and the execution time is greatly reduced 9/8/2018

Text Classification Motivation Automatic classification for the large number of on-line text documents (Web pages, e-mails, corporate intranets, etc.) Classification Process Data preprocessing Definition of training set and test sets Creation of the classification model using the selected classification algorithm Classification model validation Classification of new/unknown text documents Text document classification differs from the classification of relational data Document databases are not structured according to attribute-value pairs 9/8/2018

Document Clustering Motivation Automatically group related documents based on their contents No predetermined training sets or taxonomies Generate a taxonomy at runtime Clustering Process Data preprocessing: remove stop words, stem, feature extraction, lexical analysis, etc. Hierarchical clustering: compute similarities applying clustering algorithms. Model-Based clustering (Neural Network Approach): clusters are represented by “exemplars”. (e.g.: SOM) 9/8/2018

Text Categorization Pre-given categories and labeled document examples (Categories may form hierarchy) Classify new documents A standard classification (supervised learning ) problem Categorization System … Sports Business Education Science 9/8/2018

Applications News article classification Automatic email filtering Webpage classification Word sense disambiguation … … 9/8/2018

Categorization Methods Manual: Typically rule-based Does not scale up (labor-intensive, rule inconsistency) May be appropriate for special data on a particular domain Automatic: Typically exploiting machine learning techniques Vector space model based K-nearest neighbor (KNN) Decision-tree (learn rules) Neural Networks (learn non-linear classifier) Support Vector Machines (SVM) Probabilistic or generative model based Naïve Bayes classifier 9/8/2018

Vector Space Model Represent a doc by a term vector Term: basic concept, e.g., word or phrase Each term defines one dimension N terms define a N-dimensional space Element of vector corresponds to term weight E.g., d = (x1,…,xN), xi is “importance” of term i New document is assigned to the most likely category based on vector similarity. 9/8/2018

VS Model: Illustration Java Microsoft Starbucks C2 Category 2 C3 Category 3 new doc C1 Category 1 9/8/2018

Categorization Methods Vector space model K-NN Decision tree Neural network Support vector machine Probabilistic model Naïve Bayes classifier Many, many others and variants exist [F.S. 02] e.g. Bim, Nb, Ind, Swap-1, LLSF, Widrow-Hoff, Rocchio, Gis-W, … … 9/8/2018

Evaluations Effectiveness measure Classic: Precision & Recall 9/8/2018

Evaluation (con’t) Benchmarks Classic: Reuters collection A set of newswire stories classified under categories related to economics. Effectiveness Difficulties of strict comparison different parameter setting different “split” (or selection) between training and testing various optimizations … … However widely recognizable Best: Boosting-based committee classifier & SVM Worst: Naïve Bayes classifier Need to consider other factors, especially efficiency 9/8/2018

Mining Text and Web Data Text mining, natural language processing and information extraction: An Introduction Text categorization methods Mining Web linkage structures Based on the slides by Deng Cai Summary 9/8/2018

Outline Background on Web Search VIPS (VIsion-based Page Segmentation) Block-based Web Search Block-based Link Analysis Web Image Search & Clustering Noise: First, web pages usually do not contain pure content. A web page typically contains various types of materials that are not related to the topic of the web-page. Multiple topics: Secondly, a web page usually contains multiple topics, for example, a news page containing many different comments on a particular event or politician, or a conference web page containing sponsors from different companies and organizations. Although traditional documents also often have multiple topics, they are less diverse so that the impact on retrieval performance is smaller. There exist some new characteristics in web pages: Two-Dimension Logical Structure – Different from free-text documents, web pages have a 2-D view and a more sophisticated internal content structure. Each block of a web page could have relationships with blocks from up to four directions and contain or be contained in some other blocks. A content structure in semantic level exists for most pages and can be used to enhance retrieval. Visual Layout Presentation – To facilitate browsing and attract attention, web pages usually contain much visual information in the tags and properties in HTML [20]. Typical visual hints include lines, blank areas, colors, pictures, fonts, etc. Visual cues are very helpful to detect the semantic regions in web pages. 9/8/2018

Search Engine – Two Rank Functions Ranking based on link structure analysis Web Pages Meta Data Forward Index Inverted Link Backward Link (Anchor Text) Web Topology Graph Web Page Parser Indexer Anchor Text Generator Web Graph Constructor Importance Ranking (Link Analysis) Rank Functions URL Dictioanry Term Dictionary (Lexicon) Search Relevance Ranking Similarity based on content or text 9/8/2018

The PageRank Algorithm Basic idea significance of a page is determined by the significance of the pages linking to it More precisely: Link graph: adjacency matrix A, Constructs a probability transition matrix M by renormalizing each row of A to sum to 1 Treat the web graph as a markov chain (random surfer) The vector of PageRank scores p is then defined to be the stationary distribution of this Markov chain. Equivalently, p is the principal right eigenvector of the transition matrix 9/8/2018

Layout Structure Compared to plain text, a web page is a 2D presentation Rich visual effects created by different term types, formats, separators, blank areas, colors, pictures, etc Different parts of a page are not equally important Title: CNN.com International H1: IAEA: Iran had secret nuke agenda H3: EXPLOSIONS ROCK BAGHDAD … TEXT BODY (with position and font type): The International Atomic Energy Agency has concluded that Iran has secretly produced small amounts of nuclear materials including low enriched uranium and plutonium that could be used to develop nuclear weapons according to a confidential report obtained by CNN… Hyperlink: URL: http://www.cnn.com/... Anchor Text: AI oaeda… Image: URL: http://www.cnn.com/image/... Alt & Caption: Iran nuclear … Anchor Text: CNN Homepage News … 9/8/2018

Web Page Block—Better Information Unit Web Page Blocks Importance = Med Importance = Low Importance = High 9/8/2018

Motivation for VIPS (VIsion-based Page Segmentation) Problems of treating a web page as an atomic unit Web page usually contains not only pure content Noise: navigation, decoration, interaction, … Multiple topics Different parts of a page are not equally important Web page has internal structure Two-dimension logical structure & Visual layout presentation > Free text document < Structured document Layout – the 3rd dimension of Web page 1st dimension: content 2nd dimension: hyperlink Noise: First, web pages usually do not contain pure content. A web page typically contains various types of materials that are not related to the topic of the web-page. Multiple topics: Secondly, a web page usually contains multiple topics, for example, a news page containing many different comments on a particular event or politician, or a conference web page containing sponsors from different companies and organizations. Although traditional documents also often have multiple topics, they are less diverse so that the impact on retrieval performance is smaller. There exist some new characteristics in web pages: Two-Dimension Logical Structure – Different from free-text documents, web pages have a 2-D view and a more sophisticated internal content structure. Each block of a web page could have relationships with blocks from up to four directions and contain or be contained in some other blocks. A content structure in semantic level exists for most pages and can be used to enhance retrieval. Visual Layout Presentation – To facilitate browsing and attract attention, web pages usually contain much visual information in the tags and properties in HTML [20]. Typical visual hints include lines, blank areas, colors, pictures, fonts, etc. Visual cues are very helpful to detect the semantic regions in web pages. 9/8/2018

Is DOM a Good Representation of Page Structure? Page segmentation using DOM Extract structural tags such as P, TABLE, UL, TITLE, H1~H6, etc DOM is more related content display, does not necessarily reflect semantic structure How about XML? A long way to go to replace the HTML DOM in general provides a useful structure for a web page. But tags such as TABLE and P are used not only for content organization, but also for layout presentation. In many cases, DOM tends to reveal presentation structure other than content structure, and is often not accurate enough to discriminate different semantic blocks in a web page. 9/8/2018

Example of Web Page Segmentation (1) ( DOM Structure ) ( VIPS Structure ) 9/8/2018

Example of Web Page Segmentation (2) ( DOM Structure ) ( VIPS Structure ) Can be applied on web image retrieval Surrounding text extraction 9/8/2018

Web Page Block—Better Information Unit Page Segmentation Vision based approach Block Importance Modeling Statistical learning Web Page Blocks Importance = Med Importance = Low Importance = High 9/8/2018

A Sample of User Browsing Behavior 9/8/2018

Improving PageRank using Layout Structure Z: block-to-page matrix (link structure) X: page-to-block matrix (layout structure) Block-level PageRank: Compute PageRank on the page-to-page graph BlockRank: Compute PageRank on the block-to-block graph 9/8/2018

Mining Web Images Using Layout & Link Structure (ACMMM’04) 9/8/2018

Image Graph Model & Spectral Analysis Block-to-block graph: Block-to-image matrix (container relation): Y Image-to-image graph: ImageRank Compute PageRank on the image graph Image clustering Graphical partitioning on the image graph 9/8/2018

ImageRank Relevance Ranking Importance Ranking Combined Ranking 9/8/2018

ImageRank vs. PageRank Dataset 26.5 millions web pages 11.6 millions images Query set 45 hot queries in Google image search statistics Ground truth Five volunteers were chosen to evaluate the top 100 results re-turned by the system (iFind) Ranking method 9/8/2018

ImageRank vs PageRank Image search accuracy using ImageRank and PageRank. Both of them achieved their best results at =0.25. 9/8/2018

Example on Image Clustering & Embedding 1710 JPG images in 1287 pages are crawled within the website http://www.yahooligans.com/content/animals/ Six Categories Fish Reptile Mammal Amphibian Bird Insect 9/8/2018

9/8/2018

2-D embedding of WWW images The image graph was constructed from traditional page level link analysis The image graph was constructed from block level link analysis 9/8/2018

2-D Embedding of Web Images An interesting point is that those three points near each other are the same images with different size. 2-D visualization of the mammal category using the second and third eigenvectors. 9/8/2018

Web Image Search Result Presentation Figure 1. Top 8 returns of query “pluto” in Google’s image search engine (a) and AltaVista’s image search engine (b) (a) (b) For this query, it is difficult to say which search engine performs better since we do not know what the user is really looking for. In fact, all these results are related to the query. However, in different situations, the results of Pluto about solar system may be noise to the user who is looking for dog Pluto. How to cluster the search result is the main theme of this paper. Two different topics in the search result A possible solution: Cluster search results into different semantic groups 9/8/2018

Three kinds of WWW image representation Visual Feature Based Representation Traditional CBIR Textual Feature Based Representation Surrounding text in image block Link Graph Based Representation Image graph embedding 9/8/2018

Clustering Using Visual Feature Figure 5. Five clusters of search results of query “pluto” using low level visual feature. Each row is a cluster. From the perspectives of color and texture, the clustering results are quite good. Different clusters have different colors and textures. However, from semantic perspective, these clusters make little sense. 9/8/2018

Clustering Using Textual Feature Figure 7. Six clusters of search results of query “pluto” using textual feature. Each row is a cluster Figure 6. The Eigengap curve with k for the “pluto” case using textual representation The first category is about Pluto of solar system, having 157 images; The second category contained 46 images about a movie “The adventures of Pluto Nash: The man on the moon”; The third category is about the carton figure Pluto, having 70 images; The fourth category contained 110 images about a theme park of Pluto; The fifth category contained 28 images on site “http://pluto.njcc.com/~lfrankel/” and The sixth category contained 89 images on the site “http://pluto.njcc.com/~jhein/”. These images are retrieved because the URL of these images contain the word of “Pluto”. Six semantic categories are correctly identified if we choose k = 6. 9/8/2018

Clustering Using Graph Based Representation Figure 8. Five clusters of search results of query “pluto” using image link graph. Each row is a cluster Each cluster is semantically aggregated. Too many clusters. In “pluto” case, the top 500 results are clustered into 167 clusters. The max cluster number is 87, and there are 112 clusters with only one image. 9/8/2018

Combining Textual Feature and Link Graph Figure 9. Six clusters of search results of query “pluto” using combination of textual feature and image link graph. Each row is a cluster Figure 10. The Eigengap curve with k for the “pluto” case using textual and link combination How to determine the number of clusters is still an open problem. Many works on clustering assume the number of clusters is given [14][21]. While in image search result clustering, it is almost impossible to determine the number of clusters before clustering. In spectral clustering settings, we can use the difference of the consecutive eigenvlaues to determine the number of clusters while the performance of this method greatly depends on the graph (affinity matrix S in our case) structure. Combining the textual and link based representations, we can actually reveal the semantic structure of the web images. Combine two affinity matrix 9/8/2018

Final Presentation of Our System The first level is clustering using textual and link representation of images. We can get some semantic categories. The second level is for each cluster result of the first level. We use low level visual feature to cluster each semantic category. Although we use the term “clustering” in the second level, yet our real goal is not to acquire different semantic clusters but to re-organize the images to make visually similar images be grouped together to facilitate user’s browsing. Using textual and link information to get some semantic clusters Use low level visual feature to cluster (re-organize) each semantic cluster to facilitate user’s browsing 9/8/2018

Summary More improvement on web search can be made by mining webpage Layout structure Leverage visual cues for web information analysis & information extraction Demos: http://www.ews.uiuc.edu/~dengcai2 Papers VIPS demo & dll 9/8/2018

www.cs.uiuc.edu/~hanj Thank you !!! 9/8/2018