Research on Software Defect Prediction Based on Static and Dynamic Feature Fusion and Machine Learning

Authors

  • Tianyu Yin School of Computer Science and Artificial Intelligence, Beijing Technology and Business University, Beijing, 102488, China

DOI:

https://doi.org/10.54097/88he2012

Keywords:

Software Defect Prediction, Machine Learning, Feature Fusion, Static Code Metrics, Dynamic Change Features, Version Control Entropy

Abstract

Aiming at the problems that the static-dynamic feature fusion mechanism lacks systematic multi-scenario verification, the feature-model adaptation law is unclear, and the engineering practicability of existing research conclusions is insufficient, this paper proposes a static-dynamic feature fusion defect prediction method based on multi-model comparison. Taking Equinox and Eclipse open-source Java project datasets from Kaggle platform as research objects, this paper constructs a feature system including 18-dimensional static CK-OO metrics and 20-dimensional dynamic change features, compares the prediction performance of Logistic Regression, Random Forest, XGBoost and Stacking ensemble model under static, dynamic and fusion feature sets. 5-fold cross-validation is used to ensure experimental reliability, and F1-Score is taken as the core evaluation index to carry out controlled experiments. The results show that on the balanced Equinox dataset, Random Forest with fusion features achieves the best single-model performance with an F1-Score of 0.7619 and Stacking model achieves 11.83% performance improvement in the static feature scenario; on the imbalanced Eclipse dataset, XGBoost with static features achieves the best performance with an F1-Score of 0.6512; CVS version control entropy, weighted method complexity, and class response are cross-scenario general core prediction features. This study reveals the core influence mechanism of dataset category balance and project scale on feature-model adaptability, and provides an empirical reference for defect prediction practice of different types of software projects.

Downloads

Download data is not yet available.

References

[1] Boehm, B. W., & Basili, V. R. (2001). Software defect reduction top 10 list. IEEE Computer, 34(1), 135 137. https:// doi. org/10.1109/2.889936.

[2] Zhang, H., Harman, M., & Jia, Y. (2015). Software defect prediction: a survey. IEEE Transactions on Software Engineering, 42(1), 78 108. https://doi.org/10. 1109/TSE. 2015. 2442237.

[3] Chidamber, S. R., & Kemerer, C. F. (1994). A metrics suite for object oriented design. IEEE Transactions on Software Engineering, 20(6), 476 493. https://doi.org/10. 1109/32. 295 895.

[4] Menzies, T., Greenwald, J., & Frank, A. (2007). Data mining static code attributes to learn defect predictors. IEEE Transactions on Software Engineering, 33(1), 2 13. https:// doi. org/ 10.1109/TSE.2007.256941.

[5] D'Ambros, M., Lanza, M., & Robbes, R. (2010). An extensive comparison of bug prediction approaches. In Proceedings of the 2010 IEEE International Conference on Software Maintenance (pp. 310 319). IEEE Press. https://doi.org/ 10. 1109/ ICSM.2010.5609731.

[6] Lessmann, S., Baesens, B., & Mues, C. (2008). Benchmarking classification models for software defect prediction: a proposed framework and novel findings. IEEE Transactions on Software Engineering, 34(4), 485 496. https://doi.org/10. 1109/ TSE. 2008. 37.

[7] Hall, T., Beecham, S., & Bowes, D. (2012). A systematic literature review on fault prediction performance in software engineering. IEEE Transactions on Software Engineering, 38(6), 1276 1304. https://doi.org/10.1109/TSE.2011.103.

[8] Catal, C., & Diri, B. (2009). A systematic review of software fault prediction studies. Expert Systems with Applications, 36(4), 7346 7354. https://doi.org/10.1016/j.eswa.2008.10.027.

[9] Wu, F., Jing, X. Y., & Yao, Y. F. (2014). A review of software defect prediction methods. Computer Science, 41, 1 6. (In Chinese)

[10] Wang, L. L. (2023). Research on software defect prediction method based on multi feature fusion [Master’s thesis]. Shanghai Normal University. (In Chinese)

[11] Zhou, Z. H. (2016). Machine learning. Tsinghua University Press. (In Chinese)

[12] Peters, F., Menzies, T., & Marcus, A. (2013). Better cross company defect prediction. IEEE Transactions on Software Engineering, 39(11), 1138 1152. https://doi.org/ 10. 1109/ TSE.2013.34.

[13] Zimmermann, T., & Nagappan, N. (2008). Predicting defects using network analysis on dependency graphs. In Proceedings of the 30th International Conference on Software Engineering (pp. 531 540). ACM Press. https://doi.org/ 10.1145/ 1368088. 1368161.

Downloads

Published

28-08-2026

Issue

Section

Articles

How to Cite

Yin, T. (2026). Research on Software Defect Prediction Based on Static and Dynamic Feature Fusion and Machine Learning. Frontiers in Computing and Intelligent Systems, 17(3), 45-53. https://doi.org/10.54097/88he2012