KrishiVigil.ai
AI powerd crop disease detection
The problem KrishiVigil.ai solves
🌾 KrishiVigil.ai — Summary
KrishiVigil.ai is an AI-powered crop disease detection and advisory system designed to help farmers identify plant diseases early and take immediate action. Farmers simply upload a photo of their crop, and within 3 seconds the system provides the disease diagnosis, treatment advice, and estimated economic loss.
KrishiVigil_Technical_Brief
⚠️ Note:
plant_model_yolo.pt is not included in this repository (too large for GitHub).
google drive uploaded
1️⃣ Problem it Solves
Crop diseases cause 20–30% loss of agricultural produce in India, costing over ₹90,000 crore annually. Many farmers wait 3–7 days for expert advice, by which time the disease spreads and damages most of the crop. KrishiVigil aims to give instant diagnosis directly to farmers.
KrishiVigil_Technical_Brief
2️⃣ Core Solution
Farmers upload a crop image and the system instantly provides:
Disease name
Severity level
4-step action plan (Today / 3 Days / Week / Next Season)
Recommended fungicide brands and dosage
Crop health score
Weather-based disease risk
Estimated financial loss in ₹
This helps farmers act quickly and prevent crop damage.
KrishiVigil_Technical_Brief
3️⃣ Key Technologies Used
The system uses a modern AI and web stack:
Frontend
React.js + Vite (fast web interface)
Backend
Flask (Python REST API)
AI Model
YOLOv8x classification model
Trained on 87,000 plant images
Detects 38 crop diseases
Accuracy: 96–98%
Additional Systems
OpenWeatherMap API for weather-based risk
Economic engine using government MSP and yield data.
KrishiVigil_Technical_Brief
4️⃣ Unique Features
KrishiVigil offers several advantages over existing agriculture apps:
Diagnosis in under 3 seconds
Uses Indian fungicide brand names
Calculates economic loss in rupees
Supports Hindi crop names
Works on low-cost smartphones
Provides weather-adjusted advice
Can run offline with local AI model.
KrishiVigil_Technical_Brief
5️⃣ System Architecture
The platform has two main parts:
Frontend (React PWA)
Collects image, crop name, land size, and GPS.
Backend (Flask API)
Runs AI model
Fetches weather data
Calculates economic loss
Returns results as JSON.
KrishiVigil_Technical_Brief
6️⃣ AI Model
Model: YOLOv8x-cls
Parameters: ~57 million
Input: 300×300 crop images
Output: probability across 38 disease classes
It also uses data augmentation and crop-context boosting to improve accuracy in real-world field images.
KrishiVigil_Technical_Brief
7️⃣ Economic Loss Calculator
The system estimates crop loss using:
Government Minimum Support Price (MSP)
Average yield per acre
Disease severity
AI confidence
Weather risk
This shows farmers the actual financial impact of the disease.
KrishiVigil_Technical_Brief
8️⃣ Impact
KrishiVigil aims to:
Reduce crop losses by 30–50%
Save farmers ₹3,000–₹12,000 per acre
Reduce diagnosis time from days to seconds
Decrease unnecessary pesticide use.
It could potentially benefit 146 million farming households in India.
KrishiVigil_Technical_Brief
✅ In one line:
KrishiVigil.ai is an AI-powered mobile web application that diagnoses crop diseases from photos and provides instant treatment and financial insights to help farmers prevent crop losses.
Challenges we ran into
⚠️ Challenges in Developing KrishiVigil.ai
1️⃣ Real-World Image Variability
Most training datasets like PlantVillage contain lab-quality images with clean backgrounds, but farmers take photos in real fields with:
Poor lighting
Multiple overlapping leaves
Soil, insects, or other plants in the frame
Blurry or far-distance images
This makes real-world prediction harder and can reduce model accuracy.
2️⃣ Dataset Limitations
Although the dataset contains 87,000 images and 38 disease classes, it still has limitations:
Some diseases have fewer images.
Many Indian crop diseases are not included in the dataset.
The dataset mostly contains controlled environment images.
This creates challenges when the model encounters new diseases or uncommon conditions.
3️⃣ Internet Connectivity in Rural Areas
Many farmers in rural regions have:
Slow internet connections
Limited data plans
Intermittent network availability
Since the system uses weather APIs and backend inference, connectivity issues can affect the speed and reliability of results.
4️⃣ Image Quality Issues
Farmers may upload:
Low-resolution images
Non-plant images
Extremely zoomed or far-away pictures
Such images make it difficult for the AI model to detect disease correctly, requiring image validation and confidence thresholds.
5️⃣ Hardware Limitations
Many farmers use low-cost smartphones (~₹8,000 devices) with:
Limited processing power
Low camera quality
Small storage capacity
The system had to be optimized to work smoothly on low-end devices.
6️⃣ Weather API Dependency
The system relies on external weather APIs for disease risk prediction.
Challenges include:
API downtime
Rate limits
Network latency
If the API fails, the system must fallback to default values to continue functioning.
7️⃣ Domain Knowledge Integration
Combining AI predictions with agricultural knowledge was complex. The system needed to integrate:
ICAR disease treatment guidelines
Fungicide brand databases
MSP crop price tables
Yield statistics
This required significant research and validation of agricultural data.
8️⃣ Farmer Usability
Most farmers are not highly familiar with technology, so the system had to be designed with:
Simple UI
Minimal steps
Easy language
Familiar fungicide brand names
Ensuring ease of use was an important design challenge.
✅ In short:
The biggest challenges were real-world image variability, dataset limitations, rural connectivity issues, integrating agricultural domain knowledge, and ensuring usability for farmers.
Tracks Applied (1)
Requestly – Creative Use Challenge
Requestly
