Skip to content
Open access

Applying Cost-Sensitive Learning to Mitigate the Effect of Class Imbalance for Deep Learning-based Fault Localization

Aug 2026 · International journal of software engineering and knowledge engineering · pp. 1-34 · 0 citations

TL;DR

This work proposes applying cost-sensitive learning to set different weights for each sample to optimize the performance of fault localization and demonstrates that applying cost-sensitive learning can effectively alleviate the class imbalance problem in DLFL.

Abstract

Automated software fault localization has become a research focus with the growing software scale. Deep learning-based fault localization (DLFL) has been widely studied due to its excellent performance. Most existing DLFL methods use the execution traces of the test cases as features. However, the number of passing test cases is far more than that of failed test cases in the practical test suite. The severe class imbalance problem is ignored in existing DLFL methods. To alleviate the impact of the class imbalance on DLFL, we propose applying cost-sensitive learning to set different weights for each sample to optimize the performance of fault localization. We reduce the number of passing test cases and compute the weight for each sample. The sample weight is combined with a loss function to optimize the accuracy of the DLFL method. To evaluate our approach, we conduct within-project and cross-project fault localization experiments on the Defects4J benchmark. Experimental results show our approach outperforms the traditional DLFL and existing data augmentation methods in fault localization (e.g., localizing 133 faults within Top-5). The experimental results show that applying cost-sensitive learning can effectively alleviate the class imbalance problem in DLFL.

Read PDF

Similar papers

Open access 2026

FR-CNN: SOFTWARE FAULT PREDICTION USING A NOVEL HYBRID HIERARCHICAL MODEL

A novel hybrid model based on a fine-tuned fully connected fully connected deep neural network, a random forest, and a convolutional neural network that achieves competitive fault prediction performance while requiring lower computational complexity and training time than recent deep-learning approaches.

Mehrasa Jouybari, Alireza Tajary, M. Fateh et al. · 0 citations
Book Open access Aug 2026

ADEPT: A Unified Framework for Deep Learning Test Adequacy

The engineering details of ADEPT are presented, a framework that integrates representative adequacy techniques, including neuron-coverage-based metrics, surprise adequacy, input distribution coverage, boundary coverage, and source- and model-level mutation score, under a consistent execution workflow.

Yidi Kao, Shawn Burnham, Tommi Rose Fahy et al. · 0 citations
Open access Aug 2026

Comparative Evaluation of TabKANet with Oversampling and Feature Selection Ablation for Software Defect Prediction

TabKANet is a competitive architecture for all-numerical, highly imbalanced SDP, matching strong neural baselines and surpassing TabNet, where effective class weighting alone suffices and SMOTE is counter-productive.

Muhammad Faza Azhiman Saputra, Setyo Wahyu Saputro, M. Faisal et al. · 0 citations
Conference Aug 2026

XAI-AutoDL: An Explainable Automated System for Deep Learning-Based Classification Using Meta-Features

The increasing use of machine learning (AutoML) and deep learning means hyperparameter optimization can save time. Nevertheless, it is not clear how they compare on structured tabular classification under tight computational constraints. Here we present a resource-aware benchmark that compares the performance of Random...

Priya Surana, Palash Hemade, Ishan Patil et al. · 0 citations

TabKANet for Software Defect Prediction: An Oversampling and Feature-Selection Ablation Study

This study adapts TabKANet to the all-numerical, highly imbalanced SDP setting and empirically evaluates it against established baselines, using a structured ablation in order to isolate the contribution of oversampling and feature selection rather than to propose a new architecture.

Setyo Wahyu Saputro, M. Faza, Azhiman Saputra Setyo et al. · 0 citations
#artificial intelligence Preprint Sep 2026

TreeFI: Value-Aware Statistical Fault Injection for Deep Neural Networks

TreeFI, a value-aware statistical fault-injection methodology for FP32 single-bit faults in DNN activations and weights, is proposed and validated, providing more accurate estimates than state-of-the-art statistical FI baselines under the same campaign setting.

Noam Bires, Marcello Traiola, Angeliki Kritikakou et al. · 0 citations

We use cookies to run the site and, with your consent, for analytics and to show ads. See our Cookie Policy.