Introduction

Kiwifruit (Actinidia deliciosa) is a highly nutritional fruit due to its high level of vitamin C and its strong antioxidant capacity because of a wide number of phytonutrients including carotenoids, lutein, phenolics, flavonoids, and chlorophyll (Cassano et al. 2006). Furthermore, kiwifruit has a very short shelf-life due to high moisture content (above 80% by weight), and it is necessary to use various preservation methods to increase its shelf life.

Osmotic dehydration is used as a pre-treatment to many preservation processes such as freezing, freeze drying, microwave drying, and air drying to improve nutritional, sensorial, and functional properties of fruits without changing their integrity. This operation is used for the partial removal of water from plant tissues by immersion in a hypertonic (osmotic) solution. Water removal is based on the natural and nondestructive phenomenon of osmosis across cell membranes. The diffusion of water out of the plant’s tissues is accompanied by the simultaneous counter diffusion of solutes from the osmotic solution into the tissue. There may also be minor flow of other solutes from fruit to solution (Sun 2005). The existence of those simultaneous and opposite mass transfers is one of the main difficulties in modeling osmotic dehydration kinetics (solid gain and water loss) of fruits (Spiazzi and Mascheroni 1997). However, there are several models reported in the literature for the estimation of mass transfer kinetic during osmotic dehydration, mostly based on the solution of Fick’s second law (El-Aouar et al. 2003; Garcia et al. 2007; Rastogi and Niranjan 1998) or nonlinear regression (Nieuwenhuijzen et al. 2001). Although these models give a reasonable fitting of the experimental data, their application is limited due to their semiempirical nature, and therefore, they are only capable of estimating data within the processing conditions for which they were developed or they depend on a large number of physical properties of fruits (Ochoa-Martínez et al. 2007).

Artificial neural networks (ANNs) are powerful modeling techniques that exhibit analogies to the way arrays of neurons function in biological learning and memory. ANNs offer several advantages over conventional modeling techniques because they can model based on no assumptions concerning the nature of the phenomenological mechanisms and understanding the mathematical background of problem underlying the process and the ability to learn linear and nonlinear relationships between variables directly from a set of examples. The fundamental building blocks of ANN are units called nodes (neurons) comparable to biological neurons and weighted connections that can be likened to synapses in biological systems. Nodes are simple information processing elements (Haykin 1994; Vinod and Vikrant 2002; Amin et al. 2009).

Some researchers have used ANN as a useful modeling tool to predict some physical characteristics of dried or dehydrated products. Poligné et al. (2002) introduced the application of ANN during a dehydration–impregnation–soaking process of pork meat. They constructed an ANN by using smoke flavoring concentration, temperature, and sugar concentration as input vectors to predict mass transfer kinetic and quality changes of pork meat. Ochoa-Martínez and Ayala-Apaonte (2007) developed an ANN model for prediction of mass transfer kinetics during osmotic dehydration of apple. They used temperature and concentration of osmotic solution, immersion time, surface area, solution to fruit mass ratio, and agitation level as the input variables to estimate solid gain and water loss of dehydrated apple. The authors developed an ANN which included one hidden layer and four hidden neurons. The developed ANN was better performed compared to the corresponding linear multivariable regression. Amiryusefi and Mohebbi (2008) employed feedforward neural network to estimate the solid gain, water loss as well as moisture content (w.b.) of dehydrated potato. Their results showed that the best ANN, which was developed based on two hidden layers and ten neurons per each hidden layer, is capable to predict these parameters with the correlation coefficients more than 0.98 in all cases.

In addition to mass transfer kinetics, the color of the dehydrated product is an important quality factor, which is affected by the operation conditions. Color usually is the first quality parameter that is evaluated by consumers and is critical in the acceptance of the product. Recently, image analysis has been used as a promising approach to the objective assessment of a dried product’s quality. Riva et al. (2005) investigated the influence of osmotic agents (sucrose and sorbitol solutions) and syrup composition on chemical–physical properties, structure collapse, and color changes of osmo-air-dehydrated apricot cubes. They reported color parameters showing a slight change after the osmotic step: a* and b* components maintained their initial values (no browning), whereas L* values diminished (darkening). These authors also mentioned that using sorbitol as the osmotic solution led to the highest protective effect on the color of dried apricot compared to the other tested solution. Mohebbi et al. (2007) investigated the possibility of machine vision and ANN application for prediction of moisture content (w.b.) of dried shrimp. They considered six color parameters of dried shrimp as inputs of ANN and found that the optimum configuration, which included five neurons per hidden layer, could predict moisture content (w.b.) of dried shrimp with coefficient of determination of 0.86. These researchers stated that application of image processing in conjunction with ANN could reduce processing time and cost by minimizing chemical experiments such as determination of moisture content.

This study aimed to investigate the dependence of mass transfer kinetics (water loss (WL) and solid gain (SG)) as well as color changes of dehydrated kiwifruit on different osmotic conditions (concentration, temperature, and duration of osmotic process) and study the efficiency of ANN for predicting these parameters.

Materials and Methods

Preparation of Samples

Kiwifruits, cultivar Hayward, were purchased in Sari, Iran and stored at 1 °C before used in the experiments. Initial moisture and soluble solid content were 84.5 ± 0.9 (% w.b.) and 12.4 ± 0.7° Brix, respectively. Kiwifruits were cut into 40 mm diameter and 10 mm thickness slices.

Osmotic Dehydration and Mass Transfer Kinetic Analysis

Kiwifruit slices were weighed and placed into a beaker which contained osmotic solutions prepared with food grade sucrose. Kiwifruits were dehydrated with four different sugar concentrations (30, 40, 50, and 60° Brix) at temperatures of 20, 40 and 60 °C. A fruit/solution ratio of 1:10 by weight was used to avoid an excessive dilution of osmotic solution. Osmotic dehydration was performed under the same magnetic agitation to maintain uniform temperature and concentration throughout the experiment. Immersion times of 0.5, 1, 1.5, and 2 h were tested. At the end of the osmotic dehydration process, samples were taken out of the sucrose solution, washed with distilled water to remove the adhered osmotic solution, and blotted with adsorbent paper. The weight (by means of an electronic balance reading with an accuracy of 0.01 g; AND EK-300i, Japan) and moisture content (percent w.b.; at 90 °C until constant weight was obtained) were measured individually. The experiments were conducted as a 4 × 3 × 4 factorial design (4 osmotic concentrations × 3 osmotic temperatures × 4 osmotic times) with four replications.

Two quantities represent adequately the osmotic dehydration process: The WL and SG were calculated based on the following equations (Giangiacomo et al. 1987; Shi et al. 2009):

$$ {\text{WL}} = \frac{{\left( {{\text{WW}}_0 } \right) - \left( {W_{\text{t}} - {\text{WS}}_{\text{t}} } \right)}}{{\left( {{\text{WS}}_0 + {\text{WW}}_0 } \right)}} \times 100 $$
(1)
$$ {\text{SG}} = \frac{{\left( {{\text{WS}}_{\text{t}} - {\text{WS}}_0 } \right)}}{{\left( {{\text{WS}}_0 + {\text{WW}}_0 } \right)}} \times 100 $$
(2)

where WW0 is the weight of water and WS0 is the weight of solids initially present in the kiwifruit. W t and WSt are the weight of the kiwifruit and the weight of the solids after osmotic dehydration, respectively.

Image Acquisition and Analysis

In order to investigate the effect of osmotic dehydration on color changes of dehydrated kiwifruit samples, the following procedure was applied:

  1. (a)

    A computer vision system generally consists of four basic components: illumination, a camera, computer hardware, and software. In this research, sample illumination was achieved with three fluorescent lights (Opple, 8 W, model: MX396-Y82; 60 cm in length) with a color index (Ra) close to 95%. The illuminating lights were placed in a wooden box, 45 cm above the sample and at the angle of 45º with sample plane to give a uniform light intensity over the kiwifruit sample (Quevedo et al. 2009). The interior walls of the wooden box were painted black to minimize background light. A color digital camera (Canon Powershot, Model A520, Japan) with 4 Mega pixels of resolution was located vertically at a distance of 25 cm from the sample. The angle between the camera lens axis and lightening sources was around 45º. The iris was operated in manual mode, with the lens aperture of 4 and speed 1/10 s (no zoom, no flash) to achieve high uniformity and repeatability. Images were captured with the mentioned digital camera at 2,272 × 1,704 pixels and connected to the USB port of Pentium IV, 2.4 GHz computer. Canon Digital Camera Solution Software (version 22) was used to acquire the images in the computer in JPEG format.

  2. (b)

    Image preprocessing: In order to improve background’s contrast of digital images, preprocessing was accomplished using Adobe Photoshop (Adobe, v.7.0).

  3. (c)

    Segmentation: Image segmentation was performed to separate the true image of the kiwifruit sample from background, using threshold combined with an edge detection approach based on the Laplacian-of-Gaussian filter (Castleman 1996).

  4. (d)

    Conversion of RGB chromatic space into L*a*b* units: Since the computer vision system perceived color as RGB signals, which is device-dependent (Fernández et al. 2005), the images taken were converted into L*a*b* units to ensure color reproducibility. In the L*a*b* space, the color perception is uniform, and therefore, the Euclidean distance between two colors corresponds approximately to the color difference perceived by the human eye (Pedreschi et al. 2007). Transformation RGB into L*a*b space was performed according to a direct model similar to the procedure described by León et al. (2006).

The color changes (ΔE) of dehydrated kiwifruits were estimated from the coordinates of color by applying the following equation (Shafafi Zenoozian et al. 2008):

$$ \Delta E = \left[ {\left( {L*_2 - L*_1 } \right)^2 + \left( {a*_2 - a*_1 } \right)^2 + \left( {b*_2 - b*_1 } \right)^2 } \right]^{{\frac{1}{2}}} $$
(3)

where L* is lightness component, which ranges from 0 to 100 and parameter a* (from green to red) and b* (from blue to yellow) are two chromatic components, which range from −120 to 120. Subscripts 1 and 2 are referred to as color components before and after osmotic dehydration, respectively. In this study, the image analysis was performed using Imagj software version 1.40g.

Artificial Neural Network

In this study, fully interconnected multilayer feedforward network, which is the most widely used ANN, was applied for modeling mass transfer kinetics and color changes of osmotically dehydrated kiwifruit. One of the commonly used feedforward ANN architectures is multilayer perceptron (MLP) network. The main advantages of MLP compared to other neural model structures are that it is easy to implement and it can approximate any input/output map (Menhaj 1998). MLP consists of (a) an input layer with neurons representing input variables to the problem, (b) an output layer with neuron(s) representing the dependent variable(s), and (c) one or more hidden layers containing neuron(s) to help capture the nonlinearity in the system (Fig. 1). The complexity of the MLP network depends on the number of layers and the number of neurons in each layer. The hidden layer maps the input pattern x with output pattern y through a series of interconnected weights. Mathematically (Razavi et al. 2003):

$$ y_j = \sum\limits_{i = 1}^n {f\left( {w_{ij} x_i } \right)} + b_j $$
(4)

where W ij is the weight of the ith input vector that is connected to the jth neuron; n is number of inputs to the neuron; b j is the bias associated with the jth neuron, which adds a constant term in the weighted sum to improve convergence; and f is the activation function that determines the processing inside the neuron. Activation function can be linear or nonlinear (commonly hyperbolic tangent or sigmoid) function depending on the network topology. In this work, the operational variables of osmotic process of kiwifruit (concentration, temperature of osmotic solution, and osmotic duration) were used as inputs, and solid gain, water loss, and ΔE were considered as outputs. A hyperbolic tangent activation function (Eq. 5) was chosen to be used in the hidden layer, due to lower calculated mean-squared error values than the respective sigmoid function, while a linear function was used in the output layer.

Fig. 1
figure 1

Multilayer feedforward neural network architecture with one hidden layer for prediction solid gain, water loss, and ΔE of osmotically dehydrated kiwifruit

$$ \tanh = \frac{{e^x - e^{- x} }}{{e^x + e^{- x} }} $$
(5)

Two important factors must be considered in order to ensure a successful modeling of MLP. First, is the number of hidden layers and second is the number of neurons in each hidden layer. Since almost all of the problems in neural network modeling could be solved with one hidden layer (Chen et al. 2001; Kashaninejad et al. 2008; Mohebbi et al. 2007; Movagharnejad and Nikzad 2007; Ochoa-Martínez and Ayala-Apaonte 2007; Mitra et al. 2009), an ANN with three layers was used in this research. In addition, using too many hidden layers may lead to problem of data overfitting, affecting the system’s generalization capability (Abdullah et al. 2006). On the other hand, to find the best architecture, different networks were built with different hidden neurons varying from 2 to 20.

In total, 192 data were collected for the four different concentrations and osmotic times and three osmotic temperatures. First, the data order was randomized and then the data were divided into three partitions. The first partition (training data) was used to perform the training of the network (40% of data). The second one (cross-validation data) was used to evaluate the prediction quality of the network during the training (30% of data). For the purpose of estimating the performance of the trained network on new data, a third partition, which never was seen by the artificial neural network during the training and cross-validation process, was used (30% of data) for testing. During training, momentum value was fixed at 0.7, and learning rate was determined at level 1 on the hidden layer and 0.1 at the output layer. The training process was carried on for 1,000 epochs or until the cross-validation data’s mean-squared error (MSE), calculated by Eq. 6, did not improve for 100 epochs to avoid over-fitting of the network.

Backpropagation algorithm was used to implement supervised training of the network. Backpropagation is based on searching an error surface (error as a function of ANN weights) using gradient descent for point(s) with minimum error. Each iteration in backpropagation constitutes two sweeps: forward activation to produce a solution, and the backwards propagation of the computed error to modify the neurons’ weights (Movagharnejad and Nikzad 2007).

Testing was carried out with the best weights stored during the training. Evaluation of the performance of the trained network was based on the accuracy of the network in the test partition. Therefore, MSE, normalized mean-squared error (NMSE), mean absolute error (MAE), and correlation coefficient (R) for each output were calculated by using Eqs. 610 (Mohebbi et al. 2008) based on testing data and were used to compare the performance of different ANN architectures. In this study, the ANN models were constructed by Neurosolution for Excel software release 5.0, produced by NeuroDimension, Inc.

$$ {\text{MSE}} = \frac{{\sum\limits_{i = 1}^N {\left( {O_i - T_i } \right)^2 } }}{N} $$
(6)
$$ {\text{NMSE}} = \frac{1}{{\sigma^2 }}\frac{1}{N}\sum\limits_{i = 1}^N {\left( {O_i - T_i } \right)^2 } $$
(7)
$$ {\text{MAE}} = \frac{1}{N}\sum\limits_{i = 1}^N {\left| {O_i - T_i } \right|} $$
(8)
$$ R = \sqrt {1 - \frac{{\sum\limits_{i = 1}^N {\left[ {O_i - T_i } \right]^2 } }}{{\sum\limits_{i = 1}^N {\left[ {O_i - T_{\text{m}} } \right]^2 } }}} $$
(9)

where O i is the ith actual value, T i is the ith predicted value, N is the number of data, σ 2 is the variance, and

$$ T_{\text{m}} = \frac{{\sum\limits_{i = 1}^N {O_i } }}{N}. $$
(10)

Statistical Analysis

Analysis of variance (ANOVA) of data was performed using a computerized statistical program called “MSTAT” version C, and determination of significant differences of means was carried out by “Duncan” test at 1% significant level using the above software program.

Results and Discussion

Effect of Osmotic Dehydration on Mass Transfer Kinetics and Color Changes

Average values of solid gain, water loss, water loss/solid gain ratio, color changes, and changes of each chromatic parameter during the osmotic dehydration of kiwifruit slices for the whole treatments are presented in Tables 1 and 2, respectively. In Table 3, parts of ANOVA tables for solid gain, water loss, color changes, and changes of each chromatic parameter are given. It was found that solid gain and water loss increased significantly as temperature, concentration, and osmotic duration increased. Therefore, samples immersed in osmotic solution of 60% at 60 ºC for 2 h had the greatest solid gain (9.28%) and water loss (52.98%). The solid gain and water loss at the end of the osmotic process for the four levels of immersion times and three osmotic temperatures for the concentration of 60% are shown in Figs. 2 and 3, respectively. The same tendencies were also found for the osmotic concentrations of 30%, 40%, and 50%. Increasing WL and SG by increasing temperature could be attributed to the effect of temperature on the membrane permeability by making it more permeable to water and sugar exchanges. On the other hand, by increasing sucrose concentration, the osmotic pressure in the kiwifruit tissue is increased, which led to increase water loss and solid gain.

Table 1 Means and standard deviations of SG, WL, WL/SG ratio, and ΔE during osmotic dehydration of kiwifruit at different concentrations (C), temperatures (T), and immersion times (h)
Table 2 Means and standard deviations of the changes of the chromatic parameters (L*, a*, and b*) during osmotic dehydration of kiwifruit at different concentrations (C), temperatures (T), and immersion times (h)
Table 3 Successive mean squares from the analysis of variance of the solid gain, water loss, color changes, and changes of three chromatic parameters (L*, a*, and b*)
Fig. 2
figure 2

Effect of osmotic temperature and duration for concentration of 60% on solid gain of osmotically dehydrated kiwifruit

Fig. 3
figure 3

Effect of osmotic temperature and duration for concentration of 60% on water loss of osmotically dehydrated kiwifruit

The effect of operating conditions can also be assessed by water loss/solid gain ratio. In an osmotic dehydration process, the higher water loss is more favorable than solid gain. On the other hand, high solid gain affects negatively the quality and sensory characteristics of the dehydrated fruit. When high levels of sugar are infiltrated into the fruit during osmotic dehydration, significant sensory alterations can occur, and the osmotically dehydrated product may present a different taste from the fresh fruit (Rodrigues and Fernandes 2007). The kiwifruit samples, treated with osmotic solution of 40% at 40 °C for 1.5 h, had the greatest water loss/solid gain ratio (average value of 7.37).

As Table 2 shows, the variations in ΔE and b* are statistically significant, whereas the relationship between chromatic parameters L* and b* and operation conditions were not statistically significant.

Table 1 reveals that increasing temperature caused an increase in ΔE values. The chromatic parameter a* is found to be the major component that contributes most to the overall color change during osmotic dehydration of the kiwifruit. The a* values increased significantly by increasing osmotic temperature, which shows diminishing of green color of dehydrated kiwifruits. This phenomenon can be attributed to the decay in chlorophyll pigments, which can be explained with Arrhenius-type temperature dependence of chlorophyll degradation (Nisha et al. 2004) or increased loss of liberated coloring compounds by migration into the solution (Tijskens et al. 2001). The samples were osmosed in osmotic solution of 60% at 60 ºC for 2 h subjected to the greatest color changes (average ΔE value of 10.09). Tijskens et al. (2001) found a similar trend during blanching of broccoli and green beans. Therdthai and Zhou (2009) reported that using a high temperature during drying of mint leaves could lead to conversion of chlorophylls to pheophytins, which caused to increase both a* and ΔE values.

Artificial Neural Network Optimization

The optimum number of neurons in the hidden layer is determined by trial/error procedure based on minimizing the difference between estimated ANN outputs and experimental values. The error measures for estimation of solid gain, water loss, and ΔE during the testing process of different architectures of ANN with two to 20 neurons in the hidden layer are shown in Table 4. It was found that ANN with 16 hidden neurons had the minimum MSE values for solid gain (1.005), water loss (2.312), and ΔE (2.137) predictions. This architecture also had the lowest NMSE (0.16) as well as NMSE (0.272) and MAE (1.168) in the case of solid gain and ΔE estimation, respectively, and therefore, this one was chosen as the best ANN. Table 5 tabulates the weight and bias values of the chosen ANN, which could be used to predict mass transfer kinetics and color changes of osmotically dehydrated kiwifruit slices under specific experimental conditions.

Table 4 Errors in prediction of solid gain, water loss, and ΔE using ANN with different number of neurons in single hidden layer for osmotically dehydrated kiwifruit
Table 5 Corresponding weight and bias values of each neuron for optimum ANN configuration used to predict SG, WL, and ΔE of osmotically dehydrated kiwifruit

Artificial Neural Network Performance

The prediction efficiency of the chosen ANN model for testing data is presented in Figs. 4, 5, and 6 for SG, WL and ΔE, respectively, in which the predicted values are plotted against their experimentally measured values for the best configuration ANN (16 neurons in the hidden layer). The calculated correlation coefficient values for estimation of SG, WL, and ΔE (0.92, 0.994, and 0.88, respectively) were acceptable and revealed good agreement between predicted and experimental values. Therefore, the configuration of ANN model including 16 neurons in the hidden layer is efficiently suggested for prediction of solid gain, water loss, and ΔE of osmotically dehydrated kiwifruit slices.

Fig. 4
figure 4

Experimental vs. predicted values for solid gain of osmotically dehydrated kiwifruit by optimum ANN configuration (R = 0.92)

Fig. 5
figure 5

Experimental vs. predicted values for water loss of osmotically dehydrated kiwifruit by optimum ANN configuration (R = 0.994)

Fig. 6
figure 6

Experimental vs. predicted values for ΔE of osmotically dehydrated kiwifruit by optimum ANN configuration (R = 0.88)

Conclusions

The following conclusions are drawn from the investigation on osmotic dehydration of kiwifruit and the possibility of application of image analysis and artificial neural network to predict mass transfer kinetics and color changes of osmotically dehydrated kiwifruit:

  1. 1.

    Solid gain and water loss increased significantly when osmotic temperature, concentration, and immersion time increased. The effect of temperature was pronounced more than the others.

  2. 2.

    It was noted that as the processing temperature was increased, this could lead to color changes (ΔE).

  3. 3.

    A multilayer feedforward neural network based on three inputs (operation conditions) and 16 neurons in the single hidden layer was found to be the best model for predicting solid gain, water loss, and ΔE (outputs), which showed minimum MSE (1.005, 2.312, and 2.137, respectively) and high R (0.92, 0.994, and 0.88, respectively) values.

  4. 4.

    It seems that application of both image analysis and artificial neural network can lead to an automated, objective, and rapid inspection as well as online state prediction and control of osmotic dehydration of kiwifruit.