[Paper Review] Distributed k-means algorithm
This paper presents a fully distributed k-means algorithm for wireless sensor networks, enabling agents with high-dimensional observations to autonomously cluster based on local one-hop communication. The method ensures convergence to the same objective function value as centralized k-means, even when clusters are topologically disconnected, by using finite-time average consensus to compute centroids and maintain cluster assignments in a decentralized manner.
In this paper we provide a fully distributed implementation of the k-means clustering algorithm, intended for wireless sensor networks where each agent is endowed with a possibly high-dimensional observation (e.g., position, humidity, temperature, etc.) The proposed algorithm, by means of one-hop communication, partitions the agents into measure-dependent groups that have small in-group and large out-group "distances". Since the partitions may not have a relation with the topology of the network--members of the same clusters may not be spatially close--the algorithm is provided with a mechanism to compute the clusters'centroids even when the clusters are disconnected in several sub-clusters.The results of the proposed distributed algorithm coincide, in terms of minimization of the objective function, with the centralized k-means algorithm. Some numerical examples illustrate the capabilities of the proposed solution.
Motivation & Objective
- To develop a fully decentralized k-means clustering algorithm suitable for large-scale wireless sensor networks with high-dimensional agent observations.
- To ensure that the distributed implementation achieves the same objective function minimization as the centralized k-means algorithm.
- To enable accurate centroid computation even when clusters are disconnected in the network topology.
- To reduce memory complexity from O((k+n)d) to O(kd) compared to centralized approaches, enabling deployment on resource-constrained devices.
- To support real-time, scalable clustering in dynamic and distributed environments such as mobile robot coordination and environmental monitoring.
Proposed method
- The algorithm uses a two-phase iterative process: cluster assignment based on nearest centroid and centroid refinement via consensus.
- Finite-time average consensus algorithms are employed to compute cluster centroids across disconnected sub-clusters, ensuring convergence even without topological connectivity.
- Each agent maintains local state variables for cluster assignment (rij) and centroid estimates (cj), updated using local communication and consensus protocols.
- The consensus phase uses weighted averaging with coefficients derived from minimal polynomial and observability matrix computations to achieve finite-time convergence.
- The algorithm integrates preparatory consensus steps to compute intermediate values required for centroid updates, with δi steps per agent for finite-time convergence.
- The objective function D(T) is minimized iteratively, with convergence guaranteed when changes fall below a threshold ∆max.
Experimental results
Research questions
- RQ1Can a fully distributed k-means algorithm achieve the same objective function minimization as the centralized version in a network of agents with high-dimensional observations?
- RQ2How can cluster centroids be accurately computed in a distributed manner when clusters are topologically disconnected?
- RQ3What consensus mechanism enables finite-time convergence of centroid estimates across agents with limited communication?
- RQ4How does the proposed algorithm compare in time and memory complexity to centralized k-means, especially in resource-constrained settings?
- RQ5Can the algorithm maintain correctness and convergence under dynamic network conditions or noisy measurements?
Key findings
- The distributed k-means algorithm achieves identical objective function minimization as the centralized version, as confirmed by Theorem 1 and simulation results.
- The algorithm reduces memory complexity from O((k+n)d) to O(kd), making it feasible for low-resource devices.
- In simulations, the distributed algorithm matched the centralized k-means in cluster assignment and centroid positions, with objective function values differing by less than 1e-6.
- The centroid refinement phase required approximately 85% of the total consensus iterations, indicating high computational efficiency in the consensus phase.
- The algorithm successfully partitions agents into clusters based on observation similarity, even when spatially distant agents belong to the same cluster due to similar observations.
- The method is robust to network disconnections, as demonstrated in examples where clusters were formed across disconnected subgraphs based on observation similarity.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.