Datasets:
Commit ·
30bc4fb
1
Parent(s): d795510
Add CanFraudBench Track A dataset (LFS) and card
Browse files- .gitattributes +1 -0
- README.md +184 -0
- canfraudbench_synthid_n20000_seed23.jsonl +3 -0
.gitattributes
CHANGED
|
@@ -58,3 +58,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
| 58 |
# Video files - compressed
|
| 59 |
*.mp4 filter=lfs diff=lfs merge=lfs -text
|
| 60 |
*.webm filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
| 58 |
# Video files - compressed
|
| 59 |
*.mp4 filter=lfs diff=lfs merge=lfs -text
|
| 60 |
*.webm filter=lfs diff=lfs merge=lfs -text
|
| 61 |
+
*.jsonl filter=lfs diff=lfs merge=lfs -text
|
README.md
ADDED
|
@@ -0,0 +1,184 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: cc-by-4.0
|
| 3 |
+
task_categories:
|
| 4 |
+
- tabular-classification
|
| 5 |
+
language:
|
| 6 |
+
- en
|
| 7 |
+
tags:
|
| 8 |
+
- fraud-detection
|
| 9 |
+
- synthetic-identity
|
| 10 |
+
- model-risk-management
|
| 11 |
+
- osfi-e23
|
| 12 |
+
- responsible-ai
|
| 13 |
+
- canada
|
| 14 |
+
- financial-services
|
| 15 |
+
pretty_name: CanFraudBench — Track A (Synthetic Identity)
|
| 16 |
+
size_categories:
|
| 17 |
+
- 10K<n<100K
|
| 18 |
+
---
|
| 19 |
+
|
| 20 |
+
# CanFraudBench — Track A (Synthetic Identity)
|
| 21 |
+
|
| 22 |
+
**A public, reproducible benchmark for synthetic-identity fraud detection in a
|
| 23 |
+
Canadian financial-onboarding context — where every metric maps to OSFI
|
| 24 |
+
Guideline E-23 model-risk expectations.**
|
| 25 |
+
|
| 26 |
+
This is the Track A (synthetic identity) dataset of CanFraudBench. The full
|
| 27 |
+
benchmark, including the metrics library, the OSFI E-23 governance mapping, the
|
| 28 |
+
Track B document/presentation-attack harness, the leaderboard, and reference
|
| 29 |
+
baselines, lives in the code repository:
|
| 30 |
+
|
| 31 |
+
➡️ **Code & full benchmark: https://github.com/CrillyPienaah/canfraudbench**
|
| 32 |
+
|
| 33 |
+
---
|
| 34 |
+
|
| 35 |
+
## Why this exists
|
| 36 |
+
|
| 37 |
+
OSFI Guideline E-23 (Model Risk Management) takes effect **1 May 2027** and
|
| 38 |
+
applies to **all models at all federally regulated financial institutions**,
|
| 39 |
+
including AI/ML and third-party models. Yet there is **no public Canadian
|
| 40 |
+
benchmark** for identity-fraud detection — the strong open corpora that exist
|
| 41 |
+
(MIDV-2020, SIDTD, IDNet) are all US/European and none is framed against
|
| 42 |
+
Canadian regulatory expectations.
|
| 43 |
+
|
| 44 |
+
CanFraudBench fills that gap, and adds what a pure-ML leaderboard lacks: every
|
| 45 |
+
score is paired with the E-23 evidence dimension it speaks to (discrimination,
|
| 46 |
+
calibration, stability/drift, fairness, explainability). A submission produces a
|
| 47 |
+
**validation evidence pack**, not just an AUC.
|
| 48 |
+
|
| 49 |
+
> **The benchmark's core lesson:** the reference baseline scores **0.969 AUC**
|
| 50 |
+
> and still **FAILS overall**, because its Adverse Impact Ratio (0.59) breaches
|
| 51 |
+
> the four-fifths fairness rule. Discrimination without governance is not a
|
| 52 |
+
> passing model.
|
| 53 |
+
|
| 54 |
+
---
|
| 55 |
+
|
| 56 |
+
## What's in this dataset
|
| 57 |
+
|
| 58 |
+
A reproducible, **fully synthetic** set of Canadian onboarding applications.
|
| 59 |
+
**No real person's data is present.** (See *Privacy & Ethics* below.)
|
| 60 |
+
|
| 61 |
+
| | |
|
| 62 |
+
|---|---|
|
| 63 |
+
| Records | 20,000 |
|
| 64 |
+
| Legitimate | 16,000 |
|
| 65 |
+
| Fraud | 4,000 (20%) |
|
| 66 |
+
| Seed | 23 (deterministic) |
|
| 67 |
+
| Format | JSON Lines (`.jsonl`) |
|
| 68 |
+
|
| 69 |
+
### Fraud typology breakdown
|
| 70 |
+
|
| 71 |
+
Fraud labels are grounded in documented synthetic-identity typologies so that
|
| 72 |
+
performance can be sliced by fraud type (not just an aggregate AUC):
|
| 73 |
+
|
| 74 |
+
| Typology | Count | Description |
|
| 75 |
+
|---|---|---|
|
| 76 |
+
| `fabricated` | 1,200 | Wholly invented identity; no real underlying person |
|
| 77 |
+
| `blended` | 1,200 | "Frankenstein" — real structural identifier + fabricated name/DOB |
|
| 78 |
+
| `file_aged` | 800 | Thin file artificially aged (nominee/piggyback tradelines) |
|
| 79 |
+
| `linked_cluster` | 600 | Member of an application cluster (device/address reuse) |
|
| 80 |
+
| `inconsistent` | 200 | Internally contradictory fields a univariate rule would miss |
|
| 81 |
+
| `legitimate` | 16,000 | Internally consistent legitimate applicant |
|
| 82 |
+
|
| 83 |
+
### Record schema
|
| 84 |
+
|
| 85 |
+
Each line is a JSON object:
|
| 86 |
+
|
| 87 |
+
```json
|
| 88 |
+
{
|
| 89 |
+
"id": "can_0000001",
|
| 90 |
+
"raw": { "first_name": "...", "last_name": "...", "dob": "...",
|
| 91 |
+
"address": {...}, "sin": "...", "...": "..." },
|
| 92 |
+
"features": {
|
| 93 |
+
"f_sin_luhn_valid": 0,
|
| 94 |
+
"f_name_struct_anomaly": 0.0,
|
| 95 |
+
"f_dob_doc_inconsistency": 0.0,
|
| 96 |
+
"f_tenure_vs_age_gap": 0.0,
|
| 97 |
+
"f_cluster_link_score": 0.0,
|
| 98 |
+
"f_field_entropy": 0.51,
|
| 99 |
+
"f_thin_file": 0,
|
| 100 |
+
"f_province_group": 0
|
| 101 |
+
},
|
| 102 |
+
"protected_group": 0,
|
| 103 |
+
"typology": "legitimate",
|
| 104 |
+
"label": 0
|
| 105 |
+
}
|
| 106 |
+
```
|
| 107 |
+
|
| 108 |
+
`features` is a ready-to-use numeric vector; `raw` is provided for anyone who
|
| 109 |
+
wants to engineer their own features. `protected_group` is a synthetic region
|
| 110 |
+
grouping included **solely** so fairness metrics (Adverse Impact Ratio, equal
|
| 111 |
+
opportunity) are computable — it encodes no real demographic fact.
|
| 112 |
+
|
| 113 |
+
---
|
| 114 |
+
|
| 115 |
+
## Usage
|
| 116 |
+
|
| 117 |
+
```python
|
| 118 |
+
import json, urllib.request
|
| 119 |
+
|
| 120 |
+
URL = "https://huggingface.co/datasets/CrillyPienaah/CanFraudBench/resolve/main/canfraudbench_synthid_n20000_seed23.jsonl"
|
| 121 |
+
records = [json.loads(l) for l in urllib.request.urlopen(URL)]
|
| 122 |
+
|
| 123 |
+
X = [list(r["features"].values()) for r in records]
|
| 124 |
+
y = [r["label"] for r in records]
|
| 125 |
+
groups = [r["protected_group"] for r in records]
|
| 126 |
+
# ... train your model, then evaluate with the CanFraudBench metrics + E-23
|
| 127 |
+
# governance mapping from the code repo to produce an evidence pack.
|
| 128 |
+
```
|
| 129 |
+
|
| 130 |
+
To reproduce this exact file from scratch:
|
| 131 |
+
|
| 132 |
+
```bash
|
| 133 |
+
git clone https://github.com/CrillyPienaah/canfraudbench
|
| 134 |
+
cd canfraudbench
|
| 135 |
+
python -m canfraudbench.synthid.generate --n 20000 --seed 23 --out data/synthid/
|
| 136 |
+
```
|
| 137 |
+
|
| 138 |
+
The seed makes generation deterministic — the regenerated file matches this one.
|
| 139 |
+
|
| 140 |
+
---
|
| 141 |
+
|
| 142 |
+
## Submitting to the leaderboard
|
| 143 |
+
|
| 144 |
+
CanFraudBench is **submission-by-protocol**: you run the evaluation harness on
|
| 145 |
+
your own model and submit the produced evidence pack (metrics, never raw data).
|
| 146 |
+
Rankings sort by **E-23 status first**, then mean per-typology recall, then AUC —
|
| 147 |
+
a high-AUC model that fails a governance dimension does not outrank a governable
|
| 148 |
+
one. See the [code repo](https://github.com/CrillyPienaah/canfraudbench) for the
|
| 149 |
+
submission protocol.
|
| 150 |
+
|
| 151 |
+
---
|
| 152 |
+
|
| 153 |
+
## Privacy & Ethics
|
| 154 |
+
|
| 155 |
+
- **Fully synthetic.** Names are sampled from generic token lists, not
|
| 156 |
+
registries. Addresses use real province/city *labels* with fictitious civic
|
| 157 |
+
numbers and documentation-style postal codes.
|
| 158 |
+
- **No real Social Insurance Numbers.** Most records carry numbers that
|
| 159 |
+
deliberately *fail* the Luhn checksum so they can never collide with an issued
|
| 160 |
+
SIN; the `blended` typology uses a Luhn-valid-but-fictitious, overwhelmingly
|
| 161 |
+
unassigned number to exercise checksum-aware detectors. These are test
|
| 162 |
+
fixtures, not PII.
|
| 163 |
+
- **Honest scope.** This v0.1 generator is a *typology-grounded simulator*, not
|
| 164 |
+
a differential-privacy mechanism trained on real data — because it never
|
| 165 |
+
touches real data, a DP guarantee would be vacuous. This is stated plainly
|
| 166 |
+
rather than overclaimed. See `docs/DATA_ETHICS.md` in the code repo.
|
| 167 |
+
- **Not affiliated with or endorsed by OSFI.** The benchmark *maps to* the
|
| 168 |
+
public E-23 guideline; it is not approved by any regulator and is
|
| 169 |
+
decision-support, not regulatory advice.
|
| 170 |
+
|
| 171 |
+
## License
|
| 172 |
+
|
| 173 |
+
CC BY 4.0 for this generated dataset. Benchmark code is Apache-2.0.
|
| 174 |
+
|
| 175 |
+
## Citation
|
| 176 |
+
|
| 177 |
+
```bibtex
|
| 178 |
+
@misc{canfraudbench2026,
|
| 179 |
+
title = {CanFraudBench: A Canadian Identity-Fraud Benchmark with OSFI E-23 Governance Mapping},
|
| 180 |
+
author = {Pienaah, Christopher},
|
| 181 |
+
year = {2026},
|
| 182 |
+
url = {https://github.com/CrillyPienaah/canfraudbench}
|
| 183 |
+
}
|
| 184 |
+
```
|
canfraudbench_synthid_n20000_seed23.jsonl
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:3113e29723d38e888d62165b105b5dd116a05e4facc21a2d0b3c577645c30fd5
|
| 3 |
+
size 11541098
|