Predicting Software Defects with Explainable Machine Learning

Resumo


Most software systems must evolve to cope with stakeholders’ requirements and fix existing defects. Hence, software defect prediction represents an area of interest in both academia and the software industry. As a result, predicting software defects can help the development team to maintain substantial levels of software quality. For this reason, machine learning models have increased in popularity for software defect prediction and have demonstrated effectiveness in many scenarios. In this paper, we evaluate a machine learning approach for selecting features to predict software module defects. We use a tree boosting algorithm that receives as input a training set comprising records of software features encoding characteristics of each module and outputs whether the corresponding module is defective prone. For nine projects within the widely known NASA data program, we build prediction models from a set of easy-to-compute module features. We then sample this sizable model space by randomly selecting software features to compose each model. This significant number of models allows us to structure our work along model understandability and predictive accuracy. We argue that explaining model predictions is meaningful to provide information to developers on features related to each module defective-prone. We show that (i) features that contribute most to finding the best models may vary depending on the project, and (ii) effective models are highly understandable based on a survey with 40 developers.
Palavras-chave: software defects, explainable models, NASA datasets, SHAP values
Publicado
01/12/2020
Como Citar

Selecione um Formato
SANTOS, Geanderson; FIGUEIREDO, Eduardo; VELOSO, Adriano; VIGGIATO, Markos; ZIVIANI, Nivio. Predicting Software Defects with Explainable Machine Learning. In: SIMPÓSIO BRASILEIRO DE QUALIDADE DE SOFTWARE (SBQS), 19. , 2020, São Luiz do Maranhão. Anais [...]. Porto Alegre: Sociedade Brasileira de Computação, 2020 . p. 169-178.