Automatic Code Generation for Android Applications Based on Improved Pix2code

Donglan Zou, Guangsheng Wu
{"title":"Automatic Code Generation for Android Applications Based on Improved Pix2code","authors":"Donglan Zou, Guangsheng Wu","doi":"10.37965/jait.2024.0515","DOIUrl":null,"url":null,"abstract":"With the expansion of the Internet market, the traditional software development method has been difficult to meet the market demand due to the problems of long development cycle, tedious work and difficult system maintenance. Therefore, to improve software development efficiency, this study uses residual networks and bidirectional long short-term memory networks to improve the Pix2code model. The experiment results show that after improving the visual module of the Pix2code model using residual networks, the accuracy of the training set improves from 0.92 to 0.96, and the convergence time is shortened from 3 hours to 2 hours. After using a bidirectional long short-term memory network to improve the language module and decoding layer, the accuracy and convergence speed of the model have also been improved. The accuracy of the training set grew from 0.88 to 0.92, and the convergence time was shortened by 0.5 hours. However, models improved by bidirectional long short-term memory networks might exhibit over-fitting, and thus this study uses Dropout and Xavier normal distribution to improve the memory network. The results validate that the training set accuracy of the optimized bidirectional long short-term memory network remains around 0.92, but the accuracy of the test set has improved to a maximum of 85%. Dropout and Xavier normal distributions can effectively improve the over-fitting problem of bidirectional long short-term memory networks. Although they can also decrease the model’s stability, their gain is higher. The training and testing accuracy of the Pix2code improved by residual network and bidirectional long short-term memory network are 0.95 and 0.82, respectively, while the code generation accuracy of the original Pix2code is only 0.77. The above data indicates that the improved Pix2code model has improved the accuracy and stability of code automatic generation.","PeriodicalId":135863,"journal":{"name":"Journal of Artificial Intelligence and Technology","volume":"19 6","pages":""},"PeriodicalIF":0.0000,"publicationDate":"2024-07-15","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"Journal of Artificial Intelligence and Technology","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.37965/jait.2024.0515","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 0

Abstract

With the expansion of the Internet market, the traditional software development method has been difficult to meet the market demand due to the problems of long development cycle, tedious work and difficult system maintenance. Therefore, to improve software development efficiency, this study uses residual networks and bidirectional long short-term memory networks to improve the Pix2code model. The experiment results show that after improving the visual module of the Pix2code model using residual networks, the accuracy of the training set improves from 0.92 to 0.96, and the convergence time is shortened from 3 hours to 2 hours. After using a bidirectional long short-term memory network to improve the language module and decoding layer, the accuracy and convergence speed of the model have also been improved. The accuracy of the training set grew from 0.88 to 0.92, and the convergence time was shortened by 0.5 hours. However, models improved by bidirectional long short-term memory networks might exhibit over-fitting, and thus this study uses Dropout and Xavier normal distribution to improve the memory network. The results validate that the training set accuracy of the optimized bidirectional long short-term memory network remains around 0.92, but the accuracy of the test set has improved to a maximum of 85%. Dropout and Xavier normal distributions can effectively improve the over-fitting problem of bidirectional long short-term memory networks. Although they can also decrease the model’s stability, their gain is higher. The training and testing accuracy of the Pix2code improved by residual network and bidirectional long short-term memory network are 0.95 and 0.82, respectively, while the code generation accuracy of the original Pix2code is only 0.77. The above data indicates that the improved Pix2code model has improved the accuracy and stability of code automatic generation.
基于改进的 Pix2code 自动生成 Android 应用程序代码
随着互联网市场的扩大,传统的软件开发方法由于存在开发周期长、工作繁琐、系统维护困难等问题,已经难以满足市场需求。因此,为了提高软件开发效率,本研究采用残差网络和双向长短期记忆网络来改进 Pix2code 模型。实验结果表明,使用残差网络改进 Pix2code 模型的视觉模块后,训练集的准确率从 0.92 提高到 0.96,收敛时间从 3 小时缩短到 2 小时。使用双向长短期记忆网络改进语言模块和解码层后,模型的准确率和收敛速度也得到了提高。训练集的准确率从 0.88 提高到 0.92,收敛时间缩短了 0.5 小时。不过,由双向长短期记忆网络改进的模型可能会出现过度拟合的情况,因此本研究使用了 Dropout 和 Xavier 正态分布来改进记忆网络。结果验证了优化后的双向长短期记忆网络的训练集准确率仍保持在 0.92 左右,但测试集的准确率已提高到最高 85%。Dropout和Xavier正态分布能有效改善双向长短期记忆网络的过拟合问题。虽然它们也会降低模型的稳定性,但它们的收益更高。经残差网络和双向长短期记忆网络改进的 Pix2code 的训练和测试精度分别为 0.95 和 0.82,而原始 Pix2code 的代码生成精度仅为 0.77。以上数据表明,改进后的 Pix2code 模型提高了代码自动生成的准确性和稳定性。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约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学术文献互助群
群 号:481959085
Book学术官方微信