Facebook pixel tracking

The Science and Information (SAI) Organization publishes open-access peer-reviewed journals in computer science and artificial intelligence.

Contact Info
Website thesai.org
Follow Us
Contact Info
Follow Us
Research Article | Open Access |

Compactness-Weighted KNN Classification Algorithm

Author 1: Bengting Wan Author 2: Zhixiang Sheng Author 3: Wenqiang Zhu Author 4: Zhiyi Hu
International Journal of Advanced Computer Science and Applications (IJACSA) · Vol. 15, No. 9 · Published 2024

DOI: https://doi.org/10.14569/IJACSA.2024.0150922

Abstract

The K-Nearest Neighbor (KNN) algorithm is a widely used classical classification tool, yet enhancing the classification ac-curacy for multi-feature large datasets remains a challenge. The paper introduces a Compactness-Weighted KNN classification algorithm using a weighted Minkowski distance (CKNN) to address this. Due to the variability in sample distribution, a method for deriving feature weights based on compactness is designed. Subsequently, a formula for calculating the weighted Minkowski distance using compactness weights is proposed, forming the basis for developing the CKNN algorithm. Com-parative experimental results on five real-world datasets demonstrate that the CKNN algorithm outperforms eight exist-ing variant KNN algorithms in Accuracy, Precision, Recall, and F1 performance metrics. The test results and sensitivity analysis confirm the CKNN's efficacy in classifying multi-feature da-tasets.

Keywords

How to Cite this Article

Wan, B., Sheng, Z., Zhu, W., & Hu, Z. (2024). Compactness-Weighted KNN Classification Algorithm. International Journal of Advanced Computer Science and Applications, 15(9). https://doi.org/10.14569/IJACSA.2024.0150922

Wan, Bengting, et al.. "Compactness-Weighted KNN Classification Algorithm." International Journal of Advanced Computer Science and Applications, vol. 15, no. 9, 2024, https://doi.org/10.14569/IJACSA.2024.0150922.

@article{Wan2024,
  title     = {Compactness-Weighted KNN Classification Algorithm},
  journal   = {International Journal of Advanced Computer Science and Applications},
  volume    = {15},
  number    = {9},
  year      = {2024},
  publisher = {The Science and Information Organization},
  author    = {Bengting Wan and Zhixiang Sheng and Wenqiang Zhu and Zhiyi Hu},
  doi       = {10.14569/IJACSA.2024.0150922},
  url       = {https://doi.org/10.14569/IJACSA.2024.0150922}
}

Open Access — licensed under a Creative Commons Attribution 4.0 International License. Unrestricted use, distribution, and reproduction in any medium, even commercially, as long as the original work is properly cited.