UK e-commerce fraud cost £1.8 billion in 2025 (UK Finance). Traditional rule engines (velocity checks, IP blacklists, card BIN lookups) generate 8-15% false positive rates — legitimate customers declined, revenue lost, support costs spiralling. ML fraud detection achieves 1-2% false positive rates while catching 25-40% more fraud, using hundreds of features rule engines cannot evaluate simultaneously. Payment Services Regulations 2017 (UK PSR) requires firms to implement strong customer authentication and demonstrate fraud controls to their acquiring bank.
Feature engineering for e-commerce fraud ML: device fingerprint stability (device ID, browser, OS consistency across sessions), behavioural velocity (orders per hour, unique shipping addresses per card), graph features (shared device/email/card/address across accounts — detects fraud rings), order characteristics (high-value first order, digital goods, expedited shipping to new address), returns history (returns fraud costs UK retailers £5B annually). Gradient boosting on tabular features + neural embedding of device/user session sequences achieves best performance.
Real-time scoring architecture: feature computation in <10ms (Redis cache for velocity counts, Kafka streams for session features), model inference in <20ms (quantized XGBoost, served via FastAPI on AWS Lambda), total latency <50ms at checkout. For 3D Secure 2, the risk score feeds directly into the authentication decision — low-risk transactions authenticated frictionlessly (90% of volume), high-risk challenged or declined. Chargeback reduction of 60-70% typical in first 6 months.
Returns fraud detection ML: £5B annual UK retail loss from fraudulent returns (wardrobing, empty box returns, receipt fraud). ML features: return frequency per customer, return-to-purchase ratio, time-to-return distribution, product category risk, claim description NLP. Codeworth delivers full fraud suite — transaction scoring, account takeover detection, and returns fraud — with FCA/PSR compliance documentation.
Related Codeworth Services
Need Help with Implementation?
The Codeworth team is ready to implement these ideas in your project. Free consultation.
Discuss the ProjectCodeworth team specialist.