Improved software fault prediction using new code metrics and machine learning algorithms

被引:6
作者
Singh, Manpreet [1 ]
Chhabra, Jitender Kumar [1 ]
机构
[1] Natl Inst Technol, Comp Engn Dept, Kurukshetra, India
关键词
Cohesion; Complexity; Coupling; Fault prediction; Source code metrics; OBJECT-ORIENTED METRICS; EMPIRICAL VALIDATION;
D O I
10.1016/j.cola.2023.101253
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
Many code metrics exist for bug prediction. However, these metrics are based on the trivial count of code properties and are not sufficient. This research article proposes three new code metrics based on class complexity, coupling, and cohesion to fill the gap. The Promise repository metrics suite's complexity, coupling, and cohesion metrics are replaced by the proposed metrics, and a new metric suite is generated. Experiments show that the proposed metrics suite gives more than 2 % improvement in AUC and precision and approximately 1.5 % in f1-score and recall with fewer code metrics than the existing metrics suite.
引用
收藏
页数:18
相关论文
共 49 条
[1]  
Abreu Fernando Brito, 1994, P 4 INT C SOFTWARE Q, V186
[2]   Extract Class Refactoring Based on Cohesion and Coupling: A Greedy Approach [J].
Alzahrani, Musaad .
COMPUTERS, 2022, 11 (08)
[3]   Deriving thresholds of software metrics to predict faults on open source software: Replicated case studies [J].
Arar, Omer Faruk ;
Ayan, Kursat .
EXPERT SYSTEMS WITH APPLICATIONS, 2016, 61 :106-121
[4]   Examining the performance of kernel methods for software defect prediction based on support vector machine [J].
Azzeh, Mohammad ;
Elsheikh, Yousef ;
Nassif, Ali Bou ;
Angelis, Lefteris .
SCIENCE OF COMPUTER PROGRAMMING, 2023, 226
[5]  
Bailey C. T., 1981, Performance Evaluation Review, V10, P189, DOI 10.1145/1010627.807928
[6]   A hierarchical model for object-oriented design quality assessment [J].
Bansiya, J ;
Davis, CG .
IEEE TRANSACTIONS ON SOFTWARE ENGINEERING, 2002, 28 (01) :4-17
[7]  
Bieman J. M., 1995, SIGSOFT Software Engineering Notes, P259, DOI 10.1145/223427.211856
[8]   A unified framework for coupling measurement in object-oriented systems [J].
Briand, LC ;
Daly, JW ;
Wüst, JK .
IEEE TRANSACTIONS ON SOFTWARE ENGINEERING, 1999, 25 (01) :91-121
[9]  
Brito Fernando, 1994, 4 INT C SOFTWARE QUA, P1
[10]   POINTS OF SIGNIFICANCE Statistics versus machine learning [J].
Bzdok, Danilo ;
Altman, Naomi ;
Krzywinski, Martin .
NATURE METHODS, 2018, 15 (04) :232-233