Next Article in Journal
Engineering Perfection in GTAW Welding: Taguchi-Optimized Root Height Reduction for SS316L Pipe Joints
Previous Article in Journal
Processing, Microstructure, and Mechanical Behavior of Tungsten Heavy Alloys for Kinetic Energy Penetrators: A Critical Review
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Investigation of the Effect of Tool Rotation Rate in EDM Drilling of Ultrafine Grain Tungsten Carbide Using Predictive Machine Learning

Graduate School of Science and Technology, Keio University, Yokohama 223-8522, Japan
*
Author to whom correspondence should be addressed.
J. Manuf. Mater. Process. 2025, 9(6), 187; https://doi.org/10.3390/jmmp9060187
Submission received: 11 May 2025 / Revised: 30 May 2025 / Accepted: 3 June 2025 / Published: 4 June 2025

Abstract

Electric discharge machining (EDM) is widely employed for machining hard, conductive materials. Tool rotation has emerged as an effective strategy to enhance debris flushing and improve stability during deep-hole EDM drilling. This study proposes a machine learning-based approach to evaluate the influence of tool rotation and predict the unstable machining conditions in EDM of ultrafine grained tungsten carbide. A structured analytical workflow, combining Taguchi–Grey optimization, regression analysis, and classification models, was designed to capture discharge dynamics across macro- and micro-timescales. Classification models trained on raw and processed electrical signal features achieved over 88% accuracy and 90% recall. SHAP analysis revealed that the relationship between key discharge events such as sparks and short circuits varied significantly across stable and unstable machining phases, underscoring the importance of phase-specific modeling. While correlation analysis showed weak global associations, phase-dependent SHAP values revealed opposing feature effects, allowing the context-informed interpretation of model behavior. Phase segmentation revealed that, compared to 1000 RPM, short circuits were reduced by about 40% during stable machining at 8000–9000 RPM. Conversely, during unstable phases, spark effectiveness dropped by nearly 45%, and secondary discharges increased throughout this range. These insights support the design of adaptive control strategies that adjust the rotation rate in response to detected phase changes, aiming to sustain machining stability. The findings support the development of dynamic control frameworks to improve EDM performance, particularly for mold fabrication using tungsten carbide.

1. Introduction

Electrical discharge machining (EDM) is a non-traditional machining process that removes material through controlled electrical discharges between a tool and a workpiece, both submerged in a dielectric fluid [1]. Due to its non-contact nature and ability to machine hard, brittle, and conductive materials, EDM is widely used in the aerospace [2], biomedical [3,4], and mold industries [5,6].
Rotary EDM, wherein the tool is rotated during machining, has emerged as an effective strategy to enhance debris flushing, stabilize the discharge process, and improve machining performance. Studies have reported improvements in material removal rates [7,8], surface finish [9], and tool life [10] with tool rotation assistance. However, while a moderate increase in the rotation rate can enhance performance, at a higher rate the benefits plateau or even diminish due to excessive turbulence or arc formation [11,12]. This introduces complexity in selecting the optimal tool rotation rate, especially because differences in the machining behavior at different rotation rates are often subtle and non-linear.
Moreover, EDM is inherently a pseudo-random process at the micro-timescale, governed by complex interactions between electrical, thermal, and fluid dynamic phenomena [13]. Traditional performance metrics, such as the material removal rate (MRR), tool wear rate (EWR), and surface roughness (Ra, Sa), provide limited insight into the underlying process stability. Consequently, there is growing interest in analyzing internal discharge characteristics to better understand and optimize EDM operations.
To model and optimize EDM performance, various approaches have been developed, including Response Surface Methodology (RSM) [14,15], and Taguchi methods with ANOVA-based analysis [16,17]. The Taguchi–Grey relational analysis [18,19] in particular offers a structured framework to handle multi-objective optimization problems and has been effectively applied in EDM parameter optimization. However, in most previous studies, these methods primarily relate input parameters such as voltage, current, and pulse frequency directly to output metrics, without a deeper exploration of the discharge dynamics.
Recent advances in on-machine process monitoring have enabled the segmentation and classification of individual electrical events into types such as clean sparks, arcs, and short circuits [20,21]. Discharge classification provides a richer, physically interpretable view of the EDM process beyond conventional current and voltage waveform analysis. While pulse-based breakout detection using discharge behavior has been explored, primarily in wire EDM, where breakout is a critical event [22,23], such approaches are often limited to sudden, extreme transitions. In contrast, die-sinking EDM under rotational conditions induces more gradual and subtle changes, where the traditional feed rate or voltage variations cause noticeable differences but the rotation rate variation affects the internal discharge dynamics more subtly.
This highlights a critical research gap: the need to understand how the tool rotation rate variation influences discharge patterns and machining stability in die-sinking EDM, where differences are not easily captured by classical threshold-based models. Tungsten carbide, particularly ultrafine-grained cobalt-bonded grades, is widely used in mold fabrication due to its high hardness and thermal resistance, but it is also difficult to machine, making it a particularly relevant material for this investigation [24].
We hypothesize that variation in tool rotation rate leads to measurable changes in discharge event patterns and phase-dependent machining stability, which can be detected and predicted using machine learning models trained on on-machine electrical measurements. To test this hypothesis, we develop a multi-stage methodology that combines process optimization, data-driven classification, and phase-aware analysis of electrical discharges.
First, Taguchi–Grey analysis is applied to optimize machining parameters excluding rotation rate, establishing baseline process performance. Next, regression modeling with process indicators is employed to refine the understanding of input–output relationships. Machine learning classification models (Random Forest and XGBoost) are then developed to predict machining stability based on both raw electrical signal features and classified discharge-type features. Finally, dynamic discharge trends across varying rotation rates are examined to uncover behaviors indicative of process instability, forming the foundation for data-driven control strategies. The objective is not only to improve the prediction accuracy but also to enhance physical interpretability by linking signal characteristics and discharge phenomena to machining outcomes.
This study aims to advance a physically grounded understanding of the stability phenomena in rotational EDM through the integration of traditional optimization techniques and modern machine learning. The findings support improved process stability and productivity in the deep hole drilling of challenging mold materials such as tungsten carbide.

2. Methodology

2.1. Experimental Setup and Data Acquisition

2.1.1. Materials and Machining Configuration

Electric discharge machining (EDM) experiments were performed on ultrafine grain cobalt-bonded tungsten carbide (KM10), produced by Toyo Tool, Osaka, Japan. The material had an average grain size of 0.7 μ m and a binder concentration of 8 %, with its mechanical properties listed in Table 1. Copper electrodes with a diameter of 1 mm, supplied by Nilaco, Tokyo, Japan, were used as tools. The experiments were conducted using the Mitsubishi EA8PV die-sinking EDM machine.
Tool rotation was controlled using a Nakanishi E2280 pneumatic air spindle, with the rotational rate regulated via an Arduino Uno and ADC-based system. The dielectric fluid used was Shell Paraol 250, equipped with a custom filtration system operating in two stages: 10 μ m and 0.5 μ m.
Waveform data were acquired using an Iwatsu SS-0130R voltage probe and an Iwatsu SS-240A current probe, connected to a Picoscope 3403D MSO oscilloscope. A sampling interval of 504 ns was used to capture short-duration pulses with high precision. The data were recorded in binary format using Python wrappers from the PicoSDK library. A schematic of the complete machining setup is shown in Figure 1.

2.1.2. Waveform Capture and Discharge Classification

To reduce the impact of electrical noise, both inductive and capacitive, a weighted moving average filter was applied to voltage and current signals. The kernel used was (0.05, 0.15, 0.6, 0.15, 0.05), which effectively smoothed high-frequency fluctuations while preserving the underlying discharge shape.
The EDM system employed in this study features an always-on voltage and a pulsed current profile. A switched-capacitor (SC) circuit was used, in which the current rises gradually for each discharge. The discharge pulse duration was defined as the interval during which the current exceeds 60% of its local peak, capturing the effective energy delivery window.
Discharge events were flagged whenever this 60% threshold was crossed. For each event, the start time, average voltage, average current, discharge duration, and inter-discharge delay were computed. A schematic of the event detection methodology is shown in Figure 2, and classification criteria are provided in Table 2.
In addition to the standard discharge categories established in previous studies [20,25], two new classes are introduced: Unstable Sparks (USs) and Secondary Discharges (SDs). These capture events with pulse-off durations shorter than the nominal off-time, a common feature in circuits with continuously applied voltage and pulsed current. This categorization was necessary, as a substantial proportion of discharges were found to occur under these conditions as seen in Figure A1.
Table 2. Key conditions for the classification of detected discharges.
Table 2. Key conditions for the classification of detected discharges.
ClassSymbolKey Conditions
Short circuitSC V < 0.01 V o
Clean SparksSP V > 0.01 V o ; I > 0.75 I p ; 0.9 T on T 1.1 T on ;
Delay T off
Transient ArcsTA V > 0.01 V o ; 1.1 T on > T 1.4 T on
ArcsAR V > 0.01 V o ; T > 1.4 T on
Unstable SparkUSSame as SP but Delay < T off
Partial SparksPSSame as SP but I < 0.75 I p
Secondary DischargesSDAll other discharges not matching the above categories
Where V o , I p , T o n , T o f f refer to open circuit voltage, peak current, pulse on duration, and pulse off duration, respectively.

2.2. Experimental Design and Optimization

2.2.1. Design of Experiments

Two sets of experiments were conducted to evaluate the effect of tool rotation in EDM. The first was a parameter optimization experiment to establish baseline machining performance, followed by the micro through-hole drilling of tungsten carbide to investigate the influence of different rotation rates. The optimization experiments were conducted under lower settings of the transistor–resistor circuit, representing the semi-finish machining region with discharge energy [1–10 mJ]. Informed by the prior literature [24] and manufacturer recommendations to reduce tool wear, short and frequent pulses with a gradual power rise were applied. To ensure adequate resolution in waveform acquisition, a minimum pulse duration of 4 μ s (8 samples) was maintained. Subsequently, rotation evaluation experiments were carried out by machining a tungsten carbide plate of thickness 1 mm and varying rotation rates from 1000 to 10,000 RPM. In addition to the standard experiments under fixed rotation rates, two dynamic test cases were introduced to evaluate the model’s robustness under time-varying rotation rates. These test cases simulate practical scenarios with varying rotation rates. They were excluded from training and used solely for independent validation. The rotation rates for the two test cases are defined as
T e s t 1 = 1000 + 6 × T i m e s R P M
T e s t 2 = 4000 + 4.45 × T i m e s R P M

2.2.2. Taguchi–Grey Optimization

The Taguchi method was employed to determine optimal machining parameters within defined experimental constraints. Five parameters—open circuit voltage ( V o ), peak discharge current ( I p ), feed rate (f), pulse-on duration ( T o n ), and duty ratio ( D R )—were each evaluated at four levels using an L16 orthogonal array as shown in Table 3. Blind holes of 200 μ m were machined at a rotation rate of 2000 RPM.
Performance evaluation was categorized into three domains: material removal rate (MRR), surface roughness (Sa and Sz), and profile accuracy, specifically, machining depth (d) and diametric overcut (DOC). Each output metric had a distinct optimization goal: maximizing MRR, minimizing surface roughness, and achieving dimensional accuracy in profile features. To address the multi-objective nature of the problem, the Grey relational analysis (GRA) method was adopted. The procedure includes (1) the normalization of data, (2) the computation of Grey relational coefficients (GRC), and (3) ranking based on Grey relational grade (GRG). Based on the optimization objective, one of three normalization formulas was used: smaller-the-better, larger-the-better, or nominal-the-best (Equations (3)–(5)). The GRC was calculated using Equation (6), and the GRG using Equation (7). The notation was simplified for clarity but remained consistent with standard GRA formulations [26,27]:
n i k = max x i k x i k max x i k min x i k
n i k = x i k min x i k max x i k min x i k
n i k = 1 x i k o b j ( k ) max x i ( k ) o b j ( k )
where x i k are the values of output k for experiment ID i, and o b j k is the goal value of output k:
G R C i k = Δ m i n + ζ · Δ m a x Δ i k + ζ · Δ m a x
where Δ i k = x i k n i k is the deviation of the sequence. The distinguishing coefficient ζ was set to 0.5, a commonly used value in the literature, ensuring moderate sensitivity in the GRC calculation:
G R G i = k = 1 n β k G R C i k
To balance machining objectives, the five responses were grouped into three categories: machining efficiency (MRR), surface quality (Sa, Sz), and profile accuracy (d, DOC). Equal weight was applied to each category when calculating the GRG, aligning with the study’s goal of balanced optimization.

2.2.3. Regression-Based Parameter Analysis

The empirical relationships between input (X) parameter and output (Y) metrics were further explored through regression modeling. Both linear regression (LR) and non-linear ensemble models, Random Forest (RF) and Extreme Gradient Boosting (XGB), were implemented using the scikit-learn Python library. For linear regression, which is sensitive to multicollinearity, features with a variance inflation factor (VIF) greater than 5 were iteratively removed. To enhance model performance, backward sequential feature selection was employed to identify the most relevant variables. The objective was to retain the maximum number of features while achieving high performance, defined by R 2 > 0.85 and MAPE < 20 % .
For the non-linear RF and XGB models (as described in [28]), which are inherently robust to multicollinearity, no VIF filtering was applied. A train–test split ratio of 80:20 was used, unless a predefined test set was available.
These regression models were not intended solely for high-accuracy prediction but were used to evaluate the nature of relationships, linear or non-linear, between input parameters and output metrics, and to identify key influencing variables. In cases where the regression models failed to meet the performance thresholds, a correlation analysis was conducted. The Pearson correlation coefficient between two variables x and y is given by Equation (8):
C o r r x , y = C o v x , y σ x σ y

2.3. Labeling and Predictive Modeling

2.3.1. End-of-Machining (EOM) Detection

Following data preparation, we first developed a model to detect the End-of-Machining (EOM) phase. This was essential to isolate the effective machining period from the chaotic breakthrough or termination phases, which often introduce labeling noise. The EOM phase is characterized by a decaying discharge signals: highly oscillatory waveforms with gradually diminishing amplitude as illustrated in Figure 3a. To detect this transition, Fast Fourier Transform (FFT) was applied to the total discharge signal, leveraging the observation that EOM regions exhibit significantly lower energy in frequency bands [0.08–0.12 Hz]. A preliminary manual annotation of the EOM onset was made via visual inspection. This initial label was then used to train a Random Forest classifier on features such as FFT band energy Figure 3b and the rolling mean of discharge count over a 25 s window Figure 3c.
The trained model enabled the automatic detection and segmentation of machining and EOM phases, ensuring that subsequent analysis focused only on the machining regime.

2.3.2. Instability Labeling Strategy

Within the machining phase, the term instability may refer to undesirable conditions such as frequent tool oscillations, inefficient material removal, short circuits, or erratic discharge behavior. For effective machine learning-based classification, it is essential to establish a consistent and physically meaningful definition of instability that remains valid across varying rotation rates.
Based on exploratory analysis, two categories of instability were identified: (1) quantitative instability, characterized by a significant deviation in the total number of discharges from typical machining behavior, and (2) qualitative instability, involving compositional shifts in discharge events, such as increased arcing or secondary discharges. This study focuses on the former, quantitative instability hereafter referred to as “unstable machining”.
To define instability in a rotation-invariant manner, the total discharge count distribution was analyzed across all machining batches (1 s each). Batches falling below the 10th percentile were labeled as under-machined, while those exceeding the 85th percentile were labeled as over-machined as seen in Figure 4. These thresholds, selected through iterative testing, ensured a balance between class coverage and label separability. The resulting binary labels: unstable (under- or over-machined) and stable, served as the ground truth for supervised learning.
To classify stable and unstable machining batches based on the defined labels, we used two commonly applied tree-based ensemble learning algorithms: Random Forest (RF) [29,30] and Extreme Gradient Boosting (XGBoost or XGB) [31]. RF builds multiple decision trees using randomly sampled data and features, which helps improve robustness and reduce overfitting. XGBoost, on the other hand, builds trees sequentially, with each tree aiming to correct errors made by the previous ones. These models are often used for structured data classification tasks and are known for their performance in practical applications such as the detection of defects [32,33] or process monitoring in manufacturing [34].
In this study, we applied both models to predict machining stability at the batch level, using features engineered from event statistics and signal-based indicators.

2.3.3. Supervised Classification

Two types of features were extracted for model training. The first set comprises raw waveform derived features, including mean, standard deviation, maximum, and minimum values of voltage, current, discharge duration, inter-discharge delay, and gap, calculated over 1 s batches.
The second set includes classified discharge features, such as the count of each discharge type, 10 s rolling averages, and temporal derivatives. While percentage-based features were initially explored, they were excluded to avoid data leakage, as they directly depend on the total discharge count used for labeling.
In total, over 20 features were considered. To address the potential high dimensionality and multicollinearity, an initial Random Forest model was used to evaluate feature importance. Features with low SHAP (SHapley Additive Explanations) scores and high variance inflation (VIF > 10) were removed, and the top 15 features were selected. Additionally, to address the issue to the class imbalance (unstable batches comprising 25%), the Synthetic Minority Oversampling Technique (SMOTE) was applied during training.
The two classifiers, RF and XGBoost, were evaluated. Hyperparameter tuning was performed using grid search. A conservative decision threshold of 0.4 was adopted to prioritize recall over precision, given the application’s focus on detecting potentially unstable conditions where false negatives are more critical than false positives. The complete machine learning workflow is outlined in Figure 5.
The overall proposed framework to evaluate the effect of rotation rate is shown in Figure 6.

3. Results and Discussion

3.1. Parameter Optimization Using Taguchi–Grey and Regression Models

The summary of performance metrics and corresponding Grey relational grades (GRG) for each experimental condition is shown in Table 4. Experiments 7 and 8 exhibited the highest GRG values. Subsequent SEM-based surface inspections, as seen in Figure 7, revealed minimal surface defects such as micro-cracks in these samples, validating the selection. Experiment 7 was ultimately chosen for rotation rate evaluation experiments. The table for data normalization and Grey relational coefficients is shown in Table A1.
Based on the methodologies described in Section 2.2.3, linear regression models were evaluated using R 2 and MAPE as shown in Table 5. Only MRR and Sa achieved the target thresholds of R 2 > 0.85 and MAPE < 20% and were considered suitable for interpretation. The MRR showed strong dependence on peak current and pulse-on duration (Equation (9)). For Sa, as seen in Equation (10), lower voltage, shorter pulse durations, and higher feed rates were found to be favorable for achieving better surface quality. These findings align with prior studies on the semi-finish EDM of hard materials [35,36,37].
M R R = 6.471 + 1.717 I p + 0.065 T o n + 0.062 D R
S a = 0.017 + 0.008 T o n + 0.011 V p 0.002 f

3.2. Exploratory Modeling and Feature Selection for Bad Condition Labeling

To evaluate machining performance across different rotation rates, an evaluation study was conducted, summarized in Table 6. Since the material removal rate for through-holes is directly influenced by both top and bottom diameters, machining time (Mach.Time) was considered as an independent metric. Additionally, as illustrated in Figure 8d,e, inlet chipping was observed for some conditions, prompting the inclusion of roundness metrics (Top Rou, Bot Rou). Three distinct temporal surfaces (B1, B2, B3) were observed in the hole cross-sections (Figure 8b,e), and were therefore excluded from quantitative analysis. Equal weights were assigned to the machining time, diameter, and roundness in the Grey relational grade (GRG) computation.
From the results, the best performance was observed at 1000 and 9000 RPM, which emerged as potential optima. Normalized data and Grey relation coefficients for these conditions are shown in Table A2.
To explore empirical modeling, linear and non-linear regression models were applied using the rotation rate as a sole input variable as seen in Table 7. However, most models yielded negative R 2 scores, indicating they performed worse than simple mean-based prediction. This suggests either insufficient data points or a non-monotonic (i.e., non-consistently increasing or decreasing) relationship between rotation rate and output metrics. We then explored whether including on-machine measurements could improve model performance by incorporating two feature sets: Z1 (raw electrical signals) and Z2 (discharge classifications), as described in Section 2.1.2.
Despite these enhancements, regression models (especially linear ones) still performed poorly. For example, the linear model trained on raw signal features produced an implausibly negative R 2 (e.g., −748 for bottom roundness), indicating poor model generalization and potential issues with input scaling or multicollinearity. While ensemble models (e.g., Random Forests) achieved marginal improvements (e.g., R 2 = 0.69 for machining time), the overall prediction remained weak.
Due to these limitations, the focus shifted from regression modeling to correlation-based analysis. Pearson correlation coefficients were computed both between input features and output metrics ( Z Y ), and among input features themselves ( Z Z ), along with the rotation rate [RR] for classified data as visualized in Figure 9. A correlation threshold of | r | 0.6 was used to denote strong associations.
The findings revealed several key relationships between discharge types and machining outcomes. An increase in weak partial sparks and transient arcs was significantly correlated with longer machining times, suggesting inefficiencies in energy transfer. A higher count of secondary discharges, likely resulting from poor flushing, was associated with enlarged top and bottom diameters, leading to pronounced overcuts. In contrast, clean sparks consistently aligned with improved machining efficiency and reduced top and bottom diameters thereby reducing overcuts, reaffirming their role as desirable discharges.
Interestingly, short circuits also showed negative correlation with overcut (top and bottom diameters). This counterintuitive trend is interpreted as a secondary effect arising from increased clean spark frequency and the suppression of secondary discharges. Despite these insights, extensive multicollinearity among the features substantially weakened the explanatory power of regression-based models.
An important physical insight emerged: increasing the rotation rate tends to raise the frequency of partial sparks and secondary discharges, likely due to increased fluid shear disrupting discharge channels. At the same time, increasing rotation helps break down short circuits more rapidly. In summary, the increased rotation rate increases chaos or entropy within the discharge gap as seen in Figure 9b. These inferences were further supported by correlations derived from raw signal features (Figure A2).
These results underscore the value of time-resolved discharge pattern analysis over aggregate statistics when evaluating the influence of rotation. To reduce feature dimensionality and address multicollinearity among discharge categories, we propose condensing discharge types into two interpretable classification schemes: one based on the discharge timing (henceforth on discharge timing)-derived features (Table 8) and the other based on the impact of the discharge event (Table 9).
This categorization is used in the next stage of our machine learning framework to reduce feature complexity while preserving physical interpretability.

3.3. Supervised Classification Using Machine Learning

The End-of-Machining (EOM) detection model achieved an overall accuracy of 98%, with a precision of 0.85 and recall of 0.89 for detecting the EOM class. The confusion matrix in Table 10 shows that only 22 batches were misclassified as EOM before the actual onset, while the majority of false positives occurred after the true EOM point as seen in Figure 10 (Predicted EOM Phase), indicating the model’s conservative behavior. To avoid premature deactivation in a proposed dynamic control system, a post-EOM misclassification tolerance of 10 batches was adopted. While early false positives could impact control decisions, post-EOM misclassifications are acceptable since control would already be disengaged after detection. This conservative buffer ensures safe and robust labeling in anticipation of future deployment.
The model metrics and global temporal characteristics for the machine learning models in the segmented machining zone are summarized in Table 11 and Figure 11, respectively.
In general, the Extreme Gradient Boosting (XGB) classifier outperformed the Random Forest (RF) classifier in terms of both accuracy, the proportion of correctly predicted batches, and F1-score, which balances precision and recall, making it particularly useful under class imbalance. As shown in Figure 11a, most models achieved high confidence levels (ROC-AUC > 0.9), indicating that small changes in the probability threshold are unlikely to significantly affect classification outcomes.
Additional insights are drawn from the confusion matrices in Figure 11b–d and the batch-level prediction overlays in Figure 12a–c. The model trained on raw electrical signal features exhibits a more sensitive prediction behavior, flagging a larger number of unstable batches, including those with subtle variations in discharge characteristics. This is particularly evident during the early machining periods (Figure 12a). In contrast, models based on discharge timing or impact features (Class 1) produce more conservative predictions, mainly identifying the most severe instances of instability but fail to capture sustained over-machining. Meanwhile, the model using discharge impact based features (Class 2) offers a more balanced prediction across different instability patterns.
This comparison highlights a key trade-off. Raw signal-based models are highly sensitive and computationally efficient due to minimal preprocessing but are also more prone to noise and false positives. Classification-based models, built on features like discharge timing or impact, offer greater physical interpretability and targeted detection, albeit with increased computational effort. For real-time monitoring, the RF model with raw features may be better suited for early anomaly detection. However, for corrective interventions, the discharge classification-based models provide more robust and interpretable predictions.
Given that this study aims to enable adaptive control of tool rotation, the model based on discharge impact features (Class 2) is recommended. While it achieves only moderate accuracy, its consistently high recall ensures the dependable detection of potentially unstable conditions, critical for preventive control, even if it occasionally sacrifices precision.
Additionally, we analyzed the model’s prediction methodology by examining the SHAP values of the five most important features as shown in Figure 13. In the plot, the dot color represents the actual feature value, while the SHAP value indicates the (unitless) magnitude and direction of that feature’s contribution toward predicting instability. In this study, both under-machining and over-machining conditions were collectively labeled as unstable machining. This broad classification can introduce non-monotonic behavior in the relationships between features and predicted outcomes.
Such non-monotonicity was evident in the top raw signal feature, gap mean (Figure 13a), where both low values could correspond to either stable or unstable conditions depending on contextual factors. In contrast, stable machining zones were generally associated with higher current levels. The short delay pulses (D3), despite exhibiting the high feature importance, likely due to its dominance in discharge counts (Figure A1), did not show a strong association with stable machining, as seen in Figure 13, also demonstrating a non-monotonic trend. Meanwhile, category E3, comprising ‘almost spark’ discharges such as Transient Arcs (TAs), Partial Sparks (PSs), and Unstable Sparks (USs), showed a consistently strong association with stable machining, as seen in Figure 13b,c. These observations underscore the importance of discharge type grouping in determining model interpretability and efficiency, and also highlight the potential multicollinearity between discharge categories.
Moreover, while the correlation analysis shows only a weak positive relationship between short circuits and sparks in Figure 9b, the SHAP summary from the classification model reveals a strong opposing effect; stable machining is associated with a higher occurrence of sparks and a lower presence of short circuits (D1, E1 and D4, E4).
Overall, although clear monotonic trends were not consistently observed, the SHAP analysis provided valuable insights into the model’s internal decision making and the relative importance of individual features in identifying machining instability.

3.4. Correction Strategy Exploration

Based on the prediction model derived above, unstable machining zones were re-predicted for different tool rotation rates. Figure 14a shows the aggregate count of discharges for each spark type in stable and unstable machining phases. It was observed that during instability, there was a significant drop in the total number of discharges. However, there was a noticeable increase in secondary discharges, which are likely responsible for over-machining.
To better understand the role of rotation, the counts of different spark types for each rotation rate were normalized with respect to the 1000 RPM baseline. As shown in Figure 14c,d, transient arcs and arcs remain relatively constant (within 10% variation) across all rotation rates, indicating that long duration discharges are not significantly influenced by rotation. Two key observations emerged: First, increasing rotation rate was found to reduce short circuits by up to 40% during stable machining, while it remained unchanged during unstable machining. Contrarily, while clean spark counts decreased significantly during instability at higher rotation rates (more than 45%), they remained unaffected during stable phases. Furthermore, secondary discharges increased at higher rotation rates under both stable and unstable conditions, likely due to fluid shear that disrupted the discharge channels.
These contrasting behaviors help reconcile the earlier discrepancy between correlation and SHAP-based analysis: while short circuits and sparks showed a weak positive correlation overall, their opposing trends across stable and unstable phases at different rotation rates led to compensating effects in the aggregate data.
From these findings, we infer that during stable machining, increasing the rotation rate can suppress short circuits, whereas during unstable machining, a higher rotation rate may transform effective clean sparks into secondary discharges.
This insight forms the basis for a dynamic rotation control strategy: increase rotation rate during stable phases to improve flushing efficiency, and decrease it upon detecting instability to preserve spark effectiveness. Moreover, Figure 14b reveals that temporal evolution of instability occurs across all rotation rates, suggesting time-dependent patterns in machining behavior. Such trends are difficult to capture using static models like Random Forests and XGBoost. Future work could employ sequence-based models, such as recurrent neural networks (RNNs), to learn and predict these evolving patterns, potentially enabling earlier and more adaptive control.
Violin plots in Figure 15 show that higher rotation rates are associated with longer tailed distributions in both stable and unstable phase durations. This suggests that once a particular phase is established at a higher rotation rate, it tends to persist for a longer duration. In contrast, lower rotation rates exhibit more compact distributions, indicative of shorter lived phases. This observation highlights the potential of rotation rate as a means to modulate machining phase stability.
Based on these two analyses, we propose a simple framework for real-time control. During machining, if stable conditions persist, increase the rotation incrementally every 4 s (the median duration of stable phases). If instability persists beyond 2 s, decrease the rotation rate sharply to achieve a more stable machining condition.
However, this study also recognizes certain limitations. The proposed control strategy is based on a limited number of observed rotation transitions and should be regarded as preliminary. Moreover, the predictive modeling employed in this work operates on a batch size of 1 s, which is comparable to the proposed control adjustment timescale of 2 s. This temporal proximity may limit the responsiveness of the current model in capturing finer grained transitions. To overcome this, future investigations should explore time-sequence modeling approaches, such as recurrent neural networks (RNNs), which can identify evolving patterns at subsecond resolutions. These models may enable the earlier detection of instability onset and better accommodate time delays introduced by data acquisition, feature computation, prediction, and spindle actuation delays. Additionally, since this study focused exclusively on ultrafine-grained tungsten carbide, the applicability of the proposed models and control strategies to other electrode or workpiece materials remains to be validated.

4. Conclusions

This study developed a multi-level framework to evaluate the effect of tool rotation in electric discharge machining (EDM) of tungsten carbide. Parameter optimization, tool rotation effect clarification, machining stability prediction, and feature importance analysis were performed. Additionally, a feedback informed framework for adaptive control was explored. The key findings are summarized as follows:
  • Taguchi–Grey relational analysis successfully identified optimal parameter combinations for EDM in the semi-finish machining region with discharge energy [1–10 mJ]. Regression models validated strong relationships between electrical parameters and machining performance for material removal rate and surface roughness. However, regression approaches failed to capture the complex (non-monotonic) effects of tool rotation rates on machining outcomes, motivating the shift toward feature based classification.
  • Three types of features: raw waveform, discharge timing based, and discharge impact based were used to train Random Forest and XGBoost classifiers. The best-performing model (RF on raw features) achieved 88.5% accuracy and over 90% recall. While raw features offered high sensitivity, discharge impact-based classification yielded better interpretability through SHAP analysis, despite the non-monotonic trends driven by the unified labeling of under- and over-machining as instability.
  • SHAP analysis revealed that the relationship between short circuits and sparks is context-dependent. Although the global correlation matrix showed weak association, phase-specific analysis and SHAP plots highlighted their opposing roles in stability. This dual layer interpretation illustrates the strength of our framework in both predictive accuracy (downstream) and explaining aggregate trends through localized behavior (upstream).
  • Tool rotation significantly influenced the discharge behavior. During stable machining, increasing the rotation rate from 1000 to 9000 RPM reduced short circuits by over 40%, while clean sparks remained consistent. However, under unstable conditions, higher rotation diminished spark counts and increased secondary discharges, indicating a shift in process dynamics.
  • Higher rotation rates also resulted in longer stable and unstable phase durations (e.g., maximum stable phase duration increased from 38 s at 1000 RPM to 264 s at 9000 RPM). Based on these temporal dynamics, a control strategy was proposed: incrementally increase rotation every 4 s during extended stability, and reduce it within 2 s of instability detection, to extend productive phases and suppress deterioration.
The proposed framework is particularly applicable to deep hole EDM for glass molding dies, where improved surface integrity, dimensional consistency, and reduced electrode wear are essential. By dynamically controlling the tool rotation based on real-time discharge monitoring, this methodology supports the fabrication of cleaner, deeper holes in tungsten carbide, enhancing mold quality and service life.

Author Contributions

S.D.G.: Conceptualization, methodology, software, validation, formal analysis, investigation, data curation, original draft preparation, visualization. L.P.B.: Conceptualization, software, validation, investigation, data curation, visualization. J.Y.: Validation, resources, review and editing, supervision. 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 on request.

Conflicts of Interest

The authors declare no conflicts of interest.

Appendix A

Figure A1. Distribution and average inter-discharge delay for each discharge type.
Figure A1. Distribution and average inter-discharge delay for each discharge type.
Jmmp 09 00187 g0a1
Figure A2. Pearson correlation coefficient heatmap for (a) input features vs. output metrics and (b) within input features for raw electrical features.
Figure A2. Pearson correlation coefficient heatmap for (a) input features vs. output metrics and (b) within input features for raw electrical features.
Jmmp 09 00187 g0a2
Table A1. Summary of normalized values and Grey relational coefficients (GRCs) for each parameter evaluation experiment.
Table A1. Summary of normalized values and Grey relational coefficients (GRCs) for each parameter evaluation experiment.
E.IDNormalized ResultsGrey Relational Coefficients
MRRSaSzDOCdMRRSaSzDOCd
10.040.960.910.800.800.340.930.850.710.76
20.250.870.640.660.970.400.800.580.591.00
30.790.710.590.460.670.710.630.550.480.64
40.870.320.000.100.090.800.420.330.360.38
50.520.670.540.310.000.510.610.520.420.36
60.130.370.250.330.540.360.440.400.430.56
71.000.840.720.900.721.000.750.640.840.69
80.311.001.001.000.900.421.001.001.000.88
90.170.000.060.000.790.380.330.350.330.75
100.120.530.340.680.900.360.520.430.610.89
110.520.760.650.560.860.510.680.590.530.83
120.740.810.660.700.810.660.720.590.630.77
130.330.700.480.690.730.430.620.490.620.69
140.670.770.540.850.650.600.690.520.760.62
150.000.280.110.610.880.330.410.360.560.85
160.020.550.500.410.410.340.520.500.460.49
Table A2. Summary of normalized values and Grey relational coefficients (GRCs) for each parameter evaluation experiment.
Table A2. Summary of normalized values and Grey relational coefficients (GRCs) for each parameter evaluation experiment.
E.IDNormalized ResultsGrey Relational Coefficients
Mach. TimeTop DiaBot DiaTop Rou.Bot Rou.Mach. TimeTop DiaBot DiaTop Rou.Bot Rou.
10.420.930.180.130.970.460.880.380.360.94
20.450.370.170.010.850.480.440.380.340.77
30.090.350.000.190.840.350.430.330.380.76
40.360.240.750.110.000.440.400.670.360.33
50.051.000.301.000.520.351.000.421.000.51
60.480.040.360.160.980.490.340.440.370.97
70.070.190.540.030.460.350.380.520.340.48
80.250.100.830.000.300.400.360.750.330.42
91.000.001.000.310.111.000.331.000.420.36
100.000.510.370.211.000.330.510.440.391.00

References

  1. Kunieda, M.; Lauwers, B.; Rajurkar, K.; Schumacher, B. Advancing EDM through Fundamental Insight into the Process. CIRP Ann. 2005, 54, 64–87. [Google Scholar] [CrossRef]
  2. Karim, M.; Jahan, M. Electrical Discharge Machining Technologies in the Aerospace Industry. In Modern Manufacturing Processes for Aircraft Materials; Elsevier: Amsterdam, The Netherlands, 2024; pp. 171–226. [Google Scholar] [CrossRef]
  3. Akhai, S. A Review on Optimizations in μ-EDM Machining of the Biomedical Material Ti6Al4V Using the Taguchi Method: Recent Advances Since 2020. In Latest Trends in Engineering and Technology; CRC Press: Boca Raton, FL, USA, 2024; pp. 395–402. [Google Scholar]
  4. Al-Amin, M.; Abdul-Rani, A.M.; Danish, M.; Rubaiee, S.; Mahfouz, A.b.; Thompson, H.M.; Ali, S.; Unune, D.R.; Sulaiman, M.H. Investigation of Coatings, Corrosion and Wear Characteristics of Machined Biomaterials through Hydroxyapatite Mixed-EDM Process: A Review. Materials 2021, 14, 3597. [Google Scholar] [CrossRef] [PubMed]
  5. Titu, A.M.; Pop, A.B. Enhancing EDM Productivity for Plastic Injection Mold Manufacturing: An Experimental Optimization Study. Polymers 2024, 16, 3019. [Google Scholar] [CrossRef]
  6. Kitada, R.; Wang, Q.; Tsuetani, S.I.; Okada, A. Influence of surface roughness of die sinking EDM on mold releasability in compression molding of thermosetting phenol resin. Procedia CIRP 2022, 113, 238–243. [Google Scholar] [CrossRef]
  7. Yan, J.; Watanabe, K.; Aoyama, T. Micro-Electrical Discharge Machining of Polycrystalline Diamond Using Rotary Cupronickel Electrode. CIRP Ann. 2014, 63, 209–212. [Google Scholar] [CrossRef]
  8. Sawant, S.N.; Patil, S.K.; Unune, D.R.; Nazare, P.; Wojciechowski, S. Effect of Copper, Tungsten Copper and Tungsten Carbide Tools on Micro-Electric Discharge Drilling of Ti–6Al–4V Alloy. J. Mater. Res. Technol. 2023, 24, 4242–4257. [Google Scholar] [CrossRef]
  9. Dwivedi, A.P.; Choudhury, S.K. Increasing the Performance of EDM Process Using Tool Rotation Methodology for Machining AISI D3 Steel. Procedia CIRP 2016, 46, 131–134. [Google Scholar] [CrossRef]
  10. Feng, G.; Yang, X.; Chi, G. Experimental and Simulation Study on Micro Hole Machining in EDM with High-Speed Tool Electrode Rotation. Int. J. Adv. Manuf. Technol. 2019, 101, 367–375. [Google Scholar] [CrossRef]
  11. Huang, Y.; Zhang, Q.; Xing, Q.; Yao, Z.; Li, J. Effects of Electrode Rotational Speed on Processing Performances of AISI 304 in Micro-Electrical Discharge Machining. Int. J. Adv. Manuf. Technol. 2019, 105, 1665–1674. [Google Scholar] [CrossRef]
  12. Wang, C.C.; Yan, B.H. Blind-Hole Drilling of Al2O3/6061Al Composite Using Rotary Electro-Discharge Machining. J. Mater. Process. Technol. 2000, 102, 90–102. [Google Scholar] [CrossRef]
  13. Kalyanasundaram, V.; Virwani, K.; Spearot, D.; Malshe, A.; Rajurkar, K. Understanding Behavior of Machining Interface and Dielectric Molecular Medium in Nanoscale Electro-Machining. CIRP Ann. 2008, 57, 199–202. [Google Scholar] [CrossRef]
  14. Nguyen, P.H.; T, M.; Pham, D.V.; Shirguppikar, S.; Nguyen, T.N.; Nguyen, T.C.; Nguyen, L.T. Multi-Objective Optimization of Micro EDM Using TOPSIS Method with Tungsten Carbide Electrode. Sādhanā 2022, 47, 133. [Google Scholar] [CrossRef]
  15. Gangil, M.; Pradhan, M. Modeling and Optimization of Electrical Discharge Machining Process Using RSM: A Review. Mater. Today Proc. 2017, 4, 1752–1761. [Google Scholar] [CrossRef]
  16. Palanisamy, D.; Manikandan, N.; Ramesh, R.; Kathirvelan, M.; Arulkirubakaran, D. Machinability Analysis and Optimization of Wire-EDM Textured Conventional Tungsten Carbide Inserts in Machining of 17–4 PH Stainless Steel. Mater. Today Proc. 2021, 39, 359–367. [Google Scholar] [CrossRef]
  17. Alduroobi, A.A.A.; Ubaid, A.M.; Tawfiq, M.A.; Elias, R.R. Wire EDM Process Optimization for Machining AISI 1045 Steel by Use of Taguchi Method, Artificial Neural Network and Analysis of Variances. Int. J. Syst. Assur. Eng. Manag. 2020, 11, 1314–1338. [Google Scholar] [CrossRef]
  18. Rana, M.; Sharma, V.K.; Singh, T.; Singh, K.; Aggarwal, P. Multiresponse Optimization of EDM Parameters for Tungsten Carbide Using TGRA. Mater. Today Proc. 2022, 71, 414–419. [Google Scholar] [CrossRef]
  19. Yuvaraj, T.; Tamang, S.K.; Arivazhagan, R.; Sri, M.N.S. Enhancing EDM Performance on TiN-Si3N4 Using a Hybrid Computation Intelligence Algorithm (Grey-ANFIS). J. Aust. Ceram. Soc. 2024, 60, 363–376. [Google Scholar] [CrossRef]
  20. Raza, S.; Nadda, R.; Nirala, C.K. Real-Time Data Acquisition and Discharge Pulse Analysis in Controlled RC Circuit Based Micro-EDM. Microsyst. Technol. 2023, 29, 359–376. [Google Scholar] [CrossRef]
  21. Xie, W.; Zhang, T.; Yang, X. Study on Discharge State Detection of Micro-EDM Based on Wavelet Transform Method. Procedia CIRP 2022, 113, 70–74. [Google Scholar] [CrossRef]
  22. Abhilash, P.M.; Chakradhar, D. Wire EDM Failure Prediction and Process Control Based on Sensor Fusion and Pulse Train Analysis. Int. J. Adv. Manuf. Technol. 2022, 118, 1453–1467. [Google Scholar] [CrossRef]
  23. Xia, W.; Li, Z.; Zhang, Y.; Zhao, W. Breakout Detection for Fast EDM Drilling by Classification of Machining State Graphs. Int. J. Adv. Manuf. Technol. 2020, 106, 1645–1656. [Google Scholar] [CrossRef]
  24. Jahan, M.; Rahman, M.; Wong, Y. A Review on the Conventional and Micro-Electrodischarge Machining of Tungsten Carbide. Int. J. Mach. Tools Manuf. 2011, 51, 837–858. [Google Scholar] [CrossRef]
  25. Kunieda, M.; Kojima, H.; Kinoshita, N. On-Line Detection of EDM Spark Locations by Multiple Connection of Branched Electric Wires. CIRP Ann. 1990, 39, 171–174. [Google Scholar] [CrossRef]
  26. Deng, J.L. Introduction to Grey System Theory. J. Grey Syst. 1989, 1, 1–24. [Google Scholar]
  27. Mathew Paulson, D.; Saif, M.; Zishan, M. Optimization of Wire-EDM Process of Titanium Alloy-Grade 5 Using Taguchi’s Method and Grey Relational Analysis. Mater. Today Proc. 2023, 72, 144–153. [Google Scholar] [CrossRef]
  28. Lindner, T.; Puck, J.; Verbeke, A. Beyond Addressing Multicollinearity: Robust Quantitative Analysis and Machine Learning in International Business Research. J. Int. Bus. Stud. 2022, 53, 1307–1314. [Google Scholar] [CrossRef]
  29. Khan, I.A.; Birkhofer, H.; Kunz, D.; Lukas, D.; Ploshikhin, V. A Random Forest Classifier for Anomaly Detection in Laser-Powder Bed Fusion Using Optical Monitoring. Materials 2023, 16, 6470. [Google Scholar] [CrossRef]
  30. Mafakheri Bashmagh, N.; Lin, W.; Ishitsuka, K. Application of Supervised Machine Learning Classification Models to Identify Borehole Breakouts in Carbonate Reservoirs Based on Conventional Log Data. Int. J. JSRM 2024, 20, 240101. [Google Scholar] [CrossRef]
  31. Le, T.T.H.; Oktian, Y.E.; Kim, H. XGBoost for Imbalanced Multiclass Classification-Based Industrial Internet of Things Intrusion Detection Systems. Sustainability 2022, 14, 8707. [Google Scholar] [CrossRef]
  32. Kao, I.H.; Hsu, Y.W.; Lai, Y.H.; Perng, J.W. Laser Cladding Quality Monitoring Using Coaxial Image Based on Machine Learning. IEEE Trans. Instrum. Meas. 2020, 69, 2868–2880. [Google Scholar] [CrossRef]
  33. Sing, S.L.; Kuo, C.N.; Shih, C.T.; Ho, C.C.; Chua, C.K. Perspectives of using machine learning in laser powder bed fusion for metal additive manufacturing. Virtual Phys. Prototyp. 2021, 16, 372–386. [Google Scholar] [CrossRef]
  34. Liu, Z.; Guo, Y. A hybrid approach to integrate machine learning and process mechanics for the prediction of specific cutting energy. CIRP Ann. 2018, 67, 57–60. [Google Scholar] [CrossRef]
  35. Praveen, N.; Siddesh Kumar, N.; Prasad, C.; Giri, J.; Albaijan, I.; Mallik, U.; Sathish, T. Effect of Pulse Time (Ton), Pause Time (Toff), Peak Current (Ip) on MRR and Surface Roughness of Cu–Al–Mn Ternary Shape Memory Alloy Using Wire EDM. J. Mater. Res. Technol. 2024, 30, 1843–1851. [Google Scholar] [CrossRef]
  36. Razeghiyadaki, A.; Molardi, C.; Talamona, D.; Perveen, A. Modeling of Material Removal Rate and Surface Roughness Generated during Electro-Discharge Machining. Machines 2019, 7, 47. [Google Scholar] [CrossRef]
  37. Abbas, J.K.; Aghdeab, S.H.; Al-Habaibeh, A. Investigating the Effect of Process Parameters on Surface Roughness of AISI M2 Steel in EDM Using Deep Learning Neural Networks. Int. J. Adv. Manuf. Technol. 2025, 137, 251–262. [Google Scholar] [CrossRef]
Figure 1. Experimental setup.
Figure 1. Experimental setup.
Jmmp 09 00187 g001
Figure 2. Discharge detection schematic.
Figure 2. Discharge detection schematic.
Jmmp 09 00187 g002
Figure 3. (a) Total discharges signal in the stable and EOM phases, (b) FFT energy in frequency bands [0.08–0.12 Hz], and (c) rolling mean of discharge count over a 10 s window.
Figure 3. (a) Total discharges signal in the stable and EOM phases, (b) FFT energy in frequency bands [0.08–0.12 Hz], and (c) rolling mean of discharge count over a 10 s window.
Jmmp 09 00187 g003
Figure 4. Total discharge counts and binary labels for under- and over-machined batches.
Figure 4. Total discharge counts and binary labels for under- and over-machined batches.
Jmmp 09 00187 g004
Figure 5. Workflow for instability detection and supervised classification.
Figure 5. Workflow for instability detection and supervised classification.
Jmmp 09 00187 g005
Figure 6. Proposed framework to evaluate the effect of rotation rate.
Figure 6. Proposed framework to evaluate the effect of rotation rate.
Jmmp 09 00187 g006
Figure 7. SEM of machined hole for experiments 7 (a,c) and 8 (b,d).
Figure 7. SEM of machined hole for experiments 7 (a,c) and 8 (b,d).
Jmmp 09 00187 g007
Figure 8. SEM of the top, cross-section and bottom surface of the machined hole for Experiment 7 (ac) and Experiment 8 (df), respectively.
Figure 8. SEM of the top, cross-section and bottom surface of the machined hole for Experiment 7 (ac) and Experiment 8 (df), respectively.
Jmmp 09 00187 g008
Figure 9. Pearson correlation coefficient heatmap for (a) input features vs. output metrics and (b) within input features for classified features.
Figure 9. Pearson correlation coefficient heatmap for (a) input features vs. output metrics and (b) within input features for classified features.
Jmmp 09 00187 g009
Figure 10. Candidates and predicted true end-of-machining batches.
Figure 10. Candidates and predicted true end-of-machining batches.
Jmmp 09 00187 g010
Figure 11. (a) AUC-ROC for different feature types and classifiers at probability threshold = 0.4. (bd) Confusion matrix for different feature types and classification models.
Figure 11. (a) AUC-ROC for different feature types and classifiers at probability threshold = 0.4. (bd) Confusion matrix for different feature types and classification models.
Jmmp 09 00187 g011
Figure 12. Predicted unstable batches from the best-performing models using (a) raw signal, (b) discharge timing, and (c) discharge impact features. Horizontal lines indicate predefined unstable zones: blue for under-machining (<10th percentile) and red for over-machining (>85th percentile) based on total event count, used to compare model performance.
Figure 12. Predicted unstable batches from the best-performing models using (a) raw signal, (b) discharge timing, and (c) discharge impact features. Horizontal lines indicate predefined unstable zones: blue for under-machining (<10th percentile) and red for over-machining (>85th percentile) based on total event count, used to compare model performance.
Jmmp 09 00187 g012
Figure 13. SHAP summary plot for 5 most important features for XGB models on (a) raw signal features, (b) discharge timing features, and (c) discharge impact features.
Figure 13. SHAP summary plot for 5 most important features for XGB models on (a) raw signal features, (b) discharge timing features, and (c) discharge impact features.
Jmmp 09 00187 g013
Figure 14. (a) Count of discharges for each spark type in stable and unstable machining phases. (b) Cumulative counts of rotation rate unstable at each time step, (c,d) normalized count of discharges for each spark type in stable and unstable machining phases at different rotation rates.
Figure 14. (a) Count of discharges for each spark type in stable and unstable machining phases. (b) Cumulative counts of rotation rate unstable at each time step, (c,d) normalized count of discharges for each spark type in stable and unstable machining phases at different rotation rates.
Jmmp 09 00187 g014
Figure 15. Violin plots of stable and unstable phase durations at different rotation rates.
Figure 15. Violin plots of stable and unstable phase durations at different rotation rates.
Jmmp 09 00187 g015
Table 1. Material properties.
Table 1. Material properties.
MaterialHardness [HRA]Tensile Strength [GPa]Toughness [GPa]
WC-Co (KM10)91.53.411.2
Table 3. Orthogonal array for Taguchi–Grey optimization.
Table 3. Orthogonal array for Taguchi–Grey optimization.
E.IDVoltage [V]Feed Rate [μm/min]Peak Current [A]Pulse On [μs]Duty Ratio
18060140.2
2801201.580.3
3801802160.4
4802402.5320.5
5110601.5160.5
61101201320.4
71101802.540.3
8110240280.2
9150602320.3
101501202.5160.2
11150180180.5
121502401.540.4
13220602.580.4
14220120240.5
152201801.5320.2
162202401160.3
Table 4. Summary of results and Grey relational grades (GRG) for each parameter evaluation experiment.
Table 4. Summary of results and Grey relational grades (GRG) for each parameter evaluation experiment.
E.IDResultsGRGRank
MRRSaSzDOCd
[μm3/min][μm][μm][μm][μm]
118.740.8815.1423.59184.430.4713
232.231.2122.3526.49197.490.626
366.561.8223.7330.68225.310.625
471.843.2539.3038.17269.970.549
549.231.9424.8933.83276.930.4712
624.253.0732.7833.41235.200.4315
779.901.3420.2521.37221.170.841
835.860.7512.7819.32192.090.742
926.764.4237.7040.34184.150.4414
1024.002.4630.2825.98192.250.5410
1148.991.6121.9528.62189.270.607
1263.411.4521.8225.58214.760.673
1337.431.8626.5825.83220.970.548
1458.891.5724.9422.55227.190.644
1516.073.3836.5127.53209.600.4911
1617.212.4126.0831.76154.300.4316
Table 5. Linear regression results for each target output.
Table 5. Linear regression results for each target output.
TargetR2MAPE
MRR0.86115.970
Sa0.94812.355
Sz0.49618.384
Depth0.17211.635
Overcut0.7718.988
Table 6. Summary of machining metrics.
Table 6. Summary of machining metrics.
Rotation RateMach. TimeTop Dia.Bot Dia.Top Rou.Bot Rou.GRGRank
[RPM][min][μm][μm][μm][μm]
100017.181075.38946.0923.573.920.761
200017.621106.06945.9826.265.810.635
300018.701107.25939.2922.175.920.557
400018.421112.93968.5223.9318.840.538
500018.371071.83950.823.3710.880.683
600017.971123.92953.2322.823.710.644
700019.321116.01960.1425.9711.720.5010
800018.981120.61971.6326.5914.280.529
900016.931126.05978.1719.3417.170.752
10,00019.101098.28953.7921.813.460.606
Table 7. Model R 2 scores for different feature sets.
Table 7. Model R 2 scores for different feature sets.
OutputR2 RotationR2 Signal FeaturesR2 Classified Features
LinRegRFXGBLinRegRFXGBLinRegRFXGB
Mac. Time−20.20−18.27−17.99−58.280.69−0.67−4.080.10−0.22
Top Dia.−0.63−1.81−3.86−9.000.28−0.14−713.80−0.220.00
Bot Dia.0.460.720.92−177.40−0.62−0.15−3141.73−0.74−0.78
Top Rou.−0.83−0.99−1.50−35.220.01−0.43−1080.21−0.46−1.77
Bot Rou.−0.080.470.82−748.46−0.46−0.83−17641.0−1.33−2.25
Table 8. Class 1: based on discharge timing-derived features.
Table 8. Class 1: based on discharge timing-derived features.
CategoryConstituentsDescription
D1SCNon-machining discharges with variable duration
D2AR, TALong-duration discharges; typically indicate overcut or high energy
D3US, SDShort-duration discharges with minimal inter-discharge delay
D4SP, PSSparks with optimal duration and delay, may vary in energy
Table 9. Class 2: based on impact of the discharge event.
Table 9. Class 2: based on impact of the discharge event.
CategoryConstituentsDescription
E1SCDominant failure mode; produces minimal or no material removal
E2AR, SDHigh energy or erratic discharges; increase tool wear or cause interruptions
E3TA, PS, USSpark-like discharges with sub-optimal energy, duration or delay characteristics
E4SPClean sparks; primary contributors to efficient and stable material removal
Table 10. Confusion matrix results for EOM detection.
Table 10. Confusion matrix results for EOM detection.
Predicted: Not EOMPredicted: EOM
Actual: Not EOM225432
Actual: EOM22176
Table 11. Performance metrics for different feature types and classifiers.
Table 11. Performance metrics for different feature types and classifiers.
MetricRaw FeaturesClass 1 FeaturesClass 2 Features
RFXGBRFXGBRFXGB
Precision0.6940.7290.8160.7600.7100.696
Recall0.9070.8580.4480.5440.8850.907
F1-score0.7870.7880.5780.6340.7880.788
Accuracy0.8770.8850.8360.8430.8810.878
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

Gattu, S.D.; Bernardi, L.P.; Yan, J. Investigation of the Effect of Tool Rotation Rate in EDM Drilling of Ultrafine Grain Tungsten Carbide Using Predictive Machine Learning. J. Manuf. Mater. Process. 2025, 9, 187. https://doi.org/10.3390/jmmp9060187

AMA Style

Gattu SD, Bernardi LP, Yan J. Investigation of the Effect of Tool Rotation Rate in EDM Drilling of Ultrafine Grain Tungsten Carbide Using Predictive Machine Learning. Journal of Manufacturing and Materials Processing. 2025; 9(6):187. https://doi.org/10.3390/jmmp9060187

Chicago/Turabian Style

Gattu, Sai Dutta, Lucas Pardo Bernardi, and Jiwang Yan. 2025. "Investigation of the Effect of Tool Rotation Rate in EDM Drilling of Ultrafine Grain Tungsten Carbide Using Predictive Machine Learning" Journal of Manufacturing and Materials Processing 9, no. 6: 187. https://doi.org/10.3390/jmmp9060187

APA Style

Gattu, S. D., Bernardi, L. P., & Yan, J. (2025). Investigation of the Effect of Tool Rotation Rate in EDM Drilling of Ultrafine Grain Tungsten Carbide Using Predictive Machine Learning. Journal of Manufacturing and Materials Processing, 9(6), 187. https://doi.org/10.3390/jmmp9060187

Article Metrics

Back to TopTop