Next Article in Journal
Imaging Flow Cytometry: Development, Present Applications, and Future Challenges
Previous Article in Journal
The Frailty Reduction via Implementation of Exercise, Nutrition, and Deprescribing (FRIEND) Trial: Study Protocol and Recruitment Results
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Indirect Measurement of Variables in a Heterogeneous Reaction for Biodiesel Production

by
Ana Paloma González-García
,
Lourdes Díaz-Jiménez
,
Padmasree K. Padmadas
and
Salvador Carlos-Hernández
*
Sustentabilidad de los Recursos Naturales y Energía, Cinvestav Saltillo, Ramos Arizpe 259000, Coahuila, Mexico
*
Author to whom correspondence should be addressed.
Methods Protoc. 2024, 7(2), 27; https://doi.org/10.3390/mps7020027
Submission received: 7 February 2024 / Revised: 7 March 2024 / Accepted: 21 March 2024 / Published: 23 March 2024
(This article belongs to the Section Biochemical and Chemical Analysis & Synthesis)

Abstract

:
This research focuses on the development of a state observer for performing indirect measurements of the main variables involved in the soybean oil transesterification reaction with a guishe biochar-based heterogeneous catalyst; the studied reaction takes place in a batch reactor. The mathematical model required for the observer design includes the triglycerides’ conversion rate, and the reaction temperature. Since these variables are represented by nonlinear differential equations, the model is linearized around an operation point; after that, the pole placement and linear quadratic regulator (LQR) methods are considered for calculating the observer gain vector L(x). Then, the estimation of the conversion rate and the reaction temperature provided by the observer are used to indirectly measure other variables such as esters, alcohol, and byproducts. The observer performance is evaluated with three error indexes considering initial condition variations up to 30%. With both methods, a fast convergence (less than 3 h in the worst case) of the observer is remarked.

1. Introduction

In the biodiesel industry, the monitoring of the transesterification reaction is required to avoid operation problems, ensure product quality, and detect failures [1]. The reactor is the central device of the production process; therefore, its supervision and control are highly recommended [2]. The variation in operating conditions in the reactor (temperature, reaction time, oil/alcohol molar ratio, and catalyst amount) affects the yield and quality of the product [3]. All of these parameters should be supervised throughout the reaction time to ensure that the biodiesel meets international standards.
Analytical procedures have been developed for evaluating biodiesel quality based on gas chromatography, liquid chromatography, nuclear magnetic resonance, and infrared spectroscopy [4,5]. These methods require samples to be taken and prepared for offline analysis, resulting in non-real-time transesterification monitoring. Furthermore, the industrial implementation of these techniques requires expensive equipment and qualified personnel to interpret the results, which is not suitable for online monitoring [4]. On the other hand, specific sensors have been developed to measure the concentration of biodiesel online. These sensors measure physical properties such as viscosity, refractive index, density, and speed of sound, which vary significantly for the compounds in the transesterification reaction mixture. These properties change during the transesterification reaction depending on the concentration of these species, which allows for monitoring the reaction [4]. However, as they are specialized sensors, their application is limited due to their high cost and difficult maintenance. In addition, they can introduce delays in the control loops [6].
One of the alternatives to carry out supervision in real time and at affordable costs is to apply state estimation strategies, such as state observers. A state observer is a computational algorithm derived from a process mathematical model; this algorithm can reconstruct the evolution of state variables (whose measurement is technically difficult, expensive, or slow) from available variables (measured systematically). A general representation of a state observer is introduced in Figure 1.
The goal of the observer is to obtain an accelerated process dynamic, allowing us to predict (estimate) the behavior of variables; then, a mathematical model is required. Usually, the models considered are based on the general equation of the transesterification reaction [7] since it describes the different steps to transform triglycerides in biodiesel and crude glycerol, regardless of the reaction phase (homogeneous or heterogeneous transesterification); kinetics, conversion rate, reaction mechanism, and mass and energy balance are usually included in the models for variables’ estimation [5,8,9,10]. Once the models are formulated, it is necessary to adapt their structure according to the state space theory, since this is the basis for observer development. The main difference between homogeneous and heterogeneous transesterification is the reaction mechanism. The former is developed in a liquid phase and the reaction depends on the contact of triglycerides with the alcohol and the catalyst [11]; the second one takes place on solid/liquid phase and the reaction depends on the adsorption/desorption of reactants on the catalyst [12]. Thus, the corresponding models are different from each other due to the representation of said reaction mechanism.
In recent years, artificial intelligence techniques (artificial neural networks, machine learning, and deep learning) are being considered to model the transesterification reaction [13,14,15,16]. These techniques try to process information as the human brain does; in this sense, no mathematical representation of phenomena is required, but rather computational algorithms. This allows us to model complex processes in a relatively easy way. In the case of heterogeneous catalysis, artificial intelligence models can be used to study the reactions [15], to predict behaviors, and to estimate variables [13,16]. The main issue of artificial intelligence is the need for a large quantity of data, which could be restrictive since several experiments should be performed which involves costs and time.
Luenberger and Kalman introduced the basic concepts of state observers in the 1960s. Over time, research into state observer design became popular but challenging due to the high accuracy, low cost, and performance requirements. Nowadays, most current observers are modifications and extended versions of the classical Luenberger observer and the Kalman filter [17,18]. Regarding transesterification for biodiesel production, Table 1 summarizes the research related to the implementation of state observers.
The extended Kalman filter is used to obtain fast estimations based on probability theory; however, its implementation online can cause an excessive computational load because the method is complex [5,10]. On the other hand, observers based on artificial intelligence (Fuzzy and Takagi–Sugeno) are suitable for highly nonlinear systems with incomplete or unknown models. They also allow for formalizing and incorporating the empirical knowledge of the operators; however, their implementation online can be difficult and time-consuming, since they must first be adapted to the system [19,20]. An interval observer was implemented for a lab-scale reactor, achieving an estimation error of around 5%; this kind of observer provides variable estimations within an interval of values, assuming that initial conditions and uncertainties are unknown but bounded. The main issue is that the interval estimation error dynamic is required to be positive, which is not always accurate [9]. An evolutionary algorithm was used to minimize the estimation error in an algorithm devoted to estimating uncertain parameters; this algorithm was integrated into an automatic control strategy [21]. An unknown input observer [22] and a sliding-mode observer [23] for uncoupled multimodel representations of transesterification reactors were created; local observers were designed, and interpolation was used to recover the global dynamics. These kinds of observers allow us to consider uncertainties in the studied processes, but the design and tuning can become complex.
It is important to remark that the state observers have been used only in homogeneous reactions. No reports directly concerned with observers for heterogeneous transesterification have been found; only some works regarding the prediction of variables in heterogeneous reactions have been developed. For example, the prediction of the reaction yields was studied using an artificial neural network [15], and the use of machine learning techniques to predict the kinetic and thermodynamic behavior, as well as other aspects, of the heterogeneous reaction has been proposed [16]. Homogeneous transesterification is the most used reaction for biodiesel production at the industrial level [24,25,26]. However, operational and economic issues are induced since both the catalyst and the product are in the liquid phase. In homogeneous catalysis, the separation of the catalyst from the biodiesel represents additional costs and produces wastewater, which requires special treatment before disposal [26,27]. An alternative is the use of heterogeneous catalysts, which are in a solid state. Heterogeneous catalysts offer a series of advantages over homogeneous ones, such as being noncorrosive and safer to handle, and they do not wear out the reactors during processing. Furthermore, it is easy to separate them from the process by decanting or filtering and they can be reused; there is evidence that these catalysts can be reused in up to five cycles while maintaining their catalytic activity. Finally, heterogeneous catalysts can be made from low-value materials or from industrial waste, which positions them as sustainable materials [27,28,29,30]. However, the main disadvantage of heterogeneous transesterification is the decrease in the production rate, which is associated with mass transfer resistances, as the reaction takes place in a triphasic system (liquid–liquid–solid) [26,31]. To tackle these drawbacks, severe reaction conditions are usually applied [28]. In this sense, several studies have been performed to improve heterogeneous transesterification, but few works regarding state estimation have been reported. Therefore, the application of state observers to heterogeneous reactions represents an opportune area.
In this work, a state observer based on the Luenberger algorithm is developed for a heterogeneous transesterification reaction to estimate the dynamics of triglycerides, methanol, biodiesel, and glycerol concentration. Temperature measures are used as a key variable to perform the estimation. A mathematical model including mass and energy balance was previously obtained [32] and is used here to implement the observer. Two methods for the design of the observer are evaluated: pole placement and linear quadratic regulator (LQR). The observer is evaluated through numeric simulations, considering different operating conditions.

2. Materials and Methods

As said before, a state space representation of the transesterification reaction is required to formulate the estimation strategy. The state of a dynamic system is the smallest set of variables that allows us to determine the behavior of the system. The general representation in the state space of a nonlinear process is expressed by Equations (1) and (2):
x ˙ = f ( x , u )
y = h ( x )
where f and h are smooth functions, x is the vector containing the state variables, u is the input vector, and y is the output vector. From this representation, the structure of a state observer is as follows:
x ^ ˙ = f x ^ , u + L x ^ e = f x ^ , u + L x ^ ( y y ^ )
y ^ = h ( x ^ )
where the circumflex accent denotes an estimated variable, and L is a vector called observer gain. Therefore, the observer design implies the selection of a gain L, which ensures a minimal estimation error. This error is defined as the difference between the real state and the estimated one, ideally e = x x ^ = 0 .
A schematic representation of the state observer proposed for the heterogenous transesterification reaction is presented in Figure 2. Reaction inputs (applied temperature) and outputs (reaction temperature) are represented by u and y, respectively; X (reaction rate and temperature), A, and B represent state variables, the state matrix, and the input vector, respectively, according to the state space representation. Finally, L is a vector that determines the dynamics of the observer.

2.1. Mathematical Model

The mathematical model required for the state observer was obtained from experimental data reported in a previous work [32], and each term is listed in Table 2. This model is based on the mass and energy balance of the transesterification reaction in a batch reactor [33,34]:
d r d t = 1 C 0 T G · k 1 · C M 3 k 2 · C E 3 · C G C T G 1 + k 3 · C E · C G C T G 3 + k 4 · C G 3
d T d t = H R θ T G C p T G + θ M C p M + θ E C p E + θ G C p G d r d t + U A T A T N 0 T G θ T G C p T G + θ M C p M + θ E C p E + θ G C p G
In this model, the conversion rate (r) and the reaction temperature (T) are the state variables; the reaction temperature is taken as the output. To ease the handling of the model, it is rewritten as expressed by the following equations:
x 1 ˙ = d r d t = x 1 C 0 T G
x 2 ˙ = d T d t = J d r d t + Q = J x 1 C 0 T G + Q
y = T
The state equations are linearized to obtain a linear state space representation and to ease the implementation of the state observer. The Jacobian method is used to this end. Therefore, an equilibrium point is required: x * , u * : f x * , u * = 0 ; the symbol * represents the value at the equilibrium. This equilibrium point implies that there is no variation in the state variables; it is obtained by setting Equations (7) and (8) as equal to zero and solving the resulting equation system. Once the equilibrium point is obtained, the matrices A and C for the state space representation are obtained as follows, with f representing Equations (7) and (8), and h being Equation (9):
A = f ( x , u ) x x * , u *
C = h ( x , u ) x x * , u *

2.2. Observer Formulation

The state observer structure is based on Equation (3), which is rewritten considering the notation for mass and energy balance of the heterogeneous transesterification reaction:
x ^ 1 ˙ = x ^ 1 C 0 T G + L 1 x 2 x ^ 2
x ^ 2 ˙ = J x ^ 1 C 0 T G + Q ^ + L 2 x 2 x ^ 2
y ^ = x ^ 2 = T ^
where L = [L1 L2] is the observer gain. Considering the linearized model, the error e = y y ^ , and y ^ = C x ^ , the state observer is also represented by Equation (15):
x ^ ˙ = A x ^ + L e = A x ^ + L y C x ^ = A L C x ^ + L y
Since the reactor temperature is considered the output, the objective of the observer is to reach the condition e = x 2 x ^ 2 = 0 in finite time; then, the vector L is required to be selected to provide the observer dynamic to achieve a such condition.

2.3. Computing of Vector L

The vector L was calculated using two methods: pole assignment and linear quadratic regulator (LQR). Both methods were applied using the software MatlabTM, R2020a.
The poles correspond to the eigenvalues of the state matrix of a system (matrix A). In practice, these values determine the dynamics of the process under study. Thus, the assignment of the poles of the observer (eigenvalues of [ALC]) must be conducted to make it faster than the system. For this reason, it is recommended to make the poles of the observer 3 to 5 times larger (in absolute value) than the poles of the system to be observed. The choice of the desired poles determines the characteristics of the response obtained. In this sense, there can be an infinite set of vectors, but only a limited number of them meet the needs required for the system. It is advisable to test the response of the system to different values of poles chosen by the simulation. The command place() in Matlab was used for this goal.
The LQR method was also considered since it provides an optimal L vector. It is possible to calculate the optimal gain vector K, which allows the feedback u = K x to minimize the performance criterion J u = 0 x Q x + u R u . Taking advantage of the duality property of the controllability–observability pair, it is possible to obtain the optimal vector L for the observer. The Matlab lqr() command was used, considering diagonal matrices Q and R with different weights.

2.4. Observer Performance Assessment

The performance of the observer was evaluated through numerical simulations based on experimental data; the main criterion was the convergence of the estimated states toward the states calculated by the model. The initial conditions were varied between 5, 10, 20, and 30%. In each case, the observer performance was evaluated by the error indicators: IAE (integral of the absolute value of the error), IAET (integral of the absolute value of the error weighted with time), and ISE (integral of the square of the error), as defined in [35].
I A E = 0 e ( t ) d t
I A E T = 0 t e ( t ) d t
I S E = 0 e ( t ) 2 d t
where e(t) is the error defined as the difference between the estimated state and the real one.

2.5. Indirect Measures

Once the reaction rate and temperature were estimated by the observer, the concentration of products was indirectly measured (estimated) by the following algebraic equations, which are obtained from the global reaction of transesterification [33]:
C ^ T G = C 0 T G · 1 r ^
C ^ M = C 0 T G · C ^ M C ^ T G 3 r ^
C ^ E = 3 · r ^ · C 0 T G
C ^ G = r ^ · C 0 T G
where C ^ T G ,   C ^ M ,   C ^ E , and C ^ G are the estimated concentration in time (mol L−1) of triglycerides, methanol, esters, and glycerol, respectively; also, the subscript 0 stands for the respective value at the equilibrium point. In addition, r ^ is the conversion rate (mol L−1 h−1) estimated by the observer.

3. Results

3.1. Observer Gain Calculation

By setting Equations (5) and (6) as equal to zero, the state x = r , T = [ 0.98   333 ] is obtained, and it is taken as the equilibrium point. Then, the linear state space representation of the transesterification model is described by Equations (23) and (24), where A and C are obtained by solving Equations (10) and (11).
X ˙ = A X = 1.286 0.0084 128.6693 20.9484 X 1 X 2
Y = C X = 0 1 X 1 X 2 = X 2
where X represents the linearized states, X = X 1 X 2 = r l i n e a r T l i n e a r , and Y stands for the linearized output: Y = Tlinear.
To know the poles (λ) of the linear system, the eigenvalues of the state matrix are computed. For this case, the corresponding poles are as follows:
λ = λ 1 λ 2 = 1.3410 20.8934
From these values, the vector L is calculated. As said before, the observer poles must be faster than the system poles to guarantee the reconstruction of the state variables. Since the poles are faster, they are more negative; in this work, “slow poles” are considered those that are very close to the poles of the system ( λ s l o w λ s y s t e m ) and “fast poles” those that have a much lower value than the poles of the system ( λ f a s t λ s y s t e m ). Different pole assignments are considered to evaluate the behavior of the observer. First, the general recommendation (GR) is considered: the observer poles are three times faster than the system poles. Subsequently, a set of very slow poles [−1.5 −21] and one of very fast poles [−10.5 −147], as well as sets of combinations of them, are evaluated. The observer performance for each set of poles is evaluated by comparing the value of the IAET index (Table 3). It is observed that when using the set of poles λ1 = fast and λ2 = GR, the estimation error of both variables (conversion and temperature) is minimized. However, if the TG conversion is of greater interest, using the fast pole set is recommended.
Figure 3 shows the result of the simulations when using different sets of poles. The estimation of the conversion rate provided by the observer is compared with the measurement (noted as measured) performed during the experiments. In addition, the estimation of temperature provided by the observer is compared with the one obtained by Equation 6 (noted as the model); since the mathematical model has been validated from experimental data [32], the calculated temperature represents that measured in the reactor. The selection of the observer poles induces differences in the estimation. Initial conditions of the observer different from those of the system have also been considered to evaluate the convergence of the estimation. It is observed that the set of poles [fast fast] and [fast RG] promotes rapid convergence of the state estimation (~3 h). In addition, the set of poles [RG RG] provides a good estimation of temperature, but not for the conversion; convergence is achieved after 7 h. Meanwhile, the response of the set of slow poles is the least favorable, both in the case of conversion and of the temperature of the reactor.
On the other hand, for the LQR method, it is not necessary to know the poles of the system; this advantage allows us to save a step in the observer design. As for the previous case, an iterative process is implemented. The weights of the matrices Q and R are taken as the starting point, where w1 = w2 = 1, respectively. Then, the weighting of Q is kept constant (w1 = 1), and the values of w2 are varied, and vice versa. Subsequently, the observer gain vector L( x ^ ) is calculated, and multiple tests are implemented to determine the performance of the observer. The results of these simulations are shown in Table 4 and Figure 4. It is remarked that as the weighting of Q increases, the error between the calculated states and the estimated states decreases.
Figure 4 shows the result of the simulations using different weights of the Q and R matrices. As in the case of pole assignment, the results provided by the observer are compared with the data from the experiments. The estimated rate conversion is compared with the measured one, and the estimated temperature is compared with that calculated by the model (Equation (6)). It is observed that when the weights w1 = 10 and w2 = 1 are used, the observer quickly converges both in the conversion (2 h) and in the temperature (1 h). Meanwhile, the weights w1 = w2 = 1 and w1 = 1 and w2 = 10 provide an acceptable response for the temperature estimation.

3.2. Observer Performance Assessment

Observer performance is evaluated through simulations considering different initial conditions for both variables and by using the pole assignment and LQR methods. Since the conversion rate cannot be negative and its equilibrium value is zero, the variations in the initial condition for this variable are all positive; in addition, variations in the initial condition of temperature are both positive and negative in reference to the equilibrium value, which is 333 °F. The comparison between both methods is made based on the values of IAE, IAET, and ISE. The results of the simulations are presented in Table 5.
Regarding the conversion rate, even if the variations in T0 affect the magnitude of the indexes, it is possible to identify a direct relationship between the variation in the initial condition of the conversion rate and the value of each index: the larger the variation, the higher the index value. A similar effect can be observed on the estimation of temperature, as small variations (positive or negative) in T0 lead to small values of indexes, and large absolute variations produce large values of indexes. This implies that the observer achieves better estimations when the initial conditions are close to the operating point. However, for large variations in the initial conditions, the observer can perform the variable estimations with minimal errors, which is desirable. According to these values, both methods allow the observer to give good results when the initial conditions vary from 5 to 30%. However, since the computation of the observer gain with LQR is easier, it can be selected as the method for the observer design.

3.3. Estimation of Transesterification Variables

Considering the above, the behavior of the observer using LQR is presented in Figure 5. Values 10% higher than the real conditions of the process are taken as the initial conditions of the observer. The evolution of each of the components of the reaction mixture is presented. The observer rapidly converges, and it is possible to have estimates of each component after 2 h. On the other hand, the estimates of E and TG, which are typically the most important variables in the transesterification process, converge after 2 h and 1.5 h, respectively. In this way, it is possible to know its evolution in real time without the need for offline analysis.

4. Discussion

State observers have already been used as a strategy to estimate variables [5,9,19,20,21,22], parameters [21], and even the reaction heat [10] in the homogeneous transesterification of oils for biodiesel production. The estimated variables are used as soft sensors in supervision systems or as elements in control strategies [21]; the final objective is to enhance the performance of reactors for biodiesel production. All of the reported observers consider the measure of temperature. Temperature directly affects the phenomena involved in the reaction; therefore, in the mathematical models of transesterification, temperature appears as a key element related to the transformation of triglycerides in biodiesel. The temperature variation directly affects the conversion of triglycerides, which is greater when the reactor temperature is increased since a higher temperature causes a better interaction between triglycerides and methanol, promoting the reaction [36,37]. However, in this study, the temperature of the reactor remained constant (temperature increase was not applied), and a convergence between the observer and the model was expected to be achieved in less than two hours. Another measure reported for observers’ design is pH; the pH variations are directly related to the methyl esters concentration, which can indicate the reaction evolution. In a basic catalyzed reaction, the OH ions are available in the reaction mixture at the beginning because of their insolubility in oil. As the reaction elapses, the formation of FAME and glycerol produces a decrease in OH concentration in the reaction since OH ions are more soluble in the products. In a heterogeneous catalyzed reaction, the variation in pH obeys the acid nature of the triglycerides and biodiesel. The pH in biodiesel of high quality should be neutral, so it is possible to deduce biodiesel production from pH measures [20,37]. Finally, since the target products depend on the conversion rate, this measure is used to determine the relationships between products and parameters; for this reason, conversion rate has been used as a measure for a parameters observer [21]. It is worth mentioning that few results of the observation of heterogeneous reactions have been reported. From a mathematical viewpoint, modeling heterogeneous transesterification could be complex since the reaction is performed in a liquid–liquid–solid system; this induces challenges regarding the representation of phenomena taking place in the reactors [26,32,33,34]. Therefore, the results reported in this paper can guide future research on this topic.
The methodology of implementing an extended Luenberger observer to estimate the concentration of TG, M, E, and G throughout the transesterification reaction may be the easiest one and offers a balance between precision and complexity. In comparison with other methods such as the EKF [5,10,38], fuzzy methods [19,20], and multimodel methods [22,23], the computational load of Luenberger observers is lower since no recurrent calculations are required. The reported observers consider six [5,10,20] or four [19,21] differential equations; multiobservers consider two equations or set of models with two equations [9,22], but these are reduced models, and only two variables are estimated. The Luenberger observer presented in this paper considers only two differential equations instead of six or four as usual; the estimation of the concentrations of products is performed by algebraic equations. Thus, less computational load is required for the computation of the observer gain and for the variables’ estimation.
Regarding performance, the Luenberger observer achieves the estimation in around 1 h for the best case; the other cases allow for a convergence in less than 3 h. This behavior is similar to that obtained in other works [5,19,20] where the same variables are estimated. In addition, no undesirable oscillations are observed with this observer, as found in another report [19]. In addition, the performance index is comparable with that obtained for multiobservers [9,22,23]. It is important to remember that heterogeneous transesterification is considered in this work instead of the homogeneous one considered in the other reported works.
In the studied transesterification reaction, rate conversion is the most restrictive variable since it requires offline analysis by chromatography. The reaction medium is sampled, the sample is prepared to be injected into a liquid chromatograph, and the result is analyzed to determine the conversion of triglycerides; this procedure takes around 30 min, and it must be performed each hour. The proposed observer allows us to know the conversion immediately once the temperature is known.
However, one of the main disadvantages of the Luenberger observer is that it requires in-depth knowledge of the characteristics of the process and the materials used. Likewise, Jacobians of the specific model describing the process are used to determine the gains of the Luenberger observer; this dependence could cause some divergence if there are changes in the model parameters.
Finally, from these results, it is suggested that the soybean oil transesterification process using a heterogeneous catalyst can be monitored by an extended Luenberger observer. TG measurements at different temperatures are sufficient to know the dynamics of heterogeneous transesterification and to estimate the concentration of triglycerides, methanol, biodiesel, and glycerol. However, it is necessary to complement the investigation with the validation of the behavior of the reactor temperature by means of real measurements. In this context, the results presented here are the basis for more complex supervision and control strategies. Future research could also integrate other variables, such as pH, that can be easily measured at a low cost and with robust sensors. It is feasible to consider other operating conditions (triglycerides’ source, catalyst, temperature, etc.) to expand the coverage of the observer. Also, it is possible to use this observer for fault detection procedures: if the observer produces anormal estimation of the variables, it can be associated with a failure in the reaction process. Finally, estimated variables could be used for automatic control schemes where all of the state variables are required online.

5. Conclusions

The extended Luenberger observer is adequate to estimate the evolution of the con-version of TG to biodiesel (E) and the temperature of the reactor, even when varying the initial conditions up to 30%. This offers an alternative to offline analyses such as gas chromatography analysis.
Temperature measurements can determine the dynamics of the heterogeneous trans-esterification process; however, in-depth knowledge of the characteristics of the process and the materials used is required, which can be considered a limitation or disadvantage of applying a state estimation strategy such as the extended Luenberger observer.
This study contributes to establishing a robust methodology for designing a state observer for people who do not have deep knowledge of mathematics or automatic control engineering.

Author Contributions

Conceptualization, L.D.-J., P.K.P. and S.C.-H.; formal analysis, A.P.G.-G. and S.C.-H.; investigation, A.P.G.-G.; methodology, A.P.G.-G., L.D.-J. and S.C.-H.; resources, L.D.-J. and S.C.-H.; software, A.P.G.-G. and S.C.-H.; supervision, L.D.-J. and P.K.P.; validation, A.P.G.-G. and S.C.-H.; writing—original draft, S.C.-H.; writing—review and editing, L.D.-J., P.K.P. and S.C.-H. All authors have read and agreed to the published version of the manuscript.

Funding

This research was funded by CONACYT-Mexico under the Master Fellowship CVU-924229 and PEI Project Grant No. 22185.

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

Dataset available on request from the authors.

Conflicts of Interest

The authors declare no conflicts of interest. The funders had no role in the design of the study; in the collection, analyses, or interpretation of data; in the writing of the manuscript; or in the decision to publish the results.

References

  1. Aguilar-Garnica, E.; Rodríguez-Palomera, F.; García-Sandoval, J.P.; Escalante, F.M.E. Dynamical modeling for biodiesel production from grease trap wastes. Chem. Eng. Sci. 2014, 117, 396–406. [Google Scholar] [CrossRef]
  2. Ho, Y.K.; Mjalli, F.S.; Yeoh, H. Multivariable adaptative predictive model based control of a biodiesel transesterification reactor. J. Appl. Sci. 2010, 10, 1019–1027. [Google Scholar] [CrossRef]
  3. Suresh, M.; Jawahar, C.P.; Richard, A. A review on biodiesel production, combustion, performance, and emission characteristics of non-edible oils in variable compression ratio diesel engine using biodiesel and its blends. Renew. Sustain. Energy Rev. 2018, 92, 38–49. [Google Scholar] [CrossRef]
  4. Talavera-Prieto, N.M.C.; Ferreira, A.G.M.; Moreira, R.J.; Portugal, A.T.G. Monitoring of the transesterification reaction by continuous off-line density measurements. Fuel 2020, 264, 116877. [Google Scholar] [CrossRef]
  5. López-Zapata, B.Y.; Adam-Medina, M.; Álvarez-Gutiérrez, P.E.; Castillo-González, J.P.; Hernández-de León, H.R.; Vela-Valdés, L.G. Virtual sensors for biodiesel production in a batch reactor. Sustainability 2017, 9, 455. [Google Scholar] [CrossRef]
  6. Oisiovici, R.M.; Cruz, S.L. State estimation of batch distillation columns using an extended Kalman filter. Chem. Eng. Sci. 2000, 55, 4667–4680. [Google Scholar] [CrossRef]
  7. Ezzati, R.; Ranjbar, S.; Soltanabadi, A. Kinetics models of transesterification reaction for biodiesel production: A theoretical analysis. Renew. Energy 2021, 168, 280–296. [Google Scholar] [CrossRef]
  8. Montacer, N.; Dehri, K.; Ben Atia, S.; Ben Abdennour, R. A Sliding Mode Multiobserver Based on an Uncoupled Multimodel: An Application on a Transesterification Reaction. Asian J. Control 2019, 21, 456–472. [Google Scholar] [CrossRef]
  9. Fida, T.; Anis, M.; Ridha, B.A. A discrete interval observer for linear system: Application on a real process. In Proceedings of the 2021 IEEE 2nd International Conference on Signal, Control and Communication (SCC), Tunis, Tunisia, 20–22 December 2021; Volume 1, pp. 74–80. [Google Scholar] [CrossRef]
  10. Chanpirak, A.; Weerachaipichasgul, W. Improvement of Maximum Production in the Batch Transesterification Reactor of Biodiesel by Using Nonlinear Model Based Control. In Transactions on Engineering Technologies; Elsevier: Amsterdam, The Netherlands, 2018; pp. 45–56. [Google Scholar] [CrossRef]
  11. Maleki, B.; Ashraf Talesh, S.S.; Mansouri, M. Comparison of catalysts types performance in the generation of sustainable biodiesel via transesterification of various oil sources: A review study. Mater. Today Sustain. 2022, 18, 100157. [Google Scholar] [CrossRef]
  12. Alismaeel, Z.T.; Al-Jadir, T.M.; Albayati, T.M.; Abbas, A.S.; Doyle, A.M. Modification of FAU zeolite as an active heterogeneous catalyst for biodiesel production and theoretical considerations for kinetic modeling. Adv. Powder Technol. 2022, 33, 103646. [Google Scholar] [CrossRef]
  13. Erdem Günay, M.; Yıldırım, R. Recent advances in knowledge discovery for heterogeneous catalysis using machine learning. Catal. Rev. Sci. Eng. 2021, 63, 120–164. [Google Scholar] [CrossRef]
  14. Esterhuizen, J.A.; Goldsmith, B.R.; Linic, S. Interpretable machine learning for knowledge generation in heterogeneous catalysis. Nat. Catal. 2022, 5, 175–184. [Google Scholar] [CrossRef]
  15. Okonkwo, C.P.; Ajiwe, V.I.E.; Obiadi, M.C.; Okwu, M.O.; Ayogu, J.I. Production of biodiesel from the novel non-edible seed of Chrysobalanus icaco using natural heterogeneous catalyst: Modeling and prediction using Artificial Neural Network. J. Clean. Prod. 2023, 385, 135631. [Google Scholar] [CrossRef]
  16. Xu, J.; Cao, X.M.; Hu, P. Perspective on computational reaction prediction using machine learning methods in heterogeneous catalysis. Phys. Chem. Chem. Phys. 2021, 23, 11155–11179. [Google Scholar] [CrossRef]
  17. Mohd Ali, J.; Ha Hoang, N.; Hussain, M.A.; Dochain, D. Review and classification of recent observers applied in chemical process systems. Comput. Chem. Eng. 2015, 76, 27–41. [Google Scholar] [CrossRef]
  18. Dochain, D. State and parameter estimation in chemical and biochemical processes: A tutorial. J. Process Control 2003, 13, 801–818. [Google Scholar] [CrossRef]
  19. Aguilar-Garnica, E.; García-Sandoval, J.P.; Dochain, D. Monitoring of a biodiesel production process via reset observer. J. Process Control 2016, 42, 104–113. [Google Scholar] [CrossRef]
  20. López Zapata, B.Y.; Adam Medina, M.; Álvarez Gutiérrez, P.; Hernández de León, H.; García Beltrán, C.; Meza Gordillo, R. Different approaches for the dynamic model for the production of biodiesel. Chem. Eng. Res. Des. 2018, 132, 536–550. [Google Scholar] [CrossRef]
  21. Kern, R.; Shastri, Y. Advanced control with parameter estimation of batch transesterification reactor. J. Process Control 2015, 33, 127–139. [Google Scholar] [CrossRef]
  22. Messaoud, A.; Ben Atia, S.; Ben Abdennour, R. An unknown input multiobserver based on a discrete uncoupled multimodel for uncertain nonlinear systems: Experimental validation on a transesterification reactor. ISA Trans. 2019, 93, 302–311. [Google Scholar] [CrossRef] [PubMed]
  23. Montacer, N.; Ben Atia, S.; Dehri, K.; Ben Abdennour, R. Fault detection using sliding mode multiobserver for nonlinear systems: Validation on a real chemical process. JVC J. Vib. Control 2024, 30, 314–329. [Google Scholar] [CrossRef]
  24. Reyero, I.; Arzamendi, G.; Zabala, S.; Gandía, L.M. Kinetics of the NaOH-catalyzed transesterification of sunflower oil with ethanol to produce biodiesel. Fuel Process. Technol. 2015, 129, 147–155. [Google Scholar] [CrossRef]
  25. Mahmudul, H.M.; Hagos, F.Y.; Mamat, R.; Adam, A.A.; Ishak, W.F.W.; Alenezi, R. Production, characterization and performance of biodiesel as an alternative fuel in diesel engines—A review. Renew. Sustain. Energy Rev. 2017, 72, 497–509. [Google Scholar] [CrossRef]
  26. Shan, R.; Lu, L.; Shi, Y.; Yuan, H.; Shi, J. Catalysts from renewable resources for biodiesel production. Energy Convers. Manag. 2018, 178, 277–289. [Google Scholar] [CrossRef]
  27. Tabatabaei, M.; Aghbashlo, M.; Dehhaghi, M.; Panahi, H.K.S.; Mollahosseini, A.; Hosseini, M.; Soufiyan, M.M. Reactor technologies for biodiesel production and processing: A review. Prog. Energy Combust. Sci. 2019, 74, 239–303. [Google Scholar] [CrossRef]
  28. Avhad, M.R.; Marchetti, J.M. Innovation in solid heterogeneous catalysis for the generation of economically viable and ecofriendly biodiesel: A review. Catal. Rev. Sci. Eng. 2016, 58, 157–208. [Google Scholar] [CrossRef]
  29. Gupta, V.; Pal Singh, K. The impact of heterogeneous catalyst on biodiesel production; a review. Mater. Today Proc. 2023, 78, 364–371. [Google Scholar] [CrossRef]
  30. Zhang, Y.; Duan, L.; Esmaeili, H. A review on biodiesel production using various heterogeneous nanocatalysts: Operation mechanisms and performances. Biomass Bioenergy 2022, 158, 106356. [Google Scholar] [CrossRef]
  31. Muthukumaran, C.; Sharmila, G.; Manojkumar, N.; Gnanaprakasam, A.; Sivakumar, V.M. Optimization and Kinetic Modeling of Biodiesel Production; Elsevier Ltd.: Amsterdam, The Netherlands, 2020; ISBN 9780128035818. [Google Scholar]
  32. González García, A.P.; Figueroa Díaz, A.B.; Carlos Hernández, S.; Padmadas, P.K.; Díaz Jiménez, L. Guishe biochar as heterogeneous catalyst for biodiesel production: Synthesis and transesterification modeling. React. Kinet. Mech. Catal. 2022, 135, 2643–2661. [Google Scholar] [CrossRef]
  33. Dhawane, S.H.; Al-Sakkari, E.G.; Halder, G. Kinetic Modelling of Heterogeneous Methanolysis Catalysed by Iron Induced on Microporous Carbon Supported Catalyst. Catal. Lett. 2019, 149, 3508–3524. [Google Scholar] [CrossRef]
  34. Trejo-Zárraga, F.; de Jesús Hernández-Loyo, F.; Chavarría-Hernández, J.C.; Sotelo-Boyás, R. Kinetics of Transesterification Processes for Biodiesel Production. In Biofuels—State of Development; IntechOpen: London, UK, 2018. [Google Scholar] [CrossRef]
  35. Coughanowr, D.R. Process Systems Analysis and Control; McGraw-Hill, Inc.: New York, NY, USA, 1991; Volume 2, pp. 129–130. [Google Scholar]
  36. Sharma, A.; Kodgire, P.; Kachhwaha, S.S. Investigation of Ultrasound-Assisted KOH and CaO Catalyzed Transesterification for Biodiesel Production from Waste Cotton-Seed Cooking Oil: Process Optimization and Conversion Rate Evaluation; Elsevier Ltd.: Amsterdam, The Netherlands, 2020; Volume 259, ISBN 9183475648. [Google Scholar]
  37. Clark, W.M.; Medeiros, N.J.; Boyd, D.J.; Snell, J.R. Biodiesel transesterification kinetics monitored by pH measurement. Bioresour. Technol. 2013, 136, 771–774. [Google Scholar] [CrossRef] [PubMed]
  38. Price, J.; Nordblad, M.; Woodley, J.M.; Huusom, J.K. Real-time model based process monitoring of enzymatic biodiesel production. Biotechnol. Prog. 2015, 31, 585–595. [Google Scholar] [CrossRef] [PubMed]
Figure 1. General scheme of state observer.
Figure 1. General scheme of state observer.
Mps 07 00027 g001
Figure 2. Schema of state observer for heterogeneous reaction for biodiesel production.
Figure 2. Schema of state observer for heterogeneous reaction for biodiesel production.
Mps 07 00027 g002
Figure 3. Observer performance considering different sets of poles (pole assignment method). (a) Triglycerides’ conversion estimation. (b) Reaction temperature. GR: poles with general recommendation, Fast: fast poles, Slow: slow poles, and Fast, GR: fast pole and general recommendation pole.
Figure 3. Observer performance considering different sets of poles (pole assignment method). (a) Triglycerides’ conversion estimation. (b) Reaction temperature. GR: poles with general recommendation, Fast: fast poles, Slow: slow poles, and Fast, GR: fast pole and general recommendation pole.
Mps 07 00027 g003
Figure 4. Observer performance considering different matrix weights (LQR method).
Figure 4. Observer performance considering different matrix weights (LQR method).
Mps 07 00027 g004
Figure 5. Estimation of the variables in the transesterification reaction by the Luenberger observer.
Figure 5. Estimation of the variables in the transesterification reaction by the Luenberger observer.
Mps 07 00027 g005
Table 1. Observers for transesterification for biodiesel production.
Table 1. Observers for transesterification for biodiesel production.
ObserverMeasuresEstimatedSystemRef.
EKFTemperature; pHTG, DG, MG, G, and EHomogeneous transesterification in CSTR[5]
FuzzyTemperatureFFA, E, and waterHomogeneous esterification in CSTR[19]
Fuzzy ResetTemperatureFFA, E, and waterHomogeneous esterification in CSTR[19]
Functional FuzzyTemperature; pHTG, DG, MG, G, and EHomogeneous transesterification in CSTR[20]
Discrete IntervalTemperatureFatty material; estersHomogeneous transesterification in batch[9]
EKFTemperatureReaction heatHomogeneous transesterification[10]
Evolutionary AlgorithmTemperature; conversion rateParametersBatch homogeneous transesterification[21]
Unknown Input MultimodelTemperatureFatty material; estersHomogeneous transesterification in semi-batch[22]
Sliding ModeTemperatureFatty material; estersHomogeneous transesterification in batch[23]
* Artificial Neural NetworkCatalyst concentrationEsters yieldHeterogeneous transesterification[15]
** Machine LearningTo be studiedThermodynamic and kinetic dataHeterogeneous catalysis[16]
TG: triglycerides, DG: diglycerides, MG: monoglycerides, G: glycerol, E: fatty acid methyl esters, and FFA: free fatty acids. * Presented as a prediction application. ** Presented as a perspective of machine learning in heterogeneous catalysis.
Table 2. Model parameters.
Table 2. Model parameters.
NameSymbolValueUnit
Conversion rater0 amol·L−1·h−1
Triglyceride concentrationCTG0.75 amol·L−1
Ester concentrationCE0 amol·L−1
Methanol concentrationCM6.8 amL·L−1
Glycerol concentrationCG0 amL·L−1
Forward reaction constantk11.72 × 105L2·mol2·h−1
Backward reaction constantk22.34 × 10−41-
Forward reaction constantk32.46 × 10−32L·mol−1
Backward reaction constantk48.71 × 10−19L·mol−1
Reaction temperatureT333 aK
Reaction enthalpyΔHR−260,718J·mol−1
TG molar relationshipθTG0.0012-
Methanol molar relationshipθM0.6061-
Ester molar relationshipθE0.2945-
Glycerol molar relationshipθG0.0982-
TG specific heatCpTG3032J·mol−1·K−1
Methanol specific heatCpM2785J·mol−1·K−1
Ester specific heatCpE2234J·mol−1·K−1
Glycerol specific heatCpG2556J·mol−1·K−1
Heat transfer coefficientU511,200J·h−1·m−2·K
Reactor areaA0.0316m2
Room temperatureTA333K
Limiting reactive initial molN0TG0.285mol
a Corresponds to the initial condition.
Table 3. Observer performance considering the pole assignment method.
Table 3. Observer performance considering the pole assignment method.
Observer Poles
1 λ2]
Observer Performance a
TG ConversionTemperature
[GR GR]0.42510.8688
[slow slow]1.49009.5167
[fast fast]0.10340.2739
[slow GR]1.48539.4845
[fast GR]0.11380.2434
[GR slow]0.45940.9528
[GR fast]0.38091.3111
[fast slow]0.16620.5908
[slow fast]1.46887.761
a According to the IAET index, and considering observer initial conditions as [X1 X2]0 = [0.1 339].
Table 4. Observer performance considering the LQR method.
Table 4. Observer performance considering the LQR method.
Q and R Weight
[w1 w 2]
Observer Performance a
TG ConversionTemperature
[1 1000]1.586112.3256
[1 100]1.51939.5437
[1 10]1.02162.2526
[1 1]0.27550.8675
[1 0.1]0.06970.2759
[0.1 1]1.02162.2526
[10 1]0.06380.1958
a According to the IAET index.
Table 5. Observer performance considering different initial conditions and selected vector gain.
Table 5. Observer performance considering different initial conditions and selected vector gain.
Observer Initial Conditions [x1 x2]0Performance IndexTG ConversionTemperature
PolesLQRPolesLQR
[0.05 330]IAE0.04160.04851.59391.5809
IAET0.04400.050.76260.4934
ISE0.00130.00154.50114.5012
[0.05 336]IAE0.11410.09571.65971.6304
IAET0.20640.13281.10470.587
ISE0.003700.00334.50294.5035
[0.1 327]IAE0.08220.09463.15233.0991
IAET0.08810.08551.47270.4556
ISE0.00530.005818.003318.0017
[0.1 339]IAE0.23880.20293.16253.2331
IAET0.42510.27550.86880.8675
ISE0.01610.014718.003618.0137
[0.2 321]IAE0.16030.18126.14046.1589
IAET0.13880.14550.84820.6968
ISE0.02110.022972.002472.0054
[0.2 345]IAE0.52780.46356.33476.3696
IAET0.98140.66492.1750.8015
ISE0.075300.072972.013172.0547
[0.3 315]IAE0.23880.26519.179.17
IAET0.21650.20711.340.51
ISE0.04740.0507162162
[0.3 351]IAE0.87320.79359.319.55
IAET1.65421.23071.361.14
ISE0.19830.2014162162
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

González-García, A.P.; Díaz-Jiménez, L.; Padmadas, P.K.; Carlos-Hernández, S. Indirect Measurement of Variables in a Heterogeneous Reaction for Biodiesel Production. Methods Protoc. 2024, 7, 27. https://doi.org/10.3390/mps7020027

AMA Style

González-García AP, Díaz-Jiménez L, Padmadas PK, Carlos-Hernández S. Indirect Measurement of Variables in a Heterogeneous Reaction for Biodiesel Production. Methods and Protocols. 2024; 7(2):27. https://doi.org/10.3390/mps7020027

Chicago/Turabian Style

González-García, Ana Paloma, Lourdes Díaz-Jiménez, Padmasree K. Padmadas, and Salvador Carlos-Hernández. 2024. "Indirect Measurement of Variables in a Heterogeneous Reaction for Biodiesel Production" Methods and Protocols 7, no. 2: 27. https://doi.org/10.3390/mps7020027

Article Metrics

Back to TopTop