WebDraw: A machine learning-driven tool for automatic website prototyping

被引:0
作者
Kaluarachchi, Thisaranie [1 ]
Wickramasinghe, Manjusri [1 ]
机构
[1] Univ Colombo, Sch Comp, Colombo 0700, Sri Lanka
关键词
Automatic website generation; Mock-up driven website generation; Website prototyping; Machine learning; DOM hierarchy construction; ALGORITHM;
D O I
10.1016/j.scico.2023.103056
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
To overcome the time-consuming nature and improve the cost-effectiveness of classical web development, being automatic is the most convenient alternative recent researchers suggest. Over the years, researchers have been working on inventing new approaches to generating websites automatically. In this paper, a novel approach is presented that automates the website generation process by incorporating web designer best practices and driving new prototype websites without the significant effort of redesigning websites. It takes high-fidelity mock-up design artifacts such as screen captures of real-world websites, and generates functional websites similar to the input websites, which involves three steps: GUI element detection, classification, and code generation. First, image processing techniques are applied to detect atomic web GUI elements from a mock-up design artifact of a real-world website. Second, a Convolutional Neural Network (CNN) is trained to classify the extracted web GUI elements into their domain-specific types such as headings, paragraphs, images, etc. A Graphical User Interface (GUI) is typically represented in code as a hierarchical tree, with nested GUI elements bundled together within one another to construct a tree. A recursive algorithm is proposed that constructs the appropriate Document Object Model (DOM) hierarchy for a website by recursively grouping classified web GUI elements within each other. Finally, the constructed DOM is converted to the accurate native code. The approach was implemented as a tool called WebDraw. Design science research evaluation shows that WebDraw achieves an average of 90% web GUI element classification and generates website prototypes that are visually similar to the target website design mock-up artifact while producing functional GUI code. Furthermore, interviews with industry professionals illustrate WebDraw's industry relevance for improving their industrial web design and development workflows.
引用
收藏
页数:31
相关论文
共 51 条
[1]  
[Anonymous], 2005, Effect sizes for research: A broad practical approach
[2]  
[Anonymous], 2004, ECCV WORKSH
[3]   Automatic HTML']HTML Code Generation from Mock-up Images Using Machine Learning Techniques [J].
Asiroglu, Batuhan ;
Mate, Busra Rumeysa ;
Yildiz, Eyyup ;
Nalcakan, Yagiz ;
Sezen, Alper ;
Dagtekin, Mustafa ;
Ensari, Tolga .
2019 SCIENTIFIC MEETING ON ELECTRICAL-ELECTRONICS & BIOMEDICAL ENGINEERING AND COMPUTER SCIENCE (EBBT), 2019,
[4]   Generating Reusable Web Components from Mockups [J].
Bajammal, Mohammad ;
Mazinanian, Davood ;
Mesbah, Ali .
PROCEEDINGS OF THE 2018 33RD IEEE/ACM INTERNATIONAL CONFERENCE ON AUTOMTED SOFTWARE ENGINEERING (ASE' 18), 2018, :601-611
[5]   Speeded-Up Robust Features (SURF) [J].
Bay, Herbert ;
Ess, Andreas ;
Tuytelaars, Tinne ;
Van Gool, Luc .
COMPUTER VISION AND IMAGE UNDERSTANDING, 2008, 110 (03) :346-359
[6]  
Beltramelli T, 2019, Hack your design sprint: wireframes to prototype in under 5 min
[7]   pix2code: Generating Code from a Graphical User Interface Screenshot [J].
Beltramelli, Tony .
PROCEEDINGS OF THE ACM SIGCHI SYMPOSIUM ON ENGINEERING INTERACTIVE COMPUTING SYSTEMS (EICS'18), 2018,
[8]   Large-Scale Analysis of Framework-Specific Exceptions in Android Apps [J].
Fan, Lingling ;
Su, Ting ;
Chen, Sen ;
Meng, Guozhu ;
Liu, Yang ;
Xu, Lihua ;
Pu, Geguang ;
Su, Zhendong .
PROCEEDINGS 2018 IEEE/ACM 40TH INTERNATIONAL CONFERENCE ON SOFTWARE ENGINEERING (ICSE), 2018, :408-419
[9]  
Chen S, 2019, 2019 IEEE 1ST INTERNATIONAL WORKSHOP ON ARTIFICIAL INTELLIGENCE FOR MOBILE (AI4MOBILE '19), P13, DOI [10.1109/AI4Mobile.2019.8672718, 10.1109/ai4mobile.2019.8672718]
[10]  
Choudhary S. R., 2012, 2012 IEEE Fifth International Conference on Software Testing, Verification and Validation (ICST 2012), P171, DOI 10.1109/ICST.2012.97