Introduction

Plastics have better characteristics than general traditional industrial materials. These characteristics, such as a low density, corrosion resistance, workability, and low prices, have caused plastic products to increasingly be used as a substitute for metal and glass wares. In recent years, with the rapid development of electro-optical and information technology industries, the demand for various optical elements and photovoltaic systems has greatly increased. Optical lenses are indispensable components of these systems. The common methods used for producing plastic goods include injection molding, compression molding, blow molding, extrusion molding, and co-injection molding. The injection molding method is characterized by high productivity and yield, making it feasible for automation and the production of parts with complicated shapes. The injection molding process can be divided into several stages according to the operating cycles, including plastication, filling, packing, cooling and ejection. First, plastic pellets are plasticized into melt after screw shearing and feed pipe heating. Then, the melt is injected into the runner system of the mold to fill the cavities. Finally, the finished product is ejected after cooling. During the injection molding process, the melt is a non-Newtonian fluid with complex and highly nonlinear material characteristics. The temperature, shear rate, velocity, and pressure in the injection molding process can influence the quality of the final molded products. Building the prediction models, such as the artificial neural network (ANN) model to predict warpage (Yen et al. 2006), shrinkage (Altan 2010), flash (Zhu and Chen 2006), short shot and weld line (Sadeghi 2000), thickness reduction and porosity creation (Kwak et al. 2005), and weight and length (Chen et al. 2009b), as well as a regression model to predict warpage (Chen et al. 2009a) and a response surface methodology (RSM) model to predict weld line (Ozcelik and Erzurumlu 2005; Ozcelik 2011), in order to master the correlation between process parameters and the quality of molded products, are effective solutions. Many researchers have used different optimization approaches to obtain the optimal injection molding parameters, such as genetic algorithms (GA) to minimize warpage (Ozcelik and Erzurumlu 2005; Yin et al. 2011), particle swarm optimization (PSO) to minimize product and mold costs (Che 2010) and optimize product quality (Katherasan et al. 2014), the hybrid adaptive network based fuzzy inference system (ANFIS) with a multi-input multi-output (MIMO) strategy to optimize product quality (Huang and Chang 2011), hybrid ANN/GA to minimize shrinkage (Shen et al. 2007) and warpage (Yin et al. 2011), combined design of experiment (DOE)/ANN/GA to minimize warpage (Ozcelik and Erzurumlu 2005, 2006; Kurtaran et al. 2005), as well as research and applications regarding quality monitoring (Chen and Turng 2005; Lau et al. 2005; Li et al. 2009). The use of different optimization methods to obtain a prediction model for products is called forward modeling.

During molding trials, the operator will set up an initial process point based on his experience. This procedure depends on many factors, such as the molding material, the part geometry, the mold layout, and the molding machine. The process parameters will be adjusted repeatedly until the molding trial fully and successfully satisfies the quality of the molded parts. Parameter setting is a highly skilled job that is based on the skilled operator’s “know-how” and intuitive sense acquired through long-term experience rather than through a theoretical and analytical approach. However, in a globally competitive industry such as injection molding, it is no longer enough to use the experience approach to determine the process parameters for injection molding. Typically, the inverse problem for injection molding is used to determine the process parameters for producing products with the desired quality values. A number of researchers have attempted various approaches to facilitate injection molding process setups that can reduce the time to market and obtain consistent quality products (Mok et al. 1999), such as fuzzy (Li et al. 2009), fuzzy-ANN (He et al. 1998; Mok and Kwong 2002; Huang and Chang 2011), fuzzy-GA (Lau et al. 2005), ANN-GA (Mok et al. 2001; Chen et al. 2009b), intelligent hybrid systems based on ANN-GA (Mok et al. 2000), data envelopment analysis (DEA) (Loera et al. 2008), and simplex (Kamoun et al. 2009). By using these methods, a set of process parameters can be determined, either on-line or off-line, to produce a near-optimal quality product. In reality, however, multiple sets of process parameters can be identified for near-optimal quality products.

The precision requirement for plastic optical lenses is higher than that for general plastic molded products, and if the molded lens profile is excessively deviated from the design value, the optical properties of the lens will be deteriorated and even unworkable. Therefore, this study investigated the form accuracy of a plastic optical lens and proposed a process parameter optimization model for injection molding, in which the most appropriate process parameters were inversely obtained according to the demand for form accuracy of optical lenses, in order to allow operators to rapidly obtain the appropriate process parameters needed to deliver the required product quality. A hybrid DOE, ANN and GA modeling approach was presented, from which several sets of process parameters could be quickly determined. To validate the feasibility of the approach, a case study on setting the processing parameters in injection molding was conducted, with promising results.

Optimization strategy

A hybrid DOE, ANN and GA approach was developed to determine the sets of process parameters meeting the desired lens form accuracy. The overall procedure was as shown in Fig. 1. Taguchi experiments were used to identify the significant factors affecting the form precision of the lens for the injection molding process, as well as to determine the optimal parameters. The significant factors were then used to implement a full factorial experiment, and the experimental data were used to establish the ANN prediction model for form accuracy of the lens. Finally the trained ANN model was combined with a GA to establish the reverse model for injection molding and to identify multiple sets of process parameters for producing lenses with the desired form accuracy. The ANN and GA models were also used to improve the optimal parameters obtained from the Taguchi method. Confirmation experiments were performed to verify the accuracy of the hybrid model.

Fig. 1
figure 1

Flow chart for this study

Taguchi method

The qualities of the molded parts for injection molding are affected by a number of process parameters. This study investigated the form accuracy of a spherical lens using a Taguchi experiment to identify significant influencing factors. The form accuracy of a lens is a Smaller-the-Better (STB) quality characteristic. The signal to noise ratio (S/N ratio) of the STB is defined (Montgomery 2001; Taguchi et al. 2005) as:

$$\begin{aligned} \hbox {S/N}=-10\log _{10} \left( {\frac{1}{\hbox {n}}\sum _{i=1}^\mathrm{n} {\hbox {y}_\mathrm{i}^2 } } \right) (\hbox {dB}) \end{aligned}$$
(1)

After the significant factors were identified, a series of confirmation experiments using the optimized parameter were subsequently performed. The successful confirmation experiments indicated that the set of significant factors obtained were valid and that the Taguchi method was applicable. If the confirmation result failed, the set of factors that had been selected earlier would be considered inadequate; consequently, the procedures would be repeated. In order to simply the process, the authors used an \(\hbox {L}_{18}(2^{1}\times 3^{7})\) array in this study.

Neural network

The artificial neural network (ANN) is a parallel computational model that is similar to the biological neural mechanism, namely, using computer calculations to simulate a human cerebral nerve cell network. The back-propagation neural network (BPNN) is one of the most representative and popular neural network among numerous neural networks (Ozcelik 2011; Katherasan et al. 2014; Ashhab et al. 2014). BPNN is a multilayer feedforward network that uses a supervised learning method to handle the nonlinear relations between the input and output variables. This study used a three-layer BPNN with a hidden layer to build an optical lens form accuracy prediction model. The output of each neuron is calculated based on the sum of the weights of all the connected nodes from the preceding layer plus a bias, and the activation function generates an output according to the following:

$$\begin{aligned} net_i&= \sum _{j=0}^n {w_{ij} x_j } +b_{oi}\end{aligned}$$
(2a)
$$\begin{aligned} Y_i&= f(net_i ) \end{aligned}$$
(2b)

where, \(net_{i}\) is the aggregation function of the \(i\hbox {th}\) neuron in the layer, \(n\) denotes the number of neurons, \(w_{ij}\) is the associated weight between the \(i\hbox {th}\) and \(j\hbox {th}\) neurons, \(\hbox {x}_{j}\) represents the output of the \(j\hbox {th}\) neuron, and \(b_{oi}\) is the bias weight on the \(i\hbox {h}\) neuron and output of the ith neuron in the computing layer. \(Y_{i}=f(net_{i})\) is generated by processing the input \((net_{i})\) through an activation function.

The activation function for the hidden layer and are output layer of the network are a positive logarithmic sigmoid function, and the input–output relationship is:

$$\begin{aligned} f(net_i )=\frac{1}{1+e^{-(\lambda net_i )}} \end{aligned}$$
(3)

where, \(\lambda \) is the gain factor of the neurons. The value of this activation function approaches 0 and 1, respectively, when the independent variable approaches plus-minus infinity, as shown in Fig. 2.

Fig. 2
figure 2

Positive logistic function

In the process of training the neural network of this study, the performance function was represented by the mean square error (MSE), i.e. the average of the square errors between the neural network inference value and the target value, defined as follows:

$$\begin{aligned} MSE =\frac{\hbox {1}}{n}\sum _{i=1}^n {\left( {T_i -A_i } \right) ^{2}} \end{aligned}$$
(4)

where \(T_{i}\) is the target value of the \(i\hbox {th}\) training data or checking data, \(A_{i}\) is the network inference value of the \(i\hbox {th}\) training data or checking data, and \(n\) is the number of training data or checking data.

Genetic algorithm (GA)

The genetic algorithm is an optimization method based on the Darwinian fitness. The basic mathematical units of the GA include the chromosomes, population size, bit length, and fitness function, as well as the three major operating mechanisms of selection (reproduction), crossover, and mutation, which are used to imitate the process of organic evolution. The GA is an algorithm for the global search of optimal solutions (Ozcelik 2011). In this study, the implementation of the GA consisted of the following four parts: (1) encoding, (2) fitness function, (3) selection mechanism, and (4) crossover and mutation mechanism. The parameters for the GA were encoded by binary encoding into strings of 0 and 1, and the initial population was randomly generated.

In a GA, a fitness function as an objective function can be designed according to different problems and demands, and the optimal solution is searched for according to a preset range of parameters. This study used the trained ANN prediction model for the fitness function. Since the goal output of an ANN prediction model is normalized, the values are between 0 and 1, whereas the GA generally searches the maximum value of a system. Therefore, subtracting a predefined positive integer with the prediction value of the ANN model transforms the system into a minimizing problem. The searching range for the fitness function of the GA is typically the domain of the operating parameters of a machine; in this study the Taguchi optimal parameter values \(\pm \)20 % were taken as the GA searching range to increase computation efficiency. Two fitness functions were defined and used to optimize the process parameters for injection molding, as follows:

  1. 1.

    Fitness function for inverse calculation of the process parameters

    Minimize:

    $$\begin{aligned} obj=1-\left| { PV -A} \right| \end{aligned}$$
    (5)

    Subject to: The optimal values of the four significant factors identified by the Taguchi method \(\pm \)20 %.

    where obj is the fitness function, PV is the specified value of the lens form accuracy, and \(A\) is the inference value of the trained ANN model.

  2. 2.

    Fitness function for improvement of Taguchi optimal parameters

    Minimize:

    $$\begin{aligned}&obj=1-A \end{aligned}$$
    (6)

    Subject to: The optimal values of the four significant factors identified by the Taguchi method, \(\pm \)20 %.

In this study, the GA was used to determine the appropriate parameter sets meeting the desired form accuracy of the lens. The optimal process parameters obtained from the Taguchi method were assigned to the baseline (initial population).

Coefficient of determination

In the ANN model, in order to express the fitness of the model for experimental data, the coefficient of determination \((\hbox {R}^{2})\) is often used to determine the accuracy of the model. The larger the \(\hbox {R}^{2}\) is, the higher the fitness will be, i.e., the closer the model prediction value will be to the experimental value. \(\hbox {R}^{2}\) is defined (Montgomery 2001) as:

$$\begin{aligned} \hbox {R}^{2}&= \frac{\hbox {Regression sum of squares (SSR)}}{\hbox {Total sum of squares (SST)}}\nonumber \\&= 1-\frac{\hbox {Error sum of squares }\left( {\hbox {SSE}} \right) }{\hbox {Total sum of squares (SST)}} \end{aligned}$$
(7)

where, SST (total sum of squares) is the total variance, SSR (regression sum of squares) is the amount of variation that can be explained by the model, and SSE (error sum of squares) is the amount of random variation that cannot yet be explained by the model.

Experimental setup

This study combined ANN and GA to establish an inverse model of injection molding, and two experiments were conducted. The first experiment was the Taguchi experiment, which screened out the significant factors influencing lens form accuracy and obtained the Taguchi optimal parameters, and the second experiment was a full factorial experiments based on significant factors. The second experimental data was used to establish the ANN prediction model for lens form accuracy.

Experimental equipment and material

This study used an injection molding machine and various measuring instruments. A 220S 250-60 precision injection molding machine produced by Arburg (Germany) was used for the injection molding experiments, and the surface form accuracy of the lens was measured via a Form Talysurf PGI-840 surface contour profilometer made by Taylor Hobson (Britain). The ANN and GA programs for form accuracy data used \(\hbox {MATLAB}^{\circledR }\) software with neural network Toolbox (R2012b). The experimental material was optical grade PMMA-80N (polymethyl methacrylate), manufactured by Asahi Kasei (Japan). Five specimens were sampled at the same cavity of the four-cavity mold, and the average value was taken as the experimental data.

Experimental mold

A plano-convex lens was adopted, as shown in Fig. 3a, and a four-cavity layout of the product was designed in a mold, as shown in Fig. 3b. The diameter of the lens was 15 mm, the effective spherical diameter of the lens was 13 mm and the maximum thickness at the lens center was 1.4243 mm.

Fig. 3
figure 3

Dimensions of the plano-convex lens. a Dimensions of the lens. b Part layout in the mold

Table 1 Factors and levels for the Taguchi experiment
Table 2 Form accuracies and S/N ratio for \(\hbox {L}_{18}(2^{1}\times 3^{7})\)

Results and discussion

Significant factors

The Taguchi parameter design used an \(\hbox {L}_{18}(2^{1}\times 3^{7})\) orthogonal array. The eight control factors were melt temperature, injection speed, injection pressure, filling to packing switchover position, packing pressure, packing time, mold temperature, and cooling time. The factor levels are shown in Table 1. The experimental result is shown in Table 2, in which the lens form accuracies were the average value of five parts. The response graph in Fig. 4 was obtained according to the S/N ratio of the STB characteristic. It was observed that the optimal parameter levels combination was \(\hbox {A}_{2}\hbox {B}_{2}\hbox {C}_{3}\hbox {D}_{3}\hbox {E}_{2}\hbox {F}_{2}\hbox {G}_{2}\hbox {H}_{3}\), i.e., a melt temperature of \(240\,^{\circ }\hbox {C}\), an injection speed of 90 mm/s, an injection pressure of 110 MPa, a filling to packing switchover position of 6.36 mm, a packing pressure of 110 MPa, a packing time of 7 s, a mold temperature of \(85\,^{\circ }\hbox {C}\) and a cooling time of 25 s.

Analysis of variance (ANOVA) is usually used to identify the influence of control factors. Table 3 is the ANOVA table of the lens form accuracy S/N ratio, which shows that the most significant influence factor was the mold temperature. In addition, according to the contribution rate, four control factors were selected for \(3^{4}\) full factorial experiments to obtain learning and testing data for the ANN model. The factors included mold temperature, cooling time, packing pressure and packing time.

Fig. 4
figure 4

Response graph of S/N ratio for the form accuracy of the lenses

Table 3 Analysis of variance for S/N ratio

The optimal parameter level combination could be obtained by the Taguchi experiment. However, the results needed to be experimentally verified because the number of Taguchi experiments was too small. In the \(\hbox {L}_{18}\) Taguchi experiments, the average value of the S/N ratio was 2.75 dB. Based on the significant factors in ANOVA, i.e., the four control factors listed above, the predicted value of the S/N ratio of the optimal conditions was estimated as:

$$\begin{aligned} {\hat{\eta }}&= \overline{\hbox {T}} +\left( {\hbox {F}_{2} -\overline{\hbox {T}}}\right) +\left( {\hbox {G}_{2} -\overline{\hbox {T}}}\right) +\left( {\hbox {H}_{3} -\overline{\hbox {T}}}\right) \nonumber \\&= \hbox {F}_{2} +\hbox {G}_{2} +\hbox {H}_{3} -2\times \overline{\hbox {T}}\nonumber \\&= 3.46+4.55+3.49-2\times 2.75 \nonumber \\&= 6\left( {\hbox {dB}} \right) \end{aligned}$$
(8)

An important step in the Taguchi optimization technique is conducting a confirmation experiment to validate the predicted result. The confidence interval (CI) is the maximum and minimum value between which the true value should fall at some stated percentage of confidence. The 95 % confidence interval for the predicted value of the optimal parameter level combination on a confirmation test can be calculated by the following equation (Ross 1996; Chaulia and Das 2008; Tang et al. 2013). In this work, the optimal condition was used for five confirmation experiments to calculate CI, in which \(\hbox {F}_{0.05,1,11}=4.84\). From the ANOVA Table, \(\hbox {V}_\mathrm{e}=0.6207\) and \(\hbox {r}=5\), and then:

$$\begin{aligned} \hbox {CI}_{\mathrm{SN}}&= \sqrt{\hbox {F}_{\upalpha ;\mathrm{v}_{1};\mathrm{v}_{2}}\times \hbox {V}_\mathrm{e} \times \left( \frac{1}{\hbox {n}_{\mathrm{eff}} }+\frac{1}{\hbox {r}}\right) }\nonumber \\&= \sqrt{4.84\times 0.6207\times \left( {\frac{1}{2.571}+\frac{1}{5}} \right) }\nonumber \\&= 1.33\left( {\hbox {dB}} \right) \end{aligned}$$
(9)

where, \(\hbox {F}_{\upalpha ;\upnu 1,\upnu 2}\) denotes the F value of \(\upalpha \) at a level of significance, the level of confidence is \(1-\upalpha \), \(v_{1}\) is the degree of freedom (DF) for the mean which is always = 1, \(v_{2}\) denotes the DF of the pooled error variance, \(V_\mathrm{e}\) is the pooled error variance, \(n_{eff}\) is the number of effective experimental values, and \(r\) is the number of replication for confirmation experiments.

$$\begin{aligned} \hbox {n}_\mathrm{eff}&= \frac{\hbox {Total run of experiments (N)}}{1+\hbox {Degree of freedom for significant factors (DF)}}\nonumber \\&= \frac{18}{1+\left( {2+2+2} \right) }=2.571 \end{aligned}$$
(10)

The predicted S/N ratio of the optimal process parameters was \(6\,\pm \,1.33\) dB (4.67–7.33 dB). The results of the five validation experiments are shown in Table 4. It was observed that the S/N ratios of all experimental runs were within the confidence interval, proving that the Taguchi experiment result was reliable.

Table 4 The result of the Taguchi confirmation experiments
Table 5 Factors and levels for the \(3^{4}\) full factorial experiments

ANN learning data set experiments

This study used four significant factors, including mold temperature, cooling time, packing pressure, and packing time, for the full factorial experiments. According to the aforesaid S/N ratio response graph of lens form accuracy, the longer the cooling time, the better the form accuracy would be. Therefore, in order to obtain better lens form accuracy, the range of the cooling time was reset as 20–30 s. The levels for the mold temperature, packing pressure, and packing time were maintained as in the range of the Taguchi experiment, and the other fixed injection molding parameters used the optimal process parameters obtained from the Taguchi experiment. The factor levels of \(3^{4}\) full factorial experiments are shown in Table 5. A total of 81 experimental runs were implemented, and the results were as shown in Table 6, in which 60 groups were the training data sets for learning the neural network model, and the remaining 21 groups were the testing data sets.

Table 6 Form accuracy of the lenses for the \(3^{4}\) experiments

ANN model for quality prediction

The supervised BPNN model was constructed according to the 81 sets of full factorial experimental data as shown in Table 6, in which 60 groups were the training data sets and the remaining 21 groups were the testing data sets that determined the convergence step size, gradient direction, and stop learning of ANN. The training of this neural network model used the Levenberg–Marquardt algorithm with the gradient descent weight bias learning function, which has a higher network convergence rate. The other network training settings were as shown in Table 7.

The input variable of the BPNN was the significant factors influencing lens form accuracy, and the output variable was the lens form accuracy discussed in this study. A back-propagation multilayer neural network consists of three layers of neurons termed as the input, hidden, and output layers, as shown in Fig. 5. The flow chart of the learning and testing procedures for the proposed ANN model are shown in Fig. 6. The procedure was performed as an optimization algorithm. To obtain the optimal neural network, usually the number of neurons in the hidden layer is successively determined by experience or experimentation. In this study, an experiment was implemented to determine the number of hidden neurons. A neural network model of four to 12 neurons, at intervals of 2 neurons, was used to compare the coefficient of determination \((\hbox {R}^{2})\) for the hidden layer. Simplistically, the experimental data sets shown in Table 6 were used to implement the training ANN model with a different number of neurons on the hidden layer. The results are shown in Table 8. According to the results, the larger the number of neurons, the smaller the MSE would be, and the lower the coefficient of determination. This is because the increase in the number of neurons resulted in overfitting, namely, in the training process, the error of the training data set was very small, while the error of the checking data set increased. In addition, the coefficient of determination of four neurons was better than that of six neurons; however, the MSE in the training process was larger, as shown in Fig. 7, which could result in a larger error in subsequent inverse modeling. Therefore, this study decided on six neurons in the hidden layer. The average error between the inference values of this ANN and the 21 test groups was 4.89 %, and \(\hbox {R}^{2}\) was 0.9675.

Table 7 Training variables for the back-propagation neural network
Fig. 5
figure 5

Architecture of the ANN

Fig. 6
figure 6

Flow chart of the ANN learning and testing

Inverse model

Hybrid ANN and GA

This study combined ANN with GA in order to construct an inverse model of the injection molding process. First, the process parameters were encoded into a binary format and the initial process parameters were randomly generated. The above-trained ANN model for quality prediction was used to the fitness function of the GA, and the process parameters meeting the fitness function target were obtained through the evolutionary process of the GA. In the evolutionary process, parameters with higher fitness values were reserved in the next generation for crossover in order to obtain better process parameters, until the fitness value of the process parameters met the desired requirement and the optimal process parameters could be obtained.

Table 8 Comparison of different the number of hidden nodes
Fig. 7
figure 7

Comparison of the prediction error at different hidden nodes. a Four hidden nodes. b Six hidden nodes

The flow chart of the hybrid ANN and GA model is shown in Fig. 8. The required form accuracy of the lens was first assigned and the searching ranges for the four significant factors were determined. The data were then encoded and imported into the hybrid ANN and GA model. In this model, roulette wheel selection based on a ranking algorithm was used as the selection mechanism. Chromosomes were selected in quantities according to their relative fitness after ranking in the roulette wheel operator, and they were then fed into the intermediate population. The population size was 30. Single-point crossover and uniform mutation operators were used, and the probabilities of the crossover and mutation operators were 0.7 and 0.05, respectively. In addition, in the binary encoding of the process parameters in the GA, the string length of the genes determined the accuracy of the process parameter, i.e., the resolution. In terms of the packing pressure, the minimum resolution of the machine was set as 1 MPa, the search interval of the packing pressure was from 100 to 120 MPa, and the range of the GA parameters was obtained by broadening the upper and lower limits of the Taguchi optimal process parameters. The range is shown in Table 9. The string length was set as 5 in this study, meaning the range between 100 and 120 was divided into \(2^{5}\) equal parts. Each part was 0.625, which was lower than 1 MPa of the machine, and which met the optimization requirements. Therefore, the trained ANN model could precisely predict the form accuracy of lenses produced using the process parameters. The GA was then applied to obtain the robust process parameter settings for the investigated range.

Fig. 8
figure 8

Flow chart for the inverse model by hybrid ANN and GA

Table 9 Variables for the genetic algorithm
Table 10 Parameters set of the process window at the form accuracy of \(0.5\,\upmu \hbox {m}\)
Table 11 Parameters set of the process window at the form accuracy of \(0.7\,\upmu \hbox {m}\)
Table 12 Parameters set of the process window at the form accuracy of \(1\,\upmu \hbox {m}\)

Case study

According to the aforesaid results, mold temperature was the most significant factor influencing lens form accuracy. Therefore, the process parameters that met the form accuracy requirements at different mold temperatures could be obtained using the inverse model. This study took a form accuracy of 0.5, 0.7, and \(1\,\upmu \hbox {m}\), respectively, as the examples, and used an ANN with a GA to develop the inverse model of the injection mold parameters. The fitness function of the GA used Eq. (5), within a targeted value of a 2 % error, and consequently 26, 17, and 6 sets of the process parameters that met the quality requirements could be obtained by the proposed model, respectively. The details are shown in Tables 10, 11 and 12. The range of the process parameters was obtained, as shown in Table 13. When the form accuracy requirement was \(1\,\upmu \hbox {m}\), there were only six sets of process parameters meeting the requirements, as the \(1\,\upmu \hbox {m}\) form accuracy could only be obtained if the mold temperature was higher than \(95\,^{\circ }\hbox {C}\).

In addition, the process parameters that met form accuracy requirements were drawn in three process parameter process windows. Figs. 9, 10 and 11 show the 3D process windows for a form accuracy of 0.5, 0.7, and \(1\,\upmu \hbox {m}\), respectively. The points in the figures are the operating points where the desired form accuracy was obtained. The process window enabled the operators to see the range of process parameters that met the quality requirements, in order to rapidly select the process parameters with a shorter cooling time or lower mold temperature according to actual production requirements, such as shortening the production cycle time or reducing machine energy consumption. According to the process windows, the form accuracy of the lens deteriorated with an increasing mold temperature.

In order to verify the accuracy of the inverse models established by ANN with GA, some experimental conditions were selected at each mold temperature for the validation experiment. The error between the experimental values and the prediction values of the inverse models was calculated as follows:

(11)

The results of experiments are shown in Table 14. The results showed that the maximum error between the experiment value and the prediction value for the model was 16.7 %, the smallest error was 2.63 %, and the average error was 8.27 %. Therefore, the inverse model via ANN with GA in this study demonstrated acceptable accuracy.

Fig. 9
figure 9

Process window for the form accuracy of \(0.5\,\upmu \hbox {m}\). a Packing pressure versus cooling time. b Mold temperature versus cooling time. c Mold temperature versus packing pressure. d Combination of three process parameters

Fig. 10
figure 10

Process window for the form accuracy of \(0.7\,\upmu \hbox {m}\). a Packing pressure versus cooling time. b Mold temperature versus cooling time. c Mold temperature versus packing pressure. d Combination of three process parameters

Fig. 11
figure 11

Process window for the form accuracy of \(1\,\upmu \hbox {m}\). a Packing pressure versus cooling time. b Mold temperature verus cooling time. c Mold temperature versus packing pressure. d Combination of three process parameters

Table 13 Process parameter ranges for different quality requirements
Table 14 Confirmation experiment result for the inverse model

Improving the taguchi optimal process parameters

GA is capable of obtaining a global minimum value. This study was based on the Taguchi optimal process parameters, which broadened the upper and lower bounds of 20 % for the process parameter range, and the optimal process parameters within the parameter limitation was obtained by the fitness function of Eq. (6). The result is shown in Table 15. The process parameters optimized by the GA were different from those based on the Taguchi Method, and the optimal form accuracy of the lens was better than that of the Taguchi Method, which was \(0.392\,\upmu \hbox {m}\). A confirmation experiment was conducted for this prediction result, and due to the experimental machine resolution, the process parameters optimized by the GA were simplified by rounding. According to the experimental results, the measured lens form accuracy was \(0.415\,\upmu \hbox {m}\), and the error to the prediction value was 5.54 %. Therefore, the process parameters optimized by the hybrid ANN and GA resulted in better lens form accuracy than the Taguchi experiment, and the form accuracy improved from \(0.479\) to \(0.415\,\upmu \hbox {m}\), for an improvement rate of 13.36 %.

Table 15 Confirmation experiment result for improved Taguchi optimal value using the GA

Conclusion

This study used an ANN as the lens form accuracy prediction model, and employed a GA to inversely calculate the process parameters meeting the product quality requirements. This method enabled operators to rapidly obtain the optimal process parameters according to the required quality. The conclusions were as follows:

  1. 1.

    The results of ANOVA clearly showed that the mold temperature, packing pressure, and cooling time were the significant factors influencing lens form accuracy.

  2. 2.

    The ANN prediction model could successfully characterize the relationship between process parameters and lens form accuracy. The average error between the ANN prediction values and the experimental values was 4.89 %, and the coefficient of determination was 0.9675.

  3. 3.

    The result indicated that the hybrid ANN and GA strategy was successful in determining the process parameters meeting the desired form accuracy of the lens in the injection molding in the case studies.

  4. 4.

    According to the results of the hybrid ANN and GA approach to improve the Taguchi optimal process parameters, better lens form accuracy could be obtained by using the proposed method. The form accuracy improved from 0.479 to \(0.415\,\upmu \hbox {m}\), for an improvement rate of 13.36 %.