arrow
Return

Detecting refactoring type of software commit messages based on ensemble machine learning algorithms

delete2024-09-12
delete1
delete
OA
AI
D
Dimah Al-Fraihat *
Y
Yousef Sharrab
A
Abdel-Rahman Al-Ghuwairi
N
Nour Sbaih
A
Ayman Qahmash
DOI:10.1038/s41598-024-72307-0delete
deleteOriginal
deleteShare
deleteSave
View PDF
Abstract

Abstract

En 中文
Refactoring is a well-established topic in contemporary software engineering, focusing on enhancing software's structural design without altering its external behavior. Commit messages play a vital role in tracking changes to the codebase. However, determining the exact refactoring required in the code can be challenging due to various refactoring types. Prior studies have attempted to classify refactoring documentation by type, achieving acceptable results in accuracy, precision, recall, F1-Score, and other performance metrics. Nevertheless, there is room for improvement. To address this, we propose a novel approach using four ensemble Machine Learning algorithms to detect refactoring types. Our experimentation utilized a dataset containing 573 commits, with text cleaning and preprocessing applied to address data imbalances. Various techniques, including hyperparameter optimization, feature engineering with TF-IDF and bag-of-words, and binary transformation using one-vs-one and one-vs-rest classifiers, were employed to enhance accuracy. Results indicate that the experiment involving feature engineering using the TF-IDF technique outperformed other methods. Notably, the XGBoost algorithm with the same technique achieved superior performance across all metrics, attaining 100% accuracy. Moreover, our results surpass the current state-of-the-art performance using the same dataset. Our proposed approach bears significant implications for software engineering, particularly in enhancing the internal quality of software.
Keywords:
Refactoring
Ensemble boosting machine learning
Documentation
Commits classification
AI Summary

AI Summary

Key information extracted from the uploaded paper, including a brief overview, abstract, background, key highlights, visual analysis, and future outlook.

Journal

Scientific Reports cover
Scientific Reports
IF:
3.9
Papers:
27.9W
Citations:
83.5W

Organization

Hashemite University cover
Hashemite University
Scholars:
2.0K
Papers: 1.9K
Citations: 1.5K
I
Isra University
Scholars:
366
Papers: 544
Citations: 702
K
King Khalid University
Scholars:
1.1W
Papers: 1.3W
Citations: 1.5W
researcher View more organizations
Cited Papers

Cited Papers

The Effectiveness of Supervised Machine Learning Algorithms in Predicting Software Refactoring
err2022-04-01
err40
errOAAI
errAniche, Mauricio; Maziero, Erick; Durelli, Rafael; Durelli, Vinicius H. S.
errShare
errSave
errShare
errSave
An ensemble learning framework for convolutional neural network based on multiple classifiers
err2019-06-20
err37
PREAI
errGuo, Yanyan; Wang, Xin; Xiao, Pengcheng; Xu, Xinzheng
errShare
errSave
err
IF0
err
err0
PREAI
err
errShare
errSave
Revisiting the refactoring mechanics
err2019-06-01
err20
PREAI
errOliveira, Jonhnanthan; Gheyi, Rohit; Mongiovi, Melina; Soares, Gustavo; Ribeiro, Marcio; Garcia, Alessandro
errShare
errSave
Comparing and experimenting machine learning techniques for code smell detection
err2015-06-06
err277
PREAI
errFontana, Francesca Arcelli; Mantyla, Mika V.; Zanoni, Marco; Marino, Alessandro
errShare
errSave
Recombination between an expressed immunoglobulin heavy-chain gene and a germline variable gene segment in a Ly 1+ B-cell lymphoma
err1986-08-01
err0
PREAI
errRobert Kleinfield; Richard R. Hardy; David Tarlinton; Jeffery Dangl; Leonard A. Herzenberg; Martin Weigert
errShare
errSave
Hyperparameter Optimization for Software Bug Prediction Using Ensemble Learning
err2024-01-01
err1
errOAAI
errAl-Fraihat, Dimah; Sharrab, Yousef; Al-Ghuwairi, Abdel-Rahman; Alshishani, Hamzeh; Algarni, Abdulmohsen
errShare
errSave
Remarkable strain-induced magnetic anisotropy in epitaxial Co2MnGa (001) films
err2005-02-01
err0
PREAI
errMichael J. Pechan; Chengtao Yu; David Carr; Chris J. Palmstrøm
errShare
errSave
researcher View more