Financial Fraud Risk Scorer πŸ’³

A calibrated tabular gradient boosting model trained to evaluate financial transaction telemetry and predict fraudulent activity with cost-sensitive decision boundaries.


🎯 Architecture & Objectives

In real-world payment networks, false positives (locking legitimate accounts) degrade user experience, while false negatives cause direct chargeback liabilities.

This model outputs calibrated probability estimates ($P(\text{fraud})$) that can be plugged into custom utility functions: Thresholdβˆ—=arg⁑min⁑T(CFPβ‹…FP(T)+CFNβ‹…FN(T))\text{Threshold}^* = \arg\min_T \Big( C_{\text{FP}} \cdot \text{FP}(T) + C_{\text{FN}} \cdot \text{FN}(T) \Big)


πŸ“Š Input Features Schema

Feature Type Description
amount_normalized float Transaction value relative to customer 30-day baseline.
velocity_score float Number of transactions within the trailing 10-minute window.
geo_distance_delta float Physical distance difference from preceding transaction location.
high_risk_mcc int Binary indicator for high-risk Merchant Category Codes (0 or 1).
entropy_score float Statistical deviation from customer category spending distribution.

πŸ’» Python Quickstart

import joblib
from huggingface_hub import hf_hub_download

# Download model weights from Hugging Face
model_path = hf_hub_download(
    repo_id="Jayan12321/financial-fraud-risk-scorer",
    filename="model.joblib"
)

# Load pipeline
classifier = joblib.load(model_path)

# Predict risk score on sample transaction
# [amount, velocity, geo_distance, high_risk_mcc, entropy]
transaction = [[2.4, 3.1, 1.8, 1, 0.9]]
prob_fraud = classifier.predict_proba(transaction)[0, 1]

print(f"Fraud Risk Score: {prob_fraud:.4f}")
Downloads last month

-

Downloads are not tracked for this model. How to track
Inference Providers NEW
This model isn't deployed by any Inference Provider. πŸ™‹ Ask for provider support

Collection including Jayan12321/financial-fraud-risk-scorer

Evaluation results