๐พ KrishiMarg โ AI-Powered Crop Prediction & Smart Farming Assistant
๐ Inspiration
Small-scale farmers often rely on traditional knowledge and guesswork when selecting crops or managing soil, irrigation, and fertilizers. This leads to reduced yield, inefficient resource usage, and financial risk.
We wanted to build something practical, scalable, and farmer-friendlyโa system that brings AI + IoT + real-time data right to the field.
Thatโs how KrishiMarg was born.
๐ฑ What It Does
KrishiMarg is an AI-driven platform that predicts the most suitable crops for a farmerโs field based on real-time IoT sensor data, weather insights, and soil health parameters.
It provides:
- ๐ก Real-time soil & environment monitoring (N, P, K, pH, moisture, temperature, humidity, rainfall)
- ๐ค ML-powered crop prediction using supervised ML models
- โ๏ธ Weather API integration for region-specific climate forecasts
- ๐งช Soil-health based recommendations for irrigation, fertilization, and pest control
- ๐ Multilingual interface enabling accessibility for farmers
- ๐ฑ Web platform with simple visual insights
Our goal: Increase crop yield by at least 10% through data-driven decision-making.
๐ ๏ธ How We Built It
Hardware & IoT Pipeline
- Built IoT sensor nodes using ESP32
- Measured parameters:
- N, P, K
- Soil pH
- Soil Moisture
- Temperature & Humidity
- Rainfall
- N, P, K
- Data sent to Firebase Realtime Database
- Weather data fetched via external weather APIs
Backend & ML Model
- Backend developed using Node.js + Express.js
- Real-time data preprocessing pipeline
- Supervised ML model using Scikit-learn trained on agricultural datasets
- Prediction API integrated with backend
- MongoDB used for user/device logging
Frontend
- Web app built with EJS templates, CSS, and vanilla JS
- Multilingual support for regional languages
- Clean and intuitive UX for farmers
๐งฉ Challenges We Ran Into
- Collecting clean agricultural datasets
- Normalizing multi-source sensor data
- Ensuring high model accuracy across soil variations
- Designing a low-latency IoT โ Cloud โ ML pipeline
- Building an accessible UI for rural users
- Syncing Firebase, ML server, and frontend in real time
๐ Accomplishments Weโre Proud Of
- End-to-end working solution integrating IoT + AI + Web
- Achieved 85โ90% accurate crop prediction
- Low-latency real-time sensor streaming
- Clean multilingual farmer-friendly interface
- Scalable architecture ready for pilot deployment
๐ What We Learned
- Production-grade IoT design and architecture
- Real-time cloud communication using Firebase & Express
- ML model optimization and feature engineering
- Efficient API design and model deployment
- Importance of accessibility & regional language support
- Collaboration in a multidisciplinary domain like agriculture
๐ฎ Whatโs Next for KrishiMarg
- ๐พ Fertilizer quantity optimization engine
- ๐ AI-based pest/disease detection using images
- ๐ก LoRaWAN-based long-range sensor nodes
- ๐ฑ Native mobile application (Android/iOS)
- ๐ Yield forecasting & costโbenefit dashboard
- ๐ค Partnerships with agriculture departments

Log in or sign up for Devpost to join the conversation.