Abstract
Propane (C3H8) and hydrogen (H2) are regarded as alternative fuels that are favorable to the environment. Hydrogen gas's low energy density, storage, and transportation are the main issues with using it as an alternative fuel. Addition of hydrogen gas in the combustion of propane will also improve flame stability, broaden lean flammability limits, and reduces pollutant emissions. Thus, utilizing propane and hydrogen mixtures as fuel is a good choice. Laminar burning speed is a fundamental property of a combustible mixture and can be used to provide information regarding the mixture’s reactivity, exothermicity, and diffusivity. In this study, power-law correlation and machine learning methods were used to create models that predict the laminar burning speed of propane/hydrogen/air mixtures at various states. Two machine learning models are artificial neural network (ANN) and support vector machine (SVM). The data were generated by using CANTRA code and a chemical kinetic mechanism. For a wide variety of input values, the models were able to determine the laminar burning speed with great accuracy. The ANN model yields the best performance. The main advantage of these models is the noticeably faster computing time when compared to chemical reaction mechanisms.
1 Introduction
Propane is a colorless, odorless gas that belongs to the family of hydrocarbon fuels. It is commonly used as a source of energy for various applications. Propane is derived from natural gas processing and petroleum refining. It is highly portable, easy to store, and has a high energy density, making it a popular choice for residential, commercial, and industrial purposes. Hydrogen is a colorless, odorless, and highly flammable gas at room temperature. In a variety of applications and industries, hydrogen is essential. The creation of methanol for chemicals, ammonia for fertilizers, and several other significant industrial operations all use hydrogen as a key feedstock. Additionally, hydrogen is used as a reducing agent in metallurgical processes and the refinement of fossil fuels.
Solar energy can be used to produce green hydrogen through a process called solar water splitting or photovoltaic electrolysis. This process involves using solar panels or photovoltaic cells to convert sunlight directly into electricity, which is then used to split water molecules into hydrogen (H2) and oxygen (O2) through electrolysis [1].
Both hydrogen and propane are regarded as alternative fuels that are favorable to the environment. Hydrogen gas's low energy density, storage, and transportation are the main issues with using it as an alternative fuel. Additionally, the addition of hydrogen to the hydrocarbon combustion process enhances flame stability, expands lean flammability limits, and lowers pollutant emissions [2]. Thus, utilizing propane and hydrogen mixtures as fuel is a good option.
Laminar burning speed is a fundamental property of a combustible mixture and can be used to provide information regarding the mixture’s reactivity, exothermicity, and diffusivity. Laminar burning speed is directly dependent on fuel type, equivalence ratio, pressure, and temperature. Laminar burning speed is an important parameter in combustion research and engineering applications. It is used to characterize fuel performance, evaluate combustion efficiency, and model flame behavior in various systems. It plays a crucial role in the design and optimization of internal combustion engines, gas turbines, and other combustion devices.
There are several experimental methods to measure laminar burning speed of propane/hydrogen/air mixtures. The methods can be divided into stationary flame method and propagating flame method based on the flame type. For the stationary flame method, some commonly used burners include the Bunsen burner, the counter flow burner, and the flat flame burner. The propagating flame method also can be separated into the constant pressure method and the constant volume method [3–7]. Dirrenberger et al. [8] utilized a newly built flat flame adiabatic burner to perform laminar burning speed measurements. Tang et al. [9] measured laminar burning speeds of the propane/hydrogen/air mixtures by using the constant pressure method. Wang et al. and Yelishala et al. [10,11] used the constant volume method to measure the burning speed of propane–air–carbon dioxide at elevated temperatures and pressures. Also, the theoretical laminar burning speed can be calculated using chemical kinetic mechanisms [12,13].
Artificial intelligence (AI) refers to the simulation of human intelligence in machines that are programmed to think, learn, and perform tasks that typically require human intelligence. It encompasses a wide range of technologies and techniques that enable machines to perceive, reason, and act intelligently. Machine learning is a branch of artificial intelligence that focuses on developing algorithms and models capable of learning from data and making predictions or decisions without explicit programming. It involves the use of statistical techniques and computational algorithms to enable computers to learn and improve from experience automatically. Deep learning is a subset of machine learning that focuses on artificial neural networks inspired by the structure and function of the human brain. It leverages these neural networks, often referred to as deep neural networks, to learn and make predictions from large amounts of data.
In the last few years, artificial intelligence was introduced to combustion research. Also, it has been used in determining laminar burning speed of fuel/air mixtures. Eckart et al. [14] applied and compared some machine learning methods for the calculation of laminar burning speed for hydrogen–methane mixtures. Malik et al. [15] created a laminar burning speed model based on a deep neural network for hydrogen and propane with air. Shahpouri et al. [16] designed a model of machine learning to predict laminar burning speed of low-carbon fuels. Varghese and Kumar [17] developed a Machine learning model to predict laminar burning velocities of H2/CO/CH4/CO2/N2/air mixtures at high pressure and temperature conditions.
The goal of this paper is to predict laminar burning speeds of C3H8/H2/air mixtures for a wide range of C3H8/H2/air combustion conditions using power-law correlation and two machine learning models. The models were created by fitting known laminar burning speed data. The data were generated by using CANTRA code and a chemical kinetic mechanism. Results of predicted laminar burning speeds using a power-law correlation, artificial neural network (ANN), and support vector machine (SVM) have been compared in this work.
2 Data Generation
A summary of the range of the data set is given in Table 1. Thus, burning speed of 1260 states for the train set and 210 states for the test set were calculated.
Train set | Test set | |
---|---|---|
Hydrogen mole fraction | 0, 20%, 40%, 60%, 80%, 100% | 0, 20%, 40%, 60%, 80%, 100% |
Equivalence ratio | 0.6, 0.8, 1, 1.2, 1.4 | 0.6, 0.8, 1, 1.2, 1.4 |
Pressure | 1, 2, 3, 4, 5, 6 bar | Related to temperature |
Temperature | 300, 350, 400, 450, 500, 550, 600 K | 425, 450, 475, 500, 525, 550, 575 K |
Train set | Test set | |
---|---|---|
Hydrogen mole fraction | 0, 20%, 40%, 60%, 80%, 100% | 0, 20%, 40%, 60%, 80%, 100% |
Equivalence ratio | 0.6, 0.8, 1, 1.2, 1.4 | 0.6, 0.8, 1, 1.2, 1.4 |
Pressure | 1, 2, 3, 4, 5, 6 bar | Related to temperature |
Temperature | 300, 350, 400, 450, 500, 550, 600 K | 425, 450, 475, 500, 525, 550, 575 K |
3 Methodology
Several methods have been used to fit known laminar burning speeds for C3H8/H2/air mixtures and predict unknown laminar burning speeds for C3H8/H2/air mixtures.
3.1 Power-Law Correlation.
3.2 Artificial Neural Network.
ANN is a computational model inspired by the structure and function of biological neural networks, such as the human brain. ANN is a fundamental concept within the field of artificial intelligence and machine learning.
Hyperparameters in an ANN model are parameters that are set before the training process begins and determine the behavior and performance of the network. The number of hidden layers in the network is a crucial hyperparameter. It determines the depth and complexity of the model. The number of neurons in each hidden layer is another hyperparameter. It controls the representational capacity and learning ability of the network. A loss function, also known as a cost function, is a measure that quantifies how well a machine learning model is performing on a given task. It calculates the error or discrepancy between the predicted output of the model and the true output or target value. An activation function is a mathematical function that is applied to the output of a neuron in an ANN. It introduces non-linearity to the network, allowing it to learn and model complex relationships in the data. The learning rate is a hyperparameter that determines the step size at each iteration when updating the parameters of a machine learning or deep learning model during the training process. Adaptive learning-rate algorithms are optimization techniques used in machine learning and deep learning to automatically adjust the learning rate during the training process.
An ANN model is typically constructed in several steps. Here is a general description of what happens:
Data Preparation: Compile and preprocess the data first.
Model Structure Design: Decide the structure of the ANN. Choosing the number of layers, the number of neurons in each layer, and the activation functions to be applied are all part of this process. The type of data and the nature of the challenge will determine the structure.
Initialization: Initialize the weights and biases of the neural network. This step randomly assigns initial values to the parameters, which will be updated during the training process to optimize the model's performance.
- Forward Propagation: Perform forward propagation to compute the output of the neural network. In this step, the input data are fed into the network, and the activation function of each active node receives the total of the input values multiplied by certain weights, as depicted in Fig. 1. Each next layer n + 1 is connected to layer n bywhere V is the vector in each layer, w is the matrix containing the weights, vector b contains the biases, N is the number of neurons in the layer, and f is the activation function.(4)
Loss Calculation: Calculate the loss or error between the predicted output and the actual output. The choice of the loss (cost) function depends on the specific problem, such as MSE for regression tasks or categorical cross-entropy for classification tasks.
Backpropagation: Perform backpropagation to propagate the error backward through the network. This step involves calculating the gradients of the loss function with respect to the weights and biases of the neural network. The gradients indicate the direction and magnitude of the updates required to minimize the loss.
Parameter Updates: Update the weights and biases of the neural network using an optimization algorithm. The most used optimization algorithm is stochastic gradient descent (SGD), but there are also variants like Adam, RMSprop, and others. These algorithms use the calculated gradients to determine the updates that should be made to the parameters to minimize the loss.
Iterative Training: Repeat Steps 4–7 iteratively for a defined number of epochs or until a convergence criterion is met. The forward propagation, loss calculation, backpropagation, and parameter updates are all carried out at each iteration to update the model's parameters and boost performance.
Model Evaluation: Evaluate the trained model using a separate test data set or through cross-validation. Calculate performance metrics such as accuracy, precision, recall, or mean squared error, depending on the type of problem. This step enables evaluation of the model's ability to generalize to unseen data.
A Jupyter script with Pytorch is used to perform these calculations. The ANN model is used for prediction of laminar burning speed. Figure 2 shows the structure of this ANN model. It has four inputs, hydrogen mole fraction, equivalence ratio, pressure, and unburned gas temperature, two hidden layers, and one output laminar burning speed. The hyperparameters selected in this model are listed in Table 2.
Hyperparameter | Value |
---|---|
Loss (cost) function | Mean squared error (MSE) |
Learning rate | 10−2 |
Adaptive learning-rate algorithms | Adam |
Activation function | tanh |
Number of hidden layers | 2 |
Number of neurons per hidden layer | 32 for layer 1 |
64 for layer 2 |
Hyperparameter | Value |
---|---|
Loss (cost) function | Mean squared error (MSE) |
Learning rate | 10−2 |
Adaptive learning-rate algorithms | Adam |
Activation function | tanh |
Number of hidden layers | 2 |
Number of neurons per hidden layer | 32 for layer 1 |
64 for layer 2 |
3.3 Support Vector Machines.
SVM is a popular supervised machine learning algorithm used for classification and regression tasks. SVMs are widely used for their effectiveness in handling both linear and non-linear data separation. The main idea behind SVM is to find an optimal hyperplane that separates data points of different classes in a high-dimensional feature space. A hyperplane is a decision boundary that maximizes the margin, or the distance, between the closest data points of different classes. The data points that are closest to the hyperplane are called support vectors. Figure 3 shows all components of SVM model. When SVM is used for regression, then it is generally referred to as support vector regression (SVR).
These computations are carried out using a Jupyter script with sklearn. The SVM model for laminar burning speed prediction also has four inputs: hydrogen mole fraction, equivalence ratio, pressure, and unburned gas temperature. The hyperparameters selected in this model are listed in Table 3. The kernel function is to take data as input and transform it into the required form. The kernel coefficient (γ parameter) defines how far the influence of a single training example reaches, with low values meaning “far” and high values meaning “close.” The regularization parameter (C parameter) trades off correct classification of training examples against maximization of the decision function’s margin [21].
4 Results and Discussion
4.1 Power-Law Correlation.
For the power-law correlation, laminar burning speed of propane/hydrogen/air mixtures has been fitted in different mole fractions of hydrogen. The extended equation mentioned earlier have been utilized. Equation (3) has been used to fit all data. Different set of fitting variables a, b, α0, α1, β0, and, β1 have been determined for different mole fraction of hydrogen. The coefficients for different hydrogen each fraction are shown in Table 4.
a | b | α0 | α1 | β0 | β1 | ||
---|---|---|---|---|---|---|---|
0 | 0.3424 | 0.1007 | −2.9337 | 1.8010 | 0.1661 | −0.2764 | −0.0188 |
20% | 0.3601 | 0.1233 | −2.8758 | 1.7938 | 0.1707 | −0.2747 | −0.0209 |
40% | 0.3886 | 0.1622 | −2.7874 | 1.7855 | 0.1767 | −0.2748 | −0.0210 |
60% | 0.4432 | 0.2405 | −2.6181 | 1.7963 | 0.1613 | −0.2763 | −0.0179 |
80% | 0.5905 | 0.4486 | −2.2068 | 1.8952 | 0.0542 | −0.2821 | −0.0050 |
100% | 1.9973 | 1.1980 | −0.6930 | 2.7784 | −0.8282 | −0.3638 | 0.2530 |
a | b | α0 | α1 | β0 | β1 | ||
---|---|---|---|---|---|---|---|
0 | 0.3424 | 0.1007 | −2.9337 | 1.8010 | 0.1661 | −0.2764 | −0.0188 |
20% | 0.3601 | 0.1233 | −2.8758 | 1.7938 | 0.1707 | −0.2747 | −0.0209 |
40% | 0.3886 | 0.1622 | −2.7874 | 1.7855 | 0.1767 | −0.2748 | −0.0210 |
60% | 0.4432 | 0.2405 | −2.6181 | 1.7963 | 0.1613 | −0.2763 | −0.0179 |
80% | 0.5905 | 0.4486 | −2.2068 | 1.8952 | 0.0542 | −0.2821 | −0.0050 |
100% | 1.9973 | 1.1980 | −0.6930 | 2.7784 | −0.8282 | −0.3638 | 0.2530 |
Table 5 shows the MSE and coefficient of determination (R2) of the train set and test set as well as the average relative error of power-law correlation for different hydrogen mole fraction.
MSE | R2 | Relative error | |||
---|---|---|---|---|---|
Train set | Test set | Train set | Test set | ||
0 | 6.0048E-04 | 1.2902E-04 | 0.9907 | 0.9949 | 6.91% |
20 | 6.7539E-04 | 1.5438E-04 | 0.9905 | 0.9944 | 6.91% |
40 | 7.9722E-04 | 2.0259E-04 | 0.9904 | 0.9935 | 6.88% |
60 | 1.0560E-03 | 3.0261E-04 | 0.9903 | 0.9923 | 6.71% |
80 | 1.8157E-03 | 6.8564E-04 | 0.9912 | 0.9911 | 6.04% |
100 | 2.5024E-02 | 6.3119E-03 | 0.9942 | 0.9977 | 5.05% |
MSE | R2 | Relative error | |||
---|---|---|---|---|---|
Train set | Test set | Train set | Test set | ||
0 | 6.0048E-04 | 1.2902E-04 | 0.9907 | 0.9949 | 6.91% |
20 | 6.7539E-04 | 1.5438E-04 | 0.9905 | 0.9944 | 6.91% |
40 | 7.9722E-04 | 2.0259E-04 | 0.9904 | 0.9935 | 6.88% |
60 | 1.0560E-03 | 3.0261E-04 | 0.9903 | 0.9923 | 6.71% |
80 | 1.8157E-03 | 6.8564E-04 | 0.9912 | 0.9911 | 6.04% |
100 | 2.5024E-02 | 6.3119E-03 | 0.9942 | 0.9977 | 5.05% |
The relative error is somehow high for all the cases of this methods. Because of that the machine learning methods have been used to fit the data and predict the laminar burning speed.
The developed machine learning models for laminar burning speed prediction have four inputs: hydrogen mole fraction, equivalence ratio, pressure, and unburned gas temperature, and the output is predicted laminar burning speed.
4.2 Artificial Neural Network.
For the ANN model, the MSE and coefficient of determination (R2) of the train set and test set as well as the average relative error are listed in Table 6. It can be seen that the coefficient of determination (R2) is very close to 1 which means that the ANN model perfectly predicts the outcome. Table 6 also shows the error is less than 1%, making it almost a perfect fit.
4.3 Support Vector Machines.
For the SVM model, two data sets were used. One of the data sets does not contain the data under the condition that the hydrogen mole fraction is 100%. The other data set contains the data under this condition which is the whole data set mentioned previously. The MSE, coefficient of determination (R2), and the average relative error of the two data sets are listed in Table 7. For the whole data set, the MSE and relative error are quite significant, making it not a good fit; but, for a part of the data set, it is a decent fitting. The partial data set's coefficient of determination (R2) is quite near 1, indicating that the SVM model accurately predicts the result. The following result is based on the partial data set.
4.4 Comparison of Methods.
The primary benefit of these methods is the significantly faster computation time when compared to solving one-dimensional premixed flame with a chemical reaction mechanism. As an example, the run time using the chemical reaction mechanism to predict the laminar burning speed of C3H8/H2/air mixtures is around 30 s, and the run time using the ANN model and SVM model to predict the laminar burning speed of C3H8/H2/air mixtures is around 2–3 milliseconds. The computations were done with Apple M1 chip with eight-core CPU, 8-core GPU, and 16-core Neural Engine. Based on the Tables 6 and 7, both the ANN model and SVM model show good predictive accuracy over a wide range of conditions. The ANN model has a better prediction performance than the SVM model.
Figure 4 shows the laminar burning speed of propane air mixture with zero hydrogen at 1 atm pressure and temperature of 298 K as a function of fuel/air equivalence ratio. Comparison of theoretical laminar burning speeds of C3H8/H2/air with predicted laminar burning speeds of three methods is performed. Also, included, are measured values of burning speed by a few researchers. It can be seen that the ANN method has the best prediction followed by the SVM method.
Figure 5 shows the burning speed of propane/hydrogen/air mixtures at 1 atm pressure, temperature of 298 K, and hydrogen mole fraction of 20% as a function of fuel/air equivalence ratio. It can be seen that the equivalence ratio at which the burning speed is maximum slightly shift to richer mixture. The two AI models almost predict the same values for burning speeds while power law fit under-predicts the burning speed as it does for hydrogen mole fraction of zero.
Figures 6–8 predict the burning speeds of propane/hydrogen/ air mixtures at a temperature of 298 K, a pressure of 1 atm, and hydrogen mole fractions of 40%, 60%, and 80%. It can be seen that the two AI methods are great, the fuel/air equivalence ratio where burning speed is maximum to richer mixtures. This is because hydrogen burning speed is maximum at a very rich mixture. Also, values of burning speeds increase as percentages of hydrogen increase in the fuel mixture. This is due to having a very high burning speed for hydrogen.
Figures 9–13 show a comparison of theoretical laminar burning speeds of C3H8/H2/air with predicted laminar burning speeds of three methods. In these figures, burning speeds are shown as a function of pressure for stoichiometric mixtures and temperature of 500 K. Mole fraction of hydrogen is zero in Fig. 9, 20% in Fig. 10, 40% in Fig. 11, 60% in Fig. 12, and 80% in Fig. 13. Figure 9 also shows the experimental results of Wang [9]. It can be seen that at a high temperature of 500 K, the power-law correlation (Eq. (3)) and both AI models predict burning speed values relatively fine. It also can be seen that as pressure increases, burning speed decreases and Eq. (3) shows this clearly as the pressure exponent is negative. It can also be seen that burning speed increases as the mole fraction of hydrogen increases.
Figures 14–18 show that the theoretical values have been compared with three predicted results of correlation (Eq. (3)) and two AI models. Also, the experimental results of Wang et al. [10] are included in Fig. 14. These comparisons have been made for stoichiometric mixtures having a pressure of 3 atmosphere with a wide range of temperatures. All three fits are fine with the ANN method slightly better. It can be observed that burning speed is a very strong function of temperature as is evident by having a positive number of about 2 for temperature exponents in the correlation (Eq. (3)). This is true for all hydrogen mixtures. Also, these figures show the burning speeds of the mixtures increase as the percentage of hydrogen in the mixture is increased.
5 Conclusion
In this work, several methods including power-law correlation and machine learning techniques have been used to fit known laminar burning speeds for C3H8/H2/air mixtures and achieve a function or model to predict unknown laminar burning speeds of fuel/air mixtures. The input of this function or model is the hydrogen mole fraction, equivalence ratio, pressure, and unburned gas temperature. For a wide variety of input values, the models were able to determine the laminar burning speed with great accuracy. The ANN model yields the best performance. The main advantage of these models is the noticeably faster computing time when compared to chemical reaction mechanisms.
Conflict of Interest
There are no conflicts of interest. This article does not include research in which human participants were involved. Informed consent is not applicable. This article does not include any research in which animal participants were involved.
Data Availability Statement
The data sets generated and supporting the findings of this article are obtainable from the corresponding author upon reasonable request.