Abstract

SummaryRefactoring is extensively recognized for enhancing the internal structure of object‐oriented software while preserving its external behavior. However, determining refactoring opportunities is challenging for designers and researchers alike. In recent years, machine learning algorithms have shown a great possibility of resolving this issue. This study proposes a deep neural network‐based fitness function (DNNFF) to resolve the software refactoring issue. This study suggests an effective learning technique that automatically featured extracted from the trained models and predicted code clones to recommend which category to refactor. The software engineers automatically assess the recommended refactoring solutions using Genetic Algorithms (GA) for minimum iterations. A Deep Neural Networks (DNN) utilizes these training instances to assess the refactoring solutions for the residual iterations. The refactoring process primarily depends on software designers' skills and perceptions. The simulation findings demonstrate that the suggested DNNFF model enhances the code change score of 98.7%, automatic refactoring score of 97.3%, defect correlation ratio of 96.9%, refactoring precision ratio of 95.9%, flaw detection ratio of 94.4%, and reduces the execution time of 10.2% compared to other existing methods.

Full Text
Published version (Free)

Talk to us

Join us for a 30 min session where you can share your feedback and ask us any queries you have

Schedule a call