Adaptive $k$ Nearest Neighbors Classifier via Granular Ball Computing

πŸ“… 2026-08-13
πŸ“ˆ Citations: 0
✨ Influential: 0
πŸ“„ PDF
πŸ€– AI Summary
This study addresses the limitation of traditional k-nearest neighbors (KNN) algorithms, which employ a fixed k value and thus fail to adapt to local data characteristics, compromising classification performance. To overcome this, the authors propose an adaptive KNN method grounded in granular ball computing. During training, multi-granularity granular balls are constructed using Fisher’s criterion; at prediction time, the nearest granular ball is identified via a weighted distance metric, enabling dynamic determination of the optimal k value. This approach facilitates data-driven, adaptive neighborhood partitioning, substantially enhancing robustness against noise and local perturbations. Experimental results demonstrate that the proposed method consistently achieves higher classification accuracy and improved computational efficiency across multiple datasets compared to existing KNN variants.
πŸ“ 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 granular-ball computing is proposed. The method consists of two stages. \textcolor{black}{In the training stage, the dataset is first coarsely partitioned to reduce the complexity of data distributions within a granular ball, and then the Fisher criterion is introduced to control ball splitting and stopping, yielding a multi-granularity granular ball representation. In the prediction stage, the nearest granular ball is first located through a weighted distance mechanism, and an adaptive neighborhood is then constructed around the test sample. The effective $k$ value is dynamically determined by the actual number of samples contained in this neighborhood. The neighborhood induced by the nearest granular ball provides more stable local group information, thereby improving robustness against noise and local perturbations.} Experimental results demonstrate that the proposed method outperforms existing KNN variants across multiple datasets in terms of both accuracy and efficiency. The code has been open-sourced for reproducibility: https://github.com/lianxiaoyu724/Adaptive-GBKNN.
Problem

Research questions and friction points this paper is trying to address.

k-Nearest Neighbor
k value selection
classification
adaptive neighborhood
Innovation

Methods, ideas, or system contributions that make the work stand out.

Granular Ball Computing
Adaptive k-Nearest Neighbors
Fisher Criterion
Multi-granularity Representation
Weighted Distance Mechanism
πŸ”Ž Similar Papers
No similar papers found.
πŸ’Ό Related Jobs
No related jobs found.
X
Xiaoyu Lian
Chongqing Key Laboratory of Computational Intelligence, Key Laboratory of Cyberspace Big Data Intelligent Security, Ministry of Education, Sichuan-Chongqing Co-construction Key Laboratory of Digital Economy Intelligence and Key Laboratory of Big Data Intelligent Computing, Chongqing University of Posts and Telecommunications, 400065, Chongqing, China
Shuyin Xia
Shuyin Xia
Professor, School of Computer Science, Chongqing University of Posts and Telecommunications
Granular computingClusteringRough setsClassifiersGranular ball computing
H
Hongxuan He
Chongqing Key Laboratory of Computational Intelligence, Key Laboratory of Cyberspace Big Data Intelligent Security, Ministry of Education, Sichuan-Chongqing Co-construction Key Laboratory of Digital Economy Intelligence and Key Laboratory of Big Data Intelligent Computing, Chongqing University of Posts and Telecommunications, 400065, Chongqing, China
Lifeng Shen
Lifeng Shen
Associate Professor of CQUPT
Sequence ModelingGenerative ModelingRepresentation LearningTime Series Modeling
Guoyin Wang
Guoyin Wang
Chongqing University of Posts & Telecommunications
Artificial Intelligencerough setsdata miningknowledge technology
X
Xinbo Gao
Chongqing Key Laboratory of Computational Intelligence, Key Laboratory of Cyberspace Big Data Intelligent Security, Ministry of Education, Sichuan-Chongqing Co-construction Key Laboratory of Digital Economy Intelligence and Key Laboratory of Big Data Intelligent Computing, Chongqing University of Posts and Telecommunications, 400065, Chongqing, China