Manuscript Offprint
arXiv:2609.06468Sector-Mean: Deterministic Initialization of K-Means Centroids via Angular Sector Partitioning
Abhiyan Dhakal
Kathmandu University
Dhulikhel, Nepal
Pranish Kafle
Kathmandu University
Dhulikhel, Nepal
Rajani Chulyadyo
Kathmandu University
Dhulikhel, Nepal
Abstract—K-Means is one of the most widely used clustering algorithms, but its susceptibility to initial centroid selection remains a primary bottleneck for its convergence speed and clustering accuracy. This paper proposes Sector-Mean Initialization, a deterministic initialization strategy with O(N) time complexity that partitions the two-dimensional data space into angular sectors around the global centroid and initializes centroids using sector-wise means. We evaluate the method on established two-dimensional benchmarks (SIPU, Birch) and multiple real-world datasets, comparing against random, K-Means++, and Max-Min initialization under identical Lloyd iterations. The statistical analysis of Friedman's test (p<0.05) and Nemenyi post-hoc comparison indicates that, while delivering equivalent clustering quality as K-Means++ and Max-Min, Sector-Mean offers significant computational efficiency. Experimental results show that Sector-Mean reduces the initialization time by 74.9% and 59.8% in comparison to K-Means++ and max-min, respectively. And, it yields the lowest average number of iterations, achieving approximately 5% fewer iterations than K-Means++ and 16% fewer than max-min. These results highlight that Sector-Mean initialization offers a deterministic and computationally efficient initialization strategy while preserving cluster quality.
Index Terms—K-Means Clustering, Deterministic Initialization, Sector-Mean, Angular Partitioning, Centroid Initialization.
I. INTRODUCTION
Clustering is a fundamental task in unsupervised learning that aims to partition a set of data objects into multiple groups or clusters such that objects within the same cluster exhibit high intra-cluster similarity and low inter-cluster similarity [1]. Lloyd's algorithm [2], commonly referred to as K-Means algorithm [3], is a foundational and widely used partition-based clustering algorithm due to its conceptual simplicity, scalability and ease of implementation.
K-Means works by iteratively assigning each data point to its nearest centroid and then updating each centroid as the mean of the points assigned to it, repeating this process until convergence. Despite its popularity, the performance of K-Means heavily depends on the choice of initial centroids [4]. Poor initialization of the initial centroids can lead to slow convergence, unstable clustering outcomes, and suboptimal solutions caused by local minima. Thus, centroid initialization has become a critical factor influencing both the efficiency and effectiveness of K-Means clustering.
Since the clustering quality depends heavily on the selection of the initial centroid, numerous methods have been developed and widely adopted to mitigate the initialization sensitivity. For example, probabilistic methods such as K-Means++ [4] improve the clustering performance by selecting well-separated initial centroids, and hence offering theoretical guarantees on clustering quality and computational efficiency. However, such probabilistic approaches are inherently stochastic, which can lead to variability across runs, reduced reproducibility, and additional computational overhead due to repeated distance computations [5], [6]. On the other hand, deterministic strategies such as hierarchical partitioning, histogram/grid aggregation and geometry-aware heuristics deliver repeatability and single-pass behavior at the cost of potential sensitivity to data geometry or projection quality [7]–[10].
Motivated by the limitations of the existing centroid initialization strategies, we propose a novel deterministic initialization method for K-Means, Sector-Mean. This method is specifically designed for two-dimensional data and performs a geometric partitioning of the data space based on angular coordinates relative to the global mean. The space is divided into angular sectors, and the mean of each sector is selected as an initial centroid. This approach ensures comprehensive spatial coverage, eliminates the randomness of the traditional initialization techniques, and enhances runtime efficiency with O(N) time complexity.
Also, while multiple deterministic initialization algorithms have been proposed these algorithms differ in assumptions, computational cost, and clustering behavior, systematic evaluations across consistent experimental settings are limited. To demonstrate the effectiveness of our algorithm, it was evaluated alongside multiple widely used baseline algorithms within a common unified experimental setup, enabling fair and transparent comparison in terms of both computational efficiency and clustering quality.
The paper makes three main contributions. First, we propose “Sector-Mean,” a novel deterministic centroid initialization strategy with O(N) time complexity that minimizes the initialization latency while also preserving the clustering quality. Second, we conduct a comprehensive comparative analysis of the algorithm against multiple widely adopted clustering methods such as Random, K-Means++, and Max-Min [11], across datasets of varying size, structure, and complexity in a common experimental setup. Third, we provide strong empirical evidence, using the statistical validation (Friedman’s test and Nemenyi post-hoc analysis), demonstrating that our approach significantly reduces initialization time and the number of iterations without compromising clustering accuracy.
The K-Means++ algorithm [4] is one of the most widely used probabilistic sampling methods. It selects initial centroids sequentially with probability proportional to the squared distance from the previously chosen seeds. Due to its strong empirical performance, K-Means++ is being used as a standard for initialization. Several variants of this algorithm have been developed to improve the efficiency of the algorithm, including parallel or multi-pass variants such as K-Means [5] and MCMC-based approximations [6], [12], as they reduce the number of full data passes while retaining similar theoretical guarantees. Despite these advantages, probabilistic methods remain non-deterministic, resulting in variability across runs and reduced reproducibility. Additionally, K-Means++ can introduce latency for large datasets or resource constrained settings due to its higher time complexity of .
To eliminate randomness and ensure higher reproducibility, deterministic initialization approaches have been actively explored. Classic distance-based heuristics such as Max-Min [11] select centroids that maximize pairwise separation, improving coverage of the data space. While they are effective, they rely on repeated distance evaluations and thus the computational cost remains similar to the probabilistic approaches. Divisive partitioning approaches, including Var-Part and PCA-Part [7], [8], recursively split the data using variance or principal component projections to produce consistent and reproducible initial centroids. Although these methods exhibit deterministic behavior, they often involve additional projection, sorting, or recursive operations that increase computational overhead and may be sensitive to data orientation or projection quality.
Histogram and grid-based approaches divide the data space into small bins or cells in a single pass and place centroids at the representative points of these bins [9], [10]. These methods are simple, fast, and work well for large or streaming datasets. However, because the grid structure is fixed, they may not adapt well to the actual shape of the data, which can reduce accuracy when clusters are irregular. Density-based methods, such as Mean-Shift and Density Peaks [13], [14], find cluster centers by locating areas where the data is most concentrated. These methods can handle clusters of any shape and are generally more robust. However, they require extra computations, such as neighborhood or kernel calculations, which increase the runtime. As a result, they are often slower and less practical for quick K-Means initialization.
Most recently, methods with deterministic initialization and low computational cost have gained attention. Algorithms such as DISCERN [15], DK-Means [16], and cK-Means [17] provide efficient initial seeding, particularly in high-dimensional domains such as document or gene expression clustering. These approaches typically rely on additional preprocessing steps or assumptions about the data structure, so they mostly perform well in target settings but may not perform well in general settings. Closely related to our work are geometry-based strategies that use spatial ordering or angular information to guide centroid placement, including pointer-ring and radial selection techniques [18], [19]. Although these approaches utilize geometric properties of the data, they require complex selection procedures and also involve sorting that limits strict linear-time performance or straightforward vectorization. These approaches are the most direct predecessors to our proposed method. However, existing angular heuristics often rely on complex sorting mechanisms or lack direct vectorization. Sector-Mean is positioned within this deterministic aggregation family but distinguishes itself by extending geometry-aware angular partitioning to a simplified, vectorized single-pass initializer. It is specifically optimized to address the need for efficient, general-purpose initialization strategies for two-dimensional spatial data, ensuring complexity and high reproducibility.
III. PROPOSED ALGORITHM
In this section, we present our Sector-Mean algorithm for initializing cluster centroids for Lloyd's algorithm. This method partitions the input space into k angular sectors relative to the dataset's global mean to ensure a representative and deterministic initial distribution of centroids.
A. Mathematical Framework
Let be a dataset of points in , where each point . Let be the desired number of clusters.
Definition 1 (Global Center). The global geometric center, c, of the dataset is defined as the mean of all data points:
Definition 2 (Angular Mapping). For each point , we define the angular displacement relative to the global center :
Definition 3 (Sector Assignment). The dataset is partitioned into disjoint sectors . A point is assigned to sector based on its angle :
where . To handle the edge case where , the index is clamped to .
B. Step-by-Step Algorithmic Flow
Here is the pseudocode of the Sector-Mean algorithm.
-
Step 1: Compute Global Mean: The algorithm first calculates the geometric center of the entire dataset. This point serves as the origin for the polar coordinate transformation.
-
Step 2: Calculate Angular Positions: For every data point , the angle relative to is computed. This step is , as it requires exactly one pass over the data.
-
Step 3: Define Angular Sectors: The total angular range of radians is segmented into equal parts. This creates a partitioning of the 2D plane originating from the global mean.
-
Step 4: Assign Points to Sectors: Each point is mapped to its corresponding sector index . Mathematically, this mapping is expressed as:
- Step 5: Compute Sector Centroids: The initial cluster centroids are defined as the mean of all observations within each sector . To handle edge cases where a sector contains no data points, the centroid defaults to the global mean:
C. Pseudocode Implementation
Here is the pseudocode of the Sector-Mean algorithm.
IV. EXPERIMENTAL SETUP
This section presents the experimental setup used to evaluate the proposed Sector-Mean initialization method. We provide the description of the computational environment, datasets, baseline algorithms, parameter settings, evaluation metrics, and statistical analysis procedures used in the experiment.
All the experiments were conducted locally in a controlled environment for the precise measurement of the initialization time and total runtime. Baseline algorithms, like K-Means and K-Means++ and Max-Min were implemented directly in Python [20] without relying on external libraries for the unbiased comparison. The experimental stack consisted of NumPy [21] for numerical computation, Pandas [22] for aggregation and analysis of results, and Matplotlib [23] for visualization. Scikit-learn utilities [24] were used for dataset handling and metric computation. All timing measurements were obtained using Python's built-in time module. The same software configuration and execution environment were maintained across all experiments.
Algorithm 1 Sector-wise Mean Initialization (SMI)
Require: (Dataset), (Clusters)
Ensure: (Initial Centroids)
1: Compute global mean
2:
3:
4: for to do
5:
6:
7: Handle boundary conditions
8:
9:
10: end for
11: for to do
12: if then
13:
14: else
15: Fallback for empty sectors
16: end if
17: end for
18: return
A. Datasets
To evaluate performance across multiple structural regimes, the evaluation spans synthetic clustering benchmarks, large-scale synthetic spatial data, and real-world datasets. Table I summarizes the 15 two-dimensional datasets used, including sample cardinality and the number of clusters employed during evaluation.
TABLE I SUMMARY OF DATASET CHARACTERISTICS.
| Dataset | Type | N (samples) | Eval. k |
|---|---|---|---|
| Synthetic Datasets | |||
| A Series (A1–A3) | SIPU | 3,000–7,500 | 20, 35, 50 |
| S Series (S1–S4) | SIPU | 5,000 | 15 |
| Birch Set (Birch1–Birch3) | Birch | 100,000 | 100 |
| Real-World Spatial Datasets | |||
| UJIIndoorLoc | 2D Subset | 19,937 | 4 |
| California Housing | Lat–Long Subset | 20,640 | 4 |
| Real-World Datasets (PCA mapped to 2D) | |||
| Iris | PCA → 2D | 150 | 3 |
| Wine | PCA → 2D | 178 | 3 |
| MNIST | PCA → 2D | 70,000 | 10 |
-
Synthetic Datasets: Synthetic dataset were sourced primarily from the SIPU repository [25]. This repository provides highly controlled two-dimensional point sets having varying sample cardinality and cluster overlap. Datasets from the SIPU repository such as A-series and S-series were used, as they are widely adopted in clustering research due to their precisely defined geometric structures. A-series include three datasets (A1–A3) with increasing sample sizes of 3000, 5250 and 7500 and their corresponding cluster counts of 20, 35 and 50 cluster counts respectively. Similarly, S-series comprise four datasets (S1–S4) with 5000 fixed sample size and cluster count of 15 each, with varying cluster overlap characteristics. Additionally, we use the Birch family of synthetic spatial datasets [26] (Birch1–Birch3), each consisting of 100,000 points distributed across 100 clusters.
-
Real World Datasets: To capture real-world variability, we included spatial coordinate readings from the UJIIndoor-Loc dataset [27], with 19,937 samples spread across 4 clusters, and latitude-longitude pairs from the California Housing dataset [28], which comprises 20,640 data points with cluster count of 4. In addition, common tabular benchmarks, Iris [29], Wine [30], and MNIST [31], were projected into two dimensions using Principal Component Analysis (PCA) [32]. This dimensionality reduction ensures a consistent 2D geometric domain for evaluating the deterministic initialization logic of the Sector-Mean algorithm.
B. Clustering Protocol
All experiments use K-Means as the underlying clustering algorithm. The proposed method and baseline algorithm differ only in the procedure for selecting the initial centroid. This ensures that the performance differences arise solely from initialization. Random initialization, K-Means++ initialization, and Max-Min initialization are considered as baseline initialization methods in this experiment.
-
Random Initialization: Random initialization serves as a universal baseline, where k initial centroids are sampled uniformly from the datasets. While Random Initialization is computationally efficient and a standard algorithm in many implementations, this method is highly susceptible to stochastic variability. The randomness often results in poor initialization leading to slow convergence and a high probability of reaching suboptimal local minima, mostly in dataset with complex or overlapping clusters.
-
K-Means++ Initialization: K-Means++ improves random selection using a distance-aware probabilistic strategy. In this method, the first centroid is chosen at random, while each subsequent centroid is selected with a probability proportional to its squared distance from the nearest already-chosen centroid. This strategy generally lowers the expected sum-of-squares error and helps the algorithm converge faster. In our implementation, K-Means++ is used in its standard stochastic form, and we control the random seed to ensure reproducibility across repeated runs.
-
Max-Min Initialization: Max-Min initialization is a distance-based strategy that selects the first centroid randomly and each subsequent centroid as the point farthest from all previously chosen centroids. This ensures well-dispersed initial centers, which can improve convergence for widely separated clusters. However, its reliance on extreme distances makes it sensitive to outliers and clusters with uneven densities. Comparing our method against Max-Min highlights performance relative to a fully deterministic, dispersion-focused initializer.
V. EVALUATION
This section describes the methodology used to assess the performance of the proposed clustering initialization strategies.
Both the quality of the resulting clusters and the computational efficiency of the algorithms across multiple datasets. Moreover, statistical significance testing is conducted to determine whether observed performance differences are consistent.
A. Evaluation Metrics
Clustering performance was evaluated using both internal optimization measures and external clustering-quality metrics.
-
Inertia (Sum of Squared Errors, SSE): Inertia measures compactness within cluster by computing the total sum of squared distances of data points to their respective centroids [3]. Lower inertia values mean more cohesive clusters and show a better optimization of the clustering objective [33].
-
Computational Efficiency: Efficiency was calculated in terms of the time required for centroid initialization, the total execution time of the clustering algorithm, and the number of iterations required for convergence. These indicators indicate the practical computational overhead associated with each initialization strategy [34].
-
Silhouette Coefficient: The silhouette score evaluates cluster quality by simultaneously accounting for intra-cluster compactness and inter-cluster separation, with values ranging from -1 to 1 [35]. Higher scores indicate more distinct and well-formed clusters. For scalability, the coefficient was computed on a randomly drawn subsample of 10,000 observations, balancing computational feasibility with statistical reliability.
-
External Validation (ARI and NMI): When ground-truth labels were available, external validation was conducted using the Adjusted Rand Index (ARI) [36] and Normalized Mutual Information (NMI) [37]. Both metrics assess the similarity between predicted clusters and true class distributions. Values close to 1 indicate strong alignment with the ground truth. The results are shown in the appendix section.
B. Statistical Significance Analysis
To assess the robustness and generalizability of observed performance differences across datasets, non-parametric statistical testing was employed [38]. The Friedman test was first applied to compare the performance of the initialization strategies. If the null hypothesis was rejected at a significance level of , Nemenyi post-hoc tests were conducted for pairwise comparisons. Results were visualized using Critical Difference (CD) diagrams, which summarize the relative performance of methods through average ranks. For the ranking procedure, metrics with lower-is-better semantics (inertia, number of iterations, and execution time) and higher-is-better semantics (Silhouette coefficient, ARI, and NMI) were treated accordingly to ensure consistent interpretability.
VI. RESULTS AND DISCUSSION
This section presents a comparative evaluation of Sector-Mean algorithm against the baselines. The trade-offs between computational efficiency and clustering quality are analyzed, which are also supported by non-parametric statistical validation.
TABLE II MEAN INITIALIZATION TIMES (MS) (PER-DATASET).
| Dataset | K-Means++ | Max-Min | Random | Sector-Mean |
|---|---|---|---|---|
| A Series | ||||
| A1 set | 1.077 | 0.729 | 0.386 | 0.218 |
| A2 set | 1.344 | 0.696 | 0.276 | 0.197 |
| A3 set | 2.121 | 1.024 | 0.284 | 0.208 |
| S Series | ||||
| S1 set | 0.671 | 0.405 | 0.262 | 0.189 |
| S2 set | 0.657 | 0.414 | 0.281 | 0.210 |
| S3 set | 0.738 | 0.438 | 0.295 | 0.215 |
| S4 set | 0.691 | 0.417 | 0.268 | 0.200 |
| Birch Sets | ||||
| Birch1 set | 54.146 | 28.733 | 1.300 | 2.282 |
| Birch2 set | 54.332 | 28.030 | 1.329 | 1.981 |
| Birch3 set | 52.808 | 27.400 | 1.295 | 2.147 |
| Spatial Datasets | ||||
| California Housing (Lat-Long) | 0.731 | 0.488 | 0.443 | 0.604 |
| UJIIndoorLoc (2D subset) | 0.694 | 0.462 | 0.465 | 0.535 |
| Datasets PCA mapped to 2D | ||||
| Iris | 0.532 | 0.362 | 0.165 | 0.068 |
| MNIST | 12.489 | 6.437 | 0.926 | 1.907 |
| Wine | 0.529 | 0.362 | 0.165 | 0.069 |
TABLE III PER-DATASET ITERATION COUNTS.
| Dataset | K-Means++ | Max-Min | Random | Sector-Mean |
|---|---|---|---|---|
| A Series | ||||
| A1 set | 19.450 | 17.450 | 21.350 | 34.000 |
| A2 set | 20.150 | 17.050 | 27.000 | 16.000 |
| A3 set | 19.100 | 23.950 | 31.900 | 26.000 |
| S Series | ||||
| S1 set | 17.600 | 9.000 | 18.000 | 7.500 |
| S2 set | 18.400 | 17.350 | 29.000 | 10.000 |
| S3 set | 22.300 | 24.550 | 23.100 | 15.000 |
| S4 set | 34.400 | 40.150 | 55.750 | 21.000 |
| Birch Sets | ||||
| Birch1 set | 87.500 | 103.700 | 107.100 | 58.000 |
| Birch2 set | 42.950 | 45.050 | 51.000 | 44.000 |
| Birch3 set | 85.300 | 76.050 | 131.750 | 132.000 |
| Spatial Datasets | ||||
| California Housing (Lat-Long) | 8.400 | 10.650 | 10.650 | 5.000 |
| UJIIndoorLoc (2D subset) | 10.050 | 5.000 | 5.800 | 6.000 |
| PCA Mapped (2D) | ||||
| Iris | 5.000 | 4.900 | 6.300 | 8.000 |
| MNIST | 174.450 | 246.300 | 187.500 | 155.000 |
| Wine | 5.000 | 5.250 | 6.900 | 9.000 |
A. Computational Efficiency
The proposed Sector-Mean method demonstrates a clear advantage in computational scalability. As shown in Table II, Sector-Mean initializes in approximately 2ms on large-scale synthetic datasets such as the Birch series (). In contrast, K-Means++ requires over 54ms, and Max-Min requires roughly 28ms, showing Sector-Mean algorithm's
TABLE IV STATISTICAL COMPARISON OF INITIALIZATION STRATEGIES USING THE FRIEDMAN TEST FOLLOWED BY THE NEMENYI POST-HOC TEST ACROSS 15 DATASETS ().
| Metric | Algorithm | Rank | p-value | Outcome |
|---|---|---|---|---|
| Inertia | Sector-Mean | 2.133 | – | (Control) |
| K-Means++ | 2.267 | 0.992 | Statistical Tie | |
| Max-Min | 2.067 | 0.999 | Statistical Tie | |
| Random | 3.533 | 0.016 | Sig. Different | |
| Init Time | Sector-Mean | 1.533 | – | (Control) |
| K-Means++ | 4.000 | < 0.001 | Sig. Different | |
| Max-Min | 2.800 | 0.036 | Sig. Different | |
| Random | 1.667 | 0.992 | Statistical Tie | |
| Iterations | Sector-Mean | 2.067 | – | (Control) |
| K-Means++ | 2.133 | 0.999 | Statistical Tie | |
| Max-Min | 2.233 | 0.985 | Statistical Tie | |
| Random | 3.567 | 0.008 | Sig. Different | |
| Silhouette Coefficient | Sector-Mean | 2.333 | – | (Control) |
| K-Means++ | 2.000 | 0.942 | Statistical Tie | |
| Max-Min | 3.600 | 0.999 | Statistical Tie | |
| Random | 2.067 | 0.006 | Sig. Different |
dominance on 2D space, especially for large-scale datasets. Overall, Sector-Mean reduces initialization time by an average of 74.9% compared to K-Means++, and 59.8% compared to Max-Min. This validates that the single-pass sectoring approach effectively eliminates the overhead associated with the iterative distance computations required by both K-Means++ and Max-Min.
Furthermore, efficient initialization translates to faster convergence of the Lloyd's algorithm. Table III details the number of iterations required to reach convergence. Sector-Mean achieves the lowest iteration count in the majority of test cases. For instance, on the complex Birch1 dataset, Sector-Mean reduced the iteration count to 58.0, compared to 87.5 for K-Means++, 103.7 for Max-Min and 107.1 for Random. While Sector-Mean shows higher iteration counts on Birch3 (132.0 vs 85.3 for K-Means++ and 76.050 for Max-Min), its superior aggregate rank (see Table IV) demonstrates that it generally provides a more effective initialization across diverse geometric distributions than the alternatives.
B. Clustering Quality
Efficiency is often a trade-off for quality, but the results indicate that Sector-Mean maintains high clustering performance. While K-Means++ is explicitly designed to minimize variance, Sector-Mean achieves competitive inertia values across the majority of benchmarks, indicating that angular partitioning effectively approximates the optimal density centers. Furthermore, regarding structural validity, Sector-Mean achieves a mean silhouette score (0.502) virtually identical to that of K-Means++ (0.501), and even yields superior separation on datasets with distinct spatial structures such as the S-series and UJIndoorLoc. This suggests that the proposed deterministic approach captures the underlying data geometry as robustly as expensive probabilistic sampling.
C. Statistical Significance Analysis
Across the diverse set of 15 datasets, the Friedman test revealed statistically significant performance difference among the proposed and the baselines algorithms for all three evaluation metrics (Inertia: , ; Init Time: , ; Iterations: , ) rejecting the null hypothesis that all the algorithms perform equivalently. Following the statistical comparison framework recommended by J. Demšar [38], we conducted Nemenyi post-hoc pairwise comparisons using the critical difference of CD=1.211 (see appendix).
As shown in Table IV, Sector-Mean achieves clustering quality statistically comparable to K-Means++ and Max-Min while significantly outperforming random. For initialization time, it obtains the best rank and is significantly faster than both K-Means++ and Max-Min. For convergence, it requires fewer iterations than random with no significant difference from the optimized baselines. Overall, the proposed method consistently provides competitive effectiveness with statistically significant improvements in computational efficiency across datasets.
VII. CONCLUSION
This paper proposed Sector-Mean, a deterministic initialization algorithm specifically designed to optimize K-Means clustering for two-dimensional data. By partitioning the data space into angular sectors, the method achieves O(N) time complexity and eliminates the variability of probabilistic approaches. Experiments show that Sector-Mean algorithm significantly reduces initialization time, while achieving the lowest convergence iterations. Moreover, statistical analysis confirms that this significant gain in computational efficiency does not compromise clustering quality. These findings establish Sector-Mean as a highly efficient and reproducible alternative for 2D spatial clustering tasks.
REFERENCES
[1] J. Han and M. Kamber, "Jiawei Han Department of Computer Science University of Illinois at Urbana-Champaign www.cs.uiuc.edu/~hanj." [2] S. Lloyd, "Least squares quantization in PCM," IEEE Transactions on Information Theory, vol. 28, no. 2, pp. 129–137, Mar. 1982. [Online]. Available: https://ieeexplore.ieee.org/document/1056489 [3] J. Macqueen, "SOME METHODS FOR CLASSIFICATION AND ANALYSIS OF MULTIVARIATE OBSERVATIONS," 1967. [4] D. Arthur and S. Vassilvitskii, "k-means++: The Advantages of Careful Seeding," 2007. [5] B. Bahmani, B. Moseley, A. Vattani, R. Kumar, and S. Vassilvitskii, "Scalable K-Means++," Mar. 2012, arXiv:1203.6402 [cs]. [Online]. Available: http://arxiv.org/abs/1203.6402 [6] O. Bachem, M. Lucic, S. H. Hassani, and A. Krause, "Approximate K-Means++ in Sublinear Time," Proceedings of the AAAI Conference on Artificial Intelligence, vol. 30, no. 1, Feb. 2016. [Online]. Available: https://ojs.aaai.org/index.php/AAAI/article/view/10259 [7] T. Su and J. G. Dy, "In search of deterministic methods for initializing K-means and Gaussian mixture clustering," Intelligent Data Analysis, vol. 11, no. 4, pp. 319–338, Jul. 2007. [Online]. Available: https://journals.sagepub.com/doi/full/10.3233/IDA-2007-11402 [8] M. E. Celebi and H. A. Kingravi, "Deterministic initialization of the k-means algorithm using hierarchical clustering," International Journal of Pattern Recognition and Artificial Intelligence, vol. 26, no. 07, p. 1250018, Nov. 2012. [Online]. Available: https://www.worldscientific.com/doi/abs/10.1142/S0218001412500188
[9] C. Gingles and M. E. Celebi, "Histogram-Based Method for Effective Initialization of the K-Means Clustering Algorithm." [10] S. J. Redmond and C. Heneghan, "A method for initialising the K-means clustering algorithm using kd-trees," Pattern Recognition Letters, vol. 28, no. 8, pp. 965–973, Jun. 2007. [Online]. Available: https://www.sciencedirect.com/science/article/pii/S0167865507000165 [11] T. F. Gonzalez, "Clustering to minimize the maximum intercluster distance," Theoretical Computer Science, vol. 38, pp. 293–306, Jan. 1985. [Online]. Available: https://www.sciencedirect.com/science/article/pii/0304397585902245 [12] O. Bachem, M. Lucic, and A. Krause, "Distributed and Provably Good Seedings for k-Means in Constant Rounds," in Proceedings of the 34th International Conference on Machine Learning. PMLR, Jul. 2017, pp. 292–300. [Online]. Available: https://proceedings.mlr.press/v70/bachem17b.html [13] D. Comaniciu and P. Meer, "Mean shift: a robust approach toward feature space analysis," IEEE Transactions on Pattern Analysis and Machine Intelligence, vol. 24, no. 5, pp. 603–619, May 2002. [Online]. Available: https://ieeexplore.ieee.org/abstract/document/1000236 [14] Y. Cheng, "Mean shift, mode seeking, and clustering," IEEE Transactions on Pattern Analysis and Machine Intelligence, vol. 17, no. 8, pp. 790–799, Aug. 1995. [Online]. Available: https://ieeexplore.ieee.org/abstract/document/400568 [15] A. Hassani, A. Irmananesh, M. Eftekhari, and A. Salemi, "DISCERN: diversity-based selection of centroids for k-estimation and rapid non-stochastic clustering," International Journal of Machine Learning and Cybernetics, vol. 12, no. 3, pp. 635–649, Mar. 2021. [Online]. Available: https://doi.org/10.1007/s13042-020-01193-5 [16] R. Jothi, S. K. Mohanty, and A. Ojha, "DK-means: a deterministic K-means clustering algorithm for gene expression analysis," Pattern Analysis and Applications, vol. 22, no. 2, pp. 649–667, May 2019. [Online]. Available: http://link.springer.com/10.1007/s10044-017-0673-0 [17] A. Layeb, "ck-means and fck-means: Two Deterministic Initialization Procedures for k-means Algorithm Using a Modified Crowding Distance," Acta Informatica Pragensia, vol. 12, no. 2, pp. 379–399, 2023. [Online]. Available: https://www.ceeol.com/search/article-detail?id=1211721 [18] K. Niu, S. B. Zhang, and J. L. Chen, "An Initializing Cluster Centers Algorithm Based on Pointer Ring," in Sixth International Conference on Intelligent Systems Design and Applications, vol. 1, Oct. 2006, pp. 655–660, iSSN: 2164-7151. [Online]. Available: https://ieeexplore.ieee.org/abstract/document/4021517 [19] "An Initial Centroid Selection Method based on Radial and Angular Coordinates for K-means Algorithm." [20] G. Van Rossum and F. L. Drake, Python 3 Reference Manual. Scotts Valley, CA: CreateSpace, 2009. [21] C. R. Harris, K. J. Millman, S. J. v. d. Walt, R. Gommers, P. Virtanen, D. Courmapeau, E. Wieser, J. Taylor, S. Berg, N. J. Smith, R. Kern, M. Picus, S. Hoyer, M. H. v. Kerkwijk, M. Brett, A. Haldane, J. F. d. Rio, M. Wiebe, P. Peterson, P. Gérard-Marchant, K. Sheppard, T. Reddy, W. Weckesser, H. Abbasi, C. Gohlke, and T. E. Oliphant, "Array programming with NumPy," Nature, vol. 585, no. 7825, pp. 357–362, Sep. 2020. [Online]. Available: https://doi.org/10.1038/s41586-020-2649-2 [22] T. p. d. team, "pandas-dev/pandas: Pandas," Jan. 2026. [Online]. Available: https://zenodo.org/records/18328522 [23] J. D. Hunter, "Matplotlib: A 2D Graphics Environment," Computing in Science & Engineering, vol. 9, no. 3, pp. 90–95, May 2007. [Online]. Available: https://ieeexplore.ieee.org/document/4160265 [24] F. Pedregosa, G. Varoquaux, A. Gramfort, V. Michel, B. Thirion, O. Grisel, M. Blondel, P. Prettenhofer, R. Weiss, V. Dubourg, J. Vanderplas, A. Passos, D. Courmapeau, M. Brucher, M. Perrot, and E. Duchesnay, "Scikit-learn: Machine Learning in Python," Journal of Machine Learning Research, vol. 12, pp. 2825–2830, 2011. [25] P. Franti and S. Sieranoja, "K-means properties on six clustering benchmark datasets," Applied Intelligence, vol. 48, no. 12, pp. 4743–4759, Dec. 2018. [Online]. Available: https://doi.org/10.1007/s10489-018-1238-7 [26] T. Zhang, R. Ramakrishnan, and M. Livny, "BIRCH: an efficient data clustering method for very large databases," SIGMOD Rec., vol. 25, no. 2, pp. 103–114, Jun. 1996. [Online]. Available: https://dl.acm.org/doi/10.1145/235968.233324 [27] J. Torres-Sospedra, R. Montoliu, A. Martínez-Usó, J. Avariento, T. Arnau, M. Benedito-Bordouau, and J. Huerta, UJIndoorLoc: A new multi-building and multi-floor database for WLAN fingerprint-based indoor localization problems, Oct. 2014.
[28] R. Kelley Pace and R. Barry, "Sparse spatial autoregressions," Statistics & Probability Letters, vol. 33, no. 3, pp. 291–297, May 1997. [Online]. Available: https://www.sciencedirect.com/science/article/pii/S016771529600140X
[29] R. A. Fisher, “The Use of Multiple Measurements in Taxonomic Problems,” Annals of Eugenics, vol. 7, no. 2, pp. 179–188, 1936, _eprint: https://onlinelibrary.wiley.com/doi/pdf/10.1111/j.1469-1809.1936.tb02137.x. [Online]. Available: https://onlinelibrary.wiley.com/doi/abs/10.1111/j.1469-1809.1936.tb02137.x
[30] S. Aeberhard, D. Coomans, and O. de Vel, “Comparative analysis of statistical pattern recognition methods in high dimensional settings,” Pattern Recognition, vol. 27, no. 8, pp. 1065–1077, Aug. 1994. [Online]. Available: https://www.sciencedirect.com/science/article/pii/0031320394901457
[31] L. Deng, “The MNIST Database of Handwritten Digit Images for Machine Learning Research [Best of the Web],” IEEE Signal Processing Magazine, vol. 29, no. 6, pp. 141–142, Nov. 2012. [Online]. Available: https://ieeexplore.ieee.org/document/6296535
[32] A. Maćkiewicz and W. Ratajczak, “Principal components analysis (PCA),” Computers & Geosciences, vol. 19, no. 3, pp. 303–342, Mar. 1993. [Online]. Available: https://www.sciencedirect.com/science/article/pii/009830049390090R
[33] M. Ahmed, R. Seraj, and S. M. S. Islam, “The k-means Algorithm: A Comprehensive Survey and Performance Evaluation,” Electronics, vol. 9, no. 8, p. 1295, Aug. 2020. [Online]. Available: https://www.mdpi.com/2079-9292/9/8/1295
[34] A. M. Ikotun, M. S. Almutari, and A. E. Ezugwu, “K-Means-Based Nature-Inspired Metaheuristic Algorithms for Automatic Data Clustering Problems: Recent Advances and Future Directions,” Applied Sciences, vol. 11, no. 23, p. 11246, Jan. 2021. [Online]. Available: https://www.mdpi.com/2076-3417/11/23/11246
[35] P. J. Rousseeuw, “Silhouettes: A graphical aid to the interpretation and validation of cluster analysis,” Journal of Computational and Applied Mathematics, vol. 20, pp. 53–65, Nov. 1987. [Online]. Available: https://www.sciencedirect.com/science/article/pii/0377042787901257
[36] L. Hubert and P. Arabie, “Comparing partitions,” Journal of Classification, vol. 2, no. 1, pp. 193–218, Dec. 1985. [Online]. Available: https://doi.org/10.1007/BF01908075
[37] H. van der Hoef and M. J. Warrens, “Understanding information theoretic measures for comparing clusterings,” Behaviormetrika, vol. 46, no. 2, pp. 353–370, Oct. 2019. [Online]. Available: https://doi.org/10.1007/s41237-018-0075-7
[38] J. Dems'ar, “Statistical Comparisons of Classifiers over Multiple Data Sets,” 2006.