
mplads
project overview
Prompt
π‘οΈ AI-Powered Anomaly & Fraud Detection System for MPLADS Leveraging Machine Learning, NLP, and Graph Analytics to detect fund misuse, ghost projects, and financial anomalies in India's Member of Parliament Local Area Development Scheme β in real time. π Table of Contents Problem Statement Objective Proposed Solution & Approach System Architecture Tech Stack Key Features Impact Future Scope Team Details Installation & Setup Screenshots & Demo License π΄ Problem Statement What is MPLADS? The Member of Parliament Local Area Development Scheme (MPLADS) is a Government of India programme that allocates βΉ5 crore annually per MP (both Lok Sabha and Rajya Sabha members) for developmental works in their constituencies β covering infrastructure like roads, schools, hospitals, water supply, and drainage. Since its inception in 1993, MPLADS has disbursed thousands of crores of public funds. While intended to empower MPs to address constituency-level needs, the scheme has been repeatedly cited in CAG (Comptroller and Auditor General) audit reports for serious financial and operational irregularities. The Real-World Problem Despite its intent, MPLADS suffers from systemic issues that erode public trust and drain taxpayer money: Issue Description πΈ Fund Misallocation Funds sanctioned for non-eligible works or outside constituency boundaries ποΈ Ghost Projects Works reported as completed with no physical evidence on the ground π Inflated Billing Contractors submitting invoices 2β5Γ above market benchmark rates π Duplicate Sanctions Same project approved multiple times under different work IDs β³ Delayed / Incomplete Works Projects stalled indefinitely with funds already released π³οΈ Vendor Collusion Single vendors cornering disproportionate contract shares across constituencies π Lack of Transparency Utilization certificates filed without independent verification According to CAG reports, a significant portion of audited MPLADS works showed procedural violations, cost overruns, or incomplete execution β yet payments were released without accountability. π― Objective This system aims to automatically detect anomalies, fraud patterns, and operational inefficiencies within MPLADS data β shifting from reactive audits to proactive, AI-driven oversight. Who Benefits? Stakeholder Benefit ποΈ Government Auditors (CAG/DPA) Automated flagging reduces manual audit workload by 70%+ π’ Ministry of Statistics & Programme Implementation Real-time compliance monitoring across all constituencies πΊοΈ District Authorities Actionable alerts for delayed or suspicious works π° Journalists & RTI Activists Transparent, data-backed evidence of irregularities π₯ Citizens Public-facing accountability dashboard π§ Proposed Solution & Approach Data Sources MPLADS Portal Data β Work sanctions, fund releases, completion status, district-wise utilization reports Fund Utilization Reports β Payment installment records, UC (Utilization Certificate) filings Project Completion Records β Expected vs. actual completion timelines, geo-coordinates Geotagged Photographs β Site images tagged to GPS coordinates for physical verification Vendor Invoice Data β Contractor billing records, GST filings, registered vendor details Benchmark Rate Data β State PWD schedule of rates for cost comparison CAG Audit Reports β Historical flagged cases used as training signal AI / ML Techniques βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ β AI/ML DETECTION LAYER β βββββββββββββββββββββ¬ββββββββββββββββββββββ¬ββββββββββββββββββββββββββββββββ€ β Anomaly Detectionβ NLP & Document AI β Computer Vision β β βββββββββββββββ β βββββββββββββββββ β ββββββββββββββββββββββββββββ β β β’ Isolation β β’ Invoice OCR & β β’ Geotagged image analysis β β Forest β entity extractionβ β’ Construction progress β β β’ DBSCAN / β β’ Duplicate work β estimation via CNNs β β LOF clustering β detection (BERT β β’ Ghost project detection β β β’ Autoencoder β semantic sim.) β (pre/post image diff) β β time-series β β’ Inflated billing β β’ GPS coordinate spoofing β β β’ Statistical β keyword flagging β detection β β Z-score / β β’ Document β β β Benford Law β consistency NLP β β βββββββββββββββββββββ΄ββββββββββββββββββββββ΄ββββββββββββββββββββββββββββββββ βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ β GRAPH ANALYTICS LAYER β β β’ Vendorβfund network graphs to detect concentration & shell entities β β β’ MP β Vendor β Contractor bipartite graph analysis β β β’ Community detection (Louvain) for collusion ring discovery β β β’ PageRank-based vendor risk scoring β βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ Rule-Based + ML Hybrid Detection Logic The system combines hard rules (regulatory thresholds) with soft ML signals (statistical outliers) to produce a composite Risk Score (0.0β1.0): Detection Category Rule-Based Signal ML Signal Cost Overrun Cost > 120% of sanctioned amount Z-score vs. district/category peer group Timeline Violation Days elapsed > 2Γ expected duration Autoencoder reconstruction error on timeline Duplicate Work Same GPS Β± 500m & same category BERT semantic similarity > 0.92 on title Vendor Concentration Single vendor > 40% of MP total works Graph centrality outlier detection Ghost Project No geotagged image within 6 months CV model: site activity score < threshold Billing Fraud Invoice > 2Γ PWD schedule rate Isolation Forest on unit cost distributions Unspent Funds >30% unspent after expected completion Time-series anomaly (LSTM forecasting) Final Risk Score = weighted combination of rule hits + ML anomaly scores, calibrated via historical CAG audit labels. ποΈ System Architecture ββββββββββββββββββββββββββββββββββββ β DATA INGESTION β β MPLADS Portal Β· Invoices Β· β β Geotagged Images Β· PWD Rates β ββββββββββββββββ¬ββββββββββββββββββββ β βΌ ββββββββββββββββββββββββββββββββββββ β PREPROCESSING & ETL β β Data cleaning Β· Normalisation Β· β β OCR pipeline Β· Image tagging β ββββββββββββββββ¬ββββββββββββββββββββ β ββββββββββββββββΌββββββββββββββββββββ β ANOMALY DETECTION ENGINE β β ββββββββββββ ββββββββββββββββ β β β Rule β β ML Models β β β β Engine β β (ISO Forest,β β β β (Thres- β β LSTM, BERT, β β β β holds) β β Graph AI) β β β ββββββ¬ββββββ ββββββββ¬ββββββββ β β ββββββββββ¬ββββββββ β β Risk Scorer β ββββββββββββββββ¬ββββββββββββββββββββ β ββββββββββββββββΌββββββββββββββββββββ β REST API LAYER β β Flask Β· SQLite Β· JSON β ββββββββββββββββ¬ββββββββββββββββββββ β ββββββββββββββββΌββββββββββββββββββββ β DASHBOARD & ALERT SYSTEM β β React Β· Interactive Maps Β· β β Risk Queues Β· Explainability β ββββββββββββββββββββββββββββββββββββ π» Tech Stack Backend Category Technology Language Python 3.11 API Framework Flask 3.x Database SQLite (production migration: PostgreSQL) ML Libraries scikit-learn, PyTorch, Transformers (HuggingFace), NetworkX NLP BERT, sentence-transformers, spaCy Computer Vision OpenCV, torchvision Analytics pandas, NumPy, SciPy Graph Analytics NetworkX, python-louvain Frontend Category Technology Framework React 18 + TypeScript Build Tool Vite Styling Vanilla CSS (custom design system) Charts Recharts Maps Leaflet.js / react-leaflet State Management React Hooks + Context Infrastructure Category Technology Dev Server Vite Dev + Flask (proxied) Report Generation Jinja2 templating + HTML export Version Control Git β¨ Key Features π΄ Real-Time Fraud Scoring β Every MPLADS work item is assigned a composite risk score (0β100%) updated as new payment or completion data arrives, with color-coded severity badges (Critical / High / Medium / Low). π MP-wise & District-wise Dashboards β Drill-down analytics across constituencies, districts, and states. Compare MPs against each other on compliance, spending velocity, and anomaly frequency. πΊοΈ Anomaly Heatmaps β Geographic visualization of flagged works, overlaid on district maps to surface spatial clustering of fraud. β‘ Priority Risk Queue β Auto-sorted queue of the highest-risk works requiring immediate audit attention, eliminating the need to manually sift through thousands of records. π’ Vendor Risk Profiling β Per-vendor risk scores, contract concentration metrics, and network graph of vendorβMP relationships to surface collusion patterns. π‘ Explainable AI Alerts β Every flagged case includes a human-readable explanation of why it was flagged (e.g., "Cost is 3.2Γ peer average in Rajasthan road works"), along with a recommended audit action. π Benchmark Explorer β Compare any work's cost, timeline, or payment pattern against statistical benchmarks for similar works in the same terrain/category. π Automated Report Generation β One-click PDF/HTML audit reports covering risk distributions, top anomalies, and compliance scores β ready for CAG or Ministry submission. π Alert & Notification Engine β Configurable threshold-based alerts for district collectors, state coordinators, and ministry officials. π Impact Impact Area Outcome π° Reduced Fund Leakage Early detection of billing fraud and ghost projects prevents crores in misappropriation per audit cycle β±οΈ Faster Audits Reduces manual audit effort from weeks to hours by surfacing only high-risk cases π Increased Transparency Public-facing dashboards enable citizen oversight and RTI-aligned reporting π€ Public Trust Demonstrates accountable, data-driven governance to citizens and media π Deterrence Effect Visible AI monitoring deters misreporting at source ποΈ Institutional Strengthening Provides CAG, DPA, and MOSPI with a scalable tool for concurrent audits π Future Scope π Blockchain-Based Fund Tracking β Immutable ledger for every MPLADS payment release, enabling tamper-proof audit trails π‘ Integration with RTI & CAG Systems β Direct API linkage for real-time data sharing with Right to Information portals and Comptroller General systems π± Mobile App for Ground-Level Verification β Field officers can submit geotagged photos and completion reports directly into the system π Scaling to Other Government Schemes β Plug-and-play architecture adaptable to PMGSY, MNREGS, Smart Cities Mission, AMRUT, and other central/state schemes π€ LLM-Powered Audit Chatbot β Natural language interface for auditors to query flagged cases π°οΈ Satellite Image Analysis β Automated construction-progress analysis using open satellite imagery (Sentinel-2) to verify physical project status π Predictive Risk Modelling β Flag high-risk works before payment is released, using historical fraud signals and MP/vendor profiles π¦ Cross-Scheme Deduplication β Detect the same physical location receiving funding from multiple schemes simultaneously π₯ Team Details Field Details Team Name (Your Team Name) Hackathon Smart India Hackathon (SIH) 2024 Problem Statement ID (PS ID) # Member Name Role 1 (Name) Team Lead / Full-Stack Developer 2 (Name) ML Engineer β Anomaly Detection 3 (Name) Data Engineer β ETL & Database 4 (Name) NLP / Computer Vision Engineer 5 (Name) Frontend Developer / UI Design 6 (Name) Backend Developer / API & Infra π οΈ Installation & Setup Prerequisites Python 3.10+ with pip Node.js 18+ with npm Git 1. Clone the Repository git clone https://github.com/your-org/mplads-fraud-detection.git cd mplads-fraud-detection 2. Set Up the Backend cd backend # Create and activate virtual environment python -m venv venv # Windows venv\Scripts\activate # macOS / Linux source venv/bin/activate # Install dependencies pip install -r requirements.txt # Start the Flask API server python dashboard.py The backend API will be available at: http://localhost:5000 Health check: http://localhost:5000/api/summary 3. Set Up the Frontend Open a new terminal in the project root: cd frontend # Install Node dependencies npm install # Start the Vite development server npm run dev The frontend will be available at: http://localhost:5173 All /api/* requests are automatically proxied to the backend via vite.config.ts. 4. (Optional) Run the Analytics Engine To regenerate anomaly scores and risk flags from scratch: cd backend python analytics_engine.py python analytics_engine_phase3.py 5. (Optional) Generate Static HTML Report cd backend python generate_report.py # Output: mplads_report.html Environment Variables Create a .env file in backend/ if connecting to a live data source: DATABASE_URL=sqlite:///mplads.db FLASK_ENV=development FLASK_SECRET_KEY=your-secret-key-here πΈ Screenshots & Demo π Live Demo: (Add deployment URL here) π₯ Demo Video: (Add YouTube / Google Drive link here) Screen Description Overview Dashboard MP-wise overview with risk distribution and priority queue Risk Cases View Flagged anomalies with explainability and risk scores Work Detail View Per-project deep dive with timeline, cost, and flag details Vendor Risk View Vendor concentration and network risk analysis Add screenshots to a screenshots/ folder in the project root and update the table above with image links. this is the mplads project we made for our sih hackathon. give me a list of questions that the judge could ask us based on this. questions and answers. ignore the computer vision part of the readme we didnt develop that