This study develops a machine learning-based energy consumption prediction model using operational load variables on a three-axis CNC milling machine to support manufacturing energy efficiency. Hourly sensor recordings over 90 days (2,160 hours) yielded 1,840 clean samples after filtering idle hours, missing values (3.2%), and outliers (4.1%). Six features (operating hours, machine load, spindle speed, machine temperature, number of products, and material type) were evaluated across Linear Regression, Random Forest, Artificial Neural Network (ANN-MLP), and XGBoost using a time-ordered 80% training (1,472) and 20% testing (368) split. Results showed that XGBoost achieved the best performance (RMSE 3.27 kWh, MAE 2.41 kWh, 0.956, and MAPE 7.0%), outperforming ANN ( 0.941), Random Forest ( 0.928), and Linear Regression ( 0.782). Feature importance analysis identified machine load (34.2%) and spindle speed (22.5%) as the dominant predictors, making the model effective for energy-efficient production scheduling and operational load management.
Copyrights © 2027