Automatic Code Generation for Android Applications Based on Improved Pix2code

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 re...

Full description

Bibliographic Details
Published in:Journal of Artificial Intelligence and Technology
Main Author: Zou D.; Wu G.
Format: Article
Language:English
Published: Intelligence Science and Technology Press Inc. 2024
Online Access:https://www.scopus.com/inward/record.uri?eid=2-s2.0-85208625816&doi=10.37965%2fjait.2024.0515&partnerID=40&md5=5683257572196ec9ba1dc4089308a32b
id 2-s2.0-85208625816
spelling 2-s2.0-85208625816
Zou D.; Wu G.
Automatic Code Generation for Android Applications Based on Improved Pix2code
2024
Journal of Artificial Intelligence and Technology
4
4
10.37965/jait.2024.0515
https://www.scopus.com/inward/record.uri?eid=2-s2.0-85208625816&doi=10.37965%2fjait.2024.0515&partnerID=40&md5=5683257572196ec9ba1dc4089308a32b
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 (BLSTM) 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 BLSTM 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 BLSTM networks might exhibit overfitting, 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 BLSTM 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 overfitting problem of BLSTM 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 BLSTM network are 0.95 and 0.82, respectively, while the code generation accuracy of the original Pix2code is only 0.77. The above data indicate that the improved Pix2code model has improved the accuracy and stability of code automatic generation. © The Author(s) 2024.
Intelligence Science and Technology Press Inc.
27668649
English
Article
All Open Access; Hybrid Gold Open Access
author Zou D.; Wu G.
spellingShingle Zou D.; Wu G.
Automatic Code Generation for Android Applications Based on Improved Pix2code
author_facet Zou D.; Wu G.
author_sort Zou D.; Wu G.
title Automatic Code Generation for Android Applications Based on Improved Pix2code
title_short Automatic Code Generation for Android Applications Based on Improved Pix2code
title_full Automatic Code Generation for Android Applications Based on Improved Pix2code
title_fullStr Automatic Code Generation for Android Applications Based on Improved Pix2code
title_full_unstemmed Automatic Code Generation for Android Applications Based on Improved Pix2code
title_sort Automatic Code Generation for Android Applications Based on Improved Pix2code
publishDate 2024
container_title Journal of Artificial Intelligence and Technology
container_volume 4
container_issue 4
doi_str_mv 10.37965/jait.2024.0515
url https://www.scopus.com/inward/record.uri?eid=2-s2.0-85208625816&doi=10.37965%2fjait.2024.0515&partnerID=40&md5=5683257572196ec9ba1dc4089308a32b
description 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 (BLSTM) 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 BLSTM 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 BLSTM networks might exhibit overfitting, 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 BLSTM 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 overfitting problem of BLSTM 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 BLSTM network are 0.95 and 0.82, respectively, while the code generation accuracy of the original Pix2code is only 0.77. The above data indicate that the improved Pix2code model has improved the accuracy and stability of code automatic generation. © The Author(s) 2024.
publisher Intelligence Science and Technology Press Inc.
issn 27668649
language English
format Article
accesstype All Open Access; Hybrid Gold Open Access
record_format scopus
collection Scopus
_version_ 1820775432306294784