Skip to main content
QUICK REVIEW

[Paper Review] Towards Developing and Analysing Metric-Based Software Defect Severity Prediction Model

Umamaheswara Sharma B, Ravichandra Sadam|arXiv (Cornell University)|Oct 10, 2022
Software Engineering ResearchComputer Science5 citations
TL;DR

This paper proposes a self-training semi-supervised learning model using decision trees to predict defect severity in software modules, leveraging both labeled and unlabeled data. The approach improves prediction performance by iteratively assigning high-confidence pseudo-labels to unlabeled instances, reducing system risk and remaining service time, with novel project-specific metrics demonstrating tangible project-level benefits.

ABSTRACT

In a critical software system, the testers have to spend an enormous amount of time and effort to maintain the software due to the continuous occurrence of defects. Among such defects, some severe defects may adversely affect the software. To reduce the time and effort of a tester, many machine learning models have been proposed in the literature, which use the documented defect reports to automatically predict the severity of the defective software modules. In contrast to the traditional approaches, in this work we propose a metric-based software defect severity prediction (SDSP) model that uses a self-training semi-supervised learning approach to classify the severity of the defective software modules. The approach is constructed on a mixture of unlabelled and labelled defect severity data. The self-training works on the basis of a decision tree classifier to assign the pseudo-class labels to the unlabelled instances. The predictions are promising since the self-training successfully assigns the suitable class labels to the unlabelled instances. On the other hand, numerous research studies have covered proposing prediction approaches as well as the methodological aspects of defect severity prediction models, the gap in estimating project attributes from the prediction model remains unresolved. To bridge the gap, we propose five project specific measures such as the Risk-Factor (RF), the Percent of Saved Budget (PSB), the Loss in the Saved Budget (LSB), the Remaining Service Time (RST) and Gratuitous Service Time (GST) to capture project outcomes from the predictions. Similar to the traditional measures, these measures are also calculated from the observed confusion matrix. These measures are used to analyse the impact that the prediction model has on the software project.

Motivation & Objective

  • To address the gap in estimating project-specific outcomes from defect severity prediction models.
  • To develop a metric-based software defect severity prediction (SDSP) model using self-training semi-supervised learning.
  • To improve prediction performance on imbalanced defect severity data through ADASYN oversampling.
  • To introduce five new project-specific evaluation measures (RF, PSB, LSB, RST, GST) to assess real-world impact of predictions.
  • To empirically validate the model on real-world software systems from the AEEEM repository.

Proposed method

  • The model employs a self-training semi-supervised learning framework using a decision tree as the base classifier.
  • Unlabeled instances are assigned pseudo-labels based on model confidence, with a threshold (Γ = 0.99) used to select high-confidence predictions.
  • The labeled dataset is balanced using ADASYN oversampling to address class imbalance in defect severity categories.
  • The iterative process combines labeled and pseudo-labeled data to retrain the classifier in each iteration.
  • Performance is evaluated using traditional metrics (accuracy, F-measure) and novel project-specific measures derived from the confusion matrix.
  • The approach is evaluated on four open-source software systems from the AEEEM repository using 527 unlabeled instances.

Experimental results

Research questions

  • RQ1Can a self-training semi-supervised learning model effectively classify software defect severity using a mix of labeled and unlabeled data?
  • RQ2How does the proposed model compare to traditional supervised approaches in terms of predictive performance on imbalanced defect severity data?
  • RQ3To what extent do the proposed project-specific metrics (RF, PSB, LSB, RST, GST) reflect the real-world impact of defect severity predictions?
  • RQ4How does the choice of acceptance threshold (Γ) affect the model’s performance and generalization?
  • RQ5Can the proposed model reduce system risk and service time while improving budget efficiency in software maintenance?

Key findings

  • The self-training model successfully assigned suitable pseudo-labels to unlabeled instances, improving classification performance.
  • On average, the model reduced the risk of system failure and the remaining service time required for defect resolution.
  • The Risk-Factor (RF) decreased, indicating lower project risk due to fewer false negatives.
  • The Percent of Saved Budget (PSB) increased and the Loss in the Saved Budget (LSB) decreased, reflecting improved cost efficiency.
  • The Remaining Service Time (RST) and Gratuitous Service Time (GST) were reduced, indicating faster and more efficient defect resolution.
  • The model demonstrated consistent performance improvements across all four evaluated software systems, especially in handling minority severity classes through ADASYN oversampling.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.