Introduction

An intense relationship can be established between food quality and customer satisfaction. Customers always play a key role while determining the food quality. Customer satisfaction about each quality attribute of a product contributes to the overall quality, in order to make assurance about the food product quality and also to safeguard the seafood market quality maintenance is now extremely important to importing countries [1]. Sensory attributes like texture, colour, size, contribute to the exterior quality of agricultural products [2].

The erroneous output resulting from improper evaluation method is a major problem while determining the quality measuring factors visually because the process is expensive and time-consuming “best-if-used-before date” and such factors decide the market price of the product. Quality can never be maintained properly if a manual inspection method is employed for the analysis of fruits and vegetables. On the other hand, the machine vision analysis method may be more appropriate because of precision in result. Recently for agricultural industries image processing and computer vision system is an area of interest to the researches [3].

Currently, agro-food sectors, healthcare and environmental monitoring systems are using mobile diagnostics which produces rapid results based on precise primary analysis techniques. This also helps to avoid the time-consuming analysis which requires expensive instruments and also trained manpower, thus the mobile diagnostic method is a cost-effective and time-saving method. The non-invasive and rapid food scanning system is one of the emerging sectors in food technology. The low-cost, rapid, portable smartphone-based application may be used on-site for a decisive conclusion and able to replace the routine tests, trained personnel-based laboratory practices [1].

Amlaki or amla or Indian gooseberry (Phyllanthus emblica) is a pharmaceutically important fruit known for its immense health benefits and recognized in traditional Indian (Ayurvedic), Tibetan and Chinese folk medicines [4, 5]. It is used as a raw material in different food product formulations like candy, toffee and bar [6]. Both in the production as well in the export of the fruit, India possessed the first position [7]. It is a rich source of ascorbic acid (500–1500 mg/100 g) along with aspartic acid, proline, cysteine, alanine, and glutamic acid (essential amino acids). Phosphorus, calcium and iron are the main minerals present in amla. Due to the presence of beneficial bioactive components and several essential nutrients, the fruit possess anti-inflammatory, anti-microbial and anti-oxidant activities [8]. The fruit is seasonal in nature and available from December to March, it is shelf-stable for around 6–9 days. The alteration in the textural feature, changes in shape, generation of prominent black and/or brown spots along with bruises are the visual attributes to measure the extent of freshness, though the visual attributes depend on the perception of the expert. The texture, colour and shape are the most significant parameters that contribute towards consumer acceptance [9].

Fruit rotting is a natural phenomenon. Initially, the thick and hard cell wall maintain the quality or freshness, but in due course, the outer cell walls become soft and ultimately broken down, thus the fruit is exposed to the ambient environment. The softer outer cell wall is easy to invade by microbes and pests, thus the softening of the cell wall is the key regulator for the shelf-stability of fruits [10]. A series of biochemical reactions take place to alter the shape, texture, colour and other characteristics of the fruit.

Fruits are different from each other by means of colour, texture and shape. There are large variations with respect to colour even for the same batch of fruits. This is one of the main challenges to develop smart phone-based fruit quality detection system. The seasonal variation, cultivar, maturity level, climate condition, and the position of the fruit in trees affect the pigment development in fruits, thus responsible for specific colour attributes of the fruit. Expert opinion with manual verification is practiced therefore in the industry as well as in market place by a retail consumer. The dependency on expert opinion during the on-site procurement of the fruit by common people (or by industry) may be the reason for compromising the quality of the fruit [11]. Supervised or semi-supervised learning followed by the development of a robust classification model may resolve the problem. In this work, a supervised learning-based classifier scheme has been developed for assessing the edibility of amla (Phyllanthus emblica) samples. The proposed model is simple in the analysis as it considers only an artificial neural network for designing the proposed three class freshness detection model. Six major features, viz., the Hue (H), Saturation (S) and Vital (V) components from the HSV colourspace and Red (R), Green (G) and Blue (B) layers of the RGB colourspace are analysed here; along with ten minor features such as mean, standard deviation, entropy, kurtosis, skewness, root mean square (RMS), contrast, correlation, energy and homogeneity using RGB colourspace and Gray-Level Co-Occurrence Matrix (GLCM) colour feature. The proposed model is found extremely efficient in detecting the freshness level, especially using the Hue and Green layer histograms of the HSV and RGB colourspace, respectively. Most importantly, the proposed scheme is designed to analyse the images of amla fruits captured using smartphones, which is an absolute common tool among the common people. The use of smart phone-captured image-based freshness detection model aids this field of research in a bidirectional manner. First of all, the portability and ease of accessibility of this device help in capturing images in markets or any other places to aid easy freshness detection.

The flexibility of the artificial neural network (ANN) in comparison with the classical methods as well as its compatibility with complex and unstructured data from the natural world makes ANN a useful tool for analysing different aspects of food technology [12]. Image analysis along with ANN is in practice for the development of the non-invasive tool in food quality control and food safety-related challenges. The ability of the neural classifier to search patterns with a supervised learning approach is another advantageous characteristic of the ANN classifier. Potentially active molecules against Escherichia coli are predicted with the ANN model [13]. The spray-dried powdered juice is classified based on its quality with the ANN model [14]. Researchers have investigated on internal and external features of oranges are detected with ANN [15].

Finally, and most importantly, since the images are captured in the smartphones itself and the artificial neural network (ANN)-based algorithm used here is extremely simple in analysis; it demonstrates all practical possibilities of a probable mobile application-based design of the proposed scheme. This would help people immensely to capture the images directly and receive an approximate measure of the freshness of the samples instantly.

The aim of the work is to develop supervised learning aided multiple feature analysis model for on-site freshness determination of Indian gooseberry (Phyllanthus emblica).

Related work

Table 1 lists some of the researches in this field, their method of analysis and key outcomes of their experiment; which have helped us immensely to design the proposed model of amla fruit freshness detection; as well as, in planning for the course of the experimental work.

Table 1 Comparative analysis of different research works employing supervised learning schemes

Methodology

The different stages of carrying out the experiment and attributes of design of the proposed ANN-based amla quality assessment model are illustrated in this section.

Collection of fruit samples

Fresh quality, sound and mature (fruits with age of 12–15 weeks after flowering with yellowish-green coloured skin and brown coloured seed, diameter 2.6–3.5 cm, weight 15–21 g, and total soluble solid 9–12°B; visual colour, firmness and size were the indices to ascertain the maturity. Shinier and lighter appearance was observed on the outer skin of the mature fruits in comparison to the immature (with creamy-white seed) one) Indian gooseberry (amla) fruits were procured (the fruits were harvested on the same day) from Agri Horticultural Society of India, Kolkata, India. In total 383 numbers of fruits were purchased, out of which 50 samples were selected randomly (the simple random sampling is considered during the sample collection with the margin of error (ME) of ± 0.05 and 95% confidence level (CL) at a sample proportion (SP) of 50%). The sample size (SZ) was determined using the formula as follows:

$${\text{SZ}} = {\text{Population size}} \times Z/\left( {Z + {\text{Population size}}{-}1} \right)$$
(1)

where

$$Z = C_{{\text{L}}}^{2} \times S_{{\text{P}}} \times \, \left( {1 - S_{{\text{P}}} } \right)/M_{{\text{E}}}^{2}$$
(2)

The samples were brought to the laboratory immediately after purchasing (within 15 min after procurement). The samples were kept in natural ambient conditions (room temperature 25 ± 5 °C, relative humidity 80 ± 5%) and away from direct sunlight. No preservatives from external sources and/or packaging materials were used to maintain the natural decay of the samples.

Acquisition of fruit images

From day 1 (the day of purchasing the fruit) images were acquisitioned thrice daily (in an interval of 8 h) with a smartphone (Redmi Note 9 Pro) with an 8 nm processor, 4 GB RAM, 128 GB memory, 48-megapixel camera, android system and Samsung Isocell GM2 sensor in different angles. The distance between the smartphone and amla fruits (placed on a table with dimension 0.61 × 0.91 m) were 20 cm. The room (5 × 4 m) was illuminated with 4 LED lights (Eveready 20-Watt LED Batten, 20 W, 113.5 × 2.5 × 3.6 cm, luminous flux of 100 lm/W Lumen, colour temperature 6000 K) (Fig. 1).

Fig. 1
figure 1

Schematic diagram for the experimental arrangement for capturing amla images a side view, b top view (figures not to scale)

Evaluation of good, intermediate and bad fruit

To evaluate the class of the fruits (good, intermediate and bad) with respect to the colour, shape and texture a semi-trained evaluator panel was formed. During the selection of the panelists (30 males and 39 females in the age group of 21–45 years), ISO 8586-1 (1993) was maintained; while the ability of colour identification and differentiating two fruits were judged as per the ISO 5496:2005 and ISO 10399:2004, respectively [27]. The colour, shape and texture are the three sensory attributes considered by the panel members to ascertain the class of a specific sample.

The naïve assessors (thrice the number of the panelists) were recruited (mixed panel) based on their willingness, availability, attitudes towards the amla fruit, aptitude and knowledge, and communication ability. They were trained to become the initiated assessors. Finally, the panel members were selected based on screening test like colour vision, sensitivity test, matching test, discriminating and acuity test, and descriptive ability to get the expert assessors. Testing and monitoring of the performance of the panelists were analysed by their reproducibility and repeatability.

Image pre-processing

A minimal pre-processing is applied over the amla images before application into the proposed model. The amla fruits are round in shape; hence, the images have been cropped from the centre part of it to accommodate the maximum amla surface in the cropped square image. Further, the image has been resized to provide uniformity to each of the sample images. Apart from this cropping and resizing, no other specific pre-processing is applied with the images which considerably reduce the computational intricacy of the proposed scheme.

Feature extraction

The proposed model is developed using six major colour spectrum-based features including RGB and HSV colourspace and 10 minor image features as mentioned earlier. These are described as follows:

Major features

The RGB image space contains 3 layers of red, green and blue levels independently. The cropped and resized images, which are already in RGB colourspace by default, are analysed further to separate these three layers. Each layer of the images is analysed to produce the histogram map, which comprises the frequency distribution of occurrence of each intensity level of the image in the range of 0–255. These red, green and blue layer histograms are used as the three of the primary features of this work.

The same cropped and resized images and now converted to HSV colourspace from the default RGB colourspace. These HSV colourspace images are again analysed to segregate the three component layers, i.e., hue, saturation and value components. Histogram maps of each of these layers are now developed to verify the pattern of change in intensity levels among the three classes.

R (red channel), G (green channel) and B (blue channel) Features

The R (red channel), G (green channel) and B (blue channel) values are important features in image analysis. The red, green, and blue values of an image can be described as RGB value. Zero value implies no colour representation while the maximum concentrated colour is represented by the value 255. Each of the colours (red, green and blue) uses 8 bits each.

H (hue), S (saturation) and V (value) feature extraction

HSV segregates luma (intensity of the image), from colour information (chroma). That is useful during the histogram equalization of the image. During the computer vision application, the colour components should be separated from intensity to remove the shadow or to ascertain the robustness of change in lighting, thus HSV are the key features for smartphone-based image processing. The features named H (hue), S (saturation) and V (value) are determined as follows:

$${\text{H}} = \left\{ {\begin{array}{*{20}c} {\theta B \le G} \\ {360^\circ - \theta B \ge G} \\ \end{array} } \right\}$$
(3)
$$\theta = \cos^{ - 1} \left[ {\sqrt {\frac{{\left( {{\text{R}} - {\text{G}}} \right) + \left( {{\text{R}} - {\text{B}}} \right)}}{{\left( {{\text{R}} - {\text{G}}} \right)^{2} + \left( {{\text{R}} - {\text{B}}} \right)\left( {{\text{G}} - {\text{B}}} \right)^{1/2} }}} } \right]$$
(4)
$${\text{S}} = 1 - \frac{3}{{{\text{R}} + {\text{G}} + {\text{B}}}}$$
(5)
$$I = \frac{1}{3} \left( {{\text{R}} + {\text{G}} + {\text{B}}} \right)$$
(6)

where R = red, G = green, B = blue channel value.

Minor features

Apart from these major features, another set of minor or secondary features are also analysed using the proposed ANN architecture in order to distinguish between the three freshness classes of amla samples. These features of primary the different parameters of the image which include mean, standard deviation, entropy, kurtosis, skewness, RMS, contrast, correlation, energy and homogeneity using Gray-Level Co-Occurrence Matrix (GLCM). These are described in detail in the following analysis.

Gray-level co-occurrence matrix (GLCM) features

The texture of the sample image can be described through GLCM features by considering how often pairs of pixels with specific values and in a specified spatial relationship occur in the image, creating a GLCM, and then extracting statistical measures from this matrix. It is basically the computational characteristics of the probability density function of the grey level matrix of the concerned image and can be represented as follows:

$${\text{GLCM}}\left( {p_{1} ,p_{2} } \right);\quad p_{1} ,p_{2} = 0,1,2,3, \ldots P - 1$$
(7)

where P = numbers of pixels present in the image.

The GLCM features considered for this work are mean [28], standard deviation [29], entropy [2], kurtosis, skewness, RMS, contrast [2], correlation [28], energy and homogeneity [2, 16, 30, 31].

Basic methodology of classifier design

Six major and ten minor features of the amla image samples have been analysed using a supervised learning scheme employing artificial neural network architecture. A gradual changes in the surface colour of the samples with days of progression have been observed. It has been observed that the Amla samples gradually develop dark patches, wrinkles all over the surface; as well as, develop a gradual variation of the base colour of the surface. Hence, the colour features of the samples have been considered only, instead of concentrating more on the textures of the samples. Thus, three major colour features of the RGB colourspace of the amla images, e.g., red, green and blue layer have been considered; as well as the image has been converted to HSV colourspace and obtained the hue, saturation and vital component features. These features are analysed independently using separate ANN models to develop the classification of the amla images. Three classes have been predefined as Good, Intermediate and Bad, as mentioned earlier. The proposed models are validated using fivefold cross-validation to remove sampling error while validating the scheme.

Apart from these six major colour features, ten other minor features, viz, Mean, Standard Deviation, Entropy, Kurtosis, Skewness, RMS, Contrast, Correlation, Energy and Homogeneity of the sample images have also been studied with independent ANN architectures. These features represent specific parameters of the images and are different in nature from the colour histograms. Thus, an effort has been made to study some of the general and diverse features of the images and tried to distinguish the difference between the three different classes. The difference that lies in analysis methods with major and minor features is that the major features contain the histogram values of the basic colour features, whereas the minor features represent a single value of an entire image, such as mean, standard deviation etc.; all of which are representations of the parametric variation of the intensity values of the image pixels. Thus, each image is represented by an array of 256 scalar quantities in case of major features; whereas each image is denoted by a single scalar point in case of minor features. Thus, the study has been segregated into the analysis using the ANN architecture with the major and minor features. Similarly, the validation of each model for the two separate classes of features is done independently as well as the results are also described separately. The proposed freshness classification scheme is also described graphically in Fig. 2.

Fig. 2
figure 2

Flowchart of the proposed algorithm

Ann architecture design

A simple three-layered artificial neural network architecture is designed here to implement the proposed algorithm. The three layers include an input layer, a hidden layer, and an output layer. The input layer receives the input attributes, which are the six different histogram features of the HSV and RGB colourmap, and the ten minor features obtained from the RGB image or the GLCM of the grayscale image. These features have been analysed independently, using separate networks. Next is the hidden layer, which receives weighted input values from the input layer and analyses the signals using a predefined transfer function to predict the output. Thus, the output layer provides the response of a specific input [2, 32]. In the proposed work, the output layer yields information regarding the quality grades of the amla samples. A typical sigmoidal activating function is used in this work [33, 34]. In this work, the input to the input layer is the histogram features while considering the major features; or the array of scalar values for the minor features.

The training set, test set, and validation set are distributed here in the ratio of 70:15:15. A high number, with 1000 iterations is carried out here. The learning rate is also varied from 0.5 to 0.9. The proposed neural network model for freshness assessment of amla images is developed with 1 input layer with 256 input nodes, 10 hidden layers and 1 output layer with 3 output nodes for the major feature analysis (except R) model as it contained 256 scalar points of the RGB or the HSV histograms; and 1 input layer with 1 input node, 10 hidden layers and 1 output layer with 3 output nodes for the minor feature analysis (except Kurtosis) model, as these contained single point representation of the image. For the R and Kurtosis model, the hidden layers were 5. These ANN configurations are shown in Fig. 3. The Levenberg–Marquardt ANN model is adopted here with a nonlinear activation function and backpropagation algorithm for the proposed feed-forward ANN architecture.

Fig. 3
figure 3

The ANN model for a major and b minor features

Analysis of features

Each image has been analysed to extract the major and the minor features for the three classes. Six major features are considered here: Red, Green and Blue layer of the RGB colourspace, and Hue, Saturation and Vital components from the HSV colourspace. The total set of 50 images from each class have been studied further and constructed the histograms of each of the six major feature layers. The average levels of the 50 sample histograms are shown in Figs. 4 and 5 for the RGB and the HSV features, respectively. These figures apparently demonstrate that the hue levels of the three classes are quite distinctly separable; especially the Bad class is distinctly separable from the remaining two classes. Among the rest of the major features, the green layer histogram also apparently indicates a high probability for distinct separation of classes. The remaining features also show definite trends for classification; although, with reduced affirmation. Hence, all these major features are considered for analysis using the proposed ANN-based model.

Fig. 4
figure 4

Frequency distribution vs. intensity value of a red, b green and c blue layers

Fig. 5
figure 5

Frequency distribution vs. intensity value of a hue, b saturation and c vital components

Minor features, on the other hand, are analysed initially using a different methodology; since these features are parametric values only, inserted of an array of scalar values similar to the histograms of the major features. In total 50 samples of each class are analysed to develop boxplots for the three separate classes, from which separation of the sample images among the three classes could well be inferred. The boxplots of the ten minor features are shown from Figs. 6, 7, 8, 9 and 10, respectively.

Fig. 6
figure 6

Box plot separating three freshness classes using minor features a mean and b standard deviation (SD)

Fig. 7
figure 7

Box plot separating three freshness classes using minor features a entropy and b kurtosis

Fig. 8
figure 8

Box plot separating three freshness classes using minor features a skewness and b root mean square (RMS)

Fig. 9
figure 9

Box plot separating three freshness classes using minor features a contrast and b correlation

Fig. 10
figure 10

Box plot separating three freshness classes using minor features a energy and b homogeneity

These boxplots well represent the effectiveness of each minor feature for the freshness class separation. It is well observed from these figures that 4 minor features: Kurtosis (Fig. 7b), Contrast (Fig. 9a), Energy (Fig. 10a) and Homogeneity (Fig. 10b) are the most prominent out of the total 10 number of minor features in segregating freshness classes most effectively. This inference stands strong as these have the considerable separation in the respective class medians, as well as, in the quartile levels as observed from the respective figures; although, all of these features have some overlap with the neighbouring classes. Other minor features, except these 4, have a major overlap of values among the three freshness classes, and in some of the cases, these are very poorly separable, or even inseparable due to almost complete overlap. Hence, these less efficient features are discarded for the rest of the analysis, and only the 4 identifiable features, viz., Kurtosis, Contrast, Energy, and Homogeneity are considered for subsequent analysis using the proposed supervised learning algorithm employing an artificial neural network.

Result and discussion

The proposed classifier is validated using a fivefold cross-validation scheme to classify samples into Good, Intermediate and Bad classes. This is described in the next section.

Method of cross-validation

The k-fold cross-validation is often considered in several researches to validate classifier models. A fivefold cross-validation model has been constructed in this proposed work to establish the proposed work due to its easy implementation characteristics along with simplicity. Fifty samples have been studied in this proposed work throughout 8 days and images were captured. Fifty image samples from each class have been studied from each of the three groups: Good, Intermediate and Bad. Hence, each class contains 50 samples in total, which further makes the total data set length 150. Each group of the sample are further partitioned randomly into 5 sets to contain 10 random samples of each class in each set. Thus, each set contains 10 images from each three classes, thereby, making a total of 30 samples in each set. Five such sets are constructed which are used with the fivefold cross-validation model. The proposed ANN model, thus, uses four such subsets, containing 40 samples of each of the three classes, for training while the fifth subset, containing 10 samples from each class, is used as a testing dataset. Similar random sets are constructed for each of the three freshness classes. The entire process is repeated five times (k = 5) considering each of the subsets once for testing. The illustrative depiction of the cross-validation is presented in Fig. 11. The cross-validation method may reduce or nullify the biasness possibility for the proposed ANN model.

Fig. 11
figure 11

Schematic representation of fivefold cross-validation method

Results with major features

In this work, the accuracy levels of freshness classification of the amla images using few major and minor features with the proposed ANN models have been computed. In this sub-section, the detailed results obtained from the fivefold cross-validation model using the 6 major colour features of the images have been described. These results are shown in Tables 2 and 3.

Table 2 ANN classifier outcomes using the HSV layers
Table 3 ANN classifier outcomes using the RGB layers

Results with minor features

The proposed ANN model is further tested for classification accuracy using the minor features obtained from the fivefold cross-validation model. These results are shown in Table 4, along with the final accuracy levels obtained using the major features, described in the earlier sub-section.

Table 4 Summarized form of ANN classifier outcomes using selected minor features

Analysis of results and key features of the work

Analysis of Tables 2, 3 and 4 reveal important qualities regarding the outcomes of the proposed classifier. Table 4 shows the summarized form of the results, which shows that Hue histograms of the images yield the highest efficiency of 96.533% for freshness classification of amla sample images, followed by 94.4% efficiency, obtained with the green layer of the RGB colourmap. This level of efficiency of classification is considerably high compared to existing researches as referred to in Table 2. All the other remaining features such as Saturation and Vital components of the HSV colourmap and Red and Blue components of the RGB colourmap yield more than 83% classifier accuracy with the three freshness class model; which is again appreciable.

Freshness analysis has been carried out by researchers for fruits like apple [35,36,37], banana [38], amla [39] and mangoes [40] and vegetables like eggplant [41]. The findings of the present work is in agreement with the previous reported results. Apart from this high efficiency of classification, the proposed work is using a simple ANN architecture as the primary classifier tool, which confirms reduced computational burden. More importantly, the model uses amla images captured using smartphones only. Smartphones are portable devices and are widely accessed by a major group of people. The use of smartphones enables the widespread use of the proposed algorithm. High efficiency of freshness classification, combined with ease of computation and image capturing using smartphones enables a broad scope for applying the proposed model in developing mobile application software. This would ensure people to capture fruit images at any point in the market and simultaneously analyse the image using the probable application to obtain an instant prediction of the freshness of the fruit. This would enable wide and effective use of the proposed classifier and establish its practicality in this field of research.

Receiver operating characteristic (ROC) curve analysis

Upon variation of the discrimination threshold the classifier’s performance is illustrated by Fig. 10 (ROC curve). The ROC curve has been constructed by plotting sensitivity (true positive rate) against 1-specificity (false positive rate) for each possible CO (cut-off) value.

$${\text{Ttrue positive rate}}\left( {{\text{CO}}_{n} } \right) = {\text{P}}\left( {{\text{QR}} \ge {\text{CO}}|{\text{E}} + } \right)$$
(8)
$${\text{False positive rate}}\left( {{\text{CO}}_{n} } \right) = {\text{P}}\left( {{\text{QR}} \ge {\text{CO}}|{\text{E}} - } \right)$$
(9)

where COn is the nth cut-off value, P is the probability density, E+, E− = positive and negative error respectively, QR = quantitative results.

Therefore, ROC curve can be represented as follows:

$${\text{ROC}} = \{ {\text{False positive rate}}\left( {{\text{CO}}_{n} } \right),{\text{Ttrue positive rate}}\left( {{\text{CO}}_{n} } \right),\;{\text{CO}} \in \left( { - \infty , + \infty } \right)$$
(10)

In terms of QR, the ROC can be expressed as follows:

$${\text{ROC}} = \{ ({\text{QR}},{\text{ROC}}({\text{QR}})),\;{\text{QR}} \in \left( {0, \, 1} \right)$$
(11)

where the ROC maps QR to true positive rate (COn), and COn matching to false positive rate (COn) = QR.

Alteration in the scalar threshold value in the proposed ANN model is able to provide the ROC curve. The performance of the proposed ANN model (nonparametric classifier) can be analysed with the aid of the ROC curve [42]. The greater the area under the curve (AUC) better will be the performance of the model. The features with higher AUC thus build a more robust model, which is able to predict the class of the sample with higher reliability. Figure 12a, reveals that the ROC curve for the model built with hue feature possessed maximum AUC for training, testing, validation, and for the overall model, while the same for the model built with kurtosis feature possessed minimum AUC (Fig. 12b). Due to the scale-invariant nature of AUC, it measures the precision of the predictions, rather than their absolute values. It is also invariant with respect to the classification threshold. Irrespective of the classification threshold it helps to estimate the prediction quality of the proposed model.

Fig. 12
figure 12

ROC curve for the ANN model built with feature a hue and b kurtosis

Conclusion

The proposed work is about the prediction of the freshness of amla (Phyllanthus emblica) fruit images among the three predefined freshness classes. The model uses supervised learning tools such as artificial neural network (ANN) to analyse colour gradient based on major image features such as Hue, Saturation and Vital components of the HSV colourmap and Red, Green and Blue layers of the RGB colourmap; and minor features such as mean, standard deviation, entropy, kurtosis, skewness, RMS, contrast, correlation, energy and homogeneity using RGB colourspace and GLCM colour features. The proposed scheme contains reduced computational complexity as it is designed using ANN only. A high efficiency of classification of the proposed model, especially using Hue and Green layers of the amla images; ease of computation and more importantly, use of smartphones for capturing images enable its possibility of using the algorithm in developing smartphones application-based software for instant freshness detection of amla fruits.