Skip to content

Latest commit

Β 

History

6 Commits

Folders and files

NameName
Last commit message
Last commit date
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

🌾 KrishiMind AI

An AI-Powered Farming Assistant that helps farmers make smarter decisions through crop analysis, weather intelligence, soil insights, market trends, and personalized farming recommendations.

πŸš€ Overview

Krishi AI is an intelligent agricultural assistant developed during the NeuralX Hackathon at Sapthagiri NPS University (SNPSU).

The project aims to bridge the gap between Artificial Intelligence and Agriculture by providing farmers with a simple yet powerful platform capable of analyzing crop health, detecting diseases, generating farming roadmaps, and delivering actionable recommendations.

With just a crop image, farmers can receive valuable insights that traditionally require expert consultation, helping improve productivity and reduce losses.


🎯 Problem Statement

Agriculture remains one of the most important industries worldwide, yet many farmers still lack access to modern technological solutions.

Challenges faced by farmers include:

  • Delayed disease detection
  • Lack of expert guidance
  • Uncertainty in fertilizer usage
  • Weather-related crop damage
  • Poor crop planning
  • Limited access to agricultural intelligence

Krishi AI addresses these challenges through an integrated AI-powered decision support system.


πŸ’‘ Solution

Krishi AI acts as a digital agronomist.

A farmer simply uploads a crop image and the platform:

  1. Identifies the crop
  2. Detects diseases
  3. Calculates crop health score
  4. Detects nutrient deficiencies
  5. Analyzes weather conditions
  6. Provides soil intelligence
  7. Generates farming roadmaps
  8. Recommends equipment and fertilizers
  9. Offers contextual AI assistance

✨ Key Features

πŸ“Έ AI Crop Analysis

Upload a crop image and receive:

  • Crop Identification
  • Disease Detection
  • Growth Stage Analysis
  • Health Score Calculation
  • Nutrient Deficiency Detection

🌦 Weather Intelligence

Provides:

  • Current Weather
  • Rainfall Forecast
  • Temperature Monitoring
  • Humidity Analysis
  • Weather-Based Recommendations

🌱 Soil Intelligence

Analyzes:

  • Soil Fertility
  • Nitrogen Levels
  • Phosphorus Levels
  • Potassium Levels
  • Soil Health Indicators

πŸ“ˆ Market Insights

Provides:

  • Demand Analysis
  • Market Trends
  • Price Forecasting
  • Selling Recommendations

πŸ“… Dynamic Farming Roadmap

Generates personalized:

  • Weekly Action Plans
  • Fertilizer Schedules
  • Disease Treatment Plans
  • Recovery Strategies
  • Replanting Recommendations

🚜 Equipment Advisor

Recommends:

  • Farming Equipment
  • Irrigation Tools
  • Crop Protection Equipment
  • Harvesting Solutions

πŸ€– Context-Aware AI Assistant

Unlike traditional chatbots, Krishi AI understands:

  • Crop Condition
  • Disease Status
  • Weather Context
  • Soil Information
  • Roadmap Progress

This enables more personalized recommendations.


πŸ— System Workflow

Farmer Uploads Crop Image
            ↓
      AI Crop Analysis
            ↓
 Crop Identification
 Disease Detection
 Health Assessment
            ↓
 Automatic Location Detection
            ↓
 Weather Analysis
 Soil Intelligence
 Market Insights
            ↓
 AI Recommendation Engine
            ↓
 Personalized Farming Roadmap
            ↓
 Dashboard & Task Tracking
            ↓
 Context-Aware AI Assistant

πŸ›  Technology Stack

Frontend

  • HTML5
  • CSS3
  • JavaScript

Backend

  • Flask
  • REST APIs

AI Layer

  • OpenRouter API
  • Gemini Vision Models

External Services

  • Open-Meteo API
  • IPAPI
  • IPInfo

Image Processing

  • Pillow (PIL)

Storage

  • JSON-Based Storage

πŸ“Š Dashboard Modules

The platform includes:

Crop Analysis

AI-powered crop diagnostics.

Tasks

Track roadmap activities and farming actions.

Roadmap

Weekly crop improvement plans.

Weather Intelligence

Weather forecasts and alerts.

Soil Intelligence

Soil health and fertilizer recommendations.

Market Insights

Demand and pricing intelligence.

Equipment Advisor

Farming equipment suggestions.

AI Chatbot

Interactive farming assistant.


πŸš€ Installation

Clone Repository

git clone <repository-url>
cd krishi-ai

Create Virtual Environment

python -m venv venv

Windows

venv\Scripts\activate

Linux / Mac

source venv/bin/activate

Install Dependencies

pip install -r requirements.txt

Configure Environment Variables

Create a .env file:

OPENROUTER_API_KEY=your_api_key

Run Application

python app.py

Application will be available at:

http://localhost:5000

Swagger Documentation:

http://localhost:5000/apidocs

🎯 Future Improvements

  • IoT Sensor Integration
  • Drone-Based Crop Monitoring
  • Satellite Image Analysis
  • Multi-Language Voice Assistant
  • Mobile Application
  • Real-Time Market Data
  • Government Scheme Recommendations
  • Yield Prediction Models
  • Offline AI Support

πŸ† Hackathon Project

Developed as part of:

NeuralX Hackathon Sapthagiri NPS University (SNPSU)


🌱 Vision

Our vision is to make advanced agricultural intelligence accessible to every farmer through Artificial Intelligence, helping improve crop productivity, reduce losses, and enable data-driven farming practices.

About

Krishi AI is an AI-powered farming assistant that helps farmers analyze crop health, detect diseases, receive weather and soil insights, generate personalized farming roadmaps, and make data-driven agricultural decisions.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages