Predicting bugs in software code changes using isolation forest

Research output: Chapter in Book/Report/Conference proceedingConference contributionpeer-review

14 Scopus citations

Abstract

Identifying bug immediately when it is introduced can help improve the validity and effectiveness of bug fixing. Predicting bugs in software code changes makes such identification possible. Buggy changes, changes that introduce bugs into source code, can be viewed as anomalies relative to clean changes for that they are rare and irregular. Thus, anomaly detection techniques can be applied to buggy change prediction. Isolation Forest, which detects anomalies based on the hypothesis that the anomalies have the shortest average path length on the constructed random forest, has exhibited its good performance on anomaly detection compared to other anomaly detection methods. In this paper, we adopt it in predicting bugs in software code changes. Empirical study with eight practical open source projects are conducted to validate the effective of Isolation Forest in bug prediction in software code changes. Results of the empirical study show that compared to traditional classification methods used in literature, Isolation Forest can achieve better clean precision, buggy recall, buggy F-measure, AUC and Gmean.

Original languageEnglish
Title of host publicationProceedings - 2017 IEEE International Conference on Software Quality, Reliability and Security, QRS 2017
PublisherInstitute of Electrical and Electronics Engineers Inc.
Pages296-305
Number of pages10
ISBN (Electronic)9781538605929
DOIs
StatePublished - 11 Aug 2017
Event17th IEEE International Conference on Software Quality, Reliability and Security, QRS 2017 - Prague, Czech Republic
Duration: 25 Jul 201729 Jul 2017

Publication series

NameProceedings - 2017 IEEE International Conference on Software Quality, Reliability and Security, QRS 2017

Conference

Conference17th IEEE International Conference on Software Quality, Reliability and Security, QRS 2017
Country/TerritoryCzech Republic
CityPrague
Period25/07/1729/07/17

Fingerprint

Dive into the research topics of 'Predicting bugs in software code changes using isolation forest'. Together they form a unique fingerprint.

Cite this