frequency, duty cycle, temperature, and feed rate, making it ideal for model training and validation. Two
regression models—Linear Regression and Polynomial Regression—are implemented using Python’s scikit-
learn library[2]. The Linear model captures basic additive trends, while the Polynomial model represents non-
linear interactions more effectively. The data undergoes preprocessing steps such as outlier removal,
normalization, and consistency checks, followed by train-test splitting to ensure robust evaluation and prevent
overfitting. Exploratory Data Analysis (EDA) using visual tools like scatter plots and correlation heatmaps
reveals that voltage and feed rate strongly influence surface roughness, while duty cycle and temperature have
moderate effects. These insights align with theoretical expectations and validate the dataset’s reliability. Model
performance is evaluated using metrics such as Mean Absolute Error (MAE), Root Mean Square Error (RMSE),
and R². Results show that the Polynomial Regression model performs significantly better, reducing RMSE by
about 33% and achieving higher R² values. Cross-validation further confirms the model’s robustness and
generalizability [3]. An interactive visualization dashboard built using Matplotlib and Plotly allows users to input
process parameters and instantly visualize predicted surface roughness values with confidence intervals. This
serves as a virtual experimentation tool, helping engineers make informed decisions without conducting costly
physical trials. The integration of Machine Learning in ECM process optimization represents a shift from
traditional trial-based approaches to intelligent, data-driven manufacturing. Predictive modeling not only
minimizes time and cost but also enhances precision and efficiency. The developed framework can be extended
to real-time control systems, adaptive tuning, and hybrid approaches combining physics-based and data-driven
methods.In conclusion, this study demonstrates the potential of ML in transforming ECM into a predictive,
optimized, and efficient process. The developed models enable accurate surface roughness prediction and form
a foundation for intelligent process automation in modern electrochemical manufacturing, aligning with the goals
of Industry 4.0.
LITERATURE REVIEW
Electrochemical Machining (ECM) has been the focus of extensive research due to its ability to machine hard
alloys with high accuracy and minimal tool wear. Traditional research has primarily concentrated on
understanding the electrochemical dissolution mechanisms and optimizing machining parameters using design-
based statistical frameworks. Early studies employed Response Surface Methodology (RSM) and Taguchi
analysis to model relationships between parameters such as voltage, electrolyte concentration, and feed rate;
however, these linear statistical methods often failed to capture the non-linear and interactive nature of ECM
processes. Recent advancements in machine learning have expanded the scope of ECM research. Wu et al. [7]
demonstrated that Support Vector Regression improved prediction accuracy for ECM profile shape compared to
analytical models, especially when machining complex turbine blade geometries. Bahiuddin et al. [1] applied
Random Forests and Gradient Boosting to forecast surface roughness and reported a significant reduction in
prediction error compared to RSM. Similarly, Shang et al. [4] developed an Extreme Learning Machine approach
for ultra-precision milling and emphasized that hybrid data fusion significantly enhances model stability. In the
domain of unconventional machining, machine learning has shown strong generalization capabilities. Qasem et
al. [2] used artificial neural networks for EDM roughness prediction and highlighted the superiority of nonlinear
ML models over conventional polynomial fitting. Batu et al. [3] extended AI-driven roughness prediction to
additive manufacturing, demonstrating that ML models effectively capture microstructural irregularities that
conventional models overlook. Within ECM specifically, Rajesh et al. [9] attempted roughness prediction using
ANN for dry turning, though the paper was later retracted due to data inconsistencies. Nevertheless, their study
highlighted the increasing dependence on AI-driven models for machining applications. Recent comprehensive
reviews by Ko et al. [10] and Yang et al. [14] emphasize a shift toward integrating ML with physics-based
simulations and Digital Twin systems, allowing real-time prediction and closed-loop control of machining
operations. While various ML techniques have been explored for ECM, many studies suffer from small datasets,
lack of cross-validation, or limited parameter ranges. Furthermore, only a few works incorporate visualization
tools or decision-support systems into the predictive framework. Thus, there remains a compelling need for a
reliable, interpretable, and user-friendly predictive model for ECM roughness—motivating the development of
the present study.
Page 4203