Evaluasi Dampak SMOTE dan Analisis Kebocoran Data pada Prediksi Cacat Perangkat Lunak Berbasis Extra Trees dan Random Forest Menggunakan Dataset NASA KC1

  • Luvita Khairana Salwa Universitas Mulawarman
  • Akbar Rachim (Corresponding Author) Universitas Mulawarman
  • M. Radja Nur Akbar Universitas Mulawarman
  • Ferly Ahmad Nabil Universitas Mulawarman
  • Heiza Rizki Pratama Universitas Mulawarman
  • Denny Mulia Universitas Mulawarman
  • M. Zaki Fahriansyah Universitas Mulawarman
  • Fahrul Agus Universitas Mulawarman
Keywords: Prediksi Cacat Perangkat Lunak, Extra Trees, SMOTE, Kebocoran Data, NASA KC1

Abstract

Prediksi cacat perangkat lunak membantu menentukan modul yang perlu diuji terlebih dahulu, namun dataset NASA KC1 bersifat tidak seimbang dan mengandung banyak baris duplikat yang dapat menggelembungkan skor evaluasi. Penelitian ini mengevaluasi dampak oversampling berbasis SMOTE terhadap model Extra Trees dan Random Forest, serta mengukur dua jenis kebocoran data. Dataset KC1 dibersihkan dari duplikat sehingga menyusut dari 2.109 menjadi 1.186 modul unik (25% cacat). Empat model diuji menggunakan validasi silang 10-lipatan berulang tiga kali dengan uji-t terkoreksi Nadeau–Bengio. Hasil menunjukkan SMOTE meningkatkan recall Extra Trees dari 0,328 menjadi 0,434, namun menurunkan precision dari 0,580 menjadi 0,502. Nilai Matthews Correlation Coefficient (MCC) dan AUC relatif stabil di angka 0,304 dan 0,736, tanpa perbedaan signifikan antara Extra Trees dan Random Forest. Sebaliknya, kebocoran data terbukti mendongkrak performa secara artifisial, di mana SMOTE sebelum pembagian data menaikkan AUC hingga 0,896 dan MCC dari 0,304 hingga 0,608, sedangkan duplikat menaikkan AUC dari 0,799 menjadi 0,833. Disimpulkan bahwa SMOTE menggeser titik kerja model ke arah recall yang lebih tinggi dengan mengorbankan precision, sehingga penanganan duplikasi dan prosedur validasi ketat sangat krusial dalam evaluasi model prediksi cacat perangkat lunak. 

Downloads

Download data is not yet available.

References

A. Agrawal and T. Menzies, “Is ‘Better Data’ Better Than ‘Better Data Miners’? On the Benefits of Tuning SMOTE for Defect Prediction,” in Proceedings of the 40th International Conference on Software Engineering (ICSE), 2018, pp. 1050–1061. doi: 10.1145/3180155.3180197.

N. P. Kartika et al., “Comparative Performance Evaluation of Linear, Bagging, and Boosting Models Using BorutaSHAP for Software Defect Prediction on NASA MDP Datasets,” Jurnal Teknik Informatika (JUTIF), vol. 6, no. 6, pp. 5821–5836, 2025, doi: 10.52436/1.jutif.2025.6.6.5393.

N. S. Thomas and S. Kaliraj, “An Improved and Optimized Random Forest Based Approach to Predict the Software Faults,” SN Comput. Sci., vol. 5, p. 530, 2024, doi: 10.1007/s42979-024-02764-x.

D. Hidayat and L. P. Manik, “Comparison of Oversampling Techniques on Minority Data Using Imbalance Software Defect Prediction Dataset,” Journal of Applied Informatics and Computing, vol. 8, no. 2, pp. 472–477, 2024, doi: 10.30871/jaic.v8i2.8605.

P. Nabella, R. Herteno, S. W. Saputro, M. R. Faisal, and F. Abadi, “Impact of a Synthetic Data Vault for Imbalanced Class in Cross-Project Defect Prediction,” Journal of Electronics, Electromedical Engineering, and Medical Informatics, vol. 6, no. 2, pp. 219–230, 2024, doi: 10.35882/jeeemi.v6i2.409.

yasserhessein, “Software Defects,” Kaggle, 2024. [Online]. Available: https://www.kaggle.com/datasets/yasserhessein/software-defects

A. Fernández, S. García, F. Herrera, and N. V Chawla, “SMOTE for Learning from Imbalanced Data: Progress and Challenges, Marking the 15-Year Anniversary,” Journal of Artificial Intelligence Research, vol. 61, pp. 863–905, 2018, doi: 10.1613/jair.1.11192.

M. Shepperd, Q. Song, Z. Sun, and C. Mair, “Data Quality: Some Comments on the NASA Software Defect Datasets,” IEEE Transactions on Software Engineering, vol. 39, no. 9, pp. 1208–1215, 2013, doi: 10.1109/TSE.2013.11.

D. Chicco and G. Jurman, “The Advantages of the Matthews Correlation Coefficient (MCC) over F1 Score and Accuracy in Binary Classification Evaluation,” BMC Genomics, vol. 21, p. 6, 2020, doi: 10.1186/s12864-019-6413-7.

H. Ghinaya, R. Herteno, M. R. Faisal, A. Farmadi, and F. Indriani, “Analysis of Important Features in Software Defect Prediction Using Synthetic Minority Oversampling Techniques (SMOTE), Recursive Feature Elimination (RFE) and Random Forest,” Journal of Electronics, Electromedical Engineering, and Medical Informatics, vol. 6, no. 3, pp. 276–288, 2024, doi: 10.35882/jeeemi.v6i3.453.

P. Geurts, D. Ernst, and L. Wehenkel, “Extremely Randomized Trees,” Mach. Learn., vol. 63, no. 1, pp. 3–42, 2006, doi: 10.1007/s10994-006-6226-1.

N. V Chawla, K. W. Bowyer, L. O. Hall, and W. P. Kegelmeyer, “SMOTE: Synthetic Minority Over-sampling Technique,” Journal of Artificial Intelligence Research, vol. 16, pp. 321–357, 2002, doi: 10.1613/jair.953.

G. Kovács, “An Empirical Comparison and Evaluation of Minority Oversampling Techniques on a Large Number of Imbalanced Datasets,” Appl. Soft Comput., vol. 83, p. 105662, 2019, doi: 10.1016/j.asoc.2019.105662.

M. K. Suryadi, R. Herteno, S. W. Saputro, M. R. Faisal, and R. A. Nugroho, “Comparative Study of Various Hyperparameter Tuning on Random Forest Classification with SMOTE and Feature Selection Using Genetic Algorithm in Software Defect Prediction,” Journal of Electronics, Electromedical Engineering, and Medical Informatics, vol. 6, no. 2, pp. 137–147, 2024, doi: 10.35882/jeeemi.v6i2.375.

A. Demircioğlu, “Applying Oversampling Before Cross-Validation Will Lead to High Bias in Radiomics,” Sci. Rep., vol. 14, p. 11563, 2024, doi: 10.1038/s41598-024-62585-z.

M. S. Santos, J. P. Soares, P. H. Abreu, H. Araujo, and J. Santos, “Cross-Validation for Imbalanced Datasets: Avoiding Overoptimistic and Overfitting Approaches [Research Frontier],” IEEE Comput. Intell. Mag., vol. 13, no. 4, pp. 59–76, 2018, doi: 10.1109/MCI.2018.2866730.

S. Kapoor and A. Narayanan, “Leakage and the Reproducibility Crisis in Machine-Learning-Based Science,” Patterns, vol. 4, no. 9, p. 100804, 2023, doi: 10.1016/j.patter.2023.100804.

C. Nadeau and Y. Bengio, “Inference for the Generalization Error,” Mach. Learn., vol. 52, no. 3, pp. 239–281, 2003, doi: 10.1023/A:1024068626366.

G. Lemaître, F. Nogueira, and C. K. Aridas, “Imbalanced-learn: A Python Toolbox to Tackle the Curse of Imbalanced Datasets in Machine Learning,” Journal of Machine Learning Research, vol. 18, no. 17, pp. 1–5, 2017, [Online]. Available: https://jmlr.org/papers/v18/16-365.html

N. Hidayati, J. Suntoro, and G. G. Setiaji, “Perbandingan Algoritma Klasifikasi untuk Prediksi Cacat Software dengan Pendekatan CRISP-DM,” Jurnal Sains dan Informatika, vol. 7, no. 2, pp. 117–125, 2021, doi: 10.34128/jsi.v7i2.313.

Published
2026-12-18
How to Cite
Salwa, L. K., Akbar Rachim, Akbar, M. R. N., Nabil, F. A., Pratama, H. R., Mulia, D., Fahriansyah, M. Z., & Agus, F. (2026). Evaluasi Dampak SMOTE dan Analisis Kebocoran Data pada Prediksi Cacat Perangkat Lunak Berbasis Extra Trees dan Random Forest Menggunakan Dataset NASA KC1. Journal of Artificial Intelligence and Technology Information (JAITI), 4(4), 902-918. https://doi.org/10.58602/jaiti.v4i4.461