FreshRoute

Perishable dispatch that outruns the shelf life.

Wild BugsShipped October 15, 2026#general
Repo
FreshRoute banner

About

## Challenges we ran into

- There was no dataset. The problem statement expected one from the organisers, but none was provided, so we built our own scenario generator grounded in real data. The CEDA Agmarknet API was unusable, so we downloaded the India Data Portal bulk files (a 75-minute download) and fitted seasonality, weekday, regime and festival effects per market. Gaps needed proxies: spinach is almost absent from Agmarknet, so we used green-onion prices, and Chennai's farmer markets are retail-priced, so we derived Chennai prices from Bengaluru wholesale. - The same seed gave different plans. Constraints were built by looping over a Python set, whose order changes between runs. We sorted every iteration and replaced the time limit with a fixed node limit, so every run is reproducible. A test now guards this. - A silent bug in road distances. Our real OSRM road distances were saved to one folder and read from another, so early runs used straight-line estimates. Fixing it raised our spoilage from 2.4% to 4.2%: Chennai loads arrived at 13:28 against a 14:00 market close, and 1 in 5 trips is delayed. We made the planner plan on the 90th-percentile travel time, which brought spoilage back down. - Holding stock looked free. Early versions piled up onion and mango at the hub. We made the value of holding stock depend on remaining market demand. - Near-limit loads were refused. A 90% quality rule still lets about 1 in 10 near-limit loads be refused by buyers. Pricing the rejection probability into the optimiser cut refused produce by 40%. - Running the evaluation at scale. 550 instances × 5 planners, plus replan and sensitivity runs, takes hours. Our parallel worker pool crashed with 15 workers, so we tuned it down to 8 and kept tuning seeds strictly separate from validation and hidden seeds. - Vendor data is messy. Vendors send WhatsApp messages in mixed languages and trade units, so we built an offline parser that shows what it understood before adding anything.

## The problem it solves

India loses about ₹1.53 lakh crore of food after harvest every year. Around 11.6% of tomatoes and up to 15% of fruit never reach a buyer (NABCONS 2022). Much of that loss happens in a single daily decision at aggregation hubs: which batch goes to which market, on which truck, and what to hold or discount.

Today that decision is made by habit, first-in-first-out to the nearest market. It ignores how much shelf life each batch has left, whether a load will arrive inside the market's receiving window, which markets are already flooded, and what festivals or price swings are coming. So produce arrives too old and is rejected, one mandi is glutted while another pays more, and the surplus rots.

FreshRoute is a decision-support platform for produce distributors. Every morning it: - estimates each batch's remaining shelf life from grade, harvest age and temperature; - forecasts price and demand at every destination, using models fitted on 25 years of real Agmarknet mandi data plus a festival calendar; - keeps only trips that are 90% likely to arrive sellable, meet the buyer's quality bar and make the delivery window; - optimises batch → market → truck, holds and discounts with a mixed-integer program to maximise expected net revenue; - checks every load with an independent validator and explains each decision (chosen option, runner-up, drivers); - replans in seconds when a truck breaks down, a lane closes or demand spikes.

Vendors can plan their own stock too: they paste their WhatsApp stock message as it was sent (crates, bags, tonnes, Kannada and Hindi names) and FreshRoute turns it into a plan.

Results on 550 held-out runs across 11 scenarios, against today's FIFO-to-nearest practice: spoilage falls from 12.5% to about 4%, net revenue rises by ₹1.7M–₹3.6M per fortnight, with a 100% win rate and zero constraint violations. All results come with 95% confidence intervals.

Screenshots

FreshRoute screenshot 1FreshRoute screenshot 2FreshRoute screenshot 3FreshRoute screenshot 4FreshRoute screenshot 5

Team

From the public Devfolio project page. Votes, swipes and the judge score are hackfeed's own.

AI judge

Not judged yet. A free model reads this page, compares it with similar projects and this event's winners, then scores it and says what would make it win.

Still being built?

Not checked yet.

Swipe stats

0upvotes
0skips
0saves

Discussion 0

No comments yet. Ask the team something, or say what you'd use it for.

Posting as a guest. Plain text, 1,000 characters max.

Already built nearby

Closest projects by meaning and shared words. Similar isn't the same as copied: read them.