arXiv:2609.06468cs.LGSep 2026

Manuscript Offprint

arXiv:2609.06468

Sector-Mean: Deterministic Initialization of K-Means Centroids via Angular Sector Partitioning

Abhiyan Dhakal, Pranish Kafle, Rajani Chulyadyo

Abhiyan Dhakal ID^{ID}

Kathmandu University

Dhulikhel, Nepal

itsabhiyandhakal@gmail.com

Pranish Kafle ID^{ID}

Kathmandu University

Dhulikhel, Nepal

pranishkafle1@gmail.com

Rajani Chulyadyo ID^{ID}

Kathmandu University

Dhulikhel, Nepal

rajani.chulyadyo@ku.edu.np

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.

References (38)