Effective Estimation of Modules' Metrics in Software Defect Prediction
Seyed Mostafa Fakhrahmad, Ashkan Sami · 2009
The prediction of software defects has recently attracted the attention of software quality researchers. Many predictive classification systems have already been proposed, which aim at early discovery of software modules that are fault- prone and versa. The proposed methods are usually assessed using datasets available from NASA Metrics Data repository. These datasets include a combination of design-level and code- level metrics for different modules. To apply a defect predictor, all metrics have to be measured for any of the modules (to be used as the classifier inputs). The measurement of some of these metrics is easy and can be done straight forward. However, there are a number of metrics which are more difficult or time- consuming to quantify. Moreover, many of them do not have an exact value; so, they may get different values when using different formulas or tools. In this paper, we first discuss this hypothesis that some strong dependencies exist among various features of these datasets. Based on this hypothesis, we search for short combinations of features from the first category (easy-to- measure features), which can describe any of the features from the second category (hard-to-measure features) with a high accuracy. Then, we introduce a set of fuzzy modeling systems, each of which estimates the value of one of the second category features from its specified determinants. The evaluation of the estimation systems is carried out by computing the MSE values for all features. The experimental results are promising. The presented estimation system provides usability of the defect prediction system rather than its accuracy. Using this system, the user will not have to measure all the required mentioned metrics for any of the modules. All the features of the second category will automatically be estimated with a high accuracy.