Software Defect Prediction Method Based on Stable Learning

被引:0
|
作者
Fan, Xi [1 ,2 ,3 ]
Mao, Jingen [2 ,3 ]
Lian, Liangjue [2 ,3 ]
Yu, Li [1 ]
Zheng, We [2 ,3 ]
Ge, Yun [2 ,3 ]
机构
[1] Nanjing Univ Aeronaut & Astronaut, Coll Aerosp Engn, Nanjing 210012, Peoples R China
[2] Nanchang Hangkong Univ, Sch Software, Nanchang 330029, Peoples R China
[3] Nanchang Hangkong Univ, Software Testing & Evaluat Ctr, Nanchang 330029, Peoples R China
来源
CMC-COMPUTERS MATERIALS & CONTINUA | 2024年 / 78卷 / 01期
基金
中国国家自然科学基金;
关键词
Software defect prediction; code visualization; stable learning; sample reweight; residual network; VISUALIZATION;
D O I
10.32604/cmc.2023.045522
中图分类号
TP [自动化技术、计算机技术];
学科分类号
0812 ;
摘要
The purpose of software defect prediction is to identify defect-prone code modules to assist software quality assurance teams with the appropriate allocation of resources and labor. In previous software defect prediction studies, transfer learning was effective in solving the problem of inconsistent project data distribution. However, target projects often lack sufficient data, which affects the performance of the transfer learning model. In addition, the presence of uncorrelated features between projects can decrease the prediction accuracy of the transfer learning model. To address these problems, this article propose a software defect prediction method based on stable learning (SDP-SL) that combines code visualization techniques and residual networks. This method first transforms code files into code images using code visualization techniques and then constructs a defect prediction model based on these code images. During the model training process, target project data are not required as prior knowledge. Following the principles of stable learning, this paper dynamically adjusted the weights of source project samples to eliminate dependencies between features, thereby capturing the "invariance mechanism" within the data. This approach explores the genuine relationship between code defect features and labels, thereby enhancing defect prediction performance. To evaluate the performance of SDP-SL, this article conducted comparative experiments on 10 open-source projects in the PROMISE dataset. The experimental results demonstrated that in terms of the F-measure, the proposed SDP-SL method outperformed other within-project defect prediction methods by 2.11%-44.03%. In cross-project defect prediction, the SDP-SL method provided an improvement of 5.89%-25.46% in prediction performance compared to other cross-project defect prediction methods. Therefore, SDP-SL can effectively enhance within- and cross-project defect predictions.
引用
收藏
页码:65 / 84
页数:20
相关论文
共 50 条
  • [21] A Software Defect Prediction Method Based on Program Semantic Feature Mining
    Yao, Wenjun
    Shafiq, Muhammad
    Lin, Xiaoxin
    Yu, Xiang
    ELECTRONICS, 2023, 12 (07)
  • [22] Credibility Based Imbalance Boosting Method for Software Defect Proneness Prediction
    Tong, Haonan
    Wang, Shihai
    Li, Guangling
    APPLIED SCIENCES-BASEL, 2020, 10 (22): : 1 - 29
  • [23] A novel software defect prediction method based on hierarchical neural network
    Yu, Huiqun
    Sun, Xingjie
    Zhou, Ziyi
    Fan, Guisheng
    2021 IEEE 45TH ANNUAL COMPUTERS, SOFTWARE, AND APPLICATIONS CONFERENCE (COMPSAC 2021), 2021, : 366 - 375
  • [24] SAL: An Effective Method for Software Defect Prediction
    Sharmin, Sadia
    Arefin, Md Rifat
    Abdullah-Al Wadud, M.
    Nower, Naushin
    Shoyaib, Mohammad
    2015 18TH INTERNATIONAL CONFERENCE ON COMPUTER AND INFORMATION TECHNOLOGY (ICCIT), 2015, : 184 - 189
  • [25] A Novel Feature Selection Method Based on Maximum Likelihood Logistic Regression for Imbalanced Learning in Software Defect Prediction
    Bashir, Kamal
    Li, Tianrui
    Yahaya, Mahama
    INTERNATIONAL ARAB JOURNAL OF INFORMATION TECHNOLOGY, 2020, 17 (05) : 721 - 730
  • [26] Label propagation based semi-supervised learning for software defect prediction
    Zhi-Wu Zhang
    Xiao-Yuan Jing
    Tie-Jian Wang
    Automated Software Engineering, 2017, 24 : 47 - 69
  • [27] Software Defect Prediction and Localization with Attention-Based Models and Ensemble Learning
    Zhang, Tianhang
    Du, Qingfeng
    Xu, Jincheng
    Li, Jiechu
    Li, Xiaojun
    2020 27TH ASIA-PACIFIC SOFTWARE ENGINEERING CONFERENCE (APSEC 2020), 2020, : 81 - 90
  • [28] Using Coding-Based Ensemble Learning to Improve Software Defect Prediction
    Sun, Zhongbin
    Song, Qinbao
    Zhu, Xiaoyan
    IEEE TRANSACTIONS ON SYSTEMS MAN AND CYBERNETICS PART C-APPLICATIONS AND REVIEWS, 2012, 42 (06): : 1806 - 1817
  • [29] Enhancing Software Defect Prediction Using Supervised-Learning Based Framework
    Bashir, Kamal
    Li, Tianrui
    Yohannese, Chubato Wondaferaw
    Mahama, Yahaya
    2017 12TH INTERNATIONAL CONFERENCE ON INTELLIGENT SYSTEMS AND KNOWLEDGE ENGINEERING (IEEE ISKE), 2017,
  • [30] Label propagation based semi-supervised learning for software defect prediction
    Zhang, Zhi-Wu
    Jing, Xiao-Yuan
    Wang, Tie-Jian
    AUTOMATED SOFTWARE ENGINEERING, 2017, 24 (01) : 47 - 69