Sub topic 10
Scoring and prioritizing alerts
This chapter assumes you know how a scenario creates an alert record and how alerts are grouped into cases. It also assumes you can read basic Python. Here you will see how a system orders those alerts so analysts review the riskiest ones first.
Why alerts need an order
A scenario fires on a pattern. It does not say how worried anyone should be. Two structuring alerts can look identical to the rule, yet one involves a high-risk customer and $90,000, and the other involves a long-standing retail customer and $28,500. If analysts work in arrival order, the urgent alert can wait behind dozens of weak ones.
Scoring adds a number to each alert, or to each case, so the queue can be sorted. Prioritization turns that number into a band such as high, medium or low. The band decides who reviews the alert and how fast.
Common scoring inputs
Most systems combine a few kinds of signal:
- Scenario severity. Some scenarios, such as sanctions-adjacent activity, start with a higher base score than others.
- Amount. Larger totals in the alert window raise the score.
- Customer risk rating. A high-risk customer raises it, using the rating from the customer profile.
- History. Prior alerts or earlier escalations for the same customer raise it.
- Alert strength. An alert that is far past its threshold (for example, 9 deposits against a minimum of 3) scores above one that barely met it.
A simple weighted score
The function below turns three inputs into a 0 to 100 score. Each input is scaled to the range 0 to 1, and then the weights are applied.
WEIGHTS = {"amount": 0.4, "customer_risk": 0.4, "repeat": 0.2}
RISK_VALUES = {"low": 0.2, "medium": 0.5, "high": 1.0}
def score_alert(alert, customer_rating, prior_alerts_90d):
"""Return a 0-100 priority score for one alert."""
amount_part = min(alert["total_amount"] / 50000, 1.0)
risk_part = RISK_VALUES[customer_rating]
repeat_part = min(prior_alerts_90d / 3, 1.0)
raw = (
WEIGHTS["amount"] * amount_part
+ WEIGHTS["customer_risk"] * risk_part
+ WEIGHTS["repeat"] * repeat_part
)
return round(100 * raw)
def priority_band(score):
if score >= 70:
return "high"
if score >= 40:
return "medium"
return "low"
alert_c1 = {"customer_id": "C1", "total_amount": 28500}
alert_c2 = {"customer_id": "C2", "total_amount": 9500}
for alert, rating, prior in [(alert_c1, "high", 2), (alert_c2, "low", 0)]:
score = score_alert(alert, rating, prior)
print(alert["customer_id"], score, priority_band(score))
# C1 76 high
# C2 16 lowC1 scores 76 because of a $28,500 total, a high-risk rating and two earlier alerts. C2 scores 16 and goes to the low band.
Where scoring sits in the flow
Scoring alerts versus scoring cases
Scoring can happen on individual alerts, on consolidated cases, or both. Case-level scoring is common because analysts work cases. A common approach is to take the highest alert score in the case and add a bonus for each extra scenario that fired. A customer who triggers structuring, rapid movement of funds and a high-risk-country scenario is usually more concerning than any single alert suggests.
Common errors
- Weights nobody can explain. Reviewers and regulators ask why an alert ranked where it did. Keep inputs few and documented, and record the score components on the alert.
- Double counting. If customer risk is already in the scenario threshold through segmentation, adding it again to the score can overweight it.
- Hard cut-offs hiding alerts. Never drop alerts below a score without testing what you would miss.
- Stale ratings. A score is only as current as the customer profile it reads.
Checking the result
Compare bands with analyst outcomes. If the high band escalates much more often than the low band, the score is separating alerts usefully. If the escalation rates look the same, the weights need rework. The tuning chapter covers this measurement in more detail.
Exercise
A customer has a medium risk rating (0.5), a total alert amount of $25,000 and one alert in the last 90 days. Using the weights and functions in this chapter, what are the score and the band?
Show answer
Amount part is 25000/50000 = 0.5. Risk part is 0.5. Repeat part is 1/3, about 0.333. Raw score is 0.40.5 + 0.40.5 + 0.2*0.333 = 0.2 + 0.2 + 0.0667 = 0.4667. The score is 47, which falls in the medium band (40 to 69).
Exercise
Why might a team score cases instead of individual alerts?
Show answer
Analysts review cases, and a case can combine several scenarios for one customer. A case score can reflect that combined evidence, so the queue order matches the work analysts actually do.