Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

9 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

🌾 Agriculture Crop Recommendation System Using Machine Learning

This project predicts the most suitable crop to cultivate based on environmental conditions such as Nitrogen, Phosphorus, Potassium (NPK), temperature, humidity, pH, and rainfall using machine learning models.

πŸ” Problem Statement

Farmers often struggle to choose the right crop for cultivation based on soil health and climatic conditions. This system helps recommend the best-suited crop using data-driven decision-making.


πŸš€ Features

  • User-friendly UI using Streamlit
  • Trained on a reliable agriculture dataset
  • Supports real-time prediction
  • Interactive and lightweight deployment
  • Clean and modular Python code

πŸ“Š Tech Stack

  • Python
  • Pandas, NumPy, Matplotlib, Seaborn
  • Scikit-learn (for training ML models)
  • Streamlit (for building the web interface)

πŸ“ Dataset

The dataset used includes the following features:

  • N: Nitrogen content in soil
  • P: Phosphorus content in soil
  • K: Potassium content in soil
  • Temperature (Β°C)
  • Humidity (%)
  • pH
  • Rainfall (mm)

You can download the dataset from Kaggle - Crop Recommendation Dataset or use your custom dataset.


βš™οΈ How It Works

  1. Data preprocessing: cleaned and normalized.
  2. Model training: used algorithms like Random Forest, Decision Tree, and KNN.
  3. Model selection: best accuracy model chosen.
  4. Deployment: integrated into Streamlit for simple UI access.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors