arrow
Return

Leveraging an Enhanced CodeBERT-Based Model for Multiclass Software Defect Prediction via Defect Classification

delete2025-01-01
delete0
delete
OA
AI
R
Rida Ghafoor Hussain
K
Kin‐Choong Yow *
M
Marco Gori
DOI:10.1109/ACCESS.2024.3525069delete
deleteOriginal
deleteOriginal request for help
deleteShare
deleteSave
Abstract

Abstract

En 中文
Ensuring software reliability through early-stage defect prevention and prediction is crucial, particularly as software systems become increasingly complex. Automated testing has emerged as the most practical approach to achieving bug-free and efficient code. In this context, machine learning-driven methods, especially those leveraging natural language models, have gained significant traction for developing effective techniques. This paper introduces a novel framework for automating software defect prediction, focusing on eight specific defects: SIGFPE, NZEC, LOGICAL, SYNTAX, SIGSEGV, SIGABRT, SEMANTIC, and LINKER. Our research involves a specialized dataset comprising nine classes, including eight common programming errors and one error-free class. The goal is to enhance software testing and development processes by identifying defects within code snippets. The proposed framework utilizes a CodeBERT-based algorithm for defect prediction, optimizing model hyperparameters to achieve superior accuracy. Comparative analysis against established models such as RoBERTa, Microsoft CodeBERT, and GPT-2 demonstrates that our approach yields significant improvements in prediction performance, with accuracy gains of up to 20% and 7% respectively in binary and multi class experimentation. Empirical studies validate the effectiveness of neural language models like CodeBERT for software defect prediction, highlighting substantial advancements in software testing and development techniques. These findings underscore the potential benefits of incorporating advanced machine learning models into the software development lifecycle.
Keywords:
Software
Codes
Predictive models
Computer bugs
Source coding
Deep learning
Data models
Transformers
Semantics
Measurement
Software defect prediction
CodeBERT
defects
GPT
code snippets
software reliability

Journal

IEEE Access cover
IEEE Access
IF:
3.6
Papers:
9.7W
Citations:
29.4W

Organization

U
university of florence
Scholars:
4.2W
Papers: 3.1W
Citations: 42
U
University of Regina
Scholars:
3.0K
Papers: 3.2K
Citations: 3.9K
U
University of Siena
Scholars:
1.3W
Papers: 1.0W
Citations: 1.0W
researcher View more organizations