Empirical Study about Class Change Proneness Prediction using Software Metrics and Code Smells

Antonio Martins, Cristiano Melo, José Monteiro, Javam Machado

2020

Abstract

During the lifecycle of software, maintenance has been considered one of the most complex and costly phases in terms of resources and costs. In addition, software evolves in response to the needs and demands of the ever-changing world and thus becomes increasingly complex. In this scenario, an approach that has been widely used to rationalize resources and costs during the evolution of object-oriented software is to predict change-prone classes. A change-prone class may indicate a part of poor quality of software that needs to be refactored. Recently, some strategies for predicting change-prone classes, which are based on the use of software metrics and code smells, have been proposed. In this paper, we present an empirical study on the performance of 8 machine learning techniques used to predict classes prone to change. Three different training scenarios were investigated: object-oriented metrics, code smells, and object-oriented metrics and code smells combined. To perform the experiments, we built a data set containing eight object-oriented metrics and 32 types of code smells, which were extracted from the source code of a web application that was developed between 2013 and 2018 over eight releases. The machine learning algorithms that presented the best results were: RF, LGBM, and LR. The training scenario that presented the best results was the combination of code smells and object-oriented metrics.

Download


Paper Citation


in Harvard Style

Martins A., Melo C., Monteiro J. and Machado J. (2020). Empirical Study about Class Change Proneness Prediction using Software Metrics and Code Smells.In Proceedings of the 22nd International Conference on Enterprise Information Systems - Volume 1: ICEIS, ISBN 978-989-758-423-7, pages 140-147. DOI: 10.5220/0009410601400147


in Bibtex Style

@conference{iceis20,
author={Antonio Martins and Cristiano Melo and José Monteiro and Javam Machado},
title={Empirical Study about Class Change Proneness Prediction using Software Metrics and Code Smells},
booktitle={Proceedings of the 22nd International Conference on Enterprise Information Systems - Volume 1: ICEIS,},
year={2020},
pages={140-147},
publisher={SciTePress},
organization={INSTICC},
doi={10.5220/0009410601400147},
isbn={978-989-758-423-7},
}


in EndNote Style

TY - CONF

JO - Proceedings of the 22nd International Conference on Enterprise Information Systems - Volume 1: ICEIS,
TI - Empirical Study about Class Change Proneness Prediction using Software Metrics and Code Smells
SN - 978-989-758-423-7
AU - Martins A.
AU - Melo C.
AU - Monteiro J.
AU - Machado J.
PY - 2020
SP - 140
EP - 147
DO - 10.5220/0009410601400147