A hybrid approach based on k-nearest neighbors and decision tree for software fault prediction

Software testing is a very important part of the software development life cycle to develop reliable and bug-free software but it consumes a lot of resources like development time, cost, and effort. Researchers have developed many techniques to get prior knowledge of fault-prone modules so that tes...

Full description

Saved in:
Bibliographic Details
Main Authors: Manpreet Singh, Jitender Kumar Chhabra
Format: Article
Language:English
Published: Elsevier 2023-03-01
Series:Kuwait Journal of Science
Online Access:https://journalskuwait.org/kjs/index.php/KJS/article/view/18331
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1850231217976246272
author Manpreet Singh
Jitender Kumar Chhabra
author_facet Manpreet Singh
Jitender Kumar Chhabra
author_sort Manpreet Singh
collection DOAJ
description Software testing is a very important part of the software development life cycle to develop reliable and bug-free software but it consumes a lot of resources like development time, cost, and effort. Researchers have developed many techniques to get prior knowledge of fault-prone modules so that testing time and cost can be reduced. In this research article, a hybrid approach of distance-based pruned classification and regression tree (CART) and k- nearest neighbors is proposed to improve the performance of software fault prediction. The proposed technique is tested on eleven medium to large scale software fault prediction datasets and performance is compared with decision tree classifier, SVM and its three variations, random forest, KNN, and classification and regression tree. Four performance metrics are used for comparison purposes that are accuracy, precision, recall, and f1-score. Results show that our proposed approach gives better performance for accuracy, precision, and f1-score performance metrics. The second experiment shows a significant amount of running time improvement over the standard k-nearest neighbor algorithm.
format Article
id doaj-art-af15283f4f844fe8be1a1ad0a66189a3
institution OA Journals
issn 2307-4108
2307-4116
language English
publishDate 2023-03-01
publisher Elsevier
record_format Article
series Kuwait Journal of Science
spelling doaj-art-af15283f4f844fe8be1a1ad0a66189a32025-08-20T02:03:36ZengElsevierKuwait Journal of Science2307-41082307-41162023-03-01502A10.48129/kjs.18331A hybrid approach based on k-nearest neighbors and decision tree for software fault predictionManpreet Singh0Jitender Kumar Chhabra1Dept. of Computer Engineering National Institute of Technology, Kurukshetra-136119 INDIADept. of Computer Engineering National Institute of Technology, Kurukshetra-136119 INDIA Software testing is a very important part of the software development life cycle to develop reliable and bug-free software but it consumes a lot of resources like development time, cost, and effort. Researchers have developed many techniques to get prior knowledge of fault-prone modules so that testing time and cost can be reduced. In this research article, a hybrid approach of distance-based pruned classification and regression tree (CART) and k- nearest neighbors is proposed to improve the performance of software fault prediction. The proposed technique is tested on eleven medium to large scale software fault prediction datasets and performance is compared with decision tree classifier, SVM and its three variations, random forest, KNN, and classification and regression tree. Four performance metrics are used for comparison purposes that are accuracy, precision, recall, and f1-score. Results show that our proposed approach gives better performance for accuracy, precision, and f1-score performance metrics. The second experiment shows a significant amount of running time improvement over the standard k-nearest neighbor algorithm. https://journalskuwait.org/kjs/index.php/KJS/article/view/18331
spellingShingle Manpreet Singh
Jitender Kumar Chhabra
A hybrid approach based on k-nearest neighbors and decision tree for software fault prediction
Kuwait Journal of Science
title A hybrid approach based on k-nearest neighbors and decision tree for software fault prediction
title_full A hybrid approach based on k-nearest neighbors and decision tree for software fault prediction
title_fullStr A hybrid approach based on k-nearest neighbors and decision tree for software fault prediction
title_full_unstemmed A hybrid approach based on k-nearest neighbors and decision tree for software fault prediction
title_short A hybrid approach based on k-nearest neighbors and decision tree for software fault prediction
title_sort hybrid approach based on k nearest neighbors and decision tree for software fault prediction
url https://journalskuwait.org/kjs/index.php/KJS/article/view/18331
work_keys_str_mv AT manpreetsingh ahybridapproachbasedonknearestneighborsanddecisiontreeforsoftwarefaultprediction
AT jitenderkumarchhabra ahybridapproachbasedonknearestneighborsanddecisiontreeforsoftwarefaultprediction
AT manpreetsingh hybridapproachbasedonknearestneighborsanddecisiontreeforsoftwarefaultprediction
AT jitenderkumarchhabra hybridapproachbasedonknearestneighborsanddecisiontreeforsoftwarefaultprediction