Abstract
Clustering is the practice of dividing given data into similar groups and is one of the most widely used methods for unsupervised learning. Lee and Ouyang proposed a self-constructing clustering (SCC) method in which the similarity threshold, instead of the number of clusters, is specified in advance by the user. For a given set of instances, SCC performs only one training cycle on those instances. Once an instance has been assigned to a cluster, the assignment will not be changed afterwards. The clusters produced may depend on the order in which the instances are considered, and assignment errors are more likely to occur. Also, all dimensions are equally weighted, which may not be suitable in certain applications, e.g., time-series clustering. In this paper, improvements are proposed. Two or more training cycles on the instances are performed. An instance can be re-assigned to another cluster in each cycle. In this way, the clusters produced are less likely to be affected by the feeding order of the instances. Also, each dimension of the input can be weighted differently in the clustering process. The values of the weights are adaptively learned from the data. A number of experiments with real-world benchmark datasets are conducted and the results are shown to demonstrate the effectiveness of the proposed ideas.
1. Introduction
In the field of artificial intelligence, clustering techniques play a very important role [1,2]. Clustering is an unsupervised learning technology, with the purpose of forming meaningful clusters for the unlabeled data instances under consideration. Intuitively, similar instances are to be grouped in a cluster and different instances grouped in different clusters. Clustering has been widely utilized in a variety of applications, such as revealing the internal structure of the data [3], deriving segmentation of the data [4,5], preprocessing the data for other artificial intelligence (AI) techniques [6,7], business intelligence [1,8], and knowledge discovery in data [9,10]. For example, in electronic text processing [11,12,13], clustering is used to reduce the dimensionality in order to improve the efficiency of the processing, or to ease the curse of dimensionality encountered for high-dimensional problems. In the recommendation applications in e-commerce [14], the size of the information matrix is reduced by clustering to enhance the efficiency of making recommendations. In power systems, clustering helps predict the trend of electricity demand in the future [15]. In stock market forecasting and social media data analysis [1,16], clustering technology is an important and indispensable core key. Therefore, developing good clustering technology is a very critical issue.
Many types of clustering algorithms have been proposed [2,17]. Similarity or distance measures are core components to cluster similar data into the same clusters, while dissimilar or distant data are placed into different clusters [18]. Centroid-based clustering [19,20,21,22,23,24,25,26] groups data instances in an exclusive way. If an instance belongs to a definite cluster, it could not be included in another cluster. K-means is one such algorithm, well-known in the AI community. To use it, the user has to provide the desired number of clusters, K, in advance. Each instance is assigned to the nearest cluster center. Then the K cluster centers are re-estimated. This process is repeated until the cluster centers are stable. Self-organizing mapping (SOM) employs a set of representatives. When a vector is presented, all representatives compete with each other. The winner is updated so as to move toward the vector. Hierarchical clustering [27,28,29,30,31,32] creates a hierarchical decomposition of the set of data instances using some criteria. Two strategies, bottom-up and top-down, are adopted in hierarchical algorithms. The user usually has to decide how many and what clusters are most desirable from the offered hierarchy of clusters. Distribution-based clustering [33,34,35,36,37,38] is based on distribution models. Fuzzy C-means uses fuzzy sets to cluster instances, and data instances are bound to each cluster by means of a membership function. Therefore, each instance may belong to several clusters with different degrees of membership. Gaussian mixture model-Expectation maximization (GMM-EM) uses a completely probabilistic approach. Each cluster is mathematically represented by a parametric distribution, e.g., a Gaussian, and the entire data set is therefore modeled by a mixture of these distributions. Density-based algorithms [39,40,41], e.g., Density-based spatial clustering of applications with noise (DBSCAN), consider clusters as dense regions in the instance space. Most of them do not impose any shape restrictions on the resulting clusters. However, they differ in the way the density is defined. Subspace clustering [42,43,44,45,46,47], e.g., Clustering in quest (CLIQUE), searches for clusters within the various subspaces of the feature space. It reveals the clusters as well as the subspaces where they reside. Also, message passing [48,49], a recent development in computer science and statistical physics, has led to the creation of new types of clustering algorithms.
A special type of clustering is time-series clustering. A sequence composed of continuous, real-valued temporal data is known as a time series. Time-series data are of interest in various areas, e.g., engineering, business, finance, economics, and healthcare. There are good surveys and reviews published on time-series clustering [50,51,52]. In [50], time-series clustering methods are grouped into three major categories, raw-data-based, feature-based, and model-based approaches. Raw-data-based clustering methods work with raw data, either in the time or frequency domain. The two time series being compared are normally sampled at the same interval. Clustering based on raw data implies working with high-dimensional space. It is also not desirable to work directly with the raw data that are highly noisy. Feature-based clustering methods have been proposed to address these concerns. Although most feature extraction methods are generic in nature, the extracted features are usually application dependent. Model-based clustering methods consider each time series being generated by some kind of model or by a mixture of underlying probability distributions. Time series are considered similar when the models characterizing individual series are similar. However, model-based approaches usually have scalability problems, and its performance reduces when the clusters are close to each other. In [51], time-series clustering approaches are classified into six groups: partitioning, hierarchical, grid-based, model-based, density-based clustering, and multi-step clustering algorithms. A partitioning clustering method, e.g., K-means, makes k groups from unlabeled objects in the way that each group contains at least one object. Hierarchical clustering is an approach of cluster analysis that makes a hierarchy of clusters using agglomerative or divisive algorithms. Model-based clustering, e.g., SOM, assumes a model for each cluster, and finds the best fit of data to that model. In density based clustering [41], clusters are subspaces of dense objects which are separated by subspaces in which objects have low density. The grid-based methods quantize the space into a finite number of the cells that form a grid, and then perform clustering on the grid’s cells [53]. A multi-step approach presented in [54] uses a three-phase method: (1) pre-clustering of time series; (2) purifying and summarization; and (3) merging, to construct the clusters based on similarity in shape.
Lee and Ouyang proposed a self-constructing clustering (SCC) algorithm [20] which has been applied in various applications [4,6,13,14,16,55]. SCC is an exclusive clustering method. For a given training set, SCC performs only one training cycle on the training instances. Initially, no clusters exist. Training instances are considered one by one. If an instance is closer enough to an existing cluster, the instance is assigned to the most suitable cluster. Otherwise, a new cluster is created and the instance is assigned to it. SCC offers several advantages. First, the algorithm runs through the training instances only one time, so it is fast. Second, the distributions of the data are statistically characterized. Third, the similarity threshold, instead of the number of clusters, is specified in advance by the user. However, once an instance is assigned to a cluster, the assignment will not be changed afterwards. The clusters produced may depend on the order the instances are considered, and assignment errors are more likely to occur. As a result, the accuracy of the result can be low. Also, all dimensions are equally weighted in the clustering process, which may not be suitable in certain applications, e.g., time-series clustering [56,57,58].
In this paper, we propose improvements to the SCC method to overcome its shortcomings. Two or more training cycles on the instances are performed. In each cycle, training instances are considered one by one. An instance can be added into or removed from a cluster, and thus it is allowed to be re-assigned to another cluster. A desired number of clusters is obtained when all the assignments are stable, i.e., no assignment has been changed, in the current cycle. In this way, the clusters produced are less likely to be affected by the feeding order of the instances. Furthermore, each dimension can be weighted differently in the clustering process. The values of the weights are adaptively learned from the data. Having different weights is useful when certain relevance exists between different dimensions in many applications, e.g., clustering of time series data [56,57]. The effectiveness of the proposed ideas is demonstrated by a number of experiments conducted with real-world benchmark datasets.
The rest of this paper is organized as follows. SCC is briefly reviewed in Section 2. The proposed methods are described in Section 3 and Section 3.2, respectively. Experimental results are presented in Section 4. Finally, a conclusion is given in Section 5.
2. Self-Constructing Clustering (SCC)
Suppose is a finite set of N unlabeled training instances, where is the ith instance. Each instance is a vector with n features. SCC [20,55] does clustering in a progressive way. Only one training cycle on the instances is performed. Each cluster is described by a Gaussian-like membership function characterized by the center and deviation induced from the data assigned to the cluster. The instances are considered one by one sequentially, and clusters are created incrementally.
Let J denote the number of currently existing clusters. Initially, no clusters exist and thus J = 0. When instance 1 comes in, the first cluster, , is created and instance is assigned to it and J = 1. Then, for instance i, which is , , the z-distance between instance i and every existing cluster, , is calculated by
for . Note that and denote the mean and deviation, respectively, induced from the instances assigned to cluster . The membership degree (MD) of instance i belonging to cluster is defined as:
with the value lying in the range of (0, 1]. Let denote the number of instances assigned to cluster . There are two cases:
- If all the MD’s are less than , where is a pre-specified similarity threshold in one dimension, i.e.,for all existing clusters , , a new cluster, , is created and instance i is assigned to it bywhere is a pre-specified constant.
- Otherwise, instance i is assigned to the cluster with the largest MD, say cluster , i.e., center , deviation , and size , are updated by
Note that J is not changed in the latter case.
When all the instances have been considered, SCC stops with J clusters. Algorithm 1 can be summarized below.
| Algorithm 1. SCC |
| for each instance, instance i, Compute Z(i, j), ; if Equation (3) holds Create a new cluster according to Equation (4); else Instance i is assigned to the cluster with largest MD, according to Equation (5); end if end for end SCC |
Note that SCC takes the training set X as input and outputs J clusters . SCC runs fast due to running through the training instances only once. Unlike K-means, the similarity threshold, instead of the number of clusters, is specified in advance by the user.
3. Proposed Methods
The clusters produced by SCC may depend on the feeding order of the instances and the accuracy of the result can be low. Furthermore, all dimensions are equally weighted in the clustering process, which may not be appropriate in certain applications, e.g., time-series clustering.
3.1. Iterative SCC (SCC-I)
For convenience, the proposed approach is abbreviated as SCC-I, standing for the iterative version of SCC. SCC-I consists of multiple iterations. An instance is allowed to be re-assigned to another cluster. The clustering work stops when all the assignments are stable, i.e., no assignment will be changed. A training cycle on the instances is performed in each iteration.
In the first iteration, SCC is applied. Consider the rth iteration, . For any instance , , we first remove it from the cluster, say , which is assigned to. Three cases may arise:
- If no instance remains assigned to , is deleted and the other clusters are re-named to be , ..., . Then J is decreased by 1, i.e., .
- If only one instance remains assigned to , then set to be this instance, set , and set .
- Otherwise, the characteristics of are updated by.
Then, we calculate the z-distance and MD between and each existing cluster by Equations (1) and (2). A new cluster may be created and is assigned to it as following Equation (4), or is assigned to the cluster with the largest MD as following Equation (5).
The current rth iteration ends when all the instances are run through. If one of the cluster assignments has been changed in this iteration, the next iteration, i.e., the th iteration, proceeds. Otherwise, the assignments are stable and SCC-I stops with J clusters. The SCC-I Algorithm 2 can be summarized below.
| Algorithm 2. SCC-I |
| Perform SCC on X; repeat for each instance, instance i, 1 ≤ i ≤ N Remove instance i from its cluster and update the existing clusters; Compute Z(i, j), 1 ≤ j ≤ J; Create a new cluster or assign instance i to the cluster with largest MD; end for until assignments are stable; end SCC-I |
Note that SCC-I takes the training set X as input and outputs J clusters , ..., . Since re-assignments are allowed to be done, SCC-I can produce clusters that are less likely to be affected by the feeding order of the instances. As a result, more stable clusters can be obtained by SCC-I. By “more stable” we mean both the number of clusters and the clusters produced are less likely to be affected by the feeding order of the instances. However, SCC runs faster than SCC-I since SCC-I performs more than one iteration. To illustrate the advantage of SCC-I over SCC, a simple example is given in Appendix A.
3.2. Weighted SCC-I (SCC-IW)
In SCC and SCC-I, each dimension is equally weighted in the calculation of z-distances, as shown in Equation (1). For some applications, e.g., time-series clustering, where certain relevance exists between different dimensions, allowing different dimensions to be weighted differently could be a useful idea [56]. This motivates the development of the weighted SCC-I, abbreviated as SCC-IW.
Let the weighted z-distance between instance i and cluster , , , be defined as
where is the weight vector associated with , for , and . Accordingly, the MD of instance i belonging to is defined as:
Clearly, we have . If
for all existing clusters , , a new cluster is created; otherwise, instance i is assigned to the cluster with the largest MD, as described before.
Remark 1.
In Equation (3), the test iswhereis the pre-specified similarity threshold. Note that for, we have
For, we have
This is Equation (9).
Now the problem left is how the weights are determined to optimize the clustering work under consideration. Here, we consider time-series clustering as an exemplar application [56]. Firstly, it is required that the instances assigned to each cluster be close together as much as possible. In other words, we want to maximize:
where if instance i is assigned to cluster and otherwise, for and , and is the MD defined in Equation (8). Note that is an exponential function which is non-linear on . Maximizing Equation (10) is a kind of non-linear optimization which is hard. However, maximizing is identical to minimizing . Therefore, instead of maximizing Equation (10), we minimize:
Since is linear on , minimizing Equation (11) is kind of linear optimization which is much easier. Secondly, since the neighboring dimensions are next to each other in the time line, the weights of neighboring dimensions should be close to each other. Therefore, we want to minimize:
Combining Equation (11) and Equation (12), together with the constraints on weights, we’d like the weights to minimize
which, by Equation (7), is equivalent to minimizing
where α is a positive real constant. Through quadratic programming, optimal values for the weights can be derived from Equation (14).
Now, we are ready to present the SCC-IW algorithm. We adopt , instead of , in SCC-IW. Also, whenever a new cluster is created, its weights are each initialized to be . At the end of the current iteration, we minimize Equation (14) to find optimal weights which will be used in the next iteration. The SCC-IW Algorithm 3 can be summarized below.
| Algorithm 3. SCC-IW |
| Perform SCC on X with weighted z-distance, and initialize the weights for each newly created cluster; repeat for each instance, instance i, Remove instance i from its cluster and update the existing clusters; Compute , ; Create a new cluster or assign instance i to the cluster with largest MD, and initialize the weights for each newly created cluster; end for Derive optimal weights by solving Equation (14) through quadratic programming; until assignments are stable; end SCC-IW |
Note that SCC-IW takes the training set X as input and outputs J clusters , ..., .
It is not surprising that SCC-IW can work well. In each iteration, optimal weights are derived. For a dimension which is more useful for clustering, it is more important and is, therefore, given a larger weight. To illustrate how SCC-IW works, a simple example is given in Appendix B.
4. Experimental Results
In this section, we demonstrate empirically the superiority of our proposed methods. The proposed methods and others are applied to do clustering on benchmark datasets. Three external measures of evaluation, Fscore, Rand Index (RI), and Normalized Mutual Information (NMI) [59], and another three internal measures, Dunn index (DI), Davies–Bouldin index (DBI), and Silhouette index (SI) [60], are adopted.
where K is the number of classes, J is the number of clusters, N is the size of the entire data set, is the number of data instances belonging to class k in cluster j, is the size of cluster j, and is the size of class k. A higher Fscore is better.
where a is the number of pairs of data instances having different class labels and belonging to different clusters, b is the number of pairs of data instances having the same cluster labels and belonging to the same clusters, and N is the size of the entire data set. A higher RI is better.
where K is the number of classes, J is the number of clusters, N is the size of the entire data set, is the number of data instances belonging to class k in cluster j, is the size of cluster j, and is the size of class k. A higher NMI is better.
where is the minimum distance between clusters and , and is the largest distance between the instances contained in cluster . A higher DI is better.
where is the average of the distances between the instance contained in cluster C, and is the between the centers of clusters and . A lower DBI is better.
where is the average of the distances between instance and all other instances within the same cluster, is the lowest average distance of instance to all instances in any other cluster of which instance is not a member, and is the size of the entire data set. A higher SI is better.
4.1. Non Time-Series Datasets
To illustrate the effectiveness of SCC-I, fourteen benchmark non-time-series datasets are selected from the UCI repository [61] for the experiments. The characteristics of these datasets are shown in Table 1. For example, there are 569 instances in the Breast dataset. Each instance has 30 features or dimensions, and belongs to one of 2 classes. For each dataset, an instance belongs to one and only one class. We compare SCC-I with Kmeans [62], DSKmeans [59], Fuzzy C-means (FCM) [63], Gaussian mixture model (Gmm) [64], DBSCAN [65], and SCC [20]. The codes for K-means, DBSCAN, and FCM are adopted from Matlab [66], and the code for Gmm is adopted from [67]. We wrote the codes for DSKmeans, SCC, and SCC-I in Matlab.
Table 1.
Characteristics of 14 non-time-series datasets.
Table 2 shows comparisons of Fscore, RI, and NMI among different methods for each dataset. To have fair comparisons among different methods, the number of clusters are tuned to be identical to the number of classes for each dataset. For K-means, the number of clusters, k, is set to be equal to the number of classes. For DSKmeans, the parameter is set to be a value between 0.01 and 5, and is between 0.01 and 0.3. For SCC and SCC-I, and are set to be values between 0.1 and 0.95. Also, each method performed 25 runs on a dataset and the averaged result is shown. For K-means and DSKmeans, each run started with a different set of initial seeds. For SCC and SCC-I, each run was given a different feeding order of the training instances. For FCM, the maximum number of iterations is set to be 50. For DBSCAN, is set to be a value between 0.1 and 3, while the minimum number of neighbors, minpts, required for a core point, is set to be between 1 and 10. In addition to the values of the measures, performance ranking is also indicated at the right side of ‘/’ for each dataset in Table 2. For example, consider the Breast dataset. The Fscore values are 0.9270, 0.8710, 0.9274, 0.7470, 0.7983, and 0.9264 by K-means, DSKmeans, FCM, Gmm, DBSCAN, SCC, and SCC-I, respectively. FCM has the best value, 0.9274, so it ranks as the first place, indicated by 1 at the right side of ‘/’; K-means has the second best value, 0.9270, so it ranks as the second place, indicated by 2 at the right side of ‘/’; etc. From this table, we can see that (1) SCC-I outperforms SCC significantly, and (2) SCC-I is no less effective than the other methods. Table 3 shows the averaged ranking of all the 14 datasets for each method. As can be seen, SCC-I is the best in Fscore and NMI, indicated by boldfaced numbers, and is the second best in RI.
Table 2.
Performance comparisons of Fscore, Rand Index (RI), and Normalized Mutual Information (NMI) on 14 non-time-series datasets.
Table 3.
Averaged ranking of 14 non-time-series datasets.
Although the overall ranking of SCC-I is better than others, looking at individual results for each dataset there are some variations. For example, K-means outperforms SCC-I for Heart, Ionophere, and Seeds. Compared with K-means, SCC-I has advantages: (1) SCC-I considers deviation in the computation of distance; (2) SCC-I allows ellipsoidal shape of clusters. Note that SCC-I is less affected by the feeding order of instances, and thus can give a more stable and accurate clustering than SCC. However, given the number of clusters, the clusters obtained by K-means are not affected by the feeding order of instances. For the datasets with ellipsoidal shape of clusters, SCC-I is more likely to perform better on them. By contrast, for the datasets with spherical clusters, SCC-I may be inferior to K-means on such datasets. Table 2 also shows the execution time, in seconds, of each method on each dataset. The computer used for running the codes is equipped with Intel(R) Core(TM) i7-4770 CPU 3.40 GHz, 16 GB RAM, and Matlab R2011b. The times shown in the table only provide an idea of how efficiently these methods can run. Note that SCC-I runs slower than SCC. SCC only performs one training cycle on the instances, while SCC-I requires two or more training cycles. SCC-I takes more training time than other baselines due to some factors: (1) The codes of these baselines, e.g., K-means and FCM, were adopted from established websites, while SCC-I were written by graduate students; (2) SCC-I has to compute z-distances and Gaussian values, which is more computationally expensive; (3) In order to do re-assignment, the operation of removing instances from clusters is done during the clustering process. Comparisons of DBI, DI, and SI among different methods for each dataset are shown in Table 4. As can be seen from the table, SCC-I is better than other methods. SCC-I gets the lowest DBI for 9 out of 14 datasets, the highest DI for 9 out of 14 datasets, and the highest SI for 7 out of 14 datasets.
Table 4.
Performance comparisons of Davies–Bouldin index (DBI), Dunn index (DI), and Silhouette index (SI) on 14 non-time-series datasets.
Now we use the paired t-test [68] to test the real significant differences between SCC-I and other methods. Table 5 shows the t-values based on the values of Fscore, NMI, and DBI, respectively, under the 90% confidence level. Note that we have 14 datasets involved. So the degree of freedom is 13 and the corresponding threshold is 1.771. From Table 5, we can see that all the t-values are greater than 1.771, except for Gmm with NMI. Therefore, by statistical test we observe that SCC-I shows significantly better performance than other methods. A multiple comparison test may be used since there are multiple algorithms involved. Analysis of variance (ANOVA) [69] provides such tests. We have tried with ANOVA in two ways. Firstly, we used ANOVA to return a structure that can be used to determine which pairs of algorithms are significantly different. The results similar to those shown in Table 5 were obtained. Secondly, we used ANOVA to test the null hypothesis that all algorithms perform equally well against the alternative hypothesis that at least one algorithm is different from the others. A p-value that is smaller than 0.05 indicates that at least one of the algorithms is significantly different from the others. However, it is not certain which ones are significantly different from each other.
Table 5.
Pairwise comparisons by t-test for non-time-series datasets.
4.2. Time-Series Datasets
Next, we show the effectiveness of SCC-IW in clustering time series data. Ten benchmark time series datasets are taken from the UCR repository [70] for the experiments. The characteristics of these datasets are shown in Table 6. In addition to the previous methods, we also compare with TSKmeans [56] here. We wrote the code for TSKmeans in Matlab.
Table 6.
Characteristics of 10 time-series datasets.
Table 7 and Table 8 show the Fscore, RI, and NMI obtained by different methods for each dataset. Again, each method performed 25 runs on a dataset and the averaged result is shown. From these two tables, we can see that (1) SCC-IW outperforms both SCC and SCC-I significantly, and (2) SCC-IW is no less effective th.an the other methods. Table 8 shows the averaged ranking of all the 10 time series datasets for each method. As can be seen, SCC-IW is the best in Fscore, RI, and NMI. However, SCC-IW runs slower than SCC and SCC-I, since weights are involved in SCC-IW and they have to be optimally updated in each training cycle. Comparisons of DBI, DI, and SI among different methods for each dataset are shown in Table 9. As can be seen from the table, SCC-I is better than other methods. SCC-I gets the lowest DBI for 8 out of 10 datasets, the highest DI for 5 out of 10 datasets, and the highest SI for 4 out of 10 datasets. The main reason that SCCIW outperforms all the other competing classifiers in Table 10 is the consideration of both weights and deviations in SCC-IW. Gmm, SCC and SCC-I do not use weights. K-means, DSKmeans, and FCM do not use deviations nor weights in the clustering process. TSKmeans considers weights, but deviations are not involved.
Table 7.
Performance comparisons of Fscore, RI, and NMI on 10 time series datasets—Part I.
Table 8.
Performance comparisons of Fscore, RI, and NMI on 10 time-series datasets—Part II.
Table 9.
Performance comparisons of DBI, DI, and SI on 10 time-series datasets.
Table 10.
Averaged ranking of 10 time-series datasets.
Now we use the paired t-test [68] to test the real significant differences between SCC-IW and other methods. Table 11 shows the t-values based on the values of Fscore, RI, and DBI, respectively, at the 90% confidence level. Note that we have 10 datasets involved. So the degree of freedom is 9 and the corresponding threshold is 1.833. From the above table, we can see that all the t-values are greater than 1.833, except for DSKmeans and FCM with RI. Therefore, by statistical test we observe that SCC-IW shows significantly better performance than other methods.
Table 11.
Pairwise comparisons by t-test for time series datasets.
4.3. Compairsons with Other Methods
Recently, evolutionary algorithms, e.g., simulated annealing and differential evolution, have been proposed to perform clustering [71]. The evolutionary algorithms can perform clustering using either a fixed or variable number of clusters and find the clustering that is optimal with respect to a certain validity index. Either a population of solutions or only one solution can be used. The single-solution-based evolutionary algorithms have smaller evaluation count but their solution quality is usually not as good as those that are population-based.
Siddiqi and Sait [72] propose a heuristic for data-clustering problems, abbreviated as FCM . It comprises two parts, a greedy algorithm and a single-solution-based heuristic. The first part selects the data points that can act as the centroids of well-separated clusters. The second part performs clustering with the objective of optimizing a cluster validity index. The proposed heuristic consists of five main components: (1) genes; (2) fitness of genes; (3) selection; (4) mutation operation; and (5) diversification. The objective functions used in the proposed heuristic are the Calinski–Harabasz index and Dunn index. Zhang et al. [73] propose a clustering algorithm, called ICFSKM, for clustering large dynamic data in industrial IoT. Two cluster operations, cluster creating and cluster merging, are defined to integrate the current pattern into the previous one for the final clustering result. Also, k-mediods is used for modifying the clustering centers according to the new arriving objects. Table 12 shows a DI comparison between SCC-I and HDC, and Table 13 shows a NMI comparison between SCC-I and ICFSKM, for some datasets. In these tables, the datasets Balance scale, Banknote authentication, Landsat satellite, Pen-based digits, Waveform-5000, and Wine are also selected from the UCI repository [61]. The results for HDC and ICFSKM are copied directly from [65,66]. We can see that SCC-I is comparable to HDC and ICFSKM. Note that HDC and ICFSKM are goal-oriented. For example, the objective functions used in HDC include the Dunn index. Therefore, DI values can be optimized by HDC intentionally. Furthermore, the objective function is usually computationally intensive and the evolutionary algorithms are considered to be slow.
Table 12.
DI comparison between SCC-I and HDC.
Table 13.
NMI comparison between SCC-I and ICFSKM.
4.4. Setting of α
In Equation (14), the difference between the weights of neighboring dimensions is controlled by . For = 0, no constraints are imposed on the weight differences. As increases, neighboring dimensions are forced to be increasingly equally weighted and SCC-IW will behave more and more like SCC-I. Therefore, the setting of α could affect the performance of SCC-IW. In [56], a constant is defined as
where
and it is shown empirically that the performance of TSKmeans varies with the value of [56]. Figure 1 shows how SCC-IW performs on four datasets with different values of . Note that the horizontal line is scaled in . When gets larger, SCC-IW performs increasingly like SCC-I.
Figure 1.
Performance of SCC-IW vs. α.
5. Conclusions
SCC is an exclusive clustering method, performing only one training cycle on the training instances. Clusters are created incrementally. However, the clusters produced may depend on the feeding order in which the instances are considered, and assignment errors are more likely to occur. Also, all dimensions are equally weighted in the clustering process, which may not be suitable in certain applications, e.g., time-series clustering. We have presented two improvements, SCC-I and SCC-IW. SCC-I performs two or more training cycles iteratively, and allows instances to be re-assigned afterwards. In this way, the clusters produced are less likely to be affected by the feeding order of the instances. On the other hand, SCC-IW allows each dimension to be weighted differently in the clustering process. The values of the weights are adaptively learned from the data. Experiments have shown that SCC-IW performs effectively in clustering time-series data.
SCC-I and SCC-IW take more training time due to: (1) they have to compute z-distances and Gaussian values, which is computationally expensive; (2) in order to do re-assignment, the operation of removing instances from clusters is done during the clustering process. We will investigate these issues to reduce the training time in the future. Spectral clustering [74] and multidimensional scaling [75] deal with extraction of features from original ones. SCC-IW has probably some relationship with these methods since SCC-IW is also somehow able to extract some new “axis or principal components” by the adaptation of the weights. It will be interesting to explore such a relationship in the future.
Author Contributions
Conceptualization, Z.-Y.W. and S.-J.L.; methodology, Z.-Y.W. and S.-J.L; software, Z.-Y.W., C.-Y.W., and Y.-T.L.; validation, Z.-Y.W., C.-Y.W. and Y.-T.L.; formal analysis, Z.-Y.W. and S.-J.L.; investigation, S.-J.L.; resources, S.-J.L.; data curation, Z.-Y.W., C.-Y.W., and Y.-T.L.; writing—original draft preparation, Z.-Y.W., C.-Y.W., and Y.-T.L.; writing—review and editing, S.-J.L.; visualization, C.-Y.W. and Y.-T.L.; supervision, S.-J.L.; project administration, Y.-T.L.; funding acquisition, S.-J.L.
Funding
This research was funded by the Ministry of Science and Technology under grants MOST-103-2221-E-110-047-MY2, MOST-104-2622-E-110-014-CC3, and MOST-106-2221-E-110-080. The APC was funded by National Sun Yat-Sen University.
Conflicts of Interest
The authors declare no conflict of interest.
Appendix A
A simple example is given here to illustrate how SCC-I works. Suppose X has the following 12 training instances:
Note that and . These instances are shown in Figure A1a, marked as circles. Let and . Below, we consider two feeding orders of instances.
• The feeding order of , ..., .
After performing SCC in the first iteration, there are six clusters: , , , , , and , as shown in Figure A1b, with
The clusters are numbered and wrapped in dashed contours, with their centers marked with crosses. Instances and are assigned to , and are assigned to , is assigned to , and are assigned to , , , , and are assigned to , and is assigned to . After the second iteration, we have 4 clusters: , , , and , as shown in Figure A1c, with:
Instances , , , and are assigned to , , , and are assigned to , is assigned to , and , , , and are assigned to . After the third iteration, we have 3 clusters: , , and , as shown in Figure A1d, with:
Figure A1.
Clusters produced with the first feeding order.
Instances , , , , and are assigned to , , , and are assigned to , and , , , and are assigned to . In the fourth iteration, no assignment has been changed. Therefore, SCC-I stops with three clusters , , and as shown above, with 5, 3, and 4 instances assigned to them, respectively.
• The feeding order of , , , , , , , , , , , . After performing SCC in the first iteration, there are 5 clusters: , , , , and , as shown in Figure A2a, with:
Figure A2.
Clusters produced with the second feeding order.
Instances , , , and are assigned to , and are assigned to , and are assigned to , , , and are assigned to , and is assigned to . Iterations 2 and 3 are performed subsequently. After the fourth iteration, we have 3 clusters: , , and , as shown in Figure A2b, with:
Instances , , , and are assigned to , , , , , and are assigned to , and , , and are assigned to . Then the cluster assignments are stable and so SCC-I stops with three clusters , , and as shown above, with 4, 5, and 3 instances assigned to them, respectively.
Note that SCC produces 6 clusters, Figure A1b, with the first feeding order and 5 clusters, Figure A2a, with the second feeding order, and the two sets of clusters are different. However, SCC-I produces 3 clusters, Figure A1d and Figure A2b, with both feeding orders and the two sets of clusters are essentially the same. Clearly, the clusters obtained by SCC-I are more stable and reasonable.
Appendix B
Another simple example is given here to illustrate how SCC-IW works. Suppose X has the following 15 training instances:
Note that and . Each instance is a short time series comprising 6 consecutive time samplings. Let and Below, we consider the feeding order of , ..., .
- By SCC, 7 clusters, , ..., , are obtained, with size being 3, 1, 5, 1, 1, 3, and 1, respectively. Instances , , and are assigned to ; , , , , and are assigned to ; and , , and are assigned to . , , , and are singletons, containing , , , and , respectively.
- By SCCI-I, convergence is achieved in the 3rd iteration with 4 clusters, , ..., , with size being 5, 5, 4, and 1, respectively. Instances , , , , and are assigned to ; , , , , and are assigned to ; , , , and are assigned to ; and is assigned to .
- By SCC-IW, convergence is also achieved in the 3rd iteration, but with only 3 clusters, , , , with size being 5, 5, and 5, respectively. Instances , , , , and are assigned to ; , , , , and are assigned to ; and , , , , and are assigned to . The instances assigned to the clusters are shown in Figure A3a–c. The weights associated with the cluster are:
Which are depicted in Figure A3d. The clustering done by SCC-IW seems to be the most suitable, intuitively. All the instances assigned to cluster have similar time samplings at indices 2, 3, and 4 which are manifested by large weights at these indices. Similarly, all the instances assigned to cluster have similar time samplings at indices 4, 5, and 6, which are manifested by large weights at these indices, and all the instances assigned to cluster have similar time samplings at indices 1, 2, and 3, which are manifested by large weights at these indices.
Figure A3.
Clusters produced by SCC-IW.
References
- Olson, D.L.; Shi, Y. Introduction to Business Data Mining; McGraw-Hill/Irwin Englewood Cliffs: Boston, MA, USA, 2007. [Google Scholar]
- Theodoridis, S.; Koutroumbas, K. Pattern Recognition; Elsevier: Amsterdam, The Netherlands, 2008. [Google Scholar]
- Li, W.; Jaroszewski, L.; Godzik, A. Clustering of highly homologous sequences to reduce the size of large protein databases. Bioinformatics 2001, 17, 282–283. [Google Scholar] [CrossRef] [Scilit]
- Lee, S.-J.; Ouyang, C.-S.; Du, S.-H. A neuro-fuzzy approach for segmentation of human objects in image sequences. IEEE Trans. Cybern. 2003, 33, 420–437. [Google Scholar]
- Filipovych, R.; Resnick, S.M.; Davatzikos, C. Semi-supervised cluster analysis of imaging data. NeuroImage 2011, 54, 2185–2197. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Jiang, J.Y.; Liou, R.J.; Lee, S.J. A fuzzy self-constructing feature clustering algorithm for text classification. IEEE Trans. Knowl. Data Eng. 2011, 23, 335–349. [Google Scholar] [CrossRef] [Scilit]
- Xu, R.-F.; Lee, S.-J. Dimensionality reduction by feature clustering for regression problems. Inf. Sci. 2015, 299, 42–57. [Google Scholar] [CrossRef] [Scilit]
- Wang, M.; Yu, Y.; Lin, W. Adaptive neural-based fuzzy inference system approach applied to steering control. In Proceedings of the 6th International Symposium on Neural Networks: Advances in Neural Networks—Part II, Wuhan, China, 26–29 May 2009; pp. 1189–1196. [Google Scholar]
- Xu, Y.; Olman, V.; Xu, D. Clustering gene expression data using a graph-theoretic approach: An application of minimum spanning trees. Bioinformatics 2002, 18, 536–545. [Google Scholar] [CrossRef] [Scilit]
- Wei, C.-C.; Chen, T.-T.; Lee, S.-J. K-NN based neuro-fuzzy system for time series prediction. In Proceedings of the14th ACIS International Conference on Software Engineering, Artificial Intelligence, Networking and Parallel/Distributed Computing (SNPD), Honolulu, HI, USA, 1–3 July 2013; pp. 569–574. [Google Scholar]
- Can, F.; Ozkarahan, E.A. Concepts and effectiveness of the cover-coefficient based clustering methodology for text databases. ACM Trans. Database Syst. 1990, 15, 483–517. [Google Scholar] [CrossRef] [Scilit]
- Feldman, R.; Sanger, J. The Text Mining Handbook: Advanced Approaches in Analyzing Unstructured Data; Cambridge University Press: Cambridge, UK, 2007. [Google Scholar]
- Lee, S.-J.; Jiang, J.-Y. Multilabel text categorization based on fuzzy relevance clustering. IEEE Trans. Fuzzy Syst. 2014, 22, 1457–1471. [Google Scholar] [CrossRef] [Scilit]
- Liao, C.-L.; Lee, S.-J. A clustering based approach to improving the efficiency of collaborative filtering recommendation. Electron. Commer. Res. Appl. 2016, 18, 1–9. [Google Scholar] [CrossRef] [Scilit]
- Alvarez, F.M.; Troncoso, A.; Riquelme, J.C.; Ruiz, J.S.A. Energy time series forecasting based on pattern sequence similarity. IEEE Trans. Knowl. Data Eng. 2011, 23, 1230–1243. [Google Scholar] [CrossRef] [Scilit]
- Wang, Z.-Y.; Lee, S.-J. A neuro-fuzzy based method for TAIEX forecasting. In Proceedings of the International Conference on Machine Learning and Cybernetics (ICMLC), Lanzhou, China, 13–16 July 2014; Volume 1, pp. 579–584. [Google Scholar]
- Everitt, B. Cluster Analysis; Wiley: West Sussex, Chichester, UK, 2011. [Google Scholar]
- Aghabozorgi, S.; Shirkhorshidi, A.S.; Wah, T.Y. A comparison study on similarity and dissimilarity measures in clustering continuous data. PLoS ONE 2015, 10, e0144059. [Google Scholar]
- Kohonen, T. Self-Organizing Maps; Springer-Verlag: Berlin, Germany, 1995. [Google Scholar]
- Lee, S.-J.; Ouyang, C.-S. A neuro-fuzzy system modeling with self-constructing rule generation and hybrid SVD-based learning. IEEE Trans. Fuzzy Syst. 2003, 11, 341–353. [Google Scholar]
- Park, H.-S.; Jun, C.-H. A simple and fast algorithm for k-medoids clustering. Expert Syst. Appl. 2009, 36, 3336–3341. [Google Scholar] [CrossRef] [Scilit]
- Sculley, D. Web-scale k-means clustering. In Proceedings of the19th International Conference on World Wide Web, Raleigh, NC, USA, 26–30 April 2010; pp. 1177–1178. [Google Scholar]
- Capo, M.; Pérez, A.; Lozano, J.A. An efficient k-means clustering algorithm for massive data. arXiv 2018, arXiv:1801.02949. [Google Scholar]
- Abdalgader, K. Centroid-based lexical clustering. IntechOpen 2018. [Google Scholar] [CrossRef]
- Rezaei, M. Improving a centroid-based clustering by using suitable centroids from another clustering. J. Classif. 2019, 1–14. [Google Scholar] [CrossRef] [Scilit]
- Sarmiento, A.; Fondon, I.; Durán-Díaz, I.; Cruces, S. Centroid-based clustering with αβ-divergences. Entropy 2019, 21, 196. [Google Scholar] [CrossRef] [Scilit]
- Kraskov, A.; Stogbauer, H.; Andrzejak, R.G.; Grassberger, P. Hierarchical clustering based on mutual information. arXiv 2003, arXiv:q-bio/0311039v2. [Google Scholar]
- Szekely, G.J.; Rizzo, M.L. Hierarchical clustering via joint between-within distances: Extending Ward’s minimum variance method. J. Classif. 2005, 22, 151–183. [Google Scholar] [CrossRef] [Scilit]
- Achtert, E.; Bohm, C.; Kroger, P. DeLi-Clu: Boosting robustness, completeness, usability, and efficiency of hierarchical clustering by a closest pair ranking. Lect. Notes Comput. Sci. 2006, 3918, 119–128. [Google Scholar]
- Achtert, E.; Bohm, C.; Kroger, P.; Zimek, A. Mining hierarchies of correlation clusters. In Proceedings of the 18th International Conference on Scientific and Statistical Database Management (SSDBM), Vienna, Austria, 3–5 July 2006; pp. 119–128. [Google Scholar]
- Zhang, W.; Zhao, D.; Wang, X. Agglomerative clustering via maximum incremental path integral. Pattern Recognit. 2013, 46, 3056–3065. [Google Scholar] [CrossRef] [Scilit]
- Gagolewski, M.; Bartoszuk, M.; Cena, A. Genie: A new, fast, and outlier-resistant hierarchical clustering algorithm. Inf. Sci. 2016, 363, 8–23. [Google Scholar] [CrossRef] [Scilit]
- Figueiredo, M.A.T.; Jain, A.K. Unsupervised learning of finite mixture models. IEEE Trans. Pattern Anal. Mach. Intell. 2002, 24, 381–396. [Google Scholar] [CrossRef] [Scilit]
- Pal, K.; Keller, J.; Bezdek, J. A possibilistic fuzzy c-means clustering algorithm. IEEE Trans. Fuzzy Syst. 2005, 13, 517–530. [Google Scholar] [CrossRef] [Scilit]
- Fellows, M.R.; Guo, J.; Komusiewicz, C.; Niedermeier, R.; Uhlmann, J. Graph-based data clustering with overlaps. Discret. Optim. 2011, 8, 2–17. [Google Scholar] [CrossRef] [Scilit]
- Pérez-Suárez, A.; Martinez-Trinidad, J.F.; Carrasco-Ochoa, J.A.; Medina-Pagola, J.E. OClustR: A new graph-based algorithm for overlapping clustering. Neuro-Computing 2013, 121, 234–247. [Google Scholar]
- Baadel, S.; Thabtah, F.; Lu, J. MCOKE: Multi-cluster overlapping k-means extension algorithm. Int. J. Comput. Control Quantum Inf. Eng. 2015, 9, 374–377. [Google Scholar]
- Améndola, C.; Faugére, J.-C.; Sturmfels, E. Moment varieties of Gaussian mixtures. J. Algebraic Stat. 2016, 7, 14–28. [Google Scholar] [CrossRef] [Scilit]
- Kriegel, H.-P.; Kroger, P.; Sander, J.; Zimek, A. Density-based clustering. WIREs Data Min. Knowl. Discov. 2011, 1, 231–240. [Google Scholar] [CrossRef] [Scilit]
- Heredia, L.C.; Mor, A.R. Density-based clustering methods for unsupervised, separation of partial discharge sources. Int. J. Electr. Power Energy Syst. 2019, 107, 224–230. [Google Scholar] [CrossRef] [Scilit]
- Wang, T.; Ren, C.; Luo, Y.; Tian, J. NS-DBSCAN: A density-based clustering algorithm in network space. Int. J. Geo-Inf. 2018. [Google Scholar] [CrossRef] [Scilit]
- Cheng, C.-H.; Fu, A.W.; Zhang, Y. Entropy-based subspace clustering for mining numerical data. In Proceedings of the 5th ACM International Conference on Knowledge Discovery and Data Mining, San Diego, CA, USA, 15—18 August 1999; pp. 84–93. [Google Scholar]
- Kailing, K.; Kriegel, H.-P.; Kroger, P. Density-connected subspace clustering for high-dimensional data. In Proceedings of the SIAM International Conference on Data Mining (SDM’04), Lake Buena Vista, FL, USA, 22–24 April 2004; pp. 246–257. [Google Scholar]
- Agrawal, R.; Gehrke, J.; Gunopulos, D.; Raghavan, P. Automatic subspace clustering of high dimensional data. Data Min. Knowl. Discov. 2005, 11, 5–33. [Google Scholar] [CrossRef] [Scilit]
- Kriege, H.-P.; Kroger, P.; Zimek, A. Subspace clustering. Wiley Interdiscip. Rev. Data Min. Knowl. Discov. 2012, 2, 351–364. [Google Scholar] [CrossRef] [Scilit]
- Luo, S.; Zhang, C.; Zhang, W.; Cao, X. Consistent and specific multi-view sub-space clustering. In Proceedings of the 32nd AAAI Conference on Artificial Intelligence (AAAI-18), New Orleans, LA, USA, 2–3 February 2018; pp. 3730–3737. [Google Scholar]
- Zhang, T.; Ji, P.; Harandi, M.; Huang, W.; Li, H. Neural collaborative subspace clustering. arXiv 2019, arXiv:1904.10596v1. [Google Scholar]
- Frey, B.J.; Dueck, D. Clustering by passing messages between data points. Science 2007, 315, 972–976. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Shi, C.; Liu, Y.; Zhang, P. Weighted community detection and data clustering using message passing. arXiv 2018, arXiv:1801.09829v1. [Google Scholar] [CrossRef] [Scilit]
- Liao, T.W. Clustering of time series data-a survey. Pattern Recognit. 2005, 38, 1857–1874. [Google Scholar] [CrossRef] [Scilit]
- Aghabozorgi, S.; Shirkhorshidi, A.S.; Wah, T.Y. Time-series clustering-a decade review. Inf. Syst. 2015, 53, 16–38. [Google Scholar] [CrossRef] [Scilit]
- Maharaj, E.A.; D’Urso, P.; Caiado, J. Time Series Clustering and Classification; Chapman and Hall/CRC: Boca Raton, FL, USA, 2019. [Google Scholar]
- Wang, W.; Yang, J.; Muntz, R. STING: A statistical information grid approach to spatial data mining. In Proceedings of the International Symposium on Very Large Data Bases. Athens, Greece, 25–29 August 1997; pp. 186–195. [Google Scholar]
- Aghabozorgi, S.; Wah, T.Y. Stock market co-movement assessment using a three-phase clustering method. Expert Syst. Appl. 2014, 41, 1301–1314. [Google Scholar] [CrossRef] [Scilit]
- Ouyang, C.-S.; Lee, W.-J.; Lee, S.-J. A TSK-type neuro-fuzzy network approach to system modeling problems. IEEE Trans. Syst. Man Cybern. Part B Cybern. 2005, 35, 751–767. [Google Scholar] [CrossRef]
- Huang, X.; Ye, Y.; Xiong, L.; Lau, R.; Jiang, N.; Wang, S. Time series k-means: A new k-means type smooth subspace clustering for time series data. Inf. Sci. 2016, 367, 1–13. [Google Scholar] [CrossRef] [Scilit]
- Wang, Z.-Y. Some Variants of Self-Constructing Clustering. Master’s Thesis, National Sun Yat-Sen University, Kaohsiung, Taiwan, 2017. [Google Scholar]
- Roelofsen, P. Time Series Clustering. Master’s Thesis, Vrije Universiteit Amsterdam, Amsterdam, The Netherlands, 2018. [Google Scholar]
- Huang, X.; Ye, Y.; Guo, H.; Cai, Y.; Zhang, H.; Li, Y. DSKmeans: A new kmeans-type approach to discriminative subspace clustering. Knowl. Based Syst. 2014, 70, 293–300. [Google Scholar] [CrossRef] [Scilit]
- Model Evaluation: Quantifying the Quality of Predictions. Available online: https://scikit-learn.org/stable/modules/model_evaluation.html#model-evaluation (accessed on 1 September 2018).
- The UCI machine Learning Repository. Available online: https://archive.ics.uci.edu/ml/about.html (accessed on 5 December 2019).
- K-Means. Available online: https://www.mathworks.com/help/stats/kmeans.html (accessed on 1 September 2018).
- Fuzzy C-Means. Available online: https://www.mathworks.com/help/fuzzy/fcm.html (accessed on 1 September 2018).
- Gaussian Mixture Model. Available online: https://en.wikipedia.org/wiki/Mixture model (accessed on 1 September 2018).
- Dbscan. Available online: https://www.mathworks.com/help/fuzzy/dbscan.html (accessed on 1 November 2019).
- Matlab. Available online: https://www.mathworks.com/products/matlab.html (accessed on 1 September 2018).
- Gmm Source Code. Available online: http://blog.pluskid.org/?p=39 (accessed on 1 September 2018).
- Carrasco, J.; del Mar Rueda, S.M.; Herrera, F. rNPBST: An R package covering non-parametric and Bayesian statistical tests. In Proceedings of the International Conference on Hybrid Artificial Intelligence Systems, La Rioja, Spain, 21–23 June 2017; Volume 1, pp. 281–292. [Google Scholar]
- ANOVA. Available online: https://www.mathworks.com/help/stats/anova1.html (accessed on 1 December 2019).
- Dau, H.A.; Bagnall, A.J.; Kamgar, K.; Yeh, C.-C.M.; Zhu, Y.; Gharghabi, S.; Ratanamahatana, C.; Keogh, E.J. The UCR time series archive. arXiv 2018, arXiv:1810.07758. [Google Scholar]
- Cuevas, E.; Santuario, E.; Zaldivar, D.; Perez-Cisneros, M. An improved evolutionary algorithm for reducing the number of function evaluations. Intell. Autom. Soft Comput. 2016, 22, 177–192. [Google Scholar] [CrossRef] [Scilit]
- Siddiqi, U.F.; Sait, S.M. A new heuristic for the data clustering problem. IEEE Access. 2017, 5, 6801–6812. [Google Scholar] [CrossRef] [Scilit]
- Zhang, Q.; Zhu, C.; Yang, L.T.; Chen, Z.; Zhao, L.; Li, P. An incremental CFS algorithm for clustering large data in industrial internet of things. IEEE Trans. Ind. Infomat. 2017, 13, 1193–1201. [Google Scholar] [CrossRef] [Scilit]
- Arias-Castro, E.; Chen, G.; Lerman, G. Spectral clustering based on local linear approximations. Electron. J. Stat. 2011, 5, 1537–1587. [Google Scholar] [CrossRef] [Scilit]
- Borg, I.; Groenen, P. Modern Multidimensional Scaling: Theory and Applications, 2nd ed.; Springer: New York, NY, USA, 2005. [Google Scholar]
© 2019 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (http://creativecommons.org/licenses/by/4.0/).



