LPG Catering Intelligence
Predict · Optimise · Forecast
ML and linear programming that size LPG orders for caterers and flatten demand peaks for dealers.
Large caterers in India work on thin margins: running out of LPG mid-event stops the kitchen, and over-ordering locks cash in idle cylinders. Dealers, meanwhile, take hundreds of last-minute orders in wedding and festival seasons. This system predicts event-level gas use, plans each caterer's orders and forecasts regional demand for dealers.
What it does
- Gradient Boosting regressor (R² 0.9972) blended 70/30 with a rule-based physics floor, so out-of-distribution events never get an unsafely low estimate.
- Multi-event cylinder allocation under budget and capacity limits with SciPy's HiGHS LP solver, falling back to a rule-based plan if the LP is infeasible.
- Leakage-free stockout classifier: experience features removed from a 40-feature set because they defined the target, giving an honest ROC-AUC of 0.7865.
- Regional layer rolls orders into 30-day demand curves and shifts low-risk bookings one or two days earlier, flattening dealer peaks by up to 28%.
- Per-caterer safety buffers based on experience, stockout risk flags and exact recommended order dates.
- Data pipeline joins government price data, Kaggle event-wastage data and 6,800+ parsed recipes for cooking intensity.
- FastAPI service with a dark-theme dashboard, one CLI for pipeline, training, tests and API, Docker Compose and CI on every push.
How it works
Three layers sit behind one FastAPI server. Layer 1 predicts consumption for a single event and adds an experience-based safety buffer. Layer 2 aggregates bookings across a region and smooths the peaks. Layer 3 solves a linear program that minimises cost and waste across many events within a fixed budget.
Why I built it
When the Israel–Iran conflict disrupted LPG supply, even our hostel mess felt it. That made me look at the bigger version of the problem: caterers across India have no reliable way to predict how much gas an event will burn, so they either run out mid-service or lock up cash in idle cylinders.



