How this works
All data is fictional. Lysbro Pay ApS, its customers and every transaction are invented. Nothing here comes from a real company, customer or employer.
The idea
Rules flag transfers that look suspicious. Alerts on the same customer within 14 days become one case. For every case, an AI model drafts a short note and suggests a next step: escalate, or close as a false positive. An analyst decides. The AI never decides and never says that anyone committed a crime; it describes behaviour.
The first KPI, "AI suggests escalation", counts the cases raised in the selected month that the AI suggests escalating. These are suggestions only: no analyst decisions exist in this demo.
The data
2.000 invented customers of Lysbro Pay ApS (fictional) and their transfers from Jan to Sep 2026 (Jan-Mar only as history for the rules). Normal behaviour depends on the customer type and declared purpose, and includes things that look unusual but are not: bonus months, holiday spending, a one-off car purchase, seasonal businesses.
Into this, 30 truly suspicious customers were planted, five for each pattern below. Six show a second pattern, and six show only a weak version built to fall just under a rule threshold, so some misses are expected. Which customers were planted is stored in one answer-key file that only the evaluation script reads.
- Structuring: repeated deposits just under €10.000 within a few days
- Pass-through (mule): money in from many senders, out again within 48 hours to one or two recipients
- Fan-in: many unrelated senders paying into one private account
- Dormant then spike: a quiet account suddenly moves far more than its declared volume
- High-risk corridor: large or frequent transfers to a high-risk-tier invented country
- Purpose mismatch: declared savings or family support, but the account behaves like a business
Countries outside Denmark are invented, so no real country is labelled high-risk. Risk tiers (own assumptions): low Elsmark, Tarvenn, Lunora; medium Norsala, Bresken; high Veltria, Quorvia.
Rules and thresholds
Every threshold and weight is an own assumption, set in one file (config/rules.yaml). None comes from a law, regulator or employer.
| Rule | Fires when | Weight |
|---|---|---|
| R1 Structuring | At least 3 transfers between €8.500 and €10.000 within 7 days. | 30 |
| R2 Pass-through | Money in from at least 3 senders (at least €3.000) and at least 80 % of it out again within 48 hours. | 35 |
| R3 Fan-in | At least 8 different senders (small business: 25) within 30 days. | 25 |
| R4 Volume spike | Volume in 30 days at least 4 times the larger of the declared monthly volume and the customer's own average month in the 90 days before, and at least €5.000. | 20 |
| R5 High-risk corridor | Transfers to high-risk-tier countries within 30 days: at least €5.000 in total or at least 3 transfers. | 30 |
| R6 Purpose mismatch | Declared purpose savings or family support, but at least 12 different counterparties within 30 days. | 20 |
A rule alerts again on the same customer only after 30 quiet days, so a busy account does not raise an alert every day.
Risk score
Risk score = rule points + KYC points + amount points, at most 100. Rule points are the weights of the rules hit. KYC points: low 0, medium 10, high 20. Amount points: up to 20, reached when the amount involved is 5 times the declared monthly volume. The queue shows 60 or more in red as high risk.
Counterparty network
Every case opens with a network picture: the case customer in the middle, and everyone they sent money to or received money from in the 90 days up to and including the case date. Senders who only pay in sit on the left, receivers who only get paid sit on the right, so fan-in (many senders, one account) and pass-through (money in from many, out again to one or two) read left to right. Node size is the amount, arrow width is the amount in that direction, a red ring marks a counterparty in a high-risk-tier invented country. Selecting a transaction in the timeline highlights its arrow, and the other way round.
It is built in SQL (sql/17_v_case_network.sql) from the raw transactions only: nothing after the case date, nothing from the answer key. To stay readable it shows at most 25 counterparties, the largest by amount; the rest are grouped as "+N others". The view also looks for other Lysbro Pay customers who dealt with the same counterparties in the same window. In this synthetic data there are none: every counterparty belongs to one customer, so each network is one customer and their counterparties.
What the AI sees, and what it does not
Sees: the customer profile (type, customer since, declared purpose and monthly volume, home country, KYC rating), the rules hit with their reasons, the triggering transactions, and a summary of the 90 days before the first alert. Every amount is pre-formatted, so the model copies numbers instead of calculating them.
Does not see: the customer's name, the name-origin group, anything after the case date, or the answer key.
Model: claude-haiku-5-5, one prompt version, run once. Output: a 60-100 word summary, the suggestion, 1-3 reasons and a checklist of what the analyst must check that the data cannot show.
How it is checked
A script without AI checks every draft: each number must appear in the case data, no date may be after the case date, all fields must be there, word limits, and a list of banned words (including any claim of crime or guilt). A failed draft gets one follow-up listing the failures, at most two retries, and the last attempt is kept. Result: 134 of 183 drafts passed on the first attempt, 178 of 183 in the end.
How it is evaluated
A case counts as truly suspicious if it is on a planted customer and dated on or after the pattern started. The metrics were written down before the AI ran and were not changed afterwards.
- Rule precision: 34 of 183 cases (18,6 %) were truly suspicious.
- Recall: 27 of 30 planted customers caught (90,0 %); full versions 24 of 24, weak versions 3 of 6.
- AI: suggested escalating 30 of 34 truly suspicious cases (88,2 %) and closing 79 of 149 false positives (53,0 %).
Fairness check
Every customer has an invented name-origin group, kept in a separate file that the rules, the AI and this dashboard never read. The planted customers were drawn so that their name-origin mix matches everyone else's, and the generator checks it: PASS, largest difference 1,6 percentage points (limit 5). The evaluation also reports, per group, the share of customers with a case and the AI escalation rate:
| Group | Share of customers | Share of cases | Customers with a case | AI escalates |
|---|---|---|---|---|
| Group A | 45,6 % | 48,6 % | 8,3 % | 55,1 % |
| Group B | 21,6 % | 18,6 % | 6,9 % | 58,8 % |
| Group C | 19,1 % | 18,0 % | 6,6 % | 48,5 % |
| Group D | 13,7 % | 14,8 % | 8,0 % | 55,6 % |
This shows the design does not use name origin. It does not prove fairness on real data, where traits like nationality can correlate with home country or transfer corridors.
Limitations
- The data is synthetic. R3 and R6 at 100 % precision are an artefact of how normal customers were generated: they rarely have many senders or counterparties. Real data would not be this clean.
- The AI run: the first launch made no calls (a compression bug), the second crashed after 11 cases (a script bug). The 11 drafts were archived unread, the script was fixed, and the full run was done once with the unchanged prompt, checks and cap. The complete run cost USD 0,15; total AI cost about USD 0,16.
- 5 of 183 drafts still fail the check after retries (word limit only) and are shown as failing.
- One run, one prompt version. Variation between runs is not measured.
- The fairness check covers name origin only, on 25 to 90 cases per group. It is reported, not tested statistically.
- Thresholds and risk weights are own assumptions, not taken from any regulator or employer, and not tuned on real data.
- No analyst decisions exist. The queue shows suggestions only, and precision and recall come from an answer key, not from analyst outcomes.
- The network view can link customers through shared counterparties, but the generator gave every counterparty to one customer only, so no such links exist here. It shows money flows, not why the money moved, and it cannot see accounts outside Lysbro Pay beyond the counterparty id.