• •    

一种面向非平衡类问题的k近邻分类算法

郭华平1,周俊1,邬长安1,范明2   

  1. 1. 信阳师范学院
    2. 郑州大学
  • 收稿日期:2017-09-07 修回日期:2017-10-30 发布日期:2017-10-30
  • 通讯作者: 郭华平

A Novel k-Nearest Neighbor Classification Method for Class-Imbalanced Problem

  • Received:2017-09-07 Revised:2017-10-30 Online:2017-10-30

摘要: 针对k近邻方法不能很好地解决非平衡类问题,提出了一种新的面向非平衡类问题的k近邻分类算法。与传统k近邻方法不同,在学习阶段,该算法首先使用划分算法(如K-Means)将多数类数据集划分为多个簇,然后将每个簇与少数类数据集合并成一个新的训练集用于训练一个k近邻模型。所以该算法构建了一个包含多个k近邻模型的分类器库。在预测阶段,使用划分算法(如K-Means)从分类器库中选择一个模型用于预测样本类别。通过这种方法,提出的算法有效地保证了k近邻模型既能有效发现数据局部特征,又能充分考虑数据的非平衡性对分类器性能的影响。另外,该算法也有效地提升了k近邻的预测效率。为了进一步提高该算法的性能,将过抽样技术SMOTE应用到该算法中。KEEL数据集上的实验结果表明,即使采用随机划分策略划分多数类数据集,提出的算法能有效地提高k近邻方法在评价指标recall、g-mean、f-measure和AUC上泛化性能;另外,过抽样技术能进一步提高该算法在非平衡类问题上的性能,并明显优于其它高级非平衡类处理方法。

关键词: 非平衡类, k近邻, 划分, 过抽样, 聚类算法

Abstract: K-Nearest Neighbor (kNN) is an extremely simple but surprisingly effective supervised learning method which can efficiently discover local characteristics of the data. This paper applies kNN to class-imbalanced data and proposes a novel kNN classification algorithm for imbalanced problem. Unlike traditional kNN, for the learning process, the proposed method firstly partitions the majority set into several clusters using partition algorithm(such as K-Means), merges each cluster with the minority set as a new training set to train a kNN model, and therefore the algorithm constructs a classifier library consisting of kNN models. For the prediction, the proposed method uses partition algorithm (such as K-Means) to select a model from the library to predict the class label of an instance. In this way, the proposed algorithm guarantees that the kNN model can efficiently discover local characteristics of the data, and also fully consider the effect of imbalance of the data on the performance of the classifier. Besides, the algorithm effectively promotes the efficiency of kNN. To further enhance the performance of the proposed algorithm, oversampling technique (SMOTE) is applied to the proposed method. Experimental results on KEEL data sets show that even employing the strategy of random partition to partition the majority set, the proposed method can effectively enhance the generalization performance of kNN method on evaluation measures of recall, g-mean, f-measure and AUC.

Key words: class-imbalanced problem, kNN, partition, oversampling, clustering

中图分类号: