What Fraud Actually Is
Before writing a single line of code, get the vocabulary right. "Fraud detection" is used loosely in industry to mean at least three different jobs. They have different deadlines, different tools, different teams and different metrics. Confusing them leads to bad architectural decisions and worse models.
The three jobs called "fraud detection"
The three jobs share the word "fraud" but have almost nothing else in common technically.
| Job | Deadline | Primary tool and owner |
|---|---|---|
| 1. Real-time prevention | Milliseconds to seconds | ML model + rules engine. Owned by fraud engineering. Metric: cost-weighted expected value, precision-at-K. |
| 2. Investigation | Minutes to days | Case management platform (Feedzai, Actimize, homegrown). Owned by fraud operations. Metric: cases per analyst-day, chargeback recovery rate. |
| 3. Financial crime | Hours to weeks (batch) | Typology rules + graph analytics. Owned by compliance. Metric: STR filing rate, regulator satisfaction, coverage. |
Confusing them is what causes the classic mistakes: someone tries to use an AML-style batch pipeline for card authorisation (too slow, wrong shape), a data scientist builds a real-time model for AML typologies (missing the structural view), a case management tool ships without ranking (wastes analyst time on low-risk noise).
What this course focuses on
The rest of this course is about Job 1: real-time prevention. That is where the ML-heavy work lives and where most of the technical mistakes happen. Job 2 shows up in module 7 when we cover how models feed analyst case queues and how analyst feedback loops back into training. Job 3 gets most of module 6, on graph analytics and anti-money-laundering patterns.
Every phrase in that sentence matters. Break it apart.
Predicting
Fraud detection is a prediction problem, not a lookup. You do not have a list of fraudulent card numbers you can check against. Fraudsters use stolen cards that look identical to legitimate ones until the real owner notices something wrong, which can take hours or days. The prediction has to be made from behaviour, not identity.
In real time or near real time
The decision has a hard deadline. When a card is swiped at a Woolworths till, the payment network expects an authorisation response in under 500 milliseconds. Anything slower and the transaction times out and gets declined by default. This constraint shapes every architectural choice downstream: which features you can compute, which models you can use, how you store data and how you retrain.
Not every fraud decision is real time. AML monitoring runs on batch pipelines that produce reports overnight. Insurance claim fraud is scored days or weeks after submission. Application fraud has minutes to hours. Know the deadline before you design.
A specific event
Fraud detection scores events, not people. The same customer can execute a legitimate transaction at 09:00 and a fraudulent one at 10:00 if their card was cloned in between. A "person" is not a useful unit of scoring: the same person can be a victim at breakfast and a victim again at lunch. The unit is always the event.
Intent to deceive for financial gain
This is the phrase that separates fraud from abuse, error and dispute.
The five common fraud shapes
Every fraud detection problem you will meet in South African financial services fits one of these five shapes. Each has a different feature space, a different model choice and different production constraints.
Two shapes that look like fraud but are not
Worth naming so you can push back when a stakeholder asks you to build the wrong thing.
What you will build in this course
Everything in this module positions the problem. The rest of the course is applied: by module 8 you will have shipped an end-to-end pipeline that trains a fraud model on real imbalanced transaction data, calibrates it to a cost matrix, explains any given decision to an analyst, and monitors itself for drift. It is a small system, but the shape is the shape.
- Three jobs share the name "fraud detection". Real-time prevention (ML), post-hoc investigation (analysts), regulator-driven financial crime monitoring (compliance).
- This course focuses on Job 1. Jobs 2 and 3 appear in modules 6 and 7.
- Job 1 is prediction, not lookup. No blacklist. Score behaviour, not identity.
- The unit is the event. A specific transaction, login, application or claim. Never "the person".
- Five common event shapes. Card, ATO, SIM-swap, application, AML. Each has a different feature space and model.
- Not credit risk, not conduct risk. Push back when a stakeholder confuses these.