4.1. Introduction to the Datasets
This study introduces an approach to measure the grinding wheel wear and current signals of the machine tool spindle motor in real time, as depicted in
Figure 5. The experiment was finished on surface grinder M7140Y. The selected grinding wheel is a white corundum wheel with a grain size of 46#, which meets the definition of medium grain size according to ISO 6106:2013 [
37], balancing material removal rate and surface quality. This choice is consistent with the recommendations for the coarse grinding of carbon steel in the Machinery’s Handbook [
38]. Its outer diameter is 350 mm, its inner diameter is 127 mm, and the width is 40 mm, a configuration that effectively balances the need for accurate wear measurement with the operational requirements of the grinding process. The workpiece material used is unquenched No. 45 steel, known for its good machinability and moderate mechanical strength, making it a popular choice for manufacturing mechanical parts. The dimensions of the workpiece are 100
18
35 mm. The laser displacement sensor records the grinding wheel wear within a linear range of 10 mm and a resolution of 5 μm. This ensures accurate detection of even minor wear changes, suitable for high-precision grinding monitoring. A current sensor records the current signals during grinding. Its input range is 0–10 A AC, and the output range is 0–3 V DC, capable of handling current fluctuations during grinding and providing reliable signals for wear analysis. A 16-bit data acquisition card with a maximum sampling frequency of 500 kS/s was selected to fulfill the experiment’s need for high-frequency data acquisition. NI LabVIEW 2019 was used for data collection. Given the fast fluctuations in signals during the grinding process, the high sampling frequency ensures precise capture of fine details, ensuring data accuracy and timeliness, particularly for dynamic wear prediction.
Because of the unevenness, the grinding wheel must be statically balanced two times before installation to minimize imbalance and reduce vibration that could affect the accuracy of the wear measurements. According to the DIN 12413 [
39] grinding wheel safety standards, the grinding wheel speed is 1500 r/min, which falls within the safe operating range for the wheel’s diameter (typically 20–35 m/s). This speed ensures both grinding efficiency and heat management, preventing excessive heat accumulation due to excessively high speeds. The depth of cut is 0.015 mm, providing effective material removal while minimizing excessive wheel wear. This is within the recommended range for coarse grinding in ISO 16089 [
40]. The table speed is 50 mm/s, which, in conjunction with the wheel speed and feed rate, ensures smooth and consistent grinding conditions. By appropriately selecting the grinding wheel speed, grinding feed rate, table feed speed, and sensor parameters, the changes in wear can be effectively captured.
After the system setup is completed, since the actual output of the laser displacement sensor may have nonlinear errors, it is necessary to carry out online linear calibration of the laser displacement sensor to ensure that the output of the sensor in the measurement range is linear with the actual distance before carrying out the online detection of the grinding wheel wear amount, to improve the detection accuracy.
The measurement principle of the online detection system is shown in
Figure 6. As can be seen from the figure, the position of sensor A is facing a fixed point on the grinding wheel spindle, and its distance to the grinding wheel spindle is s. Sensor B is installed in the position passing through the centerline of the grinding wheel, and its distance to the centerline of the grinding wheel is h. During the grinding process, with the continuous abrasion of the grinding wheel, the gap between the grinding wheel and the laser sensor increases. Therefore, in the calibration experiment, the grinding wheel wear can be simulated by the upward movement of the grinding wheel bracket. The calibration process is as follows:
(1) As shown in
Figure 6, adjust sensor A and sensor B so that the distance
s and
h are both equal to fixed constant values.
(2) Start the grinding wheel. The number of sampling points for one cycle of grinding wheel rotation is N. When the grinding wheel rotates stably, the data are collected by sensor B, and the average value of the N sampling points is calculated and recorded.
(3) Stop the grinding wheel and manually adjust the grinding wheel bracket upward to increase the reading value of sensor A by , which indicates the amount of wear. At this time, the distance between the grinding wheel and sensor A is .
(4) Restart the grinding wheel. When the grinding wheel rotates stably, sensor B collects data following the method of step (2), and the average value of N sampling points is calculated and recorded.
(5) Repeat steps (3) and (4), and when the distance between the grinding wheel and sensor A is , the corresponding measured value is obtained, and the experiment is continued until the end.
(6) The online calibration process detects grinding wheel wear by analyzing and calculating the sampled data.
To eliminate the effect of simple harmonic vibration caused by the unevenness of the grinding wheel, the product of the number of sampling points and the sampling interval time should be a multiple of the whole cycle of the grinding wheel rotation. The speed of the grinding wheel is
, measured by a tachymeter. The period
T of the grinding wheel is as follows:
The sampling time is set to 10
T to reduce the influence of random errors on the measurement results. The number of sampling points
N is selected to be 600, 800, 1000, and 1200 points. The wear amount of each sampling point is represented by the average value of
N sampling points, and the average value v of the measurement results of 10
T represents the wear amount of this experiment. The measurement results are shown in
Table 1, and the fitting curve is shown in
Figure 7.
Based on the measured data in
Table 1, the linearity of the system can be calculated when different sampling points are used:
From the above calculations and the fitting equations in
Figure 7, it can be seen that the linearity of the fitted curves is 0.28%, 0.21%, 0.20%, and 0.20% and the sensitivities are 0.9967 V/mm, 0.9969 V/mm, 0.9967 V/mm, and 0.9964 V/mm when the number of sampling points is 600, 800, 1000, and 1200, respectively. All are close to 1. This indicates that the system has a good linear relationship between the output and the input and high sensitivity. Therefore, when detecting the wear amount of the grinding wheel, choosing 1000 sampling points can ensure that the system has high linearity and high sensitivity but also has good stability and can obtain a relatively accurate wear amount.
After the linear calibration was completed, to effectively suppress the measurement error caused by mechanical vibration, a special fixture with sealing all around was designed to rigidly fix the laser displacement sensor on the left side of the grinding wheel cover body, away from the coolant nozzle. Further sealing was carried out at the possible gaps in the sensor fixture to prevent the influence of water vapor generated by the high-speed rotation of the grinding wheel on the measurement results. At the same time, to prevent the adverse effects of debris, dust, and coolant splashing generated during the grinding process on the detection accuracy of the laser displacement sensor, a slot was designed between the fixture and the grinding wheel housing, in which a well-elasticized baffle plate was inserted.
When detecting the grinding wheel wear amount online, the number of sampling points is set to 1000, and the sampling time is 10T. The specific operation flow is as follows: insert the stopper after feeding and idle for 10 s after the grinding process is completed. Then, remove the stopper and use the LabVIEW program to carry out online detection of grinding wheel wear. Finally, the stopper is inserted again for grinding processing, and the above operation is repeated to realize the online detection of the grinding wheel wear amount.
The experimental steps after the installation of the grinding wheel are as follows:
(1) Turn on the machine and use a single-point diamond tool to dress the grinding wheel. The total amount of dressing is 0.06 mm.
(2) Each feed is followed by reciprocating grinding three times to complete the grinding process. During each grinding stroke, when the grinding wheel touches the workpiece, the current signal is collected for the first two seconds.
(3) Before each subsequent feed, the change in grinding wheel wear is captured by a laser displacement sensor after the completion of each grinding stroke.
(4) Measure and draw the wear curve of the grinding wheel during grinding; according to the drawn curve, the wear can be more easily understood.
(5) Repeat steps (2), (3), and (4) until the grinding wheel is determined to be dull due to a significant change in wear. Then, gather the current signal and grinding wheel wear data to ensure comprehensive dataset coverage. Current signals and the actual wear can be obtained from the dressing to dulling process.
(6) Repeat steps (1), (2), (3), (4), and (5) to obtain three independent repetitions of the experimental datasets N1, N2, and N3. This approach ensures the reproducibility and reliability of the results, providing more robust data for model predictions.
Wear curves are derived by fitting a fifth-order polynomial during grinding, as illustrated in
Figure 8. This polynomial fitting provides a smooth representation of the wear progression over time. In
Figure 8, the sharp abrasive grains on the surface come into contact with the surface of the workpiece for the first time in 0–11 grinding strokes, resulting in more abrasive grains falling off, a high wear rate, and the grinding wheel being in the early stage of wear. During 11–45 grinding strokes, the grinding wheel enters into a relatively stable working state, the wear rate is relatively stable and low, and the grinding wheel is in the normal wear stage. During 45–60 grinding strokes, the abrasive grains of the grinding wheel gradually become blunted, resulting in a significant decrease in cutting ability, indicating that the grinding wheel has entered the normal wear stage. Blunting and reduced cutting ability result in a significantly higher wear rate, causing the grinding wheel to fail and gradually enter the sharp wear stage. A worn wheel may cause vibration marks and damage to the surface of the workpiece due to continuous friction and the heat generated by the friction, as shown in
Figure 9.
4.5. Discussion
The leave-one-out cross-validation method [
41] can fully use the limited data resources, can improve the model’s generalization ability and assessment accuracy, and is particularly suitable for predicting grinding wheel wear. This study adopted a model integration approach [
35] to enhance prediction performance. Integrating the advantages of different models can reduce the bias and overfitting problems in a single model, improving the overall model performance and generalization ability. The structure and hyperparameters of CBiGRUPE are optimized using Bayesian optimization within a specified search space, yielding the optimal hyperparameters.
A Bayesian optimization approach was used to tune the structure and hyperparameters of the CBiGRUPE model within a specified search space.
Table 7 and
Table 8 present the evaluation metrics for the prediction results using empirical and optimization parameters on each dataset. As shown in
Table 7 and
Table 8, the model with optimized parameters outperforms the one with empirical parameters in both
MAE and
RMSE metrics. Specifically, in dataset N1, the
MAE of the optimized model decreases by 0.078 (from 2.590 to 2.512), and the
RMSE decreases by 0.0101 (from 3.361 to 3.351). Similarly, the N2 and N3 datasets show a similar trend, with the optimized model demonstrating better performance in terms of error reduction. This improvement in prediction accuracy indicates that hyperparameter optimization effectively reduces prediction error and enhances the model’s practical application accuracy.
Regarding model fit, the optimized model generally yields better R2 values. On the N1 dataset, the R2 of the optimized model increases slightly from 0.940 to 0.942. However, the most notable improvement is observed in the N2 dataset, where R2 increases from 0.841 to 0.889. This indicates that the optimized hyperparameters enhance the model’s explanatory power, enabling it to better capture intricate relationships within the datasets.
Overall, the average metrics across all datasets were improved after optimization: MAE decreased by 0.251 (from 3.292 to 3.041), RMSE decreased by 0.516 (from 4.443 to 3.927), and R2 increased by 0.025 (from 0.895 to 0.920).
In conclusion, the CBiGRUPE model with optimized parameters achieves a higher prediction accuracy using empirical parameters in all performance indicators. Hyperparameter optimization reduces prediction error, improves model fit, and enhances generalization. It is crucial for enhancing model performance during machine learning development. Future research should explore advanced optimization strategies to improve prediction model efficiency and accuracy.
Figure 12 shows the prediction results of the CBiGRUPE model after hyperparameter optimization on various datasets, further verifying the model’s reliable fit and robustness. As shown in
Figure 12, the prediction errors remain within a small range, indicating excellent prediction accuracy and confirming the model’s robustness across different datasets.
Analyzing the predictive performance of different models provides insights into their strengths and weaknesses in predicting grinding wheel wear. By leveraging feature selection, different models were optimized for both structure and hyperparameters. Their performance in predicting wheel wear was assessed using the optimized hyperparameters.
Table 9,
Table 10 and
Table 11 demonstrate the evaluation metrics for the prediction results of different models on different datasets.
Statistical significance analysis: The CBiGRUPE model significantly outperforms the CNN model on MAE and RMSE () and surpasses the CNN and Performer encoder models in R2 metrics (), as confirmed by an independent sample t-test (significance level ). The comprehensive comparison results show that the CBiGRUPE model exhibits superior prediction accuracy in the wheel wear prediction task. Especially in the R2 metrics, CBiGRUPE demonstrates significant advantages over the CNN and Performer encoder. While the differences in MAE and RMSE are not always significant, they are still improved. The stability and accuracy of the overall performance make it highly useful in wear prediction tasks. Therefore, the CBiGRUPE model has a wide range of application prospects in practical industrial applications, especially in wear monitoring and real-time prediction, which can provide accurate and efficient solutions.
CNN model: The CNN model has strong local feature extraction capability, but it is deficient in capturing global dependencies, especially on long time series data, which leads to its low prediction accuracy. This is manifested by , , and . On the N2 dataset, CNN’s prediction performance is poor, which may be related to its limited local feature extraction capability and insufficient modeling of global dependencies.
BiGRU model: The BiGRU model has the advantage of capturing forward and backward dependencies but lacks global modeling capability, which makes its performance degraded when dealing with long time series, as shown by , , and . However, the BiGRU model exhibits limited global modeling capability, struggling to capture long-range dependencies or global context. Additionally, its sequential nature restricts parallel processing, reducing computational efficiency in large-scale applications.
Transformer model: The transformer model, with its global modeling capability, can capture dependencies in long time series and exhibits high prediction accuracy (, , and ). However, Transformer has a high computational complexity, the training process requires a large amount of computational resources, the training speed is slow, and the training cost is high in industrial real-time applications. Therefore, in practical applications, Transformer may face the dual challenges of performance and computational resources, especially for the demand of real-time prediction.
Performer encoder model: The Performer model can efficiently capture global dependencies in long-sequence tasks, which can be beneficial for wear prediction. However, its limited focus on local features might affect performance in tasks where local details are crucial (, , and ).
CBiGRUPE model: The CBiGRUPE model combines the advantages of CNN, BiGRU, and Performer encoder to capture local features and deal with global dependencies in a long time series. The MAE (3.041), RMSE (3.927), and R2 (0.920) on all datasets demonstrate superior performance to the other models; especially on the N2 and N3 datasets, the CBiGRUPE model significantly reduces the prediction error and exhibits excellent stability and accuracy. Through this fusion, CBiGRUPE can provide higher accuracy in complex wear prediction tasks, showing significant potential for practical industrial applications and providing a more efficient and accurate solution for wear monitoring in grinding processes.