谭志 侯涛文



摘 要: 针对朴素贝叶斯分类器存在对非均衡样本分类时,易将少数类样本分到多数类的问题,利用感受性曲线的性质和深度特征加权的思想,提出一种面向非均衡数据类的朴素贝叶斯加权算法(DA?WNB)。为了验证该算法对不平衡数据分类的有效性,实验结果以AUC、真正类率、整体精度为指标,仿真结果表明,该算法能提高少数类分类准确率(最高达60%),且能保持较高的整体精度。
关键词: 朴素贝叶斯; 监督学习; 感受性曲线; 非均衡样本; 深度特征加权; 数据挖掘
中图分类号: TN911.1?34; TP3 文献标识码: A 文章编号: 1004?373X(2019)09?0118?05
An improved naive Bayesian algorithm for unbalanced data classes
TAN Zhi, HOU Taowen
(Beijing University of Civil Engineering and Architecture, Beijing 100044, China)
Abstract: Naive Bayesian classifier is easy to divide minority?class samples into majority class samples while classifying unbalanced samples. In view of this phenomenon, an deep AUC (area under curve) weighted naive Bayesian (DA?WNB) algorithm for unbalanced data classes is proposed, which is based on property of receiver operating characteristic curve and thought of deep feature weighting. In order to verify the effectiveness of the algorithm for unbalanced data classification, the AUC, true positive rate (TPR) and overall accuracy are taken as the indicators for experiments. The simulation results show that the algorithm can improve the minority?class classification accuracy highest to 60%, and can maintain the high overall accuracy.
Keywords: naive Bayesian; supervised learning; receiver operating characteristic curve; unbalanced sample; deep feature weighting; data mining
0 引 言
樸素贝叶斯(Naive Bayesian,NB)是现今最普遍的监督学习分类算法,以计算成本低、运行效率高著称,被广泛用到文本分类、信息检索、医疗诊断等领域。NB基于一个强独立性假设,具体指各特征向量相互独立且同等重要,这导致分类时损失大量有益信息。
研究者为了削弱独立性假设造成的不良影响,提出不同形式加权贝叶斯算法。加权算法的关键是利用指标衡量各个特征重要性,然后将指标转化为权值形式。文献[1]提出用相对熵计算每个属性在分类中的重要程度。文献[2]提出用差分进化算法搜索出最佳权值。文献[3]通过多元线性回归模型分析各特征之间的联系,再将相关度转化为权值系数。Kim T于2016年提出NB加权算法是为了最大化整体分类精度,没有考虑非均衡样本分类问题。
非均衡分类问题始于二分类任务中数据存在偏态的问题[4],即在二分类任务中,一类的样本数目远远大于另一类的样本数目。……