The Crop Management System is a simple and helpful tool built using machine learning to assist farmers. It gives smart suggestions for which crops to grow, what fertilizers to use, predicts rainfall, and estimates crop yield. This helps farmers make better decisions for their land and resources.
- 🌱 Crop Prediction — Suggests the best crops based on your location and season.
- 🌾 Crop Recommendation — Recommends crops based on soil nutrients and weather.
- 💊 Fertilizer Recommendation — Recommends the right fertilizers for your crop.
- ☔ Rainfall Prediction — Predicts rainfall for a given region and year.
- 📈 Yield Prediction — Predicts how much crop yield you can expect.
- Python & Machine Learning (scikit-learn, pandas, numpy)
- PHP (for backend)
- HTML/CSS & Bootstrap 4 (for frontend)
- JavaScript
Follow these steps to set up the project on your computer:
-
Clone the Repository Open your terminal or command prompt and run:
git clone https://github.com/ab007shetty/crop-management-system.git
-
Navigate into the Project Folder
cd crop-management-system
-
Install Required Python Libraries Make sure Python is installed, then run:
pip install -r requirements.txt
-
Run Apache Web Server (for PHP Backend)
- Download and install XAMPP if you don’t have it.
- Open XAMPP Control Panel and start Apache.
- Move the project to your
htdocs
folder (usuallyC:\xampp\htdocs
on Windows).
The system uses different datasets for each feature:
- State, District, Season, Crop
- Soil nutrients (N, P, K), Temperature, Humidity, pH, Rainfall
- Soil and crop details like Temperature, Soil Type, Moisture, Nutrients
- Rainfall data by month, season, and year for various regions
- State, District, Year, Crop, Area, and Production data
-
Crop Prediction Enter:
State
,District
,Season
➡️ Get the most suitable crop to grow. -
Crop Recommendation Enter:
N
,P
,K
,Temperature
,Humidity
,pH
,Rainfall
➡️ Get crop recommendations for your farm. -
Fertilizer Recommendation Enter:
Temperature
,Humidity
,Soil Moisture
,Soil Type
,Crop Type
,Nitrogen
,Phosphorous
,Potassium
➡️ Get a fertilizer suggestion. -
Rainfall Prediction Enter:
Region (Subdivision)
andYear
➡️ See rainfall prediction. -
Yield Prediction Enter:
State
,District
,Year
,Crop
,Season
,Area
,Production
➡️ Predict expected yield.
- AB Shetty
- ChatGPT 3.5 Turbo (assisted with logic and code)
This project is licensed under the MIT License. You are free to use, modify, and share it.