Attention-based Local Mean K-Nearest Centroid Neighbor Classifier

作者:

Highlights:

摘要

Among classic data mining algorithms, the K-Nearest Neighbor (KNN)-based methods are effective and straightforward solutions for the classification tasks. However, most KNN-based methods do not fully consider the impact across different training samples in classification tasks, which leads to performance decline. To address this issue, we propose a method named Attention-based Local Mean K-Nearest Centroid Neighbor Classifier (ALMKNCN), bridging the nearest centroid neighbor computing with the attention mechanism, which fully considers the influence of each training query sample. Specifically, we first calculate the local centroids of each class with the given query pattern. Then, our ALMKNCN introduces the attention mechanism to calculate the weight of pseudo-distance between the test sample to each class centroid. Finally, based on attention coefficient, the distances between the query sample and local mean vectors are weighted to predict the classes for query samples. Extensive experiments are carried out on real data sets and synthetic data sets by comparing ALMKNCN with the state-of-art KNN-based methods. The experimental results demonstrate that our proposed ALMKNCN outperforms the compared methods with large margins.

论文关键词:Attention mechanism,K-Nearest Neighbor,Pattern classification,Data mining

论文评审过程:Received 25 October 2021, Revised 16 February 2022, Accepted 30 March 2022, Available online 12 April 2022, Version of Record 22 April 2022.

论文官网地址:https://doi.org/10.1016/j.eswa.2022.117159