π± Smart Crop Advisory System
A Machine Learning based web application that helps farmers choose the most suitable crop based on soil and environmental conditions. The system predicts crops using parameters like nitrogen, phosphorus, potassium, temperature, humidity, pH, and rainfall.
π Features
- πΎ Crop recommendation based on soil nutrients and weather conditions
- π€ Machine Learning prediction model
- π User-friendly interface for input and results
- π¦ Uses environmental factors like rainfall, humidity, and temperature
- β‘ Fast and accurate crop prediction
- π» Simple and responsive web interface
π οΈ Technologies Used
Frontend
Backend
Machine Learning
- Scikit-learn
- Pandas
- NumPy
π Project Structure
Smart-crop-advisory/
βββ static/ # CSS, JS, images
βββ templates/ # HTML templates
βββ model/ # Trained ML model
βββ app.py # Main Flask application
βββ requirements.txt # Dependencies
βββ dataset.csv # Crop dataset
βββ README.md
βοΈ Installation
1οΈβ£ Clone the Repository
git clone https://github.com/divyansh678/Smart-crop-advisory.git
2οΈβ£ Navigate to Project Folder
cd Smart-crop-advisory
3οΈβ£ Install Dependencies
pip install -r requirements.txt
4οΈβ£ Run the Application
python app.py
5οΈβ£ Open in Browser
http://127.0.0.1:5000
π Input Parameters
The model predicts crops using:
- Nitrogen (N)
- Phosphorus (P)
- Potassium (K)
- Temperature
- Humidity
- pH Value
- Rainfall
π€ Machine Learning Model
The project uses a supervised Machine Learning algorithm trained on agricultural datasets to recommend the best crop for farming conditions.
π― Future Improvements
- π Deploy on cloud platform
- π± Mobile responsive UI
- π Multi-language support
- π Weather API integration
- π§ Advanced AI-based recommendations
π¨βπ» Author
Developed by Divyansh
GitHub:
https://github.com/divyansh678
β Contributing
Contributions are welcome!
Feel free to fork the repository and submit pull requests.
π License
This project is open-source and available under the MIT License.