# US 2025/0168235 A1 · Determining processing weights of rule variables for rule processing optimization

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

- Number: US 2025/0168235 A1
- Document ID: US20250168235A1
- Status: Published application
- Kind: A1
- Application number: 18/965,656
- Filed: 2024-12-02
- Published: 2025-05-22
- Earliest claimed: 2020-09-01
- Assignees: Paypal, Inc.
- Applicants: PayPal, Inc.
- Inventors: Prabin Patodia; Shikha Gupta; Sumit Kumar
- Web page: https://patentgrep.com/patent/US20250168235A1

## CPC

- H04L 67/125: involving control of end-device applications over a network
- H04L 67/51: Discovery or management thereof, e.g. service location protocol [SLP] or web services
- G06N 20/00: Machine learning
- H04L 67/34: {involving the movement of software or configuration parameters (network booting or remote initial program loading [RIPL] G06F9/4416)}
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS

## Abstract

There are provided systems and methods for determining processing weights of rule variables for rule processing optimization. A service provider, such as an electronic transaction processor for digital transactions, may utilize different decision services that implement rules for decision-making of data including real-time data in production computing environments. Rules may correspond to coded statements that perform an automated decision-making service for the computing services and platforms of the service provider. When writing rules, different variables for data objects may be utilized, where each variable may perform a different operation and/or utilize a different operation for fetching and retrieving data used during rule processing. Each variable may therefore have a different data processing weights based on processing requirements of the data. Thus, optimization of rule authoring may be performed by mapping variables to other similar variables and showing a processing weight of each variable.

## Claims

### Claim 1

(canceled)

### Claim 2

A method comprising:
detecting a selection of a first variable for a set of variables to be used with a rule, the first variable being selected from a plurality of available variables, the set of variables being associated with loading a first data object usable by the rule when the rule is executed;
determining, based on mappings between the plurality of available variables, a second variable that is usable in place of the first variable for the rule;
identifying a first attribute for the first variable and a second attribute for the second variable based on the mappings, wherein the first attribute and the second attribute indicate one or more previous uses of one or more of the first variable and the second variable by certain rules; and
determining, based on the first and second attributes, a suggested optimization for using the second variable instead of the first variable when used in the rule.

### Claim 3 (depends on 2)

The method of claim 2, wherein the first and second attributes indicate the one or more previous uses of one or more of the first and the second variable with the first data object or an alternative data object of the first data object.

### Claim 4 (depends on 2)

The method of claim 2, further comprising:
computing, based on the first and second attributes, weights of the first and second variables to be used when the first and the second variables are used in the rule in association with the first data object, wherein the suggested optimization is determined based on the weights of the first and second variables.

### Claim 5 (depends on 2)

The method of claim 2, wherein the suggested optimization indicates a reduction in a rule processing cost by selecting the second variable in place of the first variable for the rule.

### Claim 6 (depends on 2)

The method of claim 2, wherein the suggested optimization indicates an optimization of the rule having a lowest resource usage cost for the set of variables in the rule when the rule is executed based at least on a first weight and a second weight that are computed based on the first and second attributes.

### Claim 7 (depends on 2)

The method of claim 2, further comprising:
determining a plurality of alternative variables for different variables in the set of variables based on the mappings; and
determining a plurality of alternative rule constructions of the rule based at least on the second variable and the plurality of alternative variables, wherein the plurality of alternative rule constructions of the rule each have a corresponding rule processing cost when executing the rule,
wherein the suggested optimization is further based on one or more of the plurality of alternative variables and the plurality of alternative rule constructions.

### Claim 8 (depends on 2)

The method of claim 2, further comprising:
receiving a selection of a second variable for use in the rule in place of the first variable;
loading the first data object or a second data object that is associated with the first data object using the second variable; and
outputting an associated resource usage for the rule processing cost based on the loading.

### Claim 9 (depends on 2)

The method of claim 2, further comprising:
finalizing the rule with one of the first variable or the second variable; and
deploying the rule with a decision service for an online digital platform.

### Claim 10 (depends on 2)

The method of claim 2, further comprising:
outputting the mappings between the plurality of variables, wherein the mappings include correlations between the plurality of variables based on variable definitions for the plurality of variables;
receiving a selection of the second variable for the rule or an update to at least one of the first attribute or the second attribute; and
updating the mappings for an optimized vocabulary for the rule authoring application based on the selection or the update.

### Claim 11

A computing system comprising:
a non-transitory memory storing instructions; and
one or more hardware processors coupled to the non-transitory memory and configured to execute the instructions to cause the computing system to:
detect a selection of a first variable to be used with a rule, the first variable being selected from a plurality of available variables, first variable for loading a first data object usable by the rule when the rule is executed;
determine, based on mappings between the plurality of available variables, one or more alternate variables that are usable in place of the first variable for the rule;
identify attributes for the first variable and the one or more alternate variables based on the mappings, wherein the attributes indicate one or more previous uses of one or more of the first variable and the one or more alternate variables by rules; and
determine, based on the first and second attributes, a suggestion for using the one or more alternate variables instead of the first variable when used in the rule.

### Claim 12 (depends on 11)

The computing system of claim 11, wherein executing the instructions further causes the computing system to:
receive a selection of a certain alternate variable of the one more alternative variables from the suggestion; and
substitute the certain alternative variable in the selection of variables based on the selection.

### Claim 13 (depends on 11)

The computing system of claim 11, wherein the first and second attributes indicate the one or more previous uses of one or more of the first variable and the one or more alternate variables with the first data object or an alternative data object of the first data object.

### Claim 14 (depends on 11)

The computing system of claim 11, wherein executing the instructions further causes the computing system to:
compute, based on the first and second attributes, weights of the first variable and the one or more alternate variables to be used when the first variable and the one or more alternate variables are used in the rule in association with the first data object, wherein the suggestion is determined further based on the weights of the first variable and the one or more alternate variables.

### Claim 15 (depends on 11)

The computing system of claim 11, wherein the suggestion indicates a reduction in a rule processing cost by selecting the one or more alternate variables in place of the first variable for the rule.

### Claim 16 (depends on 12)

The computing system of claim 12, wherein executing the instructions further causes the computing system to:
finalize the rule with one of the first variable or the one or more alternate variables; and
deploy the rule with a decision service for an online digital platform.

### Claim 17 (depends on 12)

The computing system of claim 12, wherein executing the instructions further causes the computing system to provide the suggestion during a rule authoring process as the first selection of variables is provided for the rule.

### Claim 18

A non-transitory machine-readable medium having stored thereon machine-readable instructions executable to cause a machine to perform operations comprising:
detecting a selection of a first variable to be used with a rule, the first variable being selected from a plurality of available variables, first variable for loading a first data object usable by the rule when the rule is executed;
determining, based on mappings between the plurality of available variables, one or more alternate variables, from the plurality of available variables, that are usable in place of the first variable for the rule;
identifying attributes for the first variable and the one or more alternate variables based on the mappings, wherein the attributes indicate one or more previous uses of one or more of the first variable and the one or more alternate variables by rules; and
determining, based on the first and second attributes, a suggestion for using the one or more of the alternate variables instead of the first variable when used in the rule.

### Claim 19 (depends on 18)

The non-transitory machine-readable medium of claim 18, wherein the determining the suggestion is based on a reduction in resource usage cost between the selected variable and the one or more of the alternative variables.

### Claim 20 (depends on 18)

The non-transitory machine-readable medium of claim 18, wherein the determining the one or more alternative variables is further based on one or more correlation identifiers for one or more functions performed by the selected variable and the one or more alternative variables.

### Claim 21 (depends on 20)

The non-transitory machine-readable medium of claim 20, wherein the operations further comprise:
parsing at least one of definitions or descriptions for the plurality of available variables for the one or more functions; and
correlating the plurality of available variables using the one or more correlation identifiers based on the parsing.
