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

Deep Reinforcement Learning Algorithm Based on Fusion Optimization for Fuel Cell Gas Supply System Control

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

기본 정보

저자
  1. Hongyan Yuan — Department of Automation, University of Science and Technology of China, Hefei 230027, China
  2. Zhendong Sun — Department of Automation, University of Science and Technology of China, Hefei 230027, China
  3. Yujie Wang — Department of Automation, University of Science and Technology of China, Hefei 230027, China
  4. Zonghai Chen — Department of Automation, University of Science and Technology of China, Hefei 230027, China
DOI
10.3390/wevj14020050
저널
World Electric Vehicle Journal
발행년도
2023
발행기관
Multidisciplinary Digital Publishing Institute
피인용수
5
라이선스
cc-by
논문 유형
–
언어
–
원문 페이지
https://doi.org/10.3390/wevj14020050
토픽
Electric and Hybrid Vehicle Technologies
OpenAlex ID
W4320491257

평가 내용

관련도
간접 관련
사업분야
수소연료전지 · (5) 연료전지용 수분제어장치(가습기)
부 분야
(7) MEA(막전극접합체)
R&D 측면
부품·응용 설계
확신도
0.90
근거 용어
Proton exchange membrane fuel cell (PEMFC), gas supply system control, flow control, deep reinforcement learning, FO-DDPG
판단 근거
PEMFC 시스템 내 공기 및 수소 공급 제어 알고리즘을 다루고 있으며, 이는 연료전지 시스템의 상위 제어 및 가스 공급 최적화 연구에 해당합니다.
R&D 활용 포인트
연료전지용 수분제어장치(가습기) 및 MEA가 포함된 시스템 단위의 가스 유량 제어 및 응답 성능 최적화 로직 개발에 활용 가능합니다.
평가 입력
초록 952자

초록

In a proton exchange membrane fuel cell (PEMFC) system, the flow of air and hydrogen is the main factor affecting the output characteristics of the PEMFC, and there is a coordination problem in the flow control of both. To ensure real-time gas supply in the fuel cell and improve the output power and economic benefits of the system, a deep reinforcement learning controller with continuous state based on fusion optimization (FO-DDPG) and a control optimization strategy based on net power optimization are proposed in this paper, and the effects of whether the two gas controls are decoupled or not are compared. The experimental results show that the undecoupled FO-DDPG algorithm has a faster dynamic response and more stable static performance compared to the fuzzy PID, DQN, traditional DRL algorithm, and decoupled controllers, demonstrated by a dynamic response time of 0.15 s, an overshoot of less than 5%, and a steady-state error of 0.00003.

본문 40,767자

본문 펼치기
In a proton exchange membrane fuel cell (PEMFC) system, the flow of air and hydrogen is the main factor affecting the output characteristics of the PEMFC, and there is a coordination problem in the flow control of both.To ensure real-time gas supply in the fuel cell and improve the output power and economic benefits of the system, a deep reinforcement learning controller with continuous state based on fusion optimization (FO-DDPG) and a control optimization strategy based on net power optimization are proposed in this paper, and the effects of whether the two gas controls are decoupled or not are compared.The experimental results show that the undecoupled FO-DDPG algorithm has a faster dynamic response and more stable static performance compared to the fuzzy PID, DQN, traditional DRL algorithm, and decoupled controllers, demonstrated by a dynamic response time of 0.15 s, an overshoot of less than 5%, and a steady-state error of 0.00003. Introduction The fuel cell (FC) is considered to be an alternative to traditional fossil energy sources such as coal and petroleum in the 21st century.The FC provides an effective approach to solve the shortage of petroleum energy and environmental pollution and is also related to future energy security and long-term development.According to the different electrolytes, fuel cells can be divided into alkaline fuel cell (AFC), phosphoric acid fuel cell (PAFC), molten carbonate fuel cell (MCFC), solid oxide fuel cell (SOFC), and proton exchange membrane fuel cell (PEMFC).Among them, the PEMFC is the most widely used. Introduction Compared with fossil energy sources, the PEMFC technology has the following advantages [1]: high energy conversion efficiency, with an expected efficiency of more than 80% [2]; low or even no emissions can be achieved; low noise, high reliability and easy maintenance during operation; and the power generation efficiency is less affected by the load.Therefore, the PEMFC is widely used in many fields such as aerospace, military, electric vehicle, and distributed electricity applications [3].However, fuel cells also have many shortcomings: the fuel cell reaction requires the action of catalysts and has high requirements for catalysts; the use of hydrogen energy as fuel, the storage and transportation of hydrogen energy have safety and stability problems; the output characteristics are soft and need to improve the control performance, reduce the impact on the battery due to load changes and the external environment, and improve the battery life [4,5]. Introduction The safe and efficient operation of the fuel cell cannot be achieved without the operation of its auxiliary system.The auxiliary system regulates the inlet, exhaust, temperature, and humidity of the stack in real-time according to the load demand power to ensure that the stack always operates under the ideal working environment.A complete fuel cell system (FCS) includes a fuel cell stack, gas supply system, temperature control system, humidity control system and energy management system.Among them, the gas supply system includes oxygen supply and hydrogen supply to provide reactants for the electrochemical reaction of the fuel cell, which is converted into electricity through the electrochemical reaction.At the same time, the degree of oxygen and hydrogen supply in the fuel cell largely affects the output power of the fuel cell [6].Therefore, effective control of gases in fuel cells is necessary. Introduction The oxygen supply to the fuel cell is provided by an air compressor that pressurizes the outside air and feeds it to the stack.Due to the high latency of air compressors and other equipment, under-or over-supply of oxygen may occur during load current changes.Insufficient oxygen supply can lead to a decrease in output voltage and power, permanently damaging the fuel cell; excessive oxygen supply can lead to an increase in parasitic power, reducing the net system output power [7].Therefore, the oxygen flow rate needs to be controlled to ensure the safe and efficient operation of the FCS.In many studies, oxygen excess ratio (OER) is commonly used to measure the degree of oxygen quantity availability, as defined in Equation (5). Introduction The control core of the air supply system is the regulation of the flow of air into the power stack.The main current air system control strategies are classified according to the control methods: traditional control, advanced control, and intelligent control algorithms. Introduction Traditional control strategies mainly include feed-forward control and PID control.Feed-forward control establishes the corresponding logic control strategy through off-line testing and empirical knowledge, which has the advantages of simple design and small calculation, but the control effect is single and relatively poor.PID methods are widely used in industrial process control because of their simple structure and high reliability, but they are prone to overshoot and jitter in some cases.In Ref. [8], feed-forward control and PID control were used for PEMFCs, and the coordinated operation of different control methods was simulated to verify the feasibility of the control strategy.Meanwhile, in order to improve the control accuracy and robustness of traditional PID, researchers have successively proposed many improved PID algorithms, such as fuzzy PID and adaptive PID [9].Ref. [10] uses an adaptive fuzzy PID control method to control the gas supply system, which ensures a stable variation of the gas supply system with the change of load power demand and prevents the instability that may be brought by the gas supply system. Introduction For the nonlinear and time-varying characteristics of the PEMFC gas supply system, advanced control strategies such as adaptive control, robust control, and predictive control have achieved good results.E. S. Kim [11] designed a suitable state feedback controller to improve the response speed and immunity to disturbances of the PEMFC gas supply system.In Ref. [12], a fuzzy generalized predictive controller based on a control-oriented T-S model is designed to control the oxygen excess ratio in the ideal range and effectively suppress the fluctuation caused by the load change. Introduction Intelligent control mainly uses intelligent algorithms such as neural networks, which have strong robustness and self-learning capability in OER control.M Sedighizadeh [13] proposed an adaptive control strategy based on artificial neural networks to control the PEMFC system to improve the dynamic performance of oxygen flow control.ChunHua Li [14] used a fuzzy adaptive recurrent neural network to model the PEMFC air supply system to prevent the occurrence of oxygen scarcity and improve the system response performance.However, the establishment of neural network models requires a large amount of data support and too much computational effort. Introduction The structures of hydrogen supply systems can be generally classified as anode blindend type and cyclic type.Studies have shown that the cyclic anode structure has a higher system and stack efficiency when the power is above a certain threshold [15], which has been widely used in recent years.In a circulating hydrogen supply system, the supply of hydrogen is performed by a hydrogen tank, which uses a proportional valve to achieve hydrogen injection and a circulation structure such as a circulation pump to achieve hydrogen recycling.Similar to the OER, the hydrogen excess ratio (HER) has been used to measure the effect of hydrogen flow control, which is defined in Equation ( 4). Introduction An adequate and effective supply of hydrogen can be ensured by controlling the circulation flow of hydrogen to ensure the effective operation of the electrochemical reaction while improving the utilization of hydrogen and economic efficiency [15].The structure of the hydrogen circuit supply system is relatively simple, and its common control algorithms, including traditional control and predictive control methods, are able to control the inflow and outflow of the hydrogen circuit well.In Ref. [16], the fuel cell hydrogen gas pressure and HER were controlled by a classical proportional-integral differential controller and a state feedback controller, with good tracking and interference resistance results.In Ref. [17], a Markov chain and model predictive control (MPC) method was used to control the fuel cell anode supply system, which further improved the dynamic performance of the anode gas supply system response.Yao Wang [18] designed an adaptive backpropulsion sliding mode (ABSM) controller to control the output mass flow rate of a hydrogen circulation pump, and tested the effectiveness of the ABSM controller by establishing a nonlinear model of the hydrogen supply system and using vehicle driving cycle data from WVUSUB. Introduction Based on the above discussion, this paper adopts a new control method to solve the air and hydrogen flow control problem of FCS.The proposed method has the advantages of enhanced dynamic response performance and stability performance, thereby improving the output performance and economic benefit of the system.The main contributions of this paper are as follows. 1. A simplified hybrid model environment of the fuel cell air and hydrogen circuits is built; 2. 1. An optimal flow control strategy based on net power optimization is proposed; 3. 1. Deep reinforcement learning controllers based on deterministic policy gradient are proposed to control the oxygen flow and hydrogen flow.The effect of decoupled and coupled controllers is compared; 4. 1. A controller that integrates fuzzy PID and DRL algorithms is proposed, which has a faster dynamic response than traditional PID and more stable steady-state performance than DRL algorithms. 1. The structure of this paper is listed as follows: Section 2 presents the dynamic mathematical model of the fuel cell gas supply system.In Section 3, the deep reinforcement learning algorithm principle is presented.Section 4 describes the algorithm of controllers proposed in this paper.Simulation results and performance analysis are shown in Section 5. Finally, conclusions are given in Section 6. Fuel Cell Gas Supply System The PEMFC is an electrochemical device that directly converts the chemical energy of gas into electric energy and heat energy by electrochemical reaction.Hydrogen and oxygen (or air) are used as fuel and oxidant of the PEMFC, respectively.Under the action of the proton exchange membrane (PEM) and catalyst, the gases involved in the reaction undergo electrochemical reactions to generate electric energy and heat energy.A schematic diagram of the composition and working principle of a single PEMFC is shown in Figure 1.The PEM divides the PEMFC stack into anode and cathode.In the working process of the battery, the hydrogen at the anode loses two electrons under the action of the catalyst and is oxidized into H + .The generated H + reaches the cathode through the PEM in the form of hydration, and the electrons reach the cathode after working on the load through the external circuit.After oxygen reaches the cathode, under the action of the cathode catalyst, it combines with H + and e − reaching the cathode to generate water.Therefore, the total reaction process of the PEMFC can be described as: Fuel Cell Gas Supply System The output voltage model of the fuel cell reflects its electrical output performance.It is a function of the load current, the temperature in the stack, the partial pressure of the reactants, and the relative humidity of the gas.According to the thermodynamic equations in the standard state and the relevant thermodynamic data, the thermodynamic electromotive force of a single fuel cell in the ideal case can be expressed using the Nernst equation as [19]: Fuel Cell Gas Supply System where P H 2 and P O 2 are the partial pressures of hydrogen and oxygen, respectively, in atm, and T f c is the battery working temperature in K. Fuel Cell Gas Supply System In the working process of the fuel cell, the polarization phenomenon will lead to some inevitable voltage loss, including activation polarization overvoltage V act , ohmic overvoltage V ohm , and concentration polarization overvoltage V conc .The output voltage of a single fuel cell is shown in Equation ( 2), which is small.Therefore, multiple fuel cells are often connected in series to form a stack, and the overall output voltage of the fuel cell stack is obtained by Equation (3). Fuel Cell Gas Supply System where V 0 is the voltage at zero current density in V, i is the current density in A/m 2 , i max is the limit current density.i max , c 1 , c 2 and c 3 are the constants related to the gas pressure and temperature.t m denotes the thickness of the PEM in m, and σ m is the conductivity of the PEM, related to the temperature and membrane.The specific expressions of the relevant parameters are detailed in Ref. [20] and will not be repeated. Fuel Cell Gas Supply System where n represents the number of fuel cells in series. Fuel Cell Gas Supply System Flow Mathematical Model The PEMFC gas supply system includes hydrogen and air supplies.During the operation of the PEMFC, hydrogen and air enter the stack through the high-pressure hydrogen storage tank and air compressor, respectively, and flow along the gas flow channel in the stack to reach each cell.The reacting gas is electrochemically reacted by the electrode catalyst and the PEM, and the residual gas after the reaction is discharged from the stack through the regulating valve and other components.After a certain treatment, it can re-enter the stack for recycling.To better model the gas supply system, the following assumptions are made about the electrochemical reaction process of the fuel cell: Fuel Cell Gas Supply System Flow Mathematical Model 1. Fuel Cell Gas Supply System Flow Mathematical Model All gases are ideal gases; 2. Fuel Cell Gas Supply System Flow Mathematical Model Air flow, hydrogen flow, temperature, humidity, etc., are controlled separately; 3. Fuel Cell Gas Supply System Flow Mathematical Model The temperature inside the stack is uniformly distributed and always remains constant; Fuel Cell Gas Supply System Flow Mathematical Model 4. Fuel Cell Gas Supply System Flow Mathematical Model The gas pressure inside the stack is uniformly distributed; 5. Fuel Cell Gas Supply System Flow Mathematical Model The stack gas water vapor inside the stack is saturated; the liquid volume also has no effect on the system. Fuel Cell Gas Supply System Flow Mathematical Model Based on the above assumptions and further neglecting the influence brought by the reaction gas transport pipeline, mathematical models and simulations of the dynamic description of the supply flow of air on the cathode side and hydrogen on the anode side can be obtained by the equation of state of ideal gas and the law of conservation of mass of matter, respectively. Fuel Cell Gas Supply System Flow Mathematical Model HER and OER are used to measure the reasonableness of the anode hydrogen flow and the cathode oxygen flow, respectively, defined as the ratio of gas inflow and reaction: Fuel Cell Gas Supply System Flow Mathematical Model where W H 2 ,in and W H 2 ,reacted , W O 2 ,in and W O 2 ,reacted are the mass flows of hydrogen and oxygen into the stack and consumed by the electrochemical reaction in kg/s , respectively. Fuel Cell Gas Supply System Flow Mathematical Model where M H 2 and M O 2 are the molar masses of hydrogen and oxygen in kg/mol, respectively.I st is the stack current in A, F is Faraday constant with 96,487 C/mol. Critical Component Models of the Fuel Cell Gas Supply System In the process of controlling the parameters of the fuel supply effect, such as the oxygen ratio and hydrogen ratio of the fuel cell gas supply system, the elements that have a great influence on the control effect include the air compressor and circulating pump. Air Compressor Model The air compressor model is mainly based on the compressor rotation parameters and compressor air flow.The rotational speed dynamics of the air pressure can be modeled based on the rotational parameters: Air Compressor Model where J cp is the rotational moment of inertia of the air compressor in kg•m 2 , ω cp is the rotational speed of the air compressor in rpm, and τ cm and τ cp are the motor driving torque and resistance torque of the air compressor in N•m, respectively.The motor drive torque can be obtained by referring to the static equation of the motor: Air Compressor Model where η cm is the mechanical efficiency of the air compressor motor, k t , k v and R cm are the drive motor constants, i cm is the operating current in A, and v cm is the motor operating voltage in V. Air Compressor Model The resistance torque can be obtained by the thermodynamic equation: (11) where C p is the specific heat capacity constant of air in J/(kg•K), γ is the specific heat capacity at atmospheric pressure, W cp is the air compressor air flow rate, and η cp is the air compressor mechanical efficiency.P sm and P atm are the pressures of the supply pipe and outside air in kPa, respectively. Recirculating Pump Model The working principle of the recirculating pump is similar to that of the air compressor and will not be repeated.At the same time, its recirculating pump pressure ratio and power consumption are small, and the effect of power consumption is no longer considered in this paper.Therefore, this paper only considers the recirculating pump flow model, which is relatively simple and can be calculated by the difference in the data obtained offline, expressed as: Recirculating Pump Model where W rcp and W 0 are the flow rates at actual and rated speed in kg/s, respectively.N rcp and N 0 are the actual and rated speed of the recirculating pump in rpm, respectively. Fuel Cell Gas Supply System Model Based on the available literature and the above introduction, a model of the fuel cell gas supply system can be built, as shown in Figure 2. Fuel Cell Gas Supply System Model In this paper, the flow characteristics of air and hydrogen are mainly studied, and the main control elements are the air compressor, the recirculating pump, and some valves.The cooler and humidifier are used to maintain the temperature and humidity inside the cell, which are not studied.The relevant parameters come from Ref. [20], which are not repeated.In addition, considering that in the gas supply system element, the power consumption of other part elements is much lower than that of the air compressor, the net power is simplified to Equation (13). Fuel Cell Gas Supply System Model where P net , P st and P cm represent the net power, output power, and air compressor power consumption of the system in W, respectively. Deep Reinforcement Learning David Silver has pointed out that 'deep learning + reinforcement learning = general artificial intelligence' [21].Deep reinforcement learning (DRL) is the combination of deep learning (DL) and reinforcement learning (RL). Deep Reinforcement Learning DL is a deep machine learning model.Its concept comes from an artificial neural network (ANN), and its depth is reflected in the multiple transformations of features.The commonly used deep learning model is a multilayer neural network.It can automatically learn abstract and essential features from a large amount of training data, realize the approximation of complex functions, and discover the distributed features of data [22,23]. Deep Reinforcement Learning RL is a special, mechanical learning method that uses model feedback as input and adapts to changes in the model (Environment).It is a method in which an intelligence (Agent) takes an action to interact with the environment to obtain a reward based on its states and finally completes an optimal policy to maximize the reward [24].The basic RL model includes the strategy, reward function, value function, and environment model [25]. Deep Reinforcement Learning In DRL algorithms, DL refines the data through learning, while reinforcement learning is mainly used to solve the problem of time series decision-making.Through continuous interaction and trial and error with the environment, RL can finally obtain the optimal strategy of a specific task and maximize the cumulative expected return of the task. Deep Reinforcement Learning According to the different ways that the deep neural network approaches nonlinear functions, DRL can be divided into value-based methods [26] and policy-based methods [27].The value-based DRL uses deep neural network (DNN) to approximate the reward value function, and the most classical algorithm is the deep Q-learning (DQN) method, whose actions are discrete values, and the algorithm flow is shown in Algorithm 1. Approximating the policy with DNN and finding the optimal policy using the policy gradient method is known as policy-based DRL.The method of the policy gradient has advantages such as better convergence compared to the value function method, an easier strategy exploration process, and the ability to learn stochastic strategies. Principles of Deep Reinforcement Learning Algorithm Based on Deterministic Policy Gradient Deep deterministic policy gradient (DDPG) and Twin Delayed Deep Deterministic Policy Gradient (TD3), typical DRL algorithms based on deterministic policy gradients, are used as the control algorithm for fuel cell gas supply system in this paper. Principles of Deep Reinforcement Learning Algorithm Based on Deterministic Policy Gradient In the training process, the DDPG algorithm involves four networks: actor current network π, actor target network π * , critic current network Q, and critic target network Q * .In addition, DDPG uses empirical playback for computing the target Q values. Principles of Deep Reinforcement Learning Algorithm Based on Deterministic Policy Gradient TD3 is an extension algorithm of the DDPG algorithm, that proposes three key techniques based on DDPG: Principles of Deep Reinforcement Learning Algorithm Based on Deterministic Policy Gradient 1. Principles of Deep Reinforcement Learning Algorithm Based on Deterministic Policy Gradient Dual network: K (usually 2) sets of critic networks are used, and the smallest is taken when calculating the target value, thus suppressing the network overestimation problem; 2. Principles of Deep Reinforcement Learning Algorithm Based on Deterministic Policy Gradient Target policy smoothing regularization: when calculating the target value, a perturbation is added to the action of the next state, thus making the value evaluation more accurate; 3. Principles of Deep Reinforcement Learning Algorithm Based on Deterministic Policy Gradient Delayed update: the actor network is updated only after every d updates of the critic network, thus ensuring a more stable training of the actor network. Principles of Deep Reinforcement Learning Algorithm Based on Deterministic Policy Gradient The overall algorithm flow for the training process of DDPG and TD3 is shown in Algorithm 2, where K and d are both 1 in DDPG and an integer greater than 1 in TD3. Algorithm 2 DDPG/TD3 algorithm Initialize K critic networks Q k (k = 1, 2..., K), and actor network π with random parameters Algorithm 2 DDPG/TD3 algorithm Update θ π by the deterministic policy gradient: Algorithm 2 DDPG/TD3 algorithm Update target networks: Adaptive Expectations In this paper, the variables related to the control objectives include the OER and the HER.In most studies, their optimal values are set to fixed values of 2 and 1.5 [28], respectively.However, in practice, their desired values are generally set to adaptive values related to the load demand to improve the hydrogen utilization and the output efficiency of the stack. Adaptive Expectations In this paper, the hydrogen system adopts a cyclic structure with a high hydrogen utilization rate [28].Moreover, considering that the power consumption of the hydrogen circuit components is much lower than that of the air compressor, it is no longer taken into account in the auxiliary system power consumption in order to simplify the calculation.Therefore, the expected value of the HER satisfies that the hydrogen demand and the pressure difference between the two poles of the stack can be maintained, so it is still set to 1.5, or λ * H 2 = 1.5.For the hydrogen circulation system, the rotation speed of the circulation pump is used to control the circulation amount of hydrogen, and its expected value is shown in Equation ( 14), using Equations ( 6), ( 4) and (12). Adaptive Expectations For the oxygen supply system, the net power is mainly affected by the air mass flow rate and the system current during the actual operation, so to improve the efficiency and power output, the maximum net power is set as the target of the expected value of the OER. Figure 3a shows the relationship between the OER λ O 2 and net power at different current values from 100 A to 300 A by offline simulation experiments.At a certain load current, with the increase in λ O 2 , the net power of the system shows a trend of first increasing and then decreasing. Adaptive Expectations The control indicator function is obtained by nonlinearly fitting these optimal points (black points in Figure 3b), as shown in the red curve in Figure 3b.The final optimal control reference λ * O 2 is a function of the stack current I st , shown as: Adaptive Expectations Additionally, the control quantity related to the overshoot ratio is mainly the compressor voltage, and a stable value of the overshoot ratio under steady-state conditions shows a constant compressor input voltage.Therefore, the value of the compressor voltage corresponding to the best OER λ * O 2 in Equation ( 15) for different load current demands is obtained by offline training, as shown in Figure 3c. Deep Reinforcement Learning Controller The integrated controller for the gas supply system described in this paper has three main control objectives: (1) to ensure proper OER or air flow; (2) to ensure proper HER or hydrogen flow; (3) to ensure the stability of the pressure difference between the two poles of the stack.To further simplify the complexity of the control algorithm, a follower control algorithm is used for the control of the two-pole pressure difference, resulting in a certain coupling between the control of the hydrogen circuit and the oxygen circuit. Deep Reinforcement Learning Controller Therefore, the structures of the DDPG and TD3 controller used in this paper are shown in Figure 4, whose agent consists of an actor and a critic network.The DQN controller is similar to Figure 4, except that the agent does not contain the critic network, which is not drawn here.The controller obtains the optimal OER and HER according to the demand load current typed by the outside world and takes the fuel cell gas supply system as the environment of the controller.To better control the two-way gas supply, decoupled and uncoupled DRL control algorithms are designed, respectively.In the decoupled controller, called 2-DRL, there are two agents, which are used to control the hydrogen and the air circuit, respectively.However, in the uncoupled DRL controller, only one agent is used to control two gas supplies at the same time.The relevant parameter settings of the two algorithms are shown in Table 1 and the rewards are defined in Equations ( 16)- (18).Besides, to ensure that the overall complexity of the two DRLs is similar, the network structure of the two agents in 2-DRL is consistent with that in DRL and the number of neurons in each layer is half of that in DRL. Deep Reinforcement Learning Controller The setting of the reward function requires several factors to be considered.The first consideration is the effect of the controlled amounts, λ H 2 and λ O 2 .To ensure that the error of the controlled quantity gradually decreases and converges to 0, errors (e OER , e HER ) and their variation(∆|e OER |, ∆|e HER |) need to be considered, as shown in Equations ( 16) and (17). Deep Reinforcement Learning Controller where δ represents a very small positive number. Deep Reinforcement Learning Controller In addition, to avoid the problem of the action amount changing too much in the actual working process, the influence of the action amount changing value is also considered in the reward function. Deep Reinforcement Learning Controller where a i (i = 1, 2) represents the normalized action values of V cm and N rcp respectively. Deep Reinforcement Learning Controller Based on Fusion Optimization To improve the steady-state performance of the controller, a method of DRL and fuzzy PID fusion is introduced.The overall structure is shown in the Figure 5.Among them, the input of the fuzzy logic in the fuzzy PID controller is the error and error variation of OER and HER, and the output is the PID control parameters, as shown in Figure 6.The fusion algorithm adopts the strategy of fuzzy logic, whose input is as shown in Figure 6 and the output is the weight of the fuzzy PID, as shown in Figure 7. DRL Controller Training and Testing Results For the training of the DRL controllers of the fuel cell gas supply system, the relevant parameters used are shown in Table 2.In the training process, to improve the adaptability of the controller to different load currents, the input to the training is a step load current of random amplitude (100-300 A), and the training time is 10 s per cycle.To better compare the control effects of the DQN, DDPG, and TD3 algorithms on the two gas supplies, the DRL algorithm is used to control the air and hydrogen loops separately, and the changes in the average reward values during training are shown in Figure 8.The results show that DDPG has the relatively best control effect for both gases, and its convergence values are close to the expected value (21,000/20,000).DQN has a better control effect for both gases, although it can reach a certain large expected value, but not as good as DDPG, and the convergence values of hydrogen circuit have a larger gap.This is due to the discrete action of action in DQN and the possible oscillation of the control effect under static conditions.TD3 has a better control effect for the air path and requires a shorter number of cycles to reach convergence, while in the hydrogen circuit, the training stability value of TD3 is much smaller than its expected value, which is because the TD3 network has two critic networks.Although too many evaluation networks improve the generalization ability of the controller, the accuracy of the simpler model is also reduced, leading to unsatisfactory control of the hydrogen circuit.Therefore, TD3 correlation will not be used as the control algorithm for the hydrogen circuit in the subsequent study.Therefore, to better compare the control effects of decoupled and uncoupled, DQN, DDPG, and TD3 networks, the average reward value variation during training is further designed to compare the uncoupled DQN and DDPG algorithms, as well as the decoupled 2DQN, 2DDPG, DDPG-DQN, (where DQN is used for oxygen and DDPG for hydrogen circuit) and DDPG-TD3 (where TD3 is used for oxygen and DDPG for hydrogen circuit), as shown in Figure 9.The overall reward value in the decoupled DRL controller is the sum of the reward values in the two agents.As seen, the DDPG, 2DDPG, DDPG-DQN, and DDPG-TD3 algorithms can all converge the controller's reverse to the desired value (41,000), and the training cycles they need to reach 90% of the desired value do not differ much, but DDPG has a faster training speed and takes less time to reach the steady state.2TD3 and TD3 algorithms have a shorter training rise time than other algorithms, but their training final steady-state values are smaller, which indicates that the hydrogen supply training is still very poor and cannot be used as a control algorithm.For the DQN and 2DQN, the convergence stability values have a large gap with the expected value, which indicates that the overall control effect of the controllers cannot achieve the expected effect well.This is mainly because the action of DQN is discrete and its action value may oscillate around the optimal value in the steady-state operating condition.Additionally, considering that the 2DQN and DDPG-DQN, DDPG and TD3 are similar in structure, only the DQN, DDPG, MDQN (DDPG-DQN), and MTD3 (DDPG-TD3) controllers are studied for detailed comparison in the subsequent study. Controller Comparison Test and Result Analysis After controller training, the control effect is verified using random load currents, and the set current values are shown in Figure 10.To further demonstrate the control performance of the proposed method, the control results of the two other control methods are discussed and compared.The first is feedforward open-loop control, whose prior control quantity is determined by the stack current, calculated by Figure 3c and Equation (14).The second method is fuzzy PID control, whose parameter settings are as shown in Figure 6.Figures 11 and 12 show the control results and expected control values for the control quantities and in each of the six methods.In addition, four parameters are used to measure the control effect of the controllers: the rise time T r (error less than 5%), the maximum overshoot M d , the root mean square error within 2 s RMSE +2s after the abrupt change of operating conditions, and the root mean square error RMSE st when the system reaches stability, which are defined in Equations ( 19) and (20).The calculated results are shown in Table 3, and the value marked in red represents the optimal effect value of a control algorithm in a variety of control algorithms. RMSE where n is the number of sampling steps of the whole process, and x i,real and x i,ref are the actual and expected values of the ith sampling time, respectively.The experimental results show that DQN and MDQN are far inferior to DDPG and MTD3.The MTD3 algorithm has good dynamic characteristics, short rise time, and small overshoot for oxygen supply control, while the coupled DDPG algorithm has good dynamic control for hydrogen supply; when considering the hysteresis of the air compressor, in the control of two-stage differential pressure, it is the anode that follows the cathode, i.e., the hydrogen inflow.HER controlled by the regulating valve on the hydrogen circuit will be affected by the state of the system on the air circuit.In the decoupled control of gas on both sides, the state of the other side is generally not considered, so HER works better in the coupled control.The air circuit belongs to the autonomous control, which is less influenced by the cathode, that is, the state of hydrogen circuit is an irrelevant variable for OER control, so OER is better controlled in the decoupling control, but still not too much better than the coupling control.Although the common DRL algorithm can effectively improve the dynamic response speed of the system, its steady-state performance is far inferior to the common feedforward and fuzzy PID control.FO-DDPG integrates the advantages of DDPG and PID algorithms, improves the dynamic response speed and steady-state performance of the system, and makes the system have better robustness and stability.In a comprehensive comparison, the FO-DDPG algorithm has an overall better control performance. Conclusions In this paper, a DRL controller with continuous state based on fusion optimization was proposed for a PEMFC gas supply system.By controlling the in and out of air and hydrogen, the combined control of two gas flows in the fuel cell gas supply system was realized.A control strategy based on net power optimization and high economy was also introduced in the experiments, and the need for decoupled control of the two gases was also investigated.These control algorithms were compared with feedforward controllers, fuzzy PID and discrete DRL control algorithms DQN, and conventional continuous DRL algorithms DDPG. Conclusions The experimental results show that the FO-DDPG algorithm proposed in this paper has a faster dynamic response and stable static performance compared to the traditional fuzzy PID, DQN, and DDPG algorithms.Specifically, for the two controlled quantities, the dynamic response time is only 0.1 5 s, the overshoot is less than 5%, and the stability error of the control quantity is only about 0.00003.That is, the controller can meet the real-time control requirements of the gas supply system under different load conditions, effectively avoiding the undersupply or oversupply of oxygen and hydrogen, and improving the power and economic efficiency of the system. Conclusions PEMFC is a highly complex system involving many components, and many areas need to be controlled.The research in this paper is limited to ensuring sufficient supply of the reaction gas and is somewhat ideal for environmental settings.In a real fuel cell system, factors such as temperature and humidity inside the stack can affect the electrochemical reaction and the output voltage of the fuel cell, and the bipolar pressure can also affect the transport of the PEM.In future research, other meta-components can be introduced to further improve the efficiency of the fuel cell by constructing a multi-physical quantity multi-dimensional fuel cell model and designing a gas-water-heat-electric coordinated integrated controller to realize the joint control of power, pressure, temperature, and humidity of the fuel cell. Figure 2 . Figure 2. Fuel cell system structure diagram. Figure 3 . Figure 3. Optimum OER and air compressor voltage under different stack currents, where the black points indicate the optimal points: (a) the relationship between OER and the net power output of the fuel cell system under different current requirements, (b) the optimal OER under different current, (c) the optimal air compressor voltage under different current. 4 . Structure of the DRL algorithms. Figure 5 . Figure 5. Overall structure of the controller. Figure 6 . Figure 6.Fuzzy PID parameters: (a-c), (d-f) represent the PID parameters Kp, Ki, and Kd of the fuzzy logic output of OER and HER, respectively. Figure 7 . Figure 7.The weight value of FPID output by fuzzy logic: (a) OER control, (b) HER control. Figure 8 . Figure 8. Reward values during training of OER and HER individual DRL controllers. Figure 9 . Figure 9. Reward values during DRL controller training.(a) Reward changes in relation to episode.(b) Reward changes in relation to time. Figure 10 . Figure 10.Test stack current profile. Figure 11 . Figure 11.Test results of hydrogen excess ratio control: (b-e) are the enlarged figures of (a) near 4 s, 12 s, 16 s, 26 s when the load current changes, respectively. Figure 12 . Figure 12.Test results of oxygen excess ratio control: (b-e) are the enlarged figures of (a) near 4 s, 12 s, 16 s, 26 s when the load current changes, respectively. Anode Cathode Proton Exchange Membrane Gas Diffusion Layer Gas Diffusion Layer Catalyst Catalyst Select action a t = max a Q * (s t , a | θ Q ) according to the current policy and exploration noise Execute action a t and observe reward r t and observe new state s t+1 Store transition tuple (s t , a t , r t , s t+1 Anode Cathode Proton Exchange Membrane Gas Diffusion Layer Gas Diffusion Layer Catalyst Catalyst Algorithm 1 DQN algorithm Initialize action-value function Q random parameters θ Q Initialize target networks θ Q * ← θ Q Initialize replay buffer B for episode = 1, ...M do Initialize a random process N for action exploration Receive initial observation state s 1 for t = 1, ...T do Anode Cathode Proton Exchange Membrane Gas Diffusion Layer Gas Diffusion Layer Catalyst Catalyst θ π Initialize replay buffer B Execute action a t and observe reward r t and observe new state s t+1 Store transition tuple (s t , a t , r t , s t+1 ) in B Sample mini-batch of N transitions (s i , a i , r i , s i+1 ) from B Set y Anode Cathode Proton Exchange Membrane Gas Diffusion Layer Gas Diffusion Layer Catalyst Catalyst for episode = 1, ...M do Initialize a random process N for action exploration Receive initial observation state s 1 for t = 1, ...T do Select action a t = π(s t | θ π ) + N t according to the current policy and exploration noise Table 1 . Action, state, and reward settings in DRL algorithms.∆V cm I st , e HER , ∆e HER , N rcp , ∆N rcp I st , e OER , ∆e OER , V cm , ∆V cm , e HER , ∆e HER , N rcp , ∆N rcp Table 1 . stateI st , e OER , ∆e OER , V cm , Table 2 . DRL training parameters. Table 3 . Control effect parameter values of multiple algorithms, where the red values indicate the best values for each algorithm in the table.

섹션 본문 98문단 · 37,372자

(제목 없음)

1In a proton exchange membrane fuel cell (PEMFC) system, the flow of air and hydrogen is the main factor affecting the output characteristics of the PEMFC, and there is a coordination problem in the flow control of both.To ensure real-time gas supply in the fuel cell and improve the output power and economic benefits of the system, a deep reinforcement learning controller with continuous state based on fusion optimization (FO-DDPG) and a control optimization strategy based on net power optimization are proposed in this paper, and the effects of whether the two gas controls are decoupled or not are compared.The experimental results show that the undecoupled FO-DDPG algorithm has a faster dynamic response and more stable static performance compared to the fuzzy PID, DQN, traditional DRL algorithm, and decoupled controllers, demonstrated by a dynamic response time of 0.15 s, an overshoot of less than 5%, and a steady-state error of 0.00003.

Introduction

2The fuel cell (FC) is considered to be an alternative to traditional fossil energy sources such as coal and petroleum in the 21st century.The FC provides an effective approach to solve the shortage of petroleum energy and environmental pollution and is also related to future energy security and long-term development.According to the different electrolytes, fuel cells can be divided into alkaline fuel cell (AFC), phosphoric acid fuel cell (PAFC), molten carbonate fuel cell (MCFC), solid oxide fuel cell (SOFC), and proton exchange membrane fuel cell (PEMFC).Among them, the PEMFC is the most widely used.

3Compared with fossil energy sources, the PEMFC technology has the following advantages [1]: high energy conversion efficiency, with an expected efficiency of more than 80% [2]; low or even no emissions can be achieved; low noise, high reliability and easy maintenance during operation; and the power generation efficiency is less affected by the load.Therefore, the PEMFC is widely used in many fields such as aerospace, military, electric vehicle, and distributed electricity applications [3].However, fuel cells also have many shortcomings: the fuel cell reaction requires the action of catalysts and has high requirements for catalysts; the use of hydrogen energy as fuel, the storage and transportation of hydrogen energy have safety and stability problems; the output characteristics are soft and need to improve the control performance, reduce the impact on the battery due to load changes and the external environment, and improve the battery life [4,5].

4The safe and efficient operation of the fuel cell cannot be achieved without the operation of its auxiliary system.The auxiliary system regulates the inlet, exhaust, temperature, and humidity of the stack in real-time according to the load demand power to ensure that the stack always operates under the ideal working environment.A complete fuel cell system (FCS) includes a fuel cell stack, gas supply system, temperature control system, humidity control system and energy management system.Among them, the gas supply system includes oxygen supply and hydrogen supply to provide reactants for the electrochemical reaction of the fuel cell, which is converted into electricity through the electrochemical reaction.At the same time, the degree of oxygen and hydrogen supply in the fuel cell largely affects the output power of the fuel cell [6].Therefore, effective control of gases in fuel cells is necessary.

5The oxygen supply to the fuel cell is provided by an air compressor that pressurizes the outside air and feeds it to the stack.Due to the high latency of air compressors and other equipment, under-or over-supply of oxygen may occur during load current changes.Insufficient oxygen supply can lead to a decrease in output voltage and power, permanently damaging the fuel cell; excessive oxygen supply can lead to an increase in parasitic power, reducing the net system output power [7].Therefore, the oxygen flow rate needs to be controlled to ensure the safe and efficient operation of the FCS.In many studies, oxygen excess ratio (OER) is commonly used to measure the degree of oxygen quantity availability, as defined in Equation (5).

6The control core of the air supply system is the regulation of the flow of air into the power stack.The main current air system control strategies are classified according to the control methods: traditional control, advanced control, and intelligent control algorithms.

7Traditional control strategies mainly include feed-forward control and PID control.Feed-forward control establishes the corresponding logic control strategy through off-line testing and empirical knowledge, which has the advantages of simple design and small calculation, but the control effect is single and relatively poor.PID methods are widely used in industrial process control because of their simple structure and high reliability, but they are prone to overshoot and jitter in some cases.In Ref. [8], feed-forward control and PID control were used for PEMFCs, and the coordinated operation of different control methods was simulated to verify the feasibility of the control strategy.Meanwhile, in order to improve the control accuracy and robustness of traditional PID, researchers have successively proposed many improved PID algorithms, such as fuzzy PID and adaptive PID [9].Ref. [10] uses an adaptive fuzzy PID control method to control the gas supply system, which ensures a stable variation of the gas supply system with the change of load power demand and prevents the instability that may be brought by the gas supply system.

8For the nonlinear and time-varying characteristics of the PEMFC gas supply system, advanced control strategies such as adaptive control, robust control, and predictive control have achieved good results.E. S. Kim [11] designed a suitable state feedback controller to improve the response speed and immunity to disturbances of the PEMFC gas supply system.In Ref. [12], a fuzzy generalized predictive controller based on a control-oriented T-S model is designed to control the oxygen excess ratio in the ideal range and effectively suppress the fluctuation caused by the load change.

9Intelligent control mainly uses intelligent algorithms such as neural networks, which have strong robustness and self-learning capability in OER control.M Sedighizadeh [13] proposed an adaptive control strategy based on artificial neural networks to control the PEMFC system to improve the dynamic performance of oxygen flow control.ChunHua Li [14] used a fuzzy adaptive recurrent neural network to model the PEMFC air supply system to prevent the occurrence of oxygen scarcity and improve the system response performance.However, the establishment of neural network models requires a large amount of data support and too much computational effort.

10The structures of hydrogen supply systems can be generally classified as anode blindend type and cyclic type.Studies have shown that the cyclic anode structure has a higher system and stack efficiency when the power is above a certain threshold [15], which has been widely used in recent years.In a circulating hydrogen supply system, the supply of hydrogen is performed by a hydrogen tank, which uses a proportional valve to achieve hydrogen injection and a circulation structure such as a circulation pump to achieve hydrogen recycling.Similar to the OER, the hydrogen excess ratio (HER) has been used to measure the effect of hydrogen flow control, which is defined in Equation ( 4).

11An adequate and effective supply of hydrogen can be ensured by controlling the circulation flow of hydrogen to ensure the effective operation of the electrochemical reaction while improving the utilization of hydrogen and economic efficiency [15].The structure of the hydrogen circuit supply system is relatively simple, and its common control algorithms, including traditional control and predictive control methods, are able to control the inflow and outflow of the hydrogen circuit well.In Ref. [16], the fuel cell hydrogen gas pressure and HER were controlled by a classical proportional-integral differential controller and a state feedback controller, with good tracking and interference resistance results.In Ref. [17], a Markov chain and model predictive control (MPC) method was used to control the fuel cell anode supply system, which further improved the dynamic performance of the anode gas supply system response.Yao Wang [18] designed an adaptive backpropulsion sliding mode (ABSM) controller to control the output mass flow rate of a hydrogen circulation pump, and tested the effectiveness of the ABSM controller by establishing a nonlinear model of the hydrogen supply system and using vehicle driving cycle data from WVUSUB.

12Based on the above discussion, this paper adopts a new control method to solve the air and hydrogen flow control problem of FCS.The proposed method has the advantages of enhanced dynamic response performance and stability performance, thereby improving the output performance and economic benefit of the system.The main contributions of this paper are as follows.

1.

13A simplified hybrid model environment of the fuel cell air and hydrogen circuits is built; 2.

14An optimal flow control strategy based on net power optimization is proposed; 3.

15Deep reinforcement learning controllers based on deterministic policy gradient are proposed to control the oxygen flow and hydrogen flow.The effect of decoupled and coupled controllers is compared; 4.

16A controller that integrates fuzzy PID and DRL algorithms is proposed, which has a faster dynamic response than traditional PID and more stable steady-state performance than DRL algorithms.

17The structure of this paper is listed as follows: Section 2 presents the dynamic mathematical model of the fuel cell gas supply system.In Section 3, the deep reinforcement learning algorithm principle is presented.Section 4 describes the algorithm of controllers proposed in this paper.Simulation results and performance analysis are shown in Section 5. Finally, conclusions are given in Section 6.

Fuel Cell Gas Supply System

18The PEMFC is an electrochemical device that directly converts the chemical energy of gas into electric energy and heat energy by electrochemical reaction.Hydrogen and oxygen (or air) are used as fuel and oxidant of the PEMFC, respectively.Under the action of the proton exchange membrane (PEM) and catalyst, the gases involved in the reaction undergo electrochemical reactions to generate electric energy and heat energy.A schematic diagram of the composition and working principle of a single PEMFC is shown in Figure 1.The PEM divides the PEMFC stack into anode and cathode.In the working process of the battery, the hydrogen at the anode loses two electrons under the action of the catalyst and is oxidized into H + .The generated H + reaches the cathode through the PEM in the form of hydration, and the electrons reach the cathode after working on the load through the external circuit.After oxygen reaches the cathode, under the action of the cathode catalyst, it combines with H + and e − reaching the cathode to generate water.Therefore, the total reaction process of the PEMFC can be described as:

19The output voltage model of the fuel cell reflects its electrical output performance.It is a function of the load current, the temperature in the stack, the partial pressure of the reactants, and the relative humidity of the gas.According to the thermodynamic equations in the standard state and the relevant thermodynamic data, the thermodynamic electromotive force of a single fuel cell in the ideal case can be expressed using the Nernst equation as [19]:

20where P H 2 and P O 2 are the partial pressures of hydrogen and oxygen, respectively, in atm, and T f c is the battery working temperature in K.

21In the working process of the fuel cell, the polarization phenomenon will lead to some inevitable voltage loss, including activation polarization overvoltage V act , ohmic overvoltage V ohm , and concentration polarization overvoltage V conc .The output voltage of a single fuel cell is shown in Equation ( 2), which is small.Therefore, multiple fuel cells are often connected in series to form a stack, and the overall output voltage of the fuel cell stack is obtained by Equation (3).

22where V 0 is the voltage at zero current density in V, i is the current density in A/m 2 , i max is the limit current density.i max , c 1 , c 2 and c 3 are the constants related to the gas pressure and temperature.t m denotes the thickness of the PEM in m, and σ m is the conductivity of the PEM, related to the temperature and membrane.The specific expressions of the relevant parameters are detailed in Ref. [20] and will not be repeated.

23where n represents the number of fuel cells in series.

Fuel Cell Gas Supply System Flow Mathematical Model

24The PEMFC gas supply system includes hydrogen and air supplies.During the operation of the PEMFC, hydrogen and air enter the stack through the high-pressure hydrogen storage tank and air compressor, respectively, and flow along the gas flow channel in the stack to reach each cell.The reacting gas is electrochemically reacted by the electrode catalyst and the PEM, and the residual gas after the reaction is discharged from the stack through the regulating valve and other components.After a certain treatment, it can re-enter the stack for recycling.To better model the gas supply system, the following assumptions are made about the electrochemical reaction process of the fuel cell:

251.

26All gases are ideal gases; 2.

27Air flow, hydrogen flow, temperature, humidity, etc., are controlled separately; 3.

28The temperature inside the stack is uniformly distributed and always remains constant;

294.

30The gas pressure inside the stack is uniformly distributed; 5.

31The stack gas water vapor inside the stack is saturated; the liquid volume also has no effect on the system.

32Based on the above assumptions and further neglecting the influence brought by the reaction gas transport pipeline, mathematical models and simulations of the dynamic description of the supply flow of air on the cathode side and hydrogen on the anode side can be obtained by the equation of state of ideal gas and the law of conservation of mass of matter, respectively.

33HER and OER are used to measure the reasonableness of the anode hydrogen flow and the cathode oxygen flow, respectively, defined as the ratio of gas inflow and reaction:

34where W H 2 ,in and W H 2 ,reacted , W O 2 ,in and W O 2 ,reacted are the mass flows of hydrogen and oxygen into the stack and consumed by the electrochemical reaction in kg/s , respectively.

35where M H 2 and M O 2 are the molar masses of hydrogen and oxygen in kg/mol, respectively.I st is the stack current in A, F is Faraday constant with 96,487 C/mol.

Critical Component Models of the Fuel Cell Gas Supply System

36In the process of controlling the parameters of the fuel supply effect, such as the oxygen ratio and hydrogen ratio of the fuel cell gas supply system, the elements that have a great influence on the control effect include the air compressor and circulating pump.

Air Compressor Model

37The air compressor model is mainly based on the compressor rotation parameters and compressor air flow.The rotational speed dynamics of the air pressure can be modeled based on the rotational parameters:

38where J cp is the rotational moment of inertia of the air compressor in kg•m 2 , ω cp is the rotational speed of the air compressor in rpm, and τ cm and τ cp are the motor driving torque and resistance torque of the air compressor in N•m, respectively.The motor drive torque can be obtained by referring to the static equation of the motor:

39where η cm is the mechanical efficiency of the air compressor motor, k t , k v and R cm are the drive motor constants, i cm is the operating current in A, and v cm is the motor operating voltage in V.

40The resistance torque can be obtained by the thermodynamic equation: (11) where C p is the specific heat capacity constant of air in J/(kg•K), γ is the specific heat capacity at atmospheric pressure, W cp is the air compressor air flow rate, and η cp is the air compressor mechanical efficiency.P sm and P atm are the pressures of the supply pipe and outside air in kPa, respectively.

Recirculating Pump Model

41The working principle of the recirculating pump is similar to that of the air compressor and will not be repeated.At the same time, its recirculating pump pressure ratio and power consumption are small, and the effect of power consumption is no longer considered in this paper.Therefore, this paper only considers the recirculating pump flow model, which is relatively simple and can be calculated by the difference in the data obtained offline, expressed as:

42where W rcp and W 0 are the flow rates at actual and rated speed in kg/s, respectively.N rcp and N 0 are the actual and rated speed of the recirculating pump in rpm, respectively.

Fuel Cell Gas Supply System Model

43Based on the available literature and the above introduction, a model of the fuel cell gas supply system can be built, as shown in Figure 2.

44In this paper, the flow characteristics of air and hydrogen are mainly studied, and the main control elements are the air compressor, the recirculating pump, and some valves.The cooler and humidifier are used to maintain the temperature and humidity inside the cell, which are not studied.The relevant parameters come from Ref. [20], which are not repeated.In addition, considering that in the gas supply system element, the power consumption of other part elements is much lower than that of the air compressor, the net power is simplified to Equation (13).

45where P net , P st and P cm represent the net power, output power, and air compressor power consumption of the system in W, respectively.

Deep Reinforcement Learning

46David Silver has pointed out that 'deep learning + reinforcement learning = general artificial intelligence' [21].Deep reinforcement learning (DRL) is the combination of deep learning (DL) and reinforcement learning (RL).

47DL is a deep machine learning model.Its concept comes from an artificial neural network (ANN), and its depth is reflected in the multiple transformations of features.The commonly used deep learning model is a multilayer neural network.It can automatically learn abstract and essential features from a large amount of training data, realize the approximation of complex functions, and discover the distributed features of data [22,23].

48RL is a special, mechanical learning method that uses model feedback as input and adapts to changes in the model (Environment).It is a method in which an intelligence (Agent) takes an action to interact with the environment to obtain a reward based on its states and finally completes an optimal policy to maximize the reward [24].The basic RL model includes the strategy, reward function, value function, and environment model [25].

49In DRL algorithms, DL refines the data through learning, while reinforcement learning is mainly used to solve the problem of time series decision-making.Through continuous interaction and trial and error with the environment, RL can finally obtain the optimal strategy of a specific task and maximize the cumulative expected return of the task.

50According to the different ways that the deep neural network approaches nonlinear functions, DRL can be divided into value-based methods [26] and policy-based methods [27].The value-based DRL uses deep neural network (DNN) to approximate the reward value function, and the most classical algorithm is the deep Q-learning (DQN) method, whose actions are discrete values, and the algorithm flow is shown in Algorithm 1. Approximating the policy with DNN and finding the optimal policy using the policy gradient method is known as policy-based DRL.The method of the policy gradient has advantages such as better convergence compared to the value function method, an easier strategy exploration process, and the ability to learn stochastic strategies.

Principles of Deep Reinforcement Learning Algorithm Based on Deterministic Policy Gradient

51Deep deterministic policy gradient (DDPG) and Twin Delayed Deep Deterministic Policy Gradient (TD3), typical DRL algorithms based on deterministic policy gradients, are used as the control algorithm for fuel cell gas supply system in this paper.

52In the training process, the DDPG algorithm involves four networks: actor current network π, actor target network π * , critic current network Q, and critic target network Q * .In addition, DDPG uses empirical playback for computing the target Q values.

53TD3 is an extension algorithm of the DDPG algorithm, that proposes three key techniques based on DDPG:

541.

55Dual network: K (usually 2) sets of critic networks are used, and the smallest is taken when calculating the target value, thus suppressing the network overestimation problem; 2.

56Target policy smoothing regularization: when calculating the target value, a perturbation is added to the action of the next state, thus making the value evaluation more accurate; 3.

57Delayed update: the actor network is updated only after every d updates of the critic network, thus ensuring a more stable training of the actor network.

58The overall algorithm flow for the training process of DDPG and TD3 is shown in Algorithm 2, where K and d are both 1 in DDPG and an integer greater than 1 in TD3.

Algorithm 2 DDPG/TD3 algorithm

59Initialize K critic networks Q k (k = 1, 2..., K), and actor network π with random parameters

60Update θ π by the deterministic policy gradient:

61Update target networks:

Adaptive Expectations

62In this paper, the variables related to the control objectives include the OER and the HER.In most studies, their optimal values are set to fixed values of 2 and 1.5 [28], respectively.However, in practice, their desired values are generally set to adaptive values related to the load demand to improve the hydrogen utilization and the output efficiency of the stack.

63In this paper, the hydrogen system adopts a cyclic structure with a high hydrogen utilization rate [28].Moreover, considering that the power consumption of the hydrogen circuit components is much lower than that of the air compressor, it is no longer taken into account in the auxiliary system power consumption in order to simplify the calculation.Therefore, the expected value of the HER satisfies that the hydrogen demand and the pressure difference between the two poles of the stack can be maintained, so it is still set to 1.5, or λ * H 2 = 1.5.For the hydrogen circulation system, the rotation speed of the circulation pump is used to control the circulation amount of hydrogen, and its expected value is shown in Equation ( 14), using Equations ( 6), ( 4) and (12).

64For the oxygen supply system, the net power is mainly affected by the air mass flow rate and the system current during the actual operation, so to improve the efficiency and power output, the maximum net power is set as the target of the expected value of the OER. Figure 3a shows the relationship between the OER λ O 2 and net power at different current values from 100 A to 300 A by offline simulation experiments.At a certain load current, with the increase in λ O 2 , the net power of the system shows a trend of first increasing and then decreasing.

65The control indicator function is obtained by nonlinearly fitting these optimal points (black points in Figure 3b), as shown in the red curve in Figure 3b.The final optimal control reference λ * O 2 is a function of the stack current I st , shown as:

66Additionally, the control quantity related to the overshoot ratio is mainly the compressor voltage, and a stable value of the overshoot ratio under steady-state conditions shows a constant compressor input voltage.Therefore, the value of the compressor voltage corresponding to the best OER λ * O 2 in Equation ( 15) for different load current demands is obtained by offline training, as shown in Figure 3c.

Deep Reinforcement Learning Controller

67The integrated controller for the gas supply system described in this paper has three main control objectives: (1) to ensure proper OER or air flow; (2) to ensure proper HER or hydrogen flow; (3) to ensure the stability of the pressure difference between the two poles of the stack.To further simplify the complexity of the control algorithm, a follower control algorithm is used for the control of the two-pole pressure difference, resulting in a certain coupling between the control of the hydrogen circuit and the oxygen circuit.

68Therefore, the structures of the DDPG and TD3 controller used in this paper are shown in Figure 4, whose agent consists of an actor and a critic network.The DQN controller is similar to Figure 4, except that the agent does not contain the critic network, which is not drawn here.The controller obtains the optimal OER and HER according to the demand load current typed by the outside world and takes the fuel cell gas supply system as the environment of the controller.To better control the two-way gas supply, decoupled and uncoupled DRL control algorithms are designed, respectively.In the decoupled controller, called 2-DRL, there are two agents, which are used to control the hydrogen and the air circuit, respectively.However, in the uncoupled DRL controller, only one agent is used to control two gas supplies at the same time.The relevant parameter settings of the two algorithms are shown in Table 1 and the rewards are defined in Equations ( 16)- (18).Besides, to ensure that the overall complexity of the two DRLs is similar, the network structure of the two agents in 2-DRL is consistent with that in DRL and the number of neurons in each layer is half of that in DRL.

69The setting of the reward function requires several factors to be considered.The first consideration is the effect of the controlled amounts, λ H 2 and λ O 2 .To ensure that the error of the controlled quantity gradually decreases and converges to 0, errors (e OER , e HER ) and their variation(∆|e OER |, ∆|e HER |) need to be considered, as shown in Equations ( 16) and (17).

70where δ represents a very small positive number.

71In addition, to avoid the problem of the action amount changing too much in the actual working process, the influence of the action amount changing value is also considered in the reward function.

72where a i (i = 1, 2) represents the normalized action values of V cm and N rcp respectively.

Deep Reinforcement Learning Controller Based on Fusion Optimization

73To improve the steady-state performance of the controller, a method of DRL and fuzzy PID fusion is introduced.The overall structure is shown in the Figure 5.Among them, the input of the fuzzy logic in the fuzzy PID controller is the error and error variation of OER and HER, and the output is the PID control parameters, as shown in Figure 6.The fusion algorithm adopts the strategy of fuzzy logic, whose input is as shown in Figure 6 and the output is the weight of the fuzzy PID, as shown in Figure 7.

DRL Controller Training and Testing Results

74For the training of the DRL controllers of the fuel cell gas supply system, the relevant parameters used are shown in Table 2.In the training process, to improve the adaptability of the controller to different load currents, the input to the training is a step load current of random amplitude (100-300 A), and the training time is 10 s per cycle.To better compare the control effects of the DQN, DDPG, and TD3 algorithms on the two gas supplies, the DRL algorithm is used to control the air and hydrogen loops separately, and the changes in the average reward values during training are shown in Figure 8.The results show that DDPG has the relatively best control effect for both gases, and its convergence values are close to the expected value (21,000/20,000).DQN has a better control effect for both gases, although it can reach a certain large expected value, but not as good as DDPG, and the convergence values of hydrogen circuit have a larger gap.This is due to the discrete action of action in DQN and the possible oscillation of the control effect under static conditions.TD3 has a better control effect for the air path and requires a shorter number of cycles to reach convergence, while in the hydrogen circuit, the training stability value of TD3 is much smaller than its expected value, which is because the TD3 network has two critic networks.Although too many evaluation networks improve the generalization ability of the controller, the accuracy of the simpler model is also reduced, leading to unsatisfactory control of the hydrogen circuit.Therefore, TD3 correlation will not be used as the control algorithm for the hydrogen circuit in the subsequent study.Therefore, to better compare the control effects of decoupled and uncoupled, DQN, DDPG, and TD3 networks, the average reward value variation during training is further designed to compare the uncoupled DQN and DDPG algorithms, as well as the decoupled 2DQN, 2DDPG, DDPG-DQN, (where DQN is used for oxygen and DDPG for hydrogen circuit) and DDPG-TD3 (where TD3 is used for oxygen and DDPG for hydrogen circuit), as shown in Figure 9.The overall reward value in the decoupled DRL controller is the sum of the reward values in the two agents.As seen, the DDPG, 2DDPG, DDPG-DQN, and DDPG-TD3 algorithms can all converge the controller's reverse to the desired value (41,000), and the training cycles they need to reach 90% of the desired value do not differ much, but DDPG has a faster training speed and takes less time to reach the steady state.2TD3 and TD3 algorithms have a shorter training rise time than other algorithms, but their training final steady-state values are smaller, which indicates that the hydrogen supply training is still very poor and cannot be used as a control algorithm.For the DQN and 2DQN, the convergence stability values have a large gap with the expected value, which indicates that the overall control effect of the controllers cannot achieve the expected effect well.This is mainly because the action of DQN is discrete and its action value may oscillate around the optimal value in the steady-state operating condition.Additionally, considering that the 2DQN and DDPG-DQN, DDPG and TD3 are similar in structure, only the DQN, DDPG, MDQN (DDPG-DQN), and MTD3 (DDPG-TD3) controllers are studied for detailed comparison in the subsequent study.

Controller Comparison Test and Result Analysis

75After controller training, the control effect is verified using random load currents, and the set current values are shown in Figure 10.To further demonstrate the control performance of the proposed method, the control results of the two other control methods are discussed and compared.The first is feedforward open-loop control, whose prior control quantity is determined by the stack current, calculated by Figure 3c and Equation (14).The second method is fuzzy PID control, whose parameter settings are as shown in Figure 6.Figures 11 and 12 show the control results and expected control values for the control quantities and in each of the six methods.In addition, four parameters are used to measure the control effect of the controllers: the rise time T r (error less than 5%), the maximum overshoot M d , the root mean square error within 2 s RMSE +2s after the abrupt change of operating conditions, and the root mean square error RMSE st when the system reaches stability, which are defined in Equations ( 19) and (20).The calculated results are shown in Table 3, and the value marked in red represents the optimal effect value of a control algorithm in a variety of control algorithms.

RMSE

76where n is the number of sampling steps of the whole process, and x i,real and x i,ref are the actual and expected values of the ith sampling time, respectively.The experimental results show that DQN and MDQN are far inferior to DDPG and MTD3.The MTD3 algorithm has good dynamic characteristics, short rise time, and small overshoot for oxygen supply control, while the coupled DDPG algorithm has good dynamic control for hydrogen supply; when considering the hysteresis of the air compressor, in the control of two-stage differential pressure, it is the anode that follows the cathode, i.e., the hydrogen inflow.HER controlled by the regulating valve on the hydrogen circuit will be affected by the state of the system on the air circuit.In the decoupled control of gas on both sides, the state of the other side is generally not considered, so HER works better in the coupled control.The air circuit belongs to the autonomous control, which is less influenced by the cathode, that is, the state of hydrogen circuit is an irrelevant variable for OER control, so OER is better controlled in the decoupling control, but still not too much better than the coupling control.Although the common DRL algorithm can effectively improve the dynamic response speed of the system, its steady-state performance is far inferior to the common feedforward and fuzzy PID control.FO-DDPG integrates the advantages of DDPG and PID algorithms, improves the dynamic response speed and steady-state performance of the system, and makes the system have better robustness and stability.In a comprehensive comparison, the FO-DDPG algorithm has an overall better control performance.

Conclusions

77In this paper, a DRL controller with continuous state based on fusion optimization was proposed for a PEMFC gas supply system.By controlling the in and out of air and hydrogen, the combined control of two gas flows in the fuel cell gas supply system was realized.A control strategy based on net power optimization and high economy was also introduced in the experiments, and the need for decoupled control of the two gases was also investigated.These control algorithms were compared with feedforward controllers, fuzzy PID and discrete DRL control algorithms DQN, and conventional continuous DRL algorithms DDPG.

78The experimental results show that the FO-DDPG algorithm proposed in this paper has a faster dynamic response and stable static performance compared to the traditional fuzzy PID, DQN, and DDPG algorithms.Specifically, for the two controlled quantities, the dynamic response time is only 0.1 5 s, the overshoot is less than 5%, and the stability error of the control quantity is only about 0.00003.That is, the controller can meet the real-time control requirements of the gas supply system under different load conditions, effectively avoiding the undersupply or oversupply of oxygen and hydrogen, and improving the power and economic efficiency of the system.

79PEMFC is a highly complex system involving many components, and many areas need to be controlled.The research in this paper is limited to ensuring sufficient supply of the reaction gas and is somewhat ideal for environmental settings.In a real fuel cell system, factors such as temperature and humidity inside the stack can affect the electrochemical reaction and the output voltage of the fuel cell, and the bipolar pressure can also affect the transport of the PEM.In future research, other meta-components can be introduced to further improve the efficiency of the fuel cell by constructing a multi-physical quantity multi-dimensional fuel cell model and designing a gas-water-heat-electric coordinated integrated controller to realize the joint control of power, pressure, temperature, and humidity of the fuel cell.

Figure 2 .

80Figure 2. Fuel cell system structure diagram.

Figure 3 .

81Figure 3. Optimum OER and air compressor voltage under different stack currents, where the black points indicate the optimal points: (a) the relationship between OER and the net power output of the fuel cell system under different current requirements, (b) the optimal OER under different current, (c) the optimal air compressor voltage under different current.

4 .

82Structure of the DRL algorithms.

Figure 5 .

83Figure 5. Overall structure of the controller.

Figure 6 .

84Figure 6.Fuzzy PID parameters: (a-c), (d-f) represent the PID parameters Kp, Ki, and Kd of the fuzzy logic output of OER and HER, respectively.

Figure 7 .

85Figure 7.The weight value of FPID output by fuzzy logic: (a) OER control, (b) HER control.

Figure 8 .

86Figure 8. Reward values during training of OER and HER individual DRL controllers.

Figure 9 .

87Figure 9. Reward values during DRL controller training.(a) Reward changes in relation to episode.(b) Reward changes in relation to time.

Figure 10 .

88Figure 10.Test stack current profile.

Figure 11 .

89Figure 11.Test results of hydrogen excess ratio control: (b-e) are the enlarged figures of (a) near 4 s, 12 s, 16 s, 26 s when the load current changes, respectively.

Figure 12 .

90Figure 12.Test results of oxygen excess ratio control: (b-e) are the enlarged figures of (a) near 4 s, 12 s, 16 s, 26 s when the load current changes, respectively.

Anode Cathode Proton Exchange Membrane Gas Diffusion Layer Gas Diffusion Layer Catalyst Catalyst

91Select action a t = max a Q * (s t , a | θ Q ) according to the current policy and exploration noise Execute action a t and observe reward r t and observe new state s t+1 Store transition tuple (s t , a t , r t , s t+1

92Algorithm 1 DQN algorithm Initialize action-value function Q random parameters θ Q Initialize target networks θ Q * ← θ Q Initialize replay buffer B for episode = 1, ...M do Initialize a random process N for action exploration Receive initial observation state s 1 for t = 1, ...T do

93θ π Initialize replay buffer B Execute action a t and observe reward r t and observe new state s t+1 Store transition tuple (s t , a t , r t , s t+1 ) in B Sample mini-batch of N transitions (s i , a i , r i , s i+1 ) from B Set y

94for episode = 1, ...M do Initialize a random process N for action exploration Receive initial observation state s 1 for t = 1, ...T do Select action a t = π(s t | θ π ) + N t according to the current policy and exploration noise

Table 1 .

95Action, state, and reward settings in DRL algorithms.∆V cm I st , e HER , ∆e HER , N rcp , ∆N rcp I st , e OER , ∆e OER , V cm , ∆V cm , e HER , ∆e HER , N rcp , ∆N rcp

96stateI st , e OER , ∆e OER , V cm ,

Table 2 .

97DRL training parameters.

Table 3 .

98Control effect parameter values of multiple algorithms, where the red values indicate the best values for each algorithm in the table.

참고문헌 25건

  1. Adaptive Self-Tuning Wavelet Neural Network Controller for a Proton Exchange Membrane Fuel Cell Studies in computational intelligence · Springer Nature · 2010 10.1007/978-3-642-10690-3_11
  2. Pressure control in a PEM fuel cell via second order sliding mode International Journal of Hydrogen Energy · Elsevier BV · 2012 10.1016/j.ijhydene.2012.08.007
  3. Maximum power point tracking of a photovoltaic energy system using neural fuzzy techniques Journal of Shanghai University (English Edition) · Springer Nature · 2009 10.1007/s11741-009-0107-2
  4. EFFICIENCY IMPROVEMENTS BY PULSED HYDROGEN SUPPLY IN PEM FUEL CELL SYSTEMS IFAC Proceedings Volumes · Elsevier BV · 2002 10.3182/20020721-6-es-1901.01511
  5. Neural-PID Control of Air Pressure in Fuel Cells International Conference on Electrical and Control Engineering · 2010 10.1109/icece.2010.1299
  6. 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
  7. Dynamic scheduling of maintenance tasks in the petroleum industry: A reinforcement approach Engineering Applications of Artificial Intelligence · Elsevier BV · 2009 10.1016/j.engappai.2009.01.014
  8. Studies on performance degradation of a direct methanol fuel cell (DMFC) in life test Physical Chemistry Chemical Physics · Royal Society of Chemistry · 2003 10.1039/b313478d
  9. Effect of hydrogen delivery schemes on fuel cell efficiency Journal of Power Sources · Elsevier BV · 2013 10.1016/j.jpowsour.2013.03.090
  10. A review of polymer electrolyte membrane fuel cells: Technology, applications, and needs on fundamental research Applied Energy · Elsevier BV · 2010 10.1016/j.apenergy.2010.09.030
  11. Reinforcement Learning: An Introduction, by Sutton, R.S. and Barto, A.G. Trends in Cognitive Sciences · Elsevier BV · 1999 10.1016/s1364-6613(99)01331-5
  12. Analysis and control of a hybrid fuel delivery system for a polymer electrolyte membrane fuel cell Journal of Power Sources · Elsevier BV · 2008 10.1016/j.jpowsour.2008.09.011
  13. Reducing the Dimensionality of Data with Neural Networks Science · American Association for the Advancement of Science · 2006 10.1126/science.1127647
  14. Pressure, flow and thermal control of a fuel cell system for electrical rail transport 2004 10.1109/isie.2004.1571830
  15. Second order sliding mode control for PEM Fuel Cells 2021 60th IEEE Conference on Decision and Control (CDC) · 2010 10.1109/cdc.2010.5717424
  16. Control of Fuel Cell Power Systems Advances in industrial control · Springer Nature · 2004 10.1007/978-1-4471-3792-4
  17. Deep learning Nature · Nature Portfolio · 2015 10.1038/nature14539
  18. Modeling and control of PEMFC air supply system based on T-S fuzzy theory and predictive control Energy · Elsevier BV · 2019 10.1016/j.energy.2019.116078
  19. Research on Reinforcement Learning Technology: A Review Acta Automatica Sinica · Elsevier BV · 2004
  20. A Hierarchical Predictive Strategy-Based Hydrogen Stoichiometry Control for Automotive Fuel Cell Power System 2021 IEEE Vehicle Power and Propulsion Conference (VPPC) · 2019 10.1109/vppc46532.2019.8952244
  21. Degradation-conscious control for enhanced lifetime of automotive polymer electrolyte membrane fuel cells Journal of Power Sources · Elsevier BV · 2020 10.1016/j.jpowsour.2020.227996
  22. Design of Adaptive Backstepping Sliding Mode-Based Proton Exchange Membrane Fuel Cell Hydrogen Circulation Pump Controller 2020 Asia Energy and Electrical Engineering Symposium (AEEES) · 2020 10.1109/aeees48850.2020.9121527
  23. Recent progress of research and development for fuel cell vehicle application 2009
  24. Adaptive Fuzzy PID for Proton Exchange Membrane Fuel Cell Oxygen Excess Ratio Control 2020 10.1109/ccdc49329.2020.9164264
  25. Effect of type and stoichiometry of fuels on performance of polybenzimidazole-based proton exchange membrane fuel cells operating at the temperature range of 120–160 °C Energy · Elsevier BV · 2021 10.1016/j.energy.2021.121791