arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2101.10766cs.SE
收藏

需求工件中因果关系的自动检测:CiRA方法

Automatic Detection of Causality in Requirement Artifacts: the CiRA Approach

Jannik Fischbach, Julian Frattini, Arjen Spaans, Maximilian Kummeth, Andreas Vogelsang, Daniel Mendez, Michael Unterkalmsteiner

摘要:

系统行为通常由需求中的因果关系表示(例如,如果事件1,则事件2)。自动提取这种嵌入的因果知识,不仅支持推理的需求依赖关系,但也是各种自动化的工程任务,如无缝的测试用例的推导。然而,从自然语言中提取因果关系仍然是一个开放的研究挑战,因为现有的方法无法以合理的性能提取因果关系。我们将从需求中提取因果关系理解为两步问题:首先,我们需要检测需求是否具有因果属性。其次,我们需要理解和提取它们的因果关系。然而,目前我们缺乏关于需求中因果关系的形式和复杂性的知识,这对于开发解决这两个问题的合适方法是必要的。我们进行了一个探索性的案例研究,14,983句来自53个需求文档,来自18个不同的领域,揭示了需求中因果关系的形式和复杂性。基于我们的研究结果,我们开发了一种工具支持的因果关系检测方法(CiRA)。这是从NL要求中提取因果关系的第一步。我们报告的案例研究和由此产生的工具支持的因果关系检测方法的要求。我们的案例研究证实,除其他事项外,因果关系实际上是一种广泛使用的语言模式来描述系统行为,因为大约三分之一的分析句子是因果关系。我们进一步证明,我们的工具CiRA在真实数据上实现了82%的宏观F1分数,并且它优于相关方法,在宏观召回率和宏观精度方面的平均增益分别为11.06%和11.43%。最后,我们公开了我们的开放数据集以及我们的工具,以促进在RE社区的因果关系的自动检测的话语。

英文摘要:

System behavior is often expressed by causal relations in requirements (e.g., If event 1, then event 2). Automatically extracting this embedded causal knowledge supports not only reasoning about requirements dependencies, but also various automated engineering tasks such as seamless derivation of test cases. However, causality extraction from natural language is still an open research challenge as existing approaches fail to extract causality with reasonable performance. We understand causality extraction from requirements as a two-step problem: First, we need to detect if requirements have causal properties or not. Second, we need to understand and extract their causal relations. At present, though, we lack knowledge about the form and complexity of causality in requirements, which is necessary to develop a suitable approach addressing these two problems. We conduct an exploratory case study with 14,983 sentences from 53 requirements documents originating from 18 different domains and shed light on the form and complexity of causality in requirements. Based on our findings, we develop a tool-supported approach for causality detection (CiRA). This constitutes a first step towards causality extraction from NL requirements. We report on a case study and the resulting tool-supported approach for causality detection in requirements. Our case study corroborates, among other things, that causality is, in fact, a widely used linguistic pattern to describe system behavior, as about a third of the analyzed sentences are causal. We further demonstrate that our tool CiRA achieves a macro-F1 score of 82 % on real word data and that it outperforms related approaches with an average gain of 11.06 % in macro-Recall and 11.43 % in macro-Precision. Finally, we disclose our open data sets as well as our tool to foster the discourse on the automatic detection of causality in the RE community.

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

↑