GUI Code Generation Using Asset Reuse and AST-Based Components

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Generating graphical user interfaces (GUIs) is a time-consuming process that often leads to the proliferation of redundant code, reducing efficiency and causing maintenance challenges due to inconsistent code modules and readability issues.

Innovation Solution

A computing system uses a combination of machine learning models to identify GUI components from images, determining if they can be implemented using existing assets, retrieving these components from a database, and generating new components when necessary, all encoded as abstract syntax trees (ASTs) for flexible code generation.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Productivity

If automated GUI code generation is used to reduce time consumption, then productivity is improved, but redundant code proliferation occurs reducing code quality

Engineering Contradiction:
ImproveGUI generation speedVSAvoidcode quality
Core Design Contradiction:
ProductivityVSReliability

Solution Approach 1:

The patent segments the GUI generation process into distinct phases: image input, component identification using machine learning, code generation, and post-processing optimization. This segmentation allows each phase to be optimized independently, ensuring high productivity in generation while maintaining code quality through specialized processing at each stage

Inventive Principle:
Principle #1Segmentation

Solution Approach 2:

The system implements feedback mechanisms where generated code is analyzed for redundancy and consistency, and results are fed back to refine subsequent generation processes. This closed-loop approach ensures that productivity gains from automation do not compromise code quality, as issues are detected and corrected iteratively

Inventive Principle:
Principle #23Feedback

2Loss of substance

If existing GUI components are reused from asset database, then code redundancy is reduced, but system complexity increases due to database management

Engineering Contradiction:
Improveredundant codeVSAvoidsystem complexity
Core Design Contradiction:
Loss of substanceVSDevice complexity

Solution Approach 1:

The asset database is designed as a universal repository that serves multiple functions: storing existing GUI components, managing component metadata, supporting search and retrieval operations, and enabling version control. This multi-functionality consolidates what would otherwise require separate systems, reducing overall system complexity while effectively managing code reuse

Inventive Principle:
Principle #6Universality (Multi-functionality)

Solution Approach 2:

The system uses copying mechanisms to retrieve and instantiate existing GUI components from the asset database rather than regenerating them. This approach eliminates redundant code generation while the copying process is managed through standardized interfaces that prevent system complexity from escalating

Inventive Principle:
Principle #26Copying

3Adaptability or versatility

If new GUI components are generated from images, then design flexibility is improved, but time consumption increases for component creation

Engineering Contradiction:
Improvedesign flexibilityVSAvoidcomponent creation time
Core Design Contradiction:
Adaptability or versatilityVSLoss of time

Solution Approach 1:

The system performs preliminary actions by pre-processing input images to identify GUI components and their properties before actual code generation occurs. Machine learning models pre-analyze the image structure, extract component information, and prepare generation parameters in advance, significantly reducing the time required for the actual component creation while maintaining design flexibility

Inventive Principle:
Principle #10Preliminary action

Solution Approach 2:

The patent replaces manual mechanical processes of GUI component creation with automated machine learning-based systems. Image recognition algorithms automatically identify components from visual inputs and generate corresponding code, eliminating time-consuming manual processes while preserving full design flexibility through image-based specifications

Inventive Principle:
Principle #28Mechanics substitution (Replace mechanical system)

Data Source

PatentUS20260072657A1Intelligent code generation
Publication Date: 2026.03.12 OPTUM INC
  • US20260072657A1 patent drawing
  • US20260072657A1 patent drawing
  • US20260072657A1 patent drawing

AI summary

Techniques for generating graphical user interface (GUI) code based on images of GUI components include obtaining an image depicting a GUI component and determining whether the component can be implemented by any existing GUI components stored in an asset database. When determining that the graphical user interface component can be implemented by at least one existing graphical user interface component, the techniques include retrieving from the asset database auxiliary data associated with the at least one existing graphical user interface component. When determining that the GUI component cannot be implemented by any existing GUI component, the techniques include (i) generating a new GUI component by generating an image associated with the GUI and auxiliary data, and (ii) storing the new GUI component in the asset database. The method further includes generating an abstract syntax tree on auxiliary data associated with the new graphical user interface components.