Hierarchical Clustering

Similar documents
Lecture Notes for Chapter 7. Introduction to Data Mining, 2 nd Edition. by Tan, Steinbach, Karpatne, Kumar

Data Mining Concepts & Techniques

Clustering Part 3. Hierarchical Clustering

CSE 347/447: DATA MINING

Hierarchical Clustering

Hierarchical clustering

CS7267 MACHINE LEARNING

BBS654 Data Mining. Pinar Duygulu. Slides are adapted from Nazli Ikizler

DATA MINING LECTURE 7. Hierarchical Clustering, DBSCAN The EM Algorithm

Clustering Lecture 3: Hierarchical Methods

CSE 5243 INTRO. TO DATA MINING

CSE 5243 INTRO. TO DATA MINING

5/15/16. Computational Methods for Data Analysis. Massimo Poesio UNSUPERVISED LEARNING. Clustering. Unsupervised learning introduction

Data Mining Cluster Analysis: Basic Concepts and Algorithms. Slides From Lecture Notes for Chapter 8. Introduction to Data Mining

Cluster analysis. Agnieszka Nowak - Brzezinska

Notes. Reminder: HW2 Due Today by 11:59PM. Review session on Thursday. Midterm next Tuesday (10/09/2018)

CSE 5243 INTRO. TO DATA MINING

Data Mining Cluster Analysis: Basic Concepts and Algorithms. Lecture Notes for Chapter 8. Introduction to Data Mining

Unsupervised Learning. Supervised learning vs. unsupervised learning. What is Cluster Analysis? Applications of Cluster Analysis

MultiDimensional Signal Processing Master Degree in Ingegneria delle Telecomunicazioni A.A

DATA MINING - 1DL105, 1Dl111. An introductory class in data mining

Lecture Notes for Chapter 8. Introduction to Data Mining

Cluster Analysis. Ying Shen, SSE, Tongji University

Clustering CS 550: Machine Learning

Part I. Hierarchical clustering. Hierarchical Clustering. Hierarchical clustering. Produces a set of nested clusters organized as a

Knowledge Discovery in Databases

Data Mining Cluster Analysis: Basic Concepts and Algorithms. Lecture Notes for Chapter 8. Introduction to Data Mining

Data Mining Cluster Analysis: Basic Concepts and Algorithms. Lecture Notes for Chapter 8. Introduction to Data Mining

COMP20008 Elements of Data Processing. Outlier Detection and Clustering

What is Cluster Analysis?

Data Mining Cluster Analysis: Basic Concepts and Algorithms. Lecture Notes for Chapter 8. Introduction to Data Mining

University of Florida CISE department Gator Engineering. Clustering Part 2

Clustering fundamentals

Machine Learning 15/04/2015. Supervised learning vs. unsupervised learning. What is Cluster Analysis? Applications of Cluster Analysis

Online Social Networks and Media. Community detection

Hierarchical Clustering

4. Ad-hoc I: Hierarchical clustering

Data Mining Cluster Analysis: Basic Concepts and Algorithms. Lecture Notes for Chapter 8. Introduction to Data Mining

Tan,Steinbach, Kumar Introduction to Data Mining 4/18/ Tan,Steinbach, Kumar Introduction to Data Mining 4/18/

Hierarchical Clustering Lecture 9

Unsupervised Learning

HW4 VINH NGUYEN. Q1 (6 points). Chapter 8 Exercise 20

Notes. Reminder: HW2 Due Today by 11:59PM. Review session on Thursday. Midterm next Tuesday (10/10/2017)

Clustering. CE-717: Machine Learning Sharif University of Technology Spring Soleymani

Chapter VIII.3: Hierarchical Clustering

Working with Unlabeled Data Clustering Analysis. Hsiao-Lung Chan Dept Electrical Engineering Chang Gung University, Taiwan

Hierarchical and Ensemble Clustering

Lesson 3. Prof. Enza Messina

CS570: Introduction to Data Mining

Data Mining. Cluster Analysis: Basic Concepts and Algorithms

Clustering. Informal goal. General types of clustering. Applications: Clustering in information search and analysis. Example applications in search

INF4820, Algorithms for AI and NLP: Hierarchical Clustering

Hierarchical clustering

Hierarchy. No or very little supervision Some heuristic quality guidances on the quality of the hierarchy. Jian Pei: CMPT 459/741 Clustering (2) 1

Types of general clustering methods. Clustering Algorithms for general similarity measures. Similarity between clusters

CHAPTER 4: CLUSTER ANALYSIS

Cluster Analysis: Agglomerate Hierarchical Clustering

Clustering Algorithms for general similarity measures

Cluster Analysis. Angela Montanari and Laura Anderlucci

Gene Clustering & Classification

University of Florida CISE department Gator Engineering. Clustering Part 4

SYDE Winter 2011 Introduction to Pattern Recognition. Clustering

Distances, Clustering! Rafael Irizarry!

Cluster Analysis for Microarray Data

INF4820. Clustering. Erik Velldal. Nov. 17, University of Oslo. Erik Velldal INF / 22

Clustering Part 4 DBSCAN

Unsupervised Learning and Clustering

Data Mining. Dr. Raed Ibraheem Hamed. University of Human Development, College of Science and Technology Department of Computer Science

Hierarchical clustering

Data Clustering Hierarchical Clustering, Density based clustering Grid based clustering

Clustering: Overview and K-means algorithm

Based on Raymond J. Mooney s slides

Slides by Eamonn Keogh

Machine Learning (BSMC-GA 4439) Wenke Liu

Cluster Analysis. Mu-Chun Su. Department of Computer Science and Information Engineering National Central University 2003/3/11 1

Clustering (COSC 416) Nazli Goharian. Document Clustering.

TELCOM2125: Network Science and Analysis

Hierarchical Clustering

Unsupervised Learning : Clustering

STATS306B STATS306B. Clustering. Jonathan Taylor Department of Statistics Stanford University. June 3, 2010

Today s lecture. Clustering and unsupervised learning. Hierarchical clustering. K-means, K-medoids, VQ

CS434a/541a: Pattern Recognition Prof. Olga Veksler. Lecture 16

Statistics 202: Data Mining. c Jonathan Taylor. Clustering Based in part on slides from textbook, slides of Susan Holmes.

Data Mining Cluster Analysis: Basic Concepts and Algorithms. Lecture Notes for Chapter 7. Introduction to Data Mining, 2 nd Edition

Clustering part II 1

Clustering Tips and Tricks in 45 minutes (maybe more :)

Big Data Analytics! Special Topics for Computer Science CSE CSE Feb 9

Machine Learning: Symbol-based

Clustering algorithms

Clustering Part 2. A Partitional Clustering

CSE494 Information Retrieval Project C Report

Clustering (COSC 488) Nazli Goharian. Document Clustering.

Multivariate Analysis

and Algorithms Dr. Hui Xiong Rutgers University Introduction to Data Mining 8/30/ Introduction to Data Mining 08/06/2006 1

Machine learning - HT Clustering

Network Traffic Measurements and Analysis

PAM algorithm. Types of Data in Cluster Analysis. A Categorization of Major Clustering Methods. Partitioning i Methods. Hierarchical Methods

Lecture 7: Segmentation. Thursday, Sept 20

Road map. Basic concepts

Olmo S. Zavala Romero. Clustering Hierarchical Distance Group Dist. K-means. Center of Atmospheric Sciences, UNAM.

Transcription:

Hierarchical Clustering Produces a set of nested clusters organized as a hierarchical tree Can be visualized as a dendrogram A tree like diagram that records the sequences of merges or splits 0 0 0 00 0 /8/00 8

Strengths of Hierarchical Clustering Do not have to assume any particular number of clusters Any desired number of clusters can be obtained by cutting the dendogram at the proper level They may correspond to meaningful taxonomies Example in biological sciences (eg, animal kingdom, phylogeny reconstruction, ) /8/00 9

Hierarchical Clustering Two main types of hierarchical clustering Agglomerative: Start with the points as individual clusters At each step, merge the closest pair of clusters until only one cluster (or k clusters) left Divisive: Start with one, all-inclusive cluster At each step, split a cluster until each cluster contains a point (or there are k clusters) Traditional hierarchical algorithms use a similarity or distance matrix Merge or split one cluster at a time /8/00 0

Agglomerative Clustering Algorithm More popular hierarchical clustering technique Basic algorithm is straightforward Compute the proximity matrix Let each data point be a cluster Repeat Merge the two closest clusters Update the proximity matrix Until only a single cluster remains Key operation is the computation of the proximity of two clusters Different approaches to defining the distance between clusters distinguish the different algorithms /8/00

Starting Situation Start with clusters of individual points and a proximity matrix p p p p p p p p p p Proximity Matrix /8/00

Intermediate Situation After some merging steps, we have some clusters C C C C C C C C C C C C Proximity Matrix C C C /8/00

Intermediate Situation We want to merge the two closest clusters (C and C) and update the proximity matrix C C C C C C C C C C C C Proximity Matrix C C C /8/00

After Merging The question is How do we update the proximity matrix? C C C U C C C C U C C C????? C? C? Proximity Matrix C C U C /8/00

How to Define Inter-Cluster Similarity p Similarity? p p p p p p p p p MIN MAX Group Average Proximity Matrix Distance Between Centroids Other methods driven by an objective function Ward s Method uses squared error /8/00

How to Define Inter-Cluster Similarity p p p p p p p p p p MIN MAX Group Average Proximity Matrix Distance Between Centroids Other methods driven by an objective function Ward s Method uses squared error /8/00 7

How to Define Inter-Cluster Similarity p p p p p p p p p p MIN MAX Group Average Proximity Matrix Distance Between Centroids Other methods driven by an objective function Ward s Method uses squared error /8/00 8

How to Define Inter-Cluster Similarity p p p p p p p p p p MIN MAX Group Average Proximity Matrix Distance Between Centroids Other methods driven by an objective function Ward s Method uses squared error /8/00 9

How to Define Inter-Cluster Similarity p p p p p p p p p p MIN MAX Group Average Proximity Matrix Distance Between Centroids Other methods driven by an objective function Ward s Method uses squared error /8/00 0

Cluster Similarity: MIN or Single Link Similarity of two clusters is based on the two most similar (closest) points in the different clusters Determined by one pair of points, ie, by one link in the proximity graph I I I I I I,00 0,90 0,0 0, 0,0 I 0,90,00 0,70 0,0 0,0 I 0,0 0,70,00 0,0 0,0 I 0, 0,0 0,0,00 0,80 I 0,0 0,0 0,0 0,80,00 /8/00

Hierarchical Clustering: MIN 0 0 0 00 0 Nested Clusters Dendrogram /8/00

Strength of MIN Original Points Two Clusters Can handle non-elliptical shapes /8/00

Limitations of MIN Original Points Two Clusters Sensitive to noise and outliers Particular case: chain effect /8/00

Cluster Similarity: MAX or Complete Linkage Similarity of two clusters is based on the two least similar (most distant) points in the different clusters Determined by all pairs of points in the two clusters I I I I I I,00 0,90 0,0 0, 0,0 I 0,90,00 0,70 0,0 0,0 I 0,0 0,70,00 0,0 0,0 I 0, 0,0 0,0,00 0,80 I 0,0 0,0 0,0 0,80,00 /8/00

Hierarchical Clustering: MAX 0 0 0 0 0 0 00 0 Nested Clusters 0 Dendrogram /8/00

Strength of MAX Original Points Two Clusters Less susceptible to noise and outliers /8/00 7

Limitations of MAX Original Points Two Clusters Tends to break large clusters Biased towards globular clusters /8/00 8

Cluster Similarity: Group Average Proximity of two clusters is the average of pairwise proximity between points in the two clusters Need to use average connectivity for scalability since total proximity favors large clusters I I I I I I,00 0,90 0,0 0, 0,0 I 0,90,00 0,70 0,0 0,0 I 0,0 0,70,00 0,0 0,0 I 0, 0,0 0,0,00 0,80 I 0,0 0,0 0,0 0,80,00 /8/00 9

Hierarchical Clustering: Group Average Nested Clusters Dendrogram /8/00 70

Hierarchical Clustering: Group Average Compromise between Single and Complete Link Strengths Less susceptible to noise and outliers Limitations Biased towards globular clusters /8/00 7

Cluster Similarity: Ward s Method Similarity of two clusters is based on the increase in squared error when two clusters are merged Similar to group average if distance between points is distance squared Less susceptible to noise and outliers Biased towards globular clusters Hierarchical analogue of K-means Can be used to initialize K-means /8/00 7

Hierarchical Clustering: Comparison MIN MAX Ward s Method Group Average /8/00 7

Hierarchical Clustering: Time and Space requirements O(N) space since it uses the proximity matrix N is the number of points O(N) time in many cases There are N steps and at each step the proximity matrix (size: O(N)) must be updated and searched Complexity can be reduced to O(N log(n) ) time for some approaches /8/00 7

Hierarchical Clustering: Problems and Limitations Once a decision is made to combine two clusters, it cannot be undone No objective function is directly minimized Different schemes have problems with one or more of the following: Sensitivity to noise and outliers Difficulty handling different sized clusters and convex shapes Breaking large clusters /8/00 7

Single-link HAC vs Graphs Cut edges with D>0 D =0 D=0 0 0 Clusters = connected components 0 00 0 /8/00 7

Single-link HAC vs Graphs Cut edges with D>0 0 0 0 00 0 Cut edges with D>08 0 0 0 0 00 /8/00 77

Complete-link HAC vs Graphs Clusters ~ cliques constraint: earlier cliques have precedence Cut edges with D>0 0 0 0 0 0 0 0 00 0 Cut edges with D>0 0 0 0 0 0 0 0 00 0 /8/00 78

MST: Divisive Hierarchical Clustering Build MST (Minimum Spanning Tree) Start with a tree that consists of any point In successive steps, look for the closest pair of points (p, q) such that one point (p) is in the current tree but the other (q) is not Add q to the tree and put an edge between p and q /8/00 79

MST: Divisive Hierarchical Clustering X /8/00 80