1. Introduction
Product quality is one of the most important factors in today’s competitive manufacturing industry. Achieving the desired quality of the manufactured good while maintaining a relatively low cost has become a common goal for various manufacturers around the world. In the areas of non-traditional manufacturing processes, such as electrochemical machining (ECM), electro discharge machining (EDM) and laser beam machining (LBM), achieving the desired quality of the final product poses a major challenge as the relationship between the process input parameters and key performance indicators (KPIs) is not fully understood. Though the mechanism of these processes is not fully grasped, these non-traditional manufacturing techniques are advantageous compared to traditional manufacturing processes. For instance, the traditional machining process introduces residual stresses into the workpiece, yielding undesirable material properties [
1]. Using ECM to manufacture the product can generate a surface free of residual stress due to the absence of force, extra heat generated, and phase transformation. Nowadays, manufacturing industries use a trial-and-error–based approach to select the optimal input process parameters to achieve the desirable product specifications. However, the trial-and-error–based approach is very time-consuming, inefficient and can tremendously increase the manufacturing costs. To overcome these challenges, many researchers have used intelligent techniques to model the relationship between the input process parameters and the KPIs, as intelligent techniques are capable of analyzing, self-learning, apprehending complexities, and they are able to store and analyze large amounts of data to obtain an increased quality of the product while shortening the time-to-market.
Senthilkumaar et al. [
2] created a forward prediction model between the input process parameters and KPIs of turning and facing of the Inconel 718 by utilizing a combination of mathematical models and neural networks (NN). Chen et al. [
3] used a back-propagation NN (BPNN) to create a forward prediction model between the input process parameters and KPIs of plastic injection molding. Maji and Pratihar [
4] created forward and backward input-output models between the process parameters and KPIs of EDM by combining an adaptive neuro-fuzzy inference system (ANFIS) and the genetic algorithm (GA), i.e., the GA was used to optimize the membership functions of the ANFIS. Fard et al. [
5] used the ANFIS for mapping between the input parameters and KPIs of dry wire electrical discharge machining (WEDM). Teimouri and Baseri [
6] used a combination of the artificial bee colony (ABC) algorithm and fuzzy logic (FL) to create a forward prediction map from the input process parameters to the KPIs of friction stir welding (FSW). Rajora et al. [
7] used a generalized regression neural network (GRNN) to map from the input process parameters to the KPIs of μ-ECM. Lu et al. [
8] used a NN for predicting the surface roughness in the micro-milling of the Inconel 718. Panda et al. [
9] used an Artifical Neural Network in combination with the Finite Element Analysis model to predict the material removal rate and average surface roughness in a die-sinking electrochemical spark machining process. Zou et al. [
10] developed an intelligent prediction model based on a NN to predict the outputs for the process of μ-ECM.
Though a sufficient amount of research is available on the application of intelligent techniques for input-output modeling in the current literature, a direct mapping from the input process parameters to the KPIs is performed regardless of any partial knowledge available about the mechanism of the process. The aim of this paper is to investigate whether embedding the partial knowledge in the intelligent prediction models can further increase their prediction accuracy. In this paper, a NN prediction model embedded with the partial knowledge about the relationship between the input process parameters and intermediate outputs is created and its performance is compared to a pure NN model. The partial knowledge is utilized by specifying part of the NN structure as compared to a pure NN structure where the relationship is completely unknown. The proposed methodology is tested on a case study of μ-ECM. In light of the fact that ECM is a very complicated process and it might decrease the prediction accuracy when some factors are embedded in the NN in some cases, this paper has different physical models with different factors embedded into the NN, and the best performance was obtained using the model and factors presented. The rest of the paper is organized as follows:
Section 2 briefly describes the experimental setup of μ-ECM;
Section 3 discusses the modeling between the input process parameters and the intermediate outputs as well as the NN modeling;
Section 4 presents the results based on the proposed approach; and
Section 5 presents conclusions from the presented work as well as possible future directions.
2. Experimental Setup
Figure 1 schematically depicts the μ-ECM experimental setup. The system consists of a three-dimensional movement device, a small-scale power supply of 100 A, a hydraulic pump for electrolyte delivery and a filtration system for slag removal. The feeding system is controlled by a PC-Based Computer Numerical Controlled Controller, a RTX real-time windows kernel program, and a motion card that drives the linear motor precisely. A pulse generator supplied a periodic current to the experimental model. A digital oscilloscope ensured that the pulse generator produced a rectangular waveform with accurate amplitude. If the tool feed rates were excessive, the tool would contact the workpiece and cause a short circuit; thus, an oscilloscope was employed to detect any short circuits. Whenever the oscilloscope detected a short circuit, a signal was sent rapidly to the PC and the tool was extracted automatically until the measured voltage returned to the applied voltage. The micro-array hole electrode module included the multiple nozzle tool electrodes, Polyvinyl Chloride (PVC) mask and tool fixture. The electrolyte was pumped to a multiple-electrode cell and exited through the small nozzle in the form of a free-standing jet directed towards the anode workpiece.
Other basic information and settings are shown as follows: the electrolyte velocity was 10 m/s at the outlet of the pump, the electrolyte temperature was 27 °C, the initial gap between the tool and the workpiece was 100 µm, the tool moving distance was 800 µm, the workpiece material was SUS 304, the electrolyte used was 10% wt. NaNO
3, the nominal diameter of the hole was 900 µm, and the depth of the hole was 500 µm. The voltage, pulse-on-time, and feed rate were used as the controllable process parameters, while the inner diameter of the micro-hole D
in and the outer diameter D
out were the measurable performances.
Figure 2 shows the Charge Coupled Device (CCD) camera image of the array of holes drilled during the μ-ECM experiment.
3. Input-Output Modeling
As stated earlier, current work in the literature focuses on mapping directly from the input process parameters to the KPIs. To attempt to increase the prediction accuracy, partial knowledge about the mechanisms of μ-ECM was embedded in the NN. This was accomplished by finding some intermediate outputs that are influenced by the inputs and are closely related to the outputs. The relationship between the inputs and intermediate outputs has been studied by researchers [
11,
12,
13]. To embed this knowledge in the NN, the relationship between the inputs and the intermediate outputs was first linearized. This linearized relationship was represented in the NN as linear weighted connections between the inputs and the first hidden layer, where the outputs from the first hidden layer represent intermediate outputs. Additional hidden layers were then added to the NN, which connected the first hidden layer and the output layer where the connections were nonlinear. Once the NN structure with the embedded partial physical knowledge was established, the weights of the NN could be trained using any gradient-based or metaheuristic algorithm. The flowchart of the proposed idea is shown in
Figure 3.
The following assumptions were made to simplify the relationship between the inputs and the intermediate outputs: the electrochemical gap between the tool (cathode) and the workpiece (anode) was assumed to be constant for one set of input parameters (voltage, feed and pulse-on-time). The transient response was ignored, and the whole process was assumed to be in steady state. The electrolyte conductivity was assumed to be constant because the refill tank was significantly large in comparison with the electrolyte involved in the machining process. Therefore, the active ion in the electrolyte could be assumed to be constant. Since the tool was not coated with insulation material, we assumed the electrical field was uniform around the tool. Eddy flow was neglected in the inter-electrolyte gap and the horizontal velocity was assumed to be constant. In addition, friction and heat transfer were not considered in establishing the physical model due to the high electrolyte flow rate and the low surface roughness.
In this paper, four intermediate outputs were determined to be the most influential on the outputs, i.e., the current density, the inter-electrode gap, the void fraction, and the material removal rate. According to McGeough [
12], the current density in μ-ECM can be calculated using Equation (1)
where
denotes the current,
is the area where the current is applied to,
represents the electrolyte conductivity which is assumed to be constant,
is the voltage applied, and
is the inter-electro gap width which is set to constant in the assumption. Therefore, the intermediate output
has a linear relationship with the input parameter which can be described using Equation (2)
where
is a coefficient related to the electrolyte conductivity
and the inter-electrode gap
. In addition, the equilibrium gap was derived in [
12] using Equation (3). Kozak reported that the pulse time
p will influence the equilibrium gap and material removal rate in [
11]. The relationship can be described using an exponential function with respect to the pulse time as shown in Equation (3)
where
is a machining parameter related to the atomic numbers and valencies of the elements constituting the workpiece, the electrolyte conductivity, Faraday’s constant and the density of the workpiece;
is the voltage applied;
is the feed rate of the electrode;
c is a constant; and
p is the pulse-on-time. Since the workpiece was composed of different materials, the overall atomic number and valence needed to be determined. Two methods are widely used in the derivation. One is the ‘percentage by weight’ method and the other is the ‘superposition of charge’ method [
12]. In this paper, the superposition of charge method was used to obtain the atomic number and valence of stainless steel 304. Because the ECM process involves a pulsed voltage input, some corrections needed to be made to compensate for the transient state caused by the short pulses. Equation (3) can be linearized using a first-degree Taylor approximation and can be given by:
where
,
,
,
are the linearization coefficients and
is the pulse time.
Thorpe derived the relationship of the void fraction based on the separation of the electrolyte flow within the electrochemical gap, the fundamental kinematic equation and the transport equations [
13]. He also proposed that the ECM process can be characterized by four dimensionless parameters. Based on Thorpe’s derivation and the assumption made previously, the void fraction can be described using Equation (5)
where
,
are the electrochemical equivalents for the anode material and the gas;
,
,
are density of the anode material, gas and electrolyte, respectively;
is a constant;
is the distance from the outer diameter of the electrode to the bottom corner of the machined hole;
is the feed rate; and
is the inlet electrolyte velocity. Equation (5) can also be linearized into Equation (6) using a first-degree Taylor approximation as:
The last intermediate output is the material removal rate which can be described by Equation (7) with consideration of the pulsed voltage derived from [
11],
where
and
are the correction factors and travel, d is the travel distance from of the tool from beginning of the machining process to the end. The linearized form of Equation (7) is shown next as Equation (8)
The four desired intermediate outputs described by Equations (2), (4), (6) and (8) were calculated using the experimental data obtained from [
7]. The relationships developed in Equations (2), (4), (6), and (8) were embedded in the NN as linear connections between the inputs and the hidden neurons of the first hidden layers. Since there is no understanding of the relationship between the intermediate outputs and the final outputs, another hidden layer was used. The connection between the first hidden layer and the second hidden layer as well as the second hidden layer to the output player was nonlinear. The proposed idea is shown in
Figure 3. The training procedure for the embedded physics model is shown in
Figure 4. The constants
C1 through
C11 were treated as the weights of the linearized NN, as shown in
Figure 4.
To determine whether the NN with the embedded partial knowledge would have higher prediction accuracy than a pure NN model, the weights of the proposed NN structure were first trained using the genetic algorithm (GA) [
14]. The available experimental data (see
Appendixas divided into training (70%), validation (15%), and testing (15%) sets. The training data sets were used to training the weight values, while the validation data sets were used to ensure that the weight values did not over-fit to the training data set. Once the NN had been trained, its prediction accuracy was measured by using it to predict the outputs of the testing data set. During the training procedure, the aim of the GA was to minimize the mean squared error (MSE), given by Equation (9), of the training data set. At each iteration of the training procedure, the MSE of the validation data set was also calculated and the set of weights that provided the smallest MSE for the validation data set were used as the final weight values.
where
is the actual output of the
ith data set and
is the predicted output of the
pth data set.
4. Results
Since no theoretical guideline for choosing the number of neurons in the second hidden layer exists, a trial-and-error–based method was used to determine the number of neurons in the second hidden layer. In the trial-and-error–based method, the number of neurons in the second hidden layer was varied and a NN was trained to predict the outputs for the testing data set. For each NN structure, 10 simulations were run with the same training, validation, and testing data sets and the Mean Absolute Percentage Error (MAPE) of the testing data set was used to determine the best NN structure for the hybrid model.
Figure 5 shows the MAPE obtained for the test set using different numbers of neurons in the second hidden layer.
It can be observed from
Figure 5 that the hybrid structure that had two neurons in the second hidden layer had the best prediction accuracy for the testing data set.
During the training procedure, the following settings for the GA were used: a population size of 200, an iteration limit of 100, and a crossover rate of 0.5. The results obtained using the proposed NN structure were also compared to pure NNs where the outputs were directly mapped to from the inputs. In pure NN models, the number of hidden neurons in the first hidden layer was altered to find the best pure NN structure. The prediction accuracies of the NN with embedded partial knowledge and the pure NN were compared by looking at the mean absolute percentage error (MAPE) of the testing data set. To accurately compare the different types of NN models, five different simulations were performed and, in each simulation, the training, validation, and testing data sets were changed.
Table 1,
Table 2,
Table 3 and
Table 4 compare the MAPEs obtained for the test set using the NN model with embedded knowledge and the pure NN model.
As can be seen from
Table 1, compared to the pure NN model with a 3-1-2 structure, i.e., three input neurons, one hidden neuron, and one output neuron, the NN model with embedded knowledge had a better prediction accuracy ranging from 2.36% to 8.42%. Compared to the pure NN model with a 3-2-2 structure, the NN model with embedded knowledge had a better prediction accuracy ranging from 2.71% to 10.97%. The NN model with embedded knowledge was 3.42%–16.08% better than the pure NN model with a 3-3-2 structure, and compared to the pure NN model with a 3-4-2 NN structure, the NN model with embedded knowledge was better by 3.84%–12.89%.