Next Article in Journal
Nanosecond Laser Cutting of Double-Coated Lithium Metal Anodes: Toward Scalable Electrode Manufacturing
Previous Article in Journal
Manufacturing Design and Analysis of Bending Technology by the Variation of the Initial Technological Parameters
Previous Article in Special Issue
Optimization of Process Parameters for Advanced High-Strength Steel JSC980Y Automotive Part Using Finite Element Simulation and Deep Neural Network
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Machine Learning-Based Prediction of EDM Material Removal Rate and Surface Roughness

1
Department of Mechanical Engineering, Al-Huson University College, Al-Balqa Applied University, P.O. Box 50, Irbid 19117, Jordan
2
Department of Mechanical Engineering, Hijjawi Faculty for Engineering Technology, Yarmouk University, Irbid 21163, Jordan
*
Author to whom correspondence should be addressed.
J. Manuf. Mater. Process. 2025, 9(8), 274; https://doi.org/10.3390/jmmp9080274 (registering DOI)
Submission received: 30 June 2025 / Revised: 5 August 2025 / Accepted: 8 August 2025 / Published: 11 August 2025

Abstract

Examining the electrical discharge machining (EDM) process is challenging in manufacturing technology due to the complexity of the physical events that take place in the gaps between electrodes. In this study, we examined the EDM process in detail and developed multiple machine learning (ML) models to describe the relationship between the EDM independent (process parameters) and dependent (responses) variables. The collected experimental data was used to train the machine learning models. According to the results, the GPR model outperformed other ML models across different materials, with average RMSE values of 0.9234 and 3.0216 for the material removal rate (MRR) and surface roughness (Sa), respectively, highlighting the effectiveness of ML tools at modeling complex machining processes, such as EDM. In addition, as a practical implication, this study opens the door to employing the developed ML models to predict the EDM process performance.

1. Introduction

The integration of machine learning algorithms can improve machine productivity and efficiency. Machine learning algorithms can be applied to both conventional and non-conventional processes to predict and improve the process parameters, tool condition monitoring, error detection, and product quality, thereby enhancing the efficiency of manufacturing processes in the industry. Machine learning applications in manufacturing have benefits when it comes to dealing with complex, massive dimensionality and identifying hidden relationships in both small and large datasets, which are common in manufacturing settings. Machine learning can also solve optimization problems relevant to intelligent manufacturing systems and more [1]. ML algorithms may differ depending on the type of machine learning approach. Artificial neural networks (ANNs), multilayer perceptron, decision trees, support vector machines (SVMs), genetic algorithms, and other machine learning methods are used to forecast and improve the process settings in industrial activities such as injection molding and machining, which is useful for parameter adjustment and real-time monitoring, improving efficiency and saving manufacturing costs. Therefore, the choice of machine learning approach is based on the description of the problem and the available data.
Many machine learning algorithms are employed to predict and optimize critical responses such as the material removal rate and surface roughness. Another work also considered Glowworm Swarm and Grey Wolf optimization and found that the latter was the most effective for minimizing surface roughness [2]. Several machine learning applications for advancing electrical discharge machining have briefly been surveyed, including for automating the parameter setting selection, predicting outcome variables such as the surface finish and material removal rate, and uncovering complex data patterns to enhance the precision and effectiveness of electrical discharge machining processes [3].
Kumar et al. [4] examined the effects of input parameters on the pearlitic SG iron 450/12 class of work material, analyzing input variables such as the gap voltage and peak current and comparing their performance with other algorithms for better machining results. The authors used teaching–learning-based parametric optimization for improving the machining performance of the EDM process. The teaching–learning-based optimization approach generates better results because less time is spent for calculations considering large improvements. Moreover, the convergence rate and accuracy achieved are satisfactory. Another study employed machine learning to predict the material removal rates of cryotreated NiTi, NiCu, and BeCu alloys. The results of the machine learning predicted that the current, gap voltage, and pulse-on time are the most influential parameters that affect the MRR. The MRR was predicted via the gradient boosting regression-based method with the best R2 value [5].
Ghosh et al. [6] applied four machine learning models to study the electrical discharge machining process: SVR, EN, RF, and Bagging. A comparative performance analysis was also conducted in a statistical manner, and an additional correlation-based supervised feature selection method was used to select the important predictors. The results confirmed the effectiveness of using machine learning algorithms.
Zhao et al. [7] utilized data from a trained neural network to identify the gap discharge state in EDM, which is essential for enhancing the processing quality and efficiency in EDM applications, as well as for improving the accuracy and recognition rates. Discharge state recognition has been found to have higher consistency.
Shukla et al. [8] utilized a gradient descent algorithm as the machine learning algorithm to minimize the surface roughness in the case of wire electrical discharge machining (WEDM). The pulse-on and -off times and peak current played crucial roles in the surface roughness, as directed by the passage of the study. The authors found that the process input variables significantly influenced both the surface roughness and kerf width.
Ulas et al. [9] studied various machine learning algorithms to describe the wire electrical discharge machining processes for an aluminum alloy. In the article, the authors discuss the prediction of the surface roughness with a focus on the Al7075 aluminum alloy, examining the effects of the voltage, pulse-on time, dielectric pressure, and wire feed through a series of 81 experiments. Four machine learning models—extreme learning machine (ELM), W-ELM, support vector regression (SVR), and Q-SVR—were explored for their effectiveness at predicting the surface roughness. The most valuable model was the W-ELM model, with an R-squared value of 97%.
Kumar et al. [10] employed a deep learning technique, achieving an R-square of 0.9999 and a mean-squared error (MSE) of 0.0004 [6], exemplifying the ability of artificial intelligence to increase process efficiency. The authors expanded the study on WEDM by combining advanced experimental design methods with machine learning algorithms to optimize the process for titanium alloy [11]. In addition, a support vector regression model was constructed to optimize the Mg-SiC nanocomposite roughness using genetic algorithms and particle swarm optimization, yielding a satisfactory prediction accuracy [12].
Furthermore, another study employed machine learning approaches (such as decision tree (DT), random forest (RF), and artificial neural network models) to identify the optimal parameters for achieving targets on the Mg–Cu–RE–Zr alloy in the wire electric discharge machining operation, with accurate predictions 96.7 percent of the time. The best accuracy (96.7%) was achieved for the ANN [13]. Sarker et al. [14] applied optimized ensemble ML models to predict the responses in wire electrical discharge machining processes. The authors report that the random forest, support vector machine, and ridge regression models enhanced the accuracy in manufacturing applications. The model is characterized by higher MRSN ratios, which are associated with a better prediction performance.
The Gaussian process regression-based machine learning framework is used to determine the prediction accuracy, the amount of uncertainty, and the sensitivity of the prediction to geometrical precision [15]. Abhilash et al. [16] showed that machine learning, especially with an artificial neural network classifier, can make predictions that are 98% accurate for separating discharge pulses in the wire EDM process, and that EDM can also be optimized using machine learning.
Electrical discharge machining involves different machine settings and materials. Traditionally, experimental work provides accurate measurements of the responses; however, this is time-consuming and costly. Linear and nonlinear regression has also been widely employed in the literature; however, its performance is limited for seen and unseen data. Thus, a precise and adaptable model for measuring the EDM process in terms of the MRR and Sa for various machine settings and materials is needed.
This research developed ML models for the estimation of the material removal rate and surface roughness (Sa), integrating experimental data on the MRR using three different materials: two types of conventional alloy steels and a stainless steel. In addition, we developed an inverse model and then employed it to determine the EDM setting based on the desired material, MRR, and Sa.

2. Materials and Methods

2.1. Work Material

This research involved three materials: two types of conventional alloy steels and a stainless steel, which are used in different applications. Table 1 presents the chemical compositions of the testing materials.
The two alloy steels were chosen as materials of interest for manufacturers producing components that require high strength, toughness, and resistance to wear for the automotive and aerospace industries. X5CrNi18-10 stainless steel is also recommended for the food-processing industry owing to its outstanding corrosion resistance. This study was limited to three materials, which was one of its constraints. Further research on other types of alloys is necessary to achieve a generalizable model or to test such a model for a specific group of alloy steels.

2.2. Experimental Setup

The experimental studies were conducted using the EDM machine Charmilles Form 2LC ZNC manufactured by AGIE CHARMILLES, which is located in Geneva, Switzerland. The EDM machine and the schematic of the process are shown in Figure 1. Electrolytic copper with a cross section of 8 × 5 mm and a length of 70 mm was used for this study, and kerosene Fluxelf2 was allowed to flow as the working fluid with a resistivity of 7.4 × 1010 Ω cm.
The experimental investigations were performed at a constant voltage (U = 50 V) and within different pulse current (I = 4–16 A), pulse duration (Ton = 75–200 μs), and pulse-off time (Toff = 18–75 μs) ranges, which are illustrated in Table 2. In each experiment, the pulse polarity was positive. The pulse current and pulse duration ranges in the selected experiment design were established based on prior preliminary tests and a review of the relevant literature, and the investigation parameters were the roughing, semi-finishing, and finishing values. The experimental layout was developed in accordance with Hartley’s experimental plan [17], the levels of which were defined to evaluate the influence of the pulse current, pulse duration, and pulse-off time on the MRR and Sa surface parameters, which reduced the number of machining runs required to obtain a statistically adequate result. No replications were performed in this study. The experimental work was designed to collect as much data as possible under varying EDM settings to ensure sufficient coverage for effective ML model training. A detailed analysis of the EDM process itself, including feature-level investigation, is beyond the scope of this work. Our main contribution lies in developing accurate ML models to predict the MRR and Sa, as well as proposing an inverse model for practical applications.
The design matrix and results are presented in Table 3. The assessment of the surface topography after the EDM was conducted using a Taylor–Hobson Form Talysurf Series 2 scan profilometer manufactured by Taylor–Hobson, which is located in Leicester, England, as shown in Figure 2. The area of each sample was measured at 6 × 4 mm, and the discretization interval for the X- and Y-axes was 10 µm.
The Sa parameter was chosen to characterize the surfaces in the electrical discharge machining. The Sa (arithmetic mean height) represents a three-dimensional parameter that is the average height deviation from the mean plane. The 2D roughness profile parameter (Ra) corresponds to the Sa parameter. The values can be computed by summing the heights and dividing the sum by the number of data points in the matrix without sign information. If M is the number of profile points, N is the number of profiles, X, Y, and Z are the heights of the profile at a given point, and the Sa can be computed using Equation (1) [18]:
S a = a N M x = 0 N = 1 y = 0 M = 1 z x , y
The material removal rate is determined by the amount of material removed from the workpiece per unit time of machining using Equation (2) [18]:
M R R = m 1 m 2 ρ t ,   m m 3 m i n
where m1 is the sample weight before the process, m2 is the sample weight after the process, ρ is the specific density, and t is the machining time, which was 5 min.
Each sample was weighed before manufacturing using a precision electronic digital balance (model: Radwag WPS 50/C/2) manufactured by Radwag, which is located in Radom, Poland, with a precision of 0.0001 g. The samples went through cleansing with compressed air after the EDM process and were subsequently reweighed.

3. Machine Learning Implementation

The experimental results from the experimental layout were utilized as a dataset in machine learning to predict the material removal rate and surface parameter (Sa). The work began by conducting extensive experimental work to collect the data from the experiments, which was then split into training (80% of the collected data) and validation (20% of the collected data) data.
The dataset is small, with only 72 training samples collected from three experiment plans. This constraint is due to the experimental nature of the EDM process, which is time-consuming. Regardless of the restricted sample size, several precautions to ensure the robustness and validity of the developed models have been taken. The DOE plan was used to have the best combination between factors with minimum experimental runs. The data were also split properly so that unseen data was always retained for testing to evaluate generalization and overfitting. Validation is performed on a 20% dataset, and similar performance was observed between both seen and unseen data. In general, the purpose of the study is to compare the performances of various ML models for the EDM process, focusing on which one could be more promising. This comparative reason is still applicable, even with a relatively small dataset.
In this study, the following ML techniques were employed to examine the best prediction technique for achieving the best ML model to predict the maximum material removal rate and minimum surface roughness for the EDM process: feedforward artificial neural network (FNN), support vector regression (SVR), decision tree regression (DTR), k-nearest neighbor (KNN) regression, random forest regression (RFR), and Gaussian process regression (GPR). The rationale for selecting these models was to evaluate the performance of the available models in modeling the EDM process.
Technically, the GPR and SVR models were expected to excel in this study because they are capable of handling complex and nonlinear models with small and noisy datasets. SVR is employed in the energy sector and shows an excellent performance in modeling nonlinear relationships and complex models [18,19]. Shi et al. [20] employed different ML models and reported the superiority of the GPR model over other ML models in terms of the prediction accuracy. Figure 3 shows the proposed flowchart of the ML implementation from the early stages and data collection to the creation of the final models and practical evaluation.
MATLAB Version R2021 was employed for developing these ML models, and the search gradient was employed to tune their hyperparameters. In this work, two performance metrics were utilized to evaluate the models: the root-mean-squared error (RMSE) and R-squared (R2) to assess the predictive accuracy and approximate actual outcomes.

4. Results and Discussion

In this study, we considered three factors: the EDM peak current, pulse-on time, and pulse-off time for three different materials. Two responses, the MRR and Sa, were measured across all the materials. In general, materials A (42CrMo4) and B (S355) had the highest MRRs, while material C (X5CrNi18-10) exhibited a minimal MRR under various combinations of factors, as depicted in Figure 4, which can be attributed to the nature of the material.
The thermal conductivity values at room temperature were as follows: 42CrMo4 alloy steel (material A): approximately 40 W/m·K; S355 alloy steel (material B): typically around 50 W/m·K; X5CrNi18-10 stainless steel (material C): usually around 15 W/m·K.
High thermal conductivity supports heat dissipation, which has an effect on the MRR and surface roughness in EDM.
As shown in Figure 4, the X5CrNi18-10 stainless steel (material C) with lower thermal conductivity had the lowest material removal rate, even with a larger peak current of 16 A. In general, this material absorbs less heat during machining, leading to lower material removal rates, as the heat generated in the EDM process is quickly dissipated [21]. The MRR can be further reduced due to less efficient melting and vaporization, but the electrical discharges may not provide enough power to maintain the material at the right temperature for efficient removal [22]. Additionally, the 42CrMo4 and S355 alloy steels showed similar material removal rates caused by their similar thermal conductivities. The specific electrical properties of materials play a critical role in the EDM performance; for example, the interaction between the thermal conductivity and discharge current is crucial.
The impacts of the process parameters on the surface parameter (Sa) are also shown in Figure 4. The lowest values were obtained for the S355 alloy steel (material B) and X5CrNi18-10 stainless steel (material C). The similarity in their Sa values even with different pulse-on times and its impact on the optimum parameters is a subject for further investigation. A higher parameter value was achieved for the 42CrMo4 alloy steel (material A).
In general, the surface roughness is inversely related to the thermal conductivity; lower peak currents generally yield better surface finishes, but at the cost of reduced MRRs. According to the experimental results, the optimal surface quality was achieved at lower currents with specific thermal conductivities, highlighting the trade-off between the MRR and surface quality. The 42CrMo4 alloy steel (material A) exhibited high hardness and strength [21,22,23,24]. In machine operations such as EDM, the greater the hardness of the material, the more challenging it becomes to achieve a smooth surface finish, resulting in increased surface roughness [21,22,23,24]. Graphite powder was recently added to kerosene-based dielectric fluid to enhance the EDM process [25].
Figure 5 shows the MRR training results. The experimental data is shown as continuous blue lines, and the predicted data is represented by dashed red lines. As discussed earlier, 80% of the data (76 samples) were employed to train the developed ML models. In general, all the models showed similar trends to the experimental data. The GPR model demonstrated an excellent correlation with the experimental data across all the materials, while the KNN model exhibited some deviation at a high sample index, which could be because of its sensitivity to local noise, such that the presence of noisy data in the local neighborhood may lead to deviations in the predictions.
The first 19 samples represent material A. The DTR, KNN, and RFR models showed some deviation, while the rest of the models were in excellent correlation with the experimental data. Similar results are reported for the second and third 19 samples, which represent materials B and C, respectively, while the remaining 19 samples stand for material D. There was a large deviation using the KNN model and a small deviation using the RFR model.
The ML models were then tested on unseen data. Figure 6 shows the ML model prediction data vs. new experimental data. A total of 19 samples representing 20% of the original dataset were employed as unseen data. We used unseen data for two reasons: (1) to validate and test the developed models on data that were not used for training them in order to prove their quality, and (2) to judge whether overfitting occurred, as similar performance on unseen data indicated no overfitting and good generalization of the model. The GPR model outperformed the other models, followed by the SVR and DTR models. The KNN model showed deviation across all the materials, even though a favorable correlation was reported for materials A, B, and C during the training phase. On the contrary, the FNN and RFR models showed some deviation for unseen data during the training phase, even though a good prediction was reported.
Figure 7 shows the surface roughness parameter (Sa) results of the training phase. Based on the results, the GPR model was the best predictor, followed by the SVR model; these results were similar to the findings reported for the MRR. The KNN model showed the poorest ability to predict the Sa across all the materials, while the RFR model showed some deviation, especially for materials A and C.
Similarly, the proposed models were tested for Sa in unseen data. Figure 8 shows the model predictions for the unseen experimental data. For all three materials, the GPR model was superior to the other models, and the SVR and DTR models were the second and third best models, respectively. The KNN model, however, showed a significant deviation across all the materials, while the RFR model only showed deviation for materials A and B. The FNN model showed a favorable prediction for material C and some deviation for materials A and B.
The results reported in Figure 6 and Figure 8 for unseen data suggest the validity of the models, in particular the GPR and SVR models, for use as reference models for studying the EDM process and its parameters.
It is worth mentioning that a grid search method was employed in this research work to optimize the hyperparameters for SVR and GPR. For the SVR, the following hyperparameters were searched: C_values (logspace (−3, 3, 5), Epsilon_values ([0.01, 0.1, 1]), and Gamma_values (logspace (−3, 2, 5)). On the other hand, the GPR kernel parameters, e.g., length scale and signal variance, and noise level, were optimized using the built-in automatic optimizer in MATLAB (fitrgp), which performs marginal likelihood maximization.

5. Evaluation of Predictive Model Effectiveness

The performance of the proposed ML models in terms of RMSE and R2 was analyzed in this work. These characteristics are important for improving machining performance, for example, by predicting the surface roughness and material removal rates. The RMSE is used to measure the discrepancies between predicted and actual values, offering a straightforward indicator of the model accuracy and quantifying the model error. Meanwhile, R2 indicates the percentage of variance in the dependent variable that can be described by the independent variables in the model and evaluates the goodness-of-fit [26,27].
The RMSE is essential in hyperparameter tuning and model selection and, at the same time, provides a quantitative measure to compare different models or configurations, confirming that the selected model generalizes well to unseen data [28,29,30]. Figure 9 shows the RMSEs for the training and validation data for both the MRR and Sa; similar results are listed in Table 4 and Table 5 for the MRR and Sa, respectively.
The GPR and SVR models outperformed the other models in terms of the MRR, with the average RMSE values of the three materials equal to 0.9234 and 0.8860, respectively, for the training data, and equal to 1.1566 and 1.2265, respectively, for the validation data. The FNN model showed the worst performance during the training and validation phases. Regarding the Sa, the GPR and DTR models showed the minimum Sa values for the training data, while the SVR and DTR models showed the minimum Sa values for the validation data. In general, the developed ML models predicted the Sa with an RMSE of 4.1850 (the SVR model for the validation data), which subsequently represents more than a 10% deviation from the actual Sa value, highlighting the need to conduct more extensive experimental work to obtain more data for training/validation.
Figure 10 shows a bar chart of the R2 values across the proposed materials and models, and the same results are listed in Table 6. The achieved R2 values (i.e., the MRR training dataset) for both the GPR and SVR models are more than 0.97, indicating that the model discovered around 97% of the total variation in the observed Sa values for materials A, B, and C.
Following the surface roughness (Sa) prediction, the DTR model outperformed the other models during the training phase, as shown in Table 7; however, it showed the lowest R2 for the validation/unseen data, with the R2 equal to only 0.4711. The GPR and RFR models showed similar R2 values for the training and validation data: about 0.61 and 0.51, respectively. The FNN and KNN models showed negative values for some materials, which indicates the unsuitability of these models to Sa prediction in EDM processes.
Figure 11 shows the residual plots for the predicted outputs (MRR and Sa) across all the materials using the validation dataset, revealing the validity of the GPR and SVR models with low residuals across the three materials considered, which can also be seen in Figure 12, where the MAEs are shown for all the ML models.

6. Practical Implications

This study demonstrated that the SVR and GPR models outperformed the other models in terms of seen and unseen data; in particular, the developed models connected the EDM setting with the MRR and surface roughness for three different materials. These findings can be applied in industries where the EDM setting is often used to predict the performance of the EDM process without the need to conduct any experimental work. For instance, once the EDM setting is initialized, the MRR and Sa will be known at the very beginning. Another potential practical implication is the development of inverse GPR and SVR models and their subsequent employment to determine the EDM setting based on the desired material, MRR, and Sa.
An inverse model was developed further to investigate the possibility of predicting the EDM setting per given MRR and Sa. An SVR model was developed considering the following inputs: the material, MRR, and Sa, with the peak current, pulse-on time, and pulse-off time as the outputs. The data were again divided into training data (seen data) (80%) and validation data (unseen data) (20%).
The results of the EDM setting prediction utilizing unseen data are summarized in Figure 13. Valuable predictions were demonstrated for the three materials, with better predictions for the pulse-on time, and moderate predictions for both the pulse-off time and peak current. In general, these results can be integrated with the EDM controller for real-time decision making to determine the MRR and Sa.
Figure 14 and Figure 15 show the MAE and residual plots of the unseen dataset of the proposed inverse model. Figure 14 shows the MAEs of the peak current, pulse-on time, and pulse-off time of the inverse model in detail. Clearly, the prediction was more accurate for the pulse-on time, followed by those for the pulse-off time and peak current. A similar trend is shown in Figure 15, where the residuals are plotted for the aforementioned outputs. These results highlight the validity of the future implementation of the proposed inverse model in EDM processes in scenarios where the target MRR and Sa values are specified, allowing the EDM system to automatically select and implement the optimal process parameters.

7. Conclusions

In this study, we developed different ML models of the EDM process under a wide range of machine settings (i.e., the peak current, pulse-on time, and pulse-off time) and materials (i.e., two types of alloy steels and a stainless steel). In addition, two outputs were considered: the material removal rate (MRR) and surface roughness (Sa). According to the results, the GPR model outperformed the other ML models in terms of the RMSE and R2, followed by the SVR model. The average RMSE values of the GPR model across the different materials were 0.9234 and 3.0216 for the MRR and Sa, respectively. Similarly, the R2 values were 0.9728 and 0.6190 for the MRR and Sa of the GPR model, respectively. In contrast, the KNN and FNN models showed the worst performance, which could be attributed to their sensitivity to local noise in data. The proposed ML models were able to accurately predict the EDM response, indicating that they can be used to model and simulate EDM machine predictions. In future work, the authors plan to combine the ML strategies with the additional study of the structures of materials before and after the EDM process, as well as the prediction of the effects of the parameters on a larger range of material responses. This study enhances the existing literature in the context of EDM process modeling, providing insight into EDM process optimization in industrial applications. Future work will focus on implementing an inverse model for the real-time EDM process, enabling users to specify their desired MRR and Sa values, upon which the system will automatically determine the appropriate machining settings.

Author Contributions

Conceptualization, I.Q. and A.A.; methodology, I.Q.; software, A.A.; validation, I.Q. and A.A.; formal analysis, A.A.; investigation, I.Q. and A.A.; resources, I.Q. and A.A.; data curation, A.A.; writing—original draft preparation, I.Q. and A.A.; writing—review and editing, I.Q.; visualization, A.A.; supervision, I.Q.; project administration, I.Q. All authors have read and agreed to the published version of the manuscript.

Funding

This research received no external funding.

Data Availability Statement

The raw data supporting the conclusions of this article will be made available by the authors upon request.

Acknowledgments

The authors would like to acknowledge the Institute of Manufacturing Technology, Warsaw University of Technology, for its help in realizing this work, especially Robert Pierzynowski.

Conflicts of Interest

The authors declare no conflicts of interest.

Abbreviations

The following abbreviations are used in this manuscript:
DTRDecision Tree Regression
EDMElectrical Discharge Machining
IPeak Current
GWOGrey Wolf Optimizer
GPRGaussian Process Regression
KNNk-Nearest Neighbors Regression
MAEMean Absolute Error
MLMachine Learning
MRRMaterial Removal Rate
SVRSupport Vector Regression
TonPulse-On Time
ToffPulse-Off Time
SaArithmetic Mean Height
FNNFeedforward Artificial Neural Network
RFRRandom Forest Regression
RMSERoot-Mean-Squared Error
WEDMWire Electrical Discharge Machining

References

  1. Wuest, T.; Weimer, D.; Irgens, C.; Thoben, K. Machine learning in manufacturing: Advantages, challenges, and applications. Prod. Manuf. Res. 2016, 4, 23–45. [Google Scholar] [CrossRef]
  2. Zainal, N.; Sithambranathan, M.; Khattak, U.F.; Zain, A.M.; Mostafa, S.A.; Deris, A.M. Optimization of electrical discharge machining process by metaheuristic algorithms. Qubahan Acad. J. 2024, 4, 277–289. [Google Scholar] [CrossRef]
  3. Gupta, E.A.R. Integrating machine learning and mathematical programming for optimization of electric discharge of machining techniques. Int. J. Recent Innov. Trends Comput. Commun. 2023, 11, 683–690. [Google Scholar] [CrossRef]
  4. Kumar, V.; Diyaley, S.; Chakraborty, S. Teaching-learning-based parametric optimization of an electrical discharge machining process. Facta Univ. Ser. Mech. Eng. 2020, 18, 281. [Google Scholar] [CrossRef]
  5. Jatti, V.S.; Dhabale, R.B.; Mishra, A.; Khedkar, N.K.; Jatti, V.S.; Jatti, A.V. Machine learning based predictive modeling of electrical discharge machining of Cryo-Treated NITI, NICU and BECU alloys. Appl. Syst. Innov. 2022, 5, 107. [Google Scholar] [CrossRef]
  6. Ghosh, I.K.; Sanyal, M.K.; Jana, R.K.; Dan, P.K. Machine learning for predictive modeling in management of operations of EDM equipment product. In Proceedings of the Second International Conference on Research in Computational Intelligence and Communication Networks (ICRCICN), Kolkata, India, 23–25 September 2016; pp. 169–174. [Google Scholar]
  7. Zhao, L.; Wang, X.; Liu, Y. Research on discharge detection system of electric discharge machining based on neural network. In Proceedings of the Third International Conference on Advanced Manufacturing Technology and Manufacturing Systems (ICAMTMS 2024), Changsha, China, 5 August 2024; pp. 1191–1199. [Google Scholar]
  8. Shukla, S.K.; Priyadarshini, A. Application of machine learning techniques for multi objective optimization of response variables in wire cut electro discharge machining operation. Mater. Sci. Forum 2019, 969, 800–806. [Google Scholar] [CrossRef]
  9. Ulas, M.; Aydur, O.; Gurgenc, T.; Ozel, C. Surface roughness prediction of machined aluminum alloy with wire electrical discharge machining by different machine learning algorithms. J. Mater. Res. Technol. 2020, 9, 12512–12524. [Google Scholar] [CrossRef]
  10. Kumar, S.; Jayswal, S.C. Deep learning approach for optimizing Material Removal Rate in Wire Electrical Discharge Machining using neural networks. Eng. Res. Express 2025, 7, 015519. [Google Scholar] [CrossRef]
  11. Kumar, S.; Jayswal, S.C. Machining performance analysis of wire-EDM for machining of titanium alloy using multi-objective optimization and machine learning approach. Proc. Inst. Mech. Eng. Part E J. Process Mech. Eng. 2024, 09544089241288009. [Google Scholar] [CrossRef]
  12. Tamang, S.K.K.; Chauhan, A.; Banerjee, D.; Teyi; Samanta, S. Developing precision in WEDM machining of Mg-SiC nanocomposites using machine learning algorithms. Eng. Res. Express 2024, 6, 045435. [Google Scholar] [CrossRef]
  13. Swamy, M.K.R.; Prasad, D.V.S.S.S.V.; Banda, H.; Kaliappan, S. A Novel Approach for Optimizing Wire Electric Discharge Machining of Mg-Cu-RE-Zr Alloy Using Machine Learning Algorithm. In Metaheuristics Algorithm and Optimization of Engineering and Complex Systems; IGI Global Scientific Publishing: Hershey, PA, USA, 2024; pp. 43–64. [Google Scholar] [CrossRef]
  14. Sarker, B.; Chakraborty, S.; Čep, R.; Kalita, K. Development of optimized ensemble machine learning-based prediction models for wire electrical discharge machining processes. Sci. Rep. 2024, 14, 23299. [Google Scholar] [CrossRef]
  15. Saha, S.; Gupta, K.K.; Maity, S.R.; Dey, S. Probabilistic investigation of geometric responses in Wire EDM machined complex-shaped profile: A machine learning based approach. Proc. Inst. Mech. Eng. Part B J. Eng. Manuf. 2022, 237, 1798–1809. [Google Scholar] [CrossRef]
  16. Abhilash, P.M.; Chakradhar, D.; Luo, X.C. Machine Learning Based Classification and Analysis of Wire-EDM Discharge Pulses. In Proceedings of the 8th International Conference on Nanomanufacturing & 4th AET Symposium on ACSM and Digital Manufacturing (Nanoman-AETS), Dublin, Ireland, 30 August–1 September 2022; pp. 1–6. [Google Scholar]
  17. Nemś, A.; Nemś, M.; Świder, K. Analysis of the Possibilities of using a Heat pump for Greenhouse Heating in Polish Climatic Conditions—A Case Study. Sustainability 2018, 10, 3483. [Google Scholar] [CrossRef]
  18. Świercz, R.; Oniszczuk-Świercz, D.; Dąbrowski, L. Electrical discharge machining of difficult to cut materials. Arch. Mech. Eng. 2018, 461–476. [Google Scholar] [CrossRef]
  19. Chahboun, S.; Maaroufi, M. Performance comparison of support vector regression, random forest and multiple linear regression to forecast the power of photovoltaic panels. In Proceedings of the 2021 9th International Renewable and Sustainable Energy Conference (IRSEC), Tetouan, Morocco, 23–27 November 2021; pp. 1–4. [Google Scholar] [CrossRef]
  20. Shi, X.; Jiang, D.; Qian, W.; Liang, Y. Application of the Gaussian process regression method based on a combined kernel function in engine performance prediction. ACS Omega 2022, 7, 41732–41743. [Google Scholar] [CrossRef]
  21. Pal, M.R.; Debnath, K.; Mahapatra, R.N. Optimization of machining parameters and analysis of the surface characteristics in micro-electrical discharge machining of 310 and 316 stainless steel. J. Mater. Eng. Perform. 2024, 33, 5422–5438. [Google Scholar] [CrossRef]
  22. Duan, L.; Hu, M.; Kun, L.; He, W.; Du, J. Experimental study on electrical discharge machining of porous and pure 316L stainless steel. Proc. Inst. Mech. Eng. Part C J. Mech. Eng. Sci. 2024, 238, 6469–6486. [Google Scholar] [CrossRef]
  23. Rajaram, S.; RajKumar, G.; Balasundaram, R.; Srinivasan, D. Experimental investigation of drilling small hole on duplex stainless steel (SS2205) using EDM. Mech. Mech. Eng. 2018, 22, 285–294. [Google Scholar] [CrossRef]
  24. Shabgard, M.; Gholipoor, A.; Baseri, H. A review on recent developments in machining methods based on electrical discharge phenomena. Int. J. Adv. Manuf. Technol. 2016, 87, 2081–2097. [Google Scholar] [CrossRef]
  25. Sharma, R.; Singh, J. Effect of Powder mixed Electrical Discharge machining (PMEDM) on difficult-to-machine materials—A systematic literature review. J. Manuf. Sci. Prod. 2014, 14, 233–255. [Google Scholar] [CrossRef]
  26. Paturi, U.M.R.; Cheruku, S.; Pasunuri, V.P.K.; Salike, S.; Reddy, N.S.; Cheruku, S. Machine learning and statistical approach in modeling and optimization of surface roughness in wire electrical discharge machining. Mach. Learn. Appl. 2021, 6, 100099. [Google Scholar] [CrossRef]
  27. Nishant, N.; Rathore, N.K.; Nassa, V.K.; Dwivedi, V.K.; Thulasimani, T.; Dillibabu, S.P. Integrating machine learning and mathematical programming for efficient optimization of electric discharge machining technique. Sci. Temper 2023, 14, 859–863. [Google Scholar] [CrossRef]
  28. Beheshti, S.; Shamsi, M.; Sadat-Nejad, Y.; Zhou, M. Polynomial Regression Hyperparameter Selection and Analysis using Reconstruction Error Minimization (REM). In Proceedings of the 2024 11th IEEE Swiss Conference on Data Science (SDS), Zurich, Switzerland, 30–31 May 2024; pp. 8–15. [Google Scholar] [CrossRef]
  29. Mo, Z.; Di, X.; Shi, R. Robust Data Sampling in Machine Learning: A Game-Theoretic Framework for Training and Validation Data Selection. Games 2023, 14, 13. [Google Scholar] [CrossRef]
  30. Ogliari, E.; Sakwa, M.; Wei, J.; Liu, W.; Schubert, B.; Palo, M. General Machine Learning-Based Approach to pulse Classification for separation of partial discharges and interference. IEEE Sens. J. 2023, 23, 26839–26849. [Google Scholar] [CrossRef]
Figure 1. EDM machine Charmilles Form 2LC ZNC.
Figure 1. EDM machine Charmilles Form 2LC ZNC.
Jmmp 09 00274 g001
Figure 2. Taylor–Hobson Form Talysurf Series 2 scan profilometer.
Figure 2. Taylor–Hobson Form Talysurf Series 2 scan profilometer.
Jmmp 09 00274 g002
Figure 3. Flowchart of ML implementation and data cleaning.
Figure 3. Flowchart of ML implementation and data cleaning.
Jmmp 09 00274 g003
Figure 4. The maximum MRR and minimum Sa values across the three materials. Materials A and B had the highest MRRs, while a higher Sa value was achieved for material A.
Figure 4. The maximum MRR and minimum Sa values across the three materials. Materials A and B had the highest MRRs, while a higher Sa value was achieved for material A.
Jmmp 09 00274 g004
Figure 5. Actual vs. predicted MRR values for the trained data (seen data). All the models showed similar trends to the experimental data across all the materials. The GPR demonstrated an excellent correlation with the experimental data. Note: The experimental data is shown as continuous blue lines, and the predicted data is shown as dashed red lines.
Figure 5. Actual vs. predicted MRR values for the trained data (seen data). All the models showed similar trends to the experimental data across all the materials. The GPR demonstrated an excellent correlation with the experimental data. Note: The experimental data is shown as continuous blue lines, and the predicted data is shown as dashed red lines.
Jmmp 09 00274 g005
Figure 6. Actual vs. predicted MRRs (unseen data). GPR outperformed the other models, followed by SVR and DTR.
Figure 6. Actual vs. predicted MRRs (unseen data). GPR outperformed the other models, followed by SVR and DTR.
Jmmp 09 00274 g006
Figure 7. Actual vs. predicted Sa values for the trained data (seen data). The GPR model is the best predictor, followed by the SVR model.
Figure 7. Actual vs. predicted Sa values for the trained data (seen data). The GPR model is the best predictor, followed by the SVR model.
Jmmp 09 00274 g007
Figure 8. Actual vs. predicted Sa values (unseen data). For all three materials, the GPR models are superior to the other models, and the SVR and DTR models are the second and third best models, respectively.
Figure 8. Actual vs. predicted Sa values (unseen data). For all three materials, the GPR models are superior to the other models, and the SVR and DTR models are the second and third best models, respectively.
Jmmp 09 00274 g008
Figure 9. RMSEs for training and validation data across all materials and models for both MRR and Sa.
Figure 9. RMSEs for training and validation data across all materials and models for both MRR and Sa.
Jmmp 09 00274 g009
Figure 10. R2 values for training and validation data across all materials and models for both MRR and Sa.
Figure 10. R2 values for training and validation data across all materials and models for both MRR and Sa.
Jmmp 09 00274 g010
Figure 11. Residual plots for predicted outputs (MRR and Sa) across all materials using validation dataset.
Figure 11. Residual plots for predicted outputs (MRR and Sa) across all materials using validation dataset.
Jmmp 09 00274 g011
Figure 12. MAE plots for predicted outputs (MRR and Sa) across all ML models using validation dataset.
Figure 12. MAE plots for predicted outputs (MRR and Sa) across all ML models using validation dataset.
Jmmp 09 00274 g012
Figure 13. Actual versus predicted values for EDM setting (unseen data).
Figure 13. Actual versus predicted values for EDM setting (unseen data).
Jmmp 09 00274 g013
Figure 14. MAE plots for the predicted outputs (peak current and pulse-on and pulse-off times) using unseen dataset.
Figure 14. MAE plots for the predicted outputs (peak current and pulse-on and pulse-off times) using unseen dataset.
Jmmp 09 00274 g014
Figure 15. Residual plots for the predicted outputs (peak current and pulse-on and pulse-off times) using unseen dataset.
Figure 15. Residual plots for the predicted outputs (peak current and pulse-on and pulse-off times) using unseen dataset.
Jmmp 09 00274 g015
Table 1. Material compositions of the specimens.
Table 1. Material compositions of the specimens.
Material Symbol: A
42CrMo4 Alloy Steel
CMnSiPSCrNiMoWVCoCuN
0.38–0.450.4–0.70.17–0.37max.
0.035
max.
0.035
0.9–1.2max.
0.3
0.15–0.25max. 0.2max. 0.05-max. 0.25-
Material Symbol: B
S355 Alloy Steel
CMnSiPSCrNiMoWVCoCuN
0.21.50.2–0.5max. 0.04max. 0.04max. 0.3max. 0.3---max. 0.02max. 0.03
Material Symbol: C
X5CrNi18-10 Stainless Steel
CMnSiPSCrNiMoWVCoCuN
<0.07<2<1<0.045<0.01517.5–19.58–10.5--<0.2--<0.11
Table 2. Process parameters and their levels.
Table 2. Process parameters and their levels.
Levels
Factor SymbolParameterLowHigh
IPeak current [A]416
TonPulse-on time [µs]75200
ToffPulse-off time [µs]1875
Table 3. Design matrix and results.
Table 3. Design matrix and results.
Coded FactorsResponse Variables
S355 Alloy SteelX5CrNi18-10 Stainless Steel42CrMo4 Alloy Steel
RunITonToffMRR
[mm3/min]
Sa
[μm]
MRR
[mm3/min]
Sa
[μm]
MRR
[mm3/min]
Sa
[μm]
1162005021.1317.420.7018.721.8814.4
2161002522.189.1920.2913.622.5320.8
3142005022.9112.817.8411.523.6327.6
4141503620.7110.519.701221.9525.2
5141002519.379.4219.1611.120.7420.9
614751818.6421.417.8110.419.3612.7
7122005022.012919.2912.821.7019
8121503620.7623.819.2312.320.1526.5
9121002519.4517.918.2512.720.1429.3
1012751818.1413.215.9011.918.2918.1
11102005019.1016.816.3214.619.9017.9
12101503619.1121.416.6814.520.1520.9
13101002516.861415.3011.916.879.14
1410751816.247.9214.4914.217.089.53
1582007512.6411.110.328.316.459.74
1681505013.877.7612.068.8114.7410.6
1781003613.207.7810.968.6113.799.42
188752514.166.611.929.2915.609.11
196200756.977.558.439.327.998.62
206150369.898.889.557.9611.4811.2
2161003611.018.289.238.5112.729.46
22675257.8313.76.176.139.078.77
234100252.825.862.887.353.318.39
24475252.398.342.406.552.927.26
Table 4. RMSE values across all materials and models of MRR datasets.
Table 4. RMSE values across all materials and models of MRR datasets.
FNNSVRDTRKNNRFRGPR
Material ATraining2.46891.20411.27642.16851.94721.1599
Validation3.28951.39591.54291.14752.03501.2285
Material BTraining2.15170.77660.97871.89821.52770.9242
Validation2.25951.10761.52601.68372.15231.0672
Material CTraining1.80710.67741.08722.22401.61590.6861
Validation1.45271.17602.70871.86611.38851.1740
AverageTraining2.14260.88601.11412.09691.69690.9234
Validation2.33391.22651.92591.56581.85861.1566
Table 5. RMSE values across all materials and models of Sa datasets.
Table 5. RMSE values across all materials and models of Sa datasets.
FNNSVRDTRKNNRFRGPR
Material ATraining2.68824.36763.82525.52243.79833.3698
Validation5.96774.68074.89515.86834.95195.1194
Material BTraining5.05564.41353.86205.17073.64703.9045
Validation9.23596.85965.89487.42316.32316.7015
Material CTraining2.04461.86871.09524.63651.79381.7905
Validation1.88331.01482.03752.14711.68531.4642
AverageTraining3.26283.54992.92755.11003.07973.0216
Validation5.69564.18504.27585.14624.32014.4284
Table 6. R2 values across all materials and models of MRR datasets.
Table 6. R2 values across all materials and models of MRR datasets.
FNNSVRDTRKNNRFRGPR
Material ATraining0.91350.96760.95260.86320.89070.9609
Validation0.89220.95640.90560.94780.81840.9401
Material BTraining0.86290.97660.97010.88760.92320.9734
Validation0.84610.97960.94830.93710.89460.9747
Material CTraining0.85810.98040.96030.83390.90890.9842
Validation0.83650.92530.66130.83930.92340.9364
AverageTraining0.87820.97490.96100.86160.90760.9728
Validation0.85830.95380.83840.90810.87880.9504
Table 7. R2 values across all materials and models of Sa datasets.
Table 7. R2 values across all materials and models of Sa datasets.
FNNSVRDTRKNNRFRGPR
Material ATraining0.80710.58600.68240.33810.66830.7536
Validation0.07770.59280.55470.36000.53720.5129
Material BTraining0.76470.32370.48220.07180.53340.4707
Validation−0.19390.26610.45800.14060.38940.2995
Material CTraining0.51790.59990.8626−1.46270.63540.6327
Validation0.54400.85130.40050.33430.61030.6904
AverageTraining-0.50320.6757-0.61240.6190
Validation-0.57010.4711-0.51230.5009
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Qasem, I.; Alsakarneh, A. Machine Learning-Based Prediction of EDM Material Removal Rate and Surface Roughness. J. Manuf. Mater. Process. 2025, 9, 274. https://doi.org/10.3390/jmmp9080274

AMA Style

Qasem I, Alsakarneh A. Machine Learning-Based Prediction of EDM Material Removal Rate and Surface Roughness. Journal of Manufacturing and Materials Processing. 2025; 9(8):274. https://doi.org/10.3390/jmmp9080274

Chicago/Turabian Style

Qasem, Isam, and Amjad Alsakarneh. 2025. "Machine Learning-Based Prediction of EDM Material Removal Rate and Surface Roughness" Journal of Manufacturing and Materials Processing 9, no. 8: 274. https://doi.org/10.3390/jmmp9080274

APA Style

Qasem, I., & Alsakarneh, A. (2025). Machine Learning-Based Prediction of EDM Material Removal Rate and Surface Roughness. Journal of Manufacturing and Materials Processing, 9(8), 274. https://doi.org/10.3390/jmmp9080274

Article Metrics

Back to TopTop