Plant Leaf Disease Classifier Using CNN
Plant Leaf Disease Classifier Using CNN
USING CNN
1. User Registration: Users must be able to create an 1. Performance: Quick responses to user
account by providing a unique username, password, queries,
and email address. 2. Usability:User friendly interface to
2. User Authentication: Users must be able to log in navigate, even for users with limited
using their registered credentials. technical knowledge.
3. Image Upload: Users must be able to upload 3. Accuracy: High accuracy in disease
images of plant leaves for disease diagnosis. prediction, aiming for an accuracy rate of at
4. Disease Prediction and Remedy: The system must least 90%.
analyze the uploaded images and predict the plant
disease using a trained model.
SYSTEM ANALYSIS
Frontend Tools
HTML,CSS,JS
Fig:Component Diagram
ALGORITHM DESCRIPTION
Convolutional Neural Network(CNN):
● The project utilizes Convolutional Neural Networks (CNNs) for image-based plant leaf disease
classification.
● CNNs are widely used for image classification tasks due to their ability to extract meaningful patterns.
● The model is trained to classify plant leaf diseases using labeled images.
ALGORITHM DESCRIPTION
How It Works?
➔ ReLU replaces negative values with 0 to introduce non-linearity.
➔ Keeps only important features while filtering out noise.
Formula : ReLU(x) = max(0,x)
Fig: Feature map getting mapped
by ReLU function
ALGORITHM DESCRIPTION
3. Batch Normalization: Batch Normalization formula
Speeds up training, prevents overfitting, and ensures stable activations
reducing internal covariate shift.
How It Works?
➔ Normalizes activations to zero mean & unit variance.
➔ Applies learnable parameters γ (scale) and β (shift).
ALGORITHM DESCRIPTION
4. Pooling Layer
Reduces computational complexity while keeping
essential features.
UT1 Register with the Open register page then User should be User is registered Pass
correct data provide valid username, registered.
password and email
UT2 Registering with Open register page then User should not be User is not registered Pass
incorrect or already provide taken username, registered
taken username password and email
UT3 Login with correct Open Login /sign in Page, User must be User is successfully pass
data enter valid data and click successfully logged in logged in
signin
UT4 Login with incorrect Enter the correct username User must not be User isn't logged in pass
data and incorrect password and logged in
click sign in.
IMPLEMENTATION AND TESTING
System Testing :
ST1 User clicks on the Predict Plant Should be redirect to Redirected to image upload Pass
Disease button from home image upload section section
dashboard
ST2 User clicks on the choose file Desired image must be Selected image is uploaded and Pass
option in image upload form uploaded and shown displayed
ST3 User drag and drops the image in Desired image should be Selected image is uploaded and Pass
drag and drop section uploaded and shown displayed
ST4 User clicks on the ‘Predict Disease‘ Prediction result along Prediction result along with Pass
Button with description and description and remedy is
remedy should be displayed
displayed
RESULT ANALYSIS
Our model’s performance was evaluated using a detailed classification report and a confusion matrix,
providing comprehensive insights into its classification capabilities.
1.Classification Report:
The report summarizes key metrics for each class:
○ Precision: Indicates the accuracy of positive predictions; high precision means that when the
model predicts a disease, it is often correct.
○ Recall: Measures the model’s ability to identify all instances of a class; higher recall implies
fewer missed cases.
○ F1-score: The harmonic mean of precision and recall, balancing the two to reflect overall class
performance.
○ Support: Represents the number of actual samples for each class.
RESULT ANALYSIS
● Enhancing the Dataset: Increasing the diversity and volume of training data can further improve the
model’s generalization ability, reducing misclassifications.
● Transfer Learning: Incorporating pre-trained models like EfficientNet or ResNet could enhance
performance while reducing computational costs.
● Mobile Application Integration: Deploying the model in a mobile app would provide farmers and
agricultural professionals with a more accessible tool for disease detection.
● Real-Time Prediction System: Integrating IoT-based smart farming techniques with real-time plant
disease detection could automate the monitoring process.
Thank You !!