SlideShare a Scribd company logo
1 of 11
TomatoGenius: RFC
A tomato disease detector by Mihit Puvvula
Motivation
This project was made as a continuation of a series of TomatoGenius
Projects. I add knowledge of key concepts related to Random Forest
to a belt with different AI algorithms.
Contents
• Dataset
• Input and Output
• Algorithm
• How did my AI service perform?
• Demo
• Problems Encountered
• Further Improvements
• Q and A
Dataset
• A CSV File containing 7000 flattened images
• Has 4 categories: Healthy, Late Blight, Mold, and Septoria Leaf
Spot
• Each flattened row contains a grayscale value of each pixel of the
28x28 image making 784 elements per row.
Input and Output
Input
• A row of 784 csv’s representing each pixel of my image
Output
• 4 labels describing the tomato leaf’s condition:
Healthy, Late Blight, Septoria Virus, Curl Virus
Algorithm
The Random Forest Classifier
Algorithm was used to generate
a training model.
Decision
Tree 1
Decision
Tree 2
Decision
Tree 3
Prediction: Late Blight
A decision tree is an entity that decides
which output to pass on based on rules
generated by the trained model.
Late Blight: 80%
Septoria: 15%
Unknown: 5%
Late Blight: Dark
Brown Patch
Healthy: Green with
no Spots
Septoria: Dark
Brown Spots
Mold: Yellow Fading
to Brown
Late Blight: Distinct
Brown Patch
Demo
Let’s take a look at the Python Integrated
Demo!
How did my AI Service Perform?
• Had an accuracy of 75% percent
• Very good for an AI with 4 different categories
Labels Healthy Late Blight Mold Septoria
Healthy 249 12 2 14
Late Blight 14 204 8 59
Mold 7 26 64 49
Septoria 24 40 23 247
TrueValues
Predicted
Faulty Data
Septoria MoldLate Blight
Try to categorize these three images:
Septoria: Has brown spots that evolve into
patches of dark brown with occasional spots
of yellow
Mold: Has spots of the leaf rotting yellow
with faint brown patches
Late Blight: The Coronavirus of crops. Leaves
rot into chunks of brown.
Can you classify these images?
Problems Encountered
• Faulty Images in some categories
• Downscaling to from 200x200 to 28x28
Further Improvements
• As always, I can add more pictures to provide more info
• Add more diseases
• Add certain presets like certain color combinations to get an even
more accurate prediction
• Instead of downscaling to 28x28, I can downscale by a lower factor
to 100x100

More Related Content

More from aiclub_slides

More from aiclub_slides (20)

Pa2 project template
Pa2 project templatePa2 project template
Pa2 project template
 
Knn intro advanced_middleschool
Knn intro advanced_middleschoolKnn intro advanced_middleschool
Knn intro advanced_middleschool
 
M1 regression metrics_middleschool
M1 regression metrics_middleschoolM1 regression metrics_middleschool
M1 regression metrics_middleschool
 
Pa1 json requests
Pa1 json requestsPa1 json requests
Pa1 json requests
 
Mnist images
Mnist imagesMnist images
Mnist images
 
Mnist images
Mnist imagesMnist images
Mnist images
 
Ai in real life face detection
Ai in real life   face detectionAi in real life   face detection
Ai in real life face detection
 
Cnn
CnnCnn
Cnn
 
Res net high level intro
Res net high level introRes net high level intro
Res net high level intro
 
Neural networks and flattened images
Neural networks and flattened imagesNeural networks and flattened images
Neural networks and flattened images
 
What is a_neural_network
What is a_neural_networkWhat is a_neural_network
What is a_neural_network
 
How neural networks learn part iii
How neural networks learn part iiiHow neural networks learn part iii
How neural networks learn part iii
 
Introduction to deep learning image classification
Introduction to deep learning   image classificationIntroduction to deep learning   image classification
Introduction to deep learning image classification
 
Accuracy middleschool
Accuracy middleschoolAccuracy middleschool
Accuracy middleschool
 
Introduction to classification_middleschool
Introduction to classification_middleschoolIntroduction to classification_middleschool
Introduction to classification_middleschool
 
Introduction to the cloud
Introduction to the cloudIntroduction to the cloud
Introduction to the cloud
 
Basics of data
Basics of dataBasics of data
Basics of data
 
Ai basics
Ai basicsAi basics
Ai basics
 
Ai lifecycle and navigator
Ai lifecycle and navigatorAi lifecycle and navigator
Ai lifecycle and navigator
 
How AIs are different from us level 1
How AIs are different from us   level 1How AIs are different from us   level 1
How AIs are different from us level 1
 

Recently uploaded

+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
?#DUbAI#??##{{(☎️+971_581248768%)**%*]'#abortion pills for sale in dubai@
 
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Victor Rentea
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Safe Software
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
WSO2
 

Recently uploaded (20)

Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
 
MS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectorsMS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectors
 
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
 
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 AmsterdamDEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
 
ICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesICT role in 21st century education and its challenges
ICT role in 21st century education and its challenges
 
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
 
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ..."I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
 
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor Presentation
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWEREMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
 
Spring Boot vs Quarkus the ultimate battle - DevoxxUK
Spring Boot vs Quarkus the ultimate battle - DevoxxUKSpring Boot vs Quarkus the ultimate battle - DevoxxUK
Spring Boot vs Quarkus the ultimate battle - DevoxxUK
 
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
 

Tomato Genius - Tomato Plant Disease Detection using Random Forest Classifier

  • 1. TomatoGenius: RFC A tomato disease detector by Mihit Puvvula
  • 2. Motivation This project was made as a continuation of a series of TomatoGenius Projects. I add knowledge of key concepts related to Random Forest to a belt with different AI algorithms.
  • 3. Contents • Dataset • Input and Output • Algorithm • How did my AI service perform? • Demo • Problems Encountered • Further Improvements • Q and A
  • 4. Dataset • A CSV File containing 7000 flattened images • Has 4 categories: Healthy, Late Blight, Mold, and Septoria Leaf Spot • Each flattened row contains a grayscale value of each pixel of the 28x28 image making 784 elements per row.
  • 5. Input and Output Input • A row of 784 csv’s representing each pixel of my image Output • 4 labels describing the tomato leaf’s condition: Healthy, Late Blight, Septoria Virus, Curl Virus
  • 6. Algorithm The Random Forest Classifier Algorithm was used to generate a training model. Decision Tree 1 Decision Tree 2 Decision Tree 3 Prediction: Late Blight A decision tree is an entity that decides which output to pass on based on rules generated by the trained model. Late Blight: 80% Septoria: 15% Unknown: 5% Late Blight: Dark Brown Patch Healthy: Green with no Spots Septoria: Dark Brown Spots Mold: Yellow Fading to Brown Late Blight: Distinct Brown Patch
  • 7. Demo Let’s take a look at the Python Integrated Demo!
  • 8. How did my AI Service Perform? • Had an accuracy of 75% percent • Very good for an AI with 4 different categories Labels Healthy Late Blight Mold Septoria Healthy 249 12 2 14 Late Blight 14 204 8 59 Mold 7 26 64 49 Septoria 24 40 23 247 TrueValues Predicted
  • 9. Faulty Data Septoria MoldLate Blight Try to categorize these three images: Septoria: Has brown spots that evolve into patches of dark brown with occasional spots of yellow Mold: Has spots of the leaf rotting yellow with faint brown patches Late Blight: The Coronavirus of crops. Leaves rot into chunks of brown. Can you classify these images?
  • 10. Problems Encountered • Faulty Images in some categories • Downscaling to from 200x200 to 28x28
  • 11. Further Improvements • As always, I can add more pictures to provide more info • Add more diseases • Add certain presets like certain color combinations to get an even more accurate prediction • Instead of downscaling to 28x28, I can downscale by a lower factor to 100x100

Editor's Notes

  1. Recite
  2. Recite
  3. Recite
  4. Recite
  5. Explain what a Classifier is. Show basic Random Forest structure. Explain Decision trees and 1 tree with depth of 1. Tell Depth of 2.
  6. Tell How 59 and 49 are very concerning. IMPORTANT!! Tell how downscaling from 200x200 to 28x28 loses a lot of information. Random Forest is very fast and not that much computational as a ResNet Image Classification(my ResNet had 95%) and having 1.) 5 categories and 2.) the downscaling the image by a factor of 51 with a result of 75% is impressive
  7. Ask them which one is which and tell that there are ocassional faulty data and I cant dumpster dive
  8. Recite and explain how downscaling loses a lot
  9. recite at last line tell that increases accuracy dramatically because that much information is not lost compared to the loss of info in the 28x28 telll I am also working on it