Platform operational

Sales optimization with Bayesian AI

Import your CSV data, automatically optimize your stock parameters with Optuna, and get accurate forecasts per product — in just seconds.

100k+
Rows processed
50
Optuna trials / product
5
Concurrent products
JWT
Secure authentication
VPS
Dedicated OVH hosting

Features

What is in production today

Bayesian optimization Available

Optuna engine with TPE Sampler + CMA-ES to find the optimal stock and promo parameters for each product.

  • 50 trials per product
  • Automatic segmentation (promo / seasonal / linear)
  • Params: promo_effect, promo_stock_boost, noise

Multi-horizon forecasts Available

Prophet model + walk-forward simulation for predictions over 7, 30, 90 and 365 days with confidence intervals.

  • Weekly and monthly seasonality
  • Trend calculated from actual history
  • MAPE / RMSE / Bias score

Enriched CSV import Available

Automatic column detection (sales, price, stock, promotion, stockouts) across all types of CSV formats.

  • Up to 100,000+ rows
  • Columns: quantity, stockout, promotion, ca_perdu
  • Automatic aggregation by product x day

Stockout management Available

Detection of stockout days and estimation of lost revenue. Automatic alerts when the rate exceeds 5%.

  • Stockout rate per product
  • Estimated lost revenue
  • Restocking recommendations

Interactive dashboard Available

Full web interface with real-time charts, actual vs predicted comparison, and optimization history.

  • Chart.js + Plotly charts
  • Product and period selector
  • File manager with server sync

JWT authentication Available

Secure login system with Bearer tokens, role management (admin / user) and plans (free / business).

  • Email + password login hashed with SHA-256
  • Token stored in localStorage
  • Free, Pro, Business plans

FastAPI REST API Available

Documented endpoints for CSV upload, Optuna optimization and authentication. Deployable on an OVH VPS.

  • POST /upload-and-optimize
  • POST /api/auth/login
  • GET /health

Alerts and reports In progress

Automatic email notifications when stockouts are detected, and PDF exports of optimization reports.

  • SMTP email (in progress)
  • PDF export (planned)
  • Webhooks (planned)

Multi-client SaaS In progress

Multi-tenant architecture with data isolation per client, admin panel and Stripe subscription management.

  • Data isolation by email
  • Admin panel (in progress)
  • Stripe (planned)

How it works

From CSV import to optimal parameters in 4 steps

CSV file import

Drag your file into the dashboard. Automatic detection identifies the product, quantity, price, date, stockout and promotion columns.

Optuna optimization (50 trials / product)

The FastAPI service runs a TPE Sampler + CMA-ES on each detected product. The best parameters (promo_effect, promo_stock_boost, stock_initial...) are saved automatically.

Forecasts with Prophet

The Prophet model uses the optimized parameters to generate forecasts over the chosen horizon (7 / 30 / 90 / 365 days) with seasonality and confidence intervals.

Visualization and alerts

The dashboard displays actual sales vs predictions, KPIs (MAPE, bias, revenue), stock levels and stockout alerts. Charts are updated after each new optimization.

Tech stack

Technologies used in production

Python 3.10
FastAPI
Optuna 3.4
Prophet
Pandas
SQLite
Chart.js
Uvicorn
JWT / Bearer
VPS OVH
Nginx
HTTPS / Let's Encrypt

Use cases

Who uses the platform and for what

🛒

E-commerce

Anticipate stockouts before they happen. Optimize your stock levels per product using historical data.

Zero stockoutsOptimal stock
🏭

Distribution and Manufacturing

Plan restocking over 30 to 90 days with parameters adjusted to actual seasonality.

S&OP planningCost reduction
📊

Retail and Franchises

Analyze product performance across 100k transactions and identify promotional and seasonal effects.

Promotion analysisSeasonality
🏢

SMEs and Mid-sized Companies

Access enterprise-level forecasting tools without complex infrastructure. Get started with a CSV.

Easy to startAccessible AI
💼

Consultants and Integrators

Offer forecasting analyses to your clients via the REST API and customize the dashboards.

REST APIMulti-client
🚀

Startups

Drive your growth with reliable revenue forecasts and alerts before stockouts.

Revenue forecastsReal-time KPIs

Ready to optimize your stock?

Log in to the dashboard, import your CSV and get your first optimized parameters in under 2 minutes.