A software defect prediction method enhanced by extraction and fusion of traditional metric features and semantic features
- 1 January 2026
- journal article
- Published by IOP Publishing in Engineering Research Express
- Vol. 8 (2) , 025210
Abstract
With the advancement of software defect prediction techniques, traditional metric features and semantic features have become two primary types of features used in constructing software defect prediction methods. Traditional metric features often fail to capture program semantics, while semantic features cannot represent statistical indicators of source code. Thus, relying solely on one type of feature poses certain limitations in building defect prediction models. To fully leverage the advantages of both feature types, we propose a software defect prediction method capable of fusing metric features and semantic features (Semn-CBL). Specifically, we employ a CNN-BiLSTM hybrid model to enhance the extraction of semantic features from source code. Subsequently, we use our designed EMLP model to perform dimension alignment and feature enhancement transformation on the high-dimensional semantic features and low-dimensional traditional features. Finally, a gating mechanism is applied to fuse the semantically enhanced features (transformed by EMLP) and the traditional features for defect prediction. Experiments conducted on nine open-source projects demonstrate that the Semn-CBL model outperforms six state-of-the-art baseline methods, achieving average improvements of 14.5% in F1, 7.7% in AUC, and 10.3% in G-mean.Keywords
Funding Information
- China State Railway Group Co., Ltd (P2022S007)
This publication has 49 references indexed in Scilit:
- Survey of software defect prediction featuresNeural Computing and Applications, 2024
- Software defect prediction using a bidirectional LSTM network combined with oversampling techniquesCluster Computing, 2023
- ST-Unet: Swin Transformer boosted U-Net with Cross-Layer Feature Enhancement for medical image segmentationComputers in Biology and Medicine, 2023
- Software fault prediction using data mining, machine learning and deep learning techniques: A systematic literature reviewComputers and Electrical Engineering, 2022
- Software defect prediction employing BiLSTM and BERT-based semantic featureSoft Computing, 2022
- Software Defect-Based Prediction Using Logistic Regression: Review and Challenges2021
- Effective software defect prediction using support vector machines (SVMs)International Journal of System Assurance Engineering and Management, 2021
- PathPair2Vec: An AST path pair-based code representation method for defect predictionJournal of Computer Languages, 2020
- Software defect prediction using Bayesian networksEmpirical Software Engineering, 2012
- Defect prediction from static code features: current results, limitations, new approachesAutomated Software Engineering, 2010