SlideShare une entreprise Scribd logo
1  sur  28
Masters in Machine Learning
Attempt to find petals of flower
images and classify flowers using
Computer Vision
Indranil Datta
Liverpool John Moores University
Agenda Style
Introduction01
Literature Review02
Problem Statement03
Methodology05
Aim & Objectives04
Conclusion & Future Works07
Results & Discussions06
Introduction
Introduction
Flowers are very interesting subject for the inquisitive minds of botanists
Flowers attract general people due to its colour, shape, fragrance and petals
Flowers & its importance
Classification of flowers was historically a botanist’s job
Recently ML and AI eased the ways of flower classification
Classification of Flowers
Flower images may have similarities and dissimilarities of colour, shape, petals and
backgrounds
Complexity of Flower classification from images
Number of petals in a particular category of flower may differ.
Petal shapes are not always exactly the same for a particular category of flower.
Petal texture varies within the same flower class.
Complexity of petals count from a flower image
Introduction
Classification using machine learning techniques
Classification using deep learning methodologies
Recent trend in flower classification using flower images
Classification of flowers was historically a botanist’s job
Recently ML and AI eased the ways of flower classification
Classification of Flowers
Attempted petals count methods and procedures of categorization of flowers
summary
Literature
Review
Feature System based on regions
Based on shape characteristics of flowers and
dividing flower image into many feature ring regions
and define their corresponding features. These
feature system is used to distinguish flowers.
Image segmentation and SVM
Based on average colour and variance
of colour distribution, image is
segmented. SVM model is used to train.
Based on local & spatial information
Flower classification is executed by using SVM
after extracting local and spatial information by
SIFT-like feature descriptors and feature context
method.
Identify Structural pattern
Structural pattern identified based on probabilistic
recursive model to categorize flower images.
Literature
Review
Flower classification
without using deep
learning techniques
Solving overfitting and local optima
By using transfer learning from CNN models like
VGG16, VGG19, Inceptionv3 and ResNet50 to
classify flower images which solves overfitting and
local optimization issues.
Two step approach
Segment the flower region from the
image and use a specialized CNN
model for categorizing the flowers from
the segmented images.
Retaining colour, shape and texture
Using transfer learning from Inception v3 model
colour, shape and texture of flowers from images
has been retained and that was used to recognize
flowers.
Hue based image segmentation
Hue based image segmentation process is applied
to segregate the flower from the image and later a
custom CNN is used to identify the flower.
Literature
Review
Flower classification
using deep learning
techniques
Using repeated building block in NN
ResNeXt model is created by repeating a building
block which accumulates the transformations with
the same topology. This was used to identify
flowers.
Pulling Colour and texture info
By pulling colour information using
normalized colour histogram and by
extracting texture information using gray
level co-occurrence matrix, flower
identification accuracy has been
increased when neural network is used.
Literature
Review
Flower classification
using deep learning
techniques
Problem
Statement
Problem Statements
In order to provide more
details about a flower,
will it be possible to
fetch petals count also
from machine learning
methodologies?
What about petals?
Flower regions from the
flower can be detected
by using previously
discussed techniques.
But can we identify
details about a
particular flower by
these methods?
Details of flower
Instead of extracting
features first and apply
the features to a CNN
model, can there be
single step flower
classification model?
Single Step Model
Aim &
Objectives
Aim & Objectives
In this research work, attempts need to be
conducted to find out number of petals from
the flower image by machine learning
techniques.
Find ways to count petals
Classification of flowers are also can be
tried by extracting features by transfer
learning from a deep learning model and
using that model predicted flower
descriptions need to be embedded by
LSTM model.
Embedding texts in flower image
Classification of flowers needs to be
attempted using a single deep learning
model.
Single Step Model
Methodology
Methodology
Deep learning methods for predicting
flowers.
Calculation of petals count.
Methodology
Types
CONTENTS
Choice of flower dataset.
Calculation of petals count
K-Means Algorithm for
binary segmentation.
Apply K-Means on each of
the image. Take out Image
features from the cluster
centers and save as
masked images
Contents
1
Apply edge detection on
the masked images and
find specific regional area
for each petal.
Contents
1 (b)
Apply hue based image segmentation and find out
circular area belonging to the flower. Get the two
extreme ends of two opposite petals. Create a
triangle with the top points and the center of the
circle and find the area of the triangle. Divide
contour area by the triangle area to find petals
count.
Contents
2
Apply image thresholding
by Otsu’s method on
masked images and find
specific regional area for
each petal.
Contents
1 (a)
Flower Prediction
Train LSTM model with
the extracted features
from ResNet50 model
using oxford 102 flower
category images by
creating train and test
dataset by own process.
Contents
1
Train ResNet50 model with train and test image
dataset from the original categories and fine tune it
for overfitting
Contents
2
Choice of dataset
Train Test Validation dataset
Train, test and validation dataset
have been sorted beforehand.
These datasets have been used for
another approach of flower image
classification using only ResNet50
model.
Dataset for petals count (2)
Manually chosen flower images
from each category has been taken
for petals count after hue based
image segmentation is performed
on these images.
Oxford’s 102 dataset directly
Training and Test dataset have been
directly created from above dataset
by randomly peeking images from
each of the categories maintaining
80-20 rule programmatically. This
dataset is used for the approach
using transfer learning by ResNet50
model and LSTM model for final
prediction.
Dataset for petals count (1)
The above train-test dataset is used
which is prepared programmatically.
This dataset is used for K-Means
segmentation, thresholding and
edge detection methods.
Results &
Discussions
Petals counts
Method 1
In this method a hue based image segmentation has been
performed before petals calculation is performed. The
above flower images (top left) are showing boundaries
found out by it. Correctly calculated categories of petals
are displayed in a table (top right). The metrics of total
matched, unmatched and uncountable categories of
flowers have been displayed on the left.
Petals counts
Method 2
In this method K-Means segmentation has been applied.
The masked images after this segmentation can be seen
above. The calculated petals count along with the
thresholded images can be seen on left.
Petals counts
Method 3
In this method after K-Means segmentation is applied, the
masked images have been sent through edge detection
and watershed transformation. After final transformation
the images can be seen above. The calculated petals
count along marker images can be seen on the left side.
Classification
Method 1
In this classification method ResNet50 model is used to
train the images from Train database as mentioned
previously. 256 epochs have been planned. But after 144
epochs check point triggered to stop the training. The
check point was triggered due to increase in validation
loss. The resulted model was further fine tuned by
providing SGD optimizer and learning rate 0.0001 and run
1 epoch that gave 90% validation accuracy.
Classification
Method 2
In this classification method ResNet50 model is used to
transfer learning from the programmatically created train
images. The feaures along with petals count info have
been sent to a LSTM model for final training. The resulted
LSTM model was sent to the test images for evaluating
the accuracy of the model which turns out to be around
75%.
Conclusion &
Future works
Conclusion
01
02
03
ResNet 50 model has given 90% validation accuracy after fine
tuning with SGD removing adam optimizer. Also transfer learning by
ResNet50 and prediction by LSTM model gave 75% accuracy.
Performance of ResNet50 model
Calculation of petals from a flower image has obstacles to be perfect.
Orientation of image may have hide some of the petals.
Flower image has missing petals due to natural disturbances.
Petals count challenges
Only 16 out of 102 categories are correctly predicted through the hue based
segmentation and triangle area of a petal out of circular area of flowers calculation.
Method in which K-Means segmentation and thereafter thresholding or edge detection
applied could not fetch satisfactory petals count.
Petals count algorithms need more fine tuning
Future works
01
02
03
Deep masking for segmenting the petals by identifying individual
petal instances from a flower image remains another last but not
least work that can be taken up further .
Deep masking for instance segmentation
In the calculation of petals sepals cannot be separated from petals during the
execution of the function. This leaves a challenging note to differentiate between
petals from sepals.
Petals and sepals
The flower images chosen for this research work have not turned out to be the best for
calculating petals count. Some of the flower images have left challenges in finding their
boundaries properly.
Flower images need to be chosen carefully for petals count
Thank You
+91 9900580160
In case of any queries please contact
https://linkedin.com/in/indranildatta-profile
Indranil.datt@outlook.com

Contenu connexe

Tendances

Flower Classification Using Neural Network Based Image Processing
Flower Classification Using Neural Network Based Image ProcessingFlower Classification Using Neural Network Based Image Processing
Flower Classification Using Neural Network Based Image ProcessingIOSR Journals
 
[SIGGRAPH 2016] Automatic Image Colorization
[SIGGRAPH 2016] Automatic Image Colorization[SIGGRAPH 2016] Automatic Image Colorization
[SIGGRAPH 2016] Automatic Image ColorizationSatoshi Iizuka
 
Chapter-4 Enhanced ER Model
Chapter-4 Enhanced ER ModelChapter-4 Enhanced ER Model
Chapter-4 Enhanced ER ModelKunal Anand
 
Brain tumor detection using image segmentation ppt
Brain tumor detection using image segmentation pptBrain tumor detection using image segmentation ppt
Brain tumor detection using image segmentation pptRoshini Vijayakumar
 
Goal based and utility based agents
Goal based and utility based agentsGoal based and utility based agents
Goal based and utility based agentsMegha Sharma
 
Chapter-2 Database System Concepts and Architecture
Chapter-2 Database System Concepts and ArchitectureChapter-2 Database System Concepts and Architecture
Chapter-2 Database System Concepts and ArchitectureKunal Anand
 
Mango Leaf Disease Detection.pptx
Mango Leaf Disease Detection.pptxMango Leaf Disease Detection.pptx
Mango Leaf Disease Detection.pptxNabarjunSaha
 
Reduction & Handle Pruning
Reduction & Handle PruningReduction & Handle Pruning
Reduction & Handle PruningMdAshikJiddney
 
Architecture of-dbms-and-data-independence
Architecture of-dbms-and-data-independenceArchitecture of-dbms-and-data-independence
Architecture of-dbms-and-data-independenceAnuj Modi
 
Assignment statements
Assignment statementsAssignment statements
Assignment statementsDivya Devan
 
2. Entity Relationship Model in DBMS
2. Entity Relationship Model in DBMS2. Entity Relationship Model in DBMS
2. Entity Relationship Model in DBMSkoolkampus
 
Classification of Compilers
Classification of CompilersClassification of Compilers
Classification of CompilersSarmad Ali
 

Tendances (20)

Flower Classification Using Neural Network Based Image Processing
Flower Classification Using Neural Network Based Image ProcessingFlower Classification Using Neural Network Based Image Processing
Flower Classification Using Neural Network Based Image Processing
 
Fuzzy expert system
Fuzzy expert systemFuzzy expert system
Fuzzy expert system
 
[SIGGRAPH 2016] Automatic Image Colorization
[SIGGRAPH 2016] Automatic Image Colorization[SIGGRAPH 2016] Automatic Image Colorization
[SIGGRAPH 2016] Automatic Image Colorization
 
Chapter-4 Enhanced ER Model
Chapter-4 Enhanced ER ModelChapter-4 Enhanced ER Model
Chapter-4 Enhanced ER Model
 
Brain tumor detection using image segmentation ppt
Brain tumor detection using image segmentation pptBrain tumor detection using image segmentation ppt
Brain tumor detection using image segmentation ppt
 
Goal based and utility based agents
Goal based and utility based agentsGoal based and utility based agents
Goal based and utility based agents
 
Chapter-2 Database System Concepts and Architecture
Chapter-2 Database System Concepts and ArchitectureChapter-2 Database System Concepts and Architecture
Chapter-2 Database System Concepts and Architecture
 
Bug Tracking System
Bug Tracking SystemBug Tracking System
Bug Tracking System
 
Imageprocessing
ImageprocessingImageprocessing
Imageprocessing
 
And or search
And or searchAnd or search
And or search
 
Mango Leaf Disease Detection.pptx
Mango Leaf Disease Detection.pptxMango Leaf Disease Detection.pptx
Mango Leaf Disease Detection.pptx
 
Reduction & Handle Pruning
Reduction & Handle PruningReduction & Handle Pruning
Reduction & Handle Pruning
 
Architecture of-dbms-and-data-independence
Architecture of-dbms-and-data-independenceArchitecture of-dbms-and-data-independence
Architecture of-dbms-and-data-independence
 
AI: AI & Problem Solving
AI: AI & Problem SolvingAI: AI & Problem Solving
AI: AI & Problem Solving
 
Assignment statements
Assignment statementsAssignment statements
Assignment statements
 
Problems, Problem spaces and Search
Problems, Problem spaces and SearchProblems, Problem spaces and Search
Problems, Problem spaces and Search
 
SRS Slide
SRS SlideSRS Slide
SRS Slide
 
2. Entity Relationship Model in DBMS
2. Entity Relationship Model in DBMS2. Entity Relationship Model in DBMS
2. Entity Relationship Model in DBMS
 
Classification of Compilers
Classification of CompilersClassification of Compilers
Classification of Compilers
 
Chaptr 7 (final)
Chaptr 7 (final)Chaptr 7 (final)
Chaptr 7 (final)
 

Similaire à Petals Count and Flower Image Classification using computer vision

IRJET- Supervised Learning Approach for Flower Images using Color, Shape and ...
IRJET- Supervised Learning Approach for Flower Images using Color, Shape and ...IRJET- Supervised Learning Approach for Flower Images using Color, Shape and ...
IRJET- Supervised Learning Approach for Flower Images using Color, Shape and ...IRJET Journal
 
Flower Grain Image Classification Using Supervised Classification Algorithm
Flower Grain Image Classification Using Supervised Classification AlgorithmFlower Grain Image Classification Using Supervised Classification Algorithm
Flower Grain Image Classification Using Supervised Classification AlgorithmIJERD Editor
 
Image Mining for Flower Classification by Genetic Association Rule Mining Usi...
Image Mining for Flower Classification by Genetic Association Rule Mining Usi...Image Mining for Flower Classification by Genetic Association Rule Mining Usi...
Image Mining for Flower Classification by Genetic Association Rule Mining Usi...IJAEMSJORNAL
 
Pollination based optimization for color image segmentation
Pollination based optimization for color image segmentationPollination based optimization for color image segmentation
Pollination based optimization for color image segmentationIAEME Publication
 
A Comparative Analysis of Deep Learning Modelsfor Flower Recognition and Heal...
A Comparative Analysis of Deep Learning Modelsfor Flower Recognition and Heal...A Comparative Analysis of Deep Learning Modelsfor Flower Recognition and Heal...
A Comparative Analysis of Deep Learning Modelsfor Flower Recognition and Heal...KhondokerAbuNaim
 
A NOVEL DATA DICTIONARY LEARNING FOR LEAF RECOGNITION
A NOVEL DATA DICTIONARY LEARNING FOR LEAF RECOGNITIONA NOVEL DATA DICTIONARY LEARNING FOR LEAF RECOGNITION
A NOVEL DATA DICTIONARY LEARNING FOR LEAF RECOGNITIONsipij
 
IRJET- Identification of Indian Medicinal Plant by using Artificial Neural Ne...
IRJET- Identification of Indian Medicinal Plant by using Artificial Neural Ne...IRJET- Identification of Indian Medicinal Plant by using Artificial Neural Ne...
IRJET- Identification of Indian Medicinal Plant by using Artificial Neural Ne...IRJET Journal
 
Detection of leaf diseases and classification using digital image processing
Detection of leaf diseases and classification using digital image processingDetection of leaf diseases and classification using digital image processing
Detection of leaf diseases and classification using digital image processingNaeem Shehzad
 
IRJET- A Review on Plant Disease Detection using Image Processing
IRJET- A Review on Plant Disease Detection using Image ProcessingIRJET- A Review on Plant Disease Detection using Image Processing
IRJET- A Review on Plant Disease Detection using Image ProcessingIRJET Journal
 
Automatic Recognition of Medicinal Plants using Machine Learning Techniques
Automatic Recognition of Medicinal Plants using Machine Learning TechniquesAutomatic Recognition of Medicinal Plants using Machine Learning Techniques
Automatic Recognition of Medicinal Plants using Machine Learning TechniquesIRJET Journal
 
Automatic Seed Classification by Shape and Color Features using Machine Visio...
Automatic Seed Classification by Shape and Color Features using Machine Visio...Automatic Seed Classification by Shape and Color Features using Machine Visio...
Automatic Seed Classification by Shape and Color Features using Machine Visio...Editor IJCATR
 
Accuracy assessment of Remote Sensing Data
Accuracy assessment of Remote Sensing DataAccuracy assessment of Remote Sensing Data
Accuracy assessment of Remote Sensing DataMuhammad Zubair
 
Performance Evaluation Of Ontology And Fuzzybase Cbir
Performance Evaluation Of Ontology And Fuzzybase CbirPerformance Evaluation Of Ontology And Fuzzybase Cbir
Performance Evaluation Of Ontology And Fuzzybase Cbiracijjournal
 
PERFORMANCE EVALUATION OF ONTOLOGY AND FUZZYBASE CBIR
PERFORMANCE EVALUATION OF ONTOLOGY AND FUZZYBASE CBIRPERFORMANCE EVALUATION OF ONTOLOGY AND FUZZYBASE CBIR
PERFORMANCE EVALUATION OF ONTOLOGY AND FUZZYBASE CBIRacijjournal
 
A Study of Image Processing in Agriculture
A Study of Image Processing in AgricultureA Study of Image Processing in Agriculture
A Study of Image Processing in AgricultureEswar Publications
 
Wheat leaf disease detection using image processing
Wheat leaf disease detection using image processingWheat leaf disease detection using image processing
Wheat leaf disease detection using image processingIJLT EMAS
 
Development of Shape Based Leaf Categorization
Development of Shape Based Leaf CategorizationDevelopment of Shape Based Leaf Categorization
Development of Shape Based Leaf CategorizationIOSR Journals
 

Similaire à Petals Count and Flower Image Classification using computer vision (20)

IRJET- Supervised Learning Approach for Flower Images using Color, Shape and ...
IRJET- Supervised Learning Approach for Flower Images using Color, Shape and ...IRJET- Supervised Learning Approach for Flower Images using Color, Shape and ...
IRJET- Supervised Learning Approach for Flower Images using Color, Shape and ...
 
Flower Grain Image Classification Using Supervised Classification Algorithm
Flower Grain Image Classification Using Supervised Classification AlgorithmFlower Grain Image Classification Using Supervised Classification Algorithm
Flower Grain Image Classification Using Supervised Classification Algorithm
 
B01460713
B01460713B01460713
B01460713
 
Image Mining for Flower Classification by Genetic Association Rule Mining Usi...
Image Mining for Flower Classification by Genetic Association Rule Mining Usi...Image Mining for Flower Classification by Genetic Association Rule Mining Usi...
Image Mining for Flower Classification by Genetic Association Rule Mining Usi...
 
Pollination based optimization for color image segmentation
Pollination based optimization for color image segmentationPollination based optimization for color image segmentation
Pollination based optimization for color image segmentation
 
A Comparative Analysis of Deep Learning Modelsfor Flower Recognition and Heal...
A Comparative Analysis of Deep Learning Modelsfor Flower Recognition and Heal...A Comparative Analysis of Deep Learning Modelsfor Flower Recognition and Heal...
A Comparative Analysis of Deep Learning Modelsfor Flower Recognition and Heal...
 
A NOVEL DATA DICTIONARY LEARNING FOR LEAF RECOGNITION
A NOVEL DATA DICTIONARY LEARNING FOR LEAF RECOGNITIONA NOVEL DATA DICTIONARY LEARNING FOR LEAF RECOGNITION
A NOVEL DATA DICTIONARY LEARNING FOR LEAF RECOGNITION
 
FINAL PPTt.pptx
FINAL PPTt.pptxFINAL PPTt.pptx
FINAL PPTt.pptx
 
IRJET- Identification of Indian Medicinal Plant by using Artificial Neural Ne...
IRJET- Identification of Indian Medicinal Plant by using Artificial Neural Ne...IRJET- Identification of Indian Medicinal Plant by using Artificial Neural Ne...
IRJET- Identification of Indian Medicinal Plant by using Artificial Neural Ne...
 
Detection of leaf diseases and classification using digital image processing
Detection of leaf diseases and classification using digital image processingDetection of leaf diseases and classification using digital image processing
Detection of leaf diseases and classification using digital image processing
 
IRJET- A Review on Plant Disease Detection using Image Processing
IRJET- A Review on Plant Disease Detection using Image ProcessingIRJET- A Review on Plant Disease Detection using Image Processing
IRJET- A Review on Plant Disease Detection using Image Processing
 
Automatic Recognition of Medicinal Plants using Machine Learning Techniques
Automatic Recognition of Medicinal Plants using Machine Learning TechniquesAutomatic Recognition of Medicinal Plants using Machine Learning Techniques
Automatic Recognition of Medicinal Plants using Machine Learning Techniques
 
Automatic Seed Classification by Shape and Color Features using Machine Visio...
Automatic Seed Classification by Shape and Color Features using Machine Visio...Automatic Seed Classification by Shape and Color Features using Machine Visio...
Automatic Seed Classification by Shape and Color Features using Machine Visio...
 
Accuracy assessment of Remote Sensing Data
Accuracy assessment of Remote Sensing DataAccuracy assessment of Remote Sensing Data
Accuracy assessment of Remote Sensing Data
 
C1104011322
C1104011322C1104011322
C1104011322
 
Performance Evaluation Of Ontology And Fuzzybase Cbir
Performance Evaluation Of Ontology And Fuzzybase CbirPerformance Evaluation Of Ontology And Fuzzybase Cbir
Performance Evaluation Of Ontology And Fuzzybase Cbir
 
PERFORMANCE EVALUATION OF ONTOLOGY AND FUZZYBASE CBIR
PERFORMANCE EVALUATION OF ONTOLOGY AND FUZZYBASE CBIRPERFORMANCE EVALUATION OF ONTOLOGY AND FUZZYBASE CBIR
PERFORMANCE EVALUATION OF ONTOLOGY AND FUZZYBASE CBIR
 
A Study of Image Processing in Agriculture
A Study of Image Processing in AgricultureA Study of Image Processing in Agriculture
A Study of Image Processing in Agriculture
 
Wheat leaf disease detection using image processing
Wheat leaf disease detection using image processingWheat leaf disease detection using image processing
Wheat leaf disease detection using image processing
 
Development of Shape Based Leaf Categorization
Development of Shape Based Leaf CategorizationDevelopment of Shape Based Leaf Categorization
Development of Shape Based Leaf Categorization
 

Dernier

Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsJoaquim Jorge
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerThousandEyes
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘RTylerCroy
 
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 FMESafe Software
 
Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...
Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...
Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...Principled Technologies
 
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.pdfsudhanshuwaghmare1
 
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...apidays
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationRadu Cotescu
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024The Digital Insurer
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAndrey Devyatkin
 
Top 10 Most Downloaded Games on Play Store in 2024
Top 10 Most Downloaded Games on Play Store in 2024Top 10 Most Downloaded Games on Play Store in 2024
Top 10 Most Downloaded Games on Play Store in 2024SynarionITSolutions
 
HTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation StrategiesHTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation StrategiesBoston Institute of Analytics
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Scriptwesley chun
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonAnna Loughnan Colquhoun
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024The Digital Insurer
 
GenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdfGenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdflior mazor
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...Martijn de Jong
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoffsammart93
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobeapidays
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024The Digital Insurer
 

Dernier (20)

Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
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
 
Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...
Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...
Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...
 
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
 
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
 
Top 10 Most Downloaded Games on Play Store in 2024
Top 10 Most Downloaded Games on Play Store in 2024Top 10 Most Downloaded Games on Play Store in 2024
Top 10 Most Downloaded Games on Play Store in 2024
 
HTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation StrategiesHTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation Strategies
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
GenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdfGenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdf
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
 

Petals Count and Flower Image Classification using computer vision

  • 1. Masters in Machine Learning Attempt to find petals of flower images and classify flowers using Computer Vision Indranil Datta Liverpool John Moores University
  • 2. Agenda Style Introduction01 Literature Review02 Problem Statement03 Methodology05 Aim & Objectives04 Conclusion & Future Works07 Results & Discussions06
  • 4. Introduction Flowers are very interesting subject for the inquisitive minds of botanists Flowers attract general people due to its colour, shape, fragrance and petals Flowers & its importance Classification of flowers was historically a botanist’s job Recently ML and AI eased the ways of flower classification Classification of Flowers Flower images may have similarities and dissimilarities of colour, shape, petals and backgrounds Complexity of Flower classification from images Number of petals in a particular category of flower may differ. Petal shapes are not always exactly the same for a particular category of flower. Petal texture varies within the same flower class. Complexity of petals count from a flower image
  • 5. Introduction Classification using machine learning techniques Classification using deep learning methodologies Recent trend in flower classification using flower images Classification of flowers was historically a botanist’s job Recently ML and AI eased the ways of flower classification Classification of Flowers Attempted petals count methods and procedures of categorization of flowers summary
  • 7. Feature System based on regions Based on shape characteristics of flowers and dividing flower image into many feature ring regions and define their corresponding features. These feature system is used to distinguish flowers. Image segmentation and SVM Based on average colour and variance of colour distribution, image is segmented. SVM model is used to train. Based on local & spatial information Flower classification is executed by using SVM after extracting local and spatial information by SIFT-like feature descriptors and feature context method. Identify Structural pattern Structural pattern identified based on probabilistic recursive model to categorize flower images. Literature Review Flower classification without using deep learning techniques
  • 8. Solving overfitting and local optima By using transfer learning from CNN models like VGG16, VGG19, Inceptionv3 and ResNet50 to classify flower images which solves overfitting and local optimization issues. Two step approach Segment the flower region from the image and use a specialized CNN model for categorizing the flowers from the segmented images. Retaining colour, shape and texture Using transfer learning from Inception v3 model colour, shape and texture of flowers from images has been retained and that was used to recognize flowers. Hue based image segmentation Hue based image segmentation process is applied to segregate the flower from the image and later a custom CNN is used to identify the flower. Literature Review Flower classification using deep learning techniques
  • 9. Using repeated building block in NN ResNeXt model is created by repeating a building block which accumulates the transformations with the same topology. This was used to identify flowers. Pulling Colour and texture info By pulling colour information using normalized colour histogram and by extracting texture information using gray level co-occurrence matrix, flower identification accuracy has been increased when neural network is used. Literature Review Flower classification using deep learning techniques
  • 11. Problem Statements In order to provide more details about a flower, will it be possible to fetch petals count also from machine learning methodologies? What about petals? Flower regions from the flower can be detected by using previously discussed techniques. But can we identify details about a particular flower by these methods? Details of flower Instead of extracting features first and apply the features to a CNN model, can there be single step flower classification model? Single Step Model
  • 13. Aim & Objectives In this research work, attempts need to be conducted to find out number of petals from the flower image by machine learning techniques. Find ways to count petals Classification of flowers are also can be tried by extracting features by transfer learning from a deep learning model and using that model predicted flower descriptions need to be embedded by LSTM model. Embedding texts in flower image Classification of flowers needs to be attempted using a single deep learning model. Single Step Model
  • 15. Methodology Deep learning methods for predicting flowers. Calculation of petals count. Methodology Types CONTENTS Choice of flower dataset.
  • 16. Calculation of petals count K-Means Algorithm for binary segmentation. Apply K-Means on each of the image. Take out Image features from the cluster centers and save as masked images Contents 1 Apply edge detection on the masked images and find specific regional area for each petal. Contents 1 (b) Apply hue based image segmentation and find out circular area belonging to the flower. Get the two extreme ends of two opposite petals. Create a triangle with the top points and the center of the circle and find the area of the triangle. Divide contour area by the triangle area to find petals count. Contents 2 Apply image thresholding by Otsu’s method on masked images and find specific regional area for each petal. Contents 1 (a)
  • 17. Flower Prediction Train LSTM model with the extracted features from ResNet50 model using oxford 102 flower category images by creating train and test dataset by own process. Contents 1 Train ResNet50 model with train and test image dataset from the original categories and fine tune it for overfitting Contents 2
  • 18. Choice of dataset Train Test Validation dataset Train, test and validation dataset have been sorted beforehand. These datasets have been used for another approach of flower image classification using only ResNet50 model. Dataset for petals count (2) Manually chosen flower images from each category has been taken for petals count after hue based image segmentation is performed on these images. Oxford’s 102 dataset directly Training and Test dataset have been directly created from above dataset by randomly peeking images from each of the categories maintaining 80-20 rule programmatically. This dataset is used for the approach using transfer learning by ResNet50 model and LSTM model for final prediction. Dataset for petals count (1) The above train-test dataset is used which is prepared programmatically. This dataset is used for K-Means segmentation, thresholding and edge detection methods.
  • 20. Petals counts Method 1 In this method a hue based image segmentation has been performed before petals calculation is performed. The above flower images (top left) are showing boundaries found out by it. Correctly calculated categories of petals are displayed in a table (top right). The metrics of total matched, unmatched and uncountable categories of flowers have been displayed on the left.
  • 21. Petals counts Method 2 In this method K-Means segmentation has been applied. The masked images after this segmentation can be seen above. The calculated petals count along with the thresholded images can be seen on left.
  • 22. Petals counts Method 3 In this method after K-Means segmentation is applied, the masked images have been sent through edge detection and watershed transformation. After final transformation the images can be seen above. The calculated petals count along marker images can be seen on the left side.
  • 23. Classification Method 1 In this classification method ResNet50 model is used to train the images from Train database as mentioned previously. 256 epochs have been planned. But after 144 epochs check point triggered to stop the training. The check point was triggered due to increase in validation loss. The resulted model was further fine tuned by providing SGD optimizer and learning rate 0.0001 and run 1 epoch that gave 90% validation accuracy.
  • 24. Classification Method 2 In this classification method ResNet50 model is used to transfer learning from the programmatically created train images. The feaures along with petals count info have been sent to a LSTM model for final training. The resulted LSTM model was sent to the test images for evaluating the accuracy of the model which turns out to be around 75%.
  • 26. Conclusion 01 02 03 ResNet 50 model has given 90% validation accuracy after fine tuning with SGD removing adam optimizer. Also transfer learning by ResNet50 and prediction by LSTM model gave 75% accuracy. Performance of ResNet50 model Calculation of petals from a flower image has obstacles to be perfect. Orientation of image may have hide some of the petals. Flower image has missing petals due to natural disturbances. Petals count challenges Only 16 out of 102 categories are correctly predicted through the hue based segmentation and triangle area of a petal out of circular area of flowers calculation. Method in which K-Means segmentation and thereafter thresholding or edge detection applied could not fetch satisfactory petals count. Petals count algorithms need more fine tuning
  • 27. Future works 01 02 03 Deep masking for segmenting the petals by identifying individual petal instances from a flower image remains another last but not least work that can be taken up further . Deep masking for instance segmentation In the calculation of petals sepals cannot be separated from petals during the execution of the function. This leaves a challenging note to differentiate between petals from sepals. Petals and sepals The flower images chosen for this research work have not turned out to be the best for calculating petals count. Some of the flower images have left challenges in finding their boundaries properly. Flower images need to be chosen carefully for petals count
  • 28. Thank You +91 9900580160 In case of any queries please contact https://linkedin.com/in/indranildatta-profile Indranil.datt@outlook.com