Skip to main navigation Skip to search Skip to main content

A K-Nearest Centroid Neighbor with atention Classifier

  • Rui Huang
  • , Ying Ma*
  • , Tian Wang
  • , Guo Qi Li
  • , Ming Yan
  • *Corresponding author for this work
  • Xiamen University of Technology
  • Agency for Science, Technology and Research, Singapore
  • Hunan First Normal University
  • Center for Brain Inspired Computing Research

Research output: Chapter in Book/Report/Conference proceedingConference contributionpeer-review

Abstract

Among classic algorithms of data mining, the K-nearest neighbor based methods are simple and effective pattern classification algorithms. However, most KNN-based methods do not fully take into account the impact of different training sample points on classification, lead to inaccurate classification. To address this issue, we propose a scheme named Attention-based local mean K-Nearest Centroid Neighbor Classifier (ALMKNCN), combining nearest centroid neighbor with attention mechanism, the influence of each training sample on the query sample is fully considered. Given the query pattern, we first calculate the local centroid mean vector for each class, and then use the idea of attention mechanism to calculate the weight of pseudo-distance between each class and test sample. Finally, based on attention coefficient, the distances between the query sample and local mean vectors are weighted to determine the class of the query sample. Extensive experiments on UCI and KEEL data sets are carried out by comparing ALMKNCN to the state-of-art KNN-based methods. The experimental results demonstrate that the proposed ALMKNCN outperforms the related competitive KNN-based methods with more effectiveness.

Original languageEnglish
Title of host publicationProceedings of 2021 5th International Conference on Computer Science and Artificial Intelligence, CSAI 2021
PublisherAssociation for Computing Machinery
Pages156-161
Number of pages6
ISBN (Electronic)9781450384155
DOIs
StatePublished - 4 Dec 2021
Externally publishedYes
Event5th International Conference on Computer Science and Artificial Intelligence, CSAI 2021 - Virtual. Online, China
Duration: 4 Dec 20216 Dec 2021

Publication series

NameACM International Conference Proceeding Series

Conference

Conference5th International Conference on Computer Science and Artificial Intelligence, CSAI 2021
Country/TerritoryChina
CityVirtual. Online
Period4/12/216/12/21

Keywords

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

Fingerprint

Dive into the research topics of 'A K-Nearest Centroid Neighbor with atention Classifier'. Together they form a unique fingerprint.

Cite this