EUVIMEDEUVIMED entdecken
Open Access · CC BY 4.0

Explainable Security Requirements Classification Through Transformer Models

Luca Petrillo, Fabio Martinelli, Antonella Santone, Francesco Mercaldo

Future Internet · 03.01.2025 · 17 (1) · 15

DOI: 10.3390/fi17010015 ↗

Kurz gefasst

Fachartikel in der Zeitschrift Future Internet, online erschienen am 03.01.2025. Verfasst von Luca Petrillo und 3 weiteren Autor:innen. Die Arbeit wurde bisher 18-mal zitiert (Crossref) und nennt 31 Literaturangaben. Der Volltext ist frei zugänglich (Open Access, CC BY 4.0). Gefördert von: EU DUCA, EU CyberSecPro, SYNAPSE, PTR 22-24 P2.01.

AbstractBibliografische AngabenZitierenVerwandte Studien

Abstract (Originalsprache)

Security and non-security requirements are two critical issues in software development. Classifying requirements is crucial as it aids in recalling security needs during the early stages of development, ultimately leading to enhanced security in the final software solution. However, it remains a challenging task to classify requirements into security and non-security categories automatically. In this work, we propose a novel method for automatically classifying software requirements using transformer models to address these challenges. In this work, we fine-tuned four pre-trained transformers using four datasets (the original one and the three augmented versions). In addition, we employ few-shot learning techniques by leveraging transfer learning models, explicitly utilizing pre-trained architectures. The study demonstrates that these models can effectively classify security requirements with reasonable accuracy, precision, recall, and F1-score, demonstrating that the fine-tuning and SetFit can help smaller models generalize, making them suitable for enhancing security processes in the Software Development Cycle. Finally, we introduced the explainability of fine-tuned models to elucidate how each model extracts and interprets critical information from input sequences through attention visualization heatmaps.

Förderung

  • EU DUCA
  • EU CyberSecPro
  • SYNAPSE, PTR 22-24 P2.01
  • SERICS

Zitieren

APA

Petrillo, L., Martinelli, F., Santone, A., & Mercaldo, F. (2025). Explainable Security Requirements Classification Through Transformer Models. Future Internet, 17(1), 15. https://doi.org/10.3390/fi17010015

Vancouver

Petrillo L, Martinelli F, Santone A, Mercaldo F. Explainable Security Requirements Classification Through Transformer Models. Future Internet. 2025;17(1):15. doi:10.3390/fi17010015

BibTeX
@article{Petrillo2025,
  author = {Petrillo, Luca and Martinelli, Fabio and Santone, Antonella and Mercaldo, Francesco},
  title = {Explainable Security Requirements Classification Through Transformer Models},
  journal = {Future Internet},
  year = {2025},
  volume = {17},
  number = {1},
  pages = {15},
  doi = {10.3390/fi17010015}
}
Kostenlos starten →