AI-Driven Code Refactoring: Improving Java Backend Code Quality with Machine Learning Models

Main Article Content

Stalin Chittineni

Abstract

Code refactoring is essential for maintaining high-quality, maintainable, and scalable software systems. However, manual refactoring of large-scale Java backend codebases is a time-consuming and error-prone task. This paper introduces an AI-driven approach to automate code refactoring using machine learning models, aiming to improve the quality, readability, and performance of Java backend applications. The proposed framework utilizes supervised learning techniques to analyze code metrics, detect code smells, and recommend refactoring actions based on patterns identified from a vast dataset of well-structured code. By employing deep learning models, such as neural networks, the system can also predict the impact of proposed changes on system performance, enabling developers to make informed decisions. A case study demonstrates the effectiveness of the model in refactoring Java applications, leading to a measurable reduction in technical debt, improved code structure, and enhanced maintainability. This approach not only accelerates the refactoring process but also ensures consistent and reliable improvements in code quality, thus enabling better long-term management of backend systems.

Article Details

How to Cite
Chittineni, S. (2024). AI-Driven Code Refactoring: Improving Java Backend Code Quality with Machine Learning Models. American Journal of AI & Innovation, 6(6). Retrieved from https://journals.theusinsight.com/index.php/AJAI/article/view/146
Section
Articles

References

Cardozo, K., Nehmer, L., Esmat, Z. A. R. E., Afsari, M., Jain, J., Parpelli, V., ... & Shahid, T. (2024). U.S. Patent No. 11,893,819. Washington, DC: U.S. Patent and Trademark Office.

Gupta, M., & Jain, J. (2024). Optimizing E-commerce Dynamic Pricing Using Aggregated Market Data and Cloud-Based Analytics. International Journal of Global Innovations and Solutions (IJGIS).

Jain, J., & Gupta, M. (2024). Enhancing Software Engineering Practices for AI-Driven Fintech Applications. International Journal of Global Innovations and Solutions (IJGIS).

Jain, J. (2024). AI-Driven Optical Character Recognition for Fraud Detection in FinTech Income Verification Systems.

Cardozo, Kenneth, Landon Nehmer, Z. A. R. E. Esmat, Mani Afsari, Jitender Jain, Venkateshwar Parpelli, Bhuvaneswari Balasubramanian, Bijun

Du, Daniel Nizinski, and Tausif Shahid. "Systems and methods for extracting and processing data using optical character recognition in real-time environments." U.S. Patent Application 18/429,247, filed May 23, 2024.

Jain, J. Leveraging Advanced AI and Cloud Computing for Scalable Innovations in Fintech Systems, 2022.

Jain, J., Khunger, A., Agarwal, G., Tanikonda, A., & Modake, R. (2021). Optimizing Payment Gateways in Fintech Using AI-Augmented OCR and Intelligent Workflow. Authorea Preprints.

Jain, J., Modake, R., Khunger, A., & dnyandev Jagdale, A. CLOUD-NATIVE SECURITY FRAMEWORK: USING MACHINE LEARNING TO IMPLEMENT SELECTIVE MFA IN MODERN BANKING PLATFORMS , 2019.

Fiore, U., De Santis, A., Perla, F., Zanetti, P., & Palmieri, F. (2019). Using generative adversarial networks for improving classification effectiveness in credit card fraud detection. Information Sciences, 479, 448–455.

Jurgovsky, J., Granitzer, M., Ziegler, K., Calabretto, S., Portier, P. E., He-Guelton, L., & Caelen, O. (2018). Sequence classification for credit-card fraud detection. Expert Systems with Applications, 100, 234–245.

Chen, C., & Chen, M. (2020). A hybrid deep learning model for detecting financial fraud. In Proceedings of the IEEE Symposium on Computers and Communications (pp. 345–350).

Whitrow, C., Hand, D. J., Juszczak, P., Weston, D., & Adams, N. M. (2009). Transaction aggregation as a strategy for credit card fraud detection. Data Mining and Knowledge Discovery, 18(1), 30–55.

Van Vlasselaer, V., Eliassi-Rad, T., Akoglu, L., Snoeck, M., & Baesens, B. (2017). GOTCHA! Network-based fraud detection for social security fraud. Management Science, 63(9), 3090–3110.

Pozzolo, A. D., Boracchi, G., Caelen, O., Alippi, C., & Bontempi, G. (2018). Credit card fraud detection: A realistic modeling and a novel learning strategy. IEEE Transactions on Neural Networks and Learning Systems, 29(8), 3784–3797.

Carcillo, F., Dal Pozzolo, A., Le Borgne, Y. A., Caelen, O., Mazzer, Y., & Bontempi, G. (2019). Scarff: A scalable framework for streaming credit card fraud detection with Spark. Information Fusion, 41, 182–194.