Identifying Inconsistent Software Defect Predictions with Symmetry Metamorphic Relation Pattern

Pak Yuen Patrick Chan, Jacky Keung, Zhen Yang*

*Corresponding author for this work

Research output: Journal Publications and ReviewsRGC 21 - Publication in refereed journalpeer-review

1 Citation (Scopus)

Abstract

Determining inconsistent software defect predictions in machine learning-based systems poses a significant challenge. To address this issue, we propose the utilization of Metamorphic Testing (MT) incorporating the “symmetry” metamorphic relation pattern (MRP) to transform the training datasets for training follow-up systems. In contrast, original datasets are employed to train source systems. By comparing the occurrence of inconsistent predictions between source and follow-up systems and analysing the efficacy of this approach, we aim to shed light on its effectiveness. Additionally, Explainable Artificial Intelligence (XAI) is employed to explain the inconsistencies observed. The results demonstrate that the “symmetry” MRP can induce inconsistent predictions, and XAI techniques can effectively elucidate such inconsistencies. Moreover, we find that the ordering of small-sized and imbalanced datasets can contribute to inconsistencies when using the KMeans, Random Forests or Convolutional Neural Network algorithm for software defect prediction systems. To further advance this research, future studies can extend the proposed approach by incorporating additional MRPs in domains that utilize machine learning algorithms to identify and explain inconsistencies. Another promising research avenue involves investigating the relationship between data imbalance, dataset size, and MRPs to enhance the identification of inconsistencies and derive more robust MRs. © 2025 Published by Elsevier Inc.
Original languageEnglish
Article number112449
JournalThe Journal of Systems and Software
Volume227
Online published4 Apr 2025
DOIs
Publication statusPublished - Sept 2025

Funding

This work is supported in part by the General Research Fund of the Research Grants Council of Hong Kong and the research funds of the City University of Hong Kong (6000796, 9229109, 9229098, 9220103, 9229029), and the Natural Science Foundation of Shandong Province under Grant ZR2024QF093.

Research Keywords

  • Metamorphic Testing
  • Metamorphic Relation Patterns
  • Software Defect Prediction
  • Explainable Artificial Intelligence

RGC Funding Information

  • RGC-funded

Fingerprint

Dive into the research topics of 'Identifying Inconsistent Software Defect Predictions with Symmetry Metamorphic Relation Pattern'. Together they form a unique fingerprint.

Cite this