Sub topic 1
What transaction monitoring does and why it exists
Prerequisites
This chapter assumes you already know three things:
- What money laundering is, and why banks and other financial institutions must try to detect it.
- Common transaction types: cash deposits, wire transfers and card payments.
- Basic Python, enough to read a short function that loops over a list of dictionaries.
Where monitoring sits in an AML program
An anti-money laundering (AML) program is the set of controls a financial institution uses to prevent, detect and report money laundering. Most programs include these parts:
- Customer due diligence (CDD) at onboarding, which collects who the customer is and what they expect to do with the account.
- Sanctions and watchlist screening.
- Transaction monitoring.
- Investigation and regulatory reporting, such as filing a suspicious activity report (SAR).
Transaction monitoring (TM) is the detection step that runs after an account is open. Onboarding checks happen once, or are refreshed on a schedule. Monitoring runs continuously and looks at what customers actually do. Its job is to find activity that looks unusual or suspicious for that customer and to hand it to a human for review.
The unit of output is an alert. An alert is a record that says a rule or model found activity worth a person's attention. An alert is not a finding of crime. Most alerts are closed after review. A small share are escalated and may lead to a SAR.
Why it exists
Regulators in most jurisdictions require institutions to monitor customer activity and report suspicious activity. Institutions also have their own reasons: avoiding fines, protecting their reputation, and not being used to move criminal proceeds.
People cannot read every transaction. A mid-sized bank can process millions a day. Monitoring software narrows that volume to a queue of alerts that analysts can work through.
What the system takes in and produces
At a high level, a monitoring system turns data into alerts in four steps:
- Collect transactions and customer information.
- Apply detection logic: rules, often called scenarios, and sometimes statistical or machine-learning models.
- Create an alert record when the logic fires.
- Route alerts to analysts, who review them and record a decision, called a disposition.
The rest of this tutorial follows this path in order. Later chapters cover each box in detail.
A first look at an alert
The core idea fits in a few lines of code. A rule looks at transactions and emits an alert when a condition holds. The example below flags any single cash deposit at or above a fixed amount.
from datetime import datetime
LARGE_CASH_LIMIT = 10000
def large_cash_alerts(transactions):
"""Create one alert per cash deposit at or above the limit."""
alerts = []
for t in transactions:
if t["type"] == "cash_deposit" and t["amount"] >= LARGE_CASH_LIMIT:
alerts.append({
"customer_id": t["customer_id"],
"scenario": "large_cash_deposit",
"amount": t["amount"],
"timestamp": t["timestamp"],
})
return alerts
transactions = [
{"customer_id": "C1", "type": "cash_deposit", "amount": 12000, "timestamp": datetime(2026, 3, 2, 10, 0)},
{"customer_id": "C2", "type": "cash_deposit", "amount": 900, "timestamp": datetime(2026, 3, 2, 11, 0)},
{"customer_id": "C2", "type": "wire_transfer", "amount": 50000, "timestamp": datetime(2026, 3, 2, 12, 0)},
]
for a in large_cash_alerts(transactions):
print(a["customer_id"], a["scenario"], a["amount"])
# C1 large_cash_deposit 12000Only C1 produces an alert. The large wire for C2 is ignored because this rule only covers cash deposits. Every rule has a defined scope, so each one catches only the behavior it was written for.
Common misunderstandings
- An alert means the customer is a criminal. It means the pattern deserves a look. Many legitimate customers, such as cash-heavy businesses, trigger alerts.
- More alerts means better monitoring. Alert volume must match analyst capacity. A flood of low-value alerts hides the few that matter, and analysts may start closing alerts without careful review.
- Monitoring replaces onboarding checks. The two work together. Monitoring compares behavior against what onboarding recorded, so poor customer data weakens detection.
Exercise
A bank's monitoring system produces 2,000 alerts per day, and its analysts can properly review 300. Name one risk this creates and one general direction for fixing it.
Show answer
Risk: analysts cannot review the alerts carefully, so real suspicious activity may be missed or closed quickly in the backlog. Fix: reduce low-value alerts, for example by tuning thresholds, segmenting customers so thresholds fit each group, or prioritizing alerts so the riskiest are reviewed first.
Exercise
In the code example, would a cash deposit of exactly 10,000 create an alert? Why does the answer depend on the comparison operator?
Show answer
Yes. The rule uses >=, so an amount equal to the limit fires. With > instead, 10,000 would not fire. Boundary choices like this decide which transactions are caught, which is why they must be set deliberately.