FRONTEND LAYER
USER INTERFACE
Flutter / Kotlin Mobile App
Voice/Chat Interface (Local Language)
Image Upload (Disease Detection)
Crop Recommendations View
Offline Mode (SQLite Storage)
Mocal or Venle
Folitri starting
Speech-to-Text bite
Text-to-Speech
BACKEND LAYER
(API & DECISION LOGIC)
FastAPI β Core integration layer
API Gateway for frontend communication
Decision Engine β Combines ML results
User Feedback Handler
Database Access Layer
ποΈ PostgreSQL + PostGIS (spatial data)
Docker
GitHub Actions (CI/CD)
DATA & AI LAYER
(MODEL + DATA HANDLING)
Data Sources
Soil Data (SoliGrids, Bhuvan)
Weather Data (IMD, OpenWeather)
Market Data (AGMiRKNET)
Image Data (Farmer camera)
Preprocessing
Cleaning, merging, geotagging
ML Models
XGBoost β Soil parameter prediction
Random Forest - Crop recommendation
CNN (TFLite) β Disease detection
LSTM/ARIMA β Price forecasting
Step 1: Data Collection
Collects multi-source data from:
Soil Data β SoilGrids, Bhuvan
Weather Data β IMD, OpenWeather
Market Data β AGMARKNET
Image Data β Farmerβs mobile (plant disease)
IoT Sensors (real-time soil moisture, NPK)
π Tools: Python, REST APIs, IoT sensors
π₯ Team: Data Engineer + IoT
Step 2: Data Fusion & Storage
Clean, merge, and geotag data
Store spatial data using PostgreSQL + PostGIS
π Tools: Python (Pandas, GeoPandas), PostgreSQL + PostGIS
π₯ Team: Data Science
Step 3: AI & ML Models
XGBoost β Soil parameter prediction (pH, NPK, Moisture)
Random Forest β Crop recommendation
CNN (TFLite) β Disease detection
LSTM/ARIMA β Market price forecasting
π Tools: TensorFlow, Scikit-learn, TFLite
π₯ Team: AI/ML
Step 4: Decision Engine
Combine soil, weather & market results
Rank crops based on profitability & sustainability
π Tools: FastAPI backend, PostgreSQL
π₯ Team: Backend + AI
Step 5: User Interface
Mobile app with multilingual voice & chat support
Offline mode via SQLite
Image upload for disease detection
π Tools: Flutter / Kotlin, FastAPI, SQLite
π₯ Team: App Dev + UI/UX
Step 6: Deployment & Feedback Loop
Deploy using Docker + GitHub CI/CD
Collect farmer feedback β retrain models
π Tools: Docker, GitHub Actions
π₯ Team: DevOps + QA
Overall Data Flow & Goal
Soil / Weather / Market / Image Data β Data Fusion & Preprocessing β AI Models β Decision Engine β Mobile App β Feedback β Retraining
π― Goal: Provide farmers with real-time, localized, profitable, and sustainable crop recommendations.
by Prachi