skip to main content
10.1145/3456172.3456201acmotherconferencesArticle/Chapter ViewAbstractPublication PagesiccdeConference Proceedingsconference-collections
research-article

Improved KNN Algorithm based on Probability and Adaptive K Value

Published: 06 August 2021 Publication History

Abstract

As one of the most classical supervised learning algorithms, the KNN algorithm is not only easy to understand but also can solve classification problems very well. Nevertheless, the KNN algorithm has a serious drawback:The voting principle used to predict the category of samples to be classified is too simple and does not take into account the proximity of the number of samples contained in each category in k near-neighbor samples. To solve this problem, this paper proposes a novel decision strategy based on probability and iterative k value to improve the KNN algorithm. By constantly adjusting the value of k to bring the probability value of the largest class in the k neighborhood to the specified threshold, the decision is sufficiently persuasive. The experimental results on several UCI public data sets show that compared with the KNN algorithm and the distance-weighted KNN algorithm, the improved algorithm in this paper improves the classification accuracy while reducing the sensitivity to hyperparameter k to a certain extent.

References

[1]
Xueli W, Zhiyong J, Dahai Y. An improved KNN algorithm based on kernel methods and attribute reduction[C]//2015 Fifth International Conference on Instrumentation and Measurement, Computer, Communication and Control (IMCCC). IEEE, 2015: 567-570.
[2]
Yan Hao, Yanping Bai, XiaofeiZhang. Synthetic Aperture Radar Target Recognition Based on KNN[J]. Fire Control &Command Control, 2018, 43(09):113-115+120.
[3]
Guo J, Wang X, Li Y. kNN based on probability density for fault detection in multimodal processes[J]. Journal of Chemometrics, 2018, 32(7): e3021.
[4]
Hart, P.E. (1968) The condensed nearest neighbor rule. IEEE Transaction on Information Theory, 14(3), 515- 516.
[5]
Zhang, Shichao, Li, Efficient kNN Classification With Different Numbers of Nearest Neighbors[J]. IEEE Transactions on Neural Networks & Learning Systems, 2018, 29(29).
[6]
Zhang S, Cheng D, Deng Z, A novel kNN algorithm with data-driven k parameter computation[J]. Pattern Recognition Letters, 2018, 109: 44-54.
[7]
Sun S, Huang R. An adaptive k-nearest neighbor algorithm[C]//2010 seventh international conference on fuzzy systems and knowledge discovery. IEEE, 2010, 1: 91-94.
[8]
Xiaoming Yan. Weighted KNN Classification Algorithm Based on Mean Distance of Category[J]. Computer Systems&Applications, 2014, 23(002):128-132.
[9]
Gongqi Xu. Improved KNN algorithm and its application in automatic text categorization[D]. Fuzhou University, 2019.
[10]
Huihui Xiao, Yanming DUAN. Improved the KNN Algorithm Based on Related to the Distance of Attribute Value[J]. Computer Science, 2013, 40(0z2):157-159,187.
[11]
Li C, Jiang L, Li H, Attribute weighted value difference metric[C]//2013 IEEE 25th International Conference on Tools with Artificial Intelligence. IEEE, 2013: 575-580.

Cited By

View all
  • (2024) Quantum KNN Classification With K Value Selection and Neighbor Selection IEEE Transactions on Computer-Aided Design of Integrated Circuits and Systems10.1109/TCAD.2023.334525143:5(1332-1345)Online publication date: May-2024
  • (2024)Wine Feature Importance and Quality Prediction: A Comparative Study of Machine Learning Algorithms with Unbalanced DataSafe, Secure, Ethical, Responsible Technologies and Emerging Applications10.1007/978-3-031-56396-6_20(308-327)Online publication date: 18-Apr-2024

Recommendations

Comments

Information & Contributors

Information

Published In

cover image ACM Other conferences
ICCDE '21: Proceedings of the 2021 7th International Conference on Computing and Data Engineering
January 2021
110 pages
ISBN:9781450388450
DOI:10.1145/3456172
Permission to make digital or hard copies of all or part of this work for personal or classroom use is granted without fee provided that copies are not made or distributed for profit or commercial advantage and that copies bear this notice and the full citation on the first page. Copyrights for components of this work owned by others than ACM must be honored. Abstracting with credit is permitted. To copy otherwise, or republish, to post on servers or to redistribute to lists, requires prior specific permission and/or a fee. Request permissions from [email protected]

Publisher

Association for Computing Machinery

New York, NY, United States

Publication History

Published: 06 August 2021

Permissions

Request permissions for this article.

Check for updates

Author Tags

  1. Automatic adjustment of the value of k
  2. Classification algorithm
  3. Distance-weighted KNN algorithm
  4. K Nearest Neighbor (KNN) algorithm

Qualifiers

  • Research-article
  • Research
  • Refereed limited

Funding Sources

  • the National Key Research and Development Program

Conference

ICCDE 2021

Contributors

Other Metrics

Bibliometrics & Citations

Bibliometrics

Article Metrics

  • Downloads (Last 12 months)14
  • Downloads (Last 6 weeks)2
Reflects downloads up to 28 Dec 2024

Other Metrics

Citations

Cited By

View all
  • (2024) Quantum KNN Classification With K Value Selection and Neighbor Selection IEEE Transactions on Computer-Aided Design of Integrated Circuits and Systems10.1109/TCAD.2023.334525143:5(1332-1345)Online publication date: May-2024
  • (2024)Wine Feature Importance and Quality Prediction: A Comparative Study of Machine Learning Algorithms with Unbalanced DataSafe, Secure, Ethical, Responsible Technologies and Emerging Applications10.1007/978-3-031-56396-6_20(308-327)Online publication date: 18-Apr-2024

View Options

Login options

View options

PDF

View or Download as a PDF file.

PDF

eReader

View online with eReader.

eReader

HTML Format

View this article in HTML Format.

HTML Format

Media

Figures

Other

Tables

Share

Share

Share this Publication link

Share on social media