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 条
[41]   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
[42]   A systematic review of machine learning techniques for software fault prediction [J].
Malhotra, Ruchika .
APPLIED SOFT COMPUTING, 2015, 27 :504-518
[43]   Validating a Deep Learning Framework by Metamorphic Testing [J].
Ding, Junhua ;
Kang, Xiaojun ;
Hu, Xin-Hua .
2017 IEEE/ACM 2ND INTERNATIONAL WORKSHOP ON METAMORPHIC TESTING (MET 2017), 2017, :28-34
[44]   Software Defect Prediction Based on Fourier Learning [J].
Yang, Kang ;
Yu, Huiqun ;
Fan, Guisheng ;
Yang, Xingguang ;
Zheng, Song ;
Leng, Chunxia .
PROCEEDINGS OF THE 2018 IEEE INTERNATIONAL CONFERENCE ON PROGRESS IN INFORMATICS AND COMPUTING (PIC), 2018, :388-392
[45]   Automating Fault Prediction in Software Testing using Machine Learning Techniques: A Real-World Applications [J].
Panda, Prasanta ;
Sahoo, Debaryaan ;
Sahoo, Debarjun .
2ND INTERNATIONAL CONFERENCE ON SUSTAINABLE COMPUTING AND SMART SYSTEMS, ICSCSS 2024, 2024, :841-844
[46]   Analysis of Tree-Family Machine Learning Techniques for Risk Prediction in Software Requirements [J].
Khan, Bilal ;
Naseem, Rashid ;
Alam, Iftikhar ;
Khan, Inayat ;
Alasmary, Hisham ;
Rahman, Taj .
IEEE ACCESS, 2022, 10 :98220-98231
[47]   Machine Learning-Based Software Defect Prediction for Mobile Applications: A Systematic Literature Review [J].
Jorayeva, Manzura ;
Akbulut, Akhan ;
Catal, Cagatay ;
Mishra, Alok .
SENSORS, 2022, 22 (07)
[48]   Bridging the Gap between Academia and Industry in Machine Learning Software Defect Prediction: Thirteen Considerations [J].
Stradowski, Szymon ;
Madeyski, Lech .
2023 38TH IEEE/ACM INTERNATIONAL CONFERENCE ON AUTOMATED SOFTWARE ENGINEERING, ASE, 2023, :1098-1110
[49]   A software defect prediction method using binary gray wolf optimizer and machine learning algorithms [J].
Wang, Hao ;
Arasteh, Bahman ;
Arasteh, Keyvan ;
Gharehchopogh, Farhad Soleimanian ;
Rouhi, Alireza .
COMPUTERS & ELECTRICAL ENGINEERING, 2024, 118
[50]   Machine learning approach for software defect prediction using multi-core parallel computing [J].
Anshu Parashar ;
Raman Kumar Goyal ;
Sakshi Kaushal ;
Sudip Kumar Sahana .
Automated Software Engineering, 2022, 29