[Paper Review] Machine Learning-Based Prototyping of Graphical User Interfaces for Mobile Apps
This paper presents ReDraw, a machine learning-based system that automates mobile GUI prototyping by detecting GUI components from mock-ups, classifying them using deep learning and software mining, and assembling them into structured, visually accurate Android apps via K-nearest neighbors. It achieves 91% component classification accuracy and generates prototypes with strong visual fidelity to target mock-ups.
It is common practice for developers of user-facing software to transform a mock-up of a graphical user interface (GUI) into code. This process takes place both at an application's inception and in an evolutionary context as GUI changes keep pace with evolving features. Unfortunately, this practice is challenging and time-consuming. In this paper, we present an approach that automates this process by enabling accurate prototyping of GUIs via three tasks: detection, classification, and assembly. First, logical components of a GUI are detected from a mock-up artifact using either computer vision techniques or mock-up metadata. Then, software repository mining, automated dynamic analysis, and deep convolutional neural networks are utilized to accurately classify GUI-components into domain-specific types (e.g., toggle-button). Finally, a data-driven, K-nearest-neighbors algorithm generates a suitable hierarchical GUI structure from which a prototype application can be automatically assembled. We implemented this approach for Android in a system called ReDraw. Our evaluation illustrates that ReDraw achieves an average GUI-component classification accuracy of 91% and assembles prototype applications that closely mirror target mock-ups in terms of visual affinity while exhibiting reasonable code structure. Interviews with industrial practitioners illustrate ReDraw's potential to improve real development workflows.
Motivation & Objective
- Address the time-consuming, error-prone manual translation of GUI mock-ups into working code in mobile app development.
- Reduce the burden on designers and developers by automating the prototyping phase using machine learning.
- Enable rapid, accurate, and visually faithful conversion of GUI mock-ups into functional Android prototype applications.
- Improve industrial workflows by integrating automated prototyping into real-world development processes.
- Provide an end-to-end solution that bridges the abstraction gap between design mock-ups and native code.
Proposed method
- Detect GUI components in mock-up artifacts using computer vision or metadata extraction from design files.
- Classify detected components into domain-specific types (e.g., toggle-button) using deep convolutional neural networks trained on mined software repositories and dynamic analysis.
- Construct a hierarchical GUI structure using a K-nearest neighbors algorithm trained on real Android app layouts.
- Assemble the final prototype application from the classified components and hierarchical structure using data-driven code generation.
- Leverage automated dynamic analysis and accessibility services to extract GUI metadata for training the CNN classifier.
- Integrate multiple data sources—software repositories, dynamic analysis, and mock-up artifacts—to train a unified, platform-specific prototyping pipeline.
Experimental results
Research questions
- RQ1Can a machine learning system accurately detect and classify GUI components from static mock-up images or design files?
- RQ2How well can a KNN-based approach reconstruct a semantically and visually accurate GUI hierarchy from component classifications?
- RQ3To what extent does the generated prototype resemble the original mock-up in visual appearance and structural layout?
- RQ4How does the proposed system compare to existing baselines like pix2code and REMAUI in terms of classification accuracy and visual fidelity?
- RQ5Can industrial practitioners integrate the system into real-world development workflows and benefit from its automation?
Key findings
- ReDraw achieves an average GUI-component classification accuracy of 91% using a deep CNN trained on mined software repositories and dynamic analysis.
- The system generates prototype applications that exhibit strong visual affinity to the original mock-ups, as validated through qualitative and quantitative evaluation.
- The hierarchical structure generated by the KNN-based assembly method closely resembles the layout structures typically created by human developers.
- Industrial practitioners reported that ReDraw has the potential to improve real development workflows by accelerating the prototyping phase.
- Compared to baseline approaches like pix2code and REMAUI, ReDraw demonstrates superior performance in component classification and visual fidelity.
- The system's architecture is generalizable to other platforms, though future work may require transfer learning or platform-specific metadata extraction.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.