Compressed kNN: K-Nearest Neighbors with Data Compression
Open Access
Abstract
The kNN (k-nearest neighbors) classification algorithm is one of the most widely used non-parametric classification methods, however it is limited due to memory consumption related to the size of the dataset, which makes them impractical to apply to large volumes of data. Variations of this method have been proposed, such as condensed KNN which divides the training dataset into clusters to be classified, other variations reduce the input dataset in order to apply the algorithm. This paper presents a variation of the kNN algorithm, of the type structure less NN, to work with categorical data. Categorical data, due to their nature, can be compressed in order to decrease the memory requirements at the time of executing the classification. The method proposes a previous phase of compression of the data to then apply the algorithm on the compressed data. This allows us to maintain the whole dataset in memory which leads to a considerable reduction of the amount of memory required. Experiments and tests carried out on known datasets show the reduction in the volume of information stored in memory and maintain the accuracy of the classification. They also show a slight decrease in processing time because the information is decompressed in real time (on-the-fly) while the algorithm is running.Keywords
This publication has 23 references indexed in Scilit:
- Fast Bulk Bitwise AND and OR in DRAMIEEE Computer Architecture Letters, 2015
- Missing data imputation on the 5-year survival prediction of breast cancer patients with unknown discrete valuesComputers in Biology and Medicine, 2015
- PARALLEL KNN ON GPU ARCHITECTURE USING OPENCLInternational Journal of Research in Engineering and Technology, 2014
- Statistical approach to normalization of feature vectors and clustering of mixed datasetsProceedings of the Royal Society A: Mathematical, Physical and Engineering Sciences, 2012
- A Survey of Clustering TechniquesInternational Journal of Computer Applications, 2010
- Missing data imputation using statistical and machine learning methods in a real breast cancer problemArtificial Intelligence in Medicine, 2010
- K nearest neighbours with mutual information for simultaneous classification and missing data imputationNeurocomputing, 2009
- Principles of Data MiningDrug Safety, 2007
- Discrete models for data imputationDiscrete Applied Mathematics, 2004
- An analysis of four missing data treatment methods for supervised learningApplied Artificial Intelligence, 2003