A Mechanism–Data Hybrid Approach for Predicting Energy Consumption in CNC Machine Tools
Abstract
1. Introduction
- This study develops a hierarchical decoupled energy consumption mechanism model for machine tools. Based on metal cutting principles and machine tool characteristics, total energy consumption is decomposed into standby, no-load transmission and material removal cutting energy components. This establishes the physical properties of energy consumption variation with process parameters, providing reliable trend information for the hybrid model.
- An Attention–LSTM (Attention Mechanism–Long Short-Term Memory) dynamic residual compensation network is proposed. To address nonlinear dynamic errors (residuals) beyond the mechanism model’s scope, a deep residual prediction network was designed. This network utilizes LSTM to capture long-range dependencies in energy consumption time-series data. By incorporating an attention mechanism, it automatically identifies critical inflection points in machine tool energy consumption. Furthermore, the output of the physical model is embedded as prior knowledge into the network input, effectively constraining the neural network with physical information.
- A comprehensive hybrid-driven prediction framework was established and experimentally validated. An orthogonal experiment incorporating multiple cutting parameter combinations was designed. Experimental results demonstrate that this hybrid model significantly outperforms both standalone mechanistic models and pure data-driven models in prediction accuracy.
2. Modeling Methods
2.1. Mechanistic Energy Consumption Modeling Method
2.1.1. Decomposition of Machine Tool Power
- Spindle no-load power: The no-load power of the spindle motor is primarily used to overcome bearing friction and air resistance. Experiments show that spindle power, Pspindle, exhibits a nonlinear relationship with rotational speed, n, typically fitted using a quadratic polynomial by Equation (2).where n is the spindle speed (r/min), and , , and are fitting coefficients related to the characteristics of the machine tool spindle.
- Feed axis no-load power: Power consumption in the feed axis primarily stems from overcoming guideway friction. During steady-state feed operation—where transient inertial forces from acceleration/deceleration are neglected—feed power, Pfeed, exhibits an approximate linear relationship by Equation (3).where vf is the feed rate (mm/min), and and are the feed axis power coefficients. In summary, the total power consumption model for no-load transmission can be expressed by Equation (4).
2.1.2. Energy-Based Cutting Power Modeling
- First deformation zone (Shear Zone): strain energy, Eshear, consumed during plastic deformation of the material;
- Second deformation zone (Rake Face): energy, Efriction, expended by the chip overcoming friction as it flows along the tool’s rake face;
- Third deformation zone (Flank Face): energy, Eploughing, consumed by the tool’s flank face through friction and compression against the machined surface.
2.1.3. Discussion of Error Sources
- Time-varying effects of tool wear: The classical model assumes ksec is constant, ignoring the dynamic impact of tool wear on cutting forces. As the width of the rake face wear band (VB) increases, friction and plowing effects in the third deformation zone significantly intensify, causing actual energy consumption to progressively deviate from theoretical values.
- Nonlinear transient impacts: During the instantaneous entry and exit phases of milling, the cutting thickness undergoes abrupt changes, causing nonlinear pulsating fluctuations in cutting force and energy consumption. Static MRR models cannot describe this phenomenon, resulting in errors.
- Neglecting machine tool thermal characteristics: Prolonged machining of workpieces causes thermal expansion of the spindle and changes in guideway lubricant viscosity, requiring fine-tuning of the no-load power baseline. Existing fixed-parameter physical models cannot adaptively account for this thermal drift phenomenon.
2.2. Residual Prediction Network Based on Attention Mechanism–LSTM
- Input layer construction with physical information embedding: To achieve physical information embedding, the network’s input vector, Xt, not only incorporates current cutting process parameters (spindle speed, n; feed rate, vf; cutting depth, ap; and cutting width, ae) but also introduces the output, Pshy, from the mechanism model as prior knowledge features by Equation (7).
- LSTM feature extraction layer: This utilizes the unique gating mechanism of LSTM units to handle time-dependent relationships in machine tool processing, addressing the vanishing gradient problem in traditional RNNs and effectively capturing the dynamic evolution of energy consumption over time [28].
- Attention mechanism layer: During milling, energy fluctuations at tool entry and exit points significantly impact overall precision, though these moments constitute a small fraction of the long sequence. Introducing an attention mechanism automatically assigns different weights to the hidden layer state, ht, output by the LSTM, , enabling the model to focus on critical time steps that substantially contribute to residuals by Equation (8).
2.3. Hybrid-Driven Model Method
2.3.1. Overall Framework
2.3.2. Implementation Method of the Hybrid-Driven Model
- Data preprocessing and baseline calculation: Collect real-time machine operation data, and compute the theoretical power, Pshy, at each time step using the mechanism-based formula in Section 2.
- Dataset construction: Combine standardized process parameters with Pshy to form feature vectors. Use Preal as labels. Construct experimental training and test sets based on time windows. This study collected 256 experimental sets, selecting 80% of the data as the training set and 20% as the test set to evaluate the accuracy of the hybrid model.
- Offline residual network training: Train the Attention–LSTM network using the training set with the Adam optimizer, setting the difference between the predicted residual, Pres, and the true residual, Preal, as the objective function.
- Online fusion prediction: In practical applications, real-time physical baseline values are computed and combined with the predicted residuals from the trained network to yield the final high-precision energy consumption forecast.
3. Experimental Validation
3.1. Experimental Equipment and Environment Description
3.2. Theoretical Model Parameters
- Standby power: The average standby power, = 450 W, was obtained through multiple measurements.
- No-load transmission coefficients: Step-speed experiments yielded spindle power coefficients: = 120, = 0.15, and = 2.3 × 10−5. Feed-axis no-load experiments yielded feed power coefficients: = 50 and = 0.2.
- Specific cutting energy coefficient: Based on the linear regression relationship between average power during the cutting phase and MRR, the average specific energy coefficient, = 2.85 J/mm3, was calibrated for this operating condition.
3.3. Model Prediction Accuracy
4. Conclusions
- A hierarchical decoupled benchmark model for machine tool energy consumption mechanisms was constructed, establishing the physical characteristics for energy prediction. By analyzing the energy flow of the machine tool, the total power was decoupled into three components: standby power, no-load transmission power, and material removal power. Experiments demonstrate that this mechanism model accurately reflects the influence trends of spindle speed, feed rate, and material removal rate on energy consumption. It provides reliable, physically consistent constraints for the hybrid model, effectively preventing overfitting in small sample sizes that pure data models often encounter.
- A residual compensation network based on physical information embedding and Attention–LSTM is proposed, achieving precise correction of dynamic nonlinear errors. To address residual power errors caused by tool wear, nonlinear friction, and cutting transient impacts—which the mechanism model cannot capture—this paper introduces an Attention–LSTM network. By embedding the physical model’s output as prior features into the network input, the model not only enhances its ability to capture complex temporal features during machine operation but also significantly improves dynamic response capabilities during cutting force fluctuations, such as tool engagement and disengagement.
- Experimental results demonstrate that the hybrid-driven model combines the robustness of mechanism models with the accuracy of data models. Tests on a three-axis CNC milling machine show that the proposed hybrid-driven model achieves an RMSE of 0.0610, an MAE of 0.0413, and an R2 of 0.9936, exhibiting strong predictive accuracy.
Author Contributions
Funding
Institutional Review Board Statement
Informed Consent Statement
Data Availability Statement
Conflicts of Interest
References
- Gutowski, T.G.; Allwood, J.M.; Herrmann, C.; Sahni, S. A global assessment of manufacturing: Economic development, energy use, carbon emissions, and the potential for energy efficiency and materials recycling. Annu. Rev. Environ. Resour. 2013, 38, 81–106. [Google Scholar] [CrossRef]
- Alaux, N.; Saade, M.R.M.; Hoxha, E.; Truger, B.; Passer, A. Future trends in materials manufacturing for low carbon building stocks: A prospective macro-scale analysis at the provincial level. J. Clean. Prod. 2023, 382, 135278. [Google Scholar] [CrossRef]
- Bera, M.; Das, S.; Garai, S.; Dutta, S.; Choudhury, M.R.; Tripathi, S.; Chatterjee, G. Advancing energy efficiency: Innovative technologies and strategic measures for achieving net zero emissions. Carbon Footpr. 2025, 4, 3. [Google Scholar] [CrossRef]
- Lestingi, L.; Frigerio, N.; Bersani, M.M.; Matta, A.; Rossi, M. Data-driven energy modeling of machining centers through automata learning. IEEE Trans. Autom. Sci. Eng. 2024, 22, 5769–5780. [Google Scholar] [CrossRef]
- Wu, H.; Wang, X.; Deng, X.; Shen, H.; Yao, X. Review on design research in CNC machine tools based on energy consumption. Sustainability 2024, 16, 847. [Google Scholar] [CrossRef]
- Li, C.; Ge, W.; Huang, Z.; Zhang, Q.; Li, H.; Cao, H. Digital twin-driven modeling and application of carbon emission for machine tool. Int. J. Adv. Manuf. Technol. 2024, 133, 5595–5609. [Google Scholar] [CrossRef]
- Li, J.; He, P.; Li, H.; Li, S.; Xu, L.; He, K. Multi-objective cutting parameter optimization method for the energy consumption and machining quality of computerized numerical control lathes. Appl. Sci. 2024, 14, 905. [Google Scholar] [CrossRef]
- Gutowski, T.; Dahmus, J.; Thiriez, A. Electrical energy requirements for manufacturing processes. In Proceedings of the 13th CIRP International Conference on Life Cycle Engineering, Leuven, Belgium, 31 May–2 June 2006; Volume 31, pp. 623–638. [Google Scholar]
- Kara, S.; Li, W. Unit process energy consumption models for material removal processes. CIRP Ann. 2011, 60, 37–40. [Google Scholar] [CrossRef]
- Balogun, V.A.; Mativenga, P.T. Modelling of direct energy requirements in mechanical machining processes. J. Clean. Prod. 2013, 41, 179–186. [Google Scholar] [CrossRef]
- Yoon, H.S.; Lee, J.Y.; Kim, M.S.; Ahn, S.H. Empirical power-consumption model for material removal in three-axis milling. J. Clean. Prod. 2014, 78, 54–62. [Google Scholar] [CrossRef]
- Wang, Q.; Zhang, D.; Chen, B.; Zhang, Y.; Wu, B. Energy consumption model for drilling processes based on cutting force. Appl. Sci. 2019, 9, 4801. [Google Scholar] [CrossRef]
- Liu, Z.Y.; Guo, Y.B.; Sealy, M.P.; Liu, Z.Q. Energy consumption and process sustainability of hard milling with tool wear progression. J. Mater. Process. Technol. 2016, 229, 305–312. [Google Scholar] [CrossRef]
- Meng, Y.; Sun, X.; Dong, S.; Wang, Y.; Liu, X. Cutting energy consumption modelling of end milling cutter coated with AlTiCrN. Coatings 2023, 13, 679. [Google Scholar] [CrossRef]
- Meng, Y.; Dong, S.; Sun, X.; Wei, S.; Liu, X. Cutting energy consumption modeling by considering tool wear and workpiece material properties for multi-objective optimization of machine tools. Coatings 2024, 14, 691. [Google Scholar] [CrossRef]
- Lv, J.; Tang, R.; Jia, S. Therblig-based energy supply modeling of computer numerical control machine tools. J. Clean. Prod. 2014, 65, 168–177. [Google Scholar] [CrossRef]
- Jia, S.; Tang, R.; Lv, J. Therblig-based energy demand modeling methodology of machining process to support intelligent manufacturing. J. Intell. Manuf. 2014, 25, 913–931. [Google Scholar] [CrossRef]
- Feng, Z.; Zhang, H.; Li, W.; Yu, Y.; Guan, Y.; Ding, X. Exergy Loss Assessment Method for CNC Milling System Considering the Energy Consumption of the Operator. Processes 2023, 11, 2702. [Google Scholar] [CrossRef]
- Shin, S.J.; Woo, J.; Rachuri, S.; Meilanitasari, P. Standard data-based predictive modeling for power consumption in turning machining. Sustainability 2018, 10, 598. [Google Scholar] [CrossRef]
- Zhang, C.; Jiang, P. Sustainability evaluation of process planning for single CNC machine tool under the consideration of energy-efficient control strategies using random forests. Sustainability 2019, 11, 3060. [Google Scholar] [CrossRef]
- Brillinger, M.; Wuwer, M.; Hadi, M.A.; Haas, F. Energy prediction for CNC machining with machine learning. CIRP J. Manuf. Sci. Technol. 2021, 35, 715–723. [Google Scholar] [CrossRef]
- Bustillo, A.; Pimenov, D.Y.; Mia, M.; Kapłonek, W. Machine-learning for automatic prediction of flatness deviation considering the wear of the face mill teeth. J. Intell. Manuf. 2021, 32, 895–912. [Google Scholar] [CrossRef]
- Xie, D.; Chen, G.R.; Wang, F.; Zhu, J.Q. Modeling of CNC machine tool energy consumption and optimization study based on neural network and genetic algorithm. Appl. Mech. Mater. 2012, 195, 770–776. [Google Scholar] [CrossRef]
- Kant, G.; Sangwan, K.S. Predictive modelling for energy consumption in machining using artificial neural network. Procedia CIRP 2015, 37, 205–210. [Google Scholar] [CrossRef]
- Meng, Y.; Dong, S.M.; Sun, X.S.; Wei, S.L.; Liu, X.L. A mechanism-data hybrid-driven modeling method for predicting machine tool-cutting energy consumption. Adv. Manuf. 2025, 13, 167–195. [Google Scholar] [CrossRef]
- Chen, Y.; Zhang, H.; Yan, W.; Zhang, X.; Jiang, Z.; Liu, Y. A multi-dimensional data integration approach for machining system multi-level energy consumption modeling and prediction. Int. J. Comput. Integr. Manuf. 2025, 39, 245–266. [Google Scholar] [CrossRef]
- Zhang, H.; Yan, W.; Chen, C.; Liu, Y.; Liu, Q.; Liang, X.; Jiang, Z. A physics-informed multimodal transformer model for machining energy consumption prediction. J. Comput. Inf. Sci. Eng. 2026, 1–26. [Google Scholar] [CrossRef]
- Johnston, L.; Patel, V.; Cui, Y.; Balaprakash, P. Revisiting the problem of learning long-term dependencies in recurrent neural networks. Neural Netw. 2025, 183, 106887. [Google Scholar] [CrossRef]









| Assumptions | Description | Implications for Hybrid Model |
|---|---|---|
| Steady-state No-load | Assumes no-load power is constant for a given speed. | Learns the slow-varying temporal drift of the baseline power caused by thermal accumulation. |
| Constant Cutting Coefficients | Assumes specific cutting energy is static. | Predicts the dynamic increment in energy consumption resulting from tool wear progression. |
| Rigid System Dynamics | Assumes the machine structure is perfectly rigid. | Treats high-frequency vibrations as stochastic residuals to fine-tune the instantaneous power prediction. |
| Cutting Parameters | Value |
|---|---|
| Spindle Speed, n (r/min) | 1200/1400/1600/1800 |
| Feed Rate, vf (mm/min) | 100/120/140/160 |
| Cutting Depth, ap (mm) | 2/3/4/5 |
| Cutting Width, ae (mm) | 1/1.5/2/2.5 |
| Item | Information |
|---|---|
| CNC Machine Tool | XD-40A |
| Type | CNC Milling Machine |
| Workpiece Material | 6061-T6 Aluminum Alloy |
| Workpiece Dimensions | 100 × 100 × 100 mm3 |
| Tool Material | Carbide |
| Model | AL-3EL-D10.0 |
| Instrument Performance | Parameter |
|---|---|
| Data Acquisition System Range | ±10 V |
| Synchronous Sampling Rate | >50 kS/s |
| Acquisition Accuracy | <1.5 mV |
| Temperature Range | −40 °C to +70 °C |
| Number of System Synchronized Acquisition Channels | 48 channels |
| Personal Computer | Core Duo, i7 CPU |
| Current Transformer Accuracy | 0.2% |
| Voltage Transformer Accuracy | 0.2% |
| Information | Parameters |
|---|---|
| Tool Model | AL-3EL-D10 |
| Material | Carbide |
| Number of Teeth | 3 |
| Diameter | 10 mm |
| Cutting Edge Length | 45 mm |
| Helix Angle | 45° |
| Parameters | Data Model | Hybrid Model | Mechanistic Model |
|---|---|---|---|
| MAE (kJ) | 0.1753 ± 0.012 | 0.0413 ± 0.003 | 0.1972 |
| RMSE (kJ) | 0.2009 ± 0.015 | 0.0610 ± 0.002 | 0.2352 |
| R2 | 0.9141 ± 0.020 | 0.9936 ± 0.001 | 0.8616 |
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. |
© 2026 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.
Share and Cite
Lu, G.; Shui, Q.; Chen, G.; Zhu, Y.; Cui, H.; Meng, Y. A Mechanism–Data Hybrid Approach for Predicting Energy Consumption in CNC Machine Tools. Coatings 2026, 16, 265. https://doi.org/10.3390/coatings16020265
Lu G, Shui Q, Chen G, Zhu Y, Cui H, Meng Y. A Mechanism–Data Hybrid Approach for Predicting Energy Consumption in CNC Machine Tools. Coatings. 2026; 16(2):265. https://doi.org/10.3390/coatings16020265
Chicago/Turabian StyleLu, Guangchao, Qin Shui, Guangjun Chen, Yingnan Zhu, Haiqin Cui, and Yue Meng. 2026. "A Mechanism–Data Hybrid Approach for Predicting Energy Consumption in CNC Machine Tools" Coatings 16, no. 2: 265. https://doi.org/10.3390/coatings16020265
APA StyleLu, G., Shui, Q., Chen, G., Zhu, Y., Cui, H., & Meng, Y. (2026). A Mechanism–Data Hybrid Approach for Predicting Energy Consumption in CNC Machine Tools. Coatings, 16(2), 265. https://doi.org/10.3390/coatings16020265

