Causally Remove Negative Confound Effects of Size Metric for Software Defect Prediction
Open Access
- 27 January 2022
- journal article
- research article
- Published by MDPI AG in Applied Sciences
- Vol. 12 (3) , 1387
Abstract
Software defect prediction technology can effectively detect potential defects in the software system. The most common method is to establish machine learning models based on software metrics for prediction. However, most of the prediction models are proposed without considering the confounding effects of size metric. The size metric has unexpected correlations with other software metrics and introduces biases into prediction results. Suitably removing these confounding effects to improve the prediction model’s performance is an issue that is still largely unexplored. This paper proposes a method that can causally remove the negative confounding effects of size metric. First, we quantify the confounding effects based on a causal graph. Then, we analyze each confounding effect to determine whether they are positive or negative, and only the negative confounding effects are removed. Extensive experimental results on eight data sets demonstrate the effectiveness of our proposed method. The prediction model’s performance can, in general, be improved after removing the negative confounding effects of size metric.Keywords
Funding Information
- The National Social Science Fund of China (21CGJ006)
This publication has 28 references indexed in Scilit:
- Software fault prediction metrics: A systematic literature reviewInformation and Software Technology, 2013
- Software fault prediction: A literature review and current trendsExpert Systems with Applications, 2011
- A systematic review of software fault prediction studiesExpert Systems with Applications, 2009
- Investigating the effect of dataset size, metrics sets, and feature selection techniques on software fault prediction problemInformation Sciences, 2009
- The effectiveness of software metrics in identifying error-prone classes in post-release software evolution processJournal of Systems and Software, 2008
- The prediction of faulty classes using object-oriented design metricsJournal of Systems and Software, 2001
- A validation of object-oriented design metrics as quality indicatorsIEEE Transactions on Software Engineering, 1996
- Software quality: the elusive target [special issues section]IEEE Software, 1996
- Generalized Additive Models: Some ApplicationsJournal of the American Statistical Association, 1987
- Sample Selection Bias as a Specification ErrorEconometrica, 1979