# US 2026/0086828 A1 · Identifcation of user interface elements in a page of an application using heuristic rules and a large language model

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2026/0086828 A1
- Document ID: US20260086828A1
- Status: Published application
- Kind: A1
- Application number: 18/898,580
- Filed: 2024-09-26
- Published: 2026-03-26
- Earliest claimed: 2024-09-26
- Assignees: International Business Machines Corporation
- Applicants: International Business Machines Corporation
- Inventors: Sami Marreed; AVI YAELI; Offer Akrabi; Segev Shlomov; Nir Mashkif
- Web page: https://patentgrep.com/patent/US20260086828A1

## CPC

- G06F 9/451: Execution arrangements for user interfaces
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A computer-implemented method includes applying a set of heuristic rules to a page of an application to identify a plurality of user interface (UI) elements in the page; displaying the page, including visually highlighting each UI element of the plurality that is identified by the set of rules; receiving user feedback that identifies each UI element of the plurality that is not visually highlighted; and using a first pipeline of a Large Language Model to create a new rule identifying each UI element that is not visually highlighted

## Claims

### Claim 1

A computer-implemented method comprising:
applying a set of heuristic rules to a page of an application to identify a plurality of (UI) elements in the page;
displaying the page, including visually highlighting each UI element of the plurality that is identified by the set of rules;
receiving user feedback that identifies each UI element of the plurality that is not visually highlighted; and
using a first pipeline of a Large Language Learning model (LLM) to create a new rule identifying each UI element that is not visually highlighted.

### Claim 2 (depends on 1)

The method of claim 1, wherein the set of heuristic rules comprises:
a first subset for identifying individual UI elements;
a second subset for detecting UI element groups; and
a third subset for detecting UI element context.

### Claim 3 (depends on 1)

The method of claim 1, wherein the highlighting comprises:
creating a bounding box around each UI element that is identified by the set of rules; and
displaying text describing each UI element within a bounding box.

### Claim 4 (depends on 1)

The method of claim 1, further comprising iteratively testing and adjusting each new rule until its corresponding UI element is accurately identified.

### Claim 5 (depends on 4)

The method of claim 4, wherein for a given new rule:
using the first pipeline comprises creating a prompt for the given new rule, and sending the prompt to the LLM; and
the iteratively testing and adjusting includes adjusting the prompt with the user feedback until the given new rule accurately identifies its corresponding UI element.

### Claim 6 (depends on 5)

The method of claim 5, wherein the prompt for the given new rule includes instructions for creating a selector, and attributes of the corresponding UI element.

### Claim 7 (depends on 1)

The method of claim 1, further comprising:
using a second pipeline of the LLM to suggest names for a given UI element that is not visually highlighted; and
obtaining further user feedback to make a selection among the names.

### Claim 8 (depends on 7)

The method of claim 7, wherein:
using the second pipeline comprises creating a prompt for the given UI element, and sending the prompt to the LLM;
the prompt comprises instructions for selecting a plurality of names, and a one-shot input; and
the one-shot input has a form
[style/state modifier] [name] [type] [anchoring reference]
where the style, state, name and type are attributes of the given UI element, and the anchoring reference describes context of the given UI element.

### Claim 9 (depends on 1)

The method of claim 1, further comprising:
identifying states of stateful UI elements;
displaying the identified states; and
obtaining additional user feedback to update any displayed states.

### Claim 10 (depends on 1)

The method of claim 1, further comprising updating the set with a new rule created by the LLM.

### Claim 11

A computer system comprising a memory having computer readable instructions; and one or more processors for executing the computer readable instructions to configure the computer system to:
run an application to display a page including a user interface (UI);
apply a set of heuristic rules to the page to identify a plurality of UI elements;
display the page including the plurality of UI elements;
visually highlight each UI element of the plurality that is identified by the set of rules;
receive user feedback that identifies each UI element of the plurality that is not visually highlighted; and
use a first pipeline of a Large Language Learning model (LLM) to create a new rule identifying each UI element that is not visually highlighted.

### Claim 12 (depends on 11)

The computer system of claim 11, wherein the computer readable instructions, when executed, further configure the one or more processors to iteratively test and adjust each new rule until its corresponding UI element is accurately identified.

### Claim 13 (depends on 12)

The computer system of claim 12, wherein for a given new rule:
a prompt for the given new rule is created and sent to the LLM; and
the prompt is iteratively adjusted with the user feedback until the given new rule accurately identifies its corresponding UI element.

### Claim 14 (depends on 13)

The computer system of claim 13, wherein the prompt for the given new rule includes instructions for creating a selector, and attributes of the corresponding UI element.

### Claim 15 (depends on 11)

The computer system of claim 11, wherein the computer readable instructions, when executed, further configure the one or more processors to use a second pipeline of the LLM to suggest names for a given UI element that is not visually highlighted.

### Claim 16

A computer program product comprising one or more computer-readable memory devices encoded with data including computer-readable instructions that, when executed, causes a processor set to carry out a method of identifying user interface (UI) elements in a page of an application, the method comprising:
applying a set of heuristic rules to the page to identify the UI elements;
displaying the page;
visually highlighting each of the UI elements that is identified by the set of rules;
receiving user feedback that identifies each of the UI elements that is not visually highlighted; and
using a first pipeline of a Large Language Learning model (LLM) to create a new rule identifying each UI element that is not visually highlighted.

### Claim 17 (depends on 16)

The computer program product of claim 16, wherein the computer readable instructions, when executed, further configure the processor set to iteratively test and adjust each new rule until its corresponding UI element is accurately identified.

### Claim 18 (depends on 17)

The computer program product of claim 17, wherein:
a prompt for a given new rule is created and sent to the LLM; and
the prompt is iteratively adjusted with the user feedback until the given new rule accurately identifies its corresponding UI element.

### Claim 19 (depends on 18)

The computer program product of claim 18, wherein the prompt for the given new rule includes instructions for creating a selector, and attributes of the corresponding UI element.

### Claim 20 (depends on 16)

The computer program product of claim 16, wherein the computer readable instructions, when executed, further configure the processor set to use a second pipeline of the LLM to suggest names for each UI element that is not visually highlighted.
