PLoS ONE (Jan 2024)

KCO: Balancing class distribution in just-in-time software defect prediction using kernel crossover oversampling.

  • Ahmad Muhaimin Ismail,
  • Siti Hafizah Ab Hamid,
  • Asmiza Abdul Sani,
  • Nur Nasuha Mohd Daud

DOI
https://doi.org/10.1371/journal.pone.0299585
Journal volume & issue
Vol. 19, no. 4
p. e0299585

Abstract

Read online

The performance of the defect prediction model by using balanced and imbalanced datasets makes a big impact on the discovery of future defects. Current resampling techniques only address the imbalanced datasets without taking into consideration redundancy and noise inherent to the imbalanced datasets. To address the imbalance issue, we propose Kernel Crossover Oversampling (KCO), an oversampling technique based on kernel analysis and crossover interpolation. Specifically, the proposed technique aims to generate balanced datasets by increasing data diversity in order to reduce redundancy and noise. KCO first represents multidimensional features into two-dimensional features by employing Kernel Principal Component Analysis (KPCA). KCO then divides the plotted data distribution by deploying spectral clustering to select the best region for interpolation. Lastly, KCO generates the new defect data by interpolating different data templates within the selected data clusters. According to the prediction evaluation conducted, KCO consistently produced F-scores ranging from 21% to 63% across six datasets, on average. According to the experimental results presented in this study, KCO provides more effective prediction performance than other baseline techniques. The experimental results show that KCO within project and cross project predictions especially consistently achieve higher performance of F-score results.