Skip to content

Latest commit

 

History

History
41 lines (25 loc) · 1.87 KB

README.md

File metadata and controls

41 lines (25 loc) · 1.87 KB

Crop Recommendation System

Overview

The Crop Recommendation System is a machine learning-based application designed to assist farmers in making informed decisions about which crops to plant. By analyzing critical factors such as soil nutrients (Nitrogen, Phosphorus, Potassium), temperature, humidity, pH, and rainfall, the system predicts the optimal crop for a given set of environmental conditions. This project aims to enhance agricultural productivity, promote sustainable farming, and empower farmers with accessible technology.

Features

  1. Accurate Crop Predictions: Tried different models and finally utilized a Random Forest classifier for precise crop recommendations based on environmental and soil data.
  2. User-Friendly Web Interface: Built with Flask, the application provides an easy-to-use platform for farmers to input data and receive real-time recommendations.
  3. Data-Driven Insights: Helps farmers make informed decisions, improving yield and optimizing resource use.
  4. Accessible Anywhere: Lightweight, web-based application designed to work on various devices.

Technology Stack

  1. Programming Language: Python
  2. Frameworks: Flask (for the web application)
  3. Frontend: HTML, Bootstrap CSS
  4. Libraries: NumPy, Pandas, Scikit-learn, Matplotlib

How to Run

Clone this repository:

  1. git clone https://github.com/Apoorva-011/Crop-Prediction.git
  2. cd Crop-Recommendation-System
  3. python app.py
  4. Open your browser and go to http://127.0.0.1:5000.

Dataset Details

The dataset used in this project includes features: Soil Nutrients: Nitrogen (N), Phosphorus (P), and Potassium (K) levels. Environmental Conditions: Temperature, Humidity, pH, and Rainfall. The data was sourced from Kaggle and curated for model training and evaluation.

image