AutoSpearman: Automatically Mitigating Correlated Software Metrics for Interpreting Defect Models

被引:50
作者
Jiarpakdee, Jirayus [1 ]
Tantithamthavorn, Chakkrit [1 ]
Treude, Christoph [1 ]
机构
[1] Univ Adelaide, Sch Comp Sci, Adelaide, SA, Australia
来源
PROCEEDINGS 2018 IEEE INTERNATIONAL CONFERENCE ON SOFTWARE MAINTENANCE AND EVOLUTION (ICSME) | 2018年
基金
澳大利亚研究理事会;
关键词
Software Analytics; Feature Selection; Defect Prediction; Model Interpretation; Correlated Metrics; PREDICTION; MODULES;
D O I
10.1109/ICSME.2018.00018
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
The interpretation of defect models heavily relies on software metrics that are used to construct them. However, such software metrics are often correlated in defect models. Prior work often uses feature selection techniques to remove correlated metrics in order to improve the performance of defect models. Yet, the interpretation of defect models may be misleading if feature selection techniques produce subsets of inconsistent and correlated metrics. In this paper, we investigate the consistency and correlation of the subsets of metrics that are produced by nine commonly-used feature selection techniques. Through a case study of 13 publicly-available defect datasets, we find that feature selection techniques produce inconsistent subsets of metrics and do not mitigate correlated metrics, suggesting that feature selection techniques should not be used and correlation analyses must be applied when the goal is model interpretation. Since correlation analyses often involve manual selection of metrics by a domain expert, we introduce AutoSpearman, an automated metric selection approach based on correlation analyses. Our evaluation indicates that AutoSpearman yields the highest consistency of subsets of metrics among training samples and mitigates correlated metrics, while impacting model performance by 1-2% pts. Thus, to automatically mitigate correlated metrics when interpreting defect models, we recommend future studies use AutoSpearman in lieu of commonly-used feature selection techniques.
引用
收藏
页码:92 / 103
页数:12
相关论文
共 85 条
[51]  
Menzies T., 2012, The promise repository of empirical software engineering data, Book The promise repository of empirical software engineering data, Series The promise repository of empirical software engineering data
[52]   Data mining static code attributes to learn defect predictors [J].
Menzies, Tim ;
Greenwald, Jeremy ;
Frank, Art .
IEEE TRANSACTIONS ON SOFTWARE ENGINEERING, 2007, 33 (01) :2-13
[53]   The Unreasonable Effectiveness of Software Analytics [J].
Menzies, Tim .
IEEE SOFTWARE, 2018, 35 (02) :96-98
[54]  
MITCHELL T, 1989, ANNU REV COMPUT SCI, V4, P417
[55]  
Morales R, 2015, 2015 22ND INTERNATIONAL CONFERENCE ON SOFTWARE ANALYSIS, EVOLUTION, AND REENGINEERING (SANER), P171, DOI 10.1109/SANER.2015.7081827
[56]  
Nam J, 2017, T SOFTWARE ENG TSE
[57]   Software defect prediction using Bayesian networks [J].
Okutan, Ahmet ;
Yildiz, Olcay Taner .
EMPIRICAL SOFTWARE ENGINEERING, 2014, 19 (01) :154-181
[58]  
Petric Jean., 2016, Proceedings of the 20th International Conference on Evaluation and Assessment in Software Engineering, page, P13
[59]  
R.C. Team and contributors worldwide, 2017, STATS R STATS PACK R
[60]  
Rahman F, 2013, PROCEEDINGS OF THE 35TH INTERNATIONAL CONFERENCE ON SOFTWARE ENGINEERING (ICSE 2013), P432, DOI 10.1109/ICSE.2013.6606589