APP下载

单分类支持向量机用于样本不平衡数据集建模研究

2020-06-29吴疆岳贤亮董婷蒋平

微型电脑应用 2020年6期

吴疆 岳贤亮 董婷 蒋平

摘 要:主要研究应用单分类支持向量机(One-class Support Vector Machine,OneSVM)在不平衡样本数据集的建模问题。首先从UCI 获得Abalon数据集,随机挑选400正样本和400负样本构建训练集,交叉验证方法用于OneSVM 分类器训练,模型对数据集的预测精度达到98.00%,与标准SVM分类器对此数据集83.10%的预测正确率相比具有明显的竞争力。然后在样本数据不平衡数据机上训练加权SVM对负样本的预测精度为76.70%,模型对负样本不具有稳定性。实验结果表明单分类支持向量机在样本数目失衡的学习问题中具有良好的泛化能力,同时单分类支持向量机只用一类样本训练分类器,在算法的复杂度上也具有优势。

关键词: 支持向量机; 单分类支持向量机; 预测偏置

中图分类号: TP 311

文献标志码: A

Abstract: The purpose of this article is to study the performance ofone-class support vector machine (OneSVM) used in unbalanced dataset prediction. Firstly, the Abalon dataset was obtained for UCI, in which 400 positive and negative samples were selected to construct training datasets, cross-validation method was employed to train OneSVM classifiers, 98.00% accuracy was obtained and the results indicates more promisingcompared with the accuracy 83.10% obtained by using SVM methods. Secondly, an unbalanced dataset was constructed to train right-SVM; the specificity accuracy 76.70% showed the model was lack of stability. The results indicate OneSVM has great generalization in unbalanced dataset learning problems, where, OneSVM is only trained on single class samples that intend to more superior in the complexity.

Key words: support vector machine; OneSVM; prediction bias

0 引言

支持向量機是基于统计学习理论实现的小样本学习算法,核心思想是实现最大间隔分类从而降低模型的置信范围,引入核函数对数据空间进行升维从而解决线性不可分问题在超平面上变得线性可分。支持向量机设计应用与二分类问题,在许多领域的应用取得巨大的成功。很多研究者针对不同的问题提出了多种改进算法,如最小二乘支持向量机(Least Square SVM,LSSVM),它遵循结构风险最小化的原则[1]。张学工教授提出了中心支持向量机(Central SVM,CSVM)用于回归分析[2]。此后,林智仁教授设计并开发了较为完善的Libsvm软件工具包[3]。

然而在实际应用中,很多的机器学习问题都是小样本学习问题,无法获得大量的样本数据,或者存在某类样本无法获得的情况,诸如入侵检测、敌我识别往往只能获得一类样本。……

登录APP查看全文