PlantIQ — Coffee Agronomy & Advisory Platform
Multimodal precision agronomy platform with hybrid RAG and vernacular pre-routing.
End-to-end multimodal coffee agronomy advisory platform and farmer marketplace for smallholder growers in Karnataka's Western Ghats, featuring fine-tuned ResNet-50 vision, 3-stage hybrid RAG, and Kannada vernacular voice/text routing.
Smallholder coffee growers across Karnataka's Western Ghats (Chikmagalur, Kodagu, Hassan) frequently face catastrophic crop yields due to severe foliar fungal infections like Coffee Leaf Rust, Black Rot, and Cercospora Leaf Spot.
Existing AI solutions present severe practical hurdles:
- 01.Standard vision classifiers trained on generic plant datasets fail on actual field photographs taken under harsh tropical sunlight, canopy shadows, and high moisture.
- 02.Foundation LLMs hallucinate dangerous chemical dosages and fungicide timing schedules, risking crop burn and export rejection.
- 03.Language barriers prevent adoption: farmers communicate primarily in colloquial Kannada and Kanglish, not formal technical English.
I engineered an end-to-end multimodal diagnostic and precision advisory system:
- 01.Pathology Vision Model: Fine-tuned a deep convolutional ResNet-50 network using PyTorch on real field coffee leaf photographs. Applied heavy data augmentation (color jitter, perspective warping, random shadows), class-weighted cross-entropy loss to counteract dataset imbalances, and cosine annealing scheduling, reaching 96.4% Top-1 accuracy across 5 foliar disease classes with ~65ms CPU inference.
- 02.3-Stage Hybrid RAG Engine: Grounded all conversational responses in authoritative Central Coffee Research Institute (CCRI) agronomy manuals:
- ▸Stage 1 (Hybrid Retrieval): BGE-Base dense vector search combined with BM25Okapi sparse lexical retrieval via Reciprocal Rank Fusion (RRF).
- ▸Stage 2 (Reranking): Cross-Encoder neural reranker scoring with sigmoid calibration to discard low-relevance passages.
- ▸Stage 3 (Validation Guardrails): Strict numerical regex guardrails verifying chemical dosages (e.g. Copper Oxychloride percentages) against CCRI guidelines before returning advice.
- 03.Sub-Millisecond Vernacular Pre-Router: Developed a lightweight linguistic detector for Kannada script and Romanized Kanglish, translating intent into agronomic keywords and dispatching to Gemini 2.5 Flash with Groq GPT-OSS 120B fallback.
The architecture unites asynchronous backend processing with responsive mobile deployment:
- ―FastAPI Asynchronous Gateway: High-throughput Python service featuring SHA-256 image fingerprinting to deduplicate concurrent requests from identical farm plots.
- ―Microclimate Environmental Telemetry: Real-time Open-Meteo weather integration injecting local humidity, temperature, and 48-hour precipitation forecasts into the prompt context to assess fungal spore germination risk.
- ―Capacitor 7 Hybrid Client: Cross-platform Android deployment with audio speech-to-text recording, offline camera capture, and a Haversine-based peer-to-peer estate marketplace enabling direct-to-buyer transactions.
Deploying AI in rural agronomic contexts demonstrated key real-world lessons:
- ―Pure semantic embedding search frequently misses exact chemical active-ingredient concentrations (e.g., "0.5g/L" vs "5g/L"); hybrid sparse-dense retrieval is indispensable for mission-critical tasks.
- ―On-device edge pre-filtering of blurred or out-of-focus camera captures prevents sending unprocessable images across bandwidth-limited rural cellular towers.
Quacky — Offline Android Utility Suite
Pure offline Android utility suite with zero network permissions.