A Machine Learning-based Crop Recommendation System built using Python, Django, and Scikit-learn to help farmers select the most suitable crop based on soil and environmental conditions.
The Crop Prediction System predicts the best crop to cultivate based on input parameters such as:
- Nitrogen (N)
- Phosphorus (P)
- Potassium (K)
- Temperature
- Humidity
- pH value
- Rainfall
The system uses a trained Machine Learning model integrated into a Django web application to provide real-time crop recommendations.
- Data Collection (Crop_recommendation.csv)
- Data Preprocessing
- Feature Selection
- Model Training
- Model Evaluation
- Model Integration with Django
- Web-based Prediction Interface
CROP-PREDICTION-DJANGO/ │ ├── dataset/ │ └── Crop_recommendation.csv │ ├── templates/ │ ├── index.html │ ├── analyze.html │ └── About_us.html │ ├── textutils/ │ ├── views.py │ ├── urls.py │ ├── settings.py │ └── models/ │ ├── manage.py └── README.md
- Python
- Django
- Pandas
- NumPy
- Scikit-learn
- HTML/CSS
- SQLite
- 🌱 Predict best crop based on soil nutrients
- 📊 Data-driven recommendations
- 🖥️ Web-based user interface
- 📈 Machine Learning model integration
- 🔄 Real-time prediction system
git clone https://github.com/hsvarun-dev/crop-prediction-system.git
cd crop-prediction-system
python -m venv venv
venv\Scripts\activate
pip install -r requirements.txt
python manage.py runserver
http://127.0.0.1:8000/
H S Varun
Data Science & Machine Learning Enthusiast
📍 Mysore, India