/leaf-disease-detection

Using VGG16 net with image processing techniques to detect diseases on the leaf of a plant

Primary LanguageJavaScriptGNU General Public License v3.0GPL-3.0

Leaf Disease Detection

Agricultural crop disease classification has been performed with the images from PlantVillage dataset using pre trained deep learning architecture namely VGG16 net.

The model was implemented with callbacks - Early Stopping, Reduced Learning Rate On Plateau and Model checkpoints. The classification accuracy using 70295 images was approximately 95% for VGG16 net .

The performance of the models has been evaluated by modifying the number of images, setting various batch sizes and varying the weight and bias learning rate. The number of images significantly affected the performance of the model.


With the crop diseases being correctly identified minimum 95% of the time, we can aspire to help our farmers detect crop infections at an early stage. This would aid them to plan farming techniques that are more effective than the previous ones they were following.



Architecture Diagram of the Model



User Interface



To run the code

  • OPEN TERMINAL AND
  • STEP 1: python3 PRED_API.py
  • STEP 2: cd aiproject
  • STEP 3: npm i
  • STEP 4: npm start, this will start the react based front end
  • The saved weights are store best-model.h5
  • Model.ipynb has the model