KrishiMitra is an AI-assisted agricultural intelligence platform designed to help farmers with:
- crop disease diagnosis
- mandi price assistance
- weather intelligence
- multilingual conversational support
through a WhatsApp-based workflow powered by FastAPI, TensorFlow, Gemini Vision, and Twilio APIs.
https://krishi-mitra-dev-ai.vercel.app/
https://shivamr021-krishimitra-ai.hf.space/
https://youtube.com/shorts/ygmrwU6daT0?feature=share
Implements a confidence-threshold-based hybrid inference workflow:
- A local TensorFlow/EfficientNet model performs fast disease classification.
- Low-confidence predictions are routed to Gemini Vision for additional analysis.
This architecture improves robustness while reducing unnecessary API calls.
Users can request agricultural market pricing using natural-language WhatsApp queries.
"What is the soybean price in Indore?"
Provides real-time weather insights including:
- temperature
- humidity
- environmental conditions
to support day-to-day agricultural planning.
Supports multilingual conversational responses including:
- Hindi
- English
using Gemini-powered conversational workflows.
| Component | Technology |
|---|---|
| Backend API | FastAPI |
| ML Framework | TensorFlow / Keras |
| Vision Model | EfficientNetB0 |
| LLM Integration | Google Gemini |
| Messaging Platform | Twilio WhatsApp API |
| Deployment | Hugging Face Spaces |
| Frontend Hosting | Vercel |
| Containerization | Docker |
KrishiMitra routes user requests through specialized processing pipelines:
- Disease Detection Pipeline
- Market Price Handler
- Weather Intelligence Handler
- Conversational AI Handler
The disease diagnosis workflow combines:
- local CNN inference
- confidence-threshold routing
- Gemini Vision fallback analysis
to improve handling of uncertain or low-quality agricultural images.
Detailed system design notes are available in:
docs/ARCHITECTURE.md
The disease classification pipeline was trained using transfer learning on PlantDoc-style agricultural datasets.
Evaluation artifacts and observations are available in:
docs/EVALUATION.md
docs/EVALUATION_RESULTS.md
evaluation/eval.py
- controlled datasets generalized poorly to real-world farmer images
- compressed WhatsApp images remain challenging
- low-light agricultural images reduced prediction reliability
- fallback routing improved uncertain prediction handling
Frontend Demo
|
WhatsApp Workflow
|
Hindi Interaction
|
git clone https://github.com/shivamr021/KrishiMitra-AI.git
cd KrishiMitra-AIpip install -r requirements.txtCreate a .env file:
GEMINI_API_KEY=
TWILIO_ACCOUNT_SID=
TWILIO_AUTH_TOKEN=
WEATHER_API_KEY=uvicorn main:app --reloadमक्का में कौनसी बीमारी है?
आपकी फसल में फंगल संक्रमण के संकेत दिखाई दे रहे हैं। कृपया कॉपर-आधारित फफूंदनाशी का उपयोग करें।
backend/
frontend/
docs/
evaluation/
assets/
Backend Development, AI Integration, TensorFlow Model Training, FastAPI Development, Twilio Workflow Automation
-
GitHub: https://github.com/shivamr021
Backend Support, AI/ML Integration Support, Project Ideation, Research & Presentation Design
Frontend Development, UI Integration, Weather API Configuration Support
Documentation, Presentation Support, and Research Assistance
-
LinkedIn: https://www.linkedin.com/in/nitika-jain-b8690b353/
-
GitHub: https://github.com/nitikajain25
This project was initially developed during the OpenAI × NxtWave Buildathon and later refined into an applied AI systems engineering portfolio project.
This project is licensed under the MIT License - see the LICENSE file for details.


