GraphGuard

Graph-based fraud investigation

Fraud never travels alone.

Each payment in a ring looks ordinary on its own. GraphGuard follows them into a graph of accounts, phones and merchants, scores them with a model that has to earn its release, and hands an analyst a case they can check line by line.

Synthetic data throughout. Every result on this page comes from CI runs against real Kafka, Neo4j and MLflow services.

Move across the board to look closer

A payment network with a hidden fraud ringFive accounts look unrelated in their payments. Inside the lens, links appear: they share two phones and all top up the same merchant.
0/10

Hidden links foundPayments alone look ordinary.

Looking

Follow one payment from card to case.

Five stages, each running against real services in CI. Scroll to watch an illustrative payment move through them.

  1. 1

    Ingest

    The payment lands on Kafka as an Avro record checked against the schema registry. Delivery is at-least-once, and the consumer resumes where it stopped after a restart.

    Kafka, Avro schema registry
  2. 2

    Connect

    Neo4j links the account to its phone and the merchant. Features are taken as of the payment time, so the model never sees anything from the future.

    Neo4j, point-in-time features
  3. 3

    Score

    An XGBoost model scores the payment. It only got this job by clearing the release gate in the MLflow registry.

    XGBoost, MLflow registry
  4. 4

    Explain

    SHAP breaks the score into the features that pushed it up and the ones that pulled it down, and the explanation travels with the case.

    SHAP
  5. 5

    Decide

    An analyst opens the signed case, checks the evidence and records a decision. The model never makes the call on its own.

    FastAPI, GraphQL, Next.js

A model has to earn its release.

Every candidate is scored on a held-out period and must clear fixed floors before it replaces the champion. To prove the gate bites, CI also trains a model on shuffled labels and expects it to be turned away.

Clean modelPromoted to championShuffled-label modelRejected, champion kept
ROC-AUC, clean model
0.941floor 0.90
Calibration error (ECE)
0.063ceiling 0.10
Recall at the validation threshold
0.81floor 0.75

Synthetic test split, 144 rows. Re-run on every change by GitHub Actions.

What it is, and what it isn't.

The numbers describe a seeded generator, not a bank. Read the architecture or the code to see exactly how each claim is checked.

  • Synthetic data onlyTransactions come from a seeded generator, so scores describe that generator rather than real fraud.
  • The graph neural network is experimentalThe GAT path trains, but scoring uses the XGBoost champion from the registry.
  • Heavy services run locallyThe hosted site is the front end. Kafka, Neo4j and the model service run with Docker Compose.