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 条
  • [21] Ontology-based Software Requirements Reuse: Case Study in Fire Control Software Product Line Domain
    Karatas, Elif Kamer
    Iyidir, Baris
    Birturk, Aysenur
    2014 IEEE International Conference on Data Mining Workshop (ICDMW), 2014, : 832 - 839
  • [22] Theory and Algorithm Based on the General Similar Relationship between the Approximate Reduction
    Liu, Baoxiang
    Guo, Hui
    INFORMATION COMPUTING AND APPLICATIONS, 2011, 7030 : 128 - 135
  • [23] Filtering very similar text documents: A case study
    Hroza, J
    Zizka, J
    Bourek, A
    COMPUTATIONAL LINGUISTICS AND INTELLIGENT TEXT PROCESSING, 2004, 2945 : 511 - 520
  • [24] THE RELATIONSHIP BETWEEN TIME, ACCURACY AND AGE ON SIMILAR TASKS OF VARYING COMPLEXITY
    CLAY, HM
    GERONTOLOGIA, 1957, 1 (01): : 41 - 49
  • [25] Similar motives? The relationship between reasons for drinking and gambling in a population sample
    Thomas, Jasmine
    McGrath, Daniel S.
    Dechant, Kristianne
    INTERNATIONAL GAMBLING STUDIES, 2020, 20 (02) : 315 - 330
  • [26] Study on Similar Case Determination of Personalized Recommendation System
    Sun, Jieli
    Zhu, Zhiqing
    Mei, Yong
    RECENT TRENDS IN MATERIALS AND MECHANICAL ENGINEERING MATERIALS, MECHATRONICS AND AUTOMATION, PTS 1-3, 2011, 55-57 : 1494 - +
  • [27] Cooperation and conflict between very similar occupations: the case of anesthesia
    Kalist, David E.
    Molinari, Noelle A.
    Spurr, Stephen J.
    HEALTH ECONOMICS POLICY AND LAW, 2011, 6 (02) : 237 - 264
  • [28] Requirements for a COTS software component: A case study
    Ljerka Beus-Dukic
    Andy Wellings
    Requirements Engineering, 1998, 3 (2) : 115 - 120
  • [29] A Study on the Integrated Part Design for the Parts with the Same or Similar Relationship Functions
    Choi, Jun Ho
    Lee, Kun Sang
    TRANSACTIONS OF THE KOREAN SOCIETY OF MECHANICAL ENGINEERS A, 2021, 45 (10) : 887 - 897
  • [30] 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
    Shahrzad Hosseininia
    Lisbeth R Lindberg
    Leif E Dahlberg
    BMC Musculoskeletal Disorders, 14