Topic modeling-based prediction of software defects and root cause using BERTopic, and multioutput classifier
Open Access
- 14 July 2025
- journal article
- research article
- Published by Springer Nature in Scientific Reports
- Vol. 15 (1) , 1-20
Abstract
The occurrence of software defects remains a major obstacle in software engineering, resulting in costly debugging and maintenance efforts. This study introduces a new angle for software defect prediction (SDP), utilizing advanced natural language processing (NLP) and machine learning (ML) techniques. In this work, the proposed methodology, BERT-MOC, combines the power of BERTopic, a transformer-based topic modeling technique, with a multioutput classifier to predict software defects and the root cause (reason) of defects. BERTopic is used to extract the root cause of the defect from textual descriptions of software defects, creating a meaningful representation of the software artifacts. These topic representations are then combined with the defect log data set.A multi-output classifier is trained on the combined dataset to predict multiple outputs, i.e., defect/not defect and defect root cause, simultaneously. As an estimator, Logistic Regression, Decision Tree Classifier, Kneighbor Classifier, Random Forest Classifier, and Ensemble Method-Voting are included in the MultiOutput Classifier. The proposed model is evaluated by the metrics hamming loss, accuracy, F1-score, precision, recall, and Jaccard similarity. The multi-output classifier with ensemble method voting as an estimator achieved the highest performance with 97% accuracy and F1-score to predict the root cause of the defect and 94% accuracy and F1-score to predict defect or not.Keywords
This publication has 47 references indexed in Scilit:
- Efficient multi-target classification for bug priority and resolution time predictionMultimedia Tools and Applications, 2024
- Approaches to improve preprocessing for Latent Dirichlet Allocation topic modelingDecision Support Systems, 2024
- Software defect prediction: future directions and challengesAutomated Software Engineering, 2024
- Software defect prediction using a bidirectional LSTM network combined with oversampling techniquesCluster Computing, 2023
- Software bug priority prediction technique based on intuitionistic fuzzy representation and class imbalance learningKnowledge and Information Systems, 2023
- Performance evaluation of software defect prediction with NASA dataset using machine learning techniquesInternational Journal of Information Technology, 2023
- Software defect prediction using hybrid techniques: a systematic literature reviewSoft Computing, 2023
- Natural language processing: state of the art, current trends and challengesMultimedia Tools and Applications, 2022
- A public unified bug dataset for java and its assessment regarding metrics and bug predictionSoftware Quality Journal, 2020
- Studying software logging using topic modelsEmpirical Software Engineering, 2018