An AI-powered predictive soil analysis and smart fertilizer recommendation system built using Machine Learning, Flask, and Scikit-learn.
SmartSoilAI helps analyze soil parameters, predict soil health conditions, and recommend suitable fertilizers for improving agricultural productivity and crop sustainability.
- 🌾 Soil health prediction using Machine Learning
- 🧪 Smart fertilizer recommendation system
- 📊 Interactive dashboard interface
- 🗂 Soil records database management
- 🤖 Multiple ML model implementation
- 📈 Prediction accuracy comparison
- 🌍 Agriculture-focused AI solution
- HTML5
- CSS3
- JavaScript
- Bootstrap
- Python
- Flask
- Scikit-learn
- Pandas
- NumPy
- SQLite
- Random Forest Classifier
- Bagging Classifier
- Decision Tree Classifier
SmartSoilAI/
│
├── media/
├── user_management/
├── templates/
├── static/
│
├── data_cleaning.ipynb
├── feature_engineering.ipynb
├── random_forest_training.ipynb
├── bagging_model_training.ipynb
│
├── soil_health.csv
├── soil.pkl
├── app.py
├── requirements.txt
└── README.md





git clone https://github.com/iblamesrix/SmartSoilAI.gitcd SmartSoilAIpython -m venv venvvenv\Scripts\activatesource venv/bin/activatepip install -r requirements.txtpython app.pyThe system analyzes multiple soil parameters including:
- Soil pH
- Organic Carbon
- Electrical Conductivity
- Soil Moisture
- Temperature
- Humidity
- Bulk Density
- Biochar Application Rate
| Model | Accuracy |
|---|---|
| Random Forest | 94% |
| Bagging Classifier | 91% |
| Decision Tree | 88% |
- Smart farming solutions
- Precision agriculture
- Soil monitoring systems
- Fertilizer optimization
- Agricultural research
- Deep Learning integration
- Real-time IoT sensor support
- Satellite soil analysis
- Mobile application
- Cloud deployment
- Weather API integration
Machine Learning Enthusiast | AI Developer | Full Stack python devloper
This project is licensed under the MIT License.