Financial crime · Transaction models

Fraud Detection with Transaction Models

Transaction models learn patterns from the order, timing and context of activity across many customer histories. Those learned patterns can give fraud models additional context to distinguish suspicious activity from legitimate changes in behaviour.

Transaction cards become customer sequences and train a shared modelFive rows show a mixed transaction stream, one selected customer, a time-ordered encoded sequence, training across customers, and inference with a frozen model.01 / SOURCEMixed transactionsDifferent customers.New arrivals push left.02 / ASSEMBLEOne customerKeep each source position.Keep the useful context.03 / REPRESENTOrder + encodePosition follows event time.Staggered cards avoid overlap.04 / TRAININGLearn patternsacross historiesHide → Predict → CompareAdjust → Repeat05 / INFERENCEA new transactionUse the trained model.No weight update here.Shared sequence modelLearn patterns across customersWeights updated during trainingHistory → next eventPrediction vs observed eventTraining error updates weightsPreceding customer history+Trained modelFrozen weights · history contextHow unexpected?—Illustrative surprise index

Change the next transaction

Reach step 4 to explore prediction. These controls use a transparent demonstration formula, not a trained model.

Illustrative surprise index · not fraud probability
— / 100
Waiting for the trained-model stage

Unexpected does not mean fraudulent. Legitimate travel, a house purchase or a new routine can also look unusual.

Synthetic transactions. Educational animation. All surprise indices are produced by a hand-written formula, not machine learning.

Disclaimer: This tool is provided “as is”, without warranty, for education and discussion only. Its transactions are synthetic and its surprise index comes from a hand-written formula, not a trained model; it is not a fraud score, a model design, or evidence of detection performance. No data is sent from this page.