journal article·2025Open access

Software Defect Prediction Based on Semantic Views of Metrics: Clustering Analysis and Model Performance Analysis

Baishun Zhou, Haijiao Zhao, Yuxin Wen, Gangyi Ding, Ying Xing, Xinyang Lin, Lei Xiao

Computers, Materials & Continua· Volume 84· Issue 3

Abstract

In recent years, with the rapid development of software systems, the continuous expansion of software scale and the increasing complexity of systems have led to the emergence of a growing number of software metrics. Defect prediction methods based on software metric elements highly rely on software metric data. However, redundant software metric data is not conducive to efficient defect prediction, posing severe challenges to current software defect prediction tasks. To address these issues, this paper focuses on the rational clustering of software metric data. Firstly, multiple software projects are evaluated to determine the preset number of clusters for software metrics, and various clustering methods are employed to cluster the metric elements. Subsequently, a co-occurrence matrix is designed to comprehensively quantify the number of times that metrics appear in the same category. Based on the comprehensive results, the software metric data are divided into two semantic views containing different metrics, thereby analyzing the semantic information behind the software metrics. On this basis, this paper also conducts an in-depth analysis of the impact of different semantic view of metrics on defect prediction results, as well as the performance of various classification models under these semantic views. Experiments show that the joint use of the two semantic views can significantly improve the performance of models in software defect prediction, providing a new understanding and approach at the semantic view level for defect prediction research based on software metrics.
Source: openalex_inverted_index · Quality: baseline

Research context

OpenAlex topics: Software Engineering Research · Software Reliability and Analysis Research · Software Engineering Techniques and Practices

SciVX discovery tags are terminology-based. OpenAlex topics are source-provided classifications.

References (31)

Show source-provided references
1. Progress on approaches to software defect prediction10.1049/iet-sen.2017.0148 ↗
2. Clustering categorical data using silhouette coefficient as a relocating measure
3. Early prediction of software defect using ensemble learning: a comparative study
4. Software defects prediction using machine learning algorithms
5. Software defect prediction with naïve Bayes classifier
6. Enhancing malware classification: a comparative study of feature selection models with parameter optimization
7. Software defect prediction using machine learning techniques
8. Software defect prediction using ensemble learning: a systematic literature review10.1109/ACCESS.2021.3095559 ↗
9. Exploring the impact of data preprocessing techniques on composite classifier algorithms in cross-project defect prediction10.1007/s10515-024-00454-9 ↗
10. Design an improved model of software defect prediction model for web applications
11. Cross-project defect prediction using a connectivity-based unsupervised classifier
12. Performance analysis of selected clustering techniques for software defects prediction
13. A hybrid feature selection method for software fault prediction10.1587/transinf.2019EDP7033 ↗
14. One-step graph-based incomplete multi-view clustering10.1007/s00530-023-01225-4 ↗
15. Multi-view learning for software defect prediction
16. Multiview transfer learning for software defect prediction10.1109/ACCESS.2018.2890733 ↗
17. Deep semantic feature learning for software defect prediction10.1109/TSE.2018.2877612 ↗
18. Software defect prediction based on deep representation learning of source code from contextual syntax and semantic graph10.1109/TR.2024.3354965 ↗
19. Semantic and traditional feature fusion for software defect prediction using hybrid deep learning model10.1038/s41598-024-65639-4 ↗
20. Towards identifying software project clusters with regard to defect prediction
21. Review on determining number of cluster in K-means clustering
22. On spectral clustering: analysis and an algorithm
23. Unsupervised learning by probabilistic latent semantic analysis10.1023/A:1007617005950 ↗
24. Performance guarantees for hierarchical clustering10.1016/j.jcss.2004.10.006 ↗
25. Chen · Appl Stochastic Models Bus Ind · 2005 · 21 · 11110.1002/asmb.537 ↗
26. Random forests10.1023/A:1010933404324 ↗
27. Xgboost: a scalable tree boosting system
28. A brief review of nearest neighbor algorithm for learning and classification
29. Menard · Applied logistic regression analysis · 2001
30. SMOTE: synthetic minority over-sampling technique10.1613/jair.953 ↗
31. Interpretability application of the Just-in-Time software defect prediction model10.1016/j.jss.2022.111245 ↗