Back to Projects
VendorPulse

VendorPulse

Early-warning system that predicts street-vendor cash-flow collapse 24–72 hours ahead and dispatches bridge capital first.

PythonPyTorchNumPyFastAPIReact NativeExpoSupabasePostgreSQLRender

Architecture & Overview

VendorPulse is an early-warning platform built by Team Nexio for the ModelX 2.0 Finals. Informal vendors in Colombo live on a daily cash cycle, and a flash flood, bus strike or road closure can empty a market for days, pushing vendors toward money-lenders charging 10–20% a week. VendorPulse moves NGO field coordinators from recovery to prevention by forecasting which of five market zones (Pettah, Fort, Maligawatta, Maradana, Kollupitiya) are likely to collapse over the next three trading days, explaining why, and sizing the zero-interest bridge capital needed. A four-layer pipeline ingests live rain forecasts (OpenWeatherMap with Open-Meteo fallback) and Sri Lankan news feeds, extracts disruptions, routes and severity with a rule-based NLP extractor, and feeds 10 engineered features into a multi-task neural network with a shared encoder and two heads: a quantile head (P50 / P90 foot-traffic drop) and a collapse-probability head. On the held-out period the network reached 99.8% accuracy, 100% recall and an F1 of 0.988, far ahead of naive persistence and ARIMA baselines, and captures compounding risk such as rain coinciding with a bus strike. Weights are exported to NumPy for a PyTorch-free FastAPI service hosted on Render with a Supabase PostgreSQL backend (row-level security, PBKDF2-hashed accounts, rate limiting). Coordinators use an Expo (React Native) mobile app with a live OpenStreetMap threat map, per-zone explanations, offline caching, CRITICAL alerts and an auditable Authorized → Dispatched → Completed dispatch workflow.

Key Capabilities

Multi-task neural network forecasting collapse probability and P50 / P90 traffic drop per zone
Live weather and Sri Lankan news ingestion with rule-based NLP disruption extraction
Counterfactual explanations showing each signal's impact on risk in points
Automatic bridge-capital sizing per vendor for HIGH RISK and CRITICAL zones
Expo mobile app with OpenStreetMap threat map, offline cache and CRITICAL alerts
Auditable dispatch workflow backed by FastAPI, Supabase RLS and secure auth