An AI-powered Smart Farming Platform integrating Machine Learning, Deep Learning, IoT, Weather Intelligence, Crop Recommendation, Fertilizer Recommendation, Plant Disease Detection, Live Mandi Prices, and an AI Chatbot using Flask and Firebase.
# 🌱 Krishi–সহায়ক | Smart Farming Platform
> **AI + IoT–powered decision-support system for Indian farmers.**
> Crop recommendation, fertilizer optimization, plant disease detection, smart irrigation, live mandi prices, weather intelligence, and an AI chatbot — unified into a single Flask web application.
---
## 📌 Project Overview
**Krishi–সহায়ক** (Krishi-Sahayak) is a full-stack smart farming platform built with Flask, designed to help farmers make data-driven decisions. The system integrates machine learning models, large language models (Gemini & Groq LLaMA-3), real-time IoT sensor data, and government market-price APIs into a cohesive web dashboard.
### What It Does
| Problem | Our Solution |
|------------------------------------------|---------------------------------------------------------------------------|
| Which crop should I grow? | ML model analyzes soil NPK, pH, temperature, humidity & rainfall → top-5 crops |
| How much fertilizer do I need? | NPK deficiency calculator + Gemini AI explanation in English/Hindi/Bengali |
| Is my plant diseased? | CNN (Keras) classifies 15 disease classes from leaf photos + Gemini treatment plan |
| When should I irrigate? | ESP8266 soil-moisture sensor → auto/manual pump control with rain-blocking |
| What's the market price today? | Live Agmarknet API integration — prices, trends, best mandis |
| I need farming advice | Dialogflow chatbot backed by Groq LLaMA-3.1-8B for agricultural Q&A |
| What's the weather forecast? | Open-Meteo API — current conditions + 6-hour rain probability |
---
## 🎯 Key Features
- 🌾 **Crop Recommendation** — Scikit-learn model predicts top-5 crops from 7 soil/climate features with confidence scores
- 🧪 **Fertilizer Optimization** — NPK deficiency anal …