SlideShare a Scribd company logo
1 of 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

More Related Content

What's hot

What's hot (20)

Mysql:Operators
Mysql:OperatorsMysql:Operators
Mysql:Operators
 
Collections in Java
Collections in JavaCollections in Java
Collections in Java
 
Manipulating data
Manipulating dataManipulating data
Manipulating data
 
Applets
AppletsApplets
Applets
 
Queues
QueuesQueues
Queues
 
File system vs DBMS
File system vs DBMSFile system vs DBMS
File system vs DBMS
 
Mysql
MysqlMysql
Mysql
 
encapsulation, inheritance, overriding, overloading
encapsulation, inheritance, overriding, overloadingencapsulation, inheritance, overriding, overloading
encapsulation, inheritance, overriding, overloading
 
Oracle Database Trigger
Oracle Database TriggerOracle Database Trigger
Oracle Database Trigger
 
Introduction to method overloading & method overriding in java hdm
Introduction to method overloading & method overriding  in java  hdmIntroduction to method overloading & method overriding  in java  hdm
Introduction to method overloading & method overriding in java hdm
 
200819 NAVER TECH CONCERT 01_100만 달러짜리 빠른 앱을 만드는 비법 전수
200819 NAVER TECH CONCERT 01_100만 달러짜리 빠른 앱을 만드는 비법 전수200819 NAVER TECH CONCERT 01_100만 달러짜리 빠른 앱을 만드는 비법 전수
200819 NAVER TECH CONCERT 01_100만 달러짜리 빠른 앱을 만드는 비법 전수
 
DBMS 3 | ER Diagram to Relational Schema
DBMS 3 | ER Diagram to Relational SchemaDBMS 3 | ER Diagram to Relational Schema
DBMS 3 | ER Diagram to Relational Schema
 
Nested Queries Lecture
Nested Queries LectureNested Queries Lecture
Nested Queries Lecture
 
Applications of data structures
Applications of data structuresApplications of data structures
Applications of data structures
 
Database Chapter 3
Database Chapter 3Database Chapter 3
Database Chapter 3
 
Stack and Queue by M.Gomathi Lecturer
Stack and Queue by M.Gomathi LecturerStack and Queue by M.Gomathi Lecturer
Stack and Queue by M.Gomathi Lecturer
 
Overloading and overriding in vb.net
Overloading and overriding in vb.netOverloading and overriding in vb.net
Overloading and overriding in vb.net
 
Inheritance in java
Inheritance in java Inheritance in java
Inheritance in java
 
Application of Data structure
Application of Data structureApplication of Data structure
Application of Data structure
 
Joins and unions
Joins and unionsJoins and unions
Joins and unions
 

Similar to Petals Count and Flower Image Classification using computer vision

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
IJERD 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 segmentation
IAEME Publication
 

Similar to 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 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
 
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
 

Recently uploaded

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
 

Recently uploaded (20)

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
 
Apidays Singapore 2024 - Modernizing Securities Finance by Madhu Subbu
Apidays Singapore 2024 - Modernizing Securities Finance by Madhu SubbuApidays Singapore 2024 - Modernizing Securities Finance by Madhu Subbu
Apidays Singapore 2024 - Modernizing Securities Finance by Madhu Subbu
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : Uncertainty
 
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
 
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...
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CV
 
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...
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024
 
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
 
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor Presentation
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
 
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
 
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
 
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
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 
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
 
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
 
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...
 
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
 
Manulife - Insurer Transformation Award 2024
Manulife - Insurer Transformation Award 2024Manulife - Insurer Transformation Award 2024
Manulife - Insurer Transformation 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