Heterogeneous Cross-Project Defect Prediction via Optimal Transport

被引:4
作者
Zong, Xing [1 ]
Li, Guiyu [1 ]
Zheng, Shang [1 ]
Zou, Haitao [1 ]
Yu, Hualong [1 ]
Gao, Shang [1 ]
机构
[1] Jiangsu Univ Sci & Technol, Sch Comp, Zhenjiang 212100, Peoples R China
基金
中国国家自然科学基金;
关键词
Software maintenance; Predictive models; Transfer learning; Software development management; Software engineering; Transportation; Prediction algorithms; Software quality; software development; software maintenance; software defect; DIVERGENCE; MACHINE;
D O I
10.1109/ACCESS.2023.3241924
中图分类号
TP [自动化技术、计算机技术];
学科分类号
0812 ;
摘要
Heterogeneous cross-project defect prediction (HCPDP) aims to learn a prediction model from a heterogeneous source project and then apply the model to a target project. Existing HCPDP works mapped the data of the source and target projects in a common space. However, the pre-defined forms of mapping methods often limit prediction performance and it is difficult to measure the distance between two data instances from different feature spaces. This paper introduced optimal transport (OT) theory for the first time to build the relationship between source and target data distributions, and two prediction algorithms were proposed based on OT theory. In particular, an algorithm based on the entropic Gromov-Wasserstein (EGW) discrepancy was developed to perform the HCPDP model. The proposed EGW model measures the distance between two metric spaces by learning an optimal transfer matrix with the minimum data transfer cost and avoids measuring the distance of two instances of different feature spaces. Then, to improve EGW performance, an EGW+ transport algorithm based on EGW was developed by integrating target labels. Experimental results showed the effectiveness of EGW and EGW+ methods, and proved that our methods can support developers to find the defects in the early phase of software development.
引用
收藏
页码:12015 / 12030
页数:16
相关论文
共 57 条
[1]   ITERATIVE BREGMAN PROJECTIONS FOR REGULARIZED TRANSPORTATION PROBLEMS [J].
Benamou, Jean-David ;
Carlier, Guillaume ;
Cuturi, Marco ;
Nenna, Luca ;
Peyre, Gabriel .
SIAM JOURNAL ON SCIENTIFIC COMPUTING, 2015, 37 (02) :A1111-A1138
[2]   The use of the area under the roc curve in the evaluation of machine learning algorithms [J].
Bradley, AP .
PATTERN RECOGNITION, 1997, 30 (07) :1145-1159
[3]   A systematic review of software fault prediction studies [J].
Catal, Cagatay ;
Diri, Banu .
EXPERT SYSTEMS WITH APPLICATIONS, 2009, 36 (04) :7346-7354
[4]   An Empirical Study on Heterogeneous Defect Prediction Approaches [J].
Chen, Haowen ;
Jing, Xiao-Yuan ;
Li, Zhiqiang ;
Wu, Di ;
Peng, Yi ;
Huang, Zhiguo .
IEEE TRANSACTIONS ON SOFTWARE ENGINEERING, 2021, 47 (12) :2803-2822
[5]   Negative samples reduction in cross-company software defects prediction [J].
Chen, Lin ;
Fang, Bin ;
Shang, Zhaowei ;
Tang, Yuanyan .
INFORMATION AND SOFTWARE TECHNOLOGY, 2015, 62 :67-77
[6]   Revisiting heterogeneous defect prediction methods: How far are we? [J].
Chen, Xiang ;
Mu, Yanzhou ;
Liu, Ke ;
Cui, Zhanqi ;
Ni, Chao .
INFORMATION AND SOFTWARE TECHNOLOGY, 2021, 130
[7]   Do different cross-project defect prediction methods identify the same defective modules? [J].
Chen, Xiang ;
Mu, Yanzhou ;
Qu, Yubin ;
Ni, Chao ;
Liu, Meng ;
He, Tong ;
Liu, Shangqing .
JOURNAL OF SOFTWARE-EVOLUTION AND PROCESS, 2020, 32 (05)
[8]  
Cheng M., 2016, 28 INT C SOFTWARE EN, P171
[9]   Optimal Transport for Domain Adaptation [J].
Courty, Nicolas ;
Flamary, Remi ;
Tuia, Devis ;
Rakotomamonjy, Alain .
IEEE TRANSACTIONS ON PATTERN ANALYSIS AND MACHINE INTELLIGENCE, 2017, 39 (09) :1853-1865
[10]  
Cruz AEC, 2009, INT SYMP EMP SOFTWAR, P461