Elastic Differential Evolution for Automatic Data Clustering

Junxian Chen, Yue‐Jiao Gong, Wei–Neng Chen, Mengting Li, Jun Zhang

Abstract

In many practical applications, it is crucial to perform automatic data clustering without knowing the number of clusters in advance. The evolutionary computation paradigm is good at dealing with this task, but the existing algorithms encounter several deficiencies, such as the encoding redundancy and the cross-dimension learning error. In this article, we propose a novel elastic differential evolution algorithm to solve automatic data clustering. Unlike traditional methods, the proposed algorithm considers each clustering layout as a whole and adapts the cluster number and cluster centroids inherently through the variable-length encoding and the evolution operators. The encoding scheme contains no redundancy. To enable the individuals of different lengths to exchange information properly, we develop a subspace crossover and a two-phase mutation operator. The operators employ the basic method of differential evolution and, in addition, they consider the spatial information of cluster layouts to generate offspring solutions. Particularly, each dimension of the parameter vector interacts with its correlated dimensions, which not only adapts the cluster number but also avoids the cross-dimension learning error. The experimental results show that our algorithm outperforms the state-of-the-art algorithms that it is able to identify the correct number of clusters and obtain a good cluster validation value.

Introduction

Determining the optimal number of clusters ($K$) and their precise locations is a fundamental challenge in data science. While traditional algorithms like K-means require $K$ to be predefined, Evolutionary Computation (EC) offers a path toward automatic clustering. However, standard EC approaches often struggle with two primary issues: encoding redundancy and cross-dimension learning errors.

The Pitfalls of Traditional Evolutionary Clustering

Most automatic clustering methods use fixed-length vectors with "switch" bits to toggle centroids on or off. This creates significant computational overhead as the algorithm optimizes "inactive" dimensions. Furthermore, standard crossover operators often swap centroids based on their index in a list rather than their spatial proximity. This "cross-dimension learning error" results in offspring that do not respect the underlying geometry of the data, leading to poor convergence.

Figure 1: (a) Cross-dimension learning error vs. correct spatial learning; (b) Redundancy in traditional switch-based encoding.

Elastic Differential Evolution (E-DE)

To overcome these limitations, we introduce Elastic Differential Evolution (E-DE). E-DE utilizes Elastic Encoding, where each individual is a variable-length vector containing only active centroids. This eliminates redundancy and focuses the search on relevant parameters.

Two-Phase Mutation and Subspace Crossover

The core of E-DE lies in its specialized operators:

  1. Two-Phase Mutation: This operator first adapts the number of clusters by applying DE logic to the vector lengths. In the second phase, it applies a Gaussian perturbation to fine-tune centroid coordinates.
  2. Subspace Crossover: Instead of index-based swapping, E-DE identifies physical regions (subspaces) in the feature space and swaps centroids within those regions. This ensures that the algorithm learns from spatially correlated neighbors, preserving the cluster layout.
Figure 2: The two-phase mutation operator handles variable-length vectors (a) and applies Gaussian perturbation for local search (b).

Experimental Validation

E-DE was tested on 19 datasets, including UCI benchmarks and complex synthetic sets with non-convex shapes and varying densities. The results demonstrate that E-DE achieves a superior Clustering Successful Ratio (CSR) of approximately 81% compared to state-of-the-art methods like ACDE. It shows particularly strong performance in high-dimensional spaces and datasets with unbalanced cluster densities.

Conclusion

By prioritizing spatial relationships over arbitrary indexing and employing an elastic encoding scheme, E-DE provides a robust and efficient framework for automatic data clustering. Future work will explore extending this approach to density-based clustering to better handle non-convex data structures.

Summary updated

Abstract

In many practical applications, it is crucial to perform automatic data clustering without knowing the number of clusters in advance. The evolutionary computation paradigm is good at dealing with this task, but the existing algorithms encounter several deficiencies, such as the encoding redundancy and the cross-dimension learning error. In this article, we propose a novel elastic differential evolution algorithm to solve automatic data clustering. Unlike traditional methods, the proposed algorithm considers each clustering layout as a whole and adapts the cluster number and cluster centroids inherently through the variable-length encoding and the evolution operators. The encoding scheme contains no redundancy. To enable the individuals of different lengths to exchange information properly, we develop a subspace crossover and a two-phase mutation operator. The operators employ the basic method of differential evolution and, in addition, they consider the spatial information of cluster layouts to generate offspring solutions. Particularly, each dimension of the parameter vector interacts with its correlated dimensions, which not only adapts the cluster number but also avoids the cross-dimension learning error. The experimental results show that our algorithm outperforms the state-of-the-art algorithms that it is able to identify the correct number of clusters and obtain a good cluster validation value.
BibTeX
@article{chen2019elastic,
  author = {Junxian Chen and Yue‐Jiao Gong and Wei–Neng Chen and Mengting Li and Jun Zhang},
  title = {{Elastic Differential Evolution for Automatic Data Clustering}},
  journal = {IEEE Transactions on Cybernetics},
  year = {2019},
  doi = {10.1109/tcyb.2019.2941707},
}
Figure