1. Introduction
In recent years, there has been a considerable increase in the production of a particular biofuel (bioethanol); the most prominent global producers are the United States (58.03 million liters), Brazil (27.61 million liters), and China (3.19 million liters). It is necessary to consider an increase in world bioethanol production due to the implementation of energy reforms that aim to mitigate the emissions of gases that generate the greenhouse effect [
1,
2]. For this reason, the study and development of technologies that increase this compound’s octane number and considerably improve the combustion efficiency in automobile motors engines are of great importance.
Intending to produce more bioethanol, some necessary stages or processes (chemical pretreatments, enzymatic hydrolysis, fermentation, distillation, and adsorption) need to be considered to reach a purification of 99.5% wt of dehydrated ethanol (bioethanol) [
3,
4,
5,
6]. Obtaining dehydrated bioethanol presents specific difficulties due to the percentage of water in this biofuel. The separation of the ethanol–water mixture has become a great field of study and development of research because it is a scientific and technological problem affecting the production of this compound. Some of the methods that have been used for the separation of this mixture are azeotropic or extractive distillation with salts. Still, these methods have a significant disadvantage as they require a lot of energy. Therefore, further research and development are necessary to implement more efficient and profitable separation methods. The best-performing process using shorter production and recovery times compared to other distillation processes or technologies is the Pressure Swing Adsorption (PSA) process [
7,
8]. PSA is a novel process in which molecules, atoms, or ions of a gas or liquid diffuse on the surface of a solid. These molecules are linked or retained through weak intermolecular forces. The PSA implements two columns filled with adsorbents, and these can be molecular sieves, zeolites, clays, activated carbon, silica gels, etc. [
9]. To achieve efficient adsorption of water molecules, specific parameters must be considered, such as internal porous structure, pore size, surface area, species of the exchanged cation, and chemical composition. The PSA process consists of two stages, which are adsorption and regeneration. In the adsorption stage, the water molecules are retained, and the ethanol molecules pass through the adsorbent to produce high concentrations of ethanol, which is achieved under high pressure. In the regeneration stage, a low pressure close to vacuum pressure is used, which causes the water molecules to detach from the adsorbent, freeing the site in the adsorbent. It is essential to mention that the PSA process model is represented by Partial Differential Equations (PDEs), and this makes it a complex system due to its high non-linearity [
10,
11]. Due to the complexity of the process explained by its cyclical nature and produce bioethanol, advanced studies are required to obtain purities greater than 99% wt of ethanol. Implementing Machine Learning (ML) techniques has been essential for predicting the desired purity. One of the works presented in [
12] demonstrates that machine learning algorithms can estimate the parameters or non-linear data of the Hammerstein–Wiener model in two-dimensional and three-dimensional subsystems; the methods used are an oscillation and fuzzy particle swarm optimization(OFPSO) and chaotic optimization mechanism to gravitational search (CGSA).
Likewise, in [
13], a predictive model of supervised machine learning was presented based on artificial neural networks (ANN), in which the authors evaluated the optimal operating conditions, achieving a distillate flow of 4.9 kg h
, with 50.6% wt of enriched ethanol and a recovery of 84.9%; however, they presented a layer with ten neurons to achieve this objective, and this requires a certain computational capacity, generating slow response times. Great advances have been made with neural networks; one of the works illistrtating this is [
14], in which the authors implemented an ANN to improve the adjustment of nominal startup parameters. The ANN significantly contributed to the research since it improved the final concentration of the compound obtained in the simulation. However, the computational cost generated by the ANN is too large to estimate future predictions. Short response times must be considered in experimental pilot plants to predict the future concentrations obtained. Another work is [
15], in which an ANN with the capacity to predict the purity of bioethanol using only four neurons was presented; however, in comparison with the Hammerstein–Wiener model, it does not have a 99% adjustment as in other works that have been developed. Later, in [
16], work composed of offline artificial neural networks called the Quasi-Virtual Analyzer (Q-VOA) system was presented, which evaluates the efficiency of a bed system. Through these networks, the authors managed to reduce the errors of the bed process and obtain a close approximation to the experimental responses; nevertheless, when disturbances occur in the system, the network cannot capture the dynamics of these unwanted inputs. One of the discovered works is [
17], in which the authors used learning methods such as ANN and RF to predict the results of biotechnological processes. They obtained good approximate results from the real data on the production of bioethanol from lignocellulose [
18]. There are some works related to the PSA process and the production of oxygen and methane, but only few consider bioethanol. However, each of them dramatically contributes to enriching this scientific article.
One of the works found on PSA using ANN was presented in [
19]; the research focused on different learning methods to implement an optimal model of a PSA plant. An improvement of the automatic learning model was explored to optimize the purity and recovery parameters of CO
. Another work found on the ANN on the PSA on capturing the CO
compound was presented in [
20], in which the authors proposed and carried out tests with approaches based on first-order reduced models. The models were obtained from ANN. Each model can predict each adsorption of the CO
compound in each step of the PSA process. The results determined that ANN techniques on the PSA process are very feasible and have an outstanding contribution in optimizing and synthesizing the cycles of a PSA plant. Continuing with the ANN work on PSA for CO
capture, in [
21], a PSA used to reduce CO
was modeled; this work included ANN and a Response Surface Methodology (RSM). The adsorption of the CO
compound with activated carbon was developed experimentally using ANN to predict its behavior. The algorithm implemented to carry out the ANN showed that it has a close approximation to the experimental data in the case of predicting the adsorption of CO
.
Likewise, a related work on PSA and ANNs to predict methane production was developed in [
22]; the authors proposed a neural network (NN) that predicts the methane compound’s adsorption isotherm on MOF structures with excellent approximation. The speed at which the isotherm parameters are predicted was derived from the optimization algorithm to find the appropriate values. Consideration of restrictions and cost function was integrated to achieve this operation to find the proper adsorption isotherm parameters. Continuing with the related investigations on PSA involving ANNs, in [
23], an ANN was implemented to optimize an experimental vacuum swing adsorption (VSA) plant. The ANN was used to predict the performance of the VSA plant. The results are outstanding and show a high precision in determining the purity of the product, recovery, and productivity—the optimization of the VSA plant improved by 9%.
Another work found was [
24]; in this work, the authors used an ANN to predict the behavior of the process in the Cyclic Steady State (CSS) to produce bioethanol. The ANN had an approximation greater than 90% compared to the prediction of a reduced Hammerstein–Wiener model that obtained an approximation of 80%. The results are outstanding, but it is necessary to carry out more tests and conduct more profound work related to the ANN applied to the PSA process to produce bioethanol.
On the other hand, ref. [
25] was found; the authors used different ANNs to optimize the PSA process to produce and purify hydrogen. The different ANNs were implemented on the cost function to obtain a better performance and be able to predict the highest production of hydrogen. The results of this development are helpful since they achieve a production of 99.99% hydrogen, capturing 90% CO
. Because of the complexity of the process, it was necessary to implement these ANNs to find an optimization of the PSA process.
This article aims to introduce an ANN that can work as well as an MPC controller, so we show the method to train and learn an ANN model that keeps the purity of the product, responding to the international standards of biofuel, with a molar fraction of bioethanol, also attenuating disturbances in the input of the PSA process. Our ANN simulated the behavior of an MPC with five predictors in the input–output signs connected to the PSA process and maintaining the purity of the biofuel. The constructed ANN needs reference, disturbance, and output signals, as does the MPC controller. The differences exist in the control signal where the MPC is more smoothed than the ANN. Still, the prediction of our ANN needs only one present value instead of five past values to control the purity and attenuate the disturbances.
This article describes the procedure to obtain the ANN to control the purity of bioethanol.
Section 2 describes the simulation of the PSA process where the data were obtained.
Section 3 describes the methodology, step by step, from data to the ANN to the control of the PSA process, passing through the preprocessing of signals, designing the MPC controller, the learning phase of the ANN, and analyzing the controllers.
Section 4 presents the results obtained using the MPC and ANN controllers for maintaining the purity when disturbances are presented, and the conclusions in
Section 5 .
2. Simulation Using the Fundamental Model of the PSA Plant
The PSA plant consists of two columns; its dimensioning and characteristics can be seen in
Table 1 and
Figure 1. The columns are connected through ten proportional valves; to achieve the operation of this process, it is necessary to define the nominal conditions of the startup. These data are shown in
Table 2.
The PSA process is configured with four steps: adsorption, depressurization, purge, and repressurization. In this article, the PSA steps are simulated from a set of PDEs. These equations describe the matter, energy, momentum, and adsorption quantity equilibria within the adsorbent-packed bed. The following assumptions were considered in the PDEs:
The gas phase behaves ideally.
The gas phase instantaneously reaches thermal equilibrium with the adsorbent (solid).
The Ergun equation can be used to describe the rolling moment.
There is mass transfer between the gas and adsorbed phases.
The rate at which the packed bed adsorbs is modeled using a Linear Driving Force approximation.
The adsorbent used for this innovative work is zeolite type 3A, and the Langmuir mathematical model (
1) describes the adsorption isotherm.
where
is the saturation charge for compounds
i,
are the Langmuir parameters,
is the partial pressure and
T is the temperature in the adsorption charge.
The isotherm parameters for the type 3A zeolite were obtained from [
26].
Table 3 shows the isotherm parameters for zeolite.
The mass balance for each component in the solid phase is given by Equation (
2):
Flow over the solid surface is
The energy balance in the solid phase is given by Equation (
4):
The Ergun equation is represented as follows (Equation (
5)):
The mass transfer rate in the solid phase is described by the Linear Driving Force (LDF) model and is represented by Equation (
6):
where
is the parameter in the Glueckauf expression.
The complete model considering the abovementioned assumptions is shown in
Table A3, as well as its initial and boundary conditions for the sequence of steps established in
Figure 1.
The PSA plant used in this work was taken from reference [
26]. It is considered an experimental plant with operational conditions allowing greater bioethanol production.
Figure 2 shows the behavior of the two compounds, which, based on the parameters established in
Table 1,
Table 2 and
Table 3, separate and purify the ethanol and water mixture. After several cycles of operation, it is observed that the water begins to have a lower concentration and ethanol concentration increases; these data are collected as products of the two packed columns. After several cycles, the CSS is reached, generating an ethanol purity of 0.985 of molar fraction (99.5% wt). This obtained product meets the criteria and standards for use as biofuel.
4. Results and Discussion
This article’s primary purpose was to prove that a neural network can imitate the behavior of an MPC controller. For this objective, we obtained the targets of a ANN as the controller’s output, i.e., the controlled variable and its behavior after the MPC controller.
This work aimed to generate a neural network learned from an MPC controller behavior. How can the MPC control the purity of the product to control bioethanol purity in a PSA process that maintains the international standards to be used as biofuel? The MPC needs three signals:
The feedback signal is the purity of the bioethanol.
The disturbances are in the feed flow rate.
The reference signal (purity desired).
We used several methods to verify the model’s performance index; in the first place, we applied the normalized root mean squared error (NRMSE) to the results of the ANN model and compared the data with those of the MPC model. The other index that we used was the root mean square error (RMSE).
These three signals are the inputs of the ANN. In this case, our ANN has three layers: an input layer with 30 neurons and a hyperbolic tangent sigmoid activation function in each one; a hidden layer with 15 neurons and the same activation function as the first layer; and an output layer with one neuron and a linear transfer function.
We compared the purity outputs using the MPC controller and the ANN model; we obtained a
FIT using Equation (
11) and 0.012 using the RMSE equation.
Figure 17 shows these results.
One big difference between the two controllers is that the ANN does not need many predictors, only one, compared with the MPC, which requires five predictors in both needed signals.
To achieve our goals, outputs from both the ANN and MPC must be similar. We can observe these results in
Figure 18, showing the outcomes of ANN and MPC controllers. Also, we analyzed the fit using the corresponding equation. The signals had a 96% similarity, and using the RMSE, we obtained 0.1232 in error.
ANN controller has stability. We probed the application of different disturbances in the plant system, and the measured disturbances applied were in the production temperature. This variable is strongly linked with the purity of the product; in [
28], the authors presented a sensitivity analysis that reported that production temperature directly affects purity.
We probed the robustness of our ANN controller using different disturbances. We used a saw-tooth signal and a sine wave signal as a disturbance in the measured disturbance (noisy applied in production temperature).
Figure 19 shows the reference signal which was generated using multiple steps; each step displayed about 30 min of difference. Also, we showed the noisy signal; this time, it was a sawtooth signal in the temperature with an amplitude of
. Therefore, the purity results of the MPC and ANN controller were shown; using the NRMSE equation, we obtained a fit of
, and using RMSE, the result was
. Besides the ANN and MPC controller behavior shown in
Figure 20 Case A, we obtained an RMSE of 0.0219 and a FIT = 96.72 %.
Figure 21 shows another reference signal, another measured disturbance; in this case, the MD is a sine wave with an amplitude of 16 K, and both controllers maintain the purity and keep the reference tracking. The fit for this probe is
and
in RMSE. The MPC and ANN control signal is shown in
Figure 20 Case B, where we obtained an RMSE of 0.0151 and FIT = 98.58%.
We included some tests to prove the stability of the ANN model by applying disturbances in the input and output of the systems. First,
Figure 22 represents a disturbance of 10% in the output at the time 2.5 h. We observed an upset in the signal of the product because of the disturbance.
Figure 23 represents the comparison between the output signal (purity of bioethanol) with an additive disturbance of −10% in the output of the process at the 3 h time and the signal without it. The upset observed in the purity caused by the output disturbance has the value of
, determined using the RMSE equation.
The error caused by the disturbance in the feed flow rate has a value of . We used the RMSE equation to calculate this error.
We put a reference signal constant with a 0.9889 molar fraction of bioethanol. Then, we implemented an additive disturbance in the purity product or an output signal of
at a time of 1.5 h and observed the control’s behavior using the ANN. The comparison between the state with and without this disturbance is shown in
Figure 24 on the left side. The response of the control signal from the ANN controller is shown in
Figure 24 on the right side. We can observe that the control signal maintains a peak and then attempts to reach the stable value for tracking the reference after the disturbance at 1.5 h.
The RMSE from the purity in the last test is about , and for the control signal it is 0.0214.
Comparison of the MPC and ANN Controllers
To compare both controllers, we applied them to the system disturbances in the input and output.
Figure 25 compares the controllers with a disturbance in the output of 10%. We can observe similar behavior with the MPC and ANN controllers. The FIT reached by the ANN vs the MPc is about 99%.
We applied a disturbance in the input and control signals using a step of 10% of difference at 1 h time when we had a fixed reference setpoint of a 0.9885 molar fraction of bioethanol.
Figure 26 shows this disturbance and the changes in the manipulated variable and the measured output.
The ANN controller has some advantages concerning the MPC:
The ANN does not need the inverse functions to control the system because of the training values.
As we work in a restricted operating zone, the ANN controller saturates the control signal when the operating point leaves this zone and maintains stability, while with the non-linear MPC, this would not happen; it is entirely unstable.
The ANN is very flexible because we can train it with new data; if the controller changes, we can train the ANN offline and work in the operating area.
The ANN robustness problem occurs when the process does not work at the operation points. In this case, the ANN controller saturates the control signal. On the other hand, the MPC controller becomes unstable when the optimization problem becomes infeasible due to the PSA process operating point at values near the 0.99 molar fraction of bioethanol needed to reach the international purity standards. Therefore, the ANN cannot present robustness problems because if the process deviates very far from the value of the international purity standard, it must stop completely.
5. Conclusions
In this research work, we showed an artificial neural network that represents the behavior of an MPC controller to maintain the purity of the product in the PSA process. We obtained a Hammerstein–Wiener model that describes the smoothed behavior of the process with a fit of . After that, we designed an MPC controller and then an ANN controller that learned the behavior using the three principal signals for an MPC controller: the reference signal (purity desired), the output signal, and disturbances (purity and feed flow rate variations). The ANN was trained using the Levenberg–Marquart algorithm and obtained a fit of in this step. To obtain the final results, we aborded identification system techniques to obtain the first model from the data of the PSA process.
It can be concluded that the neural network represents the MPC controller so that both controllers maintain the same purity at the 0.99 molar fraction of bioethanol. Also, both controllers attenuate the existing disturbances in the input and output. Furthermore, we can observe some variations in the control signal from the ANN controller. It occurs because the ANN has a similar behavior and not the exact behavior of the MPC controller.
Therefore, we can report substantial variations in the ANN control signal, but we maintain the product’s desired reference and molar fraction with disturbances in the input and output of the system.
We can guarantee the stability of our ANN controller with the following criteria: the activation function and the small gain theorem that allows boundedness, the data sets that are large enough, the algorithm that allows an optimal solution, and the tests with perturbations at the input and output signals of the PSA process.
In conclusion, the neural network control has the same performance and robustness. Both controllers manage to obtain a bioethanol purity of the 0.99 molar fraction, which is a purity that reaches international standards and can mitigate disturbances in that purity value.
For future work, the ANN controller will be implemented for other process control procedures, and new ANN structures to this process to realize more comparisons. Additionally, experimental results will be carried out with ANNs that update.