Adaptive KNN Classifier Boosts Accuracy with Granular Ball Computing.

Xiaoyu Lian, Shuyin Xia, Hongxuan He, Lifeng Shen, Guoyin Wang, Xinbo Gao· August 14, 2026 View original

Key takeaways

  • KNN performance is highly dependent on the 'k' value selection.
  • Adaptive GBKNN dynamically determines 'k' using granular-ball computing.
  • The method improves robustness against noise and local perturbations.
  • It achieves superior accuracy and efficiency compared to existing KNN variants.

Who benefits

Data ScienceHealthcareFinanceManufacturingRetail

Summary

This paper proposes an adaptive and efficient k-Nearest Neighbor (KNN) classifier that uses granular-ball computing to dynamically determine the optimal 'k' value. The method improves robustness against noise and local perturbations by constructing a stable local neighborhood around test samples.

The k-Nearest Neighbor (KNN) algorithm is a widely used classification method, but its performance heavily relies on the appropriate selection of the 'k' value. A fixed 'k' often struggles with varying data distributions, leading to suboptimal accuracy or sensitivity to noise. Researchers have introduced an adaptive KNN approach leveraging granular-ball computing. This method operates in two stages: first, a training stage coarsely partitions the dataset into multi-granularity granular balls, using the Fisher criterion to guide splitting and stopping. This reduces data complexity within each ball. In the prediction stage, the algorithm locates the nearest granular ball to a test sample using a weighted distance. It then constructs an adaptive neighborhood around the sample, dynamically determining the effective 'k' value based on the number of samples within this stable local group. This approach enhances robustness against noise and local perturbations, demonstrating superior accuracy and efficiency compared to existing KNN variants.

Why it matters

For data scientists and machine learning engineers, an adaptive KNN classifier offers a more robust and accurate solution for classification tasks, reducing the need for manual hyperparameter tuning and improving model performance in noisy or complex datasets.

How to implement this in your domain

  1. 1Review current KNN implementations and identify challenges related to 'k' value selection and noise sensitivity.
  2. 2Explore the principles of granular-ball computing and its application in adaptive neighborhood construction.
  3. 3Integrate the proposed adaptive granular-ball KNN (GBKNN) into existing machine learning pipelines for classification tasks.
  4. 4Benchmark GBKNN against traditional KNN and other variants on diverse datasets, focusing on accuracy and efficiency.
  5. 5Consider using GBKNN for real-time classification systems where dynamic 'k' selection can improve performance.

Original post by Xiaoyu Lian, Shuyin Xia, Hongxuan He, Lifeng Shen, Guoyin Wang, Xinbo Gao

"arXiv:2608.12903v1 Announce Type: new Abstract: The $k$-Nearest Neighbor~(KNN) algorithm is widely used across various tasks. The selection of the $k$ value is a key issue because it significantly impacts performance. In this paper, an adaptive and efficient KNN approach via gran…"

View on X

Originally posted by Xiaoyu Lian, Shuyin Xia, Hongxuan He, Lifeng Shen, Guoyin Wang, Xinbo Gao on X · view source

Want to go deeper?

Turn these trends into skills with Learnijoy's hands-on AI & tech courses.

Explore courses

More in AI Engineering & DevTools