EUVIMEDEUVIMED entdecken
Open Access · CC BY 4.0

Evaluating the Impact of Data Transformation Techniques on the Performance and Interpretability of Software Defect Prediction Models

Yu Zhao, Zhiqiu Huang, Lina Gong, Yi Zhu, Qiao Yu, Yuxiang Gao

IET Software · 2023-01 · 2023 (1)

DOI: 10.1049/2023/6293074 ↗

Kurz gefasst

Fachartikel in der Zeitschrift IET Software, online erschienen am 14.11.2023. Verfasst von Yu Zhao und 5 weiteren Autor:innen. Die Arbeit wurde bisher 10-mal zitiert (Crossref) und nennt 93 Literaturangaben. Der Volltext ist frei zugänglich (Open Access, CC BY 4.0). Gefördert von: National Natural Science Foundation of China, Natural Science Foundation of Jiangsu Province, Nanjing University.

AbstractBibliografische AngabenZitierenVerwandte Studien

Abstract (Originalsprache)

The performance of software defect prediction (SDP) models determines the priority of test resource allocation. Researchers also use interpretability techniques to gain empirical knowledge about software quality from SDP models. However, SDP methods designed in the past research rarely consider the impact of data transformation methods, simple but commonly used preprocessing techniques, on the performance and interpretability of SDP models. Therefore, in this paper, we investigate the impact of three data transformation methods (Log, Minmax, and Z ‐score) on the performance and interpretability of SDP models. Through empirical research on (i) six classification techniques (random forest, decision tree, logistic regression, Naive Bayes, K‐nearest neighbors, and multilayer perceptron), (ii) six performance evaluation indicators (Accuracy, Precision, Recall, F1, MCC, and AUC), (iii) two interpretable methods (permutation and SHAP), (iv) two feature importance measures (Top‐ k feature rank overlap and difference), and (v) three datasets (Promise, Relink, and AEEEM), our results show that the data transformation methods can significantly improve the performance of the SDP models and greatly affect the variation of the most important features. Specifically, the impact of data transformation methods on the performance and interpretability of SDP models depends on the classification techniques and evaluation indicators. We observe that log transformation improves NB model performance by 7%–61% on the other five indicators with a 5% drop in Precision. Minmax and Z ‐score transformation improves NB model performance by 2%–9% across all indicators. However, all three transformation methods lead to substantial changes in the Top‐5 important feature ranks, with differences exceeding 2 in 40%–80% of cases (detailed results available in the main content). Based on our findings, we recommend that (1) considering the impact of data transformation methods on model performance and interpretability when designing SDP approaches as transformations can improve model accuracy, and potentially obscure important features, which lead to challenges in interpretation, (2) conducting comparative experiments with and without the transformations to validate the effectiveness of proposed methods which are designed to improve the prediction performance, and (3) tracking changes in the most important features before and after applying data transformation methods to ensure precise and traceable interpretability conclusions to gain insights. Our study reminds researchers and practitioners of the need for comprehensive considerations even when using other similar simple data processing methods.

Förderung

  • National Natural Science Foundation of China
  • Natural Science Foundation of Jiangsu Province
  • Nanjing University
  • Nanjing University of Aeronautics and Astronautics

Zitieren

APA

Zhao, Y., Huang, Z., Gong, L., Zhu, Y., Yu, Q., & Gao, Y. (2023). Evaluating the Impact of Data Transformation Techniques on the Performance and Interpretability of Software Defect Prediction Models. IET Software, 2023(1). https://doi.org/10.1049/2023/6293074

Vancouver

Zhao Y, Huang Z, Gong L, Zhu Y, Yu Q, Gao Y. Evaluating the Impact of Data Transformation Techniques on the Performance and Interpretability of Software Defect Prediction Models. IET Software. 2023;2023(1). doi:10.1049/2023/6293074

BibTeX
@article{Zhao2023,
  author = {Zhao, Yu and Huang, Zhiqiu and Gong, Lina and Zhu, Yi and Yu, Qiao and Gao, Yuxiang},
  title = {Evaluating the Impact of Data Transformation Techniques on the Performance and Interpretability of Software Defect Prediction Models},
  journal = {IET Software},
  year = {2023},
  volume = {2023},
  number = {1},
  doi = {10.1049/2023/6293074}
}
Kostenlos starten →