# Machine Learning Alternatives to Response Surface Models

Badih Ghattas, Diane Manzon

<figure><img src="image_1.png" /></figure>

## To cite this version:

Badih Ghattas, Diane Manzon. Machine Learning Alternatives to Response Surface Models. Mathematics, 2023, 11 (15), pp.3406. 10.3390/math11153406. hal-04186900

HAL Id: hal-04186900

https://amu.hal.science/hal-04186900v1

Submitted on 24 Aug 2023

HAL is a multi-disciplinary open access
archive for the deposit and dissemination of sci-
entific research documents, whether they are pub-
lished or not. The documents may come from
teaching and research institutions in France or
abroad, or from public or private research centers.

L'archive ouverte pluridisciplinaire HAL, est
destinée au dépôt et à la diffusion de documents
scientifiques de niveau recherche, publiés ou non,
émanant des établissements d'enseignement et de
recherche français ou étrangers, des laboratoires
publics ou privés.

<figure><img src="image_2.png" /></figure>

Distributed under a Creative Commons CC BY 4.0 - Attribution - International License
Article

# Machine Learning Alternatives to Response Surface Models

Badih Ghattas <fnref n="1" />,* and Diane Manzon <fnref n="2" />

**Abstract:** In the Design of Experiments, we seek to relate response variables to explanatory factors. Response Surface methodology (RSM) approximates the relation between output variables and a polynomial transform of the explanatory variables using a linear model. Some researchers have tried to adjust other types of models, mainly nonlinear and nonparametric. We present a large panel of Machine Learning approaches that may be good alternatives to the classical RSM approximation. The state of the art of such approaches is given, including classification and regression trees, ensemble methods, support vector machines, neural networks and also direct multi-output approaches. We survey the subject and illustrate the use of ten such approaches using simulations and a real use case. In our simulations, the underlying model is linear in the explanatory factors for one response and nonlinear for the others. We focus on the advantages and disadvantages of the different approaches and show how their hyperparameters may be tuned. Our simulations show that even when the underlying relation between the response and the explanatory variables is linear, the RSM approach is outperformed by the direct neural network multivariate model, for any sample size (<50) and much more for very small samples (15 or 20). When the underlying relation is nonlinear, the RSM approach is outperformed by most of the machine learning approaches for small samples ($n \le 30$).

**Keywords:** hyperparameter tuning; multi-output regression; Design of Experiments

MSC: 62J02

<figure><img src="image_3.png" /></figure>

### ✓ check for updates

**Citation:** Ghattas, B.; Manzon, D. Machine Learning Alternatives to Response Surface Models.

*Mathematics* **2023**, *11*, 3406. https://doi.org/10.3390/math11153406

Academic Editor: Tzong-Ru Tsai

Received: 29 June 2023

Revised: 28 July 2023

Accepted: 2 August 2023

Published: 4 August 2023

<figure><img src="image_4.png" /></figure>

**Copyright:** © 2023 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/).

## 1. Introduction

Design of Experiments (DoE) is used in any manufacturing process where, on the one hand, input parameters called factors affect a process or a formula and can be controlled, and on the other hand, output parameters of this process, which therefore represent the results, are called responses. For example, input parameters can be a temperature or a pH, and output parameters can be a yield or an impurity rate. Experiments must be performed to determine a relationship between factors and responses. DoE allows us to select these experiments in such a way that the position of the experimental points in the space to be studied is optimal. In particular, spatial modeling can be used to better understand the process and to predict the variation of responses throughout the variation range of the factors. In these experiments, responses and factors may be quantitative, qualitative, or a mix of both. The number of experiments is often very small, because each may need several days or even weeks, and the cost can be considerable. Among the important tasks that are used in the DoE approach, response surface methodology (RSM) estimates the values of all responses for any combination of factors' values. This is achieved by means of a regression of the responses on the factors. The most common approach considers each response separately and then uses polynomial regression, including or excluding interactions between factors. Polynomial regression suffers from several limitations, as follows: (i) the model is linear in the coefficients; (ii) to get a good approximation of the surfaces, higher degrees of polynomials may be necessary together with interactions, and this considerably increases the number of variables to include in the model and therefore

<footnote n="1">¹ CNRS, AMSE, Aix Marseille Université, 13001 Marseille, France</footnote>

<footnote n="2">² CNRS, Aix Marseille Université, I2M UMR 7373, 13009 Marseille, France; diane.manzon@gmail.com</footnote>

<footnote>* Correspondence: badih.ghattas@univ-amu.fr</footnote>
the number of experiments to be performed; (iii) the model may only be estimated if the number of experiments is larger than the number of factors included in the model; and (iv) polynomial models are inappropriate in the case of nonlinear systems [1].

Several papers have suggested machine learning (ML) approaches as an alternative to polynomial regression. The approaches that are considered in the literature include Support Vector Machines (SVM) [1–6], Neural Networks (NN) [1,2,4,6–9], Random Forests (rf) [1,3,4,10], Boosting and its extension [1,3], Extra Tree regression (ET) [3,4] and Classification And Regression Trees (CART) [1]. In these papers, the authors compared some of these approaches only on real datasets, using specific settings with respect to the nature and dimensions of the data. As well as focusing on a specific dataset, the comparisons considered very few approaches at the same time and were based on very different metrics. In this work, we will mainly consider the contribution of ML with respect to the RSM; these approaches have been shown to be very efficient in various fields, such as ecology [11] and epidemiology [12].

In this paper, we give a state of the art of the ML approaches that have often been used as alternatives to polynomial regression in RSM, including direct multi-output approaches. We will briefly describe these approaches and compare them using simulation models in various situations with different sample sizes and over a real DoE case study. The simulations were actually limited to numerical variables; including categorical ones as input or output did not have any significant effect on our main results or conclusions. The advantage and the contribution of our work lies, on one hand, in the choices of the simulations; some responses are in favor of the RSM approach and others are not. On the other hand, to our knowledge, direct multivariate output approaches have never been used in this context.

This paper is organized as follows. Section 2 gives a summary of the polynomial RSM-based approach and a brief description of the most well-known ML approaches. Section 3 gives the state of the art for the applications of these approaches in various domains where DoE is practiced. In Section 4, we compare all of the ML approaches to polynomial regression on simulated multiple output datasets, varying sample sizes and optimizing the models’ hyperparameters. A real dataset is used for similar experiments. The last section includes our discussions and conclusion.

## 2. Response Surface Methodology

Among the many objectives of experimental design, Response Surface Methodology (RSM) [13] is used to determine the value of one or more outputs at any point in the experimental domain of interest [14] without carrying out an infinite number of experiments. This is achieved using a regression model of the form:

$$Y = f(X_1, X_2, \dots, X_K) + \epsilon$$

where $f$ is the unknown regression function. To estimate $f$, we need to make some hypothesis about its shape. Polynomial models are most commonly used to address this issue. Using high-degree polynomials, $f$ may be approximated correctly. This is a linear model in the coefficients. With $K$ factors and degree $d$, the number of coefficients of the model is $\frac{(K+d)!}{K!d!}$. According to the type of study, polynomial models of degree 1 or 2 are used because the number of observations is, in general, very small (often less than 20).

Let $U_k$ be the original $K$ controlled factors, which are also called the natural variables, whose space is called the experimental domain. These variables are generally on different scales, and they may bias the modeling results. Thus, they are often normalized and linearly transformed into codified variables $X_1, X_2, \dots, X_K$, which are dimensionless quantities and with the same range. The most commonly used transformation is $X_k = \frac{(U_k - U_k^0)}{\Delta U_k}$, where $U_k^0 = \frac{(maxU_k + minU_k)}{2}$ is called the central value and $\Delta U_k = \frac{(maxU_k - minU_k)}{2}$ is the step. The transformed variables $(X_k)_{k=1,...,K}$ lie in the interval $[-1, 1]$, and the $n \times K$ matrix
$X = (X_k)_{k=1,...,K}$ is called the experimental design, where $n$ is the sample size. A polynomial model of degree 2 may be written as:

$$Y = \beta_0 + \sum_{k=1}^{K} \beta_k X_k + \sum_{k=1}^{K} \beta_{kk} X_k^2 + \sum_{1 \le j < k \le K} \beta_{j,k} X_j X_k$$

where $Y$ is the response and $\beta$ are the unknown coefficients. Once the design of the experiments is carried out and the data are available, the coefficients of the model are estimated by ordinary least squares, and their estimate is given by :

$$b = (X'X)^{-1}X'Y$$

where $X = (1, X_1, X_2, ..., X_K, X_1^2, X_2^2, ..., X_K^2, X_1X_2, X_1X_3, ..., X_{K-1}X_K)$ is the model matrix, $X'$ is the transpose of $X$, $Y$ is the response, $X'X$ is the information matrix, and $(X'X)^{-1}$ is the dispersion matrix.

Test points may be used to validate the model, or an analysis of the variance may be performed. After validation, the model is used to predict the variation of responses throughout the experimental domain represented by a response surface (Figure 1). These predictions can then be used to construct a Design Space, which is a region in which the response specifications will be achieved with a fixed probability [15]. Nevertheless, due to the small sample sizes available in experimental designs, polynomial models of degree 2 may give very poor estimation for surface responses.

<figure><img src="image_5.png" /><figcaption>Figure 1. Example of surface responses [16].</figcaption></figure>

Alternative models have been proposed for several years. ML models present more flexible methods of estimating a response surface function: they are nonparametric and nonlinear models, and may even be efficient when the number of experiments is small compared to the number of factors.

### 3. Machine Learning Approaches

In this section, we will give a brief description of the most commonly used approaches in ML, as follows: k-nearest neighbors (knn), CART, Ensemble models (Bagging, Boosting, and rf), SVM, and NN.

#### 3.1. knn

This is one of the simplest ML approaches that may be used in regression and in classification [17]. It is also quite different from all of the other approaches, in that the
model estimation and prediction are embedded. Once the number of neighbors *k* is fixed, for any new observation *x*, the method seeks its *k* nearest neighbors within the learning set. The prediction for *x* is the average of the neighbors' outputs in regression, or the majority vote in classification. The decision rule may be refined using, for instance, weighted averages or weighted majority votes, where weights may be inversely proportional to the distances of the neighbors from *x*. Note that the distance used to identify neighbors is a hyperparameter for this approach, together with *k*.

## 3.2. CART

Classification and Regression Trees [18] are based on recursive partitioning of the input space using rectangles. These partitions are represented by a sequence of binary splitting rules of the form $X_m < s$, where $X_m$ is one of the input variables and $s$ is a threshold over it. The split at each stage of the partitioning is optimized by an exhaustive search looking for the couple variable and threshold that minimizes the heterogeneity of the obtained subsamples. Heterogeneity is measured with respect to the output $y$. When the output is continuous, the deviance is used (the variance multiplied by the sample size). For discrete output, entropy or Gini criteria are used.

CART is the most popular nonlinear and nonparametric method when one wants to understand how the model relates the outputs to the explanatory variables. It is one of the few methods which is graphically representable.

## 3.3. Ensemble Methods

The idea of ensemble methods, in their simplest approach, is to build *K* bootstrap samples of the dataset at hand, adjust a model chosen from within a class of functions (e.g., decision trees) for each bootstrap sample (denoted $f_k$), and then use the *K* models for predictions. In regression, the prediction by the ensemble is a weighted average of the *K* predictions given from each $f_k$. In classification, it is a weighted majority vote over the *K* predictions given by the models $f_k$.

Several variants of ensemble methods exist, differing either in the way in which the bootstrap samples are generated, in the estimation of each $f_k$, in the way in which the individual models $f_k$ are combined, or in the algorithm used to estimate the whole process.

Random Forests (rf; [19]) are among the most well-known and used approaches. This approach combines trees built over bootstrap samples by simple averages in regression and majority vote in classification. The trees that are built in rf may be very big, because they are not optimized, and the choice of the splits at each node in the trees is made on a small subset of variables chosen at random. Because bootstrap samples are independent, random forests may be parallelized.

Boosting [20] is quite different because the trees built over bootstrap samples are obtained sequentially; weights $w_i$ are associated to each observation in the original dataset, and at each step of the algorithm, a tree $f_k$ is built and tested over the original dataset. Observations whose prediction at step *k* is wrong will have their weight increased. The modified weights are used at the next step *k* + 1 for the next bootstrap sample. Each tree that is built in the ensemble has a weight $W_k$ related to its performance, and the final output is a weighted majority vote in classification and a weighted average in regression. The trees' estimates and their weights may be obtained using a gradient approach, as is applied in the gradient boosting method (gbm) [21].

Extreme gradient boosting (xgboost [22]) is another gradient boosting algorithm, which employs some additional tricks to estimate the parameters (i.e., trees and their weights). The optimization is carried out globally at the level of each split in the different trees and, as in rf, splits are optimized over a randomly sampled subset of covariates. The loss function optimized in the algorithm uses regularization over the weights and, optionally, a shrinkage of each tree added to the ensemble.
### 3.4. Support Vector Machines

Support vector machines [23] seek a linear separation of observations, like linear regression, but minimize a loss function based on the margins. In binary classification, the optimal regression is the hyper-plane, which perfectly separates the two classes and stays the farthest distance possible from its nearest points from the two classes. This hyper-plane may be easily found if the classes are linearly separable. If they are not, then the dataset is projected using nonlinear transformations in a much higher space where linear separation may be guaranteed. The linear transformations that are used in this case are expressed using kernel functions, among which the most commonly used are polynomial and radial kernels. These kernels, together with the optimization algorithm used to find the optimal hyper-plane, depend in general on several hyperparameters that must be fixed or tuned by the user. We will denote svmPoly (resp. svmRadial) as the support vector regression using polynomial (resp. radial) kernel.

Support Vector Machines may show high performance when the data are linearly separable, and are very efficient for large datasets. They also have a very solid mathematical justification.

### 3.5. Neural Networks

NNs, and specifically multi-layer perceptron (mlp) [17], are designed to handle multiple outputs. An mlp is composed of successive layers, each having a fixed number of neurons. Each neuron of a layer receives information (its inputs) from all of the neurons of the previous layers and outputs a nonlinear transformation $\phi$ of a linear combination of its inputs. In Figure 2, the left-hand panel shows a simple neuron having $d$ inputs $x_1, x_2, \dots, x_d$. This neuron will output the value:

$$ \phi(\sum_{j=0}^{d} w_j x_j) $$

where the $w_j$ are the weights $w_0 = b, x_0 = 1$, and $\phi$ is a nonlinear function. The right-hand panel in Figure 2 shows an mlp with one hidden layer containing three neurons. Various types of layers may also be used to design a NN. We shall mainly use the fully connected layers (also called dense layers).

<figure><img src="image_6.png" /><figcaption>**Figure 2.** Left-hand panel: a neuron with $d$ inputs. Right-hand panel: a NN with a one-dimensional input and output, and one hidden layer containing three neurons.</figcaption></figure>

Once the structure of the network is specified (number of layers and number of neurons per layer), all of the weights of the NN that are unknown are estimated. To achieve this, a loss function should be specified (mean squared error for regression), together with an optimization algorithm (typically gradient-based algorithms). In some situations, specific activation layers are added to the networks, mainly for the last layer (softmax for multi-class learning, sigmoid for multi-label learning).
Neural networks are among the most difficult to tune because of the large number of hyperparameters that may be involved in the structure of the network and in the choice of the optimization algorithms. For small datasets, they may be unstable due to random initializations of the weights within the training.

### 3.6. Multidimensional Output Approaches

In many situations, the output variable to be predicted may be multidimensional in dimension $q$; multi-target regression, multi-label learning, distribution learning, semantic segmentation (for images), or time series. Various approaches may be used to tackle this situation. Direct multi-output regression is the simplest approach, which consists of using one model per output component. In this case, one assumes that the output components are independent. Chained regression is another approach that accounts for dependence among output variables. The output variables should first be ranked, and one model is learnt for each output, as follows: for output variable $j$, the original explanatory variables $X$ are used as input, together with the predictions of all of the $j-1$ outputs already modelled. In this approach, the result depends strongly on the order used for the responses.

Some supervised learning algorithms also have the ability to jointly consider the $q$ output variables within the same model, which is the case for the example of NN, and also regression trees [24].

In classical regression trees, the output variable $y$ is used to compute the deviance, that is, the splitting criterion of a node $t$:

$$ \text{Deviance}(t) = \sum_{i \in t} (y_i - \bar{y}_t)^2 $$

where $\bar{y}_t$ is the empirical mean of $y$ in node $t$ (which corresponds to a subset of the original sample). When $y$ is multidimensional, $y \in R^q$, the deviance is easily generalized [24]:

$$ \text{Deviance}(t) = \sum_{i \in t} \|y_i - \bar{y}_t\|_2^2 $$

where $\|\cdot\|_2$ stands for the Euclidean norm in $R^q$. In this case, the values assigned to each node and each leaf of the tree are the $q$ dimensional vectors $\bar{y}_t$. The rest of the algorithm is similar to the one-dimensional output. We will denote this approach as CARTmv.

The main advantage of direct multiple-output approaches is that they may account for dependencies between the different outputs. CARTmv and its variants have been widely used in various applications.

### 3.7. Hyperparameters and Their Tuning

The performance of any ML algorithm highly depends on the choice of its hyperparameters. Each approach uses several hyperparameters, from one to almost ten. In most cases, these parameters have to be optimized, which is often achieved using cross-validation. Tuning may require excessive computation times, depending on the number of hyperparameters to be adjusted. Details about the tuning process and the hyperparameters used will be given in the experiments section.

### 3.8. Metrics Used to Compare the Models

Analysis of variance is generally used to evaluate the performance of polynomial models in RSM. Depending on the problem under study, it can be observed that the variation in outputs may not be due to the variation in inputs. Different criteria may be used to assess and compare the accuracy of the prediction obtained using any regression model. Let $n$ be the size of the sample used to evaluate the models, $y_i$ be the observed value of the response for observation $i$, $\bar{y}_i$ be the average of responses in the sample, and $\hat{y}_i$ be the predicted value of the response for observation $i$. Among the most used metrics, we can find:
* Root Mean Square Error, $RMSE = \sqrt{\frac{\sum_{i=1}^{n}(y_i - \hat{y}_i)^2}{n}}$

* Mean Absolute Error, $MAE = \frac{1}{n} \sum_{i=1}^{n} |y_i - \hat{y}_i|$

* Mean Absolute Percentage Error, $MAPE = \frac{1}{n} \sum_{i=1}^{n} \frac{|y_i - \hat{y}_i|}{y_i}$

* Determination Coefficient, $R^2 = 1 - \frac{\sum_{i=1}^{n}(y_i - \hat{y}_i)^2}{\sum_{i=1}^{n}(y_i - \bar{y})^2}$

* Akaike Information Criterion, $AIC = 2k - 2\ln(L)$, where k is the number of parameters to be estimated in the model and L is the maximum likelihood function of the model

Other, less well-known or used metrics also appear in the literature:

* The explained variance by the model is the proportion of the variance due to the factors, $EV = 1 - \frac{var(y - \hat{y})}{var(y)}$

* The Nash and Sutcliffe Efficiency is equivalent to the $R^2$ but uses absolute differences rather than quadratic, $NSE = 1 - \frac{\sum_{i=1}^{n} |y_i - \hat{y}_i|}{\sum_{i=1}^{n} |y_i - \bar{y}|}$, $-\infty < NSE \le 1$

* The agreement index *d* is a standardized measure of the degree of model prediction error, $d = 1 - \frac{\sum_{i=1}^{n} |y_i - \hat{y}_i|}{\sum_{i=1}^{n} (|y_i - \bar{y}| + |\hat{y}_i - \bar{y}|)}$, $0 < d \le 1$

* The average absolute deviations from a central point (this metric is defined and used in [8], but the name given by the authors does not seem appropriate for us as it is not in line with their definition), $AAD(\%) = 100 \times \frac{1}{n} \sum_{i=1}^{n} \frac{\hat{y}_i - y_i}{y_i}$

The objective is to minimize $RMSE$, $MAE$, $MAPE$, $AIC$, and $AAD$, and to maximize $R^2$, $EV$, $NSE$, and *d*. The results encountered in the literature show that, in general, when different metrics are used for comparisons, they are very often concordant with respect to the objectives.

When the output *y* is multidimensional, any of these criteria may be used by computing its average over all the dimensions.

## 4. Comparisons between RSM and ML Approaches

A comparison of these response surface models with ML has been made, mainly in the field of mechanics and materials development.

ML models were compared to the traditional RSM polynomial approximation on a mechanical engineering case study [1]. The authors studied 63 continuous factors and 8 continuous responses combined to produce a one-dimensional output, with 56,512 observations. Polynomial models of degree 1 and 2, Least Absolute Shrinkage Selection Operator [25], Generalized Linear Model [26] and nonlinear ML models (Random Forest, Gradient Boosting Decision Tree [17], Multiple Layer Perceptrons and Support Vector Regression) were tested. Three evaluation criteria were used for the comparisons, as follows: Explained Variance (EV), Mean Absolute Percentage Error (MAPE) and Root Mean Square Error (RMSE). The results obtained show that all ML models outperform the polynomial models of the RSM approach. The authors also note that for larger training set sizes, nonlinear ML models were more accurate. A simulation of the data by the MC method is proposed to improve the estimation of the response surface function. Comparisons made in this work are based on a real dataset with large samples; the true underlying relation between the response and the factors is unknown. Meanwhile, eight original responses were combined to get a one-dimensional output.

In [2], ML models were used to predict coating thickness in a nonlinear electrostatic spray deposition process and compared with the conventional RSM model. Three continuous factors and one continuous response were considered with 30 observations. A polynomial model of degree 2 (RSM), NN (Back-Propagation algorithm [27]) and Support Vector Machine models were used. MAPE was calculated to evaluate the performance of these models. The results suggest that the SVM model gives the best prediction accuracy.

The objective of [3] was to predict the viscosity of nano-polymers used in an enhanced oil recovery method, using the response surface methodology and supervised machine
learning approaches. Five continuous factors and one continuous response were available, with 57 observations. The authors applied a polynomial model of degree 2 and analysis of variance, which did not show inadequacy for this model. However, the covariance matrix analysis showed that there is no linear relationship between the factors. Therefore, the authors also used nonlinear ML models, namely ridge regression [28], lasso regression, Support Vector Machine, Decision Tree, random forest, Extra tree regression [29], Gradient Boosting Regression and eXtreme Gradient Boosting [22]. Akaike Information Criterion (AIC), Mean Absolute Error (MAE), RMSE and coefficient of determination were used as evaluation and comparison criteria. The results show that the ensemble models give more accurate results than the RSM. Furthermore, the eXtreme Gradient Boosting model was the best model for response prediction.

In another study, where the objective was to predict the microhardness of a synthesized electroless Ni-P-TiO₂ coated aluminium composite, five continuous factors and one continuous response were considered with 36 observations [4]. The authors tested a polynomial model of degree 2 and four ML models (NN, SVM, rf and Extra Trees). Mean Square Error (MSE), MAE and determination coefficient were used as evaluation criteria to compare these models. The results show that the ET model presents the lowest MSE and MAE values. This model also had the greatest R².

Hybrid regression and ML models were tested to predict the ultimate condition of fiber-reinforced polymer-confined concrete [5]. The authors used an open database with eight continuous factors, two continuous responses and 765 observations. The authors compared some existing physical empirical models developed by other authors with the RSM and SVR models, together with a hybrid model combining SVR and RSM models. The following metrics were used to evaluate these models: RMSE, MAE, Nash and Sutcliffe Efficiency (NSE) and agreement index *d*. The authors show that the hybrid model presents a lower RMSE, lower MAE, higher NSE and higher *d* than other models.

Similar comparisons with ML approaches may also be found in other fields, such as pharmaceutical development. Ref. [6] worked on the effect of the core/shell technique on improving powder compactability. In this paper, two continuous factors, two binary factors and two continuous responses were measured in 28 experiments. The authors used the RSM approach, adjusting one model for each combination of the two binary factors levels, thus, four models for each response. For the ML approach, the authors compared an SVR model and four types of NN models: Backpropagation Neural Network (BPNN), Genetic Algorithm Based BPNN (GA-BPNN) [30], Mind Evolutionary Algorithm Based BPNN (MEA-BPNN) [31]), and Extreme Learning Machine (ELM) [32]. The evaluation criteria were the variance coefficient of the RMSE and RMSE for all models, and AIC for NN models only. The results show that NN models provide better prediction accuracy than other models.

The objective of the authors of [10] was to apply RSM and ML combined with data simulation to estimate metal recovery from freshwater sediments. In this work, three continuous factors were studied, six continuous responses were measured and 18 experiments were carried out. A polynomial model of degree 2 was estimated and used for data simulation. ML models, namely Lazy KStar [33] and rf algorithms, were also tested. A comparison of the models was made by means of RMSE and coefficient of determination. The results show that RSM models overestimate the observed responses by 19% compared to ML models.

Ref. [8] compared RSM and ML approaches (NN) to predict the efficient extraction of artemisinin (a precursor molecule of the most powerful antimalarial drugs on the market). In this work, three continuous factors were studied, one continuous response was measured and a central composite design was constructed with 20 experiments. For the RSM approach, ANOVA was calculated and shows that the variability of the response cannot be adequately predicted by the RSM model depending on the factors studied. This result can be explained by a complex relationship between variables. Multiple Layer Perceptrons (feed forward NN) were also tested. A comparison between these two models was performed by means of Absolute Average Deviation (AAD). The authors concluded that the NN model has better prediction accuracy.
Ref. [9] analysed NN models as an alternative modeling technique for datasets showing nonlinear relationships, using data from a tablet compression study. In this work, six continuous factors were studied, two continuous responses were measured, and 102 experiments were performed. The authors calculated a polynomial model of degree 2 with only important terms (p-value < 0.05) for the RSM approach and calculated a "generalized feed forward multiple layer perceptron network" for the ML approach. A comparison of the determination coefficients of these two models suggests that the NN model can more accurately predict the variation of the response.

A summary of these papers comparing RSM and ML approaches is given in Table 1.

<table><caption>**Table 1.** Summary of RSM vs. ML studies—PM: Polynomial Model, LASSO: Least Absolute Shrinkage Selection Operator, GLM: Generalized Linear Model, rf: random forest, GBDT: Gradient Boosting Decision Tree, MLP: Multiple Layer Perceptrons, SVR: Support Vector Regression, BPNN: Back-Propagation Neural Network, SVM: Support Vector Machine, CART: Classification and Regression Tree, ET: Extra Tree regression, GBR: Gradient Boosting Regression, xgboost: eXtreme Gradient Boosting, NN: Neural Network, GA-BPNN: Genetic Algorithm-Back Propagation Neural Network, MEA-BPNN: Mind Evolutionary Algorithm Based BPNN, ELM: Extreme Learning Machine, EV: Explained Variance, MAPE: Mean Absolute Percentage Error, RMSE: Root Mean Square Error, AIC: Akaike Information Criterion, MAE: Mean Absolute Error, R²: coefficient of determination, MSE: Mean Square Error, NSE: Nash and Sutcliffe Efficiency, d: agreement index, CV RMSE: Coefficient of Variance of the RMSE, AAD: Absolute Average Deviation.</caption><thead><tr><th>References</th><th># Factors</th><th># Responses</th><th>n</th><th>Models</th><th>Criteria</th></tr></thead><tbody><tr><td>[1]</td><td>63</td><td>1</td><td>56,512</td><td>PM (1)<br>PM (2)<br>Linear ML model-<br>LASSO, GLM<br>rf, GBDT<br>MLP, SVR</td><td>EV<br>MAPE<br>RMSE</td></tr><tr><td>[2]</td><td>3</td><td>1</td><td>30</td><td>PM (2)<br>BPNN, SVM</td><td>MAPE</td></tr><tr><td>[3]</td><td>5</td><td>1</td><td>57</td><td>PM (2)<br>Ridge regression<br>LASSO, SVM<br>CART, rf<br>ET, GBR<br>xgboost</td><td>AIC<br>MAE<br>RMSE<br>R<sup>2</sup></td></tr><tr><td>[4]</td><td>5</td><td>1</td><td>36</td><td>PM (2)<br>NN, SVM<br>rf, ET</td><td>MSE<br>MAE<br>R<sup>2</sup></td></tr><tr><td>[5]</td><td>8</td><td>2</td><td>765</td><td>PM (2), SVR<br>RSM-SVR<sup>1</sup></td><td>RMSE<br>MAE<br>NSE<br>d</td></tr><tr><td>[6]</td><td>2 (+2)<sup>2</sup></td><td>2</td><td>28</td><td>PM (2)<br>BPNN<br>GA-BPNN,<br>MEA-BPNN<br>ELM</td><td>CV RMSE<br>RMSE<br>AIC (for NN)</td></tr><tr><td>[10]</td><td>3</td><td>6</td><td>18</td><td>PM (2)<br>Lazy KStar<br>rf</td><td>RMSE, R<sup>2</sup></td></tr><tr><td>[8]</td><td>3</td><td>1</td><td>20</td><td>PM (2)<br>MLP</td><td>AAD</td></tr><tr><td>[9]</td><td>6</td><td>2</td><td>102</td><td>PM (2)<br>MLP</td><td>R<sup>2</sup></td></tr></tbody></table>

<footnote n="1">¹ hybrid model. ² binary factors.</footnote>
## 5. Experiments

In this section, we compare all of the ML approaches described in Section 3 to the polynomial model over a simulated dataset and a real dataset. We describe the datasets that we used, and how the different models are tuned and compared. All of the experiments were conducted using R software together with the RStudio Team [34] and the package “caret” [35].

### 5.1. Simulated Model

The simulated model that we use is based on two independent continuous factors, $X_1$ and $X_2$, following a uniform distribution over [-1, 1]. The three responses—denoted as $Y_1$, $Y_2$, and $Y_3$—are computed as follows:

$$Y_1 = 20 - X_1 - X_2 + 18X_1^2 + X_2^2 + 5X_1X_2 + \epsilon$$

$$Y_2 = X_1^3 \times \exp(\sin(X_2)) + \epsilon$$

$$Y_3 = |X_1 - 0.5| + |X_2 - 0.5| + \epsilon$$

where $\epsilon$ is a random noise with zero mean and standard deviation $\sigma$. The responses were chosen deliberately to present various types of function, as follows: polynomial of degree 2 ($Y_1$), nonlinear ($Y_2$), and nonlinear with discontinuities ($Y_3$). A graphical representation of these responses is shown in Figure 3.

<figure><img src="image_7.png" /><figcaption>Figure 3. Response surfaces of the simulated model.</figcaption></figure>

Using this simulated model, we generated a training sample of size $n$ and a test sample of the same size. Different values of $n$ were tested, as follows: 15, 20, 30 and 50 observations. Small samples were used for conformity with true DoE applications. For each simulated dataset of size $n$, we computed the RMSE metric. Simulations were repeated $K = 50$ times, and RMSE values were averaged over the different runs. We also varied the variance of the random noise, testing two values, $\sigma = 1$ and $\sigma = 2$.
### 5.1.1. Tuning the Models

We compared the RSM approach with all of the ML approaches described in Section 3: knn, CART, rf, gbm, xgboost, svmPoly, svmRadial, NN, CARTmv and NNmv. The models were trained using the model matrix as input, thus, the true factors together with their squares and interactions.

All ML models depend on several hyperparameters. To optimize the values of the hyperparameters, we applied the grid search approach. Thus, a grid was defined for each model's hyperparameter, and three-fold cross-validation with five repeats was used for the optimization. The optimal values of the hyperparameters were then used to learn the model over the training set and evaluate it on the test sample. Table 2 lists the hyperparameters for each method, together with a short description and the grid used for its optimization.

<table><caption>**Table 2.** Hyperparameter values tested for each method. knn: k-nearest neighbors, rf: random forest, svmPoly: support vector machine with polynomial kernel, svmRadial: support vector machine with radial basis function kernel, CART: Classification And Regression Tree, gbm: gradient boosting machine, xgboost: eXtreme Gradient Boosting, NN: Neural Network, CARTmv: Classification and Regression Tree with multivariate responses, NNmv: Neural Network with multivariate responses.</caption><thead><tr><th>Method</th><th>Hyperparameter Grid</th><th>Description</th></tr></thead><tbody><tr><td>knn</td><td>k: {1, ..., 10}</td><td>number of neighbors</td></tr><tr><td>CART</td><td>minsplit: {1, 5, 10}<br>cp: {0.002, 0.005, 0.01, 0.015, 0.02, 0.03}<br>minbucket: {1, 5, 10}</td><td>minimum number of observations to attempt a split<br>complexity parameter<br>minimum number of observations in a leaf</td></tr><tr><td>rf</td><td>minsize: {2, 5, 10}<br>mtry: {1, ..., 5}</td><td>minimum size of a node<br>number of variables to test for each split</td></tr><tr><td>gbm</td><td>n.trees: {50, 100, 150, 200, 250}<br>interactiondepth: {1, 2, 3, 4, 5}<br>shrinkage: 0.1<br>n.minobsinnode: 10</td><td>total number of trees to fit<br>maximum depth of trees<br>learning rate<br>minimum number of observations in leaves</td></tr><tr><td>xgboost</td><td>nrounds: {50, 100, 150, 200, 250}<br>max_depth: {1, 2, 3, 4, 5}<br>eta: {0.3,0.4}<br>gamma: 0<br>colsample_bytree: {0.6, 0.8}<br>min_child_weight: 1<br>subsample: [0.5, 0.625, 0.750, 0.875, 1}</td><td>maximum number of boosting iterations<br>maximum depth of a tree<br>control the learning rate<br>minimum loss reduction<br>subsample ratio of columns when constructing each tree<br>minimum sum of instance weight needed in a child<br>subsample ratio of the training instance</td></tr><tr><td>svmPoly</td><td>degree: {0.25, 0.5, 1, 2, 4}<br>scale: {0.001, 0.01, 0.1, 1, 10}<br>C<sub>poly</sub>: {1, 2, 3}</td><td>polynome degree<br>polynomial scaling factor<br>control parameter</td></tr><tr><td>svmRadial</td><td>sigma: constant value<br>C<sub>rad</sub>: {0.25, 0.5, 1, 2, 4, 8, 16, 32}</td><td>bandwidth of kernel function<br>control parameter</td></tr><tr><td>NN</td><td>layer1: {2, 4, 6, 8, 10}<br>layer2: {2, 4, 6, 8, 10}<br>layer3: {2, 4, 6, 8, 10}</td><td>number of hidden neurons in each layer</td></tr><tr><td>CARTmv</td><td>minsplit: {1,5,10}<br>cp: {0.002, 0.005, 0.01, 0.015, 0.02, 0.03}<br>minbucket: {1, 5, 10}</td><td>minimum number of observations to attempt a split<br>complexity parameter<br>minimum number of observations in a leaf</td></tr><tr><td>NNmv</td><td>layer1: {2, 4, 6, 8, 10}<br>layer2: {2, 4, 6, 8, 10}<br>layer3: {2, 4, 6, 8, 10}</td><td>number of hidden neurons in each layer</td></tr></tbody></table>
The average of the optimal values of the hyperparameters and their standard deviation for each approach and each response are given in Appendix A.1.

### 5.1.2. Results

Tables 3–6 show the average and standard deviation of the RMSE scores computed over the test samples for each response and averaged over $K = 50$ repetitions (columns, $S_1$, $S_2$ and $S_3$), and the average RMSE over the responses (column $S_{ave}$). We also reported the rank of each model with respect to its RMSE for each response ($R_1$, $R_2$ and $R_3$) and for the average over responses ($R_{ave}$). A model has rank 1 for a response if it has the smallest RMSE, and thus, is the best. Each table corresponds to a different sample size $n$. Boxplots of the RMSE over the $K = 50$ runs for all the models and the outputs are shown in Appendix A.2.

For $n = 50$ (Table 3), the best models for the three responses were multivariate NN (for $Y_1$), svm with polynomial kernel (for $Y_2$) and NN (for $Y_3$). The linear model had positions (2, 5, 5).

<table><caption>**Table 3.** RMSE and rank for each method and each response ($n = 50$). Gray cells highlight the best model.</caption><thead><tr><th>Method</th><th>S<sub>1</sub></th><th>S<sub>2</sub></th><th>S<sub>3</sub></th><th>S<sub>ave</sub></th><th>R<sub>1</sub></th><th>R<sub>2</sub></th><th>R<sub>3</sub></th><th>R<sub>ave</sub></th></tr></thead><tbody><tr><td>lm</td><td>1.067 ± 0.118</td><td>1.070 ± 0.136</td><td>1.116 ± 0.116</td><td>1.072</td><td>2</td><td>5</td><td>5</td><td>2</td></tr><tr><td>knn</td><td>1.629 ± 0.190</td><td>1.063 ± 0.112</td><td>1.093 ± 0.108</td><td>1.262</td><td>7</td><td>3</td><td>7</td><td>7</td></tr><tr><td>CART</td><td>1.715 ± 0.246</td><td>1.155 ± 0.154</td><td>1.192 ± 0.130</td><td>1.354</td><td>9</td><td>10</td><td>11</td><td>9</td></tr><tr><td>rf</td><td>1.338 ± 0.177</td><td>1.092 ± 0.138</td><td>1.123 ± 0.126</td><td>1.184</td><td>5</td><td>7</td><td>8</td><td>5</td></tr><tr><td>gbm</td><td>1.296 ± 0.161</td><td>1.067 ± 0.133</td><td>1.085 ± 0.132</td><td>1.149</td><td>4</td><td>4</td><td>6</td><td>4</td></tr><tr><td>xgb</td><td>1.390 ± 0.198</td><td>1.121 ± 0.147</td><td>1.150 ± 0.141</td><td>1.220</td><td>6</td><td>8</td><td>9</td><td>6</td></tr><tr><td>svmpoly</td><td>1.085 ± 0.120</td><td>1.054 ± 0.127</td><td>1.056 ± 0.129</td><td>1.065</td><td>3</td><td>1</td><td>2</td><td>1</td></tr><tr><td>svmrad</td><td>1.706 ± 0.626</td><td>1.072 ± 0.121</td><td>1.066 ± 0.119</td><td>1.281</td><td>8</td><td>6</td><td>3</td><td>8</td></tr><tr><td>NN</td><td>6.102 ± 1.870</td><td>1.061 ± 0.127</td><td>1.047 ± 0.109</td><td>2.737</td><td>10</td><td>2</td><td>1</td><td>10</td></tr><tr><td>CARTmv</td><td>8.331 ± 0.676</td><td>1.324 ± 0.147</td><td>1.151 ± 0.154</td><td>3.602</td><td>11</td><td>11</td><td>10</td><td>11</td></tr><tr><td>NNmv</td><td>1.063 ± 0.117</td><td>1.122 ± 0.130</td><td>1.070 ± 0.112</td><td>1.085</td><td>1</td><td>9</td><td>4</td><td>3</td></tr></tbody></table>

For $n = 30$ (Table 4), the best models for the three responses were, respectively: multivariate NN (for $Y_1$) and NN (for $Y_2$ and $Y_3$). With respect to the average of all response errors, svm with polynomial kernel is the best model in this case. Linear regression is at position 2 for $Y_1$, but at position 8 for the other two responses. These first results seem to be in agreement with the state of the art: ML approaches may provide better prediction estimates for the responses.

<table><caption>**Table 4.** RMSE and rank for each method and each response ($n = 30$). Gray cells highlight the best model.</caption><thead><tr><th>Method</th><th>S<sub>1</sub></th><th>S<sub>2</sub></th><th>S<sub>3</sub></th><th>S<sub>ave</sub></th><th>R<sub>1</sub></th><th>R<sub>2</sub></th><th>R<sub>3</sub></th><th>R<sub>ave</sub></th></tr></thead><tbody><tr><td>lm</td><td>1.177 ± 0.184</td><td>1.138 ± 0.184</td><td>1.123 ± 0.189</td><td>1.146</td><td>2</td><td>8</td><td>8</td><td>3</td></tr><tr><td>knn</td><td>2.036 ± 0.527</td><td>1.088 ± 0.129</td><td>1.067 ± 0.149</td><td>1.397</td><td>8</td><td>2</td><td>4</td><td>7</td></tr><tr><td>CART</td><td>2.003 ± 0.451</td><td>1.167 ± 0.192</td><td>1.140 ± 0.166</td><td>1.437</td><td>7</td><td>9</td><td>9</td><td>9</td></tr><tr><td>rf</td><td>1.587 ± 0.385</td><td>1.121 ± 0.135</td><td>1.117 ± 0.152</td><td>1.275</td><td>5</td><td>7</td><td>7</td><td>5</td></tr><tr><td>gbm</td><td>1.550 ± 0.327</td><td>1.116 ± 0.140</td><td>1.100 ± 0.159</td><td>1.255</td><td>4</td><td>5</td><td>6</td><td>4</td></tr><tr><td>xgb</td><td>1.601 ± 0.380</td><td>1.216 ± 0.155</td><td>1.194 ± 0.193</td><td>1.337</td><td>6</td><td>10</td><td>11</td><td>6</td></tr><tr><td>svmpoly</td><td>1.199 ± 0.207</td><td>1.100 ± 0.189</td><td>1.055 ± 0.135</td><td>1.118</td><td>3</td><td>4</td><td>2</td><td>1</td></tr><tr><td>svmrad</td><td>2.057 ± 0.798</td><td>1.093 ± 0.152</td><td>1.059 ± 0.146</td><td>1.403</td><td>9</td><td>3</td><td>3</td><td>8</td></tr><tr><td>NN</td><td>6.248 ± 1.930</td><td>1.084 ± 0.144</td><td>1.038 ± 0.142</td><td>2.790</td><td>10</td><td>1</td><td>1</td><td>10</td></tr><tr><td>CARTmv</td><td>8.104 ± 0.895</td><td>1.335 ± 0.222</td><td>1.184 ± 0.203</td><td>3.541</td><td>11</td><td>11</td><td>10</td><td>11</td></tr><tr><td>NNmv</td><td>1.164 ± 0.172</td><td>1.117 ± 0.165</td><td>1.081 ± 0.152</td><td>1.121</td><td>1</td><td>6</td><td>5</td><td>2</td></tr></tbody></table>

We obtained similar results for smaller sample sizes, $n = 20$ (Table 5), and $n = 15$ (Table 6): multivariate NN (for $Y_1$), knn (for $Y_2$) and NN (for $Y_3$) were the best models. Linear regression gets the worst results as the sample size decreases, particularly for $Y_2$ and $Y_3$, which are nonlinear responses.
Globally, the RSM approach seems to be inefficient when compared to ML approaches, mainly with small sample sizes and for responses that are originally nonlinear in the factors. Even for large samples (n = 50, compared to what is available in DoE), RSM is outperformed in our experiments for linear response. Finally, multivariate NNs show excellent performance in various situations, mainly for the linear response (Y₁) where they outperform the RSM for any sample size.

<table><caption>**Table 5.** RMSE and rank for each method and each response (n = 20). Gray cells highlight the best model.</caption><thead><tr><th>Method</th><th>S<sub>1</sub></th><th>S<sub>2</sub></th><th>S<sub>3</sub></th><th>S<sub>ave</sub></th><th>R<sub>1</sub></th><th>R<sub>2</sub></th><th>R<sub>3</sub></th><th>R<sub>ave</sub></th></tr></thead><tbody><tr><td>lm</td><td>1.205 ± 0.260</td><td>1.203 ± 0.233</td><td>1.196 ± 0.212</td><td>1.201</td><td>2</td><td>9</td><td>10</td><td>3</td></tr><tr><td>knn</td><td>2.309 ± 0.549</td><td>1.110 ± 0.195</td><td>1.064 ± 0.174</td><td>1.494</td><td>9</td><td>1</td><td>4</td><td>9</td></tr><tr><td>CART</td><td>2.091 ± 0.589</td><td>1.179 ± 0.231</td><td>1.139 ± 0.210</td><td>1.470</td><td>7</td><td>8</td><td>8</td><td>8</td></tr><tr><td>rf</td><td>1.761 ± 0.485</td><td>1.147 ± 0.180</td><td>1.091 ± 0.177</td><td>1.333</td><td>5</td><td>6</td><td>6</td><td>4</td></tr><tr><td>gbm</td><td>1.915 ± 0.444</td><td>1.141 ± 0.196</td><td>1.099 ± 0.189</td><td>1.385</td><td>6</td><td>5</td><td>7</td><td>6</td></tr><tr><td>xgb</td><td>1.706 ± 0.388</td><td>1.258 ± 0.197</td><td>1.174 ± 0.183</td><td>1.379</td><td>4</td><td>10</td><td>9</td><td>5</td></tr><tr><td>svmpoly</td><td>1.236 ± 0.236</td><td>1.127 ± 0.192</td><td>1.048 ± 0.164</td><td>1.137</td><td>3</td><td>3</td><td>3</td><td>2</td></tr><tr><td>svmrad</td><td>2.207 ± 0.979</td><td>1.123 ± 0.184</td><td>1.045 ± 0.149</td><td>1.458</td><td>8</td><td>2</td><td>2</td><td>7</td></tr><tr><td>NN</td><td>5.397 ± 2.040</td><td>1.140 ± 0.191</td><td>1.014 ± 0.153</td><td>2.517</td><td>10</td><td>4</td><td>1</td><td>10</td></tr><tr><td>CARTmv</td><td>7.959 ± 1.100</td><td>1.404 ± 0.254</td><td>1.270 ± 0.252</td><td>3.545</td><td>11</td><td>11</td><td>11</td><td>11</td></tr><tr><td>NNmv</td><td>1.172 ± 0.241</td><td>1.154 ± 0.196</td><td>1.064 ± 0.177</td><td>1.130</td><td>1</td><td>7</td><td>5</td><td>1</td></tr></tbody></table>

<table><caption>**Table 6.** RMSE and rank for each method and each response (n = 15). Gray cells highlight the best model.</caption><thead><tr><th>Method</th><th>S<sub>1</sub></th><th>S<sub>2</sub></th><th>S<sub>3</sub></th><th>S<sub>ave</sub></th><th>R<sub>1</sub></th><th>R<sub>2</sub></th><th>R<sub>3</sub></th><th>R<sub>ave</sub></th></tr></thead><tbody><tr><td>lm</td><td>1.436 ± 0.491</td><td>1.371 ± 0.512</td><td>1.293 ± 0.314</td><td>1.367</td><td>3</td><td>10</td><td>11</td><td>3</td></tr><tr><td>knn</td><td>2.670 ± 0.818</td><td>1.094 ± 0.192</td><td>1.063 ± 0.199</td><td>1.611</td><td>8</td><td>1</td><td>3</td><td>8</td></tr><tr><td>CART</td><td>2.424 ± 0.693</td><td>1.220 ± 0.302</td><td>1.151 ± 0.193</td><td>1.598</td><td>6</td><td>8</td><td>8</td><td>6</td></tr><tr><td>rf</td><td>2.149 ± 0.730</td><td>1.133 ± 0.218</td><td>1.079 ± 0.170</td><td>1.454</td><td>5</td><td>4</td><td>5</td><td>4</td></tr><tr><td>gbm</td><td>2.697 ± 0.741</td><td>1.187 ± 0.287</td><td>1.100 ± 0.161</td><td>1.661</td><td>9</td><td>6</td><td>7</td><td>9</td></tr><tr><td>xgb</td><td>1.910 ± 0.530</td><td>1.289 ± 0.290</td><td>1.221 ± 0.209</td><td>1.473</td><td>4</td><td>9</td><td>9</td><td>5</td></tr><tr><td>svmpoly</td><td>1.401 ± 0.425</td><td>1.194 ± 0.426</td><td>1.045 ± 0.199</td><td>1.213</td><td>2</td><td>7</td><td>2</td><td>2</td></tr><tr><td>svmrad</td><td>2.576 ± 1.080</td><td>1.162 ± 0.274</td><td>1.087 ± 0.229</td><td>1.608</td><td>7</td><td>5</td><td>6</td><td>7</td></tr><tr><td>NN</td><td>5.624 ± 2.260</td><td>1.102 ± 0.174</td><td>1.007 ± 0.182</td><td>2.577</td><td>10</td><td>2</td><td>1</td><td>10</td></tr><tr><td>CARTmv</td><td>8.267 ± 1.370</td><td>1.437 ± 0.282</td><td>1.247 ± 0.292</td><td>3.650</td><td>11</td><td>11</td><td>10</td><td>11</td></tr><tr><td>NNmv</td><td>1.332 ± 0.455</td><td>1.109 ± 0.185</td><td>1.077 ± 0.193</td><td>1.173</td><td>1</td><td>3</td><td>4</td><td>1</td></tr></tbody></table>

## 5.2. Use Case

We used the pharmaceutical application that is described in [16]. This article is based on the development of the high-performance liquid chromatography analytical method to quantify verapamil hydrochloride (which is a chemical molecule involved in headaches) and its impurities in tablets. In this use case, three continuous factors (buffer pH, ammonium hydroxide concentration in mobile phase and injection volume of test solutions) and five continuous responses (capacity factor for the first eluted peak denoted Y₁, resolution between two impurities denoted Y₂, signal-to-noise for an impurity denoted Y₃, resolution between two other impurities denoted Y₄, and retention time difference between oxidative impurity peak and the closest impurity denoted Y₅) were available. The authors used the RSM approach to determine optimal chromatographic conditions.

For the real case study, we conducted similar experiments as for the simulated dataset, replacing random generation with random splitting. Thus, for each of the 50 repetitions, the original dataset was randomly split using proportions 0.7 and 0.3 for learning and testing, respectively. The results that we obtained are given in Table 7. The best models with respect to the RMSE were xgb for Y₁, gbm for Y₂, multivariate NN for Y₃, NN for Y₄ and knn for Y₅. For the overall error, multivariate NN had the smallest error. For this real dataset, and for all responses, ML models gave better results than the RSM approach.
<table><caption>**Table 7.** RMSE and rank for each method and each response (DOE case study). Gray cells highlight the best model.</caption><thead><tr><th>Method</th><th>S<sub>1</sub></th><th>S<sub>2</sub></th><th>S<sub>3</sub></th><th>S<sub>4</sub></th><th>S<sub>5</sub></th><th>S<sub>ave</sub></th><th>R<sub>1</sub></th><th>R<sub>2</sub></th><th>R<sub>3</sub></th><th>R<sub>4</sub></th><th>R<sub>5</sub></th><th>R<sub>ave</sub></th></tr></thead><tbody><tr><td>lm</td><td>0.274 ± 0.115</td><td>7.69 ± 3.060</td><td>13.35 ± 5.080</td><td>5.59 ± 2.740</td><td>0.843 ± 0.338</td><td>5.55</td><td>8</td><td>11</td><td>11</td><td>10</td><td>11</td><td>11</td></tr><tr><td>knn</td><td>0.268 ± 0.081</td><td>3.15 ± 0.832</td><td>8.33 ± 1.540</td><td>4.80 ± 2.000</td><td>0.310 ± 0.078</td><td>3.37</td><td>6</td><td>8</td><td>2</td><td>6</td><td>1</td><td>4</td></tr><tr><td>CART</td><td>0.292 ± 0.094</td><td>3.10 ± 0.903</td><td>9.85 ± 2.130</td><td>6.30 ± 1.940</td><td>0.378 ± 0.109</td><td>3.98</td><td>9</td><td>6</td><td>10</td><td>11</td><td>9</td><td>10</td></tr><tr><td>rf</td><td>0.258 ± 0.086</td><td>2.54 ± 0.767</td><td>9.38 ± 1.880</td><td>4.99 ± 1.640</td><td>0.350 ± 0.075</td><td>3.50</td><td>5</td><td>3</td><td>7</td><td>7</td><td>7</td><td>8</td></tr><tr><td>gbm</td><td>0.256 ± 0.078</td><td>2.17 ± 0.778</td><td>8.90 ± 2.500</td><td>5.49 ± 1.460</td><td>0.376 ± 0.099</td><td>3.44</td><td>4</td><td>1</td><td>4</td><td>8</td><td>8</td><td>5</td></tr><tr><td>xgb</td><td>0.198 ± 0.085</td><td>2.23 ± 0.903</td><td>9.20 ± 2.140</td><td>4.28 ± 1.730</td><td>0.343 ± 0.095</td><td>3.25</td><td>1</td><td>2</td><td>6</td><td>3</td><td>5</td><td>2</td></tr><tr><td>svmpoly</td><td>0.254 ± 0.087</td><td>3.36 ± 1.510</td><td>9.20 ± 1.720</td><td>4.33 ± 1.770</td><td>0.347 ± 0.129</td><td>3.50</td><td>3</td><td>10</td><td>5</td><td>4</td><td>6</td><td>7</td></tr><tr><td>svmrad</td><td>0.242 ± 0.077</td><td>2.80 ± 0.985</td><td>8.89 ± 1.550</td><td>4.40 ± 1.550</td><td>0.329 ± 0.093</td><td>3.33</td><td>2</td><td>4</td><td>3</td><td>5</td><td>3</td><td>3</td></tr><tr><td>NN</td><td>0.273 ± 0.072</td><td>3.18 ± 1.090</td><td>9.77 ± 2.430</td><td>3.70 ± 1.770</td><td>0.316 ± 0.060</td><td>3.45</td><td>7</td><td>9</td><td>9</td><td>1</td><td>2</td><td>6</td></tr><tr><td>CARTmv</td><td>0.311 ± 0.077</td><td>2.89 ± 1.090</td><td>9.54 ± 1.600</td><td>5.52 ± 1.310</td><td>0.339 ± 0.088</td><td>3.72</td><td>10</td><td>5</td><td>8</td><td>9</td><td>4</td><td>9</td></tr><tr><td>NNmv</td><td>0.491 ± 0.616</td><td>3.13 ± 1.280</td><td>6.98 ± 1.940</td><td>3.98 ± 1.660</td><td>0.614 ± 0.467</td><td>3.04</td><td>11</td><td>7</td><td>1</td><td>2</td><td>10</td><td>1</td></tr></tbody></table>

## 6. Conclusions

In this work, using extensive simulations and a real use case, we have demonstrated that ML approaches present a very interesting alternative to response surface modeling in the DoE. We have tested a large panel of ML approaches, together with direct multi-output regression models (decision trees and NNs), which had never previously been used in this context. Clearly, various ML approaches outperformed RSM in all our experiments. RSM is very simple to use compared to ML approaches, due to the fact that several hyperparameters must be tuned correctly in ML algorithms. This requires optimization procedures over grids. The caret package is a good wrapper for this task and for most of the approaches that we have used, except for multi-output regression, where we implemented the grid search algorithm directly. Another constraint of caret is that not all the hyperparameters involved in each approach may be tuned, and thus it may be necessary to use other packages for this issue.

In our implementation, we used the factors together with their squares and interactions in the ML approaches. Very few papers are clear about this choice. We also tested the models including only the factors, and in some cases a loss in performance appeared for some ML algorithms, but the main conclusion was observed: several ML approaches outperformed classical RSM.

Many ML and deep learning approaches were not explored in this work (like [36–39]) and may have some advantages and drawbacks compared to those we have used. Due to the very large choice of such approaches, it is impossible to be exhaustive, so we have selected the ones most used and cited in the literature. In addition, further higher-polynomial-order factors could be included as input in the different models. Together with feature selection approaches, this may give better performance for various ML approaches.

**Author Contributions:** Conceptualization, B.G. and D.M.; methodology, B.G. and D.M.; software, D.M.; validation, B.G. and D.M.; formal analysis, B.G. and D.M.; investigation, B.G. and D.M.; resources, B.G. and D.M.; writing—original draft preparation, B.G. and D.M.; writing—review and editing, B.G. and D.M.; visualization, B.G. and D.M.; supervision, B.G.; project administration, D.M. All authors have read and agreed to the published version of the manuscript.

**Funding:** This research received no external funding.

**Data Availability Statement:** On request by email.

**Acknowledgments:** The authors gratefully acknowledge Claude Deniau and Sophie Declomesnil for their constructive comments on the manuscript.

**Conflicts of Interest:** The authors declare no conflict of interest.
# Appendix A. Supplementary Material

## Appendix A.1. Mean and Standard Deviation of Hyperparameter Values

In each of the $K = 50$ runs, the optimized values of the parameters were computed. The following tables give the mean and standard deviation of the hyperparameters for each response.

<table><caption>**Table A1.** Average and standard deviation (SD) of the hyperparameters for all responses with $\sigma = 1$ and $n = 50$.</caption><thead><tr><th>Hyperparameters</th><th>Average Y1</th><th>SD Y1</th><th>Average Y2</th><th>SD Y2</th><th>Average Y3</th><th>SD Y3</th></tr></thead><tbody><tr><td>k</td><td>4.06</td><td>1.268</td><td>9.34</td><td>2.21</td><td>8.4</td><td>2.304</td></tr><tr><td>minsplit</td><td>3</td><td>2.474</td><td>1.3</td><td>1.199</td><td>1.2</td><td>0.99</td></tr><tr><td>minbucket</td><td>1.8</td><td>1.852</td><td>5.4</td><td>1.641</td><td>5.6</td><td>1.37</td></tr><tr><td>cp</td><td>0.003</td><td>0.002</td><td>0.023</td><td>0.011</td><td>0.018</td><td>0.012</td></tr><tr><td>minsize</td><td>5.46</td><td>3.382</td><td>5.54</td><td>3.57</td><td>5.44</td><td>3.144</td></tr><tr><td>mtry</td><td>3.2</td><td>0.7</td><td>2.3</td><td>0.839</td><td>2.64</td><td>1.208</td></tr><tr><td>n.trees</td><td>93</td><td>58.038</td><td>50</td><td>0</td><td>54</td><td>28.284</td></tr><tr><td>interactiondepth</td><td>1.96</td><td>0.88</td><td>1.08</td><td>0.34</td><td>1.08</td><td>0.396</td></tr><tr><td>shrinkage</td><td>0.1</td><td>0</td><td>0.1</td><td>0</td><td>0.1</td><td>0</td></tr><tr><td>n.minobsinnode</td><td>10</td><td>0</td><td>10</td><td>0</td><td>10</td><td>0</td></tr><tr><td>nrounds</td><td>70</td><td>47.38</td><td>50</td><td>0</td><td>51</td><td>7.071</td></tr><tr><td>max_depth</td><td>1.2</td><td>0.495</td><td>1.36</td><td>1.064</td><td>1.12</td><td>0.521</td></tr><tr><td>eta</td><td>0.3</td><td>0</td><td>0.306</td><td>0.024</td><td>0.304</td><td>0.02</td></tr><tr><td>gamme</td><td>0</td><td>0</td><td>0</td><td>0</td><td>0</td><td>0</td></tr><tr><td>colsample_bytree</td><td>0.712</td><td>0.1</td><td>0.684</td><td>0.1</td><td>0.664</td><td>0.094</td></tr><tr><td>min_child_weight</td><td>1</td><td>0</td><td>1</td><td>0</td><td>1</td><td>0</td></tr><tr><td>subsample</td><td>0.743</td><td>0.178</td><td>0.828</td><td>0.187</td><td>0.833</td><td>0.197</td></tr><tr><td>degree</td><td>1.32</td><td>0.653</td><td>1.76</td><td>0.87</td><td>1.42</td><td>0.758</td></tr><tr><td>scale</td><td>2.312</td><td>3.661</td><td>0.141</td><td>0.292</td><td>0.412</td><td>1.977</td></tr><tr><td>C<sub>poly</sub></td><td>1.66</td><td>1.358</td><td>1.535</td><td>1.445</td><td>0.48</td><td>0.756</td></tr><tr><td>sigma</td><td>0.537</td><td>0.42</td><td>0.525</td><td>0.515</td><td>0.497</td><td>0.503</td></tr><tr><td>C<sub>rad</sub></td><td>5.08</td><td>7.359</td><td>0.35</td><td>0.196</td><td>0.46</td><td>1.1</td></tr><tr><td>layer1</td><td>4.96</td><td>1.355</td><td>5.04</td><td>1.525</td><td>3.64</td><td>1.549</td></tr><tr><td>layer2</td><td>5.12</td><td>1.223</td><td>4.64</td><td>1.306</td><td>3.64</td><td>1.601</td></tr><tr><td>layer3</td><td>4.92</td><td>1.523</td><td>5.04</td><td>1.355</td><td>3.72</td><td>1.715</td></tr><tr><td>minsplit</td><td>2.8</td><td>2.424</td><td>2.8</td><td>2.424</td><td>2.8</td><td>2.424</td></tr><tr><td>minbucket</td><td>2.4</td><td>2.268</td><td>2.4</td><td>2.268</td><td>2.4</td><td>2.268</td></tr><tr><td>cp</td><td>0.006</td><td>0.006</td><td>0.006</td><td>0.006</td><td>0.006</td><td>0.006</td></tr><tr><td>layer1</td><td>4</td><td>1.512</td><td>4</td><td>1.512</td><td>4</td><td>1.512</td></tr><tr><td>layer2</td><td>4.04</td><td>1.484</td><td>4.04</td><td>1.484</td><td>4.04</td><td>1.484</td></tr><tr><td>layer3</td><td>3.92</td><td>1.712</td><td>3.92</td><td>1.712</td><td>3.92</td><td>1.712</td></tr></tbody></table>

<table><caption>**Table A2.** Average and standard deviation (SD) of the hyperparameters for all responses with $\sigma = 1$ and $n = 30$.</caption><thead><tr><th>Hyperparameters</th><th>Average Y1</th><th>SD Y1</th><th>Average Y2</th><th>SD Y2</th><th>Average Y3</th><th>SD Y3</th></tr></thead><tbody><tr><td>k</td><td>3.08</td><td>1.047</td><td>8.28</td><td>2.241</td><td>8.52</td><td>2.297</td></tr><tr><td>minsplit</td><td>1.9</td><td>1.94</td><td>1.1</td><td>0.707</td><td>1.3</td><td>1.199</td></tr><tr><td>minbucket</td><td>1.3</td><td>1.199</td><td>5.7</td><td>1.199</td><td>5.7</td><td>1.199</td></tr><tr><td>cp</td><td>0.006</td><td>0.006</td><td>0.013</td><td>0.011</td><td>0.013</td><td>0.013</td></tr><tr><td>minsize</td><td>5.6</td><td>3.169</td><td>5.64</td><td>3.269</td><td>5.04</td><td>3.597</td></tr><tr><td>mtry</td><td>3.78</td><td>1.016</td><td>2.22</td><td>0.737</td><td>2.34</td><td>0.917</td></tr><tr><td>n.trees</td><td>113</td><td>62.93</td><td>57</td><td>26.745</td><td>51</td><td>7.071</td></tr><tr><td>interactiondepth</td><td>1.58</td><td>0.499</td><td>1.28</td><td>0.454</td><td>1.26</td><td>0.443</td></tr><tr><td>shrinkage</td><td>0.1</td><td>0</td><td>0.1</td><td>0</td><td>0.1</td><td>0</td></tr><tr><td>n.minobsinnode</td><td>10</td><td>0</td><td>10</td><td>0</td><td>10</td><td>0</td></tr><tr><td>nrounds</td><td>106</td><td>73.29</td><td>68</td><td>51.27</td><td>51</td><td>7.071</td></tr><tr><td>max_depth</td><td>2.06</td><td>1.449</td><td>1.86</td><td>1.414</td><td>1.74</td><td>1.44</td></tr><tr><td>eta</td><td>0.31</td><td>0.03</td><td>0.318</td><td>0.039</td><td>0.322</td><td>0.042</td></tr></tbody></table>
<table><caption>Table A2. *Cont.*</caption><thead><tr><th>Hyperparameters</th><th>Average Y1</th><th>SD Y1</th><th>Average Y2</th><th>SD Y2</th><th>Average Y3</th><th>SD Y3</th></tr></thead><tbody><tr><td>gamme</td><td>0</td><td>0</td><td>0</td><td>0</td><td>0</td><td>0</td></tr><tr><td>colsample_bytree</td><td>0.704</td><td>0.101</td><td>0.656</td><td>0.091</td><td>0.684</td><td>0.1</td></tr><tr><td>min_child_weight</td><td>1</td><td>0</td><td>1</td><td>0</td><td>1</td><td>0</td></tr><tr><td>subsample</td><td>0.69</td><td>0.189</td><td>0.745</td><td>0.197</td><td>0.735</td><td>0.198</td></tr><tr><td>degree</td><td>1.4</td><td>0.639</td><td>1.56</td><td>0.787</td><td>1.66</td><td>0.895</td></tr><tr><td>scale</td><td>1.824</td><td>3.359</td><td>0.139</td><td>0.293</td><td>0.252</td><td>1.421</td></tr><tr><td>C<sub>poly</sub></td><td>1.555</td><td>1.226</td><td>1.135</td><td>1.292</td><td>0.995</td><td>1.243</td></tr><tr><td>sigma</td><td>0.397</td><td>0.27</td><td>0.518</td><td>0.635</td><td>0.494</td><td>0.339</td></tr><tr><td>C<sub>rad</sub></td><td>6.16</td><td>6.973</td><td>0.68</td><td>2.24</td><td>0.345</td><td>0.214</td></tr><tr><td>layer1</td><td>4.96</td><td>1.228</td><td>4.64</td><td>1.588</td><td>3.68</td><td>1.684</td></tr><tr><td>layer2</td><td>5.52</td><td>0.953</td><td>4.96</td><td>1.228</td><td>4.24</td><td>1.791</td></tr><tr><td>layer3</td><td>5.32</td><td>1.186</td><td>4.04</td><td>1.784</td><td>4.12</td><td>1.637</td></tr><tr><td>minsplit</td><td>2.7</td><td>2.393</td><td>2.7</td><td>2.393</td><td>2.7</td><td>2.393</td></tr><tr><td>minbucket</td><td>1.5</td><td>1.515</td><td>1.5</td><td>1.515</td><td>1.5</td><td>1.515</td></tr><tr><td>cp</td><td>0.009</td><td>0.008</td><td>0.009</td><td>0.008</td><td>0.009</td><td>0.008</td></tr><tr><td>layer1</td><td>4.12</td><td>1.637</td><td>4.12</td><td>1.637</td><td>4.12</td><td>1.637</td></tr><tr><td>layer2</td><td>3.88</td><td>1.686</td><td>3.88</td><td>1.686</td><td>3.88</td><td>1.686</td></tr><tr><td>layer3</td><td>4.28</td><td>1.512</td><td>4.28</td><td>1.512</td><td>4.28</td><td>1.512</td></tr></tbody></table>

<table><caption>Table A3. Average and standard deviation (SD) of the hyperparameters for all responses with $\sigma = 1$ and $n = 20$.</caption><thead><tr><th>Hyperparameters</th><th>Average Y1</th><th>SD Y1</th><th>Average Y2</th><th>SD Y2</th><th>Average Y3</th><th>SD Y3</th></tr></thead><tbody><tr><td>k</td><td>2.88</td><td>0.849</td><td>8.3</td><td>2.485</td><td>8.54</td><td>2.786</td></tr><tr><td>minsplit</td><td>1.8</td><td>1.852</td><td>1.7</td><td>1.753</td><td>1.7</td><td>1.753</td></tr><tr><td>minbucket</td><td>1</td><td>0</td><td>4.7</td><td>2.215</td><td>5.2</td><td>1.852</td></tr><tr><td>cp</td><td>0.005</td><td>0.005</td><td>0.012</td><td>0.012</td><td>0.006</td><td>0.009</td></tr><tr><td>minsize</td><td>5.58</td><td>3.308</td><td>5.24</td><td>3.384</td><td>4.48</td><td>3.209</td></tr><tr><td>mtry</td><td>4.08</td><td>1.007</td><td>2.62</td><td>1.159</td><td>2.34</td><td>0.848</td></tr><tr><td>n.trees</td><td>72</td><td>55.476</td><td>51</td><td>7.071</td><td>59</td><td>40.013</td></tr><tr><td>interaction.depth</td><td>1</td><td>0</td><td>1</td><td>0</td><td>1</td><td>0</td></tr><tr><td>shrinkage</td><td>0.1</td><td>0</td><td>0.1</td><td>0</td><td>0.1</td><td>0</td></tr><tr><td>n.minobsinnode</td><td>10</td><td>0</td><td>10</td><td>0</td><td>10</td><td>0</td></tr><tr><td>nrounds</td><td>110</td><td>74.231</td><td>62</td><td>38.545</td><td>59</td><td>34.538</td></tr><tr><td>max_depth</td><td>2.72</td><td>1.356</td><td>2.26</td><td>1.601</td><td>1.68</td><td>1.332</td></tr><tr><td>eta</td><td>0.324</td><td>0.043</td><td>0.32</td><td>0.04</td><td>0.32</td><td>0.04</td></tr><tr><td>gamme</td><td>0</td><td>0</td><td>0</td><td>0</td><td>0</td><td>0</td></tr><tr><td>colsample_bytree</td><td>0.716</td><td>0.1</td><td>0.656</td><td>0.091</td><td>0.68</td><td>0.099</td></tr><tr><td>min_child_weight</td><td>1</td><td>0</td><td>1</td><td>0</td><td>1</td><td>0</td></tr><tr><td>subsample</td><td>0.67</td><td>0.169</td><td>0.75</td><td>0.192</td><td>0.725</td><td>0.192</td></tr><tr><td>degree</td><td>1.32</td><td>0.621</td><td>1.58</td><td>0.758</td><td>1.26</td><td>0.6</td></tr><tr><td>scale</td><td>2.33</td><td>3.652</td><td>0.488</td><td>1.975</td><td>0.223</td><td>1.411</td></tr><tr><td>C<sub>poly</sub></td><td>1.415</td><td>1.173</td><td>1.675</td><td>1.581</td><td>0.675</td><td>0.892</td></tr><tr><td>sigma</td><td>0.308</td><td>0.222</td><td>0.323</td><td>0.219</td><td>0.695</td><td>1.371</td></tr><tr><td>C<sub>rad</sub></td><td>7</td><td>9.318</td><td>0.455</td><td>0.562</td><td>0.485</td><td>0.64</td></tr><tr><td>layer1</td><td>4.76</td><td>1.333</td><td>4.08</td><td>1.614</td><td>3.68</td><td>1.731</td></tr><tr><td>layer2</td><td>5.36</td><td>1.174</td><td>4.44</td><td>1.68</td><td>4.04</td><td>1.641</td></tr><tr><td>layer3</td><td>5.6</td><td>0.808</td><td>3.52</td><td>1.644</td><td>4.08</td><td>1.85</td></tr><tr><td>minsplit</td><td>2.1</td><td>2.092</td><td>2.1</td><td>2.092</td><td>2.1</td><td>2.092</td></tr><tr><td>minbucket</td><td>1</td><td>0</td><td>1</td><td>0</td><td>1</td><td>0</td></tr><tr><td>cp</td><td>0.01</td><td>0.01</td><td>0.01</td><td>0.01</td><td>0.01</td><td>0.01</td></tr><tr><td>layer1</td><td>3.92</td><td>1.563</td><td>3.92</td><td>1.563</td><td>3.92</td><td>1.563</td></tr><tr><td>layer2</td><td>4.2</td><td>1.471</td><td>4.2</td><td>1.471</td><td>4.2</td><td>1.471</td></tr><tr><td>layer3</td><td>3.88</td><td>1.48</td><td>3.88</td><td>1.48</td><td>3.88</td><td>1.48</td></tr></tbody></table>
<table><caption>**Table A4.** Average and standard deviation (SD) of the hyperparameters for all responses with $\sigma = 1$ and $n = 15$.</caption><thead><tr><th>Hyperparameters</th><th>Average Y1</th><th>SD Y1</th><th>Average Y2</th><th>SD Y2</th><th>Average Y3</th><th>SD Y3</th></tr></thead><tbody><tr><td>k</td><td>2.74</td><td>0.853</td><td>7.16</td><td>2.691</td><td>7.84</td><td>2.985</td></tr><tr><td>minsplit</td><td>1.2</td><td>0.99</td><td>1.4</td><td>1.37</td><td>1.7</td><td>1.753</td></tr><tr><td>minbucket</td><td>1.1</td><td>0.707</td><td>4.8</td><td>2.157</td><td>4.5</td><td>2.315</td></tr><tr><td>cp</td><td>0.008</td><td>0.009</td><td>0.005</td><td>0.007</td><td>0.005</td><td>0.008</td></tr><tr><td>minsize</td><td>5.72</td><td>3.084</td><td>6.32</td><td>3.365</td><td>6.48</td><td>3.346</td></tr><tr><td>mtry</td><td>4.52</td><td>0.863</td><td>2.66</td><td>1.099</td><td>2.5</td><td>1.055</td></tr><tr><td>n.trees</td><td>107</td><td>90.356</td><td>81</td><td>70.631</td><td>55</td><td>29.014</td></tr><tr><td>interaction.depth</td><td>1</td><td>0</td><td>1</td><td>0</td><td>1</td><td>0</td></tr><tr><td>shrinkage</td><td>0.1</td><td>0</td><td>0.1</td><td>0</td><td>0.1</td><td>0</td></tr><tr><td>n.minobsinnode</td><td>10</td><td>0</td><td>10</td><td>0</td><td>10</td><td>0</td></tr><tr><td>nrounds</td><td>115</td><td>76.432</td><td>62</td><td>42.33</td><td>68</td><td>52.255</td></tr><tr><td>max_depth</td><td>2.6</td><td>1.539</td><td>2.52</td><td>1.581</td><td>2.76</td><td>1.611</td></tr><tr><td>eta</td><td>0.314</td><td>0.035</td><td>0.332</td><td>0.047</td><td>0.336</td><td>0.048</td></tr><tr><td>gamme</td><td>0</td><td>0</td><td>0</td><td>0</td><td>0</td><td>0</td></tr><tr><td>colsample_bytree</td><td>0.728</td><td>0.097</td><td>0.652</td><td>0.089</td><td>0.664</td><td>0.094</td></tr><tr><td>min_child_weight</td><td>1</td><td>0</td><td>1</td><td>0</td><td>1</td><td>0</td></tr><tr><td>subsample</td><td>0.72</td><td>0.185</td><td>0.68</td><td>0.194</td><td>0.685</td><td>0.188</td></tr><tr><td>degree</td><td>1.16</td><td>0.468</td><td>1.7</td><td>0.814</td><td>1.32</td><td>0.683</td></tr><tr><td>scale</td><td>2.492</td><td>3.814</td><td>0.872</td><td>2.726</td><td>0.257</td><td>1.42</td></tr><tr><td>C<sub>poly</sub></td><td>1.715</td><td>1.489</td><td>1.175</td><td>1.311</td><td>0.74</td><td>1.087</td></tr><tr><td>sigma</td><td>0.262</td><td>0.184</td><td>0.346</td><td>0.23</td><td>0.489</td><td>0.55</td></tr><tr><td>C<sub>rad</sub></td><td>3.5</td><td>3.066</td><td>1.435</td><td>3.188</td><td>1.51</td><td>3.361</td></tr><tr><td>layer1</td><td>4.52</td><td>1.446</td><td>3.92</td><td>1.614</td><td>4.04</td><td>1.784</td></tr><tr><td>layer2</td><td>5.32</td><td>1.186</td><td>4.72</td><td>1.604</td><td>4.52</td><td>1.607</td></tr><tr><td>layer3</td><td>5.44</td><td>0.993</td><td>3.48</td><td>1.798</td><td>3.72</td><td>1.807</td></tr><tr><td>minsplit</td><td>2.3</td><td>2.215</td><td>2.3</td><td>2.215</td><td>2.3</td><td>2.215</td></tr><tr><td>minbucket</td><td>1.2</td><td>0.99</td><td>1.2</td><td>0.99</td><td>1.2</td><td>0.99</td></tr><tr><td>cp</td><td>0.007</td><td>0.007</td><td>0.007</td><td>0.007</td><td>0.007</td><td>0.007</td></tr><tr><td>layer1</td><td>4.04</td><td>1.641</td><td>4.04</td><td>1.641</td><td>4.04</td><td>1.641</td></tr><tr><td>layer2</td><td>4.12</td><td>1.586</td><td>4.12</td><td>1.586</td><td>4.12</td><td>1.586</td></tr><tr><td>layer3</td><td>4.64</td><td>1.367</td><td>4.64</td><td>1.367</td><td>4.64</td><td>1.367</td></tr></tbody></table>

<table><caption>**Table A5.** Average and standard deviation (SD) of the hyperparameters for all responses of DoE case study.</caption><thead><tr><th>Hyperparameters</th><th>Average Y1</th><th>SD Y1</th><th>Average Y2</th><th>SD Y2</th><th>Average Y3</th><th>SD Y3</th><th>Average Y4</th><th>SD Y4</th><th>Average Y5</th><th>SD Y5</th></tr></thead><tbody><tr><td>k</td><td>6.893</td><td>2.833</td><td>7.398</td><td>2.736</td><td>6.867</td><td>2.983</td><td>6.928</td><td>2.832</td><td>7.354</td><td>2.723</td></tr><tr><td>minsplit</td><td>1.595</td><td>1.629</td><td>1.301</td><td>1.197</td><td>1.482</td><td>1.485</td><td>1.602</td><td>1.638</td><td>1.305</td><td>1.204</td></tr><tr><td>minbucket</td><td>4.274</td><td>2.392</td><td>3.771</td><td>2.500</td><td>4.133</td><td>2.433</td><td>4.253</td><td>2.398</td><td>3.744</td><td>2.503</td></tr><tr><td>cp</td><td>0.006</td><td>0.008</td><td>0.007</td><td>0.009</td><td>0.008</td><td>0.010</td><td>0.006</td><td>0.008</td><td>0.007</td><td>0.009</td></tr><tr><td>minsize</td><td>5.905</td><td>3.442</td><td>5.157</td><td>3.042</td><td>5.964</td><td>3.355</td><td>5.952</td><td>3.435</td><td>5.159</td><td>3.061</td></tr><tr><td>mtry</td><td>5.262</td><td>2.929</td><td>5.831</td><td>3.177</td><td>4.470</td><td>2.973</td><td>5.217</td><td>2.918</td><td>5.841</td><td>3.195</td></tr><tr><td>n.trees</td><td>83.330</td><td>72.950</td><td>69.280</td><td>56.220</td><td>70.480</td><td>58.450</td><td>83.730</td><td>73.300</td><td>69.510</td><td>56.520</td></tr><tr><td>interaction.depth</td><td>1.000</td><td>0.000</td><td>1.000</td><td>0.000</td><td>1.000</td><td>0.000</td><td>1.000</td><td>0.000</td><td>1.000</td><td>0.000</td></tr><tr><td>shrinkage</td><td>0.100</td><td>0.000</td><td>0.100</td><td>0.000</td><td>0.100</td><td>0.000</td><td>0.100</td><td>0.000</td><td>0.100</td><td>0.000</td></tr><tr><td>n.minobsinnode</td><td>10.000</td><td>0.000</td><td>10.000</td><td>0.000</td><td>10.000</td><td>0.000</td><td>10.000</td><td>0.000</td><td>10.000</td><td>0.000</td></tr><tr><td>nrounds</td><td>138.100</td><td>80.520</td><td>147.000</td><td>85.310</td><td>150.000</td><td>79.630</td><td>136.700</td><td>80.050</td><td>148.200</td><td>85.150</td></tr><tr><td>max_depth</td><td>2.786</td><td>1.440</td><td>2.928</td><td>1.536</td><td>3.000</td><td>1.514</td><td>2.771</td><td>1.443</td><td>2.939</td><td>1.542</td></tr><tr><td>eta</td><td>0.356</td><td>0.050</td><td>0.351</td><td>0.050</td><td>0.354</td><td>0.050</td><td>0.355</td><td>0.050</td><td>0.351</td><td>0.050</td></tr><tr><td>gamma</td><td>0.000</td><td>0.000</td><td>0.000</td><td>0.000</td><td>0.000</td><td>0.000</td><td>0.000</td><td>0.000</td><td>0.000</td><td>0.000</td></tr><tr><td>colsample_bytree</td><td>0.721</td><td>0.098</td><td>0.752</td><td>0.086</td><td>0.721</td><td>0.098</td><td>0.723</td><td>0.098</td><td>0.754</td><td>0.085</td></tr><tr><td>min_child_weight</td><td>1.000</td><td>0.000</td><td>1.000</td><td>0.000</td><td>1.000</td><td>0.000</td><td>1.000</td><td>0.000</td><td>1.000</td><td>0.000</td></tr><tr><td>subsample</td><td>0.625</td><td>0.178</td><td>0.619</td><td>0.155</td><td>0.604</td><td>0.143</td><td>0.626</td><td>0.178</td><td>0.619</td><td>0.156</td></tr><tr><td>degree</td><td>1.560</td><td>0.750</td><td>1.675</td><td>0.783</td><td>1.422</td><td>0.665</td><td>1.566</td><td>0.752</td><td>1.683</td><td>0.784</td></tr><tr><td>scale</td><td>1.235</td><td>3.072</td><td>1.226</td><td>3.093</td><td>1.695</td><td>3.612</td><td>1.237</td><td>3.090</td><td>1.241</td><td>3.109</td></tr><tr><td>C<sub>poly</sub></td><td>0.970</td><td>1.020</td><td>1.280</td><td>1.452</td><td>0.895</td><td>1.190</td><td>0.970</td><td>1.026</td><td>1.247</td><td>1.429</td></tr><tr><td>sigma</td><td>0.057</td><td>0.007</td><td>0.057</td><td>0.007</td><td>0.056</td><td>0.006</td><td>0.057</td><td>0.007</td><td>0.057</td><td>0.007</td></tr><tr><td>C<sub>rad</sub></td><td>3.330</td><td>4.385</td><td>3.602</td><td>5.383</td><td>3.873</td><td>7.118</td><td>3.322</td><td>4.411</td><td>3.634</td><td>5.408</td></tr></tbody></table>
<table><caption>Table A5. *Cont.*</caption><thead><tr><th>Hyperparameters</th><th>Average Y1</th><th>SD Y1</th><th>Average Y2</th><th>SD Y2</th><th>Average Y3</th><th>SD Y3</th><th>Average Y4</th><th>SD Y4</th><th>Average Y5</th><th>SD Y5</th></tr></thead><tbody><tr><td>layer1</td><td>4.024</td><td>1.657</td><td>3.639</td><td>1.566</td><td>4.313</td><td>1.696</td><td>4.000</td><td>1.653</td><td>3.659</td><td>1.565</td></tr><tr><td>layer2</td><td>3.905</td><td>1.580</td><td>3.976</td><td>1.638</td><td>3.880</td><td>1.541</td><td>3.928</td><td>1.576</td><td>3.951</td><td>1.632</td></tr><tr><td>layer3</td><td>3.786</td><td>1.584</td><td>3.373</td><td>1.651</td><td>3.518</td><td>1.611</td><td>3.807</td><td>1.581</td><td>3.366</td><td>1.659</td></tr><tr><td>minsplit</td><td>1.833</td><td>1.875</td><td>1.723</td><td>1.769</td><td>1.843</td><td>1.884</td><td>1.843</td><td>1.884</td><td>1.732</td><td>1.778</td></tr><tr><td>minbucket</td><td>4.929</td><td>2.064</td><td>4.976</td><td>2.030</td><td>4.795</td><td>2.151</td><td>4.916</td><td>2.073</td><td>4.963</td><td>2.039</td></tr><tr><td>cp.1</td><td>0.009</td><td>0.011</td><td>0.009</td><td>0.011</td><td>0.008</td><td>0.011</td><td>0.009</td><td>0.011</td><td>0.009</td><td>0.011</td></tr><tr><td>layer1</td><td>4.238</td><td>1.625</td><td>4.072</td><td>1.636</td><td>4.289</td><td>1.597</td><td>4.241</td><td>1.635</td><td>4.073</td><td>1.646</td></tr><tr><td>layer2</td><td>4.381</td><td>1.567</td><td>4.169</td><td>1.629</td><td>4.289</td><td>1.627</td><td>4.386</td><td>1.576</td><td>4.171</td><td>1.639</td></tr><tr><td>layer3</td><td>3.571</td><td>1.615</td><td>3.735</td><td>1.646</td><td>3.735</td><td>1.616</td><td>3.590</td><td>1.616</td><td>3.756</td><td>1.645</td></tr></tbody></table>

<figure><img src="image_8.png" /><figcaption>Figure A1. Response Y1: R = 50, n = 50, sd = 1.</figcaption></figure>

<figure><img src="image_9.png" /><figcaption>Figure A2. Response Y2: R = 50, n = 50, sd = 1.</figcaption></figure>
<figure><img src="image_10.png" /><figcaption>Figure A3. Response Y3: R = 50, n = 50, sd = 1.</figcaption></figure>

<figure><img src="image_11.png" /><figcaption>Figure A4. Response Y1: R = 50, n = 30, sd = 1.</figcaption></figure>
<figure><img src="image_12.png" /><figcaption>Figure A5. Response Y2: R = 50, n = 30, sd = 1.</figcaption></figure>

<figure><img src="image_13.png" /><figcaption>Figure A6. Response Y3: R = 50, n = 30, sd = 1.</figcaption></figure>
<figure><img src="image_14.png" /><figcaption>Figure A7. Response Y1: R = 50, n = 20, sd = 1.</figcaption></figure>

<figure><img src="image_15.png" /><figcaption>Figure A8. Response Y1: R = 50, n = 20, sd = 1.</figcaption></figure>
<figure><img src="image_16.png" /><figcaption>Figure A9. Response Y3: R = 50, n = 20, sd = 1.</figcaption></figure>

<figure><img src="image_17.png" /><figcaption>Figure A10. Response Y1: R = 50, n = 15, sd = 1.</figcaption></figure>
<figure><img src="image_18.png" /><figcaption>Figure A11. Response Y2: R = 50, n = 15, sd = 1.</figcaption></figure>

<figure><img src="image_19.png" /><figcaption>Figure A12. Response Y3: R = 50, n = 15, sd = 1.</figcaption></figure>
<figure><img src="image_20.png" /><figcaption>Figure A13. Response Y1: DOE case study—R = 50.</figcaption></figure>

<figure><img src="image_21.png" /><figcaption>Figure A14. Response Y2: DOE case study—R = 50.</figcaption></figure>
<figure><img src="image_22.png" /><figcaption>Figure A15. Response Y3: DOE case study—R = 50.</figcaption></figure>

<figure><img src="image_23.png" /><figcaption>Figure A16. Response Y4: DOE case study—R = 50.</figcaption></figure>
<figure><img src="image_24.png" /><figcaption>Figure A17. Response Y5: DOE case study—R = 50.</figcaption></figure>

References

1. Zhang, Y.; Wu, Y. Introducing Machine Learning Models to Response Surface Methodologies. In *Response Surface Methodology in Engineering Science*; IntechOpen: London, UK, 2021.

2. Paturi, U.M.R.; Reddy, N.S.; Cheruku, S.; Narala, S.K.R.; Cho, K.K.; Reddy, M.M. Estimation of coating thickness in electrostatic spray deposition by machine learning and response surface methodology. *Surf. Coat. Technol.* **2021**, *422*, 127559. [CrossRef]

3. Lashari, N.; Ganat, T.; Otchere, D.; Kalam, S.; Ali, I. Navigating viscosity of GO-SiO₂/HPAM composite using response surface methodology and supervised machine learning models. *J. Pet. Sci. Eng.* **2021**, *205*, 108800. [CrossRef]

4. Shozib, I.A.; Ahmad, A.; Rahaman, M.A.; Alam, M.; Beheshti, M.; Taufiqurrahman, I. Modelling and optimization of microhardness of electroless Ni-P-TiO₂ composite coating based on machine learning approaches and RSM. *J. Mater. Res. Technol.* **2021**, *12*, 1010–1025. [CrossRef]

5. Keshtegar, B.; Gholampour, A.; Thai, D.K.; Taylan, O.; Trung, N.T. Hybrid regression and machine learning model for predicting ultimate condition of FRP-confined concrete. *Compos. Struct.* **2021**, *262*, 113644. [CrossRef]

6. Lou, H.; Chung, J.I.; Kiang, Y.H.; Xiao, L.Y.; Hageman, M.J. The application of machine learning algorithms in understanding the effect of core/shell technique on improving powder compactability. *Int. J. Pharm.* **2019**, *555*, 368–379. [CrossRef]

7. Haque, S.; Khan, S.; Wahid, M.; Dar, S.A.; Soni, N.; Mandal, R.K.; Singh, V.; Tiwari, D.; Lohani, M.; Areeshi, M.Y.; et al. Artificial Intelligence vs. Statistical Modeling and Optimization of Continuous Bead Milling Process for Bacterial Cell Lysis. *Front. Microbiol.* **2016**, *7*, 1852. [CrossRef]

8. Pilkington, J.L.; Preston, C.; Gomes, R.L. Comparison of response surface methodology (RSM) and artificial neural networks (ANN) towards efficient extraction of artemisinin from Artemisia annua. *Ind. Crops Prod.* **2014**, *58*, 15–24. [CrossRef]

9. Bourquin, J.; Schmidli, H.; van Hoogevest, P.; Leuenberger, H. Advantages of Artificial Neural Networks (ANNs) as alternative modelling technique for data sets showing non-linear relationships using data from a galenical study on a solid dosage form. *Eur. J. Pharm. Sci.* **1998**, *7*, 5–16. [CrossRef] [PubMed]

10. Souza Lima, E.; Lima, V.; Almeida, C.; Justi, K. Application of response surface methodology and machine learning combined with data simulation to metal determination of freshwater sediment. *Water Air Soil Pollut.* **2017**, *228*, 370. [CrossRef]

11. Bi, Q.; Goodman, K.E.; Kaminsky, J.; Lessler, J. What is Machine Learning? A Primer for the Epidemiologist. *Am. J. Epidemiol.* **2019**, *188*, 2222–2239. [CrossRef]

12. Crisci, C.; Terra, R.; Pacheco, J.; Ghattas, B.; Bidegain, M.; Goyenola, G.; Lagomarsino, J.; Méndez, G.; Mazzeo, N. Multi-model approach to predict phytoplankton biomass and composition dynamics in a eutrophic shallow lake governed by extreme meteorological events. *Ecol. Model.* **2017**, *360*, 80–93. [CrossRef]

13. Myers, R.H.; Montgomery, D.C.; Anderson-Cook, C.M. *Response Surface Methodology: Process and Product in Optimization Using Designed Experiments*; John Wiley and Sons: New York, NY, USA, 1995.
14. Sarabia, L.; Ortiz, M. 1.12—Response Surface Methodology. In *Comprehensive Chemometrics*; Brown, S.D., Tauler, R., Walczak, B., Eds.; Elsevier: Oxford, UK, 2009; pp. 345–390. [CrossRef]

15. Manzon, D.; Claeys-Bruno, M.; Declomesnil, S.; Carité, C.; Sergent, M. Quality by Design: Comparison of Design Space construction methods in the case of Design of Experiments. *Chemom. Intell. Lab. Syst.* **2020**, *200*, 104002. [CrossRef]

16. dos Moreira, C.S.; Lourenço, F.R. Development and optimization of a stability-indicating chromatographic method for verapamil hydrochloride and its impurities in tablets using an analytical quality by design (AQbD) approach. *Microchem. J.* **2020**, *154*, 104610. [CrossRef]

17. Hastie, T.; Tibshirani, R.; Friedman, J.; Franklin, J. The elements of statistical learning: data mining, inference, and prediction. *Math. Intell.* **2004**, *27*, 83–85. [CrossRef]

18. Breiman, L.; Friedman, J.; Stone, C.J.; Olshen, R.A. *Classification and Regression Trees*; Chapman and Hall/CRC: Boca Raton, FL, USA, 1984.

19. Breiman, L. Random Forests. *Mach. Learn.* **2001**, *45*, 5–32. [CrossRef]

20. Freund, Y.; Schapire, R.E. A decision-theoretic generalization of on-line learning and an application to boosting. *J. Comput. Syst. Sci.* **1997**, *55*, 119–139. [CrossRef]

21. Natekin, A.; Knoll, A. Gradient boosting machines, a tutorial. *Front. Neurorobot.* **2013**, *7*, 21. [CrossRef]

22. Chen, T.; He, T. xgboost: eXtreme Gradient Boosting. 2021. Available online: https://cran.r-project.org/web/packages/xgboost/vignettes/xgboost.pdf (accessed on 27 July 2023).

23. Cristianini, N.; Shawe-Taylor, J. *An Introduction to Support Vector Machines and Other Kernel-Based Learning Methods*; Cambridge University Press: Cambridge, UK, 2000. [CrossRef]

24. Nerini, D.; Durbec, J.; Mante, C.; Garcia, F.; Ghattas, B. Forecasting physicochemical variables by a classification tree method: application to the Berre Lagoon (South France). *Acta Biotheor.* **2001**, *48*, 181–196. [CrossRef]

25. Tibshirani, R. Regression shrinkage and selection via the Lasso. *J. R. Stat. Soc. Ser. B (Methodol.)* **1996**, *58*, 267–288. [CrossRef]

26. Nelder, J.A.; Wedderburn, R.W.M. Generalized linear models. *J. R. Stat. Soc. Ser. (Gen.)* **1972**, *135*, 370. [CrossRef]

27. Rumelhart, D.E.; Hinton, G.E.; Williams, R.J. Learning representations by back-propagating errors. *Nature* **1986**, *323*, 533–536. [CrossRef]

28. Marquardt, D.W.; Snee, R.D. Ridge regression in practice. *Am. Stat.* **1975**, *29*, 3–20. [CrossRef]

29. Geurts, P.; Ernst, D.; Wehenkel, L. Extremely randomized trees. *Mach. Learn.* **2006**, *63*, 3–42. [CrossRef]

30. Schaffer, J.; Whitley, D.; Eshelman, L. Combinations of genetic algorithms and neural networks: A survey of the state of the art. In *Proceedings of the COGANN-92: International Workshop on Combinations of Genetic Algorithms and Neural Networks, Baltimore, MD, USA, 6 June 1992*; pp. 1–37. [CrossRef]

31. Jie, J.; Zeng, J.; Han, C. An extended mind evolutionary computation model for optimizations. *Appl. Math. Comput.* **2007**, *185*, 1038–1049. [CrossRef]

32. Huang, G.B.; Zhu, Q.Y.; Siew, C.K. Extreme learning machine: theory and applications. *Neurocomputing* **2006**, *70*, 489–501. [CrossRef]

33. Aljazzar, H.; Leue, S. K*: A heuristic search algorithm for finding the k shortest paths. *Artif. Intell.* **2011**, *175*, 2129–2154. [CrossRef]

34. RStudio Team. *RStudio: Integrated Development Environment for R*; RStudio, PBC: Boston, MA, USA, 2020.

35. Kuhn, M. Building predictive models in R using the caret package. *J. Stat. Softw.* **2008**, *28*, 1–26. [CrossRef]

36. Dai, Y.; Yang, C.; Liu, Y.; Yao, Y. Latent-Enhanced Variational Adversarial Active Learning Assisted Soft Sensor. *IEEE Sens. J.* **2023**, *23*, 15762–15772. [CrossRef]

37. Zhu, J.; Jia, M.; Zhang, Y.; Deng, H.; Liu, Y. Transductive transfer broad learning for cross-domain information exploration and multigrade soft sensor application. *Chemom. Intell. Lab. Syst.* **2023**, *235*, 104778. [CrossRef]

38. Jia, M.; Xu, D.; Yang, T.; Liu, Y.; Yao, Y. Graph convolutional network soft sensor for process quality prediction. *J. Process Control* **2023**, *123*, 12–25. [CrossRef]

39. Liu, K.; Zheng, M.; Liu, Y.; Yang, J.; Yao, Y. Deep Autoencoder Thermography for Defect Detection of Carbon Fiber Composites. *IEEE Trans. Ind. Inform.* **2023**, *19*, 6429–6438. [CrossRef]

**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.