GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com โ€” GitHub - iyadblk/demand-forecasting-engine: Warehouse demand forecasting โ€” Prophet, ARIMA & ensemble models. Stock alerts, What-if simulator, PDF purchase orders. 45 French SKUs, 11-tab dashboard.

BranchesTags
Open more actions menu

Latest commit

 

History

4 Commits
4 Commits

Folders and files

NameName
Last commit message
Last commit date
.streamlit
.streamlit
 
 
__pycache__
__pycache__
 
 
assets
assets
 
 
core
core
 
 
data
data
 
 
docs
docs
 
 
venv
venv
 
 
.gitignore
.gitignore
 
 
README.md
README.md
 
 
app.py
app.py
 
 
requirements.txt
requirements.txt
 
 

Repository files navigation

๐Ÿ“ฆ Demand Forecasting Engine

Python Streamlit Prophet Statsmodels scikit--learn License

Project 3 of the Warehouse Logistics Suite by Iyad Belkadi. Production-grade demand forecasting for warehouse operations โ€” Prophet, ARIMA, ensemble models, stock alerts, and reorder recommendations across 45 real French SKUs.

screenshot


โœจ Features

  • 45 real French SKUs across 4 warehouse zones (Frozen, Fresh, Ambient, Heavy)
  • 2 years of synthetic daily history with realistic seasonality, weekly patterns, French holidays, stockouts, and promotional spikes
  • 4 forecasting models:
    • Simple & weighted moving average (baselines)
    • Prophet (Meta) with French holidays as regressors
    • SARIMA with automatic AIC-based parameter selection
    • Ensemble with dynamic inverse-MAE weighting per SKU
  • Full accuracy suite โ€” MAE, RMSE, MAPE, bias, CI coverage
  • Smart stock alerts โ€” CRITICAL ยท WARNING ยท WATCH ยท OK with safety-stock logic
  • Reorder recommendations with priority scoring, supplier grouping, and PDF / Excel purchase-order exports
  • Anomaly detection โ€” statistical z-score + tracked stockouts, promos, delivery surges
  • Cross-SKU heatmaps & correlation matrix
  • 10 interactive tabs in a polished dark-themed Streamlit UI

๐Ÿงฑ Tech Stack

Layer Tool
UI Streamlit + streamlit-extras + Plotly
Forecasting Prophet ยท statsmodels (SARIMAX) ยท scikit-learn
Data pandas ยท numpy
Exports openpyxl (Excel) ยท reportlab (PDF)
Holidays holidays (France)

๐Ÿš€ Installation

git clone https://github.com/iyadbelkadi/demand-forecasting-engine.git
cd demand-forecasting-engine
python -m venv venv
source venv/bin/activate          # Windows: venv\Scripts\activate
pip install -r requirements.txt
streamlit run app.py

The first launch generates 2 years ร— 45 SKUs โ‰ˆ 33,000 daily demand rows and caches them to data/sample_data.csv. Subsequent launches load instantly.


๐Ÿ“ Project Structure

demand-forecasting-engine/
โ”œโ”€โ”€ app.py                        # Streamlit application (10 tabs)
โ”œโ”€โ”€ requirements.txt
โ”œโ”€โ”€ README.md
โ”‚
โ”œโ”€โ”€ core/
โ”‚   โ”œโ”€โ”€ preprocessor.py           # Series extraction, train/test split
โ”‚   โ”œโ”€โ”€ moving_avg.py             # Simple + weighted MA baselines
โ”‚   โ”œโ”€โ”€ prophet_model.py          # Prophet wrapper + French holidays
โ”‚   โ”œโ”€โ”€ arima_model.py            # SARIMA with auto-AIC selection
โ”‚   โ”œโ”€โ”€ ensemble.py               # Inverse-MAE weighted ensemble
โ”‚   โ”œโ”€โ”€ metrics.py                # MAE, RMSE, MAPE, bias, coverage
โ”‚   โ”œโ”€โ”€ alerts.py                 # Stock alert classification
โ”‚   โ”œโ”€โ”€ recommender.py            # Reorder priority + PDF/Excel export
โ”‚   โ””โ”€โ”€ orchestrator.py           # Cached forecasting pipeline
โ”‚
โ”œโ”€โ”€ data/
โ”‚   โ”œโ”€โ”€ catalog.py                # 45 French SKUs (shared with Project 2)
โ”‚   โ”œโ”€โ”€ generator.py              # Synthetic 2-year history generator
โ”‚   โ””โ”€โ”€ sample_data.csv           # Auto-generated cache
โ”‚
โ””โ”€โ”€ assets/
    โ””โ”€โ”€ style.css                 # Dark theme

๐ŸŽฏ The 10 Tabs

# Tab What it shows
1 Overview KPI cards, top-10 urgent SKUs, zone health heatmap
2 Forecast Deep-dive on one SKU with all 4 models + CI bands
3 Multi-SKU Grid of Prophet forecasts (up to 10 SKUs)
4 Model Comparison All 4 models on one chart + residual histograms
5 Seasonality Prophet trend, weekly, yearly, holiday components
6 Alert Center Filterable table of all 45 SKUs with alert levels
7 Reorder Ranked reorder list + supplier grouping + PDF/Excel
8 Anomaly Detection Statistical anomalies + event log w/ impact
9 Heatmap & Patterns SKU ร— day-of-week / month heatmaps, correlations
10 History & Performance Backtest, cumulative error, best model per SKU

๐Ÿงช Live Demo

https://demand-forecasting-engine.streamlit.app/


๐Ÿ”— Related Projects

This is the third project in the warehouse logistics series:

  1. Warehouse KPI Dashboard โ€” real-time operational KPIs (Project 1)
  2. Picking Route Optimizer โ€” pick-path optimization (Project 2)
  3. Demand Forecasting Engine โ€” this project (Project 3)

๐Ÿ‘ค Author

Iyad Belkadi Data & operations enthusiast โ€” supply-chain analytics, optimization, forecasting.


๐Ÿ“œ License

MIT

About

Warehouse demand forecasting โ€” Prophet, ARIMA & ensemble models. Stock alerts, What-if simulator, PDF purchase orders. 45 French SKUs, 11-tab dashboard.

demand-forecasting-engine-velayqsybq9uxkncts4xt9.streamlit.app/

Topics

arimademand-planningensembleforecastinginventory-managementlogisticspandasplotlyprophetpythonscikit-learnstreamlitsupply-chaintime-serieswarehouse

Resources

Readme
Activity

Stars

1 star

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402775 โ€” GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800ร—600. No cookies required.