DP-S3: software defect prediction through feature fusion with syntax trees, program slices and standard features

Abstract Software defect prediction (SDP) is crucial for enhancing software quality and reducing development costs. Prevailing SDP methods often depend on traditional code metrics, which inadequately capture vital semantic information from source code, thereby limiting defect identification accuracy. This paper introduces DP-S3, a novel SDP model that integrates features from abstract syntax trees (ASTs), program slices, and standard metrics. DP-S3 extracts ASTs and program slices, transforming them into vector representations. A hierarchical long short-term memory network then learns semantic features from these vectors, which are combined with standard metrics from the PROMISE repository. A key innovation is our feature fusion strategy employing a channel self-attention mechanism to dynamically weight the three feature sets. We evaluated DP-S3 on seven open-source Java projects from the Apache repository against several state-of-the-art methods. The results demonstrate DP-S3’s superior performance, achieving average improvements of up to 3.8% in area under the receiver operating characteristic curve, 4.5% in F1, and 7.5% in Matthews correlation coefficient over baselines, showcasing its effectiveness. Key limitations include its current focus on Java projects and within-project defect prediction. Nevertheless, this work concludes that a synergistic fusion of syntactic, semantic (slice-based), and traditional metric features, guided by attention mechanisms, significantly enhances SDP capabilities and offers a promising direction for future research.

Authors

Institutions

Publication Details

Journal
The Computer Journal
Published
2025-11-06
DOI
https://doi.org/10.1093/comjnl/bxaf126
Primary Topic
Software Engineering Research
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

DP-S3: software defect prediction through feature fusion with syntax trees, program slices and standard features

Jiaping Xu, Rexford Nii Ayitey Sosu, Jinfu Chen, Zhehao Li et al.
The Computer Journal
Software Engineering Research
article

DP-S3: software defect prediction through feature fusion with syntax trees, program slices and standard features

Jiaping Xu, Rexford Nii Ayitey Sosu, Jinfu Chen, Zhehao Li, Saihua Cai, Jiming Chen, Jian Sun
article en

Abstract

Abstract Software defect prediction (SDP) is crucial for enhancing software quality and reducing development costs. Prevailing SDP methods often depend on traditional code metrics, which inadequately capture vital semantic information from source code, thereby limiting defect identification accuracy. This paper introduces DP-S3, a novel SDP model that integrates features from abstract syntax trees (ASTs), program slices, and standard metrics. DP-S3 extracts ASTs and program slices, transforming them into vector representations. A hierarchical long short-term memory network then learns semantic features from these vectors, which are combined with standard metrics from the PROMISE repository. A key innovation is our feature fusion strategy employing a channel self-attention mechanism to dynamically weight the three feature sets. We evaluated DP-S3 on seven open-source Java projects from the Apache repository against several state-of-the-art methods. The results demonstrate DP-S3’s superior performance, achieving average improvements of up to 3.8% in area under the receiver operating characteristic curve, 4.5% in F1, and 7.5% in Matthews correlation coefficient over baselines, showcasing its effectiveness. Key limitations include its current focus on Java projects and within-project defect prediction. Nevertheless, this work concludes that a synergistic fusion of syntactic, semantic (slice-based), and traditional metric features, guided by attention mechanisms, significantly enhances SDP capabilities and offers a promising direction for future research.

The Computer JournalVol. 69(3)
Jiangsu University (CN), Jiangsu University of Science and Technology (CN), Ghana Communication Technology University (GH)
Openalex Percentile: Top 53%
Software Engineering Research
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.