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 条
[31]   Transfer learning for software defect prediction [J].
Cheng M. ;
Wu G.-Q. ;
Yuan M.-T. .
Tien Tzu Hsueh Pao/Acta Electronica Sinica, 2016, 44 (01) :115-122
[32]   Software Defect Prediction Analysis Using Machine Learning Algorithms [J].
Singh, Praman Deep ;
Chug, Anuradha .
PROCEEDINGS OF THE 7TH INTERNATIONAL CONFERENCE ON CLOUD COMPUTING, DATA SCIENCE AND ENGINEERING (CONFLUENCE 2017), 2017, :775-781
[33]   Class Imbalance Issue in Software Defect Prediction Models by various Machine Learning Techniques: An Empirical Study [J].
Pandey, Sushant Kumar ;
Tripathi, Anil Kumar .
2021 8TH INTERNATIONAL CONFERENCE ON SMART COMPUTING AND COMMUNICATIONS (ICSCC), 2021, :58-63
[34]   Combining text analysis techniques with unsupervised machine learning methodologies for improved software vulnerability management [J].
Anastasiadis, Mike ;
Aivatoglou, Georgios ;
Spanos, Georgios ;
Voulgaridis, Antonis ;
Votis, Konstantinos .
2022 IEEE INTERNATIONAL CONFERENCE ON CYBER SECURITY AND RESILIENCE (IEEE CSR), 2022, :273-278
[35]   Leveraging Mutants for Automatic Prediction of Metamorphic Relations using Machine Learning [J].
Nair, Aravind ;
Meinke, Karl ;
Eldh, Sigrid .
PROCEEDINGS OF THE 3RD ACM SIGSOFT INTERNATIONAL WORKSHOP ON MACHINE LEARNING TECHNIQUES FOR SOFTWARE QUALITY EVALUATION (MALTESQUE '19), 2019, :1-6
[36]   A comparative study of software defect binomial classification prediction models based on machine learning [J].
Tao, Hongwei ;
Niu, Xiaoxu ;
Xu, Lang ;
Fu, Lianyou ;
Cao, Qiaoling ;
Chen, Haoran ;
Shang, Songtao ;
Xian, Yang .
SOFTWARE QUALITY JOURNAL, 2024, 32 (03) :1203-1237
[37]   Machine learning in software defect prediction: A business-driven systematic mapping study [J].
Stradowski, Szymon ;
Madeyski, Lech .
INFORMATION AND SOFTWARE TECHNOLOGY, 2023, 155
[38]   Machine learning techniques for software vulnerability prediction: a comparative study [J].
Gul Jabeen ;
Sabit Rahim ;
Wasif Afzal ;
Dawar Khan ;
Aftab Ahmed Khan ;
Zahid Hussain ;
Tehmina Bibi .
Applied Intelligence, 2022, 52 :17614-17635
[39]   A Study on Software Effort Prediction Using Machine Learning Techniques [J].
Zhang, Wen ;
Yang, Ye ;
Wang, Qing .
EVALUATION OF NOVEL APPROACHES TO SOFTWARE ENGINEERING, ENASE 2011, 2013, 275 :1-15
[40]   Machine learning techniques for software vulnerability prediction: a comparative study [J].
Jabeen, Gul ;
Rahim, Sabit ;
Afzal, Wasif ;
Khan, Dawar ;
Khan, Aftab Ahmed ;
Hussain, Zahid ;
Bibi, Tehmina .
APPLIED INTELLIGENCE, 2022, 52 (15) :17614-17635