NMNN: Newtonian Mechanics-based Natural Neighbor Algorithm
Wentong Wang,Lijun Yang,Juntao Yang,Jinghui Zhang,Dongming Tang,Tao Liu
DOI: https://doi.org/10.1016/j.ins.2024.121200
IF: 8.1
2024-01-01
Information Sciences
Abstract:Natural neighbor (NaN) algorithm, as a parameter-free alternative to KNN, is widely used in various fields such as pattern recognition and machine learning. However, the original NaN algorithm only takes the Euclidean distance of the samples as the only criterion for similarity calculation. It does not reasonably reflect the relationship between the samples and affects convergence and accuracy. Newtonian mechanics considers the effect of forces from many perspectives. Consequently, in this paper, Newtonian mechanics is introduced to calculate the relationship between samples, then the Newtonian mechanics-based Natural Neighbor algorithm (NMNN) is proposed. At first, it introduces Newton's first, second, and third laws and the idea of gravity in the natural neighbor algorithm. Then, it computes the mass of the samples by the natural neighbor density. Moreover, it updates the similarity matrix through Newtonian mechanics, which makes the calculation results more accurate. The formation process of the natural neighbor can be regarded as the spontaneous mutual attraction of samples based on traction. Finally, the experimental results show that the convergence performance of the NMNN algorithm is better than that of the NaN algorithm, and it can achieve better results in applications such as unbalanced data, clustering, and outlier detection.