Inspiration

During our work on agriculture-related challenges, we recognised that a major cause of the decline in agricultural yield is the prevalence of plant infections. For instance, in the case of cucumber plants, some infections such as leaf infections can spread in a matter of days, and because farmers only identify such issues when visual symptoms of the infections are present, the plants are often infected for a long time before the farmers take action. There is also the issue of having the knowledge and experience to identify plant infections, as well as the impracticality of having to constantly monitor the plants.

This got us thinking on the potential of using some sort of imaging technology to identify infections in the plants before visible symptoms manifested. In addition, because the task of image recognition in computer science is handled successfully by deep learning, we therefore chose to implement a system that would evaluate images of leaves of cucumber plants and determine the types of infections that those leaves could potentially have. We aimed at developing a and user friendly system that would assist farmers in more efficient monitoring of the health of their crops.

What it does

The primary goal of our project is to analyze diseases in cucumber leaves by creating deep learning models to identify which disease is affecting a certain picture of a cucumber leaf. The provided images will be analyzed by the system, and a leaf will be classified as healthy or infested with disease. The system will not involve human participation. The model will analyze and learn about diseases through color changes, patches, and textural changes.

This system will assist in the detection of diseases in their primary stages in order to prevent the spread of the disease to other leaves. This will ultimately result in less wasted crops and make monitoring the leaves a whole lot less complicated.

How we built it

We first started the project utilizing a dataset containing mages of both healthy and diseased cucumber leaves. Preprocessing involved resizing and normalizing images so that they fit the requirements of the respective models. For the purposes of improving the models’ performance and limiting the models’ biases, techniques such as rotation and flipping were used.

In using CNN and hybrid models for deep learning-based image classification, significant visual features from the images of the leaves were captured. We attempted to improve the predictive accuracy of the models by conducting experimentation, and as a result, we were able to identify a set of configuration parameters which produced optimum performance. As one of the requirements of a deep learning environment, the models were partitioned into training and validation sets, and in turn, the unseen sets were used to assess the performance of the models.

With the various deep learning libraries on Jupyter Note, all of the components from pre-processing through to prediction were written in Python; and all of the components from training to testing were written in Python as well.

Challenges we ran into

One of the main challenges was handling variations in image quality and lighting conditions within the dataset. Some diseases showed very similar visual symptoms, which made classification difficult during early training stages.We also faced issues related to overfitting and required multiple experiments with preprocessing and model tuning to improve generalization. Training time and computational limitations were additional challenges during experimentation.

Accomplishments that we're proud of

We successfully developed a working deep learning system capable of identifying cucumber leaf diseases from image inputs. Building a complete pipeline - from dataset preparation to final prediction-was a major achievement for us .

What we learned

Through this project, we gained practical experience in image processing, implementing deep learning algorithms, and evaluating model performance. We understood how model selection and data quality directly affect prediction results. The project also helped us improve problem-solving skills and understand real-world applications of AI in agriculture.

What's next for Deep Learning-Based Cucumber Leaf Disease Detection

As a future work, we plan to deploy the model as simple as web application so users can upload leaf images for real-time prediction. Adding disease prevention suggestions is another enhancement we plan to explore.

Built With

  • algorithms
  • artificialintelligence
  • deeplearning
  • frontend
  • hybridmodels
  • keras
  • python
  • tensorflow
  • vscode
Share this project:

Updates