Keywords

1 Introduction

Microfluidics involve the study of transport of fluids in macro or nanoliters through the micro-components, e.g. micropumps, microchannels and microvalves [1]. It has revolutionized the miniaturization of various chemical, biological and pharmaceutical laboratory tests, famously known as Lab-on-Chip (LOC). Micromixing is essential part of such LOC devices which are used for cell analysis, drug delivery and DNA sequencing [2]. The turbulent mixing is difficult at microscale due to low Reynold number (Re). Chaotic advection and molecular diffusion plays important role in mixing of two or more streams of fluid in such devices, called as Micromixers. The fabrication of these microfluidic devices is carried out by micro-fabrication techniques such as soft lithography, laser engraving, photochemical machining and 3D printing on suitable materials [3]. While is the fabrication can be outsourced from developed laboratories, the design and optimization of these devices involves years of work until a workable prototype is not developed.

Use of Machine Learning (ML) algorithms to develop statistical models that can recognize patterns and predict outcome is gaining importance nowadays [4]. Few examples are face recognition, speech-to-text, weather forecasting and autonomous vehicles. These models can be as easy as simple regression or difficult as Deep Neural Networks (DNN) [5]. The use of ML models in microfluidics has improved processes like cancer screening, cell counting, blood grouping and design of LOC devices.

Numerical simulations has made it possible to study of complex geometries and physics involved in microfluidics. Various commercially available softwares like Fluent, COMSOL MP, etc. are used by researchers to design a microfluidic device before actual prototype [6, 7]. The chaotic mixing at low Reynolds numbers can be easily evaluated with the help of numerical simulations.

The robustness of a numerical study increases if the factors affecting the response function are identified and included in study. Various Design of Experiment (DoE) techniques, viz. Taguchi, RSM, 2 factorial, etc. are used to design the sample size and accordingly experiments are carried out. Analysis of Variance (ANOVA) technique is then used to evaluate the effect of design variables on response function and their interdependence.

The use of numerical simulations to train ML algorithms and develop a robust Metamodel has recently acquired attention of researchers. Wei et al. [8] trained an artificial neural network (ANN) metamodel by a series of CFD simulations of peracetic acid (PAA) disinfection characteristics in a chemical treatment reactor. Naphon et al. [9] analyzed the micro-channel heat sink with nanofluids jet impingement by applying CFD and ANN. The ANN model was trained with the Levenberg–Marquardt Backward propagation (LMB) algorithm.

In this paper, an effort is made to develop an ANN Metamodel on the basis of numerical simulations carried out for the sample size which is obtained by full factorial method. Five design variables of a Y-shaped micromixer were identified and varied at four different levels. The trained Metamodel is then validated for a new design of Y-shaped micromixer against its numerical simulation results. The flowchart of the methodology is represented in Fig. 1.

Fig. 1
A flow diagram. General factorial design is followed by m power n sample size, numerical simulations for each combination in the sample size, calculation of mixing index for each simulation experiment, development of A N N metamodel from simulation results, and validate A N N with known data.

Flowchart for the CFD based ANN metamodel

2 Micromixer Model

Micromixers comes in various shapes and are classified as active and passive micromixers [10]. The active micromixers make use of external forces such as acoustic, mechanical, pneumatic for mixing while emphasis is given on geometric shapes and sizes to increase chaotic mixing in case of passive micromixers without the aid of external forces. Various forms of microchannels such as serpentine, parallel and with or without obstacles of different shapes have been a keen area of interest for researchers [11,12,13]. A commonly used Y-shaped serpentine micromixer is represented in Fig. 2 and meaning of abbreviations is shown in Table 1.

Fig. 2
A diagram of a micromixer with a y-shaped projection, horizontal portion of length L 1, 3 rectangular loops, and horizontal exit portion of length L ext. The width, length, and angle of the y-shaped projection are w, L e, and theta. The length of the loops is H v and the distance between loops is S.

Y-shaped serpentine micromixer

Table 1 Meaning of abbreviations

3 Design of Simulation Experiments

A general full factorial factorial design is used to measure responses at all combinations of the design parameters. Five design parameters are considered; out of which channel width, entrance angle, planer height and spacing are geometric parameters while velocity at inlet is an operating parameter. These variables are varied at four different levels as shown in Table 2. For given five design parameters at four levels, the general factorial design gives 45, i.e. total 1024 experiments.

Table 2 Design parameters at different levels

4 Numerical Modeling

4.1 Governing Equations

Two-dimensional fluid flow of an incompressible viscous fluid was described by Navier–Stokes equations. For a fluid of density ρ and dynamic viscosity μ, flowing with velocity \(\overrightarrow{V}\) under fluid pressure of p, the continuity equation (Eq. 1) and the momentum equation (Eq. 2) is given by

$$ \nabla \cdot \mathop V\limits^{ \to } = 0 $$
(1)
$$ \rho \left[ {\frac{\partial V}{{dt}} + \left( {V \cdot \nabla } \right)V} \right] = - \nabla p + \rho \mathop g\limits^{ \to } + \mu \nabla^{2} \mathop V\limits^{ \to } $$
(2)

where is the density of fluid, is the velocity vector, represents fluid pressure, and represents dynamic viscosity of fluid.

The microfluidic mixing phenomena is governed by combination of convection and diffusion processes and its general equation for non-reacting incompressible fluids is given by

$$ \frac{\partial c}{{\partial t}} = D\nabla^{2} c - u \cdot \nabla c $$
(3)

where D is the diffusivity and c is the molar concentration.

4.2 Material Properties and Boundary Conditions

The two non-reacting incompressible fluids considered in this study are pure water and ethanol and their physical properties at 25 °C are given in Table 3. Pure Water enters through inlet 2 and ethanol through inlet 1 with concentration of 1 mol/m3, both at velocity of 0.1 m/s under steady state as shown in Fig. 3. Pressure at the outlet is assumed to be atmospheric, i.e. zero static pressure. No-slip wall condition is assigned to other remaining boundaries.

Table 3 Properties of fluids
Fig. 3
An illustration of a y-shaped serpentine micromixer with inlets 1 and 2 marked in the y-shaped projection on one end, and outlet marked in the horizontal portion of the channel at the other end.

Direction of flow in the micromixer

4.3 Grid Test

The numerical results vary upon how well the domain is discretized according to the physics involved. A grid independency test ensures that the model is robust for a certain mesh size and the results are independent of further discretization. For the Y-shaped micromixer, the grid test is carried out with 400 μm channel width, 45° entrance angle, 0.6 mm planer height and 600 μm channel spacing while the velocity at both inlets is 0.15 m/s. The velocity of mixture at the outlet is set as criteria for evaluation of grid independence. The mesh number 3 can be selected as optimum mesh size because the % error in outlet velocity further reduces below 0.5 as shown in Table 4.

Table 4 Grid test results

4.4 Mixing Index Calculation

The Mixing Index (MI) represents the uniformity of mixing of fluids and a mixure with high MI values is desirable in LOC applications. Mass fractions at the nodes of outlet of Y-shaped micromixer are noted from the simulations and the variance of molar concentration in mixture is expressed as [7]

$$ \sigma = \left[ {1 - \frac{1}{N}\sum\limits_{i = 1}^{N} {\sqrt {\left( {\frac{{C_{i} - C_{ref} }}{{C_{ref} }}} \right)^{2} } } } \right] $$
(4)

where N, Ci and Cref are the total number of data points, the concentration of ith point and the concentration of a perfect mix (0.5 mol/m3), respectively.

The Mixing Index is expressed as

$$ MI = \left[ {1 - \frac{\sigma }{{\sigma_{\max } }}} \right] $$
(5)

The maximum variance (\({\sigma }_{max}\)) of 0.5 represents completely unmixed fluids.

5 Development of ANN Metamodel

The simplicity and flexibility in Artificial Neural Network (ANN) has made it popular among researchers for analysis and prediction of events [9, 14, 15]. In ANN, the information is given to input nodes which is feed forwarded to the network with sigmoid activation function and finally to output nodes as shown in Fig. 4. In the present work, five input parameters, viz. width, entrance angle, planer height, spacing and velocity at inlet and an output parameter, Mixing Index are specified across the test section. In the development of ANN, 20% of simulation data is used for testing and remaining 80% to verify it. The Levenberg–Marquardt backpropagation algorithm with changing weights and biases is used to minimize the error between the test data and predicted results. The ANN model was developed in MATLAB software.

Fig. 4
A neural network diagram of A N N, with layers for independent variables with introduce weights and initialize weights, hidden neurons with a sigmoid transfer function, output neurons, and output data.

General structure of ANN

6 Results

Total 1024 simulation experiments were performed for the given sample size from general factorial method. The mixing index at the outlet was calculated in each case and this data was used as input to the ANN model. The highest mixing index of 99.9% was obtained from simulation no. 190 for 200 μm channel width, 45° entrance angle, 10 mm planer height, 800 μm spacing and at 0.1 m/s inlet velocity. On the other hand, the lowest mixing index of 81.41% was obtained from simulation no. 905 for 800 μm channel width, 45° entrance angle, 4 mm planer height, 600 μm spacing and at 0.05 m/s inlet velocity. Small channel width and large mixing length along the direction of flow increase the surface-to-volume ratio and thus mixing performance. While large channel widths and short mixing length along the direction of flow are inefficient for mixing between the fluids. The concentration contours for both cases are shown in Fig. 5a and b respectively. However the pressure drop for the simulation experiment with highest mixing index is 3943.9 Pa and pressure drop for the simulation experiment with lowest mixing index is 100.82 Pa. The mixing performance becomes better at the expense of pressure drop.

Fig. 5
2 simulation models, a and b, of y-shaped micromixers with thin and thick channel widths indicated in gradient shades for concentration. Inlet 1 has the highest concentration and inlet 2 has the lowest. a. The channel and outlet have average values. b. Top of the channel has a higher concentration.

Concentration (mol/m3) contour plots for simulation experiments with a highest MI, and b lowest MI

Using Levenberg–Marquardt backpropagation algorithm, the ANN model was developed with five input nodes, five hidden layers and one output layer. The accuracy of the ANN model is explained in terms of correlation coefficient (R) and the mean square error (MSE). As shown in Fig. 6, the MSE and R values converge within 87 iterations training.

Fig. 6
A multiline graph of mean squared error versus epochs. The overlapping lines for test, validation, and train decrease with fluctuating trends between 0 and 10 epochs, and then move horizontally in parallel. The best point is marked at around 81 on the x-axis and below 10 power minus 4 on the y-axis.

Variation of MSE with epochs for the ANN model

Figure 7 shows the comparison between the values of Mixing Index across the test section, which were obtained from the ANN model and simulation data set. It can be seen that the ANN model prediction for the Mixing Index yields R = 0.97366 for the training data set and R = 0.97468 for testing data set. The Mixing Index from simulation and ANN show good agreement and falls within ± 0.1%.

Fig. 7
2 scatterplots of predicted versus simulated M I with linear increasing trends. a. Points for training are mostly clustered between (0.9, 0.94) and (1, 1). R square equals 0.97366. b. Points for test are mostly clustered between (0.95, 0.96) and (1, 1). R square equals 0.97468.

Comparison of Mixing Index from simulation and ANN for a training set, and b testing set

7 Validation of Model

The trained ANN Metamodel is then validated against simulation results. A new combination of parameters was designed which was not included in the design sample of general factorial. The Y-shaped micromixer for validation was designed with a channel width of 500 μm, entrance angle of 50°, a planer height of 5 mm and channel spacing of 500 μm. The inlet velocity is 0.12 m/s and other boundary conditions were kept similar as before. The mesh size from the grid test was selected for simulation. Similarly the trained ANN Metamodel was test with these new parameters. The mixing index from simulation is calculated and is equal to 94.17%. The trained ANN Metamodel gives the value of mixing index as 94.85%. The ANN Metamodel shows good agreement with the simulation with 0.6% difference, which is acceptable.

8 Conclusion

The mixing performance of a Y-shaped micromixer from numerical simulation and artificial neural network model is presented for mixing two fluids, viz. water and ethanol. The general factorial method was used to design experiments with five design parameters at four different levels. The mixing performance in each simulation experiment was evaluated and this data was used to train the ANN model. It is seen from the validation study that the ANN metamodel with Levenberg–Marquardt backpropagation algorithm showed good agreement with the simulation results. Therefore, the proposed ANN metamodel can contribute in evaluating mixing performance of micromixers with various configurations.