Skip to content

hsvarun-dev/crop-prediction-system

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Welcome to Crop-Prediction-System

🌾 Crop Prediction System

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.


🚀 Overview

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.


🧠 Machine Learning Workflow

  1. Data Collection (Crop_recommendation.csv)
  2. Data Preprocessing
  3. Feature Selection
  4. Model Training
  5. Model Evaluation
  6. Model Integration with Django
  7. Web-based Prediction Interface

🏗️ Project Structure

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


⚙️ Tech Stack

  • Python
  • Django
  • Pandas
  • NumPy
  • Scikit-learn
  • HTML/CSS
  • SQLite

🔍 Features

  • 🌱 Predict best crop based on soil nutrients
  • 📊 Data-driven recommendations
  • 🖥️ Web-based user interface
  • 📈 Machine Learning model integration
  • 🔄 Real-time prediction system

🖥️ Installation Guide

1️⃣ Clone the Repository

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

About

Machine Learning based Crop Recommendation System built with Django and Python.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors