$$\rightleftharpoonup{xx}$$
$$\longleftharp{xx}$$,
$$\longrightharp{xx}$$,
The proposed automated UI prototyping framework was assessed using an integrated dataset of 5,128 UI screens from three sources: 4,000 RICO images, 1,000 ENRICO screens, and 128 color-annotated UI samples from Guo’s UI Color Dataset. This blended dataset provides a well-balanced benchmark for evaluating component detection accuracy, layout structural clarity, multiscreen consistency, and perceptual color harmony.
Experimental results demonstrate that the Faster R-CNN–based detection model achieves component-detection accuracy of 92.4% and generalizes effectively across diverse mobile UI styles. Furthermore, incorporating ENRICO pattern annotations enhances layout reasoning, resulting in a 18.7% increase in layout clarity and improved preservation of reading order. In color evaluation experiments, the CAM02-UCS-driven color modeling module generates palettes that are 24.5% more harmonious, according to designer assessments, and achieves higher perceptual uniformity compared to traditional RGB- and LAB-based palette generation methods. Moreover, multiscreen consistency modeling achieves a 28% improvement in cross-screen alignment and typography consistency. User studies involving 30 participants demonstrate a 31% reduction in perceived cognitive load when interacting with prototypes produced by the proposed system. Together, these results indicate that combining component detection, perceptual color modeling, and cognitive optimization produces UI prototypes that are not only structurally accurate but also visually coherent and cognitively efficient. Table 3 highlights the simulation environment and technical settings used to assess the proposed UI prototyping framework. The computationally intensive training procedures of Faster R-CNN and layout consistency modules were supported by a high-performance NVIDIA RTX 4090 GPU. All experiments were conducted in an Ubuntu 22.04 environment using PyTorch 2.0 for deep learning implementation.
| Parameter | Configuration |
| Hardware | NVIDIA RTX 4090 GPU (24 GB), Intel i9 Processor, 64 GB RAM |
| Operating System | Ubuntu 22.04 LTS |
| Deep Learning Framework | PyTorch 2.0 |
| Faster R-CNN Backbone | ResNet-50 + FPN |
| Image Resolution | 480 × 800 (normalized across all datasets) |
| Training Batch Size | 8 |
| Optimizer | AdamW (LR = 1e−4, Weight Decay = 0.01) |
| Epochs | 40 |
| Color Modeling Space | CAM02-UCS |
| Clustering for Palette Extraction | K-means (k = 5) |
| Layout Clustering | DBSCAN (ε = 20, min_samples = 3) |
Table 3: Implementation parameters and experimental configuration of the proposed framework. The table summarizes the hardware and software setup used for model training and evaluation, including computational resources, operating system, deep learning framework, model architecture, image resolution, training parameters, optimization strategy, color modeling space, and clustering methods used for palette extraction and layout grouping.
The Faster R-CNN architecture employs a ResNet-50 backbone with an FPN to detect a wide range of fine-grained UI components. All UI images are uniformly resized to 480 × 800 pixels prior to processing. Training is performed over 60 epochs using the SGD optimizer, with a batch size of 16 to ensure stable convergence. The color palette generator uses CAM02-UCS with K-means clustering, while DBSCAN is used for structural layout clustering. These technical settings ensure that the generated UI results are reproducible, stable, and high-fidelity. To provide a comprehensive assessment of the proposed automated UI prototyping framework, four categories of evaluation metrics are employed:
i) Component detection performance, analyzed using precision, recall, F1-score, intersection-over-union (IoU), and mean average precision (mAP), which quantify the accuracy of the Faster R-CNN model in identifying UI components across the RICO and ENRICO datasets;
ii) Layout clarity and structural consistency, measured through alignment error (AE), grouping accuracy, reading-order correctness, and cross-screen consistency scores derived from design-pattern constraints;
iii) Perceptual color quality, evaluated using CAM02-UCS perceptual distance (ΔE_UCS), WCAG 2.1 contrast ratios, diversity index, and color harmony scores inspired by Guo’s UI color evaluation framework;
iv) User-centered cognitive efficiency metrics, including cognitive load measured by the NASA task load index (NASA-TLX), aesthetic coherence ratings, and task completion efficiency.
These metrics enable evaluation of the framework not only in terms of detection accuracy but also in terms of perceptual harmony, usability quality, and cognitive experience.
Component detection metrics
Precision describes the model's exactness in predicting UI components without generating false positives. High precision implies that most predicted bounding boxes correspond to valid UI elements. Recall measures the model’s ability to identify all relevant UI components on a screen. High recall indicates that the model successfully detects most ground-truth components. The F1-score, defined as the harmonic average of precision and recall, provides a balanced evaluation and is particularly useful when UI components are unevenly distributed across datasets.
The IoU metric measures how well the predicted bounding box overlaps with the ground truth bounding box. In object detection tasks, IoU thresholds of 0.5 and 0.75 are commonly used to represent moderate and strict evaluation conditions. mAP summarizes detection performance across multiple IoU thresholds. The mAP@0.5:0.95 metric provides a more robust evaluation by averaging precision across thresholds from 0.5 to 0.95 in steps of 0.05 and is therefore widely accepted as a standard benchmark for object detection.
The detection results across the three datasets indicate that the proposed component detection module performs consistently well. Quantitative results are presented in Table 4. The RICO dataset achieves the highest performance, with a precision of 0.91, a recall of 0.88, and an F1-score of 0.89, owing to its large, diverse set of UI component annotations. ENRICO shows slightly lower scores due to its more simplified structure and fewer annotated component types. The Guo dataset records the lowest F1-score (0.81), likely due to greater visual variation and fewer standardized layout patterns, which make detection more challenging. Overall, these results confirm that the model maintains robust component detection performance across different UI design styles and dataset characteristics.
| Dataset | Precision | Recall | F1-score |
| RICO | 0.91 | 0.88 | 0.89 |
| ENRICO | 0.87 | 0.84 | 0.85 |
| Guo | 0.83 | 0.8 | 0.81 |
Table 4: Component detection performance across datasets. The table presents precision, recall, and F1-score for UI component detection across the RICO, ENRICO, and Guo datasets, demonstrating the effectiveness of the detection model.
Figure 3 shows the model’s performance across the RICO, ENRICO, and Guo datasets at IoU thresholds of 0.5 and 0.75. As expected, mAP values are higher at IoU 0.5 due to the more relaxed overlap requirement. RICO consistently reports the highest mAP values (0.89 at IoU 0.5 and 0.78 at IoU 0.75), reflecting the richness and coherence of its annotations. ENRICO shows slightly lower values, while Guo reports the lowest scores due to greater variation in layout style and component density. The declining trend with stricter IoU thresholds illustrates that dataset complexity directly influences detection robustness.

Figure 3. Mean average precision (mAP) at intersection over union (IoU) thresholds of 0.5 and 0.75 across datasets. The line plot compares component detection performance across the RICO, ENRICO, and Guo datasets. The x-axis represents the datasets, and the y-axis shows mAP values. Two curves correspond to IoU thresholds of 0.5 and 0.75, illustrating performance variation under different detection stringency levels. Please click here to view a larger version of this figure.
Figure 4 presents mAP@IoU(0.5:0.95) for each dataset, providing a broader evaluation of detection performance across ten IoU thresholds. The results reveal a clear descending trend from RICO (0.61) to ENRICO (0.57) and Guo (0.52), confirming that the proposed detection model generalizes best on larger and more structured datasets. This stricter averaged metric highlights subtle performance degradations that may not be evident under single-threshold evaluation. These findings indicate that, although the model performs strongly across all datasets, increased layout diversity and component variability introduce additional challenges under rigorous COCO-style evaluation. Detection results are presented in Figures 3 and 4, which provide quantitative comparisons of mAP across different IoU levels.

Figure 4. Mean average precision (mAP) averaged over intersection over union (IoU) thresholds from 0.5 to 0.95 across datasets. The line plot shows component detection performance across the RICO, ENRICO, and Guo datasets using the mAP metric averaged over IoU thresholds ranging from 0.5 to 0.95. The x-axis represents the datasets, and the y-axis indicates the corresponding mAP values reported on 0–1 scale, reflecting model performance under varying detection thresholds. Please click here to view a larger version of this figure.
Layout quality metrics
Layout quality is evaluated using AE, grouping accuracy (GA), and reading-order accuracy (ROA), which collectively assess structural correctness, perceptual organization, and cognitive readability of the generated UI layouts.
Alignment error.
AE (pixel-based deviation) indicates how well UI elements are aligned with ideal alignment lines, such as left, right, top, or baseline guides. A lower AE indicates that elements are consistently arranged with minimal visual distortion, improving readability and overall design clarity. This metric is particularly important for evaluating cognitive layout refinement, as misalignment disrupts visual flow and increases perceived complexity. Figure 5 illustrates AE across the RICO, ENRICO, and Guo datasets, measured as the average pixel deviation from ideal alignment lines. The results show that RICO achieves the lowest AE (4.2 px), indicating that the UI components in this dataset exhibit more consistent structural patterns, which makes alignment easier for the model. ENRICO follows with a moderate alignment deviation of 6.1 px, reflecting a combination of well-structured and varied screen layouts. The Guo dataset records the highest AE (7.4 px), due to its higher diversity in component placement and non-standard layout structures, which challenge alignment-based refinement. Overall, these results demonstrate that the model maintains strong alignment accuracy across datasets, despite increasing layout complexity.

Figure 5. Alignment error across datasets. The figure shows alignment error across datasets; lower values indicate better alignment. Please click here to view a larger version of this figure.
Grouping accuracy (GA).
GA quantifies how effectively the model groups related UI components, for example, based on Gestalt principles such as proximity, similarity, and continuity. Higher grouping accuracy indicates that the model preserves the intended structure of UI elements, enabling users to interpret the interface more naturally. This metric is particularly useful for evaluating whether the layout refinement module successfully organizes content into meaningful visual groups. Figure 6 presents the distribution of GA achieved by the proposed framework across the three datasets. The ENRICO dataset exhibits the highest median GA and the smallest interquartile range, indicating stable and consistent grouping performance due to its well-defined, pattern-labelled layouts. The RICO dataset shows moderate grouping accuracy with higher variability, likely due to its greater diversity and layout complexity. The Guo UI Color dataset records lower grouping accuracy, as its samples are visually heterogeneous and less focused on structural layout. Overall, the results indicate that the cognitive layout refinement module performs reliably across datasets, achieving the best grouping performance on structurally consistent data.

Figure 6. Distribution of grouping accuracy across datasets. The box plot shows grouping accuracy based on Gestalt principles across the RICO, ENRICO, and Guo’s UI Color Datasets. The boxes represent the interquartile range, the central line indicates the median, and the whiskers denote the range of values. The x-axis represents the datasets, and the y-axis shows grouping accuracy scores. The sample size n=5128 user interface screens (RICO: 4000, ENRICO: 1000, and Guo: 128). Please click here to view a larger version of this figure.
Reading order accuracy (ROA).
Reading order accuracy (ROA) measures how accurately the model predicts the natural reading flow of a UI screen, typically following a top-to-bottom and left-to-right pattern. Maintaining correct reading order is essential for usability, navigation clarity, and consistency with established design conventions. Higher ROA indicates that the system preserves expected cognitive scanning patterns. Figure 7 shows ROA across different evaluation stages for the RICO, ENRICO, and Guo datasets. ENRICO consistently achieves the highest ROA due to its regular and pattern-oriented layout structure, which enables more accurate prediction of human-like reading sequences. RICO demonstrates moderate performance with slight variability, reflecting its greater diversity and real-world complexity. The Guo dataset exhibits the lowest ROA, as many of its screens are visually rich but lack clearly defined reading hierarchies. Overall, these results indicate that the proposed cognitive layout refinement module performs most reliably on structured datasets while maintaining stable reading-order predictions across diverse UI designs.

Figure 7. Reading order accuracy across evaluation stages for multiple datasets. The line plot shows reading order accuracy across evaluation steps for the RICO, ENRICO, and Guo’s UI Color Datasets. The x-axis represents evaluation stage, and the y-axis indicates reading order accuracy. Each curve corresponds to a dataset, illustrating changes in the preservation of visual flow across successive evaluation stages. The evaluation stage is a representation of the suggested framework’s progressive refining stages. Please click here to view a larger version of this figure.
Layout consistency score (LCS)
The layout consistency score (LCS) measures how consistently the generated UI layouts are maintained across multiple screens within the same application. This includes consistency in spacing, alignment rules, typography regions, and grouping patterns. A higher score indicates improved cross-screen coherence, resulting in a more unified and intuitive UX. Figure 8 presents the LCS measured across multiple evaluation stages for the RICO, ENRICO, and Guo’s UI Color Datasets. The ENRICO dataset consistently achieves the highest LCS values due to its pattern-labeled and structurally uniform UI screens, which facilitate more stable learning of cross-screen consistency. In contrast, the RICO dataset demonstrates moderate but steadily improving consistency, attributable to the model’s ability to generalize across highly diverse UI layouts. As expected, the Guo dataset records the lowest LCS values, since it is primarily focused on color characteristics rather than structural layout, making multiscreen consistency more challenging. Overall, these results indicate that the proposed cross-screen consistency module performs most effectively on pattern-oriented datasets while still providing measurable improvements across all datasets.

Figure 8. Layout consistency score across evaluation stages for multiple datasets. The line plot shows layout consistency scores across evaluation stage for the RICO, ENRICO, and Guo’s UI Color Datasets. The x-axis represents evaluation stage and the y-axis indicates layout consistency scores. Each curve corresponds to a dataset, illustrating the improvement in structural coherence of generated interfaces over successive evaluation stages. Please click here to view a larger version of this figure.
Color quality metrics
The generated UI color themes are evaluated using five perceptually grounded metrics derived from CAM02-UCS: ΔE (perceptual color difference), which quantifies perceptual uniformity between palette colors; contrast ratio (based on WCAG 2.1), which assesses readability between foreground and background elements; color harmony index (CHI), which measures aesthetic compatibility between hues; color diversity score (CDS), which reflects variation within the perceptual color space; and color prominence score (CPS), which evaluates the balance and dominance of colors within the palette. Together, these metrics provide a comprehensive assessment of both aesthetic quality and usability-oriented color performance. The results demonstrate that the proposed method achieves a lower ΔE value of 4.12, indicating improved perceptual uniformity across colors. A contrast ratio of 6.21 confirms compliance with accessibility standards, ensuring enhanced readability. Table 5 presents a quantitative comparison between the proposed color modeling module and baseline methods. The CHI increases from 0.61 to 0.83, indicating improved aesthetic cohesion in color transitions. Additionally, the CDS increases by over 50%, demonstrating that the generated palettes maintain richer variation without introducing visual clutter. Higher CPS values indicate a balanced distribution of dominant colors, preventing oversaturation by any single hue. Overall, these results establish the effectiveness of the CAM02-UCS-based color modeling module in generating harmonious, readable, and perceptually optimized UI color schemes.
| Metric | Definition | Proposed Method | Baseline1 | Improvement (%) |
| ΔE (CAM02-UCS) | Perceptual color difference | 4.12 | 7.85 | 47.5% lower |
| Contrast Ratio (WCAG) | Readability of FG–BG pairs | 6.21 | 4.38 | 41.80% |
| CHI (Color Harmony Index) | Hue & chroma harmony | 0.83 | 0.61 | 36.10% |
| CDS (Color Diversity Score) | Variance in J′a′b′ space | 18.70 | 12.40 | 50.80% |
| CPS (Color Prominence Score) | Stability of dominant colors | 0.72 | 0.55 | 30.90% |
Table 5: Quantitative comparison of color quality metrics between the proposed and baseline methods. The table presents evaluation metrics for color quality, including perceptual color difference (ΔE in CAM02-UCS), contrast ratio (WCAG), color harmony index (CHI), color diversity score (CDS), and color prominence score (CPS). Results of the proposed method are compared with baseline values, along with percentage improvements.
Participant demographics and study design
A total of 30 participants were involved in the evaluation process. The participants were aged between 20 and 35 years (mean age: 26.4 ± 3.2 years). The cohort included individuals from diverse backgrounds, including software engineers, students, and UI/UX designers. Based on self-reported computer proficiency, 40% of participants were classified as intermediate users, 35% as advanced users, and 25% as beginners. Approximately half of the participants had prior experience in UI/UX design or related fields, while the remaining participants did not. This diversity ensured a balanced evaluation across different levels of technical expertise and design familiarity.
User study metrics
User-centered evaluation was conducted using multiple metrics, including NASA-TLX, system usability scale (SUS), aesthetic harmony score (AHS), search efficiency time (SET), and cross-screen consistency rating (CSCR), to assess cognitive load, usability, visual appeal, efficiency, and consistency.
The NASA-TLX metric quantifies mental workload by measuring factors such as mental demand, effort, and frustration. Lower scores indicate reduced cognitive load and improved ease of interaction. The proposed framework consistently resulted in lower NASA-TLX scores across all datasets, indicating reduced mental effort. This improvement can be attributed to the integration of cognitive design principles, including Gestalt grouping, optimized spacing, and enhanced visual hierarchy, which collectively facilitate more intuitive navigation. The SUS metric provides a standardized usability score ranging from 0 to 100, where higher values indicate improved usability and clarity. The proposed framework achieved higher SUS scores compared to baseline methods, reflecting improvements in both structural layout and color clarity. Enhanced alignment, spacing, and navigation flow contributed to interfaces that users perceived as more intuitive and functionally coherent. AHS, measured on a 7-point Likert scale, evaluates perceived visual appeal and color harmony. Interfaces generated using the CAM02-UCS-based color modeling module achieved higher AHS values, indicating smoother color transitions and more visually balanced palettes. Participants consistently preferred these interfaces due to improved contrast, hue coherence, and reduced visual clutter, highlighting the importance of perceptual color modeling in UI design. SET measures the time required for users to locate target UI elements during visual search tasks. Lower SET values indicate improved visual organization and hierarchy. The proposed framework significantly reduced SET across all datasets, demonstrating that integrating Gestalt grouping, attention-guided spacing, and refined layout structures enables faster, more efficient interaction. The CSCR metric evaluates the consistency of UI design across multiple screens. Higher scores indicate better continuity in layout, color, and structural organization. The proposed framework achieved higher CSCR values, reflecting the effectiveness of the multiscreen consistency module in maintaining stable color schemes, spacing, and hierarchical structures across interfaces.
Figure 9 presents the comparative user study results for all metrics (NASA-TLX, SUS, AHS, SET, and CSCR) across the RICO, ENRICO, and Guo datasets. Overall, consistent improvements are observed across all evaluation metrics. Notably, the Guo dataset demonstrates superior performance across user-centered metrics, including lower cognitive load (NASA-TLX), higher usability (SUS), improved aesthetic harmony (AHS), reduced search efficiency time (SET), and improved cross-screen consistency (CSCR). However, these results require careful interpretation. The improved UX metrics observed for the Guo dataset are primarily attributed to its strong color consistency and relatively simpler visual composition, rather than superior structural layout quality. While users perceive these interfaces as more visually harmonious and less cognitively demanding, earlier results demonstrate that the Guo dataset performs poorly in terms of alignment, grouping, and reading order. This highlights an important distinction between perceptual and structural factors in UI design. While perceptual attributes, such as color harmony, significantly enhance the UX, structural accuracy and layout consistency remain critical for functional usability. Therefore, optimal UI design requires a balance between perceptual harmony and structural correctness.

Figure 9. Comparison of user study metrics across datasets. The grouped bar chart compares user study metrics across the RICO, ENRICO, and Guo’s UI Color Datasets. The x-axis represents evaluation metrics, including NASA Task Load Index (NASA-TLX), system usability scale (SUS), aesthetic harmony score (AHS), structural efficiency time (SET), and cross-screen consistency rate (CSCR), while the y-axis indicates the corresponding scores. Bars represent performance for each dataset, illustrating differences in usability, cognitive load, aesthetic quality, and interface consistency. NASA-TLX (0–100, lower is better), SUS (0–100, higher is better), AHS (1–7 Likert), SET (s, lower is better), and CSCR (0–1, higher is better). Please click here to view a larger version of this figure.
Statistical validation of hypotheses
To further validate the proposed hypotheses (H1–H4), statistical significance testing was performed on key evaluation metrics, including layout quality, cognitive load, color harmony, and usability measures (Table 6). Results are reported as mean ± standard deviation, and statistical significance was evaluated using paired t-tests with a 95% confidence interval (p < 0.05). The results indicate that the proposed framework achieves statistically significant improvements over baseline approaches across multiple metrics, including alignment accuracy, grouping accuracy, reading order, cognitive load (NASA-TLX), and color harmony measures. Notably, reductions in cognitive load and improvements in usability metrics demonstrate highly significant differences (p < 0.01). These findings confirm that integrating cognitive design principles and perceptual color modeling leads to measurable, statistically significant improvements in UI quality, thereby supporting hypotheses H1–H4.
| Metric | Baseline (Mean ± SD) | Proposed (Mean ± SD) | Improvement (%) | p-value | Significance |
| Alignment Error (↓) | 7.8 ± 1.2 | 4.2 ± 0.9 | 46.10% | 0.003 | Significant |
| Grouping Accuracy (↑) | 0.68 ± 0.05 | 0.82 ± 0.04 | 20.50% | 0.001 | Significant |
| Reading Order Accuracy (↑) | 0.72 ± 0.06 | 0.87 ± 0.03 | 20.80% | 0.002 | Significant |
| NASA-TLX (↓) | 68.5 ± 5.4 | 47.2 ± 4.8 | 31.10% | 0.0005 | Highly Significant |
| SUS Score (↑) | 71.3 ± 6.2 | 88.9 ± 4.5 | 24.70% | 0.0008 | Highly Significant |
| Color Harmony Index (↑) | 0.61 ± 0.07 | 0.83 ± 0.05 | 36.00% | 0.001 | Significant |
| Contrast Ratio (↑) | 4.1 ± 0.6 | 6.2 ± 0.5 | 51.20% | 0.002 | Significant |
Table 6: Statistical comparison of performance metrics between baseline and proposed methods. The table presents mean and standard deviation (mean ± SD) for key performance metrics, including alignment error, grouping accuracy, reading order accuracy, NASA Task Load Index (NASA-TLX), system usability scale (SUS), color harmony index, and contrast ratio. Percentage improvements, p-values, and statistical significance levels are reported. (↑) indicates higher values are better, and (↓) indicates lower values are better. Statistical significance was evaluated at p < 0.05.
Dataset-specific observations
The relatively lower performance observed in structural metrics on the Guo dataset can be attributed to its inherent characteristics. The Guo dataset is smaller than RICO and ENRICO and primarily focuses on perceptual color features rather than structured layout annotations. As a result, it exhibits higher variability in component placement, weaker hierarchical organization, and less consistent layout structures across screens. These properties make structural learning and layout optimization more challenging, explaining the lower performance in alignment, grouping, and reading-order metrics, despite strong performance in perceptual and user-centered evaluations.
Ablation study
The ablation study evaluates the contribution of each module within the proposed framework by systematically removing individual components and analyzing their impact on layout quality, color modeling, and detection performance. Layout quality is assessed using AE, GA, ROA, and LCS. AE reflects the positional deviation of UI elements, where higher values indicate weaker spatial structure. GA evaluates how effectively components are organized according to Gestalt principles. ROA measures the preservation of logical visual flow, while LCS quantifies cross-screen structural consistency in terms of alignment, spacing, and layout organization. Color quality degradation is evaluated using ΔE (perceptual color difference), CHI, and CDS, which collectively assess perceptual uniformity, aesthetic coherence, and palette richness. Detection performance is evaluated using mAP, precision, and recall, which quantify the impact of replacing the Faster R-CNN module with a simpler detection model. Together, these metrics provide a comprehensive evaluation of how each module contributes to overall system performance.
Table 7 summarizes the contribution of each module and compares the proposed framework with existing UI generation approaches. The full model achieves the best performance across all layout quality, color modeling, and detection metrics, demonstrating that cognitive design, perceptual color modeling, and deep visual understanding have a synergistic effect. When the color modeling module is removed, ΔE increases significantly, while CHI and CDS decrease substantially, indicating a loss of perceptual uniformity and color harmony. This confirms the importance of CAM02-UCS-based modeling in maintaining aesthetic and perceptual quality. Removing the cognitive layout module results in a significant increase in AE and notable decreases in GA and ROA, demonstrating that cognitive design principles are essential for producing structurally coherent and readable layouts. The removal of the multiscreen consistency module leads to a reduction in LCS, confirming its role in maintaining consistent layout patterns across multiple screens. Replacing the Faster R-CNN detector with a simpler CNN results in a sharp decline in mAP, precision, and recall, highlighting the critical importance of robust component detection in the overall pipeline. In comparison with baseline methods, including pix2code, REDRAW, and LDGM, the proposed framework consistently outperforms all approaches across layout accuracy, visual coherence, and perceptual color quality.
| Method / Module | AE ↓ | GA ↑ | ROA ↑ | LCS ↑ | ΔE ↓ | CHI ↑ | CDS ↑ | mAP ↑ |
| Color Module Removed | 0.14 | 0.86 | 0.92 | 0.84 | 7.85 | 0.61 | 12.4 | 0.9 |
| Cognitive Layout Module Removed | 0.18 | 0.72 | 0.73 | 0.69 | 4.21 | 0.79 | 17.9 | 0.89 |
| Multi-Screen Consistency Removed | 0.17 | 0.81 | 0.88 | 0.62 | 4.18 | 0.81 | 17.3 | 0.9 |
| Faster R-CNN Replaced with Simple CNN | 0.16 | 0.85 | 0.91 | 0.85 | 4.15 | 0.82 | 18.1 | 0.74 |
| Pix2Code | 0.25 | 0.61 | 0.65 | 0.51 | 10.2 | 0.48 | 9.6 | 0.65 |
| REDRAW | 0.21 | 0.66 | 0.72 | 0.56 | 8.7 | 0.52 | 11.4 | 0.72 |
| LDGM (Layout Diffusion) | 0.19 | 0.74 | 0.79 | 0.63 | 6.9 | 0.59 | 13.8 | 0.8 |
| Proposed Full Model | 0.12 | 0.89 | 0.94 | 0.87 | 4.12 | 0.83 | 18.7 | 0.91 |
Table 7: Ablation study and comparative performance analysis of the proposed framework and baseline methods. The table evaluates the impact of individual components by comparing the full proposed model with variants in which specific modules are removed (color module, cognitive layout module, multiscreen consistency, and Faster R-CNN replaced with a simple CNN), as well as baseline methods (pix2code, REDRAW, and LDGM). Performance is assessed using alignment error (AE), grouping accuracy (GA), reading order accuracy (ROA), layout consistency score (LCS), perceptual color difference (ΔE), color harmony index (CHI), color diversity score (CDS), and mean average precision (mAP). (↑) indicates higher values are better, and (↓) indicates lower values are better.
DATA AVAILABILITY:
The datasets used in this study are available at the following links: RICO dataset: https://interactionmining.org/rico; ENRICO dataset: https://github.com/luileito/enrico; Guo’s UI Color Dataset: https://github.com/guozhongke/UI-Color-Dataset.
Supplementary File 1. Mathematical formulations and extended implementation details. This file provides the detailed mathematical formulations and algorithmic workflows supporting the proposed automated UI prototyping framework. It includes component detection training, layout pattern extraction, color harmony modeling, the unified UI prototyping objective, Faster R-CNN detection details, spatial distance and alignment similarity calculations, logical UI tree construction, CAM02-UCS-based perceptual color modeling, cognitive design optimization, multiscreen consistency modeling, and Algorithms S1–S3.Please click here to download this file.