A readout to a client's leadership team
Case study

OptimizeRx cut its daily data refresh 85% and halved price forecast error

Drug price forecasts missed by 25 to 30% and the daily data refresh took 6 to 8 hours, slowing every client insight.

OptimizeRx

OptimizeRx · Sales and pricing · L2

85%less time on the daily data refresh

The workflow before

OptimizeRx's pharma clients wanted price forecasts across therapeutic categories, but existing methods missed by 25 to 30%. The daily data refresh took 6 to 8 hours in batch, business insights trailed by 24 to 48 hours, and onboarding a new client's data took 4 to 6 weeks of integration work.

What we built

We built a price forecasting service that runs Prophet, Amazon Forecast and custom gradient-boosted models side by side, backtests them, and picks or blends the best per series. It produces 30, 60, 90 and 180 day forecasts with confidence ranges and retrains automatically as new data lands.

We moved the data pipeline to Azure: Azure Data Lake Storage with Delta Lake in bronze, silver and gold layers, Azure Databricks for Spark processing and Azure Synapse for the warehouse, with Power BI on top.

Models are tracked in MLflow and trained and served through Amazon SageMaker, so a new model version goes live in days rather than weeks.

Before and after

MeasureBeforeAfter
Daily data refresh6 to 8 hours45 to 60 minutes
Price forecast error (MAPE)25 to 30%12 to 15%
New client data onboarding4 to 6 weeks1 to 2 weeks
Model deployment2 to 3 weeks2 to 3 days

What's next

Forecasts and clean data in one place set up the next step: putting forecasts and their drivers in front of client teams through a copilot that answers pricing questions directly.

ShareLinkedInEmail

Forecasting: feature engineering adds seasonal decomposition, lags, rolling statistics and external regressors. Prophet, Amazon Forecast (DeepAR+, ARIMA, ETS) and XGBoost or random forest models compete in a backtesting framework; ensemble weights and model choice update automatically.

Data: sources land in Azure Data Lake Storage Gen2 as Delta tables in a medallion layout; Azure Databricks runs the Spark jobs; Azure Synapse serves SQL to Power BI. Azure Purview provides catalog and lineage.

MLOps: MLflow tracks experiments and the model registry; SageMaker handles training, tuning and real-time endpoints, with drift monitoring triggering retraining.

Next step

Let's build the case study we tell next.