This project aims to revolutionize agriculture by integrating machine learning technology to provide smart crop recommendations and assist in plant disease identification. By leveraging data analytics and deep learning techniques, farmers can make informed decisions for optimal crop selection and management.
- Smart Crop Recommendation : Utilizes machine learning algorithms to recommend suitable crops based on factors like soil nutrients, climate conditions, and historical data.
- Plant Disease Identification : Employs convolutional neural networks (CNNs) to detect and classify plant diseases accurately from uploaded images, enabling timely interventions.
- User-Friendly Interface : Offers an intuitive interface for farmers to input relevant data and receive personalized crop recommendations and disease diagnosis.
- Today's Weather Forecast : Provides real-time weather insights on temperature, humidity, and more, enabling farmers to plan their farming activities with precision.
- Explore Crop Planning : Guides farmers in planning crop planting schedules for optimal productivity based on soil quality, weather, and other essential factors.
This dataset consists of 2200 rows in total. Each row has 8 columns representing Nitrogen, Phosphorous, Potassium, Temperature, Humidity, PH, Rainfall and Label NPK(Nitrogen, Phosphorous and Potassium) values represent the NPK values in the soil. Temperature, humidity and rainfall are the average values of the sorroundings environment respectively. PH is the PH value present in the soil. The Label column tells us the type of crop that's best suited to grow based on these conditions. Label is the value we will be predicting
The Plant Disease Image Dataset utilized for crop disease identification comprises a secondary dataset featuring 70,295 plant snapshots exhibiting a spectrum of illnesses. Standardized to a resolution of 128x128 pixels, this dataset occupies a storage space of five gigabytes. Within this dataset, there are 38 distinct classes, encompassing 14 different plant types and 26 identifiable illnesses. Serving as the primary training data for all machine learning algorithms referenced in the study, the dataset's algorithm exhibiting the highest accuracy was chosen for further evaluation and application. Data preprocessing techniques, including normalization, feature scaling, and handling of missing values, were applied to ensure data consistency and cleanliness.
For the Crop Recommendation Model, seven classification algorithms were utilized to predict suitable crop recommendations. These algorithms include:
- Decision Tree
- Gaussian Naive Bayes
- Support Vector Machine (SVM)
- Logistic Regression
- Random Forest (achieved the best accuracy)
- XGBoost
- KNN
Each algorithm was trained on a dataset comprising various factors such as soil nutrients, climate conditions, and historical data to provide accurate crop recommendations to farmers.
For the Plant Disease Identification Model, a Convolutional Neural Network (CNN) architecture was employed. This CNN model was specifically trained for crop disease identification. Leveraging deep learning techniques, the CNN analyzes images of plant leaves to detect and classify diseases accurately. This model aids farmers in early disease detection and management, contributing to improved crop health and yield.
These two models are integrated into the Smart Crop Recommendation System with Plant Disease Identification. This system provides farmers with comprehensive support, offering both crop recommendations based on various factors and precise identification of crop diseases through image analysis. By combining these models, the system enables farmers to make informed decisions, optimize crop selection, and effectively manage plant diseases for sustainable agriculture and enhanced productivity.
System Architecture |
---|
The results of the Smart Crop Recommendation System with Plant Disease Identification showcase the efficacy of the implemented models:
- Seven classification algorithms were evaluated for crop recommendation tasks.
- The accuracy of each algorithm was assessed, with the Random Forest algorithm achieving the highest accuracy of 99.54%.
- Table 1 below illustrates the accuracy achieved by each algorithm:
Table 1: Accuracy vs Algorithms
Algorithm | Accuracy |
---|---|
Decision Tree | 90.0 |
Gaussian Naive Bayes | 99.09 |
Support Vector Machine (SVM) | 10.68 |
Logistic Regression | 95.23 |
Random Forest | 99.55 |
XGBoost | 99.09 |
KNN | 97.5 |
Accuracy Comparison Graph of all models |
---|
Accuracy vs Crop Graphs |
---|
- The Convolutional Neural Network (CNN) architecture was trained for crop disease identification.
- The CNN achieved significant accuracy in accurately detecting and classifying various plant diseases from leaf images.
Example of Diseased image |
---|
Training and validation (accuracy and loss) CNN |
---|
These results demonstrate the effectiveness of the Smart Crop Recommendation System with Plant Disease Identification in assisting farmers with informed crop selection and disease management, thereby contributing to improved agricultural practices and crop yields.
- Ravikant Diwakar
- Amit Kumar
- Gaurav Kumar
- Jaya Vashistha
- Aditya Chaudhary
If you have any questions or feedback, feel free to reach out to us at [email protected].