Fraud is when someone deliberately tricks the system for money. It comes in many shapes: stolen credit cards, fake expense claims, duplicate invoices, fake refunds, or manipulated financial statements.
Fraud costs businesses hundreds of billions of dollars a year. The challenge? Fraudsters are smart — they adapt, change tactics, and hide well. That's why ML is a powerful tool: it can find subtle patterns humans overlook.
| Type | What It Looks Like | Detection Approach |
|---|---|---|
| 💳 Card fraud | Stolen card used in unusual places | Real‑time anomaly scoring |
| 📄 Expense fraud | Fake receipts, inflated claims | Rules + ML classification |
| 💰 Transaction fraud | Duplicate invoices, fake vendors | Link analysis + graph ML |
| 📊 Statement fraud | Falsified financial statements | Benford's law + statistical tests |
If you have labelled examples of fraud and non‑fraud, you can train a classifier. But here's the catch: fraud is incredibly rare. In a million transactions, maybe 100 are fraud. That's a 0.01% fraud rate.
Techniques to fight imbalance: SMOTE (create synthetic fraud examples), cost‑sensitive learning (make missing a fraud more expensive than a false alarm), and threshold tuning (tune the decision boundary for precision or recall, depending on what matters most).
What if you don't have labelled fraud examples? That's often the real situation — fraudsters invent new patterns all the time. Unsupervised methods learn what "normal" looks like and flag deviations.
Isolation Forests build random trees that isolate unusual points quickly. Autoencoders learn to reconstruct normal transactions — when a transaction has a large reconstruction error, it's flagged as suspicious.
Rules catch obvious cases ("transaction over $10,000 from a new country at 3 AM"). ML catches subtle patterns rules miss. The best fraud systems combine both.
The flow often looks like this: rules filter obvious cases first, ML scores the rest, and human analysts review only the highest‑risk alerts. Each layer handles what it does best.
Fraud doesn't happen in isolation. A stolen card might be used at a shell merchant. A fake invoice might involve a network of connected companies. Graphs capture these connections beautifully.
Nodes = accounts, cards, merchants, people. Edges = transactions or relationships. Graph ML algorithms detect rings, strange loops, and communities that behave suspiciously. It's a huge step beyond individual transactions.
Here's the real‑world pain: if your model flags too many transactions as suspicious, human analysts get buried in false alarms. That's alert fatigue. They start ignoring alerts — including the real ones.
The fix? Tune the threshold carefully. Higher threshold = fewer alerts but more missed frauds (lower recall). Lower threshold = catch more frauds but bury analysts in noise. There's no perfect answer — you balance business impact, analyst capacity, and risk tolerance.
Spot the fake: Look at 10 imaginary transactions. Which ones look suspicious? Write one sentence per suspicious case explaining why. Then decide which rule you'd write to catch it.
Precision–recall calculator: Out of 100 alerts, 5 are real fraud and 95 are false alarms. What's the precision? Now if you tighten the threshold to 20 alerts with 4 real, what's the new precision? Which is better for a busy analyst?
Rule + ML hybrid: Write two rules ("transaction > $5k from a new country" and "5 transactions in 5 minutes") and one ML principle ("this transaction's pattern matches historical fraud"). Decide how each would catch a different case.
Anomaly intuition: For a coffee shop, list 5 "normal" patterns (morning rush, weekend quiet, etc.) and one "suspicious" pattern (10 lattes bought at 3 AM). What makes it suspicious? What might also explain it innocently?
Graph sketch: Draw a small graph with 4 accounts and 6 transactions. Which account is the "hub"? Which edge pattern looks like a possible fraud ring? Write one sentence about what a graph algorithm might flag.
Alert fatigue debate: A team's model flags 500 alerts per day, and analysts can only review 100. Should they raise the threshold (miss more fraud but review all alerts) or hire more analysts? Argue both sides in 2 sentences each.
By the end of this module, you'll be able to: describe types of financial fraud, train classifiers on imbalanced data, use unsupervised anomaly detection, combine rules with ML, apply graph methods, and balance the precision–recall tradeoff to prevent alert fatigue.