Cargando…
Research of Software Defect Prediction Model Based on Complex Network and Graph Neural Network
The goal of software defect prediction is to make predictions by mining the historical data using models. Current software defect prediction models mainly focus on the code features of software modules. However, they ignore the connection between software modules. This paper proposed a software defe...
Autores principales: | , , , |
---|---|
Formato: | Online Artículo Texto |
Lenguaje: | English |
Publicado: |
MDPI
2022
|
Materias: | |
Acceso en línea: | https://www.ncbi.nlm.nih.gov/pmc/articles/PMC9601759/ https://www.ncbi.nlm.nih.gov/pubmed/37420393 http://dx.doi.org/10.3390/e24101373 |
_version_ | 1784817145416253440 |
---|---|
author | Cui, Mengtian Long, Songlin Jiang, Yue Na, Xu |
author_facet | Cui, Mengtian Long, Songlin Jiang, Yue Na, Xu |
author_sort | Cui, Mengtian |
collection | PubMed |
description | The goal of software defect prediction is to make predictions by mining the historical data using models. Current software defect prediction models mainly focus on the code features of software modules. However, they ignore the connection between software modules. This paper proposed a software defect prediction framework based on graph neural network from a complex network perspective. Firstly, we consider the software as a graph, where nodes represent the classes, and edges represent the dependencies between the classes. Then, we divide the graph into multiple subgraphs using the community detection algorithm. Thirdly, the representation vectors of the nodes are learned through the improved graph neural network model. Lastly, we use the representation vector of node to classify the software defects. The proposed model is tested on the PROMISE dataset, using two graph convolution methods, based on the spectral domain and spatial domain in the graph neural network. The investigation indicated that both convolution methods showed an improvement in various metrics, such as accuracy, F-measure, and MCC (Matthews correlation coefficient) by 86.6%, 85.8%, and 73.5%, and 87.5%, 85.9%, and 75.5%, respectively. The average improvement of various metrics was noted as 9.0%, 10.5%, and 17.5%, and 6.3%, 7.0%, and 12.1%, respectively, compared with the benchmark models. |
format | Online Article Text |
id | pubmed-9601759 |
institution | National Center for Biotechnology Information |
language | English |
publishDate | 2022 |
publisher | MDPI |
record_format | MEDLINE/PubMed |
spelling | pubmed-96017592022-10-27 Research of Software Defect Prediction Model Based on Complex Network and Graph Neural Network Cui, Mengtian Long, Songlin Jiang, Yue Na, Xu Entropy (Basel) Article The goal of software defect prediction is to make predictions by mining the historical data using models. Current software defect prediction models mainly focus on the code features of software modules. However, they ignore the connection between software modules. This paper proposed a software defect prediction framework based on graph neural network from a complex network perspective. Firstly, we consider the software as a graph, where nodes represent the classes, and edges represent the dependencies between the classes. Then, we divide the graph into multiple subgraphs using the community detection algorithm. Thirdly, the representation vectors of the nodes are learned through the improved graph neural network model. Lastly, we use the representation vector of node to classify the software defects. The proposed model is tested on the PROMISE dataset, using two graph convolution methods, based on the spectral domain and spatial domain in the graph neural network. The investigation indicated that both convolution methods showed an improvement in various metrics, such as accuracy, F-measure, and MCC (Matthews correlation coefficient) by 86.6%, 85.8%, and 73.5%, and 87.5%, 85.9%, and 75.5%, respectively. The average improvement of various metrics was noted as 9.0%, 10.5%, and 17.5%, and 6.3%, 7.0%, and 12.1%, respectively, compared with the benchmark models. MDPI 2022-09-27 /pmc/articles/PMC9601759/ /pubmed/37420393 http://dx.doi.org/10.3390/e24101373 Text en © 2022 by the authors. https://creativecommons.org/licenses/by/4.0/Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (https://creativecommons.org/licenses/by/4.0/). |
spellingShingle | Article Cui, Mengtian Long, Songlin Jiang, Yue Na, Xu Research of Software Defect Prediction Model Based on Complex Network and Graph Neural Network |
title | Research of Software Defect Prediction Model Based on Complex Network and Graph Neural Network |
title_full | Research of Software Defect Prediction Model Based on Complex Network and Graph Neural Network |
title_fullStr | Research of Software Defect Prediction Model Based on Complex Network and Graph Neural Network |
title_full_unstemmed | Research of Software Defect Prediction Model Based on Complex Network and Graph Neural Network |
title_short | Research of Software Defect Prediction Model Based on Complex Network and Graph Neural Network |
title_sort | research of software defect prediction model based on complex network and graph neural network |
topic | Article |
url | https://www.ncbi.nlm.nih.gov/pmc/articles/PMC9601759/ https://www.ncbi.nlm.nih.gov/pubmed/37420393 http://dx.doi.org/10.3390/e24101373 |
work_keys_str_mv | AT cuimengtian researchofsoftwaredefectpredictionmodelbasedoncomplexnetworkandgraphneuralnetwork AT longsonglin researchofsoftwaredefectpredictionmodelbasedoncomplexnetworkandgraphneuralnetwork AT jiangyue researchofsoftwaredefectpredictionmodelbasedoncomplexnetworkandgraphneuralnetwork AT naxu researchofsoftwaredefectpredictionmodelbasedoncomplexnetworkandgraphneuralnetwork |