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 条
  • [31] The Relationship Between Students' Metacognitive Awareness and their Solutions to Similar Types of Mathematical Problems
    Yildirim, Sevda
    Ersozlu, Zehra Nur
    EURASIA JOURNAL OF MATHEMATICS SCIENCE AND TECHNOLOGY EDUCATION, 2013, 9 (04) : 411 - 415
  • [32] Discovering Similar Workflows via Provenance Clustering: A Case Study
    Alawini, Abdussalam
    Chen, Leshang
    Davidson, Susan
    Fisher, Stephen
    Kim, Junhyong
    PROVENANCE AND ANNOTATION OF DATA AND PROCESSES, IPAW 2018, 2018, 11017 : 115 - 127
  • [33] ECoC as an Opportunity for Economic Growth: A Case Study of Similar Cities
    Slehoferova, Marta
    Jezek, Jiri
    CERS 2014: 5TH CENTRAL EUROPEAN CONFERENCE IN REGIONAL SCIENCE, INTERNATIONAL CONFERENCE PROCEEDINGS, 2015, : 900 - 910
  • [34] Seemingly Similar Beliefs: A Case Study on Relativistic Research Practices
    Koskinen, Inkeri
    PHILOSOPHY OF THE SOCIAL SCIENCES, 2011, 41 (01) : 84 - 110
  • [35] Coexistence between similar invaders: The case of two cosmopolitan exotic insects
    Arnold, Matthew B.
    Back, Michael
    Crowell, Michael Daniel
    Farooq, Nageen
    Ghimire, Prashant
    Obarein, Omon A.
    Smart, Kyle E.
    Taucher, Trixie
    VanderJeugdt, Erin
    Perry, Kayla I.
    Landis, Douglas A.
    Bahlai, Christie A.
    ECOLOGY, 2023, 104 (04)
  • [36] Explaining variation in brood parasitism rates between potential host species with similar habitat requirements
    Donglai Li
    Zhengwang Zhang
    Tomáš Grim
    Wei Liang
    Bård G. Stokke
    Evolutionary Ecology, 2016, 30 : 905 - 923
  • [37] Explaining variation in brood parasitism rates between potential host species with similar habitat requirements
    Li, Donglai
    Zhang, Zhengwang
    Grim, Tomas
    Liang, Wei
    Stokke, Bard G.
    EVOLUTIONARY ECOLOGY, 2016, 30 (05) : 905 - 923
  • [38] The relationship between high-speed railway realization and economic development: A case study
    Massone, M
    Mazzucchelli, M
    Morandi, L
    Recagno, V
    Sciutto, G
    COMPUTERS IN RAILWAYS V, VOL 1: RAILWAY SYSTEMS AND MANAGEMENT, 1996, : 251 - 258
  • [39] Cartilage collagen damage in hip osteoarthritis similar to that seen in knee osteoarthritis; a case-control study of relationship between collagen, glycosaminoglycan and cartilage swelling
    Hosseininia, Shahrzad
    Lindberg, Lisbeth R.
    Dahlberg, Leif E.
    BMC MUSCULOSKELETAL DISORDERS, 2013, 14
  • [40] An Exploratory Study to Identify Similar Patches: A Case Study in Modern Code Review
    Wang, Dong
    Kula, Raula Gaikovina
    Matsumoto, Kenichi
    2018 25TH ASIA-PACIFIC SOFTWARE ENGINEERING CONFERENCE (APSEC 2018), 2018, : 723 - 724