Skip to main navigation Skip to search Skip to main content

Security Bug Report Prediction Within and Across Projects: A Comparative Study of BERT and Random Forest

  • Clausthal University of Technology
  • ETS - Quebec University

Research output: Contribution to Book/Report types › Contribution to conference proceedings › peer-review

6 Citations (Scopus)

Abstract

Early detection of security bug reports (SBRs) is crucial for preventing vulnerabilities and ensuring system reliability. While machine learning models have been developed for SBR prediction, their predictive performance still has room for improvement. In this study, we conduct a comprehensive comparison between BERT and Random Forest (RF), a competitive baseline for predicting SBRs. The results show that RF outperforms BERT with a 34% higher average G-measure for within-project predictions. Adding only SBRs from various projects improves both models’ average performance. However, including both security and nonsecurity bug reports significantly reduces RF’s average performance to 46%, while boosts BERT to its best average performance of 66%, surpassing RF. In cross-project SBR prediction, BERT achieves a remarkable 62% G-measure, which is substantially higher than RF.

Original languageEnglish
Title of host publicationPROMISE 2025 - Proceedings of the 2025 21st International Conference on Predictive Models and Data Analytics in Software Engineering
PublisherAssociation for Computing Machinery, Inc
Pages85-94
Number of pages10
ISBN (Electronic)9798400715945
DOIs
Publication statusPublished - 26 Jun 2025
Externally publishedYes
Event21st International Conference on Predictive Models and Data Analytics in Software Engineering, PROMISE 2025 , co-located with the International Conference on the Foundations of Software Engineering, FSE 2025 - Trondheim, Norway
Duration: 26 Jun 2025 → …

Publication series

NamePROMISE 2025 - Proceedings of the 2025 21st International Conference on Predictive Models and Data Analytics in Software Engineering

Conference

Conference21st International Conference on Predictive Models and Data Analytics in Software Engineering, PROMISE 2025 , co-located with the International Conference on the Foundations of Software Engineering, FSE 2025
Country/TerritoryNorway
CityTrondheim
Period26/06/25 → …

Keywords

  • Security bug reports
  • machine learning for security
  • software vulnerabilities

ASJC Scopus subject areas

  • Computer Science Applications
  • Artificial Intelligence
  • Computational Theory and Mathematics

Fingerprint

Dive into the research topics of 'Security Bug Report Prediction Within and Across Projects: A Comparative Study of BERT and Random Forest'. These topics are generated from the title and abstract of the publication. Together, they form a unique fingerprint.

Cite this