An Empirical Evaluation of Machine Learning Techniques for Software Defect Prediction
Reliability, maintainability, development costs, and user pleasure can all be negatively impacted by software flaws. Developers can prioritize testing and quality-assurance tasks by identifying software modules that are prone to defects early on. By identifying connections between software measurements and past defect data, machine learning offers a data-driven method for predicting software defects. An empirical methodology for assessing machine learning methods for binary software fault prediction is presented in this paper. Dataset selection, data preprocessing, feature selection, stratified train-test separation, machine learning model building, hyperparameter tweaking, performance evaluation, statistical comparison, and defect prediction are all part of the methodical workflow used in this study. The benchmark dataset is the NASA/PROMISE JM1 dataset. Five classification methods are examined: K-Nearest Neighbors, Random Forest, Decision Tree, Gaussian Na?ve Bayes, and Logistic Regression. The methodology uses training-set-only class balancing and stratified sampling because software-defect datasets are frequently unbalanced. Evaluation criteria include accuracy, precision, recall, F1-score, and ROC-AUC; recall and F1-score are given special consideration because accuracy by itself may be deceptive when there is a class imbalance. The diversity among classifiers is demonstrated by a publicly available JM1 implementation, which reports test-set accuracy varying from roughly 74.28% to 80.98% and ROC-AUC values from 0.573 to 0.718 among these five models. Rather than being the findings of an independently conducted experiment, these data are regarded here as benchmark/reference results. Python and scikit-learn can be used to create the reproducible experimental framework presented in this research.
Authors
- Ashish Jolly
Institutions
- Swami Devi Dyal Hospital and Dental College (IN)
Publication Details
- Journal
- International Journal of Science and Research (IJSR)
- Published
- 2026-11-30
- DOI
- https://doi.org/10.21275/sr261128170828
- Primary Topic
- Software Engineering Research
- Type
- article
- Field-Weighted Citation Impact
- 0.00