Sub topic 3
Detecting Structuring with Aggregation Windows
Assume you understand accounts, cash deposits, transfers, and basic Python and SQL. Detection starts by comparing activity with the customer’s expected profile, not by treating one transaction as proof.
Structuring and aggregation windows
Structuring splits cash transactions into smaller amounts to avoid a reporting threshold. The funds may be legitimate, but deliberately avoiding a required report can still be an offence.
Group transactions by account and review a rolling time window. Flag several deposits just below the threshold when their combined value is high.
from collections import defaultdict
from datetime import timedelta
def flag_structuring(deposits, threshold=10_000, floor=8_000):
grouped = defaultdict(list)
for account, day, amount in deposits:
grouped[account].append((day, amount))
alerts = []
for account, items in grouped.items():
items.sort()
for i, (start, _) in enumerate(items):
window = [a for day, a in items[i:]
if day < start + timedelta(days=3)]
near = [a for a in window if floor <= a < threshold]
if len(near) >= 3 and sum(window) > threshold:
alerts.append((account, start, sum(window)))
break
return alertsFan-in and rapid pass-through
A funnel or mule account often receives money from many unrelated senders and quickly transfers most of it elsewhere.
SELECT dst_account, COUNT(DISTINCT src_account) AS senders,
SUM(amount) AS inflow
FROM transfers
WHERE ts >= CURRENT_DATE - INTERVAL '7 days'
GROUP BY dst_account
HAVING COUNT(DISTINCT src_account) >= 5
ORDER BY inflow DESC;Graph analysis
Represent accounts as nodes and transfers as directed edges. High fan-in, short holding times, and repeated paths to cash-out accounts can reveal a mule network.
False positives and limits
A cash-intensive retailer, payroll processor, or family network may create the same pattern. Check occupation, business purpose, geography, account age, prior explanations, and expected activity. Criminals may evade rules by changing amounts, accounts, channels, or timing. Rules produce leads, not conclusions.
Combined case and escalation
An account receives deposits just below the threshold, accepts transfers from many senders, and forwards most funds within hours. Investigators should document the timeline, counterparties, amounts, customer explanation, account purpose, and linked accounts. Escalate when the combined facts remain inconsistent with legitimate activity. A suspicious activity report should describe observable behaviour and why it is suspicious, without asserting facts the evidence does not establish.
Exercise
Why is a three-day aggregation window more useful than reviewing each deposit alone?
Show answer
It exposes related transactions whose combined amount and timing suggest deliberate splitting or coordinated movement.