Fraud, Gotta Catch 'Em All: Running AWS Fraud Detector in E-commerce

Daisy Doyle25 Nov 2025

Problem

E-commerce teams that score orders for fraud face four recurring schemes: promo abuse, credit card chargebacks, account hijacking and triangulation. Fraud is under 0.5% of orders, so accuracy says nothing: a model that calls every order legitimate scores about 99.5%. Managed scoring costs money per call, and a human reviewer must see flagged orders. Fraud that is stopped never completes, so labels for retraining stay uncertain.

Example from the article: the speaker contrasts a high-volume, cheap-goods business with fast-changing account takeover against a low-volume, high-value business with slow chargeback and triangulation fraud.

Solution in brief

Score orders with AWS Fraud Detector (0 to 1000 score). Evaluate it on about 1,000 labelled orders in three steps (fraud only, 50/50, realistic mix), because each call costs three cents. Send orders above a threshold to human reviewers. Set the threshold, trial length and retraining cadence from item cost, order volume and how fast fraud labels arrive.

Questions this case answers
  • How to evaluate a paid-per-call risk-scoring model on a small sample when the positive class is under 0.5% of events
  • How to introduce a model score into a human review process when ground-truth labels are delayed by weeks or months
  • How to keep a model trained on rare adversarial events fed with fresh labels when each suspected event is blocked before its outcome is known
  • How to evaluate a fraud model cheaply when every prediction costs money and fraud is under 0.5% of orders?

Tools and methods

  • AWS Fraud Detector — managed model trained on 18 months of labelled orders; returns a 0 to 1000 fraud score and variable importance
  • Amazon SageMaker — pipelines for high-volume orders
  • AWS Lambda — lightweight scoring and result sharing for low-volume orders (15-minute limit)
  • Staged offline sampling — about 1,000 labelled orders instead of a full month
Continue reading — it's free

Google or a one-time email code. No password.