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

被引:11
|
作者
Abbas, Muhammad [1 ]
Ferrari, Alessio [2 ]
Shatnawi, Anas [3 ]
Enoiu, Eduard [4 ]
Saadatmand, Mehrdad [1 ]
Sundmark, Daniel [4 ]
机构
[1] RISE Res Inst Sweden, Vasteras, Sweden
[2] CNR ISTI, Pisa, Italy
[3] Berger Levrault, Montpellier, France
[4] Malardalen Univ, Vasteras, Sweden
关键词
Requirements similarity; Software similarity; Correlation; Perception of similarity; Language models; NATURAL-LANGUAGE REQUIREMENTS; CODE; RECOMMENDATION; EXTRACTION; REUSE;
D O I
10.1007/s00766-021-00370-4
中图分类号
TP [自动化技术、计算机技术];
学科分类号
0812 ;
摘要
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 aspect comes 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.
引用
收藏
页码:23 / 47
页数:25
相关论文
共 50 条
  • [1] On the relationship between similar requirements and similar softwareA case study in the railway domain
    Muhammad Abbas
    Alessio Ferrari
    Anas Shatnawi
    Eduard Enoiu
    Mehrdad Saadatmand
    Daniel Sundmark
    Requirements Engineering, 2023, 28 : 23 - 47
  • [2] Correction to: On the relationship between similar requirements and similar softwareA case study in the railway domain
    Muhammad Abbas
    Alessio Ferrari
    Anas Shatnawi
    Eduard Enoiu
    Mehrdad Saadatmand
    Daniel Sundmark
    Requirements Engineering, 2022, 27 : 399 - 399
  • [3] On the relationship between similar requirements and similar software A case study in the railway domain (Jan, 10.1007/s00766-021-00370-4, 2022)
    Abbas, Muhammad
    Ferrari, Alessio
    Shatnawi, Anas
    Enoiu, Eduard
    Saadatmand, Mehrdad
    Sundmark, Daniel
    REQUIREMENTS ENGINEERING, 2022, 27 (03) : 399 - 399
  • [4] An Empirical Study on Similar Changes in Evolving Software
    Thuy Linh Nguyen
    Fish, Alex
    Song, Myoungkyu
    2018 IEEE INTERNATIONAL CONFERENCE ON ELECTRO/INFORMATION TECHNOLOGY (EIT), 2018, : 560 - 563
  • [5] Study on the Relationship between Construction Project and Its Environment in Similar Ecosystem
    Chen Xiaoming
    Li Qiming
    Xi Haidi
    ADVANCES IN MANAGEMENT OF TECHNOLOGY, PT 2, 2008, : 304 - +
  • [6] Transfer language space with similar domain adaptation: a case study with hepatocellular carcinoma
    Amara Tariq
    Omar Kallas
    Patricia Balthazar
    Scott Jeffery Lee
    Terry Desser
    Daniel Rubin
    Judy Wawira Gichoya
    Imon Banerjee
    Journal of Biomedical Semantics, 13
  • [7] Transfer language space with similar domain adaptation: a case study with hepatocellular carcinoma
    Tariq, Amara
    Kallas, Omar
    Balthazar, Patricia
    Lee, Scott Jeffery
    Desser, Terry
    Rubin, Daniel
    Gichoya, Judy Wawira
    Banerjee, Imon
    JOURNAL OF BIOMEDICAL SEMANTICS, 2022, 13 (01)
  • [8] RELATIONSHIP BETWEEN COTTON PHYLLODY AND A SIMILAR DISEASE OF SESAME
    DESMIDTS, M
    LABOUCHEIX, J
    FAO PLANT PROTECTION BULLETIN, 1974, 22 (01): : 19 - 20
  • [9] Modeling software characteristics and their correlations in a specific domain by comparing existing similar systems
    Osada, A
    Ozawa, D
    Kaiya, H
    Kaijiri, K
    QSIC 2005: FIFTH INTERNATIONAL CONFERENCE ON QUALITY SOFTWARE, PROCEEDINGS, 2005, : 215 - 222
  • [10] Knowledge Sharing between Similar Domain Knowledge Management Systems
    Karna, Nyoman
    Supriana, Iping
    Maulidevi, Nur
    2016 CONFERENCE ON FUNDAMENTAL AND APPLIED SCIENCE FOR ADVANCED TECHNOLOGY (CONFAST 2016), 2016, 1746