期刊文献+

一种基于同步语义对齐的异构缺陷预测方法 被引量:2

Heterogeneous Defect Prediction Based on Simultaneous Semantic Alignment
下载PDF
导出
摘要 异构缺陷预测(heterogeneous defect prediction,HDP)在具有异构特征的项目间进行缺陷预测,可以有效解决源项目和目标项目使用了不同特征的问题.当前大多数HDP方法都是通过学习域不变特征子空间以减少域之间的差异来解决异构特征问题.但是,源域和目标域通常呈现出巨大的异质性,使得域对齐效果并不好.究其原因,这些方法都忽视了分类器对于两个域中的同一类别应产生相似的分类概率分布这一潜在知识,没有挖掘数据中包含的内在语义信息.另一方面,由于在新启动项目或历史遗留项目中搜集训练数据依赖于专家知识,费时费力且容易出错,探究了基于目标项目内少数标记模块来进行异构缺陷预测的可能性.鉴于此,提出一种基于同步语义对齐的异构缺陷预测方法(SHSSAN).一方面,探索从标记的源项目中学到的隐性知识,从而在类别之间传递相关性,达到隐式语义信息迁移.另一方面,为了学习未标记目标数据的语义表示,通过目标伪标签进行质心匹配达到显式语义对齐.同时,SHSSAN可以有效解决异构缺陷数据集中常见的类不平衡和数据线性不可分问题,并充分利用目标项目中的标签信息.对包含30个不同项目的公共异构数据集进行的实验表明,与目前表现优异的CTKCCA、CLSUP、MSMDA、KSETE和CDAA方法相比,在F-measure和AUC上分别提升了6.96%、19.68%、19.43%、13.55%、9.32%和2.02%、3.62%、2.96%、3.48%、2.47%. Heterogeneous defect prediction(HDP)can effectively solve the problem that the source project and the target project use different features.It uses heterogeneous feature data from the source project to predict the defect tendency of the software module in the target project.At present,HDP has made certain achievements,but its overall performance is not satisfactory.Most previous HDP methods solve this problem by learning domain invariant feature subspace to reduce the difference between domains.However,the source domain and the target domain usually show huge heterogeneity,which makes the domain alignment effect not satisfied.The reason is that these methods ignore the potential knowledge that the classifier should generate similar classification probability distributions for the same category in the two domains,and fail to mine the intrinsic semantic information contained in the data.In addition,because the collection of training data in newly launched projects or historical legacy projects relies on expert knowledge,is time-consuming,laborious,and error-prone,the possibility of heterogeneous defect prediction is explored based on a small number of labeled modules in the target project.Based on these,a heterogeneous defect prediction method is proposed based on simultaneous semantic alignment(SHSSAN).On the one hand,it explores the implicit knowledge learned from the labeled source projects,so as to transfer relevance between categories and achieve implicit semantic information transfer.On the other hand,in order to learn the semantic representation of unlabeled target data,centroid matching is performed through target pseudo-labels to achieve explicit semantic alignment.At the same time,SHSSAN can effectively solve the class imbalance problem and the data linearly inseparable problem,and make full use of the label information in the target project.Experiments on public heterogeneous data sets containing 30 different projects show that compared with the current excellent CTKCCA,CLSUP,MSMDA,KSETE,and CDAA methods,the F-measure and AUC are increased by 6.96%,19.68%,19.43%,13.55%,9.32%and 2.02%,3.62%,2.96%,3.48%,2.47%,respectively.
作者 李伟湋 陈翔 张恒伟 黄志球 贾修一 LI Wei-Wei;CHEN Xiang;ZHANG Heng-Wei;HUANG Zhi-Qiu;JIA Xiu-Yi(College of Computer Science and Technology,Nanjing University of Aeronautics and Astronautics,Nanjing 211106,China;College of Astronautics,Nanjing University of Aeronautics and Astronautics,Nanjing 211106,China;School of Information Science and Technology,Nantong University,Nantong 226019,China;School of Computer Science and Engineering,Nanjing University of Science and Technology,Nanjing 210094,China)
出处 《软件学报》 EI CSCD 北大核心 2023年第6期2669-2689,共21页 Journal of Software
基金 国家重点研发计划(2018YFB1003900) 国家自然科学基金(61906090,62176123) 中央高校基本科研业务费专项资金(30920021131)。
关键词 异构缺陷预测 语义对齐 少样本数据 类不平衡 线性不可分 heterogeneous defect prediction(HDP) semantic alignment few sample data class imbalance linearly inseparable
  • 相关文献

参考文献2

二级参考文献138

  • 1王青,伍书剑,李明树.软件缺陷预测技术.软件学报,2008,19(7):1565—1580.http://www.jos.org.cn/1000—9825/19/1565.htm.
  • 2Hall T, Beecham S, Bowes D, Gray D, Counsell S. A systematic literature review on fault prediction performance in software engineering. IEEE Trans. on Software Engineering, 2012,38(6): 1276-1304. [doi: 10.1109/TSE.2011.103 ].
  • 3Radjenovic D, Hericko M, Torkar R, Zivkovic A. Software fault prediction metrics: A systematic literature review. Information and Software Technology, 2013,55(8): 1397-1418. [doi: 10.1016/j.infsof.2013.02.009].
  • 4Akiyama E. An example of software system debugging. In: Proc. of the Int'1 Federation of Information Proc. Societies Congress. New York: Springer Science and Business Media, 1971. 353-359.
  • 5Halstead MH. Elements of Software Science (Operating and Programming Systems Series). New York: Elsevier Science Inc., 1977.
  • 6McCabe TJ. A complexity measure. IEEE Trans. on Software Engineering, 1976,2(4):308-320. [doi: 10.1109/TSE.1976.233837].
  • 7Chidamber SR, Kemerer CF. A metrics suite for object oriented design. IEEE Trans. on Software Engineering, 1994,20(6): 476-493. [doi: 10.1109/32.295895].
  • 8Basili VR, Briand LC, Melo WL. A validation of object-oriented design metrics as quality indicators. IEEE Trans. on Software Engineering, 1996,22(10):751-761. [doi: 10.1109/32.544352].
  • 9Subramanyam R, Krishnan MS. Empirical analysis of CK metrics for object-oriented design complexity: Implications for software defects. IEEE Trans. on Software Engineering, 2003,29(4):297-310. [doi: 10.1109/TS E.2003.1191795].
  • 10Zhou YM, Xu BW, Leung H. On the ability of complexity metrics to predict fault-prone classes in object-oriented systems. Journal of Systems and Software, 2010,83(4):660-674. [doi: 10.1016/j.jss.2009.11.704].

共引文献143

同被引文献21

引证文献2

相关作者

内容加载中请稍等...

相关机构

内容加载中请稍等...

相关主题

内容加载中请稍等...

浏览历史

内容加载中请稍等...
;
使用帮助 返回顶部