Attention-based Local Mean K-Nearest Centroid Neighbor Classifier

  • Ying Ma
  • , Rui Huang*
  • , Ming Yan
  • , Guoqi Li
  • , Tian Wang
  • *Corresponding author for this work

Research output: Contribution to journalArticlepeer-review

Abstract

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.

Original languageEnglish
Article number117159
JournalExpert Systems with Applications
Volume201
DOIs
StatePublished - 1 Sep 2022
Externally publishedYes

Keywords

  • Attention mechanism
  • Data mining
  • K-Nearest Neighbor
  • Pattern classification

Fingerprint

Dive into the research topics of 'Attention-based Local Mean K-Nearest Centroid Neighbor Classifier'. Together they form a unique fingerprint.

Cite this