Skip to main content
SOLARQUACK // SYSTEM
CLICK TO ENTER✦
[ INITIATE AUDIO & ARCHIVES ]
CLICK ANYWHERE TO ENTER
000%
ΒPROJECT 02 // CASE STUDY DOSSIER

PlantIQ — Coffee Agronomy & Advisory Platform

Multimodal precision agronomy platform with hybrid RAG and vernacular pre-routing.

PROJECT METADATA DOSSIERINDEX // 02
ROLEML & Full-Stack Architect
YEAR2026
DURATION8 weeks
STACKPyTorch, FastAPI, Hybrid RAG, BM25Okapi
STATUSLIVE
AUTHORJeel Nada (solarquack)
PROJECT 02 // PLACEHOLDERPENDING CASE STUDY
SEED: plantiq-capstoneIN PROGRESS ↗
00 // SUMMARY STATEMENT

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.

01 // PROBLEM

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:

  1. 01.
    Standard vision classifiers trained on generic plant datasets fail on actual field photographs taken under harsh tropical sunlight, canopy shadows, and high moisture.
  2. 02.
    Foundation LLMs hallucinate dangerous chemical dosages and fungicide timing schedules, risking crop burn and export rejection.
  3. 03.
    Language barriers prevent adoption: farmers communicate primarily in colloquial Kannada and Kanglish, not formal technical English.
02 // APPROACH

I engineered an end-to-end multimodal diagnostic and precision advisory system:

  1. 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.
  2. 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.
  3. 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.
03 // BUILD

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.
SYSTEM ARCHITECTURE TOPOLOGY
clientCapacitor 7 Mobile AppserviceVernacular Pre-RouterworkerResNet-50 Leaf Classifierworker3-Stage Hybrid RAGstorageCCRI Ground Truth CorpusserviceGemini 2.5 Flash / GroqKannada / Kanglish QueryLeaf ImageClass & ConfidenceBM25 + BGE DenseContextual Grounding
CLICK "EXPAND & INTERACT" FOR FULLSCREEN CANVAS
04 // LEARNED

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.
EMPIRICAL METRICS & BENCHMARKS
TOP-1 ACCURACY96.4%
CPU INFERENCE~65ms
DISEASE CLASSES5
TOOLING JUSTIFICATION
ResNet-50 & PyTorchFine-tuned with weighted cross-entropy and cosine annealing for leaf disease classification under challenging field lighting.
Hybrid RAG (BM25 + BGE + Cross-Encoder)Combines dense semantic search with sparse keyword matching to eliminate chemical dosage hallucinations in advisory answers.
NEXT DOSSIER // 03✦Γ

Quacky — Offline Android Utility Suite

Pure offline Android utility suite with zero network permissions.

↗