Skip to content

priya-codesdaily/agropredict

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

9 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐ŸŒพ AgroPredict

AI-Powered Crop Price Intelligence for Indian Farmers

Status Flutter Platform Data License

Built by a farmer's daughter. For 140 million farmers who deserve the same market intelligence that big traders already have.


๐ŸŽฏ The Problem

A farmer in Odisha harvests his mango crop. He has two choices:

  • Sell today at whatever the local trader offers
  • Wait โ€” and risk the crop spoiling

He has no data. No prediction. No idea that the same mango sells for โ‚น12,000/quintal just 2 districts away.

This is the daily reality of 140 million Indian farmers.

"The greatest value loss for farmers occurs not on the field but in the marketplace. Price discovery, not yield, is the biggest unsolved problem in Indian agriculture."


๐Ÿ“ฑ Demo

Home Screen Live Prices Smart Advice
Home Prices Advice

๐Ÿš€ Features

Feature Description
๐Ÿ“Š Live Mandi Prices Real-time data from AGMARKNET government API
๐Ÿค– Smart Sell Advice "Best price at Ahmedgarh APMC โ€” sell there now"
๐Ÿš› Transport Calculator Net profit after travel cost โ€” "Worth it / Not worth it"
๐Ÿ† Best Mandi Finder Automatically identifies highest paying market
๐Ÿ‡ฎ๐Ÿ‡ณ Hindi Language Complete Hindi UI with one tap toggle
๐ŸŽค Voice Input Speak crop name โ€” works in Hindi and English
๐Ÿ“ˆ Price Comparison Bar chart comparing prices across 10+ mandis

๐Ÿง  Intelligence Logic

\\dart // Smart advice โ€” not just "highest price" // Considers price variance across mandis

double percentAboveAvg = ((maxPrice - avgPrice) / avgPrice) * 100;

if (percentAboveAvg > 20) return 'SELL'; // Clear opportunity if (avgPrice > 2500 && variance < 10) return 'SELL'; // Stable high price
if (avgPrice < 1500 && variance < 10) return 'WAIT'; // Low โ€” wait for better if (percentAboveAvg > 10) return 'WAIT'; // Better price coming

// Transport Profit Logic double netProfit = (price ร— quantity) - (distance ร— costPerKm); bool worthIt = netProfit > (totalRevenue ร— 0.7); \\


๐Ÿ›  Tech Stack

\
Frontend: Flutter (Dart) Data Source: AGMARKNET API (Ministry of Agriculture, India) Charts: fl_chart Storage: shared_preferences Voice: speech_to_text HTTP: http package Platform: Android (tested on real device) \\


๐Ÿ“Š Data Source

\
API: AGMARKNET โ€” data.gov.in Provider: Ministry of Agriculture, Government of India Update frequency: Daily Coverage: 3,000+ mandis across India Fields: Crop, State, District, Market, Min/Max/Modal Price Cost: Free (Open Government Data) \\


๐Ÿ“ฒ Installation

\\๏ฟฝash git clone https://github.com/priya-codesdaily/agropredict.git cd agropredict flutter pub get flutter run \\


๐Ÿ—๏ธ Architecture

\
lib/ โ”œโ”€โ”€ main.dart โ”œโ”€โ”€ models/ โ”‚ โ””โ”€โ”€ crop_model.dart # Data structure โ”œโ”€โ”€ services/ โ”‚ โ””โ”€โ”€ mandi_service.dart # API + logic engine โ””โ”€โ”€ screens/ โ”œโ”€โ”€ home_screen.dart # Search + voice input โ””โ”€โ”€ price_result_screen.dart # Results + calculator \\


๐Ÿ”ฎ Roadmap

  • Live AGMARKNET API integration
  • Smart sell advice engine
  • Transport profit calculator
  • Hindi language support
  • Voice input (Hindi + English)
  • GPS-based nearest mandi
  • 7-day price trend analysis
  • Python ML price prediction (XGBoost)
  • Weather alerts integration
  • WhatsApp farmer notifications
  • Offline mode with cached prices
  • Odia + Telugu language support

๐Ÿ“ˆ Impact Potential

\
Target farmers: 140 Million (India alone) Post-harvest loss: 30% reducible with better decisions Income improvement: 5%+ with better sell timing AgriTech market 2025: Billion Expansion potential: Bangladesh, Kenya, Vietnam, Nigeria \\


๐ŸŒ Why This Matters Globally

The same problem exists in:

  • Bangladesh โ€” Rice and jute price uncertainty
  • Kenya โ€” Maize and tea market intelligence
  • Vietnam โ€” Rice export pricing
  • Nigeria โ€” Cassava and yam price discovery

Same codebase. Different data source. Different language. Same impact.


๐Ÿ‘ฉโ€๐Ÿ’ป Developer

Anshu Priya โ€” Self-taught Flutter Developer | BCA Student | Age 20 | Odisha, India

"My family grows mangoes. My mother taught me that value addition beats raw selling. I built AgroPredict so every farmer can make the same smart decisions."

Portfolio GitHub LinkedIn


๐Ÿ’ก AgroPredict is not just a project. It is the tool my father never had. Today I am building it for 140 million farmers just like him.

Releases

No releases published

Packages

 
 
 

Contributors