Overcoming Challenges in Applying AI Guidance to Complex and Legacy Codebases
Keywords:
AI guidance, legacy codebases, code complexity analysis, software maintenance, code metrics, AI integrationAbstract
This paper represents an investigation into the challenges posed by applying AI guidance to complex and legacy codebases. Various AI models were assessed and tuned with a view to improving their effectiveness for the analysis and guidance of legacy code. Our approach was to deeply analyze five diverse codebases for code complexity, capturing metrics including - but not limited to - functions, classes, method calls, and much more. Python was used for simulation and fine-tuning, with model fine-tuning via TensorFlow/Keras. We fine-tuned a pre-trained AI model so that it would have closer characteristics to the nature of the legacy code. The resulting fine-tuned model was then tested, and the results had an accuracy of 84% with a performance overhead of 45%. Our results depict the effect of AI tools on performance and also contrast the scenarios with and without AI guidance. Visualizations of performance overhead and accuracy metrics showed several of these trade-offs and can help stakeholders understand the value creation and the cost incurred by AI. The study highlights several lessons that could be used for the optimization of AI tools to work with complex codebases and provides guiding principles for the effective application of AI in software maintenance and improvement.
Downloads
Downloads
Published
Issue
Section
License

This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.
License Terms
Ownership and Licensing:
Authors of this research paper submitted to the journal owned and operated by The Science Brigade Group retain the copyright of their work while granting the journal certain rights. Authors maintain ownership of the copyright and have granted the journal a right of first publication. Simultaneously, authors agreed to license their research papers under the Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International (CC BY-NC-SA 4.0) License.
License Permissions:
Under the CC BY-NC-SA 4.0 License, others are permitted to share and adapt the work, as long as proper attribution is given to the authors and acknowledgement is made of the initial publication in the Journal. This license allows for the broad dissemination and utilization of research papers.
Additional Distribution Arrangements:
Authors are free to enter into separate contractual arrangements for the non-exclusive distribution of the journal's published version of the work. This may include posting the work to institutional repositories, publishing it in journals or books, or other forms of dissemination. In such cases, authors are requested to acknowledge the initial publication of the work in this Journal.
Online Posting:
Authors are encouraged to share their work online, including in institutional repositories, disciplinary repositories, or on their personal websites. This permission applies both prior to and during the submission process to the Journal. Online sharing enhances the visibility and accessibility of the research papers.
Responsibility and Liability:
Authors are responsible for ensuring that their research papers do not infringe upon the copyright, privacy, or other rights of any third party. The Science Brigade Publishers disclaim any liability or responsibility for any copyright infringement or violation of third-party rights in the research papers.

