EUVIMEDEUVIMED entdecken
Open Access · CC BY 4.0

Constructing Traceability Links between Software Requirements and Source Code Based on Neural Networks

Peng Dai, Li Yang, Yawen Wang, Dahai Jin, Yunzhan Gong

Mathematics · 07.01.2023 · 11 (2) · 315

DOI: 10.3390/math11020315 ↗

Kurz gefasst

Fachartikel in der Zeitschrift Mathematics, online erschienen am 07.01.2023. Verfasst von Peng Dai und 4 weiteren Autor:innen. Die Arbeit wurde bisher 12-mal zitiert (Crossref) und nennt 59 Literaturangaben. Der Volltext ist frei zugänglich (Open Access, CC BY 4.0). Gefördert von: National Natural Science Foundation of China, Guangxi Key Laboratory of Cryptography and Information Security, China.

AbstractBibliografische AngabenZitierenVerwandte Studien

Abstract (Originalsprache)

Software requirement changes, code changes, software reuse, and testing are important activities in software engineering that involve the traceability links between software requirements and code. Software requirement documents, design documents, code documents, and test case documents are the intermediate products of software development. The lack of interrelationship between these documents can make it extremely difficult to change and maintain the software. Frequent requirements and code changes are inevitable in software development. Software reuse, change impact analysis, and testing also require the relationship between software requirements and code. Using these traceability links can improve the efficiency and quality of related software activities. Existing methods for constructing these links need to be better automated and accurate. To address these problems, we propose to embed software requirements and source code into feature vectors containing their semantic information based on four neural networks (NBOW, RNN, CNN, and self-attention). Accurate traceability links from requirements to code are established by comparing the similarity between these vectors. We develop a prototype tool RCT based on this method. These four networks’ performances in constructing links are explored on 18 open-source projects. The experimental results show that the self-attention network performs best, with an average Recall@50 value of 0.687 on the 18 projects, which is higher than the other three neural network models and much higher than previous approaches using information retrieval and machine learning.

Förderung

  • National Natural Science Foundation of China
  • Guangxi Key Laboratory of Cryptography and Information Security, China

Zitieren

APA

Dai, P., Yang, L., Wang, Y., Jin, D., & Gong, Y. (2023). Constructing Traceability Links between Software Requirements and Source Code Based on Neural Networks. Mathematics, 11(2), 315. https://doi.org/10.3390/math11020315

Vancouver

Dai P, Yang L, Wang Y, Jin D, Gong Y. Constructing Traceability Links between Software Requirements and Source Code Based on Neural Networks. Mathematics. 2023;11(2):315. doi:10.3390/math11020315

BibTeX
@article{Dai2023,
  author = {Dai, Peng and Yang, Li and Wang, Yawen and Jin, Dahai and Gong, Yunzhan},
  title = {Constructing Traceability Links between Software Requirements and Source Code Based on Neural Networks},
  journal = {Mathematics},
  year = {2023},
  volume = {11},
  number = {2},
  pages = {315},
  doi = {10.3390/math11020315}
}
Kostenlos starten →