Skip to content

Commit 0eb2d04

Browse files
authored
Update README.md
1 parent 5ebaa5e commit 0eb2d04

File tree

1 file changed

+84
-0
lines changed

1 file changed

+84
-0
lines changed

README.md

Lines changed: 84 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,85 @@
1+
# Crop Recommendation Project Using Machine Learning
2+
3+
## Overview
4+
This project builds a machine learning–powered platform to recommend optimal crops for a given location based on environmental and soil parameters. Leveraging Python, Streamlit, and Flask, the application enables farmers, agronomists, and agricultural professionals to make informed decisions, thereby maximizing crop yield and profitability. The tool analyzes factors like soil nutrients, temperature, humidity, pH, and rainfall for precise recommendations.
5+
6+
## Features
7+
- **User Input Panel:** Easily enter soil and climate data (N, P, K, temperature, humidity, pH, rainfall).
8+
- **Data Preprocessing:** Handles missing values, normalizes features, and transforms categorical variables as required.
9+
- **Multiple ML Algorithms:** Decision Trees, Random Forests, SVM, and Naive Bayes available for model building and deployment.
10+
- **Real-Time Crop Suggestions:** Instantly receive recommendations for the most suitable crops, tailored to input parameters.
11+
- **Web Application:** Streamlit-based intuitive dashboard paired with a Flask backend for seamless user experience.
12+
13+
## Dataset
14+
The project uses a public dataset containing:
15+
- Nitrogen (N) content
16+
- Phosphorous (P) content
17+
- Potassium (K) content
18+
- Temperature (°C)
19+
- Humidity (%)
20+
- pH value
21+
- Annual rainfall (mm)
22+
23+
## Installation
24+
25+
1. **Clone the Repository**
26+
git clone https://github.com/alisamad1/Crop_Recommendation_Project_Using_Machine_Learning.git
27+
cd Crop_Recommendation_Project_Using_Machine_Learning
28+
29+
30+
2. **Set Up Environment**
31+
python -m venv venv
32+
source venv/bin/activate # On Windows: venv\Scripts\activate
33+
34+
35+
3. **Install Required Libraries**
36+
pip install -r requirements.txt
37+
38+
4. **Launch the Streamlit App**
39+
streamlit run app.py
40+
41+
42+
## Technologies Used
43+
44+
- Python
45+
- Jupyter Notebook
46+
- Flask
47+
- Streamlit
48+
- Scikit-learn
49+
- Pandas, NumPy
50+
51+
## Project Structure
52+
Crop_Recommendation_Project_Using_Machine_Learning/
53+
├── dataset/
54+
│ └── crop_recommendation.csv
55+
├── notebook/
56+
│ └── Crop_Recommendation.ipynb
57+
├── app.py
58+
├── requirements.txt
59+
├── README.md
60+
└── model/
61+
└── trained_model.pkl
62+
63+
## How It Works
64+
65+
1. User enters environment and soil parameters in the Streamlit web UI.
66+
2. Application applies preprocessing and converts inputs to model-ready format.
67+
3. Trained machine learning model predicts the most suitable crop for the given inputs.
68+
4. Recommended crop (with supporting explanation) is displayed on the dashboard.
69+
70+
## Results
71+
72+
- Supports multiple crop varieties based on dynamic user inputs.
73+
- Achieves high prediction accuracy using ensemble ML techniques.
74+
- Deployable to local or cloud environments for real-world usability.
75+
76+
## Contributing
77+
78+
Contributions are welcome! Please fork the repository, create a pull request, and raise issues or suggestions via GitHub.
79+
80+
## License
81+
82+
This project is released under the MIT License.
83+
84+
---
185

0 commit comments

Comments
 (0)