Skip to content
KishanMitra

KishanMitra

Your Smart Farming Companion

Created on 25th January 2026

•

KishanMitra

KishanMitra

Your Smart Farming Companion

The problem KishanMitra solves

India’s 140+ million farmers operate in an information vacuum.
Most farmers:
->Detect diseases only after crops are severely affected
->Lack access to timely expert guidance
->Struggle with literacy barriers, fragmented information, and poor market access
Know something is wrong but don’t know what action to take next.
This reactive farming approach results in massive yield losses, rising costs, and economic instability for small and marginal farmers.


🚜 The Solution: KisanMitra

KisanMitra is an AI-powered Smart Farming Android App designed specifically for Indian farmers.
It acts as a digital farming companion that closes the loop from problem detection to solution execution.

We replace guesswork with a closed-loop system that Detects, Explains, and Resolves agricultural problems in real time.

🌟 1) Our “Hero” Technologies
📸 AI Crop Doctor (Image-Based Disease Detection)

Farmers simply click or upload a photo of an infected crop.

A CNN-based ML model detects the disease instantly

AI explains the disease in simple, farmer-friendly language

No labs, no experts, no delay

🌱 Soil Intelligence & Crop Advisory

Using soil data (NPK, pH, moisture, rainfall):

Identifies soil imbalance and stress conditions

Predicts crop risk due to low rainfall and poor soil health

Recommends best crops, fertilizers, and treatments using AI

🔁 2) The Complete Economic Loop
🛒 From Diagnosis to Solution – In One App

KisanMitra doesn’t stop at identifying problems.

Once a disease is detected:

AI recommends the exact treatment

Farmers can directly access a marketplace

Buy fertilizers, pesticides, and solutions suggested by AI

📈 Closing the Loop

Problem → Diagnosis → AI Recommendation → Product Access → Action

This ensures farmers are not just informed — they are empowered to act immediately.

Challenges we ran into

  1. The “Heavyweight Model” Problem: CNNs in Rural Reality

Problem:
Our initial CNN-based crop disease model was accurate but computationally heavy, leading to slow inference and occasional failures on low-end devices and weak networks common in rural areas.

Struggle:
Uploading high-resolution crop images to the FastAPI backend often caused timeouts under poor connectivity, making the disease detection flow unreliable.

Fix:

Implemented client-side image compression and resizing
Optimized backend inference by keeping only essential preprocessing
Reduced image payload size drastically

📉 Result: Average diagnosis time dropped from 10–12 seconds to under 5 seconds, even on slow networks.

  1. Schema vs AI Output Mismatch (The Silent Failure Bug)

Problem:
AI (Gemini + ML) returned rich structured data (lists for causes, treatment, prevention), but our database schema expected simple string fields.

Struggle:
This caused:

Pydantic validation errors (Expected str but got list)
Cases where APIs returned 200 OK but data was not stored
Difficult debugging due to lack of visible crashes

Fix:
We redesigned the architecture:
Persist only core facts (disease name, confidence, image path, farm ID)
Generate detailed explanations dynamically using Gemini AI when needed

🧠 This decoupled AI evolution from database design and eliminated serialization issues.

  1. Lack of Real Indian Crop Disease Data

Problem:
Some crop diseases common in India had very limited labeled datasets, leading to overfitting.

Fix:

Applied data augmentation (rotation, noise, flipping)
Expanded small datasets (e.g., 40–50 images → 400–500 samples)
📊 Result: Improved generalization and stable predictions in real-world tests.

Discussion

Builders also viewed

See more projects on Devfolio