Rule Processor Overview

alert-icon-red-11.png

 

ATTENTION:

This page has been migrated to the Tazama GitHub repository and is now located at:

https://github.com/frmscoe/docs/blob/dev/Product/rule-processor-overview.md

This page will no longer be maintained in Confluence.

alert-icon-red-11.png

 

ATTENTION:

This page has been migrated to the Tazama GitHub repository and is now located at:

https://github.com/frmscoe/docs/blob/dev/Product/rule-processor-overview.md

This page will no longer be maintained in Confluence.

 

Introduction

The foundation of the Tazama Transaction Monitoring service is its ability to evaluate incoming transactions for financial crime risk through the execution of a number of conditional statements (rules) that render a boolean (True or False) result based on specific attributes of the incoming transaction and past transactions.

The Channel Router & Setup Processor (CRSP) is responsible for determining which channels and typologies a transaction must be submitted to for the transaction to be evaluated for Financial Crime Risk. As part of this process, the CRSP determines which rules must receive the transaction and then routes the transaction to these rules as the next step in the evaluation process.

The rules receive the transaction, as well as the portion of the Network Map that was used to identify the rules as recipients (and by association also identifies which typologies are beneficiaries of those rules’ results).

Each rule executes as a discrete and bespoke function in the evaluation process.

Once a rule has completed its execution, it will pass its result, along with the transaction information and its Network sub-map to the Typology Processor where the rule result will be combined with the results from other rules to score a transaction according to a specific typology (a way to describe a specific kind of financial crime).

Definitions

Atomic Rule: A single logic statement that evaluates to a single outcome. (Think of an atomic rule as a typical “IF” statement with a single term.)

Example:

IF an MSISDN has been associated with a new SIM ICCID within the last 3 days

In this example, the rule will evaluate directly to either TRUE or FALSE.

Compound rule: The combination of multiple atomic rules through logic operators (AND, OR, XOR) that evaluates to a single outcome.

Example:

IF the Payer is a private individual

AND

IF the Payer had never performed a transfer request before

Compound rules are expected to only feature as typologies where the results from several rules are combined into a typology and scored to identify potential financial crime.

The logical “sum” that is used to combine rule results is called the “typology expression”.

Rule-set: Multiple mutually exclusive logic statements that are combined to evaluate to a single outcome. (Think of a rule-set as a typical “CASE” statement.)

Example:

IF no transactions had been performed to or from a payee’s account within a given time-frame

Sub-rule ref

Statement

Outcome

Reason

.01

IF the elapsed time since the most recent transfer to or from the account is more than 3 months, but less than 6 months

Payee account dormancy 3 = TRUE

Payee account dormant for between 3 and 6 months

.02

IF the elapsed time since the most recent transfer to or from the account is more than 6 months, but less than 12 months

Payee account dormancy 6 = TRUE

Payee account dormant for between 6 and 12 months

.03

IF the elapsed time since the most recent transfer to or from the account is more than 12 months

Payee account dormancy 12 = TRUE

Payee account dormant for longer than 12 months

.00

IF the elapsed time since the most recent transfer to or from the account is less than 3 months

Payee account dormancy = FALSE

Payee account not dormant in the last 3 months

.04

IF no prior transfer requests from or to the account could be found at all

Payee account dormancy = FALSE

Inconclusive payee account dormancy - no transactions found

In this example, the rule that is evaluated to be TRUE will be identified in the output of the rule. For example, if there had been no transfer requests from or to the account in 211 days, the rules processor will output “Rule 003@1.0.0.02: Payee account dormancy 6 = TRUE”, along with the appropriate reason code.

Rule-sets often include “exit conditions” that do not evaluate the specific rule, but rather define a scenario where the rule cannot be evaluated, for example a rule that evaluates transaction history, but no transaction history could be retrieved.

Rule processing context

 

3.0. Evaluate transaction

The Channel Routing and Setup Processor (CRSP) will submit the transaction to each of the rules identified by the CRSP as required for the evaluation of the transaction. The CRSP will include the local Network Sub-map that contains the transaction, channel, rule and typology routing information determined for the transaction.

The CRSP will also consolidate multiple occurrences of a specific unique rule into a single rule processor execution, across any number of channels or typologies in the Network sub-map (for a specific transaction type).

For each rule processor invoked by the CRSP:

4.1. Read rule config

The rule processor will read its default configuration parameters from a configuration file stored in the Tazama Configuration database. A rule processor can be parameterised with the following information:

Time-frames: Time-frames are input parameters that define the scope of a historical query. If a condition is to be evaluated over data accumulated during a specific period, e.g. IF multiple incoming transactions within the last hour show similar or identical values for transaction amounts (within 5%): The time-frame for the evaluation is 1 hour. Timeframes are always specified in Epoch Millis as the lowest common unit of measure for time in the Tazama platform. (See: https://www.epochconverter.com/ ).

Band limits: If a number of rule conditions are evaluated as a rule-set, band limits define the lower and upper bounds of each of the rule bands. In our rule-set example above: IF no transactions had been performed to or from a payee’s account within a given time-frame, the band limits are:

Sub-Rule Ref

Lower limit

Upper limit

Sub-Rule Ref

Lower limit

Upper limit

.00

 

3 months

.01

3 months

6 months

.02

6 months

12 months

.03

12 months

 

The configuration for a specific rule will be read from a JSON configuration file stored in the config database.

For a consistent approach in defining the parameters for various rule processors, we are defining the configuration for an atomic rule based on a threshold parameter the same way as we would define the multiple bands for a rule-set. In effect, a threshold merely defines two bands where the threshold is the upper limit in one band, and the lower limit in the second.

Some bands do not have an explicit lower or upper limit and these bands are considered to be “unbounded” with an unspecified lower or upper limit. We define these limits with a “null” value, specifically to differentiate them from 0 (zero) limits that actually defines a legitimate explicit value.

In JSON, we do not explicitly specify a “null” value, but rather we leave the limit that would be “null” completely out of the config file. We would then need to interpret the “missing” limit as having a “null” value when the configuration is read into the processor.

For “exit condition” bands both the upper and lower limits are “null”. For example, a rule-set may include an exit condition for when there is insufficient transaction history to draw a conclusion.

Every rule band evaluates to either a true or false outcome. In general, the true or false outcomes are somewhat arbitrary, but the convention followed in the Tazama platform is that a false outcome is not expected to have a weighted scoring impact on the associated typology score and a true result is expected to have an impact on the typology score.

Exit condition outcomes are almost always “false” with a sub-rule reference of “.00”. If there are multiple exit conditions, the exit condition sub-rule references are numbered to precede those of the result bands. Exit conditions are expected to be static through-out the lifetime of a specific rule while result bands may change as rules are calibrated.

We also apply a standard operator to the evaluation of limits in any band:

Lower limits are always evaluated with a >= (greater or equal)

Upper limits are always evaluated with a < (less than)

Case conditions:

Where result bands cater for multiple numerical ranges of results, case conditions provide for explicitly defined results. For example, if we want to evaluate the transaction type in a transaction, the specific outcomes would be defined in a “case” result-set.

Case conditions are not defined with lower and upper limits.

The “.00” sub-rule reference condition is always a ELSE statement to the case, if one is required. An ELSE condition is always recommended to ensure the appropriate functioning of the rule.

Reasons:

Every rule result is described by an user-readable description that will form part of the ultimate transaction result to make it easier for investigators to review the rule results and understand why a specific typology alert was triggered.

Example 1 (bands):

Rule 018 is an atomic rule with two outcomes against a calculated threshold value. The threshold in the configuration is the multiplier that is used to calculate the threshold that is used to determine the rule result. The specification of the configuration is presented as follows:

Threshold = 1.5

Time-frame = 3 months

Rule ref

Sub-rule ref

Statement

Outcome

Reason

018

.01

IF the debtor transfers >  (maximum amount * threshold) in the timeframe (3 months)

TRUE

Exceptionally large outgoing transfer detected

018

.02

IF the debtor transfers <= (maximum amount * threshold) in the timeframe (3 months)

FALSE

Outgoing transfer within historical limits

018

.00

If no transaction history can be retrieved for the rule

FALSE

Insufficient transaction history

Translated to a “band” specification, this would be presented as follows:

Rule ref

Sub-rule ref

lower limit

upper limit

Statement

Outcome

Reason

018

.01

0

1.5

IF the debtor transfers >  (maximum amount * threshold) in the timeframe (3 months)

TRUE

Exceptionally large outgoing transfer detected

018

.02

1.5

null

IF the debtor transfers <= (maximum amount * threshold) in the timeframe (3 months)

FALSE

Outgoing transfer within historical limits

018

.00

null

null

If no transaction history can be retrieved for the rule

FALSE

Insufficient transaction history

 

The representation of this specification in a config file would then be:

{     "id": "018@1.0.0",     "cfg": "1.0.0",     "config": {         "timeframes": [             {                 "threshold": 7889229000             }         ],         "bands": [             {                 "subRuleRef": ".00",                 "outcome": false,                 "reason": "Insufficient transaction history"             },             {                 "subRuleRef": ".01",                 "lowerLimit": 0,                 "upperLimit": 1.5,                 "outcome": true,                 "reason": "Exceptionally large outgoing transfer detected"             },             {                 "subRuleRef": ".02",                 "lowerLimit": 1.5,                 "outcome": true,                 "reason": "Outgoing transfer within historical limits"             }         ]     } }

 

Example 2 (case):

Rule 078 is an atomic rule that checks if a specific transaction is classified as a “WITHDRAWAL”. The specification of the configuration is presented as follows:

Rule ref

Sub-rule ref

Statement

Outcome

Reason

078

.01

IF the transaction type is “WITHDRAWAL”

TRUE

The transaction is identified as a cash withdrawal

078

.00

IF the transaction type is NOT “WITHDRAWAL” (ELSE)

FALSE

The transaction type is non-indicative for this typology

The representation of this specification in a config file would then be:

{   "id": "078@1.0.0",   "cfg": "1.0.0",   "config": {     "case": [       {         "subRuleRef": ".01",         "value": "WITHDRAWAL",         "outcome": true,         "reason": "The transaction is identified as a cash withdrawal"       },       {         "subRuleRef": ".00",         "outcome": false,         "reason": "The transaction type is non-indicative for this typology"       }     ]   } }

4.2. Read historical transactions

Some rules require additional data from transactions that had been processed previously, or even the results from previous evaluations. These rules must be able to retrieve the required information from the transaction history repository/database.

For example, the rule:

IF multiple incoming transactions within the last hour show similar or identical values for the transaction description by calculating the Damerau–Levenshtein distance between the descriptions

would require all previous transactions routed to a single creditor account within the last hour. (Coincidentally, explicit values for “multiple” and “similar” would be defined through “threshold” parameters, as would an explicit “time-frame” for “within the last hour”.)

4.3. Execute rule

Taking into account the transaction and the input parameters, the rule would execute according to its coded instructions to determine a TRUE or FALSE result, as well as the reason for the result.

A rule may render multiple TRUE or FALSE outcomes, but for different reasons. For example, a rule may render a FALSE result if there are insufficient historical transactions to effectively calculate a result, or if the rule calculation fell below the required threshold for a TRUE result. For this reason, a rule result must always be supported by a descriptive reason. The reason that is part of a rule result will be used in the report to users on the transaction outcomes as well as more descriptive information to support investigations.

4.4. Submit rule results

The rule processor passes its completed result to the Typology Processor. In contrast to a rule processor which is discrete and bespoke, the Typology Processor is a single interpreter that calculates typology scores for any typology based on an external typology-specific configuration.

The rule result message includes the original transaction, the Network Sub-map and the rule execution result (Rule identifier, sub-rule identifier (for rule-sets), boolean rule result and result reason).