Next Article in Journal
GazeRayHand: Combining Gaze Ray and Hand Interaction for Distant Object Manipulation
Previous Article in Journal
Estimation of Dynamic Error Parameters in a Measurement Chain Based on the Spectrum of Input Quantities
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Integration of RSM and Machine Learning for Accurate Prediction of Surface Roughness in Laser Processing

1
Faculty of Technical Sciences, University of Novi Sad, 21000 Novi Sad, Serbia
2
Faculty of Mechanical Engineering, University of Niš, 18000 Niš, Serbia
*
Author to whom correspondence should be addressed.
Appl. Sci. 2025, 15(13), 7064; https://doi.org/10.3390/app15137064
Submission received: 5 June 2025 / Revised: 19 June 2025 / Accepted: 22 June 2025 / Published: 23 June 2025
(This article belongs to the Section Mechanical Engineering)

Abstract

Featured Application

The proposed hybrid modeling approach, combining response surface methodology and regression tree learning, can be effectively applied to improve prediction accuracy in laser machining processes. It is particularly useful in industrial settings, where precise control of surface roughness is critical.

Abstract

This study investigates the modeling of surface roughness (Ra) in the laser cutting of EN 10130 steel process by integrating classical statistical and machine learning methods. First, a quadratic model was developed using response surface methodology (RSM) based on a Box–Behnken experimental design with 17 runs, using cutting speed, laser power, and auxiliary gas pressure as input parameters. Although the RSM model achieved an R2 value of 0.8227, there were still some nonlinear deviations between the predicted and experimental values. To improve the prediction accuracy, a regression tree algorithm was applied to model the residuals of the RSM output. The resulting hybrid model, which combines RSM predictions with machine learning-based corrections, yielded a higher R2 of 0.8889 and a lower RMSE compared to the original RSM model. A leave-one-out cross-validation (LOOCV) was performed to evaluate the generalization, which resulted in an RMSE of 0.3241 and an R2 of 0.6039. These findings confirm the effectiveness of the hybrid approach in capturing complex dependencies and improving prediction accuracy, highlighting its potential for advanced process modeling in laser machining.

1. Introduction

Laser cutting has become a fundamental technology in modern manufacturing due to its ability to deliver high precision and process a wide range of materials, including metals, polymers, and fiber-reinforced composites [1]. Despite these advantages, the industry is increasingly demanding tighter tolerances and better surface finishes. As a result, surface roughness (Ra) has become an important quality indicator, as it affects not only the aesthetic appeal but also the functional performance of components [2]. Even though laser cutting is a well-established technology, achieving good surface quality remains a challenge due to the complex and often nonlinear interactions between process parameters. For example, certain combinations of cutting speed and laser power can cause chaotic melt ejection [3,4,5]. Additional issues include gas pressure instabilities and material damage caused by overheating and resolidification [6]. These subtleties highlight the need for advanced modeling strategies capable of capturing the underlying physics while supporting robust process optimization.
Response surface methodology (RSM) is often used to develop empirical models that describe the relationship between input process parameters and output performance metrics. For example, Shrivastava et al. successfully applied a Box–Behnken RSM design to optimize surface roughness (Ra) and kerf width in the laser cutting of Inconel 718 sheets [7]. Their regression models demonstrated high predictive accuracy, with an R2 value of approximately 99%, identifying cutting speed and laser power as the most influential factors affecting cut quality. Wang et al. used RSM to develop quadratic models based on four input process parameters—oxygen pressure, pulse width, pulse frequency, and cutting speed—and two output responses: average kerf taper and surface roughness (Ra) [8]. The analysis of variance (ANOVA) results indicated good agreement between the experimental data and the predicted nonlinear regression model, with R2 values of approximately 97%. Similarly, Boudjemline et al. developed a multiple linear regression model to predict the maximum surface roughness height in CO2 laser cutting of Ti-6Al-4V alloys [9]. Their analysis showed that the cutting speed was the dominant factor for surface roughness, while the auxiliary gas pressure had a negligible influence within the investigated range. The model was validated using ANOVA and achieved a high coefficient of determination (R2) of 99.33%, confirming its appropriateness. Similarly, Ming systematically investigated the effects of process parameters, such as cutting speed, focal length, and laser power, on the temperature adjacent to the cut kerf and cutting surface roughness using RSM [10]. A central composite design (CCD) was employed for the experimental setup and ANOVA, which revealed the significance of each factor’s contribution to the responses. The resulting regression models demonstrated high accuracy in predicting both temperature distribution and surface roughness. Generally, these studies affirm RSM’s value as a transparent and statistically sound tool for surface quality prediction in laser-based manufacturing processes. It is worth noting, however, that these models were developed using relatively large experimental datasets, which likely contributed to the high R2 values.
Recent advances in machine learning (ML) have enabled highly accurate modeling of surface roughness in laser cutting processes, often more successfully traditional statistical approaches in predictive performance. Kusuma and Huang evaluated the performance of three machine learning models—support vector regression, random forest, and extreme learning machine—for predicting kerf width in pulsed laser cutting [11]. They indicated that the vibration features selected from the optimal base wavelet selection combined with the random forest model are efficient for forecasting the straight kerf width of the workpiece by pulsed laser cutting. Tercan et al. proposed a hybrid machine learning approach that combines clustering and classification to support laser cutting process planning by extracting meaningful patterns from time-consuming simulation data [12]. Their method enables designers to identify key parameter regions associated with high-quality cuts and gain valuable insights through interpretable models and visualization techniques. Chen et al. developed predictive models using decision trees, random forests, and support vector machines for surface roughness in the fiber laser cutting of aluminum, based on 81 experimental points [13]. Among the tested algorithms, the random forest model achieved the best performance, with an R2 of 0.981 and RMSE of 0.206, outperforming support vector regression (R2 = 0.959, RMSE = 0.298) and gradient boosting (R2 = 0.968, RMSE = 0.260). Tianhao et al. proposed a high-precision roughness prediction model for high-power laser bevel cutting based on a least-squares support vector machine augmented by a whale optimization algorithm [14]. The optimized model achieves a reasonable coefficient of determination of 0.9576 and shows great potential for the effective prediction of bevel surface roughness. These developments underscore the growing role of machine learning in predicting laser processing performance characteristics. Despite its predictive power, full industrial adoption remains limited. This is because of the transparency of the methods and explainability. Most importantly, studies to date have relied predominantly on purely data-driven machine learning models, without considering the underlying physical or mathematical relationships.
Several critical gaps in the current literature motivate the development of a hybrid RSM–ML framework, which is particularly suitable for applications with limited datasets. First, stand-alone RSM models are often unable to capture the nonlinear behavior of modern manufacturing processes. For example, Bose and Nandi highlighted the limitations of RSM in modeling complex interactions in wire EDM of hybrid titanium–matrix composites, suggesting that RSM alone may not provide sufficient accuracy in such complicated processes [15]. Similarly, comprehensive reviews emphasized the shortcomings of RSM in high-dimensional and nonlinear problem spaces, advocating the integration of intelligent algorithms to enhance modeling flexibility and accuracy [16,17]. Secondly, integrating RSM with ML techniques has shown promise in enhancing predictive accuracy. Gao et al. demonstrated that a hybrid model combining RSM with a whale optimization algorithm-optimized back-propagation neural network outperformed traditional RSM in optimizing laser-induced hybrid hardening processes, indicating the efficacy of such hybrid approaches in capturing complex process dynamics [18]. These findings align with those in the review by Piri et al., who observed that hybrid RSM–ML models consistently deliver better performance in process optimization across various advanced manufacturing domains [19]. Finally, rigorous validation strategies are essential to ensure the generalizability of prediction models [20,21]. Leave-one-out cross-validation is widely used in structural optimization and reliability analysis, as it provides nearly unbiased error estimates especially useful for small datasets [22]. However, the aforementioned method can be very computationally intensive. To overcome this, improved leave-one-out cross-validation techniques have been developed that incorporate hyperparameter tuning from the full training dataset to improve both the accuracy and efficiency of model evaluation [23].
This study presents a hybrid RSM–ML framework for predicting the surface roughness of laser-cut EN 10130 steel. By integrating the interpretability of the RSM with regression tree-based residual correction, the framework achieves significantly improved prediction accuracy. The modeling process begins with the development of a quadratic RSM model, which is refined by eliminating statistically nonsignificant terms. The residuals are then modeled using regression trees, effectively capturing nonlinear effects that were not considered in the original RSM formulation.
To ensure the robustness and generalizability of the model, verification is performed using leave-one-out cross-validation (LOOCV), a step that is often overlooked in similar studies. The proposed workflow offers a balanced approach that combines the transparency of RSM with the enhanced predictive capability of machine learning, providing a practical and adaptable solution for industrial applications where both model accuracy and interpretability are essential.
The paper is structured as follows: Section 2 describes the materials used, the methodology, and the experimental setup. Section 3 offers a discussion of the obtained results, their implications, and potential directions for future research. Finally, Section 4 summarizes the main conclusions and key findings of the study.

2. Materials and Methods

In this study, a hybrid modeling strategy was employed by combining the classical response surface methodology (RSM) with machine learning (ML). The RSM approach was applied to develop a regression model based on the Box–Behnken experimental design. Residuals between the experimental and predicted values of surface roughness were subsequently modeled using the regression tree algorithm (fitrtree). This enabled the correction of systematic deviations and improved the accuracy of the predictions. The final model combines RSM predictions with ML-based residual corrections, offering enhanced adaptability to nonlinear behavior. The process is illustrated in Figure 1.

2.1. Description of Experimental Setup

The experimental tests were carried out using a Glorystar GS4020 (Glorystar Laser Technology Co., Ltd., Dongguan, China) fiber laser cutting machine with a maximum laser power of 1.5 kW. This machine ensures high cutting precision and stability and is therefore suitable for processing various types of metal sheets.
The material used in this study was cold-rolled low-carbon steel of grade EN 10130, which is widely used in various industries due to its excellent surface finish and dimensional stability. The sheet thickness used for the experiments was 5 mm. During the laser process, the cutting speed, laser power, and gas pressure were varied. The laser power was set within a certain percentage of the maximum machine power (1.5 kW), while the cutting speed was selected to ensure efficient material separation and minimal thermal deformation. Oxygen was used as an auxiliary gas. The selected cutting modes are listed in Table 1.
An illustration of a steel sheet cutting experiment is presented in Figure 2. In all experiments, various laser cutting parameters were kept constant to ensure process stability and repeatability. Oxygen was used as the auxiliary gas, and a constant nozzle configuration with a double nozzle of 1.5 mm diameter was used. The cutting height was maintained at 0.7 mm, while the laser frequency was set to 5000 Hz. The laser focus position was set at −3.8 mm and the focus setting of the device was kept at +2.6. These parameters were chosen based on manufacturer recommendations to ensure consistent cutting conditions across all trials.
The surface roughness was evaluated with the average roughness parameter Ra, which was measured with a Mitutoyo Surftest SJ-210 (Mitutoyo Corporation, Kawasaki, Japan). The laser-cut surface usually consists of three different zones: the initial entry zone that occurs when the laser beam penetrates the material, a smooth zone that results from a stable cut, and a rough zone at the bottom, where the roughness is most pronounced. In this study, the width of the rough zone was used as a key indicator of cut quality, as it is the most sensitive to irregularities during processing. The roughness measurements were taken in the middle of this rough zone (Figure 3).

2.2. Box–Behnken Design

To investigate the effect of input parameters on surface roughness during laser cutting, a Box–Behnken design was used. This design is considered highly efficient, as it enables the development of a mathematical model and the assessment of parameter influence while minimizing the number of experiments, resulting in significant savings in both time and cost. The experimental results obtained in terms of surface roughness are shown in Table 2.

2.3. Response Surface Methodology

Response surface methodology (RSM) is a collection of statistical and mathematical techniques used to model and optimize the relationship between multiple input variables (factors) and a response (output). It is often used in process optimization, design of experiments (DoE), and predictive modeling. RSM usually involves the design of experiments (e.g., central composite design, Box–Behnken design) and the fitting of a regression model (usually a linear or quadratic model). The main objective of this method is to analyze the response surface to find optimal conditions.
Since surface roughness after laser cutting exhibits nonlinear behavior, it is necessary to develop nonlinear prediction models to achieve the best correlation between the predicted and experimental results. The RSM was used to represent the relationship between the input parameters and the output parameters, as shown in Equation (1).
Y = f v ,   P w ,   P + e r r o r
In this study, experimental errors are evaluated through residuals, and the response Y is modeled using a quadratic polynomial multiple regression (Equation (2)).
Y = c 0 + i = 1 3 c i x i + i = 1 3 c i i x i 2 + i < j 3 c i j x i x j
Here, c0 is the constant term, while ci, cii, and cij represent the coefficients of the linear, quadratic, and interaction terms, respectively. Using cutting speed (v), laser power (Pw), and assist gas pressure (P) as the three input parameters, the surface roughness response Y can be expressed by Equation (3).
Y = c 0 + c 1 v + c 2 P w + c 3 P + c 11 v 2 + c 22 P w 2 + c 33 P 2 + c 12 v P w + c 13 v P + c 23 P w P

2.4. Machine Learning Method—Decision Tree Regression

Decision tree regression (DTR) is a nonparametric supervised learning method used for predicting continuous outcomes by recursively partitioning the feature space. Unlike parametric approaches such as response surface methodology (RSM), which rely on predefined polynomial functions, DTR adaptively splits data into subgroups to minimize prediction error. In this study, DTR is employed to model and correct the residuals of the discrepancies between experimental measurements (Raexp) and RSM-predicted values (Rarsm). Since RSM may not fully capture complex nonlinear relationships in the data, DTR enhances predictive accuracy by learning the underlying patterns in these residuals.
The splitting process in DTR is governed by impurity reduction, typically measured using mean squared error (MSE). At each node, the algorithm evaluates potential splits across all features and thresholds, selecting the one that maximizes the decrease in MSE. The MSE for a given node is calculated as the average squared difference between the observed values and their mean within that node (Equation (4)):
M S E = 1 n i = 1 n ( y i y ¯ ) 2
where n represents the number of samples in the node, yi denotes the actual response value, and y ¯ is the mean response of the node. The quality of a split is quantified by the reduction in MSEMSE), computed as the difference between the parent node’s MSE and the weighted MSE of its child nodes (Equation (5)):
Δ M S E = M S E p a r e n t ( w L · M S E L + w R · M S E R )
where M S E p a r e n t is the MSE before the split, M S E L and M S E R are the MSE values for the left and right child nodes, and w L and w R are the proportions of samples in the left and right nodes.
To prevent overfitting, tree growth is constrained by stopping criteria such as the maximum number of splits (MaxNumSplits), minimum samples per leaf node, or a minimum improvement in impurity. These parameters control the model’s complexity, balancing bias and variance. By integrating DTR-corrected residuals with RSM predictions (Equation (6)),
Rahybrid = Rarsm + Residual,
the hybrid model achieves superior accuracy, particularly in capturing nonlinearities that the RSM alone might miss. This approach combines the interpretability of RSM with the flexibility of machine learning, offering a robust framework for predictive modeling.

3. Results and Discussion

3.1. Development of the RSM Model

For the purposes of this study, laser cutting experiments were designed using a Box–Behnken experimental design with three factors at three levels. The independent variables were cutting speed (A), laser power (B), and assist gas pressure (C). The dependent variable, or system response, was surface roughness. Initially, the significance of the model and its terms was determined through analysis of variance (ANOVA). Based on the statistical evaluation of the model’s adequacy and the significance of deviations from the model, a quadratic model was recommended for surface roughness and subsequently selected for further analysis. A backward elimination method was applied to remove nonsignificant terms, resulting in a reduced model containing only influential parameters. Table 3 presents the reduced ANOVA table with the significant factors retained.
The analysis of variance (ANOVA) indicated that the developed model is statistically significant, with a model F-value of 13.93 and only a 0.02% probability that such a high F-value could occur due to noise.
Factors A and B, as well as their quadratic terms (A2 and B2), were found to be significant (p-values less than 0.05), while factor C was excluded from the model due to its lack of statistical significance, according to the RSM analysis. Since the inclusion of nonsignificant terms can degrade model quality, a model reduction was performed to enhance predictive performance and simplify interpretation.
The lack of fit test revealed a significant mismatch between the model and the experimental data (lack of fit F-value of 11.08, p = 0.0171), suggesting that the model does not fully capture the variability in the response and could be further improved.
The reduced model, obtained by eliminating nonsignificant factors, will be used for further process optimization and prediction of surface roughness during laser processing. Its improved simplicity and maintained statistical significance make it suitable for reliable interpretation and practical application. The final model, in terms of actual factors, is given in Equation (7):
R a = 236.534 30.738 · v 5.143 · P w + 14.658 · v 2 + 0.030 · P w 2
The basic statistical data of the reduced quadratic model for processing productivity are presented in Table 4. The coefficient of determination (R-squared) is 0.8227, indicating a strong relationship between the model predictions and experimental data. Both the adjusted R-squared (0.7637) and the predicted R-squared (0.5898) are reasonably close to each other, which confirms the significance and reliability of the model. The adequacy of the model is further supported by the Adeq Precision value of 11.399, which is well above the recommended minimum of 4, indicating an adequate signal-to-noise ratio. In addition, the coefficient of variation (C.V. %) of 9.98% and the predicted residual sum of squares (PRESS) value of 1.85 further confirm the model’s significance and stability.

3.2. Influence of Input Parameters on Surface Roughness

The influence of each process parameter on surface roughness (Ra) was further analyzed using a perturbation diagram, which illustrates the effects of changing one factor at a time while keeping the others at their central values. As can be seen in Figure 4, cutting speed (A) has the greatest influence on Ra, followed by laser power (B), while auxiliary gas pressure (C) has a relatively small influence. The dominant influence of cutting speed can be attributed to the phenomenon of melt jet retardation at higher speeds, where the interaction between the molten material and the assist gas is less effective. This delay can lead to incomplete material removal and an increase in surface roughness. Laser power also has a significant impact on Ra, as more energy enters the cutting zone at higher power, increasing the amount of molten material and potentially creating a rougher surface if it is not ejected properly. Although gas pressure showed a limited impact on surface roughness within the experimental range, its presence remains essential for maintaining cut quality. It facilitates the efficient removal of molten material and prevents dross formation, contributing to cleaner and more stable cutting conditions.
To complement the qualitative analysis of the perturbation diagram (Figure 4), a quantitative sensitivity analysis is presented in Figure 5. The contribution of each significant factor from the reduced RSM model was calculated based on the normalized sum of squares from the ANOVA. As can be seen from the bar chart, the quadratic term A2 (cutting speed squared) had the greatest influence on surface roughness, contributing approximately 40.6%, followed by B2 (laser power squared) at 27.7%, A (cutting speed) at 20.4%, and B (laser power) at 11.2%.
These contributions reflect the nonlinear and dominant role of cutting speed in the laser cutting process. The strong influence of A2 indicates that both too low and too high cutting speeds can deteriorate the surface finish, probably due to the instability of the melt pool and insufficient material removal. Similarly, the influence of B2 suggests that the surface roughness also depends on the fine-tuning of the laser power: too low a power leads to incomplete cutting, while too high a power increases the molten material, causing rougher surfaces. The lower contribution of B confirms its secondary but nevertheless important role in the energy balance of the process.

3.3. Residual Modeling Using Regression Trees

The RSM model provided a statistically significant fit and revealed the key influences of individual process parameters on surface roughness. However, deviations between predicted and experimental values remained, with a coefficient of determination (R2) of 0.8227 and a root mean square error (RMSE) of 0.2169, indicating that further improvement in predictive accuracy was possible.
To address these residual discrepancies and capture nonlinearities not modeled by quadratic regression, a residual modeling approach using regression trees was implemented. Rather than predicting surface roughness directly, the algorithm was trained on residuals defined in Equation (6), representing the differences between experimental and RSM-predicted values.
This residual-based modeling strategy was chosen because the RSM model had already captured the dominant linear and quadratic trends. By applying regression trees only to the residuals, the model focused on identifying the remaining nonlinear structures, thereby reducing the risk of overfitting and preserving model interpretability.
The dataset consisted of 17 samples obtained from a Box–Behnken design, with cutting speed, laser power, and assist gas pressure as input variables. A grid search was conducted by varying the MaxNumSplits parameter from 1 to 10 to determine the optimal tree complexity. The best results were achieved with MaxNumSplits = 3, yielding a minimum RMSE of 0.1717. This indicates that a moderately complex regression tree was sufficient to capture the residual structure without overfitting a crucial consideration, given the limited number of samples.
The structure of the regression tree model is shown in Figure 6. Each internal node represents a binary partition based on a threshold value of one of the input parameters cutting speed, laser power, or auxiliary gas pressure chosen to minimize the prediction error. These decision rules divide the input space into regions with similar residual behavior. The end nodes (leaves) indicate the predicted correction values that are added to the RSM output, along with the number of samples associated with each region. The overall depth and branching pattern of the tree reflect the ability of the model to isolate localized nonlinear effects within the residuals. This graphical representation provides a transparent and interpretable view of how the hybrid model adjusts the original predictions to bring them more in line with the experimental data.
The resulting hybrid model, which combines RSM predictions with machine learning-based residual correction, achieved an improved R2 of 0.8889. This demonstrates that the regression tree successfully modeled the nonlinear deviations unaccounted for by the RSM model.
Figure 7 shows a comparison between the experimental surface roughness values, the predictions from the RSM model, and the corrected predictions from the hybrid model. The hybrid model matches the experimental data more closely across the entire range, especially in areas where the RSM model showed noticeable deviation.
The performance gains of the hybrid model are further quantified in Figure 8 and Figure 9, which compare the RMSE and R2 values, respectively. As shown in Figure 8, the hybrid model reduced the RMSE from 0.2169 µm to 0.1717 µm, representing a 20.85% reduction in prediction error. Similarly, Figure 9 shows that the R2 value increased from 0.8227 to 0.8889, corresponding to an 8.04% improvement in the explained variance.
This modeling strategy improves prediction accuracy by decomposing the problem into two levels: the RSM model captures the dominant trends, while the regression tree isolates complex nonlinear residual patterns that RSM cannot explain. By modeling only the residuals, rather than Ra directly, the tree avoids overfitting and focuses on local correction. This layered structure results in a better fit to experimental data, as reflected by the reduction in RMSE and the increase in R2.
One additional advantage of using regression trees is their interpretability. Unlike black-box models, the resulting decision rules can offer insight into specific interactions among input parameters that lead to systematic under- or overestimations in the base model.
In summary, the proposed hybrid modeling approach effectively combines the transparency of statistical regression with the adaptive capabilities of machine learning. This integration results in improved prediction accuracy and enhanced generalization, even when working with a limited experimental dataset.

3.4. Validation of the Hybrid Model Using LOOCV

Leave-one-out cross-validation (LOOCV) was employed to rigorously evaluate the generalizability of the developed hybrid model. In this approach, each of the 17 data points in the dataset was iteratively excluded from the training set and used as an independent test case. The regression tree model was retrained on the remaining samples, and the residual for the excluded point was predicted. This process was repeated for all data points, ensuring an unbiased assessment of model performance while mitigating the risk of overfitting, which is critical for small datasets.
RMSE and R2 in LOOCV are performance metrics that evaluate how well a model predicts and explains variance in the dependent variable during leave-one-out cross-validation. RMSE measures the average prediction error, while R-squared reflects how much variance is captured by the model. These metrics help assess generalization, especially for small datasets, but can be sensitive to outliers. Interpretation should consider model complexity and the potential for overfitting.
In this research, the LOOCV results revealed an RMSE of 0.3241 µm and an R2 of 0.6039, indicating that the predicted surface roughness (Ra) deviates by approximately 0.32 µm from experimental values. By applying LOOCV, the R2 obtained is considered acceptable, depending on the application area, with values ranging from approximately 0.2 to 0.9 (i.e., 20% to 90%) [24]. This variation reflects the differing levels of model performance required across various domains. This accuracy is acceptable for industrial applications, considering typical Ra values in the laser cutting range from 2 to 3 µm [25]. Although the performance declined compared to the training results (RMSE = 0.1717, R2 = 0.8889), LOOCV offers a realistic estimate of generalization. These findings confirm the practical value of the proposed model and provide a solid basis for the concluding observations in the next section.
As shown in Table 5, the R2 value obtained for the proposed hybrid model (≈0.89) is comparable to those reported in similar studies using traditional RSM approaches. For example, Safari et al. [26] and Vinoth [27] achieved R2 values of ≈0.93 using Box–Behnken and Taguchi designs, respectively, with a similar number of experimental trials. Salem et al. [28] reported an R2 of ≈0.90 based on 32 experiments. Although our study involved only 17 experimental points, the predictive performance remains consistent with these references, highlighting the effectiveness of the proposed hybrid approach.
These are often constrained by practical limitations such as machine settings, control accuracy, and technological stability during processing. Despite these constraints, the hybrid model successfully captured key process relationships, demonstrating its applicability, even with a limited dataset. It is also well recognized in the statistical literature that what is considered a good R2 depends heavily on the field and context. According to published sources, R2 values in the range of 0.60 to 0.90 are generally regarded as acceptable to strong for engineering and manufacturing processes, particularly when using empirical models such as RSM or hybrid learning frameworks [29]. In this regard, the obtained R2 of ≈0.89 supports the practical validity of the proposed model.

4. Conclusions

This study presented a hybrid modeling approach for predicting surface roughness (Ra) in laser cutting by combining response surface methodology (RSM) with machine learning-based residual correction. A quadratic RSM model was initially developed using a Box–Behnken design, with cutting speed, laser power, and auxiliary gas pressure as input parameters. Although the RSM model achieved a reasonable fit (R2 = 0.8227), it showed limitations in capturing certain nonlinear relationships between the predicted and experimental values. To address this, a regression tree algorithm was applied to model the residuals of the RSM predictions, resulting in a significant improvement in accuracy. The final hybrid model demonstrated enhanced predictive performance, achieving an R2 of 0.8889 and a reduced RMSE compared to the standalone RSM model.
Leave-one-out cross-validation (LOOCV) further confirmed the model’s generalization capability, yielding an RMSE of 0.3241 µm and an R2 of 0.6039. Although lower than the training performance, these results validate the model’s robustness when applied to limited experimental datasets. Comparative analysis with existing approaches such as random forest (RMSE = 0.05 µm, R2 = 0.91) demonstrated the competitiveness of the proposed hybrid method, particularly in balancing predictive accuracy and interpretability.
The findings underscore the benefits of integrating classical statistical techniques with machine learning for modeling complex manufacturing processes. The hybrid approach not only enhances prediction accuracy but also preserves interpretability, making it suitable for real-world applications where data availability is limited. Future research could explore the integration of alternative machine learning algorithms or extend this methodology to additional machining parameters and material types.

Author Contributions

Conceptualization, D.R.; Methodology, M.S.; Investigation, B.S.; Resources, M.T.; Writing—original draft, M.M.; Writing—review and editing, D.R. All authors have read and agreed to the published version of the manuscript.

Funding

This research has been supported by the Ministry of Science, Technological Development and Innovation (Contract No. 451-03-137/2025-03/200156) and the Faculty of Technical Sciences, University of Novi Sad, through the project “Scientific and Artistic Research Work of Researchers in Teaching and Associate Positions at the Faculty of Technical Sciences, University of Novi Sad 2025” (No. 01-50/295).

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

All data supporting the findings of this study are included in the article.

Conflicts of Interest

The authors declare no conflicts of interest.

References

  1. Mushtaq, R.T.; Wang, Y.; Rehman, M.; Khan, A.M.; Mia, M. State-of-the-art and trends in CO2 laser cutting of polymeric materials—A review. Materials 2020, 13, 3839. [Google Scholar] [CrossRef] [PubMed]
  2. Girdu, C.C.; Gheorghe, C.; Radulescu, C.; Cirtina, D. Influence of process parameters on cutting width in CO2 laser processing of hardox 400 steel. Appl. Sci. 2021, 11, 5998. [Google Scholar] [CrossRef]
  3. Luo, Y.; Wang, X.; Wu, D. Quality investigation of alumina ceramic laser cutting based on vapor-to-melt ratio. J. Laser Appl. 2018, 30, 032002. [Google Scholar] [CrossRef]
  4. Alsaadawy, M.; Dewidar, M.; Said, A.; Maher, I.; Shehabeldeen, T.A. A comprehensive review of studying the influence of laser cutting parameters on surface and kerf quality of metals. Int. J. Adv. Manuf. Technol. 2024, 130, 1039–1074. [Google Scholar] [CrossRef]
  5. Snehashis, P.; Finšgar, M.; Gotlih, J.; Brajlih, T.; Banerjee, P.; Yapar, Ö.; Lojen, G.; Bončina, T.; Drstvenšek, I. Analyzing properties of semi-molten powder granules in laser powder bed fusion. J. Prod. Eng. 2023, 26, 23–29. [Google Scholar] [CrossRef]
  6. Chianese, G.; Hayat, Q.; Jabar, S.; Franciosa, P.; Ceglarek, D.; Patalano, S. A multi-physics CFD study to investigate the impact of laser beam shaping on metal mixing and molten pool dynamics during laser welding of copper to steel for battery terminal-to-casing connections. J. Mater. Process. Technol. 2023, 322, 118202. [Google Scholar] [CrossRef]
  7. Shrivastava, P.K.; Singh, B.; Shrivastava, Y.; Pandey, A.K.; Nandan, D. Investigation of optimal process parameters for laser cutting of Inconel-718 sheet. Proc. Inst. Mech. Eng. Part C J. Mech. Eng. Sci. 2020, 234, 1581–1597. [Google Scholar] [CrossRef]
  8. Wang, J.; Sun, Z.; Gu, L.; Azimy, H. Investigating the effect of laser cutting parameters on the cut quality of Inconel 625 using Response Surface Method (RSM). Infrared Phys. Technol. 2021, 118, 103866. [Google Scholar] [CrossRef]
  9. Boudjemline, A.; Boujelbene, M.; Bayraktar, E. Surface quality of Ti-6Al-4V titanium alloy parts machined by laser cutting. Eng. Technol. Appl. Sci. Res. 2020, 10, 6062–6067. [Google Scholar] [CrossRef]
  10. Li, M. Evaluation of the effect of process parameters on the cut quality in fiber laser cutting of duplex stainless steel using response surface method (RSM). Infrared Phys. Technol. 2021, 118, 103896. [Google Scholar] [CrossRef]
  11. Kusuma, A.I.; Huang, Y.-M. Performance comparison of machine learning models for kerf width prediction in pulsed laser cutting. Int. J. Adv. Manuf. Technol. 2022, 123, 2703–2718. [Google Scholar] [CrossRef]
  12. Tercan, H.; Khawli, T.A.; Eppelt, U.; Büscher, C.; Meisen, T.; Jeschke, S. Improving the laser cutting process design by machine learning techniques. Prod. Eng. 2017, 11, 195–203. [Google Scholar] [CrossRef]
  13. Cao, C.; Zhao, Y.; Song, Z.; Dai, D.; Liu, Q.; Zhang, X.; Meng, J.; Gao, Y.; Zhang, H.; Liu, G. Prediction and optimization of surface roughness for laser-assisted machining SiC ceramics based on improved support vector regression. Micromachines 2022, 13, 1448. [Google Scholar] [CrossRef]
  14. Li, T.; Cheng, W.; Xu, Z.; Su, L.; Yang, W. WOA-LSSVM-based roughness prediction method for 50mm thick Q235 carbon steel 40kW laser bevel cutting. In Proceedings of the Sixth International Conference on Optoelectronic Science and Materials (ICOSM 2024), Hefei, China, 6–8 September 2024; pp. 325–329. [Google Scholar]
  15. Bose, S.; Nandi, T. Parametric optimization of WEDM on hybrid titanium matrix composite using response surface methodology. Multiscale Multidiscip. Model. Exp. Des. 2021, 4, 187–194. [Google Scholar] [CrossRef]
  16. Sansana, J.; Joswiak, M.N.; Castillo, I.; Wang, Z.; Rendall, R.; Chiang, L.H.; Reis, M.S. Recent trends on hybrid modeling for Industry 4.0. Comput. Chem. Eng. 2021, 151, 107365. [Google Scholar] [CrossRef]
  17. Al-Sabaeei, A.M.; Alhussian, H.; Abdulkadir, S.J.; Giustozzi, F.; Napiah, M.; Jagadeesh, A.; Sutanto, M.; Memon, A.M. Utilization of response surface methodology and machine learning for predicting and optimizing mixing and compaction temperatures of bio-modified asphalt. Case Stud. Constr. Mater. 2023, 18, e02073. [Google Scholar] [CrossRef]
  18. Zhang, Q.; Ling, J.; Chen, Z.; Wu, G.; Yu, Z.; Wang, Y.; Zhou, J.; Yao, J. Optimization of Laser-Induced Hybrid Hardening Process Based on Response Surface Methodology and WOA-BP Neural Network. Appl. Sci. 2025, 15, 1975. [Google Scholar] [CrossRef]
  19. Piri, J.; Abdolahipour, M.; Keshtegar, B. Advanced machine learning model for prediction of drought indices using hybrid SVR-RSM. Water Resour. Manag. 2023, 37, 683–712. [Google Scholar] [CrossRef]
  20. Stepanić, P.; Dučić, N.; Stanković, N. Development of Artificial Neural Network models for vibration classification in machining process on Brownfield CNC machining center. J. Prod. Eng. 2024, 27, 16–20. [Google Scholar] [CrossRef]
  21. Bajić, D.; Đurđev, M.; Prvulović, S.; Stanisavljev, S.; Ćoćkalo, D.; Đorđević, L. Impact of cutting parameters on surface roughness in aluminum alloys machining: A review of machine learning models for key parameter identification. J. Prod. Eng. 2024, 27, 29–37. [Google Scholar] [CrossRef]
  22. Qiu, J. An analysis of model evaluation with cross-validation: Techniques, applications, and recent advances. Adv. Econ. Manag. Political Sci. 2024, 99, 69–72. [Google Scholar] [CrossRef]
  23. Pang, Y.; Wang, Y.; Lai, X.; Zhang, S.; Liang, P.; Song, X. Enhanced Kriging leave-one-out cross-validation in improving model estimation and optimization. Comput. Methods Appl. Mech. Eng. 2023, 414, 116194. [Google Scholar] [CrossRef]
  24. Lv, L.; Song, X.; Sun, W. Modify Leave-One-Out Cross Validation by Moving Validation Samples around Random Normal Distributions: Move-One-Away Cross Validation. Appl. Sci. 2020, 10, 2448. [Google Scholar] [CrossRef]
  25. Boujelbene, M.; El Aoud, B.; Bayraktar, E.; Elbadawi, I.; Chaudhry, I.; Khaliq, A.; Ayyaz, A.; Elleuch, Z. Effect of cutting conditions on surface roughness of machined parts in CO2 laser cutting of pure titanium. Mater. Today Proc. 2021, 44, 2080–2086. [Google Scholar] [CrossRef]
  26. Safari, M.; Abtahi, S.M.; Joudaki, J. Experimental Modeling, Statistical Analysis, and Optimization of the Laser-Cutting Process of Hardox 400 Steel. Materials 2024, 17, 2798. [Google Scholar] [CrossRef] [PubMed]
  27. Vinoth, V.; Sathiyamurthy, S.; Saravanakumar, S.; Senthilkumar, R. Integrating response surface methodology and machine learning for analyzing the unconventional machining properties of hybrid fiber-reinforced composites. Polym. Compos. 2024, 45, 6077–6092. [Google Scholar] [CrossRef]
  28. Salem, M.; Ismail, T.; Elattar, Y.; El-Wardany, A.; Salama, A. Comparative RSM analysis of CO2 laser and abrasive waterjet machining on Armox 500 T armored steel. Beni-Suef Univ. J. Basic Appl. Sci. 2025, 14, 34. [Google Scholar] [CrossRef]
  29. Ozili, P.K. The acceptable R-square in empirical modelling for social science research. In Social Research Methodology and Publishing Results: A Guide to Non-Native English Speakers; IGI Global: Hershey, PA, USA, 2023; pp. 134–143. [Google Scholar]
Figure 1. Workflow of RSM and machine learning integration for surface roughness prediction.
Figure 1. Workflow of RSM and machine learning integration for surface roughness prediction.
Applsci 15 07064 g001
Figure 2. Example of experimental cutting of a steel sheet.
Figure 2. Example of experimental cutting of a steel sheet.
Applsci 15 07064 g002
Figure 3. Example of measurements in the middle of a rough zone.
Figure 3. Example of measurements in the middle of a rough zone.
Applsci 15 07064 g003
Figure 4. Effect of process parameters on surface roughness.
Figure 4. Effect of process parameters on surface roughness.
Applsci 15 07064 g004
Figure 5. Percentage contribution of each significant term in the reduced quadratic model to the variance in surface roughness (Ra), based on ANOVA results.
Figure 5. Percentage contribution of each significant term in the reduced quadratic model to the variance in surface roughness (Ra), based on ANOVA results.
Applsci 15 07064 g005
Figure 6. Graphical representation of the regression tree model trained on RSM residuals.
Figure 6. Graphical representation of the regression tree model trained on RSM residuals.
Applsci 15 07064 g006
Figure 7. Comparison of experimental surface roughness values, RSM model predictions, and hybrid model predictions.
Figure 7. Comparison of experimental surface roughness values, RSM model predictions, and hybrid model predictions.
Applsci 15 07064 g007
Figure 8. Root mean square error (RMSE) of the RSM and hybrid models. The hybrid model reduced the RMSE by 20.85% compared to the RSM model.
Figure 8. Root mean square error (RMSE) of the RSM and hybrid models. The hybrid model reduced the RMSE by 20.85% compared to the RSM model.
Applsci 15 07064 g008
Figure 9. Coefficient of determination (R2) for the RSM and hybrid models. The hybrid model shows an 8.04% improvement in R2 over the RSM model, indicating a better fit to the experimental data.
Figure 9. Coefficient of determination (R2) for the RSM and hybrid models. The hybrid model shows an 8.04% improvement in R2 over the RSM model, indicating a better fit to the experimental data.
Applsci 15 07064 g009
Table 1. Parameters and their levels during laser cutting.
Table 1. Parameters and their levels during laser cutting.
FactorABC
Cutting speed [m/min]0.91.11.3
Laser power [%]808488
Gas pressure [bar]11.11.2
Table 2. Experimental results of surface roughness evaluation for the Box–Behnken design.
Table 2. Experimental results of surface roughness evaluation for the Box–Behnken design.
Code FactorsInput FactorsOutputs
No.x0x1x2x3v
[m/min]
Pw
[%]
P
[bar]
Ra
(µm)
Ra RSM
(µm)
Residual
(-)
Ra HYB
(µm)
1.1−1−100.9080.001.103.1513.0730.0783.071
2.11−101.3080.001.103.9943.6770.3174.011
3.1−1100.9088.001.102.5412.628−0.0872.480
4.11101.3088.001.102.9513.232−0.2813.084
5.1−10−10.9084.001.002.3992.3660.0332.315
6.110−11.3084.001.002.5852.970−0.3852.919
7.1−1010.9084.001.202.3422.366−0.0242.364
8.11011.3084.001.203.3202.9700.3503.304
9.10−1−11.1080.001.002.4932.789−0.2962.738
10.101−11.1088.001.002.7872.3440.4432.293
11.10−111.1080.001.202.692.789−0.0992.787
12.10111.1088.001.202.2692.344−0.0752.196
13.10001.1084.001.101.9642.082−0.1182.080
14.10001.1084.001.102.0252.082−0.0572.080
15.10001.1084.001.102.1592.0820.0772.080
16.10001.1084.001.102.1882.0820.1062.080
17.10001.1084.001.102.0992.0820.0172.080
Table 3. ANOVA for response surface reduced quadratic model.
Table 3. ANOVA for response surface reduced quadratic model.
SourceSum of SquaresdfMean SquareF Valuep-ValueSignificance
Model3.7140.9313.930.0002Significant
A-v0.7310.7310.960.0062None
B-Pw0.410.45.950.0313None
A21.4511.4521.790.0005None
B20.9910.9914.880.0023None
Residual0.8120.067NoneNoneNone
Lack of Fit0.7680.09611.080.0171Significant
Pure Error0.03540.008626NoneNoneNone
Cor Total4.5116NoneNoneNoneNone
Table 4. Basic statistical data of the adopted model.
Table 4. Basic statistical data of the adopted model.
StatisticValueStatisticValue
Std. Dev.0.26R-Squared0.8227
Mean2.59Adj R-Squared0.7637
C.V. %9.98Pred R-Squared0.5898
PRESS1.85Adeq Precision11.399
Table 5. Comparison of the obtained model with relevant literature in terms of R2.
Table 5. Comparison of the obtained model with relevant literature in terms of R2.
Study (Ref)MethodTrialsR2
Obtained modelRSM + Tree (Hybrid)17 (Box–Benkhen)≈0.89
Safari et al. [26]RSM15 (Box–Benkhen)≈0.93
Vinoth [27]RSM27 (Taguchi)≈0.93
Salem et al. [28]RSM32 (Taguchi)≈0.90
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.

Share and Cite

MDPI and ACS Style

Rodić, D.; Sekulić, M.; Savković, B.; Madić, M.; Trifunović, M. Integration of RSM and Machine Learning for Accurate Prediction of Surface Roughness in Laser Processing. Appl. Sci. 2025, 15, 7064. https://doi.org/10.3390/app15137064

AMA Style

Rodić D, Sekulić M, Savković B, Madić M, Trifunović M. Integration of RSM and Machine Learning for Accurate Prediction of Surface Roughness in Laser Processing. Applied Sciences. 2025; 15(13):7064. https://doi.org/10.3390/app15137064

Chicago/Turabian Style

Rodić, Dragan, Milenko Sekulić, Borislav Savković, Miloš Madić, and Milan Trifunović. 2025. "Integration of RSM and Machine Learning for Accurate Prediction of Surface Roughness in Laser Processing" Applied Sciences 15, no. 13: 7064. https://doi.org/10.3390/app15137064

APA Style

Rodić, D., Sekulić, M., Savković, B., Madić, M., & Trifunović, M. (2025). Integration of RSM and Machine Learning for Accurate Prediction of Surface Roughness in Laser Processing. Applied Sciences, 15(13), 7064. https://doi.org/10.3390/app15137064

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop