Sub topic 9
Transaction Monitoring Rules and Scenarios
This chapter assumes you know the three laundering stages and the red flags for structuring, funnel accounts, and mules from earlier chapters. You should also be able to read short Python and SQL. The chapter covers how a bank turns those red flags into automated rules, how it organizes rules into scenarios, and how it tunes them. The specific detection logic for structuring and funnel activity comes in the next two chapters.
What transaction monitoring does
Transaction monitoring is the process of scanning customer activity after it happens and raising an alert when it matches a pattern of concern. It is separate from sanctions screening, which checks names at the moment of a payment. Monitoring looks at behavior over time: amounts, frequency, counterparties, channels, and geography.
Monitoring does not decide that someone is laundering money. It produces alerts, and a human analyst decides whether an alert deserves escalation. A good system is judged by how many of its alerts lead to useful outcomes, not by how many alerts it generates.
Anatomy of a rule
A rule is a condition evaluated against data. Most rules have the same five parts.
- Population. Which customers or accounts the rule applies to, such as retail accounts only.
- Event filter. Which transactions count, such as cash deposits or incoming instant payments.
- Aggregation. How events are grouped: by account, by customer, by counterparty, and over what window.
- Condition. The measure and the limit, such as a count of at least 3 or a total above 10,000.
- Parameters. The numbers that can be changed without rewriting the rule.
Keeping parameters separate from logic matters in practice. Tuning should mean editing a value in a reviewed configuration, not changing code.
Rules versus scenarios
A rule is a single test. A scenario is a rule, or a small set of rules, that targets one typology and carries the documentation around it. A scenario usually records:
- the typology it covers and the stage of laundering it addresses
- the data it needs, and the known gaps in that data
- the parameters and the reason each value was chosen
- the segments it applies to
- how alerts are prioritized and what an analyst should check first
Scenarios give you coverage you can explain. A regulator or internal auditor may ask which typologies you monitor and how. A list of scenarios mapped to typologies answers that, while a pile of unrelated rules does not.
| Typology | Typical scenario | Core measure | Common segment |
|---|---|---|---|
| Structuring | Repeated sub-threshold cash deposits | Count and sum in a short window | Retail and small business |
| Funnel account | Many-to-one inflow with quick outflow | Distinct senders, outflow-to-inflow ratio | Retail |
| Mule activity | New account, sudden high-velocity transfers | Velocity against account age | Retail and digital-only |
| Profile mismatch | Activity far above expected | Ratio to declared expected activity | All segments |
Why customer due diligence data matters
A fixed rule treats every customer the same. A student and a cash-intensive restaurant both depositing 9,000 in a week look identical to a fixed-threshold rule, yet they mean very different things. Customer due diligence (CDD) data fixes this. It records who the customer is, what they do, and what activity they said to expect when the account was opened.
Two techniques use that data:
- Segmentation. Group customers with similar profiles, such as student, salaried employee, or cash-intensive business. Set parameters per segment.
- Expected-activity comparison. Compare actual behavior to the customer's own declared profile.
The following PostgreSQL query flags accounts whose cash deposits over 30 days exceed three times their expected monthly cash amount.
-- PostgreSQL syntax
SELECT d.account_id,
SUM(d.amount) AS cash_30d,
p.expected_monthly_cash,
ROUND(SUM(d.amount) / NULLIF(p.expected_monthly_cash, 0), 1) AS ratio
FROM cash_deposits AS d
JOIN customer_profile AS p ON p.account_id = d.account_id
WHERE d.ts >= CURRENT_DATE - INTERVAL '30 days'
GROUP BY d.account_id, p.expected_monthly_cash
HAVING SUM(d.amount) > 3 * p.expected_monthly_cash;If expected_monthly_cash is zero, NULLIF makes the ratio null, but the HAVING clause still fires for any positive deposit total. That is intended: cash from an account that said it would receive none is worth a look.
A profile is only as good as its data. Stale or generic profiles, such as every customer declaring "salary" as the source of funds, make this comparison weak. Many banks refresh profiles when behavior changes, not only on a fixed review cycle.
Parameters and the alert trade-off
Every rule has a trade-off between two failure types:
- False negatives. Suspicious activity that no alert catches.
- False positives. Alerts on normal activity that waste analyst time.
Lowering a threshold catches more suspicious activity and also creates more noise. Raising it does the reverse. There is no setting that removes both errors, so tuning means picking a deliberate balance and recording why.
Two named tests support this:
- Above-the-line testing. Run the rule at its current threshold and review the alerts it produced. This tells you the hit rate of what you already see.
- Below-the-line testing. Lower the threshold, sample the extra alerts that would appear, and review them. This tells you what you are missing. If many of the extra alerts are productive, the threshold is too high.
The sketch below measures alert volume and precision at several threshold values, using past analyst outcomes. Each case is a pair of the rule's measure and whether the analyst escalated the alert.
def tune(cases, thresholds):
"""cases: list of (metric_value, was_escalated) from reviewed alerts."""
rows = []
for t in thresholds:
fired = [escalated for value, escalated in cases if value >= t]
alerts = len(fired)
hits = sum(fired)
precision = hits / alerts if alerts else 0.0
rows.append((t, alerts, hits, round(precision, 2)))
return rows
cases = [(2, False), (2, False), (3, False), (3, True),
(4, False), (4, True), (5, True), (6, True)]
for t, alerts, hits, precision in tune(cases, [2, 3, 4, 5]):
print(f"threshold={t} alerts={alerts} escalated={hits} precision={precision}")Running it prints:
threshold=2 alerts=8 escalated=4 precision=0.5
threshold=3 alerts=6 escalated=4 precision=0.67
threshold=4 alerts=4 escalated=3 precision=0.75
threshold=5 alerts=2 escalated=2 precision=1.0Raising the threshold from 3 to 4 removes two alerts and loses one escalated case. Raising it to 5 gives perfect precision but drops half the true positives. Precision alone would pick the highest threshold, which is the wrong choice here. You must weigh the missed cases too.
Common design errors
- Hard-coding the reporting threshold. A rule that looks only at deposits of exactly 9,000 to 9,999 is easy to evade. Use a band, as the structuring example in this tutorial does with a floor, and keep the band as a parameter.
- Aggregating at the wrong level. Evaluating each account alone misses a customer who splits deposits across several accounts. Decide whether the rule groups by account, customer, or household.
- Ignoring account age. A new account with high velocity is a stronger signal than the same velocity on a ten-year-old account. Add account age as a filter or as a risk weight.
- Using one threshold for all segments. A single value that works for retail will bury a business segment in alerts.
- Changing parameters without a record. Undocumented tuning leaves you unable to explain why coverage changed.
- Treating alert count as success. A scenario that fires rarely and often gets escalated may be healthier than one that fires constantly.
Governance and change control
Parameter changes affect what the bank sees, so they are controlled changes. A typical process proposes the change with supporting test results, reviews it independently, approves it, deploys it, and then monitors alert volume afterward. Banks also validate scenarios periodically, checking that the data feeding them is complete and that the logic still matches the typology. A rule that silently stops receiving a data field, such as one payment channel dropping out of the feed, can look quiet while the bank is actually blind.
Connecting back to typologies
Each scenario encodes assumptions about how a typology appears in data. Structuring appears as clustered sub-threshold cash. A funnel account appears as many distinct senders and fast outflow. A mule often appears as a young account with sudden velocity. The next chapters build the structuring and funnel rules in detail. Later chapters show how graph analysis catches networks that single-account rules cannot.
Exercise
A scenario for repeated sub-threshold cash deposits produces 400 alerts a month, and only 8 are escalated. An analyst proposes raising the minimum deposit count from 3 to 5. What evidence should you gather before approving the change, and what could go wrong?
Show answer
Run the rule at count 5 against past alerts and check how many of the 8 escalated cases would have been lost. Run below-the-line testing by sampling alerts from the range between the old and new settings, to see whether productive cases sit there. Also check segment effects, since a small business segment may need a different value than retail. The risk is that a higher count lets criminals who split deposits into fewer, larger pieces fall through. If testing shows most of the 8 cases have a count of 5 or more, the change is reasonable. Otherwise, keep the count and reduce noise another way, for example with segmentation or expected-activity comparison. Document the decision either way.
Exercise
Why is comparing activity to a customer's expected profile better than applying one fixed threshold to every account, and what limits this approach?
Show answer
A fixed threshold ignores context, so normal activity for one customer type generates alerts while genuinely unusual activity for another type stays below the limit. A profile comparison measures each customer against their own declared behavior and catches deviations that matter for that customer. The limit is data quality: if the profile is stale, generic, or wrong, the comparison is unreliable, and a customer who lied about expected activity at onboarding will make unusual activity look normal.