원시데이터 수집 시스템
선정목록으로

PEMFC Thermal Management Control Strategy Based on Dual Deep Deterministic Policy Gradient

간접 관련 수소연료전지 · (5) 연료전지용 수분제어장치(가습기) (7) MEA(막전극접합체)

기본 정보

저자
  1. Zhi Zhang — College of Mechanical and Electrical Engineering, Wenzhou University, Wenzhou 325035, China
  2. Yunde Shen — College of Mechanical and Electrical Engineering, Wenzhou University, Wenzhou 325035, China
  3. Kai Ou — School of Mechanical Engineering and Automation, Fuzhou University, Fuzhou 350108, China
  4. Zhuwei Liu — College of Mechanical and Electrical Engineering, Wenzhou University, Wenzhou 325035, China
  5. Dongji Xuan — College of Mechanical and Electrical Engineering, Wenzhou University, Wenzhou 325035, China
DOI
10.3390/hydrogen6020020
저널
Hydrogen
발행년도
2025
발행기관
Multidisciplinary Digital Publishing Institute
피인용수
1
라이선스
cc-by
논문 유형
–
언어
–
원문 페이지
https://doi.org/10.3390/hydrogen6020020
토픽
Electrocatalysts for Energy Conversion
OpenAlex ID
W4408821906

평가 내용

관련도
간접 관련
사업분야
수소연료전지 · (5) 연료전지용 수분제어장치(가습기)
부 분야
(7) MEA(막전극접합체)
R&D 측면
부품·응용 설계
확신도
0.80
근거 용어
PEMFC, thermal management, control strategy, humidifier model, temperature control
판단 근거
논문은 PEMFC 시스템의 열 관리(Thermal Management)를 위한 제어 전략을 다루고 있으며, 이는 코오롱인더스트리의 수소연료전지 사업 중 가습기(5) 및 MEA(7)가 포함된 시스템의 안정적 운용과 직결되는 연구입니다.
R&D 활용 포인트
PEMFC 시스템의 온도 및 습도 제어 최적화 알고리즘 개발에 활용하여, 가습기 및 MEA의 내구성과 성능을 극대화하는 시스템 통합 설계 기술로 응용 가능함.
평가 입력
섹션 본문 65,932자 중 30,032자 발췌

초록

The operational performance of proton exchange membrane fuel cells (PEMFC) is highly influenced by temperature, making effective thermal management essential. However, the multivariate coupling between pumps and radiators presents significant control challenges. To address this issue, a dual DDPG-PID control strategy is proposed, integrating temperature and flow rate variations to enhance system stability and response. Simulation results demonstrate that the proposed method significantly reduces temperature control errors and improves response time compared to conventional PID-based strategies. Specifically, the D-DDPG PID achieves a temperature error reduction of up to 75.4% and shortens the average tuning time by up to 25.6% compared to PSO-PID. Furthermore, the strategy optimizes cooling system performance, demonstrating its effectiveness in PEMFC thermal management.

본문 67,226자

본문 펼치기
The operational performance of proton exchange membrane fuel cells (PEMFC) is highly influenced by temperature, making effective thermal management essential.However, the multivariate coupling between pumps and radiators presents significant control challenges.To address this issue, a dual DDPG-PID control strategy is proposed, integrating temperature and flow rate variations to enhance system stability and response.Simulation results demonstrate that the proposed method significantly reduces temperature control errors and improves response time compared to conventional PID-based strategies.Specifically, the D-DDPG PID achieves a temperature error reduction of up to 75.4% and shortens the average tuning time by up to 25.6% compared to PSO-PID.Furthermore, the strategy optimizes cooling system performance, demonstrating its effectiveness in PEMFC thermal management. Introduction In recent years, with the gradual reduction of global dependence on coal, oil, and natural gas, and in response to the environmental pollution caused by the use of fossil fuels, there has been increasing attention on exploring new alternative energy sources [1][2][3].Among these, proton exchange membrane fuel cells (PEMFCs) have garnered significant attention due to their numerous advantages, such as low emissions, high efficiency, low operating temperature, rapid start-up capability, and long lifespan [4][5][6].As an efficient and environmentally friendly energy conversion technology, PEMFC is based on electrochemical principles, and the proton directional migration is achieved through the anodic oxidation of hydrogen and cathodic reduction of oxygen in the membrane electrode module, which ultimately generates clean water and releases electrical energy [7,8].However, during the electrochemical reaction process, fuel cells generate not only electrical energy but also heat, which leads to an increase in the operating temperature of the PEMFC [9,10].While a higher temperature can enhance reaction kinetics and conductivity, thereby improving fuel cell efficiency, excessive temperatures may result in the dehydration and degradation of the proton exchange membrane, ultimately compromising the long-term stability and lifespan of the fuel cell [11][12][13].Therefore, the development of efficient thermal management control strategies for PEMFC systems has garnered significant attention from the academic community, leading to extensive research by scholars in this field.To address the impact of temperature on fuel cell performance, many researchers have conducted studies on thermal management control strategies for fuel cells, aiming to improve system stability, enhance response speed, and optimize energy consumption.For instance, Zhao et al. [14] developed a thermal management system model and analyzed the impact of temperature on PEMFC performance.Yu et al. [15] proposed controlling the stack temperature by adjusting the coolant flow rate, while considering the parasitic power of the cooling system.Liu et al. [16] introduced a power control strategy to address the strong nonlinearity of PEMFC systems, achieving performance improvements over traditional PID (proportion-integration-differentiation) control.Li et al. [17] developed a multivariable coordinated controller to resolve the coupling issue between the pump and the radiator, thereby enhancing control accuracy.Yin et al. [18] designed a maximum efficiency control strategy (MECS) based on temperature variations in the PEMFC, which outperforms traditional PID methods in temperaturetracking performance.Zhao et al. [19] applied a diploid genetic algorithm to optimize the temperature control of the membrane electrode assembly (MEA).Cheng et al. [20] combined nonlinear feedforward control with a linear quadratic regulator (LQR) to enhance the control performance of the fuel cell's cooling system.Jia Y. et al. [21] proposed a variable fuzzy PID controller that adjusts control accuracy through the proportional factor.Yu et al. [22] integrated a PID controller with a thermal circuit to reduce parasitic power loss and alleviate the temperature rise in the catalyst layer.Zhi et al. [23] introduced a piecewise predictive feedback control method based on PID to address the limitations of traditional PID control.Ou et al. [24] implemented a feedforward fuzzy PID controller for compressor temperature control, effectively reducing parasitic power loss.Hasheminejad et al. [25] proposed a fuzzy control strategy that ensures optimal operation conditions for PEMFCs by modeling the coolant loop.Mousakazemi et al. [26] optimized fuzzy controller parameters using a genetic algorithm, significantly improving overall control performance.Wang et al. [27] developed a fuzzy rule-based controller for PEMFC system temperature control by adjusting the fan speed.Tan et al. [28] applied particle swarm optimization (PSO) to optimize the operating temperature of the fuel stack.Yan et al. [29] introduced a fault-tolerant control method for sensor fault detection, ensuring that the PEMFC temperature remains near the reference value, even during sensor faults.Ahmadi S et al. [30] applied PSO to optimize PID control, achieving significant control performance improvements.Li et al. [31] used a BP neural network-based PID controller to regulate PEMFC system temperature, demonstrating good robustness and practical application effectiveness. Introduction Despite the valuable contributions of these studies, there are still some limitations in their control strategies.Most of the control methods (e.g., PID and fuzzy logic controllers) are based on predefined models and cannot dynamically adapt to the complex nonlinear behavior of PEMFC systems.These methods struggle to provide stability and optimal performance in the face of the high multivariate coupling and system delays inherent to PEMFCs.As a result, temperature overshoots and slow response times often occur, thus affecting the overall efficiency and stability of the system.For example, while fuzzy logic and PID controllers can improve stability to some extent, their performance is still limited by having too many parameters and the need for extensive tuning under different operating conditions.These challenges are further exacerbated by the complex nonlinear dynamics of PEMFCs, which lead to difficulties in model matching, as well as substantial delays in the control process. Introduction In the past few years, with the rapid development of intelligent technology, algorithms based on deep reinforcement learning (DRL) have gradually been widely used in the field of new energy, such as the deep Q-network (DQN) [32], deep deterministic policy gradi-ent (DDPG) [33], twin delayed deep deterministic policy gradient (TD3) [34], and other advanced algorithms.These algorithms do not rely on precise mathematical models and can continuously learn and optimize control strategies through interaction with the environment, exhibiting strong adaptability, especially in complex and dynamically changing systems.Currently, deep reinforcement-learning algorithms have been widely applied to energy management in fuel cell hybrid electric vehicle systems [35].In this context, Huang et al. [36] proposed an energy management solution for fuel cell hybrid systems based on dual deep deterministic policy gradient (Dual DDPG), where in pure electric mode, DDPG optimizes the power distribution between the battery and the supercapacitor, reducing the battery's depth of discharge.In extended-range mode, DDPG coordinates the output of the fuel cell, battery, and super-capacitor, improving fuel cell efficiency by 0.94% and significantly reducing power fluctuations.Although deep reinforcement learning has achieved promising results in many fields, research on reinforcement-learning algorithms in fuel cell system control, especially in thermal management control, is still limited, and relevant literature is scarce. Introduction Inspired by the energy management of fuel cell hybrid vehicles based on dual DDPG, and in order to overcome the limitations of traditional control algorithms, the author innovatively introduced reinforcement-learning algorithms into fuel cell thermal management.A dual DDPG-PID control strategy was proposed to address the nonlinear and multivariable coupling characteristics of the fuel cell thermal management system.As an advanced adaptive method for PEMFC temperature regulation, this hybrid strategy combines the DDPG algorithm with a PID controller, allowing for dynamic adjustment of the control strategy based on real-time system feedback.Unlike traditional methods, the DDPG algorithm can learn and continuously improve the control strategy in real time according to the state of the fuel cell system, achieving precise optimization of the PID controller parameters.This effectively solves the latency issue commonly encountered in traditional controllers.Therefore, this hybrid control strategy provides a novel approach to thermal management control for fuel cells. Introduction This paper is organized as follows.In Section 2, the level model of the fuel cell system will be developed; in Section 3, the framework of the proposed Dual DDPG control strategy will be discussed.In Section 4, the simulation will be validated under continuous steploading conditions, and the results will be described and analyzed in detail.Finally, the full paper will be summarized and conclusions will be given in Section 5. PEMFC System Model The schematic representation of the PEMFC system is illustrated in Figure 1.This system comprises two main subsystems for the fuel supply: the air supply system and the hydrogen supply system.The air supply system facilitates the transport of air to the cathode side, while the hydrogen supply system directs hydrogen from a high-pressure cylinder to the anode side through a pressure valve.Additionally, a thermal management system is integrated to ensure effective cooling of the fuel cell during operation. Fuel Cell Modeling The voltage of a fuel cell is influenced by thermodynamic and electrochemical losses.The actual output voltage can be expressed as: Fuel Cell Modeling where E denotes the Nernst electromotive force, V denotes the voltage loss due to activation polarization, V denotes the voltage drop due to ohmic loss, and V denotes the voltage loss due to concentration polarization. Fuel Cell Modeling The calculation of Nernst electromotive force is as follows [37]: Fuel Cell Modeling where T is the ambient temperature, T is the fuel cell temperature, P and P are the pressures of hydrogen and oxygen entering the stack, respectively, and F is the Faraday constant.Activation polarization is the voltage loss occurring during the electrochemical reaction in a fuel cell due to the limitation of the electrode reaction rate, primarily caused by the kinetic lag of the electrode catalysis reaction [38,39].The empirical formula for calculating activation polarization is as follows: Fuel Cell Modeling The Ohmic polarization is the potential loss in a fuel cell caused by the resistance of the electrolyte and the electrode materials [40].Its empirical calculation formula is: Fuel Cell Modeling where t is the membrane thickness, and σ is a function of the membrane's water content and the fuel cell temperature.Concentration polarization is the potential loss in a fuel cell caused by the rapid consumption of reactants at the electrode surface, leading to a decrease in the concentration of reactants at the electrode surface [41].The empirical formula for calculating the concentration polarization is as follows: Fuel Cell Modeling The voltage of a fuel cell is influenced by thermodynamic and electrochemical losses.The actual output voltage can be expressed as: Fuel Cell Modeling where E denotes the Nernst electromotive force, V act denotes the voltage loss due to activation polarization, V ohm denotes the voltage drop due to ohmic loss, and V conc denotes the voltage loss due to concentration polarization.The calculation of Nernst electromotive force is as follows [37]: Fuel Cell Modeling where T 0 is the ambient temperature, T fc is the fuel cell temperature, P H 2 and P O 2 are the pressures of hydrogen and oxygen entering the stack, respectively, and F is the Faraday constant.Activation polarization is the voltage loss occurring during the electrochemical reaction in a fuel cell due to the limitation of the electrode reaction rate, primarily caused by the kinetic lag of the electrode catalysis reaction [38,39].The empirical formula for calculating activation polarization is as follows: Fuel Cell Modeling The Ohmic polarization is the potential loss in a fuel cell caused by the resistance of the electrolyte and the electrode materials [40].Its empirical calculation formula is: Fuel Cell Modeling where t m is the membrane thickness, and σ m is a function of the membrane's water content and the fuel cell temperature.Concentration polarization is the potential loss in a fuel cell caused by the rapid consumption of reactants at the electrode surface, leading to a decrease in the concentra-tion of reactants at the electrode surface [41].The empirical formula for calculating the concentration polarization is as follows: Fuel Cell Modeling To validate the accuracy of the developed model, a simulation was conducted based on the experimental conditions reported in Reference [42], where the chimney temperature was set to 80 • C and the inlet pressures of both the cathode and anode were set to 2 bar.The simulated results were then fitted to the experimental data from the literature to analyze the consistency between the predicted V-I characteristics and the reference data.As shown in Figure 2 of the manuscript, the simulation results closely match the experimental data, with a maximum deviation of less than 2% across the entire operating range, confirming the model's accuracy.To validate the accuracy of the developed model, a simulation was conducted based on the experimental conditions reported in Reference [42], where the chimney temperature was set to 80 °C and the inlet pressures of both the cathode and anode were set to 2 bar.The simulated results were then fitted to the experimental data from the literature to analyze the consistency between the predicted V-I characteristics and the reference data.As shown in Figure 2 of the manuscript, the simulation results closely match the experimental data, with a maximum deviation of less than 2% across the entire operating range, confirming the model's accuracy.In the fuel cell system model, it is necessary to include the air compressor model, air cooler model, humidifier model, and gas transmission pipeline model.The gas transmission pipeline model represents the mass flow rate of gas transport and the pressure variations during the transmission process, which can be calculated using Equations (A1)-(A35).The auxiliary system models, including the air compressor, air cooler, and humidifier models, primarily serve to supply air with appropriate pressure and humidity to maintain the operation of the fuel cell, and their behavior can be determined using Equations (A37)-(A56).Additionally, the parameters used for modeling are provided in Table A1. PEMFC Thermal Management System Modeling The thermal management system of a PEMFC comprises components, including a water pump, radiator, water tank, stack, bypass valve, etc. [43].Its associated control framework diagram is illustrated in Figure 3. Subsequently, utilize principles of mole conservation, energy conservation, and empirical formulas to model these components.In the fuel cell system model, it is necessary to include the air compressor model, air cooler model, humidifier model, and gas transmission pipeline model.The gas transmission pipeline model represents the mass flow rate of gas transport and the pressure variations during the transmission process, which can be calculated using Equations (A1)-(A35).The auxiliary system models, including the air compressor, air cooler, and humidifier models, primarily serve to supply air with appropriate pressure and humidity to maintain the operation of the fuel cell, and their behavior can be determined using Equations (A37)-(A55).Additionally, the parameters used for modeling are provided in Table A1. PEMFC Thermal Management System Modeling The thermal management system of a PEMFC comprises components, including a water pump, radiator, water tank, stack, bypass valve, etc. [43].Its associated control framework diagram is illustrated in Figure 3. Subsequently, utilize principles of mole conservation, energy conservation, and empirical formulas to model these components. PEMFC Thermal Modeling The energy balance of a PEMFC is primarily maintained through several factors [44]: the total power of electrochemical reactions Q , the energy brought into the stack by the incoming gases Q , the energy carried away by the gases exiting the stack Q , the power consumed by the load P , the heat carried away by the circulating coolant Q , and the energy exchange between the PEMFC stack and the surrounding environment Q .This results in the variation of stack temperature T . PEMFC Thermal Modeling Q = (W , , C , + W , , C , + W , , C , +W , , C , + W , , C , + W , C , ) × (T − T ) (10) PEMFC Thermal Modeling In the above formula, C , represents the specific heat of air; C , represents the specific heat of oxygen; C , represents the specific heat of hydrogen; C , represents the specific heat of nitrogen; C , represents the specific heat of water vapor; C , represents the specific heat of liquid water; C , represents the specific heat of coolant; R represents the thermal equivalent of the fuel cell; and W is the coolant flow rate. Radiator Modeling The radiator controls the coolant temperature at the stack inlet by circulating coolant through forced-air convection from the cooling fan.The heat transfer to the environment depends on factors like the radiator's surface area, heat transfer coefficient, and ambient temperature [45], and its heat transfer rate is linearly related to airflow and temperature difference. Radiator Modeling where W represents the airflow rate of the radiator fan, and T , is the air temperature at the outlet of the radiator.The value represents the average temperature of the coolant at the inlet and outlet of the radiator. PEMFC Thermal Modeling The energy balance of a PEMFC is primarily maintained through several factors [44]: the total power of electrochemical reactions Q tot , the energy brought into the stack by the incoming gases Q in , the energy carried away by the gases exiting the stack Q out , the power consumed by the load P st , the heat carried away by the circulating coolant Q cl , and the energy exchange between the PEMFC stack and the surrounding environment Q amb .This results in the variation of stack temperature T st . PEMFC Thermal Modeling In the above formula, C p,air represents the specific heat of air; C p,O2 represents the specific heat of oxygen; C p,H2 represents the specific heat of hydrogen; C p,N2 represents the specific heat of nitrogen; C p,v represents the specific heat of water vapor; C p,l represents the specific heat of liquid water; C p,l1 represents the specific heat of coolant; R t represents the thermal equivalent of the fuel cell; and W cl is the coolant flow rate. Radiator Modeling The radiator controls the coolant temperature at the stack inlet by circulating coolant through forced-air convection from the cooling fan.The heat transfer to the environment depends on factors like the radiator's surface area, heat transfer coefficient, and ambient temperature [45], and its heat transfer rate is linearly related to airflow and temperature difference. Radiator Modeling Q rad = C p,air W fan (T out rad,air − T atm ) Radiator Modeling where W fan represents the airflow rate of the radiator fan, and T out rad,air is the air temperature at the outlet of the radiator.The value represents the average temperature of the coolant at the inlet and outlet of the radiator. Radiator Modeling The temperature of the coolant upon exiting the radiator is determined by the following formula. Radiator Modeling where T in rad = T st is the temperature of the coolant entering the radiator, and W rad is the flow rate of the coolant passing through the radiator. DDPG Algorithm Description A DDPG (deep deterministic policy gradient) is a reinforcement-learning algorithm based on the actor-critic structure, which is suitable for continuous control problems, while the thermal management of fuel cells involves the regulation of continuous variables such as temperature, which gives DDPG a significant advantage in this scenario.Compared with the DQN algorithm, the DDPG algorithm is well adapted to complex systems with continuous state spaces, while the DQN algorithm mainly targets discrete action spaces and is not suitable for fuel cell thermal management control.Compared with PPO and SAC, DDPG responds faster to dynamic changes in the environment and can make efficient decisions in complex thermal management systems.Meanwhile, the stability and sample efficiency of DDPG perform better in reinforcement-learning applications and can work with PID controllers to achieve accurate temperature control and reduce over-regulation and oscillation problems.Therefore, DDPG combined with PID can provide smoother, stable, and efficient thermal management strategies.This chapter is followed by a detailed description of the DDPG algorithm and the framework of the dual DDPG-PID-based thermal management control strategy. DDPG Algorithm Description The DDPG algorithm exhibits strong applicability in addressing the control problem of continuous action spaces in PEMFC systems [46].It amalgamates principles from both deep learning and deterministic policy into an actor-critic architecture.The actor network's primary role is to acquire a deterministic policy, mapping environmental states to appropriate actions.Given the environmental state as input, the actor network outputs the action to be executed.Throughout the training phase, the actor network endeavors to maximize the cumulative reward derived from the current policy.In contrast, the critic network's responsibility lies in estimating the value function, specifically the Q-value, for a given state-action pair.Utilizing the current environmental state and action as input, the critic network computes the corresponding Q-value, which represents the cumulative reward achievable from the subsequent state following action execution.Employing the Q-learning approach, the critic network iteratively refines its parameter values by minimizing the temporal difference (TD) error.This iterative refinement process enhances the Critic network's accuracy in estimating Q-values, consequently bolstering the DDPG algorithm's efficacy in navigating continuous action spaces. DDPG Algorithm Description The DDPG algorithm utilizes two distinct networks: the actor policy network and the critic value network, each consisting of both an online and a target network [47].The online actor network, denoted as µ θ , is responsible for generating actions directly, expressed as a t = ϑ(s t |θ ϑ ), Simultaneously, an online Critic network evaluates the Q-value, represented as Q = Q(s t , a t |θ q ).Subsequent to the action's interaction with the environment, the target critic network employs the action from the target actor network and the current state observation to compute the target output Q-value, thereby adjusting the value function Q ϕ (s, a).Here, θ ϑ and θ q denote the parameters of the online actor and online critic, respectively, while s t represents the agent's state at time t.During the update of the actor and critic network parameters, the process is initiated by randomly sampling a minibatch from the time series [s t , a t , r t , s t+1 ] stored in the experience pool R.This approach enhances algorithm stability and convergence speed, significantly reducing the variance of the Q value and facilitating the computation of the loss function L. The estimated optimal Q value and loss function are defined as: DDPG Algorithm Description where r k denotes the reward at a specific time step, and γ represents the discount factor within the range [0, 1].N indicates the count of state-action pairs randomly sampled from the experience replay buffer R. The primary objective of the optimal policy is to maximize the expected Q value.The actor network updates its parameters θ ϑ by utilizing the Q-value's derivative in the direction of maximum Q.The update process follows: DDPG Algorithm Description where ∇ a Q(s, a|θ q ) represents the gradient of the action-value function with respect to action a, indicating the direction for maximizing the Q-value.The expression ∇ θ ϑ ϑ(s|θ ϑ )| s k represents the gradient of the policy ϑ concerning the parameters θ, elucidating the method to adjust θ to maintain the efficacy of the control policy.Finally, to bolster learning stability, DDPG incorporates two sets of target networks: the target actor network and the target critic network [48].The parameter updates for the target networks are given by Formulas ( 18) and (19).And the pseudocode of the Dual DDPG PID algorithm will be given in Algorithm A1.The thermal management system of a PEMFC consists of three main modules, namely the water pump, radiator, and stack, which aim to maintain a stable operating temperature.Temperature regulation involves controlling the coolant flow via the pump and airflow through the radiator.The coolant cools the stack, while the radiator cools the coolant and maintains its inlet temperature.This paper proposes a dual DDPG-PID approach to improve PID controllers in handling strongly coupled systems.The FCTMS framework based on a dual DDPG-PID is shown in Figure 4, and the agent's output action structure is illustrated in Figure 5. DDPG Algorithm Description Hydrogen 2025, 6, x FOR PEER REVIEW 8 of 27 approach enhances algorithm stability and convergence speed, significantly reducing the variance of the Q value and facilitating the computation of the loss function L. The estimated optimal Q value and loss function are defined as: DDPG Algorithm Description where r denotes the reward at a specific time step, and γ represents the discount factor within the range [0, 1].N indicates the count of state-action pairs randomly sampled from the experience replay buffer R. The primary objective of the optimal policy is to maximize the expected Q value.The actor network updates its parameters θ by utilizing the Qvalue's derivative in the direction of maximum Q.The update process follows: DDPG Algorithm Description where ∇ Q(s, a|θ ) represents the gradient of the action-value function with respect to action a, indicating the direction for maximizing the Q-value.The expression ∇ ϑ(s|θ )| represents the gradient of the policy ϑ concerning the parameters θ, elucidating the method to adjust θ to maintain the efficacy of the control policy.Finally, to bolster learning stability, DDPG incorporates two sets of target networks: the target actor network and the target critic network [48].The parameter updates for the target networks are given by Formulas ( 18) and (19).And the pseudocode of the Dual DDPG PID algorithm will be given in Algorithm A1. Temperature Control Architecture for PEMFC Based on Dual DDPG-PID The thermal management system of a PEMFC consists of three main modules, namely the water pump, radiator, and stack, which aim to maintain a stable operating temperature.Temperature regulation involves controlling the coolant flow via the pump and airflow through the radiator.The coolant cools the stack, while the radiator cools the coolant and maintains its inlet temperature.This paper proposes a dual DDPG-PID approach to improve PID controllers in handling strongly coupled systems.The FCTMS framework based on a dual DDPG-PID is shown in Figure 4, and the agent's output action structure is illustrated in Figure 5. Details of the DDPG The agent in the DDPG algorithm primarily consists of the state space, reward function, and action space.The state space is designed to characterize the thermal state and cooling dynamics of the system, enabling the reinforcement-learning agent to optimally regulate the coolant and airflow rates.The reward function serves as a constraint for the agent, penalizing excessive training deviations while providing rewards when the training performance meets the expected criteria.The action space, representing the agent's output, corresponds to the gain parameters of the PID controller in the DDPG-PID controller.The following sections provide a detailed description of these three components. State The state space of the DDPG algorithm includes coolant flow rate, airflow through the radiator, stack temperature error and its derivative, and the coolant temperature difference error from inlet to outlet and its derivative.The state space expression of the fuel cell is as follows: State s = {e , e , e , e , W } State where e signifies the disparity between the fuel cell temperature and the targeted control temperature, while e captures the variation between the temperature differential of Details of the DDPG The agent in the DDPG algorithm primarily consists of the state space, reward function, and action space.The state space is designed to characterize the thermal state and cooling dynamics of the system, enabling the reinforcement-learning agent to optimally regulate the coolant and airflow rates.The reward function serves as a constraint for the agent, penalizing excessive training deviations while providing rewards when the training performance meets the expected criteria.The action space, representing the agent's output, corresponds to the gain parameters of the PID controller in the DDPG-PID controller.The following sections provide a detailed description of these three components. State The state space of the DDPG algorithm includes coolant flow rate, airflow through the radiator, stack temperature error and its derivative, and the coolant temperature difference error from inlet to outlet and its derivative.The state space expression of the fuel cell is as follows: State s = {e , e , e , e , W } State where e signifies the disparity between the fuel cell temperature and the targeted control temperature, while e captures the variation between the temperature differential of Details of the DDPG The agent in the DDPG algorithm primarily consists of the state space, reward function, and action space.The state space is designed to characterize the thermal state and cooling dynamics of the system, enabling the reinforcement-learning agent to optimally regulate the coolant and airflow rates.The reward function serves as a constraint for the agent, penalizing excessive training deviations while providing rewards when the training performance meets the expected criteria.The action space, representing the agent's output, corresponds to the gain parameters of the PID controller in the DDPG-PID controller.The following sections provide a detailed description of these three components. State The state space of the DDPG algorithm includes coolant flow rate, airflow through the radiator, stack temperature error and its derivative, and the coolant temperature difference error from inlet to outlet and its derivative.The state space expression of the fuel cell is as follows: State where e 1 signifies the disparity between the fuel cell temperature and the targeted control temperature, while e 2 captures the variation between the temperature differential of the cooling fluid upon entering and exiting the fuel cell and the target temperature differential, .e 1 and .e 2 are the derivatives of two errors over time. State Hydrogen 2025, 6, 20 10 of 27 Action In the DDPG algorithm, the output values of actions are constrained within a specified range and appropriately expanded.During training, the actor within the DDPG algorithm agent further fine-tunes the action parameters in the Simulink environment, restoring the action space.The expression is as follows: a 1 = (KP 1 /100, KI 1 /100, KD 1 /100) ( Action a 2 = (KP 2 , KI 2 /10, KD 2 /10) ( Action where KP 1/2 KI 1/2 KD 1/2 is the output of the DDPG algorithm agent within a certain range. Action The coefficient by which KP 1/2 KI 1/2 KD 1/2 is divided in the above expression varies because, in the DDPG algorithm, to maintain the action limits of both agent1 and agent2 within a two-digit range and avoid significant discrepancies in the numerical values of loss parameters during the iteration process, they are multiplied by different amplification gains.Lastly, there are differences in the coefficients by which the action parameters are divided when fine-tuning in the Simulink environment. Reward Function The agent continuously gains more rewards in the PEMFC system environment to approximate optimal temperature control and ideal temperature difference control.During the experimentation phase, the agent undergoes separate training sessions dedicated to controlling coolant flow and cooling airflow.During training, the agent's output serves as the input for the PID controller.The PID controller calculates the corresponding control input based on the current state and control error.The reward function for the agent during training is defined as follows: Reward Function where e 1 denotes the target temperature error of the stack (T st − 353K), and e 2 denotes the temperature difference error of the coolant in and out of the stack (T st − T st,in − 10).The first term in the above expression indicates that both errors are small, so the system performs very well.The reward function returns the larger positive value, indicating that the state is ideal.The second term indicates that the system's performance is problematic because e 1 is small and e 2 is large.Apply a penalty (negative value) to e 2 and reduce the reward.The third item, because e 1 is large and e 2 is small, also requires a penalty to be applied to e 1 .This component reduces the reward and indicates that the system is not performing well.The fourth term is due to the fact that, when both errors are large, the reward function gives a larger penalty and returns a negative value, indicating that the system is not performing as required.In the above reward function α 1 , α 2 , the weighting factors control the strength of the error penalty.The ξ 1 , ξ 2 error coefficients regulate how much the error affects the reward.The C 1 , C 2 , C 3 , C 4 constants are used to adjust the base value of the reward function.The c constant term can be used for offset or compensation.In this study, their values are shown in Table 1.Additionally, detailed training parameters for the DDPG are listed in Table A2. The Thermal Management Strategy Based on Dual DDPG-PID In this study, an integrated control method is based on a dual deep deterministic policy gradient to regulate the optimal operating temperature of PEMFC.This approach utilizes two reinforcement-learning agents to dynamically train the parameters of two PID controllers, one for the water pump side and the other for the radiator side.Additionally, this approach effectively addresses the challenges encountered by PID controllers when dealing with strongly coupled systems, thus enhancing control performance. The Thermal Management Strategy Based on Dual DDPG-PID In accordance with RL theory, an agent's learning process can be likened to an endeavor.It initiates an action, represented as a t , within the present environmental state s t .This action a t acts as the input for the PID controller.By utilizing the current state and control error, the PID controller computes the relevant control output and engages with the environment.Post-interaction, the environment transitions to a subsequent state s t+1 , while concurrently producing an immediate reward r t for the agent.By employing this reward r t and the current state s t+1 , the agent determines the subsequent action a t+1 .Leveraging its own experience and accumulated knowledge, the agent refines action planning to augment the PID controller's performance for improved adaptation to the environment. The Thermal Management Strategy Based on Dual DDPG-PID The temperature control objective for PEMFC in this study is a temperature difference of ∆T = 10 K (∆T = T st,out − T st,in ) between the coolant inlet and outlet of the stack, and the optimal operating temperature of the stack is T ref = 535 K (T st = T ref = T st,out ). Training and Simulation Results In this section, the hardware setup simulated comprises an Intel (R) Core (TM) i5-8250U CPU @ 1.80 GHz paired with an 8 GB RAM computer.The models described in Sections 2 and 3 of the paper, as well as the thermal management control model, are developed on the MATLAB 2021b/Simulink platform. Training and Simulation Results During training, the numerical values of actions output by the agent are determined based on the sizes of the three parameters, P, I, and D, adjusted in the PID controller within the Simulink environment.The exact adjustment rules are as follows.First, to ensure eventual stabilization of the response curve around the stack's target temperature of 353 K and a coolant inlet-outlet temperature difference of 10 K, and to mitigate the adverse effects of computational precision on the outcome and reduce the possibility of oscillations, the adjustment range of the PID parameters is restricted and appropriately expanded in the DDPG algorithm code.This allows the agent to search for the most suitable parameters within the largest possible numerical range, rather than determining parameters within a small range.Then, the rules for adjusting the numerical values of the proportional coefficient P, integral coefficient I, and derivative coefficient D are determined to maintain consistency with the normal parameter adjustment sequence.Finally, further fine-tuning of the action parameters is conducted in the Simulink environment to restore the action parameter space, ensuring the performance and stability of the controller in practical environments. Training and Simulation Results To avoid the DDPG from falling into a local optimum, the authors adopt a diverse exploration mechanism in the initial distribution design, which enables the initial action distribution to have high diversity by randomly initializing the weights of the strategy network, ensuring that the intelligent body can extensively explore the state space in the early training stage, effectively reducing the risk of the algorithm converging to the local optimum.In addition, Gaussian noise is introduced during the training process to enhance the exploration ability of the intelligent body, in order to dynamically adapt to the nonlinear and multivariate coupling characteristics of the PEMFC, and further improve the global search ability.In the DDPG-PID framework, the initial parameter setting of the PID controller is also crucial.According to the temperature control requirements and the temperature difference control requirements of the coolant in and out of the electric pile, the authors weight the PID parameter ranges according to the control requirements after initializing the PID parameters, which provides a stable starting point for further optimization of the DDPG, helps the system achieve smooth temperature control at an early stage, and avoids local optimum traps due to the instability of the initial strategy.In addition, the diverse historical experiences are saved and randomly extracted through the experience playback buffer, which reduces the learning bias caused by time correlation and enables the system to explore the state space more comprehensively, effectively reducing the possibility of falling into the local optimum. Analysis of Training Results of Dual DDPG-PID In this section, the DDPG employs average reward evaluation during the training iterations to assess training effectiveness.During training, priority is given to controlling the stack temperature, namely the coolant flow rate of the water pump, followed by the coolant temperature difference, i.e., the airflow through the radiator.The training outcomes for both the water pump and radiator for the dual DDPG approach are depicted in Figure 6. Analysis of Training Results of Dual DDPG-PID Hydrogen 2025, 6, x FOR PEER REVIEW the action parameters is conducted in the Simulink environment to restore the act rameter space, ensuring the performance and stability of the controller in practica ronments. Analysis of Training Results of Dual DDPG-PID To avoid the DDPG from falling into a local optimum, the authors adopt a d exploration mechanism in the initial distribution design, which enables the initial distribution to have high diversity by randomly initializing the weights of the s network, ensuring that the intelligent body can extensively explore the state space early training stage, effectively reducing the risk of the algorithm converging to th optimum.In addition, Gaussian noise is introduced during the training process hance the exploration ability of the intelligent body, in order to dynamically adap nonlinear and multivariate coupling characteristics of the PEMFC, and further im the global search ability.In the DDPG-PID framework, the initial parameter setting PID controller is also crucial.According to the temperature control requirements a temperature difference control requirements of the coolant in and out of the electr the authors weight the PID parameter ranges according to the control requiremen initializing the PID parameters, which provides a stable starting point for further o zation of the DDPG, helps the system achieve smooth temperature control at an stage, and avoids local optimum traps due to the instability of the initial strategy.dition, the diverse historical experiences are saved and randomly extracted throu experience playback buffer, which reduces the learning bias caused by time corr and enables the system to explore the state space more comprehensively, effectiv ducing the possibility of falling into the local optimum. Analysis of Training Results of Dual DDPG-PID In this section, the DDPG employs average reward evaluation during the tr iterations to assess training effectiveness.During training, priority is given to cont the stack temperature, namely the coolant flow rate of the water pump, followed coolant temperature difference, i.e., the airflow through the radiator.The trainin comes for both the water pump and radiator for the dual DDPG approach are depi Figure 6.The PID controller on the pump side regulates the fuel cell temperature throug ant flow modulation.Figure 6a illustrates the training process curve of the pum agent.Initially, the three parameters of the PID controller are randomly initialized.beginning of training, a notable deviation exists between the stack temperature a target control temperature, leading to escalated penalties throughout tr The PID controller on the pump side regulates the fuel cell temperature through coolant flow modulation.Figure 6a illustrates the training process curve of the pumpside agent.Initially, the three parameters of the PID controller are randomly initialized.At the beginning of training, a notable deviation exists between the stack temperature and the target control temperature, leading to escalated penalties throughout training.Consequently, the agent's average reward declines during episodes 1-35.Subsequently, as training progresses, the deviation between the stack temperature and the target control temperature diminishes, resulting in the accrual of a satisfactory number of rewards during training.Hence, convergence begins after 75 episodes and remains steady between episodes 75 and 350. Analysis of Training Results of Dual DDPG-PID The PID controller on the radiator side regulates the coolant temperature through airflow regulation.Figure 6b illustrates the training process curve of the radiator-side agent.As shown, the convergence of the agent begins after 55 episodes.This rapid convergence is attributed to the swift response of the radiator-side controller once the stack temperature stabilizes at the target control temperature.It promptly adjusts airflow to cool the coolant, thereby minimizing the disparity between the temperature differentials of the coolant inlet and outlet and the target temperature differential.Consequently, the radiator-side agent achieves faster convergence during the training process. Analysis of Training Results of Dual DDPG-PID As can be seen from Figure 7a,b, during the training process of the DDPG-PID algorithm, the fluctuation of the PID parameters in the early stage is due to the fact that the algorithm is in the exploratory stage and tries to find the optimal control strategy through different combinations of parameters.At this stage, the algorithm continuously adjusts the PID parameters to cope with the changes in the system, resulting in large fluctuations in the parameter values.With the depth of training, the algorithm gradually accumulates experience, is able to predict and adjust the parameters more accurately, and finally, converges to a stable value, indicating that the system has found the optimal control strategy and realized the stable control of the fuel cell temperature. Analysis of Training Results of Dual DDPG-PID Hydrogen 2025, 6, x FOR PEER REVIEW 13 of 27 Analysis of Training Results of Dual DDPG-PID Consequently, the agent's average reward declines during episodes 1-35.Subsequently, as training progresses, the deviation between the stack temperature and the target control temperature diminishes, resulting in the accrual of a satisfactory number of rewards during training.Hence, convergence begins after 75 episodes and remains steady between episodes 75 and 350. Analysis of Training Results of Dual DDPG-PID The PID controller on the radiator side regulates the coolant temperature through airflow regulation.Figure 6b illustrates the training process curve of the radiator-side agent.As shown, the convergence of the agent begins after 55 episodes.This rapid convergence is attributed to the swift response of the radiator-side controller once the stack temperature stabilizes at the target control temperature.It promptly adjusts airflow to cool the coolant, thereby minimizing the disparity between the temperature differentials of the coolant inlet and outlet and the target temperature differential.Consequently, the radiator-side agent achieves faster convergence during the training process. Analysis of Training Results of Dual DDPG-PID As can be seen from Figure 7a,b, during the training process of the DDPG-PID algorithm, the fluctuation of the PID parameters in the early stage is due to the fact that the algorithm is in the exploratory stage and tries to find the optimal control strategy through different combinations of parameters.At this stage, the algorithm continuously adjusts the PID parameters to cope with the changes in the system, resulting in large fluctuations in the parameter values.With the depth of training, the algorithm gradually accumulates experience, is able to predict and adjust the parameters more accurately, and finally, converges to a stable value, indicating that the system has found the optimal control strategy and realized the stable control of the fuel cell temperature.Table 2 shows the constraint ranges and convergence accuracies of PSO-PID and FUZZY-PID in the optimization process.Based on the previous experience, PSO-PID and FUZZY-PID are used for coolant flow control.In the tuning details of PSO-PID and FUZZY-PID, first, the parameter ranges of PID controllers are set.And their convergence accuracy is set to 0.001 for both of them.This setting is used to improve the temperature stability.However, temperature control in a fuel cell system involves multivariable coupled control of the coolant and airflows.PID and FUZZY-PID mainly target a single flow variable, which makes it difficult to cope with the complex coupling characteristics of multivariable in the system and increases the difficulty of temperature control.Table 2 shows the constraint ranges and convergence accuracies of PSO-PID and FUZZY-PID in the optimization process.Based on the previous experience, PSO-PID and FUZZY-PID are used for coolant flow control.In the tuning details of PSO-PID and FUZZY-PID, first, the parameter ranges of PID controllers are set.And their convergence accuracy is set to 0.001 for both of them.This setting is used to improve the temperature stability.However, temperature control in a fuel cell system involves multivariable coupled control of the coolant and airflows.PID and FUZZY-PID mainly target a single flow variable, which makes it difficult to cope with the complex coupling characteristics of multivariable in the system and increases the difficulty of temperature control.To assess the effectiveness of the proposed control strategy, this study employs continuous step changes in load current for validation.The duration of each load current action is set to 1200 s, during which the load current undergoes abrupt variations every 200 s.Specifically, at 200 s, 400 s, and 600 s, the load current progressively increases from 60 A to 180 A, while at 800 s and 1000 s, it decreases from 180 A to 150 A. The step changes in load current are illustrated in Figure 8.To assess the effectiveness of the proposed control strategy, this study employ tinuous step changes in load current for validation.The duration of each load curr tion is set to 1200 s, during which the load current undergoes abrupt variations eve s.Specifically, at 200 s, 400 s, and 600 s, the load current progressively increases f A to 180 A, while at 800 s and 1000 s, it decreases from 180 A to 150 A. The step c in load current are illustrated in Figure 8. Figure 9 demonstrates the step current temperature variation curves of the fuel cell stack under different control strategies.From Figure 9, it can be seen that the D-DDPG PID control strategy exhibits a significant steady-state control advantage in fuel cell temperature control, which can more effectively maintain the temperature around 353 K and has a lower steady-state error when compared with other control strategies.This indicates that the D-DDPG PID has a significant advantage in maintaining temperature stability and can better meet the requirements of fuel cell systems for temperature control accuracy.In addition, through the zoom-in analysis of the local response (at 200 s, 400 s, and 800 s), it can be observed that the D-DDPG PID possesses faster response speed and shorter regulation time during temperature fluctuation, and its temperature profile returns to the set value quickly when compared with the traditional PID, PSO-PID, and FUZZY-PID, which effectively reduces unnecessary temperature fluctuation.This makes D-DDPG PID more suitable for real-time temperature control under complex working conditions.The D-DDPG PID is also excellent in overshoot control and robustness.the D-DDPG PID has almost no significant overshoot, while the conventional PID and PSO-PID have a larger overshoot, which may adversely affect the lifetime and performance of the fuel cell.In addition, the control curve of the D-DDPG PID is very stable in all fluctuation intervals and can adapt to different perturbations quickly, which reflects stronger robustness.In contrast, the traditional PID and FUZZY-PID have poor adaptability due to hysteresis and oscillation under large perturbations, while the D-DDPG PID improves the adaptability to uncertain working conditions through the adaptive mechanism of deep reinforcement learning and realizes high-precision and high-stability temperature control. Analysis of Training Results of Dual DDPG-PID Table 3 shows the control data of different control strategies at different time periods.From the data in the table, it can be seen that the D-DDPG PID outperforms the other control strategies in all performance indicators.In terms of the average absolute control error, the error of D-DDPG PID in the interval of 0-200 s is 0.016 K, which is about 75.4%, 66%, and 51.5% lower than that of the traditional PID (0.065 K), FUZZY-PID (0.047 K), and PSO-PID (0.033 K), respectively.In the intervals of 400-600 s and 800-1000 s, their absolute errors are reduced by 79.5%, 76.3%, 64%, 80.9%, 80%, and 69.2%, respectively.The absolute maximum overshoots of the D-DDPG PID are 0.31 K, 0.26 K, and 0.13 K, respectively, in the three intervals, in comparison with the PSO-PID's overshoots of 0.64 K, 0.51 K, and 0.25 K in the same intervals.The overshooting amplitude is reduced by about 49.5% on average, showing stronger overshooting suppression ability.In addition, in terms of the average tuning time, the D-DDPG PID was 33 s, 29 s, and 19 s in the intervals of 0-200 s, 400-600 s, and 800-1000 s, respectively, which were about 24.2%, 25.6%, and 13.6% shorter compared with the 41 s, 39 s, and 22 s of the PSO-PID.These data further indicate that the D-DDPG PID significantly outperforms the conventional control algorithms in terms of temperature control stability and dynamic response speed and has stronger robustness and adaptability, especially under complex operating conditions.The D-DDPG PID is also excellent in overshoot control and robustness.the D-DDPG PID has almost no significant overshoot, while the conventional PID and PSO-PID have a larger overshoot, which may adversely affect the lifetime and performance of the fuel cell.In addition, the control curve of the D-DDPG PID is very stable in all fluctuation intervals and can adapt to different perturbations quickly, which reflects stronger robustness.In contrast, the traditional PID and FUZZY-PID have poor adaptability due to hysteresis and oscillation under large perturbations, while the D-DDPG PID improves the adaptability to uncertain working conditions through the adaptive mechanism of deep reinforcement learning and realizes high-precision and high-stability temperature control. Analysis of Training Results of Dual DDPG-PID Table 3 shows the control data of different control strategies at different time periods.From the data in the table, it can be seen that the D-DDPG PID outperforms the other control strategies in all performance indicators.In terms of the average absolute control error, the error of D-DDPG PID in the interval of 0-200 s is 0.016 K, which is about 75.4%, 66%, and 51.5% lower than that of the traditional PID (0.065 K), FUZZY-PID (0.047 K), and PSO-PID (0.033 K), respectively.In the intervals of 400-600 s and 800-1000 s, their absolute errors are reduced by 79.5%, 76.3%, 64%, 80.9%, 80%, and 69.2%, respectively.The absolute maximum overshoots of the D-DDPG PID are 0.31 K, 0.26 K, and 0.13 K, respectively, in the three intervals, in comparison with the PSO-PID's overshoots of 0.64 K, 0.51 K, and 0.25 K in the same intervals.The overshooting amplitude is reduced by about 49.5% on average, showing stronger overshooting suppression ability.In addition, in terms of the average tuning time, the D-DDPG PID was 33 s, 29 s, and 19 s in the intervals of 0-200 s, 400-600 s, and 800-1000 s, respectively, which were about 24.2%, 25.6%, and 13.6% shorter compared with the 41 s, 39 s, and 22 s of the PSO-PID.These data further indicate that the D-DDPG PID significantly outperforms the conventional control algorithms in terms of temperature control stability and dynamic response speed and has stronger robustness and adaptability, especially under complex operating conditions.Figure 10 presents the simulation results of the coolant flow rates under different control strategies.As observed from the figure, at 200 s, 400 s, and 800 s, when the load increases, the operating temperature of the fuel cell rises accordingly.To achieve temperature regulation, the D-DDPG-PID control strategy responds rapidly to system variations, increasing the coolant flow rate required for effective cooling and maintaining stability.Furthermore, at 800 s and 1000 s, as the load decreases, the heat generation of the stack is reduced, leading to a lower coolant demand.Under the regulation of the dual DDPG-PID controller, the coolant flow rate is dynamically adjusted based on system requirements, preventing excessive cooling and enhancing overall system efficiency.In contrast, the compared control algorithms in this study, while also capable of adjusting the coolant flow rate in response to system variations, exhibit a slower response, noticeable overshoot, and oscillations, leading to inferior control stability compared to the D-DDPG-PID control strategy. Analysis of Training Results of Dual DDPG-PID Hydrogen 2025, 6, x FOR PEER REVIEW 1 consumption of the cooling system, thereby improving the overall energy efficiency system.Figure 11 presents the simulation results of airflow regulation during the temperature control process of the fuel cell.In the thermal management system of the fuel cell, the adjustment of radiator airflow is primarily aimed at reducing the temperature of the coolant entering the stack, ensuring that the fuel cell operates within its optimal temperature range.When the load increases at 200 s, 400 s, and 800 s, the operating temperature of the fuel cell rises, leading to an increase in both the temperature and flow rate of the coolant exiting the stack.Consequently, the radiator airflow needs to be increased to cool the coolant and enhance its heat dissipation capacity.To achieve the temperature regulation objective, the radiator airflow must be appropriately increased under load increments to meet the cooling demand.From the simulation results, it can be observed that the D-DDPG-PID control algorithm can rapidly respond to changes in the coolant flow rate and effectively regulate the radiator airflow, thereby stabilizing the inlet temperature of the coolant entering the stack.In contrast, at 800 s and 1000 s, when the load decreases, the heat generation of the fuel cell is reduced, leading to a lower cooling demand.Accordingly, the radiator airflow must be decreased to prevent excessive cooling of the coolant, which could otherwise cause temperature non-uniformity within the fuel cell stack.Furthermore, compared to other control algorithms, the D-DDPG-PID algorithm effectively suppresses hysteresis, overshoot, and oscillations in the coolant flow rate adjustment process, resulting in smoother regulation of radiator airflow and improved overall control performance.Combined with the simulation results of coolant flow regulation, this control algorithm demonstrates superior stability in the coordinated control of coolant and airflow, enhancing the cooling efficiency of the fuel cell stack while reducing the energy consumption of the cooling system, thereby improving the overall energy efficiency of the system. Analysis of Training Results of Dual DDPG-PID Hydrogen 2025, 6, x FOR PEER REVIEW 17 consumption of the cooling system, thereby improving the overall energy efficiency o system. Conclusions In this paper, a dual DDPG-PID control strategy is used to enhance the thermal m agement performance of PEMFCs.The strategy addresses the inherent delay of conv tional PID controllers by dynamically matching the temperature and flow rate variat in real time.Simulation results show that the D-DDPG PID significantly reduces tem ature overshoot by approximately 75.4%, 66%, and 51.5% compared to conventional P FUZZY-PID, and PSO-PID, respectively, in the 0-200 s time interval.Additionally, average tuning time of D-DDPG PID is shortened by 24.2%, 25.6%, and 13.6% compa to PSO-PID in the corresponding time intervals.This strategy effectively alleviates c lenges such as multivariable coupling and control delays in PEMFC thermal managem By optimizing the PID parameters through reinforcement learning, it reduces tempera oscillations and minimizes parasitic losses.Although the study is based on simulati the results provide a solid foundation for future industrial applications, with the poten for broader implementation in other PEMFC subsystems and fuel cell types. Conclusions In this paper, a dual DDPG-PID control strategy is used to enhance the thermal management performance of PEMFCs.The strategy addresses the inherent delay of conventional PID controllers by dynamically matching the temperature and flow rate variations in real time.Simulation results show that the D-DDPG PID significantly reduces temperature overshoot by approximately 75.4%, 66%, and 51.5% compared to conventional PID, FUZZY-PID, and PSO-PID, respectively, in the 0-200 s time interval.Additionally, the average tuning time of D-DDPG PID is shortened by 24.2%, 25.6%, and 13.6% compared to PSO-PID in the corresponding time intervals.This strategy effectively alleviates challenges such as multivariable coupling and control delays in PEMFC thermal management.By optimizing the PID parameters through reinforcement learning, it reduces temperature oscillations and minimizes parasitic losses.Although the study is based on simulations, the results provide a solid foundation for future industrial applications, with the potential for broader implementation in other PEMFC subsystems and fuel cell types. Figure 1 . Figure 1.System architecture diagram of PEMFC. Figure 1 . Figure 1.System architecture diagram of PEMFC. Hydrogen 2025, 6 , x FOR PEER REVIEW 5 of 27 Figure 2 . Figure 2. Comparison of the simulated data with the reference data [42]. Figure 2 . Figure 2. Comparison of the simulated data with the reference data [42]. Figure 3 . Figure 3.Control framework of the PEMFC thermal management system. Figure 3 . Figure 3.Control framework of the PEMFC thermal management system. 3. 2 . Temperature Control Architecture for PEMFC Based on Dual DDPG-PID Figure 4 . 27 Figure 4 . Figure 4. Cont. Figure 5 . Figure 5. Framework diagram of intelligent agent outputs. Figure 4 . 27 Figure 4 . Figure 4. Structural framework diagram of the dual DDPG algorithm. Figure 5 . Figure 5. Framework diagram of intelligent agent outputs. Figure 5 . Figure 5. Framework diagram of intelligent agent outputs. Figure 6 . Figure 6.(a) The training process curve of the water pump side agent in dual DDPG, (b) the t process curve of the radiator side agent in dual DDPG. Figure 6 . Figure 6.(a) The training process curve of the water pump side agent in dual DDPG, (b) the training process curve of the radiator side agent in dual DDPG. Figure 7 . Figure 7. (a) Pump-side PlD parameter training results, (b) radiator-side PID parameter training results. Figure 7 . Figure 7. (a) Pump-side PlD parameter training results, (b) radiator-side PID parameter training results. Hydrogen 2025, 6 , x FOR PEER REVIEW Figure 8 . Figure 8. Continuous step load current curve. Figure 9 Figure9demonstrates the step current temperature variation curves of the fu stack under different control strategies.From Figure9, it can be seen that the D-PID control strategy exhibits a significant steady-state control advantage in fuel ce perature control, which can more effectively maintain the temperature around 353 has a lower steady-state error when compared with other control strategies.This in that the D-DDPG PID has a significant advantage in maintaining temperature s and can better meet the requirements of fuel cell systems for temperature control acc In addition, through the zoom-in analysis of the local response (at 200 s, 400 s, and it can be observed that the D-DDPG PID possesses faster response speed and short ulation time during temperature fluctuation, and its temperature profile returns to value quickly when compared with the traditional PID, PSO-PID, and FUZZY-PID, effectively reduces unnecessary temperature fluctuation.This makes D-DDPG PID suitable for real-time temperature control under complex working conditions. Figure 8 . Figure 8. Continuous step load current curve. Figure 9 . Figure 9. Temperature variation curves of the stack under different control strategies. Figure 9 . Figure 9. Temperature variation curves of the stack under different control strategies. Figure 10 . Figure 10.Water pump coolant flow curve.Figure 10.Water pump coolant flow curve. Figure 10 . Figure 10.Water pump coolant flow curve. Figure 11 . Figure 11.Radiator airflow curve. Figure 12 shows Figure 12 shows the simulation result graph of the coolant temperature differen the fuel cell.From the result plots, the D-DDPG PID is able to accurately and stably m tain around 10 K near the temperature difference setpoint, while the other control st gies show large fluctuations and oscillations during the temperature difference chan From the local zoomed-in graphs, the D-DDPG PID shows a faster response speed smaller overshooting in the temperature difference fluctuation region around 0 s, 400 800 s.In comparison, the traditional PID, PSO-PID, and FUZZY-PID methods have la overshoots and longer tuning times in the temperature difference response process, e cially as the PSO-PID and FUZZY-PID oscillate in multiple fluctuation intervals. Figure 11 . Figure 11.Radiator airflow curve. Figure 12 Figure 12 shows the simulation result graph of the coolant temperature difference of the fuel cell.From the result plots, the D-DDPG PID is able to accurately and stably maintain around 10 K near the temperature difference setpoint, while the other control strategies show large fluctuations and oscillations during the temperature difference changes.From the local zoomed-in graphs, the D-DDPG PID shows a faster response speed and smaller overshooting in the temperature difference fluctuation region around 0 s, 400 s, or 800 s.In comparison, the traditional PID, PSO-PID, and FUZZY-PID methods have larger overshoots and longer tuning times in the temperature difference response process, especially as the PSO-PID and FUZZY-PID oscillate in multiple fluctuation intervals.The ability of the D-DDPG PID to quickly and Figure 12 . Figure 12.Temperature difference curve of coolant outflow and inflow to the stack. Author Contributions: Methodology, Z.Z.; Software, Z.Z. and D.X.; Validation, Z.Z. and Y.S.; mal analysis, Z.L.; Investigation, Y.S.; Data curation, K.O.; Writing-original draft, Z.Z.; Writin review & editing, Z.Z.; Supervision, D.X.; Project administration, K.O. and D.X.; Funding acq tion, D.X.All authors have read and agreed to the published version of the manuscript.Funding: This research was funded by [Major Science and Technology Projects of Wenzhou, Ch grant number [ZG2022024] and [Science and Technology Major Project of Fujian Province of Ch grant number [2022HZ028024] Figure 12 . Figure 12.Temperature difference curve of coolant outflow and inflow to the stack. Table 1 . Reward function parameters. Table 2 . PSO-ID and FUZZY-PID parameter setting details.Temperature Regulation in Response to Continuous Variations in Load Current Table 2 . PSO-ID and FUZZY-PID parameter setting details. Table 3 . Comparison of control data.

섹션 본문 118문단 · 64,637자

(제목 없음)

1The operational performance of proton exchange membrane fuel cells (PEMFC) is highly influenced by temperature, making effective thermal management essential.However, the multivariate coupling between pumps and radiators presents significant control challenges.To address this issue, a dual DDPG-PID control strategy is proposed, integrating temperature and flow rate variations to enhance system stability and response.Simulation results demonstrate that the proposed method significantly reduces temperature control errors and improves response time compared to conventional PID-based strategies.Specifically, the D-DDPG PID achieves a temperature error reduction of up to 75.4% and shortens the average tuning time by up to 25.6% compared to PSO-PID.Furthermore, the strategy optimizes cooling system performance, demonstrating its effectiveness in PEMFC thermal management.

Introduction

2In recent years, with the gradual reduction of global dependence on coal, oil, and natural gas, and in response to the environmental pollution caused by the use of fossil fuels, there has been increasing attention on exploring new alternative energy sources [1][2][3].Among these, proton exchange membrane fuel cells (PEMFCs) have garnered significant attention due to their numerous advantages, such as low emissions, high efficiency, low operating temperature, rapid start-up capability, and long lifespan [4][5][6].As an efficient and environmentally friendly energy conversion technology, PEMFC is based on electrochemical principles, and the proton directional migration is achieved through the anodic oxidation of hydrogen and cathodic reduction of oxygen in the membrane electrode module, which ultimately generates clean water and releases electrical energy [7,8].However, during the electrochemical reaction process, fuel cells generate not only electrical energy but also heat, which leads to an increase in the operating temperature of the PEMFC [9,10].While a higher temperature can enhance reaction kinetics and conductivity, thereby improving fuel cell efficiency, excessive temperatures may result in the dehydration and degradation of the proton exchange membrane, ultimately compromising the long-term stability and lifespan of the fuel cell [11][12][13].Therefore, the development of efficient thermal management control strategies for PEMFC systems has garnered significant attention from the academic community, leading to extensive research by scholars in this field.To address the impact of temperature on fuel cell performance, many researchers have conducted studies on thermal management control strategies for fuel cells, aiming to improve system stability, enhance response speed, and optimize energy consumption.For instance, Zhao et al. [14] developed a thermal management system model and analyzed the impact of temperature on PEMFC performance.Yu et al. [15] proposed controlling the stack temperature by adjusting the coolant flow rate, while considering the parasitic power of the cooling system.Liu et al. [16] introduced a power control strategy to address the strong nonlinearity of PEMFC systems, achieving performance improvements over traditional PID (proportion-integration-differentiation) control.Li et al. [17] developed a multivariable coordinated controller to resolve the coupling issue between the pump and the radiator, thereby enhancing control accuracy.Yin et al. [18] designed a maximum efficiency control strategy (MECS) based on temperature variations in the PEMFC, which outperforms traditional PID methods in temperaturetracking performance.Zhao et al. [19] applied a diploid genetic algorithm to optimize the temperature control of the membrane electrode assembly (MEA).Cheng et al. [20] combined nonlinear feedforward control with a linear quadratic regulator (LQR) to enhance the control performance of the fuel cell's cooling system.Jia Y. et al. [21] proposed a variable fuzzy PID controller that adjusts control accuracy through the proportional factor.Yu et al. [22] integrated a PID controller with a thermal circuit to reduce parasitic power loss and alleviate the temperature rise in the catalyst layer.Zhi et al. [23] introduced a piecewise predictive feedback control method based on PID to address the limitations of traditional PID control.Ou et al. [24] implemented a feedforward fuzzy PID controller for compressor temperature control, effectively reducing parasitic power loss.Hasheminejad et al. [25] proposed a fuzzy control strategy that ensures optimal operation conditions for PEMFCs by modeling the coolant loop.Mousakazemi et al. [26] optimized fuzzy controller parameters using a genetic algorithm, significantly improving overall control performance.Wang et al. [27] developed a fuzzy rule-based controller for PEMFC system temperature control by adjusting the fan speed.Tan et al. [28] applied particle swarm optimization (PSO) to optimize the operating temperature of the fuel stack.Yan et al. [29] introduced a fault-tolerant control method for sensor fault detection, ensuring that the PEMFC temperature remains near the reference value, even during sensor faults.Ahmadi S et al. [30] applied PSO to optimize PID control, achieving significant control performance improvements.Li et al. [31] used a BP neural network-based PID controller to regulate PEMFC system temperature, demonstrating good robustness and practical application effectiveness.

3Despite the valuable contributions of these studies, there are still some limitations in their control strategies.Most of the control methods (e.g., PID and fuzzy logic controllers) are based on predefined models and cannot dynamically adapt to the complex nonlinear behavior of PEMFC systems.These methods struggle to provide stability and optimal performance in the face of the high multivariate coupling and system delays inherent to PEMFCs.As a result, temperature overshoots and slow response times often occur, thus affecting the overall efficiency and stability of the system.For example, while fuzzy logic and PID controllers can improve stability to some extent, their performance is still limited by having too many parameters and the need for extensive tuning under different operating conditions.These challenges are further exacerbated by the complex nonlinear dynamics of PEMFCs, which lead to difficulties in model matching, as well as substantial delays in the control process.

4In the past few years, with the rapid development of intelligent technology, algorithms based on deep reinforcement learning (DRL) have gradually been widely used in the field of new energy, such as the deep Q-network (DQN) [32], deep deterministic policy gradi-ent (DDPG) [33], twin delayed deep deterministic policy gradient (TD3) [34], and other advanced algorithms.These algorithms do not rely on precise mathematical models and can continuously learn and optimize control strategies through interaction with the environment, exhibiting strong adaptability, especially in complex and dynamically changing systems.Currently, deep reinforcement-learning algorithms have been widely applied to energy management in fuel cell hybrid electric vehicle systems [35].In this context, Huang et al. [36] proposed an energy management solution for fuel cell hybrid systems based on dual deep deterministic policy gradient (Dual DDPG), where in pure electric mode, DDPG optimizes the power distribution between the battery and the supercapacitor, reducing the battery's depth of discharge.In extended-range mode, DDPG coordinates the output of the fuel cell, battery, and super-capacitor, improving fuel cell efficiency by 0.94% and significantly reducing power fluctuations.Although deep reinforcement learning has achieved promising results in many fields, research on reinforcement-learning algorithms in fuel cell system control, especially in thermal management control, is still limited, and relevant literature is scarce.

5Inspired by the energy management of fuel cell hybrid vehicles based on dual DDPG, and in order to overcome the limitations of traditional control algorithms, the author innovatively introduced reinforcement-learning algorithms into fuel cell thermal management.A dual DDPG-PID control strategy was proposed to address the nonlinear and multivariable coupling characteristics of the fuel cell thermal management system.As an advanced adaptive method for PEMFC temperature regulation, this hybrid strategy combines the DDPG algorithm with a PID controller, allowing for dynamic adjustment of the control strategy based on real-time system feedback.Unlike traditional methods, the DDPG algorithm can learn and continuously improve the control strategy in real time according to the state of the fuel cell system, achieving precise optimization of the PID controller parameters.This effectively solves the latency issue commonly encountered in traditional controllers.Therefore, this hybrid control strategy provides a novel approach to thermal management control for fuel cells.

6This paper is organized as follows.In Section 2, the level model of the fuel cell system will be developed; in Section 3, the framework of the proposed Dual DDPG control strategy will be discussed.In Section 4, the simulation will be validated under continuous steploading conditions, and the results will be described and analyzed in detail.Finally, the full paper will be summarized and conclusions will be given in Section 5.

PEMFC System Model

7The schematic representation of the PEMFC system is illustrated in Figure 1.This system comprises two main subsystems for the fuel supply: the air supply system and the hydrogen supply system.The air supply system facilitates the transport of air to the cathode side, while the hydrogen supply system directs hydrogen from a high-pressure cylinder to the anode side through a pressure valve.Additionally, a thermal management system is integrated to ensure effective cooling of the fuel cell during operation.

Fuel Cell Modeling

8The voltage of a fuel cell is influenced by thermodynamic and electrochemical losses.The actual output voltage can be expressed as:

9where E denotes the Nernst electromotive force, V denotes the voltage loss due to activation polarization, V denotes the voltage drop due to ohmic loss, and V denotes the voltage loss due to concentration polarization.

10The calculation of Nernst electromotive force is as follows [37]:

11where T is the ambient temperature, T is the fuel cell temperature, P and P are the pressures of hydrogen and oxygen entering the stack, respectively, and F is the Faraday constant.Activation polarization is the voltage loss occurring during the electrochemical reaction in a fuel cell due to the limitation of the electrode reaction rate, primarily caused by the kinetic lag of the electrode catalysis reaction [38,39].The empirical formula for calculating activation polarization is as follows:

12The Ohmic polarization is the potential loss in a fuel cell caused by the resistance of the electrolyte and the electrode materials [40].Its empirical calculation formula is:

13where t is the membrane thickness, and σ is a function of the membrane's water content and the fuel cell temperature.Concentration polarization is the potential loss in a fuel cell caused by the rapid consumption of reactants at the electrode surface, leading to a decrease in the concentration of reactants at the electrode surface [41].The empirical formula for calculating the concentration polarization is as follows:

14The voltage of a fuel cell is influenced by thermodynamic and electrochemical losses.The actual output voltage can be expressed as:

15where E denotes the Nernst electromotive force, V act denotes the voltage loss due to activation polarization, V ohm denotes the voltage drop due to ohmic loss, and V conc denotes the voltage loss due to concentration polarization.The calculation of Nernst electromotive force is as follows [37]:

16where T 0 is the ambient temperature, T fc is the fuel cell temperature, P H 2 and P O 2 are the pressures of hydrogen and oxygen entering the stack, respectively, and F is the Faraday constant.Activation polarization is the voltage loss occurring during the electrochemical reaction in a fuel cell due to the limitation of the electrode reaction rate, primarily caused by the kinetic lag of the electrode catalysis reaction [38,39].The empirical formula for calculating activation polarization is as follows:

17The Ohmic polarization is the potential loss in a fuel cell caused by the resistance of the electrolyte and the electrode materials [40].Its empirical calculation formula is:

18where t m is the membrane thickness, and σ m is a function of the membrane's water content and the fuel cell temperature.Concentration polarization is the potential loss in a fuel cell caused by the rapid consumption of reactants at the electrode surface, leading to a decrease in the concentra-tion of reactants at the electrode surface [41].The empirical formula for calculating the concentration polarization is as follows:

19To validate the accuracy of the developed model, a simulation was conducted based on the experimental conditions reported in Reference [42], where the chimney temperature was set to 80 • C and the inlet pressures of both the cathode and anode were set to 2 bar.The simulated results were then fitted to the experimental data from the literature to analyze the consistency between the predicted V-I characteristics and the reference data.As shown in Figure 2 of the manuscript, the simulation results closely match the experimental data, with a maximum deviation of less than 2% across the entire operating range, confirming the model's accuracy.To validate the accuracy of the developed model, a simulation was conducted based on the experimental conditions reported in Reference [42], where the chimney temperature was set to 80 °C and the inlet pressures of both the cathode and anode were set to 2 bar.The simulated results were then fitted to the experimental data from the literature to analyze the consistency between the predicted V-I characteristics and the reference data.As shown in Figure 2 of the manuscript, the simulation results closely match the experimental data, with a maximum deviation of less than 2% across the entire operating range, confirming the model's accuracy.In the fuel cell system model, it is necessary to include the air compressor model, air cooler model, humidifier model, and gas transmission pipeline model.The gas transmission pipeline model represents the mass flow rate of gas transport and the pressure variations during the transmission process, which can be calculated using Equations (A1)-(A35).The auxiliary system models, including the air compressor, air cooler, and humidifier models, primarily serve to supply air with appropriate pressure and humidity to maintain the operation of the fuel cell, and their behavior can be determined using Equations (A37)-(A56).Additionally, the parameters used for modeling are provided in Table A1.

PEMFC Thermal Management System Modeling

20The thermal management system of a PEMFC comprises components, including a water pump, radiator, water tank, stack, bypass valve, etc. [43].Its associated control framework diagram is illustrated in Figure 3. Subsequently, utilize principles of mole conservation, energy conservation, and empirical formulas to model these components.In the fuel cell system model, it is necessary to include the air compressor model, air cooler model, humidifier model, and gas transmission pipeline model.The gas transmission pipeline model represents the mass flow rate of gas transport and the pressure variations during the transmission process, which can be calculated using Equations (A1)-(A35).The auxiliary system models, including the air compressor, air cooler, and humidifier models, primarily serve to supply air with appropriate pressure and humidity to maintain the operation of the fuel cell, and their behavior can be determined using Equations (A37)-(A55).Additionally, the parameters used for modeling are provided in Table A1.

21The thermal management system of a PEMFC comprises components, including a water pump, radiator, water tank, stack, bypass valve, etc. [43].Its associated control framework diagram is illustrated in Figure 3. Subsequently, utilize principles of mole conservation, energy conservation, and empirical formulas to model these components.

PEMFC Thermal Modeling

22The energy balance of a PEMFC is primarily maintained through several factors [44]: the total power of electrochemical reactions Q , the energy brought into the stack by the incoming gases Q , the energy carried away by the gases exiting the stack Q , the power consumed by the load P , the heat carried away by the circulating coolant Q , and the energy exchange between the PEMFC stack and the surrounding environment Q .This results in the variation of stack temperature T .

23Q = (W , , C , + W , , C , + W , , C , +W , , C , + W , , C , + W , C , ) × (T − T ) (10)

24In the above formula, C , represents the specific heat of air; C , represents the specific heat of oxygen; C , represents the specific heat of hydrogen; C , represents the specific heat of nitrogen; C , represents the specific heat of water vapor; C , represents the specific heat of liquid water; C , represents the specific heat of coolant; R represents the thermal equivalent of the fuel cell; and W is the coolant flow rate.

Radiator Modeling

25The radiator controls the coolant temperature at the stack inlet by circulating coolant through forced-air convection from the cooling fan.The heat transfer to the environment depends on factors like the radiator's surface area, heat transfer coefficient, and ambient temperature [45], and its heat transfer rate is linearly related to airflow and temperature difference.

26where W represents the airflow rate of the radiator fan, and T , is the air temperature at the outlet of the radiator.The value represents the average temperature of the coolant at the inlet and outlet of the radiator.

PEMFC Thermal Modeling

27The energy balance of a PEMFC is primarily maintained through several factors [44]: the total power of electrochemical reactions Q tot , the energy brought into the stack by the incoming gases Q in , the energy carried away by the gases exiting the stack Q out , the power consumed by the load P st , the heat carried away by the circulating coolant Q cl , and the energy exchange between the PEMFC stack and the surrounding environment Q amb .This results in the variation of stack temperature T st .

28In the above formula, C p,air represents the specific heat of air; C p,O2 represents the specific heat of oxygen; C p,H2 represents the specific heat of hydrogen; C p,N2 represents the specific heat of nitrogen; C p,v represents the specific heat of water vapor; C p,l represents the specific heat of liquid water; C p,l1 represents the specific heat of coolant; R t represents the thermal equivalent of the fuel cell; and W cl is the coolant flow rate.

Radiator Modeling

29The radiator controls the coolant temperature at the stack inlet by circulating coolant through forced-air convection from the cooling fan.The heat transfer to the environment depends on factors like the radiator's surface area, heat transfer coefficient, and ambient temperature [45], and its heat transfer rate is linearly related to airflow and temperature difference.

30Q rad = C p,air W fan (T out rad,air − T atm )

31where W fan represents the airflow rate of the radiator fan, and T out rad,air is the air temperature at the outlet of the radiator.The value represents the average temperature of the coolant at the inlet and outlet of the radiator.

32The temperature of the coolant upon exiting the radiator is determined by the following formula.

33where T in rad = T st is the temperature of the coolant entering the radiator, and W rad is the flow rate of the coolant passing through the radiator.

DDPG Algorithm Description

34A DDPG (deep deterministic policy gradient) is a reinforcement-learning algorithm based on the actor-critic structure, which is suitable for continuous control problems, while the thermal management of fuel cells involves the regulation of continuous variables such as temperature, which gives DDPG a significant advantage in this scenario.Compared with the DQN algorithm, the DDPG algorithm is well adapted to complex systems with continuous state spaces, while the DQN algorithm mainly targets discrete action spaces and is not suitable for fuel cell thermal management control.Compared with PPO and SAC, DDPG responds faster to dynamic changes in the environment and can make efficient decisions in complex thermal management systems.Meanwhile, the stability and sample efficiency of DDPG perform better in reinforcement-learning applications and can work with PID controllers to achieve accurate temperature control and reduce over-regulation and oscillation problems.Therefore, DDPG combined with PID can provide smoother, stable, and efficient thermal management strategies.This chapter is followed by a detailed description of the DDPG algorithm and the framework of the dual DDPG-PID-based thermal management control strategy.

35The DDPG algorithm exhibits strong applicability in addressing the control problem of continuous action spaces in PEMFC systems [46].It amalgamates principles from both deep learning and deterministic policy into an actor-critic architecture.The actor network's primary role is to acquire a deterministic policy, mapping environmental states to appropriate actions.Given the environmental state as input, the actor network outputs the action to be executed.Throughout the training phase, the actor network endeavors to maximize the cumulative reward derived from the current policy.In contrast, the critic network's responsibility lies in estimating the value function, specifically the Q-value, for a given state-action pair.Utilizing the current environmental state and action as input, the critic network computes the corresponding Q-value, which represents the cumulative reward achievable from the subsequent state following action execution.Employing the Q-learning approach, the critic network iteratively refines its parameter values by minimizing the temporal difference (TD) error.This iterative refinement process enhances the Critic network's accuracy in estimating Q-values, consequently bolstering the DDPG algorithm's efficacy in navigating continuous action spaces.

36The DDPG algorithm utilizes two distinct networks: the actor policy network and the critic value network, each consisting of both an online and a target network [47].The online actor network, denoted as µ θ , is responsible for generating actions directly, expressed as a t = ϑ(s t |θ ϑ ), Simultaneously, an online Critic network evaluates the Q-value, represented as Q = Q(s t , a t |θ q ).Subsequent to the action's interaction with the environment, the target critic network employs the action from the target actor network and the current state observation to compute the target output Q-value, thereby adjusting the value function Q ϕ (s, a).Here, θ ϑ and θ q denote the parameters of the online actor and online critic, respectively, while s t represents the agent's state at time t.During the update of the actor and critic network parameters, the process is initiated by randomly sampling a minibatch from the time series [s t , a t , r t , s t+1 ] stored in the experience pool R.This approach enhances algorithm stability and convergence speed, significantly reducing the variance of the Q value and facilitating the computation of the loss function L. The estimated optimal Q value and loss function are defined as:

37where r k denotes the reward at a specific time step, and γ represents the discount factor within the range [0, 1].N indicates the count of state-action pairs randomly sampled from the experience replay buffer R. The primary objective of the optimal policy is to maximize the expected Q value.The actor network updates its parameters θ ϑ by utilizing the Q-value's derivative in the direction of maximum Q.The update process follows:

38where ∇ a Q(s, a|θ q ) represents the gradient of the action-value function with respect to action a, indicating the direction for maximizing the Q-value.The expression ∇ θ ϑ ϑ(s|θ ϑ )| s k represents the gradient of the policy ϑ concerning the parameters θ, elucidating the method to adjust θ to maintain the efficacy of the control policy.Finally, to bolster learning stability, DDPG incorporates two sets of target networks: the target actor network and the target critic network [48].The parameter updates for the target networks are given by Formulas ( 18) and (19).And the pseudocode of the Dual DDPG PID algorithm will be given in Algorithm A1.The thermal management system of a PEMFC consists of three main modules, namely the water pump, radiator, and stack, which aim to maintain a stable operating temperature.Temperature regulation involves controlling the coolant flow via the pump and airflow through the radiator.The coolant cools the stack, while the radiator cools the coolant and maintains its inlet temperature.This paper proposes a dual DDPG-PID approach to improve PID controllers in handling strongly coupled systems.The FCTMS framework based on a dual DDPG-PID is shown in Figure 4, and the agent's output action structure is illustrated in Figure 5.

39Hydrogen 2025, 6, x FOR PEER REVIEW 8 of 27 approach enhances algorithm stability and convergence speed, significantly reducing the variance of the Q value and facilitating the computation of the loss function L. The estimated optimal Q value and loss function are defined as:

40where r denotes the reward at a specific time step, and γ represents the discount factor within the range [0, 1].N indicates the count of state-action pairs randomly sampled from the experience replay buffer R. The primary objective of the optimal policy is to maximize the expected Q value.The actor network updates its parameters θ by utilizing the Qvalue's derivative in the direction of maximum Q.The update process follows:

41where ∇ Q(s, a|θ ) represents the gradient of the action-value function with respect to action a, indicating the direction for maximizing the Q-value.The expression ∇ ϑ(s|θ )| represents the gradient of the policy ϑ concerning the parameters θ, elucidating the method to adjust θ to maintain the efficacy of the control policy.Finally, to bolster learning stability, DDPG incorporates two sets of target networks: the target actor network and the target critic network [48].The parameter updates for the target networks are given by Formulas ( 18) and (19).And the pseudocode of the Dual DDPG PID algorithm will be given in Algorithm A1.

Temperature Control Architecture for PEMFC Based on Dual DDPG-PID

42The thermal management system of a PEMFC consists of three main modules, namely the water pump, radiator, and stack, which aim to maintain a stable operating temperature.Temperature regulation involves controlling the coolant flow via the pump and airflow through the radiator.The coolant cools the stack, while the radiator cools the coolant and maintains its inlet temperature.This paper proposes a dual DDPG-PID approach to improve PID controllers in handling strongly coupled systems.The FCTMS framework based on a dual DDPG-PID is shown in Figure 4, and the agent's output action structure is illustrated in Figure 5.

Details of the DDPG

43The agent in the DDPG algorithm primarily consists of the state space, reward function, and action space.The state space is designed to characterize the thermal state and cooling dynamics of the system, enabling the reinforcement-learning agent to optimally regulate the coolant and airflow rates.The reward function serves as a constraint for the agent, penalizing excessive training deviations while providing rewards when the training performance meets the expected criteria.The action space, representing the agent's output, corresponds to the gain parameters of the PID controller in the DDPG-PID controller.The following sections provide a detailed description of these three components.

State

44The state space of the DDPG algorithm includes coolant flow rate, airflow through the radiator, stack temperature error and its derivative, and the coolant temperature difference error from inlet to outlet and its derivative.The state space expression of the fuel cell is as follows:

45s = {e , e , e , e , W }

46where e signifies the disparity between the fuel cell temperature and the targeted control temperature, while e captures the variation between the temperature differential of

Details of the DDPG

47The agent in the DDPG algorithm primarily consists of the state space, reward function, and action space.The state space is designed to characterize the thermal state and cooling dynamics of the system, enabling the reinforcement-learning agent to optimally regulate the coolant and airflow rates.The reward function serves as a constraint for the agent, penalizing excessive training deviations while providing rewards when the training performance meets the expected criteria.The action space, representing the agent's output, corresponds to the gain parameters of the PID controller in the DDPG-PID controller.The following sections provide a detailed description of these three components.

State

48The state space of the DDPG algorithm includes coolant flow rate, airflow through the radiator, stack temperature error and its derivative, and the coolant temperature difference error from inlet to outlet and its derivative.The state space expression of the fuel cell is as follows:

49s = {e , e , e , e , W }

50where e signifies the disparity between the fuel cell temperature and the targeted control temperature, while e captures the variation between the temperature differential of

Details of the DDPG

51The agent in the DDPG algorithm primarily consists of the state space, reward function, and action space.The state space is designed to characterize the thermal state and cooling dynamics of the system, enabling the reinforcement-learning agent to optimally regulate the coolant and airflow rates.The reward function serves as a constraint for the agent, penalizing excessive training deviations while providing rewards when the training performance meets the expected criteria.The action space, representing the agent's output, corresponds to the gain parameters of the PID controller in the DDPG-PID controller.The following sections provide a detailed description of these three components.

State

52The state space of the DDPG algorithm includes coolant flow rate, airflow through the radiator, stack temperature error and its derivative, and the coolant temperature difference error from inlet to outlet and its derivative.The state space expression of the fuel cell is as follows:

53where e 1 signifies the disparity between the fuel cell temperature and the targeted control temperature, while e 2 captures the variation between the temperature differential of the cooling fluid upon entering and exiting the fuel cell and the target temperature differential, .e 1 and .e 2 are the derivatives of two errors over time.

54Hydrogen 2025, 6, 20 10 of 27

Action

55In the DDPG algorithm, the output values of actions are constrained within a specified range and appropriately expanded.During training, the actor within the DDPG algorithm agent further fine-tunes the action parameters in the Simulink environment, restoring the action space.The expression is as follows: a 1 = (KP 1 /100, KI 1 /100, KD 1 /100) (

56a 2 = (KP 2 , KI 2 /10, KD 2 /10) (

57where KP 1/2 KI 1/2 KD 1/2 is the output of the DDPG algorithm agent within a certain range.

58The coefficient by which KP 1/2 KI 1/2 KD 1/2 is divided in the above expression varies because, in the DDPG algorithm, to maintain the action limits of both agent1 and agent2 within a two-digit range and avoid significant discrepancies in the numerical values of loss parameters during the iteration process, they are multiplied by different amplification gains.Lastly, there are differences in the coefficients by which the action parameters are divided when fine-tuning in the Simulink environment.

Reward Function

59The agent continuously gains more rewards in the PEMFC system environment to approximate optimal temperature control and ideal temperature difference control.During the experimentation phase, the agent undergoes separate training sessions dedicated to controlling coolant flow and cooling airflow.During training, the agent's output serves as the input for the PID controller.The PID controller calculates the corresponding control input based on the current state and control error.The reward function for the agent during training is defined as follows:

60where e 1 denotes the target temperature error of the stack (T st − 353K), and e 2 denotes the temperature difference error of the coolant in and out of the stack (T st − T st,in − 10).The first term in the above expression indicates that both errors are small, so the system performs very well.The reward function returns the larger positive value, indicating that the state is ideal.The second term indicates that the system's performance is problematic because e 1 is small and e 2 is large.Apply a penalty (negative value) to e 2 and reduce the reward.The third item, because e 1 is large and e 2 is small, also requires a penalty to be applied to e 1 .This component reduces the reward and indicates that the system is not performing well.The fourth term is due to the fact that, when both errors are large, the reward function gives a larger penalty and returns a negative value, indicating that the system is not performing as required.In the above reward function α 1 , α 2 , the weighting factors control the strength of the error penalty.The ξ 1 , ξ 2 error coefficients regulate how much the error affects the reward.The C 1 , C 2 , C 3 , C 4 constants are used to adjust the base value of the reward function.The c constant term can be used for offset or compensation.In this study, their values are shown in Table 1.Additionally, detailed training parameters for the DDPG are listed in Table A2.

The Thermal Management Strategy Based on Dual DDPG-PID

61In this study, an integrated control method is based on a dual deep deterministic policy gradient to regulate the optimal operating temperature of PEMFC.This approach utilizes two reinforcement-learning agents to dynamically train the parameters of two PID controllers, one for the water pump side and the other for the radiator side.Additionally, this approach effectively addresses the challenges encountered by PID controllers when dealing with strongly coupled systems, thus enhancing control performance.

62In accordance with RL theory, an agent's learning process can be likened to an endeavor.It initiates an action, represented as a t , within the present environmental state s t .This action a t acts as the input for the PID controller.By utilizing the current state and control error, the PID controller computes the relevant control output and engages with the environment.Post-interaction, the environment transitions to a subsequent state s t+1 , while concurrently producing an immediate reward r t for the agent.By employing this reward r t and the current state s t+1 , the agent determines the subsequent action a t+1 .Leveraging its own experience and accumulated knowledge, the agent refines action planning to augment the PID controller's performance for improved adaptation to the environment.

63The temperature control objective for PEMFC in this study is a temperature difference of ∆T = 10 K (∆T = T st,out − T st,in ) between the coolant inlet and outlet of the stack, and the optimal operating temperature of the stack is T ref = 535 K (T st = T ref = T st,out ).

Training and Simulation Results

64In this section, the hardware setup simulated comprises an Intel (R) Core (TM) i5-8250U CPU @ 1.80 GHz paired with an 8 GB RAM computer.The models described in Sections 2 and 3 of the paper, as well as the thermal management control model, are developed on the MATLAB 2021b/Simulink platform.

65During training, the numerical values of actions output by the agent are determined based on the sizes of the three parameters, P, I, and D, adjusted in the PID controller within the Simulink environment.The exact adjustment rules are as follows.First, to ensure eventual stabilization of the response curve around the stack's target temperature of 353 K and a coolant inlet-outlet temperature difference of 10 K, and to mitigate the adverse effects of computational precision on the outcome and reduce the possibility of oscillations, the adjustment range of the PID parameters is restricted and appropriately expanded in the DDPG algorithm code.This allows the agent to search for the most suitable parameters within the largest possible numerical range, rather than determining parameters within a small range.Then, the rules for adjusting the numerical values of the proportional coefficient P, integral coefficient I, and derivative coefficient D are determined to maintain consistency with the normal parameter adjustment sequence.Finally, further fine-tuning of the action parameters is conducted in the Simulink environment to restore the action parameter space, ensuring the performance and stability of the controller in practical environments.

66To avoid the DDPG from falling into a local optimum, the authors adopt a diverse exploration mechanism in the initial distribution design, which enables the initial action distribution to have high diversity by randomly initializing the weights of the strategy network, ensuring that the intelligent body can extensively explore the state space in the early training stage, effectively reducing the risk of the algorithm converging to the local optimum.In addition, Gaussian noise is introduced during the training process to enhance the exploration ability of the intelligent body, in order to dynamically adapt to the nonlinear and multivariate coupling characteristics of the PEMFC, and further improve the global search ability.In the DDPG-PID framework, the initial parameter setting of the PID controller is also crucial.According to the temperature control requirements and the temperature difference control requirements of the coolant in and out of the electric pile, the authors weight the PID parameter ranges according to the control requirements after initializing the PID parameters, which provides a stable starting point for further optimization of the DDPG, helps the system achieve smooth temperature control at an early stage, and avoids local optimum traps due to the instability of the initial strategy.In addition, the diverse historical experiences are saved and randomly extracted through the experience playback buffer, which reduces the learning bias caused by time correlation and enables the system to explore the state space more comprehensively, effectively reducing the possibility of falling into the local optimum.

Analysis of Training Results of Dual DDPG-PID

67In this section, the DDPG employs average reward evaluation during the training iterations to assess training effectiveness.During training, priority is given to controlling the stack temperature, namely the coolant flow rate of the water pump, followed by the coolant temperature difference, i.e., the airflow through the radiator.The training outcomes for both the water pump and radiator for the dual DDPG approach are depicted in Figure 6.

68Hydrogen 2025, 6, x FOR PEER REVIEW the action parameters is conducted in the Simulink environment to restore the act rameter space, ensuring the performance and stability of the controller in practica ronments.

69To avoid the DDPG from falling into a local optimum, the authors adopt a d exploration mechanism in the initial distribution design, which enables the initial distribution to have high diversity by randomly initializing the weights of the s network, ensuring that the intelligent body can extensively explore the state space early training stage, effectively reducing the risk of the algorithm converging to th optimum.In addition, Gaussian noise is introduced during the training process hance the exploration ability of the intelligent body, in order to dynamically adap nonlinear and multivariate coupling characteristics of the PEMFC, and further im the global search ability.In the DDPG-PID framework, the initial parameter setting PID controller is also crucial.According to the temperature control requirements a temperature difference control requirements of the coolant in and out of the electr the authors weight the PID parameter ranges according to the control requiremen initializing the PID parameters, which provides a stable starting point for further o zation of the DDPG, helps the system achieve smooth temperature control at an stage, and avoids local optimum traps due to the instability of the initial strategy.dition, the diverse historical experiences are saved and randomly extracted throu experience playback buffer, which reduces the learning bias caused by time corr and enables the system to explore the state space more comprehensively, effectiv ducing the possibility of falling into the local optimum.

70In this section, the DDPG employs average reward evaluation during the tr iterations to assess training effectiveness.During training, priority is given to cont the stack temperature, namely the coolant flow rate of the water pump, followed coolant temperature difference, i.e., the airflow through the radiator.The trainin comes for both the water pump and radiator for the dual DDPG approach are depi Figure 6.The PID controller on the pump side regulates the fuel cell temperature throug ant flow modulation.Figure 6a illustrates the training process curve of the pum agent.Initially, the three parameters of the PID controller are randomly initialized.beginning of training, a notable deviation exists between the stack temperature a target control temperature, leading to escalated penalties throughout tr The PID controller on the pump side regulates the fuel cell temperature through coolant flow modulation.Figure 6a illustrates the training process curve of the pumpside agent.Initially, the three parameters of the PID controller are randomly initialized.At the beginning of training, a notable deviation exists between the stack temperature and the target control temperature, leading to escalated penalties throughout training.Consequently, the agent's average reward declines during episodes 1-35.Subsequently, as training progresses, the deviation between the stack temperature and the target control temperature diminishes, resulting in the accrual of a satisfactory number of rewards during training.Hence, convergence begins after 75 episodes and remains steady between episodes 75 and 350.

71The PID controller on the radiator side regulates the coolant temperature through airflow regulation.Figure 6b illustrates the training process curve of the radiator-side agent.As shown, the convergence of the agent begins after 55 episodes.This rapid convergence is attributed to the swift response of the radiator-side controller once the stack temperature stabilizes at the target control temperature.It promptly adjusts airflow to cool the coolant, thereby minimizing the disparity between the temperature differentials of the coolant inlet and outlet and the target temperature differential.Consequently, the radiator-side agent achieves faster convergence during the training process.

72As can be seen from Figure 7a,b, during the training process of the DDPG-PID algorithm, the fluctuation of the PID parameters in the early stage is due to the fact that the algorithm is in the exploratory stage and tries to find the optimal control strategy through different combinations of parameters.At this stage, the algorithm continuously adjusts the PID parameters to cope with the changes in the system, resulting in large fluctuations in the parameter values.With the depth of training, the algorithm gradually accumulates experience, is able to predict and adjust the parameters more accurately, and finally, converges to a stable value, indicating that the system has found the optimal control strategy and realized the stable control of the fuel cell temperature.

73Hydrogen 2025, 6, x FOR PEER REVIEW 13 of 27

74Consequently, the agent's average reward declines during episodes 1-35.Subsequently, as training progresses, the deviation between the stack temperature and the target control temperature diminishes, resulting in the accrual of a satisfactory number of rewards during training.Hence, convergence begins after 75 episodes and remains steady between episodes 75 and 350.

75The PID controller on the radiator side regulates the coolant temperature through airflow regulation.Figure 6b illustrates the training process curve of the radiator-side agent.As shown, the convergence of the agent begins after 55 episodes.This rapid convergence is attributed to the swift response of the radiator-side controller once the stack temperature stabilizes at the target control temperature.It promptly adjusts airflow to cool the coolant, thereby minimizing the disparity between the temperature differentials of the coolant inlet and outlet and the target temperature differential.Consequently, the radiator-side agent achieves faster convergence during the training process.

76As can be seen from Figure 7a,b, during the training process of the DDPG-PID algorithm, the fluctuation of the PID parameters in the early stage is due to the fact that the algorithm is in the exploratory stage and tries to find the optimal control strategy through different combinations of parameters.At this stage, the algorithm continuously adjusts the PID parameters to cope with the changes in the system, resulting in large fluctuations in the parameter values.With the depth of training, the algorithm gradually accumulates experience, is able to predict and adjust the parameters more accurately, and finally, converges to a stable value, indicating that the system has found the optimal control strategy and realized the stable control of the fuel cell temperature.Table 2 shows the constraint ranges and convergence accuracies of PSO-PID and FUZZY-PID in the optimization process.Based on the previous experience, PSO-PID and FUZZY-PID are used for coolant flow control.In the tuning details of PSO-PID and FUZZY-PID, first, the parameter ranges of PID controllers are set.And their convergence accuracy is set to 0.001 for both of them.This setting is used to improve the temperature stability.However, temperature control in a fuel cell system involves multivariable coupled control of the coolant and airflows.PID and FUZZY-PID mainly target a single flow variable, which makes it difficult to cope with the complex coupling characteristics of multivariable in the system and increases the difficulty of temperature control.Table 2 shows the constraint ranges and convergence accuracies of PSO-PID and FUZZY-PID in the optimization process.Based on the previous experience, PSO-PID and FUZZY-PID are used for coolant flow control.In the tuning details of PSO-PID and FUZZY-PID, first, the parameter ranges of PID controllers are set.And their convergence accuracy is set to 0.001 for both of them.This setting is used to improve the temperature stability.However, temperature control in a fuel cell system involves multivariable coupled control of the coolant and airflows.PID and FUZZY-PID mainly target a single flow variable, which makes it difficult to cope with the complex coupling characteristics of multivariable in the system and increases the difficulty of temperature control.To assess the effectiveness of the proposed control strategy, this study employs continuous step changes in load current for validation.The duration of each load current action is set to 1200 s, during which the load current undergoes abrupt variations every 200 s.Specifically, at 200 s, 400 s, and 600 s, the load current progressively increases from 60 A to 180 A, while at 800 s and 1000 s, it decreases from 180 A to 150 A. The step changes in load current are illustrated in Figure 8.To assess the effectiveness of the proposed control strategy, this study employ tinuous step changes in load current for validation.The duration of each load curr tion is set to 1200 s, during which the load current undergoes abrupt variations eve s.Specifically, at 200 s, 400 s, and 600 s, the load current progressively increases f A to 180 A, while at 800 s and 1000 s, it decreases from 180 A to 150 A. The step c in load current are illustrated in Figure 8. Figure 9 demonstrates the step current temperature variation curves of the fuel cell stack under different control strategies.From Figure 9, it can be seen that the D-DDPG PID control strategy exhibits a significant steady-state control advantage in fuel cell temperature control, which can more effectively maintain the temperature around 353 K and has a lower steady-state error when compared with other control strategies.This indicates that the D-DDPG PID has a significant advantage in maintaining temperature stability and can better meet the requirements of fuel cell systems for temperature control accuracy.In addition, through the zoom-in analysis of the local response (at 200 s, 400 s, and 800 s), it can be observed that the D-DDPG PID possesses faster response speed and shorter regulation time during temperature fluctuation, and its temperature profile returns to the set value quickly when compared with the traditional PID, PSO-PID, and FUZZY-PID, which effectively reduces unnecessary temperature fluctuation.This makes D-DDPG PID more suitable for real-time temperature control under complex working conditions.The D-DDPG PID is also excellent in overshoot control and robustness.the D-DDPG PID has almost no significant overshoot, while the conventional PID and PSO-PID have a larger overshoot, which may adversely affect the lifetime and performance of the fuel cell.In addition, the control curve of the D-DDPG PID is very stable in all fluctuation intervals and can adapt to different perturbations quickly, which reflects stronger robustness.In contrast, the traditional PID and FUZZY-PID have poor adaptability due to hysteresis and oscillation under large perturbations, while the D-DDPG PID improves the adaptability to uncertain working conditions through the adaptive mechanism of deep reinforcement learning and realizes high-precision and high-stability temperature control.

77Table 3 shows the control data of different control strategies at different time periods.From the data in the table, it can be seen that the D-DDPG PID outperforms the other control strategies in all performance indicators.In terms of the average absolute control error, the error of D-DDPG PID in the interval of 0-200 s is 0.016 K, which is about 75.4%, 66%, and 51.5% lower than that of the traditional PID (0.065 K), FUZZY-PID (0.047 K), and PSO-PID (0.033 K), respectively.In the intervals of 400-600 s and 800-1000 s, their absolute errors are reduced by 79.5%, 76.3%, 64%, 80.9%, 80%, and 69.2%, respectively.The absolute maximum overshoots of the D-DDPG PID are 0.31 K, 0.26 K, and 0.13 K, respectively, in the three intervals, in comparison with the PSO-PID's overshoots of 0.64 K, 0.51 K, and 0.25 K in the same intervals.The overshooting amplitude is reduced by about 49.5% on average, showing stronger overshooting suppression ability.In addition, in terms of the average tuning time, the D-DDPG PID was 33 s, 29 s, and 19 s in the intervals of 0-200 s, 400-600 s, and 800-1000 s, respectively, which were about 24.2%, 25.6%, and 13.6% shorter compared with the 41 s, 39 s, and 22 s of the PSO-PID.These data further indicate that the D-DDPG PID significantly outperforms the conventional control algorithms in terms of temperature control stability and dynamic response speed and has stronger robustness and adaptability, especially under complex operating conditions.The D-DDPG PID is also excellent in overshoot control and robustness.the D-DDPG PID has almost no significant overshoot, while the conventional PID and PSO-PID have a larger overshoot, which may adversely affect the lifetime and performance of the fuel cell.In addition, the control curve of the D-DDPG PID is very stable in all fluctuation intervals and can adapt to different perturbations quickly, which reflects stronger robustness.In contrast, the traditional PID and FUZZY-PID have poor adaptability due to hysteresis and oscillation under large perturbations, while the D-DDPG PID improves the adaptability to uncertain working conditions through the adaptive mechanism of deep reinforcement learning and realizes high-precision and high-stability temperature control.

78Table 3 shows the control data of different control strategies at different time periods.From the data in the table, it can be seen that the D-DDPG PID outperforms the other control strategies in all performance indicators.In terms of the average absolute control error, the error of D-DDPG PID in the interval of 0-200 s is 0.016 K, which is about 75.4%, 66%, and 51.5% lower than that of the traditional PID (0.065 K), FUZZY-PID (0.047 K), and PSO-PID (0.033 K), respectively.In the intervals of 400-600 s and 800-1000 s, their absolute errors are reduced by 79.5%, 76.3%, 64%, 80.9%, 80%, and 69.2%, respectively.The absolute maximum overshoots of the D-DDPG PID are 0.31 K, 0.26 K, and 0.13 K, respectively, in the three intervals, in comparison with the PSO-PID's overshoots of 0.64 K, 0.51 K, and 0.25 K in the same intervals.The overshooting amplitude is reduced by about 49.5% on average, showing stronger overshooting suppression ability.In addition, in terms of the average tuning time, the D-DDPG PID was 33 s, 29 s, and 19 s in the intervals of 0-200 s, 400-600 s, and 800-1000 s, respectively, which were about 24.2%, 25.6%, and 13.6% shorter compared with the 41 s, 39 s, and 22 s of the PSO-PID.These data further indicate that the D-DDPG PID significantly outperforms the conventional control algorithms in terms of temperature control stability and dynamic response speed and has stronger robustness and adaptability, especially under complex operating conditions.Figure 10 presents the simulation results of the coolant flow rates under different control strategies.As observed from the figure, at 200 s, 400 s, and 800 s, when the load increases, the operating temperature of the fuel cell rises accordingly.To achieve temperature regulation, the D-DDPG-PID control strategy responds rapidly to system variations, increasing the coolant flow rate required for effective cooling and maintaining stability.Furthermore, at 800 s and 1000 s, as the load decreases, the heat generation of the stack is reduced, leading to a lower coolant demand.Under the regulation of the dual DDPG-PID controller, the coolant flow rate is dynamically adjusted based on system requirements, preventing excessive cooling and enhancing overall system efficiency.In contrast, the compared control algorithms in this study, while also capable of adjusting the coolant flow rate in response to system variations, exhibit a slower response, noticeable overshoot, and oscillations, leading to inferior control stability compared to the D-DDPG-PID control strategy.

79Hydrogen 2025, 6, x FOR PEER REVIEW 1 consumption of the cooling system, thereby improving the overall energy efficiency system.Figure 11 presents the simulation results of airflow regulation during the temperature control process of the fuel cell.In the thermal management system of the fuel cell, the adjustment of radiator airflow is primarily aimed at reducing the temperature of the coolant entering the stack, ensuring that the fuel cell operates within its optimal temperature range.When the load increases at 200 s, 400 s, and 800 s, the operating temperature of the fuel cell rises, leading to an increase in both the temperature and flow rate of the coolant exiting the stack.Consequently, the radiator airflow needs to be increased to cool the coolant and enhance its heat dissipation capacity.To achieve the temperature regulation objective, the radiator airflow must be appropriately increased under load increments to meet the cooling demand.From the simulation results, it can be observed that the D-DDPG-PID control algorithm can rapidly respond to changes in the coolant flow rate and effectively regulate the radiator airflow, thereby stabilizing the inlet temperature of the coolant entering the stack.In contrast, at 800 s and 1000 s, when the load decreases, the heat generation of the fuel cell is reduced, leading to a lower cooling demand.Accordingly, the radiator airflow must be decreased to prevent excessive cooling of the coolant, which could otherwise cause temperature non-uniformity within the fuel cell stack.Furthermore, compared to other control algorithms, the D-DDPG-PID algorithm effectively suppresses hysteresis, overshoot, and oscillations in the coolant flow rate adjustment process, resulting in smoother regulation of radiator airflow and improved overall control performance.Combined with the simulation results of coolant flow regulation, this control algorithm demonstrates superior stability in the coordinated control of coolant and airflow, enhancing the cooling efficiency of the fuel cell stack while reducing the energy consumption of the cooling system, thereby improving the overall energy efficiency of the system.

80Hydrogen 2025, 6, x FOR PEER REVIEW 17 consumption of the cooling system, thereby improving the overall energy efficiency o system.

Conclusions

81In this paper, a dual DDPG-PID control strategy is used to enhance the thermal m agement performance of PEMFCs.The strategy addresses the inherent delay of conv tional PID controllers by dynamically matching the temperature and flow rate variat in real time.Simulation results show that the D-DDPG PID significantly reduces tem ature overshoot by approximately 75.4%, 66%, and 51.5% compared to conventional P FUZZY-PID, and PSO-PID, respectively, in the 0-200 s time interval.Additionally, average tuning time of D-DDPG PID is shortened by 24.2%, 25.6%, and 13.6% compa to PSO-PID in the corresponding time intervals.This strategy effectively alleviates c lenges such as multivariable coupling and control delays in PEMFC thermal managem By optimizing the PID parameters through reinforcement learning, it reduces tempera oscillations and minimizes parasitic losses.Although the study is based on simulati the results provide a solid foundation for future industrial applications, with the poten for broader implementation in other PEMFC subsystems and fuel cell types.

82In this paper, a dual DDPG-PID control strategy is used to enhance the thermal management performance of PEMFCs.The strategy addresses the inherent delay of conventional PID controllers by dynamically matching the temperature and flow rate variations in real time.Simulation results show that the D-DDPG PID significantly reduces temperature overshoot by approximately 75.4%, 66%, and 51.5% compared to conventional PID, FUZZY-PID, and PSO-PID, respectively, in the 0-200 s time interval.Additionally, the average tuning time of D-DDPG PID is shortened by 24.2%, 25.6%, and 13.6% compared to PSO-PID in the corresponding time intervals.This strategy effectively alleviates challenges such as multivariable coupling and control delays in PEMFC thermal management.By optimizing the PID parameters through reinforcement learning, it reduces temperature oscillations and minimizes parasitic losses.Although the study is based on simulations, the results provide a solid foundation for future industrial applications, with the potential for broader implementation in other PEMFC subsystems and fuel cell types.

Figure 1 .

83Figure 1.System architecture diagram of PEMFC.

84Figure 1.System architecture diagram of PEMFC.

Hydrogen 2025, 6 ,

85x FOR PEER REVIEW 5 of 27

Figure 2 .

86Figure 2. Comparison of the simulated data with the reference data [42].

87Figure 2. Comparison of the simulated data with the reference data [42].

Figure 3 .

88Figure 3.Control framework of the PEMFC thermal management system.

89Figure 3.Control framework of the PEMFC thermal management system.

3. 2 .

90Temperature Control Architecture for PEMFC Based on Dual DDPG-PID

Figure 4 . 27 Figure 4 .

91Figure 4. Cont.

Figure 5 .

92Figure 5. Framework diagram of intelligent agent outputs.

Figure 4 . 27 Figure 4 .

93Figure 4. Structural framework diagram of the dual DDPG algorithm.

Figure 5 .

94Figure 5. Framework diagram of intelligent agent outputs.

95Figure 5. Framework diagram of intelligent agent outputs.

Figure 6 .

96Figure 6.(a) The training process curve of the water pump side agent in dual DDPG, (b) the t process curve of the radiator side agent in dual DDPG.

97Figure 6.(a) The training process curve of the water pump side agent in dual DDPG, (b) the training process curve of the radiator side agent in dual DDPG.

Figure 7 .

98Figure 7. (a) Pump-side PlD parameter training results, (b) radiator-side PID parameter training results.

99Figure 7. (a) Pump-side PlD parameter training results, (b) radiator-side PID parameter training results.

Hydrogen 2025, 6 ,

100x FOR PEER REVIEW

Figure 8 .

101Figure 8. Continuous step load current curve.

Figure 9

102Figure9demonstrates the step current temperature variation curves of the fu stack under different control strategies.From Figure9, it can be seen that the D-PID control strategy exhibits a significant steady-state control advantage in fuel ce perature control, which can more effectively maintain the temperature around 353 has a lower steady-state error when compared with other control strategies.This in that the D-DDPG PID has a significant advantage in maintaining temperature s and can better meet the requirements of fuel cell systems for temperature control acc In addition, through the zoom-in analysis of the local response (at 200 s, 400 s, and it can be observed that the D-DDPG PID possesses faster response speed and short ulation time during temperature fluctuation, and its temperature profile returns to value quickly when compared with the traditional PID, PSO-PID, and FUZZY-PID, effectively reduces unnecessary temperature fluctuation.This makes D-DDPG PID suitable for real-time temperature control under complex working conditions.

Figure 8 .

103Figure 8. Continuous step load current curve.

Figure 9 .

104Figure 9. Temperature variation curves of the stack under different control strategies.

105Figure 9. Temperature variation curves of the stack under different control strategies.

Figure 10 .

106Figure 10.Water pump coolant flow curve.Figure 10.Water pump coolant flow curve.

107Figure 10.Water pump coolant flow curve.

Figure 11 .

108Figure 11.Radiator airflow curve.

Figure 12 shows

109Figure 12 shows the simulation result graph of the coolant temperature differen the fuel cell.From the result plots, the D-DDPG PID is able to accurately and stably m tain around 10 K near the temperature difference setpoint, while the other control st gies show large fluctuations and oscillations during the temperature difference chan From the local zoomed-in graphs, the D-DDPG PID shows a faster response speed smaller overshooting in the temperature difference fluctuation region around 0 s, 400 800 s.In comparison, the traditional PID, PSO-PID, and FUZZY-PID methods have la overshoots and longer tuning times in the temperature difference response process, e cially as the PSO-PID and FUZZY-PID oscillate in multiple fluctuation intervals.

Figure 11 .

110Figure 11.Radiator airflow curve.

Figure 12

111Figure 12 shows the simulation result graph of the coolant temperature difference of the fuel cell.From the result plots, the D-DDPG PID is able to accurately and stably maintain around 10 K near the temperature difference setpoint, while the other control strategies show large fluctuations and oscillations during the temperature difference changes.From the local zoomed-in graphs, the D-DDPG PID shows a faster response speed and smaller overshooting in the temperature difference fluctuation region around 0 s, 400 s, or 800 s.In comparison, the traditional PID, PSO-PID, and FUZZY-PID methods have larger overshoots and longer tuning times in the temperature difference response process, especially as the PSO-PID and FUZZY-PID oscillate in multiple fluctuation intervals.The ability of the D-DDPG PID to quickly and

Figure 12 .

112Figure 12.Temperature difference curve of coolant outflow and inflow to the stack.

Author Contributions:

113Methodology, Z.Z.; Software, Z.Z. and D.X.; Validation, Z.Z. and Y.S.; mal analysis, Z.L.; Investigation, Y.S.; Data curation, K.O.; Writing-original draft, Z.Z.; Writin review & editing, Z.Z.; Supervision, D.X.; Project administration, K.O. and D.X.; Funding acq tion, D.X.All authors have read and agreed to the published version of the manuscript.Funding: This research was funded by [Major Science and Technology Projects of Wenzhou, Ch grant number [ZG2022024] and [Science and Technology Major Project of Fujian Province of Ch grant number [2022HZ028024]

Figure 12 .

114Figure 12.Temperature difference curve of coolant outflow and inflow to the stack.

Table 1 .

115Reward function parameters.

Table 2 .

116PSO-ID and FUZZY-PID parameter setting details.Temperature Regulation in Response to Continuous Variations in Load Current

117PSO-ID and FUZZY-PID parameter setting details.

Table 3 .

118Comparison of control data.

참고문헌 49건

  1. Requirements for a Flexible and Realistic Air Supply Model for Incorporation into a Fuel Cell Vehicle (FCV) System Simulation SAE technical papers on CD-ROM/SAE technical paper series · 1999 10.4271/1999-01-2912
  2. Feedforward fuzzy-PID control for air flow regulation of PEM fuel cell system International Journal of Hydrogen Energy · Elsevier BV · 2015 10.1016/j.ijhydene.2015.04.080
  3. Model-based temperature regulation of a PEM fuel cell system on a city bus International Journal of Hydrogen Energy · Elsevier BV · 2015 10.1016/j.ijhydene.2015.08.042
  4. Performance Modeling of the Ballard Mark IV Solid Polymer Electrolyte Fuel Cell: II . Empirical Model Development Journal of The Electrochemical Society · Institute of Physics · 1995 10.1149/1.2043959
  5. Control strategy of cooling system for the optimization of parasitic power of automotive fuel cell system International Journal of Hydrogen Energy · Elsevier BV · 2015 10.1016/j.ijhydene.2015.08.067
  6. Turbocharger Modeling for Automotive Control Applications SAE technical papers on CD-ROM/SAE technical paper series · 1999 10.4271/1999-01-0908
  7. Water and thermal management for Ballard PEM fuel cell stack Journal of Power Sources · Elsevier BV · 2005 10.1016/j.jpowsour.2005.01.030
  8. A Water and Heat Management Model for Proton‐Exchange‐Membrane Fuel Cells Journal of The Electrochemical Society · Institute of Physics · 1993 10.1149/1.2220792
  9. Modeling electrochemical performance in large scale proton exchange membrane fuel cell stacks Journal of Power Sources · Elsevier BV · 1998 10.1016/s0378-7753(97)02683-9
  10. Control-Oriented Modeling and Analysis for Automotive Fuel Cell Systems Journal of Dynamic Systems Measurement and Control · ASM International · 2004 10.1115/1.1648308
  11. Thermal management system modeling of a water-cooled proton exchange membrane fuel cell International Journal of Hydrogen Energy · Elsevier BV · 2015 10.1016/j.ijhydene.2014.12.026
  12. Study on Air-cooled Self-humidifying PEMFC Control Method Based on Segmented Predict Negative Feedback Control Electrochimica Acta · Elsevier BV · 2014 10.1016/j.electacta.2014.04.003
  13. Coolant circuit modeling and temperature fuzzy control of proton exchange membrane fuel cells International Journal of Hydrogen Energy · Elsevier BV · 2010 10.1016/j.ijhydene.2010.06.046
  14. Development and application of a generalised steady-state electrochemical model for a PEM fuel cell Journal of Power Sources · Elsevier BV · 2000 10.1016/s0378-7753(99)00484-x
  15. Thermal management strategy for a proton exchange membrane fuel cell system with a large active cell area Renewable Energy · Elsevier BV · 2008 10.1016/j.renene.2008.02.015
  16. Dynamic optimization under uncertainty of the synthesis/design and operation/control of a proton exchange membrane fuel cell system Journal of Power Sources · Elsevier BV · 2011 10.1016/j.jpowsour.2011.11.014
  17. Thermal modeling and temperature control of a PEM fuel cell system for forklift applications International Journal of Hydrogen Energy · Elsevier BV · 2014 10.1016/j.ijhydene.2014.03.175
  18. Temperature Control of PEMFC Stack Based on BP Neural Network Advances in engineering research/Advances in Engineering Research · Atlantis Press · 2016 10.2991/icmmct-16.2016.270
  19. Temperature Control for a Polymer Electrolyte Membrane Fuel Cell by Using Fuzzy Rule IEEE Transactions on Energy Conversion · Institute of Electrical and Electronics Engineers · 2016 10.1109/tec.2015.2511155
  20. Maximum power point tracking of a proton exchange membrane fuel cell system using PSO-PID controller International Journal of Hydrogen Energy · Elsevier BV · 2017 10.1016/j.ijhydene.2017.06.208
  21. Performance increase for an open-cathode PEM fuel cell with humidity and temperature control International Journal of Hydrogen Energy · Elsevier BV · 2017 10.1016/j.ijhydene.2017.10.087
  22. Experimental investigation of the thermal response of open-cathode proton exchange membrane fuel cell stack International Journal of Hydrogen Energy · Elsevier BV · 2018 10.1016/j.ijhydene.2018.05.097
  23. Control of a PWR nuclear reactor core power using scheduled PID controller with GA, based on two-point kinetics model and adaptive disturbance rejection system Annals of Nuclear Energy · Elsevier BV · 2019 10.1016/j.anucene.2019.02.019
  24. Model-Based Fault Tolerant Control for the Thermal Management of PEMFC Systems IEEE Transactions on Industrial Electronics · Institute of Electrical and Electronics Engineers · 2019 10.1109/tie.2019.2912772
  25. Real‐time thermal Management of Open‐Cathode PEMFC system based on maximum efficiency control strategy Asian Journal of Control · Wiley · 2019 10.1002/asjc.2207
  26. Cloud-based health-conscious energy management of hybrid battery systems in electric vehicles with deep reinforcement learning Applied Energy · Elsevier BV · 2021 10.1016/j.apenergy.2021.116977
  27. Knowledge Implementation and Transfer With an Adaptive Learning Network for Real-Time Power Management of the Plug-in Hybrid Vehicle IEEE Transactions on Neural Networks and Learning Systems · Institute of Electrical and Electronics Engineers · 2021 10.1109/tnnls.2021.3093429
  28. Thermal analysis and management of proton exchange membrane fuel cell stacks for automotive vehicle International Journal of Hydrogen Energy · Elsevier BV · 2021 10.1016/j.ijhydene.2021.07.143
  29. Real-Time HEV Energy Management Strategy Considering Road Congestion Based on Deep Reinforcement Learning Energies · Multidisciplinary Digital Publishing Institute · 2021 10.3390/en14175270
  30. A Review of Optimal Energy Management Strategies Using Machine Learning Techniques for Hybrid Electric Vehicles International Journal of Automotive Technology · Springer Science+Business Media · 2021 10.1007/s12239-021-0125-0
  31. Investigating the role of globalization, and energy consumption for environmental externalities: Empirical evidence from developed and developing economies Renewable Energy · Elsevier BV · 2021 10.1016/j.renene.2021.10.084
  32. Distributed deep reinforcement learning-based coordination performance optimization method for proton exchange membrane fuel cell system Sustainable Energy Technologies and Assessments · Elsevier BV · 2021 10.1016/j.seta.2021.101814
  33. Data-driven coordinated control method for multiple systems in proton exchange membrane fuel cells using deep reinforcement learning Energy Reports · Elsevier BV · 2021 10.1016/j.egyr.2021.11.250
  34. Multi-sub-inlets at cathode flow-field plate for current density homogenization and enhancement of PEM fuel cells in low relative humidity Energy Conversion and Management · Elsevier BV · 2021 10.1016/j.enconman.2021.115069
  35. A Deep Reinforcement Learning Strategy Combining Expert Experience Guidance for a Fruit-Picking Manipulator Electronics · Multidisciplinary Digital Publishing Institute · 2022 10.3390/electronics11030311
  36. Nitrogen application at a lower rate reduce net field global warming potential and greenhouse gas intensity in winter wheat grown in semi-arid region of the Loess Plateau Field Crops Research · Elsevier BV · 2022 10.1016/j.fcr.2022.108475
  37. Thermal management system for liquid-cooling PEMFC stack: From primary configuration to system control strategy eTransportation · Elsevier BV · 2022 10.1016/j.etran.2022.100165
  38. Research on Temperature Control of Fuel-Cell Cooling System Based on Variable Domain Fuzzy PID Processes · Multidisciplinary Digital Publishing Institute · 2022 10.3390/pr10030534
  39. Experimental investigation on thermal management of proton exchange membrane fuel cell stack using micro heat pipe array Applied Thermal Engineering · Elsevier BV · 2022 10.1016/j.applthermaleng.2022.118831
  40. Optimization of PEMFC system operating conditions based on neural network and PSO to achieve the best system performance International Journal of Hydrogen Energy · Elsevier BV · 2022 10.1016/j.ijhydene.2022.08.154
  41. Effective energy management strategy based on deep reinforcement learning for fuel cell hybrid vehicle considering multiple performance of integrated energy system International Journal of Energy Research · Wiley · 2022 10.1002/er.8731
  42. Thermal Management of Fuel Cells Based on Diploid Genetic Algorithm and Fuzzy PID Applied Sciences · Multidisciplinary Digital Publishing Institute · 2022 10.3390/app13010520
  43. Multi-objective optimization of proton exchange membrane fuel cell geometry and operating parameters based on three new performance evaluation indexes Energy Conversion and Management · Elsevier BV · 2023 10.1016/j.enconman.2022.116642
  44. Multi-objective optimization of gradient porosity of gas diffusion layer and operation parameters in PEMFC based on recombination optimization compromise strategy International Journal of Hydrogen Energy · Elsevier BV · 2023 10.1016/j.ijhydene.2022.12.226
  45. Intelligent VIV control of 2DOF sprung cylinder in laminar shear-thinning and shear-thickening cross-flow based on self-tuning fuzzy PID algorithm Marine Structures · Elsevier BV · 2023 10.1016/j.marstruc.2023.103377
  46. Deep reinforcement learning based energy management strategy for range extend fuel cell hybrid electric vehicle Energy Conversion and Management · Elsevier BV · 2023 10.1016/j.enconman.2023.116678
  47. Model-based decoupling control for the thermal management system of proton exchange membrane fuel cells International Journal of Hydrogen Energy · Elsevier BV · 2023 10.1016/j.ijhydene.2023.02.012
  48. Multi-flow channel proton exchange membrane fuel cell mass transfer and performance analysis International Journal of Heat and Mass Transfer · Elsevier BV · 2023 10.1016/j.ijheatmasstransfer.2023.124497
  49. Deep reinforcement learning based energymanagement strategy considering running costs and energy source aging for fuel cell hybrid electric vehicle Energy · Elsevier BV · 2023 10.1016/j.energy.2023.129177