Skip to content

Luissalazarsalinas/Corn-Leaf-Diseases-Detection

Repository files navigation

Corn Leaf Diseases Detection

Python streamlit TensorFlow Keras

An end-to-end Deep Learning project to detect diseases that attack corn leaves

Problem Statement

The plant diseases compose a threat to global food security and smallholder farmers whose livelihoods depend mainly on agriculture and healthy crops. In developing countries, smallholder farmers produce more than 80% of the agricultural production, and reports indicate that more than fifty percent loss in crop due to pests and diseases. The world population expected to grow to more than 9.7 billion by 2050, making food security a major concern in the upcoming years. Hence, rapid and accurate methods of indentying plant diseases are needed to do the appropiate measures.

This Streamlit App utilizes a Deep Learning model to detect diseases that attact the corn leaves, based in digital images.

The App can be viewed through this Link

Data Preparation

The plant-Village dataset contains 39 different classes of plant leaf(healthy and unhealthy) and background images(61,486 in total)(Geetharamani & Pandian,2019). In this project, we use the version without augmentation and just used the corn dataset, which contained four different classes (Blight, Common rust, Gray Leaf Spot, and Healthy).

Data preprocessing steps:

  • Data normalization[0,1]
  • Data augmentation using saveral techniques such as:
    • image flipping
    • zoom
    • shear
    • width and height shift
    • image rotation
    • Image brightness range
    • Featurewise center
    • Featurewise std normalization

Dataset Link

Modelling

In this project I tasted the folling Convolutional Neural Network Architecture by transfer learning method:

  • MobileNetV2 (Pretrained with imginet images)

Fine Tune model Performnace: 93% (accuracy score metric)

Deploy

The Streamlit app was deployed on Streamlit Cloud