Cotton Disease Detection and Cure Using CNN
Cotton Disease Detection and Cure Using CNN
https://doi.org/10.22214/ijraset.2023.50877
International Journal for Research in Applied Science & Engineering Technology (IJRASET)
ISSN: 2321-9653; IC Value: 45.98; SJ Impact Factor: 7.538
Volume 11 Issue IV Apr 2023- Available at www.ijraset.com
Abstract: Cotton is an important crop that plays a significant role in the global economy. However, cotton plants are vulnerable
to various diseases that can significantly affect crop yield and quality. Therefore, the early detection and diagnosis of cotton
diseases are crucial for ensuring efficient crop management and reducing economic losses. In this project, we propose a deep
learning-based approach for cotton disease prediction using convolutional neural networks (CNNs) and ResNet50.
The proposed system is designed to classify six different types of cotton diseases based on their visual symptoms. We collected a
large dataset of cotton plant images infected with different diseases, and we used this dataset to train and evaluate our CNN
model. The CNN model consists of multiple convolutional layers, followed by pooling layers and fully connected layers.
We used transfer learning to fine-tune a pre-trained CNN model for our specific classification task. The proposed system
achieved an overall accuracy of 97.66% on the test dataset, demonstrating its effectiveness in predicting cotton diseases.
The proposed system has the potential to be used as a reliable tool for early detection and diagnosis of cotton diseases, thereby
improving crop management practices and reducing economic losses.
Keywords: Cotton Disease, Disease Detection, CNN , Classification, Diseases
I. INTRODUCTION
Cotton is an important crop that is cultivated worldwide and plays a significant role in the global economy. However, cotton plants
are vulnerable to various diseases that can significantly affect crop yield and quality. Therefore, the early detection and accurate
diagnosis of cotton diseases are crucial for ensuring efficient crop management and reducing economic losses.
The motivation behind this project is the need for an accurate and reliable tool for the early detection and diagnosis of cotton
diseases. Currently, cotton disease diagnosis relies on visual inspection by experts, which is time-consuming, labor-intensive, and
subject to human error. In recent years, deep learning-based approaches have shown promising results in computer vision tasks,
including image classification. The use of CNNs for cotton disease prediction can offer a more accurate and efficient alternative to
traditional methods. By developing a deep learning-based approach for cotton disease prediction, this approach aims to provide a
reliable tool for the early detection and diagnosis of cotton diseases, which can significantly improve crop management practices
and reduce economic losses. Additionally, the self-generated dataset can be used for further research and development in the field of
computer vision and agricultural technology. Overall, the motivation behind this system is to contribute to the development of
technology that can enhance the efficiency and sustainability of cotton cultivation practices.
©IJRASET: All Rights are Reserved | SJ Impact Factor 7.538 | ISRA Journal Impact Factor 7.894 | 3385
International Journal for Research in Applied Science & Engineering Technology (IJRASET)
ISSN: 2321-9653; IC Value: 45.98; SJ Impact Factor: 7.538
Volume 11 Issue IV Apr 2023- Available at www.ijraset.com
In another study, Zhang et al. [4] proposed a transfer learning-based approach for cotton disease detection using a pre-trained CNN
model. The authors fine-tuned the pre-trained model on a dataset of cotton leaf images and achieved an accuracy of 97.9%.
These studies demonstrate the potential of deep learning-based methods for accurately and efficiently detecting and diagnosing
cotton leaf diseases. By training a CNN model on a large dataset of cotton leaf images, it is possible to develop a highly accurate
system for identifying different types of cotton leaf diseases.
B. Hardware
1) Processor: Minimum 1 GHz; Recommended 2GHz or more
2) Ethernet connection (LAN) OR a wireless adapter (Wi-Fi)
3) Hard Drive: Minimum 32 GB; Recommended 64 GB or more
4) Memory (RAM): Minimum 1 GB; Recommended 4 GB or above
C. Software
1) Python
2) Google Colab
3) VS Code
4) FastAPI
5) Amazon Web Services
IV. METHODOLOGY
We are building a neural network model using deep learning for image classification. This model will be deployed on cloud for live
detection of cotton leaf disease.
©IJRASET: All Rights are Reserved | SJ Impact Factor 7.538 | ISRA Journal Impact Factor 7.894 | 3386
International Journal for Research in Applied Science & Engineering Technology (IJRASET)
ISSN: 2321-9653; IC Value: 45.98; SJ Impact Factor: 7.538
Volume 11 Issue IV Apr 2023- Available at www.ijraset.com
From above system architecture , the user will initially access the live website deployed on AWS Cloud Platform.Then the user will
upload the image of cotton plant leaf on the website. After that the model will classify if the leaf is healthy or unhealthy and if
unhealthy will show the type of disease the leaf has.It also advices precautions and measures to be taken.
V. TECHNOLOGIES USED
A. Google Colab
Google Colaboratory, also known as Google Colab, is a cloud-based platform for running and developing machine learning and data
analysis models. It allows users to write and run Python code directly in a web browser using Jupyter notebooks, which are
interactive documents that can contain code, text, and media.Overall, Google Colab is a powerful and convenient platform for
developing and experimenting with machine learning models, especially for those who may not have access to specialized hardware
or computing resources.
B. Tensorflow
TensorFlow is an open-source machine learning library developed by Google. It was first released in 2015 and has since become
one of the most popular libraries for building and training machine learning models.Overall, TensorFlow is a powerful and flexible
machine learning library that is widely used in both research and industry. Its ease of use, flexibility, and wide range of features
make it a popular choice for building and training machine learning models for a wide range of applications.
C. CNN
A Convolutional Neural Network (CNN) is a type of neural network that is commonly used for image and video recognition. It uses
convolutional layers to automatically learn and extract important features from raw input data. These features are then downsampled
using pooling layers before being passed through fully connected layers for the final classification or regression task. CNNs have
become essential in many fields, including computer vision, natural language processing, and audio processing, due to their ability
to learn complex and sophisticated features. They are widely used for applications such as image classification, object detection,
speech recognition, and language translation.
D. Python
Python is a high-level, interpreted programming language that is easy to learn and widely used in many fields, including data
science, web development, artificial intelligence, and automation. It emphasizes readability and simplicity, with a clear syntax and
extensive libraries that make it powerful and versatile. It is an open-source language that supports object-oriented, procedural, and
functional programming paradigms, making it suitable for a wide range of applications.
E. FastAPI
FastAPI is a modern, fast, and lightweight web framework for building APIs with Python. It is based on the latest features of Python
3.7+ and offers excellent performance, thanks to its asynchronous and type-annotated code. FastAPI also includes built-in support
for OpenAPI and JSON Schema, making it easy to document and test APIs. It is suitable for building a wide range of APIs, from
small microservices to large-scale applications, and is gaining popularity in the Python community due to its ease of use and
performance.
©IJRASET: All Rights are Reserved | SJ Impact Factor 7.538 | ISRA Journal Impact Factor 7.894 | 3387
International Journal for Research in Applied Science & Engineering Technology (IJRASET)
ISSN: 2321-9653; IC Value: 45.98; SJ Impact Factor: 7.538
Volume 11 Issue IV Apr 2023- Available at www.ijraset.com
The high accuracy achieved by our system is a promising result in the field of automated crop disease detection. The accuracy of our
system is comparable to the accuracy reported in other studies using similar techniques. It is worth noting that the accuracy of our
system may vary when applied to a different dataset, particularly if the dataset is not well-balanced or if it contains images of lower
quality.
The use of deep learning-based systems for crop disease detection is a significant advancement over traditional methods that rely on
visual inspection by experts. The ability of deep learning systems to process a large amount of data and learn complex patterns in
the images makes them an ideal tool for detecting crop diseases accurately and efficiently.
However, there are still some challenges that need to be addressed in the field of automated crop disease detection. One of the
challenges is the need for more extensive and diverse datasets to train and test these systems. Another challenge is the potential for
misclassification of diseases due to the similarity in symptoms between different diseases or the presence of multiple diseases in the
same plant.
In conclusion, the high accuracy achieved by our system in predicting six different types of cotton leaf disease using CNN is a
promising result that demonstrates the potential of deep learning-based systems for automated crop disease detection. Further
research is needed to address the challenges in this field and to develop more robust and reliable systems for crop disease detection.
A. Sample Output
©IJRASET: All Rights are Reserved | SJ Impact Factor 7.538 | ISRA Journal Impact Factor 7.894 | 3388
International Journal for Research in Applied Science & Engineering Technology (IJRASET)
ISSN: 2321-9653; IC Value: 45.98; SJ Impact Factor: 7.538
Volume 11 Issue IV Apr 2023- Available at www.ijraset.com
REFERENCES
[1] Jingwen, Y., Ling, L., & Qianfeng, W. (2018). Automatic recognition of cotton leaf diseases using deep convolutional neural networks. Computers and
Electronics in Agriculture, 151, 468-476.
[2] Shrivastava, A., Sharma, A., & Dhir, S. K. (2018). Detection and classification of four major cotton leaf diseases using deep convolutional neural network.
Neural Computing and Applications, 30(11), 3407-3418.
[3] Zhou, L., Chen, W., Yang, X., Wu, Q., Tang, W., & Zhang, Q. (2020). Deep learning-based system for the identification of six cotton leaf diseases. Sensors,
20(10), 2869.
[4] Zhang, X., Zhang, C., Tang, Y., & Wang, X. (2020). Transfer learning based on improved feature extraction for cotton disease recognition. Plant Methods,
16(1), 33.
©IJRASET: All Rights are Reserved | SJ Impact Factor 7.538 | ISRA Journal Impact Factor 7.894 | 3389