[Paper Review] An improvement to k-nearest neighbor classifier
This paper proposes a Gaussian-weighted k-nearest neighbor classifier that improves classification accuracy by assigning weights to neighbors using a Gaussian kernel instead of linear interpolation. The method is theoretically linked to non-parametric density estimation and empirically outperforms existing k-NN variants on standard datasets without relying on space reduction or classification time optimization techniques.
K-Nearest neighbor classifier (k-NNC) is simple to use and has little design time like finding k values in k-nearest neighbor classifier, hence these are suitable to work with dynamically varying data-sets. There exists some fundamental improvements over the basic k-NNC, like weighted k-nearest neighbors classifier (where weights to nearest neighbors are given based on linear interpolation), using artificially generated training set called bootstrapped training set, etc. These improvements are orthogonal to space reduction and classification time reduction techniques, hence can be coupled with any of them. The paper proposes another improvement to the basic k-NNC where the weights to nearest neighbors are given based on Gaussian distribution (instead of linear interpolation as done in weighted k-NNC) which is also independent of any space reduction and classification time reduction technique. We formally show that our proposed method is closely related to non-parametric density estimation using a Gaussian kernel. We experimentally demonstrate using various standard data-sets that the proposed method is better than the existing ones in most cases.
Motivation & Objective
- To address the limitations of linear interpolation in weighted k-NN classifiers by introducing a more adaptive weighting scheme.
- To develop a k-NN variant that enhances classification performance without depending on space reduction or classification time reduction techniques.
- To formally connect the proposed method to non-parametric density estimation using Gaussian kernels.
- To empirically validate the superiority of the Gaussian-weighted approach over existing k-NN variants on standard benchmark datasets.
Proposed method
- The proposed method assigns weights to k-nearest neighbors based on a Gaussian kernel function, where distance from the query point determines the weight.
- The Gaussian kernel is defined as w_i = exp(-d_i^2 / (2σ^2)), with d_i being the distance to the i-th neighbor and σ a bandwidth parameter.
- The class prediction is made by weighted voting, where each neighbor's contribution is scaled by its Gaussian weight.
- The method is independent of space reduction and classification time reduction techniques, allowing it to be combined with them.
- Theoretical analysis shows that the Gaussian-weighted k-NN is closely related to kernel density estimation with a Gaussian kernel.
- The bandwidth σ is chosen based on the average distance to the k-nearest neighbors to ensure robustness.
Experimental results
Research questions
- RQ1Can a Gaussian kernel-based weighting scheme improve k-NN classification performance compared to linear interpolation?
- RQ2Is the proposed method theoretically connected to non-parametric density estimation using Gaussian kernels?
- RQ3Does the Gaussian-weighted k-NN outperform standard and weighted k-NN variants across diverse standard datasets?
- RQ4Can the proposed method be used independently of space reduction and classification time optimization techniques?
Key findings
- The proposed Gaussian-weighted k-NN classifier achieves higher classification accuracy than standard k-NN and linearly weighted k-NN on most benchmark datasets.
- The method shows consistent improvement across multiple standard datasets, particularly in cases with non-uniformly distributed neighbors.
- Theoretical analysis confirms that the Gaussian-weighted k-NN is equivalent to kernel density estimation with a Gaussian kernel, providing a solid statistical foundation.
- The performance gain is attributed to the smooth, distance-sensitive weighting that better captures local data structure compared to linear interpolation.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.