Facebook pixel tracking

The Science and Information (SAI) Organization publishes open-access peer-reviewed journals in computer science and artificial intelligence.

Contact Info
Website thesai.org
Follow Us
Contact Info
Follow Us
Research Article | Open Access |

A Model for Automatic Code Generation from High Fidelity Graphical User Interface Mockups using Deep Learning Techniques

Author 1: Michel Samir Author 2: Ahmed Elsayed Author 3: Mohamed I. Marie
International Journal of Advanced Computer Science and Applications (IJACSA) · Vol. 15, No. 3 · Published 2024

DOI: https://doi.org/10.14569/IJACSA.2024.0150369

Abstract

Graphical user interface (GUI) is the most prevalent type of user interfaces (UI) due to its visual nature, which allows direct manipulation and interaction with the software. Mockup-based design is a frequently used workflow for constructing GUI. In this workflow, the anticipated UI design process typically progresses through multiple steps, culminating in the creation of a higher fidelity mockup and subsequent implementation of that mockup into code. The design process involves repeating those multiple steps because of the ongoing changes in requirements, which can make the process tedious and necessitate modifications to the GUI code. Additionally, the process of implementing and converting a design into GUI code itself is laborious and time-consuming task that can prevent developers from dedicating the bulk of their time implementing the software's functionality and logic, making it a costly endeavor. Automating the code generation process using GUI design images can be a solution to mitigate these issues and allow more time to be allocated towards building the application's functionality. In this research paper, deep learning object detectors are employed to detect the predominant UI elements and their spatial arrangement in a high-fidelity UI mockup image. This approach generates an intermediate representation, including the layout hierarchy of the user interface leading to the automation of the front-end code generation process for the mockup. The proposed approach demonstrates its effectiveness through experimental results, achieving a recognition mean average precision (mAP) of 91.37% for atomic elements and 87.40% for container elements in the mockup image. Additionally, similarity metrics are employed to assess the visual resemblance between the generated mockups and the original ones.

Keywords

How to Cite this Article

Samir, M., Elsayed, A., & Marie, M. I. (2024). A Model for Automatic Code Generation from High Fidelity Graphical User Interface Mockups using Deep Learning Techniques. International Journal of Advanced Computer Science and Applications, 15(3). https://doi.org/10.14569/IJACSA.2024.0150369

Samir, Michel, et al.. "A Model for Automatic Code Generation from High Fidelity Graphical User Interface Mockups using Deep Learning Techniques." International Journal of Advanced Computer Science and Applications, vol. 15, no. 3, 2024, https://doi.org/10.14569/IJACSA.2024.0150369.

@article{Samir2024,
  title     = {A Model for Automatic Code Generation from High Fidelity Graphical User Interface Mockups using Deep Learning Techniques},
  journal   = {International Journal of Advanced Computer Science and Applications},
  volume    = {15},
  number    = {3},
  year      = {2024},
  publisher = {The Science and Information Organization},
  author    = {Michel Samir and Ahmed Elsayed and Mohamed I. Marie},
  doi       = {10.14569/IJACSA.2024.0150369},
  url       = {https://doi.org/10.14569/IJACSA.2024.0150369}
}

Open Access — licensed under a Creative Commons Attribution 4.0 International License. Unrestricted use, distribution, and reproduction in any medium, even commercially, as long as the original work is properly cited.