Keywords

1 Introduction

Image recognition is one of the core fields in computer vision which can use the outcome for example hand writing recognition like in and fingerprint recognition otherwise flush in extra significant studies for example medical researches etc., this value involving through the endeavour to facilitate must be involved for the classification method and by the amount of applications. In the cultivation of flowers, flower findings for apparent study, etc. applications of classification of flowers is used frequently.

Seed and bulb invention, flower trade, micro propagation, garden centre and preserved plants, and removal of important flowers oil comprises in the floriculture industry. Computerisation of flower classification is important in such belongings. Computerization of the categorisation of flower images is a essential job since these works are done physically and are very work comprehensive. There are more or less two millions and fifty thousand species of flowering plants as a named in the world. Categorise the plants by their flowers be able to be finished only by trained taxonomists and a lot of blooming flowers are detected in the park, backyard, wayside and various supplementary locations by skilled people also. People frequently must need flowers conduct manual or need the interrelated websites on the internet to peruse the knowledge with keywords because most of the public do not cover information concerning these flowers and in arrange to identify concerning them.

Artificial intelligence (AI) techniques in specific machine learning (ML) have been used over time to make easy classification, recognition and identification of patterns in biological data [33]. A multilayer neural network (NN) of CNN has achieved recognition in analysing image-based data [31]. In the midst of the current development of computing and superior understanding of AI different types of rule base and ML approaches have gained unrivalled awareness of the researchers in the last decade for the biological and healthcare big data mining, disease prediction and detection, text processing, disease management, and mobile health based app [25]. The main perception of deep learning (DL) is to be trained data representations through growing generalisation levels [25, 31, 33].

We are proposing a flower recognition approach with android application derived from image processing technique and deep convolutional neural network algorithm using Tensor Flow and Image Net in this work. People easily classify the flower image from our android device approach more accurately. We were used Google-11 and Tensorflow-5 dataset to implement of our proposed model including our local collection of flower.

2 Related Work

In recent years ML techniques have gained popularity in research for their abilities to predict patterns. They have been applied to many different fields including disease detection [12, 34, 39, 40, 44] and classification [11, 17, 30, 47], elderly care [22, 23] and fall detection [5, 6, 36], anomaly detection [8, 18, 51, 52], biological data mining [31, 33], cyber security [32], earthquake prediction [3, 4], financial prediction [41], safeguarding workers in workplaces [25], text analytics [43, 50], and urban planning [24].

Three primary contributions are discussed in [37]. Deep CNN for extracting the features and different machine learning algorithms for classifying objectives is used the categorization model to grow the performance of classifying of flower images in the first proposed model. In Second, the make use of image expansion for gaining enhanced substantiation consequences is established. KNN, Random Forest, Multi-Perceptions, and SVM are compared in last part of their research to measure the ability of the machine-learning classifiers. The author found 97.2% on oxford dataset using SVM and 98% accuracy on Oxford-17 using MLP.

Oxford 102 flowers dataset is used in [9] which containing of eight thousand one hundred eighty nine flowers images that fit in to 102 flower species. Four main steps were explained in this paper starting image augmentation, in gathering of images accustomed to settle in dataset images to generate further appropriate dataset for subsequently stage. To split the forefront from the backdrop image segmentation introduced. The accuracy rate was found 81.19% in this research.

Texture and color features used for flower classification by the author in [46]. From the segmented images, Texture and color features are extracted. GLCM method is used for Texture feature extraction and Color moment is used for color feature extraction. 95.0% accuracy of the system is found.

The authors uses a supervised model to extract flower content in [54] and [38] which consider the flower textures with graph cuts. The author in [29] used Novel Framework based Convolution Neural Network (CNN) to resolve this difficulty. They had implemented the algorithm on Oxford flower data set images from 102 species.

In [37] this author the flower sections are chosen to be individual in color (e.g., for example) and vary considerably in size, scale, and appearance developing a visual vocabulary that clearly represents different flowers (e.g., color, shape, and texture) for differentiate one flower from any more, Author can prevail over the ambiguities that be present stuck between flower sections. The results are presented in a data set of 1360 images with 17 flower species.

The [2] author used image classification using by Deep neural network (DDN) and five types of flowers that have been used the authors. They found the average result 90%. In [42] the system was developed using Python and Random Forest Classifier Method and Flower Identification used on RGB Histogram data. The Researchers found the proposed system is able to classify flower image with an average accuracy of 80.67% using 15 type of flower.

In [7] features based on color, texture, and shape on Image Classification and showed high result accuracy on oxford-17 dataset. Neural Network Based Image Processing is used for flower classification in [35]. They have proposed a method for classification of flowers based on Artificial Neural Network (ANN) classifier. GLCM and DWT of textural features is used of their proposed method. They got classification accuracy 85% more using GLCM features. The back propagation algorithm is used to train the neural network. Own dataset were created base of flowers of five classes, each one heaving ten flower images. They have got the result with MLP offers accuracy 87% with GLCM features.

ANN classifiers were studied in favor of the classification of flowers by the researcher in [20]. GLCM, DWT and Color features for instance normalized color histogram were used for textural features in their suggested model. A threshold based method is also used for flower image segmentation. A review of forty research work that make use of deep learning approaches used to different farming and food manufacture challenges performed by the authors in [26]. They study the specific agricultural harms with this research. The investigate result show that deep learning gives maximum accuracy.

A foreground background model is used in [10] where the segmentation is tested on five hundred seventy-eight flower species with two million fifty thousand images and hundred two flower species of OUFD with secure segmentation outcome. The contour matching algorithm is used getting the result in [48] which were not very encouraging of both flower and leaf images. In [13] K-means and OSTU segmentation algorithm were used. SVM and K-Nearest Neighbour (KNN) classifier is used for classifying the images to produce good results for those images.

In [28] the authors considered the transfer learning knowledge to retrain the flower category datasets based on Inception-v3 model of Tensor Flow platform which can very much increased the truthfulness of flower classification. Back propagation learning algorithm is used to trained Multilayer feed- forward networks in [21]. Color and shape features dependent segmentation model of flower is used by the authors in [13]. Training and testing were conducted on Oxford-102 flower and the findings illustrate a close to exact boundary recognition on a big set of images.

3 System Architecture

Our used system structural design of our proposed model is shown in following Fig. 1. This structural design showed that whole classification system in our model.

Fig. 1.
figure 1

System architecture in our proposed model.

4 Experimentation

4.1 Required Tools

Tensor Processing Unit (TPU). In May 2016 Google declared its TPU as an application of particular incorporated circuit that made exclusively for machine learning and tailored for TensorFlow [1]. In addition to the accessibility of the TPUs in Google Compute Engine, the 2nd generation announced in May 2017 which can deliver up to one hundred eighty teraflops of performance, and when prepared into clusters of sixty four TPUs, it is able to deliver 11.5 petaflops. The third-generation TPUs are announced by Google in May 2018 for supplying capable of four hundred twenty teraflops of execution and 128 GB HBM. Google were building TPUs easy to get to in beta on the Google Cloud Platform in February 2018.

Tensor Flow Lite. Tensor Flow Lite is a software stack exclusively for mobile expansion developed by Google in May 2017 [49]. A builder foretaste GPU inference engine for the mobile for the use of Open GL ES 3.1 Compute Shaders on Android devices and Metal Compute Shaders on iOS devices is released by Tensor Flow team in January 2019. Google introduced that their TensorFlow Lite Micro and ARM’s tensor would be integration in May 2019.

Keras. Keras is an online resource documents that helps a Python interface for ANN which uses as an interface for the Tensor Flow library. Keras version 2.3 is used to support multiple backends, as well as Tensor Flow, R, Theano, Microsoft Cognitive Toolkit, and Plaid ML where the version 2.4, only TensorFlow is supported [27].

Features. Keras has various implementations of generally second-hand neural-network building. The code is generated on GitHub, and community support forums include the GitHub issues page, and a Slack channel [14].

ImageNet. An image dataset organized consistent with the WordNet hierarchy referred to ImageNet [19]. WordNet, possibly described “synonym set” or “synset” by using multiple words or word phrases. More than 100,000 synsets in WordNet are there wher 80,000+( majority) are nouns of them. Each synset provide on average 1000 images in ImageNet. ImageNet can offer tens of millions of modestly sorted images for most of the concepts in the WordNet hierarchy [45]. The need for more data the ImageNet project is encouraged by a rising response in the image and vision research field [53]. Ween vision Image Net as a valuable resource to researchers in the academic world, as well as educators around the world [15, 16].

First training and testing dataset were divided from the input dataset where training and testing data were 80% and 20% respectively. We were used 11 category image data set in our research containing 4630 images where 3708 images for training set and 922images testing set. A sample of Google 11-flower dataset is shown in Fig. 2.

Fig. 2.
figure 2

Samples of 60 species of flowers in Google 11 -Flower Dataset.

Fig. 3.
figure 3

The feature extraction and classification system architecture.

We were proposed a two-step approach for the flower classification problem. The First step is designed multi stage CNN model. The model is constructed with input layer, five convolutional layers, seven rectified linear units (ReLu), five stochastic pooling layers, two dense and one Soft Max output layer. The proposed CNN architecture uses five convolutional layers with same window sizes followed by an activation function, and a rectified linear unit for non-linearities. The feature extraction and classification system architecture has given in Fig. 3.

The Second Step is designed by ImageNet Model on MobileNetV2 which is shown in Table 1. In MobileNetV2, there are two types of blocks. One is residual block with stride of 1.

Table 1. ImageNet Model on MobileNetV2

Another one is block with stride of 2 for down sizing. In both types of blocks 3 layers are there. 1\(\times \)1 convolution with ReLU6 is the first layer. The second layer is the depth wise convolution. Without any non-linearity 1\(\times \)1 convolution is the third layer also that is demanded that if ReLU is used over again. For all main experiments there is an extension factor t. where t = 6 for the post of Image. The internal output would get 64 \(\times \) t=64 \(\times \) \(6=384\) channels, if the input got 64 channels which is shown in Fig. 4.

Fig. 4.
figure 4

Image input architecture.

Fig. 5.
figure 5

Comparative results for Google-11 and Tensorflow-5 Flowers Dataset.

Fig. 6.
figure 6

Comparative results for Mobile NetV2, InceptionV2 and proposed model.

Fig. 7.
figure 7

Sample Output using android application with accuracy.

5 Result and Discussion

The major purpose of our study is to properly demonstrate the flower image as of the traditional flower dataset. The suggested model of CNN was used to the flower database for categorization. The database contains custom flower dataset were created by us in various orientations. The entire dataset were used with 10 classes. Dataset was having only flower images with reduced lighting provision. The training accuracy was 87.05%. and Image Net based MobileNetV2 model being trained Result accuracy was 98.07%. The comparative results for Google-11 and Tensorflow-5 Flowers Dataset has given in Fig. 5 and where the comparative results for Mobile NetV2, InceptionV2 and proposed model as shown in Fig. 6. Sample Output result using android application with accuracy as shown in Fig. 7.

6 Conclusion and Future Work

The rapid development of technology, Artificial Intelligence has been useful in many fields. An application of machine learning and two different learning forms of machine learning explained the working principle of machine learning in our proposed work. In addition, it is shown that a research of flower identification and classification to initiate the workflow of machine learning in prototype recognition. The pattern recognition and its procedure in pattern recognition were clearly explained in our study. The CNN algorithm, which is a Deep learning algorithm from the ImageNet method, was used. Future work includes using other features of the flowers in classification, for example, texture and shapes. Other method for classification can be explored to provide more accuracy. Also, the database should be improved to contain more data. The system is very easy to use, therefore, it can be implemented for other objects.