Rotation Error Prediction of CNC Spindle Based on Short-Time Fourier Transform of Vibration Sensor Signals and Improved Weighted Residual Network
Abstract
:1. Introduction
- The attention weighting unit is adopted to adaptively distinguish the importance of the spindle multi-sensor vibration data, so as to emphasize the important feature information, suppress the redundant feature information, and enhance the feature extraction capability of the model.
- The AWResNet model for spindle rotation error prediction is constructed by adding an attention weighting unit to the original residual network (ResNet), which takes the Short-time Fourier Transform (STFT) time-frequency domain features of the vibration signals as inputs to establishes end-to-end mapping between the vibration signals and the rotation errors.
- Comparison tests, feature visualization, attention weight visualization, and anti-noise experiments are carried out based on the vibration data collected from the machine tool spindle reliability test bed, and the experimental results verify the effectiveness and superiority of the proposed method.
2. The Fundamentals of ResNet
2.1. Convolution Neural Network
2.2. Pooling
2.3. Cross-Entropy Loss Function
3. The Proposed Prediction Method
3.1. STFT Representation
3.2. The Proposed AWResNet Model
3.2.1. Attention Weighting Unit
3.2.2. AWResNet Model
3.2.3. AWResNet-Based Spindle Rotation Error Prediction Procedure
Algorithm 1: AWResNet training procedure |
Input: Training dataset: ; Learning rate: ; Maximum training epoch: . 1: for epoch = 1, 2, 3, ……, do 2: //Feature extract 3: Calculate the output of Conv+BN+ReLU layers; 4: Calculate the output of 8 adaptive weighting RBU modules in series; 5: Calculate the output of the GAP layer; 6: Calculate the output of the FC layer; 7: //Calculate the probability of each category 8: , where stands for the number of categories; 9: //Calculate loss 10: Calculate the cross entropy loss using Formula (3); 11: //Error backpropagation and updating parameters 12: , 13: end for Output: |
4. Experimental Verifications
4.1. Experimental Platform
4.2. Data Preprocessing
4.3. Comparision Methods
4.4. Prediction Results
4.5. Confusion Matrix
4.6. Weight Visualization
4.7. Anti-Noise Experiment
5. Conclusions
Author Contributions
Funding
Institutional Review Board Statement
Informed Consent Statement
Data Availability Statement
Conflicts of Interest
References
- Guo, Z. Precision design and measurement method of large precision rotary body rotary. Manuf. Technol. Mach. Tool 2019, 6, 145–148. [Google Scholar]
- Zuo, Y.; Wang, H.; Wu, G.; Gu, Y.; Qiao, W. Research on remote state monitoring and intelligent maintenance system of CNC machine tools. J. Eng. 2019, 2019, 8671–8675. [Google Scholar] [CrossRef]
- Lee, J.; Tsai-Lin, C.; Lee, Y.; Liu, M.; Chen, L. Fully automatic CNC machining production system. MATEC Web Conf. 2017, 108, 4002–4007. [Google Scholar] [CrossRef]
- Castro, H. A method for evaluating spindle rotation errors of machine tools using a laser interferometer. Measurement 2008, 41, 526–537. [Google Scholar] [CrossRef]
- Liu, F.; Liang, L.; Xu, G.; Hou, C.; Liu, D. Four-point method in the measurement and separation of spindle rotation error. IEEE/ASME Trans. Mechatron. 2020, 26, 113–123. [Google Scholar] [CrossRef]
- Wang, L.; Zhang, B.; Wu, J. Rotation accuracy evaluation of electric spindle based on least square method. Manuf. Technol. Mach. Tool 2018, 2, 54–60. [Google Scholar]
- Wang, L.; Zhao, Q.; Zhang, B. Accuracy of an electric spindle. J. Tsinghua Univ. (Sci. Technol.) 2018, 58, 746–751. [Google Scholar]
- Anandan, K.P.; Ozdoganlar, O.B. A multi-orientation error separation technique for spindle metrology of miniature ultra-high-speed spindles. Precis. Eng. 2016, 43, 119–131. [Google Scholar] [CrossRef]
- Karacay, T.; Akturk, N. Vibrations of a grinding spindle supported by angular contact ball bearings. Proc. Inst. Mech. Eng. Part K J. Multi-Body Dyn. 2008, 222, 61–75. [Google Scholar] [CrossRef]
- Kang, T.; Cao, H. Dynamic prediction method for machine tool spindle rotational accuracy under cutting condition. J. Mech. Eng. 2020, 56, 240–248. [Google Scholar]
- Bai, F. Research on Deterioration and Sustainability Evaluation of Rotation Accuracy of Motorized Spindle. Master’s Thesis, Jilin University, Changchun, China, 2020. [Google Scholar]
- Liang, J.; Wang, L.; Yu, G.; Wu, J.; Wang, D.; Lin, S. Indirect Prediction of Spindle Rotation Error Through Vibration Signal Based On Supervised Local Mean Decomposition Filter Fusion and Bi-LSTM Classification Network. ASCE-ASME J. Risk Uncert. Engrg. Sys. Part B Mech. Engrg. 2024, 10, 21102. [Google Scholar] [CrossRef]
- Chen, D.; Wu, J.; Wang, L.; Liang, J.; Gong, X.; Kong, W. A method for predicting spindle rotation accuracy using vibration. Sci. Sin. Technol. 2020, 50, 819–828. [Google Scholar] [CrossRef]
- Urbanek, J.; Barszcz, T.; Strączkiewicz, M.; Jablonski, A. Normalization of vibration signals generated under highly varying speed and load with application to signal separation. Mech. Syst. Signal Proc. 2017, 82, 13–31. [Google Scholar] [CrossRef]
- Jia, Y.; Li, G.; Dong, X.; He, K. A novel denoising method for vibration signal of hob spindle based on EEMD and grey theory. Measurement 2021, 169, 108490. [Google Scholar] [CrossRef]
- Liang, J.; Wang, L.; Wu, J.; Liu, Z.; Yu, G. Prediction of spindle rotation error through vibration signal based on Bi-LSTM classification network. In IOP Conference Series: Materials Science and Engineering; IOP Publishing: Bristol, UK, 2021; p. 42033. [Google Scholar]
- Gao, T.; Yang, J.; Jiang, S. A Novel Fault Detection Model Based on Vector Quantization Sparse Autoencoder for Nonlinear Complex Systems. IEEE Trans. Ind. Inform. 2022, 19, 2693–2704. [Google Scholar] [CrossRef]
- Gao, T.; Yang, J.; Tang, Q. A multi-source domain information fusion network for rotating machinery fault diagnosis under variable operating conditions. Inf. Fusion. 2024, 106, 102278. [Google Scholar] [CrossRef]
- Yang, J.; Gao, T.; Yan, G.; Yang, C.; Li, G. A fault location method based on ensemble complex spatio-temporal attention network for complex systems under fluctuating operating conditions. Appl. Soft Comput. 2023, 144, 110489. [Google Scholar] [CrossRef]
- Song, L.; Wu, J.; Wang, L.; Chen, G.; Shi, Y.; Liu, Z. Remaining Useful Life Prediction of Rolling Bearings Based on Multi-Scale Attention Residual Network. Entropy 2023, 25, 798. [Google Scholar] [CrossRef] [PubMed]
- Zhou, J.; Qin, Y.; Chen, D.; Liu, F.; Qian, Q. Remaining useful life prediction of bearings by a new reinforced memory GRU network. Adv. Eng. Inform. 2022, 53, 101682. [Google Scholar] [CrossRef]
- Jiang, G.; Zhou, W.; Chen, Q.; He, Q.; Xie, P. Dual residual attention network for remaining useful life prediction of bearings. Measurement 2022, 199, 111424. [Google Scholar] [CrossRef]
- Song, L.; Wang, L.; Wu, J.; Guan, L.; Liu, Z. Reliability analysis based on cyber-physical system and digital twin. J. Jilin Univ. (Eng. Technol. Ed.) 2022, 52, 439–449. [Google Scholar]
- Song, L.; Wang, L.; Wu, J.; Liang, J.; Liu, Z. Integrating physics and data driven cyber-physical system for condition monitoring of critical transmission components in smart production line. Appl. Sci. 2021, 11, 8967. [Google Scholar] [CrossRef]
- Qu, H.; Zhang, H.; Yan, W.; Ma, F. Energy Efficiency Level Prediction of CNC Milling Machine Based on Improved Convolution Neural Network. Mach. Tool Hydraul. 2021, 49, 1–7,14. [Google Scholar]
- Krizhevsky, A.; Sutskever, I.; Hinton, G.E. ImageNet classification with deep convolutional neural networks. Commun. ACM 2017, 60, 84–90. [Google Scholar] [CrossRef]
- Zhao, B.; Zhang, X.; Li, H.; Yang, Z. Intelligent fault diagnosis of rolling bearings based on normalized CNN considering data imbalance and variable working conditions. Knowl.-Based Syst. 2020, 199, 105971. [Google Scholar] [CrossRef]
- Zhao, B.; Zhang, X.; Zhan, Z.; Pang, S. Deep multi-scale convolutional transfer learning network: A novel method for intelligent fault diagnosis of rolling bearings under variable working conditions and domains. Neurocomputing 2020, 407, 24–38. [Google Scholar] [CrossRef]
- Wang, B.; Lei, Y.; Yan, T.; Li, N.; Guo, L. Recurrent convolutional neural network: A new framework for remaining useful life prediction of machinery. Neurocomputing 2020, 379, 117–129. [Google Scholar] [CrossRef]
- Wang, B.; Lei, Y.; Li, N.; Yan, T. Deep separable convolutional network for remaining useful life prediction of machinery. Mech. Syst. Signal Proc. 2019, 134, 106330. [Google Scholar] [CrossRef]
- Jing, L.; Zhao, M.; Li, P.; Xu, X. A convolutional neural network based feature learning and fault diagnosis method for the condition monitoring of gearbox. Measurement 2017, 111, 1–10. [Google Scholar] [CrossRef]
- He, K.; Zhang, X.; Ren, S.; Sun, J. Deep residual learning for image recognition. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, Las Vegas, NV, USA, 27–30 June 2016; pp. 770–778. [Google Scholar]
- Ioffe, S.; Szegedy, C. Batch normalization: Accelerating deep network training by reducing internal covariate shift. In Proceedings of the 32nd International Conference on Machine Learning (ICML 2015), Lille, France, 6–11 July 2015; pp. 448–456. [Google Scholar]
- Hu, J.; Shen, L.; Sun, G. Squeeze-and-excitation networks. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), Salt Lake City, UT, USA, 18–23 June 2018; pp. 7132–7141. [Google Scholar]
- Chen, D.; Wu, J.; Zhang, B.; Wang, L.; Liang, J. Load spectrum compilation for machining center spindles based on S-shaped specimens. J. Tsinghua Univ. (Sci. Technol.) 2018, 58, 1107–1114. [Google Scholar]
- Lecun, Y.; Bengio, Y.; Hinton, G. Deep learning. Nature 2015, 521, 436–444. [Google Scholar] [CrossRef]
- Zhao, Z.B.; Li, T.F.; Wu, J.Y.; Sun, C.; Wang, S.B.; Yan, R.Q.; Chen, X.F. Deep learning algorithms for rotating machinery intelligent diagnosis: An open source benchmark study. ISA Trans. 2020, 107, 224–255. [Google Scholar] [CrossRef]
Layer Name | Kernel Size | Stride | Input | Output |
---|---|---|---|---|
Conv+BN+ReLU | ||||
Adaptive weighting RBU1 × 2 | ||||
Adaptive weighting RBU2 × 2 | ||||
Adaptive weighting RBU3 × 2 | ||||
Adaptive weighting RBU4 × 2 | ||||
GAP | - | - | ||
FC | - | - |
LeNet | CNN | CBiLSTM | MSCNN | ResNet | AWResNet | ||
---|---|---|---|---|---|---|---|
Model comparison | Complexity | 712.07 k | 16.95 M | 6.4 M | 851.44 M | 3.23 G | 3.23 G |
Inference time | 0.09 s | 0.12 s | 0.14 s | 0.44 s | 1.39 s | 1.46 s | |
Parameters | 62.8 k | 2.33 M | 977.24 k | 16.98 M | 11.19 M | 11.80 M | |
Experiment | First prediction | 87.20 | 88.15 | 89.44 | 90.60 | 91.94 | 92.76 |
Second prediction | 86.72 | 89.66 | 90.17 | 90.82 | 92.41 | 92.72 | |
Third prediction | 86.98 | 86.94 | 89.91 | 90.22 | 92.59 | 92.24 | |
Fourth prediction | 86.77 | 88.41 | 89.74 | 90.82 | 91.85 | 92.89 | |
Fifth prediction | 86.72 | 87.97 | 89.61 | 90.78 | 91.59 | 92.97 | |
Average and standard deviation | 86.88 ± 0.21 | 88.23 ± 0.98 | 89.77 ± 0.28 | 90.65 ± 0.26 | 92.08 ± 0.41 | 92.72 ± 0.28 |
Noise Type | SNR | LeNet | CNN | CBiLSTM | MSCNN | ResNet | AWResNet |
---|---|---|---|---|---|---|---|
Gaussian | 12 dB | 85.47 ± 0.98 | 86.99 ± 0.85 | 87.82 ± 0.54 | 89.36 ± 0.72 | 89.33 ± 0.71 | 90.74 ± 0.19 |
10 dB | 83.85 ± 1.26 | 85.73 ± 0.54 | 86.14 ± 0.56 | 88.80 ± 0.36 | 87.70 ± 0.28 | 89.59 ± 0.53 | |
8 dB | 80.66 ± 2.44 | 84.53 ± 0.89 | 84.22 ± 0.93 | 87.49 ± 0.95 | 86.01 ± 0.66 | 87.12 ± 0.81 | |
Laplace | 12 dB | 85.54 ± 0.82 | 86.81 ± 0.44 | 88.34 ± 0.64 | 89.70 ± 0.38 | 89.18 ± 1.02 | 90.91 ± 0.21 |
10 dB | 84.16 ± 0.96 | 86.32 ± 0.54 | 86.12 ± 0.64 | 88.72 ± 0.62 | 87.71 ± 0.53 | 89.53 ± 0.22 | |
8 dB | 79.69 ± 3.08 | 85.01 ± 1.04 | 85.10 ± 0.85 | 87.39 ± 0.75 | 85.94 ± 0.52 | 87.71 ± 0.67 |
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. |
© 2024 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (https://creativecommons.org/licenses/by/4.0/).
Share and Cite
Song, L.; Tan, J. Rotation Error Prediction of CNC Spindle Based on Short-Time Fourier Transform of Vibration Sensor Signals and Improved Weighted Residual Network. Sensors 2024, 24, 4244. https://doi.org/10.3390/s24134244
Song L, Tan J. Rotation Error Prediction of CNC Spindle Based on Short-Time Fourier Transform of Vibration Sensor Signals and Improved Weighted Residual Network. Sensors. 2024; 24(13):4244. https://doi.org/10.3390/s24134244
Chicago/Turabian StyleSong, Lin, and Jianying Tan. 2024. "Rotation Error Prediction of CNC Spindle Based on Short-Time Fourier Transform of Vibration Sensor Signals and Improved Weighted Residual Network" Sensors 24, no. 13: 4244. https://doi.org/10.3390/s24134244
APA StyleSong, L., & Tan, J. (2024). Rotation Error Prediction of CNC Spindle Based on Short-Time Fourier Transform of Vibration Sensor Signals and Improved Weighted Residual Network. Sensors, 24(13), 4244. https://doi.org/10.3390/s24134244