US20220044261A1 - Technique to aggregate merchant level information for use in a supervised learning model to detect recurring trends in consumer transactions - Google Patents

Technique to aggregate merchant level information for use in a supervised learning model to detect recurring trends in consumer transactions Download PDF

Info

Publication number
US20220044261A1
US20220044261A1 US17/498,906 US202117498906A US2022044261A1 US 20220044261 A1 US20220044261 A1 US 20220044261A1 US 202117498906 A US202117498906 A US 202117498906A US 2022044261 A1 US2022044261 A1 US 2022044261A1
Authority
US
United States
Prior art keywords
transactions
transaction
merchant
date
dates
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
US17/498,906
Inventor
Daniel Jumper
Jeremy GERSTLE
Olufemi ANTHONY
Jonathan BOROUMAND
Erik VIRBITSKY
Michael Walters
Aniver BOSEDE
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Capital One Services LLC
Original Assignee
Capital One Services LLC
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Capital One Services LLC filed Critical Capital One Services LLC
Priority to US17/498,906 priority Critical patent/US20220044261A1/en
Assigned to CAPITAL ONE SERVICES, LLC reassignment CAPITAL ONE SERVICES, LLC ASSIGNMENT OF ASSIGNORS INTEREST (SEE DOCUMENT FOR DETAILS). Assignors: BOROUMAND, JONATHAN, ANTHONY, OLUFEMI, VIRBITSKY, ERIK, BOSEDE, ANIVER, GERSTLE, JEREMY, JUMPER, DANIEL, WALTERS, MICHAEL
Publication of US20220044261A1 publication Critical patent/US20220044261A1/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q30/00Commerce
    • G06Q30/02Marketing; Price estimation or determination; Fundraising
    • G06Q30/0201Market modelling; Market analysis; Collecting market data
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • G06F16/248Presentation of query results
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N20/00Machine learning
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q40/00Finance; Insurance; Tax strategies; Processing of corporate or income taxes
    • G06Q40/12Accounting
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/28Databases characterised by their database models, e.g. relational or object models
    • G06F16/284Relational databases
    • G06F16/285Clustering or classification
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/06Resources, workflows, human or project management; Enterprise or organisation planning; Enterprise or organisation modelling
    • G06Q10/063Operations research, analysis or management
    • G06Q10/0631Resource planning, allocation, distributing or scheduling for enterprises or organisations
    • G06Q10/06315Needs-based resource requirements planning or analysis

Definitions

  • a merchant's recurring relationship with its customers is identified based on analysis of the large volume of transactional data using a conventional mechanism that uses a simple and manually created rule set(s). This affects the accuracy of identification of the merchant's relationship.
  • the simple rule set(s) involves manually defined boundaries on the mean and standard deviation of the set of time differences between consecutive transaction dates.
  • identification of a merchant's recurring relationship with its customers is based on the feedback or input of the customers. The customer is shown a list of their known recurring merchants with an open-ended “Provide Feedback” prompt to solicit feedback/inputs from the customer. Accordingly, a final determination of the merchant's recurring relationship is subject to each customer's interpretation of the question or solicited feedback. Many customers skip any questionnaire that solicits their feedback. As a result, determination of the merchant's recurring relationship may not be as accurate as expected.
  • Disclosed herein are system, apparatus, device, method and/or computer program product embodiments, and/or combinations and sub-combinations thereof, for aggregating merchant level information for use in a supervised learning model to detect recurring trends.
  • a method may include steps such as aggregating a plurality of sets of transactions, where each set of transactions may include transactions related to an account-merchant pairing. Based on transaction dates of the transactions in the each set, variables characterizing a recurrence period may be determined. The recurrence period for a transaction related to the account-merchant pairing for each customer of the plurality of customers may also be predicted. Thereafter, another set of transactions between the plurality of customers and the merchant may be aggregated and a distribution of the recurrence period for each customer from a distant point may be evaluated. Based on the evaluation of the distribution of the recurrence period for each customer, a probability of the merchant having a recurrent transaction with the customer may be generated or determined.
  • the account-merchant pairing may include an account of a customer of one or more customers, and a merchant of one or more merchants. Another set of transactions may include transactions in one or more sets of transactions.
  • the method may further include, for example, splitting each set of the transactions into a first subset of transactions that may be used to determine input features, and a second subset of transactions that may be used to build target label variables.
  • the transactions may be split based on a split date.
  • the first subset of transactions may be used as a training subset.
  • the second subset of transactions may be used as a testing subset.
  • the first subset of transactions may include transactions occurring prior to the split date.
  • the second subset of transactions may include transactions occurring after the split date.
  • a standard deviation of the transaction dates of the transactions in each set, and an average difference between the transaction dates of the transactions in each set may be determined.
  • a ratio between the standard deviation of the transaction dates and the average difference between the transaction dates may be determined.
  • the standard deviation of the transaction dates, the average difference between the transaction dates, and the ratio of the standard deviation of the transaction dates to the average difference between the transaction dates may be delta variables characterizing the recurrence period.
  • the transaction dates of the transactions in each set of transactions may be converted into ordinal dates.
  • the ordinal dates may be mapped into a phase space, and a mean coordinate based on the mapped ordinal dates may be determined.
  • a vector strength as a distance between (0, 0) coordinate and the mean coordinate may be determined.
  • a coverage and redundancy variables may be determined, where the vector strength, the coverage, and the redundancy may be phase variables characterizing the recurrence period.
  • the phase space may represent a billing cycle
  • the coverage may represent a count of billing cycles in the phase space having at least one transaction
  • the redundancy may represent a percentage of billing cycles having more than one transaction.
  • determining the variables characterizing the recurrence period includes determining a modified vector strength or a scaled vector strength as
  • r adjusted 1 - 2 ⁇ ⁇ arccos ⁇ ( r ) ,
  • r adjusted may be the modified vector strength or the scaled vector strength and r may be the vector strength.
  • a Euclidean distance between the distance point and a point representing the vector strength, the coverage, and the redundancy as (the vector strength, the coverage, the redundancy) for phase spaces may be determined.
  • the distance point may be a point that represents the vector strength of value 1, the coverage of value 1, and the redundancy of value 0 as (1,1,0).
  • a probability of the transactions in each set of transactions being transactions of a recurring series may be determined.
  • Each phase space may correspond to one of a weekly, a biweekly, a monthly, a bimonthly, a quarterly, a semi-annually, and a yearly period.
  • the transactions For aggregating one or more sets of transactions with the each set of transactions including transactions related to the account-merchant pairing, the transactions may be ordered in a chronological order, and transactions at a beginning and at an end of the chronologically ordered transactions may be discarded within a user specified threshold value.
  • a system may include a memory for storing instructions, and a processor that is communicatively coupled to the memory.
  • the processor may be configured to execute the stored instructions that may cause the processor to aggregate one or more sets of transactions, where each set of transactions may include transactions related to an account-merchant pairing.
  • the processor may also be configured to determine variables characterizing a recurrence period based on transaction dates of the transactions in the each set, and predict the recurrence period for a transaction related to the account-merchant pairing for each customer of one or more customers.
  • the processor may be configured to aggregate another set of transactions between one or more customers and the merchant, and evaluate a distribution of the recurrence period for each customer from a distant point.
  • the processor may be configured to generate a probability and a recurrence period of the merchant having a recurrent relationship with the customer.
  • the account-merchant pairing may include an account of a customer of one or more customers and a merchant of one or more merchants.
  • the another set of transactions may include transactions in one or more sets of transactions.
  • the processor may also be configured to split each set of the transactions into a first subset of transactions that may be used to determine input features, and a second subset of transactions that may be used to build target label variables.
  • the transactions may be split based on a split date. Accordingly, the first subset of transactions, occurring prior to the split date, may be used as a training subset. And, the second subset of transactions, occurring after the split date, may be used as a testing subset.
  • the processor may be further configured to determine a standard deviation of the transaction dates of the transactions in each set, and an average difference between the transaction dates of the transactions in each set.
  • the processor may also be configured to determine a ratio between the standard deviation of the transaction dates and the average difference between the transaction dates.
  • the standard deviation of the transaction dates, the average difference between the transaction dates, and the ratio of the standard deviation of the transaction dates to the average difference between the transaction dates may be delta variables characterizing the recurrence period.
  • the processor may be configured to convert the transactions dates of the transactions in each set of transactions into ordinal dates, and map the ordinal dates into a phase space.
  • the processor may be configured to determine a mean coordinate based on the mapped ordinal dates.
  • the processor may be configured to determine a vector strength as a distance between (0,0) coordinate and the mean coordinate, a coverage, and a redundancy, where the vector strength, the coverage, and the redundancy may be phase variables characterizing the recurrence period.
  • the phase space may represent a billing cycle
  • the coverage may represent a count of billing cycles in the phase space having at least one transaction
  • the redundancy may represent a percentage of billing cycles having more than one transaction.
  • the processor may be configured to determine a modified vector strength or a scaled vector strength as
  • r adjusted 1 - 2 ⁇ ⁇ arccos ⁇ ( r ) ,
  • r adjusted may be the modified vector strength or the scaled vector strength and r may be the vector strength.
  • the processor may be further configured to determine a probability of the transactions in each set of transactions for the recurring period based on a Euclidean distance between the distance point and a point representing the vector strength, the coverage, and the redundancy as (the vector strength, the coverage, the redundancy) for phase spaces.
  • the distance point may represent the vector strength of value 1, the coverage of value 1, and the redundancy of value 0 as (1,1,0).
  • Each phase space of the phase spaces may correspond to one of a weekly, a biweekly, a monthly, a bimonthly, a quarterly, a semi-annually, and a yearly period.
  • the processor may be further configured to order the transactions in a chronological order.
  • the processor may be then configured to discard transactions at a beginning and at an end of the chronologically ordered transactions within a user specified threshold value.
  • a non-transitory, tangible computer-readable device having instructions stored thereon.
  • the instructions when executed by at least one computing device may cause the at least one computing device to perform operations including aggregating one or more sets of transactions, each set of transactions including transactions related to an account-merchant pairing.
  • the operations may also include determining variables characterizing a recurrence period based on transaction dates of the transactions in the each set and predicting the recurrence period for a transaction related to the account-merchant pairing for each customer of one or more customers.
  • the operations may also include aggregating another set of transactions between one or more customers and the merchant, and evaluating a distribution of the recurrence period for each customer from a distant point.
  • the operations may further include generating a probability of the merchant having a recurrent transaction with the customer and the recurrence period. Based on the generated probability of the merchant, the operations may further include adding the merchant to a whitelist of the merchants.
  • the account-merchant pairing may include an account of a customer of one or more customers and a merchant of one or more merchants.
  • the another set of transactions may include transactions in one or more sets of transactions.
  • the instructions determining the variables characterizing the recurrence period may include determining a standard deviation of the transaction dates of the transactions in each set, and an average difference between the transaction dates of the transactions in each set.
  • the instructions may also include determining a ratio between the standard deviation of the transaction dates and the average difference between the transaction dates.
  • the standard deviation of the transaction dates, the average difference between the transaction dates, and the ratio of the standard deviation of the transaction dates to the average difference between the transaction dates may be delta variables characterizing the recurrence period.
  • the instructions for determining the variables characterizing the recurrence period may include ordering the transactions in a chronological order, and discarding transactions at a beginning and at an end of the chronologically ordered transactions within a user specified threshold value.
  • the instructions may also include converting the transactions dates of the transactions in each set of transactions into ordinal dates, and mapping the ordinal dates onto phase spaces. Instructions may also include determining a mean coordinate based on the mapped ordinal dates, and determining a vector strength as a distance between (0, 0) coordinate and the mean coordinate, a coverage, and a redundancy.
  • Each phase space of the phase spaces may correspond to one of a weekly, a biweekly, a monthly, a bimonthly, a quarterly, a semi-annually, and a yearly period.
  • the vector strength, the coverage, and the redundancy may be phase variables characterizing the recurrence period.
  • the phase space may represent a billing cycle
  • the coverage may represent a count of billing cycles in the phase space having at least one transaction
  • the redundancy may represent a percentage of billing cycles having more than one transaction.
  • the instructions determining the variables characterizing the recurrence period may further include determining a modified vector strength or a scaled vector strength as
  • r adjusted 1 - 2 ⁇ ⁇ arccos ⁇ ( r ) ,
  • r adjusted may be the modified vector strength or the scaled vector strength and r may be the vector strength.
  • FIG. 1 illustrates system architecture, in accordance with some embodiments.
  • FIG. 2 illustrates a flow chart of steps for generating input variables, in accordance with some embodiments.
  • FIG. 3 illustrates charts of transactions plotted on a phase space, in accordance with some embodiments.
  • FIG. 4 illustrates transactions, in accordance with some embodiments.
  • FIG. 5 illustrates an example of a computer system, in accordance with some embodiments.
  • FIG. 6 illustrates a periodogram, in accordance with some embodiments.
  • a merchant's recurring relationship is determined automatically and without manually created rule set(s) for analyzing transactions between customers and merchants. Additionally, a prediction of a merchant's recurring relationship with a customer is determined based on a continuous confidence score ranging from zero (0) to one (1) instead of binary True/False (1/0). In other words, a probability of whether a merchant has a recurring relationship with its customer is projected or determined.
  • the merchant instead of projecting the merchant as having a recurring relationship (binary True(1)) or not having recurring relationship (binary False(0)), it may be determined that the merchant is 90% (i.e., confidence score value 0.9) likely to have a recurring relationship, or may be 60% (i.e., confidence score value 0.6) likely to have a recurring relationship.
  • An objective of the present application is to identify whether a merchant's relationship with a customer will be recurring based on, for example, whether a transaction between the customer and the merchant is recurring.
  • a merchant's relationship with a customer may be considered recurring when transactions between a customer and merchant repeats at a regular cadence over time.
  • Cadence may be considered to be the recurrence period of transactions between the customer and the merchant.
  • the terms cadence and recurrence period are used interchangeably in this disclosure. Examples of the cadence or the recurrence period may be weekly, bi-weekly, monthly, bi-monthly, quarterly, semi-annually, or annually.
  • transactions between a customer and a merchant, between two entities, or specific to a merchant will allow for predictions to be made regarding any future transaction(s) occurring on the next date(s) matching the identified cadence.
  • a merchant's relationship with a customer or customers may be identified as recurring when a set of transactions can be analyzed to identify a cadence, and future transaction(s) may be found occurring at the identified cadence.
  • recurring relationship can be identified between any two entities, for example, an employer and employees, a contractor and subcontractors, etc. The disclosure does not limit its application to the customers and merchants only.
  • a procedure to identify a recurring relationship may include: first, analyzing a set of transactions to identify a cadence within the set; second, predicting a future transaction date(s) based on the identified cadence; and third, determining if actual transactions can be found at the predicted future transaction date(s), or within a specific threshold number of days of the predicted future transaction date(s).
  • This procedure may be applied over a large set of transactional data without waiting for actual future transactions to evaluate predictions of future transaction date(s). This can be accomplished by using historical data, i.e., transactions that have already occurred between a customer and a merchant. The historical data may be split into two portions, an analysis portion, and a corresponding holdout portion.
  • the analysis portion may include transactions between a customer and a merchant to identify the cadence. While the holdout portion may include transactions between the customer and the merchant to test the prediction of the future transaction date(s).
  • the transactions in the analysis portion may be transactions between the customer and the merchant occurring earlier in time than the transactions in the corresponding holdout portion.
  • the set of transactional data may represent transactions between the customer and the merchant occurring over a one-year period of time.
  • the set of transactional data may be split into an analysis portion that includes transactions from the first eight months and the holdout portion may include transactional data for the last four months. Alternatively, transactions may be split into multiple analysis portions and holdout portions.
  • splitting transactions into multiple analysis and holdout portion enables training of supervised learning model with more accuracy. For example, transactions between a customer and a merchant for a period starting Jan. 1, 2018 through Dec. 31, 2018 may be split into a first analysis portion that may include transactions from Jan. 1, 2018 through Apr. 30, 2018 and a corresponding holdout portion that may include transactions from May 1, 2018 through Jun. 30, 2018. And, a second analysis portion may include transactions from Jul. 1, 2018 through Oct. 31, 2018 and a corresponding holdout portion may include transactions from Nov. 1, 2018 through Dec. 31, 2018.
  • a cadence or a recurrence period may be determined.
  • the cadence may then be used to predict a future transaction date(s). If an actual transaction(s) matching the predicted future transaction date or the predicted future transaction dates are found in the holdout portion corresponding to the analysis portion, then a determination may be made that transactions in the analysis portion are in a recurring series, i.e., having a cadence or a recurrence period. This procedure may be used to generate target labels for training a model as discussed in detail below.
  • a set of transactions that is determined to be a recurring series is the one that will have predictable future transactions, i.e., transactions that occur at a cadence.
  • the set of transactions may be used as part of training a supervised learning model that may be used for more complex and accurate cadence analysis of other sets of transactions.
  • the trained supervised learning model may not only be used for determining a cadence for predicting future transaction date(s). Rather, the supervised learning model may also determine a probability of whether a set of transactional data is one that is (or is not) likely to find a matching transaction in the future if a prediction is made based on the cadence.
  • the cadence over which the set of transactional data may be likely recurring is based on a recurrence period, where the recurrence period may include, for example, weekly, biweekly, monthly, bimonthly, quarterly, semiannually, and/or yearly.
  • raw transaction data from a set of transactional data may be preprocessed for merchant cleansing, which is described in detail below.
  • the raw transaction data may be an initial input for training a model.
  • the trained model may operate on sets of transactional data over time between individual account-merchant pairs.
  • An account-merchant pair refers to a relationship between a customer and a particular merchant.
  • the transactions in the sets of transactional data may be grouped or aggregated based on a set of columns specifying unique account-merchant pairs. These transaction groups may then form the basis of calculating input features, including account-merchant aggregate features.
  • Input features may also be known as input variables, which are used as part of training a model.
  • account-merchant aggregate features include basic aggregations based on count of transactions and value aggregations based on a mean and a standard deviation of transaction amounts. Other aggregations may be based on other calculated features that characterize different aspects of the magnitude and rate of a possible recurring trend based on the time pattern of transaction dates. Examples of the other aggregations are the mean and standard deviation of the time differences between each consecutive transaction date ( ⁇ t and ⁇ ⁇ t ).
  • the account-merchant aggregate features may be aggregated to create another set of input features known as merchant aggregate features.
  • the merchant aggregate features may indicate transaction trends specific to each merchant. Such transaction trends include merchant level trends that can be a strong indicator of a cadence specific to a merchant and can be independent of a periodic trend in a single set of transactions. For example, when there is only one transaction between a customer and a merchant, e.g., an Internet Service Provider, it is difficult to predict the periodic trend of transactions between the customer and the merchant based on a single transaction.
  • the merchant aggregate features may indicate the cadence or the recurrence period associated with the merchant.
  • the merchant aggregate feature may comprise a set of variables that describe the pattern in account-merchant feature values across all accounts for the merchant.
  • the merchant aggregate features may depend on account-merchant features and may act as an input to a merchant-level aggregation.
  • the merchant-level aggregation may generate metrics that may provide, for example, the percentage of accounts having a monthly recurring relationship with this merchant, etc.
  • Target label generation generates training labels or target labels which are used as part of training a classification model.
  • the target label generation process may start with splitting historical transactions between a customer and a merchant into an analysis portion and a holdout portion.
  • the historical transactions are transactions that occurred between the customer and the merchant.
  • the historical transactions may be transactions stored in a database.
  • the account-merchant aggregate features may be computed based on transactions in the analysis portion.
  • the recurrence period or the cadence in the transaction set may be determined. The recurrence period or cadence may then be used to predict transaction date(s) of future transaction(s).
  • the predicted future transaction date(s) is after a chronologically last transaction date in the analysis portion.
  • transaction(s) matching the predicted future transaction date(s) is searched in the holdout portion.
  • a target label may then be generated based on the search result.
  • transactions in the analysis portion may be labeled as transactions of a recurring series. Otherwise, the transactions may be labeled as transactions of a non-recurring series.
  • transactions in the analysis portion may be labeled as transactions of a recurring series when a transaction(s) in the holdout portion can be found within a threshold number of days of the predicted future transaction date(s). For example, if a future transaction date is predicted in Apr. 10, 2019, and the threshold number of days is set to +/ ⁇ 3 days, then if a transaction with a transaction date between Apr. 7, 2019 through Apr. 13, 2019 can be found in the holdout portion, the transactions in the analysis portion may be labeled as transactions of a recurring series. Transactions in the analysis portion may be labeled as transactions of a recurring series when the prediction of future transaction dates above a specific threshold percentage comes true.
  • the specific threshold percentage is set to 80%, then if transactions matching eight of the ten predicted future transactions dates are found in the holdout portion, then transactions in the analysis portion may be labeled as transactions of a recurring series. However, if only seven of the ten predicted future transactions dates are found in the holdout portion, then transactions in the analysis portion may not be labeled as transactions of a recurring series.
  • a merchant which is an Internet Service Provider
  • There may be a few customers who drop or disconnect services such that there are not enough transactions to determine a recurrency relationship, or their payment history does not support a pattern for monthly recurring relationship. Accordingly, while analyzing transactions between a new customer and the Internet Service Provider, it can be predicted that the relationship of the new customer with the Internet Service Provider is likely going to be a recurring relationship at the monthly recurrence period.
  • the flow of steps described above can be divided into three distinct pipelines with three distinct outputs.
  • the three distinct model execution pipelines are a Merchant Aggregation Pipeline, a Model Training Pipeline, and a Model Scoring/Evaluation Pipeline. These pipelines are discussed in detail below.
  • the Aggregation Pipeline may start with determining the account-merchant features/variables.
  • An output of the Merchant Aggregation Pipeline may be used as an input to the Model Training Pipeline and the Model Scoring/Evaluation Pipeline.
  • the Merchant Aggregation Pipeline may determine features based on the account-merchant feature results from a complete transactional data set related to a particular account and merchant pair. Utilizing a complete transactional data set increases the accuracy of the analysis since it provides all available information associated with the merchants.
  • a subset of the complete transaction data set may be utilized such as transactions from a particular time period within the complete transactional data set. An example of the particular time period may be a more recent time period, which would bias the analysis toward the more recent past.
  • the output of the Merchant Aggregation Pipeline may be a table with a row for each merchant present in the transactions and columns corresponding to various merchant aggregate features.
  • the account-merchant input variables may be determined over two different levels of transaction aggregation.
  • the first level of transaction aggregation may be over the set of transactions in the unique account and merchant pairs.
  • the second level of transaction aggregation may be an aggregation of the results from the first aggregation, e.g., further aggregation at the merchant level over all accounts.
  • further aggregation at the merchant over all accounts may be based on common features among various customers, such as, geographic region, language, ethnicity, etc.
  • Each merchant may be uniquely identified based on any combination of merchant's name; merchant's category code; merchant's postal code; merchant's country, state, and city; etc.
  • each customer may be uniquely identified based on the customer's account identifier; customer's first name; customer's last name, etc. Accordingly, any combination of fields uniquely identifying a customer and merchant may form a key to aggregate transactions for a unique account-merchant pair.
  • a core set of model input features may be calculated over groups of transactions between unique account-merchant pairs.
  • the core set of model input features may be divided into three groups: basic aggregations variables, cadence analysis variables, and the closest period variables, each of which is discussed in more detail below.
  • input variables of a basic aggregation group may be determined based on the transactions aggregated for each unique account-merchant pair.
  • Input variables in the basic aggregation group may include, for example, a count of the number of transactions in the transactions set (num_trans), the number of days between the earliest and the latest transaction in the transaction set being analyzed (series_length_days), the mean of the transaction amounts (amt_mean), the standard deviation of the transaction amounts (amt_std), or the ratio of the standard deviation to the mean of the transaction amounts (amt_ratio).
  • transactions within a certain top and bottom range such as transactions having transaction amounts within a certain threshold, e.g., 5%, of the highest and lowest transaction amounts may be discarded before aggregating.
  • a certain threshold e.g., 5%
  • Such trimmed calculation provides for more robustness against behavior such as missed/late payments, or stray out-of-time transactions not associated with the steady recurrence. Though any of these examples may result in a small number of much larger or smaller delta t ( ⁇ t) values, which are based on the series of date differences between consecutive transactions and discussed below in detail. If the series is truly recurring aside from these aberrations, the outlier values will be ignored by these trimmed variables.
  • the trimmed variables may not be calculated for series with a small number of ⁇ ts because a single ⁇ t may represent too much of a percentage of the series to trim. Accordingly, when the transactions are trimmed, additional variables may be generated which may include, for example, the mean of the trimmed transaction amounts (trimmed_amt_mean), the standard deviation of the trimmed transaction amounts(trimmed_amt_std), and the ratio of the mean and the standard deviations of the trimmed transaction amounts (trimmed_amt_ratio).
  • input variables of the Merchant Aggregation Pipeline may also include cadence analysis variables.
  • the cadence analysis variables may identify a merchant's relationship with a customer as recurring and a cadence.
  • the cadence analysis may be performed on aggregated transactions based on a unique account and merchant pair. As discussed above, the aggregated transactions may be split into an analysis portion and a holdout portion based on different criteria as described in more detail in the related application entitled “Incremental Time Window Procedure for Selecting Training Samples for a Supervised Learning Algorithm,” which is hereby incorporated by reference.
  • the transactions in the analysis portions may be used to determine cadence analysis variables to determine the cadence present in the set of transactions.
  • the cadence analysis variables may be either delta t ( ⁇ t) variables or phase variables characterizing cadence.
  • trimmed delta t ( ⁇ t) variables may be calculated as trimmed ⁇ t mean (mean of the trimmed ⁇ t series), trimmed ⁇ t std (standard deviation of the trimmed ⁇ t series), and the trimmed ⁇ t ratio (the ratio of trimmed ⁇ t std to trimmed ⁇ t mean).
  • phase variables may be determined based on a mapping of transaction dates into phase space, which is a circular projection of a recurrence period or a billing cycle.
  • the mapping of transactions into the phase space may be achieved by converting a transaction date of each transaction in the series of transactions into a transaction ordinal date (i.e., an integer value representing a number of days since an arbitrary “epoch” point).
  • the phase space represents a cadence, which may also be considered a billing cycle, which may be, for example, weekly, biweekly, monthly, semi-monthly, quarterly, semi-annually, and/or yearly.
  • Transaction ordinal dates may then be transformed into a phase angle in radians with respect to the chosen billing cycle.
  • phase variables may capture this qualitative indicator or alignment of the series cadence with the chosen billing cycle or phase space. These phase variables are a vector strength (or strength), a coverage, and a redundancy.
  • the phase variable vector strength captures how strongly clustered a set of events or transaction ordinal dates are in specific phase space or billing cycle. For example, all transaction ordinal dates of total N number of transactions may first be plotted on a circular projection of the chosen phase space or billing cycle. Accordingly, each transaction ordinal date will have a phase angle ⁇ . Various coordinate points associated with the transaction ordinal dates may then be averaged to determine a mean (x, y) coordinate of all the resulting points on the unit circle of the chosen phase space. A magnitude of a vector pointing from a point (0, 0) to the mean (x, y) coordinate is the vector strength.
  • the vector strength r may be represented as
  • phase variable vector strength and strength may be used interchangeably.
  • the vector strength may range in value between 0 and 1. Transactions that are perfectly recurring at the same cadence or recurrence period as the chosen period of the phase space projection would have a vector strength of value 1. A strongly random series of transactions, e.g., one transaction every day, would have a vector strength of value 0 when projected on to a phase space of a period larger than one week. Accordingly, a vector strength of value 1 could represent a series that has a close periodic alignment with the chosen period or billing cycle of the phase space projection, and a vector strength of value 0 could represent poor alignment with the chosen period or billing cycle or no periodicity.
  • a phase angle of the mean (x, y) coordinate is a mean phase angle of the transactions in the transaction series/set.
  • the difference between the mean phase angle of the transactions and the phase angle of the chronologically last transaction may be known as a last phase offset.
  • the last phase offset is thus a secondary variable related to the vector strength.
  • the last phase offset may be used to determine the closest period variable.
  • an adjusted vector strength or scaled vector strength may also be generated. Normal vector strength calculation may result in a higher concentration of values close to 1. Because the vector strength for a pair of two vectors varies non-linearly (proportional to a cosine function) with only a small drop in strength value for changes in angle close to zero, and a large drop in value with the same change in angle at larger angles, vector strength is less sensitive to changes when the vector strength is large than when it is small. In order to increase the sensitivity in the large strength value range, the adjusted (scaled) vector strength r adjusted may be calculated as
  • r adjusted 1 - 2 ⁇ ⁇ arccos ⁇ ( r ) .
  • the adjusted (scaled) vector strength r adjusted has a range of values between 0 and 1, but there is a lower concentration of values close to 1 because of this scaling.
  • the vector strength may be insensitive to projection onto a chosen phase space or billing cycle that is a multiple of the true period of the series. For example, a truly monthly recurring series could be projected onto a bimonthly, quarterly, semiannual, or annual phase space and would have a perfect vector strength value of 1. In order to cover this insensitivity, a second primary phase variable called a coverage may be calculated.
  • the coverage may be determined as a number of billing cycles in the phase projection that contains one or more transactions. In accordance with yet another embodiment, the coverage may be determined based on the percentage of billing cycles with no transactions as (1—the percentage of billing cycles with no transactions). Accordingly, the phase variable coverage may provide information to which the phase variable vector strength is insensitive.
  • a third phase variable may also be determined.
  • the redundancy variable may provide sensitivity to dense projections or series with non-periodic noise transactions present in the transactions series.
  • the redundancy variable may be defined as a percentage of billing cycles with more than one transaction.
  • the transaction ordinal dates are plotted on a phase space of a chosen period or a billing cycle.
  • an exact recurrence period of transactions in the series may not be known in advance.
  • the transactions may be plotted on a phase space of not just a single period, but on a phase space of seven different periods, e.g., weekly (once every 7 days), biweekly (once every 14 days), monthly (once every month), bimonthly (once every other month), quarterly (once every third month), semiannually (once every six months), and yearly (once every year).
  • the final set of phase variables may consist of all twenty-one permutations of the periods listed above, crossed with the list of three phase variables—[strength, coverage, redundancy].
  • phase variables for separate periods for example, the phase variables for a phase space of a monthly period—a monthly strength, a monthly coverage, a monthly redundancy—may provide insight into alignment of the set of transactional data over a monthly period, whereas a weekly strength, a weekly coverage, a weekly redundancy may similarly provide insight into alignment of the transactional data over a weekly period.
  • the resulting twenty-one phase variables and their values may be used as input in the merchant aggregation process, and in selecting the most likely period match to the series. Only the three phase variables from the closest match period may be used as an input in the final model for a given transaction series.
  • first transactions for each customer and the Internet Service Provider are aggregated based on the account-merchant pair.
  • Transactions for each account-merchant pair are then split into two portions—an analysis portion and a holdout portion.
  • Transactions in the analysis portions are then analyzed to determine the recurrence period using phase variables as described above.
  • the phase variables are determined for different phase spaces listed above. Accordingly, an insight into the recurrence period for each customer for the merchant may be obtained.
  • a closest period input variable may be structured to predict not a general “is recurring” class probability, but rather the class probability that a given series “is recurring with a specific period X.” Therefore, the closest period input variable may provide an estimation of a recurrence period or a cadence that most closely aligns with a given set of transactions based on the calculated cadence analysis variables.
  • the phase variables e.g., the vector strength, the coverage, and the redundancy, calculated in different phase spaces each representing a different period, e.g., weekly, monthly, biweekly, bimonthly, quarterly, semiannually, and yearly, capture a view of how closely aligned a series is with that period.
  • a period having a least Euclidean distance between the point representing the phase variables (the strength, the coverage, and the redundancy) and the ideal point is the period with which the transactions series may be best aligned.
  • the closest period variable may be subsequently used as the basis for making future transaction predictions in the label generation process.
  • the closest period variable may also be used to determine which phase variables will be used as an input in the final model. For example, if the Euclidean distance between the point representing a monthly strength variable, a monthly coverage variable, and a monthly redundancy variable from the ideal point (1,1,0) is the least, then the closest period's phase variables the monthly strength variable, the monthly coverage variable, and the monthly redundancy variable may be copied to new variables such as a closest strength variable, a closest coverage variable, and a closest redundancy variable. Further, the closest strength variable, the closest coverage variable, and the closest redundancy variable may be used as an input into training the model.
  • a time-length of the set of transactions in multiples of the period may be calculated based on the length in days of the set transactions and number of days of the period of the phase space.
  • the closest period variable allows distinct decision boundaries on a per-period basis.
  • An objective of the Merchant Aggregation Pipeline is to capture recurring trends across all accounts at the merchant level in order to calculate recurring predictions for the merchant with a higher confidence and accuracy.
  • a procedure similar to the procedure described in calculating the closest period variable, the cadence analysis phase variables and their distance from the “ideal” points may be used as the basis for aggregating information about merchants.
  • seven separate three-dimensional phase variable spaces or points, one for each of the seven periods (weekly, monthly, biweekly, bimonthly, quarterly, semiannually, and yearly) for a separate set of these spaces for each merchant may be obtained.
  • the results may be grouped by a merchant such that there will be a single set of phase variable values for each account's transactions with that merchant.
  • Each account's phase variable values produce a single point in each of the merchant's phase variable spaces. Accordingly, for each merchant, there are seven distribution points in seven 3-dimensional spaces that together represent the merchant's relationship with all of the merchant's customers/accounts.
  • the Euclidean distance between the ideal point in phase variable space and the calculated point for that series represents how closely that series is aligned with that period of recurrence. Accordingly, distributions of points clustered closely around a period's ideal point, i.e., having a shortest Euclidean distance, may indicate that the merchant has a strong trend of recurring relationships with the merchant's accounts and the recurrence period. In order to quantify this, a metric that compares not just the distance between two points, but also a distance between a point and a distribution may be required.
  • a metric to compare the ideal point to the mean point of the merchant's distribution may be generated.
  • the metric may form first primary merchant aggregate variables: the Euclidean distance, for each period, between the ideal point and the mean of that merchant's account distribution in phase variable space.
  • the merchant aggregate variable may be called as ⁇ period ⁇ _merch_edist and may calculate a set of seven values for each period separately. Accordingly, the closest period may be calculated as a closest ⁇ period ⁇ _merch_edist point from the ideal point of (1,1,0).
  • the Model Training Pipeline splits input transactions into analysis and holdout portions to determine input feature(s)/variable(s) and generates target label(s)/variable(s) to train one or more models.
  • the Model Training Pipeline may depend on the output provided by the Merchant Aggregation Pipeline, as the merchant aggregate features may be used as input features into the Model Training Pipeline. For example, results from the cadence analysis may be used to predict transaction date(s) of future transactions, i.e., the transactions in the holdout portion.
  • target labels may be generated based on finding a match based on the predicted transaction date(s) in the holdout portion.
  • Generation of a target label may be dependent on finding a correct match based on tunable matching tolerance thresholds. For example, a threshold may indicate that some percentage, for example 100% or 95%, of predicted transactions are required to be found in the holdout portion.
  • results of the analysis may be condensed into single binary values based on a specific matching criterion for model training, and the resulting target labels that are generated based on the specific matching criteria are used in training different models.
  • the output of the Model Training Pipeline thus is a trained model. The process may be repeated using different matching criteria to generate any number of trained models, each one tuned to reflect the values of the respective matching criteria. Similar to Merchant Aggregation Pipeline, a complete data set, i.e., all available transactions are considered during Model Training Pipeline.
  • the trained model scores sets of transactions based on a likelihood that predicted transaction date(s) will find a match (as defined by our matching criteria) in future (or held-out) transactions.
  • the date tolerance parameter is the maximum allowed difference between the predicted date and an actual held-out transaction (e.g., +/ ⁇ 1 day, or +/ ⁇ 10% of the cadence or period).
  • the closest transaction in the held-out portion to the predicted transaction date is first identified. Then the difference is either days between the actual date of the transaction and the predicted transaction data is used directly, or divided by the average days in the cadence to produce the percentage of the period. If this calculated difference is less than or equal to the value indicated by the date tolerance parameter, then the set of transactions qualifies as having a match. When multiple predicted transaction dates are being made, this parameter may be applied separately for each predicted transaction date.
  • the date tolerance parameter determines the degree of inconsistency allowed between predicted transaction date(s) and actual transaction dates. It allows for the definition of what constitutes a recurrence period to be tuned between tight and loose a requirement, which subsequently affects the training of the model. For example, a value of 0 would require and exact match between the predicted transaction date and an actual transaction date in the holdout period. As another example, a value of +/ ⁇ 50% of the period would accept essentially any transaction in the holdout set as a match.
  • Another parameter used in the matching criteria is the number of predictions parameter, which indicates the number of matches that are required in the holdout period. Requiring multiple consecutive matching predictions minimizes the weakness of coincidental matches and increases the confidence in determining whether a set of transactions has a recurrence period.
  • Another parameter is the allowed missed parameter which allows for some misses out of multiple predictions (e.g., at least 2 out of 3 predictions). This parameter gives an added dimension of tuning—to still require a longer trend over time (reducing coincidence), but allowing inconsistencies such as missed payments.
  • the Model Scoring Pipeline also known as a Model Evaluation Pipeline, is used to score new incoming series of transactions, once a trained model is available as an output of the Model Training Pipeline. Accordingly, the Model Scoring Pipeline depends on the Model Training Pipeline to produce a trained model object.
  • the Model Scoring Pipeline takes as input the account-merchant features and uses the merchant aggregate results as described in the Merchant Aggregation Pipeline.
  • the Model Scoring Pipeline may be applied to complete sets of transactional data. In yet another embodiment, the Model Scoring Pipeline may be applied to subsets of the transactional data such as when new transactions are received.
  • Model Scoring Pipeline may score/evaluate one day's worth of new transactions, where the new transactions may cover only a small subset of unique account/merchant pairs. The full-time history of transactions is considered then only from account-merchant pairs that are found within the small subset (but not historic transactions from any other account/merchant pairs are not in the small subset). Model Scoring Pipeline may provide as output scores specifying recurring probability of the transactions of the new transactions associated with the account-merchant pairs.
  • a trained model may score new data as follows: as new transactions are received for an account merchant pairing, the complete set of transactional data associated with that account merchant pairing are gathered and used as input for cadence analysis.
  • cadence analysis starts by dividing a set of transactional data into analysis and holdout portions as discussed above.
  • model scoring the set of transactional data is analyzed to produce input feature values.
  • FIG. 1 is an illustration of system architecture, in accordance with some embodiments.
  • a system 100 shown in FIG. 1 comprises a transaction database 105 , a transaction processor 110 , an account-merchant analysis module 121 , a merchant aggregate analysis module 122 , a feature collector 130 , a label generation processor 140 , a model training module 150 , and a model scoring module 160 .
  • each module or processor may comprise one or more modules or processors.
  • the account-merchant analysis module 121 and the merchant aggregate analysis module 122 together form an input feature builder module 120 .
  • the transaction database 105 holds transactions executed between different customers and merchants.
  • the transaction database 105 may organize the transactions into different sets of transactions that span a period of time. The period of time may be determined based on the purpose of the supervised model.
  • the transaction database 105 may store transactions as raw transactions (without any preprocessing).
  • the transaction database 105 may store the transactions after they have been preprocessed by, for example, filtering the transactions based on the account or performing a merchant name cleansing where the names of merchants are cleansed in to resolve the names of merchants.
  • Raw transactions in the transaction database 105 may not generally have merchant data that can be used for creating unique account-merchant pairs. This is because the merchant name may generally contain degenerates (a random sequence of characters that are appended to the raw merchant name that represent some foreign identifier). Accordingly, to identify all transactions belonging to a unique account-merchant pair, the raw transactions may be preprocessed for merchant cleansing to group transactions more consistently. In merchant cleansing, various information associated with a merchant, for example, merchant's name, merchant's category code, merchant's address information—zip code, city, state, country—may be used to retrieve a cleansed name for the merchant. Performing preprocessing, such as the cleansed merchant name, allows transactions to be grouped together accurately. Further, the transaction database 105 may be any kind of database such as Spark, Hadoop, or PostgreSQL. The database may be a memory that stores transactions.
  • the transaction processor 110 may process the raw transactions or transactions processed via merchant cleansing for splitting the transactions into analysis portion(s) and holdout portion(s).
  • the transactions may span a time period, e.g., one year; the analysis portion may include transactions from subset of the time period, e.g., first 8 months, and is used to identify the cadence, and the holdout portion may include transactions from the remaining subset of the time period, e.g., the remaining 4 months, which may be used to test the predicted transaction date(s). Based on the analysis of transactions in the analysis portion, a transaction(s) occurring in future may be predicted.
  • transactions in the analysis portion are determined to be in a recurring series. Otherwise, the transactions in the analysis portion are determined to be not in a recurring series.
  • transactions in the analysis portion may be identified as transactions in a recurring series based on different matching criteria, such as finding transactions within a threshold number of days, e.g., +/ ⁇ 5 days of the predicted transaction dates, or when 80% of the predicted future transactions come true, etc.
  • the account-merchant analysis modules 121 may receive as input either raw or preprocessed transactions from the transaction database 105 .
  • the transactions may be preprocessed transactions for merchant cleaning.
  • the transactions received as input at the account-merchant analysis modules 121 may be transactions from the analysis portion only.
  • the account-merchant analysis module 121 may process the received transactions for generating account-merchant input variables or account-merchant input features as part of the Merchant Aggregation Pipeline.
  • the account-merchant input variables form a core set of model input variables determined over a group of transactions between unique account-merchant pairs.
  • the account-merchant input variables or input features are discussed above in detail.
  • the account-merchant analysis module 121 may further process the aggregated transactions based on a unique account-merchant pair to generate account-merchant input features or account-merchant input variables.
  • the account-merchant input variables form a core set of model input features.
  • the account-merchant input features may be of three different kinds: basic aggregations variables, cadence analysis variables, and the closest period variables.
  • the account-merchant analysis module 121 may generate or determine basic aggregation variables based on the transactions aggregated for each unique account-merchant pair.
  • Basic aggregations variables determined by the account-merchant analysis module 121 may include, for example, the count of the number of transactions in the transactions set (num_trans), the number of days between the earliest and the latest transaction in the transaction set being analyzed (series_length_days), the mean of the transaction amounts (amt mean), the standard deviation of the transaction amounts (amt std), and the ratio of the standard deviation to the mean of the transaction amounts (amt ratio).
  • the account-merchant analysis module 121 may discard certain transactions to avoid skewing the results of the analysis. For example, the account-merchant analysis module may discard transactions having transaction amounts within 5% of the highest and lowest transaction amounts before aggregating the transactions. As described above, the purpose for this trimmed calculation is to give more robustness against messy behavior such as missed/late payments, or stray out-of-time transactions not associated with the steady recurrence.
  • the account-merchant analysis module 121 may generate the mean of the trimmed transaction amounts (trimmed_amt_mean), the standard deviation of the trimmed transaction amounts (trimmed_amt_std), and the ratio of the standard deviation to the mean of the trimmed transaction amounts (trimmed_amt_ratio).
  • the account-merchant analysis module 121 may generate cadence analysis variables based on an analysis of the transactions aggregated for each unique account-merchant pair.
  • the cadence analysis variables identify whether a merchant's relationship with a customer is recurring.
  • cadence analysis a set of transactions may be analyzed to identify a cadence, and future transactions may be searched occurring at the identified cadence.
  • the cadence analysis variables are of two kinds: delta t ( ⁇ t) variables and phase variables.
  • transactions from the beginning and end portion of the chronologically ordered transactions of the transaction series may be trimmed or discarded to reduce the influence of statistical outliers.
  • trimmed delta t ( ⁇ t) variables may be calculated as trimmed ⁇ t mean (mean of the trimmed ⁇ t series), trimmed ⁇ t std (standard deviation of the trimmed ⁇ t series), and the trimmed ⁇ t ratio (the ratio of trimmed ⁇ t std to trimmed ⁇ t mean).
  • the account-merchant analysis module 121 may generate phase variables based on a mapping of transaction dates into phase space. As discussed above, these phase variables are vector strength (or strength), coverage, and redundancy.
  • the phase variable vector strength captures how strongly clustered a set of events or transaction ordinal dates are in specific phase space or billing cycle.
  • the account-merchant analysis module 121 may chart or plot all transaction ordinal dates of total N number of transactions on a circular projection of the chosen phase space or billing cycle. Accordingly, each ordinal transaction date will have a phase angle ⁇ .
  • the coordinate points associated with the transaction ordinal dates are then averaged to determine a mean (x, y) coordinate of all the resulting points on the unit circle of the chosen phase space.
  • the magnitude of a vector pointing from point (0, 0) to the mean (x, y) coordinate is the vector strength.
  • the vector strength r may be represented as
  • ⁇ i represents a phase angle of transaction i
  • N represents the total number of transactions.
  • the vector strength ranges between 0 and 1.
  • a series that is perfectly recurring at the same period, as the chosen period of phase space projection would have a vector strength of 1.
  • a strongly random series of transactions e.g., one transaction every day, would have a vector strength value of 0 when projected on to phase space of a period larger than one week. Therefore, the vector strength of value 1 represents a series that has a close periodic alignment with the chosen period or billing cycle of the phase space projection, and the vector strength of value 0 represents poor alignment with the chosen period or billing cycle or no periodicity.
  • a magnitude of the mean (x, y) coordinate is the vector strength; a phase angle of the mean (x, y) coordinate is a mean phase angle of the transactions.
  • the difference between the mean phase angle of the transactions and a phase angle of a chronologically last transaction may be known as a last phase offset.
  • the last phase offset is thus a secondary variable related to the vector strength.
  • the last phase offset may be used to determine the closest period.
  • the account-merchant analysis module 121 may also determine an adjusted vector strength, which may also be referred as a scaled vector strength in this disclosure.
  • Normal vector strength calculation may result in a higher concentration of values close to 1. Because the vector strength for a pair of two vectors varies non-linearly (proportional to a cosine function) with only a small drop in strength value for changes in angle close to zero, and a large drop in value with the same change in angle at larger angles, vector strength is less sensitive to changes when the vector strength is large than when it is small.
  • the adjusted (or scaled) vector strength r adjusted may be calculated as
  • r adjusted 1 - 2 ⁇ ⁇ arccos ⁇ ( r ) .
  • the adjusted (or scaled) vector strength r adjusted may have a value that is between 0 and 1, with a lower concentration of values close to 1 because of this scaling.
  • the account-merchant analysis module 121 may generate the coverage variable.
  • the account-merchant aggregate module 121 may determine the coverage variable as a number of billing cycles in the phase projection that contains one or more transactions. In other words, the coverage may be determined based on the percentage of billing cycles with no transactions. Accordingly, the phase variable coverage may provide the information to which the phase variable vector strength is insensitive.
  • the account-merchant analysis module 121 may generate the redundancy variable.
  • the account-merchant analysis module 121 may determine the redundancy may be determined as the percentage of billing cycles with more than one transaction. As described above, the vector strength, the coverage, and the redundancy together may capture a robust view of the periodicity of a series of transactions and the account-merchant analysis module 121 generates these phase variables for use by other modules/components of the system 100 .
  • the account-merchant analysis module 121 may chart or plot ordinal transactions dates on different phase spaces, each phase space of the phase spaces may represent a different period.
  • the period may include, for example, weekly (once every 7 days), biweekly (once every 14 days), monthly (once every month), bimonthly (once every other month), quarterly (once every third month), semiannually (once every six months), and yearly (once every year).
  • the final set of phase variables may consist of all permutations of the different periods listed above.
  • phase variables for separate periods may provide insight into alignment of the series over a monthly period
  • the weekly strength, the weekly coverage, the weekly redundancy may similarly provide insight into alignment of the series over a weekly period.
  • the resulting phase variables and their values may be used as input in the merchant aggregation process by the merchant aggregate analysis module 122 , and in selecting the most likely period match to the series. Only the three variables from the closest match period may be used as an input in the final model for a given transaction series.
  • the account-merchant analysis, module 121 may determine the closest period input variable.
  • the account-merchant analysis, module 121 may determine the closest period input variable that may be used to predict a class probability that a given series “is recurring with a specific period X.”
  • the closest period input variable may provide an estimation of what period of recurrence may be most closely aligned with a given series of transactions based on the calculated cadence analysis variables.
  • there are three phase variables (the strength, the coverage, and the redundancy) calculated for different phase spaces each representing a different period (weekly, monthly, biweekly, bimonthly, quarterly, semiannually, and yearly) capture a view of how closely aligned a series is with that period.
  • the account-merchant analysis module 121 may determine phase variables for each different period. Accordingly, different points representing the strength, the coverage, and the redundancy in three-dimensional space may be obtained. Next, the account-merchant analysis module 121 may compute a Euclidean distance between these different points from the ideal point (1,1,0) and may determine a period having a least Euclidean distance between the point representing phase variables (the strength, the coverage, and the redundancy) and the ideal point. The period having the least Euclidean distance between the point representing phase variables and the ideal point is the period with which the transactions series is best aligned and the period is the cadence at which the series is recurring.
  • the input features or input variables generated by the account-merchant analysis module 121 may act as an input to the merchant aggregate analysis module 122 .
  • the merchant aggregate analysis module 122 may process the transactions using procedures similar to described above and used by the account-merchant analysis module 121 to determine the closest period variable, the cadence analysis phase variables, and their distance from the “ideal” point.
  • the merchant aggregate analysis module 122 may then aggregate transactions at a merchant level, i.e., transactions of all customers related to each merchant are grouped together.
  • the transactions aggregated at the merchant level may then be processed to determine separate three-dimensional points (representing the vector strength (or strength), the coverage, and the redundancy variable), each three-dimensional point for each of the seven periods (weekly, monthly, biweekly, bimonthly, quarterly, semiannually, and yearly).
  • the results may be grouped by a merchant such that there will be a single set of phase variable values for each account's transactions with that merchant.
  • Each account's phase variable values produce a single point in each of the merchant's phase variable spaces. Accordingly, for each merchant, there are seven distribution points in seven 3-dimensional spaces that together represent the merchant's relationship with all of the merchant's customers/accounts. The process may be repeated for each merchant.
  • the Euclidean distance between the ideal point and the calculated/determined point for that series represents how closely that series is aligned with that recurrence period, and distributions of points clustered closely around a period's ideal point may indicate that the merchant has a strong trend of recurring relationships with the merchant's accounts.
  • a metric that compares not just the distance between two points, but also a distance between a point and a distribution may be generated by the merchant aggregate analysis module 122 .
  • the merchant aggregate analysis module 122 may generate or determine a metric to compare the ideal point to the mean point of the merchant's distribution.
  • the metric forms the first primary merchant aggregate variables: the Euclidean distance, for each period, between the ideal point and the mean of that merchant's account distribution in phase variable space.
  • the merchant aggregate variable may be called as ⁇ period ⁇ _merch_edist and calculates the set of seven values for each period separately. Accordingly, the closest period may be calculated as a closest ⁇ period ⁇ _merch_edist point from the ideal point of (1,1,0).
  • period may include, for example, weekly, biweekly, monthly, bimonthly, quarterly, semi-annually, and yearly.
  • the input features or input variables generated by the merchant aggregate analysis module 122 and the account-merchant analysis module may be collected by the feature collector 130 to channel as input to the model training module 150 and the model scoring module 160 .
  • the label generation processor 140 may generate labels that are used for training a classification model. Accordingly, the label generation processor 140 may also be referenced as a target label generation processor 140 in this disclosure.
  • the labels from the label generation processor 140 may be provided as input to the training module 150 .
  • the label generation processor 140 may split the historical account-merchant groups of transactions into an analysis portion and a holdout portion. How the label generation processor 140 splits transactions directly influence the results of the analysis. If a different date boundary is used to split a set of transactions into analysis and holdout portions, different input and target variable values will be calculated.
  • a single set of transactions may be used to generate multiple sets of transactions by virtue of selecting different split dates and each of these sets of transactions may be used to generate different labels. In other words, a single set of transactions can result in multiple different instances in the final training sample—each representing a different span of time analyzed to produce input/target variables.
  • a set of transactions may span a time period (e.g., a year). This set may be used to generate a first analysis portion that has a subset of that time period (e.g., two months such as January, February), a second analysis portion that another subset (e.g., three months), and a third analysis portion having another subset (e.g., four months). Consequently, the holdout portion would include transaction of the remaining subset of the time period (e.g., ten months, nine months, and eight months, respectively).
  • the label generation processor 140 may also compute the account-merchant aggregate features for transactions in the analysis portion.
  • the label generation processor 140 may determine the recurrence period or the cadence that might be present in the transaction set based on the account-merchant features.
  • the recurrence period or cadence may then be used to predict the next transaction date(s) that would take place after the transaction date of the chronologically last transaction in the analysis portion.
  • the label generation processor 140 may determine a predicted transaction date by adding the recurrence period (e.g., a week, a month) to the transaction date of the chronologically last transaction in the set of transactions. Additional predicted transaction dates may be calculated by iteratively adding the recurrence period to the previous predicted transaction date.
  • the label generation processor 140 may compare the predicted transaction date(s) against actual transaction date(s) of transaction(s) in the holdout portion. The target label may then be generated as a result of whether a matching transaction is found corresponding to the predicted transaction date in the holdout portion. When it is determined that a transaction exists with the predicted transaction date or within a threshold number of days of the predicted transaction date, the label generation processor 140 may label the transactions in the analysis portion as transactions in a recurring series. Otherwise, the label generation processor 140 may label the transactions in the analysis portion as transactions in a non-recurring series.
  • two parameters involved in the matching criteria include date tolerance and number of predictions.
  • the values for these parameters may be updated manually or dynamically to meet the scenarios needed.
  • the label generation processor 140 utilizes the values for these parameters in determining whether a match exists between predicted transaction date(s) and actual date(s) of transactions within the holdout portion. Examples of the scenarios include a trained model for providing general predictions that sets of transactions are recurring and a trained model for providing prediction of transaction date(s) that is more accurate. Examples of how these parameters for matching criteria are utilized are now discussed.
  • the number of predictions variable may be set to “1” and a date tolerance variable may be set to “+/ ⁇ 3 days.”
  • these parameters would provide loose criteria that allow some variation in matching the predicted transaction date to the actual dates while still being successful at identifying long-term trends. That is, the date tolerance variable allows an actual date to be within 3 days of the predicted transaction date and the number of predictions variable indicates only one actual transaction date needs to be matched within the holdout portion.
  • the label generation processor 140 generates a label based on determined matches in accordance with these parameters.
  • Changes to the parameters affect whether a match is determined and consequently influence the labels generated by the label generation processor 140 .
  • changing the number of predictions variable to “3” would require finding three actual transaction dates within the holdout portion. Requiring 3 actual transaction dates is stricter and generating labels for this criteria requires a longer hold-out time period.
  • the date tolerance variable may be set to “+/ ⁇ 1 day” which also is stricter as actual transaction dates can only vary by one day from the predicted transaction date.
  • Labels generated by the label generation processor 140 are therefore directly impacted by these matching criteria.
  • the reason to tune the matching criteria is to label specific types of sets of transactions as being recurring. For example, if a trained model to determine a comprehensive list of recurring relationships needs to be as inclusive as possible. Accordingly, some degree of inconsistency in a recurring series is acceptable. Adjusting the matching criteria allows the label generation processor 140 to generate labels that identify more sets of transactions as being recurring.
  • a trained model for detecting a single possible “upcoming recurring charge alert” would require the label generation processor 140 to generate a label for a specific set of transactions, i.e., an alert that is very specific and accurate. For this trained model, the label generation processor 140 would require stricter matching criteria that let the trained model focus on high scores based specifically on the tight consistency of the transactions.
  • the model training module 150 takes the target labels generated by the target label generation processor 140 , input features generated by the account-merchant analysis module 121 , and input features generated by the merchant aggregate analysis module 122 to train a model and to score new transactions received by the system 100 .
  • the model training module 150 may generate a trained model for each set of transactions (and its labels) that is provided by the label generation processor 140 . Consequently, the model training module 150 may train multiple separate models based on the labels provided by the label generation processor 140 .
  • the model scoring module 160 may take as an input the trained model generated by the model training module 150 , input features generated by the account-merchant analysis module 121 and the merchant aggregate analysis module 122 , and any new incoming sets of transactions.
  • the model scoring module 160 may score/evaluate transactions that span any period of time such as one day of new transactions.
  • the final output of the model scoring module 160 may comprise scores specifying “recurring” probability of the transactions of the new incoming sets of transactions based on the account-merchant pairs.
  • the transaction database 105 , the account-merchant analysis module 121 , and the merchant aggregate analysis module 122 may form a merchant aggregation pipeline described above.
  • the merchant aggregation pipeline may further comprise the transaction processor 110 .
  • the transaction database 105 , the account-merchant analysis module 121 , the merchant aggregate analysis module 122 , the feature collector 130 , the transaction processor 110 , the target label generation processor 140 , and the model training module 150 may form a model training pipeline described above.
  • the transaction database 105 , the account-merchant analysis module 121 , the merchant aggregate analysis module 122 , the feature collector 130 , the transaction processor 110 , the target label generation processor 140 , the model training module 150 , and the model scoring module 160 may form a model scoring pipeline described above.
  • the account-merchant analysis module 121 , the merchant aggregate analysis module 122 , the feature collector 130 , the transaction processor 110 , the target label generation processor 140 , the model training module 150 , and the model scoring module 160 may be on a single processor, a multi-core processor, different processors, FPGA, ASIC, and/or DSP.
  • the account-merchant analysis module 121 , the merchant aggregate analysis module 122 , the feature collector 130 , the transaction processor 110 , the target label generation processor 140 , the model training module 150 , and the model scoring module 160 may be implemented as a hardware module or as a software.
  • FIG. 2 illustrates a flow chart of steps for generating input variables, in accordance with some embodiments. Steps shown in the FIG. 2 may be performed by the system 100 shown in FIG. 1 ; however, a person skilled in the art may perform these steps by another compatible system.
  • transaction sets are aggregated, where each transaction set comprises transactions between a unique pair of a customer account and a merchant.
  • the transactions sets may be aggregated as described above based on information available in various fields of the transaction that uniquely identify a merchant and a customer.
  • the transactions sets may be prepared based on raw transactions or transactions from the analysis portions only if the transactions are split into different analysis and holdout portions.
  • input variable characterizing cadence or recurrence period based on transaction dates in each transaction set may be determined.
  • the input variables determined at step 202 may be basic aggregation variables, cadence analysis variables, and the closest period variables.
  • the basic aggregation variables, the cadence analysis variables, and the closest period variables may be determined as described above by the account-merchant analysis module.
  • a recurrence period or a cadence may be determined or predicted based on a Euclidean distance between an ideal point (1,1,0) representing a perfect and cleanly recurring series having phase variables—the vector strength with value 1, the coverage with value 1, and the redundancy with value 0—and a mean coordinate point representing a vector strength, a coverage, and a redundancy for a phase space.
  • the phase space represents a period or a billing cycle.
  • the mean coordinate point is determined for seven different periods—weekly, biweekly, monthly, bimonthly, quarterly, semiannually, and yearly—.
  • the period for which the Euclidean distance between the ideal point and the mean coordinate point is the least is the period over which the transaction set is recurring.
  • transactions may be aggregated between the merchant and the plurality of customers.
  • information available in various fields of the transaction that uniquely identifies a merchant may be used to aggregate transactions available for all customers and the merchant.
  • transactions are processed according to procedures described above for determining phase variables for different phase spaces or periods, for example, weekly, biweekly, monthly, bimonthly, quarterly, semiannually, and yearly. Accordingly, different mean coordinate points, each for a different period of the seven periods, representing the vector strength, the coverage, and the redundancy for each customer may be obtained.
  • the distribution of the closest period variable determined for each customer of the merchant then may be analyzed to determine a probability of the merchant having a recurring transaction relation with its customers at step 206 using the procedures described above.
  • FIG. 3 illustrates charts of transactions plotted on a phase space, in accordance with some embodiments.
  • FIG. 3 shows two charts: a first chart that is consistently recurring with only slight variation and a second chart that is recurring but with late payment.
  • the first chart may comprise transactions 301 , 302 , 303 , 304 , and 305 .
  • the second chart may comprise transactions 307 , 308 , 309 , 310 , and 311 .
  • Each transaction of the transaction series when plotted on a circular projection, the transactions belonging to the first chart produce a tight cluster 306 , whereas the transactions belonging to the second produce a cluster 312 and an isolated transaction 313 .
  • Transaction date of transactions 301 - 305 and 307 - 311 may be converted into an ordinal transaction date for circular projection on phase space.
  • the phase space as described above, may be any of the period described above, such as weekly, biweekly, monthly, bimonthly, quarterly, semiannually, and yearly. Subsequently, phase variables vector strength, coverage, and redundancy may be determined as described above.
  • FIG. 4 illustrates transactions, in accordance with some embodiments.
  • 401 represents the difference between successive transactions in a series or set of transactions in a number of days.
  • 402 represents a reordering calculated difference between the successive transactions in ascending order.
  • transactions within a certain threshold as set according to the requirement from a top 404 and a bottom 403 may be discarded and not considered in the calculation.
  • FIG. 5 depicts an example of a computer system, in accordance with some embodiments.
  • FIG. 5 Various embodiments may be implemented, for example, using one or more well-known computer systems, such as a computer system 500 as shown in FIG. 5 .
  • One or more computer systems 500 may be used, for example, to implement any of the embodiments discussed herein, as well as combinations and sub-combinations thereof.
  • the computer system 500 may include one or more processors (also called central processing units, or CPUs), such as a processor 504 .
  • the processor 504 may be connected to a communication infrastructure or bus 506 .
  • the computer system 500 may also include user input/output device(s) 503 , such as monitors, keyboards, pointing devices, etc., which may communicate with communication infrastructure 506 through user input/output interface(s) 502 .
  • user input/output device(s) 503 such as monitors, keyboards, pointing devices, etc.
  • communication infrastructure 506 may communicate with user input/output interface(s) 502 .
  • processors 504 may be a graphics-processing unit (GPU).
  • a GPU may be a processor that is a specialized electronic circuit designed to process mathematically intensive applications.
  • the GPU may have a parallel structure that is efficient for parallel processing of large blocks of data, such as mathematically intensive data common to computer graphics applications, images, videos, etc.
  • the computer system 500 may also include a main or primary memory 508 , such as random access memory (RAM).
  • Main memory 508 may include one or more levels of cache.
  • Main memory 508 may have stored therein control logic (i.e., computer software) and/or data.
  • the computer system 500 may also include one or more secondary storage devices or memory 510 .
  • the secondary memory 510 may include, for example, a hard disk drive 512 and/or a removable storage device or drive 514 .
  • the removable storage drive 514 may be a floppy disk drive, a magnetic tape drive, a compact disk drive, an optical storage device, tape backup device, and/or any other storage device/drive.
  • the removable storage drive 514 may interact with a removable storage unit 518 .
  • the removable storage unit 518 may include a computer usable or readable storage device having stored thereon computer software (control logic) and/or data.
  • the removable storage unit 518 may be a floppy disk, magnetic tape, compact disk, DVD, optical storage disk, and/any other computer data storage device.
  • the removable storage drive 514 may read from and/or write to removable storage unit 518 .
  • the secondary memory 510 may include other means, devices, components, instrumentalities or other approaches for allowing computer programs and/or other instructions and/or data to be accessed by the computer system 500 .
  • Such means, devices, components, instrumentalities or other approaches may include, for example, a removable storage unit 522 and an interface 520 .
  • Examples of the removable storage unit 522 and the interface 520 may include a program cartridge and cartridge interface (such as that found in video game devices), a removable memory chip (such as an EPROM or PROM) and associated socket, a memory stick and USB port, a memory card and associated memory card slot, and/or any other removable storage unit and associated interface.
  • the computer system 500 may further include a communication or network interface 524 .
  • the communication interface 524 may enable the computer system 500 to communicate and interact with any combination of external devices, external networks, external entities, etc. (individually and collectively referenced by reference number 528 ).
  • the communication interface 524 may allow the computer system 500 to communicate with the external or remote devices 528 over communications path 526 , which may be wired and/or wireless (or a combination thereof), and which may include any combination of LANs, WANs, the Internet, etc. Control logic and/or data may be transmitted to and from the computer system 500 via the communication path 526 .
  • the computer system 500 may also be any of a personal digital assistant (PDA), desktop workstation, laptop or notebook computer, netbook, tablet, smart phone, smart watch or other wearable, appliance, part of the Internet-of-Things, and/or embedded system, to name a few non-limiting examples, or any combination thereof.
  • PDA personal digital assistant
  • the computer system 500 may be a client or server, accessing or hosting any applications and/or data through any delivery paradigm, including but not limited to remote or distributed cloud computing solutions; local or on-premises software (“on-premise” cloud-based solutions); “as a service” models (e.g., content as a service (CaaS), digital content as a service (DCaaS), software as a service (SaaS), managed software as a service (MSaaS), platform as a service (PaaS), desktop as a service (DaaS), framework as a service (FaaS), backend as a service (BaaS), mobile backend as a service (MBaaS), infrastructure as a service (IaaS), etc.); and/or a hybrid model including any combination of the foregoing examples or other services or delivery paradigms.
  • “as a service” models e.g., content as a service (CaaS), digital content as a service (DCaaS), software as
  • Any applicable data structures, file formats, and schemas in the computer system 500 may be derived from standards including but not limited to JavaScript Object Notation (JSON), Extensible Markup Language (XML), Yet Another Markup Language (YAML), Extensible Hypertext Markup Language (XHTML), Wireless Markup Language (WML), MessagePack, XML User Interface Language (XUL), or any other functionally similar representations alone or in combination.
  • JSON JavaScript Object Notation
  • XML Extensible Markup Language
  • YAML Yet Another Markup Language
  • XHTML Extensible Hypertext Markup Language
  • WML Wireless Markup Language
  • MessagePack XML User Interface Language
  • XUL XML User Interface Language
  • a tangible, non-transitory apparatus or article of manufacture comprising a tangible, non-transitory computer useable or readable medium having control logic (software) stored thereon may also be referred to herein as a computer program product or program storage device.
  • control logic software stored thereon
  • control logic when executed by one or more data processing devices (such as the computer system 500 ), may cause such data processing devices to operate as described herein.
  • the transactions in the transaction series may be analyzed using Fourier analysis. For example, in a transaction series X N over N days, where each element of the series corresponds to a day, X i may be set to 1 if a transaction occurs on a day i, and X i may be set to 0 if the transaction does not occur on a day i. Accordingly, a periodogram, as shown in FIG. 6 may be computed.
  • the peridogram may be defined as:
  • the periodogram may also be known as a power spectral density graph.
  • a low pass filter may be applied to reduce high-frequency noise in the periodogram by multiplying S(f) by a Gaussian.
  • a Gaussian-smoothing kernel may be applied prior to computing the periodogram.
  • a transaction series When transactions in a series, which say for example, are recurring at 30 days, the series may produce a peak 601 on the periodogram. Accordingly, a transaction series may be identified as recurring as well as a correct frequency of recurrence period or cadence may be determined without any assumptions.

Abstract

A method is disclosed, comprising: aggregating a plurality of sets of transactions, each set of transactions comprising transactions related to an account-merchant pairing; determining variables characterizing a recurrence period based on transaction dates of the transactions in the each set; predicting the recurrence period for a transaction related to the account-merchant pairing for each customer of the plurality of customers; aggregating another set of transactions between the plurality of customers and the merchant; evaluating a distribution of the recurrence period for each customer within range of a distant point; and based on the evaluation of the distribution of the recurrence period for each customer, generating a probability of the merchant having a recurrent transaction with the customer. The account-merchant pairing may comprise a customer account and a merchant of a plurality of customers and merchants. Another set of transactions may comprise transactions in the plurality of sets of transactions.

Description

    CROSS-REFERENCE TO RELATED APPLICATIONS
  • This application is a continuation of U.S. application Ser. No. 16/657,385 filed on Oct. 18, 2019, issued as U.S. Pat. No. 11,144,935, and entitled “Technique to Aggregate Merchant Level Information for Use in a Supervised Learning Model to Detect Recurring Trends in Consumer Transactions,” which is incorporated by reference herein in its entirety.
  • This application also hereby incorporates by reference for all purposes U.S. Patent Application filed under attorney docket number 4375.0270000, entitled “A Method for Detecting Recurring Payments or Income in Financial Transaction Data Using Supervised Learning” and filed on Oct. 18, 2019; U.S. Patent Application filed under attorney docket number 4375.0280000, entitled “Incremental Time Window Procedure for Selecting Training Samples for a Supervised Learning Algorithm” and filed on Oct. 18, 2019; and U.S. Patent Application filed under attorney docket number 4375.0290000, entitled “Variable Matching Criteria Defining Training Labels for a Supervised Recurrence Detection” and filed on Oct. 18, 2019 in their entirety. The incorporated matter may be considered to further define any of the functions, methods, and systems described herein.
  • BACKGROUND
  • In recent years a huge portion of merchant-customer transactions have been performed using either a credit or debit card issued by a financial institution such as a bank. Even most payments to service providers, such as electricity, gas, TV, cable, are also made using a credit or debit card or via direct debit from the customer's bank account. Many different kind of premium services are offered on subscription basis. If a customer to these services makes a payment using a credit or debit card, a large volume of transactional data is available. One interesting feature than can be identified from analysis of this large volume of transactional data is a recurring relationship of merchants with their customers. An identification of a merchant's recurring relationship can help merchant and customers equally. Based on identification of a merchant's recurring relationship with its customer, the customer can be warned ahead of time for the upcoming payment(s).
  • Currently, a merchant's recurring relationship with its customers is identified based on analysis of the large volume of transactional data using a conventional mechanism that uses a simple and manually created rule set(s). This affects the accuracy of identification of the merchant's relationship. The simple rule set(s) involves manually defined boundaries on the mean and standard deviation of the set of time differences between consecutive transaction dates. Further, identification of a merchant's recurring relationship with its customers is based on the feedback or input of the customers. The customer is shown a list of their known recurring merchants with an open-ended “Provide Feedback” prompt to solicit feedback/inputs from the customer. Accordingly, a final determination of the merchant's recurring relationship is subject to each customer's interpretation of the question or solicited feedback. Many customers skip any questionnaire that solicits their feedback. As a result, determination of the merchant's recurring relationship may not be as accurate as expected.
  • BRIEF SUMMARY OF THE INVENTION
  • Disclosed herein are system, apparatus, device, method and/or computer program product embodiments, and/or combinations and sub-combinations thereof, for aggregating merchant level information for use in a supervised learning model to detect recurring trends.
  • In an embodiment, a method is disclosed. The method may include steps such as aggregating a plurality of sets of transactions, where each set of transactions may include transactions related to an account-merchant pairing. Based on transaction dates of the transactions in the each set, variables characterizing a recurrence period may be determined. The recurrence period for a transaction related to the account-merchant pairing for each customer of the plurality of customers may also be predicted. Thereafter, another set of transactions between the plurality of customers and the merchant may be aggregated and a distribution of the recurrence period for each customer from a distant point may be evaluated. Based on the evaluation of the distribution of the recurrence period for each customer, a probability of the merchant having a recurrent transaction with the customer may be generated or determined. The account-merchant pairing may include an account of a customer of one or more customers, and a merchant of one or more merchants. Another set of transactions may include transactions in one or more sets of transactions.
  • The method may further include, for example, splitting each set of the transactions into a first subset of transactions that may be used to determine input features, and a second subset of transactions that may be used to build target label variables. The transactions may be split based on a split date. The first subset of transactions may be used as a training subset. The second subset of transactions may be used as a testing subset. The first subset of transactions may include transactions occurring prior to the split date. The second subset of transactions may include transactions occurring after the split date.
  • For determining the variables characterizing the recurrence period, a standard deviation of the transaction dates of the transactions in each set, and an average difference between the transaction dates of the transactions in each set may be determined. In addition, a ratio between the standard deviation of the transaction dates and the average difference between the transaction dates may be determined. The standard deviation of the transaction dates, the average difference between the transaction dates, and the ratio of the standard deviation of the transaction dates to the average difference between the transaction dates may be delta variables characterizing the recurrence period.
  • Further, for determining the variables characterizing the recurrence period, the transaction dates of the transactions in each set of transactions may be converted into ordinal dates. Next, the ordinal dates may be mapped into a phase space, and a mean coordinate based on the mapped ordinal dates may be determined. Next, a vector strength as a distance between (0, 0) coordinate and the mean coordinate may be determined. Additionally, a coverage and redundancy variables may be determined, where the vector strength, the coverage, and the redundancy may be phase variables characterizing the recurrence period. The phase space may represent a billing cycle, the coverage may represent a count of billing cycles in the phase space having at least one transaction, and the redundancy may represent a percentage of billing cycles having more than one transaction. In some embodiments, determining the variables characterizing the recurrence period includes determining a modified vector strength or a scaled vector strength as
  • r adjusted = 1 - 2 π arccos ( r ) ,
  • where radjusted may be the modified vector strength or the scaled vector strength and r may be the vector strength.
  • In some embodiments, a Euclidean distance between the distance point and a point representing the vector strength, the coverage, and the redundancy as (the vector strength, the coverage, the redundancy) for phase spaces may be determined. The distance point may be a point that represents the vector strength of value 1, the coverage of value 1, and the redundancy of value 0 as (1,1,0). Based on the Euclidean distance between the distance point and the point representing the vector strength, the coverage, and the redundancy, a probability of the transactions in each set of transactions being transactions of a recurring series may be determined. Each phase space may correspond to one of a weekly, a biweekly, a monthly, a bimonthly, a quarterly, a semi-annually, and a yearly period. For aggregating one or more sets of transactions with the each set of transactions including transactions related to the account-merchant pairing, the transactions may be ordered in a chronological order, and transactions at a beginning and at an end of the chronologically ordered transactions may be discarded within a user specified threshold value.
  • In another embodiment, a system is disclosed. The system may include a memory for storing instructions, and a processor that is communicatively coupled to the memory. The processor may be configured to execute the stored instructions that may cause the processor to aggregate one or more sets of transactions, where each set of transactions may include transactions related to an account-merchant pairing. The processor may also be configured to determine variables characterizing a recurrence period based on transaction dates of the transactions in the each set, and predict the recurrence period for a transaction related to the account-merchant pairing for each customer of one or more customers. The processor may be configured to aggregate another set of transactions between one or more customers and the merchant, and evaluate a distribution of the recurrence period for each customer from a distant point. Based on the evaluation of the distribution of the recurrence period for each customer, the processor may be configured to generate a probability and a recurrence period of the merchant having a recurrent relationship with the customer. The account-merchant pairing may include an account of a customer of one or more customers and a merchant of one or more merchants. The another set of transactions may include transactions in one or more sets of transactions. The processor may also be configured to split each set of the transactions into a first subset of transactions that may be used to determine input features, and a second subset of transactions that may be used to build target label variables. The transactions may be split based on a split date. Accordingly, the first subset of transactions, occurring prior to the split date, may be used as a training subset. And, the second subset of transactions, occurring after the split date, may be used as a testing subset.
  • In order to determine the variables characterizing the recurrence period, the processor may be further configured to determine a standard deviation of the transaction dates of the transactions in each set, and an average difference between the transaction dates of the transactions in each set. The processor may also be configured to determine a ratio between the standard deviation of the transaction dates and the average difference between the transaction dates. The standard deviation of the transaction dates, the average difference between the transaction dates, and the ratio of the standard deviation of the transaction dates to the average difference between the transaction dates may be delta variables characterizing the recurrence period.
  • In order to determine the variables characterizing the recurrence period, the processor may be configured to convert the transactions dates of the transactions in each set of transactions into ordinal dates, and map the ordinal dates into a phase space. The processor may be configured to determine a mean coordinate based on the mapped ordinal dates. The processor may be configured to determine a vector strength as a distance between (0,0) coordinate and the mean coordinate, a coverage, and a redundancy, where the vector strength, the coverage, and the redundancy may be phase variables characterizing the recurrence period. The phase space may represent a billing cycle, the coverage may represent a count of billing cycles in the phase space having at least one transaction, and the redundancy may represent a percentage of billing cycles having more than one transaction. The processor may be configured to determine a modified vector strength or a scaled vector strength as
  • r adjusted = 1 - 2 π arccos ( r ) ,
  • where the radjusted may be the modified vector strength or the scaled vector strength and r may be the vector strength.
  • The processor may be further configured to determine a probability of the transactions in each set of transactions for the recurring period based on a Euclidean distance between the distance point and a point representing the vector strength, the coverage, and the redundancy as (the vector strength, the coverage, the redundancy) for phase spaces. The distance point may represent the vector strength of value 1, the coverage of value 1, and the redundancy of value 0 as (1,1,0). Each phase space of the phase spaces may correspond to one of a weekly, a biweekly, a monthly, a bimonthly, a quarterly, a semi-annually, and a yearly period. In order to aggregate, the plurality of sets of transactions with the each set of transactions comprising transactions related to the account-merchant pairing, the processor may be further configured to order the transactions in a chronological order. The processor may be then configured to discard transactions at a beginning and at an end of the chronologically ordered transactions within a user specified threshold value.
  • In another embodiment, a non-transitory, tangible computer-readable device having instructions stored thereon is disclosed. The instructions when executed by at least one computing device may cause the at least one computing device to perform operations including aggregating one or more sets of transactions, each set of transactions including transactions related to an account-merchant pairing. The operations may also include determining variables characterizing a recurrence period based on transaction dates of the transactions in the each set and predicting the recurrence period for a transaction related to the account-merchant pairing for each customer of one or more customers. The operations may also include aggregating another set of transactions between one or more customers and the merchant, and evaluating a distribution of the recurrence period for each customer from a distant point. Based on the evaluation of the distribution of the recurrence period for each customer, the operations may further include generating a probability of the merchant having a recurrent transaction with the customer and the recurrence period. Based on the generated probability of the merchant, the operations may further include adding the merchant to a whitelist of the merchants. The account-merchant pairing may include an account of a customer of one or more customers and a merchant of one or more merchants. The another set of transactions may include transactions in one or more sets of transactions.
  • The instructions determining the variables characterizing the recurrence period may include determining a standard deviation of the transaction dates of the transactions in each set, and an average difference between the transaction dates of the transactions in each set. The instructions may also include determining a ratio between the standard deviation of the transaction dates and the average difference between the transaction dates. The standard deviation of the transaction dates, the average difference between the transaction dates, and the ratio of the standard deviation of the transaction dates to the average difference between the transaction dates may be delta variables characterizing the recurrence period.
  • The instructions for determining the variables characterizing the recurrence period may include ordering the transactions in a chronological order, and discarding transactions at a beginning and at an end of the chronologically ordered transactions within a user specified threshold value. The instructions may also include converting the transactions dates of the transactions in each set of transactions into ordinal dates, and mapping the ordinal dates onto phase spaces. Instructions may also include determining a mean coordinate based on the mapped ordinal dates, and determining a vector strength as a distance between (0, 0) coordinate and the mean coordinate, a coverage, and a redundancy. Each phase space of the phase spaces may correspond to one of a weekly, a biweekly, a monthly, a bimonthly, a quarterly, a semi-annually, and a yearly period. The vector strength, the coverage, and the redundancy may be phase variables characterizing the recurrence period. The phase space may represent a billing cycle, the coverage may represent a count of billing cycles in the phase space having at least one transaction, and the redundancy may represent a percentage of billing cycles having more than one transaction. The instructions determining the variables characterizing the recurrence period may further include determining a modified vector strength or a scaled vector strength as
  • r adjusted = 1 - 2 π arccos ( r ) ,
  • where the radjusted may be the modified vector strength or the scaled vector strength and r may be the vector strength.
  • BRIEF DESCRIPTION OF THE DRAWINGS/FIGURES
  • FIG. 1 illustrates system architecture, in accordance with some embodiments.
  • FIG. 2 illustrates a flow chart of steps for generating input variables, in accordance with some embodiments.
  • FIG. 3 illustrates charts of transactions plotted on a phase space, in accordance with some embodiments.
  • FIG. 4 illustrates transactions, in accordance with some embodiments.
  • FIG. 5 illustrates an example of a computer system, in accordance with some embodiments.
  • FIG. 6 illustrates a periodogram, in accordance with some embodiments.
  • DETAILED DESCRIPTION OF THE INVENTION
  • Provided herein are a method, a system, and a computer program product embodiments, and/or combinations and sub-combinations thereof, for determining whether a merchant's relationship with a customer is recurring or not without relying on feedback or input from the customer. A merchant's recurring relationship is determined automatically and without manually created rule set(s) for analyzing transactions between customers and merchants. Additionally, a prediction of a merchant's recurring relationship with a customer is determined based on a continuous confidence score ranging from zero (0) to one (1) instead of binary True/False (1/0). In other words, a probability of whether a merchant has a recurring relationship with its customer is projected or determined. In one example, instead of projecting the merchant as having a recurring relationship (binary True(1)) or not having recurring relationship (binary False(0)), it may be determined that the merchant is 90% (i.e., confidence score value 0.9) likely to have a recurring relationship, or may be 60% (i.e., confidence score value 0.6) likely to have a recurring relationship.
  • The Summary and Abstract sections may set forth one or more but not all exemplary embodiments of the present invention as contemplated by the inventor(s), and thus, are not intended to limit the present invention and the appended claims in any way.
  • An objective of the present application is to identify whether a merchant's relationship with a customer will be recurring based on, for example, whether a transaction between the customer and the merchant is recurring. In accordance with some embodiments, a merchant's relationship with a customer may be considered recurring when transactions between a customer and merchant repeats at a regular cadence over time. Cadence may be considered to be the recurrence period of transactions between the customer and the merchant. The terms cadence and recurrence period are used interchangeably in this disclosure. Examples of the cadence or the recurrence period may be weekly, bi-weekly, monthly, bi-monthly, quarterly, semi-annually, or annually.
  • In accordance with some embodiments, transactions between a customer and a merchant, between two entities, or specific to a merchant will allow for predictions to be made regarding any future transaction(s) occurring on the next date(s) matching the identified cadence. Accordingly, a merchant's relationship with a customer or customers may be identified as recurring when a set of transactions can be analyzed to identify a cadence, and future transaction(s) may be found occurring at the identified cadence. Based on the disclosure in this application, recurring relationship can be identified between any two entities, for example, an employer and employees, a contractor and subcontractors, etc. The disclosure does not limit its application to the customers and merchants only.
  • In accordance with some embodiments, a procedure to identify a recurring relationship may include: first, analyzing a set of transactions to identify a cadence within the set; second, predicting a future transaction date(s) based on the identified cadence; and third, determining if actual transactions can be found at the predicted future transaction date(s), or within a specific threshold number of days of the predicted future transaction date(s). This procedure may be applied over a large set of transactional data without waiting for actual future transactions to evaluate predictions of future transaction date(s). This can be accomplished by using historical data, i.e., transactions that have already occurred between a customer and a merchant. The historical data may be split into two portions, an analysis portion, and a corresponding holdout portion. The analysis portion may include transactions between a customer and a merchant to identify the cadence. While the holdout portion may include transactions between the customer and the merchant to test the prediction of the future transaction date(s). The transactions in the analysis portion may be transactions between the customer and the merchant occurring earlier in time than the transactions in the corresponding holdout portion. For example, the set of transactional data may represent transactions between the customer and the merchant occurring over a one-year period of time. The set of transactional data may be split into an analysis portion that includes transactions from the first eight months and the holdout portion may include transactional data for the last four months. Alternatively, transactions may be split into multiple analysis portions and holdout portions. Because the transactions between a unique merchant-account pair may uncover different pattern that each may help to generate a target label different from the others, splitting transactions into multiple analysis and holdout portion enables training of supervised learning model with more accuracy. For example, transactions between a customer and a merchant for a period starting Jan. 1, 2018 through Dec. 31, 2018 may be split into a first analysis portion that may include transactions from Jan. 1, 2018 through Apr. 30, 2018 and a corresponding holdout portion that may include transactions from May 1, 2018 through Jun. 30, 2018. And, a second analysis portion may include transactions from Jul. 1, 2018 through Oct. 31, 2018 and a corresponding holdout portion may include transactions from Nov. 1, 2018 through Dec. 31, 2018.
  • Based on the analysis of transactions in the analysis portion, a cadence or a recurrence period may be determined. The cadence may then be used to predict a future transaction date(s). If an actual transaction(s) matching the predicted future transaction date or the predicted future transaction dates are found in the holdout portion corresponding to the analysis portion, then a determination may be made that transactions in the analysis portion are in a recurring series, i.e., having a cadence or a recurrence period. This procedure may be used to generate target labels for training a model as discussed in detail below.
  • Accordingly, a set of transactions that is determined to be a recurring series is the one that will have predictable future transactions, i.e., transactions that occur at a cadence. After the set of transactions is identified as a recurring series, the set of transactions may be used as part of training a supervised learning model that may be used for more complex and accurate cadence analysis of other sets of transactions.
  • In accordance with some embodiments, the trained supervised learning model may not only be used for determining a cadence for predicting future transaction date(s). Rather, the supervised learning model may also determine a probability of whether a set of transactional data is one that is (or is not) likely to find a matching transaction in the future if a prediction is made based on the cadence. The cadence over which the set of transactional data may be likely recurring is based on a recurrence period, where the recurrence period may include, for example, weekly, biweekly, monthly, bimonthly, quarterly, semiannually, and/or yearly.
  • This procedure and its various stages are described in detail below.
  • Preprocessing
  • In accordance with some embodiments, during the preprocessing stage, raw transaction data from a set of transactional data may be preprocessed for merchant cleansing, which is described in detail below. The raw transaction data may be an initial input for training a model. The trained model may operate on sets of transactional data over time between individual account-merchant pairs. An account-merchant pair refers to a relationship between a customer and a particular merchant. The transactions in the sets of transactional data may be grouped or aggregated based on a set of columns specifying unique account-merchant pairs. These transaction groups may then form the basis of calculating input features, including account-merchant aggregate features. Input features may also be known as input variables, which are used as part of training a model.
  • Input Feature Transformations
  • In accordance with some embodiments, account-merchant aggregate features include basic aggregations based on count of transactions and value aggregations based on a mean and a standard deviation of transaction amounts. Other aggregations may be based on other calculated features that characterize different aspects of the magnitude and rate of a possible recurring trend based on the time pattern of transaction dates. Examples of the other aggregations are the mean and standard deviation of the time differences between each consecutive transaction date (Δt and σΔt).
  • In accordance with some embodiments, the account-merchant aggregate features may be aggregated to create another set of input features known as merchant aggregate features. The merchant aggregate features may indicate transaction trends specific to each merchant. Such transaction trends include merchant level trends that can be a strong indicator of a cadence specific to a merchant and can be independent of a periodic trend in a single set of transactions. For example, when there is only one transaction between a customer and a merchant, e.g., an Internet Service Provider, it is difficult to predict the periodic trend of transactions between the customer and the merchant based on a single transaction. But based on an analysis of the cadence as determined in other sets of transactional data involving the merchant, the single transaction between the customer and the merchant could be identified as likely a recurring transaction because the transaction is with a merchant that generally has a recurring relationship with a customer. Accordingly, the merchant aggregate features may indicate the cadence or the recurrence period associated with the merchant. The merchant aggregate feature may comprise a set of variables that describe the pattern in account-merchant feature values across all accounts for the merchant.
  • The merchant aggregate features may depend on account-merchant features and may act as an input to a merchant-level aggregation. The merchant-level aggregation may generate metrics that may provide, for example, the percentage of accounts having a monthly recurring relationship with this merchant, etc.
  • Target Label Generations
  • Target label generation generates training labels or target labels which are used as part of training a classification model. In accordance with some embodiments, the target label generation process may start with splitting historical transactions between a customer and a merchant into an analysis portion and a holdout portion. The historical transactions are transactions that occurred between the customer and the merchant. The historical transactions may be transactions stored in a database. The account-merchant aggregate features may be computed based on transactions in the analysis portion. Subsequently, based on the account-merchant aggregate features, the recurrence period or the cadence in the transaction set may be determined. The recurrence period or cadence may then be used to predict transaction date(s) of future transaction(s). The predicted future transaction date(s) is after a chronologically last transaction date in the analysis portion. Next, transaction(s) matching the predicted future transaction date(s) is searched in the holdout portion. A target label may then be generated based on the search result. As an example, when an actual transaction with the predicted future transaction date is found in the holdout portion of transactions then transactions in the analysis portion may be labeled as transactions of a recurring series. Otherwise, the transactions may be labeled as transactions of a non-recurring series.
  • In accordance with some embodiments, transactions in the analysis portion may be labeled as transactions of a recurring series when a transaction(s) in the holdout portion can be found within a threshold number of days of the predicted future transaction date(s). For example, if a future transaction date is predicted in Apr. 10, 2019, and the threshold number of days is set to +/−3 days, then if a transaction with a transaction date between Apr. 7, 2019 through Apr. 13, 2019 can be found in the holdout portion, the transactions in the analysis portion may be labeled as transactions of a recurring series. Transactions in the analysis portion may be labeled as transactions of a recurring series when the prediction of future transaction dates above a specific threshold percentage comes true. For example, if the specific threshold percentage is set to 80%, then if transactions matching eight of the ten predicted future transactions dates are found in the holdout portion, then transactions in the analysis portion may be labeled as transactions of a recurring series. However, if only seven of the ten predicted future transactions dates are found in the holdout portion, then transactions in the analysis portion may not be labeled as transactions of a recurring series.
  • To give an example of the above-discussed procedure and its phases, for example, a merchant, which is an Internet Service Provider, would have many of its customers making payments for their subscribed services at a regular time period, for example, monthly. Based on analysis of transactions for each customer and the Internet Service Provider, as described above, by splitting transactions into an analysis portion and a holdout portion, it can be determined that the Internet Service Provider almost 90% of the time has a monthly recurring relationship with its customers. There may be a few customers who drop or disconnect services such that there are not enough transactions to determine a recurrency relationship, or their payment history does not support a pattern for monthly recurring relationship. Accordingly, while analyzing transactions between a new customer and the Internet Service Provider, it can be predicted that the relationship of the new customer with the Internet Service Provider is likely going to be a recurring relationship at the monthly recurrence period.
  • Model Execution Pipelines
  • The flow of steps described above can be divided into three distinct pipelines with three distinct outputs. The three distinct model execution pipelines are a Merchant Aggregation Pipeline, a Model Training Pipeline, and a Model Scoring/Evaluation Pipeline. These pipelines are discussed in detail below.
  • Merchant Aggregation Pipeline
  • In accordance with some embodiments, all three pipelines, including the Merchant
  • Aggregation Pipeline, may start with determining the account-merchant features/variables. An output of the Merchant Aggregation Pipeline may be used as an input to the Model Training Pipeline and the Model Scoring/Evaluation Pipeline. The Merchant Aggregation Pipeline may determine features based on the account-merchant feature results from a complete transactional data set related to a particular account and merchant pair. Utilizing a complete transactional data set increases the accuracy of the analysis since it provides all available information associated with the merchants. In accordance with some embodiments, a subset of the complete transaction data set may be utilized such as transactions from a particular time period within the complete transactional data set. An example of the particular time period may be a more recent time period, which would bias the analysis toward the more recent past. The output of the Merchant Aggregation Pipeline may be a table with a row for each merchant present in the transactions and columns corresponding to various merchant aggregate features.
  • In accordance with some embodiments, the account-merchant input variables may be determined over two different levels of transaction aggregation. The first level of transaction aggregation may be over the set of transactions in the unique account and merchant pairs. The second level of transaction aggregation may be an aggregation of the results from the first aggregation, e.g., further aggregation at the merchant level over all accounts. In accordance with some embodiments, further aggregation at the merchant over all accounts may be based on common features among various customers, such as, geographic region, language, ethnicity, etc. Each merchant may be uniquely identified based on any combination of merchant's name; merchant's category code; merchant's postal code; merchant's country, state, and city; etc. Similarly, each customer may be uniquely identified based on the customer's account identifier; customer's first name; customer's last name, etc. Accordingly, any combination of fields uniquely identifying a customer and merchant may form a key to aggregate transactions for a unique account-merchant pair.
  • In accordance with some embodiments, a core set of model input features may be calculated over groups of transactions between unique account-merchant pairs. The core set of model input features may be divided into three groups: basic aggregations variables, cadence analysis variables, and the closest period variables, each of which is discussed in more detail below.
  • Basic Aggregation Variables
  • In accordance with some embodiments, input variables of a basic aggregation group may be determined based on the transactions aggregated for each unique account-merchant pair. Input variables in the basic aggregation group may include, for example, a count of the number of transactions in the transactions set (num_trans), the number of days between the earliest and the latest transaction in the transaction set being analyzed (series_length_days), the mean of the transaction amounts (amt_mean), the standard deviation of the transaction amounts (amt_std), or the ratio of the standard deviation to the mean of the transaction amounts (amt_ratio).
  • In accordance with some embodiments, transactions within a certain top and bottom range such as transactions having transaction amounts within a certain threshold, e.g., 5%, of the highest and lowest transaction amounts may be discarded before aggregating. Such trimmed calculation provides for more robustness against behavior such as missed/late payments, or stray out-of-time transactions not associated with the steady recurrence. Though any of these examples may result in a small number of much larger or smaller delta t (Δt) values, which are based on the series of date differences between consecutive transactions and discussed below in detail. If the series is truly recurring aside from these aberrations, the outlier values will be ignored by these trimmed variables.
  • In accordance with another embodiment, the trimmed variables may not be calculated for series with a small number of Δts because a single Δt may represent too much of a percentage of the series to trim. Accordingly, when the transactions are trimmed, additional variables may be generated which may include, for example, the mean of the trimmed transaction amounts (trimmed_amt_mean), the standard deviation of the trimmed transaction amounts(trimmed_amt_std), and the ratio of the mean and the standard deviations of the trimmed transaction amounts (trimmed_amt_ratio).
  • Cadence Analysis Variables
  • In accordance with some embodiments, input variables of the Merchant Aggregation Pipeline may also include cadence analysis variables. The cadence analysis variables may identify a merchant's relationship with a customer as recurring and a cadence.
  • The cadence analysis may be performed on aggregated transactions based on a unique account and merchant pair. As discussed above, the aggregated transactions may be split into an analysis portion and a holdout portion based on different criteria as described in more detail in the related application entitled “Incremental Time Window Procedure for Selecting Training Samples for a Supervised Learning Algorithm,” which is hereby incorporated by reference.
  • In accordance with some embodiments, the transactions in the analysis portions may be used to determine cadence analysis variables to determine the cadence present in the set of transactions. The cadence analysis variables may be either delta t (Δt) variables or phase variables characterizing cadence.
  • Cadence Analysis Variables: Delta t (Δt) Variables
  • In accordance with some embodiments, delta t (Δt) variables may be determined based on the series of date differences between consecutive transactions. For example, in a series of transactions with transaction date d1, d2, . . . , di, Δt may be calculated as Δt=[(d2−d1), (d3−d2), . . . (di−di−1)]). Other variables such as Δt mean (mean of the Δt series), Δt std (standard deviation of the Δt series), and the Δt ratio (the ratio of Δt std to Δt mean) may be calculated. Transactions from the beginning and end portion of the chronologically ordered transactions of the transaction series may be trimmed or discarded to reduce the influence of statistical outliers. Accordingly, when the transactions are trimmed, trimmed delta t (Δt) variables may be calculated as trimmed Δt mean (mean of the trimmed Δt series), trimmed Δt std (standard deviation of the trimmed Δt series), and the trimmed Δt ratio (the ratio of trimmed Δt std to trimmed Δt mean).
  • Cadence Analysis Variables: Phase Variables
  • In accordance with some embodiments, phase variables may be determined based on a mapping of transaction dates into phase space, which is a circular projection of a recurrence period or a billing cycle. The mapping of transactions into the phase space may be achieved by converting a transaction date of each transaction in the series of transactions into a transaction ordinal date (i.e., an integer value representing a number of days since an arbitrary “epoch” point). The phase space represents a cadence, which may also be considered a billing cycle, which may be, for example, weekly, biweekly, monthly, semi-monthly, quarterly, semi-annually, and/or yearly. Transaction ordinal dates may then be transformed into a phase angle in radians with respect to the chosen billing cycle. As the transaction ordinal dates are plotted on a circular projection representing the phase space, a tight cluster of transaction ordinal dates may indicate a close alignment of the series cadence with the chosen billing cycle or phase space. Three different phase variables may capture this qualitative indicator or alignment of the series cadence with the chosen billing cycle or phase space. These phase variables are a vector strength (or strength), a coverage, and a redundancy.
  • The phase variable vector strength captures how strongly clustered a set of events or transaction ordinal dates are in specific phase space or billing cycle. For example, all transaction ordinal dates of total N number of transactions may first be plotted on a circular projection of the chosen phase space or billing cycle. Accordingly, each transaction ordinal date will have a phase angle θ. Various coordinate points associated with the transaction ordinal dates may then be averaged to determine a mean (x, y) coordinate of all the resulting points on the unit circle of the chosen phase space. A magnitude of a vector pointing from a point (0, 0) to the mean (x, y) coordinate is the vector strength. The vector strength r may be represented as
  • r = 1 N ( Σ i cos θ i ) 2 + ( Σ i sin θ i ) 2 ,
  • where θi represents a phase angle of transaction i, and N represents a total number of transactions. In this disclosure, the phase variable vector strength and strength may be used interchangeably.
  • In accordance with some embodiments, the vector strength may range in value between 0 and 1. Transactions that are perfectly recurring at the same cadence or recurrence period as the chosen period of the phase space projection would have a vector strength of value 1. A strongly random series of transactions, e.g., one transaction every day, would have a vector strength of value 0 when projected on to a phase space of a period larger than one week. Accordingly, a vector strength of value 1 could represent a series that has a close periodic alignment with the chosen period or billing cycle of the phase space projection, and a vector strength of value 0 could represent poor alignment with the chosen period or billing cycle or no periodicity.
  • While the magnitude of the mean (x, y) vector is the vector strength, a phase angle of the mean (x, y) coordinate is a mean phase angle of the transactions in the transaction series/set. The difference between the mean phase angle of the transactions and the phase angle of the chronologically last transaction may be known as a last phase offset. The last phase offset is thus a secondary variable related to the vector strength. The last phase offset may be used to determine the closest period variable.
  • In accordance with some embodiments, an adjusted vector strength or scaled vector strength may also be generated. Normal vector strength calculation may result in a higher concentration of values close to 1. Because the vector strength for a pair of two vectors varies non-linearly (proportional to a cosine function) with only a small drop in strength value for changes in angle close to zero, and a large drop in value with the same change in angle at larger angles, vector strength is less sensitive to changes when the vector strength is large than when it is small. In order to increase the sensitivity in the large strength value range, the adjusted (scaled) vector strength radjusted may be calculated as
  • r adjusted = 1 - 2 π arccos ( r ) .
  • The adjusted (scaled) vector strength radjusted has a range of values between 0 and 1, but there is a lower concentration of values close to 1 because of this scaling.
  • The vector strength may be insensitive to projection onto a chosen phase space or billing cycle that is a multiple of the true period of the series. For example, a truly monthly recurring series could be projected onto a bimonthly, quarterly, semiannual, or annual phase space and would have a perfect vector strength value of 1. In order to cover this insensitivity, a second primary phase variable called a coverage may be calculated.
  • In accordance with some embodiments, the coverage may be determined as a number of billing cycles in the phase projection that contains one or more transactions. In accordance with yet another embodiment, the coverage may be determined based on the percentage of billing cycles with no transactions as (1—the percentage of billing cycles with no transactions). Accordingly, the phase variable coverage may provide information to which the phase variable vector strength is insensitive.
  • In accordance with some embodiments, in addition to the vector strength and the coverage characterizing alignment and cases of sparse projection respectively, a third phase variable—a redundancy variable—may also be determined. The redundancy variable may provide sensitivity to dense projections or series with non-periodic noise transactions present in the transactions series. The redundancy variable may be defined as a percentage of billing cycles with more than one transaction. Collectively, the vector strength, the coverage, and the redundancy may capture a robust view of the periodicity of the series of transactions.
  • In the embodiments discussed above, the transaction ordinal dates are plotted on a phase space of a chosen period or a billing cycle. However, an exact recurrence period of transactions in the series may not be known in advance. Accordingly, in some embodiments, the transactions may be plotted on a phase space of not just a single period, but on a phase space of seven different periods, e.g., weekly (once every 7 days), biweekly (once every 14 days), monthly (once every month), bimonthly (once every other month), quarterly (once every third month), semiannually (once every six months), and yearly (once every year). Accordingly, the final set of phase variables may consist of all twenty-one permutations of the periods listed above, crossed with the list of three phase variables—[strength, coverage, redundancy]. Separately calculated phase variables for separate periods, for example, the phase variables for a phase space of a monthly period—a monthly strength, a monthly coverage, a monthly redundancy—may provide insight into alignment of the set of transactional data over a monthly period, whereas a weekly strength, a weekly coverage, a weekly redundancy may similarly provide insight into alignment of the transactional data over a weekly period. The resulting twenty-one phase variables and their values may be used as input in the merchant aggregation process, and in selecting the most likely period match to the series. Only the three phase variables from the closest match period may be used as an input in the final model for a given transaction series.
  • Accordingly, when the Internet Service Provider and its customers' transactions are analyzed using the procedure above, first transactions for each customer and the Internet Service Provider are aggregated based on the account-merchant pair. Transactions for each account-merchant pair are then split into two portions—an analysis portion and a holdout portion. Transactions in the analysis portions are then analyzed to determine the recurrence period using phase variables as described above. For each customer, the phase variables are determined for different phase spaces listed above. Accordingly, an insight into the recurrence period for each customer for the merchant may be obtained.
  • Closest Period Variable
  • In accordance with some embodiments, a closest period input variable may be structured to predict not a general “is recurring” class probability, but rather the class probability that a given series “is recurring with a specific period X.” Therefore, the closest period input variable may provide an estimation of a recurrence period or a cadence that most closely aligns with a given set of transactions based on the calculated cadence analysis variables. As described above, the phase variables, e.g., the vector strength, the coverage, and the redundancy, calculated in different phase spaces each representing a different period, e.g., weekly, monthly, biweekly, bimonthly, quarterly, semiannually, and yearly, capture a view of how closely aligned a series is with that period.
  • A perfect recurring series will have each consecutive transaction performed after the same exact number of days. For example, a perfect recurring series having a weekly recurrence period will have each transaction performed exactly seven days after the previous transaction. Accordingly, the perfect recurring series will have the strength and the coverage with values of 1 and the redundancy with the value of 0. Accordingly, a point at coordinates (1,1,0) may represent (strength=1, coverage=1, redundancy=0), a perfect and cleanly recurring transaction series. When the phase variables for each different period are calculated, different points representing the strength, the coverage, and the redundancy in three-dimensional space may be obtained. Accordingly, when a Euclidean distance between these seven different points from the ideal point at the coordinates (1,1,0) is calculated and compared, a period having a least Euclidean distance between the point representing the phase variables (the strength, the coverage, and the redundancy) and the ideal point is the period with which the transactions series may be best aligned.
  • The closest period variable may be subsequently used as the basis for making future transaction predictions in the label generation process. The closest period variable may also be used to determine which phase variables will be used as an input in the final model. For example, if the Euclidean distance between the point representing a monthly strength variable, a monthly coverage variable, and a monthly redundancy variable from the ideal point (1,1,0) is the least, then the closest period's phase variables the monthly strength variable, the monthly coverage variable, and the monthly redundancy variable may be copied to new variables such as a closest strength variable, a closest coverage variable, and a closest redundancy variable. Further, the closest strength variable, the closest coverage variable, and the closest redundancy variable may be used as an input into training the model. Additionally, a time-length of the set of transactions in multiples of the period may be calculated based on the length in days of the set transactions and number of days of the period of the phase space. Thus, the closest period variable allows distinct decision boundaries on a per-period basis.
  • Merchant Aggregation Variables
  • An objective of the Merchant Aggregation Pipeline is to capture recurring trends across all accounts at the merchant level in order to calculate recurring predictions for the merchant with a higher confidence and accuracy.
  • In accordance with some embodiments, a procedure similar to the procedure described in calculating the closest period variable, the cadence analysis phase variables and their distance from the “ideal” points may be used as the basis for aggregating information about merchants. As described above, seven separate three-dimensional phase variable spaces or points, one for each of the seven periods (weekly, monthly, biweekly, bimonthly, quarterly, semiannually, and yearly) for a separate set of these spaces for each merchant may be obtained. After the cadence analysis variables have been calculated for all transaction series, the results may be grouped by a merchant such that there will be a single set of phase variable values for each account's transactions with that merchant. Each account's phase variable values produce a single point in each of the merchant's phase variable spaces. Accordingly, for each merchant, there are seven distribution points in seven 3-dimensional spaces that together represent the merchant's relationship with all of the merchant's customers/accounts.
  • As described above, the Euclidean distance between the ideal point in phase variable space and the calculated point for that series represents how closely that series is aligned with that period of recurrence. Accordingly, distributions of points clustered closely around a period's ideal point, i.e., having a shortest Euclidean distance, may indicate that the merchant has a strong trend of recurring relationships with the merchant's accounts and the recurrence period. In order to quantify this, a metric that compares not just the distance between two points, but also a distance between a point and a distribution may be required.
  • In accordance with some embodiments, a metric to compare the ideal point to the mean point of the merchant's distribution may be generated. The metric may form first primary merchant aggregate variables: the Euclidean distance, for each period, between the ideal point and the mean of that merchant's account distribution in phase variable space. The merchant aggregate variable may be called as {period}_merch_edist and may calculate a set of seven values for each period separately. Accordingly, the closest period may be calculated as a closest {period}_merch_edist point from the ideal point of (1,1,0).
  • Model Training Pipeline
  • In accordance with some embodiments, the Model Training Pipeline splits input transactions into analysis and holdout portions to determine input feature(s)/variable(s) and generates target label(s)/variable(s) to train one or more models. The Model Training Pipeline may depend on the output provided by the Merchant Aggregation Pipeline, as the merchant aggregate features may be used as input features into the Model Training Pipeline. For example, results from the cadence analysis may be used to predict transaction date(s) of future transactions, i.e., the transactions in the holdout portion.
  • Further, target labels may be generated based on finding a match based on the predicted transaction date(s) in the holdout portion. Generation of a target label may be dependent on finding a correct match based on tunable matching tolerance thresholds. For example, a threshold may indicate that some percentage, for example 100% or 95%, of predicted transactions are required to be found in the holdout portion. Accordingly, results of the analysis may be condensed into single binary values based on a specific matching criterion for model training, and the resulting target labels that are generated based on the specific matching criteria are used in training different models. The output of the Model Training Pipeline thus is a trained model. The process may be repeated using different matching criteria to generate any number of trained models, each one tuned to reflect the values of the respective matching criteria. Similar to Merchant Aggregation Pipeline, a complete data set, i.e., all available transactions are considered during Model Training Pipeline.
  • There are two parameters that specify matching criteria: date tolerance and number of predictions. These criteria define labels, and because the labels are used for training models, they inherently define the trained model. As noted above, the trained model scores sets of transactions based on a likelihood that predicted transaction date(s) will find a match (as defined by our matching criteria) in future (or held-out) transactions.
  • In some embodiments, the date tolerance parameter is the maximum allowed difference between the predicted date and an actual held-out transaction (e.g., +/−1 day, or +/−10% of the cadence or period). As part of the analysis, the closest transaction in the held-out portion to the predicted transaction date is first identified. Then the difference is either days between the actual date of the transaction and the predicted transaction data is used directly, or divided by the average days in the cadence to produce the percentage of the period. If this calculated difference is less than or equal to the value indicated by the date tolerance parameter, then the set of transactions qualifies as having a match. When multiple predicted transaction dates are being made, this parameter may be applied separately for each predicted transaction date.
  • The date tolerance parameter determines the degree of inconsistency allowed between predicted transaction date(s) and actual transaction dates. It allows for the definition of what constitutes a recurrence period to be tuned between tight and loose a requirement, which subsequently affects the training of the model. For example, a value of 0 would require and exact match between the predicted transaction date and an actual transaction date in the holdout period. As another example, a value of +/−50% of the period would accept essentially any transaction in the holdout set as a match.
  • Another parameter used in the matching criteria is the number of predictions parameter, which indicates the number of matches that are required in the holdout period. Requiring multiple consecutive matching predictions minimizes the weakness of coincidental matches and increases the confidence in determining whether a set of transactions has a recurrence period.
  • Another parameter is the allowed missed parameter which allows for some misses out of multiple predictions (e.g., at least 2 out of 3 predictions). This parameter gives an added dimension of tuning—to still require a longer trend over time (reducing coincidence), but allowing inconsistencies such as missed payments.
  • Model Scoring/Evaluation Pipeline
  • In accordance with some embodiments, the Model Scoring Pipeline, also known as a Model Evaluation Pipeline, is used to score new incoming series of transactions, once a trained model is available as an output of the Model Training Pipeline. Accordingly, the Model Scoring Pipeline depends on the Model Training Pipeline to produce a trained model object. In addition, the Model Scoring Pipeline takes as input the account-merchant features and uses the merchant aggregate results as described in the Merchant Aggregation Pipeline. The Model Scoring Pipeline may be applied to complete sets of transactional data. In yet another embodiment, the Model Scoring Pipeline may be applied to subsets of the transactional data such as when new transactions are received. For example, the Model Scoring Pipeline may score/evaluate one day's worth of new transactions, where the new transactions may cover only a small subset of unique account/merchant pairs. The full-time history of transactions is considered then only from account-merchant pairs that are found within the small subset (but not historic transactions from any other account/merchant pairs are not in the small subset). Model Scoring Pipeline may provide as output scores specifying recurring probability of the transactions of the new transactions associated with the account-merchant pairs.
  • In some embodiments, a trained model may score new data as follows: as new transactions are received for an account merchant pairing, the complete set of transactional data associated with that account merchant pairing are gathered and used as input for cadence analysis. In model training, cadence analysis starts by dividing a set of transactional data into analysis and holdout portions as discussed above. However, for model scoring, the set of transactional data is analyzed to produce input feature values. The merchant aggregate results - previously calculated for training—are then queried to find the values matching the merchant for the series in question. New transactions do not always immediately update the merchant aggregate results, but may be included as part of the set of transactional data on a slower periodic basis.
  • Various embodiments of these features will now be discussed with respect to the corresponding figures.
  • FIG. 1 is an illustration of system architecture, in accordance with some embodiments. A system 100 shown in FIG. 1 comprises a transaction database 105, a transaction processor 110, an account-merchant analysis module 121, a merchant aggregate analysis module 122, a feature collector 130, a label generation processor 140, a model training module 150, and a model scoring module 160. Although only one element is displayed, it is understood that each module or processor may comprise one or more modules or processors. The account-merchant analysis module 121 and the merchant aggregate analysis module 122 together form an input feature builder module 120.
  • In accordance with some embodiments, the transaction database 105 holds transactions executed between different customers and merchants. The transaction database 105 may organize the transactions into different sets of transactions that span a period of time. The period of time may be determined based on the purpose of the supervised model. The transaction database 105 may store transactions as raw transactions (without any preprocessing). The transaction database 105 may store the transactions after they have been preprocessed by, for example, filtering the transactions based on the account or performing a merchant name cleansing where the names of merchants are cleansed in to resolve the names of merchants.
  • Raw transactions in the transaction database 105 may not generally have merchant data that can be used for creating unique account-merchant pairs. This is because the merchant name may generally contain degenerates (a random sequence of characters that are appended to the raw merchant name that represent some foreign identifier). Accordingly, to identify all transactions belonging to a unique account-merchant pair, the raw transactions may be preprocessed for merchant cleansing to group transactions more consistently. In merchant cleansing, various information associated with a merchant, for example, merchant's name, merchant's category code, merchant's address information—zip code, city, state, country—may be used to retrieve a cleansed name for the merchant. Performing preprocessing, such as the cleansed merchant name, allows transactions to be grouped together accurately. Further, the transaction database 105 may be any kind of database such as Spark, Hadoop, or PostgreSQL. The database may be a memory that stores transactions.
  • An example of a set of transactions illustrating cleansed merchants is shown below in Table 1.
  • TABLE 1
    Cleansed
    Transaction Transaction Merchant Merchant
    Account Date Amount Name Name
    1005117177 Apr. 4, 2016 9.99 ADY* Internet Internet
    Service Service
    Provider Provider
    256680048
    1005117177 Jul. 4, 2016 9.99 ADY* Internet Internet
    Service Service
    Provider Provider
    A1K282617
    1005117177 Aug. 5, 2016 9.99 ADY* Internet Internet
    Service Service
    Provider Provider
    YTWRQ8162
    1005117177 Sep. 3, 2016 9.99 ADY* Internet Internet
    Service Service
    Provider Provider
    19302Q81U
    1005117177 Oct. 5, 2016 9.99 ADY* Internet Internet
    Service Service
    Provider Provider
    QT451S896
    1005117177 Nov. 4, 2016 9.99 ADY* Internet Internet
    Service Service
    Provider Provider
    VTWEI7156
  • The transaction processor 110 may process the raw transactions or transactions processed via merchant cleansing for splitting the transactions into analysis portion(s) and holdout portion(s). The transactions may span a time period, e.g., one year; the analysis portion may include transactions from subset of the time period, e.g., first 8 months, and is used to identify the cadence, and the holdout portion may include transactions from the remaining subset of the time period, e.g., the remaining 4 months, which may be used to test the predicted transaction date(s). Based on the analysis of transactions in the analysis portion, a transaction(s) occurring in future may be predicted. If an actual transaction on the predicted future transaction date is found in the holdout portion, then transactions in the analysis portion, i.e., the analysis portion, are determined to be in a recurring series. Otherwise, the transactions in the analysis portion are determined to be not in a recurring series. As described above, transactions in the analysis portion may be identified as transactions in a recurring series based on different matching criteria, such as finding transactions within a threshold number of days, e.g., +/−5 days of the predicted transaction dates, or when 80% of the predicted future transactions come true, etc.
  • In accordance with some embodiments, the account-merchant analysis modules 121 may receive as input either raw or preprocessed transactions from the transaction database 105. The transactions may be preprocessed transactions for merchant cleaning. The transactions received as input at the account-merchant analysis modules 121 may be transactions from the analysis portion only. The account-merchant analysis module 121 may process the received transactions for generating account-merchant input variables or account-merchant input features as part of the Merchant Aggregation Pipeline. The account-merchant input variables form a core set of model input variables determined over a group of transactions between unique account-merchant pairs. The account-merchant input variables or input features are discussed above in detail.
  • The account-merchant analysis module 121 may further process the aggregated transactions based on a unique account-merchant pair to generate account-merchant input features or account-merchant input variables. The account-merchant input variables form a core set of model input features. The account-merchant input features may be of three different kinds: basic aggregations variables, cadence analysis variables, and the closest period variables.
  • In accordance with some embodiments, the account-merchant analysis module 121 may generate or determine basic aggregation variables based on the transactions aggregated for each unique account-merchant pair. Basic aggregations variables determined by the account-merchant analysis module 121 may include, for example, the count of the number of transactions in the transactions set (num_trans), the number of days between the earliest and the latest transaction in the transaction set being analyzed (series_length_days), the mean of the transaction amounts (amt mean), the standard deviation of the transaction amounts (amt std), and the ratio of the standard deviation to the mean of the transaction amounts (amt ratio).
  • In accordance with some embodiments, the account-merchant analysis module 121 may discard certain transactions to avoid skewing the results of the analysis. For example, the account-merchant analysis module may discard transactions having transaction amounts within 5% of the highest and lowest transaction amounts before aggregating the transactions. As described above, the purpose for this trimmed calculation is to give more robustness against messy behavior such as missed/late payments, or stray out-of-time transactions not associated with the steady recurrence. Based on analysis of the trimmed transaction, the account-merchant analysis module 121 may generate the mean of the trimmed transaction amounts (trimmed_amt_mean), the standard deviation of the trimmed transaction amounts (trimmed_amt_std), and the ratio of the standard deviation to the mean of the trimmed transaction amounts (trimmed_amt_ratio).
  • In accordance with some embodiments, the account-merchant analysis module 121 may generate cadence analysis variables based on an analysis of the transactions aggregated for each unique account-merchant pair. The cadence analysis variables identify whether a merchant's relationship with a customer is recurring. In cadence analysis, a set of transactions may be analyzed to identify a cadence, and future transactions may be searched occurring at the identified cadence. As described above, the cadence analysis variables are of two kinds: delta t (Δt) variables and phase variables.
  • In accordance with some embodiments, the account-merchant analysis module 121 may generate delta t (Δt) variables based on the series of date differences between consecutive transactions. For example, in a series of transactions with transaction date d1, d2, . . . , di, Δt may be calculated as Δt=[(d2−d1), (d3−d2), . . . (di−di−1)]). Other variables such as the mean of the Δt series (Δt mean), the standard deviation of the Δt series (Δt std), and the ratio of the standard deviation to the mean of the Δt series (Δt ratio) may be determined.
  • In accordance with yet another embodiment, transactions from the beginning and end portion of the chronologically ordered transactions of the transaction series may be trimmed or discarded to reduce the influence of statistical outliers. Accordingly, when the transactions are trimmed, trimmed delta t (Δt) variables may be calculated as trimmed Δt mean (mean of the trimmed Δt series), trimmed Δt std (standard deviation of the trimmed Δt series), and the trimmed Δt ratio (the ratio of trimmed Δt std to trimmed Δt mean).
  • In accordance with some embodiments, the account-merchant analysis module 121 may generate phase variables based on a mapping of transaction dates into phase space. As discussed above, these phase variables are vector strength (or strength), coverage, and redundancy.
  • As described earlier, the phase variable vector strength captures how strongly clustered a set of events or transaction ordinal dates are in specific phase space or billing cycle. The account-merchant analysis module 121 may chart or plot all transaction ordinal dates of total N number of transactions on a circular projection of the chosen phase space or billing cycle. Accordingly, each ordinal transaction date will have a phase angle θ. The coordinate points associated with the transaction ordinal dates are then averaged to determine a mean (x, y) coordinate of all the resulting points on the unit circle of the chosen phase space. The magnitude of a vector pointing from point (0, 0) to the mean (x, y) coordinate is the vector strength. The vector strength r may be represented as
  • r = 1 N ( Σ i cos θ i ) 2 + ( Σ i sin θ i ) 2 ,
  • where θi represents a phase angle of transaction i, and N represents the total number of transactions.
  • As described above, the vector strength ranges between 0 and 1. A series that is perfectly recurring at the same period, as the chosen period of phase space projection would have a vector strength of 1. A strongly random series of transactions, e.g., one transaction every day, would have a vector strength value of 0 when projected on to phase space of a period larger than one week. Therefore, the vector strength of value 1 represents a series that has a close periodic alignment with the chosen period or billing cycle of the phase space projection, and the vector strength of value 0 represents poor alignment with the chosen period or billing cycle or no periodicity.
  • As described above, a magnitude of the mean (x, y) coordinate is the vector strength; a phase angle of the mean (x, y) coordinate is a mean phase angle of the transactions. The difference between the mean phase angle of the transactions and a phase angle of a chronologically last transaction may be known as a last phase offset. The last phase offset is thus a secondary variable related to the vector strength. The last phase offset may be used to determine the closest period.
  • In accordance with some embodiments, the account-merchant analysis module 121 may also determine an adjusted vector strength, which may also be referred as a scaled vector strength in this disclosure. Normal vector strength calculation may result in a higher concentration of values close to 1. Because the vector strength for a pair of two vectors varies non-linearly (proportional to a cosine function) with only a small drop in strength value for changes in angle close to zero, and a large drop in value with the same change in angle at larger angles, vector strength is less sensitive to changes when the vector strength is large than when it is small. In order to increase the sensitivity in the large strength value range, the adjusted (or scaled) vector strength radjusted may be calculated as
  • r adjusted = 1 - 2 π arccos ( r ) .
  • The adjusted (or scaled) vector strength radjusted may have a value that is between 0 and 1, with a lower concentration of values close to 1 because of this scaling.
  • In accordance with some embodiments, the account-merchant analysis module 121 may generate the coverage variable. The account-merchant aggregate module 121 may determine the coverage variable as a number of billing cycles in the phase projection that contains one or more transactions. In other words, the coverage may be determined based on the percentage of billing cycles with no transactions. Accordingly, the phase variable coverage may provide the information to which the phase variable vector strength is insensitive.
  • In accordance with some embodiments, the account-merchant analysis module 121 may generate the redundancy variable. The account-merchant analysis module 121 may determine the redundancy may be determined as the percentage of billing cycles with more than one transaction. As described above, the vector strength, the coverage, and the redundancy together may capture a robust view of the periodicity of a series of transactions and the account-merchant analysis module 121 generates these phase variables for use by other modules/components of the system 100.
  • In accordance with some embodiments, the account-merchant analysis module 121 may chart or plot ordinal transactions dates on different phase spaces, each phase space of the phase spaces may represent a different period. The period may include, for example, weekly (once every 7 days), biweekly (once every 14 days), monthly (once every month), bimonthly (once every other month), quarterly (once every third month), semiannually (once every six months), and yearly (once every year). Accordingly, the final set of phase variables may consist of all permutations of the different periods listed above. Separately calculated phase variables for separate periods, for example, the monthly strength, the monthly coverage, the monthly redundancy may provide insight into alignment of the series over a monthly period, whereas the weekly strength, the weekly coverage, the weekly redundancy may similarly provide insight into alignment of the series over a weekly period. The resulting phase variables and their values may be used as input in the merchant aggregation process by the merchant aggregate analysis module 122, and in selecting the most likely period match to the series. Only the three variables from the closest match period may be used as an input in the final model for a given transaction series.
  • In accordance with some embodiments, the account-merchant analysis, module 121 may determine the closest period input variable. The account-merchant analysis, module 121 may determine the closest period input variable that may be used to predict a class probability that a given series “is recurring with a specific period X.” The closest period input variable may provide an estimation of what period of recurrence may be most closely aligned with a given series of transactions based on the calculated cadence analysis variables. As described above, there are three phase variables (the strength, the coverage, and the redundancy) calculated for different phase spaces each representing a different period (weekly, monthly, biweekly, bimonthly, quarterly, semiannually, and yearly) capture a view of how closely aligned a series is with that period.
  • As described above, a perfect and cleanly recurring series will have the strength and the coverage with values of 1 and the redundancy with a value of 0. Accordingly, a point (1,1,0) represents (strength=1, coverage=1, redundancy=0) a perfect and cleanly recurring transaction series. The account-merchant analysis module 121 may determine phase variables for each different period. Accordingly, different points representing the strength, the coverage, and the redundancy in three-dimensional space may be obtained. Next, the account-merchant analysis module 121 may compute a Euclidean distance between these different points from the ideal point (1,1,0) and may determine a period having a least Euclidean distance between the point representing phase variables (the strength, the coverage, and the redundancy) and the ideal point. The period having the least Euclidean distance between the point representing phase variables and the ideal point is the period with which the transactions series is best aligned and the period is the cadence at which the series is recurring.
  • The input features or input variables generated by the account-merchant analysis module 121 may act as an input to the merchant aggregate analysis module 122. The merchant aggregate analysis module 122 may process the transactions using procedures similar to described above and used by the account-merchant analysis module 121 to determine the closest period variable, the cadence analysis phase variables, and their distance from the “ideal” point. The merchant aggregate analysis module 122 may then aggregate transactions at a merchant level, i.e., transactions of all customers related to each merchant are grouped together. The transactions aggregated at the merchant level may then be processed to determine separate three-dimensional points (representing the vector strength (or strength), the coverage, and the redundancy variable), each three-dimensional point for each of the seven periods (weekly, monthly, biweekly, bimonthly, quarterly, semiannually, and yearly). After the cadence analysis variables have been calculated for all transaction series, the results may be grouped by a merchant such that there will be a single set of phase variable values for each account's transactions with that merchant. Each account's phase variable values produce a single point in each of the merchant's phase variable spaces. Accordingly, for each merchant, there are seven distribution points in seven 3-dimensional spaces that together represent the merchant's relationship with all of the merchant's customers/accounts. The process may be repeated for each merchant.
  • As described above, the Euclidean distance between the ideal point and the calculated/determined point for that series represents how closely that series is aligned with that recurrence period, and distributions of points clustered closely around a period's ideal point may indicate that the merchant has a strong trend of recurring relationships with the merchant's accounts. In order to quantify this, a metric that compares not just the distance between two points, but also a distance between a point and a distribution may be generated by the merchant aggregate analysis module 122.
  • In accordance with some embodiments, the merchant aggregate analysis module 122 may generate or determine a metric to compare the ideal point to the mean point of the merchant's distribution. The metric forms the first primary merchant aggregate variables: the Euclidean distance, for each period, between the ideal point and the mean of that merchant's account distribution in phase variable space. The merchant aggregate variable may be called as {period}_merch_edist and calculates the set of seven values for each period separately. Accordingly, the closest period may be calculated as a closest {period}_merch_edist point from the ideal point of (1,1,0). As described above, period may include, for example, weekly, biweekly, monthly, bimonthly, quarterly, semi-annually, and yearly.
  • The input features or input variables generated by the merchant aggregate analysis module 122 and the account-merchant analysis module may be collected by the feature collector 130 to channel as input to the model training module 150 and the model scoring module 160.
  • In accordance with some embodiments, the label generation processor 140 may generate labels that are used for training a classification model. Accordingly, the label generation processor 140 may also be referenced as a target label generation processor 140 in this disclosure. The labels from the label generation processor 140 may be provided as input to the training module 150. The label generation processor 140 may split the historical account-merchant groups of transactions into an analysis portion and a holdout portion. How the label generation processor 140 splits transactions directly influence the results of the analysis. If a different date boundary is used to split a set of transactions into analysis and holdout portions, different input and target variable values will be calculated. A single set of transactions may be used to generate multiple sets of transactions by virtue of selecting different split dates and each of these sets of transactions may be used to generate different labels. In other words, a single set of transactions can result in multiple different instances in the final training sample—each representing a different span of time analyzed to produce input/target variables.
  • As an example, a set of transactions may span a time period (e.g., a year). This set may be used to generate a first analysis portion that has a subset of that time period (e.g., two months such as January, February), a second analysis portion that another subset (e.g., three months), and a third analysis portion having another subset (e.g., four months). Consequently, the holdout portion would include transaction of the remaining subset of the time period (e.g., ten months, nine months, and eight months, respectively).
  • The label generation processor 140 may also compute the account-merchant aggregate features for transactions in the analysis portion. The label generation processor 140 may determine the recurrence period or the cadence that might be present in the transaction set based on the account-merchant features. The recurrence period or cadence may then be used to predict the next transaction date(s) that would take place after the transaction date of the chronologically last transaction in the analysis portion. The label generation processor 140 may determine a predicted transaction date by adding the recurrence period (e.g., a week, a month) to the transaction date of the chronologically last transaction in the set of transactions. Additional predicted transaction dates may be calculated by iteratively adding the recurrence period to the previous predicted transaction date.
  • Next, the label generation processor 140 may compare the predicted transaction date(s) against actual transaction date(s) of transaction(s) in the holdout portion. The target label may then be generated as a result of whether a matching transaction is found corresponding to the predicted transaction date in the holdout portion. When it is determined that a transaction exists with the predicted transaction date or within a threshold number of days of the predicted transaction date, the label generation processor 140 may label the transactions in the analysis portion as transactions in a recurring series. Otherwise, the label generation processor 140 may label the transactions in the analysis portion as transactions in a non-recurring series.
  • As noted above, two parameters involved in the matching criteria include date tolerance and number of predictions. The values for these parameters may be updated manually or dynamically to meet the scenarios needed. The label generation processor 140 utilizes the values for these parameters in determining whether a match exists between predicted transaction date(s) and actual date(s) of transactions within the holdout portion. Examples of the scenarios include a trained model for providing general predictions that sets of transactions are recurring and a trained model for providing prediction of transaction date(s) that is more accurate. Examples of how these parameters for matching criteria are utilized are now discussed.
  • As one example, the number of predictions variable may be set to “1” and a date tolerance variable may be set to “+/−3 days.” At a high level, these parameters would provide loose criteria that allow some variation in matching the predicted transaction date to the actual dates while still being successful at identifying long-term trends. That is, the date tolerance variable allows an actual date to be within 3 days of the predicted transaction date and the number of predictions variable indicates only one actual transaction date needs to be matched within the holdout portion. The label generation processor 140 generates a label based on determined matches in accordance with these parameters.
  • Changes to the parameters affect whether a match is determined and consequently influence the labels generated by the label generation processor 140. For example, changing the number of predictions variable to “3” would require finding three actual transaction dates within the holdout portion. Requiring 3 actual transaction dates is stricter and generating labels for this criteria requires a longer hold-out time period. As another example, the date tolerance variable may be set to “+/−1 day” which also is stricter as actual transaction dates can only vary by one day from the predicted transaction date.
  • Labels generated by the label generation processor 140 are therefore directly impacted by these matching criteria. The reason to tune the matching criteria is to label specific types of sets of transactions as being recurring. For example, if a trained model to determine a comprehensive list of recurring relationships needs to be as inclusive as possible. Accordingly, some degree of inconsistency in a recurring series is acceptable. Adjusting the matching criteria allows the label generation processor 140 to generate labels that identify more sets of transactions as being recurring. On the other hand, as another example, a trained model for detecting a single possible “upcoming recurring charge alert” would require the label generation processor 140 to generate a label for a specific set of transactions, i.e., an alert that is very specific and accurate. For this trained model, the label generation processor 140 would require stricter matching criteria that let the trained model focus on high scores based specifically on the tight consistency of the transactions.
  • In accordance with some embodiments, the model training module 150 takes the target labels generated by the target label generation processor 140, input features generated by the account-merchant analysis module 121, and input features generated by the merchant aggregate analysis module 122 to train a model and to score new transactions received by the system 100. The model training module 150 may generate a trained model for each set of transactions (and its labels) that is provided by the label generation processor 140. Consequently, the model training module 150 may train multiple separate models based on the labels provided by the label generation processor 140.
  • In accordance with some embodiments, the model scoring module 160 may take as an input the trained model generated by the model training module 150, input features generated by the account-merchant analysis module 121 and the merchant aggregate analysis module 122, and any new incoming sets of transactions. The model scoring module 160 may score/evaluate transactions that span any period of time such as one day of new transactions. The final output of the model scoring module 160 may comprise scores specifying “recurring” probability of the transactions of the new incoming sets of transactions based on the account-merchant pairs.
  • Based on the description above, the transaction database 105, the account-merchant analysis module 121, and the merchant aggregate analysis module 122 may form a merchant aggregation pipeline described above. The merchant aggregation pipeline may further comprise the transaction processor 110. Similarly, the transaction database 105, the account-merchant analysis module 121, the merchant aggregate analysis module 122, the feature collector 130, the transaction processor 110, the target label generation processor 140, and the model training module 150 may form a model training pipeline described above. The transaction database 105, the account-merchant analysis module 121, the merchant aggregate analysis module 122, the feature collector 130, the transaction processor 110, the target label generation processor 140, the model training module 150, and the model scoring module 160 may form a model scoring pipeline described above.
  • The account-merchant analysis module 121, the merchant aggregate analysis module 122, the feature collector 130, the transaction processor 110, the target label generation processor 140, the model training module 150, and the model scoring module 160 may be on a single processor, a multi-core processor, different processors, FPGA, ASIC, and/or DSP. The account-merchant analysis module 121, the merchant aggregate analysis module 122, the feature collector 130, the transaction processor 110, the target label generation processor 140, the model training module 150, and the model scoring module 160 may be implemented as a hardware module or as a software.
  • FIG. 2 illustrates a flow chart of steps for generating input variables, in accordance with some embodiments. Steps shown in the FIG. 2 may be performed by the system 100 shown in FIG. 1; however, a person skilled in the art may perform these steps by another compatible system. At step 201, transaction sets are aggregated, where each transaction set comprises transactions between a unique pair of a customer account and a merchant. The transactions sets may be aggregated as described above based on information available in various fields of the transaction that uniquely identify a merchant and a customer. The transactions sets may be prepared based on raw transactions or transactions from the analysis portions only if the transactions are split into different analysis and holdout portions.
  • At step 202, input variable characterizing cadence or recurrence period based on transaction dates in each transaction set may be determined. The input variables determined at step 202 may be basic aggregation variables, cadence analysis variables, and the closest period variables. The basic aggregation variables, the cadence analysis variables, and the closest period variables may be determined as described above by the account-merchant analysis module.
  • At step 203, as described above, a recurrence period or a cadence may be determined or predicted based on a Euclidean distance between an ideal point (1,1,0) representing a perfect and cleanly recurring series having phase variables—the vector strength with value 1, the coverage with value 1, and the redundancy with value 0—and a mean coordinate point representing a vector strength, a coverage, and a redundancy for a phase space. As described above, the phase space represents a period or a billing cycle. The mean coordinate point is determined for seven different periods—weekly, biweekly, monthly, bimonthly, quarterly, semiannually, and yearly—. The period for which the Euclidean distance between the ideal point and the mean coordinate point is the least is the period over which the transaction set is recurring.
  • At step 204, transactions may be aggregated between the merchant and the plurality of customers. As described above, information available in various fields of the transaction that uniquely identifies a merchant may be used to aggregate transactions available for all customers and the merchant. At step 205, transactions are processed according to procedures described above for determining phase variables for different phase spaces or periods, for example, weekly, biweekly, monthly, bimonthly, quarterly, semiannually, and yearly. Accordingly, different mean coordinate points, each for a different period of the seven periods, representing the vector strength, the coverage, and the redundancy for each customer may be obtained. The distribution of the closest period variable determined for each customer of the merchant then may be analyzed to determine a probability of the merchant having a recurring transaction relation with its customers at step 206 using the procedures described above.
  • FIG. 3 illustrates charts of transactions plotted on a phase space, in accordance with some embodiments. FIG. 3 shows two charts: a first chart that is consistently recurring with only slight variation and a second chart that is recurring but with late payment. The first chart may comprise transactions 301, 302, 303, 304, and 305. The second chart may comprise transactions 307, 308, 309, 310, and 311. Each transaction of the transaction series when plotted on a circular projection, the transactions belonging to the first chart produce a tight cluster 306, whereas the transactions belonging to the second produce a cluster 312 and an isolated transaction 313. Transaction date of transactions 301-305 and 307-311 may be converted into an ordinal transaction date for circular projection on phase space. The phase space, as described above, may be any of the period described above, such as weekly, biweekly, monthly, bimonthly, quarterly, semiannually, and yearly. Subsequently, phase variables vector strength, coverage, and redundancy may be determined as described above.
  • FIG. 4 illustrates transactions, in accordance with some embodiments. As shown in FIG. 4, 401 represents the difference between successive transactions in a series or set of transactions in a number of days. 402 represents a reordering calculated difference between the successive transactions in ascending order. As described above, during the trimmed calculation, transactions within a certain threshold as set according to the requirement from a top 404 and a bottom 403 may be discarded and not considered in the calculation.
  • FIG. 5 depicts an example of a computer system, in accordance with some embodiments.
  • Various embodiments may be implemented, for example, using one or more well-known computer systems, such as a computer system 500 as shown in FIG. 5. One or more computer systems 500 may be used, for example, to implement any of the embodiments discussed herein, as well as combinations and sub-combinations thereof.
  • The computer system 500 may include one or more processors (also called central processing units, or CPUs), such as a processor 504. The processor 504 may be connected to a communication infrastructure or bus 506.
  • The computer system 500 may also include user input/output device(s) 503, such as monitors, keyboards, pointing devices, etc., which may communicate with communication infrastructure 506 through user input/output interface(s) 502.
  • One or more of processors 504 may be a graphics-processing unit (GPU). In an embodiment, a GPU may be a processor that is a specialized electronic circuit designed to process mathematically intensive applications. The GPU may have a parallel structure that is efficient for parallel processing of large blocks of data, such as mathematically intensive data common to computer graphics applications, images, videos, etc.
  • The computer system 500 may also include a main or primary memory 508, such as random access memory (RAM). Main memory 508 may include one or more levels of cache. Main memory 508 may have stored therein control logic (i.e., computer software) and/or data.
  • The computer system 500 may also include one or more secondary storage devices or memory 510. The secondary memory 510 may include, for example, a hard disk drive 512 and/or a removable storage device or drive 514. The removable storage drive 514 may be a floppy disk drive, a magnetic tape drive, a compact disk drive, an optical storage device, tape backup device, and/or any other storage device/drive.
  • The removable storage drive 514 may interact with a removable storage unit 518.
  • The removable storage unit 518 may include a computer usable or readable storage device having stored thereon computer software (control logic) and/or data. The removable storage unit 518 may be a floppy disk, magnetic tape, compact disk, DVD, optical storage disk, and/any other computer data storage device. The removable storage drive 514 may read from and/or write to removable storage unit 518.
  • The secondary memory 510 may include other means, devices, components, instrumentalities or other approaches for allowing computer programs and/or other instructions and/or data to be accessed by the computer system 500. Such means, devices, components, instrumentalities or other approaches may include, for example, a removable storage unit 522 and an interface 520. Examples of the removable storage unit 522 and the interface 520 may include a program cartridge and cartridge interface (such as that found in video game devices), a removable memory chip (such as an EPROM or PROM) and associated socket, a memory stick and USB port, a memory card and associated memory card slot, and/or any other removable storage unit and associated interface.
  • The computer system 500 may further include a communication or network interface 524. The communication interface 524 may enable the computer system 500 to communicate and interact with any combination of external devices, external networks, external entities, etc. (individually and collectively referenced by reference number 528). For example, the communication interface 524 may allow the computer system 500 to communicate with the external or remote devices 528 over communications path 526, which may be wired and/or wireless (or a combination thereof), and which may include any combination of LANs, WANs, the Internet, etc. Control logic and/or data may be transmitted to and from the computer system 500 via the communication path 526.
  • The computer system 500 may also be any of a personal digital assistant (PDA), desktop workstation, laptop or notebook computer, netbook, tablet, smart phone, smart watch or other wearable, appliance, part of the Internet-of-Things, and/or embedded system, to name a few non-limiting examples, or any combination thereof.
  • The computer system 500 may be a client or server, accessing or hosting any applications and/or data through any delivery paradigm, including but not limited to remote or distributed cloud computing solutions; local or on-premises software (“on-premise” cloud-based solutions); “as a service” models (e.g., content as a service (CaaS), digital content as a service (DCaaS), software as a service (SaaS), managed software as a service (MSaaS), platform as a service (PaaS), desktop as a service (DaaS), framework as a service (FaaS), backend as a service (BaaS), mobile backend as a service (MBaaS), infrastructure as a service (IaaS), etc.); and/or a hybrid model including any combination of the foregoing examples or other services or delivery paradigms.
  • Any applicable data structures, file formats, and schemas in the computer system 500 may be derived from standards including but not limited to JavaScript Object Notation (JSON), Extensible Markup Language (XML), Yet Another Markup Language (YAML), Extensible Hypertext Markup Language (XHTML), Wireless Markup Language (WML), MessagePack, XML User Interface Language (XUL), or any other functionally similar representations alone or in combination. Alternatively, proprietary data structures, formats or schemas may be used, either exclusively or in combination with known or open standards.
  • In some embodiments, a tangible, non-transitory apparatus or article of manufacture comprising a tangible, non-transitory computer useable or readable medium having control logic (software) stored thereon may also be referred to herein as a computer program product or program storage device. This includes, but is not limited to, the computer system 500, the main memory 508, the secondary memory 510, and the removable storage units 518 and 522, as well as tangible articles of manufacture embodying any combination of the foregoing. Such control logic, when executed by one or more data processing devices (such as the computer system 500), may cause such data processing devices to operate as described herein.
  • Based on the teachings contained in this disclosure, it will be apparent to persons skilled in the relevant art(s) how to make and use embodiments of this disclosure using data processing devices, computer systems and/or computer architectures other than that shown in FIG. 5. In particular, embodiments can operate with software, hardware, and/or operating system implementations other than those described herein.
  • Alternatives
  • Instead of plotting or charting transactions in a transaction series on a circular projection representing a phase space or period to determine cadence analysis variables, the transactions in the transaction series may be analyzed using Fourier analysis. For example, in a transaction series XN over N days, where each element of the series corresponds to a day, Xi may be set to 1 if a transaction occurs on a day i, and Xi may be set to 0 if the transaction does not occur on a day i. Accordingly, a periodogram, as shown in FIG. 6 may be computed. The peridogram may be defined as:
  • S ( f ) = Δ t N n = 0 N - 1 x n exp ( - i 2 π n Δ tf 2
  • The periodogram may also be known as a power spectral density graph. A low pass filter may be applied to reduce high-frequency noise in the periodogram by multiplying S(f) by a Gaussian. In other words, a Gaussian-smoothing kernel may be applied prior to computing the periodogram.
  • When transactions in a series, which say for example, are recurring at 30 days, the series may produce a peak 601 on the periodogram. Accordingly, a transaction series may be identified as recurring as well as a correct frequency of recurrence period or cadence may be determined without any assumptions.
  • The present invention has been described above with the aid of functional building blocks illustrating the implementation of specified functions and relationships thereof. The boundaries of these functional building blocks have been arbitrarily defined herein for the convenience of the description. Alternate boundaries can be defined so long as the specified functions and relationships thereof are appropriately performed.
  • The foregoing description of the specific embodiments will so fully reveal the general nature of the invention that others can, by applying knowledge within the skill of the art, readily modify and/or adapt for various applications such specific embodiments, without undue experimentation, without departing from the general concept of the present invention. Therefore, such adaptations and modifications are intended to be within the meaning and range of equivalents of the disclosed embodiments, based on the teaching and guidance presented herein. It is to be understood that the phraseology or terminology herein is for the purpose of description and not of limitation, such that the terminology or phraseology of the present specification is to be interpreted by the skilled artisan in light of the teachings and guidance.
  • The breadth and scope of the present invention should not be limited by any of the above-described exemplary embodiments but should be defined only in accordance with the following claims and their equivalents.
  • The claims in the instant application are different from those of the parent application or other related applications. The Applicant, therefore, rescinds any disclaimer of claim scope made in the parent application or any predecessor application in relation to the instant application. The Examiner is therefore advised that any such previous disclaimer and the cited references that it was made to avoid, may need to be revisited. Further, the Examiner is also reminded that any disclaimer made in the instant application should not be read into or against the parent application.

Claims (20)

What is claimed is:
1. A method, comprising:
forming a set of transactions from a plurality of transactions related to an account-merchant pairing, wherein the set of transactions spans a particular period of time;
identifying a split date within the particular period of time;
generating, based on the split date, an analysis portion comprising a first subset of transactions of the set of transactions and holdout portion comprising a second subset of transactions of the set of transactions;
determining a vector strength, a coverage, and a redundancy, wherein the vector strength, the coverage, and the redundancy are phase variables characterizing a recurrence period within the analysis portion;
generating, based on the recurrence period, a predicted future transaction date;
identifying one or more matching transactions in the holdout portion based on the predicted future transaction date;
generating a target label for one or more transactions in the analysis portion responsive to identifying the one or more matching transactions;
training a machine learning model by using the target label;
identifying a second account-merchant pairing associated with a new transaction; and
generating, by the trained machine learning model, a probability of a recurring transaction within a set of transactions associated with the second account-merchant pairing.
2. The method of claim 1, wherein the first subset of transactions include transactions of the set of transactions that occurred prior to the split date and the second subset of transactions include transactions of the set of transactions that occurred after the split date.
3. The method of claim 1, wherein identifying the one or more matching transactions further comprises:
identifying a first potential matching transaction in the holdout portion closest in time to the predicted future transaction date;
identifying a transaction date of the first potential matching transaction;
calculating a difference between the transaction date of the first potential matching transaction and the predicted future transaction date; and
comparing the difference to a date tolerance parameter that identifies a maximum allowed difference to the predicted future transaction date.
4. The method of claim 1, wherein a number of the one or more matching transactions is determined based on a predictions parameter that identifies a number of matching transactions that are to be identified in the holdout portion.
5. The method of claim 1, further comprising:
determining a standard deviation of differences between transaction dates of transactions in the plurality of transactions;
determining an average difference between the transaction dates of the transactions in the plurality of transactions; and
determining a ratio between the standard deviation of difference between the transaction dates and the average difference between the transaction dates, wherein the standard deviation of the transaction dates, the average difference between the transaction dates, and the ratio of the standard deviation of the transaction dates to the average difference between the transaction dates are delta time variables further characterizing the recurrence period.
6. The method of claim 1, further comprising:
converting the transactions dates of the transactions in the plurality of transactions into ordinal dates;
mapping the ordinal dates into a phase space, wherein the phase space represents a billing cycle;
determining a mean coordinate based on the mapped ordinal dates;
determining the vector strength as a distance between (0,0) coordinate of a unit circle and the mean coordinate;
determining the coverage, wherein the coverage is a count of billing cycles in the phase space having at least one transaction; and
determining the redundancy, wherein the redundancy is a percentage of billing cycles having more than one transaction.
7. The method of claim 1, the method further comprising determining a modified vector strength as
r adjusted = 1 - 2 π arccos ( r ) ,
wherein radjusted is the modified vector strength and r is the vector strength.
8. The method of claim 1, further comprising determining a probability of the transactions in the set of transactions based on a Euclidean distance between an ideal point and a point representing the vector strength, the coverage, and the redundancy, wherein the ideal point represents the vector strength of value 1, the coverage of value 1, and the redundancy of value 0 as (1,1,0), and wherein each distance between the phase variable coordinates corresponds to one of a weekly, a biweekly, a monthly, a bimonthly, a quarterly, a semi-annually, and a yearly period.
9. A system, comprising:
a memory for storing instructions; and
a processor, communicatively coupled to the memory, configured to execute the instructions, the instructions causing the processor to:
form a set of transactions from a plurality of transactions related to an account-merchant pairing, wherein the set of transactions spans a particular period of time;
identify a split date within the particular period of time;
generate, based on the split date, an analysis portion comprising a first subset of transactions of the set of transactions and holdout portion comprising a second subset of transactions of the set of transactions;
determine a vector strength, a coverage, and a redundancy, wherein the vector strength, the coverage, and the redundancy are phase variables characterizing a recurrence period within the analysis portion;
generate, based on the recurrence period, a predicted future transaction date;
identify one or more matching transactions in the holdout portion based on the predicted future transaction date;
generate a target label for one or more transactions in the analysis portion responsive to identifying the one or more matching transactions;
train a machine learning model by using the target label;
identify a second account-merchant pairing associated with a new transaction; and
generate, by the trained machine learning model, a probability of a recurring transaction within a set of transactions associated with the second account-merchant pairing.
10. The system of claim 9, wherein the first subset of transactions include transactions of the set of transactions that occurred prior to the split date and the second subset of transactions include transactions of the set of transactions that occurred after the split date.
11. The system of claim 9, wherein to identify the one or more matching transactions, the processor is further configured to:
identify a first potential matching transaction in the holdout portion closest in time to the predicted future transaction date;
identify a transaction date of the first potential matching transaction;
calculate a difference between the transaction date of the first potential matching transaction and the predicted future transaction date; and
compare the difference to a date tolerance parameter that identifies a maximum allowed difference to the predicted future transaction date.
12. The system of claim 9, wherein a number of the one or more matching transactions is determined based on a predictions parameter that identifies a number of matching transactions that are to be identified in the holdout portion.
13. The system of claim 9, wherein to determine the variables characterizing the recurrence period, the processor is further configured to:
determine a standard deviation of differences between transaction dates of transactions in the plurality of transactions;
determine an average difference between the transaction dates of the transactions in the plurality of transactions; and
determine a ratio between the standard deviation of difference between the transaction dates and the average difference between the transaction dates, wherein the standard deviation of the transaction dates, the average difference between the transaction dates, and the ratio of the standard deviation of the transaction dates to the average difference between the transaction dates are delta time variables further characterizing the recurrence period.
14. The system of claim 9, the processor is further configured to:
convert the transactions dates of the transactions in the plurality of transactions into ordinal dates;
map the ordinal dates into a phase space, wherein the phase space represents a billing cycle;
determine a mean coordinate based on the mapped ordinal dates;
determine the vector strength as a distance between (0,0) coordinate of a unit circle and the mean coordinate;
determine the coverage, wherein the coverage is a count of billing cycles in the phase space having at least one transaction; and
determine the redundancy, wherein the redundancy is a percentage of billing cycles having more than one transaction.
15. The system of claim 1, the processor is further configured to:
determine a modified vector strength as
r adjusted = 1 - 2 π arccos ( r ) ,
wherein radjusted is the modified vector strength and r is the vector strength.
16. The system of claim 13, wherein the processor is further configured to:
determine a probability of the transactions in the set of transactions based on a Euclidean distance between an ideal point and a point representing the vector strength, the coverage, and the redundancy, wherein the ideal point represents the vector strength of value 1, the coverage of value 1, and the redundancy of value 0 as (1,1,0), and wherein each distance between the phase variable coordinates corresponds to one of a weekly, a biweekly, a monthly, a bimonthly, a quarterly, a semi-annually, and a yearly period.
17. A non-transitory, tangible computer-readable device having instructions stored thereon that, when executed by at least one computing device, causes the at least one computing device to perform operations comprising:
forming a set of transactions from a plurality of transactions related to an account-merchant pairing, wherein the set of transactions spans a particular period of time;
identifying a split date within the particular period of time;
generating, based on the split date, an analysis portion comprising a first subset of transactions of the set of transactions and holdout portion comprising a second subset of transactions of the set of transactions;
determining a vector strength, a coverage, and a redundancy, wherein the vector strength, the coverage, and the redundancy are phase variables characterizing a recurrence period within the analysis portion;
generating, based on the recurrence period, a predicted future transaction date;
identifying one or more matching transactions in the holdout portion based on the predicted future transaction date;
generating a target label for one or more transactions in the analysis portion responsive to identifying the one or more matching transactions;
training a machine learning model by using the target label;
identifying a second account-merchant pairing associated with a new transaction; and
generating, by the trained machine learning model, a probability of a recurring transaction within a set of transactions associated with the second account-merchant pairing.
18. The non-transitory, tangible computer-readable device of claim 17, wherein the first subset of transactions include transactions of the set of transactions that occurred prior to the split date and the second subset of transactions include transactions of the set of transactions that occurred after the split date.
19. The non-transitory, tangible computer-readable device of claim 17, wherein to identify the one or more matching transactions, the operations further comprise:
identifying a first potential matching transaction in the holdout portion closest in time to the predicted future transaction date;
identifying a transaction date of the first potential matching transaction;
calculating a difference between the transaction date of the first potential matching transaction and the predicted future transaction date; and
comparing the difference to a date tolerance parameter that identifies a maximum allowed difference to the predicted future transaction date
20. The non-transitory, tangible computer-readable device of claim 17, wherein a number of the one or more matching transactions is determined based on a predictions parameter that identifies a number of matching transactions that are to be identified in the holdout portion
US17/498,906 2019-10-18 2021-10-12 Technique to aggregate merchant level information for use in a supervised learning model to detect recurring trends in consumer transactions Pending US20220044261A1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
US17/498,906 US20220044261A1 (en) 2019-10-18 2021-10-12 Technique to aggregate merchant level information for use in a supervised learning model to detect recurring trends in consumer transactions

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
US16/657,385 US11144935B2 (en) 2019-10-18 2019-10-18 Technique to aggregate merchant level information for use in a supervised learning model to detect recurring trends in consumer transactions
US17/498,906 US20220044261A1 (en) 2019-10-18 2021-10-12 Technique to aggregate merchant level information for use in a supervised learning model to detect recurring trends in consumer transactions

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
US16/657,385 Continuation US11144935B2 (en) 2019-10-18 2019-10-18 Technique to aggregate merchant level information for use in a supervised learning model to detect recurring trends in consumer transactions

Publications (1)

Publication Number Publication Date
US20220044261A1 true US20220044261A1 (en) 2022-02-10

Family

ID=75491288

Family Applications (2)

Application Number Title Priority Date Filing Date
US16/657,385 Active US11144935B2 (en) 2019-10-18 2019-10-18 Technique to aggregate merchant level information for use in a supervised learning model to detect recurring trends in consumer transactions
US17/498,906 Pending US20220044261A1 (en) 2019-10-18 2021-10-12 Technique to aggregate merchant level information for use in a supervised learning model to detect recurring trends in consumer transactions

Family Applications Before (1)

Application Number Title Priority Date Filing Date
US16/657,385 Active US11144935B2 (en) 2019-10-18 2019-10-18 Technique to aggregate merchant level information for use in a supervised learning model to detect recurring trends in consumer transactions

Country Status (1)

Country Link
US (2) US11144935B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20220245641A1 (en) * 2021-02-04 2022-08-04 Visa International Service Association Intelligent recurring transaction processing and fraud detection

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11854022B2 (en) * 2019-10-22 2023-12-26 Sap Se Proactively predicting transaction dates based on sparse transaction data
US20230368201A1 (en) * 2022-05-12 2023-11-16 Bank Of America Corporation System for implementing end-point authentication restriction for resource distribution device use

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090132347A1 (en) * 2003-08-12 2009-05-21 Russell Wayne Anderson Systems And Methods For Aggregating And Utilizing Retail Transaction Records At The Customer Level
US20090276346A1 (en) * 2008-05-02 2009-11-05 Intuit Inc. System and method for classifying a financial transaction as a recurring financial transaction
US20110238550A1 (en) * 2010-03-24 2011-09-29 Joshua Reich Systems and methods for predicting financial behaviors
US20150220983A1 (en) * 2014-02-05 2015-08-06 Mastercard International Incorporated Systems and Methods of Determining Predictors Based on Transaction Data and Social Network Data
US20180053188A1 (en) * 2016-08-17 2018-02-22 Fair Isaac Corporation Customer transaction behavioral archetype analytics for cnp merchant transaction fraud detection
US20180082325A1 (en) * 2016-09-16 2018-03-22 Adap.Tv, Inc. Demographic prediction using aggregated labeled data
US10387883B2 (en) * 2017-02-09 2019-08-20 Visa International Service Association Electronic transactional data based predictive system
US20210027300A1 (en) * 2019-07-26 2021-01-28 Visa International Service Association System, Method, and Computer Program Product for Generating Aggregations Associated with Predictions of Transactions

Family Cites Families (23)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6430539B1 (en) 1999-05-06 2002-08-06 Hnc Software Predictive modeling of consumer financial behavior
AU2010246077B2 (en) 2009-05-04 2013-09-05 Visa International Service Association Frequency-based transaction prediction and processing
US20140046777A1 (en) 2009-08-14 2014-02-13 Dataxu, Inc. Methods and systems for using consumer aliases and identifiers
US20130124258A1 (en) * 2010-03-08 2013-05-16 Zainab Jamal Methods and Systems for Identifying Customer Status for Developing Customer Retention and Loyality Strategies
US8554653B2 (en) 2010-07-22 2013-10-08 Visa International Service Association Systems and methods to identify payment accounts having business spending activities
US20130173419A1 (en) 2011-12-30 2013-07-04 Certona Corporation Recommending repeated transactions
US20140032333A1 (en) * 2012-07-24 2014-01-30 Fair Isaac Corporation Scoring Consumer Transaction Consistency and Diversity
US20150120382A1 (en) 2013-10-24 2015-04-30 International Business Machines Corporation Optimizing a business performance forecast
US10558924B2 (en) 2014-05-23 2020-02-11 DataRobot, Inc. Systems for second-order predictive data analytics, and related methods and apparatus
US20160055427A1 (en) 2014-10-15 2016-02-25 Brighterion, Inc. Method for providing data science, artificial intelligence and machine learning as-a-service
US10387939B2 (en) 2015-08-21 2019-08-20 Q2 Software, Inc. Method, medium, and system for surfacing recommendations
US9699205B2 (en) 2015-08-31 2017-07-04 Splunk Inc. Network security system
US10453065B2 (en) * 2016-02-12 2019-10-22 Visa International Service Association Method and system for determining terminal location
US10970891B2 (en) 2016-02-29 2021-04-06 Oracle International Corporation Systems and methods for detecting and accommodating state changes in modelling
US10902365B2 (en) * 2016-12-23 2021-01-26 Yodlee, Inc. Identifying recurring series from transactional data
US11468472B2 (en) 2017-01-12 2022-10-11 Fair Isaac Corporation Systems and methods for scalable, adaptive, real-time personalized offers generation
US11481661B2 (en) 2017-02-17 2022-10-25 Visa International Service Association Segmentation platform using feature and label pairs
US11625569B2 (en) 2017-03-23 2023-04-11 Chicago Mercantile Exchange Inc. Deep learning for credit controls
US20180350006A1 (en) 2017-06-02 2018-12-06 Visa International Service Association System, Method, and Apparatus for Self-Adaptive Scoring to Detect Misuse or Abuse of Commercial Cards
US20190073714A1 (en) 2017-06-05 2019-03-07 Mo Tecnologias, Llc System and method for issuing a loan to a consumer determined to be creditworthy onto a transaction card
US10635565B2 (en) 2017-10-04 2020-04-28 Servicenow, Inc. Systems and methods for robust anomaly detection
US11315107B2 (en) * 2018-03-15 2022-04-26 Jpmorgan Chase Bank, N.A. Automated purchase card disable system and method
US20200380335A1 (en) 2019-05-30 2020-12-03 AVAST Software s.r.o. Anomaly detection in business intelligence time series

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090132347A1 (en) * 2003-08-12 2009-05-21 Russell Wayne Anderson Systems And Methods For Aggregating And Utilizing Retail Transaction Records At The Customer Level
US20090276346A1 (en) * 2008-05-02 2009-11-05 Intuit Inc. System and method for classifying a financial transaction as a recurring financial transaction
US20110238550A1 (en) * 2010-03-24 2011-09-29 Joshua Reich Systems and methods for predicting financial behaviors
US20150220983A1 (en) * 2014-02-05 2015-08-06 Mastercard International Incorporated Systems and Methods of Determining Predictors Based on Transaction Data and Social Network Data
US20180053188A1 (en) * 2016-08-17 2018-02-22 Fair Isaac Corporation Customer transaction behavioral archetype analytics for cnp merchant transaction fraud detection
US20180082325A1 (en) * 2016-09-16 2018-03-22 Adap.Tv, Inc. Demographic prediction using aggregated labeled data
US10387883B2 (en) * 2017-02-09 2019-08-20 Visa International Service Association Electronic transactional data based predictive system
US20210027300A1 (en) * 2019-07-26 2021-01-28 Visa International Service Association System, Method, and Computer Program Product for Generating Aggregations Associated with Predictions of Transactions

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20220245641A1 (en) * 2021-02-04 2022-08-04 Visa International Service Association Intelligent recurring transaction processing and fraud detection
US11823201B2 (en) * 2021-02-04 2023-11-21 Visa International Service Association Intelligent recurring transaction processing and fraud detection

Also Published As

Publication number Publication date
US20210117990A1 (en) 2021-04-22
US11144935B2 (en) 2021-10-12

Similar Documents

Publication Publication Date Title
US11216751B2 (en) Incremental time window procedure for selecting training samples for a supervised learning algorithm
US20220044261A1 (en) Technique to aggregate merchant level information for use in a supervised learning model to detect recurring trends in consumer transactions
US20220101214A1 (en) Machine learning artificial intelligence system for predicting popular hours
US10387900B2 (en) Methods and apparatus for self-adaptive time series forecasting engine
US11107166B2 (en) Multi-step day sales outstanding forecasting
US20210117952A1 (en) Method for detecting recurring payments or income in financial transaction data using supervised learning
Chen et al. Off to the races: A comparison of machine learning and alternative data for predicting economic indicators
CN110415119A (en) Model training, bill business prediction technique, device, storage medium and equipment
CN103370722B (en) The system and method that actual volatility is predicted by small echo and nonlinear kinetics
US10489865B1 (en) Framework for cash-flow forecasting
US20190114711A1 (en) Financial analysis system and method for unstructured text data
US11568463B2 (en) Heterogeneous graph embedding
RU2723448C1 (en) Method of calculating client credit rating
US20170213294A1 (en) Methods, systems and computer program products for calculating an estimated result of a tax return
US10600063B2 (en) Real-time system to identify and analyze behavioral patterns to predict churn risk and increase retention
US20220067460A1 (en) Variance Characterization Based on Feature Contribution
US20210117993A1 (en) Variable matching criteria defining training labels for supervised recurrence detection
EP4044094A1 (en) System and method for determining and managing reputation of entities and industries through use of media data
Arlt The problem of annual inflation rate indicator
JP7373142B2 (en) Profit and loss calculation for cryptocurrency transactions
Nagashima et al. Data Imputation Method based on Programming by Example: APREP-S
US8156127B1 (en) Method and system for data arbitration
US20230214456A1 (en) Dynamic calibration of confidence-accuracy mappings in entity matching models
CN115660860A (en) Personal investment internal yield calculation method and system and computer equipment
Han et al. Production Management with General Demands and Lost Sales

Legal Events

Date Code Title Description
AS Assignment

Owner name: CAPITAL ONE SERVICES, LLC, VIRGINIA

Free format text: ASSIGNMENT OF ASSIGNORS INTEREST;ASSIGNORS:JUMPER, DANIEL;GERSTLE, JEREMY;ANTHONY, OLUFEMI;AND OTHERS;SIGNING DATES FROM 20191003 TO 20191017;REEL/FRAME:057766/0641

STPP Information on status: patent application and granting procedure in general

Free format text: DOCKETED NEW CASE - READY FOR EXAMINATION

STPP Information on status: patent application and granting procedure in general

Free format text: NON FINAL ACTION MAILED

STPP Information on status: patent application and granting procedure in general

Free format text: FINAL REJECTION MAILED

STPP Information on status: patent application and granting procedure in general

Free format text: DOCKETED NEW CASE - READY FOR EXAMINATION

STPP Information on status: patent application and granting procedure in general

Free format text: NON FINAL ACTION MAILED

STPP Information on status: patent application and granting procedure in general

Free format text: RESPONSE TO NON-FINAL OFFICE ACTION ENTERED AND FORWARDED TO EXAMINER

STPP Information on status: patent application and granting procedure in general

Free format text: FINAL REJECTION MAILED

STPP Information on status: patent application and granting procedure in general

Free format text: DOCKETED NEW CASE - READY FOR EXAMINATION

STPP Information on status: patent application and granting procedure in general

Free format text: NON FINAL ACTION MAILED