CURE data clustering algorithm
CURE (Clustering Using REpresentatives) is an efficient data clustering algorithm for large databases that is more robust to outliers and identifies clusters having non-spherical shapes and wide variances in size.
Drawbacks of traditional algorithms
With the partitional clustering algorithms, which for example use the sum of squared errors criterion
when there are large differences in sizes or geometries of different clusters, the square error method could split the large clusters to minimize the square error which is not always correct. Also, with hierarchic clustering algorithms these problems exist as none of the distance measures between clusters (dmin,dmean) tend to work with different shapes of clusters. Also the running time is high when n is very large. The problem with the BIRCH algorithm is that once the clusters are generated after step 3, it uses centroids of the clusters and assign each data point to the cluster with closest centroid. Using only the centroid to redistribute the data has problems when clusters do not have uniform sizes and shapes.
CURE clustering algorithm
To avoid the problems with non-uniform sized or shaped clusters, CURE employs a novel hierarchical clustering algorithm that adopts a middle ground between the centroid based and all point extremes. In CURE, a constant number c of well scattered points of a cluster are chosen and they are shrunk towards the centroid of the cluster by a fraction α. The scattered points after shrinking are used as representatives of the cluster. The clusters with the closest pair of representatives are the clusters that are merged at each step of CURE's hierarchical clustering algorithm. This enables CURE to correctly identify the clusters and makes it less sensitive to outliers.
The algorithm is given below.
The running time of the algorithm is O(n2 log n) and space complexity is O(n).
The algorithm cannot be directly applied to large databases. So for this purpose we do the following enhancements
- Random sampling : To handle large data sets, we do random sampling and draw a sample data set. Generally the random sample fits in main memory. Also because of the random sampling there is a trade off between accuracy and efficiency.
- Partitioning for speed up : The basic idea is to partition the sample space into p partitions. Then in the first pass partially cluster each partition until the final number of clusters reduces to np/q for some constant q ≥ 1. Then run a second clustering pass on n/q partial clusters for all the partitions. For the second pass we only store the representative points since the merge procedure only requires representative points of previous clusters before computing the new representative points for the merged cluster. The advantage of partitioning the input is that we can reduce the execution times.
- Labeling data on disk : Since we only have representative points for k clusters, the remaining data points should also be assigned to the clusters. For this a fraction of randomly selected representative points for each of the k clusters is chosen and data point is assigned to the cluster containing the representative point closest to it.
CURE(no. of points,k)
Input : A set of points S
Output : k clusters
- For every cluster u (each input point), in u.mean and u.rep store the mean of the points in the cluster and a set of c representative points of the cluster (initially c = 1 since each cluster has one data point). Also u.closest stores the cluster closest to u.
- All the input points are inserted into a k-d tree T
- Treat each input point as separate cluster, compute u.closest for each u and then insert each cluster into the heap Q. (clusters are arranged in increasing order of distances between u and u.closest).
- While size(Q) > k
- Remove the top elemnt of Q(say u) and merge it with its closest cluster u.closest(say v) and compute
- the new representative points for the merged cluster w. Also remove u and v from T and Q.
- Also for all the clusters x in Q, update x.closest and relocate x
- insert w into Q
- Guha, Sudipto; Rastogi, Rajeev; Shim, Kyuseok (2001). "CURE: An Efficient Clustering Algorithm for Large Databases". Information Systems 26 (1): 35–58. doi:10.1016/S0306-4379(01)00008-4. http://www.cs.sfu.ca/CC/459/han/papers/guha98.pdf.
- Felici, Giovanni; Vercellis, Carlo (2008). Mathematical methods for knowledge discovery and data mining. 9781599045283. ISBN 9781599045283.
- Kogan, Jacob; Nicholas, Charles K.; Teboulle, M. (2006). Grouping multidimensional data: recent advances in clustering. Springer. ISBN 9783540283485.
- Theodoridis, Sergios; Koutroumbas, Konstantinos (2006). Pattern recognition. Academic Press. pp. 572–574. ISBN 9780123695314. http://books.google.co.uk/books?id=gAGRCmp8Sp8C&pg=PA572.
Wikimedia Foundation. 2010.
Look at other dictionaries:
Data stream clustering — In computer science, data stream clustering is defined as the clustering of data that arrive continuously such as telephone records, multimedia data, financial transactions etc. Data stream clustering is usually studied under the data stream… … Wikipedia
Data mining in agriculture — Contents 1 Introduction 2 Applications 2.1 Prediction of problematic wine fermentations 2.2 Detection of diseases from sounds issued by animals … Wikipedia
List of distributed computing projects — A list of distributed computing projects. Berkeley Open Infrastructure for Network Computing (BOINC) The Berkeley Open Infrastructure for Network Computing (BOINC) platform is currently the most popular volunteer based distributed computing… … Wikipedia