Hierarchical Clustering

Similar documents
Hierarchical Clustering

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

Data Mining Concepts & Techniques

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

Clustering Part 3. Hierarchical Clustering

CSE 347/447: DATA MINING

Hierarchical clustering

CS7267 MACHINE LEARNING

Clustering Lecture 3: Hierarchical Methods

CSE 5243 INTRO. TO DATA MINING

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

CSE 5243 INTRO. TO DATA MINING

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

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

Cluster analysis. Agnieszka Nowak - Brzezinska

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

Cluster Analysis. Ying Shen, SSE, Tongji University

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

Clustering CS 550: Machine Learning

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

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 - 1DL105, 1Dl111. An introductory class in data mining

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

Lecture Notes for Chapter 8. Introduction to Data Mining

Knowledge Discovery in Databases

University of Florida CISE department Gator Engineering. Clustering Part 2

4. Ad-hoc I: Hierarchical clustering

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

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

Hierarchical Clustering Lecture 9

What is Cluster Analysis?

Unsupervised Learning

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

Lesson 3. Prof. Enza Messina

Chapter VIII.3: Hierarchical Clustering

COMP20008 Elements of Data Processing. Outlier Detection and Clustering

Online Social Networks and Media. Community detection

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

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

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

Clustering fundamentals

CS570: Introduction to Data Mining

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

Hierarchical clustering

INF4820, Algorithms for AI and NLP: Hierarchical Clustering

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

Cluster Analysis. Summer School on Geocomputation. 27 June July 2011 Vysoké Pole

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

Slides by Eamonn Keogh

Clustering part II 1

Cluster Analysis. Angela Montanari and Laura Anderlucci

CHAPTER 4: CLUSTER ANALYSIS

Gene Clustering & Classification

Cluster Analysis. Prof. Thomas B. Fomby Department of Economics Southern Methodist University Dallas, TX April 2008 April 2010

SYDE Winter 2011 Introduction to Pattern Recognition. Clustering

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

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

Distances, Clustering! Rafael Irizarry!

Cluster Analysis: Agglomerate Hierarchical Clustering

Cluster Analysis for Microarray Data

Machine learning - HT Clustering

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

Unsupervised Learning and Clustering

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

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

Hierarchical Clustering

Lecture 7: Segmentation. Thursday, Sept 20

Multivariate Analysis

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

Data Mining and Analysis: Fundamental Concepts and Algorithms

Road map. Basic concepts

Hierarchical and Ensemble Clustering

Introduction to Data Mining

Clustering in Data Mining

Unsupervised Learning : Clustering

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

Finding Clusters 1 / 60

Clustering Part 2. A Partitional Clustering

Hierarchical clustering

Applications. Foreground / background segmentation Finding skin-colored regions. Finding the moving objects. Intelligent scissors

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

University of Florida CISE department Gator Engineering. Clustering Part 4

Clustering algorithms

SGN (4 cr) Chapter 11

Machine Learning (BSMC-GA 4439) Wenke Liu

CLUSTERING ALGORITHMS

CS 2750 Machine Learning. Lecture 19. Clustering. CS 2750 Machine Learning. Clustering. Groups together similar instances in the data sample

Segmentation (continued)

Clustering in Ratemaking: Applications in Territories Clustering

Clustering Part 4 DBSCAN

Data Mining. Cluster Analysis: Basic Concepts and Algorithms

Unsupervised Learning and Clustering

Machine Learning (BSMC-GA 4439) Wenke Liu

DS504/CS586: Big Data Analytics Big Data Clustering Prof. Yanhua Li

Clustering: Overview and K-means algorithm

Chapter 6 Continued: Partitioning Methods

Clustering Algorithms for general similarity measures

Transcription:

Hierarchical Clustering

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

Strengths of Hierarchical Clustering No assumptions on the number of clusters Any desired number of clusters can be obtained by cutting the dendogram at the proper level Hierarchical clusterings may correspond to meaningful taxonomies Example in biological sciences (e.g., phylogeny reconstruction, etc), web (e.g., product catalogs) etc

Hierarchical Clustering: Problem definition Given a set of points X = {x 1,x 2,,x n } find a sequence of nested partitions P 1,P 2,,P n of X, consisting of 1, 2,,n clusters respectively such that Σ i=1 n Cost(P i ) is minimized. Different definitions of Cost(P i ) lead to different hierarchical clustering algorithms Cost(P i ) can be formalized as the cost of any partition-based clustering

Hierarchical Clustering Algorithms 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

Complexity of hierarchical clustering Distance matrix is used for deciding which clusters to merge/split At least quadratic in the number of data points Not usable for large datasets

Agglomerative clustering algorithm Most popular hierarchical clustering technique Basic algorithm 1. Compute the distance matrix between the input data points 2. Let each data point be a cluster 3. Repeat 4. Merge the two closest clusters 5. Update the distance matrix 6. Until only a single cluster remains Key operation is the computation of the distance between two clusters Different definitions of the distance between clusters lead to different algorithms

Input/ Initial setting Start with clusters of individual points and a distance/proximity matrix p1 p2 p3 p4 p5... p1 p2 p3 p4 p5... Distance/Proximity Matrix

Intermediate State After some merging steps, we have some clusters C1 C2 C3 C4 C5 C3 C4 C1 C2 C3 C4 C1 C5 Distance/Proximity Matrix C2 C5

Intermediate State Merge the two closest clusters (C2 and C5) and update the distance matrix. C1 C1 C2 C3 C4 C5 C3 C4 C2 C3 C4 C1 C5 Distance/Proximity Matrix C2 C5

After Merging How do we update the distance matrix? C1 C2 U C5 C3 C4 C3 C1? C4 C2 U C5???? C3? C1 C4? C2 U C5

Distance between two clusters Each cluster is a set of points How do we define distance between two sets of points Lots of alternatives Not an easy task

Distance between two clusters Single-link distance between clusters C i and C j is the minimum distance between any object in C i and any object in C j The distance is defined by the two most similar objects

Single-link clustering: example Determined by one pair of points, i.e., by one link in the proximity graph. 1 2 3 4 5

Single-link clustering: example 3 5 1 5 2 2 3 1 6 4 4 Nested Clusters Dendrogram

Strengths of single-link clustering Original Points Two Clusters Can handle non-elliptical shapes

Limitations of single-link clustering Original Points Two Clusters Sensitive to noise and outliers It produces long, elongated clusters

Distance between two clusters Complete-link distance between clusters C i and C j is the maximum distance between any object in C i and any object in C j The distance is defined by the two most dissimilar objects

Complete-link clustering: example Distance between clusters is determined by the two most distant points in the different clusters 1 2 3 4 5

Complete-link clustering: example 5 4 1 2 5 2 3 4 3 1 6 Nested Clusters Dendrogram

Strengths of complete-link clustering Original Points Two Clusters More balanced clusters (with equal diameter) Less susceptible to noise

Limitations of complete-link clustering Original Points Two Clusters Tends to break large clusters All clusters tend to have the same diameter small clusters are merged with larger ones

Distance between two clusters Group average distance between clusters C i and C j is the average distance between any object in C i and any object in C j

Average-link clustering: example Proximity of two clusters is the average of pairwise proximity between points in the two clusters. 1 2 3 4 5

Average-link clustering: example 5 5 2 2 4 1 4 3 3 1 6 Nested Clusters Dendrogram

Average-link clustering: discussion Compromise between Single and Complete Link Strengths Less susceptible to noise and outliers Limitations Biased towards globular clusters

Distance between two clusters Centroid distance between clusters C i and C j is the distance between the centroid r i of C i and the centroid r j of C j

Distance between two clusters Ward s distance between clusters C i and C j is the difference between the total within cluster sum of squares for the two clusters separately, and the within cluster sum of squares resulting from merging the two clusters in cluster C ij D W (C i,c j )= X x2c i (x r i ) 2 + X x2c j (x r j ) 2 X x2c ij (x r ij ) 2 r i : centroid of C i r j : centroid of C j r ij : centroid of C ij

Ward s distance for clusters Similar to group average and centroid distance Less susceptible to noise and outliers Biased towards globular clusters Hierarchical analogue of k-means Can be used to initialize k-means

Hierarchical Clustering: Comparison Group Average Ward s Method 1 2 3 4 5 6 1 2 5 3 4 MIN MAX 1 2 3 4 5 6 1 2 5 3 4 1 2 3 4 5 6 1 2 5 3 4 1 2 3 4 5 6 1 2 3 4 5

Hierarchical Clustering: Time and Space requirements For a dataset X consisting of n points O(n 2 ) space; it requires storing the distance matrix O(n 3 ) time in most of the cases There are n steps and at each step the size n 2 distance matrix must be updated and searched Complexity can be reduced to O(n 2 log(n) ) time for some approaches by using appropriate data structures

Divisive hierarchical clustering Start with a single cluster composed of all data points Split this into components Continue recursively Computationally intensive, less widely used than agglomerative methods