BharatFarm
Precision agriculture platform featuring ML crop diagnosis, weather intelligence, and market linkages

BharatFarm
Precision agriculture platform featuring ML crop diagnosis, weather intelligence, and market linkages

How It Connects
BharatFarm is a comprehensive agritech platform designed to empower smallholder farmers. The system integrates a TensorFlow/Computer Vision model for leaf disease detection via camera scans, real-time agricultural weather advisory APIs for microclimate planning, and dynamic market price tracking. The frontend features a cinematic bilingual interface with high-contrast mobile accessibility, while the backend coordinates model inference and agricultural knowledge bases.
Components
System Components
How It Works
Leaf Scan Capture
Takes a clear photo of an infected crop leaf using the in-app camera.
Image Preprocessing & Tensor Conversion
Resizes image to 224x224, normalizes RGB channels, and feeds into the CNN.
Neural Network Classification
Predicts the disease probability distribution across trained agricultural classes.
Prescription & Advisory Generation
Fetches certified agricultural treatment plans based on identified pathogen and current humidity.
Delivery in Local Dialect
Presents visual disease breakdown with easy audio and visual steps.
Leaf Scan Capture
Takes a clear photo of an infected crop leaf using the in-app camera.
Image Preprocessing & Tensor Conversion
Resizes image to 224x224, normalizes RGB channels, and feeds into the CNN.
Neural Network Classification
Predicts the disease probability distribution across trained agricultural classes.
Prescription & Advisory Generation
Fetches certified agricultural treatment plans based on identified pathogen and current humidity.
Delivery in Local Dialect
Presents visual disease breakdown with easy audio and visual steps.
Technical Breakdown
Granular architectural layers, runtime dependencies, and audited production decisions.
- React with responsive mobile-first Tailwind designcopy
- Camera API integration with instant client-side thumbnail previewscopy
- Bilingual English / Hindi typography and high-contrast iconographycopy
- Python Flask / Node.js microservices handling model inference and data feedscopy
- RESTful endpoints for weather telemetry and diagnostic historycopy
Engineering Tradeoffs & Key Decisions
Why this architecture over alternativesOn-Device Image Downsampling
Downsampled and compressed photos in JavaScript before uploading to the backend.
Rural 2G/3G connections cannot reliably upload 10MB raw mobile photos; downsampling cuts upload times by 90%.
Organic-First Treatment Recommendations
Prioritized accessible eco-friendly remedies alongside synthetic chemicals.
Enables immediate action by farmers using affordable on-farm resources like neem oil and bio-fungicides.