Unsupervised Software Defect Prediction Through Multiview Clustering
The core goal of software defect prediction (SDP) is to identify modules with a high likelihood of defects, thereby enabling prioritization of quality assurance activities with low inspection effort. There are many supervised defect prediction models that are extensively studied. However, these methods require the need for labeling data to get enough training modules, which will cause a lot of waste of human resources. Cross-project defect prediction primarily reuses models trained on other projects with enough historical data. However, this strategy is often hindered by large distribution differences across different projects and privacy concerns of data. Unsupervised learning technique is an alternative solution to the unlabeled data, but it mainly focuses on single-view prediction by concatenating all the software metrics. This ignores the diversity and complementarity of different types of metrics. This study proposes a novel approach, namely, multiview unsupervised software defect prediction (MUSDP). It aims to collaboratively learn the diversity and complementarity of different views to build a robust and reliable defect prediction model. Extensive experiments on <inline-formula xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink"><tex-math notation="LaTeX">$ 28$</tex-math></inline-formula> releases from eight software projects indicate that MUSDP exhibits superior or comparable results regarding <italic xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink">G-mean</i>, <italic xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink">AUC</i>, <inline-formula xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink"><tex-math notation="LaTeX">$P_{\text{opt}}$</tex-math></inline-formula>, and <italic xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink">Recall@20%</i> compared to competing supervised and unsupervised methods. For the interpretation of MUSDP, the number of added and deleted lines significantly influence its predictions.
Authors
- Xiao‐Yuan Jing (ORCID: https://orcid.org/0000-0002-0392-8475)
- Wangyang Yu (ORCID: https://orcid.org/0000-0003-1037-210X)
- Yueyue Liu (ORCID: https://orcid.org/0000-0002-7720-236X)
- Hongyu Zhang (ORCID: https://orcid.org/0000-0002-3063-9425)
- Zhiqiang Li (ORCID: https://orcid.org/0000-0001-5999-3658)
Institutions
- Chongqing University (CN)
- Wuhan University (CN)
- University of Newcastle Australia (AU)
- Shaanxi Normal University (CN)
Publication Details
- Journal
- IEEE Transactions on Reliability
- Published
- 2025-03-26
- DOI
- https://doi.org/10.1109/tr.2025.3548107
- Citations
- 1
- Primary Topic
- Software Engineering Research
- Type
- article
- Field-Weighted Citation Impact
- 3.25
Funders
- National Natural Science Foundation of China
- Natural Science Basic Research Program of Shaanxi Province