Sub topic 10
Scoring and prioritizing alerts
This chapter assumes you have read the earlier chapters on alert generation and customer segmentation. You should know that an alert is a record created when a scenario's conditions are met, and that customers carry a risk rating. You should also be able to read short Python functions.
Why alerts need an order
A monitoring system creates alerts at whatever rate its rules fire. Analyst capacity does not change with that rate. If 400 alerts arrive overnight and the team can review 150 a day, the order of review decides which suspicious activity gets looked at first.
Without prioritization, the default order is arrival time. That is fair but unhelpful. A first-in, first-out queue can leave a $500,000 rapid-movement alert behind dozens of low-value alerts that arrived earlier.
Prioritization answers one question: which alerts should a human see first, and how quickly? It does not decide whether an alert is a true positive. That happens during review, covered in the next chapter.
What goes into a score
An alert score is a number, often 0 to 100, computed from features of the alert and the customer. Most programs combine a handful of inputs.
| Input | Where it comes from | Why it matters |
|---|---|---|
| Scenario weight | Set per scenario by the AML team | Some typologies, such as structuring, historically produce more escalations than others |
| Customer risk rating | Customer profile | A high-risk customer warrants earlier review |
| Amount or volume | Alert content, such as `total_amount` | Larger sums raise potential impact |
| Alert history | Prior dispositions for the customer | A customer with earlier escalations is more likely to be a true positive |
| Counterparty or geography flags | Transaction data | Links to high-risk jurisdictions or watchlisted parties add concern |
| Number of scenarios fired | Other alerts on the same customer | Several independent scenarios agree with each other |
Every input must already be on the alert or retrievable by the time scoring runs. This is why the earlier chapter on alert content matters. The alert record carries total_amount, txn_count, the window boundaries and the scenario name. Scoring reads those fields and joins them with customer data.
Building a simple additive score
The most common design is an additive points model. Each input contributes points, the points are summed, and the total is capped. It is easy to explain to analysts, auditors and regulators, which is a strong reason to start here.
The next example scores the alerts produced by scenarios like the structuring rule from earlier in this tutorial. It reuses that alert shape, with customer_id, scenario, window_end and total_amount.
from datetime import datetime
SCENARIO_POINTS = {"structuring_cash": 40, "rapid_movement": 35}
RISK_POINTS = {"low": 0, "medium": 10, "high": 20}
BANDS = [(70, "high"), (40, "medium"), (0, "low")]
def score_alert(alert, customer):
"""Return the alert with a score, a band and the points behind the score."""
reasons = {
"scenario": SCENARIO_POINTS[alert["scenario"]],
"customer_risk": RISK_POINTS[customer["risk_rating"]],
"amount": min(20, int(alert["total_amount"] // 2500)),
"history": min(15, 5 * customer["prior_escalations"]),
}
score = min(100, sum(reasons.values()))
band = next(name for floor, name in BANDS if score >= floor)
return {**alert, "score": score, "band": band, "reasons": reasons}
def prioritize(alerts, customers):
"""Score every alert, then order by score (highest first), oldest first on ties."""
scored = [score_alert(a, customers[a["customer_id"]]) for a in alerts]
return sorted(scored, key=lambda a: (-a["score"], a["window_end"]))
customers = {
"C1": {"risk_rating": "high", "prior_escalations": 1},
"C3": {"risk_rating": "medium", "prior_escalations": 0},
"C4": {"risk_rating": "low", "prior_escalations": 0},
}
alerts = [
{"customer_id": "C4", "scenario": "rapid_movement", "total_amount": 5000,
"window_end": datetime(2026, 3, 4, 8, 0)},
{"customer_id": "C1", "scenario": "structuring_cash", "total_amount": 28500,
"window_end": datetime(2026, 3, 5, 9, 15)},
{"customer_id": "C3", "scenario": "rapid_movement", "total_amount": 52000,
"window_end": datetime(2026, 3, 5, 12, 0)},
]
for a in prioritize(alerts, customers):
print(a["customer_id"], a["score"], a["band"])
# C1 76 high
# C3 65 medium
# C4 37 lowTrace C1 by hand. The scenario gives 40 points and the high-risk rating gives 20. The amount gives 28500 // 2500 = 11 points, and one prior escalation gives 5. The total is 76, which is at or above the high-band floor of 70.
C4 arrived first but ends up last. Its 5,000 total and low-risk customer add up to 37, below the medium floor of 40.
Note that score_alert returns the reasons dictionary along with the score. Keeping the per-input points on the alert is what lets an analyst see why an alert ranks where it does.
From score to band to queue
Analysts rarely work from a raw number. The score is mapped to a band, and each band is tied to a handling rule.
| Band | Typical score range | Example handling |
|---|---|---|
| High | 70 to 100 | Reviewed first, short service-level target, senior analyst |
| Medium | 40 to 69 | Standard queue, normal service-level target |
| Low | 0 to 39 | Batch review, sampling, or auto-closure where policy allows |
The ranges and service-level targets above are illustrative. Each institution sets its own and documents them in its monitoring procedures.
Scoring cases, not only alerts
The consolidation chapter explained that alerts on the same customer are grouped into a case. Analysts work cases, so the case also needs a priority.
A common approach takes the highest alert score in the case and adds a small bonus for each additional distinct scenario. Two different typologies pointing at one customer is stronger evidence than the same rule firing twice.
def case_score(scored_alerts):
"""Highest alert score plus 5 points per extra distinct scenario, capped at 100."""
top = max(a["score"] for a in scored_alerts)
distinct = len({a["scenario"] for a in scored_alerts})
return min(100, top + 5 * (distinct - 1))
case = [
{"scenario": "structuring_cash", "score": 76},
{"scenario": "rapid_movement", "score": 60},
]
print(case_score(case)) # 81Using the maximum instead of the sum keeps case scores from growing just because many near-identical alerts were grouped. Summing would let ten weak alerts outrank one strong one.
Rules-based scores and model-based scores
The points model above is a hand-built scorecard. Some programs replace it, or add to it, with a statistical model trained on past dispositions. The model predicts the probability that an alert is escalated, and that probability becomes the score.
| Aspect | Points scorecard | Trained model |
|---|---|---|
| Explainability | Direct: each input has a stated value | Needs extra tooling to explain a single score |
| Data needed | None to start, only expert judgment | Enough labeled dispositions to train on |
| Adapts to patterns | Only when someone changes weights | Learns from data, but can also learn analyst habits |
| Validation burden | Moderate | Higher: stability, drift and bias checks |
The behavioral and machine-learning chapter covers models in more detail. For this chapter, remember that a model is only as good as its labels. If analysts closed alerts quickly because they were tired rather than because they were benign, the model learns that pattern.
Common errors
The same mistakes show up repeatedly in scoring designs.
- Double counting the same signal. Segmentation already raises thresholds for some customer groups. If risk rating also adds many points, high-risk customers get hit twice. Decide where each signal acts and document it.
- Scores that cluster at band edges. If many alerts score 68 to 71, small changes in an input move them across a band line. Check the score distribution and place cutoffs where the density is low.
- Ignoring the low band forever. A low band that no one reviews becomes a hidden decision to ignore those alerts. Policy should say whether low-band alerts are reviewed, sampled or closed automatically, and a sample should be checked to confirm that choice.
- Letting the amount dominate. Large amounts are not always more suspicious, and a cap such as
min(20, ...)prevents one large value from overwhelming every other input. - Scores that cannot be explained. If an analyst asks why an alert ranks high and the system cannot answer, trust in the whole queue falls.
- Changing weights without a record. Weights are controls. Each change needs a reason, an approver and a date.
Checking that the score works
A score is useful only if higher scores really contain more true positives. The check uses the same precision measure from the tuning chapter, computed per band.
def alert_precision(dispositions):
"""Share of reviewed alerts that analysts escalated."""
if not dispositions:
return 0.0
escalated = sum(1 for d in dispositions if d == "escalated")
return escalated / len(dispositions)
by_band = {
"high": ["escalated", "closed", "escalated", "escalated"],
"medium": ["closed", "escalated", "closed", "closed"],
"low": ["closed", "closed", "closed", "closed"],
}
for band, dispositions in by_band.items():
print(band, alert_precision(dispositions))
# high 0.75
# medium 0.25
# low 0.0Precision should fall as the band falls. If the medium band beats the high band, the score is ordering alerts poorly, and the weights or inputs need review. A low band at 0.0 on a small sample does not prove that the band is safe, since four alerts is too few. Sample enough low-band alerts to estimate the true rate.
How scoring connects to the rest of the pipeline
Scoring sits between alert generation and review. Generation decides that an alert exists. Consolidation groups alerts into cases. Prioritization orders the work. Triage, the next chapter, covers what the analyst does with the case at the top of the queue.
Scoring also feeds back into tuning. Band-level precision and the share of alerts per band show whether scenarios are producing useful volume. A scenario that generates many alerts that all land in the low band is a candidate for threshold changes or retirement.
Exercise
An alert for customer C7 has these inputs: scenario weight 35, customer risk "high" (20 points), total_amount 100000, and 4 prior escalations. Using the scorecard in this chapter, what are the amount points, the history points, the total score and the band?
Show answer
Amount points are min(20, 100000 // 2500) = min(20, 40) = 20. History points are min(15, 5 * 4) = min(15, 20) = 15. The total is 35 + 20 + 20 + 15 = 90, below the cap of 100, which falls in the high band (70 or more).
Exercise
A team finds that the medium band has higher alert precision than the high band over the last quarter. Name two possible causes and one check for each.
Show answer
One cause is that a heavily weighted input, such as amount, is pushing benign alerts into the high band. The check is to compare the average points per input in the high band against escalated alerts only. Another cause is that analysts review high-band alerts more cautiously and escalate fewer of them, or that the sample is small. The check is to compare sample sizes and review a set of high-band closures for consistency.