Datasets:
tx_id int64 0 197k | timestamp timestamp[ms]date 2025-01-01 00:01:08 2025-01-30 23:59:08 | account_id int32 0 20.1k | merchant_id int32 0 1.01k ⌀ | counterparty_id int32 0 20.1k ⌀ | device_id int32 0 21.6k ⌀ | amount float64 0.5 14.2k | mcc stringclasses 13
values | channel stringclasses 3
values | country stringclasses 12
values |
|---|---|---|---|---|---|---|---|---|---|
0 | 2025-01-01T00:01:08 | 16,788 | 536 | null | null | 53.4 | fuel | pos | C00 |
1 | 2025-01-01T00:02:31 | 8,562 | 89 | null | null | 22.48 | retail | pos | C00 |
2 | 2025-01-01T00:02:51 | 2,090 | 597 | null | null | 12.48 | retail | pos | C00 |
3 | 2025-01-01T00:03:07 | 1,237 | 704 | null | 19,044 | 77.56 | grocery | online | C00 |
4 | 2025-01-01T00:04:37 | 11,499 | 750 | null | 11,499 | 17.84 | digital_goods | online | C00 |
5 | 2025-01-01T00:04:50 | 16,383 | 990 | null | null | 26.17 | fuel | pos | C09 |
6 | 2025-01-01T00:04:58 | 16,084 | 213 | null | 8,740 | 19.88 | digital_goods | online | C00 |
7 | 2025-01-01T00:05:03 | 5,349 | 820 | null | null | 28.6 | pharmacy | pos | C00 |
8 | 2025-01-01T00:06:51 | 18,722 | 77 | null | 18,722 | 42.32 | gift_cards | online | C00 |
9 | 2025-01-01T00:07:27 | 9,819 | 420 | null | 9,819 | 22.26 | entertainment | online | C00 |
10 | 2025-01-01T00:08:07 | 538 | 122 | null | null | 50.28 | electronics | pos | C04 |
11 | 2025-01-01T00:08:21 | 3,599 | 313 | null | null | 691.7 | electronics | pos | C00 |
12 | 2025-01-01T00:08:31 | 786 | 344 | null | 786 | 61.18 | online_marketplace | online | C00 |
13 | 2025-01-01T00:09:49 | 15,065 | 77 | null | 15,065 | 167.16 | gift_cards | online | C00 |
14 | 2025-01-01T00:10:48 | 16,180 | 603 | null | null | 4.67 | restaurant | pos | C03 |
15 | 2025-01-01T00:11:35 | 460 | 2 | null | null | 130.61 | restaurant | pos | C00 |
16 | 2025-01-01T00:12:05 | 13,700 | 436 | null | 13,700 | 204.02 | utilities | online | C00 |
17 | 2025-01-01T00:12:31 | 12,431 | 10 | null | 12,431 | 39.97 | online_marketplace | online | C00 |
18 | 2025-01-01T00:12:35 | 9,717 | 122 | null | 9,717 | 157.69 | electronics | online | C00 |
19 | 2025-01-01T00:12:38 | 9,118 | 515 | null | null | 56.19 | electronics | pos | C00 |
20 | 2025-01-01T00:16:58 | 4,106 | 749 | null | null | 28.49 | grocery | pos | C00 |
21 | 2025-01-01T00:17:07 | 6,416 | 395 | null | null | 15.98 | retail | pos | C04 |
22 | 2025-01-01T00:19:18 | 7,833 | null | 16,264 | 7,833 | 44.44 | p2p_transfer | transfer | C00 |
23 | 2025-01-01T00:19:19 | 11,109 | 906 | null | 11,109 | 11.43 | restaurant | online | C00 |
24 | 2025-01-01T00:19:51 | 17,211 | 336 | null | 17,211 | 185.98 | online_marketplace | online | C00 |
25 | 2025-01-01T00:21:24 | 5,203 | 295 | null | null | 76.59 | fuel | pos | C10 |
26 | 2025-01-01T00:22:17 | 17,046 | 572 | null | null | 17.17 | grocery | pos | C00 |
27 | 2025-01-01T00:22:45 | 17,125 | 826 | null | null | 4.26 | grocery | pos | C00 |
28 | 2025-01-01T00:22:57 | 1,711 | 91 | null | null | 32.56 | grocery | pos | C00 |
29 | 2025-01-01T00:23:00 | 14,555 | 523 | null | 14,555 | 5.41 | grocery | online | C00 |
30 | 2025-01-01T00:29:23 | 9,203 | 727 | null | null | 438.65 | fuel | pos | C00 |
31 | 2025-01-01T00:29:31 | 15,040 | 213 | null | 15,040 | 3.62 | digital_goods | online | C00 |
32 | 2025-01-01T00:29:50 | 6,593 | 590 | null | null | 68.07 | grocery | pos | C00 |
33 | 2025-01-01T00:30:13 | 19,203 | 801 | null | null | 8.27 | grocery | pos | C03 |
34 | 2025-01-01T00:31:04 | 19,570 | null | 17,294 | 19,570 | 33.32 | p2p_transfer | transfer | C00 |
35 | 2025-01-01T00:31:56 | 18,770 | 640 | null | null | 8.9 | retail | pos | C00 |
36 | 2025-01-01T00:32:20 | 10,782 | 77 | null | 10,782 | 29.87 | gift_cards | online | C00 |
37 | 2025-01-01T00:32:52 | 4,290 | 342 | null | null | 23.49 | grocery | pos | C00 |
38 | 2025-01-01T00:33:12 | 17,538 | 310 | null | null | 480.42 | electronics | pos | C00 |
39 | 2025-01-01T00:33:14 | 4,329 | null | 4,852 | 4,329 | 43.52 | p2p_transfer | transfer | C00 |
40 | 2025-01-01T00:33:58 | 11,137 | 446 | null | null | 29.6 | restaurant | pos | C00 |
41 | 2025-01-01T00:34:44 | 11,586 | 91 | null | null | 18.78 | grocery | pos | C00 |
42 | 2025-01-01T00:37:24 | 16,383 | 801 | null | null | 6.14 | grocery | pos | C09 |
43 | 2025-01-01T00:37:38 | 1,727 | 794 | null | null | 42.59 | grocery | pos | C05 |
44 | 2025-01-01T00:39:11 | 12,651 | 573 | null | null | 83.28 | fuel | pos | C00 |
45 | 2025-01-01T00:41:40 | 2,870 | 749 | null | null | 3.78 | grocery | pos | C00 |
46 | 2025-01-01T00:41:56 | 12,360 | 646 | null | null | 30.18 | fuel | pos | C00 |
47 | 2025-01-01T00:41:56 | 15,788 | 558 | null | 15,788 | 47.49 | digital_goods | online | C00 |
48 | 2025-01-01T00:43:48 | 2,029 | 980 | null | null | 15.4 | retail | pos | C00 |
49 | 2025-01-01T00:44:47 | 19,790 | 122 | null | null | 105.35 | electronics | pos | C00 |
50 | 2025-01-01T00:45:39 | 7,875 | 84 | null | null | 45.35 | retail | pos | C00 |
51 | 2025-01-01T00:47:09 | 12,570 | 590 | null | null | 9.48 | grocery | pos | C07 |
52 | 2025-01-01T00:49:26 | 18,200 | 302 | null | null | 105.44 | grocery | pos | C00 |
53 | 2025-01-01T00:50:21 | 12,033 | 184 | null | 12,033 | 35.58 | online_marketplace | online | C00 |
54 | 2025-01-01T00:53:47 | 15,453 | 342 | null | null | 23.39 | grocery | pos | C00 |
55 | 2025-01-01T00:55:22 | 1,132 | 704 | null | null | 11.05 | grocery | pos | C00 |
56 | 2025-01-01T00:56:17 | 4,309 | 903 | null | null | 12.95 | restaurant | pos | C00 |
57 | 2025-01-01T00:56:50 | 11,485 | 12 | null | 9,845 | 22.09 | online_marketplace | online | C00 |
58 | 2025-01-01T00:56:54 | 3,895 | 757 | null | null | 21.44 | grocery | pos | C11 |
59 | 2025-01-01T00:57:45 | 10,928 | 863 | null | 10,928 | 157.86 | gift_cards | online | C04 |
60 | 2025-01-01T00:59:03 | 4,457 | null | 17,686 | 4,457 | 18 | p2p_transfer | transfer | C00 |
61 | 2025-01-01T00:59:26 | 8,553 | 649 | null | 8,553 | 14.91 | digital_goods | online | C00 |
62 | 2025-01-01T00:59:34 | 17,278 | 515 | null | null | 83.11 | electronics | pos | C00 |
63 | 2025-01-01T01:00:20 | 19,965 | 831 | null | 19,965 | 27.88 | online_marketplace | online | C00 |
64 | 2025-01-01T01:06:26 | 9,533 | null | 11,099 | 9,533 | 100 | p2p_transfer | transfer | C00 |
65 | 2025-01-01T01:06:36 | 1,790 | 270 | null | null | 91.7 | grocery | pos | C00 |
66 | 2025-01-01T01:07:14 | 7,606 | 358 | null | null | 15.98 | grocery | pos | C00 |
67 | 2025-01-01T01:08:42 | 4,251 | 649 | null | 4,251 | 17.73 | digital_goods | online | C00 |
68 | 2025-01-01T01:08:53 | 1,488 | 194 | null | null | 39.51 | entertainment | pos | C00 |
69 | 2025-01-01T01:09:54 | 17,902 | 645 | null | 17,902 | 59.64 | utilities | online | C02 |
70 | 2025-01-01T01:10:34 | 3,916 | 649 | null | 3,916 | 5.93 | digital_goods | online | C00 |
71 | 2025-01-01T01:10:34 | 7,806 | 752 | null | 7,806 | 28.54 | retail | online | C00 |
72 | 2025-01-01T01:11:34 | 7,716 | 889 | null | null | 19.71 | grocery | pos | C00 |
73 | 2025-01-01T01:14:41 | 4,931 | 411 | null | null | 9.5 | restaurant | pos | C00 |
74 | 2025-01-01T01:14:43 | 44 | 785 | null | null | 104.15 | fuel | pos | C00 |
75 | 2025-01-01T01:15:28 | 19,406 | 263 | null | 19,406 | 392.29 | online_marketplace | online | C00 |
76 | 2025-01-01T01:15:31 | 10,549 | 242 | null | null | 5.98 | fuel | pos | C07 |
77 | 2025-01-01T01:16:56 | 19,409 | 369 | null | null | 28.12 | retail | pos | C08 |
78 | 2025-01-01T01:17:07 | 5,251 | 820 | null | null | 21.8 | pharmacy | pos | C00 |
79 | 2025-01-01T01:19:03 | 420 | 584 | null | null | 11.69 | retail | pos | C00 |
80 | 2025-01-01T01:21:22 | 2,649 | 218 | null | null | 9.63 | restaurant | pos | C07 |
81 | 2025-01-01T01:21:46 | 10,422 | 73 | null | null | 21.43 | grocery | pos | C00 |
82 | 2025-01-01T01:21:55 | 17,901 | 306 | null | null | 13.14 | restaurant | pos | C00 |
83 | 2025-01-01T01:22:20 | 40 | 248 | null | null | 36.39 | pharmacy | pos | C00 |
84 | 2025-01-01T01:23:10 | 4,511 | 408 | null | null | 15.76 | fuel | pos | C05 |
85 | 2025-01-01T01:23:59 | 5,385 | 947 | null | null | 52.23 | grocery | pos | C07 |
86 | 2025-01-01T01:26:25 | 13,836 | 530 | null | null | 16.09 | restaurant | pos | C09 |
87 | 2025-01-01T01:26:56 | 8,415 | 947 | null | null | 17.97 | grocery | pos | C03 |
88 | 2025-01-01T01:29:04 | 3,572 | 313 | null | 3,572 | 181.08 | electronics | online | C00 |
89 | 2025-01-01T01:31:15 | 6,625 | 939 | null | 6,625 | 212.32 | digital_goods | online | C09 |
90 | 2025-01-01T01:32:02 | 13,656 | 272 | null | null | 41.61 | entertainment | pos | C00 |
91 | 2025-01-01T01:34:36 | 12,866 | 866 | null | null | 5.02 | grocery | pos | C00 |
92 | 2025-01-01T01:34:49 | 18,621 | 701 | null | 18,621 | 112.78 | online_marketplace | online | C00 |
93 | 2025-01-01T01:34:57 | 18,817 | null | 266 | 18,817 | 310 | p2p_transfer | transfer | C00 |
94 | 2025-01-01T01:35:03 | 10,789 | 572 | null | null | 46.03 | grocery | pos | C11 |
95 | 2025-01-01T01:35:52 | 1,495 | 835 | null | null | 58.66 | grocery | pos | C00 |
96 | 2025-01-01T01:39:45 | 6,468 | 788 | null | null | 19.71 | restaurant | pos | C00 |
97 | 2025-01-01T01:39:56 | 17,207 | 170 | null | 17,207 | 3.62 | digital_goods | online | C00 |
98 | 2025-01-01T01:40:53 | 14,222 | 820 | null | null | 16.5 | pharmacy | pos | C08 |
99 | 2025-01-01T01:41:56 | 14,230 | 408 | null | null | 7.2 | fuel | pos | C00 |
fraud-synth-bench: synthetic transaction data
Every dataset behind the paper Classic and Modern Fraud Detectors under Controlled Imbalance, Drift, Ring Fraud and Label Delay: A Reproducible Study on Synthetic Data (Chongmankhong, 2026): 45 generated datasets (9 experimental conditions × 5 seeds), about 200,000 transactions each, plus the per-run results of the experiments.
📄 Paper (web) · PDF · 💻 Code · 🔖 DOI 10.5281/zenodo.23343483
This is synthetic data. No real transactions, customers or institutions were used to build, fit or calibrate the generator, and it contains no PII. Distributions are stylised from qualitative descriptions in the literature. Findings on this data are evidence about mechanisms, not about any real payment system. Absolute AUPRC values should not be compared with published numbers on real data.
What's here
Condition (data/<condition>/seed{0..4}/) |
Preset | Fraud rate | Manipulated | Used by |
|---|---|---|---|---|
small_fr0.001 |
small |
0.1% | extreme imbalance | RQ1 |
small_fr0.005 |
small |
0.5% | baseline | RQ1, RQ5 |
small_fr0.01 |
small |
1% | imbalance | RQ1 |
small_long_drift |
small_long |
0.5% | fraud tactics switch at day 54 | RQ2 |
small_ring0.0, small_ring0.25, small_ring0.5, small_ring0.75 |
small |
0.5% | share of fraud from ring scenarios | RQ3 |
small_long |
small_long |
0.5% | baseline for label delay (the delay itself is in labels) |
RQ4 |
small has 20,000 accounts over 30 days. small_long has 8,000 accounts over 90 days. The total is 8.9M transactions, stored in about 190 MB. small_fr0.005 and small_long are also what make data produces.
Other files:
index.parquet: one row per dataset, with its path, sizes and fullcontent_hash.results/runs/rq{1..4}.jsonl: one line per model × condition × seed, with metrics and thedataset_hashof the data it ran on. RQ5 is computed from the RQ1 runs.results/summary.json,results/summary/: the aggregates that fill in the paper's numbers.results/skipped.jsonrecords the skipped model (TabPFN).docs/DATA_CARD.md: the full data card (simulation details, validation, limitations).docs/DATA_CARD_STATS.md: descriptive statistics.
Tables
Each data/<condition>/seed<n>/ directory holds:
| File | Grain | Columns |
|---|---|---|
transactions.parquet |
one row per transaction | tx_id, timestamp, account_id, merchant_id (null for transfers), counterparty_id (null for card payments), device_id (null for card-present), amount, mcc, channel (pos / online / transfer), country |
labels.parquet |
one row per transaction | tx_id, is_fraud, observed_label, label_available_at, scenario, fraud_event_id |
accounts.parquet |
one row per account | account_id, opened_at, home_country, segment, account_role |
merchants.parquet |
one row per merchant | merchant_id, mcc, country, opened_at |
edges.parquet |
one row per (src, dst, type) | src_type, src_id, dst_type, dst_id, edge_type (pays / transfers / uses_device), first_seen, last_seen, n_tx |
manifest.json |
per dataset | generator version, preset, seed, all parameters, content hash, summary stats, library versions |
IDs are only meaningful within one dataset. Don't pool seeds or conditions without keying on them.
Fraud comes from eight scenarios: card_testing, account_takeover, velocity_abuse, friendly_fraud, bust_out, and three ring scenarios, mule_network, merchant_collusion and synthetic_identity.
⚠️ Avoiding leakage
labels.is_fraud,labels.scenario,labels.fraud_event_idandaccounts.account_rolereveal the answer. Use them for evaluation and analysis, never as model features.- Train on
observed_labelonly wherelabel_available_at≤ your training cutoff. Undetected fraud keepsobserved_label = 0forever. edgesis aggregated over the whole timeline, so using it directly as a feature source leaks the future. Build time-respecting graph features fromtransactionswith a cutoff.- Split by time, not at random.
Usage
The viewer configs cover the two baseline conditions, with one split per seed:
from datasets import load_dataset
tx = load_dataset("thanatchon36/fraud-synth-bench", "small_transactions", split="seed0")
labels = load_dataset("thanatchon36/fraud-synth-bench", "small_labels", split="seed0")
Any condition or table can be read by path:
import polars as pl
base = "hf://datasets/thanatchon36/fraud-synth-bench/data/small_long_drift/seed0"
df = pl.read_parquet(f"{base}/transactions.parquet").join(
pl.read_parquet(f"{base}/labels.parquet"), on="tx_id"
)
To use a whole directory with the project's loader, which restores the column types and exposes the content hash:
from huggingface_hub import snapshot_download
from fraudlab.synth import load # https://github.com/thanatchon36/fraud-synth-bench
root = snapshot_download("thanatchon36/fraud-synth-bench", repo_type="dataset",
allow_patterns="data/small_ring0.5/seed0/*")
ds = load(f"{root}/data/small_ring0.5/seed0")
Reproducing it
The output is a pure function of the config. These are the commands that produced this upload (with --seed 0 to 4, generator version 0.1.0):
fraudlab generate --preset small --fraud-rate 0.005 --seed 0 --out data/small_fr0.005/seed0
fraudlab generate --preset small --fraud-rate 0.005 --ring-share 0.25 --seed 0 --out data/small_ring0.25/seed0
fraudlab generate --preset small_long --drift rq2 --seed 0 --out data/small_long_drift/seed0
fraudlab generate --preset small_long --fraud-rate 0.005 --seed 0 --out data/small_long/seed0
The content_hash covers column names, dtypes and values, not parquet writer metadata. All 45 datasets here were checked against the dataset_hash values recorded in results/runs/*.jsonl, and all match. The tiny (20k transactions) and full (2M) presets aren't in the paper and aren't uploaded. The commands above generate them.
Limitations
- Not calibrated to real data. Real data has heavier tails, more merchant categories, and seasonality that the generator doesn't model.
- Fraud is more mechanistic than in reality. Each scenario has a clean signature, and most are easier to detect than real fraud, except
friendly_fraud, which is close to undetectable by design. - Few ring events. At
smallwith 0.5% fraud, ring scenarios contribute about 4–8 events each, so per-scenario results have high variance. - No adaptive adversary. Drift is scheduled, not a reaction to a deployed model, and legitimate behaviour doesn't drift.
- Single currency and abstract countries (
C00–C11).
Not intended for estimating real-world fraud prevalence or losses, benchmarking vendor products, or training production models.
Citation
@software{chongmankhong2026fraudsynthbench,
author = {Chongmankhong, Thanatchon},
title = {fraud-synth-bench: Reproducible fraud-analytics research on synthetic data},
year = {2026},
doi = {10.5281/zenodo.23343483},
url = {https://github.com/thanatchon36/fraud-synth-bench}
}
License
Apache-2.0, the same as the code.
- Downloads last month
- 247