arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2202.02180cs.SEcs.AI
收藏

使用机器学习识别问题跟踪系统中的自承认技术债务

Identifying Self-Admitted Technical Debt in Issue Tracking Systems using Machine Learning

University of Groningen(格罗宁根大学)

Yikun Li, Mohamed Soliman, Paris Avgeriou

摘要:

技术债是一个隐喻,表示通过牺牲软件的长期可维护性和可演化性来实现短期利益的次优解决方案。一种特殊类型的技术债务由软件工程师明确承认(例如使用TODO注释);这被称为自承认技术债务或SATD。大多数自动识别SATD的工作都集中在源代码注释上。除了源代码注释之外,问题跟踪系统已经被证明是SATD的另一个丰富来源,但是没有专门用于自动识别问题中的SATD的方法。在本文中,我们首先通过收集和手动分析来自七个开源项目(即,Camel、Chromium、Gerrit、Hadoop、HBase、Impala和Thrift),使用两种流行的问题跟踪系统(即,Jira和Google Monorail)。然后,我们提出并优化了一种使用机器学习自动识别问题跟踪系统中的SATD的方法。我们的研究结果表明:1)我们的方法在F1分数方面远远优于基线方法; 2)从合适的数据集转移知识可以提高我们方法的预测性能; 3)提取的SATD关键字是直观的,并且可能指示SATD的类型和指标; 4)与使用相同问题跟踪系统的项目相比,使用不同问题跟踪系统的项目具有较少的SATD关键字; 5)需要少量的训练数据来实现良好的精度。

英文摘要:

Technical debt is a metaphor indicating sub-optimal solutions implemented for short-term benefits by sacrificing the long-term maintainability and evolvability of software. A special type of technical debt is explicitly admitted by software engineers (e.g. using a TODO comment); this is called Self-Admitted Technical Debt or SATD. Most work on automatically identifying SATD focuses on source code comments. In addition to source code comments, issue tracking systems have shown to be another rich source of SATD, but there are no approaches specifically for automatically identifying SATD in issues. In this paper, we first create a training dataset by collecting and manually analyzing 4,200 issues (that break down to 23,180 sections of issues) from seven open-source projects (i.e., Camel, Chromium, Gerrit, Hadoop, HBase, Impala, and Thrift) using two popular issue tracking systems (i.e., Jira and Google Monorail). We then propose and optimize an approach for automatically identifying SATD in issue tracking systems using machine learning. Our findings indicate that: 1) our approach outperforms baseline approaches by a wide margin with regard to the F1-score; 2) transferring knowledge from suitable datasets can improve the predictive performance of our approach; 3) extracted SATD keywords are intuitive and potentially indicating types and indicators of SATD; 4) projects using different issue tracking systems have less common SATD keywords compared to projects using the same issue tracking system; 5) a small amount of training data is needed to achieve good accuracy.

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

↑