Sign up Log in
rjees logo



Overcoming Computational Challenges of K-Nearest Neighbors: A Memory-Efficient Approach using Gray Level Co-Occurrence Matrix and Firefly Optimization Technique

Authors: Olusi, T., Balogun, M.O., Adepoju, M.T., Sotonwa, K.A., Adetunji, B., Olabiyisiisi, O. And Omidiora, O.

DOI Info: http://doi.org/10.5281/zenodo.14565971

ABSTRACT

Feature extraction is a critical step in machine learning, especially when dealing with high-dimensional datasets such as medical data. The k-Nearest Neighbors (KNN) algorithm is widely used for feature extraction due to its simplicity and effectiveness, but it often suffers from high memory consumption, particularly with large datasets such as breast cancer dataset. This work addresses the problem of optimizing memory efficiency of KNN, which can limit its applicability in resource-constrained environments, by proposing a novel approach through integrating the Gray Level Co-Occurrence Matrix (GLCM) for feature extraction with the Firefly optimization technique. GLCM is was employed to reduce the memory requirements of the dataset by extracting texture features, thus minimizing the computational cost during classification. The Firefly algorithm is was then utilized to optimize the selection of relevant features, further improving the memory efficiency and scalability of KNN. Datasets of over 1,000 locally collected breast cancer records were used. The datasets were partitioned into five folds to assess the performance of the models. The memory efficiency of standard KNN was compared with that of KNN optimized with the GLCM and Firefly algorithm (GLCM-FA-KNN). Results show that the GLCM-FA-KNN significantly outperformed the standard KNN in terms of memory efficiency, with an overall average of 5.31KB compared to 9.90KB for KNN. These findings demonstrate that GLCM-FA optimization improves KNN’s memory usage, making it a more suitable choice for large-scale data applications.


Affiliations: Department of Computer Science, I. I. C. T. Kwara State Polytechnic, Ilorin, Nigeria.
Keywords: GLCM, Firefly, GLCM-Firefly-KNN, K-nearest Neighbor, Feature Extraction
Published date: 2024/12/30

Download Full Text

SUBMIT A MANUSCRIPT

ISSN: 2635-3342 (Print)

ISSN: 2635-3350 (Online)

DOI: In progress

ISI Impact Factor: In progress

Indexing & Abstracting
AR Index google scholar Directory of research journal indexing JIFactor Info base index scientific journal impact factor

Creative Commons License
This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License



(+234) 806 927 5563

Chemical Engineering Department, Faculty of Engineering, University of Benin, PMB 1154, Ugbowo, Benin City, Edo State, Nigeria.