You are on page 1of 8

Talanta 148 (2016) 5461

Contents lists available at ScienceDirect

Talanta
journal homepage: www.elsevier.com/locate/talanta

Prediction of banana quality indices from color features using support


vector regression
Alireza Sanaeifar a, Adel Bakhshipour a, Miguel de la Guardia b,n
a
Biosystems Engineering Department, Shiraz University, Shiraz, Iran
b
Department of Analytical Chemistry, University of Valencia, 46100 Burjassot, Spain

art ic l e i nf o a b s t r a c t

Article history: Banana undergoes signicant quality indices and color transformations during shelf-life process, which
Received 9 September 2015 in turn affect important chemical and physical characteristics for the organoleptic quality of banana. A
Received in revised form computer vision system was implemented in order to evaluate color of banana in RGB, L*a*b* and HSV
16 October 2015
color spaces, and changes in color features of banana during shelf-life were employed for the quantitative
Accepted 24 October 2015
prediction of quality indices. The radial basis function (RBF) was applied as the kernel function of support
Available online 26 October 2015
vector regression (SVR) and the color features, in different color spaces, were selected as the inputs of the
Keywords: model, being determined total soluble solids, pH, titratable acidity and rmness as the output. Experi-
Banana mental results provided an improvement in predictive accuracy as compared with those obtained by
Color features
using articial neural network (ANN).
Firmness
& 2015 Elsevier B.V. All rights reserved.
pH
Total soluble solids
Support vector regression

1. Introduction representative of the whole because of difculties of destructively


analyzing every unit of fruit [3].
Banana is one of the most popular fruits in the world and a The development of instrumental non-destructive techniques
main one in international trade [1]. In 2011, bananas (Musa spp.) could be highly appropriate to increase the number of fruit pieces
were grown in 10.6 million ha with an average fruit yield of which can be analyzed, to repeat several times the analysis on the
13.6 t ha  1 [2], being Cavendish the most widely banana cultivar. same sample at a given time or during its physiological evolution,
Suitable temperature, humidity, time and air ow are all needed and to access to real-time information [7].
for ripening of bananas and by using controlled ethylene gas, the Several soft and non-destructive techniques that can be applied
ripening treatment of banana could be articially made [3]. During for quality measurement include proton transfer reaction mass
banana ripening period, the peel color changes, the avor evolves spectrometry (PTR-MS) [8], ultrasound [9], magnetic resonance
and the pulp softens. Banana peel color changes from green to imaging (MRI) [10], time-resolved reectance spectroscopy [11],
yellow, with brown spots appearing on the yellow color at the end X-ray and computed tomography (CT) [12], laser-induced uor-
of shelf-life; being the synthesis of few pigments the reason of this escence spectroscopy (LIFS) [13], Fourier transform infrared (FTIR)
change in peel color [4]. So, on-line quality control of banana [14], sonic technique [15], near infrared spectroscopy (NIRS) [16],
sound velocity [17], optical chlorophyll sensing system [18], ca-
during ripening treatment is quite important to keep a rm pulp
pacitance technique [5] and electronic nose systems [19]. Never-
texture, good color and avor and also to prevent from bruise [5].
theless, most of the aforementioned analytical techniques are far
This makes monitoring of quality parameters in the orchard,
from reaching a practical application and, sometimes, are time-
package and delivery points necessary in producing acceptable
consuming, expensive, difcult to be implemented and require to
bananas for the customer [3].
be made by trained personnel [7].
Most of the fruit quality measurement methods are destructive
Near-infrared (NIR) spectroscopy has been used to correlate
such as pulp to peel ratio determination and fruit rmness, which
rmness and soluble solid content (SSC) in Cavendish bananas at
are mainly based on rheological properties [6]. Also, these meth-
different stages of ripeness [3,20]. On the other hand, Baiano et al.
ods do not sufciently monitor the quality of banana fruits during
[7] proposed the use of hyperspectral imaging technique for pre-
ripening period [5], being employed just a small set of samples as diction of some physico-chemical parameters of table grapes.
Concerning banana shelf life, studies made by Wang et al. [21],
n
Corresponding author. Fax: 34 96 3544838. Bora et al. [22] and Mendoza et al. [23] evaluated the ripening
E-mail address: Miguel.Delaguardia@uv.es (M. de la Guardia). stage of bananas from their color but without making any

http://dx.doi.org/10.1016/j.talanta.2015.10.073
0039-9140/& 2015 Elsevier B.V. All rights reserved.
A. Sanaeifar et al. / Talanta 148 (2016) 5461 55

quantitative study about their quality indices. However there is no volatile aroma. Senescence is the period when chemical synthe-
precedent, in our own knowledge, about the use of external color sizing pathways give way to destruction processes, leading to
of bananas to evaluate their quality. aging and death of tissue. Additionally, it has been identied seven
At rst instance, fruits quality is evaluated by looking at their stages in the ripening period of bananas which change the color
color, gloss, size and, secondly, by texture, total soluble solids (TSS) from green to yellow and brown [35].
content and acidity. These parameters may provide important Before entering the warehouse, bananas are in the rst ripen-
information to the consumer in the choice of food supply. A special ing stage and after leaving the warehouse, they are in the fth
emphasis should be placed on quality attribution in trading. The ripening stage. For performing the experiments, 15 bananas of the
ripening indices traditionally used to evaluate changes in skin same size, weight and ripening stage, were daily transferred from
color, softening, titratable acidity, soluble solids concentration and the warehouse to the laboratory for image analysis. The bananas
volatile compounds [7,24]. On the other hand, the application of were picked from the same position of each branch. Then tests
sensors; such as optical, chemical, and tactile ones, provides a high were done on the samples till the fth ripening stage. Moreover,
correlation with the human senses. Different techniques have been all the measurements were performed in the day of transferring
reported to determine various quality parameters of fruits. How- from the warehouse. For experiments conducted during the se-
ever, there is currently no single or combination of techniques and nescence period, banana samples were selected after the end of
computational methods available to quantify the overall quality of fth ripening stage and were studied during additional 4 days
foods [25]. until mealiness completion. This period represents the time in-
Color can be correlated with other quality attributes such as terval between delivering bananas from the warehouse and reach
sensory, nutritional and visual or non-visual defects and helps to to distribution centers and as long as are usable by the consumer.
control them directly [25,26]. Color is considered a basic physical In general, after completing the ripening period in ve stages,
property of agro-food products. In fact, color plays an important senescence period starts and this period takes four days. All this
role in the evaluation of external quality in food industries and process is represented shelf-life period of banana samples.
food engineering research [7,27]. The role of color is important to
evaluate food quality, but the use of color parameters to predict 2.2. Machine vision system
specic quality indices of foods has been less explored and re-
presents an opportunity among researchers. A machine vision system was designed that includes two main
Industrial food product quality was monitored and controlled parts. An image acquisition system to take images from banana
by an on-line imaging system [25, 28]. However, there are only few samples at any stage of shelf-life. The second part was an image
studies available on modeling kinetics of greenyellow transfor- analysis algorithm written in MATLAB v8.1 (The Mathworks, Na-
mations in fruits and vegetables. Engineers need quantitative tick, MA, USA) software for automatically emphasizing the fruit
models to develop and improve processes [29]. Therefore, current surface in the images as the region of interest and extract average
investigation was conducted to study changes in color features of color features from the skin of the banana fruits.
banana during shelf-life and to evaluate the use of image analysis
technique as a rapid and nondestructive alternative for the accu- 2.2.1. Image acquisition
rate prediction of quality indices. The setup used to take the images from bananas consisted of
On the other hand, the scientic literature shows the valuable four main compartments for: (1) lighting and imaging system,
application of articial intelligence in food research eld [3034] (2) computer case, (3) monitor and user interfaces and
and radial basis function-based support vector regression has been (4) accessories.
employed to process color data of bananas at different shelf-life The D65 standard light source, which is commonly used in food
stages. image processing studies, was employed in this research to pro-
vide reproducible, uniform-steady lighting conditions [36]. A box
made of wood with the interior walls painted in mat black was
2. Materials and methods used as the illumination chamber. Two uorescent lamps (Natural
Daylight, 230 V/12 W) with a color reproduction index up to 95%
2.1. Experimental material and color temperature of 6500 K were placed on left and right
sides of the box. PVC sheets were located in front of the lamps to
Banana fruits (Cavendish variety) imported from the Phi- avoid direct lighting and shading. The banana samples were
lippines were used in this research. The banana fruits were stored mounted on top of a black tray with very low reectivity to be
at 14 C during transportation. Then, the fruits were stored in an adequately discriminable from the background. High quality
airtight warehouse. Bananas' ripening was completed in 4 days. In images from samples were taken by a Power shot color camera
the rst day, fruits were stored at 20 C, and in the second day, (Canon EOS kiss  4 digital color camera, Japan, 18MP) with re-
ethylene gas was injected. In the third day, ethylene was removed mote capturing capability mounted at a vertical distance of 25 cm
and temperature decreased to 18 C and nally temperature was above the samples.
decreased so that it achieved 11 C in the fourth day. The control of Camera and uorescent lamps were turned on 1 h before image
temperature, humidity and ethylene gas concentration in the ri- recording to achieve a stable lightening [37]. All of the images
pening room are very important. Bananas were kept in the were taken under totally stabilized camera characteristics ac-
warehouse at the humidity level of 8588% for 4 days, as this time cording to Table 1 variables. The images were transferred auto-
period needed for completing the ripening treatment of fruits. At matically to the computer and loaded into image processing
this site, ripeness is currently assessed visually by comparing the toolbox of MATLAB software for further operations.
peel color of banana with standardized color charts describing
various stages of ripening. 2.2.2. Color feature extraction
Fruit development can generally be divided into three major The owchart of image analysis algorithm is illustrated in Fig. 1.
steps: growth, ripening, and senescence. The period of growth Image enhancement processes including common median ltering
generally involves cell division and enlargement, which accounts was the rst operation performed on the loaded RGB images to
for the increasing size of the fruit. During ripening fruit become suppress noises.
soft textured, and accumulate soluble sugars, pigments and Loaded images were segmented, which is one of the most
56 A. Sanaeifar et al. / Talanta 148 (2016) 5461

Table 1 Table 2
Camera characteristics. Performance criteria.

Variable Value Criteria Calculation

Image size 5184  3456 pixels Root mean squared error (RMSE) 1
RMSE = ni = 1 (Pi Ai )2
Zoom No zoom n
Flash mode No ash Coefcient of determination n (Pi Ai )2
Sensitivity ISO-100 R2 = 1 ( i=1
)
n Ai2
i=1
White balance Fluorescence
Operation mode Manual
Aperture Av. f/4.0
Exposure time Av. 1/30 s and CIE L*a*b* are described comprehensively in literatures
Image type JPEG [38,39].
Macro On The values describing the red, green, blue, hue, saturation, in-
Focal length 24 mm
tensity, lightness, and also a* and b* chromatic components were
Resolution 72 dpi
determined on the surface of bananas. The extracted values were
then averaged and saved for further analysis.
important steps of image analysis, to recognize the region of in-
terest automatically in the images. Based on visual testing, green 2.3. Measurement of quality indices
color component was considered as the best one to discriminate
between bananas and image background. So the green component Total soluble solids (TSS), titratable acidity (TA) and pH are
image was extracted from each RGB image. Optimal threshold of chemical indices that are used to asses quality and ripeness of
green intensities was calculated based on Otsu algorithm and banana fruit. To measure TSS, 10 g samples were picked from the
applied to the green channel image as a criterion to differentiate esh of bananas (along length of fruit) and diluted in 50 g of dis-
the banana samples from the background. tilled water in a blender for 1 min. TSS was measured using a re-
In order to extract color information from the banana surface fractometer [5]. The TA was established by titrating banana juice
and to eliminate data related to image background, the binary with 0.1 M NaOH till to obtain a pH of 8.18.3 and calculating the
image and the original color image were superimposed together result as malic acid. The pH of juice was measured by a pH meter
using logical AND operator. The result was a RGB image with color Mettler Toledo Delta 320 (Geneva, Switzerland). Firmness, which
values and zeros corresponding to the banana surface and back- is one of the parameters that best correlates with ripeness, is de-
ground respectively. ned as the maximum force in Newton required until tissue failure
The resulted image was then transformed from RGB into HSV is occurred. To measure the pulp rmness of samples, an Instron
and L*a*b* color spaces. Methods of color space conversion to HSV universal testing machine Model SANTAM ST-5, with an 8 mm

Fig. 1. Flowchart of the algorithm employed for color measurement of banana samples.
A. Sanaeifar et al. / Talanta 148 (2016) 5461 57

evaluate the performance of the models built. This technique is


190
especially used in cases where the data set is relatively small and
180 limited. This technique picks a single observation case among all
R cases as validation data, and the other data are used to derive
170 predictive function. This operation is repeated for all observations.
G
So, all of the samples are once used as the validation data [40]. In
160 B this way the maximum number of samples are used to calibrate
RGB

150 and validate the model.

140 2.4.1. Support vector regression (SVR)


Support vector machine is one of machine learning method
130 that has recently become popular and widely used and in-
vestigated because of its ability in prediction for both, classica-
120
0 1 2 3 4 5 6 7 8 9 tion and regression [41]. The basic idea of the support vector re-
Shelf-life stages gression (SVR) is to non-linearly map the input variables into a
high dimensional feature space where they are linearly correlated
with the output variable [42].
70
The -support vector regression (SVR) was introduced as an
60 alternative to the -insensitive loss function. The purpose of the
50 SVR is to nd the function with the most deviations from the
L* actual destination vector for all obtained training information, and
40
it must be as at as possible [43,44]. SVR requires parameters
30 a*
dened by the user to set up kernel-specic parameters. Ad-
L*a*b*

20 b* ditionally, the optimal values of the legalization argument C and


size errors in sensitive area require to be ascertained. The set-
10
tings' selection controls the prediction complexity. One of the
0 major advantages of SVR lie in the algorithm which contains the
-10 0 1 2 3 4 5 6 7 8 9 resolution of the quadratic programming function leading to an
unique, optimum and comprehensive solution. According to the
-20
choice of kernel function and its parameters, the dimensionality of
-30 the feature space is determined while the complexity of the model
Shelf-life stages
is determined by an extra penalty parameter. According to a re-
view of literature, a part of support vector machine prediction has
1
been scarcely utilized in image processing studies [44,45].
Some of the most widely used kernel functions include: Linear,
0.8 Polynomial, Radial basis function (RBF), Sigmoid, etc. Different
H kernel functions were evaluated for checking the robustness of the
regression model. The RBF kernel, which is widely used in many
0.6 S
problems, eventually was applied for this study. The radial basis
HSV

V function is also a simple function and can model systems of


0.4 varying complexity whereas other kernels satisfy it only for certain
conditions [19]. The different SVR parameters needed for each
0.2 model were optimized with leave-one-out cross-validation for the
training set in terms of root mean squared error (RMSE). During
this process, keeping the value of equal to 0.1, for C and a broad
0
0 1 2 3 4 5 6 7 8 9 range of parameter settings was investigated with large steps and
Shelf-life stages after identifying a promising region, this region was searched in
detail. A new prediction model according to the support vector
Fig. 2. The changes of color features during shelf-life in spaces: (a) RGB, (b) L*a*b* regression (SVR) is being recommended in this paper in order to
and (c) HSV.
predict quality indices of banana. Aiming to create a powerful SVR
model, the SVR parameters should be set up carefully. SVR looks
cylindrical probe, was used, being the loading rate of the cross- for to minimize the generalization error to gain generalized per-
head 50 mm/min. The rmness was measured at 2 cm away from formance rather than minimizing the training error.
the middle of the fruit centerline curvature [5]. Quality indices
were measured with three replications for each shelf-life stage. 2.4.2. Articial neural network (ANN)
To be able to evaluate the suggested model, an articial neural
2.4. Data analysis network (ANN) model was created and the outcomes extracted
from ANN were compared with the outcomes acquired from SVR.
For analyzing the data collected, articial neural networks and After several trail and errors with various types of ANN, a back-
support vector regression were developed and compared to nd propagation multilayer perceptron (BP-MLP) algorithm was cho-
the best model for prediction the quality indices of bananas. Ex- sen as the best option for banana quality indices prediction. The
planations of the techniques used in this study are given below. color features in different color spaces including RGB, HSV and
MATLAB v8.1 from Mathworks (Natick, MA, USA) and Unscrambler L*a*b* were selected as inputs while the quality indices including
10.3 from CAMO AS (Trondheim, Norway) were the software used rmness, TSS, TA and pH were chosen as output for ANNs. Color
for data analysis through this study. features of banana samples were repeatedly fed into the network
Leave-one-out cross validation technique was applied to and training was accomplished by automatically adjusting the
58 A. Sanaeifar et al. / Talanta 148 (2016) 5461

150 0.4

120
0.3
Firmness (N)

TA (%)
90
0.2
60
0.1
30

0 0
0 1 2 3 4 5 6 7 8 9 10 0 1 2 3 4 5 6 7 8 9 10
Shelf-life stages Shelf-life stages

5.8 25

5.6 20

TSS (% Brix)
5.4 15
PH

5.2 10

5 5

4.8 0
0 1 2 3 4 5 6 7 8 9 10 0 1 2 3 4 5 6 7 8 9 10
Shelf-life stages Shelf-life stages
Fig. 3. The changes of the banana quality indices during shelf-life stages.

Table 3
Correlation between color feature values and quality indices.

R G B H S V L* a* b*

TSS .828**  .902**  .711**  .918**  .939**  .910**  .830** .943**  .389
pH  .118  .403* .050 .037  .255  .381  .484* .225  .803**
TA  .098 .628** .227 .217 .479* .608** .692**  .454* .786**
Fir  .835** .836** .778** .903** .886** .843** .758**  .894** .204

**
Correlation is signicant at the .01 level (2-tailed).
*
Correlation is signicant at the .05 level (2-tailed).

connection weights in order to reduce the error level. Also, the 3. Results and discussion
MLP method is considered to be rather fast and efcient when a
small data set is being used [46]. A leave-one-out cross-validation 3.1. Color features
method was used to evaluate the performance of the nal net-
work. All data were assigned in two categories of training (80%) The changes of banana color features during the shelf-life
period are shown in Fig. 2. L* was reduced during the shelf-life
and validation (20%) ones. The BP-MLP with different numbers of
period. However, the a* color feature has an upward trend over the
hidden layers (one, two, and three) was trained and tested. The
period which means decline in greenness of fruit skin. Generally
nal results showed that two hidden layer BP-MLP ANN was en-
small changes were observed in the b* values during that period. A
ough for this study. The Linear Axon was regarded as transfer gradual increase was seen in b* value till 5th day of shelf-life (end
function in output layer because of the regression nature of the of ripening period), which stabilized after that, addressing an in-
study. However, the effect of error minimization algorithms, crease in yellow color of banana peel. It may be concluded that
training algorithm, epochs, and times on ANNs overall perfor- progressively the color of banana peel altered from green to yellow
mance were further surveyed [37]. with ripening period and during senescence period, brown spots
Several actions conrmed the validity of the offered ANN and on the skin of yellow bananas grow. These observations are in
SVR models. The root mean squared error (RMSE) served to assess consistent with the previous results in this eld [47]. The trend of
the differences between the expected and actual values. The change in color spaces RGB and HSV in Fig. 2(b) and (c) is shown.
parameter was determined as indicated in Table 2. Where n is the
3.2. Quality indices
total number of test data, Pi concerns the experimental values, and
Ai the predicted values [44]. The changes of the banana quality indices during the ripening
A. Sanaeifar et al. / Talanta 148 (2016) 5461 59

125 25.00

Firmness 100 20.00

75 15.00

TSS
50 10.00

25 5.00

0 0.00
0.2 0.25 0.3 0.35 0.4 12 2 -8 -18 -28
h a*

6 0.4

5.6 0.32

5.2 0.24
pH

TA
4.8 0.16

4.4 0.08

4 0
9 13 17 21 9 13 17 21
b* b*
Fig. 4. Change of quality indices vs. color features.

Table 4 period leads to decreasing the acid concentrations [51]. This result
Results of SVR for predicting the quality indices of banana. conforms with previous researches done in this eld [52,53].
Quality R2 (%) RMSE C
indices 3.3. Correlation between color features and quality indices
Calibration Validation Calibration Validation

Firmness 99.52 99.50 4.8271 4.910 1.668 100 To obtain the best set of color parameters for predicting the
TSS 99.61 99.57 .7092 .8536 1.668 100 quality of bananas, correlations between color components and
pH 99.80 99.74 .0383 .1197 1.668 100 quality indices were analyzed and the corresponding values are
TA 99.20 99.19 .0087 .0218 1.668 100
indicated in Table 3.
Signicant correlations were observed between some of color
and senescence periods are indicated in Fig. 3. components and the quality indices at 99 and 95% levels. Re-
As shelf-life period progressed, the rmness values decreased garding these results it can be stated that there are good agree-
from 102.52 to 17.40 N. The texture of banana fruits being softened ments between some of color characteristics and quality para-
by ripening. Changes of the cell wall structure by degrading en- meters of banana. So, it can be concluded that color features are
zymes and the starch degradation in fruit are the two main rea- good descriptors of banana quality indices.
sons of fruit softening [5,48].
The TSS was 7.8% Brix at stage one (green-mature) and in-
creased to 16.17% Brix at stage ve (ripe). Its value reached to 20%
4. Correlation between color feature values and quality
Brix at stage nine (full-mealiness). During the ripening treatment
indices.
the starch content of fruit is hydrolyzed into soluble sugars such as
glucose, sucrose and fructose which in turn increases the TSS
The changes of quality indices relating to the color parameters
content of fruit [49].
which provided the best correlation with each of them are shown
By the ripening process, the pH of banana decreases from 5.70
at the rst stage to 4.96 at fth stage. As the senescence period in Fig. 4.
started, there was an increasing trend in the pH value which - a*, b* and h were the best estimators of TSS, acidity parameters
nally reached to 5.60. This change was mainly due to changes of and rmness respectively. As the a* color component ranges from
fruit malic acid content that is a dominant acid in Cavendish ba- green to red, it can be concluded from Fig. 4(b) that the greener
nana varieties [50]. the banana the lower the TSS value. On the other word, unripe
As it is also shown in Fig. 3(b), The TA mean value of banana bananas have lower TSS contents than ripe ones. The higher b*
samples increased during the period of ripening and decreased values introduce the increase of the yellow color of objects. From
during the senescence period. Fig. 4(c) it can be stated that the riper bananas have an increased
Some of fruits, like banana, have the maximum amount of or- acidity (low pH) and high TA indices. The rmness reduces with
ganic acids at their complete ripeness. However, increasing of the ripening process while the banana becomes less chromatic
metabolic activities and formation of sugars during the senescence (lower hue values).
60 A. Sanaeifar et al. / Talanta 148 (2016) 5461

Firmness TSS
120 25
100

Predicted Values
Predicted Values

20
80
60 15
40
10
20
0 5
0 20 40 60 80 100 120 5 10 15 20 25
Actual Values Actual Values

pH 0.4 TA
5.8

Predicted Values
0.35
Predicted Values

5.6
5.4 0.3

5.2 0.25

5 0.2

4.8 0.15
4.8 5 5.2 5.4 5.6 5.8 0.15 0.2 0.25 0.3 0.35 0.4
Actual Values Actual Values
Fig. 5. Plots of the regression between observed and predicted banana quality indices obtained by using the original color data set and SVR_rbf model.

Table 5 values of the order of 5 for rmness and less than 0.85 for TSS,
Results of ANN for predicting the quality indices of banana. 0.1 for pH and 0.02 for TA. On the other hand, Table 5 shows the
prediction capability obtained by using neural network results and
Quality indices Network structure R2 (%) RMSE
in this case R2 values varied from 57 till 95% and RMSE were 6, 1.3,
Train Test Train Test 0.2 and 0.04 for rmness, TSS, pH and TA respectively. So, data
reported in the aforementioned tables show that the SVR method
Firmness 9-4-7-1 95.71 95.01 6.1222 6.1721 is more accurate and robust than that based on neural network for
TSS 9-10-12-1 92.39 89.99 1.3062 1.3614
pH 9-9-14-1 60.88 59.79 .1975 .2129
banana quality prediction based on color features.
TA 9-8-14-1 57.25 54.91 .0332 .0481 In the case of neural network, the best results were obtained
when the network was used to estimate the fruit rmness based
on image characteristics where the coefcient of determination
4.1. SVR and ANN between the experimental and predicted values was 95.01%. The
corresponding value was 99.50% for SVR method. Whereas the
Robust quality measurement tools, based on the whole color best result of SVR was belong to predicting the banana pH
extracted features of bananas, were built by using SVR and Neural (R2 99.74%).
Networks and the performance of the different models assessed Although the leave-one-out method was used for both assayed
and compared to each other for predicting the quality parameters models training it seems that the low number of input data leaded
of banana fruits. RBF was applied as the Kernel function of SVR to poorer performance of neural network than SVR, which is less
method in this study. Adjusting the appropriate SVR parameter is sensitive to the amount of model input data.
an important issue in order to provide well prediction perfor- The capability of ANN and SVR models was also evaluated by
mance. C, and Kernel parameter are the optimal parameters of the comparison for classifying the banana fruit based on their
SVR. C being the trade-off between the model complexity and degree of shelf-life. The ANN was succeed to divide fruits into
error tolerance. With regard to model complexity, very large C three classes with high accuracy (R2 91.65% and RMSE 0.1962).
values minimize error. is width of -intensive zone and affect the Among the 25 samples used to test the classier ANN, only two
number of support vector of the training data. is the width of were misclassied. The classication accuracy of the SVR classier
Kernel function which represents the distribution of independent was 100% for training set and 92% for testing set. So, once again it
values in the training data set. If is large, there are less support can be seen that the SVR model works better than the ANN one in
vectors which cause less complex prediction. The root mean spite that both models had a similar classication accuracy.
squared error (RMSE) and determination coefcient (R2) were
employed to evaluate the differences between the expected and
actual values of banana quality indices obtained for SVR and ANN. 5. Conclusions
Table 4 shows the optimal values of the parameters C and , as well
as R2 and RMSE values obtained for each one of the quality indices. Support vector regression (SVR) of color parameters provides a
The parameter of SVR being 0.1. Fig. 5 shows the regression useful model for prediction of the quality indices of bananas. The
between observed and SVR predicted data in the testing phase. use of a radial basis function (SVRrbf) permitted to estimate
Generally, as can be seen in Table 4 and Fig. 5, SVR_rbf predicts quality indices, component concentrations, chemical and physical
well the quality indices with R2 values higher than 99% and RMSE properties from color features of banana during shelf-life. The SVR
A. Sanaeifar et al. / Talanta 148 (2016) 5461 61

approache enhanced the outcomes provided by ANN and create [24] L. Sonego, S. Lurie, Y. Zuthi, T. Kaplonov, R. Ben-Arie, I. Kosto, Factors affecting
smaller estimation errors in comparison with ANN. Moreover, the taste scores of early season seedless table grape cv. Mystery and Prime, J.
Agric. Food Chem. 50 (2002) 544548.
SVR technique can be applied in the elds related to agriculture [25] P.B. Pathare, U.L. Opara, F.A.-J. Al-Said, Colour measurement and analysis in
with lower computer time than ANN or any knowledge of the fresh and processed foods: a review, Food Bioprocess Technol. 6 (2013) 3660.
network's architecture as in ANN techniques. From the results [26] F. Francis, Quality as inuenced by color, Food Qual. Preference 6 (1995)
149155.
reported in this study it can be concluded that SVR technique can [27] M. Abdullah, L. Guan, K. Lim, A. Karim, The applications of computer vision
predict quality indices with a high estimation accuracy and short system and tomographic radar imaging for assessing physical properties of
computation time. The aforementioned ndings can be used in food, J. Food Eng. 61 (2004) 125135.
[28] A.C. Pereira, M.S. Reis, P.M. Saraiva, Quality control of food products using
developing a grading system for the banana industry based on the image analysis and multivariate statistical tools, Ind. Eng. Chem. Res. 48
rapid prediction of quality parameters of the fruit. (2008) 988998.
[29] C. Chen, H. Ramaswamy, Color and texture change kinetics in ripening ba-
nanas, LWT Food Sci. Technol. 35 (2002) 415419.
[30] H. Zheng, L. Jiang, H. Lou, Y. Hu, X. Kong, H. Lu, Application of articial neural
References network (ANN) and partial least-squares regression (PLSR) to predict the
changes of anthocyanins, ascorbic acid, Total phenols, avonoids, and anti-
oxidant activity during storage of red bayberry juice based on fractal analysis
[1] P. Jaiswal, S.N. Jha, P.P. Kaur, R. Bhardwaj, A.K. Singh, V. Wadhawan, Prediction and red, green, and blue (RGB) intensity values, J. Agric. Food Chem. 59 (2010)
of textural attributes using color values of banana (Musa sapientum) during 592600.
ripening, J. Food Sci. Technol. 51 (2014) 11791184. [31] S. Kerdpiboon, W.L. Kerr, S. Devahastin, Neural network prediction of physical
[2] FAO, FAOSTATS, Food and Agriculture Organization of the United Nations, property changes of dried carrot as a function of fractal dimension and
Rome, Italy, 2013. moisture content, Food Res. Int. 39 (2006) 11101118.
[3] C. Liew, C. Lau, Determination of quality parameters in Cavendish banana [32] H. Zheng, H. Lu, A least-squares support vector machine (LS-SVM) based on
during ripening by NIR spectroscopy, Int. Food Res. J. 19 (2012) 751758. fractal analysis and CIELab parameters for the detection of browning degree
[4] J.F.S. Gomes, R.R. Vieira, F.R. Leta, Colorimetric indicator for classication of on mango (Mangifera indica L.), Comput. Electron. Agric. 83 (2012) 4751.
bananas during ripening, Sci. Hortic. 150 (2013) 201205. [33] H. Lu, H. Zheng, Y. Hu, H. Lou, X. Kong, Bruise detection on red bayberry
[5] M. Soltani, R. Alimardani, M. Omid, Evaluating banana ripening status from (Myrica rubra Sieb. & Zucc.) using fractal analysis and support vector machine,
measuring dielectric properties, J. Food Eng. 105 (2011) 625631. J. Food Eng. 104 (2011) 149153.
[6] I. Ramma, S.B. Madhu, P. Peerthum, Post-harvest quality improvement of ba- [34] H. Zheng, B. Jiang, H. Lu, An adaptive neural-fuzzy inference system (ANFIS)
nana, Food Agric. Res. Counc. (2001) 187. for detection of bruises on Chinese bayberry (Myrica rubra) based on fractal
[7] A. Baiano, C. Terracone, G. Peri, R. Romaniello, Application of hyperspectral dimension and RGB intensity color, J. Food Eng. 104 (2011) 663667.
imaging for prediction of physico-chemical and sensory characteristics of table [35] S. Zomo, S. Ismail, M.S. Jahan, K. Kabir, M. Kabir, Chemical properties and shelf
grapes, Comput. Electron. Agric. 87 (2012) 142151. life of banana (Musa sapientum L.) as inuenced by different postharvest
[8] D. Barbon, A. Weber, M. Vescovi, A. Tonini, A. Boschetti, S. Lannotta, treatments, The Agriculturists 12 (2015) 0617.
L. Fadanelli, G. Stoppa, A statistical approach for proton transfer reaction mass [36] R. Quevedo, J. Aguilera, F. Pedreschi, Color of salmon llets by computer vision
spectrometry (PTR-MS) data aimed at a qualication of fruits based on VOC and sensory panel, Food Bioprocess Technol. 3 (2010) 637643.
emissions, Acta Hortic. (2005). [37] M. Dowlati, S.S. Mohtasebi, M. Omid, S.H. Razavi, M. Jamzad, M. de la Guardia,
[9] J.A. Bamberger, M.S. Greenwood, Non-invasive characterization of uid food- Freshness assessment of gilthead sea bream (Sparus aurata) by machine vision
stuffs based on ultrasonic measurements, Food Res. Int. 37 (2004) 621625. based on gill and eye color changes, J. Food Eng. 119 (2013) 277287.
[10] J.E. Andaur, A.R. Guesalaga, E.E. Agosin, M.W. Guarini, P. Irarrzaval, Magnetic [38] K. Leon, D. Mery, F. Pedreschi, J. Leon, Color measurement in L a b units
resonance imaging for nondestructive analysis of wine grapes, J. Agric. Food from RGB digital images, Food Res. Int. 39 (2006) 10841091.
Chem. 52 (2004) 165170. [39] S.J. Sangwine, R.E.N. Horne, The Colour Image Processing Handbook, Chapman
[11] P.E. Zerbini, M. Vanoli, M. Grassi, A. Rizzolo, M. Fibiani, G. Biscotti, A. Pifferi, & Hall, London, 1998.
A. Torricelli, R. Cubeddu, Time-resolved reectance spectroscopy as a non- [40] R. Abbaszadeh, A. Rajabipour, H. Ahmadi, M. Mahjoob, M. Delshad, Prediction
destructive tool to assess the maturity at harvest and to model the softening of of watermelon quality based on vibration spectrum, Postharvest Biol. Technol.
nectarines, Acta Hortic. 682 (2005) 1459. 86 (2013) 291293.
[12] N. McFarlane, C. Bull, R. Tillett, R. Speller, G. Royle, K. Johnson, The potential for [41] M. Ghasemi-Varnamkhasti, S.S. Mohtasebi, M. Siadat, H. Ahmadi, S.H. Razavi,
Compton scattered X-rays in food inspection: the effect of multiple scatter and From simple classication methods to machine learning for the binary dis-
sample inhomogeneity, J. Agric. Eng. Res. 75 (2000) 265274. crimination of beers using electronic nose data, Eng. Agric. Environ. Food 8
[13] J. Wulf, M. Geyer, B. Nicola, M. Zude, Non-destructive assessment of pigments (2015) 4451.
in apple fruit and carrot by laser-induced uorescence spectroscopy (LIFS) [42] V. Vapnik, Statistical Learning Theory, Wiley, New York, 1998.
measured at different time-gate positions, V Int. Postharvest Symp. 682 (2004) [43] A.J. Smola, B. Schlkopf, A tutorial on support vector regression, Stat. Comput.
13871394. 14 (2004) 199222.
[14] A. Bellincontro, I. Nicoletti, M. Valentini, A. Tomas, D. De Santis, D. Corradini, [44] E. Omrani, B. Khoshnevisan, S. Shamshirband, H. Saboohi, N.B. Anuar, M.H.N.
F. Mencarelli, Integration of nondestructive techniques with destructive ana- M. Nasir, Potential of radial basis function-based support vector regression for
lyses to study postharvest water stress of winegrapes, Am. J. Enol. Vitic. 60 apple disease detection, Measurement 55 (2014) 512519.
(2009) 5765. [45] Z. Ramedani, M. Omid, A. Keyhani, S. Shamshirband, B. Khoshnevisan, Po-
[15] E. Finney, I. BenGera, D.R. Massie, An objective evaluation of changes in tential of radial basis function based support vector regression for global solar
rmness of ripening bananas using a sonic technique, J. Food Sci. 32 (1967) radiation prediction, Renew. Sustain. Energy Rev. 39 (2014) 10051011.
642646. [46] A. Sanaeifar, S.S. Mohtasebi, M. Ghasemi-Varnamkhasti, M. Siadat, Application
[16] D. Prez-Marn, M.-T. Snchez, P. Paz, M.-A. Soriano, J.-E. Guerrero, A. Garrido- of an electronic nose system coupled with articial neural network for clas-
Varo, Non-destructive determination of quality parameters in nectarines sication of banana samples during shelf-life process, in: Proceedings of the
during on-tree ripening and postharvest storage, Postharvest Biol. Technol. 52 2014 International Conference on Control, Decision and Information Tech-
(2009) 180188. nologies (CoDIT), IEEE, 2014, pp. 753757.
[17] P. Subedi, K.B. Walsh, Non-invasive techniques for measurement of fresh fruit [47] R. Mustaffa, A. Osman, S. Yusof, S. Mohamed, Physicochemical changes in
rmness, Postharvest Biol. Technol. 51 (2009) 297304. Cavendish banana (Musa cavendishii L var Montel) at different positions within
[18] M. Li, D.C. Slaughter, J.F. Thompson, Optical chlorophyll sensing system for a bunch during development and maturation, J. Sci. Food Agric. 78 (1998)
banana ripening, Postharvest Biol. Technol. 12 (1997) 273283. 201207.
[19] A. Sanaeifar, S.S. Mohtasebi, M. Ghasemi-Varnamkhasti, H. Ahmadi, J. Lozano, [48] G.B. Seymour, J.E. Taylor, G.A. Tucker, Biochemistry of Fruit Ripening, Chap-
Development and application of a new low cost electronic nose for the ripe- man & Hall, London, 1993.
ness monitoring of banana using computational techniques (PCA, LDA, SIMCA, [49] J. Marriott, M. Robinson, S.K. Karikari, Starch and sugar transformation during
and SVM), Czech J. Food Sci. 32 (2014) 538548. the ripening of plantains and bananas, J. Sci. Food Agric. 32 (1981) 10211026.
[20] J. Tarkosova, J. Copikova, Determination of carbohydrate content in bananas [50] P. John, J. Marchal, Ripening and biochemistry of the fruit, in: S. Gowen (Ed.),
during ripening and storage by near infrared spectroscopy, J. Infrared Spec- Bananas and Plantains, Chapman & Hall, London, 1995, pp. 434467.
trosc. 8 (2000) 2126. [51] R.H. Wills, T. Lee, D. Graham, W. McGlasson, E. Hall, Postharvest: An In-
[21] Y. Wang, Y. Cui, S. Chen, P. Zhang, H. Huang, G.Q. Huang, Study on fruit quality troduction to the Physiology and Handling of Fruit and Vegetables, CAB In-
measurement and evaluation based on color identication, in: Proceedings of ternational, Willingford, 1981.
the International Conference on Optical Instrumentation and Technology, In- [52] R. Mustaffa, A. Osman, S. Yusof, S. Mohamed, Physico-chemical changes in
ternational Society for Optics and Photonics, 2009, pp. 75130F-75130F-75136. Cavendish banana (Musa cavendishii L var Montel) at different positions
[22] G.C. Bora, D. Lin, P. Bhattacharya, S.K. Bali, R. Pathak, Application of bio-image within a bunch during development and maturation, J. Sci. Food Agric. 78
analysis for classication of different ripening stages of banana, J. Agric. Sci. 7 (1998) 201207.
(2015) p152. [53] A. Etienne, M. Gnard, D. Bancel, S. Benoit, C. Bugaud, A model approach re-
[23] F. Mendoza, J. Aguilera, Application of image analysis for classication of ri- vealed the relationship between banana pulp acidity and composition during
pening bananas, J. Food Sci. 69 (2004) E471E477. growth and post harvest ripening, Sci. Hortic. 162 (2013) 125134.

You might also like