Sub topic 5
Transaction Monitoring Against the Customer Profile
This chapter covers how a institution compares what a customer does with what it expects them to do. It assumes you know what CDD and KYC mean at onboarding, the basic AML stages (placement, layering, integration), and the risk-based approach. It also assumes you can read basic Python.
Why the profile is the baseline
Transaction monitoring is the review of customer activity to spot behavior that does not fit what the institution knows about the customer. The key phrase is "what the institution knows." Without a profile, a monitoring system can only say that a payment is large or unusual in general. With a profile, it can say that a payment is unusual for this customer.
A customer profile is the record built during onboarding and refreshed during reviews. It usually holds:
- The customer type and business activity, such as a salaried employee or an import company.
- The stated purpose of the account and the products used.
- Expected activity: typical monthly inflow and outflow, number of transactions, and common payment types.
- Expected counterparties and countries involved.
- Source of funds and, for higher-risk customers, source of wealth.
- The customer risk rating.
Monitoring turns that record into a test. The profile says "a bakery that receives about 5,000 a month, mostly card settlements and small cash deposits." Monitoring asks whether the last 30 days look like that.
Where monitoring sits in the lifecycle
Monitoring is one of several ongoing duties. It watches transactions as they happen or in batches. Screening watches names against lists. Periodic and event-driven reviews refresh the profile itself. These controls feed each other: an alert can trigger a review, and a review can change the profile that monitoring uses next.
Three ways to compare activity with the profile
Most scenarios use one of three comparisons.
- Against the stated profile. Actual activity is compared with the expected figures recorded for this customer. This is the most direct use of the profile.
- Against the customer's own history. Activity this month is compared with the customer's past months. A sudden change matters even if the absolute amount is within the stated range.
- Against a peer group. The customer is compared with similar customers, such as other small retailers in the same region. This helps when the profile is thin or new, and it can reveal customers who are all within their own limits but far from their peers.
Each comparison has weaknesses. A stated profile can be wrong from day one. History can be a pattern that was already suspicious. Peer groups can be badly defined. Mature programs use more than one.
A minimal volume scenario
The simplest scenario compares monthly inflow with the expected amount recorded in the profile.
from dataclasses import dataclass
@dataclass
class Profile:
expected_monthly_inflow: float # declared at onboarding or last review
def volume_deviation_alert(profile: Profile, actual_inflow: float, multiplier: float = 2.0) -> bool:
"""Raise an alert when monthly inflow exceeds a multiple of the expected amount."""
return actual_inflow > profile.expected_monthly_inflow * multiplier
profile = Profile(expected_monthly_inflow=5000.0)
print(volume_deviation_alert(profile, 4200.0)) # False
print(volume_deviation_alert(profile, 13500.0)) # TrueWith an expected inflow of 5,000 and a multiplier of 2.0, the alert line is 10,000. An inflow of 4,200 is below it. An inflow of 13,500 is above it, so an alert is raised.
The multiplier is a threshold, and thresholds need tuning. Set it too low and analysts drown in alerts for ordinary variation, such as a seasonal sales peak. Set it too high and real deviations pass unnoticed. A later chapter covers tuning and validation. For now, treat 2.0 as an example and not a recommendation.
What this scenario misses
This single rule has clear blind spots, and knowing them is part of using it well.
- Structuring below the line. A customer who stays at 9,900 every month never trips a 10,000 line, yet that is almost double the expected inflow.
- Low volume, odd pattern. The total can be normal while the mix is not, for example many small incoming transfers from unrelated individuals.
- Outflows. The rule looks only at inflow. Funds that arrive and leave quickly (pass-through behavior) need a separate scenario.
- Currency and counterparties. The rule ignores where the money came from or went to.
- New customers. A new account may have no history, and its declared profile may be a guess.
What good profile data looks like
A monitoring rule can only be as good as the profile it reads. Three data problems cause most failures.
| Problem | Effect on monitoring | Typical fix |
|---|---|---|
| Vague expected activity ("general trading") | No meaningful baseline, so rules use only generic thresholds | Capture concrete ranges and payment types at onboarding |
| Stale profile | Normal growth looks like a deviation, or real change goes unnoticed | Refresh at periodic and event-driven reviews |
| Profile never used by the system | Rules compare only against fixed global limits | Store expected activity in structured fields the engine can read |
Capturing expected activity as numbers and categories, not free text, is what lets a scenario use it. A free-text note such as "approximately 5k monthly" is useful to a human but invisible to a rule.
Timing: real-time and batch
Monitoring can run in two modes.
- Batch (post-event) monitoring runs after transactions have settled, often daily or monthly. It suits behavioral comparisons that need a window of data, such as the monthly total above.
- Real-time (pre-event) monitoring checks a payment before or as it is processed. It suits cases where the institution may need to stop or hold the payment, such as a sanctions hit or a payment to a prohibited destination.
Most behavioral scenarios are batch because they need context over days or weeks. Real-time checks are narrower and more rigid, because a wrong block interrupts a customer immediately.
Risk rating changes the intensity
The customer risk rating drives how closely the profile is enforced. A higher-risk customer typically gets lower thresholds, more scenarios, shorter look-back windows, and more senior review of alerts. A lower-risk customer gets looser tolerances. In code, this can be as simple as a multiplier per tier.
MULTIPLIER_BY_TIER = {"high": 1.5, "medium": 2.0, "low": 3.0} # illustrative values only
def alert_for_tier(expected: float, actual: float, tier: str) -> bool:
return actual > expected * MULTIPLIER_BY_TIER[tier]
print(alert_for_tier(5000.0, 8000.0, "high")) # True: 8000 > 7500
print(alert_for_tier(5000.0, 8000.0, "low")) # False: 8000 <= 15000The same 8,000 inflow alerts for a high-risk customer and not for a low-risk one. That is the risk-based approach applied to a single comparison. It must still be documented and justified, because a regulator or auditor will ask why two customers were treated differently.
Common errors
- Treating the profile as fixed. A profile that is never updated turns monitoring into a test against an outdated guess.
- Alerting without context. An alert that shows only the amount forces the analyst to rebuild the customer picture by hand. Show the profile, the history, and the comparison used.
- Using one global threshold for everyone. This ignores the very information the profile exists to provide.
- Never reviewing why alerts were closed. If most alerts for a scenario close as normal, the scenario or the profile is probably wrong.
- Letting the profile adapt to suspicious activity. If the profile is rewritten to match whatever the customer does, deviations disappear. Changes to expected activity need a documented, evidence-based reason.
Summary of the working model
- Onboarding and reviews build a structured profile of expected activity.
- Monitoring compares actual activity with that profile, the customer's history, and peers.
- The risk rating sets how sensitive the comparison is.
- Deviations create alerts, which analysts triage and investigate.
- Outcomes feed back: close, escalate, or update the profile through a review.
Exercise
A customer's profile states expected monthly inflow of 8,000. The volume rule uses a multiplier of 2.0. In one month the inflow is 15,000, and in the next it is 15,900. Which months alert, and what weakness does the pattern show? What would you add?
Show answer
The alert line is 8,000 x 2.0 = 16,000. Neither 15,000 nor 15,900 exceeds it, so neither month alerts. Both are nearly double the expected inflow, which shows that a single fixed multiplier lets activity sit just under the line indefinitely. Add a scenario that looks at the trend over several months (for example, a rolling total or repeated near-threshold months), compare against the customer's own history, and consider a lower multiplier for higher-risk tiers. Also check whether the profile should be refreshed if the higher inflow is legitimate.
Exercise
An analyst closes an alert by raising the customer's expected monthly inflow in the profile, with the note "customer is busy." Why is this a problem, and what should the record contain instead?
Show answer
The change removes the deviation without evidence, so the profile no longer acts as an independent baseline and similar activity will never alert again. The record should contain supporting evidence for the change, such as contracts, invoices, or accounts showing business growth, along with the analyst's reasoning, approval where policy requires it, and a consideration of whether the customer's risk rating or a full review is needed.