Abstract
Thermal error modeling (TEM) is essential for preserving machining accuracy and enhancing the reliability of electric spindle systems. However, the major challenges in TEM lie in the limited or unavailable labeled thermal error samples due to the difficulties in data acquisition, as well as the problem of large distribution discrepancy between training and testing data under variable working conditions. Recently, digital twin (DT) has emerged as a promising tool in intelligent manufacturing. The DT model of the electric spindle can simulate system thermal behavior data that closely resembles real working conditions, providing a remarkable opportunity for TEM. Additionally, deep transfer learning (DTL) leverages existing knowledge to minimize data distribution discrepancies, bridging the gap between virtual and real data, and ultimately enhancing the generalization and adaptation ability of the model. Thus, this paper proposes a DT-assisted DTL method for TEM of electric spindles. Firstly, the DT model for the electric spindle is built by establishing a high-fidelity simulation model based on the physical system’s thermal behavior mechanism. Furthermore, temperature field information for all interested working conditions can be simulated from the constructed DT model. Subsequently, the distance-guided domain adversarial network (DGDAN) is developed, with data generated by the DT model constructed as the training data in the source domain, while partially collected data from the physical system is used as the target domain for training. To validate the effectiveness of the proposed method, a case study is conducted using datasets from both the DT model and the physical system. The experimental results demonstrate that the proposed method successfully achieves TEM in scenarios where the thermal error data is limited or unavailable from the physical system, and the goodness of fit is higher than the state-of-the-art methods by 11.73%.
![](http://media.springernature.com/m312/springer-static/image/art%3A10.1007%2Fs10845-023-02283-1/MediaObjects/10845_2023_2283_Fig1_HTML.png)
![](http://media.springernature.com/m312/springer-static/image/art%3A10.1007%2Fs10845-023-02283-1/MediaObjects/10845_2023_2283_Fig2_HTML.png)
![](http://media.springernature.com/m312/springer-static/image/art%3A10.1007%2Fs10845-023-02283-1/MediaObjects/10845_2023_2283_Fig3_HTML.png)
![](http://media.springernature.com/m312/springer-static/image/art%3A10.1007%2Fs10845-023-02283-1/MediaObjects/10845_2023_2283_Fig4_HTML.png)
![](http://media.springernature.com/m312/springer-static/image/art%3A10.1007%2Fs10845-023-02283-1/MediaObjects/10845_2023_2283_Fig5_HTML.png)
![](http://media.springernature.com/m312/springer-static/image/art%3A10.1007%2Fs10845-023-02283-1/MediaObjects/10845_2023_2283_Figa_HTML.png)
![](http://media.springernature.com/m312/springer-static/image/art%3A10.1007%2Fs10845-023-02283-1/MediaObjects/10845_2023_2283_Fig6_HTML.png)
![](http://media.springernature.com/m312/springer-static/image/art%3A10.1007%2Fs10845-023-02283-1/MediaObjects/10845_2023_2283_Fig7_HTML.png)
![](http://media.springernature.com/m312/springer-static/image/art%3A10.1007%2Fs10845-023-02283-1/MediaObjects/10845_2023_2283_Fig8_HTML.png)
![](http://media.springernature.com/m312/springer-static/image/art%3A10.1007%2Fs10845-023-02283-1/MediaObjects/10845_2023_2283_Fig9_HTML.png)
![](http://media.springernature.com/m312/springer-static/image/art%3A10.1007%2Fs10845-023-02283-1/MediaObjects/10845_2023_2283_Fig10_HTML.png)
![](http://media.springernature.com/m312/springer-static/image/art%3A10.1007%2Fs10845-023-02283-1/MediaObjects/10845_2023_2283_Fig11_HTML.png)
![](http://media.springernature.com/m312/springer-static/image/art%3A10.1007%2Fs10845-023-02283-1/MediaObjects/10845_2023_2283_Fig12_HTML.png)
![](http://media.springernature.com/m312/springer-static/image/art%3A10.1007%2Fs10845-023-02283-1/MediaObjects/10845_2023_2283_Fig13_HTML.png)
![](http://media.springernature.com/m312/springer-static/image/art%3A10.1007%2Fs10845-023-02283-1/MediaObjects/10845_2023_2283_Fig14_HTML.png)
![](http://media.springernature.com/m312/springer-static/image/art%3A10.1007%2Fs10845-023-02283-1/MediaObjects/10845_2023_2283_Fig15_HTML.png)
![](http://media.springernature.com/m312/springer-static/image/art%3A10.1007%2Fs10845-023-02283-1/MediaObjects/10845_2023_2283_Fig16_HTML.png)
![](http://media.springernature.com/m312/springer-static/image/art%3A10.1007%2Fs10845-023-02283-1/MediaObjects/10845_2023_2283_Fig17_HTML.png)
Similar content being viewed by others
Data availability
The data that support the findings of this study are available from the corresponding author upon request.
Abbreviations
- TEM:
-
Thermal error modeling
- DT(s):
-
Digital twin(s)
- DL:
-
Deep learning
- DTL:
-
Deep transfer learning
- DA:
-
Domain adaptation
- MMD:
-
Max mean discrepancy
- CNN(s):
-
Convolutional neural network(s)
- GRU:
-
Gate recurrent unit
- LSTM:
-
Long short-term memory
- ST-CLSTM:
-
Spatial–temporal-convolutional long short-term memory
- LSSVM:
-
Least squares support vector machine
- AO:
-
Aquila optimizer
- PSO:
-
Particle swarm optimization
- GAN:
-
Generative adversarial network
- GRL:
-
Gradient reversal layer
- SGD:
-
Stochastic gradient descent
- CAD:
-
Computer aided design
- C-ATLSTM:
-
Convolutional attention long short-term memory
- ReLU:
-
Rectified linear unit
- RKHS:
-
Reproducing kernel Hilbert space
- PC:
-
Personal computer
- C-LSTMN:
-
Convolutional long short-term memory network
- DGDAN:
-
Distance-guided domain adversarial network
- RMSE:
-
Root mean squared error
- MAPE:
-
Mean absolute percentage error
- \(R^{2}\) :
-
Goodness of Fit
References
Bryan, J. (1990). International status of thermal error research (1990). CIRP Annals, 39(2), 645–656. https://doi.org/10.1016/S0007-8506(07)63001-7
Chen, Y., Chen, J., & Xu, G. (2021a). A data-driven model for thermal error prediction considering thermoelasticity with gated recurrent unit attention. Measurement, 184, 109891. https://doi.org/10.1016/j.measurement.2021.109891
Chen, Y., Zhou, H., Chen, J., & Xu, G. (2021b). Spindle thermal error modeling method considering the operating condition based on Long Short-Term Memory. Engineering Research Express, 3(3), 35019. https://doi.org/10.1088/2631-8695/ac198a
Chen, Z., Liao, Y., Li, J., Huang, R., Xu, L., **, G., & Li, W. (2023). A multi-source weighted deep transfer network for open-set fault diagnosis of rotary machinery. IEEE Transactions on Cybernetics, 53(3), 1982–1993. https://doi.org/10.1109/TCYB.2022.3195355
Chen, Z., Zhong, Q., Huang, R. Y., Liao, Y., Li, J., & Li, W. (2021). Intelligent fault diagnosis for machinery based on enhanced transfer convolutional neural network. Journal of Mechanical Engineering, 57(21), 96–105.
Fei, T., He, Z., Ang, L., & Nee, A. Y. C. (2019). Digital twin in industry: State-of-the-art. IEEE Transactions on Industrial Informatics, 15(4), 2405–2415. https://doi.org/10.1109/TII.2018.2873186
Fu, G., Tao, C., **e, Y., Lu, C., & Gao, H. (2021). Temperature-sensitive point selection for thermal error modeling of machine tool spindle by considering heat source regions. The International Journal of Advanced Manufacturing Technology, 112(9), 2447–2460. https://doi.org/10.1007/s00170-020-06417-0
Grieves, M., & Vickers, J. (2017). Digital twin: Mitigating unpredictable, undesirable emergent behavior in complex systems. In F. Kahlen, S. Flumerfelt, & A. Alves (Eds.), Transdisciplinary perspectives on complex systems: New findings and approaches (pp. 85–113). Springer International Publishing. https://doi.org/10.1007/978-3-319-38756-7_4
Guo, J., **ong, Q., Chen, J., Miao, E., Wu, C., Zhu, Q., Yang, Z., & Chen, J. (2022). Study of static thermal deformation modeling based on a hybrid CNN-LSTM model with spatiotemporal correlation. The International Journal of Advanced Manufacturing Technology, 119(3), 2601–2613. https://doi.org/10.1007/s00170-021-08462-9
Jian, B., Guo, Y., Hu, C., Wu, L., & Yau, H. (2020). Prediction of spindle thermal deformation and displacement using back propagation neural network. Sensors & Materials. https://doi.org/10.18494/SAM.2020.2606
Leng, J., Chen, Z., Sha, W., Lin, Z., Lin, J., & Liu, Q. (2022). Digital twins-based flexible operating of open architecture production line for individualized manufacturing. Advanced Engineering Informatics, 53, 101676. https://doi.org/10.1016/j.aei.2022.101676
Leng, J., Liu, Q., Ye, S., **g, J., Wang, Y., Zhang, C., Zhang, D., & Chen, X. (2020). Digital twin-driven rapid reconfiguration of the automated manufacturing system via an open architecture model. Robotics and Computer-Integrated Manufacturing, 63, 101895. https://doi.org/10.1016/j.rcim.2019.101895
Leng, J., Wang, D., Shen, W., Li, X., Liu, Q., & Chen, X. (2021a). Digital twins-based smart manufacturing system design in Industry 4.0: A review. Journal of Manufacturing Systems, 60, 119–137. https://doi.org/10.1016/j.jmsy.2021.05.011
Leng, J., Yan, D., Liu, Q., Zhang, H., Zhao, G., Wei, L., Zhang, D., Yu, A., & Chen, X. (2021b). Digital twin-driven joint optimisation of packing and storage assignment in large-scale automated high-rise warehouse product-service system. International Journal of Computer Integrated Manufacturing, 34(7–8), 783–800. https://doi.org/10.1080/0951192X.2019.1667032
Li, P., Lou, P., Yan, J., & Liu, N. (2020). The thermal error modeling with deep transfer learning. Journal of Physics: Conference Series, 1576(1), 12003. https://doi.org/10.1088/1742-6596/1576/1/012003
Li, Z., Li, G., Xu, K., Tang, X., & Dong, X. (2021). Temperature-sensitive point selection and thermal error modeling of spindle based on synthetical temperature information. The International Journal of Advanced Manufacturing Technology, 113(3), 1029–1043. https://doi.org/10.1007/s00170-021-06680-9
Li, G., Tang, X., Li, Z., Xu, K., & Li, C. (2022a). The temperature-sensitive point screening for spindle thermal error modeling based on IBGOA-feature selection. Precision Engineering, 73, 140–152. https://doi.org/10.1016/j.precisioneng.2021.08.021
Li, Z., Wang, Q., Zhu, B., Wang, B., Zhu, W., & Dai, Y. (2022b). Thermal error modeling of high-speed electric spindle based on Aquila Optimizer optimized least squares support vector machine. Case Studies in Thermal Engineering, 39, 102432. https://doi.org/10.1016/j.csite.2022.102432
Liang, Y. C., Li, W. D., Lou, P., & Hu, J. M. (2022). Thermal error prediction for heavy-duty CNC machines enabled by long short-term memory networks and fog-cloud architecture. Journal of Manufacturing Systems, 62, 950–963. https://doi.org/10.1016/j.jmsy.2020.10.008
Liu, J., Gui, H., & Ma, C. (2023a). Digital twin system of thermal error control for a large-size gear profile grinder enabled by gated recurrent unit. Journal of Ambient Intelligence and Humanized Computing, 14(2), 1269–1295. https://doi.org/10.1007/s12652-021-03378-4
Liu, S., Bao, J., & Zheng, P. (2023b). A review of digital twin-driven machining: From digitization to intellectualization. Journal of Manufacturing Systems, 67, 361–378. https://doi.org/10.1016/j.jmsy.2023.02.010
Liu, J., Ma, C., Gui, H., & Wang, S. (2021a). Thermally-induced error compensation of spindle system based on long short term memory neural networks. Applied Soft Computing, 102, 107094. https://doi.org/10.1016/j.asoc.2021.107094
Liu, Y., Li, K., & Tsai, Y. (2021b). spindle thermal error prediction based on LSTM deep learning for a CNC machine tool. Applied Sciences, 11, 5444.
Liu, Y., Miao, E., Liu, H., & Chen, Y. (2020a). Robust machine tool thermal error compensation modelling based on temperature-sensitive interval segmentation modelling technology. The International Journal of Advanced Manufacturing Technology, 106(1), 655–669. https://doi.org/10.1007/s00170-019-04482-8
Liu, Z., Zhang, D., Jia, W., Lin, X., & Liu, H. (2020b). An adversarial bidirectional serial–parallel LSTM-based QTD framework for product quality prediction. Journal of Intelligent Manufacturing, 31(6), 1511–1529. https://doi.org/10.1007/s10845-019-01530-8
Liu, S., Lu, Y., Zheng, P., Shen, H., & Bao, J. (2022a). Adaptive reconstruction of digital twins for machining systems: A transfer learning approach. Robotics and Computer-Integrated Manufacturing, 78, 102390. https://doi.org/10.1016/j.rcim.2022.102390
Liu, Z., Ding, K., Lin, H., He, G., Du, C., & Chen, Z. (2022b). A novel impact feature extraction method based on EMD and sparse decomposition for gear local fault diagnosis. Machines, 10, 242.
Lu, Q., Zhu, D., Wang, M., & Li, M. (2023). Digital twin-driven thermal error prediction for CNC machine tool spindle. Lubricants., 11, 219.
Ma, C., Gui, H., & Liu, J. (2023). Self learning-empowered thermal error control method of precision machine tools based on digital twin. Journal of Intelligent Manufacturing, 34(2), 695–717. https://doi.org/10.1007/s10845-021-01821-z
Ma, S., Leng, J., Chen, Z., Li, B., Li, X., Zhang, D., Li, W., & Liu, Q. (2024). A novel weakly supervised adversarial network for thermal error modeling of electric spindles with scarce samples. Expert Systems with Applications, 238, 122065. https://doi.org/10.1016/j.eswa.2023.122065
Mareš, M., Horejš, O., & Havlík, L. (2020). Thermal error compensation of a 5-axis machine tool using indigenous temperature sensors and CNC integrated Python code validated with a machined test piece. Precision Engineering, 66, 21–30. https://doi.org/10.1016/j.precisioneng.2020.06.010
Mayr, J., Jedrzejewski, J., Uhlmann, E., Alkan Donmez, M., Knapp, W., Härtig, F., Wendt, K., Moriwaki, T., Shore, P., Schmitt, R., Brecher, C., Würz, T., & Wegener, K. (2012). Thermal issues in machine tools. CIRP Annals, 61(2), 771–791. https://doi.org/10.1016/j.cirp.2012.05.008
Mykoniatis, K., & Harris, G. A. (2021). A digital twin emulator of a modular production system using a data-driven hybrid modeling and simulation approach. Journal of Intelligent Manufacturing, 32(7), 1899–1911. https://doi.org/10.1007/s10845-020-01724-5
Negri, E., Pandhare, V., Cattaneo, L., Singh, J., Macchi, M., & Lee, J. (2021). Field-synchronized digital twin framework for production scheduling with uncertainty. Journal of Intelligent Manufacturing, 32(4), 1207–1228. https://doi.org/10.1007/s10845-020-01685-9
Oh, S., Park, J., Yang, J., Oh, Y., & Yi, K. (2023). Smart classification method to detect irregular nozzle spray patterns inside carbon black reactor using ensemble transfer learning. Journal of Intelligent Manufacturing, 34(6), 2729–2745. https://doi.org/10.1007/s10845-022-01951-y
Savolainen, J., & Urbani, M. (2021). Maintenance optimization for a multi-unit system with digital twin simulation. Journal of Intelligent Manufacturing, 32(7), 1953–1973. https://doi.org/10.1007/s10845-021-01740-z
Shi, Z., Mamun, A. A., Kan, C., Tian, W., & Liu, C. (2023). An LSTM-autoencoder based online side channel monitoring approach for cyber-physical attack detection in additive manufacturing. Journal of Intelligent Manufacturing, 34(4), 1815–1831. https://doi.org/10.1007/s10845-021-01879-9
Tan, F., Yin, G., Zheng, K., & Wang, X. (2021). Thermal error prediction of machine tool spindle using segment fusion LSSVM. The International Journal of Advanced Manufacturing Technology, 116(1), 99–114. https://doi.org/10.1007/s00170-021-07066-7
Tao, F., Qi, Q., Wang, L., & Nee, A. Y. C. (2019). Digital twins and cyber-physical systems toward smart manufacturing and industry 4.0: Correlation and comparison. Engineering, 5(4), 653–661. https://doi.org/10.1016/j.eng.2019.01.014
Unver, H. O., & Sener, B. (2023). A novel transfer learning framework for chatter detection using convolutional neural networks. Journal of Intelligent Manufacturing, 34(3), 1105–1124. https://doi.org/10.1007/s10845-021-01839-3
Wang, Y., Tao, F., Zuo, Y., Zhang, M., & Qi, Q. (2023). Digital-twin-enhanced quality prediction for the composite materials. Engineering, 22, 23–33. https://doi.org/10.1016/j.eng.2022.08.019
Wei, X., Ye, H., Miao, E., & Pan, Q. (2022). Thermal error modeling and compensation based on Gaussian process regression for CNC machine tools. Precision Engineering, 77, 65–76. https://doi.org/10.1016/j.precisioneng.2022.05.008
Woo, S., Park, J., Lee, J., & Kweon, I. S. (2018Cbam: Convolutional block attention module. Paper presented at the Proceedings of the European Conference on Computer Vision (ECCV).
Wu, C., **ang, S., & **ang, W. (2021). Spindle thermal error prediction approach based on thermal infrared images: A deep learning method. Journal of Manufacturing Systems, 59, 67–80. https://doi.org/10.1016/j.jmsy.2021.01.013
Zhang, X., Yang, L., Lou, P., Jiang, X., & Li, Z. (2019, 2019–1–1). Thermal Error Modeling for Heavy Duty CNC Machine Tool Based on Convolution Neural Network. Paper presented at the 2019 IEEE 3rd Information Technology, Networking, Electronic and Automation Control Conference (ITNEC).
Zhang, X., Wang, C., Lou, P., Yan, J., & Liu, N. (2020, 2020–1–1). Machine Tools Thermal Error Modeling with Imbalanced Data Based on Transfer Learning. Paper presented at the 2020 IEEE 5th International Conference on Cloud Computing and Big Data Analytics (ICCCBDA).
Zheng, P., & Sivabalan, A. S. (2020). A generic tri-model-based approach for product-level digital twin development in a smart manufacturing environment. Robotics and Computer-Integrated Manufacturing, 64, 101958. https://doi.org/10.1016/j.rcim.2020.101958
Zou, Z., Yan, W., Ma, W., Liu, Z., Cao, R., & Chen, W. (2021). Development of thermal error map** model for the dry gear hobbing machine based on CNN-DAE integrated structure and its application. The International Journal of Advanced Manufacturing Technology, 113(7), 2343–2354. https://doi.org/10.1007/s00170-021-06779-z
Acknowledgements
This work was supported by the State Administration of Science, Technology and Industry for National Defense, PRC under Grant No. JCKY2020209B005, the National Natural Science Foundation of China under Grant U20A6004 & 52205101, Guangdong Basic and Applied Basic Research Foundation under Grant 2021A1515110708, Guangzhou Basic and Applied Basic Research Foundation under Grant 202201010615, Science and Technology Major Project of Hubei Province under Grant 2021AAA003.
Author information
Authors and Affiliations
Corresponding authors
Ethics declarations
Conflict of interest
The authors declare that they have no conflict of interest.
Additional information
Publisher's Note
Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.
Rights and permissions
Springer Nature or its licensor (e.g. a society or other partner) holds exclusive rights to this article under a publishing agreement with the author(s) or other rightsholder(s); author self-archiving of the accepted manuscript version of this article is solely governed by the terms of such publishing agreement and applicable law.
About this article
Cite this article
Ma, S., Leng, J., Zheng, P. et al. A digital twin-assisted deep transfer learning method towards intelligent thermal error modeling of electric spindles. J Intell Manuf (2024). https://doi.org/10.1007/s10845-023-02283-1
Received:
Accepted:
Published:
DOI: https://doi.org/10.1007/s10845-023-02283-1