Validating Unsupervised Machine Learning Techniques for Software Defect Prediction With Generic Metamorphic Testing

被引:0
作者
Chan, Pak Yuen Patrick [1 ]
Keung, Jacky [1 ]
机构
[1] City Univ Hong Kong, Dept Comp Sci, Hong Kong, Peoples R China
关键词
Software; Predictive models; Machine learning; Adaptation models; Testing; Data models; Machine learning algorithms; Numerical models; Feature extraction; Mathematical models; Clustering methods; Defect detection; Clustering; machine learning; metamorphic relation; metamorphic testing; software defect prediction; validation;
D O I
10.1109/ACCESS.2024.3494044
中图分类号
TP [自动化技术、计算机技术];
学科分类号
0812 ;
摘要
In the realm of software defect prediction, unsupervised models often step in when labelled datasets are scarce, despite facing the challenge of validating models without prior knowledge of data. Addressing this, we proposed a novel approach leveraging generic metamorphic testing to validate such models effectively, bypassing the need for expert-derived metamorphic relations. Our method identifies five categories of generic metamorphic relations, further divided into twenty-one individual generic metamorphic relations, all formulated through generic Data Mutation Operators. This framework enables us to generate follow-up datasets from the source datasets, training respective software defect prediction models. By comparing predictions between the source and follow-up software defect prediction models and identifying inconsistencies, we can assess the model's sensitivity to generic metamorphic relations as a form of validation. This approach was rigorously evaluated across twenty software defect prediction models, incorporating fourteen different machine learning algorithms and twenty high-dimensional public datasets. Remarkably, the robustness of our generic MT model was confirmed, showing substantial effectiveness in validating software defect prediction models, independent of whether they were supervised or unsupervised. Software defect prediction models, using Agglomerative clustering and Density-Based Spatial Clustering of Applications with Noise algorithms, did not violate any metamorphic relation, and nineteen software defect prediction models did not significantly violate the generic metamorphic relation "Shrinkage and Expansion". Our findings suggest that employing generic metamorphic relations, especially "Shrinkage and Expansion", can universally enhance the validation of defect prediction models. Furthermore, our model can be applied to continuously monitor software defect prediction models.
引用
收藏
页码:165155 / 165172
页数:18
相关论文
共 50 条
[21]   Ensemble-based feature selection and machine learning models for software defect prediction [J].
Kanaujiya, Gaurav Kishor ;
Verma, Prabhat .
KNOWLEDGE AND INFORMATION SYSTEMS, 2025,
[22]   On the Defect Prediction for Large Scale Software Systems - From Defect Density to Machine Learning [J].
Pradhan, Satya ;
Nanniyur, Venky ;
Vissapragada, Pavan K. .
2020 IEEE 20TH INTERNATIONAL CONFERENCE ON SOFTWARE QUALITY, RELIABILITY, AND SECURITY (QRS 2020), 2020, :374-381
[23]   Software Defect Prediction Model Based on the Combination of Machine Learning Algorithms [J].
Fu Y. ;
Dong W. ;
Yin L. ;
Du Y. .
Jisuanji Yanjiu yu Fazhan/Computer Research and Development, 2017, 54 (03) :633-641
[24]   Bayesian Meta-Analysis of Software Defect Prediction With Machine Learning [J].
Mohammadi, Majid ;
Nucci, Dario Di ;
Tamburri, Damian A. .
IEEE TRANSACTIONS ON INDUSTRIAL CYBER-PHYSICAL SYSTEMS, 2023, 1 :147-156
[25]   Unsupervised Software Defect Prediction Through Multiview Clustering [J].
Li, Zhiqiang ;
Zhang, Hongyu ;
Jing, Xiao-Yuan ;
Yu, Wangyang ;
Liu, Yueyue .
IEEE TRANSACTIONS ON RELIABILITY, 2025,
[26]   Transfer Learning Code Vectorizer based Machine Learning Models for Software Defect Prediction [J].
Singh, Rituraj ;
Singh, Jasmeet ;
Gill, Mehrab Singh ;
Malhotra, Ruchika ;
Garima .
2020 INTERNATIONAL CONFERENCE ON COMPUTATIONAL PERFORMANCE EVALUATION (COMPE-2020), 2020, :497-502
[27]   Comprehensive Survey of different Machine Learning Algorithms used for Software Defect Prediction [J].
Sharadhi, A. K. ;
Gururaj, Vybhavi ;
Umadi, Keerti R. ;
Kumar, Mushkan ;
Shankar, Sahana P. ;
Varadam, Deepak .
2022 INTERNATIONAL CONFERENCE ON DECISION AID SCIENCES AND APPLICATIONS (DASA), 2022, :425-430
[28]   A Standard Baseline for Software Defect Prediction: Using Machine Learning and Explainable AI [J].
Bommi, Nitin Sai ;
Negi, Atul .
2023 IEEE 47TH ANNUAL COMPUTERS, SOFTWARE, AND APPLICATIONS CONFERENCE, COMPSAC, 2023, :1798-1803
[29]   An improved approach to software defect prediction using a hybrid machine learning model [J].
Miholca, Diana-Lucia .
2018 20TH INTERNATIONAL SYMPOSIUM ON SYMBOLIC AND NUMERIC ALGORITHMS FOR SCIENTIFIC COMPUTING (SYNASC 2018), 2019, :443-448
[30]   Costs and Benefits of Machine Learning Software Defect Prediction: Industrial Case Study [J].
Stradowski, Szymon ;
Madeyski, Lech .
COMPANION PROCEEDINGS OF THE 32ND ACM INTERNATIONAL CONFERENCE ON THE FOUNDATIONS OF SOFTWARE ENGINEERING, FSE COMPANION 2024, 2024, :92-103