面向迁移学习的跨项目缺陷预测类不平衡学习
Transfer-Learning Oriented Class Imbalance Learning for Cross-Project Defect Prediction
摘要:
跨项目缺陷预测(CPDP)的目的是通过使用基于其他项目的历史缺陷数据训练的预测模型来预测缺乏训练数据的项目的缺陷。然而,由于不同项目的数据集之间的分布差异,建立高质量的CPDP模型仍然是一个挑战。不幸的是,软件缺陷数据集的类不平衡性质进一步增加了难度。在本文中,我们提出了一个面向迁移学习的少数过采样技术(TOMO)的特征加权转移朴素贝叶斯(FWTNB)方法(TOMOFWTNB)的CPDP同时考虑classimbalance和功能的重要性问题。与传统的过采样技术不同,TOMO不仅可以平衡数据,而且可以减小分布差异。然后使用FWTNB进一步增加两个分布的相似性。在11个公开的缺陷数据集上进行了实验。实验结果表明:(1)TOMO算法使G-Measure平均提高了23.7 $\sim$ 41.8%,MCC平均提高了54.2 $\sim$ 77.8%; (2)特征加权(FW)策略使G-Measure平均值提高了11%,MCC平均值提高了29.2%. (3)与现有的最新CPDP方法相比,TOMOFWTNB将平均G-Measure值提高了至少27.8%,将平均MCC值提高了至少71.5%。可以得出结论:(1)TOMO是非常有效的解决类不平衡问题的CPDP场景;(2)我们的FW策略是有助于CPDP;(3)TOMOFWTNB优于以前的国家的最先进的CPDP方法。
英文摘要:
Cross-project defect prediction (CPDP) aims to predict defects of projects lacking training data by using prediction models trained on historical defect data from other projects. However, since the distribution differences between datasets from different projects, it is still a challenge to build high-quality CPDP models. Unfortunately, class imbalanced nature of software defect datasets further increases the difficulty. In this paper, we propose a transferlearning oriented minority over-sampling technique (TOMO) based feature weighting transfer naive Bayes (FWTNB) approach (TOMOFWTNB) for CPDP by considering both classimbalance and feature importance problems. Differing from traditional over-sampling techniques, TOMO not only can balance the data but reduce the distribution difference. And then FWTNB is used to further increase the similarity of two distributions. Experiments are performed on 11 public defect datasets. The experimental results show that (1) TOMO improves the average G-Measure by 23.7\%$\sim$41.8\%, and the average MCC by 54.2\%$\sim$77.8\%. (2) feature weighting (FW) strategy improves the average G-Measure by 11\%, and the average MCC by 29.2\%. (3) TOMOFWTNB improves the average G-Measure value by at least 27.8\%, and the average MCC value by at least 71.5\%, compared with existing state-of-theart CPDP approaches. It can be concluded that (1) TOMO is very effective for addressing class-imbalance problem in CPDP scenario; (2) our FW strategy is helpful for CPDP; (3) TOMOFWTNB outperforms previous state-of-the-art CPDP approaches.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。