Introduction

Since the 21 st century, although significant reserves of fossil fuels have been discovered, their rapid consumption still falls short of meeting future energy demands 0. potentially leading to an energy supply-demand gap in the near future and threatening global energy security. At the same time, the use of fossil fuels inevitably causes environmental pollution, resulting in acid rain, global warming, and climate change. Against this backdrop, countries and enterprises have intensified their efforts in research and development, aiming to develop alternative and renewable energy sources1. To alleviate the energy crisis and reduce environmental impacts in a sustainable manner, various new energy sources have gained attention. These include2. solar energy, wind energy, hydropower, biomass energy, geothermal energy, nuclear energy, and hydrogen energy. Among these, fuel cell technology, as a key means of energy conversion, has also become a focal point. Hydrogen energy is regarded as a vital carrier for achieving deep decarbonization and promoting the transition to clean energy. When combined with fuel cells, it enables low-carbon or even zero-carbon emissions3. With its high energy conversion efficiency, hydrogen energy is considered one of the most promising green and clean energy solutions for the future.

Fuel cells, which directly convert hydrogen energy into electrical energy, offer advantages such as high power generation efficiency, low noise pollution, flexible deployment, and the ability to achieve combined heat and power generation. These features make fuel cells a core technology for hydrogen energy development and application. Currently, several major types of fuel cells, including4 Proton Exchange Membrane Fuel Cells (PEMFC), Direct Methanol Fuel Cells, Solid Oxide Fuel Cells, Phosphoric Acid Fuel Cells, Alkaline Fuel Cells, and Molten Carbonate Fuel Cells, are undergoing continuous research and large-scale application. Among these, PEMFC, with their characteristics of zero emissions, renewability, and high efficiency, have achieved successful applications in portable power sources, combined heat and power systems, transportation, and unmanned underwater vehicles. They play a critical role in building a low-carbon transportation system and advancing the transition to clean energy, especially demonstrating significant development potential in the automotive sector5,6.

However, PEMFC is a complex dynamic system characterized by nonlinearity7, strong coupling, multivariable interactions, and time delays. As a result, it is influenced by various nonlinear factors, such as thermal management, water management, gas diffusion, and electrode reaction kinetics within the fuel cell stack. These nonlinearities significantly impact the output performance of PEMFC. Studies have shown that a large pressure difference between the anode and cathode partial pressures can directly cause irreversible damage to the proton exchange membrane8,9.

Particularly in automotive applications, load fluctuations and frequent purging operations cause the anode-cathode pressure difference to fluctuate due to variations in gas flow10. This leads to issues such as membrane failure, insufficient reactant supply, and water management faults11. Consequently, many researchers have proposed various control methods for the coordinated control of air flow and pressure in the PEMFC gas supply subsystem. Reference12 reviews the latest advancements in the development of control-oriented PEM fuel cell models, including physics-based reduced-order models and non-physics-based empirical and data-driven models, which are used to predict the transient and long-term performance of fuel cells under various operating conditions. Reference13 proposes a model-based controller that employs multivariable control of cathode pressure and oxygen excess ratio to maximize system output power while avoiding oxygen starvation.Reference14 addresses the strong coupling issues in the gas supply and thermal management systems of PEMFC by designing a feedback linearization-based decoupling cooperative controller. Combined with active disturbance rejection control, it achieves independent control of gas flow, cathode pressure, and temperature.Reference15 proposes a multi-input multi-output model predictive control method based on pseudo references. It utilizes feedback linearization to address the nonlinearity of the hydrogen supply system and limits the pressure difference between the anode and cathode within a reasonable range. Reference16constructs a dynamic model of the gas supply system based on mechanisms and experimental data and employs a fuzzy neural network decoupling control strategy to achieve decoupling of gas flow and pressure in the supply system.Studies have shown that nonlinear controllers designed using feedback linearization provide better transient and steady-state performance for PEMFC systems compared to linear controllers17. However, the state variables selected for decoupling through feedback linearization in the aforementioned studies are generally limited to cathode oxygen or anode hydrogen. In practice, nitrogen and water vapor in the cathode gas supply system are often overlooked, making it challenging to simultaneously achieve decoupled coordinated control of gas flow and pressure balance in PEMFC systems.

The control of the PEMFC gas supply system is critical for achieving stable performance output and extended service life18. However, the optimal operating points or regions for airflow and pressure in the gas supply system often approach the critical values of the anode-cathode pressure difference. This makes the system prone to pressure imbalances during operation, adversely affecting the performance and stability of the fuel cell.Therefore, in the actual operation and control of PEMFC gas supply systems, it is essential not only to achieve precise regulation of airflow and pressure but also to consider the impact of the anode-cathode pressure difference on the system’s dynamic performance.On this basis, to achieve decoupled control of complex nonlinear systems, some researchers have introduced sliding mode control methods on top of feedback linearization to enhance the robustness and stability of the system19.

In Reference20, to achieve an appropriate output voltage at the user end, a global integral sliding mode control based on the fast reaching law was designed for the boost converter of a nonlinear PEMFC controller. Compared with traditional sliding mode control, the proposed design demonstrates superior performance in terms of system robustness and convergence speed. In Reference21, a 70 kW PEMFC system model was developed, and a multi-input multi-output sliding mode controller was designed to maintain the oxygen excess ratio, anode-cathode pressure difference, stack temperature, and output power within desired ranges. In Reference22, for the air management system of a PEMFC, feedback linearization was used to establish the relationship between control variables and controlled variables. A sliding mode predictive control method was proposed to simultaneously control the oxygen excess ratio and cathode pressure. In Reference23, to improve airflow and pressure control of cathode air in PEMFC systems under load variations and to avoid compressor surge, a coordinated control method combining fuzzy anti-surge compensation with feedback linearized sliding mode decoupling and fuzzy anti-surge compensation was proposed. In Reference24, targeting the hydroelectric generator regulation system affected by external disturbances and system uncertainties, a sliding mode control strategy based on the input/output feedback linearization method was proposed to enhance the system’s response. In Reference25, for a wind turbine based on a converter, a controller was designed using feedback linearization theory and applied to the system through a sliding mode approach. This study demonstrated robustness against system disturbances and uncertainties while overcoming the usual implementation complexity associated with feedback linearization controllers.

To enhance the system’s adaptability to external disturbances and dynamic changes, some studies have started focusing on combining adaptive and sliding mode control.

In Reference26 considering the high-frequency operation and load variations of PEMFC, an adaptive control strategy with a fault-tolerant objective was proposed to regulate the oxygen excess ratio, addressing two common faults in air compressors: compressor overheating and increased mechanical friction. In Reference27, a novel adaptive control law was designed for PEMFC systems using stochastic gradient descent, where the stochastic gradient continuously computes adaptive gains, ensuring robustness while minimizing chattering. In Reference28, an adaptive backstepping sliding mode control method was proposed to handle the highly nonlinear and coupled characteristics of PEMFC systems for battery current control. Experimental results showed that this method effectively mitigates the chattering phenomenon observed in traditional sliding mode control and exhibits better robustness. In Reference29, an adaptive gain second-order super-twisting sliding mode controller was proposed for current control in PEMFC systems. In Reference30 proposed a control strategy combining MPPT and pressure regulation using second-order sliding mode control to ensure maximum power extraction and membrane protection in PEMFCs. The proposed adaptive sliding mode controller significantly reduced chattering—by up to 85%—and demonstrated improved performance over conventional SMC and STA methods.

In Reference31, a sliding mode controller based on an adaptive algebraic observer was designed to control the oxygen excess ratio and anode-cathode pressure difference in PEMFC, thereby improving efficiency and extending the system’s lifespan. In addition, in Reference32 proposed a high-order sliding mode observer to estimate the oxygen and nitrogen mass, as well as the oxygen excess ratio in PEMFC. They applied second-order sliding mode control for breathing regulation. Simulation results show that the cascaded structure provides higher accuracy, while the single-loop structure achieves faster convergence. In Reference33 IOSL-EMS strategy minimizes comprehensive equivalent hydrogen consumption via quadratic programming, co-optimizing FC operation and lifespan consistency, experimentally proving better economy and durability than conventional methods with near-DP performance. In Reference34proposed a real-time optimal temperature trajectory based health management method for PEMFC, which employs multi-objective optimization to balance the trade-off between health degree and efficiency. Experimental results demonstrate that compared with conventional temperature control methods, the proposed approach can simultaneously improve both system efficiency and operational lifespan during long-term operation. Accordingly, this study proposes a PEMFC control method based on feedback linearization and adaptive sliding mode control. It addresses the coordinated control of the anode and cathode in the PEMFC gas supply system and applies feedback linearization to decouple flow and pressure in the highly nonlinear and strongly coupled fuel cell system. The cathode and anode gases, along with the anode-cathode pressure difference, are treated as controlled variables to ensure adequate gas supply while maintaining the pressure difference within permissible limits. This approach enhances the lifespan and robustness of the PEMFC system.

This work is divided into several sections: In Section “Nonlinear proton exchange membrane fuel cell model”, the PEMFC system is modeled based on a physical mechanism model. Section “Proton exchange membrane fuel cell model based on feedback linearization” utilizes feedback linearization to decouple the gas flow and pressure in the PEMFC gas supply subsystem, selecting multicomponent gases within the cathode, including oxygen, nitrogen, and water vapor, as state variables. In Section “Research on the proton exchange membrane fuel cell control model based on FLCASMC”, based on feedback linearization, a controller is designed using sliding mode control, and appropriate adaptive laws are selected for the controller design. Section “Experiment and simulation” conducts experimental validation of the controller. Finally, Section “Conclusion” concludes the paper with a summary.

Nonlinear proton exchange membrane fuel cell model

In addition to the fuel cell stack, automotive fuel cell power generation systems require supporting auxiliary systems to function as effective power sources. Since the operating environment of fuel cells typically involves various working conditions, and similar gas assumptions are commonly used in multidisciplinary research, this paper focuses primarily on the gas supply system of fuel cells and makes the following assumptions :

1) Under constant temperature conditions, the gases within the fuel cell are assumed to be ideal gases.

2) Water in the fuel cell exists only in gaseous form.

3) Both the anode and cathode sides remain humid, and the membrane maintains an average water content \(\:{\lambda\:}_{m}=14\)。.

4) It is assumed that the humidity is 100%, and no liquid water leaves the fuel cell stack, i.e., \(\:\phi\:=100\%\)。.

5) The molar fraction of inlet reactants is maintained constant, with hydrogen of 99.99% purity used as the anode reactant, and the cathode consisting of oxygen and nitrogen in a 21:79 ratio.

Table 1 presents the fundamental parameters of the fuel cell stack under the experimental assumptions, serving as essential data support for model simulation. Some modeling data are referenced from literature35.

Table 1 Modeling parameters of the PEMFC system are presented.

Cathode and anode flow channel model

Based on the ideal gas law and the principle of mass conservation, a dynamic mathematical model is constructed for the pressures of hydrogen, oxygen, nitrogen, and anode-cathode water vapor within the PEMFC system :

$$\:\begin{array}{c}\left\{\begin{array}{c}\frac{d{P}_{{H}_{2}}}{dt}=\frac{RT}{{V}_{a}}\left[{u}_{a}{k}_{a}{Y}_{{H}_{2}}{\lambda\:}_{{H}_{2}}-{C}_{1}{I}_{fc}-\left({u}_{a}{k}_{a}{\lambda\:}_{{H}_{2}}-{C}_{1}{I}_{fc}\right){F}_{{H}_{2}}\right]\\\:\frac{d{P}_{{H}_{2}{O}_{a}}}{dt}=\frac{RT}{{V}_{a}}\left[\begin{array}{c}{u}_{a}{k}_{a}{\lambda\:}_{{H}_{2}}\frac{{\phi\:}_{a}{P}_{sat}}{{P}_{{H}_{2}}+{P}_{{H}_{2}{O}_{a}}-{\phi\:}_{a}{P}_{sat}}\\\:-\left({u}_{a}{k}_{a}{\lambda\:}_{{H}_{2}}-{C}_{2}{I}_{fc}\right){F}_{{H}_{2}{o}_{a}}-{C}_{2}{I}_{fc}\end{array}\right]\end{array}\right.\:\end{array}$$
(1)
$$\:\begin{array}{c}\left\{\begin{array}{c}\frac{d{P}_{{O}_{2}}}{dt}=\frac{RT}{{V}_{c}}\left[{u}_{c}{k}_{c}{Y}_{{O}_{2}}{\lambda\:}_{air}-\frac{{C}_{1}}{2}{I}_{fc}-\left({u}_{c}{k}_{c}{\lambda\:}_{air}-\frac{{C}_{1}}{2}{I}_{fc}\right){F}_{{O}_{2}}\right]\:\:\\\:\frac{d{P}_{{N}_{2}}}{dt}=\frac{RT}{{V}_{c}}\left[{u}_{c}{k}_{c}{Y}_{{N}_{2}}{\lambda\:}_{air}-{u}_{c}{k}_{c}{\lambda\:}_{air}{F}_{{N}_{2}}\right]\\\:\frac{d{P}_{{H}_{2}{O}_{c}}}{dt}=\frac{RT}{{V}_{c}}\left[\begin{array}{c}{u}_{c}{k}_{c}{\lambda\:}_{air}\frac{{\phi\:}_{c}{P}_{sat}}{{P}_{{O}_{2}}+{P}_{{N}_{2}}+{P}_{{H}_{2}{O}_{c}}-{\phi\:}_{c}{P}_{sat}}+{C}_{1}{I}_{fc}\\\:-\left({u}_{c}{k}_{c}{\lambda\:}_{air}+{C}_{1}{I}_{fc}+{C}_{2}{I}_{fc}\right){F}_{{H}_{2}{O}_{c}}+{C}_{2}{I}_{fc}\end{array}\right]\end{array}\right.\end{array}$$
(2)

In the equation, R is the universal gas constant (8.314\(\:J\cdot\:{K}^{-1}\cdot\:{mol}^{-1}\)), \(\:{V}_{a}\) and \(\:{V}_{c}\) are the volumes of the anode and cathode, respectively, T is the operating temperature of the fuel cell stack (353 K), Y is the initial molar fraction of each gas, \(\:{\phi\:}_{a}\) and \(\:{\phi\:}_{c}\) are the relative humidity of the anode and cathode, respectively, and \(\:{\lambda\:}_{{H}_{2}}\) and \(\:{\lambda\:}_{air}\) are the stoichiometric numbers for hydrogen and air.

Where \(\:{F}_{{H}_{2}}\), \(\:{F}_{{H}_{2}{o}_{a}}\), \(\:{F}_{{O}_{2}}\), \(\:{F}_{{N}_{2}}\), and \(\:{F}_{{H}_{2}{O}_{c}}\) are the pressure fractions of the gases within the fuel cell, as given below :

$$\:\begin{array}{c}\left\{\begin{array}{c}{F}_{{H}_{2}}=\frac{{P}_{{H}_{2}}}{{P}_{{H}_{2}}+{P}_{{H}_{2}{O}_{a}}}\:\:\:\:\:\:\:\:\\\:{F}_{{H}_{2}{o}_{a}}=\frac{{P}_{{H}_{2}{O}_{a}}}{{P}_{{H}_{2}}+{P}_{{H}_{2}{O}_{a}}}\:\:\:\:\:\:\:\:\:\:\:\end{array}\right.\left\{\begin{array}{c}\:\:{F}_{{O}_{2}}=\frac{{P}_{{O}_{2}}}{{P}_{{O}_{2}}+{P}_{{N}_{2}}+{P}_{{H}_{2}{O}_{c}}}\\\:\:\:{F}_{{N}_{2}}=\frac{{P}_{{N}_{2}}}{{P}_{{O}_{2}}+{P}_{{N}_{2}}+{P}_{{H}_{2}{O}_{c}}}\\\:{F}_{{H}_{2}{O}_{c}}=\frac{{P}_{{H}_{2}{O}_{c}}}{{P}_{{O}_{2}}+{P}_{{N}_{2}}+{P}_{{H}_{2}{O}_{c}}}\end{array}\right.\end{array}$$
(3)

Based on fundamental electrochemical principles, the consumption and generation of gases are expressed as a function of the stack current :

$$\:\begin{array}{c}{H}_{2,react}=2{O}_{2,react}={H}_{2}{O}_{c,gen}=\frac{{NA}_{fc}i}{2F}\end{array}$$
(4)

Definition

\(\:\frac{{nA}_{fc}}{2F}={C}_{1}\), \(\:1.2684\frac{{nA}_{fc}}{F}={C}_{2}\). The subscripts \(\:react\) and \(\:gen\) denote the corresponding gas consumption and generation amounts. \(\:{A}_{fc}\) is the active area of the fuel cell (10 \(\:{cm}^{2}\)), \(\:n\) is the number of fuel cells (100), i is the current density of the cell, and F is the Faraday constant (96486 \(\:C\cdot\:{mol}^{-1}\)).

Stack output voltage model

In PEMFC operation, the actual output voltage is the ideal potential minus the overpotential losses caused by multiple polarization effects. These losses are primarily reflected in activation, ohmic, and concentration losses.

Based on the PEMFC output voltage model constructed by J. Larminie et al., the following equation is used:

$$\:\begin{array}{c}{V}_{cell}=n\left({V}_{nerst}-{V}_{act}-{V}_{ohmic}-{V}_{conc}\right)\end{array}$$
(5)

In the equation, \(\:{V}_{nerst}\) represents the Nernst voltage, \(\:{V}_{act}\) represents the activation loss, \(\:{V}_{ohmic}\) represents the ohmic loss, and \(\:{V}_{conc}\) represents the concentration loss.

$$\:\begin{array}{c}{V}_{nerst}=1.229-8.5\times\:{10}^{-4}\left(T-298.15\right)+4.3085\times\:{10}^{-5}T\left[\text{ln}\left({P}_{{H}_{2}}\right)+0.5\text{ln}\left({P}_{{O}_{2}}\right)\right]\end{array}$$
(6)

1) Activation loss: Due to the slow reaction rate at the electrode surface, a portion of the voltage is consumed in the electrochemical reaction, and this loss has highly nonlinear characteristics.

$$\:\begin{array}{c}{V}_{act}={V}_{o}+{V}_{a}\left(1-{e}^{-Ci}\right)\end{array}$$
(7)

In the equation, \(\:{V}_{o}\) and \(\:{V}_{a}\) are related to the oxygen partial pressure and the stack operating temperature. \(\:{V}_{o}\) and \(\:Va\) can be calculated using the following formulas:

$$\:\begin{array}{c}{V}_{o}=0.279-8.5\times\:{10}^{-4}\left(T-298.15\right)+4.3085\times\:{10}^{-5}T\times\:\left[\left(\text{l}\text{n}\frac{{P}_{c}-{P}_{sat}}{1.01325}\right)+0.5\text{ln}\left(\frac{0.01173\left({P}_{c}-{P}_{sat}\right)}{1.01325}\right)\right]\end{array}$$
(8)
$$\:\begin{array}{c}{V}_{a}=\left(-1.618\times\:{10}^{-5}T+1.618\times\:{10}^{-2}\right){\left(\frac{{P}_{{O}_{2}}}{0.1173}+{P}_{sat}\right)}^{2}+\left(1.8\times\:{10}^{-4}T-0.166\right)\times\:\left(\frac{{P}_{{O}_{2}}}{0.1173}+{P}_{sat}\right)+\left(-5.8\times\:{10}^{-4}T+0.5736\right)\end{array}\:$$
(9)

Where \(\:{P}_{sat}\) is the saturation pressure, and its calculation formula is:\(\:{P}_{sat}={e}^{23.196-\frac{3816.44}{T-46.13}}\).

(2) Ohmic loss: This is caused by the resistance of electrons passing through the electrode materials and connecting components, as well as the resistance of ions in the electrolyte. Its magnitude is directly related to the current density.

$$\:\begin{array}{c}{V}_{ohm}=i{R}_{ohm}\end{array}$$
(10)

In the equation, \(\:{R}_{ohm}\) is the internal resistance of the battery system.

(3) Concentration loss: This is caused by the decrease in reactant concentration at the electrode surface. The concentration drop is attributed to the scarcity of reactants supplied to the electrode surface.

$$\:\begin{array}{c}{V}_{con}=Bln\left(\frac{{i}_{L}}{{i}_{L}-i}\right)\end{array}$$
(11)

B is a constant of 0.016, and \(\:{i}_{L}\) is the limiting current density (2.2 \(\:{A\cdot\:cm}^{-2}\)).

The system’s nonlinear equations are transformed into state equations by selecting the partial pressures of hydrogen, oxygen, nitrogen, and the water vapor at both electrodes as the state vector. The state vector is expressed as follows:

$$\:\begin{array}{c}x={\left[\begin{array}{ccc}{P}_{{H}_{2}}&\:{P}_{{H}_{2}{O}_{a}}&\:\begin{array}{ccc}{P}_{{O}_{2}}&\:{P}_{{N}_{2}}&\:{P}_{{H}_{2}{O}_{c}}\end{array}\end{array}\right]}^{T}\end{array}$$
(12)

By taking the anode gas and cathode gas inlet flow rates, \(\:{u}_{a}\) and \(\:{u}_{c}\), as input variables, and combining Eqs. (1), (2), and (12), the state equations for the fuel cell system are obtained as :

$$\:\begin{array}{c}\left\{\begin{array}{c}{\dot{x}}_{1}=\frac{RT}{{V}_{a}}\left[{u}_{a}{k}_{a}{Y}_{{H}_{2}}{\lambda\:}_{{H}_{2}}-{C}_{1}{I}_{fc}-\left({u}_{a}{k}_{a}{\lambda\:}_{{H}_{2}}-{C}_{1}{I}_{fc}\right)\frac{{x}_{1}}{{x}_{1}+{x}_{2}}\right]\\\:{\dot{x}}_{2}=\frac{RT}{{V}_{a}}\left[\begin{array}{c}{u}_{a}{k}_{a}{\lambda\:}_{{H}_{2}}\frac{{\phi\:}_{a}{P}_{sat}}{{x}_{1}+{x}_{2}-{\phi\:}_{a}{P}_{sat}}\\\:-\left({u}_{a}{k}_{a}{\lambda\:}_{{H}_{2}}-{C}_{2}{I}_{fc}\right)\frac{{x}_{2}}{{x}_{1}+{x}_{2}}-{C}_{2}{I}_{fc}\end{array}\right]\end{array}\right.\end{array}$$
(13)
$$\:\begin{array}{c}\left\{\begin{array}{c}{\dot{x}}_{3}=\frac{RT}{{V}_{c}}\left[\begin{array}{c}{u}_{c}{k}_{c}{Y}_{{O}_{2}}{\lambda\:}_{air}-\frac{{C}_{1}}{2}{I}_{fc}-\\\:\left({u}_{c}{k}_{c}{\lambda\:}_{air}-\frac{{C}_{1}}{2}{I}_{fc}\right)\frac{{x}_{3}}{{x}_{3}+{x}_{4}+{x}_{5}}\end{array}\right]\\\:{\dot{x}}_{4}=\frac{RT}{{V}_{c}}\left[{u}_{c}{k}_{c}{Y}_{{N}_{2}}{\lambda\:}_{air}-{u}_{c}{k}_{c}{\lambda\:}_{air}\frac{{x}_{4}}{{x}_{3}+{x}_{4}+{x}_{5}}\right]\\\:{\dot{x}}_{5}=\frac{RT}{{V}_{c}}\left[\begin{array}{c}{u}_{c}{k}_{c}{\lambda\:}_{air}\frac{{\phi\:}_{c}{P}_{sat}}{{x}_{3}+{x}_{4}+{x}_{5}-{\phi\:}_{c}{P}_{sat}}+{C}_{1}{I}_{fc}\\\:-\left({u}_{c}{k}_{c}{\lambda\:}_{air}+{C}_{1}{I}_{fc}+{C}_{2}{I}_{fc}\right)\frac{{x}_{5}}{{x}_{3}+{x}_{4}+{x}_{5}}+{C}_{2}{I}_{fc}\end{array}\right]\end{array}\right.\end{array}$$
(14)

Proton exchange membrane fuel cell model based on feedback linearization

Feedback linearization utilizes a feedback mechanism to convert a nonlinear system into a linear system, aiming to improve the robustness of the designed control system. Typically, a robust control strategy is introduced based on this approach. In the gas supply system of automotive fuel cells, a control structure combining feedback linearization and robust control that considers uncertainties is adopted for the flow and pressure control. Sliding mode control, due to its strong resistance to parameter variations and external disturbances, is combined with the feedback linearization method to design a decoupling controller for the flow and pressure of the fuel cell supply system.

Affine nonlinear systems represent an important and most commonly encountered class of nonlinear systems. These systems are nonlinear with respect to the state vector but linear with respect to the control input. Consider the following MIMO nonlinear system :

$$\:\begin{array}{c}\left\{\begin{array}{c}\dot{x}=f\left(x\right)+\sum\:_{i=1}^{m}{g}_{i}\left(x\right){u}_{i}\:,i=1,\:2,\:\cdots\:,m\\\:y={h}_{i}\left(x\right)\:\:\:\:\:\:\:\:\:\:\:\:\:\:\:\:\:\:\:\:\:\:\:\:\:\:\:\:\:\:\:\:\:\:\:\:\:\:\:\:\:\:\:\:\:\:\:\:\:\:\:\:\:\:\:\end{array}\right.\end{array}$$
(15)

In the equation, \(\:x\in\:{R}^{m}\), \(\:u\in\:{R}^{m}\), and \(\:y\in\:{R}^{m}\) represent the state variables, control input variables, and output variables, respectively. \(\:f\left(x\right)\) and \(\:g\left(x\right)\) are smooth vector fields, and \(\:h\left(x\right)\) is a smooth scalar function.

The decoupling matrix \(\:A\left(x\right)\) is defined as:

$$\:\begin{array}{c}A\left(x\right)=\left[\begin{array}{cc}{L}_{{g}_{1}}{h}_{1}\left(x\right)&\:{L}_{{g}_{2}}{h}_{1}\left(x\right)\\\:{L}_{{g}_{1}}{h}_{2}\left(x\right)&\:{L}_{{g}_{2}}{h}_{2}\left(x\right)\end{array}\right]\end{array}$$
(16)

In the equation,

$$\:\begin{array}{c}{g}_{1}\left(x\right)={RT\lambda\:}_{{H}_{2}}\left[\begin{array}{c}\frac{{k}_{a}{Y}_{{H}_{2}}}{{V}_{a}}-\frac{{k}_{a}}{{V}_{a}}\frac{{x}_{1}}{{x}_{1}+{x}_{2}}\\\:\frac{{k}_{a}{\phi\:}_{a}{P}_{sat}}{{V}_{a}\left({x}_{1}+{x}_{2}-{\phi\:}_{a}{P}_{sat}\right)}-\frac{{k}_{a}}{{V}_{a}}\frac{{x}_{2}}{{x}_{1}+{x}_{2}}\\\:\begin{array}{c}0\\\:0\\\:0\end{array}\end{array}\right]\end{array}$$
(17)
$$\:\begin{array}{c}{g}_{2}\left(x\right)=RT{\lambda\:}_{air}\left[\begin{array}{c}0\\\:0\\\:\begin{array}{c}\frac{{k}_{c}{Y}_{{O}_{2}}}{{V}_{c}}-\frac{{k}_{c}}{{V}_{c}}\frac{{x}_{3}}{{x}_{3}+{x}_{4}+{x}_{5}}\\\:\frac{{k}_{c}{Y}_{{N}_{2}}}{{V}_{c}}-\frac{{k}_{c}}{{V}_{c}}\frac{{x}_{4}}{{x}_{3}+{x}_{4}+{x}_{5}}\\\:\frac{{k}_{c}{\phi\:}_{c}{P}_{sat}}{{V}_{c}\left({x}_{3}+{x}_{4}+{x}_{5}-{\phi\:}_{c}{P}_{sat}\right)}-\frac{{k}_{c}}{{V}_{c}}\frac{{x}_{5}}{{x}_{3}+{x}_{4}+{x}_{5}}\end{array}\end{array}\right]\end{array}$$
(18)
$$\:\begin{array}{c}p\left(x\right)=RT\left[\begin{array}{c}-\frac{{C}_{1}}{{V}_{a}}+\frac{{C}_{1}{x}_{1}}{{V}_{a}\left({x}_{1}+{x}_{2}\right)}\\\:\frac{{C}_{1}}{{V}_{a}}+\frac{{C}_{1}{x}_{2}}{{V}_{a}\left({x}_{1}+{x}_{2}\right)}\\\:\begin{array}{c}-\frac{{C}_{1}}{{V}_{c}}+\frac{{C}_{1}{x}_{3}}{{V}_{c}\left({x}_{3}+{x}_{4}+{x}_{5}\right)}\\\:0\\\:-\frac{{C}_{1}}{{V}_{c}}+\frac{{C}_{1}{x}_{5}}{{V}_{c}\left({x}_{3}+{x}_{4}+{x}_{5}\right)}+\frac{{C}_{2}}{{V}_{c}}-\frac{{C}_{2}{x}_{5}}{{V}_{c}\left({x}_{3}+{x}_{4}+{x}_{5}\right)}\end{array}\end{array}\right]\end{array}$$
(19)

\(\:{L}_{g}h\left(x\right)\) is the Lie derivative of the function \(\:h\left(x\right)\) along the vector field \(\:g\left(x\right)\), so \(\:A\left(x\right)\) can be written as:

$$\:\begin{array}{c}A\left(x\right)=RT\left[\begin{array}{cc}\frac{{k}_{a}{Y}_{{H}_{2}}{\lambda\:}_{{H}_{2}}}{{V}_{a}}-\frac{{k}_{a}{\lambda\:}_{{H}_{2}}}{{V}_{a}}\frac{{x}_{1}}{{x}_{1}+{x}_{2}}&\:0\\\:0&\:\frac{{k}_{c}{Y}_{{O}_{2}}{\lambda\:}_{air}}{{V}_{c}}-\frac{{k}_{c}{\lambda\:}_{air}}{{V}_{c}}\frac{{x}_{3}}{{x}_{3}+{x}_{4}+{x}_{5}}\end{array}\right]\end{array}$$
(20)

In addition, in the neighborhood, the decoupling matrix is nonsingular, so the output \(\:y\) can be expressed as a function of the new coordinates \(\:v\) and \(\:p\left(x\right)\) as:

$$\:\begin{array}{c}v=\left[\begin{array}{c}{\dot{y}}_{1}\\\:{\dot{y}}_{2}\end{array}\right];p\left(x\right)=RT\left[\begin{array}{c}-\frac{{C}_{1}}{{V}_{a}}+\frac{{C}_{1}{x}_{1}}{{V}_{a}\left({x}_{1}+{x}_{2}\right)}\:\:\:\:\:\:\:\:\:\:\\\:-\frac{{C}_{1}}{2{V}_{c}}+\frac{{C}_{1}{x}_{2}}{2{V}_{c}\left({x}_{3}+{x}_{4}+{x}_{5}\right)}\end{array}\right]\end{array}$$
(21)

Each control variable \(\:u\) appears after the first derivatives of \(\:{y}_{1}={x}_{1}\) and \(\:{y}_{1}={x}_{3}\), so the relative order of the system \(\:r=2\), which allows for state feedback linearization. The control law expression is:

$$\:\begin{array}{c}u={A}^{-1}\left(x\right)v-{A}^{-1}\left(x\right)p\left(x\right)d\end{array}$$
(22)

From this, the decoupled and feedback linearized input-output relations of the PEMFC system are derived as:

$$\:\begin{array}{c}\left\{\begin{array}{c}{\dot{x}}_{1}={v}_{1}=\frac{d{P}_{{H}_{2}}}{dt}\\\:{\dot{x}}_{3}={v}_{2}=\frac{d{P}_{{H}_{2}}}{dt}\end{array}\right.\end{array}$$
(23)

The output \(\:{P}_{{H}_{2}}\) and \(\:{P}_{{O}_{2}}\) of the fuel cell are related to the control variables \(\:{v}_{1}\)and \(\:{v}_{2}\) in the new coordinate system obtained through feedback linearization. After the transformation, two linear subsystems with relative order 1 are derived: one corresponding to \(\:{v}_{1}\) and the hydrogen partial pressure \(\:{y}_{1}={P}_{{H}_{2}}\), and the other corresponding to \(\:{v}_{2}\) and the oxygen partial pressure \(\:{y}_{2}={P}_{{O}_{2}}\). These subsystems are represented by \(\:{\dot{y}}_{1}={\dot{x}}_{1}\) and \(\:{\dot{y}}_{2}={\dot{x}}_{3}\), respectively.

In practical PEMFC gas pressure subsystems, there exist varying degrees of parameter perturbations, and the system is also subject to uncertain disturbances from the external environment. Therefore, by incorporating unknown terms into the gas partial pressure dynamic model described in Eq. (15), a nonlinear dynamic model of gas partial pressure is obtained, accounting for both parameter perturbations and external uncertain disturbances:

$$\:\begin{array}{c}\left\{\begin{array}{c}\dot{x}=A\left(x\right)u+B\left(x\right)i+\varDelta\:\\\:y=h\left(x\right)=\left[\begin{array}{c}{x}_{1}\\\:{x}_{3}\end{array}\right]\:\:\:\:\:\:\:\:\:\:\:\:\:\:\end{array}\right.\end{array}$$
(24)

where Δ represents the uncertain term caused by minor variations in parameters such as temperature and volume as well as external disturbances, and Δ is bounded.

Research on the proton exchange membrane fuel cell control model based on FLC-ASMC

Adaptive sliding mode controller design

Using feedback linearization, the nonlinear system of the Proton Exchange Membrane Fuel Cell has been transformed into a linear system with the new inputs \(\:{v}_{1}\) and \(\:{v}_{2}\). For the transformed linear system, an appropriate controller is designed to achieve the control objective of the anode and cathode gas partial pressures in the fuel cell.

A Single Input Single Output affine nonlinear system refers to the case of Eq. (15) when m = 1 :

$$\:\begin{array}{c}\left\{\begin{array}{c}\dot{x}=f\left(x\right)u+g\left(x\right)+d\left(t\right)\\\:y=x\:\:\:\:\:\:\:\:\:\:\:\:\:\:\:\:\:\:\:\:\:\:\:\:\:\:\:\:\:\:\:\:\:\:\:\:\:\end{array}\right.\end{array}$$
(25)

In the equation, \(\:f\left(x\right)\) and \(\:g\left(x\right)\) are known, and \(\:d\left(t\right)\) represents the disturbance term, which is unknown but bounded. There \(\:\exists\:D>0\) such that \(\:\left|d\left(t\right)\le\:D\right|\).

The tracking error is defined as \(\:e=x-{x}_{d}\), where \(\:{x}_{d}\) is the desired value and \(\:x\) is the actual output value. The sliding surface is chosen as:

$$\:\begin{array}{c}s=e+c\int\:edt=\left(x-{x}_{d}\right)+c\int\:\left(x-{x}_{d}\right)dt\end{array}$$
(26)

where \(\:c>0\) is the integral coefficient, then:

$$\:\begin{array}{c}\dot{s}=\dot{e}+ce=\left(\dot{x}-{\dot{x}}_{d}\right)+c\left(x-{x}_{d}\right)=f\left(x\right)\cdot\:u+g\left(x\right)+d\left(t\right)-{\dot{x}}_{d}+ce\end{array}$$
(27)

To ensure the robustness of the closed-loop system, the adaptive law is designed based on Lyapunov stability theory. The Lyapunov function is chosen as:

$$\:\begin{array}{c}V=\frac{1}{2}{s}^{2}+\frac{1}{2\gamma\:}{\stackrel{\sim}{\theta\:}}^{2}\end{array}$$
(28)

where \(\:\gamma\:>0,\widetilde{\theta}=\theta\:-\widehat{\theta\:}\), and \(\:\widehat{\theta\:}\) is the estimated value of \(\:\theta\:\).The adaptive law is taken as: \(\:\dot{\widehat{\theta\:}}=\gamma\:\left|s\right|\), then get:

$$\:\begin{array}{c}\dot{V}\left(s\right)=s\dot{s}+\frac{1}{\gamma\:}\stackrel{\sim}{\theta\:}\dot{\stackrel{\sim}{\theta\:}}=s\left[f\left(x\right)\cdot\:u+g\left(x\right)+d\left(t\right)-{\dot{x}}_{d}+ce\right]-\frac{1}{\gamma\:}\stackrel{\sim}{\theta\:}\dot{\widehat{\theta\:}}=s\left[f\left(x\right)\cdot\:u+g\left(x\right)+d\left(t\right)-{\dot{x}}_{d}+ce\right]-\stackrel{\sim}{\theta\:}\left|s\right|\end{array}$$
(29)

In the development of variable structure control, Academician Gao Weibing et al.36 first introduced the concept of the reaching law, which provided a general method for the design of sliding mode control systems. In this paper, the constant rate reaching law is adopted.

Using a constant speed reaching law : \(\:\dot{s}=-ksgn\left(s\right)\), the structure is:

$$\:\begin{array}{c}u=\frac{1}{f\left(x\right)}\left[-\widehat{\theta\:}sgn\left(s\right)-g\left(x\right)+{\dot{x}}_{d}-ce\right]\end{array}$$
(30)

Among them,\(\:f\left(x\right)\ne\:0,k>0\). Substituting Eq. (30) into Eq. (29) yields,

$$\:\begin{array}{c}\dot{V}\left(s\right)=s\left[-\widehat{\theta\:}sgn\left(s\right)+d\left(t\right)\right]-\stackrel{\sim}{\theta\:}\left|s\right|=s\cdot\:\left[-\widehat{\theta\:}sgn\left(s\right)\right]+s\cdot\:d\left(t\right)-\stackrel{\sim}{\theta\:}\left|s\right|=\left|s\right|\cdot\:d\left(t\right)-\theta\:\left|s\right|\le\:0\end{array}$$
(31)

There \(\:\exists\:\theta\:>0\) such that \(\:\left|d\left(t\right)\le\:\theta\:\right|\). In the scenario where the system is decoupled into two independent SISO subsystems, the parameter \(\:\theta\:\) in each subsystem is a scalar (dimension 1), corresponding to the estimated upper bound of the disturbance in the anode and cathode channels, respectively (i.e., \(\:{\theta\:}_{1}\) and \(\:{\theta\:}_{2}\)). Its physical meaning is:

  1. a.

    \(\:{\theta\:}_{1}\) and \(\:{\theta\:}_{2}\) represent the maximum magnitudes of the unknown disturbances \(\:{d}_{1}\left(t\right)\), \(\:{d}_{2}\left(t\right)\) in the first and second subsystems, respectively.

  2. b.

    The parameter \(\:\theta\:\) is adaptively updated via the adaptive law to approximate the actual disturbance boundary.

It can be seen that in the new coordinate system, the structure of the sliding mode control system is designed according to the basic principles of Lyapunov stability theory, ensuring that the system can achieve asymptotic stability. In the controller design, a boundary layer is introduced, and the sign function in Eq. (30) is replaced with a saturation function. Outside the boundary layer, sliding mode control is applied, while inside the boundary layer, feedback control is used. This approach ensures satisfactory control performance while reducing the chattering effect commonly associated with conventional sliding mode control. The controller is designed as follows:

$$\:\begin{array}{c}u=\frac{1}{f\left(x\right)}\left[-\widehat{\theta\:}sat\left(\frac{s}{\phi\:}\right)-g\left(x\right)+{\dot{x}}_{d}-ce\right]\end{array}$$
(32)
$$\:\begin{array}{c}sat\left(\raisebox{1ex}{$s$}\!\left/\:\!\raisebox{-1ex}{$\phi\:$}\right.\right)=\left\{\begin{array}{c}sgn\left(\raisebox{1ex}{$s$}\!\left/\:\!\raisebox{-1ex}{$\phi\:$}\right.\right),\left|\raisebox{1ex}{$s$}\!\left/\:\!\raisebox{-1ex}{$\phi\:$}\right.\right|\ge\:1\\\:\raisebox{1ex}{$s$}\!\left/\:\!\raisebox{-1ex}{$\phi\:$}\right.\:\:\:\:\:\:\:\:\:\:\:,\left|\raisebox{1ex}{$s$}\!\left/\:\!\raisebox{-1ex}{$\phi\:$}\right.\right|<1\end{array}\right.\end{array}$$
(33)

In the equation, \(\:\phi\:\) represents the boundary layer thickness.

Gas pressure sliding mode controller design

After feedback linearization of the dynamic model of the PEMFC gas pressure described in this paper, the inputs and outputs of the anode and cathode are independent of each other. Therefore, they can be regarded as two independent single-input single-output systems, and controllers are designed accordingly for each.

The sliding mode surface is selected as: \(\:s={\left[\begin{array}{cc}{s}_{1}&\:{s}_{2}\end{array}\right]}^{T}={\left[{e}_{1}+\begin{array}{cc}{c}_{1}\int\:{e}_{1}dt&\:{e}_{2}+{c}_{2}{\int\:e}_{2}dt\end{array}\right]}^{T}\), The tracking error of the system output: \(\:e={\left[\begin{array}{cc}{e}_{1}&\:{e}_{2}\end{array}\right]}^{T}\)。The adaptive sliding mode controller is designed as:

$$\:\begin{array}{c}u=\left[\begin{array}{c}{u}_{a}\\\:{u}_{c}\end{array}\right]=\left[\begin{array}{c}{A}_{11}^{-1}\left(-{\widehat{\theta\:}}_{1}sat\left({s}_{1}/\phi\:\right)-{p}_{1}\left(x\right)d-{c}_{1}{e}_{1}\right)\\\:{A}_{22}^{-1}\left(-{\widehat{\theta\:}}_{2}sat\left({s}_{2}/\phi\:\right)-{p}_{2}\left(x\right)d-{c}_{2}{e}_{2}\right)\end{array}\right]\end{array}$$
(34)

In the coordinated control of PEMFC systems, feedback linearization is first used to decouple the nonlinear dynamics of anode and cathode gas pressures into two independent SISO subsystems. For each, an adaptive sliding mode controller is designed based on sliding surfaces \(\:s=e+c\int\:edt\), enhancing robustness through integral error tracking. An adaptive law \(\:\dot{\widehat{\theta\:}}=\gamma\:\left|s\right|\) compensates for unknown disturbances, while a saturation function and boundary layer design are introduced to suppress chattering. Control parameters (e.g., integral gains, boundary thickness, adaptive rates) are jointly tuned to balance responsiveness and disturbance rejection. Stability of each subsystem is ensured via Lyapunov analysis, and inverse transformation maps the control inputs back to actual actuators. This method enables fast, robust, and low-chattering tracking of gas partial pressures, without requiring inter-subsystem communication, thus simplifying implementation while ensuring overall system stability. The control block diagram of the feedback linearization sliding mode controller is shown in Fig. 1.

Fig. 1
Fig. 1
Full size image

Feedback Linearization Adaptive Sliding Mode Control Flowchart.

Experiment and simulation

In order to study the dynamic response characteristics of the automotive fuel cell system under different load disturbance conditions and its ability to adapt to complex load variations, two sets of experiments were conducted to simulate simple and complex load conditions that the fuel cell system of actual vehicles may encounter. During vehicle operation, the load current often exhibits step characteristics due to acceleration, deceleration, or changes in other load demands, and may even superimpose periodic fluctuations. Therefore, evaluating the output voltage variation of the fuel cell stack under these conditions is crucial for optimizing the system’s dynamic performance and control strategies. Table 2 presents the simulation parameters of the adaptive sliding mode controller based on feedback linearization.

Table 2 Controller simulation Parameters.

Before conducting the experiments and simulations, the set point for the anode hydrogen gas pressure in the PEMFC system was chosen to be 1.8 atm, and the set point for the cathode air pressure was selected to be 2 atm. It is known that the oxygen-to-nitrogen ratio is 21:79, with the load current as an input disturbance. The goal is to keep the anode and cathode pressure difference stable at 0.2 atm to ensure that the fuel cell membrane is not damaged by excessive pressure differences. By comparing the results of two sets of experiments, it is expected that the FLC-ASMC controller will provide more precise control of the anode and cathode pressure difference under different load disturbance conditions in the vehicle fuel cell system compared to traditional PID control and classic SMC control. As shown in Fig. 2, the Simulink modeling structure of the 60 kW proton exchange membrane fuel cell system under Experiment 1 is presented. Figure 3 shows the 60 kW fuel cell gas supply system bench architecture.

Fig. 2
Fig. 2
Full size image

Simulink modeling and simulation diagram of the 60 kW fuel cell system.

Fig. 3
Fig. 3
Full size image

Fuel cell gas supply system test bench structure.

As shown in part a) of Fig. 4, the goal is to simulate the dynamic response characteristics of the fuel cell system under sudden load changes during vehicle operation. Specifically, within the time range of 0 to 200 s, the load current will step up from 0 A to 100 A, representing a sudden load disturbance in the vehicle. In this part of the experiment, the number of battery cells is set to 100, simulating the practical application of the fuel cell system in vehicles. This experiment aims to analyze the system’s steady-state and dynamic performance under sudden load changes, including voltage response, pressure variations, and the effectiveness of the control strategy.

As shown in part b) of Fig. 4, complexity is added based on part a) to study the response of the fuel cell system under more complex load conditions. Within the time range of 0 to 200 s, a step change in load current is applied along with a time-varying sinusoidal disturbance, simulating load fluctuations under complex road conditions. Other experimental conditions, including the selection of the number of battery cells and system setup, remain the same as in part a) of Experiment 1. The objective is to evaluate the adaptability of the fuel cell system to multiple disturbances and the robustness of the control strategy, with a focus on dynamic response characteristics and the stability of pressure difference control.

The PID controller calculates the control input through the error \(\:e\), error rate \(\:e\), and integral of the error \(\:\int\:edt\) to regulate the cathode and anode pressures in the PEMFC system. \(\:u\left(t\right)={k}_{p}\cdot\:e+{k}_{d}\cdot\:\dot{e}+{k}_{i}\cdot\:\int\:edt\), Where, \(\:{k}_{p}\), \(\:{k}_{d}\) and \(\:{k}_{i}\) denote the proportional, derivative, and integral gains of the PID controller, respectively, with the parameter values configured as\(\:\:{k}_{p}=10\), \(\:{k}_{d}=0.05\) and \(\:{k}_{i}=9\). The PID parameters were selected using the trial-and-error tuning method, which involves iteratively adjusting the gains while observing the system’s dynamic response until a satisfactory balance between stability, response speed, and overshoot is achieved. This empirical approach is particularly suitable for complex nonlinear systems like PEMFCs where accurate mathematical models may be difficult to obtain.

SMC defines the sliding surface using the error \(\:e\) and its derivative \(\:\dot{e}\), and applies it to the gas supply subsystem of the PEMFC system. SMC consists of two parts: equivalent control and switching control. The feedforward compensation term is expressed as \(\:{u}_{a}={\theta\:}_{p}\cdot\:dq\), where\(\:\:{\theta\:}_{p}\)=1 is the feedforward gain, and \(\:dq-{\ddot{x}}_{d}-c\cdot\:\dot{e}\:{\ddot{x}}_{d}\), which is a linear combination of the desired acceleration and the error dynamics. The switching control input is \(\:{u}_{s}=-D\cdot\:sgn\left(s\right)\) where the robustness gain \(\:D=2.01\), is used to suppress disturbances near the sliding surface.

Experiment 1 will comprehensively evaluate the performance of the PEMFC system under two different operating conditions, serving as a foundation for optimizing its dynamic control strategy.

Fig. 4
Fig. 4
Full size image

Variation of load current under different experiments (a) Experiment 1 (b) Experiment 2.

Fig. 5
Fig. 5
Full size image

Changes in output voltage under different experiments (a) Experiment 1 (b) Experiment 2.

Figure 4a and b respectively show the load current output curves for Experiments 1 and 2, representing the different characteristics of load variations under two typical operating conditions. Figure 5a and b illustrate the output voltage responses of the three controllers under these two load current disturbance inputs. It is evident that the output response curves of the three controllers almost completely overlap, with only slight differences at the magnitude of \(\:{10}^{-5}\).

Specifically, under the load current condition represented by Experiment 1, although the input disturbance might affect the output voltage to some extent, all three controllers demonstrate good steady-state control and dynamic regulation capabilities. In the more dramatic load current variation condition of Experiment 2, the three controllers also respond quickly and maintain output voltage stability. Thus, it can be observed that all three controllers effectively suppress the impact of input disturbances on the output voltage under different load conditions, showing consistent control performance.

Fig. 6
Fig. 6
Full size image

Changes in the output pressure of anode hydrogen under different experiments (a) Experiment 1 (b) Experiment 2.

Fig. 7
Fig. 7
Full size image

Changes in the output pressure of cathode oxygen under different experiments (a) Experiment 1 (b) Experiment 2.

Figure 6a and b respectively show the dynamic responses of anode hydrogen pressure to different load currents under two different operating conditions, while Fig. 7a and b illustrate the changes in cathode oxygen pressure under the same conditions. It can be observed that, whether in the anode or cathode, all three controllers enable the system pressures to respond rapidly and track the changes in load current, eventually stabilizing at a steady state. This indicates that the three controllers demonstrate excellent control capabilities in anode hydrogen pressure regulation and load adaptability.

Although the basic performance of all three controllers is similar under the same gain conditions, the ASMC controller successfully reduces the oscillation phenomenon commonly observed in traditional control methods by continuously adjusting parameters. This improvement is particularly noticeable during dynamic adjustments, making the system’s response smoother and more stable. Notably, the FLC-ASMC method further showcases its unique superiority in vibration suppression and precise control. This improvement not only effectively addresses inherent issues in the ASMC, but also enhances the system’s adaptability to complex operating conditions.

Fig. 8
Fig. 8
Full size image

Change in the output pressure of the cathode and anode pressure difference under different experiments (a) Experiment 1 (b) Experiment 2.

From Fig. 8a and b, it can be observed that, whether under step changes in load current or a combination of step changes and sinusoidal variations in input load current, the PEMFC system controlled by the FLC-ASMC controller outperforms traditional PID control and classical SMC control. Specifically, the FLC-ASMC controller enables the system’s anode-cathode gas pressure difference to converge more quickly and accurately to the desired value of 0.2 atm, while significantly enhancing system robustness and extending the lifespan of the fuel cell. Table 3: Experimental Data Comparison of Different Controllers.

Table 3 Experimental data comparison of different Controllers.

Table 3 presents a comparative analysis of the performance of three controllers (PID, SMC, and FLC-ASMC) under different disturbance conditions, focusing on two key performance metrics: settling time and overshoot. Under pure step disturbance, the FLC-ASMC controller achieves a settling time of 0.95 s, representing a reduction of approximately 37% and 27% compared to the PID (1.50 s) and SMC (1.30 s) controllers, respectively. Its overshoot is 0.053, which is 47% lower than that of PID (0.10) and 56% lower than that of SMC (0.12). Under step-plus-sine disturbance, the FLC-ASMC controller further reduces the settling time to 0.44 s, improving by 73% and 67% compared to PID (1.60 s) and SMC (1.35 s), respectively. The overshoot is also significantly reduced to 0.048, representing decreases of 52% and 46% compared to SMC and PID, respectively. In summary, the FLC-ASMC controller demonstrates superior dynamic response performance under both typical disturbance conditions, significantly enhancing system stability and responsiveness, thereby validating its control advantages in various operating environments.

Conclusion

Compared with the study by Rakhtala et al.37, which focuses on voltage tracking of PEMFCs using artificial neural networks, this work emphasizes the coordinated control of anode and cathode gas supply systems to maintain a reasonable output pressure difference, thereby reducing membrane damage and improving system stability. The proposed control strategy is based on feedback linearization, offering greater physical interpretability and robustness, and is more practical for engineering implementation than the black-box neural network model. In addition, two types of current disturbances—step and step-plus-sine—are introduced to comprehensively evaluate the controller’s dynamic adaptability. Simulation results demonstrate that the proposed method achieves faster response and smaller overshoot in pressure difference control, showing strong disturbance rejection capability and ease of implementation.

Unlike the study by Adithya Legala et al.38, which uses ANN and SVR to develop data-driven models for predicting PEMFC voltage, membrane resistance, and hydration level, this work constructs a physically based control system using feedback linearization. By directly regulating anode and cathode gas flows, the proposed method controls the output pressure difference to enhance system stability under complex load conditions. Compared to regression models that rely heavily on large datasets and lack interpretability, this approach incorporates sliding mode control strategies to significantly improve response speed and disturbance rejection while reducing dependence on extensive experimental data.

This study proposes an optimized control strategy combining feedback linearization and adaptive sliding mode control (FLC-ASMC) to address the coupling between gas flow and pressure in the anode and cathode supply systems of PEMFC. The feedback linearization method decouples the nonlinear system, reducing the impact of flow-pressure coupling and parameter uncertainties. The adaptive sliding mode control enhances dynamic response and tracking accuracy by adjusting sliding mode parameters in real-time, reducing chattering and improving system robustness. This composite control strategy optimizes fuel cell supply system performance.

However, the study’s simplified cathode air supply model assumes ideal conditions, leaving out control of subsystems like temperature, water circulation, and DC/DC boost converters. Future work can address these subsystems to improve the overall fuel cell control system.