# US 2021/0279081 A1 · Real-time interface classification in an application

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

- Number: US 2021/0279081 A1
- Document ID: US20210279081A1
- Status: Published application
- Kind: A1
- Application number: 17/101,744
- Filed: 2020-11-23
- Published: 2021-09-09
- Earliest claimed: 2020-03-09
- Assignees: Klarna Bank AB
- Applicants: Klarna Bank AB
- Inventors: Vladimir Curic; James W. Barrett; Andrey Melentyev; Melody Ju
- Web page: https://patentgrep.com/patent/US20210279081A1

## CPC

- G06F 8/38: for implementing user interfaces
- G06F 9/451: Execution arrangements for user interfaces
- G06F 16/35: Clustering; Classification
- G06F 16/957: Browsing optimisation, e.g. caching or content distillation
- G06F 18/23213: with fixed number of clusters, e.g. K-means clustering
- G06N 20/00: Machine learning
- G06V 10/763: {Non-hierarchical techniques, e.g. based on statistics of modelling distributions}
- G06V 10/764: using classification, e.g. of video objects
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- G06V: IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING

## Abstract

Integration code usable to cause a computing device to determine which category from a plurality of categories corresponds to an interface of an interface provider is generated based at least in part on output from a machine learning algorithm trained to categorize interfaces. The computing device is caused, by providing the integration code to the computing device, to execute the integration code to cause the computing device to evaluate characteristics of an interface of an interface provider, determine a category of an interface of the interface provider, and interact with the interface in a manner that accords with the category.

## Claims

### Claim at position 1

1-20. (canceled)

### Claim 21

A computer-implemented method, comprising:
generating, based at least in part on output from a machine learning algorithm trained to categorize interfaces, integration code usable to cause a computing device to determine which category from a plurality of categories corresponds to an interface of an interface provider; and
causing, by providing the integration code to the computing device, the computing device to execute the integration code to cause the computing device to:
evaluate characteristics of an interface of an interface provider;
determine a category of an interface of the interface provider; and
interact with the interface in a manner that accords with the category.

### Claim 22 (depends on 21)

The computer-implemented method of claim 21, further comprising retraining the machine learning algorithm in response to an indication from the computing device that the category determined is incorrect.

### Claim 23 (depends on 21)

The computer-implemented method of claim 21, further comprising:
receiving, from the computing device, a request for additional integration code corresponding to an additional interface provider;
generating, based on an additional machine learning algorithm trained to categorize interfaces of the additional interface provider, the additional integration code; and
causing, by providing the additional integration code to the computing device, the computing device to execute the additional integration code.

### Claim 24 (depends on 21)

The computer-implemented method of claim 21, further comprising training the machine learning algorithm by at least:
obtaining a plurality of interfaces of an interface provider, each of the plurality of interfaces associated with one of a plurality of interface categories; and
for an individual interface of the plurality of interfaces:
extracting a set of characteristic values from an object model of the individual interface; and
training the machine learning algorithm to categorize interfaces using:
the set of characteristic values; and
an interface category of the individual interface as a ground truth value.

### Claim 25 (depends on 24)

The computer-implemented method of claim 24, wherein a member of the set of characteristic values is a depth of a document object model tree of the individual interface.

### Claim 26 (depends on 24)

The computer-implemented method of claim 24, wherein a member of the set of characteristic values is a size of an image in the individual interface.

### Claim 27 (depends on 26)

The computer-implemented method of claim 26, wherein the size is based on dimensions of a largest image by area in the individual interface.

### Claim 28

A system, comprising:
one or more processors; and
memory that stores computer-executable instructions that, if executed, cause the one or more processors to:
generate, based at least in part on output from a machine learning algorithm trained to categorize interfaces, integration code usable to cause a client device to determine which category from a plurality of categories corresponds to an interface of an interface provider; and
cause, by providing the integration code to the client device, the client device to execute the integration code to cause the client device to:
evaluate characteristics of an interface of an interface provider;
determine a category of an interface of the interface provider; and
interact with the interface in a manner that accords with the category.

### Claim 29 (depends on 28)

The system of claim 28, wherein the computer-executable instructions further include instructions that further cause the system to train the machine learning algorithm to categorize interfaces by causing the system to:
generate a set of vectors based on a set of characteristic values of a plurality of interfaces; and
determine, based at least in part on the set of vectors, a centroid vector usable by the machine learning algorithm to determine the category of the interface.

### Claim 30 (depends on 28)

The system of claim 28, wherein the integration code that causes the client device to interact with the interface further includes code that further causes the client device to store a Uniform Resource Identifier of the interface in persistent storage.

### Claim 31 (depends on 28)

The system of claim 28, wherein the characteristics include a position of an image in the interface.

### Claim 32 (depends on 28)

The system of claim 28, wherein the machine learning algorithm utilizes k-means clustering of a set of characteristic vectors derived from a plurality of interfaces to categorize the interfaces.

### Claim 33 (depends on 28)

The system of claim 28, wherein the integration code that causes the client device to interact with the interface further includes code that further causes the client device to indicate on a screen of the client device that operations associated with the category of the interface are available to a user of the client device.

### Claim 34 (depends on 28)

The system of claim 28, wherein the computer-executable instructions that cause the system to generate the integration code to the client device further include instructions that further cause the system to insert a set of parameters corresponding to the interface provider into portions of a template script to generate the integration code.

### Claim 35 (depends on 28)

The system of claim 28, wherein the computer-executable instructions that cause the system to train the machine learning algorithm further include instructions that further cause the system to:
transform sets of characteristics of a plurality of interfaces into sets of vectors clustered according to their respective interface types; and
determine, based on the sets of vectors, centroids usable to categorize the interfaces, the centroids respectively corresponding to categories of the plurality of interfaces.

### Claim 36

A non-transitory computer-readable storage medium storing thereon executable instructions that, as a result of being executed by one or more processors of a computer system, cause the computer system to at least:
generate, based at least in part on output from a machine learning algorithm trained to categorize interfaces, integration code usable to cause a computing device to determine which category from a plurality of categories corresponds to an interface of an interface provider; and
cause, by providing the integration code to the computing device, the computing device to execute the integration code to cause the computing device to:
evaluate characteristics of an interface of an interface provider;
determine a category of an interface of the interface provider; and
interact with the interface in a manner that accords with the category.

### Claim 37 (depends on 36)

The non-transitory computer-readable storage medium of claim 36, wherein the integration code is scripted in JavaScript.

### Claim 38 (depends on 36)

The non-transitory computer-readable storage medium of claim 36, wherein the integration code that causes the computing device to interact with the interface further includes code that further causes the computing device to prompt a user for confirmation to perform an action associated with the category.

### Claim 39 (depends on 36)

The non-transitory computer-readable storage medium of claim 36, wherein the executable instructions that cause the computer system to generate the integration code further include instructions that further cause the computer system to generate the integration code to cause, upon execution of the integration code by the computing device, the computing device to:
transform the characteristics of the interface into a vector; and
identify that the vector is proximate to a centroid vector associated with the category.

### Claim 40 (depends on 39)

The non-transitory computer-readable storage medium of claim 39, wherein:
the integration code includes a first centroid vector and a second centroid vector, the first centroid vector being associated with the category; and
the integration code that causes the computing device to identify that the vector is proximate to the centroid vector further causes the computing device to determine that the vector is closer in distance to the first centroid vector than to the second centroid vector.
