FS-iSDP: A few-shot learning approach using siamese networks for interpretable software defect prediction

Software defect prediction (SDP) plays a critical role in improving software quality by identifying defective components during development and maintenance. This paper introduces FS-iSDP, an interpretable few-shot learning approach based on Siamese Neural Networks, designed to address the challenges posed by highly imbalanced SDP datasets. The proposed model learns to measure the similarity between software application classes represented through software metric-based features, enabling effective defect classification with limited training examples. Experiments were conducted on the Apache Calcite open-source project using a cross-version setup that simulates realistic software evolution. The results show that FS-iSDP achieves high recall and strong AUC values across multiple software versions, even as the number of defects decreases and class imbalance intensifies. To improve performance and reduce computational costs, Univariate Feature Selection is applied, which leads to improved precision and critical success index, along with a significant reduction in training time. In addition, a comparative evaluation is performed against state-of-the-art SDP methods, showing that FS-iSDP achieves competitive performance in most metrics. Finally, LIME analysis is used to interpret the model predictions, offering insight into which features most influence defect classification decisions. This approach proves effective for realistic, evolving software systems, and provides both predictive capabilities and interpretability in scenarios with scarce defect labels.

Authors

Institutions

Publication Details

Journal
Procedia Computer Science
Published
2025-01-01
DOI
https://doi.org/10.1016/j.procs.2025.09.426
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

FS-iSDP: A few-shot learning approach using siamese networks for interpretable software defect prediction

Andrei Mihai, Gabriela Czibula, Ioana-Gabriela Chelaru
Procedia Computer Science
Software Engineering Research
article

FS-iSDP: A few-shot learning approach using siamese networks for interpretable software defect prediction

Andrei Mihai, Gabriela Czibula, Ioana-Gabriela Chelaru
article en

Abstract

Software defect prediction (SDP) plays a critical role in improving software quality by identifying defective components during development and maintenance. This paper introduces FS-iSDP, an interpretable few-shot learning approach based on Siamese Neural Networks, designed to address the challenges posed by highly imbalanced SDP datasets. The proposed model learns to measure the similarity between software application classes represented through software metric-based features, enabling effective defect classification with limited training examples. Experiments were conducted on the Apache Calcite open-source project using a cross-version setup that simulates realistic software evolution. The results show that FS-iSDP achieves high recall and strong AUC values across multiple software versions, even as the number of defects decreases and class imbalance intensifies. To improve performance and reduce computational costs, Univariate Feature Selection is applied, which leads to improved precision and critical success index, along with a significant reduction in training time. In addition, a comparative evaluation is performed against state-of-the-art SDP methods, showing that FS-iSDP achieves competitive performance in most metrics. Finally, LIME analysis is used to interpret the model predictions, offering insight into which features most influence defect classification decisions. This approach proves effective for realistic, evolving software systems, and provides both predictive capabilities and interpretability in scenarios with scarce defect labels.

Procedia Computer ScienceVol. 270
Babeș-Bolyai University (RO)
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.

FS-iSDP: A few-shot learning approach using siamese networks for interpretable software defect prediction — Andrei Mihai, Gabriela Czibula, et al. · Procedia Computer Science (2025) | TGRS Research Map | TGRS