Built for auditing India's MPLADS public spending scheme across 100,000+ works. Combines geospatial Haversine clustering, TF-IDF semantic duplicate detection, Isolation Forest anomaly modeling, and strictly grounded Google Gemini AI auditing.
Under India's Member of Parliament Local Area Development Scheme (MPLADS), ₹5 Crore is allocated per constituency every year for local infrastructure. Auditing 100,000+ scattered public works manually through paper records means financial leakages and ghost works are discovered years after money is already disbursed.
Works marked 100% paid on financial ledgers despite stalled or non-existent physical progress milestones on site.
Identical assets billed multiple times at overlapping GPS coordinates under slightly rephrased contract titles.
Extreme schedule slippages, sanctioned cost overruns, and irregular contractor payment velocity missed in spreadsheets.
I engineered PARAKH (परख)—an autonomous end-to-end vigilance platform that ingests public works records, automatically flags anomalous contracts before final disbursement, and empowers investigators with interactive GIS mapping and strictly grounded Gemini AI auditing.
Combines deterministic financial rules with unsupervised Isolation Forest & XGBoost models to score every project (0–100) in real time.
Pairs PostGIS Haversine clustering (≤50m–25km) with TF-IDF cosine similarity to draw dashed duplicate links directly on a 100K-marker Leaflet map.
Integrates Gemini 3.5 Flash Lite bound strictly to verified SQL scheme metrics so investigators get instant, zero-hallucination citations.
Streams up to 100,000 geolocated markers across macro state clusters and drill-down project pins. Renders dashed geodesic links between physically overlapping works (≤ 25 km filter) for rapid double-billing triage.
Cross-verifies tender descriptions using n-gram TF-IDF vectorization and cosine similarity combined with geodesic distance, catching reworded duplicate contracts even when contractors split tenders.
Inspectors query project records conversationally while strict grounding middleware binds responses strictly to verified SQL scheme metrics, agency names, and coordinates—refusing unsupported queries.
Political party, religion, caste, and demographic identifiers are mathematically excluded from all Isolation Forest, XGBoost, and LightGBM feature pipelines—evaluating purely financial and engineering signals.
Added composite indexes on (risk_level, overall_score), (state, district), and expenditure fields with Nginx Gzip level 6 compression.