DSWD Calamity Cash Payouts β’ DAFAC Household Access Cards β’ Polygon Blockchain Proofs β’ AI Entity Resolution
During major typhoons, volcanic eruptions, and earthquakes in the Philippines, billions of pesos in national calamity funds (e.g. DSWD Emergency Cash Transfer / Assistance to Individuals in Crisis Situations - AICS) are mobilized to local government units (LGUs). However, distribution is plagued by three systemic issues:
- "Multong Benepisyaryo" (Ghost Beneficiaries & Duplicate Claims): Evacuees register multiple times under slight name variations (Juan Dela Cruz vs Jhon Dela Cruz vs Cruz, Juan D.) or across adjacent barangay borders.
- "Kupit sa Pera" (Table Deductions & Ledger Tampering): The national government releases β±5,000 per family, but local officials hand out only β±2,000 in cash at the covered court claiming "β±2,000 lang ang pondo mula sa taas", while submitting altered liquidation papers to COA for the full β±5,000.
- The Audit Blackhole: Commission on Audit (COA) post-disaster audits occur 6 to 12 months after relief operations when physical liquidation paper sheets are lost, water-damaged, or retroactively falsified.
"The operational database holds the private family records.
The AI identifies duplicates and anomalies for field worker review.
The blockchain anchors the permanent, mathematical proof of payout.
The public transparency portal empowers 110 million Filipinos to verify their aid."
AyudaChain creates a closed-loop, verifiable pipeline:
[ DSWD National Treasury ] ββ> Releases β±10M Batch Fund (Anchored on Polygon)
β
βΌ
[ LGU / Barangay Allocation ] ββ> 100% Assigned to 4 Local Barangays
β
βΌ
[ AI Entity Resolution Engine ] ββ> Flags Typo Duplicates, Field Swaps, Cross-Brgy Claims
β
βΌ
[ Field Payout & DAFAC Scanner ] ββ> Worker scans DAFAC QR, disburses β±5,000, signs receipt
β
βΌ
[ Cryptographic SHA-256 Hash ] ββ> Compact 32-byte receipt hash stamped into Smart Contract
β
βΌ
[ Public Citizen / COA Portal ] ββ> Instant tamper detection (Current Record vs On-Chain Seal)
- Official DSWD Standard: Full integration with the official DAFAC (Disaster Assistance Family Access Card No.
DFC-2026-0001toDFC-2026-0024). - Simulated Camera Viewfinder: Mobile-first live camera overlay with animated targeting reticle, scanning laser, and 1-click test vouchers for rapid hackathon demonstrations (Danilo Soriano
DFC-2026-0004, Antonio MercadoDFC-2026-0006, Carmencita ReyesDFC-2026-0005). - Auto-Locking Entitlement: Automatically locks to the statutory β±5,000 relief grant, preventing unauthorized arbitrary deductions.
- Bulk CSV Upload & 1-Click Testing: Field workers or auditors can upload raw LGU calamity masterlists (
seed_beneficiaries.csv) or custom spreadsheets. - Multi-Vector Fuzzy Token Matching: Combines Levenshtein distance, token sort ratio, and phonetic analysis to flag:
- Clerical Typo / Phonetic Match:
Juan Dela CruzβJhon Dela Cruz(95.0% match) - Swapped Name Fields:
Maria SantosβSantos Maria(95.6% match) - Cross-Barangay Duplicate Claim:
Ricardo Reyes (Brgy 628)βRiccardo Reyes (Brgy 630)(92.8% match) - Exact Duplicates: Instant flagging with direct comparison drawer.
- Clerical Typo / Phonetic Match:
- Ethical AI Principle: The AI never denies food or cash autonomously. It flags suspicious records for human review, and field officers make the final call.
- 3 Dynamic Personas: Switch between Public Citizen (Mamamayan), Barangay Officer (Kawani), and COA Auditor (Tagasuri).
- Role-Gated Actions: Normal citizens can inspect records in read-only mode, while Barangay Officers and Auditors can permanently purge duplicate records with "Tanggalin ang Doble (Delete Duplicate)".
- Immutable Audit Trail: Every deletion triggers a permanent
BENEFICIARY_DELETEDevent on the audit log to prevent corrupt insiders from secretly deleting legitimate claimants.
- Addresses the #1 judge question: "What happens when typhoon winds topple cell towers?"
- Field tablets cache signed distribution vouchers locally in browser storage (
IndexedDB/ Service Worker). - Vouchers queue locally and automatically batch-sync cryptographic hashes to Polygon as soon as Starlink or municipal hall internet reconnects.
- Allows any citizen or auditor to verify receipt integrity against the immutable Polygon Smart Contract.
- Interactive Pitch Demonstrations:
- Scenario A: Pocketing Cash (Kupit sa Pera) β Simulates an insider reducing a database record from β±5,000 to β±2,000 after payout. The system computes the current hash, detects the mismatch against the original on-chain seal, and raises an instant RED CORRUPTION ALERT.
- Scenario B: Ghost Beneficiary Swap (Multong Claim) β Simulates secretly swapping an evacuee's name in the database. Instantly caught by the cryptographic signature.
- Restore Authentic Record β Restores the genuine β±5,000 record and confirms a 100% cryptographic match.
- Accessible directly on the homepage dashboard.
- Allows live switching between Local EVM (Port 8545), Polygon Amoy Testnet, and custom RPC endpoints.
- Features 1-click Copy Contract Address, direct link to Polygonscan Block Explorer, and an educational collapsible explainer on how smart contracts work.
- Professional English as the primary clear heading and button text.
- Natural, conversational Filipino as helpful secondary subtext to guide local field workers and evacuees.
- Node.js v20+ or v24+
- Python 3.10+ or 3.13+
cp .env.example .envcd contracts
npx hardhat node --hostname 127.0.0.1 --port 8545Deploy the smart contract:
cd contracts
npx hardhat run scripts/deploy.js --network localhostDeployed Contract Address: 0x5FbDB2315678afecb367f032d93F642f64180aa3
cd backend
python3 server.py 8000Auto-initializes SQLite database with Typhoon Salinlahi (RELIEF-2026-001) test masterlist.
cd frontend
npm run build && npm start
# or for live development: npm run devOpen http://localhost:3000 in your browser.
cd contracts
npx hardhat testPasses 100% of test cases: fund release, allocation, receipt anchoring, access control, and hash verification.
cd backend
python3 test_backend.pyPasses 100% of test cases: Levenshtein token sort matching, duplicate resolution, statistical anomaly detection, and cryptographic integrity verification.
cd frontend
./node_modules/.bin/tsc --noEmitPasses with 0 errors across all routes and components.
- User Guide & Role Walkthrough β Comprehensive guide for Citizens, Barangay Workers, and COA Auditors.
- Technical Architecture Specification β In-depth hybrid off-chain/on-chain design.
- Smart Contract & Blockchain Spec β Gas optimization, data structures, and Polygon Amoy deployment.
- 5-Minute Hackathon Demo Script β Minute-by-minute pitch guide with winning talking points.
MIT License. Built for disaster resilience and public transparency in the Republic of the Philippines. π΅π