CoolFace
Datasetpublic

Abdulmajeedyahya/3Million-Enterprise-Bank-Records-Ultimate-Fraud

🏦 HAMZI.AI β€” Financial Ecosystem Dataset Enterprise-Grade Synthetic Financial Data for ML Research & Production Modeling Dataset Summary The HAMZI.AI Financial Ecosystem Dataset is a large-scale, richly structured synthetic dataset engineered to reflect the full complexity of a real-world retail banking and financial services environment. It covers every layer of the customer-to-transaction lifecycle β€” from demographic profiling and account management… See the full description on the dataset page: https://huggingface.co/datasets/Abdulmajeedyahya/3Million-Enterprise-Bank-Records-Ultimate-Fraud.

sourceHugging Faceotherupdated 4mo agoView on Hugging Face
2likes16downloads
Dataset Card

<div align="center">

🏦 HAMZI.AI β€” Financial Ecosystem Dataset

Enterprise-Grade Synthetic Financial Data for ML Research & Production Modeling

![Dataset](https://huggingface.co/datasets/hamziai/financial-ecosystem) ![Full Dataset](https://synthox.gumroad.com/l/xtfbh) ![Features](#dataset-structure) ![Tasks](#supported-tasks) ![License](https://synthox.gumroad.com/l/xtfbh)

</div>


Dataset Summary

The HAMZI.AI Financial Ecosystem Dataset is a large-scale, richly structured synthetic dataset engineered to reflect the full complexity of a real-world retail banking and financial services environment. It covers every layer of the customer-to-transaction lifecycle β€” from demographic profiling and account management to transaction forensics, behavioral risk signals, and AML indicators.

This dataset is designed as a production-grade training resource for machine learning engineers, data scientists, quantitative risk analysts, and financial AI researchers who require data that goes far beyond the shallow toy datasets commonly available online.

ℹ️ This repository hosts a 5,000-row representative sample for exploration, EDA, and model prototyping. The complete 3,000,000-record dataset is available for purchase β†’ [synthox.gumroad.com/l/xtfbh](https://synthox.gumroad.com/l/xtfbh)

Key Statistics

AttributeSample (this repo)Full Dataset
Rows5,0003,000,000
Columns5050
ML Targets22
Missing Values00
Duplicate Rows00
File FormatCSVCSV
Age Range24 – 60 years18 – 75 years
Income Range$7,488 – $108,385$5,000 – $500,000
Transaction Amount$1.08 – $113,897$0.01 – $2,500,000
AUM Range$3,165 – $1,452,642$100 – $50,000,000
Bureau Credit Score536 – 753300 – 850
Internal Risk Score529 – 769100 – 900

Supported Tasks

Primary Tasks

TaskTarget ColumnTypeDomain
Credit Default PredictionTarget_Credit_DefaultBinary ClassificationCredit Risk
Fraud & AML DetectionTarget_Is_Fraud_AMLBinary ClassificationFinancial Crime

Secondary / Derived Tasks

  • β€”Behavioral Anomaly Detection β€” using Behavioral_Anomaly_Flag as weak supervision
  • β€”Customer Lifetime Value Modeling β€” Total_Assets_Under_Management + Monthly_Avg_Inflow
  • β€”Transaction Channel Prediction β€” multiclass classification on Txn_Channel
  • β€”Credit Score Regression β€” predict Bureau_Credit_Score from behavioral features
  • β€”KYC Tier Classification β€” predict Account_KYC_Tier from customer profile
  • β€”Counterparty Risk Scoring β€” using Counterparty_Type + transaction forensics
  • β€”Delinquency Forecasting β€” early warning using Days_In_Overdraft_L12M + Credit_Card_Utilization_Rate

Why This Dataset

Most publicly available financial datasets suffer from one or more of the following:

  • β€”Fewer than 50,000 rows β€” insufficient for deep learning or robust ensemble models
  • β€”Fewer than 15 features β€” no room for feature interaction engineering
  • β€”Single ML target β€” cannot support multi-task or joint risk modeling
  • β€”No behavioral or device signals β€” missing the AML and fraud detection layer
  • β€”Pre-aggregated data β€” no individual transaction-level granularity

The HAMZI.AI Financial Ecosystem Dataset was built from the ground up to eliminate each of these gaps. It combines customer demographics, account portfolio data, individual transaction records, financial health indicators, digital behavior signals, and two fully labeled ML targets into a single, unified, zero-missing-value schema.


Dataset Structure

Feature Domains

The 50 columns are organized across six semantic domains:

β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚ Domain           β”‚ Columns β”‚ Description                                      β”‚
β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
β”‚ Customer Profile β”‚   10    β”‚ Demographics, employment, income, housing         β”‚
β”‚ Account Info     β”‚   10    β”‚ Account type, KYC tier, region, products, status  β”‚
β”‚ Transaction      β”‚   14    β”‚ Amount, type, channel, currency, balances         β”‚
β”‚ Financial Health β”‚    8    β”‚ Inflow/outflow, overdraft, credit utilization     β”‚
β”‚ Risk & Fraud     β”‚    6    β”‚ Device, VPN, IP, login failures, velocity         β”‚
β”‚ ML Targets       β”‚    2    β”‚ Credit default + Fraud/AML labels                 β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

Data Fields β€” Complete Reference

πŸ‘€ Domain 1: Customer Profile (10 features)
ColumnTypeRange / ValuesDescription
Cust_IDstringCUST-XXXXXXXXUnique customer identifier
Cust_Ageint6424 – 60Customer age in years
Cust_GenderstringM, FCustomer gender
Cust_Marital_StatusstringSingle, Married, Divorced, WidowedCurrent marital status
Cust_Dependentsint640 – 4Number of financial dependents
Cust_EducationstringHigh_School, Undergraduate, Postgraduate, DoctorateHighest education level attained
Cust_Employment_StatusstringEmployed, Self-Employed, Retired, Unemployed, StudentCurrent employment classification
Cust_Occupation_SectorstringFinance, Tech, Healthcare, Government, Retail, Construction, Retired, Student, UnemployedIndustry sector of primary occupation
Cust_Annual_Income_USDfloat64$7,488 – $108,385Gross annual income in USD
Cust_Home_OwnershipstringOwn_Outright, Own_Mortgage, Rent, Live_With_ParentsResidential ownership status
🏦 Domain 2: Account Information (10 features)
ColumnTypeRange / ValuesDescription
Account_IDstringACCT-XXXXXXXXXUnique account identifier
Account_TypestringChecking, Savings, Credit_Card, Money_MarketPrimary account product type
Account_Open_DatestringYYYY-MM-DDDate the account was originally opened
Account_StatusstringActive, Dormant, SuspendedCurrent operational status of the account
Account_KYC_TierstringTier_1_Basic, Tier_2_Standard, Tier_3_PremiumKnow Your Customer compliance level
Primary_Branch_RegionstringNorth, South, East, West, CentralGeographic region of the primary branch
Total_Assets_Under_Managementfloat64$3,165 – $1,452,642Total AUM across all customer holdings (USD)
Has_Active_Credit_CardboolTrue, FalseWhether the customer holds an active credit card
Has_Active_LoanboolTrue, FalseWhether the customer has an outstanding loan
Digital_Banking_EnrollmentboolTrue, FalseWhether the customer is enrolled in digital banking
πŸ’Έ Domain 3: Transaction Record (14 features)
ColumnTypeRange / ValuesDescription
Txn_IDstringTXN-XXXXXXXXXXUnique transaction identifier
Txn_TimestampstringYYYY-MM-DD HH:MM:SSUTC timestamp of the transaction
Txn_TypestringACH_Debit, POS_Purchase, ATM_Withdrawal, Online_Shopping, Wire_Transfer, Cash_Deposit, Crypto_Exchange_PurchaseTransaction category
Txn_ChannelstringMobile_App, Web_Portal, Branch_ATM, In_Person_BranchChannel through which the transaction was initiated
Txn_Amount_USDfloat64$1.08 – $113,897Transaction value in USD
Txn_CurrencystringUSD, EUR, GBP, LocalCurrency of the transaction
Counterparty_IDstringCP-XXXXXXXXXIdentifier of the counterparty entity
Counterparty_TypestringIndividual, Small_Business, Mega_Corporation, Offshore_Entity, High_Risk_ExchangeClassification of the counterparty β€” critical for AML scoring
Merchant_Category_Code_MCCint644111 – 7995ISO 18245 merchant category code
Txn_Response_CodestringApproved, Insufficient_Funds, System_Timeout, Suspected_Fraud_BlockTerminal response code returned by the payment processor
Orig_Balance_Beforefloat64$212 – $440,815Originating account balance immediately before the transaction
Orig_Balance_Afterfloat64–$6,262 – $440,116Originating account balance immediately after the transaction
Dest_Balance_Beforefloat64$202 – $99,898Destination account balance immediately before the transaction
Dest_Balance_Afterfloat64–$10,321 – $180,887Destination account balance immediately after the transaction
πŸ“Š Domain 4: Financial Health Indicators (8 features)
ColumnTypeRange / ValuesDescription
Monthly_Avg_Inflowfloat64$532 – $10,72312-month rolling average monthly credit inflow (USD)
Monthly_Avg_Outflowfloat64$467 – $8,56012-month rolling average monthly debit outflow (USD)
Overdraft_Limit_USDfloat64$903 – $8,961Approved overdraft facility limit (USD)
Days_In_Overdraft_L12Mint640 – 61Number of days account was in overdraft in the last 12 months
Credit_Card_Utilization_Ratefloat640.00 – 0.65Ratio of current credit card balance to total credit limit
Delinquency_StatusstringCurrent, 30_Days_Past_DueCurrent payment delinquency classification
Risk_Score_Internalint64529 – 769Proprietary internal risk scoring model output (higher = lower risk)
Bureau_Credit_Scoreint64536 – 753External bureau credit score (FICO-equivalent scale)
πŸ›‘οΈ Domain 5: Digital & Fraud Risk Signals (6 features)
ColumnTypeRange / ValuesDescription
Device_TypestringAndroid, iOS, Windows, MacOS, LinuxOperating system / device platform used for access
Device_IP_CountrystringISO 3166-1 alpha-2Country resolved from the session IP address at transaction time
Is_VPN_UsedboolTrue, FalseWhether a VPN or proxy was detected during the session
Login_Attempts_Fail_Countint640 – 3Number of failed authentication attempts in the session
Txn_Velocity_1Hint640 – 4Count of transactions initiated by this customer in the preceding 60 minutes
Behavioral_Anomaly_FlagboolTrue, FalseModel-generated flag indicating deviation from the customer's established behavioral baseline
🎯 Domain 6: ML Targets (2 features)
ColumnTypeClass Balance (sample)Description
Target_Credit_DefaultboolSee full datasetBinary label β€” whether this customer defaulted on a credit obligation
Target_Is_Fraud_AMLboolSee full datasetBinary label β€” whether this transaction constitutes fraud or an AML violation
Note on class balance: The 1,000-row sample is provided for schema validation and EDA. Class imbalance statistics representative of the full 3M-record dataset are documented in the full dataset release on Gumroad.

Data Instance Example

python
{
  "Cust_ID":                    "CUST-00000001",
  "Cust_Age":                   50,
  "Cust_Gender":                "M",
  "Cust_Marital_Status":        "Single",
  "Cust_Dependents":            0,
  "Cust_Education":             "Undergraduate",
  "Cust_Employment_Status":     "Employed",
  "Cust_Occupation_Sector":     "Finance",
  "Cust_Annual_Income_USD":     41397.17,
  "Cust_Home_Ownership":        "Own_Mortgage",
  "Account_ID":                 "ACCT-000000001",
  "Account_Type":               "Credit_Card",
  "Account_Open_Date":          "2014-01-15",
  "Account_Status":             "Active",
  "Account_KYC_Tier":           "Tier_3_Premium",
  "Primary_Branch_Region":      "North",
  "Total_Assets_Under_Management": 18422.44,
  "Has_Active_Credit_Card":     true,
  "Has_Active_Loan":            false,
  "Digital_Banking_Enrollment": true,
  "Txn_ID":                     "TXN-0000000001",
  "Txn_Timestamp":              "2024-09-16 19:56:16",
  "Txn_Type":                   "ACH_Debit",
  "Txn_Channel":                "Mobile_App",
  "Txn_Amount_USD":             16369.01,
  "Txn_Currency":               "USD",
  "Counterparty_ID":            "CP-002645610",
  "Counterparty_Type":          "Individual",
  "Merchant_Category_Code_MCC": 7995,
  "Txn_Response_Code":          "Approved",
  "Orig_Balance_Before":        6175.59,
  "Orig_Balance_After":         6175.59,
  "Dest_Balance_Before":        35282.83,
  "Dest_Balance_After":         51651.84,
  "Monthly_Avg_Inflow":         2658.43,
  "Monthly_Avg_Outflow":        2095.62,
  "Overdraft_Limit_USD":        7069.86,
  "Days_In_Overdraft_L12M":     0,
  "Credit_Card_Utilization_Rate": 0.40,
  "Delinquency_Status":         "Current",
  "Risk_Score_Internal":        728,
  "Bureau_Credit_Score":        723,
  "Device_Type":                "iOS",
  "Device_IP_Country":          "US",
  "Is_VPN_Used":                false,
  "Login_Attempts_Fail_Count":  0,
  "Txn_Velocity_1H":            2,
  "Behavioral_Anomaly_Flag":    false,
  "Target_Credit_Default":      false,
  "Target_Is_Fraud_AML":        false
}

Data Splits

SplitRowsPurpose
train (this repo)5,000Schema exploration, EDA, prototyping
Full dataset3,000,000Production model training & validation

The full 3M-record dataset includes pre-constructed train/validation/test splits with stratification on both target labels to preserve class distribution. Details are provided in the accompanying data sheet upon purchase.


Loading the Dataset

Using datasets library

python
from datasets import load_dataset

# Load the 5,000-row sample (this repository)
ds = load_dataset("hamziai/financial-ecosystem")
df = ds["train"].to_pandas()

print(df.shape)        # (5000, 50)
print(df.columns.tolist())
print(df.dtypes)

Using pandas directly

python
import pandas as pd

df = pd.read_csv(
    "hf://datasets/hamziai/financial-ecosystem/Financial_Ecosystem_Dataset_T1_5k.csv"
)
print(df.shape)
df.head()

Quick EDA starter

python
import pandas as pd
import matplotlib.pyplot as plt
import seaborn as sns

df = pd.read_csv("Financial_Ecosystem_Dataset_T1_5k.csv")

# Feature domains
CUSTOMER    = ["Cust_Age", "Cust_Annual_Income_USD", "Cust_Dependents"]
ACCOUNT     = ["Total_Assets_Under_Management", "Credit_Card_Utilization_Rate"]
RISK        = ["Risk_Score_Internal", "Bureau_Credit_Score", "Days_In_Overdraft_L12M"]
FRAUD       = ["Txn_Velocity_1H", "Login_Attempts_Fail_Count", "Is_VPN_Used"]
TARGETS     = ["Target_Credit_Default", "Target_Is_Fraud_AML"]

# Correlation matrix on numeric features
numeric_df = df.select_dtypes(include="number")
corr = numeric_df.corr()

plt.figure(figsize=(14, 10))
sns.heatmap(corr, cmap="coolwarm", center=0, annot=False, linewidths=0.4)
plt.title("Feature Correlation Heatmap β€” HAMZI.AI Financial Ecosystem")
plt.tight_layout()
plt.show()

# Target distributions
for target in TARGETS:
    print(f"\n{target}:\n{df[target].value_counts(normalize=True).mul(100).round(2)}")

Recommended feature engineering

python
# Derived features that significantly boost model performance
df["Net_Cash_Flow"]        = df["Monthly_Avg_Inflow"] - df["Monthly_Avg_Outflow"]
df["Income_to_AUM_Ratio"]  = df["Total_Assets_Under_Management"] / df["Cust_Annual_Income_USD"]
df["Credit_Risk_Compound"] = df["Credit_Card_Utilization_Rate"] * df["Risk_Score_Internal"]
df["High_Velocity_Flag"]   = (df["Txn_Velocity_1H"] > 3).astype(int)
df["Bureau_Internal_Gap"]  = df["Bureau_Credit_Score"] - df["Risk_Score_Internal"]
df["Overdraft_Severity"]   = df["Days_In_Overdraft_L12M"] * df["Overdraft_Limit_USD"]
df["Is_International_IP"]  = (df["Device_IP_Country"] != "US").astype(int)
df["Age_Income_Index"]     = df["Cust_Annual_Income_USD"] / df["Cust_Age"]

Dataset Creation

Curation Rationale

This dataset was engineered by the HAMZI.AI Data Science Division to address a fundamental gap in publicly available financial ML benchmarks: the absence of a large-scale, multi-domain, multi-target financial dataset that captures the full complexity of a production banking environment β€” including digital access patterns, counterparty risk profiles, and AML behavioral signals.

The design process involved:

  1. 1.Schema design β€” Review of real-world core banking system schemas, transaction monitoring platforms, and credit risk model inputs used by Tier-1 financial institutions
  2. 2.Statistical calibration β€” Distributions were calibrated against public aggregate statistics from central bank reports, FICO score distributions, and transaction monitoring research
  3. 3.Behavioral realism β€” AML signals (VPN usage, international IPs, high-velocity transactions, offshore counterparties) were incorporated with realistic base rates
  4. 4.Target labeling β€” Both binary targets (Target_Credit_Default, Target_Is_Fraud_AML) were generated using a rule-based expert system that evaluates combinations of risk indicators consistent with published fraud and credit default research

Source Data

This is a fully synthetic dataset. No real personal data, real customer records, real transaction data, or real financial institution data was used at any stage of production. The dataset is generated programmatically with statistical properties calibrated to reflect the characteristics of real financial data without containing any actual private information.

Annotations

The two binary target labels were produced by HAMZI.AI's proprietary expert annotation engine. The labeling logic incorporates:

  • β€”`Target_Credit_Default`: delinquency history, credit utilization rate, overdraft frequency, income-to-debt ratio, bureau score band, and internal risk tier
  • β€”`Target_Is_Fraud_AML`: VPN usage, international IP, failed login count, transaction velocity, counterparty risk type (offshore entities, high-risk exchanges), behavioral anomaly flag, and transaction response codes

Intended Use

Appropriate Uses

  • β€”βœ… Training and benchmarking fraud detection machine learning models
  • β€”βœ… Developing and evaluating credit default prediction pipelines
  • β€”βœ… AML transaction monitoring model research
  • β€”βœ… Feature engineering research for financial tabular data
  • β€”βœ… Academic research in financial AI, explainability (XAI), and fairness
  • β€”βœ… Kaggle competitions and hackathons in the finance/risk domain
  • β€”βœ… Data science education β€” teaching financial ML pipelines end-to-end
  • β€”βœ… Model benchmarking β€” comparing classifiers on realistic multi-domain financial features

Out-of-Scope Uses

  • β€”βŒ Making real financial or credit decisions about real individuals
  • β€”βŒ Replacing compliance-grade AML systems in production financial institutions without proper validation
  • β€”βŒ Any use that claims the synthetic data represents real customers or transactions

Considerations for Using the Data

Social Impact

This dataset is designed to advance the state of financial AI research. The availability of high-quality synthetic financial data with realistic AML and credit risk signals reduces the barrier to entry for researchers and engineers who would otherwise lack access to the proprietary datasets held by large financial institutions.

Bias and Fairness

As a synthetic dataset, distributions across demographic features (Cust_Gender, Cust_Marital_Status, Cust_Education, Cust_Occupation_Sector) were calibrated to reflect broad population distributions and are not derived from any specific real-world population. Users conducting fairness research should evaluate model outputs across demographic slices and are encouraged to apply fairness constraints appropriate to their jurisdiction and use case.

Known Limitations

  • β€”The 5,000-row sample hosted here is intended for schema validation and EDA only. Class imbalance in both targets is best evaluated using the full 3M-record dataset
  • β€”The dataset represents a single snapshot of transactions (no temporal drift by design in the sample); the full dataset includes temporal sequences suitable for time-series modeling
  • β€”Country coverage in Device_IP_Country is weighted toward North American and European geographies in the sample

Full Dataset β€” Commercial Access

The complete 3,000,000-record production dataset is available for purchase and includes:

  • β€”βœ… Full 3M rows with comprehensive class representation for both targets
  • β€”βœ… Pre-constructed stratified train / validation / test splits
  • β€”βœ… Accompanying data sheet with detailed statistical documentation
  • β€”βœ… Schema changelog and versioning history
  • β€”βœ… Priority email support for integration questions
### πŸ”— Purchase Full Dataset β†’ synthox.gumroad.com/l/xtfbh

Citation

If you use this dataset in academic work, please cite:

bibtex
@dataset{hamziai_financial_ecosystem_2024,
  author       = {HAMZI.AI Data Science Division},
  title        = {HAMZI.AI Financial Ecosystem Dataset: Enterprise-Grade Synthetic
                  Financial Data for Credit Risk and AML Fraud Detection},
  year         = {2024},
  publisher    = {HAMZI.AI},
  version      = {T1},
  url          = {https://huggingface.co/datasets/hamziai/financial-ecosystem},
  note         = {Full 3M-record dataset available at https://synthox.gumroad.com/l/xtfbh}
}

License

The 5,000-row sample hosted in this repository is made available for non-commercial research and evaluation purposes.

The full 3,000,000-record dataset is distributed under a commercial license. See the Gumroad product page for full license terms, permitted use cases, and redistribution restrictions.


Contact & Support


<div align="center">

Built with precision by the HAMZI.AI Data Science Division

Advancing financial AI through production-grade synthetic data

</div>