arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2209.09553cs.SE
收藏

基于词嵌入和卷积神经网络的缺陷分类

Using Word Embedding and Convolution Neural Network for Bug Triaging by Considering Design Flaws

Reza Sepahvand, Reza Akbari, Behnaz Jamasb, Sattar Hashemi, Omid Boushehrian

摘要:

在软件维护阶段解决bug是一项复杂的任务。缺陷分配是解决缺陷的主要任务之一。有些bug在没有设计决策的情况下无法正确修复,必须分配给设计师,而不是程序员,以避免出现可能导致后续bug报告的不良气味。因此,重要的是将一些错误提交给设计师,以检查可能的设计缺陷。根据我们的最佳知识,有一些作品已经考虑将错误提交给设计师。因此,在这项工作中考虑了这个问题。在本文中,创建了一个数据集,并提出了一个基于CNN的模型,通过学习错误报告的特点,有效地在代码中创建难闻的气味,来预测是否需要将错误分配给设计师。每个错误的特征是基于其文本特征(例如摘要和描述)从CNN中提取的。在修复过程中使用PMD工具添加到其中的坏样本的数量决定了bug标签。最后对模型中的新缺陷进行了总结和描述,并对模型进行了预测,以供设计人员参考。对于具有足够数量的样本用于基于深度学习的模型训练的数据集,实现了75%(或更高)的准确性。提出了一个模型来预测错误转介到设计师。该模型的效率,在预测转介到设计师在收到的错误报告时,证明了测试模型的10个项目。

英文摘要:

Resolving bugs in the maintenance phase of software is a complicated task. Bug assignment is one of the main tasks for resolving bugs. Some Bugs cannot be fixed properly without making design decisions and have to be assigned to designers, rather than programmers, to avoid emerging bad smells that may cause subsequent bug reports. Hence, it is important to refer some bugs to the designer to check the possible design flaws. Based on our best knowledge, there are a few works that have considered referring bugs to designers. Hence, this issue is considered in this work. In this paper, a dataset is created, and a CNN-based model is proposed to predict the need for assigning a bug to a designer by learning the peculiarities of bug reports effective in creating bad smells in the code. The features of each bug are extracted from CNN based on its textual features, such as a summary and description. The number of bad samples added to it in the fixing process using the PMD tool determines the bug tag. The summary and description of the new bug are given to the model and the model predicts the need to refer to the designer. The accuracy of 75% (or more) was achieved for datasets with a sufficient number of samples for deep learning-based model training. A model is proposed to predict bug referrals to the designer. The efficiency of the model in predicting referrals to the designer at the time of receiving the bug report was demonstrated by testing the model on 10 projects.

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

↑