MandiLens is an applied data-science project on one of India's most consequential public datasets: the daily wholesale prices and arrivals of tomato and onion reported by APMC yards across Karnataka and published on Agmarknet, the Directorate of Marketing & Inspection's price portal. Tomato and onion are the crops whose price crashes and spikes dominate farm-distress headlines in the state — Kolar's tomato growers have repeatedly sold below cost while retail prices stayed high — and both have enough public daily data to support serious analysis.
The project builds a reproducible pipeline: an ingestion layer for Agmarknet price reports (data.gov.in mandi API as a secondary channel), a cleaning layer that harmonises varieties, checks ₹/quintal sanity, handles missing mandi-days and caps outliers, a warehouse (SQLite or MySQL) with date, market and commodity dimensions around a daily fact table, and an analytics layer covering decomposition, volatility, arrivals–price links and festival/monsoon effects. Two models are compared honestly — SARIMA and gradient boosting with lag, rolling and calendar features — under rolling-origin time-series cross-validation, never random k-fold, with RMSE, MAE and MAPE per market. Forecasts carry quantile risk bands (P10/P50/P90), and a rule raises a crash alert when the median forecast falls below a trailing-quantile threshold. A Streamlit dashboard shows history, forecast, bands and alerts per market, commodity and horizon.
It is scoped as a 16-week, two-member VTU MCA Project Phase-2 (22MCA44, Semester 4, 16 credits), with Phase-1 (22MCAL35) covering the literature survey, dataset acquisition and preliminary analysis.
- Relevant for
- Karnataka
- Level
- Advanced · 16 weeks · team of 2
- Common at
- Visvesvaraya Technological University, Anna University, Chennai, Osmania University
- Updated
- Nov 2026