AI-powered blockchain agent that verifies farmers, detects natural disasters, and distributes subsidies instantly. No corruption. No waiting. Just automated relief when farmers need it most.
AgroSubsidyAI: Autonomous Agricultural Subsidy Distribution System
PROBLEM STATEMENT
Traditional agricultural subsidy systems are plagued by corruption, bureaucratic delays, and lack of transparency. Farmers affected by natural disasters often wait months or years to receive aid, if they receive it at all. The current system involves multiple intermediaries, paper-based processes, and manual verification that creates opportunities for fraud and inefficiency.
SOLUTION
AgroSubsidyAI is a fully autonomous, AI-powered blockchain system that revolutionizes agricultural subsidy distribution. When a natural disaster strikes, our intelligent agent automatically verifies farmers, detects weather events, calculates eligibility, and executes instant subsidy payments—all without human intervention or intermediaries.
HOW IT WORKS
1. FARMER REGISTRATION
Farmers register on-chain with their land details, location (district/village), crop type, and recipient wallet address. All data is stored immutably on the blockchain via the FarmerRegistry smart contract, ensuring transparency and preventing fraud.
2. AI-POWERED DISASTER DETECTION
Our AI agent continuously monitors registered farmers and uses Google Gemini AI to:
- Analyze real-time weather data and news sources
- Detect natural disasters (floods, droughts, cyclones) in specific regions
- Geocode farmer locations to verify affected areas
- Generate unique weather event IDs for each detected disaster
3. AUTOMATED ELIGIBILITY ASSESSMENT
The EligibilityEngine smart contract automatically:
- Matches farmer locations with disaster-affected regions
- Validates crop types against subsidy scheme requirements
- Calculates eligibility scores based on disaster severity and crop vulnerability
- Determines subsidy amounts using predefined multipliers for different disaster types
4. INSTANT SUBSIDY DISTRIBUTION
Once eligibility is confirmed, the SubsidyDistributor contract:
- Executes autonomous payments directly to farmer wallets
- Records all transactions on-chain for complete transparency
- Provides real-time tracking of subsidy distribution
- Eliminates the need for bank accounts or intermediaries
TECHNICAL ARCHITECTURE
Frontend (Next.js 14 + React)
- Modern, responsive UI built with Tailwind CSS and Framer Motion
- Real-time dashboard showing farmer registrations, weather events, and payments
- Interactive workflow visualization of the autonomous process
- Wagmi integration for seamless blockchain interactions
- Live statistics and monitoring capabilities
Smart Contracts (Solidity + Foundry)
- FarmerRegistry.sol: Manages on-chain farmer profiles and registration
- WeatherOracle.sol: Records weather events and disaster alerts from authorized oracles
- EligibilityEngine.sol: Evaluates eligibility and calculates subsidy amounts
- SubsidyDistributor.sol: Handles autonomous payment execution and fund management
AI Integration (Google Gemini API)
- Real-time weather disaster detection using natural language processing
- Intelligent geocoding for accurate location matching
- Dynamic eligibility score calculation based on multiple factors
- Automated decision-making without human intervention
KEY FEATURES
✅ Zero Corruption: All transactions are on-chain and transparent
✅ Instant Payments: Subsidies are distributed within minutes of disaster detection
✅ No Middlemen: Direct wallet-to-wallet transfers eliminate intermediaries
✅ AI-Powered: Intelligent disaster detection and eligibility assessment
✅ Fully Autonomous: Entire process runs without human intervention
✅ Transparent: All farmer data, decisions, and payments are publicly verifiable
✅ Trustless: Smart contracts ensure fair and consistent execution
✅ Real-time Monitoring: Live dashboards track all system activities
IMPACT
For Farmers:
- Receive aid within minutes instead of months
- No need to travel to government offices
- No bribes or corruption
- Transparent and fair eligibility assessment
For Governments:
- Reduced administrative costs
- Eliminated corruption opportunities
- Real-time monitoring and reporting
- Automated compliance and auditing
For Society:
- Faster disaster relief response
- Increased trust in subsidy systems
- Better resource allocation
- Transparent public spending
TECHNICAL HIGHLIGHTS
- Deployed on Ethereum Sepolia Testnet for live demonstration
- Uses OpenZeppelin contracts for security best practices
- Implements reentrancy guards and access controls
- Comprehensive error handling and validation
- Gas-optimized smart contract design
- Responsive design supporting all devices
- Real-time blockchain state synchronization
FUTURE ENHANCEMENTS
- Multi-chain deployment (Polygon, Arbitrum)
- Integration with IoT sensors for real-time weather data
- Machine learning models for predictive disaster forecasting
- Mobile app for farmer registration and tracking
- Integration with government databases for automated verification
- Support for multiple subsidy schemes and programs
- Decentralized oracle network for weather data
AgroSubsidyAI represents the future of transparent, efficient, and corruption-free agricultural subsidy distribution, combining cutting-edge AI technology with blockchain transparency to deliver instant relief to farmers when they need it most.
N/A