Multilabel classification for defect prediction in software engineering

With advancements in software development and artificial intelligence, defect prediction has gradually become an essential component of the software development lifecycle. Historically, defect prediction has been considered a multiclass classification problem because defect classes are mutually exclusive. However, software defects can belong to multiple categories simultaneously, making multilabel classification a more appropriate approach. A defect report typically contains the title, body, comments from developers and testers, and code snippets. We used these data items and performed data wrangling on these data to create a holistic summary of the defect report, which contains all the vital information that is useful for defect predictions. In this study, we investigated the multilabel dimension of the defect and performed multilabel classification using machine learning and deep learning techniques while considering the class imbalance and correlations between the labels. In the traditional classification methods, we used three classifiers: Multinomial Naive Bayes, Logistic Regression, and Random Forest. Multilayer Perceptron (MLP) and a Convolutional Neural Network (CNN) with Classifier Chains are used in deep learning. To check the dataset quality, appropriate feature selection, and data dimensionality reduction, we used the chi-square test. To handle the class imbalance, we used Non-Negative Least Squares (NNLS). Our experimental investigations showed significant improvements in the model performance across machine learning and deep learning once the dataset was balanced before training the models. Visual plots of evaluation metrics, such as Hamming loss, Recall, Precision, and F1-score, clearly demonstrated the analysis outcome.

Authors

Institutions

Publication Details

Journal
Scientific Reports
Published
2025-03-13
DOI
https://doi.org/10.1038/s41598-025-93242-8
Citations
5
Primary Topic
Software Engineering Research
Type
article
Field-Weighted Citation Impact
16.23
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Multilabel classification for defect prediction in software engineering

Swati Ahirrao, Ambarish Kulkarni, Sultan Alfarhood, Jalaj Pachouly et al.
5 citations
Scientific Reports
Software Engineering Research
16.23
article

Multilabel classification for defect prediction in software engineering

Swati Ahirrao, Ambarish Kulkarni, Sultan Alfarhood, Jalaj Pachouly, Ketan Kotecha
article en
5 citations

Abstract

With advancements in software development and artificial intelligence, defect prediction has gradually become an essential component of the software development lifecycle. Historically, defect prediction has been considered a multiclass classification problem because defect classes are mutually exclusive. However, software defects can belong to multiple categories simultaneously, making multilabel classification a more appropriate approach. A defect report typically contains the title, body, comments from developers and testers, and code snippets. We used these data items and performed data wrangling on these data to create a holistic summary of the defect report, which contains all the vital information that is useful for defect predictions. In this study, we investigated the multilabel dimension of the defect and performed multilabel classification using machine learning and deep learning techniques while considering the class imbalance and correlations between the labels. In the traditional classification methods, we used three classifiers: Multinomial Naive Bayes, Logistic Regression, and Random Forest. Multilayer Perceptron (MLP) and a Convolutional Neural Network (CNN) with Classifier Chains are used in deep learning. To check the dataset quality, appropriate feature selection, and data dimensionality reduction, we used the chi-square test. To handle the class imbalance, we used Non-Negative Least Squares (NNLS). Our experimental investigations showed significant improvements in the model performance across machine learning and deep learning once the dataset was balanced before training the models. Visual plots of evaluation metrics, such as Hamming loss, Recall, Precision, and F1-score, clearly demonstrated the analysis outcome.

Scientific ReportsVol. 15(1)
Symbiosis International University (IN), King Saud University (SA), Swinburne University of Technology (AU)
Openalex Percentile: Top 1%
Software Engineering Research
16.23
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.