Unsupervised Learning Reading: Chapter 8 from Introduction to Data Mining by Tan, Steinbach, and Kumar, pp. 489-518, 532-544, 548-552 Chapter 8.

Slides:



Advertisements
Similar presentations
Chapter 5: Introduction to Information Retrieval
Advertisements

Clustering Basic Concepts and Algorithms
PARTITIONAL CLUSTERING
© Tan,Steinbach, Kumar Introduction to Data Mining 4/18/ What is Cluster Analysis? l Finding groups of objects such that the objects in a group will.
1 Machine Learning: Lecture 10 Unsupervised Learning (Based on Chapter 9 of Nilsson, N., Introduction to Machine Learning, 1996)
Unsupervised learning
Chapter 4: Unsupervised Learning. CS583, Bing Liu, UIC 2 Road map Basic concepts K-means algorithm Representation of clusters Hierarchical clustering.
Clustering… in General In vector space, clusters are vectors found within  of a cluster vector, with different techniques for determining the cluster.
© University of Minnesota Data Mining for the Discovery of Ocean Climate Indices 1 CSci 8980: Data Mining (Fall 2002) Vipin Kumar Army High Performance.
Prénom Nom Document Analysis: Data Analysis and Clustering Prof. Rolf Ingold, University of Fribourg Master course, spring semester 2008.
Slide 1 EE3J2 Data Mining Lecture 16 Unsupervised Learning Ali Al-Shahib.
Basic Data Mining Techniques
Clustering. 2 Outline  Introduction  K-means clustering  Hierarchical clustering: COBWEB.
Semi-Supervised Clustering Jieping Ye Department of Computer Science and Engineering Arizona State University
What is Cluster Analysis?
What is Cluster Analysis?
K-means Clustering. What is clustering? Why would we want to cluster? How would you determine clusters? How can you do this efficiently?
Clustering Ram Akella Lecture 6 February 23, & 280I University of California Berkeley Silicon Valley Center/SC.
Evaluating Performance for Data Mining Techniques
CSC 4510 – Machine Learning Dr. Mary-Angela Papalaskari Department of Computing Sciences Villanova University Course website:
Unsupervised Learning. CS583, Bing Liu, UIC 2 Supervised learning vs. unsupervised learning Supervised learning: discover patterns in the data that relate.
Math 5364 Notes Chapter 8: Cluster Analysis Jesse Crawford Department of Mathematics Tarleton State University.
DATA MINING CLUSTERING K-Means.
Unsupervised Learning Reading: Chapter 8 from Introduction to Data Mining by Tan, Steinbach, and Kumar, pp , , (
COMMON EVALUATION FINAL PROJECT Vira Oleksyuk ECE 8110: Introduction to machine Learning and Pattern Recognition.
Clustering Supervised vs. Unsupervised Learning Examples of clustering in Web IR Characteristics of clustering Clustering algorithms Cluster Labeling 1.
Jeff Howbert Introduction to Machine Learning Winter Clustering Basic Concepts and Algorithms 1.
Basic Machine Learning: Clustering CS 315 – Web Search and Data Mining 1.
Machine Learning Neural Networks (3). Understanding Supervised and Unsupervised Learning.
Clustering What is clustering? Also called “unsupervised learning”Also called “unsupervised learning”
Unsupervised Learning. Supervised learning vs. unsupervised learning.
Clustering I. 2 The Task Input: Collection of instances –No special class label attribute! Output: Clusters (Groups) of instances where members of a cluster.
CLUSTER ANALYSIS Introduction to Clustering Major Clustering Methods.
Intelligent Database Systems Lab N.Y.U.S.T. I. M. Externally growing self-organizing maps and its application to database visualization and exploration.
CLUSTERING AND SEGMENTATION MIS2502 Data Analytics Adapted from Tan, Steinbach, and Kumar (2004). Introduction to Data Mining.
Data Science and Big Data Analytics Chap 4: Advanced Analytical Theory and Methods: Clustering Charles Tappert Seidenberg School of CSIS, Pace University.
Clustering Clustering is a technique for finding similarity groups in data, called clusters. I.e., it groups data instances that are similar to (near)
Compiled By: Raj Gaurang Tiwari Assistant Professor SRMGPC, Lucknow Unsupervised Learning.
Chapter 13 (Prototype Methods and Nearest-Neighbors )
Text Clustering Hongning Wang
Basic Machine Learning: Clustering CS 315 – Web Search and Data Mining 1.
CLUSTERING AND SEGMENTATION MIS2502 Data Analytics Adapted from Tan, Steinbach, and Kumar (2004). Introduction to Data Mining.
Data Mining By Farzana Forhad CS 157B. Agenda Decision Tree and ID3 Rough Set Theory Clustering.
Cluster Analysis Dr. Bernard Chen Assistant Professor Department of Computer Science University of Central Arkansas.
Clustering Algorithms Sunida Ratanothayanon. What is Clustering?
Chapter 4: Unsupervised Learning Dr. Mehmet S. Aktaş Acknowledgement: Thanks to Dr. Bing Liu for teaching materials.
Clustering Approaches Ka-Lok Ng Department of Bioinformatics Asia University.
Introduction to Data Mining Clustering & Classification Reference: Tan et al: Introduction to data mining. Some slides are adopted from Tan et al.
Cluster Analysis What is Cluster Analysis? Types of Data in Cluster Analysis A Categorization of Major Clustering Methods Partitioning Methods.
DATA MINING: CLUSTER ANALYSIS Instructor: Dr. Chun Yu School of Statistics Jiangxi University of Finance and Economics Fall 2015.
Data Mining and Text Mining. The Standard Data Mining process.
COMP24111 Machine Learning K-means Clustering Ke Chen.
MIS2502: Data Analytics Clustering and Segmentation Jeremy Shafer
Unsupervised Learning Part 2. Topics How to determine the K in K-means? Hierarchical clustering Soft clustering with Gaussian mixture models Expectation-Maximization.
Clustering.
Unsupervised Learning Reading: Chapter 8 from Introduction to Data Mining by Tan, Steinbach, and Kumar, pp , , (
Unsupervised Learning Reading: Chapter 8 from Introduction to Data Mining by Tan, Steinbach, and Kumar, pp , , (
Unsupervised Learning: Clustering
Unsupervised Learning: Clustering
Semi-Supervised Clustering
Ke Chen Reading: [7.3, EA], [9.1, CMB]
Data Mining K-means Algorithm
Clustering (3) Center-based algorithms Fuzzy k-means
Clustering Basic Concepts and Algorithms 1
Critical Issues with Respect to Clustering
Ke Chen Reading: [7.3, EA], [9.1, CMB]
Topic 5: Cluster Analysis
Unsupervised Learning: Clustering
Presentation transcript:

Unsupervised Learning Reading: Chapter 8 from Introduction to Data Mining by Tan, Steinbach, and Kumar, pp , , Chapter 8

Supervised learning vs. unsupervised learning

Unsupervised Classification of Optdigits Attribute 1 Attribute 2 Attribute 3 64-dimensional space

Adapted from Andrew Moore, als

K-means clustering algorithm

Typically, use mean of points in cluster as centroid

K-means clustering algorithm Distance metric: Chosen by user. For numerical attributes, often use L 2 (Euclidean) distance.

Demo interactive/Kmeans/Kmeans.html

13 Stopping/convergence criteria 1.No change of centroids (or minimum change) 2.No (or minimum) decrease in the sum squared error (SSE), where C i is the jth cluster, m j is the centroid of cluster C j (the mean vector of all the data points in C j ), and d(x, m j ) is the distance between data point x and centroid m j.

Example: Image segmentation by K-means clustering by color From K=5, RGB space K=10, RGB space

K=5, RGB space K=10, RGB space

K=5, RGB space K=10, RGB space

A text document is represented as a feature vector of word frequencies Distance between two documents is the cosine of the angle between their corresponding feature vectors. Clustering text documents

Figure 4. Two-dimensional map of the PMRA cluster solution, representing nearly 29,000 clusters and over two million articles. Boyack KW, Newman D, Duhon RJ, Klavans R, et al. (2011) Clustering More than Two Million Biomedical Publications: Comparing the Accuracies of Nine Text-Based Similarity Approaches. PLoS ONE 6(3): e doi: /journal.pone

K-means clustering example Consider the following five two-dimensional data points, x 1 = (1,1), x 2 = (0,3), x 3 = (2,2), x 4 = (4,3), x 5 = (4,4) and the following two initial cluster centers, m 1 = (0,0), m 2 = (1,4) Simulate the K-means algorithm by hand on this data and these initial centers, using Euclidean distance. Give the SSE of the clustering.

Weaknesses of K-means Adapted from Bing Liu, UIC

Weaknesses of K-means The algorithm is only applicable if the mean is defined. – For categorical data, k-mode - the centroid is represented by most frequent values. Adapted from Bing Liu, UIC

Weaknesses of K-means The algorithm is only applicable if the mean is defined. – For categorical data, k-mode - the centroid is represented by most frequent values. The user needs to specify K. Adapted from Bing Liu, UIC

Weaknesses of K-means The algorithm is only applicable if the mean is defined. – For categorical data, k-mode - the centroid is represented by most frequent values. The user needs to specify K. The algorithm is sensitive to outliers – Outliers are data points that are very far away from other data points. – Outliers could be errors in the data recording or some special data points with very different values. Adapted from Bing Liu, UIC

Weaknesses of K-means The algorithm is only applicable if the mean is defined. – For categorical data, k-mode - the centroid is represented by most frequent values. The user needs to specify K. The algorithm is sensitive to outliers – Outliers are data points that are very far away from other data points. – Outliers could be errors in the data recording or some special data points with very different values. K-means is sensitive to initial random centroids Adapted from Bing Liu, UIC

CS583, Bing Liu, UIC Weaknesses of K-means: Problems with outliers Adapted from Bing Liu, UIC

Dealing with outliers One method is to remove some data points in the clustering process that are much further away from the centroids than other data points. – Expensive – Not always a good idea! Another method is to perform random sampling. Since in sampling we only choose a small subset of the data points, the chance of selecting an outlier is very small. – Assign the rest of the data points to the clusters by distance or similarity comparison, or classification Adapted from Bing Liu, UIC

CS583, Bing Liu, UIC Weaknesses of K-means (cont …) The algorithm is sensitive to initial seeds. + + Adapted from Bing Liu, UIC

CS583, Bing Liu, UIC If we use different seeds: good results + + Adapted from Bing Liu, UIC Weaknesses of K-means (cont …)

CS583, Bing Liu, UIC If we use different seeds: good results Often can improve K-means results by doing several random restarts. See assigned reading for methods to help choose good seeds + + Adapted from Bing Liu, UIC Weaknesses of K-means (cont …)

CS583, Bing Liu, UIC The K-means algorithm is not suitable for discovering clusters that are not hyper-ellipsoids (or hyper-spheres). + Adapted from Bing Liu, UIC Weaknesses of K-means (cont …)

Other Issues What if a cluster is empty? – Choose a replacement centroid At random, or From cluster that has highest SSE How to choose K ?

How to evaluate clusters produced by K-means? Unsupervised evaluation Supervised evaluation

Unsupervised Cluster Evaluation We don’t know the classes of the data instances

Supervised Cluster Evaluation We know the classes of the data instances

Entropy: The degree to which each cluster consists of objects of a single class. See assigned reading for other measures

Supervised Cluster Evaluation We know the classes of the data instances Entropy: The degree to which each cluster consists of objects of a single class. See assigned reading for other measures What is the entropy of our earlier clustering, given class assignments?

Hierarchical clustering

Discriminative vs. Generative Clustering Discriminative: – Cluster data points by similarities – Example: K-means and hierarchical clustering Generative – Generate models to describe different clusters, and use these models to classify points – Example: Clustering via finite Gaussian mixture models

Homework 5