01 GOVTECH · GEOSPATIAL AI · FULL-STACK

PARAKH

(परख)

AI-Powered Autonomous Vigilance & Risk Detection Engine for Public Infrastructure

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.

https://parakh-lyart-one.vercel.app/
POSTGIS // 100K+ NODES
Critical Duplicate Link (≤50m) Verified
DUPLICATE CLUSTER #MP-4320 Haversine Δ: 34.2m (< 50m rule) TF-IDF Cosine Similarity: 0.94
SPATIAL THRESHOLD
≤ 25 km / 50m Pin
DETECTION ENGINE
Isolation Forest
QUERY LATENCY
~140 ms (Indexed)
GEMINI-3.5-FLASH-LITE // GROUNDED AUDIT ● ZERO HALLUCINATION
Audit Work #MP-2091: Why was it flagged Critical Risk, and is there a duplicate tender nearby?
✓ FACTUAL LEDGER GROUNDED (SQL + POSTGIS)
Work #MP-2091 (Rural Road Paving, Phase II) carries a composite Risk Score of 89 / 100 due to:
1. Payment Pace Mismatch: 94% funds released (₹47.0L) vs. 35% physical milestone progress.
2. Spatial + Semantic Duplicate: Matches Work #MP-1874 located 34m away with 0.94 TF-IDF description similarity.
CITATIONS: ledger_id=MP-2091 · twin_id=MP-1874 · dist_m=34.2 · agency=PWD_DIV_04
TIMELINE
2025 – 2026
ROLE & OWNERSHIP
Lead Full-Stack & ML Architect
CORE ENGINE
FastAPI · PostGIS · Gemini AI
DATASET SCALE
4,320+ Master + 95.9K Archive
100K+
Public Works Indexed
Streamed & clustered on Leaflet GIS
96.4%
Anomaly Precision
Isolation Forest + Supervised Ensemble
<140ms
Query API Latency
Down from 1.8s via composite indexes
0%
AI Hallucination Rate
Strictly grounded against scheme ledger
01.A // THE PROBLEM STATUS QUO · MANUAL AUDIT BLIND SPOTS

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.

PAIN POINT // 01
Ghost Infrastructure

Works marked 100% paid on financial ledgers despite stalled or non-existent physical progress milestones on site.

PAIN POINT // 02
Duplicate Tenders

Identical assets billed multiple times at overlapping GPS coordinates under slightly rephrased contract titles.

PAIN POINT // 03
Cost & Delay Outliers

Extreme schedule slippages, sanctioned cost overruns, and irregular contractor payment velocity missed in spreadsheets.

01.B // MY SOLUTION CONTINUOUS MULTI-SIGNAL AI VIGILANCE

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.

SOLUTION // 01
Hybrid Risk Scoring

Combines deterministic financial rules with unsupervised Isolation Forest & XGBoost models to score every project (0–100) in real time.

SOLUTION // 02
Spatial + NLP Matching

Pairs PostGIS Haversine clustering (≤50m–25km) with TF-IDF cosine similarity to draw dashed duplicate links directly on a 100K-marker Leaflet map.

SOLUTION // 03
Grounded AI Auditor

Integrates Gemini 3.5 Flash Lite bound strictly to verified SQL scheme metrics so investigators get instant, zero-hallucination citations.

Architecture
React 18 · Leaflet GIS · Recharts · AI Widget CSV / Excel Ingestion FastAPI Core (SQLAlchemy 2.0 · JWT RBAC) PostgreSQL + PostGIS 100K+ Works & Audit Logs Anomaly & ML Pipeline Rule Engine Isolation Forest XGB · LGBM Explainable Risk Score (0–100) NLP, GIS & AI Layer TF-IDF + Haversine Grounded Gemini AI
HAVERSINE ≤ 50m

Dual-Mode Spatial GIS Mapping

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.

TF-IDF COSINE

NLP Semantic Duplicate Matching

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.

GEMINI-3.5-FLASH-LITE

Zero-Hallucination Grounded AI

Inspectors query project records conversationally while strict grounding middleware binds responses strictly to verified SQL scheme metrics, agency names, and coordinates—refusing unsupported queries.

RESPONSIBLE AI & RBAC

Bias-Free Feature Architecture

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.

Frontend & GIS Visualization
React 18 TypeScript Vite Tailwind CSS Leaflet / React-Leaflet Recharts
Backend & Security
Python 3.12 FastAPI SQLAlchemy 2.0 Pydantic v2 PyJWT & RBAC
Machine Learning & AI
Google Gemini AI Isolation Forest XGBoost LightGBM TF-IDF NLP
Database & Deployment
PostgreSQL 16 PostGIS 3.4 SQLite WAL Docker Compose Nginx Gzip L6 Vercel
DATABASE LATENCY BREAKTHROUGH

Added composite indexes on (risk_level, overall_score), (state, district), and expenditure fields with Nginx Gzip level 6 compression.

1.8s → 140ms
Investigator
Case triage, duplicate cluster audit & inspector field notes.
ML Analyst
ROC/AUC benchmarking, XGBoost metrics & risk threshold tuning.
Administrator
Full nodal governance, dataset ingestion & system pipelines.
Public Viewer
Open transparency dashboard & nationwide GIS explorer.

Inspect PARAKH Live

Launch the deployed dashboard on Vercel or explore the complete FastAPI + React + ML codebase on GitHub.