17

Fraud Scoring On A Transaction Graph

Scores each payment against the accounts and devices around it, and shows an analyst the evidence. Synthetic, not production.

Fraud Scoring On A Transaction Graph is a Detection & Response project by Kolade Eniola. Still in progress; the source is private.

buildingpython · pytorch-geometric · xgboost · shap · fastapi · reactSource private

Done when

Scored on the public PaySim dataset, on accounts never seen in training, and the source is public.

Two models score each transaction. GraphSAGE reads a bounded graph of the accounts and devices active in the previous 48 hours; XGBoost reads the same engineered features as a table. Neither sees a label, or any event later than the one it scores. An analyst works a queue sorted by risk, looks at the graph, and records a decision with a reason.

Each model explains only itself. XGBoost gets SHAP contributions. GraphSAGE gets one test: how its score changes when the graph edges are removed. The server writes the explanation from those numbers, so an optional language model can choose which lines to show but cannot add a claim.

The failure worth recording was a unit. Timestamps were bare integers read as hours, so a feed in epoch seconds would have shrunk the 48-hour window to 48 seconds and corrupted every feature without an error. Each model now stores its time unit, and a timestamp later than the year 2200 in that unit is rejected.

It runs on synthetic data only. The demo’s near-perfect scores come from easy, generated cases and say nothing about real fraud. No public benchmark has been run yet.