tx_amount float64 | account_balance float64 | daily_frequency float64 | geo_distance float64 | night_time_indicator float64 | is_fraud int64 |
|---|---|---|---|---|---|
0.034193 | -1.384183 | 1.224721 | -0.510307 | -0.29797 | 0 |
-0.527384 | -1.251183 | -0.056064 | 0.746886 | -1.847325 | 0 |
1.566549 | 3.099918 | 0.680378 | -0.136566 | -0.379099 | 0 |
0.46311 | 1.400811 | -0.20253 | -0.152786 | 0.685699 | 0 |
-0.870341 | -2.64983 | 0.394982 | -0.670566 | -1.920341 | 0 |
-0.814054 | -0.603291 | -1.193202 | -1.492464 | 0.036638 | 0 |
0.897249 | 3.135438 | -0.743596 | 0.384994 | 0.717236 | 0 |
-0.300011 | -2.001477 | 1.042875 | -0.206956 | -0.813516 | 0 |
0.347651 | -0.449449 | 1.098813 | -1.284581 | -0.661613 | 0 |
-0.838167 | -2.247139 | 0.126435 | 0.527804 | -0.73879 | 0 |
1.385647 | 2.711266 | 0.627376 | 0.401707 | 0.95567 | 0 |
-1.33198 | -4.053282 | 0.602777 | -1.767719 | 0.34703 | 0 |
-0.250421 | -0.099179 | -0.439062 | -0.018241 | 0.342852 | 0 |
-0.876262 | -2.064698 | -0.104963 | 0.492483 | -0.521838 | 0 |
1.086202 | 2.929134 | -0.178025 | 0.631957 | 1.259755 | 0 |
1.791176 | 3.418181 | 0.883132 | 0.465069 | -0.093861 | 0 |
-1.006665 | -1.002577 | -1.261738 | 0.566945 | 1.301868 | 0 |
-1.599669 | -2.428113 | -1.309217 | 0.244054 | 1.514375 | 0 |
2.023556 | 5.748829 | -0.574949 | 0.703545 | 1.579373 | 0 |
0.421211 | 0.696469 | 0.297132 | -0.016619 | -0.203741 | 0 |
-0.734471 | -2.205633 | 0.30788 | -0.092984 | -0.221688 | 0 |
-1.284917 | -4.660031 | 1.20645 | -0.190558 | -1.439697 | 0 |
1.334443 | 0.806403 | 2.108087 | 0.062512 | -0.461385 | 0 |
-1.447645 | -6.702526 | 2.569512 | -0.820935 | -0.647088 | 0 |
0.596189 | 1.815142 | -0.270558 | -0.349838 | 0.191959 | 0 |
1.094818 | 1.634354 | 0.91891 | -0.419889 | 0.327799 | 0 |
-2.138226 | -6.30066 | 0.795913 | -0.590149 | 0.579915 | 0 |
0.542344 | 0.38163 | 0.811859 | 1.016991 | -0.111671 | 0 |
-0.698285 | -1.16006 | -0.488044 | -1.129829 | -0.547444 | 0 |
-0.092569 | 0.175246 | -0.338891 | -1.923683 | -0.072283 | 0 |
0.225346 | -0.130072 | 0.577864 | -0.643561 | -0.723777 | 0 |
2.010598 | 2.828766 | 1.83144 | 2.129445 | -0.818084 | 0 |
0.385269 | 0.291639 | 0.559612 | 0.541902 | 0.202055 | 0 |
0.174129 | 0.633805 | -0.165401 | -0.74762 | 0.126087 | 0 |
-0.467546 | -2.151757 | 0.819076 | 0.308692 | 0.316168 | 0 |
0.092947 | 0.429768 | -0.164501 | -0.495646 | 0.387987 | 0 |
0.014113 | 1.629662 | -1.328648 | 0.887779 | -0.762696 | 0 |
-0.734282 | -1.159644 | -0.563385 | 0.291125 | -0.574165 | 0 |
-1.069478 | -4.248074 | 1.311983 | 0.044258 | -1.16753 | 0 |
0.008377 | -2.126536 | 1.789567 | -1.524478 | 0.478753 | 0 |
0.543626 | 0.998732 | 0.300277 | 0.997172 | 0.467575 | 0 |
0.261016 | 0.459455 | 0.160905 | 0.336425 | -0.126712 | 0 |
0.631806 | 0.629398 | 0.791763 | -0.505302 | -1.090653 | 0 |
0.365249 | -0.240891 | 0.961678 | -0.51565 | 0.69806 | 0 |
-0.454209 | -1.242957 | 0.089528 | -2.317218 | 0.191615 | 0 |
-1.029609 | -0.804754 | -1.47439 | -1.516558 | -0.943264 | 0 |
0.825597 | 2.094239 | -0.025205 | 1.091791 | -0.263981 | 0 |
-1.911973 | -5.31471 | 0.445648 | -0.428617 | 0.302224 | 0 |
0.572556 | 3.203592 | -1.476834 | -0.221254 | -0.211061 | 0 |
-0.352663 | -2.952365 | 1.725589 | -0.416647 | 0.698887 | 0 |
0.940931 | 1.095344 | 1.047486 | -0.389244 | 0.739806 | 0 |
2.024482 | 5.805077 | -0.619894 | 0.607712 | 1.26238 | 0 |
0.368986 | -0.929231 | 1.543081 | -1.249767 | 0.503425 | 0 |
-0.016176 | -1.503779 | 1.21945 | 0.347888 | -1.166798 | 0 |
0.601728 | 3.787667 | -1.902789 | -0.688905 | 0.263551 | 0 |
0.635703 | 1.535059 | 0.045165 | 0.46999 | -0.210976 | 0 |
1.176955 | 2.589681 | 0.293922 | 0.540799 | -1.057169 | 0 |
-0.709227 | -2.175438 | 0.335309 | -0.282616 | 0.341484 | 0 |
-0.481622 | -0.40501 | -0.665871 | 0.276019 | -1.577703 | 0 |
1.33092 | 5.224789 | -1.581241 | -0.223842 | -0.370996 | 0 |
0.152398 | -0.095963 | 0.397466 | 3.623568 | -1.278668 | 0 |
0.337716 | 0.613159 | 0.192608 | -1.811809 | -1.151009 | 0 |
0.45966 | -0.813137 | 1.635238 | -0.704797 | 0.1745 | 0 |
2.913121 | 8.367404 | -0.903833 | -0.03513 | -0.044563 | 0 |
0.844167 | 3.018505 | -0.756739 | 0.211422 | 2.638597 | 0 |
1.271774 | 3.349854 | -0.142017 | -0.875091 | 0.622263 | 0 |
-0.173263 | -1.550641 | 0.931236 | 0.890403 | 0.186571 | 0 |
-0.040298 | -1.65508 | 1.29528 | 0.53439 | -0.351133 | 0 |
1.275085 | 3.28085 | -0.077615 | -0.791377 | -0.565992 | 0 |
-0.636047 | -2.810332 | 1.016846 | 0.566478 | -0.214271 | 0 |
1.045984 | 2.169078 | 0.371567 | -2.474764 | -0.233016 | 0 |
0.532189 | -0.877881 | 1.840295 | 1.425838 | -1.16161 | 0 |
-2.197671 | -5.527317 | 0.027616 | 0.962553 | -0.125884 | 0 |
0.219755 | 0.011776 | 0.44801 | -0.444898 | 0.349985 | 0 |
0.459406 | 0.768354 | 0.316801 | -0.013607 | 0.7592 | 0 |
0.501743 | 1.95984 | -0.587902 | 1.743739 | -0.101595 | 0 |
0.991808 | 3.156454 | -0.564112 | -0.748974 | 0.120126 | 0 |
0.256654 | 2.161956 | -1.266933 | -0.594683 | -0.094866 | 0 |
1.600749 | 3.47494 | 0.439112 | -0.540046 | 0.431377 | 0 |
-0.491979 | -3.107513 | 1.564638 | 0.354197 | 0.4334 | 0 |
0.372858 | 0.280523 | 0.543018 | -0.208347 | -0.811714 | 0 |
-0.038548 | -1.000546 | 0.75348 | -0.042839 | -0.529442 | 0 |
1.455972 | 2.116254 | 1.269729 | 0.607667 | -0.109699 | 0 |
-0.419093 | -2.184962 | 0.947691 | 0.111903 | -1.482843 | 0 |
-0.039083 | -0.296746 | 0.165866 | -1.20382 | -1.263936 | 0 |
0.118579 | 2.290563 | -1.661762 | 0.748224 | 2.163097 | 0 |
-1.481376 | -2.878092 | -0.687789 | -0.494091 | -0.178887 | 0 |
-1.445277 | -4.204425 | 0.492694 | -0.751454 | -0.277077 | 0 |
-1.516359 | -4.914354 | 0.936213 | -1.71529 | -0.43624 | 0 |
0.146792 | -1.252217 | 1.349331 | -0.457253 | -0.740307 | 0 |
0.4504 | 1.498022 | -0.310019 | 1.080184 | 1.689738 | 0 |
0.265868 | -0.020845 | 0.571262 | -1.887516 | -0.018249 | 0 |
-1.060577 | -3.515682 | 0.7202 | 0.14137 | -0.194365 | 0 |
-2.514956 | -8.242633 | 1.629369 | -0.72882 | 0.683405 | 0 |
0.722543 | 0.683469 | 0.93574 | 1.354781 | 0.22848 | 0 |
-0.063182 | 1.69095 | -1.540754 | 0.093281 | 1.054342 | 0 |
-1.242435 | -2.604213 | -0.41823 | -2.080827 | -0.105748 | 0 |
-0.971897 | -1.023172 | -1.172141 | 1.050276 | -0.73883 | 0 |
0.356357 | 1.27838 | -0.322905 | 1.19176 | 0.215278 | 0 |
-0.395032 | -2.379522 | 1.159951 | 0.732811 | -0.326536 | 0 |
Overview
TSB-Fraud-Tabular is a synthetic tabular anomaly detection benchmark developed by BhinnekaAI for evaluating machine learning methods that identify illicit financial transactions and account takeovers in digital commerce platforms.
The benchmark focuses on financial discrepancies where fraudsters attempt to evade detection by keeping transaction amounts within plausible ranges while altering behavioral combinations, such as high transaction frequencies paired with geographic anomalies during unusual hours.
Normal observations preserve expected statistical relationships between transaction amounts, account balances, and user behavior. Anomalies are introduced by disrupting these multivariate dependencies or injecting right-skewed extreme behaviors.
The benchmark is intended for research on tabular anomaly detection, financial fraud analysis, and the evaluation of global anomaly scoring methods.
Dataset information
| Property | Description |
|---|---|
| Dataset name | TSB-Fraud-Tabular |
| Full name | Tabular Multi-Source Fraud Benchmark |
| Publisher | BhinnekaAI |
| Dataset Creator | Christopher Alberto Hamonangan |
| Domain | Digital banking, fintech, and financial fraud detection |
| Data modality | Structured numerical tabular data |
| Feature count | 5 numerical features |
| Data type | Synthetic |
| Task | Financial fraud anomaly detection |
| Expected anomaly proportion | Approximately 8.0% |
| Label convention | 0 = normal transaction; 1 = fraudulent transaction |
| Primary objective | Detect multivariate deviations from normal user spending profiles |
Research Problem
Digital payment systems process millions of daily transactions involving amounts, user balances, geographical locations, and temporal indicators. Fraudulent transactions often do not appear as extreme outliers in individual features, but rather as inconsistent multivariate patterns.
For example, a transaction may involve a normal amount, but originate from an abnormal geographical distance during late-night hours for an account with a low balance.
Anomaly detection methods relying strictly on individual feature thresholds often fail in these scenarios. This benchmark emphasizes the detection of subtle in-cluster relational anomalies.
The benchmark investigates:
- Detection of behavioral inconsistencies in financial logs.
- Performance under right-skewed Log-Normal economic distributions.
- Evaluation of global vs. local anomaly scoring methods under imbalanced labels.
Dataset Structure
The repository follows the two-directory structure used across the BhinnekaAI HDS benchmark suite.
random-seed
| Property | Specification |
|---|---|
| Directory | 1_Credit_Card_Fraud_Simulator/random-seed/ |
| Number of files | 5 |
| Observations per file | 5,000 |
| Naming convention | dataset_5000_rows_seed{seed}.csv (seeds: 11, 22, 33, 44, 55) |
| Intended use | Repeated-realization experiments |
3.2. seed42
| Property | Specification |
|---|---|
| Directory | 1_Credit_Card_Fraud_Simulator/seed42/ |
| Random seed | 42 |
| Number of files | 5 |
| File naming convention | dataset_{size}_rows_seed42.csv |
| Dataset size | Intended evaluation |
|---|---|
| 100 | Small-sample behavior |
| 1,000 | Initial model comparison |
| 10,000 | Intermediate-scale evaluation |
| 50,000 | Large-scale evaluation |
| 100,000 | Maximum specified sample-size evaluation |
Feature Specification
| Feature | Description | Data Type |
|---|---|---|
tx_amount |
Numerical transaction amount | Continuous (Log-Normal) |
account_balance |
Current account balance of the user | Continuous |
daily_frequency |
Number of daily transactions executed | Discrete (Poisson) |
geo_distance |
Geographical distance from home location in km | Continuous (Exponential) |
night_time_indicator |
Binary indicator for late-night transactions | Binary (Binomial) |
Mathematical Formulation
Normal transaction amounts follow a right-skewed Log-Normal distribution reflecting standard economic expenditure:
tx_amount ~ LogNormal(μ = 5.5, σ = 0.6)
Anomalies are generated by shifting distributions toward extreme economic values while disrupting typical balance-to-amount ratios.
Loading the Dataset
import pandas as pd
df = pd.read_csv("seed42/dataset_10000_rows_seed42.csv")
X = df.iloc[:, :-1].values
y = df['is_fraud'].values
print(df.head())
- Downloads last month
- 31