• Cite Icon114
  • https://doi.org/10.1007/978-3-319-14717-8_39Copy DOI Icon

KNN Algorithm with Data-Driven k Value

  • Jan 1, 2014
  • Debo Cheng +4 more
Show More
  • Abstract
  • Literature Map
  • References
  • Citations
  • Similar Papers
Abstract

This paper proposes a new k Nearest Neighbor (kNN) algorithm based on sparse learning, so as to overcome the drawbacks of the previous kNN algorithm, such as the fixed k value for each test sample and the neglect of the correlation of samples. Specifically, the paper reconstructs test samples by training samples to learn the optimal k value for each test sample, and then uses kNN algorithm with the learnt k value to conduct all kinds of tasks, such as classification, regression, and missing value imputation. The rationale of the proposed method is that different test samples should be assigned different k values in kNN algorithm, and learning the optimal k value for each test sample should be taken the correlation of data into account. To this end, in the reconstruction process, the proposed method is designed to achieve the minimal reconstruction error via a least square loss function, and employ an l1-norm regularization term to create the element-wise sparsity in the reconstruction coefficient, i.e., sparsity appearing in the element of the coefficient matrix. For achieving effectiveness, the Locality Preserving Projection (LPP) is employed to keep the local structures of data. Finally, the experimental results on real datasets, and the experimental results show that the proposed kNN algorithm is better than the state-of-the-art algorithms in terms of different learning tasks, such as classification, regression, and missing value imputation.

Similar Papers
  • Research Article
  • Citations208

An Experimental Comparison of the Nearest-Neighbor and Nearest-Hyperrectangle Algorithms

  • Apr 01, 1995
  • Machine Learning
  • Dietrich Wettschereck +1
  • Conference Article
  • Citations16

An Improvement of Centroid-Based Classification Algorithm for Text Classification

  • Apr 01, 2007
  • Zehra Cataltepe +1
  • Research Article
  • Citations21

Customized K-nearest neighbors’ algorithm for malware detection

  • Jan 01, 2024
  • International Journal of Data and Network Science
  • Mosleh M Abualhaj +5
  • Research Article

Analysis Of The Use Of Nazief-Adriani Stemming And Porter Stemming In Covid-19 Twitter Sentiment Analysis With Term Frequency-Inverse Document Frequency Weighting Based On K-Nearest Neighbor Algorithm

  • Sep 30, 2024
  • Recursive Journal of Informatics
  • Muhammad Fikri +1
  • Conference Article
  • Citations11

KNN-Based Modeling and Its Application in Aftershock Prediction

  • Dec 01, 2009
  • Aiguo Li +1
  • Research Article
  • Citations8

K-Nearest neighbor algorithm on implicit feedback to determine SOP

  • Jun 01, 2019
  • TELKOMNIKA (Telecommunication Computing Electronics and Control)
  • Muhammad Yusril Helmi Setyawan +2
  • Research Article
  • Citations4

Machine Learning Enabled E-Commerce Analytics

  • Mar 28, 2023
  • International Scientific Journal of Engineering and Management
  • Ms.S Kavitha
  • Research Article
  • Citations1

Analisis klasifikasi Algoritma K-Nearest Neighboar (K-NN) pada struktur Daerah di Kota Medan

  • May 30, 2025
  • Jurnal Ilmu Komputer dan Sistem Informasi
  • Safa Nadia Bakri +1
  • Research Article

K-Nearest Neighbor and Weight K-Nearest Neighbor Classification of Cork Fish Using Gray-Level-Co-Occurrence Matrix Algorithm Approach

  • Sep 30, 2025
  • JOIV : International Journal on Informatics Visualization
  • Euis Nur Fitriani Dewi +3
  • PDF
  • Research Article

Visualization of the Residual Network for 3D Image Recognition considering the SVM Combined with the K-Nearest Neighbor Algorithm

  • Aug 11, 2022
  • Mobile Information Systems
  • Huabai Liu
  • Conference Article
  • Citations3

Comparison of Decision Tree C4.5 Algorithm with K-Nearest Neighbor (KNN) Algorithm in Hadith Classification

  • Oct 15, 2020
  • Glen Nur Awaludin +6
  • PDF
  • Research Article
  • Citations60

Noninvasive Blood Pressure Classification Based on Photoplethysmography Using K-Nearest Neighbors Algorithm: A Feasibility Study

  • Feb 09, 2020
  • Information
  • Hendrana Tjahjadi +1
  • Research Article
  • Citations4

Improving Iris Dataset Classification Prediction Achievement By Using Optimum k Value of kNN Algorithm

  • May 31, 2022
  • Eskişehir Türk Dünyası Uygulama ve Araştırma Merkezi Bilişim Dergisi
  • Ahmet Çeli̇k
  • Research Article
  • Citations44

A Combined Interpolation and Weighted K-Nearest Neighbours Approach for the Imputation of Longitudinal ICU Laboratory Data.

  • Mar 02, 2020
  • Journal of Healthcare Informatics Research
  • Sebastian Daberdaku +2
  • Research Article

Analysis and Comparison of Prediction of Heart Disease Using Novel K Nearest Neighbor and Decision Tree Algorithm

  • Feb 14, 2023
  • CARDIOMETRY
  • G Pavithraa +1
Cactus Communications logo

Copyright 2026 Cactus Communications. All rights reserved.