Problem Statement ID: 25044
Problem Statement Title: AI-Powered Crop Yield Prediction and Optimization
Organization: Government of Odisha
Department: Electronics & IT Department
Category: Software
Theme: Agriculture, FoodTech & Rural Development
Develop an AI-based platform to predict crop yields using historical agricultural data, weather patterns, and soil health metrics. The system should provide actionable recommendations for farmers to optimize irrigation, fertilization, and pest control, tailored to specific crops and regional conditions.
A scalable software solution (web/mobile app) that helps small-scale farmers increase productivity by at least 10% through data-driven insights, with an interface supporting regional languages for accessibility.
Utilizes machine learning models (e.g., regression, neural networks) trained on open-source agricultural datasets, integrated with APIs for real-time weather and soil data.
- ๐ Web Application: https://abdul9010150809.github.io/cropyield-pro/
- ๐ Backend API: https://cropyield-pro.onrender.com/api/health
- ๐ Database: MongoDB Atlas Cloud
CropYield Pro is a comprehensive AI-driven platform that empowers farmers with predictive analytics and actionable insights to optimize agricultural productivity. Our solution addresses the core requirements of the problem statement through advanced machine learning and real-time data integration.
| Requirement | Our Solution |
|---|---|
| Crop Yield Prediction | AI models analyzing multiple parameters for accurate yield forecasting |
| Weather Pattern Integration | Real-time weather API integration with historical analysis |
| Soil Health Metrics | Comprehensive soil analysis and nutrient monitoring |
| Actionable Recommendations | Personalized irrigation, fertilization, and pest control advice |
| Regional Adaptation | Location-specific insights for different agricultural zones |
| Scalable Platform | Full-stack web application with mobile-responsive design |
| Accessibility | Multi-language support framework (ready for regional languages) |
- Multi-factor Analysis: Historical data, weather patterns, soil metrics
- Machine Learning Models: Regression algorithms for yield prediction
- Real-time Processing: Instant predictions based on current conditions
- Confidence Scoring: Accuracy indicators for each prediction
- Real-time Weather Data: Current conditions and forecasts
- Historical Analysis: Seasonal pattern recognition
- Micro-climate Consideration: Location-specific weather impacts
- Extreme Event Alerts: Early warnings for adverse conditions
- Nutrient Analysis: NPK (Nitrogen, Phosphorus, Potassium) monitoring
- pH Level Tracking: Soil acidity/alkalinity optimization
- Moisture Management: Irrigation recommendations based on soil type
- Organic Matter Assessment: Soil fertility indicators
- Irrigation Optimization: Water usage efficiency improvements
- Fertilization Schedule: Nutrient application timing and quantities
- Pest Control Strategies: Integrated pest management solutions
- Crop Rotation Advice: Sustainable farming practices
- Intuitive Interface: Designed for farmers with varying tech literacy
- Visual Analytics: Easy-to-understand charts and graphs
- Multi-language Ready: Framework prepared for regional language integration
- Mobile Responsive: Accessible on smartphones and tablets
๐ Frontend (React + TypeScript)
โ
๐ REST API (Node.js + Express)
โ
๐ค ML Services (Python + Scikit-learn)
โ
๐ Data Layer (MongoDB Atlas)
โ
๐ค๏ธ External APIs (Weather + Soil Data)
- React 18 with TypeScript for type safety
- React Router for seamless navigation
- Context API for state management
- Chart.js for data visualization
- Bootstrap 5 for responsive UI
- Axios for API communication
- Node.js with Express.js framework
- MongoDB Atlas for cloud database
- Mongoose ODM for database operations
- JWT for secure authentication
- CORS for cross-origin requests
- BCrypt for password hashing
- Regression Models for yield prediction
- Historical Data Analysis for pattern recognition
- Real-time Data Processing for current conditions
- Recommendation Engine for actionable insights
- Weather APIs for real-time meteorological data
- Soil Health APIs for nutrient analysis
- Agricultural Datasets for training ML models
cropyield-pro/
โโโ ๐ backend/ # Node.js/Express Backend
โ โโโ ๐ config/ # Database & environment configuration
โ โโโ ๐ controllers/ # Business logic and API handlers
โ โโโ ๐ middleware/ # Auth, validation, error handling
โ โโโ ๐ models/ # MongoDB schemas (User, Prediction, etc.)
โ โโโ ๐ routes/ # API endpoints (auth, prediction, weather)
โ โโโ ๐ services/ # Core business services
โ โ โโโ ๐ค mlService.js # AI/ML prediction algorithms
โ โ โ๏ธ ๐ค๏ธ weatherService.js # Weather data processing
โ โ โ๏ธ ๐ฑ soilHealthService.js # Soil analysis logic
โ โโโ ๐ utils/ # Utilities, logger, helpers
โ โโโ ๐ server.js # Application entry point
โ
โโโ ๐ src/ # React Frontend
โ โโโ ๐ components/ # Reusable UI components
โ โ โโโ ๐จ AuthModals.tsx # Login/Registration
โ โ โโโ ๐ค Chatbot.tsx # AI farming assistant
โ โ โโโ ๐งญ Navbar.tsx # Navigation with multi-language support
โ โ โโโ ๐ฆถ Footer.tsx # Application footer
โ โ โโโ ๐ HeroSection.tsx # Landing page hero
โ โ โโโ ๐พ CropsSection.tsx # Crop selection and display
โ โ โโโ โญ FeaturesSection.tsx # Feature showcase
โ โ โโโ ๐ PredictionForm.tsx # Yield prediction interface
โ โ โ๏ธ ๐ฑ SoilHealth.tsx # Soil analysis component
โ โ โ๏ธ ๐ฆ๏ธ WeatherAnalysis.tsx # Weather insights
โ โ โโโ ๐ก๏ธ ErrorBoundary.tsx # Error handling
โ โ
โ โโโ ๐ contexts/ # React Context for state management
โ โ โโโ ๐ AuthContext.tsx # User authentication state
โ โ โโโ ๐ LanguageContext.tsx # Multi-language support
โ โ
โ โโโ ๐ hooks/ # Custom React hooks
โ โ โโโ ๐ useApiHealth.js # Backend connectivity monitoring
โ โ
โ โโโ ๐ pages/ # Application pages
โ โ โโโ ๐ HomePage.tsx # Landing page
โ โ โโโ ๐ PredictionAndOptimizationPage.tsx # Main prediction interface
โ โ โโโ ๐ฑ SoilHealthPage.tsx # Soil analysis dashboard
โ โ โโโ ๐ฆ๏ธ WeatherAnalysisPage.tsx # Weather insights
โ โ โโโ ๐ค ProfilePage.tsx # User profile & history
โ โ โโโ โน๏ธ AboutPage.tsx # About & documentation
โ โ
โ โโโ ๐ services/ # API communication layer
โ โ โโโ ๐ api.ts # Axios configuration & interceptors
โ โ โโโ ๐ญ mockApi.ts Development mock data
โ โ โโโ ๐ค๏ธ weather.ts # Weather API service
โ โ
โ โโโ ๐ types/ # TypeScript type definitions
โ โโโ ๐ utils/ # Frontend utilities
โ
โโโ ๐ documentation/ # Project documentation
โโโ ๐ public/ # Static assets
โ โโโ ๐ index.html
โ โโโ ๐ฏ manifest.json
โ โโโ โ 404.html # Client-side routing fallback
โ
โโโ ๐ .github/workflows/ # CI/CD pipelines
โ โโโ โ๏ธ deploy.yml # Automated GitHub Pages deployment
โ
โโโ ๐ ๏ธ config-overrides.js # React app configuration
โโโ ๐ฆ package.json # Dependencies & scripts
โโโ ๐ README.md # Project documentation
โโโ ๐ท๏ธ tsconfig.json # TypeScript configuration
# Pseudocode for our prediction algorithm
def predict_yield(crop_type, soil_metrics, weather_data, historical_yields):
# Feature engineering
features = extract_features(soil_metrics, weather_data, historical_yields)
# Ensemble model approach
base_predictors = [RandomForest, GradientBoosting, NeuralNetwork]
predictions = [model.predict(features) for model in base_predictors]
# Weighted average based on model confidence
final_prediction = weighted_ensemble(predictions)
return final_prediction, confidence_interval- Apriori Algorithm for association rule mining
- Collaborative Filtering for similar farmer recommendations
- Content-Based Filtering for crop-specific advice
- โฅ10% Productivity Increase through optimized practices
- โฅ90% Prediction Accuracy for crop yields
- โค5% Resource Waste through precise recommendations
- โฅ95% System Uptime for reliable access
- โ Full-stack deployment with cloud infrastructure
- โ Real-time prediction capabilities
- โ Multi-parameter analysis (soil, weather, historical)
- โ Scalable architecture supporting multiple users
- โ Mobile-responsive design for field access
# Clone repository
git clone https://github.com/Abdul9010150809/cropyield-pro.git
cd cropyield-pro
# Install dependencies
pnpm install
cd backend && pnpm install && cd ..
# Environment setup
cd backend
cp .env.example .env
# Configure MongoDB, JWT secret, and API keys
# Start development servers
pnpm run dev:backend # Starts backend on port 5001
pnpm run dev:frontend # Starts frontend on port 3000# Build and deploy
pnpm run build
pnpm run deploy- Regional Language Support (Odia, Hindi, Telugu)
- Mobile App Development (React Native)
- IoT Sensor Integration for real-time field data
- Blockchain for supply chain transparency
- Satellite Imagery Analysis for large-scale monitoring
- Government Integration for policy support
- Marketplace for agricultural inputs
- Insurance Integration for crop insurance
- Export Market Analytics for international trade
Team Name: VISION IGNITERS
Team Leader: SHAIK.ABDUL SAMMED
- SHAIK.ABDUL SAMMED - Full-stack Development & AI Integration
- ANJALI PATTURU - Backend Development & Database
- SHAIK.SHAFI - Frontend Development & UI/UX
- MANIDEEP - ML Models & Data Analysis
- AKHILA REKAPOKALA - Testing & Documentation
- CHAITAGNA - Deployment & DevOps
Project Repository: https://github.com/Abdul9010150809/cropyield-pro
Issue Tracking: GitHub Issues
Documentation: Project Wiki
This project is developed for Smart India Hackathon 2023 under Problem Statement ID: 25044.
All rights reserved by the development team and submission guidelines.
Empowering Farmers โข Enhancing Productivity โข Building Sustainable Futures
Submitted for Smart India Hackathon 2025 - Problem Statement ID: 25044
Live Demo โข Report Issue โข View Code