Wire EDM Parameter Optimization of AlSi10Mg Alloy Processed by Selective Laser Melting

This work attempts to optimize the multi-objective characteristics of wire electrical discharge machining (WEDM) in SLM fabricated AlSi10Mg through a hybrid arti�cial neural network (ANN) coupled Genetic algorithm approach. The SLM is unambiguously one of the most effective commercially viable successful additive manufacturing (AM) technologies that have the potential to replace many traditional methods of manufacturing. However, the highly intricate metallic support structures created in SLM are too strong to be eliminated by hands for which precision machining operations such as WEDM are widely employed for post-processing of SLM-AlSi10Mg. The Taguchi experimental design, considering the three most in�uencing factors, was performed to obtain micro-hardness and surface roughness results. The input factors for optimization are discharge current, discharge voltage, and pulse time-on in the WEDM process. The multi-objective optimization is performed using the ANN coupled (GA) approach where the ANN model has been generated �rst and the results of the best model are fed to GA for optimization. For this, �ve variants of three-layered, multi-perceptron models with feed-forward (BP) neural structures are also developed. The current model is supplemented with a Levenberg-Marquart algorithm that uses Logarithmic Sigmoid (Logsig) and Linear (Purelin) transfer functions. Finally, the response values from the best ANN model (3-10-2) are employed for multi-objective optimization using GA. The present study establishes the following optimized process parameters. 12 A discharge current, 42 V discharge voltage, and 12 µs time-on for maximized microhardness of 478 VHN and minimized surface roughness of 4.3 µm, both with greater than 98% con�dence level. The present study reports brie�y phase characterization such as the presence of Si particles, α-Al, and Mg 2 Si phases on the re-cast surface. The surface quality of the optimized specimen exhibits superior surface quality than its other experimental counterparts.


Introduction
The usage of additive manufacturing technologies has gained attention in the past thirty years due to its high progress in manufacturing products with high complexity in design which is practically di cult to manufacture by traditional manufacturing methods [1][2][3][4].This is because AM focuses on manufacturing products in a layer-by-layer fashion [4][5][6].In the recent AM practices, laser melting of the layers of powdered metals, often referred to as selective laser melting (SLM), formed in rapid prototyping deserves greater effectiveness in the manufacture of metals and alloys [6].The SLM involves the melting of powdered metals of diameter 10-100 µm selectively by laser in every layer of the process [3,4].
The parts produced by SLM are, in fact, superior to their traditional counterparts (casting) in terms of static strength, stiffness, and fatigue strength while maintaining high precision in the complex design [3].
Among several Si and Mg alloyed Al alloys, the SLM-AlSi10Mg outpaced its traditional counterparts in the aspects of ductility and strength as it evolves an ultra ne hierarchical grain structure in the part [5][6][7][8][9][10][11][12][13][14][15].The AlSi10Mg alloy is known for high speci c strength, stiffness, hardness, corrosion resistance and is ideal for applications that require a combination of good mechanical properties and low weight such as the aerospace and automotive industry.SLM is one of the proven successful technologies that produce parts with high dimensional accuracy and surface nish than any other AM techniques.In the case of complex part fabrication, it is often needed high strength, support structures to support overhanging features that need to be 'subtracted' in post-processing [16].These support structures need careful removal to avoid any mechanical damage or inadvertent defects left on the actual part.The Wire EDM is an ideal choice to cut the support structures of SLM-AlSi10Mgwith greater precision and without leaving any dent on the actual part.
Wire Cut Electrical Discharging Machining (WEDM) is a thermal material removal process that makes use of a wire electrode made of thin copper, brass, or molybdenum material by which electrically conductive materials can be cut precisely without the need for cutting force and further nishing process [17][18][19][20][21].
The material removal mechanism of WEDM is similar to the EDM which causes erosion by the series of sparks that arise between workpiece and wire-electrode as the tool advances its way [17,18].These sparks provide a greater quantum of heat in the temperature range of 8000-12000°C initializing signi cant heating and melting of material at the work-tool interface [17,18,21].The WEDM process is carried out by immersing the workpiece and tool in a continuous supply of dielectric uid (deionized water) to carry the eroded metal away [17,20].
The high thermal conductivity of the dielectric uid results in the rapid cooling of the nascent machined surface resulting in a completely different material microstructure than the parent metal called the recast layer [17].Moreover, due to the effect of heat, a small portion of the workpiece at about 5 to 25 µm in the vicinity of the machined surface is annealed creating the heat-affected (HA) layer.
The recast layer and the HA layer thickness play a vital role in deciding the property characteristics (such as hardness, fatigue, surface roughness, and corrosion resistance) [18,22].Since the micro-hardness depends upon the discharge parameters, an increase in discharge parameters increases micro-hardness.
Eventually, these parameter setting results in a poor surface nish [22].Even though the material removal mechanism of WEDM and EDM are similar, their functional characteristics differ.WEDM uses a microprocessor to control the path of the wire-electrode which accounts for the remarkable accuracy in the machining of complex parts [17].Amidst the available machining process on the production oor, WEDM is the most preferable machining process for die making, precision machining, manufacturing of prototypes, aircraft, and dental parts [17].In addition to that, WEDM is one of the very few metal cutting techniques employed in the post-processing of metal additive manufacturing [16].
It is obvious that either the hardness or surface nish of the product comes out with the compromise of the other.Hence, a particular set of process parameters may fail to obtain high micro-hardness with a good surface nish.This urges a need for mathematical models that relate input parameters with output responses to arrive at an optimum set of process parameters to minimize the surface roughness and maximize the micro-hardness at the least compromise of each other [22].
The hybrid model of the arti cial neural network (ANN) coupled genetic algorithm (GA) is one of the recent and widely accepted techniques to nd optimal parameters for machining.ANN is a sophisticated mathematical tool inspired by biological phenomena that are recognized for their insane ability to learn and classify data.A neural network is a processing model whose layered structure takes after the organized structure of neurons in the cerebrum, with layers of associated nodes [23].The ANN models proved to be more robust and accurate in evaluating the value of dependent parameters when compared with RSM models [24].Many studies concluded that ANN models are more e cient and effective than RSM [23,24].The precision of ANN results can be greatly improved by using GA as the optimization tool.Genetic Algorithm (GA) is an optimization tool based on an adaptive heuristic search algorithm inspired by the concept of genetic evolution proposed by Charles Darwin stating "survival of the ttest".It uses genetic principles like selection, mutation, and cross-over to arrive at the optimum results [23].The hybrid model ANN-GA employs ANN as a modeling tool to develop predictive models to predict the relationships between the experimental data sets and GA as an optimization tool to minimize (or maximize) the global population using a tness function [19,23].Additionally, this method is considered both time and costeffective since it requires a signi cantly lesser number of experiments for optimization [23].
The application of hybrid statistical tools (like GA-ANN, GA-RSM, GA-ANFIS, etc.) in optimization gained importance in recent years due to increased reliability and accuracy in prediction.Since it is a novel approach, there is only limited research carried out in this domain.Deshwal et al. made a comparative analysis on GA-ANN, GA-RSM, and GA-ANFIS in optimizing the process parameters of FDM and concluded that GA-ANN is the best optimization tool than the other two [25].Adding to that, the investigations of Hamdya et al. and Prabhu et al. concluded that the ANN model optimized through GA is a potential tool to replace RSM in modeling, optimization, and predicting the results [23,24].The primary objective of this research is to develop an effective GA-ANN model to obtain an optimum combination of input parameters of WEDM to cut the support structures of SLM-AlSi10Mg with minimal surface roughness and maximal hardness.This study also provides a detailed analysis of the effect of recast and white-cast layers and analyses the surface morphology through AFM study.Furthermore, an XRD characterization on the machined surface of SLM-AlSi10Mg is carried out to investigate the effect of WEDM on the phase formation after the machining process.

Material and SLM:
A cuboidal specimen (100 x 100x 10 mm) was fabricated using the SLM technique with a square print bed of 280 x 280 mm using powdered AlSi10Mg.The powder composition of AlSi10Mg is presented in Table 1.The test specimens were fabricated in the horizontal direction (parallel to powder bed x-y plane) under the following (Table 2) standard SLM print parameters.

WEDM:
A ve-axis CNC-WEDM machine SODICK AG400Lwas used to carry out the experimental runs with the SLM printed AlSi10Mg alloy.A brass (Copper 60%, Zinc 40%) wire electrode of diameter 0.25 mm was used in the WEDM process immersed in deionized water (dielectric uid).The SLM-AlSi10Mg was cut into nine cuboidal pieces of dimension 12 x 8 x 7 mm.To analyze the impact of the discharge characteristics and pulse duration on the machined specimen, various combinations of input parameters were used according to the L 9 orthogonal array DOE scheme.A pulse-off duration and wire feed rate were kept constant as 14 µs and 3 mm/s respectively.

Vickers hardness test:
The micro-hardness test was conducted on the recast surface of the post-WEDM processed specimen as per the ASTM E384 standard.The Vickers hardness tester (Model VH150) with standard diamond indenter (Rectangular base pyramid pro le) was used for applying a load of 5 kgf for 10 s.Averages of three measurements were considered as the typical hardness of the specimen.

Surface roughness test:
The post WEDM recast surface was tested for surface roughness (Ra) in the Mitutoyo surface roughness tester (Model SJ 210) with a diamond stylus of 10 µm diameter and 0.01 µm accuracy.The surface roughness (R a ) were measured in the direction perpendicular to the tool path according to ISO 1997 standard (sample length: 4 mm).The average value of three experiments was taken as the surface roughness (Ra) of the specimen.

Metallographic studies:
Samples for microstructure characterization were prepared using the standard metallographic technique.A scanning electron microscope (Model: EVO 18 Scanning Electron Microscope) was used to characterize the surface topography of both the white cast and the recast surfaces in the hardest, roughest and optimum samples.The recast surface of the optimum specimen was examined in the automated highresolution θ-θ multipurpose X-ray diffractometer (Model: Smart Lab SE, 3kW X-ray tube, Radiation: Cu Kα) with silicon strip detector and vertical type geometry.The diffraction angle (2θ) was varied between 25 and 95 o to obtain XRD spectra to identify the phases present.

Surface morphology studies:
The surface morphology of the recast surface (optimum specimen) was analyzed by the atomic force microscope (Model: Park XE7) based on surface observations in the optical microscope.The AFM with SMENA measuring head and vibration isolating system for measuring sample sizes in the nano-scale was used.The measurements were performed with the air contact model using the Si probe of radius 10 nm.The sampling areas of investigation were taken as 15 µm x 15 µm in three locations on the optimum specimen.

Taguchi design of experiments (DOE):
Taguchi is one of the most profound DOE methods which make use of orthogonal arrays (OA's) to arrive at optimal solutions for a large number of process variables with relatively few numbers of experiments [26][27][28][29][30][31][32][33].OA's are unique collections (or sets) of arrays which reduces the number of experimental trials to be carried out in a study when compared to conventional DOE's [26][27][28].
An OA is chosen based on the number of process parameters and their corresponding levels in the experiments [27].In the present work, 3 factors -3 levels, L 9 orthogonal array is taken which reduces the experimental runs from 27 to 9 to nd out the best experiment.Signal to noise ratio (S/N ratio) is one of the performance functions used in the Taguchi method which is broadly into three categories smaller the better, larger the better, and nominal the better.In this study, the smaller the better and larger the better characteristics are used for responses of micro-hardness and surface roughness (Ra) respectively.
S/N ratio for larger the better characteristic: The parameters and levels of parameters are presented in Table 3.The experimental outcomes for the L 9 orthogonal array along with the S/N ratio are reported in Table 4.

ANN Modeling
The key factors that are responsible for the development of an accurate and reliable ANN model are the selection of the best neural architecture, the type of learning algorithm, and the transferring function applied in the hidden and output layers.Adding to that, the number of hidden neurons also plays a vital role in the prediction of results.The ANN model developed for this work is based on a multi-layered perceptron (MLP) which is widely used across investigators to approximate non-linear relationships among the existing input (independent) and output (dependent) variables [23,24].In this research, a feedforward neural network of backpropagation (BP) is the learning algorithm applied to train the experimental data to develop a predictive model with a three-layer (input, hidden, and output) architecture.
The general design of the MLP neural network is shown in Fig. 1.The training function used in this work is the Lavenberg-Marquart (trainlm) or LM algorithm which is considered the best training algorithm of optimization using the GA-ANN technique [25].The BP technique is extensively used by researchers because of its high reliability in modeling and optimizing the functions [23,[34][35][36].The selection of transfer functions used in the input and output layers is important as they affect the learning rate and overall performance of the ANN model [23,37].The transfer function used in this work is logarithmic sigmoid in the hidden layer and linear (purelin) in the input and output layers.The number of neurons in the input and output layers is xed by the number of input process parameters and the number of output responses respectively [24,38].
The general form of neural architecture is labeled as 3-x-2 (three input neurons representing the WEDM process parameters (discharge voltage, current, time-on) and two output neurons, indicating microhardness and surface roughness) where x is the total number of neurons in the hidden layer used in ANN modeling.Firstly, the number of hidden layers used in this investigation is chosen as one, since it is considered effective in solving the majority of the problems to avoid issues like over tting as a result of the application of multiple hidden layers [23,39].Secondly, it is important to select the number of neurons in the hidden layer.This is because, if the number of hidden neurons is too low to cope up with the complexity of the problem it forms an under-tted model.On the other hand, the redundant number of hidden neurons results in the degradation of the network capability when it is trained based on training data alone [23,40].The number of neurons in the hidden layer is usually obtained by the hit and trial method and the optimized number of hidden neurons is achieved by iteration.
The optimum number of neurons in the hidden layer is obtained by analyzing the performance of the neural architecture based on the regression value.For this purpose, ve neural architectures are developed to train, test, and validate the test data with the number of neurons in the hidden layer varying from 8 to 12.The objective is to nd out the best neural architecture (the one with an optimum number of hidden neurons) with the highest regression rate among the available variants (neural architectures varying from 8 to 12 hidden neurons).For this purpose, the neural network tool (nntool) available in MATLAB R2018a is used to train the network model to model and analyze the neural networks [24].Mean Relative Error (MRE), Root Mean Square Error (RMSE), and Regression coe cient (R 2 ) are computed for every ANN model to evaluate their performance based on which the best model is selected [41].The following are equations of MRE, RMSE, and R 2 .
Here, n is the number of experimental data, 'o' is the predicted response data and 't' is the actual response.

Optimization using evolutionary Genetic Algorithm
The evolutionary genetic algorithm can be used to optimize the ANN model which has the best neural architecture obtained from the previous steps.For this, the GA solver in the optimization toolbox of MATLAB R2018a is used in this research.Instead of working on the decision variables, GA works on the chromosomes of the existing population.Every chromosome consists of all decision variables in the form of an objective function [28].
GA begins by creating an initial population of chromosomes whose tness function is determined by the objective function of the problem (multi-objective optimization).Then the chromosome with the best tness function is propagated as a parent to form the next generation.This is called the 'selection'.The crossover is a principle of GA by which an opportunity is created to facilitate the selected chromosomes to produce a new one.The offspring is 'mutated' by changing some of their genes.The optimal solution is brought out by creating versatility in the new generation by applying mutation while moving from the existing population [28].GA can optimize non-differentiable, discontinuous, and highly nonlinear objective functions in several iterations until it reaches the value of prede ned maximum generation (i.e., 500 in this study) [28,42].

Analysis of Statistical Signi cance
Analysis of variance (ANOVA) is a method widely used by investigators [23,26,27] to evaluate the statistical signi cance of the decision variable in any process.In this work, ANOVA is performed to determine how signi cant are the process parameters (discharge current, discharge voltage, and pulse time-on) of the WEDM process in uencing the responses of micro-hardness (VHN) and surface roughness (Ra).Here, the ANOVA is performed based on the S/N value obtained in the previous section.In ANOVA, Fischer's test (F test) is the ratio of the mean sum of squares due to regression to mean sum of squares due to error.
The F value plays a major role in determining the adequacy of the parameter.Table 5 and Table 6 depict the ANOVA for micro-hardness and surface roughness along with the individual parameter contribution.The ANOVA of the WEDM process parameters clearly illustrates that all the process parameters are statistically signi cant at 95% of con dence for multi-objective responses of micro-hardness and surface roughness.
4.2 Multi-Objective Optimization using Hybrid GA-ANN Method

Training of ANN Model
The modeling of the ANN architecture in MATLAB R2018a (MathWorks Inc.) is brie y discussed in the previous section.The neural networks from 8 to 12 hidden neurons in the hidden layer are tested for their accuracy in predicting the responses of micro-hardness (VHN) and surface roughness (Ra) of the SLM AlSi10Mg specimen.The ANN parameters for training data are depicted in Table 7.The best neural architecture needs to have the least MRE, RMSE and the highest regression coe cient (R 2 ) to provide the best prediction results among other neural networks [23].Table 8 shows the MRE, RMSE, and R 2 for neural architectures ranging from 8 to 10 hidden neurons.Figures 2 (a-c) illustrate graphical values of MRE, RMSE, and regression values obtained from all the ve ANN models.It is evident that the 10 hidden neuron structures show balanced the results of all the performance metrics (MRE, RMSE, R 2 ).So, it is obvious that the neural network with 10 hidden neurons in the hidden layer is the 'best t' for the complexity of the optimization problem without any under-tting and overtting issues.Hence, the neural architecture 3-10 -2 (3 neurons in the input layer, 10 neurons in the hidden layer, 2 neurons in the output layer) is used for further optimization using a genetic algorithm (GA).The multi-objective criterion for GA is chosen as VHN (microhardness) to maximize and surface roughness (Ra) to minimize.The ranges for experiments are xed as (12 42 10) for minimum and (14 46 12) for maximum respectively.For this optimization problem, the tournament is applied as a selection method to designate how GA selects parent chromosomes for successive generations.The computational parameters listed in Table 9 provide the values used in GA optimization and the corresponding values used in this optimization problem.

Microstructural Analysis
The magnitude of temperature at the workpiece -tool (wire) interface during the WEDM process is typically above the melting point of Al alloys [22,43].The dielectric uid is supplied at a rate so that it should ideally wash the molten metal away from reaching the machined surface to avoid re-solidi cation of molten metal to the parent metal.But practically, the dielectric uid can't wash away all molten material from reaching the machined surface.The unwashed molten metal, then rapidly solidi es as a result of a high-temperature gradient existing between the machining interface and dielectric uid (room temperature) forming a 'recast' layer over the machined surface which is comparatively harder than the un-machined surface [44,45].The increase in micro-hardness is because of the ultra ne grain structure formed in the recast layer due to the drastic solidi cation rate at the machined surface [44,45].To gain an understanding of this layer, the hardest, roughest, and optimum specimens were selected and compared for the microstructure.The SEM micrographs of the white cast layer and recast layer of SLM-ed AlSi10Mg are presented from Figs. 6 to Fig. 11.
The thermal energy discharged during the WEDM process creates heat-affected zones (HAZ) in the specimen proportional to the magnitude of the electric discharge energy.The HAZ is the region underneath the white layer (recast layer) affected by the heat transfer from the white layer.The HAZ can be classi ed into a hardened layer, followed by the annealed layer, and can be viewed from the surface perpendicular to the recast layer.The recast layer can be seen as a thick white line at the machined edge called 'white cast' or 'white layer', typically 4 µm in thickness [44].The white layer consists of ultra ne α-Al grains with ne Si particles decorated along the grain boundary.Further, the XRD results con rm the presence of ne Mg 2 Si precipitates in the white layer, as shown in Fig. 12. Fine Mg 2 Si precipitates and re ned microstructure result in very high hardness (518 VHN).The annealed regions experience signi cant α-Al grain growth and Si particle coarsening due to the heat transfer whereas a thin layer just below the white layer, i.e., hardened layer experiences little grain or particle coarsening [44,45].This explains the hardness difference between the hardened (435 VHN) and annealed (281 VHN) layers.The explanation on how the hardened and annealed layers are developed is given in detail by Hassan El-Hofy [45].The white layer thickness (WLT) and the HAZ (hardened and annealed layers) are the direct function of discharge energy emitted and the time for which it stays in the wire electrode during the process.The zone below the machined surface will be annealed to produce the white layer.The depth of the annealed layer ranges from 50 to 200 µm for the nish and rough cutting rates, respectively [22,[29][30][31][32]46]. Figures 6-8 are the SEM images of the white cast layer.The representation of the white cast layer, followed by the hardened and annealed layer on the recast surface is shown in Fig. 6a.
Figure 6b and 6cshow the hardest specimen (518 VHN) with a surface roughness of 4.67 µm.It can be noticed that the hardest specimen has thick bands of white (15.41 µm), hardened (86.9 µm), and annealed (114.43 µm) layers as compared to the least hard (soft) specimen.Hence, the present study shows that micro-hardness is directly proportional to the HAZ layer thickness near the white cast layer.As the HAZ is a function of pulse time-on and discharge variables, the hardest specimen has the highest discharge voltage of 44 V and pulse time-on 12 µs generating more heat that affects more thickness of the parent material and creates a wide HAZ.On the other hand, Fig. 7a, 7b shows the roughest specimen (Ra = 5.18 µm) with micro-hardness 442 VHN that used the lowest discharge current of 12 A, discharge voltage of 42 V, and pulse time-on of 10 µs generating less heat when compared to the hardest specimen.The average values of HAZ are found to be 76.6 µm for the hardened layer and 104.5 µm for the annealed layer.Also, at constant pulse time-off of 14 µs, the heat dissipation rate of the least hard (soft) specimen is higher than the hardest specimen resulting in less HAZ.This variation in heat generated and heat dissipation rate resulted in variation in the micro-hardness of the specimens.Figure 8a, 8b are the SEM images of the optimum specimen.The average thickness of the white layer is found to be 9.7 µm which is lesser than the other specimens.The reduced white layer thickness resulted in enhanced surface characteristics with a lesser Ra value of 4.39 µm and a micro-hardness of 492 VHN.The HAZ of 53.47 µm of hardened layer and 87.3 µm of an annealed layer is obtained from discharge current of 12 A, discharge voltage of 42 V, and pulse time-on of 12 µs.The lowest discharge current and voltage resulted in reduced HAZ and white layer thickness which accounted for a reduction in surface roughness and the highest pulse time-on resulted in improved micro-hardness.However, the micro-hardness of the optimum specimen may not be the highest value.The overall multi-objective function compromised only a 6 % penalty in the micro-hardness for surface quality (reduced surface roughness) of about 15% improvement.
The recast SEM images (Fig. 9-Fig.11) reveal that the post-machined surface is smooth with few surface defects such as craters, asperities, spherical nodules, pockmarks, debris, and cracks.These surface defects are usually caused by thermal stresses generated due to the rapid cooling of molten metal in the vicinity of the machined surface.The micro-craters (Fig. 9a) are formed as a result of the impact created by spark explosion.Due to which the micro-melted pool is eroded from the machined surface [44].These eroded micro-droplets of molten metal, then rapidly solidify above the recast surface, forming numerous irregular shaped micro-scale asperities, which can be seen in Fig. 9b, Fig. 10a.
The formation of micro-cracks (Fig. 10b) occurs during the pulse time-on in the WEDM process.From the recast surface analysis, it is clear that the surface defects are more prominent in the specimen with the highest discharge current and time-on with the lowest discharge voltage.Micro-cracks are formed due to the high thermal stresses induced by the high-temperature gradient at the interface.When the magnitude of the thermal stress surpasses the maximum strength limit of AlSi10Mg, the crack develops [47].In the roughest specimen (Fig. 10a and Fig. 10b) the presence of the micro-cracks and debris on the recast surface increased the surface roughness (Ra).The micro-cracks may cause premature failure of the specimen if they are irregularly distributed in the recast surface, particularly when machined at 14 A discharge current and 12 µs pulse time.The cracks are not getting removed after post-processing (like polishing, ner nishing) of the WEDM process.Micro-cracks are also responsible for the reduction of fatigue resistance and tribological properties such as wear-resistance [22].Debris is vertical projections of re-solidi ed micro-droplets of molten AlSi10Mg found.The optimum specimen (Fig. 11a, 11b) reported reduced surface defects compared to others.The improvement in the surface properties is because of reduced discharge current and voltage of 12 A and 42 V respectively.Moreover, for the optimum specimen, the micro-cracks are absent.

XRD
The recast surface of the optimum specimen analyzed using XRD to understand the phases formed.
Figure 12 shows the XRD plot of the recast surface of post machined SLM-AlSi10Mg.The sharp peaks reveal the high crystalline nature of the AlSi10Mg alloy.It is noted that the deposition of wire electrode material (Cu-Zn alloy) is not observed in the recast surface of post machined SLM-AlSi10Mg.Hence, it is proposed that the optimum parameters not only provide a good surface nish and higher microhardness but also a clean surface free from any traces of the wire electrode material deposition.

Surface Topography
The surface topology of the optimum specimen was analyzed in three different locations in the recast surface to study effect of process parameters on surface integrity.The location where the AFM analysis is done is depicted in Fig. 13.
Figure 14, 15, 16 illustrates the 2D AFM micrographs and their corresponding 3D surface topology taken at locations 1, 2, 3 respectively.The contrast variation in color denotes the variation in the altitude of the surface where the darker being the deeper region and the brighter is the elevated region.The AFM study shows that surface integrity varies in different locations of the WEDMed surface.
It can be noticed that the value of nano-surface roughness (Ra) increases as it moves deeper into the recast layer away from the periphery to the maximum value at its center.The process parameters of the optimum specimen are 13 A, 44 V, 12 µs respectively.At location 1, the value of surface roughness (Ra) is 46 nm.This is because the areas of heat dissipation are high, resulting in higher heat dissipation when compared to other locations.A part of the heat dissipates through the recast surface and another part escapes through the surface perpendicular to the recast surface (including white cast surface).Whereas location 3, which is at the center of the recast surface, has a very less heat dissipation rate due to the less area of heat dissipation.So, the effect of heat will be the highest in location 3 and lowest in location 1.This resulted in poor surface quality (highest surface roughness 93 nm) in location 3 and the best surface quality in location 1. Location 2 which is between locations 1 and 3 has a surface roughness of 61 nm which is an intermediate value between the highest and lowest roughness.This indicates that the heat dissipation rate is between the rates of locations 1 & 3.Even though location 2 is not adjacent to the periphery, it is relatively nearer to the periphery than location 3. Hence, the heat dissipation through the periphery is higher than location 3 and lower than location 1 resulting in intermediate surface quality.
This study reveals that morphological characteristics such as voids, debris, cracks, and other fractured components are not observed and hence, showing excellent surface characteristics.There is no signi cant change in topology in three locations (Fig. 14b, Fig. 15b, Fig. 16b).As brie y discussed in SEM analysis, the lesser the heat dissipation rate, the longer the heat stays on the surface.The magnitude of thermal stresses directly varies with the exposure of heat on the surface.
When the value of thermal stresses surpasses the mechanical strength of the material, surface defects (cracks, voids, debris, etc.) developed leading to an increase in surface roughness [22,47].The variation in the heat dissipation rate on different locations directly impacts the surface morphology of the specimen.Hence it is observed that the surface roughness (in nm) decreases as it moves away from the center of the recast surface towards the periphery due to the increase in heat dissipation rate.

Conclusions
In the present research, the multi-objective optimization of WEDM parameters for the responses of microhardness and surface roughness is carried out through a hybrid ANN coupled GA technique to use WEDM as a post-processing technique in the SLM process.The process parameters used to optimize the WEDM process are the current, discharge voltage, and pulse time-on.The key ndings from the optimization are: 1. From the statistical analysis by ANOVA at a 95% con dence level, the discharge current is found to be the most in uential factor that affects the micro-hardness and surface roughness.2. From the ve ANN models developed with the hidden neurons varying from 8 to 12, the 3-10-2 model is found to be the 'best t' neural architecture to be used for optimization using GA. 3. The optimized process parameters are discharge current of 12 A, discharge voltage of 42 V, and pulse time-on of 12 µs for the maximum microhardness of 478 VHN and minimized surface roughness of 4.33 µm for the tness function derived based on the results of the 3-10-2 ANN model.4. A validation test results (micro-hardness: 492 VHN and surface roughness: 4.39 µm) show that the prediction results are in 98% agreement with the experimental data. 5.The white layer analysis shows that the increase in micro-hardness is proportional to the size of HAZ near the machining zone.In the recast surface, the poor surface quality (high Ra) is due to the presence of surface defects (e.g., cracks, voids, debris) formed by thermal stresses imposed by the drastic cooling rate experienced in the machining surface.The surface quality is improved (reduced Ra) up to 15.25 % by the optimization studies. .The XRD analysis on the recast surface con rms the presence of Mg 2 Si precipitation on the recast surface which increases the micro-hardness of the specimen.Also, it is understood that optimum parameters not only provide a better surface nish and higher microhardness but also a clean surface free from the deposition of the wire electrode material.7. The AFM studies reveal that the surface integrity varies in different locations of the WEDMed surface.Voids, debris, cracks, and other fractured components are not evident con rming good surface characteristics.Further, the surface roughness (in nm) decreases as it moves away from the center of the recast surface towards the periphery due to the increase in the heat dissipation rate.
Hence, the ANN coupled genetic algorithm suggested is found to be an effective optimization tool to optimize WEDM parameters for post-processing of SLM-AlSi10Mg alloy resulting in maximum microhardness and minimum surface roughness with defect-free surfaces.

Declarations
Competing interests: The authors declare no competing interests.

Figures 3 -
5 represent the complete con guration and performance of 3-10-2 ANN architecture with training, testing and validation results.

4. 2 . 2
Con guring GA to Optimize the Best ANN Model The predicted results are fed to the GA solver called 'gamultiobj' available in the Optimization toolbox in MATLAB-R2018a in the form of a tness function.Fitness functions are nothing but mathematical models in terms of coded factors to predict responses.This tness function is generated by the t general linear model in Minitab R19 using the results of the 3-10-2 ANN model.The tness function of micro-hardness is; The tness function of surface roughness is; Where y(1) and y(2) refers to the responses of micro-hardness and surface roughness.x(1), x(2), and x(3) correspond to process parameters of discharge current, discharge voltage, and pulse time-on.

Figures
Figures Figure 1

Figure 4 ANN
Figure 4

Figure 13 Location
Figure 13

Table 3 WEDM
Process Parameters and their levels

Table 9
In a population of 50, two of them are xed as elite counts that pass from the initial population to the next generation and 0.8 and 0.2 are the crossover fraction and rate of mutation respectively.The results of the genetic algorithm show that the optimum conditions for WEDM with minimized surface roughness (Ra) of 4.44 µm and maximized micro-hardness (VHN) value of 478 VHN are discharge current of 12 A and discharge voltage of 42 V and pulse time-on of 12 µs.A con rmation test was conducted based on the optimized process parameters and the experimental outcomes are 4.39 µm and 492 VHN shows that they closely agree with the predicted results from the GA-ANN model.
The diffraction angles of39.82,46.02,66.3,   79.34, 83.52 degrees identify as α-Al.The smaller peaks corresponding to 2θ values of 48.65, 58.35, and 89.16 correspond to primary Si particles in the alloy.Further, the peak at 30.57o diffraction angle shows the presence of Mg 2 Si (Magnesium silicide) precipitate in the alloy.Since Mg 2 Si is the hardest phase, its precipitation on the recast surface increased the micro-hardness of the specimen.