Source Code Metrics for Software Defects Prediction

被引:2
作者
Rebro, Dominik Arne [1 ]
Rossi, Bruno [1 ]
Chren, Stanislav [1 ]
机构
[1] Masaryk Univ, Brno, Czech Republic
来源
38TH ANNUAL ACM SYMPOSIUM ON APPLIED COMPUTING, SAC 2023 | 2023年
关键词
Software Defect Prediction; Software Metrics; Mining Software Repositories; Software Quality;
D O I
10.1145/3555776.3577809
中图分类号
TP39 [计算机的应用];
学科分类号
081203 ; 0835 ;
摘要
In current research, there are contrasting results about the applicability of software source code metrics as features for defect prediction models. The goal of the paper is to evaluate the adoption of software metrics in models for software defect prediction, identifying the impact of individual source code metrics. With an empirical study on 275 release versions of 39 Java projects mined from GitHub, we compute 12 software metrics and collect software defect information. We train and compare three defect classification models. The results across all projects indicate that Decision Tree (DT) and Random Forest (RF) classifiers show the best results. Among the highest-performing individual metrics are NOC, NPA, DIT, and LCOM5. While other metrics, such as CBO, do not bring significant improvements to the models.
引用
收藏
页码:1469 / 1472
页数:4
相关论文
共 21 条
[1]  
[Anonymous], 2015, J. Softw. Eng
[2]  
[Anonymous], 2011, P 7 INT C PREDICTIVE
[3]   Random forests [J].
Breiman, L .
MACHINE LEARNING, 2001, 45 (01) :5-32
[4]   A METRICS SUITE FOR OBJECT-ORIENTED DESIGN [J].
CHIDAMBER, SR ;
KEMERER, CF .
IEEE TRANSACTIONS ON SOFTWARE ENGINEERING, 1994, 20 (06) :476-493
[5]  
D'Ambros Marco, 2010, Proceedings of the 2010 7th IEEE Working Conference on Mining Software Repositories (MSR 2010), P31, DOI 10.1109/MSR.2010.5463279
[6]   The prediction of faulty classes using object-oriented design metrics [J].
El Emam, K ;
Melo, W ;
Machado, JC .
JOURNAL OF SYSTEMS AND SOFTWARE, 2001, 56 (01) :63-75
[7]   Deep learning in static, metric-based bug prediction [J].
Ferenc, Rudolf ;
Ban, Denes ;
Grosz, Tamas ;
Gyimothy, Tibor .
ARRAY, 2020, 6 (06)
[8]   Predicting fault incidence using software change history [J].
Graves, TL ;
Karr, AF ;
Marron, JS ;
Siy, H .
IEEE TRANSACTIONS ON SOFTWARE ENGINEERING, 2000, 26 (07) :653-661
[9]  
Gyimesi P, 2017, ACTA CYBERN, V23, P537, DOI 10.14232/actacyb.23.2.2017.7
[10]   Predicting Faults Using the Complexity of Code Changes [J].
Hassan, Ahmed E. .
2009 31ST INTERNATIONAL CONFERENCE ON SOFTWARE ENGINEERING, PROCEEDINGS, 2009, :78-88