Clustering. Clustering. Clustering Vs. Classification. What is Cluster Analysis? General Applications of Clustering

Similar documents
Chapter 7. Cluster Analysis

Data Mining for Knowledge Management. Clustering

Data Mining 資 料 探 勘. 分 群 分 析 (Cluster Analysis)

Cluster Analysis. Isabel M. Rodrigues. Lisboa, Instituto Superior Técnico

Unsupervised learning: Clustering

Cluster Analysis: Basic Concepts and Methods

Clustering. Danilo Croce Web Mining & Retrieval a.a. 2015/201 16/03/2016

Clustering. Adrian Groza. Department of Computer Science Technical University of Cluj-Napoca

Data Mining Project Report. Document Clustering. Meryem Uzun-Per

Distances, Clustering, and Classification. Heatmaps

Clustering Artificial Intelligence Henry Lin. Organizing data into clusters such that there is

DATA MINING CLUSTER ANALYSIS: BASIC CONCEPTS

Chapter ML:XI (continued)

Social Media Mining. Data Mining Essentials

ARTIFICIAL INTELLIGENCE (CSCU9YE) LECTURE 6: MACHINE LEARNING 2: UNSUPERVISED LEARNING (CLUSTERING)

Data Mining 5. Cluster Analysis

UNSUPERVISED MACHINE LEARNING TECHNIQUES IN GENOMICS

Cluster Analysis: Basic Concepts and Algorithms

. Learn the number of classes and the structure of each class using similarity between unlabeled training patterns

There are a number of different methods that can be used to carry out a cluster analysis; these methods can be classified as follows:

USING THE AGGLOMERATIVE METHOD OF HIERARCHICAL CLUSTERING AS A DATA MINING TOOL IN CAPITAL MARKET 1. Vera Marinova Boncheva

K-Means Cluster Analysis. Tan,Steinbach, Kumar Introduction to Data Mining 4/18/2004 1

Cluster Analysis. Alison Merikangas Data Analysis Seminar 18 November 2009

Data Mining Clustering (2) Sheets are based on the those provided by Tan, Steinbach, and Kumar. Introduction to Data Mining

Neural Networks Lesson 5 - Cluster Analysis

Clustering. Data Mining. Abraham Otero. Data Mining. Agenda

A comparison of various clustering methods and algorithms in data mining

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

How To Cluster

Machine Learning using MapReduce

Comparison and Analysis of Various Clustering Methods in Data mining On Education data set Using the weak tool

Clustering: Techniques & Applications. Nguyen Sinh Hoa, Nguyen Hung Son. 15 lutego 2006 Clustering 1

STATISTICA. Clustering Techniques. Case Study: Defining Clusters of Shopping Center Patrons. and

Cluster analysis Cosmin Lazar. COMO Lab VUB

Data Mining K-Clustering Problem

PERFORMANCE ANALYSIS OF CLUSTERING ALGORITHMS IN DATA MINING IN WEKA

Cluster Analysis: Basic Concepts and Algorithms

Cluster Analysis: Advanced Concepts

Using Data Mining for Mobile Communication Clustering and Characterization

A Two-Step Method for Clustering Mixed Categroical and Numeric Data

Example: Document Clustering. Clustering: Definition. Notion of a Cluster can be Ambiguous. Types of Clusterings. Hierarchical Clustering

Data Mining. Cluster Analysis: Advanced Concepts and Algorithms

How To Solve The Cluster Algorithm

Robust Outlier Detection Technique in Data Mining: A Univariate Approach

Standardization and Its Effects on K-Means Clustering Algorithm

A Survey of Clustering Techniques

An Introduction to Cluster Analysis for Data Mining

Data Clustering Techniques Qualifying Oral Examination Paper

CLUSTERING LARGE DATA SETS WITH MIXED NUMERIC AND CATEGORICAL VALUES *

Environmental Remote Sensing GEOG 2021

Clustering UE 141 Spring 2013

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

Medical Information Management & Mining. You Chen Jan,15, 2013 You.chen@vanderbilt.edu

Data Mining and Knowledge Discovery in Databases (KDD) State of the Art. Prof. Dr. T. Nouri Computer Science Department FHNW Switzerland

Clustering & Visualization

Data Mining Cluster Analysis: Advanced Concepts and Algorithms. Lecture Notes for Chapter 9. Introduction to Data Mining

The SPSS TwoStep Cluster Component

An Analysis on Density Based Clustering of Multi Dimensional Spatial Data

Data Preprocessing. Week 2

Unsupervised Data Mining (Clustering)

A Study of Web Log Analysis Using Clustering Techniques

Clustering Techniques: A Brief Survey of Different Clustering Algorithms

Mining and Tracking Evolving Web User Trends from Large Web Server Logs

Statistical Databases and Registers with some datamining

CHAPTER 20. Cluster Analysis

Information Retrieval and Web Search Engines

The Science and Art of Market Segmentation Using PROC FASTCLUS Mark E. Thompson, Forefront Economics Inc, Beaverton, Oregon

Chapter 4 Data Mining A Short Introduction. 2006/7, Karl Aberer, EPFL-IC, Laboratoire de systèmes d'informations répartis Data Mining - 1

Steven M. Ho!and. Department of Geology, University of Georgia, Athens, GA

0.1 What is Cluster Analysis?

Summary Data Mining & Process Mining (1BM46) Content. Made by S.P.T. Ariesen

Clustering. Clustering. What is Clustering? What is Clustering? What is Clustering? Types of Data in Cluster Analysis

ANALYTICAL TECHNIQUES FOR DATA VISUALIZATION

Going Big in Data Dimensionality:

Clustering methods for Big data analysis

Comparision of k-means and k-medoids Clustering Algorithms for Big Data Using MapReduce Techniques

Data Mining Cluster Analysis: Advanced Concepts and Algorithms. Lecture Notes for Chapter 9. Introduction to Data Mining

On Clustering Validation Techniques

Unsupervised Learning and Data Mining. Unsupervised Learning and Data Mining. Clustering. Supervised Learning. Supervised Learning

COMP3420: Advanced Databases and Data Mining. Classification and prediction: Introduction and Decision Tree Induction

Hierarchical Cluster Analysis Some Basics and Algorithms

Cluster analysis with SPSS: K-Means Cluster Analysis

OUTLIER ANALYSIS. Data Mining 1

CUP CLUSTERING USING PRIORITY: AN APPROXIMATE ALGORITHM FOR CLUSTERING BIG DATA

How To Cluster On A Large Data Set

Dynamical Clustering of Personalized Web Search Results

Cluster Analysis Overview. Data Mining Techniques: Cluster Analysis. What is Cluster Analysis? What is Cluster Analysis?

BIRCH: An Efficient Data Clustering Method For Very Large Databases

How To Perform An Ensemble Analysis

CS Introduction to Data Mining Instructor: Abdullah Mueen

II. SPATIAL DATA MINING DEFINITION

Building Data Cubes and Mining Them. Jelena Jovanovic

Distances between Clustering, Hierarchical Clustering

An Overview of Knowledge Discovery Database and Data mining Techniques

Local outlier detection in data forensics: data mining approach to flag unusual schools

1. Introduction MINING AND TRACKING EVOLVING WEB USER TRENDS FROM LARGE WEB SERVER LOGS. Basheer Hawwash and Olfa Nasraoui

Evolutionary Detection of Rules for Text Categorization. Application to Spam Filtering

STOCK MARKET TRENDS USING CLUSTER ANALYSIS AND ARIMA MODEL

Segmentation of stock trading customers according to potential value

Transcription:

Clustering Clustering Recall Supervised Vs. Unsupervised Learning Unsupervised Learning What have we studied? Clustering is another form of unsupervised Learning Clustering Vs. Classification Similarity Aim to partition data (high-dimensional) into groups/classes/clusters Data items within a group are as similar to each other as possible, but are dissimilar to data items in other groups Differences No predefined classes on the basis of which the grouping is done What is Cluster Analysis? Cluster: a collection of data objects Similar to one another within the same cluster Dissimilar to the objects in other clusters Maximise intra-cluster similarity and minimise inter-cluster similarity Cluster analysis Grouping a set of data objects into clusters Clustering is unsupervised classification: no predefined classes Typical applications As a stand-alone tool to get insight into data distribution As a preprocessing step for other algorithms General Applications of Clustering Examples of Clustering Applications Pattern Recognition Spatial Data Analysis create thematic maps in GIS by clustering feature spaces detect spatial clusters and explain them in spatial data mining Image Processing Economic Science (especially market research) WWW Document classification Cluster Weblog data to discover groups of similar access patterns Marketing: Help marketers discover distinct groups in their customer bases, and then use this knowledge to develop targeted marketing programs Land use: Identification of areas of similar land use in an earth observation database Insurance: Identifying groups of motor insurance policy holders with a high average claim cost City-planning: Identifying groups of houses according to their house type, value, and geographical location Earth-quake studies: Observed earth quake epicenters should be clustered along continent faults

What Is Good Clustering? A good clustering method will produce high quality clusters with high intra-class similarity (within a cluster) low inter-class similarity (between clusters) The quality of a clustering result depends on both the similarity measure used by the method and its implementation. The quality of a clustering method is also measured by its ability to discover some or all of the hidden patterns. Requirements of Clustering in Data Mining Scalability Ability to deal with different types of attributes Discovery of clusters with arbitrary shape Minimal requirements for domain knowledge to determine input parameters Able to deal with noise and outliers Insensitive to order of input records High dimensionality Incorporation of user-specified constraints Interpretability and usability Clustering How to define a cluster How to find if objects are similar or not Need to define concept of distance Not a new field a branch of statistics Several traditional distance-based algorithms are available Dealing with new issues of electronic data New techniques being developed Distance Distances are normally used to measure the similarity or dissimilarity between two data objects Properties Always positive Distance from x to x = zero Distance from x to y = Distance from y to x Distance from x to y <= distance from x to z + distance from z to y Some popular ones include: Minkowski distance: q q q d ( i, j) = q ( x x + x x +... + x x ) p p i j i where i = (x i, x i,, x ip ) and j = (x j, x j,, x jp ) are two p-dimensional data objects, and q is a positive integer If q =, d is Manhattan distance d( i, j) = x x + x x +... + x x i j i j ip jp j i j If q =, d is Euclidean distance: d( i, j) = ( x x + x x +... + x x ) i j i j ip jp Properties d(i,j) d(i,i) = d(i,j) = d(j,i) d(i,j) d(i,k) + d(k,j) Also one can use weighted distance, parametric Pearson product moment correlation, or other dissimilarity measures.

Categorical Data Sensible distance measure between male and female, between MIT and BCOMP? Convert all categorical data into numeric data Does this make any sense? Treat distance between categorical values as a function which has values only and Can we compare two objects that have all categorical attributes? Essentially, how many attribute values are the same Scales of different attribute values GPA varies -, Age varies - Problems Total Distance (Sum of the distance between individual attribute values) will be dominated by the age attribute and will be affected very little by the variations in GPA Need to normalise E.g. All data varies from to What if you want to weight some attributes higher than others? Distance measure might have to incorporate weights Clustering Not always easy to determine how many clusters to expect from a data set Maybe based on some domain knowledge But that does not mean that a different number of clusters doesn t give you better results What is the optimal number? Open issue Many clustering techniques require input of number of clusters to be generated or use a default number Clustering Methods Many different methods Selection must be based on requirements Consider examples Partition data to minimise the maximum distance between any pair of points in the cluster Partition data to minimise the maximum distance between each point and the point closest to it. Types of Clustering Methods Partitioning Methods Given n objects, make k (<= n) partitions or clusters of data and use iterative relocation. It is assumed each cluster has at least one object and each object belongs to only one cluster. Hierarchical Methods Agglomerative - Start with each object in a cluster and try to merge similar clusters. Divisive -Start with one cluster and then split into smaller clusters

Types of Clustering Methods Density-based Methods For each data point in a cluster, at least a minimum number of points must exist within a radius. Grid-based Methods Object space is divided into a grid Model-based Methods A model is assumed, perhaps based on a probability distribution. Partitioning Algorithms: Basic Concept Partitioning method: Construct a partition of a database D of n objects into a set of k clusters Given a k, find a partition of k clusters that optimizes the chosen partitioning criterion Global optimal: exhaustively enumerate all partitions Heuristic methods: k-means and k-medoids algorithms k-means (MacQueen ): Each cluster is represented by the center of the cluster k-medoids or PAM (Partition around medoids) (Kaufman & Rousseeuw ): Each cluster is represented by one of the objects in the cluster The K-Means Clustering Method Given k, the k-means algorithm is implemented in steps: Choose number of clusters (k) Compute k random seed points as the centroids of the clusters of the current partition. The centroid is the center (mean point) of the cluster. Assign each object to a cluster with the nearest seed point. The distance is computed using a distance metric. Once all objects have been assigned, re-compute the mean value for each cluster. This is used as the cluster centre for the next iteration. The K-Means Clustering Method Using the new mean value of each cluster, objects are re-assigned to the nearest cluster. In most situations, some objects will move to new clusters, unless the initial choice of the seeds was very good. The process continues until no change takes place in the cluster memberships. Different starting points will obviously lead to different clusters. The K-Means Clustering Method K-Means An example Example Student A B C D E F G H I J Age Mark Mark Mark

K-Means An example K-Means An example Student A B C Age Mar k Mar k Mar k First records be seeds Compute distances the attributes And use the sum of absolute differences Students D E F G H I J Age Mark Mark Mark Dist. // // // // // // // Comments on the K-Means Method Comments on the K-Means Method Strengths Relatively efficient: O(tkn), where n is # objects, k is # clusters, and t is # iterations. Normally, k, t << n. Often terminates at a local optimum. The global optimum may be found using techniques such as: deterministic annealing and genetic algorithms Weakness Applicable only when mean is defined, then what about categorical data? Need to specify k, the number of clusters, in advance Unable to handle noisy data and outliers Not suitable to discover clusters with non-convex shapes Does not deal well with overlapping clusters Outliers can pull cluster centres Crisp membership in clusters Variations of the K-Means Method A few variants of the k-means which differ in Selection of the initial k means Dissimilarity calculations Strategies to calculate cluster means Handling categorical data: k-modes (Huang ) Replacing means of clusters with modes Using new dissimilarity measures to deal with categorical objects Using a frequency-based method to update modes of clusters A mixture of categorical and numerical data: k- Evaluating Clusters Have members which are very close in a cluster and clusters to be widely apart Variance measures are often used variance within a cluster should be low and between clusters should be high Generally a major issue in clustering prototype method

In summary Strengths Useful for undirected knowledge discovery Relatively simple Weaknesses Difficult to choose distance measures and weightings Sensitive to initial parameter choices Can be difficult to interpret results