- Farmers face challenges in choosing the right crop based on soil characteristics, leading to reduced productivity and soil degradation.
- Lack of awareness about soil requirements, organic fertilizers, and standard fertilizers contributes to imbalanced fertilization and nutrient management issues.
- Annual crop losses of Rs. 50,000 crore occur due to pests in India.
- Implement precision agriculture to guide farmers in crop selection and increase productivity.
- Propose an ensemble model using SVM, Random Forest, Naive Bayes, and kNN for accurate crop recommendation.
- Recommend fertilizers based on N, P, K values and crop types.
- Identify pests using a DL model and recommend pesticides adhering to ISO standards.
- Acquire Dataset
- Input Values
- Train ML Model & Create .pkl file
- Ensemble Technique with Majority Voting
- SVM
- Random Forest
- Naive Bayes
- kNN
- Ensemble Technique with Majority Voting
- Crop Recommendation
- Load .pkl model file for crop recommendation.
- Acquire Dataset
- NPK values for different crops
- Sources: The Fertilizer Association of India, Indian Institute of Water Management, etc.
- Input Values
- Determine Difference between Desired & Actual
- High
- Low
- Optimal
- Dictionary-based Suggestions from Verified Sources.
- Acquire Data
- Image Scraping from Google Images
- Provide Pest Labels
- Data Cleaning & Augmentation
- Remove Unnecessary Content
- Augment Dataset for Variability
- DL Model Creation
- Pest Detection & Pesticide Recommendation
The solution aims to enhance farmer productivity, reduce soil degradation, and provide informed advice on fertilizers and crop selection. It addresses the critical issue of pest control, benefitting both farmers and the environment.
- Download PyCharm.
- Create a new environment using the command:
conda create -n env_name python==3.7.0
. - Activate the environment using the command:
conda activate env_name
. - Install requirements by navigating to the project folder and typing:
pip install -r requirements.txt
. - Run
app.py
using the command:python app.py
.