Introduction

Extrusion is a continuous, high-capacity, energy-efficient cooking process at high temperatures and short times, which transforms food materials into a plastic-like paste that forms shaped products with a special texture after expansion (Singh et al. 2012; Tovar-Jiménez et al. 2015; Singh et al. 2016). In addition, extrusion causes the destruction of heat-labile compounds like trypsin inhibitors, hemagglutinins, gossypol, lipoxigenases, peroxidases and lipoxidases (Yu 2011). It also results in more digestibility of proteins (Camire 1991; Yu et al. 2013).

Texturized soy protein (TSP) is a mechanically extruded product based on defatted soybean meal with a meat-like texture after rehydration (Lusas 1996). In this process, defatted soybean meal with the moisture range of approximately 20–25% is passed through an extrusion cooker to create a fibrous structure due to disulfide bonding and pressure. Due to the physical and chemical changes in soy proteins during extrusion, the final product has functionalities which make it suitable to be used in food formulations as a meat substitute, owing to its water and oil binding capability.

Successful preparation of TSP products requires the control of the extrusion variables including screw speed, feed moisture content, barrel temperature, extruder properties and feed chemical and physical composition (Guerrero et al. 2012). By studying the effects of barrel temperature (135–165), screw speed (110–190 rpm) and feed moisture content (21–27% wet basis), Rueda et al. (2004) concluded that continuous increases in barrel temperature and screw speed increased the expansion, water absorption index, water hydration capacity and hardness of TSP based on defatted soy flour.

The usual raw material to prepare TSP is defatted soybean meal with a protein dispersibility index of 60–70%. Solvent extraction is the main process to produce defatted soybean meal, combined with heating to evaporate residual hexane; hence, full-fat soy flour (or whole soybean) has a lower protein content, but at higher protein dispersibility indices and no residual solvent (Camire 1991). The main problem of full-fat soy flour (or whole soybean) extrusion cooking is the high fat content which causes shear reduction, oil separation (Crowe and Johnson 2001) and a lower oxidative stability (Bookwalter et al. 1971).

While the extrusion cooking of defatted soybean meal/flour at moderate moisture contents has been studied (Chen et al. 2012; Garg and Singh 2010; Hager 1984; Jao et al. 1978; Prudencio-Ferreira and Areas 1993), to the best of our knowledge, there is no published data on TSP production optimization based on defatted soybean meal. In this research, to take advantage of the whole soybean, we partially replaced the defatted soybean meal by the alkaline pretreated whole soybean and the main objectives were to evaluate the effects of the processing parameters on the quality of the extrudate and to determine the optimized conditions to produce a healthier TSP with better functional properties using genetic algorithm.

Materials and methods

Materials

Defatted soybean meal (containing 52% protein, 1.5% fat and 3% fiber, with particle passing through 2.38 mm mesh sieve, based on company information) was purchased from Soypak Co. (Behshahr, Iran). Soybean seeds were provided by Toos Soya Co. (Mashhad, Iran). Commercial sodium hydroxide was supplied from Kimiapars Co. (Tehran, Iran) and sunflower oil was obtained from Ladan edible oil Co. (Tehran, Iran).

Feed preparation

Based on the method previously described by Nelson and Leigh (1983), the raw whole soybeans were soaked in an equal weight of 0.5 N NaOH solution for 4.5 h at room temperature. The excess alkaline solution was drained off and the seeds were rinsed and ground for 3 min. As explained before, to take advantage of the whole soybean, defatted soybean, as the base material to produce TSP, was replaced with the treated whole soybean meal at 10%. Our preliminary experiments showed that higher levels of whole soybean meal led to the extrusion process disruption and oil-off from the extruder die which requires further research to be overcome. 400 g of the ground soybean seed and 1800 g of the defatted soybean were blended and the moisture level was adjusted to the desired final moisture as one of the process variables, by adding a predetermined amount of water. Mixing was done at the blender medium speed for 5 min. The samples were then packaged in polythene bags and allowed to equilibrate overnight at 5 °C before extrusion. The material was brought to room temperature prior to extrusion.

Extrusion

A semi-industrial co-rotating twin-screw extruder (DS32-II, Jinan Saixin Food Machinery, Shandong, P. R. China) was used for extrusion. The barrel was comprised of three independent temperature-controlled zones. The first zone (after the feeding section) temperature was controlled at 70 °C. The temperature of the second zone (mixing section) was set on 110 °C and the temperature of the third zone (metering section) was adjusted to the required levels as one of the process independent variables. The diameter of the screw was 30 mm. The diameter of the hole in the die was 5 mm with a die length of 27 mm. The extruder was fed automatically at a constant feeding rate of 50 kg per hour during the experiments. The extruded samples were cut using a mechanical cutter at a constant speed. After the stable conditions were established, the extrudate was collected and dried in an air-convection oven at 60 °C until reaching a moisture content of about 5% (wet basis, measured at 105 °C). The dried samples were stored in air tight plastic containers at room temperature and used for further analyses.

Rehydration ratio

Twenty grams of the extrudate sample were weighed (M1) and mixed with 100 ml of distilled water at 5 °C for 1 h. After that, the water was drained off and the rehydrated sample was weighed (M2). The rehydration ratio (RR) (%) was calculated using Eq. 1.

$$ WAC,OAC,RR = \frac{{M_{2} - M_{1} }}{{M_{1} }} \times 100 $$
(1)

TSP flour functionality

The dried extrudate samples were ground with a kitchen grinder and passed through a 50 mesh sieve. The functional properties of the extrudate flour, including water absorption capacity (WAC) and oil absorption capacity (OAC) were analyzed as follows:

Water absorption capacity

WAC was determined according to the AACC method 56-20 (AACC 2000) with minor modifications. A 1.5 g (M1) flour sample was dispersed in 30 ml of deionized water, agitated vigorously and then completely dispersed using a high speed shaker for 10 min. The samples were centrifuged (1000g, 15 min at 20 °C) and the supernatant was decanted. The weight of the swelled sample was determined (M2) and WAC (%) was calculated using Eq. 1.

Oil absorption capacity

OAC was determined according to (Lin et al. 1974). 0.3 g (M1) of the flour was completely mixed with 3 ml of sunflower oil and then centrifuged (2060g, 30 min at 25 °C). Subsequently, the supernatant decanted and the residue were weighted (M2). OAC (%) was calculated using Eq. 1.

Color properties

Image processing was used for the extrudate flour color evaluation. The flour was poured into a plate, surface leveled and then the images were captured under the fallowing conditions. The plate was positioned in a dark wooden chamber and illuminated by eight fluorescent lights, 20 and 45 cm above the sample at an angle of 45º with the plate to give a uniform light intensity over the sample. A digital camera (Sony, Model W210, Japan) was located vertically at a distance of 20 cm from the sample and the images were captured with a lens aperture of 2.8 and an ISO speed of 1/125 s (no zoom, no flash). Image processing was done using ImageJ software (National Institutes Health, Bethesda, MD, USA) version 1.46r. A region of interest was cropped from the center of the image, its color space was converted from RGB chromatic space into \( L^{*} a^{*} b^{*} \) space using the color space converter plug-in. Finally, the mean gray value was measured.

Experimental design and data analysis

Response surface methodology was used to investigate the main effects of the process variables on RR, WAC, OAC and \( L^{*} \) value of the extruded samples. A Box–Behnken design was used where the barrel temperature (150–200 °C), screw speed (270–300 rpm), and feed moisture content (20–25% wet basis) were the independent process variables. The minimum and maximum values of the process parameters were determined based on preliminary experiments. A total of 20 experiments were performed in duplicate, and the responses average values were calculated. Nonlinear regression was applied to evaluate each response against the process variables at the cubic degree of nonlinearity. Moreover, the backward elimination algorithm was applied to remove the insignificant terms. The experiments design and data analysis were done using Design-Expert statistical package software version 8.07 (Stat ease Inc., Minneapolis, USA).

Genetic algorithm optimization

Genetic algorithm (GA) is based on the rule of nature’s best selection and Darwin’s theory of species evolution. GA advantages over usual numerical optimization methods are (1) the less susceptibility of this technique to be stuck in local minima. (2). A lower degree of knowledge is needed about the process being optimized and (3) this method is able to find the optimum process parameters when there is a large search space of available solutions. GA is a widely used algorithm to find the best solution for both constrained and unconstrained optimization problems. Because of its high capability and easy setups for different types of optimization problems, GA has been used frequently for food processes optimization (Koc et al. 2007; Mohebbi et al. 2011; Shankar and Bandyopadhyay 2004; Shankar et al. 2010). It repeatedly modifies a population of individual solutions. At each step, the algorithm selects individuals using a special method from the population to be the parents and uses them to produce a part of the next generation. Over successive generations, the population evolves toward the best available solution. GA uses three main operators at each step to create the next generation from the current population: (1) Selection operator: selects the individuals, called parents, which contribute to the population in the next generation. (2) Crossover operator: combines two parents to form offspring for the next generation. (3) Mutation operator: makes small random changes in the individuals, which provide genetic diversity and prevents the genetic algorithm from falling into local minimums (Fathi et al. 2010). For the current optimization problem, the chromosomes containing three genes of binary numbers (representing barrel temperature, screw speed and feed moisture content as the operation variables) were defined and the initial population of chromosomes was set to 60. The uniform selection function (with 1% probability) was applied and the single point crossover function with a 0.8 fraction ratio was used to create the next generation population. The adaptive feasible function was used as the mutation operation. GA uses a function to evaluate the fitness of every chromosome of a population. The fitness function was defined based on the goals of optimization, including the maximum RR, WAC, OAC and brightness (as presented by \( L^{*} \) value). After finding the best correlations with the highest coefficient of determinations (R2) and the lowest coefficient of variations (CV) between each response and the process variables, the quality factor, as the fitness function, was defined using Eq. 2:

$$ {\text{Quality}}\;{\text{factor}} = {\text{RR}} \times {\text{WAC}} \times {\text{OAC}} \times {\text{L}} $$
(2)

The chromosomes with higher quality factor values have more chance to transfer their genes to the next generation. The number of generations was 100 and the genes of the best chromosome of the final population were presented as the problem solution or the optimized process conditions. GA optimization was done using MATLAB R2013a.

Results and discussion

For each run of the experimental design, the extruded samples were analyzed and the results are summarized in Table S1. After applying the cubic polynomial regression and backward elimination algorithm on the model, analysis of variance (ANOVA) was performed. Probability was below 0.001 for all the F-values of the regression models and the lack of fit values were not significant (Table S2) which showed the models were statistically reliable. The coefficients of variation and coefficients of determination of all the fitted models are given in Table S2 and were in acceptable range.

Rehydration ratio

Regression analysis showed that temperature and feed moisture content were two significant parameters on the TSP rehydration quality (Table S2) which is a measure of the product porosity and the number of polar sites that interact with water molecules. The linear interaction between temperature and moisture content and the quadratic term of temperature and its interaction with screw speed were also significant for the final product rehydration quality. The interactive effect of barrel temperature and moisture content on rehydration ratio is illustrated in Fig. 1 which shows that increasing the temperature resulted in a TSP with a higher rehydration ratio and its effect was enhanced when the feed moisture was lower (20%). Higher temperatures and lower water content led to higher barrel pressure and more melted plasticized material (Guerrero et al. 2012). This made the TSP more porous on the die exit (Thymi et al. 2005). Screw speed was less effective at low temperatures, but at high temperatures, higher screw speeds caused higher rehydration ratios (Fig. 2), which may be because of higher barrel pressure and more texturization as explained before. The regression model for RR is presented in Eq. 3. In this equation and the following ones, the codes A, B and C represent barrel temperature, screw speed and feed moisture content, respectively.

$$ {\text{RR}} = - 14786.7 + 175.8{\text{A}} + 54.8B + 33.2{\text{C}} - 0.7{\text{AB}} - 0.2{\text{BC}} - 0.5{\text{A}}^{2} + 1.9 \times 10^{ - 3} {\text{A}}^{2} {\text{B}} $$
(3)
Fig. 1
figure 1

The effect of barrel temperature and moisture content on RR at the screw speed of 285 rpm

Fig. 2
figure 2

The effect of barrel temperature and screw speed on RR at 22.5% moisture content

Water absorption capacity

WAC is a property of food protein molecular composition, conformation state, hydrophilic intensity and the presence of carbohydrates (Edward Doe and Barbara Cybulska 2006). When proteins unfold at high temperature and pressure such as extrusion conditions, most of these lose their natural state and the hydrophilic groups may appeared at the surface of the molecule; therefore more water molecules were absorbed that led to increase in water absorption capacity of TSP will increase (Osen et al. 2014; Sorgentini et al. 1991). According to the regression model for WAC presented in Eq. 4, temperature had a significant effect on WAC as its linear and quadratic terms as well as its interaction with moisture content and screw speed appeared in the model. Figure 3 shows that when the moisture content was low (20%), an increase in temperature had minor effect on WAC; nevertheless, at a higher feed moisture content (25%) the pressure of extrusion on the molten soy flour changed and the microstructure of TSP was effectively different as with an increase in temperature, WAC decreased, but above 175 °C, WAC started to increase. The maximum WAC was attainable at the lowest moisture content and the highest process temperature. This result is in contrast with that of Yu et al. (2012) who observed the maximum water solubility index at the highest temperature and moisture for the extruded corn four-soy protein isolate blend at 20–35% moisture which may have arisen from the different chemical compositions of corn flour and soy. Similar to our result, the increase in WAC due to the increase of extrusion temperature was observed for the extruded corn–lentil blend (Lazou and Krokida 2010). It seems that lower moisture contents led to a higher denaturation degree of soy protein, because lower moisture contents increased the viscosity as well as the friction between the material, screw shaft and extruder barrel. As a result, the required force to push the mass through the barrel and die was increased. These led to more severe conditions on soy protein and increased the degree of denaturation (Chen et al. 2010; Guerrero et al. 2012). The difference between WAC and RR behavior against the process variables arises from the different physical properties of the sample and the test methods performed.

$$ \begin{aligned} {\text{WAC}} & = 52545.3 - 260.9{\text{A}} - 395.7{\text{B}} + 219.2{\text{C}} + 2.2{\text{AB}} - 3.1{\text{AC}} - 0.2{\text{A}}^{2} + 0.7{\text{B}}^{2} \\ & \quad + 0.99{\text{C}}^{2} + 8.9 \times 10^{ - 3} {\text{A}}^{2} {\text{C}} - 3.9 \times 10^{ - 3} {\text{AB}}^{2} \\ \end{aligned} $$
(4)
Fig. 3
figure 3

The effect of temperature and moisture content on WAC at the screw speed of 285 rpm

Oil absorption capacity

OAC is an important functional property for TSP because of its abundant usage in meat products to reduce the production cost along with its oil in water emulsion stabilization capacity. OAC depends on protein surface hydrophobic groups. Native proteins exhibited lower oil binding capacity than their denatured state, due to their structural folding (Osen et al. 2014). Feed moisture content influence on OAC was not significant, while the linear and quadratic effects of barrel temperature and screw speed were significant. According to the regression model (Eq. 5), no interaction term was included.

$$ {\text{OAC}} = - 17583 - 17.8{\text{A}} + 24.5{\text{B}} + 0.1{\text{A}}^{2} - 0.04{\text{B}}^{2} $$
(5)

It can be seen in Fig. 3, the minimum OAC has been predicted for mid temperatures near 175 °C which is similar to the minimum WAC near this temperature. Wang and Johnson (2001) stated that functional properties like OAC were attributed to the changes in protein hydrophobicity accompanied by protein denaturation. A similar result has been also reported on the OAC increase of soy protein isolate due to hydrothermal processing (Wang and Johnson 2001) and in another study, higher extrusion temperatures led to an increased OAC of extruded navy and Pinto bean (Gujska and Khan 1990) (Fig. 4).

Fig. 4
figure 4

The effect of temperature and screw speed on OAC at 22.5% moisture content

Brightness (\( L^{*} \))

Brightness is an effective factor to satisfy consumers to use a product as darker products will have lower acceptability. The color properties of TSP were evaluated using an accurate image processing technique and among the three component of \( a^{*} \), \( b^{*} \) and \( L^{*} \), given that \( L^{*} \) underwent more considerable changes in the extrusion process and also \( a^{*} \) and \( b^{*} \) values did not yield any significant models, only \( L^{*} \) was selected as the main color variable of the samples. The regression equation (Eq. 6) showed that only temperature was the significant factor controlling the final brightness value of the TSP powder in linear and quadratic terms, and screw speed or the residence time of the material in the extruder and the selected moisture range had no significant influence on the color properties. Figure 5 shows that the maximum brightness would be expected for the TSP processed at mid temperatures, which confirms the results achieved for WAC and OAC. Higher temperatures led to more decomposition of polysaccharides during extrusion and also enhanced protein amino groups and the polysaccharides carbonyl groups in Maillard reaction. Yu et al. (2012) and Joshi et al. (2012) reported similar results for corn blends with soy protein isolate and spirulina, respectively. It should be noticed that at lower temperatures (150 °C), \( L^{*} \) value is lower than those of the samples processed at 175C that can be attributed to less decomposition of darker materials.

$$ {\text{L}}^{*} = - 192 + 3.2{\text{A}} - 9.3 \times 10^{ - 3} {\text{A}}^{2} $$
(6)
Fig. 5
figure 5

The effect of temperature and screw speed on \( L^{*} \) at 22.5% moisture content

Genetic algorithm optimization

Process optimization first requires finding the overall optimization function and then, searching in the solutions space to find the optimized conditions which result in the defined fitness function value. In this study, GA was used to find the best process conditions. For each generation, the mean and best fitness values of the population are graphically presented in Fig. 6. The mean fitness value of the population decreased during the algorithm progress which shows the evolution of the solutions population towards the optimum conditions. The best chromosome of the final population was selected as the best solution and its genes values were found to be barrel temperature at 198.8 °C, screw speed at 291 rpm and 20.2% of feed moisture content. Applying these process conditions will lead to produce TSP with the highest RR, WAC, OAC and brightness in the ranges studied in this project. If we put this process conditions in the regression equation of each response, the results are: RR = 331.6%, WAC = 366.4%, OAC = 200.8% and \( L^{*} \) = 86 which are near the maximum values measured for different treatments. The optimum process conditions calculated by GA, were not exactly the same as the performed treatments, but can be compared with the results of the experimental conditions provided in Table S1.

Fig. 6
figure 6

The mean and best fitness values versus generation during GA optimization

Conclusion

The objective of this study was firstly to replace defatted soy with whole soybean and to overcome the problems of extruding oily feed material, which was successfully fulfilled for 10% replacement level. The second goal was to model the effects of the most important extrusion process factors. It was concluded that barrel temperature had a profound effect on the TSP functionality since lower feed moisture content led to a better functionality and screw speed changed water absorption capability to a lower extent. The TSP color, in terms of brightness, was only affected by barrel temperature. The main aim of this study was to use GA evolutionary search method to find the optimum extrusion process conditions. Based on the regression models, GA-optimized process conditions resulted in the maximum functionality properties i.e. maximum water and oil binding along with maximum brightness. One of the important aspects of TSP products with nearly high fat content is shelf life stability which is a function of lipid oxidation rate over the storage period that should be included in optimization goals. This can be taken into consideration for further research.