Meta
Medium
Scam Detection F1 Score rose from 0.74 to 0.81 while Protection CSAT fell 19%. What’s happening?
This is a metric paradox question. Not a model accuracy question. F1 measures the model on a labelled test set. CSAT measures how people feel about what the system did to them. The answer is in the gap.
Step 1. Clarifying Questions
- F1 on what? An offline eval set or live traffic? Assume the offline eval set.
- What happens when the model flags? Assume a warning on suspicious messages and restrictions on suspected scam accounts.
- Who answers the CSAT survey? Assume users who touched a protection surface: a warning, a block, a report or an appeal.
Step 2. What F1 hides
F1 = 2 × precision × recall ÷ (precision + recall). It hides five things.
1. Which half moved. Recall can jump while precision slips, and F1 still rises.
2. The base rate. Scams are rare, say 1 in 1,000 messages (illustrative). A small precision drop on billions of messages means lakhs of real users wrongly flagged.
3. Severity. Catching 10,000 lottery spam messages scores the same as missing one investment scam that costs someone ₹5 lakh.
4. Drift. The test set holds last quarter's scams. Fraudsters moved to new scripts like fake stock tip groups and part-time job offers. Offline F1 rises while live recall falls.
5. The action. F1 says nothing about a scary warning screen or a 7-day appeal.
Step 3. Hypotheses
- False positives up: a small shop's account is restricted for messaging customers. Angry, and loud in CSAT.
- High-loss scams still missed: victims rate protection 1 out of 5.
- More warnings for everyone: friction and warning fatigue.
- Survey mix shift: more users now see protection surfaces, so the CSAT population itself changed.
Step 4. How to verify
- Confusion matrix in counts, not ratios: false positives and false negatives per day, before vs after.
- Live precision from a weekly human-labelled sample.
- CSAT cut by touchpoint: wrongly flagged, warned, reported a scam with no action, appealed.
- Appeal volume and overturn rate. A high overturn rate is a precision problem.
- Money lost to scams as reported by users, by scam type.
Step 5. What should you do
- Split thresholds by action. Hard blocks and account restrictions: optimise precision. Soft warnings: optimise recall.
- Fast appeals for false positives, with human review for business accounts.
- Refresh the eval set every month with new scam types from user reports.
- Replace F1 as the headline with a cost-weighted metric: money loss prevented minus the cost of false positives. Keep CSAT as the guardrail.
Interview tip: a better F1 is a better model on paper. Ask what the model did to real people, in counts, before you call it progress.
Community Answers (1)
F1 score is a mix of precision & recall. If F1 score is increasing, one of the possibility is that the precision reduced & recall increased. If precision is falling, this indicates that many of the users / transactions are getting flagged wrongly and hence a sharp increase in the CSAT is also following. There is other likelihood also that the recall if falling while precision is increasing, but in that case the CSAT will not fall so drastically & quickly