A Machine Learning based web application that predicts irrigation requirements for crops using soil, weather, crop, and field conditions.
https://irrigation-need-4.onrender.com
-
Predicts irrigation need as:
- Low
- Medium
- High
-
Uses inputs such as:
- Soil Type
- Soil Moisture
- Soil pH
- Organic Carbon
- Temperature
- Humidity
- Rainfall
- Sunlight Hours
- Crop Type
- Growth Stage
- Irrigation Type
- Water Source
- Region
-
Mobile responsive web interface
-
Flask-based deployment
-
Random Forest Machine Learning model
-
Preprocessing Pipeline using Scikit-learn
- Missing value handling using
SimpleImputer - Numerical feature scaling using
StandardScaler - Categorical encoding using
OneHotEncoder - Combined using
ColumnTransformer
- Random Forest Classifier
| Metric | Score |
|---|---|
| Training Accuracy | 93.83% |
| Testing Accuracy | 93.05% |
| F1 Score | 86.46% |
Model tuned using:
n_estimatorsmax_depth
- Python
- Flask
- Scikit-learn
- Pandas
- NumPy
- HTML
- CSS
- Render
Irrigation_Need/
│
├── app.py
├── requirements.txt
├── runtime.txt
├── best_model_pipeline.pkl
│
├── templates/
│ ├── home.html
│ └── index.html
│
├── Model_training.ipynb
├── EDA.ipynb
└── README.mdClone repository:
git clone https://github.com/vedddev/Irrigation_Need.git
cd Irrigation_NeedInstall dependencies:
pip install -r requirements.txtRun locally:
python app.pyOpen:
http://127.0.0.1:5000Deployed using Render.
Start Command:
gunicorn app:appPython Version:
3.11.9- Real-time weather API integration
- IoT sensor integration
- Smart irrigation scheduling
- Crop recommendation support
- Farmer advisory chatbot
Vedant Shelake
GitHub: https://github.com/vedddev
This project is for educational and research purposes.