Abstract
Grouping similar objects is a fundamental tool of scientific analysis, ubiquitous in disciplines from biology and chemistry to astronomy and pattern recognition. Inspired by the torque balance that exists in gravitational interactions when galaxies merge, we propose a novel clustering method based on two natural properties of the universe: mass and distance. The concept of torque describing the interactions of mass and distance forms the basis of the proposed parameter-free clustering algorithm, which harnesses torque balance to recognize any cluster, regardless of shape, size, or density. The gravitational interactions govern the merger process, while the concept of torque balance reveals partitions that do not conform to the natural order for removal. Experiments on benchmark data sets show the enormous versatility of the proposed algorithm.
Introduction
Clustering is a cornerstone of data science, yet traditional methods often struggle with specific data characteristics. K-means requires a predefined number of clusters ($k$) and fails on non-spherical shapes. Hierarchical clustering suffers from high computational complexity ($O(n^2)$), and density-based methods like DBSCAN require sensitive parameter tuning. To address these challenges, we introduce Torque Clustering (TC), a scalable, robust, and parameter-free algorithm inspired by celestial mechanics.
Methodology: The Torque Clustering Framework
The TC algorithm treats data points as masses that merge based on gravitational principles. The process follows a hierarchical progression where every data point begins as a cluster with a mass of 1.
Mass-Based Merging and the Torque Metric
Clusters merge with their 1-nearest neighbor only if the target cluster has an equal or greater mass. For every connection, TC calculates a torque-inspired metric based on the mass product ($M_i$) and the squared distance ($D_i$) between clusters.
Identifying Abnormal Connections
In physics, torque is the product of force and lever length. TC identifies "abnormal" connections—those characterized by both a high mass product and a large distance. These represent unnatural merges that violate the "torque balance" of the system. By plotting $M_i$ against $D_i$ in a decision graph, these outliers can be identified and removed to reveal the natural partitions of the data.
Experimental Evaluation
TC was evaluated against 13 diverse datasets, including synthetic 2D benchmarks (spirals, varying densities) and real-world high-dimensional data such as RNA-Seq gene expressions (20,531 dimensions) and the MNIST digits database.
Key Results
- Accuracy and Robustness: TC achieved the highest average rank (1.4 for NMI and 1.3 for ACC) across all benchmarks, outperforming K-means++, DPC, and FINCH. It successfully handled noisy and unbalanced datasets where density-based algorithms often fail.
- Cluster Estimation: TC correctly identified the number of clusters in 10 out of 12 datasets without manual input.
- Efficiency: By utilizing 1-nearest neighbor searches and a shallow hierarchical tree (averaging 8.4 layers), TC achieves a time complexity of $O(n \log n)$, making it highly scalable for large datasets.
Conclusion
Torque Clustering provides a universal solution for data partitioning by defining what a connection should not be. By leveraging the physical intuition of torque balance, it avoids the pitfalls of parameter-dependent methods. Future work will focus on refining automated outlier detection in decision graphs to enhance the algorithm's performance in extremely sparse or imbalanced data environments.
Summary updated