Skip to content

SiddharthJiyani/KrishiDhaara

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

87 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🌱 KrishiDhaara: Smart Agriculture Platform

Revolutionizing Agriculture with AI, IoT, and Data Analytics

YouTube Demo

OverviewKey FeaturesTech StackArchitectureDemoInstallationUsage

🌾 Overview

KrishiDhaara is a comprehensive smart agriculture platform built to empower farmers with cutting-edge technology. By seamlessly integrating IoT sensors, AI-powered analytics, and intelligent automation, KrishiDhaara transforms traditional farming practices into precise, data-driven operations that improve crop yields, conserve resources, and detect problems before they affect harvests.

Our platform bridges the technology gap in agriculture, making sophisticated tools accessible to farmers of all scales through an intuitive interface available in both English and Hindi. KrishiDhaara addresses the key challenges farmers face daily: irrigation management, disease detection, weather uncertainties, and resource optimization.

✨ Key Features

💧 Smart Irrigation System

  • Real-time soil moisture monitoring with precise sensor data visualization
  • Automated irrigation scheduling based on soil conditions and weather forecasts
  • Water consumption analytics with filterable date ranges and usage patterns
  • Anomaly detection for identifying leaks and system malfunctions
  • Interactive irrigation history with detailed session logs (duration, volume, timestamps)

🌿 AI-Powered Plant Disease Detection

  • Disease identification with 99.09% accuracy using ResNet50 model
  • Fast API with Hugging Face integration for seamless processing
  • Early detection alerts before diseases spread throughout crops
  • Treatment recommendations with severity assessment
  • Historical tracking of disease occurrences and treatments

🗺️ Precision Field Mapping

  • GPS-accurate field visualization with custom boundary definition
  • Sensor positioning and management throughout mapped fields
  • Real-time sensor status indicators directly on field map
  • Map/satellite view switching for comprehensive field visualization
  • React-Leaflet integration for high-precision mapping
  • Mobile-friendly interface for in-field use and adjustments

☁️ Weather Intelligence

  • Open weather API integration for localized forecasting
  • 7-day detailed forecasts with hourly predictions
  • Wind speed and precipitation data for farming operations planning
  • Weather-based irrigation adjustments to optimize water usage
  • Historical weather pattern analysis for seasonal planning

🤖 Intelligent Farm Assistant Chatbot

  • GROQ API integration for natural language understanding
  • Farming-specific context for relevant advice and information
  • AI hallucination detection with expert review suggestions
  • Multi-language support (English and Hindi)
  • Query routing to specialized knowledge domains (irrigation, diseases, weather)

📊 Comprehensive Analytics Dashboard

  • Centralized overview of all farm operations and sensor data
  • Multi-timeframe visualization (daily, monthly, yearly views)
  • Sensor performance monitoring and maintenance alerts
  • Customizable reports for complete farm analysis
  • Responsive design for desktop and mobile access

🚨 Advanced Anomaly Detection

  • Real-time AI-powered notifications for unusual patterns
  • LSTM model implementation for predictive analysis
  • Configurable alert thresholds with on/off toggles
  • Historical anomaly tracking for pattern recognition

🌱 Crop Recommendation System

  • AI-trained model for optimal crop selection
  • Soil-specific recommendations based on sensor data
  • Seasonal planting advice integrated with weather forecasts
  • Yield prediction based on historical data and conditions

📰 Agricultural News & Resources

  • Krishi Jagran integration via web scraping using cheerio
  • Categorized agricultural news with custom filtering
  • Featured articles highlighting important developments
  • Pagination system for easy content browsing

🔮 Additional Smart Features

  • Hindi <-> English translation throughout the entire platform
  • Report generation for comprehensive farm analysis
  • Responsive design for all devices and screen sizes

🛠️ Tech Stack

Frontend

React Vite Tailwind CSS Chart.js React Leaflet

Mobile Application

Kotlin Jetpack Compose Firebase

Backend

Node.js Express MongoDB FastAPI

AI and IoT

TensorFlow PyTorch Hugging Face GROQ Python Raspberry Pi IoT Sensors

🏗️ Architecture

KrishiDhaara System Architecture

KrishiDhaara System Architecture Diagram (Click to expand)

KrishiDhaara follows a modular microservices architecture consisting of five key components:

  1. Web Client: React-based responsive dashboard that provides visualization, control center, and user management
  2. Mobile App: Kotlin-based Android application that enables on-field monitoring, control, and disease detection
  3. IoT Server: Python-based middleware that handles sensor communications, data processing, and automation
  4. AI Server: Specialized service for disease detection, anomaly detection, and intelligent data analysis
  5. Backend Server: Core application logic, database management, and API gateway services

This architecture ensures scalability, maintainability, and fault tolerance across the platform.

🎥 Demo

KrishiDhaara Demo Video

Click the image to watch our comprehensive demonstration video

📲 Installation

Prerequisites

  • Node.js (v14+)
  • Python (v3.8+)
  • MongoDB
  • Android Studio (for mobile app)
  • IoT sensors (see hardware specifications in docs)

Step-by-Step Setup

1. Clone the repository

git clone https://github.com/yourusername/KrishiDhaara.git
cd KrishiDhaara

2. Web Client Setup

cd client
npm install
npm run dev

3. Backend Server Setup

cd server
npm install
cp .env.example .env  # Configure your environment variables
npm start

4. IoT Server Setup

cd IoT_Server
pip install -r requirements.txt
python index.py

5. AI Server Setup

cd AI_Server/diseaseDetectionServer
pip install -r requirements.txt
python app.py

6. Mobile App Setup

cd mobileApp
# Open in Android Studio and build the project

📋 Usage

  1. Initial Configuration:

    • Set up your farm's geographical details
    • Connect and position IoT sensors
    • Define crop types and field boundaries
  2. Daily Monitoring:

    • Check dashboard for real-time soil moisture, temperature, and other sensor readings
    • Review weather forecasts for upcoming farming operations
    • Monitor anomaly notifications for potential issues
  3. Disease Detection:

    • Upload plant images through web or mobile app
    • Review AI analysis results for disease identification
    • Implement recommended treatments if issues are detected
  4. Irrigation Management:

    • Monitor soil moisture levels across fields
    • Adjust automated irrigation schedules or trigger manual irrigation
    • Analyze water usage patterns to optimize consumption
  5. Insights & Planning:

    • Generate custom reports for farm operations
    • Use crop recommendation system for planting decisions
    • Leverage chatbot for farming advice and troubleshooting

👏 Acknowledgements


🌾 Made with ❤️ for India's Farmers 🌾

KrishiDhaara - Where Technology Meets Agriculture