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

基于机器学习分类的自动可追溯性维护

Automatic Traceability Maintenance via Machine Learning Classification

Chris Mills, Javier Escobar-Avila, Sonia Haiduc

摘要:

以前的研究表明,软件可追溯性,将项目中不同来源的相关工件链接在一起的能力(例如,源代码、用例、文档等),通过帮助开发人员和其他利益相关者完成影响分析、概念定位等常见任务来提高项目成果。在软件系统中建立可追溯性链接是一项重要且昂贵的任务,但这只是工作的一半。随着项目的维护和发展,新的工件被添加,现有的工件被更改,导致过时的可跟踪性信息。因此,需要采取特定的步骤来确保可追溯性链接与项目的其余部分保持一致。在本文中,我们解决这个问题,并提出了一种新的方法,称为TRAIL在系统中维护可追溯性信息。TRAIL的新颖之处在于,它利用先前捕获的关于项目可追溯性的知识来训练机器学习分类器,然后可以使用该分类器来导出新的可追溯性链接并更新现有的可追溯性链接。我们评估了TRAIL的11个常用的可追溯性数据集从六个软件系统,并将其与七个流行的信息检索(IR)技术,包括最常用的方法在以前的工作。结果表明,TRAIL优于所有IR方法的精度,召回率和F-分数。

英文摘要:

Previous studies have shown that software traceability, the ability to link together related artifacts from different sources within a project (e.g., source code, use cases, documentation, etc.), improves project outcomes by assisting developers and other stakeholders with common tasks such as impact analysis, concept location, etc. Establishing traceability links in a software system is an important and costly task, but only half the struggle. As the project undergoes maintenance and evolution, new artifacts are added and existing ones are changed, resulting in outdated traceability information. Therefore, specific steps need to be taken to make sure that traceability links are maintained in tandem with the rest of the project. In this paper we address this problem and propose a novel approach called TRAIL for maintaining traceability information in a system. The novelty of TRAIL stands in the fact that it leverages previously captured knowledge about project traceability to train a machine learning classifier which can then be used to derive new traceability links and update existing ones. We evaluated TRAIL on 11 commonly used traceability datasets from six software systems and compared it to seven popular information Retrieval (IR) techniques including the most common approaches used in previous work. The results indicate that TRAIL outperforms all IR approaches in terms of precision, recall, and F-score.

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

↑