Categories: Blog

Using Deep Learning for Image-Based Plant Disease Detection

Introduction

Disease detection in plants plays a very important role in agriculture. Crop diseases serve as a major threat to the food supply. Identifying disease by just looking at images of plants can lead to quicker interventions that can help farmers a lot. We will use neural networks for plant disease recognition in the context of image classification.

Dataset

We can use any public dataset available online for this project like https://www.kaggle.com/emmarex/plantdisease
https://www.kaggle.com/vipoooool/new-plant-diseases-dataset

Next thing is to import the necessary packages

  1. Numpy: A library for the Python programming language, adding support for large, multi-dimensional arrays and matrices, along with a large collection of high-level mathematical functions to operate on these arrays. (Source: Wikipedia )
  2. Sklearn: A free software machine learning library for the Python programming language. It features various classification, regression and clustering algorithms including support vector machines, random forests, gradient boosting, k-means and DBSCAN, and is designed to interoperate with the Python numerical and scientific libraries NumPy and SciPy. (Source: Wikipedia )
  3. Keras: Keras is an open-source neural network library written in Python. It is capable of running on top of TensorFlow, Microsoft Cognitive Toolkit, or Theano. Designed to enable fast experimentation with deep neural networks, it focuses on being user-friendly, modular, and extensible. (Source: Wikipedia
  4. Matplotlib: A plotting library for the Python programming language and its numerical mathematics extension.

Network Architecture

  1. We split the data-set into three sets — train, validation and test sets.
  2. We tried with pre-trained models like Inception v3. The last layer is used for the classification with softmax as the activation function.
  3. The loss function used is binary cross-entropy and trained the model for 50 epochs.
  4. For this architecture, we’ve used 30 per cent dropouts to reduce overfitting in between the layers and batch normalization to reduce internal covariate shift.

(source – https://towardsdatascience.com/plant-disease-detection-using-transfer-learning-e6995642a71e )

Model From scratch

(Plant-ai)

Wrapping Up

If you want to know more about our skills and our ideas in Deep/Machine Learning, then why wait? Get in touch with us. Reach us at info@letsnurture.com. We would be glad to stroll with you.

Lets Nurture

Share
Published by
Lets Nurture

Recent Posts

Top 8 Gamification Strategies for Educational Apps in 2025

Gamification is a proven strategy that has transformed industries by leveraging game mechanics to engage…

1 week ago

How Augmented Reality (AR) is Redefining STEM Education in 2025: A Comprehensive Guide

In 2025, Augmented Reality (AR) is no longer just a tool for entertainment—it's a transformative…

2 weeks ago

The Future of Learning Management Systems ( LMS ): Top 7 Trends for 2025

The educational landscape is continuously evolving, driven by the advancements in technology. As we look…

2 weeks ago

Top 5 Technologies Transforming Students’ Learning Experience in 2025

The year 2025 is shaping up to be a pivotal one in the education sector.…

2 weeks ago

Q/A System — Deep learning (1/2)

Deep Learning is a subfield of machine learning concerned with algorithms inspired by the structure…

4 weeks ago

Q/A System — Deep learning(2/2)

How LSTM works? I think it’s unfair to say that neural network has no memory…

4 weeks ago