Back to all work
Applied ML & data science

E-commerce churn analysis & predictive retention

Mid-market e-commerce client · 2024 · churn modelling + retention pipeline

ChurnE-commerceSurvival analysisXGBoost

Problem

A mid-market e-commerce client had rising customer-acquisition costs but no reliable signal on which customers were about to lapse. Standard "haven't bought in 90 days" rules flagged everyone too late — by then the customer had already moved to a competitor.

Approach

Built a survival-analysis layer over transaction events combined with a gradient-boosted classifier predicting 30/60/90-day churn probability. Feature engineering across recency, frequency, basket diversity, support-ticket sentiment, browse-without-buy patterns, and seasonal anchors. Per-customer churn probability paired with per-feature attribution so the retention team could see why the model flagged each account.

Stack

Python · XGBoost · lifelines · event-stream pipeline · Postgres · scikit-learn

Outcome

Retention team shifted from broad win-back campaigns to per-segment intervention. The "why" attribution turned out to be the bigger unlock than the score itself — different segments churn for different reasons, and one-size retention emails were burning budget on customers who needed something else entirely.

Want a similar engagement on your stack?

Most engagements like this started with a 60-minute scoping call.

More from this group

Aru Bhardwaj

Fractional CTO architecting sovereign AI systems for startups and scale-ups across Europe. Custom ML, agentic RAG, and secure LLM infrastructure. 7+ years turning complex data into production intelligence.

Malt
Upwork

Contact

Services

  • Fractional CTO & AI Strategy
  • MVP Development & Rapid Prototyping
  • Sovereign LLM Deployment (OVHcloud, Scaleway)
  • Multi-Cloud AI (AWS Bedrock, Vertex AI, Azure)
  • RAG Pipelines & Autonomous Agents
  • GDPR & EU AI Act Compliance
  • Generative AI & Prompt Engineering
  • Machine Learning & Predictive Analytics

Monthly playbook

Practical AI essays for founders and tech leaders. One email a month.

Tactical AI essays, monthly.

© 2026 Insightrix SASU. All rights reserved.Aru Bhardwaj, Fractional CTO & AI Strategist

60 Rue François Ier, 75008 Paris, France · SIRET 989 236 856 00013 · TVA FR42989236856