Determination of optimum refactoring sequence for maximizing the maintainability of object-oriented systems using machine learning algorithms
Sandhya Tarwani () and
Anuradha Chug ()
Additional contact information
Sandhya Tarwani: Vivekananda Institute of Professional Studies - Technical Campus
Anuradha Chug: Guru Gobind Singh Indraprastha University
International Journal of System Assurance Engineering and Management, 2025, vol. 16, issue 2, No 13, 666 pages
Abstract:
Abstract Refactoring is a technique for changing internal attributes without affecting external ones in an optimized manner. Bad smells in the source code can cause various issues, increasing the need for refactoring. In this study, prioritization of classes is initially performed using a newly proposed metric called the Quality Decline Factor (QDF), which considers an appropriate ratio of software metrics along with eleven detected types of bad smells. Next, these bad smells are addressed by applying refactoring techniques, and changes in the metrics are observed. Subsequently, machine learning algorithms are used to assign weights to each metric, leading to the proposal of another new metric, the Total Refactoring Index (TRI). TRI combines the assigned weights and the effects of metric changes to determine the optimal refactoring sequence. The results indicate that the Decision Tree Forest algorithm is the most suitable for determining the refactoring sequence. After applying this technique, a 94.9% reduction in effort was observed. This study would benefit software maintainers by providing predefined sequences, allowing them to focus only on the code sections with the highest concentration of bad smells, thus completing projects within real-time constraints.
Keywords: Refactoring; Bad smells; Optimum sequence; Maintainability; Decision tree forest; Linear regression (search for similar items in EconPapers)
Date: 2025
References: View complete reference list from CitEc
Citations:
Downloads: (external link)
http://link.springer.com/10.1007/s13198-024-02639-7 Abstract (text/html)
Access to the full text of the articles in this series is restricted.
Related works:
This item may be available elsewhere in EconPapers: Search for items with the same title.
Export reference: BibTeX
RIS (EndNote, ProCite, RefMan)
HTML/Text
Persistent link: https://EconPapers.repec.org/RePEc:spr:ijsaem:v:16:y:2025:i:2:d:10.1007_s13198-024-02639-7
Ordering information: This journal article can be ordered from
http://www.springer.com/engineering/journal/13198
DOI: 10.1007/s13198-024-02639-7
Access Statistics for this article
International Journal of System Assurance Engineering and Management is currently edited by P.K. Kapur, A.K. Verma and U. Kumar
More articles in International Journal of System Assurance Engineering and Management from Springer, The Society for Reliability, Engineering Quality and Operations Management (SREQOM),India, and Division of Operation and Maintenance, Lulea University of Technology, Sweden
Bibliographic data for series maintained by Sonal Shukla () and Springer Nature Abstracting and Indexing ().