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 |

Modified K-nearest Neighbor Algorithm with Variant K Values

Author 1: Kalyani C. Waghmare Author 2: Balwant A. Sonkamble
International Journal of Advanced Computer Science and Applications (IJACSA) · Vol. 11, No. 10 · Published 2020

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

Abstract

In Machine Learning K-nearest Neighbor is a renowned supervised learning method. The traditional KNN has the unlike requirement of specifying ‘K’ value in advance for all test samples. The earlier solutions of predicting ‘K’ values are mainly focused on finding optimal-k-values for all samples. The time complexity to obtain the optimal-k-values in the previous method is too high. In this paper, a Modified K-Nearest Neighbor algorithm with Variant K is proposed. The KNN algorithm is divided in the training and testing phase to find K value for every test sample. To get the optimal K value the data is trained for various K values with Min-Heap data structure of 2*K size. K values are decided based on the percentage of training data considered from every class. The Indian Classical Music is considered as a case study to classify it in different Ragas. The Pitch Class Distribution features are input to the proposed algorithm. It is observed that the use of Min-Heap has reduced the space complexity nonetheless Accuracy and F1-score for the proposed method are increased than traditional KNN algorithm as well as Support Vector Machine, Decision Tree Classifier for Self-Generated Dataset and Comp-Music Dataset.

Keywords

How to Cite this Article

Waghmare, K. C., & Sonkamble, B. A. (2020). Modified K-nearest Neighbor Algorithm with Variant K Values. International Journal of Advanced Computer Science and Applications, 11(10). https://doi.org/10.14569/IJACSA.2020.0111029

Waghmare, Kalyani C., and Balwant A. Sonkamble. "Modified K-nearest Neighbor Algorithm with Variant K Values." International Journal of Advanced Computer Science and Applications, vol. 11, no. 10, 2020, https://doi.org/10.14569/IJACSA.2020.0111029.

@article{Waghmare2020,
  title     = {Modified K-nearest Neighbor Algorithm with Variant K Values},
  journal   = {International Journal of Advanced Computer Science and Applications},
  volume    = {11},
  number    = {10},
  year      = {2020},
  publisher = {The Science and Information Organization},
  author    = {Kalyani C. Waghmare and Balwant A. Sonkamble},
  doi       = {10.14569/IJACSA.2020.0111029},
  url       = {https://doi.org/10.14569/IJACSA.2020.0111029}
}

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.