The Crop Recommendation System was built using Logistic Regression which achieved an testing accuracy of 96.14 % and F1 Score of 96.10 %. The goal is to recommend the best crop to plant based on various soil and environmental conditions such as Nitrogen, Phosphorus, Potassium levels, Temperature, Humidity, pH value, and Rainfall.
The Crop Recommendation System uses machine learning algorithms to analyze soil and environmental data to recommend the most suitable crop to plant. This can help farmers make informed decisions and optimize their crop yields.
The dataset used in this project contains information about soil nutrients, temperature, humidity, pH value, and rainfall, along with the type of crop grown under those conditions.
- Nitrogen - the ratio of Nitrogen content in the soil
- Phosphorus - the ratio of Phosphorus content in the soil
- Potassium - the ratio of Potassium content in the soil
- Temperature - temperature in degrees Celsius
- Humidity - relative humidity in %
- pH_Value - pH value of the soil
- Rainfall - rainfall in mm
It was found that the dataset didn't contain any missing values.
To run the notebook, you will need the following Python libraries:
- pandas
- numpy
- matplotlib
- plotly
- seaborn
- scikit-learn
You can install the required libraries using the following command:
pip install pandas numpy matplotlib plotly seaborn scikit-learn
- Clone the repostory
git clone https://github.com/SleepyMiner/Crop-Recommendation.git
- Navigate to repository directory
cd Crop-Recommendation
- Open the Jupyter Notebook
juypter notebook CropRecommendation.ipynb
Contributions are welcome! If you have any suggestions or improvements, please open an issue or submit a pull request.