Skip to Main Content (Press Enter)

Logo CNR
  • ×
  • Home
  • People
  • Outputs
  • Organizations
  • Expertise & Skills

UNI-FIND
Logo CNR

|

UNI-FIND

cnr.it
  • ×
  • Home
  • People
  • Outputs
  • Organizations
  • Expertise & Skills
  1. Outputs

On the relationship between similar requirements and similar software: a case study in the railway domain

Academic Article
Publication Date:
2022
abstract:
Recommender systems for requirements are typically built on the assumption that similar requirements can be used as proxies to retrieve similar software. When a stakeholder proposes a new requirement, natural language processing (NLP)-based similarity metrics can be exploited to retrieve existing requirements, and in turn, identify previously developed code. Several NLP approaches for similarity computation between requirements are available. However, there is little empirical evidence on their effectiveness for code retrieval. This study compares different NLP approaches, from lexical ones to semantic, deep-learning techniques, and correlates the similarity among requirements with the similarity of their associated software. The evaluation is conducted on real-world requirements from two industrial projects from a railway company. Specifically, the most similar pairs of requirements across two industrial projects are automatically identified using six language models. Then, the trace links between requirements and software are used to identify the software pairs associated with each requirements pair. The software similarity between pairs is then automatically computed with JPLag. Finally, the correlation between requirements similarity and software similarity is evaluated to see which language model shows the highest correlation and is thus more appropriate for code retrieval. In addition, we perform a focus group with members of the company to collect qualitative data. Results show a moderately positive correlation between requirements similarity and software similarity, with the pre-trained deep learning-based BERT language model with preprocessing outperforming the other models. Practitioners confirm that requirements similarity is generally regarded as a proxy for software similarity. However, they also highlight that additional aspects come into play when deciding software reuse, e.g., domain/project knowledge, information coming from test cases, and trace links. Our work is among the first ones to explore the relationship between requirements and software similarity from a quantitative and qualitative standpoint. This can be useful not only in recommender systems but also in other requirements engineering tasks in which similarity computation is relevant, such as tracing and change impact analysis.
Iris type:
01.01 Articolo in rivista
Keywords:
Requirements engineering; NLP; Natural Language Processing; Requirements similarity; Software similarity; Railway development; Railway control system; Case study
List of contributors:
Ferrari, Alessio
Authors of the University:
FERRARI ALESSIO
Handle:
https://iris.cnr.it/handle/20.500.14243/447684
Full Text:
https://iris.cnr.it//retrieve/handle/20.500.14243/447684/90753/prod_461967-doc_180310.pdf
https://iris.cnr.it//retrieve/handle/20.500.14243/447684/90754/prod_461967-doc_180311.pdf
https://iris.cnr.it//retrieve/handle/20.500.14243/447684/90757/prod_461967-doc_181607.pdf
  • Overview

Overview

URL

https://link.springer.com/article/10.1007/s00766-021-00370-4
  • Use of cookies

Powered by VIVO | Designed by Cineca | 26.5.0.0 | Sorgente dati: PREPROD (Ribaltamento disabilitato)