IP Library Granted Patent US 12689678
Granted Patent B2
US 12689678 · App. 18/965,656 · Granted Jul 21, 2026

Determining processing weights of rule variables for rule processing optimization

Inventors: Prabin Patodia (Bangalore, IN); Shikha Gupta (Bangalore, IN); Sumit Kumar (Bangalore, IN)
Assignee: PAYPAL, INC.
H04L67/125G06N20/00H04L67/34
View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 12689678
App. No.
18/965,656
Granted
Jul 21, 2026
Kind
B2
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 (53)

1 . A method performed by a computing system 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.

2 . The method of claim 1 , 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.

3 . The method of claim 1 , 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.

4 . The method of claim 1 , 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.

5 . The method of claim 1 , 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.

6 . The method of claim 1 , 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.

7 . The method of claim 1 , 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.

8 . The method of claim 1 , 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.

9 . The method of claim 1 , 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.

10 . 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.

11 . The computing system of claim 10 , 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.

12 . The computing system of claim 10 , 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.

13 . The computing system of claim 10 , 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.

14 . The computing system of claim 10 , 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.

15 . The computing system of claim 11 , 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.

16 . The computing system of claim 11 , 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.

17 . 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.

18 . The non-transitory machine-readable medium of claim 17 , 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.

19 . The non-transitory machine-readable medium of claim 17 , 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.

20 . The non-transitory machine-readable medium of claim 19 , 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.