SUBCLU: Difference between revisions

From testwiki
Jump to navigation Jump to search
imported>Graeme Bartlett
m exactely fix
Β 
(No difference)

Latest revision as of 23:15, 7 December 2022

Template:One source SUBCLU is an algorithm for clustering high-dimensional data by Karin Kailing, Hans-Peter Kriegel and Peer KrΓΆger.[1] It is a subspace clustering algorithm that builds on the density-based clustering algorithm DBSCAN. SUBCLU can find clusters in axis-parallel subspaces, and uses a bottom-up, greedy strategy to remain efficient.

Approach

SUBCLU uses a monotonicity criteria: if a cluster is found in a subspace S, then each subspace TS also contains a cluster. However, a cluster CDB in subspace S is not necessarily a cluster in TS, since clusters are required to be maximal, and more objects might be contained in the cluster in T that contains C. However, a density-connected set in a subspace S is also a density-connected set in TS.

This downward-closure property is utilized by SUBCLU in a way similar to the Apriori algorithm: first, all 1-dimensional subspaces are clustered. All clusters in a higher-dimensional subspace will be subsets of the clusters detected in this first clustering. SUBCLU hence recursively produces k+1-dimensional candidate subspaces by combining k-dimensional subspaces with clusters sharing k1 attributes. After pruning irrelevant candidates, DBSCAN is applied to the candidate subspace to find out if it still contains clusters. If it does, the candidate subspace is used for the next combination of subspaces. In order to improve the runtime of DBSCAN, only the points known to belong to clusters in one k-dimensional subspace (which is chosen to contain as little clusters as possible) are considered. Due to the downward-closure property, other point cannot be part of a k+1-dimensional cluster anyway.

Pseudocode

SUBCLU takes two parameters, ϵ and MinPts, which serve the same role as in DBSCAN. In a first step, DBSCAN is used to find 1D-clusters in each subspace spanned by a single attribute:

πš‚πš„π™±π™²π™»πš„(DB,eps,MinPts)

S1:=
C1:=
πšπš˜πš›πšŽπšŠπšŒπš‘aAttributes
C{a}=π™³π™±πš‚π™²π™°π™½(DB,{a},eps,MinPts)
πš’πš(C{a})
S1:=S1{a}
C1:=C1C{a}
πšŽπš—πšπš’πš
πšŽπš—πšπšπš˜πš›
// In a second step, k+1-dimensional clusters are built from k-dimensional ones:
k:=1
πš πš‘πš’πš•πšŽ(Ck)
π™²πšŠπš—πšπš‚k+1:=π™ΆπšŽπš—πšŽπš›πšŠπšπšŽπ™²πšŠπš—πšπš’πšπšŠπšπšŽπš‚πšžπš‹πšœπš™πšŠπšŒπšŽπšœ(Sk)
πšπš˜πš›πšŽπšŠπšŒπš‘candπ™²πšŠπš—πšπš‚k+1
πš‹πšŽπšœπšπš‚πšžπš‹πšœπš™πšŠπšŒπšŽ:=minsSkscandCiCs|Ci|
Ccand:=
πšπš˜πš›πšŽπšŠπšŒπš‘πšŒπš•πšžπšœπšπšŽπš›clCπš‹πšŽπšœπšπš‚πšžπš‹πšœπš™πšŠπšŒπšŽ
Ccand:=Ccandπ™³π™±πš‚π™²π™°π™½(cl,cand,eps,MinPts)
πš’πš(Ccand)
Sk+1:=Sk+1cand
Ck+1:=Ck+1Ccand
πšŽπš—πšπš’πš
πšŽπš—πšπšπš˜πš›
πšŽπš—πšπšπš˜πš›
k:=k+1
πšŽπš—πšπš πš‘πš’πš•πšŽ

πšŽπš—πš

The set Sk contains all the k-dimensional subspaces that are known to contain clusters. The set Ck contains the sets of clusters found in the subspaces. The bestSubspace is chosen to minimize the runs of DBSCAN (and the number of points that need to be considered in each run) for finding the clusters in the candidate subspaces.

Candidate subspaces are generated much alike the Apriori algorithm generates the frequent itemset candidates: Pairs of the k-dimensional subspaces are compared, and if they differ in one attribute only, they form a k+1-dimensional candidate. However, a number of irrelevant candidates are found as well; they contain a k-dimensional subspace that does not contain a cluster. Hence, these candidates are removed in a second step:

π™ΆπšŽπš—πšŽπš›πšŠπšπšŽπ™²πšŠπš—πšπš’πšπšŠπšπšŽπš‚πšžπš‹πšœπš™πšŠπšŒπšŽπšœ(Sk)

π™²πšŠπš—πšπš‚k+1:=
πšπš˜πš›πšŽπšŠπšŒπš‘s1Sk
πšπš˜πš›πšŽπšŠπšŒπš‘s2Sk
πš’πš(s1πšŠπš—πšs2πšπš’πšπšπšŽπš›πš’πš—πšŽπš‘πšŠπšŒπšπš•πš’πš˜πš—πšŽπšŠπšπšπš›πš’πš‹πšžπšπšŽ)
π™²πšŠπš—πšπš‚k+1:=π™²πšŠπš—πšπš‚k+1{s1s2}
πšŽπš—πšπš’πš
πšŽπš—πšπšπš˜πš›
πšŽπš—πšπšπš˜πš›
// Pruning of irrelevant candidate subspaces
πšπš˜πš›πšŽπšŠπšŒπš‘candπ™²πšŠπš—πšπš‚k+1
πšπš˜πš›πšŽπšŠπšŒπš‘k-elementscand
πš’πš(s∉Sk)
π™²πšŠπš—πšπš‚k+1=π™²πšŠπš—πšπš‚k+1{cand}
πšŽπš—πšπš’πš
πšŽπš—πšπšπš˜πš›
πšŽπš—πšπšπš˜πš›

πšŽπš—πš

Availability

An example implementation of SUBCLU is available in the ELKI framework.

References

  1. ↑ Karin Kailing, Hans-Peter Kriegel and Peer KrΓΆger. Density-Connected Subspace Clustering for High-Dimensional Data. In: Proc. SIAM Int. Conf. on Data Mining (SDM'04), pp. 246-257, 2004.