arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2108.04659cs.SEcs.AIcs.LG
收藏

基于深度学习模型的软件代码预测性实证研究

An Empirical Study on Predictability of Software Code Smell Using Deep Learning Models

BITS Pilani, Hyderabad Campus(BITS Pilani海得拉巴校区);Curtin University(科廷大学)

Himanshu Gupta, Tanmay G. Kulkarni, Lov Kumar, Lalita Bhanu Murthy Neti, Aneesh Krishna

摘要:

代码异味,类似于一种难闻的气味,是某种污染的表面迹象,但在软件编写实践方面。此度量表明代码中存在更深层次的问题,并且与具有可接受编码实践的经验丰富的软件开发人员突出的问题相关联。最近的研究经常观察到,具有代码气味的代码通常倾向于在软件开发周期中发生更改的可能性更高。在本文中,我们开发的代码气味预测模型的帮助下,从源代码中提取的特征来预测八种类型的代码气味。我们的工作还提出了应用数据采样技术来处理类不平衡问题和特征选择技术来找到相关的特征集。以前的研究利用了朴素贝叶斯和随机森林等技术,但没有探索深度学习方法来预测代码气味。总共有576个不同的深度学习模型使用上述特征和数据集进行了训练。该研究得出的结论是,使用合成少数民族过采样技术数据的深度学习模型在准确性方面给出了更好的结果,某些模型的准确性从88.47提高到96.84。

英文摘要:

Code Smell, similar to a bad smell, is a surface indication of something tainted but in terms of software writing practices. This metric is an indication of a deeper problem lies within the code and is associated with an issue which is prominent to experienced software developers with acceptable coding practices. Recent studies have often observed that codes having code smells are often prone to a higher probability of change in the software development cycle. In this paper, we developed code smell prediction models with the help of features extracted from source code to predict eight types of code smell. Our work also presents the application of data sampling techniques to handle class imbalance problem and feature selection techniques to find relevant feature sets. Previous studies had made use of techniques such as Naive - Bayes and Random forest but had not explored deep learning methods to predict code smell. A total of 576 distinct Deep Learning models were trained using the features and datasets mentioned above. The study concluded that the deep learning models which used data from Synthetic Minority Oversampling Technique gave better results in terms of accuracy, AUC with the accuracy of some models improving from 88.47 to 96.84.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑