Ensuring food security for billions necessitates minimizing crop damage through timely disease detection. Effective disease detection methods boost crop yield and reduce unnecessary pesticide use, which is crucial since proper disease identification is often lacking. Alongside developing improved crop varieties, disease detection is essential for achieving food security. Traditional methods involve manual examination by farmers or experts, which are time-consuming, costly, and impractical for millions of small and medium-sized farms globally.
This project aims to develop a plant disease recognition model utilizing deep convolutional networks for leaf image classification. The model is designed to accurately identify 38 different types of plant diseases affecting 14 distinct plant species, while also proficiently distinguishing plant leaves from their surroundings.
This process for building a model which can detect the disease assocaited with the leaf image. The key points to be followed are:
-
Data gathering
The dataset used was the "New Plant Diseases Dataset", available for download here. It comprises images of various healthy and unhealthy crop leaves.
-
Model building
- I have used pytorch for building the model.
- I used three models:-
- The CNN model architecture consists of CNN Layer, Max Pooling, Flatten a Linear Layers.
- Using Transfer learning VGG16 Architecture.
- Using Transfer learning resnet50 Architecture.
- AlexNet
- One Vs All Techniques
- InceptionV3 with TFRecords.
-
Training
The model was trained by using variants of above layers mentioned in model building and by varying hyperparameters. The best model was able to achieve ~99% of test accuracy.
-
Testing
The model was tested on total 17572 images of 38 classes.
The model used for prediction on sample images. It can be seen below: -
Various Model Architecture tried along with Learning Rate and Optimizer and various accuracy obtained with different models.
- The detail list of plants and diseases can be seen in List
- Implementing Image Localisation to find the excat position of the leaf affected .
- Building Recommender system for recommendation of proper presticides and control method for the disease.
- Implementing the appropriate management strategies like fungicide applications and pesticide applications could lead to early information on crop health and disease detection.This could facilitate the control of diseases and improve productivity.
Flask
: Code for Flask Server and deploymentTestImages
: Sample image for model testingSrc
: All The source code for building modelsModels
: All the Pretrained Models of Pytorch
This project is Licensed under MIT
Give a ⭐ if you like this website!