{"title":"A performance-driven multi-stage KNN approach for local adaptive classification","authors":"Che Xu , Zhenhua Fan","doi":"10.1016/j.asoc.2025.113070","DOIUrl":null,"url":null,"abstract":"<div><div>A key issue of the K-Nearest Neighbors (KNN) algorithm is determining the optimal neighborhood size <em>K</em>, which limits the widespread applicability of KNN. To address this, a performance-driven multi-stage KNN (PMKNN) approach is proposed in this paper. Given a set of alternative <em>K</em> values, the traditional KNN algorithm is initially employed in the PMKNN approach to identify the optimal <em>K</em> values for all known samples. A convex optimization model is then constructed based on the least squares loss function to learn the correlation between known samples and query samples. After the learned correlation is used to evaluate the performances of all candidate <em>K</em> values in classifying query samples, a weighted majority voting process is designed to generate the final classification results. Unlike existing KNN approaches, the proposed PMKNN approach considers multiple optimal <em>K</em> values for each query sample, enhancing classification stability and reliability. The proposed approach also reduces the negative impact of inappropriate <em>K</em> values on classification performance. An experimental study is conducted using twenty real-world classification datasets collected from two public data repositories to assess the effectiveness of the proposed PMKNN approach. The relevant results highlight the high classification performance of the proposed PMKNN approach compared to seven state-of-the-art KNN methods and underscore its predictive stability compared to the traditional KNN algorithm using all possible <em>K</em> values.</div></div>","PeriodicalId":50737,"journal":{"name":"Applied Soft Computing","volume":"175 ","pages":"Article 113070"},"PeriodicalIF":7.2000,"publicationDate":"2025-03-22","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"Applied Soft Computing","FirstCategoryId":"94","ListUrlMain":"https://www.sciencedirect.com/science/article/pii/S1568494625003813","RegionNum":1,"RegionCategory":"计算机科学","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"Q1","JCRName":"COMPUTER SCIENCE, ARTIFICIAL INTELLIGENCE","Score":null,"Total":0}
引用次数: 0
Abstract
A key issue of the K-Nearest Neighbors (KNN) algorithm is determining the optimal neighborhood size K, which limits the widespread applicability of KNN. To address this, a performance-driven multi-stage KNN (PMKNN) approach is proposed in this paper. Given a set of alternative K values, the traditional KNN algorithm is initially employed in the PMKNN approach to identify the optimal K values for all known samples. A convex optimization model is then constructed based on the least squares loss function to learn the correlation between known samples and query samples. After the learned correlation is used to evaluate the performances of all candidate K values in classifying query samples, a weighted majority voting process is designed to generate the final classification results. Unlike existing KNN approaches, the proposed PMKNN approach considers multiple optimal K values for each query sample, enhancing classification stability and reliability. The proposed approach also reduces the negative impact of inappropriate K values on classification performance. An experimental study is conducted using twenty real-world classification datasets collected from two public data repositories to assess the effectiveness of the proposed PMKNN approach. The relevant results highlight the high classification performance of the proposed PMKNN approach compared to seven state-of-the-art KNN methods and underscore its predictive stability compared to the traditional KNN algorithm using all possible K values.
期刊介绍:
Applied Soft Computing is an international journal promoting an integrated view of soft computing to solve real life problems.The focus is to publish the highest quality research in application and convergence of the areas of Fuzzy Logic, Neural Networks, Evolutionary Computing, Rough Sets and other similar techniques to address real world complexities.
Applied Soft Computing is a rolling publication: articles are published as soon as the editor-in-chief has accepted them. Therefore, the web site will continuously be updated with new articles and the publication time will be short.