Marketing Intelligence Platform

Marketing Intelligence Platform

Four production ML models serving real-time predictions through a FastAPI backend, with automated monitoring and a feedback loop. Built end-to-end: data pipelines, model training, REST API serving, and operational dashboards.

System Architecture

Data Sources

UCI datasets

Bank Marketing + Online Retail II

Training Pipeline

scikit-learn / Prophet

Feature engineering + model fitting

Model Artifacts

Serialized models

joblib + pickle persistence

Serving Layer

FastAPI

REST endpoints with validation

Infrastructure

Hetzner VPS + Caddy

Systemd + auto-SSL reverse proxy

Monitoring

SQLite store

Prediction logging + feedback loop

Production Models

Campaign Response Model
XGBoost

Predicts whether a customer will respond positively to a direct marketing campaign. The model ingests demographic, financial, and campaign-history features to output a calibrated conversion probability with SHAP-based feature attribution.

UCI Bank MarketingAUC-ROC: 0.94
Try it
Audience Segmentation
K-Means Clustering

Clusters customers into behavioral segments using Recency, Frequency, and Monetary value analysis. Each new customer is assigned to the nearest cluster centroid with a confidence distance metric.

Synthetic RFMSilhouette: 0.62
Try it
Revenue Forecast
Prophet

Generates multi-period revenue forecasts with confidence intervals using Facebook Prophet. Captures weekly and yearly seasonality patterns from historical transaction data to project future revenue trajectories.

Online Retail II (UCI)MAPE: 8.2%
Try it
Product Affinity Engine
Collaborative Filtering (ALS)

Recommends products using Alternating Least Squares matrix factorization on purchase history. Supports both known-customer personalized recommendations and cold-start fallback to popularity-based ranking.

Online Retail II (UCI)Coverage: 92%
Try it

Live System Status