An Empirical Study of the Impact of Test Strategies on Online Optimization for Ensemble-Learning Defect Prediction

Fuente: arXiv
Enregistré dans:
Détails bibliographiques
Auteurs principaux: Hamamoto, Kensei, Tsunoda, Masateru, Tahir, Amjed, Bennin, Kwabena Ebo, Monden, Akito, Toda, Koji, Nakasai, Keitaro, Matsumoto, Kenichi
Format: Preprint
Publié: 2024
Sujets:
Accès en ligne:
Tags: Ajouter un tag
Pas de tags, Soyez le premier à ajouter un tag!
_version_ 1866912020854472704
author Hamamoto, Kensei
Tsunoda, Masateru
Tahir, Amjed
Bennin, Kwabena Ebo
Monden, Akito
Toda, Koji
Nakasai, Keitaro
Matsumoto, Kenichi
author_facet Hamamoto, Kensei
Tsunoda, Masateru
Tahir, Amjed
Bennin, Kwabena Ebo
Monden, Akito
Toda, Koji
Nakasai, Keitaro
Matsumoto, Kenichi
contents Ensemble learning methods have been used to enhance the reliability of defect prediction models. However, there is an inconclusive stability of a single method attaining the highest accuracy among various software projects. This work aims to improve the performance of ensemble-learning defect prediction among such projects by helping select the highest accuracy ensemble methods. We employ bandit algorithms (BA), an online optimization method, to select the highest-accuracy ensemble method. Each software module is tested sequentially, and bandit algorithms utilize the test outcomes of the modules to evaluate the performance of the ensemble learning methods. The test strategy followed might impact the testing effort and prediction accuracy when applying online optimization. Hence, we analyzed the test order's influence on BA's performance. In our experiment, we used six popular defect prediction datasets, four ensemble learning methods such as bagging, and three test strategies such as testing positive-prediction modules first (PF). Our results show that when BA is applied with PF, the prediction accuracy improved on average, and the number of found defects increased by 7% on a minimum of five out of six datasets (although with a slight increase in the testing effort by about 4% from ordinal ensemble learning). Hence, BA with PF strategy is the most effective to attain the highest prediction accuracy using ensemble methods on various projects.
format Preprint
id arxiv_https___arxiv_org_abs_2409_06264
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle An Empirical Study of the Impact of Test Strategies on Online Optimization for Ensemble-Learning Defect Prediction
Hamamoto, Kensei
Tsunoda, Masateru
Tahir, Amjed
Bennin, Kwabena Ebo
Monden, Akito
Toda, Koji
Nakasai, Keitaro
Matsumoto, Kenichi
Software Engineering
Ensemble learning methods have been used to enhance the reliability of defect prediction models. However, there is an inconclusive stability of a single method attaining the highest accuracy among various software projects. This work aims to improve the performance of ensemble-learning defect prediction among such projects by helping select the highest accuracy ensemble methods. We employ bandit algorithms (BA), an online optimization method, to select the highest-accuracy ensemble method. Each software module is tested sequentially, and bandit algorithms utilize the test outcomes of the modules to evaluate the performance of the ensemble learning methods. The test strategy followed might impact the testing effort and prediction accuracy when applying online optimization. Hence, we analyzed the test order's influence on BA's performance. In our experiment, we used six popular defect prediction datasets, four ensemble learning methods such as bagging, and three test strategies such as testing positive-prediction modules first (PF). Our results show that when BA is applied with PF, the prediction accuracy improved on average, and the number of found defects increased by 7% on a minimum of five out of six datasets (although with a slight increase in the testing effort by about 4% from ordinal ensemble learning). Hence, BA with PF strategy is the most effective to attain the highest prediction accuracy using ensemble methods on various projects.
title An Empirical Study of the Impact of Test Strategies on Online Optimization for Ensemble-Learning Defect Prediction
topic Software Engineering
url https://arxiv.org/abs/2409.06264