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

需求工件中的因果关系:流行、检测和影响

Causality in Requirements Artifacts: Prevalence, Detection, and Impact

Julian Frattini, Jannik Fischbach, Daniel Mendez, Michael Unterkalmsteiner, Andreas Vogelsang, Krzystof Wnuk

摘要:

背景:自然语言(NL)需求中的因果关系传达了强有力的语义信息。自动提取这些因果信息可以实现多个用例,例如测试用例生成,但它也需要首先可靠地检测因果关系。目前,这仍然是一项繁琐的任务,因为NL要求中的因果关系仍然几乎不被理解,因此几乎无法检测。目的:在我们的实证研究中,我们的目标是更好地理解因果关系的概念,并支持自动提取的因果关系在NL的要求。方法:在第一个案例研究中,我们调查了53个需求文档中的14.983个句子,以了解因果关系发生的程度和形式。其次,我们提出并评估了一种工具支持的方法,称为CiRA,因果关系检测。最后,我们的第二个案例研究,我们证明了我们的工具的适用性,并调查因果关系对NL要求的影响。结果:第一个案例研究表明,因果关系占所有NL要求句的28%左右。然后,我们证明了我们的检测工具在真实世界的数据上实现了82%的宏F1分数,并且它优于相关方法,在宏召回率和宏精度方面的平均增益分别为11.06%和11.43%。最后,我们的第二个案例研究证实了因果关系与NL要求的功能的正相关性。结论:这些结果增强了我们对下游再利用因果关系资格的信心,而我们的工具和公开数据构成了在可再生能源及其他领域利用因果关系的持续努力的第一步。

英文摘要:

Background: Causal relations in natural language (NL) requirements convey strong, semantic information. Automatically extracting such causal information enables multiple use cases, such as test case generation, but it also requires to reliably detect causal relations in the first place. Currently, this is still a cumbersome task as causality in NL requirements is still barely understood and, thus, barely detectable. Objective: In our empirically informed research, we aim at better understanding the notion of causality and supporting the automatic extraction of causal relations in NL requirements. Method: In a first case study, we investigate 14.983 sentences from 53 requirements documents to understand the extent and form in which causality occurs. Second, we present and evaluate a tool-supported approach, called CiRA, for causality detection. We conclude with a second case study where we demonstrate the applicability of our tool and investigate the impact of causality on NL requirements. Results: The first case study shows that causality constitutes around 28% of all NL requirements sentences. We then demonstrate that our detection tool achieves a macro-F1 score of 82% on real-world data and that it outperforms related approaches with an average gain of 11.06% in macro-Recall and 11.43% in macro-Precision. Finally, our second case study corroborates the positive correlations of causality with features of NL requirements. Conclusion: The results strengthen our confidence in the eligibility of causal relations for downstream reuse, while our tool and publicly available data constitute a first step in the ongoing endeavors of utilizing causality in RE and beyond.

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

↑