Skip to main content

Prediction of Refactoring-Prone Classes Using Ensemble Learning

  • Conference paper
  • First Online:

Part of the book series: Communications in Computer and Information Science ((CCIS,volume 1143))

Abstract

A considerable amount of software engineers’ efforts go into maintaining code repositories, which involves identifying code whose structure can be improved. This often involves the identification of classes whose code requires refactoring. The early detection of refactoring-prone classes has the potential to reduce the costs and efforts that go into maintaining source code repositories. The purpose of this research is to develop prediction models using source code metrics for detecting patterns in object oriented source code, which are indicators of classes that are likely to be refactored in future iterations. In this study, four different sets of source code metrics have been considered as an input for refactoring prediction to evaluate the impact of these source code metrics on model performance. The impact of these source code metrics are evaluated using eleven different classification technique, and two different ensemble classes on seven different open source projects. Ensemble learning techniques have been shown to incorporate the diversity of patterns learnt by different classifiers, resulting in an augmented classifier that is more robust than any individual classifier. Our work also creates distinction between various sets of features for the task of predicting refactoring-prone classes.

This is a preview of subscription content, log in via an institution.

Buying options

Chapter
USD   29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD   84.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD   109.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Learn about institutional subscriptions

References

  1. Kádár, I., Hegedűs, P., Ferenc, R., Gyimóthy, T.: A manually validated code refactoring dataset and its assessment regarding software maintainability. In: Proceedings of the The 12th International Conference on Predictive Models and Data Analytics in Software Engineering, p. 10. ACM (2016)

    Google Scholar 

  2. Kádár, I., Hegedus, P., Ferenc, R., Gyimóthy, T.: A code refactoring dataset and its assessment regarding software maintainability. In: 2016 IEEE 23rd International Conference on Software Analysis, Evolution, and Reengineering (SANER), vol. 1, pp. 599–603. IEEE (2016)

    Google Scholar 

  3. Kumar, L., Sureka, A.: Application of LSSVM and SMOTE on seven open source projects for predicting refactoring at class level. In: 2017 24th Asia-Pacific Software Engineering Conference (APSEC), pp. 90–99. IEEE (2017)

    Google Scholar 

  4. Li, W., Henry, S.: Maintenance metrics for the Object-Oriented paradigm. In: Proceedings of First International Software Metrics Symposium, pp. 52–60 (1993)

    Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Corresponding authors

Correspondence to Vamsi Krishna Aribandi or Lov Kumar .

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2019 Springer Nature Switzerland AG

About this paper

Check for updates. Verify currency and authenticity via CrossMark

Cite this paper

Aribandi, V.K., Kumar, L., Bhanu Murthy Neti, L., Krishna, A. (2019). Prediction of Refactoring-Prone Classes Using Ensemble Learning. In: Gedeon, T., Wong, K., Lee, M. (eds) Neural Information Processing. ICONIP 2019. Communications in Computer and Information Science, vol 1143. Springer, Cham. https://doi.org/10.1007/978-3-030-36802-9_27

Download citation

  • DOI: https://doi.org/10.1007/978-3-030-36802-9_27

  • Published:

  • Publisher Name: Springer, Cham

  • Print ISBN: 978-3-030-36801-2

  • Online ISBN: 978-3-030-36802-9

  • eBook Packages: Computer ScienceComputer Science (R0)

Publish with us

Policies and ethics