arrow
Return

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

delete2024-01-01
delete0
delete
OA
AI
P
Pak Yuen Patrick Chan *
J
Jacky Keung
DOI:10.1109/ACCESS.2024.3494044delete
deleteOriginal
deleteOriginal request for help
deleteShare
deleteSave
Abstract

Abstract

En 中文
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.
Keywords:
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

Journal

IEEE Access cover
IEEE Access
IF:
3.6
Papers:
9.8W
Citations:
29.4W

Organization

C
City University of Hong Kong
Scholars:
2.3W
Papers: 3.0W
Citations: 6.1W
Cited Papers

Cited Papers

Software defect number prediction: Unsupervised vs supervised methods
err2019-02-01
err80
PREAI
errChen, Xiang; Zhang, Dun; Zhao, Yingquan; Cui, Zhanqi; Ni, Chao
errShare
errSave
Testing and validating machine learning classifiers by metamorphic testing
err2011-04-01
err251
errOAAI
errXie, Xiaoyuan; Ho, Joshua W. K.; Murphy, Christian; Kaiser, Gail; Xu, Baowen; Chen, Tsong Yueh
errShare
errSave
Metamorphic Relations for Enhancing System Understanding and Use
err2020-10-01
err89
errOAAI
errZhou, Zhi Quan; Sun, Liqun; Chen, Tsong Yueh; Towey, Dave
errShare
errSave
Path-directed source test case generation and prioritization in metamorphic testing
err2022-01-01
err20
PREAI
errSun, Chang-ai; Liu, Baoli; Fu, An; Liu, Yiqiang; Liu, Huai
errShare
errSave
Testing machine learning based systems: a systematic mapping
err2020-09-15
err145
errOAAI
errRiccio, Vincenzo; Jahangirova, Gunel; Stocco, Andrea; Humbatova, Nargiz; Weiss, Michael; Tonella, Paolo
errShare
errSave
errShare
errSave
researcher View more