Back to portfolio

Oct 2023 – Jul 2025

Forecasting & segmentation

Turned scattered merchant data into a demand forecast merchants trust and a single health score their teams act on.

Role: Data Scientist, Zeal
  • Python
  • Forecasting
  • RFM
  • AutoML
  • GCP
  • Prompt engineering
Merchant demand forecast: historical visits and spend, with a projected trend and confidence band.
RFM segmentation: 120 merchants resolve into Champions, Loyal, New and At-risk.

The problem

Merchants at Zeal were flying blind. They had transaction history but no forward view of how many customers would walk in or how much they would spend, so staffing, stock, and promotions were all guesswork. Meanwhile the signals that revealed merchant health, statistical indicators, RFM behaviour, predictive scores, lived in separate dashboards nobody could reconcile into a decision.

The approach

  1. 01

    Built demand forecasting end to end

    Modelled customer visits and spend per merchant, from raw transaction pipelines through feature engineering to a served forecast with a usable horizon and confidence bands, so merchants could plan against a reliable signal instead of intuition.

  2. 02

    Fused indicators into one health score

    Combined RFM segmentation with statistical and predictive indicators into a single 0-100 merchant health score, weighting each signal so the number stayed decision-ready rather than another chart to interpret.

  3. 03

    Made LLM output production-grade on GCP

    Engineered and hardened prompts so LLM-generated summaries and explanations were consistent, grounded, and safe to ship inside the product on GCP, not just demo-quality.

  4. 04

    Used AutoML for the hard tabular cases

    Where tabular forecasting got too complex for a single hand-tuned model, I leaned on AutoML to search the model space, then validated and framed the winners so the forecasts held up in production.

The result

  • 0–100 Unified health score (illustrative scale)
  • ~8 weeks Forecast horizon per merchant (illustrative)
  • ~6 RFM segments driving action (illustrative)
  • 2 systems Forecasting + health score, in production

The result was a merchant analytics layer that answered two questions at once: what is coming, and how healthy am I. Forecasts gave teams something to plan against; the health score gave them one number to act on.

Next project Recognition & OCR Back to portfolio