Profile Prediction in ECM Using Machine Learning
Profile Prediction in ECM Using Machine Learning
com
ScienceDirect
Procedia CIRP 113 (2022) 410–416
www.elsevier.com/locate/procedia
ISEM XXI
1
Department of Mechanical Engineering, KU Leuven & Members Flanders Make, Leuven, Belgium
Abstract
ECM (Electrochemical Machining) with a micro-second pulsed power supply can decrease stray current corrosion and thus provide better surface
quality on top of higher machining accuracy. However, the use of a pulsed power supply makes it challenging to predict the final workpiece
profile based on the typical multi-physical-based FEM(Finite Element method) models. First, it is impractical to introduce high-frequency pulsed
electric current (ns - µs) into a multi-physical model because of time step limitations. Second, there arise problems of compatibility of the time-
steps within each physical module, as e.g. hydrogen bubbles have a lifetime of ms, the power supply would use µs, and thermal phenomena take
ms. Multi-scale models have been proposed, but the prediction accuracies are rather low and computation times are very long. In this article,
based on machine learning approaches, we present 3 data-driven ECM models for predicting the final workpiece profile when using pulsed-ECM:
the linear regression (LR) model, the neural network (NN) model, and the convolutional neural network (CNN) model. After training this data-
driven ECM model with different levels of pulse voltage and electrolyte flow conditions, predictions and experimental validation are conducted.
Experiments with parameters outside the training parameter window are also carried out to show the performance and general applicability of
our data-driven ECM model. The machine learning model shows a good generalizing ability, the CNN model presents a prediction MSE of 7.60.
The present results also demonstrate that more accurate predictions will be achieved when using in-processing data. Hence, the prediction
accuracy of data-driven models can be further improved on top of advancing in-processing monitoring systems.
© 2022 The Authors. Published by Elsevier B.V.
This is an open access article under the CC BY-NC-ND license (https://creativecommons.org/licenses/by-nc-nd/4.0)
Peer-review under responsibility of the scientific committee of the ISEM XXI
Nomenclature
1. Introduction
ECM Electrochemical Machining
FEM Finite Element Method With the advances in information technology, computational
IEG Inter electrode gap methods, and advanced sensing technology; it is possible to
LR Linear regression capture and process large amounts of data. With an increasing
NN Neural networks shift to industry 4.0, the machine tools are now equipped with
CNN Convolutional neural networks several advanced on-machine sensors which provide data
MSE Mean Square Error related to the production line[1], processing status and
quality[2], and machine-tool parameters[3]. Cloud computing
enables proper storage of this data and makes it available as and
when needed, along with edge computing, which facilitates data
This is a resupply of March 2023 as the template used in the publication of the original article contained errors. The content of the article has remained unaffected.
Ming Wu et al. / Procedia CIRP 113 (2022) 410–416 411
location and processing closer to the machine tool. With an complex 2D machining trajectories through the synchronized
enormous amount of data, it becomes complicated to process activation of XY-stage motion (LUMS software) and
and analyze big data and deduce useful processing information. microsecond pulsed voltage source (LabVIEW® MMI on NI®
Proper usage of these data streams can recognize highly
complex and non-linear patterns in data of different types and
from different sources. And developing data-driven
approaches, in turn, facilitates complex and dynamic
manufacturing technologies to extract useful information from
big data.
Electrochemical machining (ECM) is a popular
unconventional manufacturing technology to fabricate surface
microstructures[4] such as micro-cavities[5], micro-
protrusions[6], micro-holes[7], and micro-channels[8] on
conductive and difficult-to-cut materials. It offers promising
machining performance, especially in terms of high surface
finish[9], no process-related tool wear, and the absence of
thermal load on the workpiece. Multiphysics models[10] are
widely used methods for profile prediction and hence support
tool and experiments design. However, the nonlinear
phenomena inherent to the ECM process such as electrolyte
flow, passivation[9], bubbles, etc., make it challenging to
reliably predict machined profiles. The multiphysical
model[11] with well-tuned parameters can fit the
experimental results beautifully for a certain processing
condition but could have radically different performances in
other conditions. Furthermore, it is difficult to simulate the
ECM process across a wide range of processing parameters in
the state-of-the-art commercial FE software because of
several issues related to time-stepping, convergence,
excessive mesh distortion during moving mesh, model Figure 1: Experimental setup
insensitivity to a small change in parameters, etc.
The aforementioned data-driven models[3], on the other cRIO 9045). A stainless-steel tubular electrode (1.2 mm outer
hand, present the capability of adapting to various processing diameter and 0.35mm internal diameter) was used for
parameters and associated nonlinear phenomena for a machining experiments. The electrolyte was supplied through
manufacturing process, thereby providing a more generalized a 3D printed electrolyte guide with internal flow channels. The
model for profile prediction. material is PLA (Polylactic acid) and the flow channel is
In this article, we present a framework of a data-driven embedded inside the guide to avoid electrolyte flow towards
model for the profile prediction of machined features with the the spindle and force it to flow towards the tool electrode.
ECM process. Different supervised machine learning models The electrolyte used was 20% by weight aqueous sodium
are used to investigate the relationship between the dimensions nitrate.
of cavities and the applied pulsed current, voltage, electrolyte
flow rate, and environmental temperature. The applied pulsed
current and temperature are monitored and recorded during the
machining process. These machine learning models are
evaluated by an out-of-domain evaluation dataset, which
applies processing parameters that are never been fed to the
data-driven models and also investigates the feasibility of using
data-driven models over a wide range of the parameter set. The
advantages of using a data-driven model with simple training
with processing parameters are investigated.
This is a resupply of March 2023 as the template used in the publication of the original article contained errors. The content of the article has remained unaffected.
412 Ming Wu et al. / Procedia CIRP 113 (2022) 410–416
Training Validation
This is a resupply of March 2023 as the template used in the publication of the original article contained errors. The content of the article has remained unaffected.
Ming Wu et al. / Procedia CIRP 113 (2022) 410–416 413
For electrochemical processes, there are many nonlinear presents the log channels, 1 from the electric current and 4 from
equations. The hidden layer in the neural network model can the temperature, and “14” presents the time series size.
describe nonlinear phenomena. In this paper, as shown in The feature map F can be defined by the convolution kernel
Figure 5, a neural network with 3 hidden layers is set up. K and input matrix I as 𝐹𝐹 = 𝐼𝐼 ⊛ 𝐾𝐾, where ⊛ denotes the
convolutional operation, the feature map can be regarded as a
collection of features produced by the kernel K, which means
the convolution kernel K extract certain information from the
input matrix I.
Therefore, a convolutional model with a convolution kernel
size of 2 × 2 is developed so that its feature maps should cover
the information both horizontally, which means features
collection cross the record channel, and vertically, which
means feature collection cross the sampling time.
All the machine learning models are deployed with
Tensorflow backend and solved on a Nvidia® GPU RTX 2070.
With the presented data-driven approaches for profile
prediction in ECM, the computational time only costs less than
1s to make predictions for all the validation datasets.
The MSE is computed from the squared error between the
𝑖𝑖 and observed ( 𝑦𝑦 𝑖𝑖 ) measurements for each j-th
predicted (𝑦𝑦̂)
experimental run of the validation dataset, as shown in equation
(3) Here n is the total number of experimental runs in the
validation dataset.
𝑛𝑛−1
Figure 5: The neural network model.
1 2
MSE (𝑦𝑦, 𝑦𝑦̂) = ∑(𝑦𝑦𝑖𝑖 − 𝑦𝑦̂)
𝑖𝑖 (3)
𝑛𝑛
𝑖𝑖=0
Similar to the linear regression model, the neural network
model can use the process parameter or the recorded signal (the In this paper, the information is monitored and collected in
mean value during the processing time) separately, along with different ways. It is hard to decide initially whether this
fusing them, as input data. information is redundant or essential for profile prediction. The
following sections will analyze the predictive capabilities of
different machine learning models.
This is a resupply of March 2023 as the template used in the publication of the original article contained errors. The content of the article has remained unaffected.
414 Ming Wu et al. / Procedia CIRP 113 (2022) 410–416
This is a resupply of March 2023 as the template used in the publication of the original article contained errors. The content of the article has remained unaffected.
Ming Wu et al. / Procedia CIRP 113 (2022) 410–416 415
This is a resupply of March 2023 as the template used in the publication of the original article contained errors. The content of the article has remained unaffected.
416 Ming Wu et al. / Procedia CIRP 113 (2022) 410–416
References
This is a resupply of March 2023 as the template used in the publication of the original article contained errors. The content of the article has remained unaffected.