Ensemble Deep Network for Secured Refactoring Framework by Predicting Code-Bad Smells in Software Projects

IF 1.7 4区 计算机科学 Q3 COMPUTER SCIENCE, SOFTWARE ENGINEERING
T. Pandiyavathi, B. Sivakumar
{"title":"Ensemble Deep Network for Secured Refactoring Framework by Predicting Code-Bad Smells in Software Projects","authors":"T. Pandiyavathi,&nbsp;B. Sivakumar","doi":"10.1002/smr.2749","DOIUrl":null,"url":null,"abstract":"<div>\n \n <p>In modern times, refactoring is one of the significantly utilized approaches for enhancing the software's quality like understandability, testability, and maintainability. Moreover, the refactoring effect on its security has been underrated. In addition to that, there are only a few studies that offer the classification over refactoring approaches depending on the effect over the quality attributes that help the designer to attain certain objectives by choosing the most significant approach and it is applied in the right places based on the specified software quality attributes. The contradictory outcomes are attained by considering the quality of the software creates limitations for the developers while performing the software refactoring process. In this paper, a secured deep learning-based software refactoring approach is designed. At first, software projects collected from online sources are offered as input for this software refactoring process to detect the security metrics in the projects. After detecting the security metrics, refactoring is applied in the software projects to change the internal design. Then, the security metrics of the refactored projects are detected again. Further, the security metrics computed before and after refactoring are compared with the software projects. The projects are labeled based on security, needs, and refactoring level. Then, the Ensemble Attention-based Deep Network (EA-DNet) is developed, which is designed with the Recurrent Neural Network (RNN), Deep Temporal Convolution Network (DTCN), and Bi-directional Long Short Term Memory (Bi-LSTM). This network is trained to get better results in the prediction of code-bad smells in software projects. The prior software refactoring approaches are compared with the proposed code-bad smells-based software refactoring process.</p>\n </div>","PeriodicalId":48898,"journal":{"name":"Journal of Software-Evolution and Process","volume":"37 2","pages":""},"PeriodicalIF":1.7000,"publicationDate":"2024-12-15","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"Journal of Software-Evolution and Process","FirstCategoryId":"94","ListUrlMain":"https://onlinelibrary.wiley.com/doi/10.1002/smr.2749","RegionNum":4,"RegionCategory":"计算机科学","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"Q3","JCRName":"COMPUTER SCIENCE, SOFTWARE ENGINEERING","Score":null,"Total":0}
引用次数: 0

Abstract

In modern times, refactoring is one of the significantly utilized approaches for enhancing the software's quality like understandability, testability, and maintainability. Moreover, the refactoring effect on its security has been underrated. In addition to that, there are only a few studies that offer the classification over refactoring approaches depending on the effect over the quality attributes that help the designer to attain certain objectives by choosing the most significant approach and it is applied in the right places based on the specified software quality attributes. The contradictory outcomes are attained by considering the quality of the software creates limitations for the developers while performing the software refactoring process. In this paper, a secured deep learning-based software refactoring approach is designed. At first, software projects collected from online sources are offered as input for this software refactoring process to detect the security metrics in the projects. After detecting the security metrics, refactoring is applied in the software projects to change the internal design. Then, the security metrics of the refactored projects are detected again. Further, the security metrics computed before and after refactoring are compared with the software projects. The projects are labeled based on security, needs, and refactoring level. Then, the Ensemble Attention-based Deep Network (EA-DNet) is developed, which is designed with the Recurrent Neural Network (RNN), Deep Temporal Convolution Network (DTCN), and Bi-directional Long Short Term Memory (Bi-LSTM). This network is trained to get better results in the prediction of code-bad smells in software projects. The prior software refactoring approaches are compared with the proposed code-bad smells-based software refactoring process.

基于集成深度网络的安全重构框架——预测软件项目中代码不良气味
在现代,重构是提高软件质量(如可理解性、可测试性和可维护性)的重要方法之一。此外,重构对其安全性的影响被低估了。除此之外,只有少数研究根据对质量属性的影响对重构方法进行分类,这些方法可以帮助设计师通过选择最重要的方法来达到某些目标,并根据指定的软件质量属性将其应用于正确的位置。在执行软件重构过程时,考虑到软件质量会给开发人员带来限制,从而得出了矛盾的结果。本文设计了一种基于深度学习的安全软件重构方法。首先,从在线资源中收集的软件项目作为输入提供给这个软件重构过程,以检测项目中的安全度量。在检测到安全度量之后,在软件项目中应用重构来更改内部设计。然后,再次检测重构项目的安全度量。此外,将重构前后计算的安全性度量与软件项目进行比较。这些项目是基于安全性、需求和重构级别进行标记的。然后,利用循环神经网络(RNN)、深度时间卷积网络(DTCN)和双向长短期记忆(Bi-LSTM)设计了基于集成注意的深度网络(EA-DNet)。该网络经过训练,可以在软件项目中预测代码异味方面获得更好的结果。将现有的软件重构方法与本文提出的基于代码异味的软件重构过程进行了比较。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约1分钟内获得全文 求助全文
来源期刊
Journal of Software-Evolution and Process
Journal of Software-Evolution and Process COMPUTER SCIENCE, SOFTWARE ENGINEERING-
自引率
10.00%
发文量
109
×
引用
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学术文献互助群
群 号:481959085
Book学术官方微信