Neural Network-based Approach for Source Code Classification to Enhance Software Maintainability and Reusability

Mohamed Ifham, B. Kumara, E. Ekanayaka
{"title":"Neural Network-based Approach for Source Code Classification to Enhance Software Maintainability and Reusability","authors":"Mohamed Ifham, B. Kumara, E. Ekanayaka","doi":"10.1109/fiti54902.2021.9833070","DOIUrl":null,"url":null,"abstract":"One of the most essential resources in software development is a program's source code. When a developer starts coding from scratch for each project, it takes more time and money to develop. When it comes to software reuse and maintainability, topic modelling is critical since it may be difficult for developers to remove outdated source code from huge systems with a lot of code. In a variety of ways, topic modelling approaches have been used to analyze and model source codes. Using various statistical techniques and methodologies, several pieces of research have been done to extract topics from source codes. Attempts to extract topics from method names, identifiers, and comments are the most common. These topic extraction approaches are interdependent, and if software best practices aren't followed in older systems, it might cause chaos. Motivated by these observations, in this paper, the authors have conducted a study on extracting source code using a JavaParser and predicting the source code functionality name through the artificial neural network model. It shows an average accuracy of 88 percent semantic function prediction rate. This is a new approach for topic modelling and the first attempt in building an artificially intelligent model to predict the semantic function name of the source code.","PeriodicalId":201458,"journal":{"name":"2021 From Innovation To Impact (FITI)","volume":"44 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"2021-12-08","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"2021 From Innovation To Impact (FITI)","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1109/fiti54902.2021.9833070","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 0

Abstract

One of the most essential resources in software development is a program's source code. When a developer starts coding from scratch for each project, it takes more time and money to develop. When it comes to software reuse and maintainability, topic modelling is critical since it may be difficult for developers to remove outdated source code from huge systems with a lot of code. In a variety of ways, topic modelling approaches have been used to analyze and model source codes. Using various statistical techniques and methodologies, several pieces of research have been done to extract topics from source codes. Attempts to extract topics from method names, identifiers, and comments are the most common. These topic extraction approaches are interdependent, and if software best practices aren't followed in older systems, it might cause chaos. Motivated by these observations, in this paper, the authors have conducted a study on extracting source code using a JavaParser and predicting the source code functionality name through the artificial neural network model. It shows an average accuracy of 88 percent semantic function prediction rate. This is a new approach for topic modelling and the first attempt in building an artificially intelligent model to predict the semantic function name of the source code.
基于神经网络的源代码分类方法提高软件可维护性和可重用性
软件开发中最重要的资源之一是程序的源代码。当开发人员为每个项目从零开始编写代码时,需要花费更多的时间和金钱来开发。当涉及到软件重用和可维护性时,主题建模是至关重要的,因为开发人员可能很难从包含大量代码的大型系统中删除过时的源代码。以各种方式,主题建模方法已被用于分析和建模源代码。使用各种统计技术和方法,已经完成了从源代码中提取主题的几项研究。尝试从方法名、标识符和注释中提取主题是最常见的。这些主题提取方法是相互依赖的,如果在旧系统中没有遵循软件最佳实践,可能会导致混乱。在这些观察的推动下,在本文中,作者进行了使用JavaParser提取源代码并通过人工神经网络模型预测源代码功能名称的研究。平均准确率达到88%的语义功能预测率。这是一种新的主题建模方法,也是构建人工智能模型预测源代码语义函数名的首次尝试。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约1分钟内获得全文 求助全文
来源期刊
自引率
0.00%
发文量
0
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
确定
请完成安全验证×
copy
已复制链接
快去分享给好友吧!
我知道了
右上角分享
点击右上角分享
0
联系我们:info@booksci.cn Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。 Copyright © 2023 布克学术 All rights reserved.
京ICP备2023020795号-1
ghs 京公网安备 11010802042870号
Book学术文献互助
Book学术文献互助群
群 号:604180095
Book学术官方微信