1. Introduction
Hydrogen, as a clean energy carrier, has attracted worldwide attention. Fuel cells exhibit high efficiency in converting hydrogen into water and electrical energy [
1]. Among them, the PEMFC is regarded as a promising power source for future transportation and related applications due to its high energy conversion efficiency, low environmental impact, and rapid start-up capability [
2]. The stack temperature of the PEMFC is a critical factor affecting its performance and lifetime. Excessive temperature reduces the transport rate of reactants and the effective thickness of the catalyst layer. In contrast, insufficient temperature slows down the electrochemical reaction rate and may cause electrode flooding, preventing reactant gases from entering the electrodes and leading to voltage loss [
3,
4]. Therefore, efficient and stable thermal management is crucial to ensure the safe operation and prolong the service life of the PEMFC.
Numerous methods have been proposed for the temperature management of PEMFCs to enhance their performance and operational stability. Ahn et al. employed classical proportional and integral controllers and a state feedback control to suppress catalyst layer temperature rise and prevent oxygen starvation [
5]. Hu et al. proposed a coolant circuit modeling method together with a temperature fuzzy control strategy to maintain PEMFC operation within the desired temperature range [
6]. Kai Ou et al. developed a fuzzy logic controller with five inputs and two outputs to regulate the temperature and relative humidity of an open cathode fuel cell in real time, which effectively improved the output power of the PEMFC [
7]. Hu et al. experimentally established the mapping relationship between the optimal operating temperature and PEMFC power and further designed a predictive controller with an optimal operating temperature tracking function to improve efficiency [
8]. Chen et al. constructed a temperature management system model based on dual proportional–integral differential controllers and proposed an improved differential evolution algorithm to adjust the mutation factor, crossover factor, and search range, thereby maintaining the temperature difference between the cooling-water inlet and the stack at approximately 5 K [
9]. Xu et al. proposed a temperature management strategy based on the sparrow search algorithm PID, which features fast convergence, good dynamic performance, and strong disturbance rejection capability, ensuring temperature fluctuations within 0.5 K under dynamic disturbance [
10]. In addition to these model-based control strategies, data-driven approaches have also been explored for thermal management in complex energy systems. For instance, Brahim and Jemni investigated the thermal performance of flat miniature heat pipes using artificial neural network (ANN) models combined with experimental data. Their study demonstrated that ANN-based surrogate models can accurately predict key thermal parameters, such as maximum temperature and thermal resistance, under varying wick-fluid configurations and operating conditions [
11]. Although these methods have achieved success in temperature regulation, most of them do not account for disturbances and parameter variations. Since PEMFCs are often subject to external disturbances, this raises more stringent requirements on controller robustness.
Han et al. designed a model reference adaptive feedback controller to address uncertainties and robustly regulate both the stack and coolant inlet temperatures of PEMFCs [
12]. Li et al. regarded model uncertainties, external disturbances, and parameter variations as “total disturbance” to be estimated and compensated and proposed an active disturbance rejection control with a switching law [
13]. Yan et al. designed the residual generator of sensor faults by Dulmage–Mendelsohn decomposition to rearrange the biadjacency matrix of the thermal model, thereby developing a sliding-mode-based active fault-tolerant control strategy for PEMFC thermal management [
14]. Zang et al. addressed issues including erroneous control caused by sensor faults and strong nonlinearities induced by external current loading and proposed a fault-tolerant temperature control method based on an adaptive strong tracking Kalman filter combined with the Hampel algorithm, which significantly enhanced system stability [
15]. These studies have made significant contributions to the temperature control of PEMFC stacks and to addressing parameter uncertainties and external disturbances. However, none of these works have considered the impact of stochastic disturbances on PEMFCs. In practical operating environments, stochastic disturbances can significantly affect PEMFC performance [
16]. For example, stochastic disturbances in the load current influence the oxygen excess ratio [
17], while stochastic disturbances in temperature affect the fuel cell voltage [
18] and output power [
19]. Therefore, it is essential to consider the impact of stochastic disturbances on the PEMFC; otherwise, its actual operational performance may degrade.
To address the aforementioned issues, this paper proposes an adaptive control strategy based on the stochastic backstepping method. The strategy accounts for multiple types of stochastic disturbances, including those driven by tracking error as well as by stack temperature and load current, and effectively stabilizes the stack temperature at its optimal value under both stochastic disturbances and parameter variations. The main contributions of this paper are summarized as follows:
A third-order nonlinear Itô stochastic model is established, which accounts for the influence of stochastic disturbances on the PEMFC stack temperature.
Within the stochastic model framework, the stochastic estimator-based adaptive laws are designed to cope with variations in membrane water content and ambient temperature during operation, thereby enhancing the robustness of the system.
A stochastic control law is developed to ensure that the stack temperature is maintained at its optimal value under multiple types of stochastic disturbances, while enhancing the robustness and performance of the controller.
By combining the stochastic estimator-based adaptive laws with the stochastic control law, a stochastic parameter-variation-resistant control law is derived, thereby constructing a stochastic adaptive controller.
2. System Model and Problem Statement
Figure 1 shows a schematic diagram of a PEMFC, which consists of the temperature management system, humidity management system, hydrogen supply system, and air supply system. This study focuses on the temperature management system. Based on the physics-based PEMFC thermal model [
6] and the empirical water pump model [
20], a third-order nonlinear Itô stochastic model for the PEMFC temperature management system is derived, as expressed in (1)–(3). The approach of combining these models has been previously applied in [
21] for a deterministic system. It is assumed that the coolant temperature of the water pump is well controlled and the temperature of the coolant entering PEMFC remains constant. For simplicity of analysis, it is reasonably assumed that the pressures and inlet temperatures of the anode and cathode remain approximately equal during operation,
,
.
where
.
to
are parameters of the water pump, which can be found in [
20].
is an arbitrary function of
and
and is referred to as the diffusion term. Other parameters and functions in the proposed model are listed in
Table 1.
The saturation vapor pressure
according to vapor temperature
is modeled as follows:
Under normal operating conditions, the PEMFC temperature typically ranges from 313 K to 373 K, with an optimal operating temperature of 343 K [
6]. Therefore, the control objective of this paper is to regulate the stack temperature to 343 K. As shown in (1)–(4) and
Table 1, the PEMFC temperature management system is a highly nonlinear system, which poses significant challenges for controller design. Moreover, the stack temperature is easily affected by variations in membrane water content [
13], and this effect must be taken into account. In addition, considering that the PEMFC is commonly used in vehicles [
22], the influence of ambient temperature variations is also considered in this study.
Remark 1. The model proposed in this study combines the existing PEMFC thermal model and water pump model, with an additional diffusion term to account for stochastic disturbances. The focus is not on the modeling process itself, but rather on designing a control scheme based on the existing model under stochastic disturbances.
Remark 2. The controller design of a stochastic system is more challenging than that of a deterministic one because of the Itô differential rule for the Lyapunov function, which leads to the emergence of the Itô correction term [
23].
Remark 3. Without loss of generality, we employ the arbitrary function to represent the diffusion terms of the Itô stochastic model (1)–(3). This design choice enhances the practical applicability of the proposed controller.
Remark 4. Since this study only considers stochastic disturbances in the PEMFC thermal model, the diffusion term contains only . This also corresponds to the strict feedback form of the Itô stochastic differential equation, as detailed in [
24].
Remark 5. From Table 1, it can be observed that the expression of is highly nonlinear, and its partial derivative with respect to or is extremely complex. This increases the difficulty of controller implementation, thus necessitating the design of an estimator. 3. Main Results
To address the problems presented in
Section 2, a stochastic control law is designed in
Section 3.1, and the stochastic estimator-based adaptive laws are developed in
Section 3.2. By combining these two components, a stochastic parameter-variation-resistant control law is constructed in
Section 3.3. The control law in
Section 3.3, together with the stochastic adaptive laws, forms the proposed nonlinear stochastic adaptive controller. The overall control framework is illustrated in
Figure 2. The stochastic control law described in
Section 3.1 is not explicitly shown in
Figure 2 because it has been integrated with the adaptive laws to form the stochastic parameter-variation-resistant control law.
When the load current experiences a sudden change, its time derivative can produce a significant transient peak. In practical applications, PEMFC systems typically employ current limiters to ensure stable operation. Consequently, an auxiliary energy storage system is often integrated to buffer rapid variations in the load current [
25]. In this paper, a load current second-order filter (5) is adopted to smooth the current input.
where
is the filtered load current.
and
are time constants. In
Section 3.1,
Section 3.2 and
Section 3.3, all
are replaced with
.
To enhance the practical applicability of the proposed adaptive laws, we consider the case where the diffusion term includes system parameters. In this paper, we focus on a class of stochastic systems in which the diffusion term is linear with respect to the system parameter
and
, and the arbitrary function
is rewritten as follows:
where
,
and
are arbitrary functions, and they do not include
and
.
3.1. Stochastic Control Law Design Based on Stochastic Backstepping Method
Definition 1. Define the maximum function as follows:where and denote arbitrary variables. To maintain the PEMFC stack temperature at its optimal value in the presence of stochastic disturbances, a stochastic control law is designed based on the stochastic backstepping method proposed in [
26]. Define
,
and
. The proposed stochastic control law (8)–(10) is given as follows:
where
,
and
are tunable parameters,
and
are small positive constants, and
is a tunable parameter.
As stated in Remark 5,
exhibits strong nonlinear characteristics, which make the analytical derivation of the derivative of
highly complicated. Therefore, the following second-order tracking differentiator is employed for estimation:
where
and
are tunable parameters.
and
denote the estimated value and derivative of
, respectively. The convergence and noise sensitivity analysis of the second-order tracking differentiator under stochastic disturbances are provided in
Appendix B.
The remaining functions in the stochastic control law are listed in
Table 2.
The stochastic control law (8)–(10) can achieve the proposed control objective, and the proof is provided in
Appendix C.
Remark 6. Due to the strong nonlinearity of the PEMFC temperature management system, incorporating the stochastic disturbances in and into the design would significantly increase the complexity of the controller. Therefore, we neglect to ensure that the controller can be practically implemented while maintaining robustness against stochastic disturbances. Simulation results verify that this simplification is reasonable.
Remark 7. Although this paper neglects the stochastic disturbance in and , the estimated value still includes the Itô correction term. This feature further enhances the system’s capability to resist stochastic disturbances.
Remark 8. To analyze and address stochastic disturbances, the derivative of functions requires the application of Itô’s differential rule, which introduces an Itô correction term. This necessitates the design of a quartic Lyapunov function and the use of techniques such as Young’s inequality. These factors increase the design complexity and render the traditional backstepping method unsuitable for stochastic systems, thus requiring the development of a stochastic backstepping method. The Itô differential rule is presented in Appendix A.
3.2. Stochastic Estimator-Based Adaptive Laws Design for Parameter Variations
To address the variations in membrane water content and ambient temperature, the system parameters
and
, which are related to these factors, are selected as adaptive parameters. The proposed adaptive laws (13)–(15) are given as follows:
where
,
and
are positive tunable parameters,
and
are small positive constants,
and
are the nominal values of
and
, and
.
The stochastic estimator-based adaptive laws operate by automatically adjusting the adaptive parameters so that the estimated system states track the actual system states. After replacing the system parameters in the control law with the corresponding adaptive parameters, the estimated system, which is composed of the estimated and actual states, can achieve the desired control objective. Since the estimator shares the same structure as the actual system and the estimated states can track the actual ones, the estimated and actual systems can be regarded as equivalent. Therefore, the control law incorporating adaptive parameters enables the actual system to achieve the control objective while effectively addressing the problem of parameter variations.
The proposed stochastic adaptive laws (13)–(15) can automatically adjust the values of
and
, ensuring that
converges to zero; for proof, see
Appendix D.
Remark 9. Similarly to the design of the stochastic control law (8)–(10), traditional adaptive control methods cannot be directly applied to stochastic systems. Moreover, the Itô correction term contains quadratic terms of the adaptive parameters, which must be properly handled.
Remark 10. Although this study only considers variations in membrane water content and ambient temperature, leading to the selection of and as adaptive parameters, the proposed stochastic estimator-based adaptive law can be applied to design all system parameters in a stochastic system as adaptive parameters, with the design procedure remaining essentially unchanged. This facilitates future research and the improvement of disturbance-rejection performance, while significantly enhancing the practical applicability of the proposed stochastic adaptive controller.
3.3. Stochastic Parameter-Variation-Resistant Control Law Design
Definition 2. For any variable or function , is the modified form of obtained by incorporating the adaptive laws (13)–(15), specifically by replacing and with and .
By integrating the stochastic control law (8)–(10) with the stochastic estimator-based adaptive laws (13)–(15), specifically by replacing
and
in (8)–(10) with
and
, the stochastic parameter-variation-resistant control law (16)–(18) is given as follows:
It is worth noting that the second-order tracking differentiator is modified as follows:
By combining (2), (3) and (13), a new PEMFC temperature management system is formed, which is referred to as the estimated system. Through the stochastic adaptive laws (13)–(15), in (13) will asymptotically converge to zero, which implies that the estimated system is equivalent to the actual system (1)–(3). Consequently, by replacing and in (8)–(10) with and , the resulting control law (16)–(18) ensures the closed-loop stability of the estimated system. Furthermore, since will asymptotically converge to zero, the proposed stochastic parameter-variation-resistant control law (16)–(18) ensures the closed-loop stability of the actual system, and thus the stochastic estimator-based adaptive laws (13)–(15) with the stochastic parameter-variation-resistant control law (16)–(18) guarantee that:
Under stochastic disturbances, the stack temperature can rapidly and accurately track its optimal value;
Under variations in membrane water content and ambient temperature, the stack temperature can still be maintained at its optimal value.
4. Simulation and Analysis of Results
To verify the effectiveness and robustness of the proposed controller, numerical simulations are carried out under two representative scenarios: (1) normal operation and (2) operation in the presence of parameter variations.
A conventional PID-based controller is designed for comparison with the proposed controller. Both controllers are implemented under identical system parameters to ensure a fair evaluation. The system parameters of PEMFC are listed in
Table 3.
In both simulation scenarios, the PEMFC system is initially assumed to operate at steady state. The control gains of the proposed controller are chosen as
and
,
. The parameters of the adaptive laws are set to
,
,
,
and
. Meanwhile the PID controller parameters are set to
,
and
. The time constants of the load current second-order filter (5) are configured as
,
. To verify the generality of the proposed controller, two types of diffusion terms under stochastic disturbances are considered: one driven by the tracking error and the other driven by the stack temperature and load current. The diffusion terms used in the simulations are as follows:
Multiple simulations are conducted for both cases. In the presented results, the light-colored curves represent individual simulation trajectories, while the dark-colored curves indicate the corresponding mean values. In addition, a shaded region with a lighter color denotes the fluctuation band, which covers 95% of the individual trajectories. All simulations are implemented in Python 3.12.6 using the SDEINT 0.3.1dev package.
4.1. Case 1: Normal Operation
This subsection evaluates the controller’s capability to track the optimal operating temperature under variations in load current. The time evolution of the load current is illustrated in
Figure 3a. In the simulations, a step function is employed to simulate the load current. This is because, in practical PEMFC applications, the load current often changes abruptly due to vehicle acceleration or equipment switching. The step function can effectively reproduce such sudden variations. Moreover, compared with smoothly varying signals, it provides a more rigorous test of the proposed controller’s performance and robustness.
Figure 3b compares the performance of the two controllers under stochastic disturbances driven by tracking error, while
Figure 3c presents their performance under stochastic disturbances driven by stack temperature and load current. Due to the presence of stochastic disturbances, the results vary for each simulation run. Therefore,
Figure 3b,c illustrate the outcomes obtained after 100 simulation runs to ensure the reliability of the simulations and to validate the practicality of the proposed controller.
As shown in
Figure 3b,c, the red curve exhibits a markedly smaller temperature fluctuation amplitude than the blue one. From the fluctuation bands covering 95% of the trajectories, it can be observed that the red band is significantly narrower than the blue one. Moreover, under stochastic disturbances driven by tracking error, many trajectories of the conventional method clearly exceed the fluctuation band, indicating that the conventional controller experiences larger fluctuations under stochastic disturbances, whereas the proposed controller maintains smaller and more stable variations. Under stochastic disturbances driven by the tracking error, the conventional controller yields temperature oscillations of nearly 0.6 K, with a root mean square error (RMSE) of 0.060, a variance of 0.0041 and a maximum deviation of 0.580 K. In contrast, the proposed controller confines the fluctuation within 0.2 K, with an RMSE of 0.014, a variance of 0.0002 and a maximum deviation of 0.157 K, maintaining a stable and well-damped response.
When the system is subjected to stochastic disturbances driven by the stack temperature and load current, the conventional controller produces a fluctuation of approximately 0.3 K, with an RMSE of 0.063, a variance of 0.0494 and a maximum deviation of 0.315 K. The proposed controller further suppresses the variation to within 0.15 K, reducing the RMSE, variance and maximum deviation to 0.029, 0.0228 and 0.147 K, respectively. It exhibits faster convergence to the steady-state temperature, demonstrating superior transient performance and robustness against multiple types of stochastic disturbances.
Overall, the result demonstrates that, throughout the entire operation, the proposed controller not only provides stronger resistance to stochastic disturbances but also achieves faster and more stable tracking of the optimal operating temperature, confirming its excellent control performance and robustness.
Remark 11. The results shown in Figure 3b,c indicate that the proposed controller significantly reduces the temperature fluctuation. This improvement can be mainly attributed to the treatment of the diffusion term in , as detailed in Appendix C, where the handling of the quartic Lyapunov function and the Itô correction term is elaborated. In addition, the second-order tracking differentiator (11)–(12) is employed to estimate the derivative of . The contribution of this estimation to mitigating stochastic disturbances has been discussed in Remark 7. 4.2. Case 2: Presence of Parameter Variations
This subsection evaluates the controller’s capability to track the optimal operating temperature under parameter variations, including changes in
and
. The variations in these parameters are depicted in
Figure 4a.
The stack temperature of the PEMFC has a significant impact on its performance and lifespan, while the system itself is susceptible to external disturbances [
13,
27]. Therefore, possessing strong disturbance-rejection capability is particularly important. Under conditions such as rapid load variations or abnormalities in the humidity control system, the membrane water content may fluctuate dramatically. In addition, since the PEMFC is often applied in mobile equipment such as vehicles, the ambient temperature may change rapidly when the vehicle moves from a garage to an outdoor environment or when heat dissipation becomes uneven. Hence, addressing the variations in membrane water content and ambient temperature is a crucial aspect for verifying the robustness and practical applicability of the proposed controller under complex operating conditions.
In Case 2, relatively smooth functions are used to simulate variations in membrane water content and environmental temperature to ensure physical realism, while relatively large amplitudes are chosen to evaluate the performance of the proposed controller under extreme operating conditions. Specifically, the membrane water content exhibits complex transient behavior: it remains at 14 initially, then rapidly decays to approximately 5.5 within the first 5 s, followed by a fast rise to 16.5 with small oscillations between 15 and 20 s, and subsequently decreases to 6 with damped oscillations from 20 to 25 s, finally returning gradually to 14. Meanwhile, the ambient temperature also varies dynamically: it stays at 298.15 K for the first 10 s, drops sharply to around 258.15 K with slight oscillations between 10 and 20 s, increases rapidly to about 338.15 K from 20 to 25 s with temperature inertia effects, and then slowly decreases to 278.15 K. These variations are designed to ensure physical realism while evaluating the proposed controller under extreme operating conditions.
The temperature tracking performances of both controllers under parameter variations are presented in
Figure 4b,c. Similarly to Case 1,
Figure 4b,c also illustrate the outcomes obtained after 100 simulation runs.
As shown in
Figure 4b,c, the temperature represented by the red curve exhibits smaller fluctuations and faster convergence to the steady state. In addition, the fluctuation band is narrower, and the trajectories remain well within the band under stochastic disturbances driven by tracking error. Under stochastic disturbances driven by tracking error, the conventional controller exhibits temperature fluctuations of approximately 0.7 K, with an RMSE of 0.047, a variance of 0.0020 and a maximum deviation of 0.688 K. In contrast, the proposed controller limits the temperature variation within 0.2 K, with an RMSE of 0.021, a variance of 0.0004 and a maximum deviation of 0.187 K.
For stochastic disturbances driven by stack temperature and load current, the conventional controller results in temperature fluctuations of about 0.2 K, with an RMSE of 0.051, a variance of 0.00287 and a maximum deviation of 0.208 K. By comparison, the proposed controller effectively constrains the variation within 0.15 K, reducing the RMSE to 0.031, the variance to 0.00078 and the maximum deviation to 0.121 K, thereby ensuring a stable control response.
These observations indicate that the proposed controller can effectively handle parameter variations under stochastic disturbances and maintain stable system performance under complex operating conditions. Overall, the result highlights the significant potential of the controller for practical applications.
Remark 12. During multiple numerical simulations, the traditional method occasionally exhibits divergence. To evaluate its average performance, the divergent simulation results of the traditional method are excluded. In contrast, no such exclusion is applied to the proposed method to ensure the reliability and practicality of the obtained conclusion.