| Literature DB >> 29430249 |
Abstract
With the advent of the k-modes algorithm, the toolbox for clustering categorical data has an efficient tool that scales linearly in the number of data items. However, random initialization of cluster centers in k-modes makes it hard to reach a good clustering without resorting to many trials. Recently proposed methods for better initialization are deterministic and reduce the clustering cost considerably. A variety of initialization methods differ in how the heuristics chooses the set of initial centers. In this paper, we address the clustering problem for categorical data from the perspective of community detection. Instead of initializing k modes and running several iterations, our scheme, CD-Clustering, builds an unweighted graph and detects highly cohesive groups of nodes using a fast community detection technique. The top-k detected communities by size will define the k modes. Evaluation on ten real categorical datasets shows that our method outperforms the existing initialization methods for k-modes in terms of accuracy, precision, and recall in most of the cases.Entities:
Mesh:
Year: 2017 PMID: 29430249 PMCID: PMC5753022 DOI: 10.1155/2017/8986360
Source DB: PubMed Journal: Comput Intell Neurosci
Figure 1Modularity of two different clustering.
Figure 2Louvain method for modularity optimization.
Figure 3Estimation of the distance threshold R. The horizontal line in each figure represents 1/K.
Algorithm 1CD-Clustering.
Comparison of time complexity.
| Clustering method | Time complexity |
|---|---|
| Cao et al. [ |
|
| Khan and Ahmad [ |
|
| CD-Clustering |
|
Dataset properties.
| Dataset |
|
|
|
| avg.intra.dist | avg.inter.dist | AC |
| #comp | top- | Runtime (ms) |
|---|---|---|---|---|---|---|---|---|---|---|---|
| Soybean | 47 | 21 | 4 | 7 | 5.54 | 12.48 |
| 246 | 3 | 47 | 31 |
| Mushroom | 8,124 | 22 | 2 | 11 | 10.11 | 12.68 | 0.7244 | 12,924,407 | 1 | 5,366 | 8,284 |
| Zoo | 101 | 16 | 7 | 2 | 2.40 | 7.75 |
| 701 | 7 | 100 | 109 |
| Lung-Cancer | 32 | 56 | 3 | 22 | 24.20 | 26.09 | 0.5938 | 160 | 4 | 29 | 110 |
| Breast-Cancer | 699 | 9 | 2 | 6 | 4.27 | 7.84 |
| 115,068 | 1 | 699 | 93 |
| Dermatology | 366 | 34 | 6 | 10 | 11.23 | 16.41 |
| 9,588 | 4 | 364 | 125 |
| Vote | 435 | 16 | 2 | 8 | 6.41 | 10.81 |
| 47,102 | 1 | 432 | 93 |
| Nursery | 12,960 | 8 | 5 | 3 | 5.03 | 5.67 | 0.4156 | 5,721,840 | 1 | 12,960 | 2,543 |
| Chess | 3,196 | 36 | 2 | 9 | 9.65 | 10.35 | 0.6004 | 2,395,174 | 1 | 2,389 | 2,012 |
| Heart | 303 | 13 | 5 | 5 | 6.58 | 7.85 | 0.4719 | 7,755 | 2 | 302 | 94 |
Ground-truth and predicted labels.
| Object id | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 |
| Ground-truth label | 1 | 1 | 1 | 2 | 2 | 2 | 2 | 3 | 3 | 3 |
| Predicted label | b | b | a | b | a | c | b | a | a | c |
A confusion matrix.
| 1 | 2 | 3 | |
| c |
| 1 | 1 |
| a | 1 |
| 2 |
| b | 2 | 2 |
|
(a) Confusion matrix
| Class | ||||
|---|---|---|---|---|
| D1 | D2 | D3 | D4 | |
| D1 | 10 | 0 | 0 | 0 |
| D2 | 0 | 10 | 0 | 0 |
| D3 | 0 | 0 | 10 | 0 |
| D4 | 0 | 0 | 0 | 17 |
(b) Performance comparison
| Random | Cao | Khan | Proposed | |
|---|---|---|---|---|
| AC | 0.8044 |
| 0.9787 |
|
| PR | 0.7969 |
| 0.9773 |
|
| RE | 0.8005 |
| 0.9853 |
|
(a) Confusion matrix
| Class | ||
|---|---|---|
| Poisonous | Edible | |
| Poisonous | 4093 | 2124 |
| Edible | 115 | 1792 |
(b) Performance comparison
| Random | Cao | Khan | Proposed | |
|---|---|---|---|---|
| AC | 0.7206 |
| 0.8288 | 0.7244 |
| PR | 0.7448 |
| 0.8688 | 0.7990 |
| RE | 0.7167 |
| 0.8228 | 0.7151 |
(a) Confusion matrix
| Class | |||||||
|---|---|---|---|---|---|---|---|
| a | b | c | d | e | f | g | |
| a | 37 | 0 | 0 | 0 | 0 | 0 | 0 |
| b | 0 | 13 | 0 | 0 | 0 | 0 | 1 |
| c | 0 | 0 | 20 | 0 | 0 | 0 | 1 |
| d | 0 | 0 | 0 | 9 | 8 | 0 | 0 |
| e | 4 | 0 | 0 | 0 | 0 | 0 | 0 |
| f | 0 | 0 | 0 | 0 | 0 | 4 | 3 |
| g | 0 | 0 | 0 | 1 | 0 | 0 | 0 |
(b) Performance comparison
| Random | Cao | Khan | Proposed | |
|---|---|---|---|---|
| AC | 0.7041 | 0.6733 |
| 0.8218 |
| PR | 0.5876 | 0.5996 |
| 0.5688 |
| RE | 0.5893 | 0.6233 |
| 0.6861 |
(a) Confusion matrix
| Class | |||
|---|---|---|---|
| a | b | c | |
| a | 5 | 2 | 2 |
| b | 5 | 7 | 1 |
| c | 3 | 0 | 7 |
(b) Performance comparison
| Random | Cao | Khan | Proposed | |
|---|---|---|---|---|
| AC | 0.5227 | 0.5313 | 0.4375 |
|
| PR | 0.5590 | 0.5833 | 0.4468 |
|
| RE | 0.5283 | 0.5393 | 0.4470 |
|
(a) Confusion matrix
| Class | ||
|---|---|---|
| Benign | Malignant | |
| Benign | 432 | 8 |
| Malignant | 26 | 233 |
(b) Performance comparison
| Random | Cao | Khan | Proposed | |
|---|---|---|---|---|
| AC | 0.8174 | 0.9113 | 0.6323 |
|
| PR | 0.8283 | 0.9292 | 0.5535 |
|
| RE | 0.7996 | 0.8773 | 0.5336 |
|
(a) Confusion matrix
| Class | ||||||
|---|---|---|---|---|---|---|
| Seborrheic dermatitis | Psoriasis | Lichen planus | Chronic dermatitis | Pityriasis rosea | Pityriasis rubra pilaris | |
| Seborrheic dermatitis | 61 | 0 | 2 | 0 | 49 | 0 |
| Psoriasis | 0 | 111 | 0 | 0 | 0 | 0 |
| Lichen planus | 0 | 0 | 70 | 0 | 0 | 0 |
| Chronic dermatitis | 0 | 1 | 0 | 52 | 0 | 0 |
| Pityriasis rosea | 0 | 0 | 0 | 0 | 0 | 1 |
| Pityriasis rubra pilaris | 0 | 0 | 0 | 0 | 0 | 19 |
(b) Performance comparison
| Random | Cao | Khan | Proposed | |
|---|---|---|---|---|
| AC | 0.5683 | 0.5984 | 0.6175 |
|
| PR | 0.5318 | 0.5548 | 0.6841 |
|
| RE | 0.5028 | 0.5393 | 0.6165 |
|
(a) Confusion matrix
| Class | |||||
|---|---|---|---|---|---|
| Not_recom | Recommend | Very_recom | Priority | Spec_prior | |
| Not_recom | 1440 | 0 | 132 | 1484 | 1264 |
| recommend | 0 | 0 | 0 | 0 | 0 |
| Very_recom | 0 | 0 | 0 | 0 | 0 |
| Priority | 1440 | 2 | 196 | 1924 | 758 |
| Spec_prior | 1440 | 0 | 0 | 858 | 2022 |
(b) Performance comparison
| Random | Cao | Khan | Proposed | |
|---|---|---|---|---|
| AC | 0.3331 | 0.3673 | 0.2804 |
|
| PR | 0.2902 | 0.2978 | 0.2304 |
|
| RE |
| 0.2273 | 0.2044 | 0.2569 |
(a) Confusion matrix
| Class | |||
|---|---|---|---|
| Republican | Democrat | ||
| Republican | 160 | 48 | |
| Democrat | 8 | 219 | |
(b) Performance comparison
| Random | Cao | Khan | Proposed | |
|---|---|---|---|---|
| AC | 0.8603 | 0.8644 | 0.8506 |
|
| PR | 0.8554 | 0.8568 | 0.8484 |
|
| RE | 0.8732 | 0.8730 | 0.8672 |
|
(a) Confusion matrix
| Class | |||
|---|---|---|---|
| Win | Nowin | ||
| Win | 1562 | 0 | |
| Nowin | 1277 | 357 | |
(b) Performance comparison
| Random | Cao | Khan | Proposed | |
|---|---|---|---|---|
| AC | 0.6390 |
| 0.7040 | 0.6004 |
| PR | 0.5184 | 0.5449 | 0.5312 |
|
| RE | 0.5394 | 0.5806 | 0.5540 |
|
(a) Confusion matrix
| Class | |||||
|---|---|---|---|---|---|
| 0 | 1 | 2 | 3 | 4 | |
| 0 | 99 | 9 | 0 | 1 | 0 |
| 1 | 24 | 10 | 4 | 2 | 2 |
| 2 | 14 | 25 | 30 | 28 | 8 |
| 3 | 20 | 9 | 1 | 2 | 1 |
| 4 | 7 | 2 | 1 | 2 | 2 |
(b) Performance comparison
| Random | Cao | Khan | Proposed | |
|---|---|---|---|---|
| AC | 0.3895 | 0.3069 | 0.4422 |
|
| PR | 0.3159 | 0.2763 |
| 0.3271 |
| RE | 0.3219 | 0.2641 | 0.3467 |
|