Abstract
The membrane water content of the proton exchange membrane fuel cell (PEMFC) is the most important feature required for water management of the PEMFC system. Any improper management of water in the fuel cell may lead to system faults. Among various faults, flooding and drying faults are the most frequent in the PEMFC systems. This paper presents a new dynamic semi-empirical model which requires only the load current and temperature of the PEMFC system as the input while providing output voltage and membrane water content as its major outputs. Unlike other PEMFC systems, the proposed dynamic model calculates the internal partial pressure of oxygen and hydrogen rather than using special internal sensors. Moreover, the membrane water content and internal resistances of PEMFC are modelled by incorporating the load current condition and temperature of the PEMFC system. The model parameters have been extracted by using a quantum lightening search algorithm as an optimization technique, and the performance is validated with experimental data obtained from the NEXA 1.2 kW PEMFC system. To further demonstrate the capability of the model in fault detection, the variation in membrane water content has been studied via the simulation. The proposed model could be efficiently used in prognostic and diagnosis systems of PEMFC fault.
THE fuel cells are electrochemical energy conversion devices that convert chemical energy to electrical energy. In recent years, fuel cell research has become a promising area as it is applied in automobiles, aircrafts, the power sector, and other miscellaneous industries. Proton exchange membrane fuel cell (PEMFC) is the most commonly-used type of fuel cell in almost all major applications because of its low cost, durability, and compactness. It has high power density, low operation temperature, and the best efficiency among all other fuel cell variants. However, there are many issues related to the massive utilization of PEMFC systems because of their high cost and short lifetime [
In the PEMFC system, the main fuel is hydrogen gas, which reacts with oxygen in the presence of a catalyst to produce water and electricity. The existence of water is necessary for the proper operation of a PEMFC system. This is because an appropriate hydration of the membrane in the PEMFC system is necessary for the effective transportation of ions. Under dry ambient conditions, external humidifiers may be required for hydration. On the other hand, in humid locations, external fans may be used for removing excess water [
Mathematical modelling has been used to simulate the process of the PEMFC system in order to take the best measures to improve their performances. The mathematical modelling of PEMFCs is divided into two groups: mechanistic modelling and semi-empirical modelling [
The semi-empirical models discussed in [
Membrane drying may occur ① due to insufficient humidification, especially when provided with extremely dry reactant gases; ② at high PEMFC temperature when the water formation is not compensated; and ③ at high temperature with a step increase of current leading to dehydration. The rise in the temperature of PEMFCs may cause drying faults, especially with a step increase in load. These faults may be temporary if a proper self-humidification system is present. However, in regular commercial PEMFC systems, drying may be prolonged and cause permanent damage [
The flooding fault is categorized into three groups: anode flooding, cathode flooding, and flow channels flooding. The main concerns are in anode and cathode flooding. The cathode is more prone to flood than the anode because water formation occurs at the cathode after the reaction of oxygen reduction. Cathode flooding occurs at high loading and low temperature, while anode flooding occurs at low loading and low temperature [
The most recent semi-empirical model presented in [
The parameters of the proposed model are optimized using quantum lightening search algorithm (QLSA), as the modifications in the model require parameter optimization that not only fits the experimental voltage but also accounts for the generality of the model. After the validation of the model, the temperature of the PEMFC is varied in the simulation for the same specific loading conditions as performed in the experiments. For the acceptability of the proposed model, the variation in membrane water content should match with the theatrical and experimental findings on PEMFCs [
The remainder of this paper is organized as follows. Section II presents the details of the semi-empirical model presented in [
The most recent semi-empirical model was developed in 2018 [
The voltage of a PEMFC system is difficult to calculate due to various non-linear voltage drops in the system. Activation voltage drops and concentration voltage drops are non-linear, while an ohmic voltage drop is linear, as shown in

Fig. 1 PEMFC stack voltage against current density.
The total output voltage of a PEMFC system is given as:
(1) |
where Vno,load is the no-load or open circuit voltage; Vact is the activation voltage drop; Vohm is the ohmic voltage drop; and Vcon is the concentration voltage drop of the system. The model in [
(2) |
where PH2 is the partial pressures of hydrogen; PO2 is the partial pressure of oxygen in ambient air; is the pressure of water; T is the temperature of the PEMFC stack in Kelvin; R and F are gas constants with values 8.3143 J·mo
(3) |
Usually, the pressure of water is ignored [
Since a stack of PEMFC is the combination of n cells connected in series, the total EMF produced by stack Estack is given as:
(4) |
The no-load voltage is less than EMF of the cells because of internal currents flowing through the circuit and a voltage drop produced, as shown in (5).
(5) |
where is the voltage drop due to internal currents; is the voltage drop due to the pressure of water ; and is extracted using temperature T and .
(6) |
where A1 and A2 are empirical expression constants, and are given as 0.0219 and 18.8223, respectively. T and PH2 are taken from the internal sensors of the NEXA 1.2 kW PEMFC system [
(7) |
where is the charge transfer coefficient; is the current; and io is the exchange current density given as:
(8) |
where and are the coefficients. The ohmic voltage drop is given as:
(9) |
where Rionic is the ionic resistance; and is the electronic resistance. To calculate Rionic, the relative humidity and membrane water content must be obtained.
(10) |
where Pvap is the vapor pressure of PEMFC system. Pvap depends on the internal temperature of the PEMFC and is given by the following empirical formula:
(11) |
PH2O is extracted by (6) using VH2O, and Vint is 0.09 [
(12) |
(13) |
where is the empirical expression constant for the pressure of water. After calculating the relative humidity from all the expressions given in (10)-(13), the membrane water content , which is the polynomial expression of relative humidity, is presented as:
(14) |
The main purpose for calculating membrane water content is to calculate Rionic, which is dependent on the current, temperature, and membrane water content of PEMFC:
(15) |
where C1 is a constant related to membrane thickness.
Re is taken as constant in [
(16) |
where N is the population size; and Ilim is the maximum current limit from the PEMFC system.
The main deficiencies in the model mentioned above are the use of sensors in obtaining the partial pressure of hydrogen and the assumption that the pressure of oxygen is atmospheric. This may not be the exact case for a PEMFC system. Most commercial PEMFC systems do not have the option to obtain the partial pressure of hydrogen. Besides, the partial pressure of oxygen inside a PEMFC system is not the same as atmospheric pressure. The pressure of vapor inside the PEMFC system varies with the temperature of the PEMFC. This vapor pressure is responsible for the variation in the partial pressure of oxygen and hydrogen. The expression for calculating the partial pressure of oxygen and hydrogen has been given in [
The expression for calculating the pressure of oxygen PO2 from the input pressure at the cathode Pca, which is the atmospheric pressure of air [
(17) |
The constant factor 0.5 is due to the relative humidity of air in an air conditioned room, which is approximately 40% to 50% [
The expression for calculating the pressure of hydrogen also depends on Pvap of the PEMFC system and the inlet pressure of hydrogen Pan, which is almost 6 atmospheres in the case of the NEXA 1.2 kW system. The constant C2 is added in the expression and accounts for the average relative humidity of the cathode and anode.
(18) |
Considering these realistic approaches in calculating PO2 and PH2, the calculation of no-load voltage will be different from that in [
(19) |
The total ohmic resistance Rohmic will be given by:
(20) |
The constants D1 and D2 should be optimized. Note that Re only depends on PEMFC temperature. The maximum and minimum limits for various model parameters given in (6)-(8), (12)-(13), (15), (18)-(19) are listed in
The parameters listed in
The main purpose of the experiments is to collect the variations of output voltage due to the change in the load. During the experiments, other data such as load current and temperate variations are observed and recorded. This information is necessary to optimize the parameters and evaluate the accuracy of the proposed model. In the current work, the experiment has been performed on the NEXA 1.2 kW PEMFC stack system for dynamic variations of load for 2486 s, as shown in Appendix A Fig. A1. The obtained load current, output voltage, and the temperature of PEMFC are shown in

Fig. 2 Experimental results of PEMFC. (a) Current. (b) Voltage. (c) Temperature.
(21) |
where and are the modified and expected voltage drop, respectively.
The procedure for calculating the voltage of the proposed PEMFC semi-empirical model along with RMSE is shown in

Fig. 3 Model and calculation procedure of RMSE.
LSA is an optimization technique inspired by the natural phenomena of lightning flashes, which are caused by the propagation of negatively charged particles in space. The idea is first introduced in [
In the standard LSA, the search processes for these three projectiles are based on exponential, uniform, and normal probability density functions. However, in QLSA, a quantum physics analogy is used along with special quantum physics equations to improve the search ability.
QLSA searches the new position for its population in order to get the best step leader position. From the beginning, QLSA develops a memory that stores the best positions for step leaders, and these step leaders are called global step leaders , which are obtained with the help of objective function evaluation. In this case, the RMSE given in (21) is used. In QLSA, each step leader maintains the best position with a stochastic attractor expressed in (22).
(22) |
where i varies from 1 to N; j varies from 1 to the problem dimension D; t varies from 1 to the maximum number of iterations Z; , , and are the random numbers uniformly distributed from 0 to 1; is the best step leader for every individual population; and H is the scale factor whose typical value is 10.
QLSA is a quantum physics analogy of LSA, and each step leader has quantum behavior with quantum wave equation. For extracting the time and space dependency for the probabilistic model of step leaders to guide their correct movement, quantum physics equations are used with probability density and distribution functions. These equations are explicitly given in [
In general, QLSA starts with the initialization of population with step leaders P. Then, the standard deviation Li,j, which is dependent on the mean best position of step leaders, is extracted by:
(23) |
where is the expansion/contraction coefficient, which controls the speed of the algorithm; is termed as the mean best position for the step leaders, depending on the objective function and the mean value of the Pi,j positions of all step leaders. The formula to calculate is:
(24) |
usually controls the speed of convergence of QLSA and can be calculated as:
(25) |
where and are the final and initial values of the coefficient, which are generally set as 1.2 and 0.6, respectively. Finally, the position of step leaders is updated by:
(26) |
where is a random number (uniformly-distributed) between 0 and 1.
The basic implementation steps of the QLSA are shown in

Fig. 4 Basic implementation procedure of QLSA for parameter optimization.
Initially, the parameters of the proposed PEMFC model are extracted using the procedure given in Section IV, where n and Z are taken as 50 and 400, respectively, and .

Fig. 5 QLSA convergence characteristics in obtaining model parameters.
Finally, after extracting the parameters, the model validity is checked by plotting the output voltage of the model with experimental results, as shown in

Fig. 6 Comparison of model and experimental voltage.
One of the main advantages of the proposed PEMFC model is the utilization of membrane water content in accessing the output voltage. In this paper, the membrane water content is suggested as the measure of flooding and drying faults in a PEMFC system. The flooding and drying faults in sophisticated systems such as the NEXA 1.2 kW system (educational version) are avoided by incorporating special mechanism to avoid the damage due to misuse of the equipment. The PEMFC model has overheating, under- and over-current and voltage protection, gas sensors and self-humidifying system. However, many other commercial PEMFC systems may not have self-humidifying systems or protection sensors, thus leading to flooding and drying faults.
Since the experiments are performed in an air-conditioned room and the system is equipped with accessories for gas humidification for system protection, it is impossible to create intentional faults. As a result, faults are emulated using the developed model. In addition, the step increases in current from the experiment between 650 s to 950 s is used in the simulations. To analyze the membrane water content, the system temperature has been elevated by 5 K from the normal temperature observed in the experiment.

Fig. 7 Drying condition in PEMFC. (a) Current and voltage for step current change in PEMFC as per experiment. (b) 5 K PEMFC temperature increment with step current change via simulation. (c) Membrane water content change for 5 K increment in temperature via simulation.
In this case, an experiment is performed for a smooth increase in load from 0 A to 60 A to represent high-, medium-, and low-current values. As in [

Fig. 8 Flooding condition in PEMFC via simulation. (a) Current and voltage for step current change in PEMFC experimentally. (b) 5 K decrement in PEMFC temperature with step current change via simulation. (c) Membrane water content change for 5 K decrement via simulation.
The vivid elevation in the membrane water content is witnessed with the 5 K decrement in temperature. The membrane water content at high- and low-loading is almost the same, which may not be the case in a real system. Slight variations may occur in real systems for low- and high-loading. The increase in membrane water content for a decrease in 5 K in PEMFC temperature is significant and indicates that the flooding starts to occur with a decrease in temperature.
In this paper, we introduce a new semi-empirical model for a PEMFC stack system with the capability of diagnosing flooding and drying faults. The model requires only the load current and temperature of the PEMFC system, which are commonly available for almost all commercial fuel cells. Thus, the model is considered to be a general model suitable for all PEMFC systems. The membrane water content is extracted as the key model variable factor that could benefit the diagnosis of drying and flooding faults in PEMFC systems. The developed model is dynamic and the equations used are simple to compute. Future research direction should identify the threshold values of membrane water content as an alarm to activate the incorporated fault diagnostic system of PEMFC to prevent drying and flooding related damages to the system. The feature could be very helpful for PEMFC systems without in-built self-humidification accessories.
REFERENCES
E. Breaz, F. Gao, B. Blunier et al., “Mathematical modeling of PEMFC stack for real time simulation,” in Proceedings of 2012 IEEE International Conference on Automation, Quality and Testing, Robotics, Cluj-Napoca, Romania, May 2012, pp. 553-558. [Baidu Scholar]
M. Ji and Z. Wei, “A review of water management in polymer electrolyte membrane fuel cells,” Energies, vol. 2, no. 4, pp.1057-1106, Nov. 2009. [Baidu Scholar]
A. J. del Real, A. Arce, and C. Bordons, “Development and experimental validation of a PEM fuel cell dynamic model,” Journal of Power Sources, vol. 173, no. 1, pp. 310-324, Nov. 2007. [Baidu Scholar]
B. Zhou, W. Huang, Y. Zong et al., “Water and pressure effects on a single PEM fuel cell,” Journal of Power Sources, vol. 155, no. 2, pp. 190-202, Apr. 2006. [Baidu Scholar]
M. F. Sheikh, M. Ramzan, S. Khan et al., “Review of real-time load of H.A Fibers® grid with distributed fuel cells renewable generation unit,” in Proceedings of 5th International Conference on Renewable Energy Generation and Applications (ICREGA), Al Ain, United Arab Emirates, Feb. 2018, pp. 327-331. [Baidu Scholar]
S. S. Khan, M. A. Rafiq, H. Shareef et al., “Parameter optimization of PEMFC model using backtracking search algorithm,” in Proceedings of 5th International Conference on Renewable Energy Generation and Applications (ICREGA), Al Ain, United Arab Emirates, Feb. 2018, pp. 323-326. [Baidu Scholar]
I. Labach, O. Rallières, and C. Turpin, “Steady-state semi-empirical model of a single proton exchange membrane fuel cell (PEMFC) at varying operating conditions,” Fuel Cells, vol. 17, no. 2, pp. 166-177, Feb. 2017. [Baidu Scholar]
L. Pisani, G. Murgia, M. Valentini et al., “A new semi-empirical approach to performance curves of polymer electrolyte fuel cells,” Journal of Power Sources, vol. 108, pp. 192-203, Jun. 2002. [Baidu Scholar]
J. C. Amphlett, “Performance modeling of the ballard mark IV solid polymer electrolyte fuel cell,” International Journal of Electrochemical Society, vol. 142, no. 1, pp. 1-8, Jan. 1995. [Baidu Scholar]
M. V. Moreira and G. E. da Silva, “A practical model for evaluating the performance of proton exchange membrane fuel cells,” Renewable Energy, vol. 34, no. 7, pp. 1734-1741, Jul. 2009. [Baidu Scholar]
Y. Nalbant, C. O. Colpan, and Y. Devrim, “Development of a one-dimensional and semi-empirical model for a high temperature proton exchange membrane fuel cell,” International Journal of Hydrogen Energy, vol. 43, no. 11, pp. 5939-5950, Mar. 2018. [Baidu Scholar]
Y. Hou, M. Zhuang, and G. Wan, “A transient semi-empirical voltage model of a fuel cell stack,” International Journal of Hydrogen Energy, vol. 32, no. 7, pp. 857-862, May 2007. [Baidu Scholar]
S. S. Khan, H. Shareef, A. Wahyudie et al., “Novel dynamic semiempirical proton exchange membrane fuel cell model incorporating component voltages,” International Journal of Energy Research, vol. 42, no. 8, pp. 2615-2630, Apr. 2018. [Baidu Scholar]
R. Salim, M. Nabag, H. Noura et al., “The parameter identification of the Nexa 1.2 kW PEMFC’s model using particle swarm optimization,” Renewable Energy, vol. 82, pp. 26-34, Oct. 2015. [Baidu Scholar]
C. Restrepo, T. Konjedic, A. Garces et al., “Identification of a proton-exchange membrane fuel cell’s model parameters by means of an evolution strategy,” IEEE Transactions on Industrial Informatics, vol. 11, no. 2, pp. 548-559, Apr. 2015. [Baidu Scholar]
Y. Zhang and J. Jiang, “Bibliographical review on reconfigurable fault-tolerant control systems,” Annual Reviews in Control, vol. 32, no. 2, pp. 229-252, Dec. 2008. [Baidu Scholar]
K. Murugesan and V. Senniappan, “Investigation of water management dynamics on the performance of a Ballard-Mark-V proton exchange membrane fuel cell stack system,” International Journal of Electrochemical Science, vol. 8, no. 6, pp. 7885-7904, Jun. 2013. [Baidu Scholar]
Y. Akimoto and K. Okajima, ”Semi-empirical equation of PEMFC considering operation temperature,” Energy Technology Policy, vol. 1, no. 1, pp. 91-96, Nov. 2014. [Baidu Scholar]
A. Atifi, H. Mounir, and A. El Marjani, “Effect of internal current, fuel crossover, and membrane thickness on a PEMFC performance,” in Proceedings of International Renewable and Sustainable Energy Conference (IRSEC), Ouarzazate, Morocco, Oct. 2014, pp. 907-912. [Baidu Scholar]
S. S. Khan, H. Shareef, and A. H. Mutlag, “Dynamic temperature model for proton exchange membrane fuel cell using online variations in load current and ambient temperature,” International Journal of Green Energy, vol. 16, no. 5, pp. 361-370, Jan. 2019. [Baidu Scholar]
Q. Li, W. Chen, S. Liu et al., “Temperature optimization and control of optimal performance for a 300 W open cathode proton exchange membrane fuel cell,” Procedia Engineering, vol. 29, pp. 179-183, Jan. 2012. [Baidu Scholar]
J. Wishart, Z. Dong, and M. Secanell, “Optimization of a PEM fuel cell system based on empirical data and a generalized electrochemical semi-empirical model,” Journal of Power Sources, vol. 161, no. 2, pp. 1041-1055, Oct. 2006. [Baidu Scholar]
J. J. Giner-Sanz, E. M. Ortega, and V. Pérez-Herranz, “Statistical analysis of the effect of the temperature and inlet humidities on the parameters of a PEMFC model,” Fuel Cells, vol. 15, no. 3, pp. 479-493, Apr. 2015. [Baidu Scholar]
J. Zhang, Y. Tang, C. Song et al., “PEM fuel cell relative humidity (RH) and its effect on performance at high temperatures,” Electrochimica Acta, vol. 53, no. 16, pp. 5315-5321, Jun. 2008. [Baidu Scholar]
B. Kim, D. Cha, and Y. Kim, “The effects of air stoichiometry and air excess ratio on the transient response of a PEMFC under load change conditions,” Applied Energy, vol. 138, pp. 143-149, Jan. 2015. [Baidu Scholar]
B. Wahdame, D. Candusso, X. Francois et al., “Study of a 5 kW PEMFC using experimental design and statistical analysis techniques,” Fuel Cells, vol. 7, no. 1, pp. 47-62, Feb. 2007. [Baidu Scholar]
J. A. Ali, M. A. Hannan, and A. Mohamed, “A novel quantum-behaved lightning search algorithm approach to improve the fuzzy logic speed controller for an induction motor drive,” Energies, vol. 8, pp. 13112-13136, Nov. 2015. [Baidu Scholar]
H. Shareef, A. A. Ibrahim, and A. H. Mutlag, “Lightning search algorithm,” Applied Soft Computing, vol. 36, pp. 315-333, Nov. 2015. [Baidu Scholar]