Software Defects Predictions using SQL Complexity and Naïve Bayes

Made Agus Putra Subali, I Gusti Rai Agung Sugiartha, I Made Budi Adnyana, I Putu Aditya Putra, Made Dai Subawa

Submitted : 2025-05-14, Published : 2025-06-13.

Abstract

Software defects result in unreliable software, therefore predicting software defects is an effort to produce quality software. In this study, we used the naïve bayes method because it has the appropriate characteristics of the data used. The data used include NASA MDP datasets and datasets from the calculation of the sql complexity method on eight software modules. The use of two datasets was carried out because in the NASA MDP datasets there were no attributes that paid attention to the use of sql commands, therefore in the datasets from the eight software modules the sql complexity attribute was included which paid attention to the level of complexity of the use of sql commands in each module. The prediction results of this study were evaluated by considering the values of accuracy, precision, recall, and f-measure. Based on these results, the accuracy results of CM1 were 88%, PC2 was 97%, and KC3 was 78%.

Keywords

Software Defects Predictions; SQL Complexity; Naive Bayes; NASA MDP Datasets; SQL Commands;

Full Text:

PDF Check Plagiarism

References

K. Okumoto, “Early Software Defect Prediction: Right-Shifting Software Effort Data into a Defect Curve,” in 2022 IEEE International Symposium on Software Reliability Engineering Workshops (ISSREW), 2022, pp. 43–48.

J. Xu, J. Ai, and T. Shi, “Software Defect Prediction for Specific Defect Types based on Augmented Code Graph Representation,” in 2021 8th International Conference on Dependable Systems and Their Applications (DSA), 2021, pp. 669–678.

L. Qiao, X. Li, Q. Umer, and P. Guo, “Deep learning based software defect prediction,” Neurocomputing, vol. 385, pp. 100–110, 2020.

R. S. Wahono and N. Suryana, “Combining particle swarm optimization based feature selection and bagging technique for software defect prediction,” Int. J. Softw. Eng. Its Appl., vol. 7, no. 5, pp. 153–166, 2013.

S. Patil and B. Ravindran, “Predicting software defect type using concept-based classification,” Empir. Softw. Eng., vol. 25, no. 2, pp. 1341–1378, 2020.

B. Dhanalaxmi, G. A. Naidu, and K. Anuradha, “Defect Classification using Relational Association Rule Mining Based on Fuzzy Classifier along with Modified Artificial Bee Colony Algorithm,” Int. J. Appl. Eng. Res., vol. 12, no. 11, pp. 2879–2886, 2017.

B. Shuai, H. Li, M. Li, Q. Zhang, and C. Tang, “Software Defect Prediction Using Dynamic Support Vector Machine,” in 2013 Ninth International Conference on Computational Intelligence and Security, 2013, pp. 260–263.

J. Zheng, “Cost-sensitive boosting neural networks for software defect prediction,” Expert Syst. Appl., vol. 37, no. 6, pp. 4537–4543, 2010.

F. M. Tua and W. D. Sunindyo, “Software Defect Prediction Using Software Metrics with Naïve Bayes and Rule Mining Association Methods,” in 2019 5th International Conference on Science and Technology (ICST), 2019, pp. 1–5.

M. A. P. Subali and S. Rochimah, “A new model for measuring the complexity of SQL commands,” in International Conference on Information Technology and Electrical Engineering (ICITEE 2018), Bali, 2018, pp. 1–5.

Y. Shen, S. Hu, S. Cai, and M. Chen, “Software Defect Prediction based on Bayesian Optimization Random Forest,” in 2022 9th International Conference on Dependable Systems and Their Applications (DSA), 2022, pp. 1012–1013.

Khadijah, A. Adorada, P. W. Wirawan, and K. Kurniawan, “The Comparison of Feature Selection Methods in Software Defect Prediction,” in 2020 4th International Conference on Informatics and Computational Sciences (ICICoS), 2020, pp. 1–6.

E. A. Felix and S. P. Lee, “Integrated Approach to Software Defect Prediction,” IEEE Access, vol. 5, pp. 21524–21547, 2017.

T. F. Husin, M. R. Pribadi, and Yohannes, “Implementation of LSSVM in Classification of Software Defect Prediction Data with Feature Selection,” in 2022 9th International Conference on Electrical Engineering, Computer Science and Informatics (EECSI), 2022, pp. 126–131.

I. B. G. W. Putra, M. Sudarma, and I. N. S. Kumara, “Klasifikasi Teks Bahasa Bali dengan Metode Supervised Learning Naive Bayes Classifier,” Teknol. Elektro, vol. 15, no. 2, pp. 81–86, 2016.

Y. D. PRAMUDITA, S. S. PUTRO, and N. MAKHMUD, “Klasifikasi Berita Olahraga menggunakan Metode Naive Bayes dengan Enhanced Confix Stripping Stemmer,” J. Teknol. Inf. Dan Ilmu Komput. JTIIK, vol. 5, no. 3, pp. 269–276, 2018.

J. Li, P. He, J. Zhu, and M. R. Lyu, “Software Defect Prediction via Convolutional Neural Network,” in 2017 IEEE International Conference on Software Quality, Reliability and Security (QRS), 2017, pp. 318–328.

Article Metrics

Abstract view: 36 times
Download     : 1   times Download     : 1   times

Creative Commons License
This work is licensed under a Creative Commons Attribution 4.0 International License.

Refbacks

  • There are currently no refbacks.