Sensors Integrated Control of PEMFC Gas Supply System Based on Large-Scale Deep Reinforcement Learning
간접 관련 수소연료전지 · (5) 연료전지용 수분제어장치(가습기) (7) MEA(막전극접합체)
기본 정보
- 저자
- DOI
- 10.3390/s21020349
- 저널
- Sensors
- 발행년도
- 2021
- 발행기관
- Multidisciplinary Digital Publishing Institute
- 피인용수
- 11
- 라이선스
- cc-by
- 논문 유형
- –
- 언어
- –
- 원문 페이지
- https://doi.org/10.3390/s21020349
- 토픽
- Electrocatalysts for Energy Conversion
- OpenAlex ID
- W3119762117
평가 내용
- 관련도
- 간접 관련
- 사업분야
- 수소연료전지 · (5) 연료전지용 수분제어장치(가습기)
- 부 분야
- (7) MEA(막전극접합체)
- R&D 측면
- 부품·응용 설계
- 확신도
- 0.80
- 근거 용어
- PEMFC, gas supply system, airflow controller, hydrogen flow controller, integrated controller
- 판단 근거
- 논문은 PEMFC의 가스 공급 시스템(공기 및 수소 흐름)을 제어하는 통합 컨트롤러 연구로, 코오롱인더스트리의 수소연료전지 사업 중 가습기(공기 공급 관련) 및 시스템 응용 분야와 연관됩니다.
- R&D 활용 포인트
- PEMFC 시스템 내 가스 유량 제어 최적화 알고리즘을 통해 연료전지용 수분제어장치(가습기) 및 MEA의 운전 효율과 응답성을 개선하는 데 활용 가능합니다.
- 평가 입력
- 초록 1,331자
초록
본문 47,679자
본문 펼치기
섹션 본문 88문단 · 44,965자
(제목 없음)
1Publisher's Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations.Abstract: In the proton exchange membrane fuel cell (PEMFC) system, the flow of air and hydrogen is the main factor influencing the output characteristics of PEMFC, and there is a coordination problem between their flow controls. Thus, the integrated controller of the PEMFC gas supply system based on distributed deep reinforcement learning (DDRL) is proposed to solve this problem, it combines the original airflow controller and hydrogen flow controller into one. Besides, edgecloud collaborative multiple tricks distributed deep deterministic policy gradient (ECMTD-DDPG) algorithm is presented. In this algorithm, an edge exploration policy is adopted, suggesting that the edge explores including DDPG, soft actor-critic (SAC), and conventional control algorithm are employed to realize distributed exploration in the environment, and a classified experience replay mechanism is introduced to improve exploration efficiency. Moreover, various tricks are combined with the cloud centralized training policy to address the overestimation of Q-value in DDPG. Ultimately, a model-free integrated controller of the PEMFC gas supply system with better global searching ability and training efficiency is obtained. The simulation verifies that the controller enables the flows of air and hydrogen to respond more rapidly to the changing load.
Introduction
2The accelerating growth of the global economy in recent years has been accompanied by increasing consumption of fossil fuels and attendant carbon emissions. The environmental pollution caused by traditional fossil fuel energy consumption (represented by oil, gas, and coal) poses an existential threat to humanity and ecosystems. In response, governments and scientists worldwide are directing more resources into renewable energy ('green') technology. Fuel cells that can directly convert chemical energy into electrical energy via chemical reactions are widely recognized as a valuable energy source. Among them, the proton exchange membrane fuel cell (PEMFC) has attracted more focus due to its fast start-up ability, high energy conversion rate, low working temperature, lightweight properties, and resistance to external natural conditions [1].
3The PEMFC system generally includes four parts: gas supply system, thermal management system, water management system, and the energy control system. The gas supply system includes airflow control and hydrogen flow control. The airflow affects the oxygen excess ratio (OER) of the PEMFC. If the airflow is insufficient, oxygen starvation will occur, causing the output voltage of the PEMFC to decline sharply; if the airflow is excessive, oxygen saturation will occur, leading to an increase in the parasitic power, which affects the output characteristics of the PEMFC. Therefore, reasonable control of airflow is required so that the net power of the PEMFC remains stable [2][3][4]. Similarly, hydrogen flow has a significant impact on the output voltage of the PEMFC, in that reasonable hydrogen flow control enables the output voltage to respond timeously to load changes, thus stabilizing the output voltage and power. A large number of previous studies on PEMFC control have focused mainly on control of air flow and hydrogen flow. There are two general consensuses concerning these variables. Firstly, it is widely assumed that, provided that the hydrogen storage is sufficient and the flow control response is rapid, the PEMFC can accurately and rapidly satisfy the airflow demand; secondly, provided that there is a sufficient supply of air and its flow can be controlled rapidly, the PEMFC can meet the demand of the hydrogen flow control system timeously. However, with air or hydrogen supply systems it is often difficult to ensure sufficient gas storage and guarantee instantaneous response at any time because the relationship between gas flow rate and output voltage is non-linear and the response of the output voltage is delayed. Furthermore, the flow of the two gases jointly affects the output voltage and net power of the PEMFC. If the coordination between the two supply systems is insufficient, the output stability of the PEMFC will be seriously affected.
4To solve the above problems, Woon et al. proposed a multi-input multi-output (MIMO) high order sliding mode algorithm to simultaneously control the air flow and hydrogen flow of the PEMFC. They considered the coordination between the control of the two gas streams, enabling the output voltage to remain in a stable state under different load conditions [5]. However, the high-frequency discontinuous switching items in the sliding mode controller make the actual level of control by the system discontinuous over time. As a result, the sliding mode controller will inevitably cause unfavorable chattering problems to affect the output voltage of the PEMFC. Therefore, this method cannot be applied to an actual PEMFC system. Sankar et al. put forward a sliding mode observer (SMO)-based nonlinear multivariable sliding mode controller (SMC) and globally linearizing controller (GLC) for a PEMFC; it employs a non-linear observer to improve the control performance of the algorithm and reduce chattering, thus realizing comprehensive optimal control of oxygen and hydrogen [6]. However, this method is complicated and to date has not proved to be a practical real-world solution. Wang et al. adopted a robust controller which regulates the flow of oxygen and hydrogen. Their PEMFC was modeled as a MIMO system, with air and hydrogen flow rates as the inputs and stack voltage and current as the outputs, which enables stable output voltage as well as lower hydrogen consumption [7,8]. Nevertheless, the steady-state accuracy of their PEMFC system proved to be weak since the robust controller generally does not work in the optimal state, and the underlying calculations are complicated. Thus, it is difficult for this method to be implemented in practice. On the basis of the designed state-space mathematical model, He et al. used a proportion integral (PI) controller and state feedback controller to control the flow rate of hydrogen and air respectively, so as to realize the coordinated control of the two gases [9]. However, their PI controllers and feedback controllers are incompatible with nonlinear systems (i.e., PEMFC), and their experimentation did not consider the control performance in achieving optimal control. Drawing on expert system and fuzzy control theory, Almeida et al. proposed a comprehensive intelligent controller that comprehensively considers the coordination of four systems: gas control, thermal management, water management, and energy control. However, the method cannot easily be applied to real-world systems due to the inefficient search ability and absence of self-learning in traditional expert systems [10]. Additionally, Almeida et al. proposed a method for realizing optimal control of PEMFC gas streams based on the parameterized cerebella model articulation controller (P-CMAC), whereby the voltage can be controlled by manipulating the flow rates of hydrogen and air [11]. This control strategy amounts to an approximate optimal control strategy; nevertheless, the neural network used in this method was a simple artificial neural network, resulting in extremely low robustness of the controller. In addition, the specific performance of this method was determined by the quality of the samples during offline training. Therefore, the method is lacking in self-correction ability, and it cannot ensure optimal control due to insufficient training.
5Although the aforementioned algorithms enable coordinated control of the gas system, most of them do not employ a simple, high-performance control strategy, which would realize optimal control of the output voltage as well as appropriate oxygen excess rate. Thus, Sensors 2021, 21, 349 3 of 19 a simple model-free control algorithm is required so that a simpler, more practical method for controlling the gas supply system of the PEMFC can be realized, one which ensures coordination between hydrogen and oxygen supplies in the control process. The deep deterministic policy gradient (DDPG) algorithm in deep reinforcement learning is a modelfree algorithm [12][13][14]. It combines the perception of deep learning with the decisionmaking ability of reinforcement learning and is characterized by strong adaptive ability, timely response, and accurate control. In contrast with conventional control methods, DDPG permits full interaction with the environment [15,16] and can be used to address the uncertainty in nonlinear control. Besides, controllers based on DDPG can realize MIMO control and are now being applied to various control fields [17][18][19]; to date, however, a working DDPG-based controller for a PEMFC has yet to be successfully demonstrated.
6Furthermore, the DDPG algorithm still has many shortcomings, which make it an unsuitable candidate for the field of precision control. First of all, there is the problem of over-estimation of the Q value, causing the algorithm to fall into the local optimal solution, causing the final control strategy to deviate and yield poor control performance or even oscillation. Second, the DDPG algorithm is not sufficiently robust during offline training, and so the controller that directly uses this algorithm as a control algorithm has very low robustness. Third, the DDPG algorithm requires a long offline training period, which greatly limits its potential application in the industry.
7In order to address these problems, several scholars have carried out a number of research studies. In response to the first problem, Fujimoto et al. proposed the twin delayed deep deterministic policy gradient (TD3) algorithm, whereby they introduced a policy delay update technique [20]. Their experimental results were moderately successful; however, they opined that solving Q value overestimation remains an intractable problem. Regarding the second problem, Horgan et al. proposed a new algorithm operating on a distributed reinforcement learning framework, which enables greater exploration ability [21]. Their results show that this algorithm did improve the algorithm's exploration ability; however, it also learned more low-value samples, boosting offline training costs. Addressing the third problem, Schau et al. proposed a prior experience replay technique [22], which can sort samples according to their value and preferentially select samples with high value for training. Nevertheless, to date, the algorithm which only employs this technique remains ineffective. Another technique is the edge-cloud collaborative framework, a form of collaborative computing that has recently caught the imagination of the academic community. This framework can be used as a hardware architecture for deep reinforcement learning to obtain better computing power and to increase the exploration ability and optimization speed of the algorithm. A distributed reinforcement learning framework can be embedded in such an architecture and used to obtain better training results [23].
8In view of the fact that DDPG suffers from the problem of Q value overestimation as well as the problem of low exploration ability (ascribed to its single exploration ability, in that it employs only one actor network to explore the environment), a new algorithm which can solve these problems and achieve better coordination control of air and hydrogen flow is proposed. A number of improvements to the original DDPG algorithm are presented. In this paper, an integrated gas supply system controller for a PEMFC based on the ECMTD-DDPG algorithm is presented. This paper makes the following novel contributions to the field:
91. An integrated controller based on deep reinforcement learning is proposed. This is a combined controller that integrates the flow controllers for air and hydrogen. It can formulate the control strategy according to different PEMFC states and output the motor voltage of the air compressor and hydrogen flow simultaneously. Hence, the real-time control requirements of the PEMFC under different operating conditions can be met.
102. An ECMTD-DDPG algorithm is proposed for the aforementioned framework. This is a distributed deep reinforcement learning algorithm with the edge-cloud collaborative framework. It is designed with multiple edge explorers and a cloud learner. Second, the edge exploration policy is adopted in edge explorers in order to increase exploration effi- ciency. Third, the classified experience replay mechanism is introduced in order to improve training efficiency. Fourth, the cloud learner employs clipping multi-Q learning, delay policy updating, and smooth regularization of target policy to solve overestimation of Q value in DDPG. Finally, a control algorithm with better robustness and adaptability is proposed. The simulation results below demonstrate that the proposed method can effectively control the output voltage of the PEMFC and ensure stable operation of the system.
The Principle of the Gas Supply System
11The chemical reactions are shown in Figure 1. First, hydrogen enters the PEMFC polar plate flow channel from the anode inlet. (The polar plate flow channel is attached to the anode gas diffusion layer.) Then, the hydrogen passes through the gas diffusion layer to the catalytic layer and undergoes a reduction reaction under the action of the catalyst, separating into hydrogen ions and electrons. The proton exchange membrane has selective permeability, which allows hydrogen ions to pass through whilst blocking the electrons. Therefore, hydrogen ions can pass through the proton exchange membrane to reach the cathode, while electrons can only reach the cathode through the external circuit. The flow of electrons in the external circuit constitutes direct current and supplies power to the load. At the cathode, the hydrogen ions passing through the proton exchange membrane and the electrons arriving through the external circuit merge, before arriving at the cathode entrance. The oxygen passing through the cathode gas diffusion layer to the catalytic layer is combined with hydrogen, and the oxidation reaction occurs under the action of the catalyst to generate water and heat, which are then removed [1,2].
The Dynamic Control Model of the Voltage
12In the PEMFC, the pressure of hydrogen is subject to the influence of the inlet flux of hydrogen, the outlet flux of hydrogen, and the flux of hydrogen being consumed by the chemical reaction. According to the principle of conservation of matter, the ideal gas state can be expressed as follows:
13where V a is total volume of flow field in the anode, R is the gas constant, T is the working temperature, P H2 is the partial pressure of hydrogen, m H2,i is the inflow flux of hydrogen, K a is the flux coefficient in the anode, P H2,B is the hydrogen removal pressure, N is the number of single fuel cells, F is the Faraday constant, and i is the load current. Likewise, the oxygen pressure is influenced by the inlet flux of air, the outlet flux of air and the flux of air consumed by the chemical reaction. According to the continuity principle, the masses of the two kinds of components in the cathode, oxygen and nitrogen, are balanced. Based on the conservation of matter, the continuity equation for oxygen and nitrogen can be expressed as follows:
14The OER is shown as follows:
15where m O 2 and m N 2 are the masses of oxygen and nitrogen respectively; W O 2,in and W N 2,in represent the flows of oxygen and nitrogen entering the stack; W O 2,out and W N 2,out are the flows of oxygen and nitrogen flowing out of stack; and, W O 2,ret is the flow of oxygen consumed due to reaction in the stack. The oxygen pressure characteristic equation can be obtained as follows:
16where V c is the total volume of flow field in the anode, P O 2 is the partial pressure of hydrogen, K c is the flux coefficient in the anode, and P O 2 ,B is the hydrogen removal pressure. The thermodynamic electromotive force is expressed as follows:
17where E Nernst is the thermodynamic electromotive force. The ohmic overpotential is as follows:
18where V ohmic is the ohmic overpotential, R M is the equivalent membrane impedance of the proton membrane, and R is the impedance that prevents the proton from passing through the proton membrane. There exists an electrical double layer in the PEMFC [1,2].
19If equivalent capacitors C are connected to both ends of the polarization resistor in parallel, the PEMFC will exhibit excellent dynamic properties. The differential equation of a single fuel cell is as follows:
20where v d is the total polarization overvoltage.
21Having taken into account the thermodynamic properties, mass transfer and dynamic properties, the output voltage of the PEMFC can be expressed as follows:
Supply Pipe
22Taking into account the principles of conservation of mass and conservation of energy, the supply pipe in the cathode can be represented by the following equations: where m sm is the mass of air in the supply pipe, p sm is the pressure in the supply pipe, γ is the heat ratio coefficient of air, R a is the gas constant of air, V sm is the supply pipe volume, T cp is the temperature at which the compressor presses in air, T sm is the temperature of the air in the supply pipe, W cp is the flux through the compressor, and W sm is the mass flux through the supply pipe. For the supply pipe, the flow rate of the gas flowing into the pipe is equal to the flow rate of the air compressor W cp , and the flow rate of the gas flowing out is W sm, out . Since the pressure difference between the supply pipe and the cathode is relatively small, the flow rate of the gas flowing out is expressed as follows:
23where k sm,out is the outlet flow constant of the supply pipe, and P ca is the cathode gas pressure.
Return Pipe
24The change of temperature needs to be considered in the design of the return pipe. The gas temperature T m in the return pipe is equal to the temperature of the gas leaving the cathode. Pressure p rm of return pipe can be obtained based on the l conservation of mass and the ideal gas law, i.e.,
25where W ca is the air flux in the stack cathode, W rm is the air flux at the outlet of the return pipe, and V rm is the volume of the return pipe.
26Since the pressure drop between the return manifold and the atmospheric is relatively large, the equations of return manifold exit flow are as follows: (14) and (15) where A T,rm is the return manifold throttle area, C D,rm is the return manifold throttle discharge coefficient, p rm is the return manifold pressure, and T sm is the return manifold temperature, p atm is atmospheric pressure.
Air Compressor
27The dynamic properties of the compressor can be described using a rotation model [1], i.e.,
28where J cp is the rotational inertia of the compressor; ω cp is the speed of the compressor; τ cm is the motor torque of the compressor; τ cp is the load torque of the compressor; k t , R cm , and k v are the motor constants; η cm is the mechanical efficiency of the motor; v cm is the control voltage of the motor; C p is the specific heat capacity of air; η cp represents the efficiency of the compressor; and p atm and T atm represent the atmospheric pressure and temperature, respectively.
The Control Principle of Gas Supply System
29Research has indicated that there is an important correlation between the output voltage of the system and the flux of reactant gas. Since the output voltage of PEMFC is mainly affected by hydrogen flux and air flux, during modeling, both air flux and hydrogen flux are controlled by an intelligent controller based on EILMMA-DDPG. In this paper, a dynamic model of PEMFC is set up. The control objective is to keep output voltage and OER of PEMFC to stabilize at the optimal value v st * and W O2 * by controlling the voltage of the motor for air compressor and the hydrogen flux. The control framework is shown in Figure 2.
Deep Reinforcement Learning
30Deep reinforcement learning (DRL) is a kind of machine learning that is not modelbased. This method aims at maximizing the accumulation of long-term rewards and allows agents to continuously learn the optimal actions in different states. In deep reinforcement learning, there are two types of commonly used algorithms. One type is value-based DRL, which includes deep Q learning (DQN) and deep double Q learning (DDQN). This type of algorithm is generally used to deal with problems with discrete action spaces. The advantage of value-based DRL is that convergence is fast and it does not fall easily into a local optimal solution. The other is policy-based DRL, which includes DDPG and TD3, etc. Policy-based DRL is often used to deal with problems with continuous action space, and is therefore a commonly used algorithm; however, this algorithm can fall easily into a local optimal solution.
31In recent years, deep reinforcement learning algorithms have continued to develop, and distributed deep reinforcement learning using computer parallel computing capabilities have been proposed. The chief characteristic of distributed reinforcement learning is to use each agent in the system as the main body of learning. These agents learn the response policy to the environment and the mutual cooperation policy. In addition, they use the CPU or GPU of multiple computers to realize better computing processing power, so as to improve the performance of the algorithm. Moreover, they usually adopt the model of centralized training and decentralized execution. All agents in the algorithm correspond to a leader for centralized training such as the APEX-DDPG algorithm [22].
32Edge cloud collaboration is a form of collaborative computing and is a relatively mature technology model.
33An edge-oriented edge cloud collaboration approach is used in this paper, in that the Cloud is only responsible for initial training work, and the model is downloaded to the edge after the training is completed. Computing tasks are performed at the edge. The edge cloud collaboration framework is introduced in distributed deep reinforcement learning. In the proposed ECMTD-DDPG framework, the leader in distributed reinforcement learning is the cloud. It contains a variety of neural networks and is responsible for the initial centralized training model. The edge is the edge explorer, and each edge explorer contains a neural network. These networks are responsible for collecting data to assist the cloud for training while performing their own computing tasks in the online application process. During training, the role of DRL is to use a large amount of computer computing power at the edge to continuously search for optimization and exploration, and to deliver the explored information to the cloud for centralized training. Following the initial training, the DRL agent can directly make decisions through the trained model. Through the combination of such technologies, the integration of distributed reinforcement learning and edge-cloud collaboration technology is realized. Related common algorithms and edge-cloud collaboration frameworks are described below.
DDPG
34In [14], a DDPG algorithm is proposed, which is a deterministic policy algorithm. DDPG employs two deep neural networks, namely, policy network and value function network. They correspond to policy function π φ j (s) and value function Q θ (s, a) respectively, with their parameters of φ and θ. DDPG is designed to find an optimal policy π φ which maximizes the expected return value J(φ) = E s i ∼p π ,a i ∼π [R 0 ]. It employs the loss function to update the critics as Formula (17) and employs the policy gradient to update the actor policy as Formula (18)
35where the µ(s|θ µ is the policy which has the parameter of θ µ , L is the loss function, y i is the target values.
SAC
36SAC, which is developed based on DDPG, is a stochastic policy gradient algorithm. Its typical feature is that entropy regularization is introduced to improve the randomness of action selection in the training process. For a policy of SAC, the greater the entropy, the higher the randomness of action selection. The expression of entropy is as follows:
37Then, the expression of optimal policy of SAC algorithm is as follows:
38SAC algorithm adopts five neural networks, namely, policy network, two Q networks, and two V networks. Among them, the policy network outputs actions, the state value network V(s) outputs the value of current state, the target state value network outputs the value of next state, and two action value networks Q 1 (s, a), Q 2 (s, a) output the value of action selection.
Clipped Multi-Q Learning
39Inspired by double deep Q-learning (DDQN) [12], ECMTD-DDPG employs the current actor network to select the optimal action and uses the target critic network to evaluate the policy. This process is encapsulated by Formula (21): In DDPG, the target actor network and the target critic network adopt the soft update mechanism [14], which establishes similarity between the current network and the target network. This, however, makes it hard to effectively separate the action selection from the policy evaluation. Therefore, the clipped double Q-learning method is adopted to calculate the target value, as expressed in Formula (22):
40The Cloud leader in ECMTD-DDPG employs an independent actor network and three critic networks. The actor network π φ 1 is updated according to the first critic network, and the target values y t 2 and y t 3 of other critic networks are equal to y t 1 .
Policy Delayed Updating
41The Cloud leader of ECMTD-DDPG updates the actor network after the critic network is updated for d times, so as to ensure that the actor network can be updated with low Q value error and thus improve the updating efficiency of the actor network.
Smooth Regularization of Target Policy
42ECMTD-DDPG introduces a regularization method to reduce the variance of the target, as expressed by Formula (23):
43At the same time, by adding a random noise to the target policy and averaging on mini-batch, smooth regularization is realized:
Distributed Training Method Based on Edge-Cloud Collaborative Framework
44(1) Edge computing and cloud computing Cloud computing is a centralized service, which has a large number of computing resources. All data is transmitted to the cloud computing center for processing, but it is difficult to ensure the timeliness and computing speed because of mass data.
45Edge computing is a distributed computing architecture, which decomposes largescale services that are originally handled by central nodes and distribute them to edge nodes. The purpose is to fully mobilize the computing power of network terminals, deal with computing problems more quickly and accurately in real time and reduce the cloud data communication.
46Edge computing and cloud computing supplement each other. Specifically, cloud computing is a unified leader responsible for big data analysis of long-term data, while edge computing focuses on real-time processing and execution.
47(2) Computing architecture By referring to the above computing architecture, ECMTD-DDPG algorithm adopts a distributed reinforcement learning and training framework based on edge-cloud collaboration. There are two roles in the algorithm. The first role is the edge explorer based on the multi-exploration principle, which corresponds to the edge computing terminal in the edge-cloud collaborative framework. It acts to realize distributed exploration of the environment, so as to obtain more abundant training samples. The edge explorer includes 24 DDPG-edge explorers, 8 SAC-edge explorers, and 8 control algorithm edge explorers (CA-edge explorers) corresponding to different CPUs. They have fast computing speed and can realize real-time sampling.
48Another role in the algorithm is a cloud leader, which includes two public experience pools, among which the cloud leader includes three critics and one actor, corresponding to one GPU. The cloud leader deals with a large amount of data in the public experience pools by collecting mini-batch and obtains the optimal control strategy by training. The parameter updating is slow without updating the neural network in real time.
49In this paper, DDPG-edge explorer architecture includes only one actor network, and each has its own network model as well as environment. Different DDPG-edge explorer adopts different exploration principles, including greedy strategy, Gaussian noise, and Ornstein-Uhlenbeck (OU) noise. In different DDPG-edge explorers, the actor network adopts different exploration policies. The exploration policy of actor network in 8 edgeexplorers is set as greedy strategy, which is named ε-DDPG-edge-explorers, that is, any action is selected in the action space with a certain probability.
50The optimization policy of the actor network in 8 DDPG-edge explorers is set as OU noise, which is named OU-DDPG -edge-explorer. Different OU-DDPG-edge-explorers adopt random OU noise with different variance.
51The optimization policy of the actor network in 8 DDPG-edge explorers is set as Gaussian noise, which is named Gaussian-DDPG-edge explorer. Different Gaussian-DDPGedge explorers adopt random Gaussian noise with different variance.
52By adopting the exploration schemes based on the above different principles, the randomness and diversity of the explored samples can be increased.
53SAC-edge explorer contains a complete SAC agent architecture, different network models, and environments, as described in Section 3.2.2. SAC-edge explorer adopts its own policy for exploration in different environments and puts the samples obtained from exploration into its own experience pool and the public experience pools in cloud leader. In addition, SAC-edge explorer regularly draws samples from its own experience pool for training and updates its own parameters according to the Formula (18).
54CA-explorer has a control algorithm with different principles. By interacting with different environments, it can generate corresponding demonstration samples and guide cloud leader to learn.
55A variety of edge explorers explore the environment in parallel. First, DDPG-edge explorer and SAC-edge explorer generates training samples e i DDPG = (s t i-DDPG , a t i-DDPG , r t i-DDPG , s t+1 i-DDPG ) and e i SAC = (s t i-SAC , a t i-SAC , r t i-SAC , s t+1 i-SAC ) based on their own environments, and CA-explorer generates the demonstration sample e i CA = (s t i-CA , a t i-CA , r t i-CA , s t+1 i-CA ) based on the environment. The conversion experience is added to two public experience pools according to the standard. Then, cloud leader draws mini-batch from the public experience pool according to the classification experience replay mechanism and keeps learning. Finally, the actor network in DDPG-edge explorer regularly updates its network parameters according to the latest network of actor from cloud leader.
Guided Exploration Policy-Based Imitation Learning
56In imitation learning, agents utilize human expert demonstration samples to improve their training efficiency. In order to increase the effect of human experts in the demonstration, the imitation learning proposed in this paper is to imitate the control strategy of which the parameters have been artificially regulated and considered to have optimized collaboration. The control output and data received by the controller in CA-edge explorer will be converted to the demonstration sample e i CA = (s t i-CA , a t i-CA , r t i-CA , s t+1 i-CA ) which is stored in the public experience pool.
57As shown in Figure 3, different CA-edge explorers adopt different control algorithms, including PID, fuzzy PID, PSO-optimized fuzzy PID (artificially setting air flow controller parameters and PSO-optimized hydrogen flow control parameters), fractional-order PID (FOPID), adaptive PID, fuzzy adaptive PID and fuzzy control, which are respectively named PID-CA-explorer, FPID-CA-explorer, PSO-FPID-CA-explorer, FOPID-CA-explorer, APID-CA-explorer, FAPID-CA-explorer, and FC-CA-explorer. These CA-explorers only collect samples and do not need to receive any information from the cloud leader. They provide diversified learning samples for the cloud leader. The specific algorithm flow is shown in Figure 4.
Classified Experience Replay
58In cloud leader, two independent public experience pools are employed for storing samples. When the network model is initialized, all samples in these two public experience pools are cleared. During training, samples collected by DDPG-edge explorer and SAC-edge explorer are put into experience pool 1, and samples collected by CA-edgeexplorer are stored in experience pool 2. In the pre-learning, with respect to pool 1, the probability of getting nξ samples is ξ. In pool 2, the probability of obtaining n(1-ξ) samples is (1-ξ).
59In order to enable agents to get more demonstration samples generated by CAexplorer in the early stage of training and learn more samples collected by DDPG-edge explorer as well as SAC-edge explorer in the later stage, the probability increases gradually with the increase of episodes, as shown in Formula (29).
60In cloud leader, two independent public experience pools are employed for storing samples. When the network model is initialized, all samples in these two public experience pools are cleared. During training, samples collected by DDPG-edge explorer and SACedge explorer are put into experience pool 1, and samples collected by CA-edge-explorer are stored in experience pool 2. In the pre-learning, with respect to pool 1, the probability of getting n ξ samples is ξ. In pool 2, the probability of obtaining n (1-ξ) samples is (1-ξ).
61In order to enable agents to get more demonstration samples generated by CA-explorer in the early stage of training and learn more samples collected by DDPG-edge explorer as well as SAC-edge explorer in the later stage, the probability increases gradually with the increase of episodes, as shown in Formula (29).
620.7 episodes < 1000 0.8 1000 < episodes < 2000 0.9 2000 < episodes < 3000 1 episodes > 3000 (29)
Design of ECMTD-DDPG Integrated Controller
63The integrated controller of the gas supply system described in this paper mainly has two control objectives: (1) to ensure proper OER or air flux; (2) to ensure stable output voltage under the condition of proper OER. The integrated controller indirectly controls the OER and output voltage of PEMFC by simultaneously controlling the motor voltage of air compressor and the flow of hydrogen according to the control error of air flow and output voltage in the system as well as the related states. The control interval is 0.01 s. The specific control framework, state space, and action space are shown in Figure 5.
Action Space
64The action space is set as shown in Formula (30).
65[ ] max max ( ) / 100 ( ) / 100
66The action space is set as shown in Formula (30).
67where the t is the discrete time, U(t) is the motor voltage of air compressor; U max is the upper limit of the motor voltage of the air compressor; L(t) is the hydrogen flow; and L max is the upper limit of hydrogen flow.
State Space
68State refers to the control error between air flow and ideal air flow of the input controller (e o2 (t)), (W(t)), (e v (t)), its integral to t and output voltage v(t), state space is shown in Formula (31).
69where the e O 2 (t) refers to the control error between air flow and ideal air flow of the input controller, t 0 e O 2 (t) refer to the e O 2 (t) integral to t, W(t) refer to the air flow. e v (t) refer to the control error between output voltage and output voltage reference value of input controller.
Selection of Reward Function
70The reward function is expressed as follows:
71where the β means the control reward item. According to the state of e o2 (t) and e v (t), agents are given a proper positive reward.
Simulation
72The parameters of the PEMFC in the simulation are from the reference [24] which is based on the real experimental data of FORD P2000 vehicle with 75 kW PEMFC [25][26][27]. The working temperature of PEMFC is considered to be approximately constant which is 353 K. In addition, the gases in the PEMFC are fully humidified. The simulation software package used is MATALB/Simulink version 9.9.0 (R2020b). The pre-learning parameters are shown in Table 1.
Pre-Learning
73To ensure the randomness and diversity of samples obtained, the step load current with different amplitudes (0-200 A) is added for training, and the training interval of each episode is 10 s. The training diagram is exhibited in Figure 6. In Figure 6, the curve represents the average value of rewards in the episode corresponding to algorithms. Among them, the learning speed of Ape-X-DDPG, TD3, and DDPG algorithms is slow, and the learning process has significant fluctuations. In contrast, ECMTD-DDPG has a more stable learning process and a higher final average reward value, indicating that ECMTD-DDPG with edge exploration policy can obtain the optimal solution with a higher value. Meanwhile, due to the distributed exploration method, a large variety of explorers simultaneously explore the optimal solution, making ECMTD-DDPG converge to the optimal solution earlier. This demonstrates that the distributed training method can improve the quality of the trained solution.
Online Application
74Two conditions (step load and stochastic load) are used in simulation to verify the effectiveness of the method. Besides, the reinforcement learning (RL) integrated controller (such as Ape-X-DDPG [21], TD3 [20], and DDPG [14] controller), the conventional controller (such as PSO optimized fuzzy-PID (PSO-fuzzy-PID)), fuzzy PID controller (fuzzy-PID), PSO-optimized PID(PSO-PID) controller, and PID controller are introduced as comparisons.
Step Load Condition
75(1) As presented in Figure 7a-d, the ECMTD-DDPG controller can adapt to a rapid change of OER and output voltage with small overshoot and short dynamic response time compared with all comparative algorithms. Besides, it has fast response, small overshoot, short stabilization time, and does not cause oxygen saturation or starvation in the air flow control. In contrast, the control performance of conventional control algorithms is lower, and the stabilization time of OER is longer.
76(2) According to the result of the conventional controller in Table 2, their OER steady time is up to 1.09 times of ECMTD-DDPG, and their output voltage steady time can reach 0.224 s, which is more than 9.6667 times of ECMTD-DDPG. The output voltage overshoot of conventional controllers is all higher than 0.06%, which is more than 20 times that of the ECMTD-DDPG and up to 148.8 times that of ECMTD-DDPG. This is because the serious discordance between controllers leads to the slow response and oscillation in the process of disturbance and easily causes severe instability of the stack voltage.
77(3) Furthermore, according to the result of the RL controller in Table 2, the OER steady time of some RL controllers exceeds 4 s, and their output voltage steady time is up to 0.5 s, which is more than 16.7 times of ECMTD-DDPG. Moreover, the output voltage overshoot of other RL controllers are all greater than 0.096%, which is more than 32 times that of the ECMTD-DDPG and up to101 times that of ECMTD-DDPG. Consequently, the ECMTD-DDPG controller has a smaller overshoot and faster response rate compared with other RL controllers. Particularly, the control performance of some RL controllers, such as the DDPG controller, is worse than conventional controllers since the DDPG controller does not have robustness to adapt to every load condition. However, the ECMTD-DDPG controller can have better control performance than all the other controllers.
78controller can have better control performance than all the other controllers. This is because the exploration policies of Ape-X-DDPG, TD3, and DDPG are too narrow, resulting in convergence to the local optimal solution. Meanwhile, ECMTD-DDPG has been improved to obtain a control policy with better performance. It can be observed by carefully analyzing that the ECMTD-DDPG controller significantly improves the efficiency of algorithm exploration by adopting the distributed edge-cloud collaborative training framework in the training to make full use of all the computing power of This is because the exploration policies of Ape-X-DDPG, TD3, and DDPG are too narrow, resulting in convergence to the local optimal solution. Meanwhile, ECMTD-DDPG has been improved to obtain a control policy with better performance. It can be observed by carefully analyzing that the ECMTD-DDPG controller significantly improves the efficiency of algorithm exploration by adopting the distributed edge-cloud collaborative training framework in the training to make full use of all the computing power of GPU and CPU. Additionally, there is no coordination problem between controllers in the control process.
79Similarly, it can be observed from Figure 7e-f that the ECMTD-DDPG controller can also ensure the stability of net power in the course of change load. Therefore, the ECMTD-DDPG controller has a better control performance and stability under the condition of step load.
Stochastic Load Condition
80Simulation is performed with stochastic load adding to the system in the simulation to verify the robustness and control performance of the ECMTD-DDPG controller. The simulation time is 50 s. The load current is shown in Figure A1 of Appendix A. The results are illustrated in Figure 8a-f.
81As indicated in Figure 8a-d, the ECMTD-DDPG controller has extremely high adaptive ability and robustness. By replacing the conventional dual-controller structure with agent that can realize MIMO control, it can achieve the coordination between different controllers in the gas supply system and automatically make the optimal decision in the current state according to the state of PEMFC, realizing millisecond decision-making of control. Therefore, the proposed algorithm can still output proper OER under stochastic load condition and ensure stable control over the output voltage to achieve better control performance. Particularly, the DDPG controller exhibits completely different control performance under different load conditions because the DDPG controller does not have robustness; this may lead to great overshoot or longer steady time of OER and output voltage.
82Under stochastic load condition, the ECMTD-DDPG controller can still realize stable regulation and accurate track of output voltage (Figure 8a-b). Thus, the change in output power is further stabilized (Figure 8e-f).
83To sum up, ECMTD-DDPG controller has the characteristics of short response time and rapid response in gas supply control under stochastic load disturbance. step load.
84Simulation is performed with stochastic load adding to the system in the simulation to verify the robustness and control performance of the ECMTD-DDPG controller. The simulation time is 50 s. The load current is shown in Figure A1. The results are illustrated in Figure 8a As indicated in Figure 8a-d, the ECMTD-DDPG controller has extremely high adaptive ability and robustness. By replacing the conventional dual-controller structure with agent that can realize MIMO control, it can achieve the coordination between different controllers in the gas supply system and automatically make the optimal decision in the current state according to the state of PEMFC, realizing millisecond decision-making of control. Therefore, the proposed algorithm can still output proper OER under stochastic load condition and ensure stable control over the output voltage to achieve better control performance. Particularly, the DDPG controller exhibits completely different control performance under different load conditions because the DDPG controller does not have ro-
Conclusions
85(1) In this paper, an integrated controller for PEMFC gas supply system control is presented. The original airflow controller and hydrogen flow controller are combined using a deep reinforcement learning algorithm, realizing the coordination between controllers in the gas supply system.
86(2) For this framework, the ECMTD-DDPG algorithm is proposed. In this algorithm, the edge exploration policy is adopted, suggesting that the edge explorers including DDPG algorithm, SAC algorithm, and conventional control algorithms are utilized to conduct distributed exploration in the environment, so as to improve the exploration efficiency. Moreover, the classified experience replay mechanism is introduced to improve training efficiency. Besides, clipped multi-Q learning, delay policy updating, and smooth regularization of target policy are combined with the cloud centralized training policy to address the overestimation of Q-value in DDPG. Finally, an adaptive reinforcement learning control algorithm with better global searching ability and training efficiency is obtained, ensuring stable output voltage and OER by realizing MIMO control in PEMFC.
87(3) According to the simulation results, it is concluded that ECMTD-DDPG integrated controller can meet the real-time control requirements in PEMFC gas supply control system under different load conditions. It has small overshoot and can effectively avoid sudden change of output voltage, as well as problems of oxygen saturation and starvation. Thus, it can more efficiently control the output voltage of PEMFC. Institutional Review Board Statement: Not applicable.
Informed Consent Statement: Not applicable.
88Data Availability Statement: Data sharing not applicable. No new data were created or analyzed in this study. Data sharing is not applicable to this article.
참고문헌 27건
- Performance analysis and improvement of a proton exchange membrane fuel cell using comprehensive intelligent control International Conference on Electrical Machines and Systems · 2008
- Performance improvement of a PEMFC system controlling the cathode outlet air flow Journal of Power Sources · Elsevier BV · 2007 10.1016/j.jpowsour.2007.01.053
- 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
- Multivariable robust control of a proton exchange membrane fuel cell system Journal of Power Sources · Elsevier BV · 2007 10.1016/j.jpowsour.2007.11.051
- Feedback-Linearization-Based Nonlinear Control for PEM Fuel Cells IEEE Transactions on Energy Conversion · Institute of Electrical and Electronics Engineers · 2008 10.1109/tec.2007.914160
- 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
- System identification and robust control of a portable proton exchange membrane full-cell system Journal of Power Sources · Elsevier BV · 2007 10.1016/j.jpowsour.2006.11.040
- The Development of Ford's P2000 Fuel Cell Vehicle SAE technical papers on CD-ROM/SAE technical paper series · 2000 10.4271/2000-01-1061
- Experimental Validation of a PEM Fuel-Cell Reduced-Order Model and a Moto-Compressor Higher Order Sliding-Mode Control IEEE Transactions on Industrial Electronics · Institute of Electrical and Electronics Engineers · 2009 10.1109/tie.2009.2029588
- Modeling and control for PEM fuel cell stack system 2002 10.1109/acc.2002.1025268
- Three-Dimensional Transport Modeling for Proton Exchange Membrane(PEM) Fuel Cell with Micro Parallel Flow Field Sensors · Multidisciplinary Digital Publishing Institute · 2008 10.3390/s8031475
- Prioritized Experience Replay arXiv (Cornell University) · Cornell University · 2015
- Control of Fuel Cell Power Systems Advances in industrial control · Springer Nature · 2004 10.1007/978-1-4471-3792-4
- Neural Optimal Control of PEM Fuel Cells With Parametric CMAC Networks IEEE Transactions on Industry Applications · Institute of Electrical and Electronics Engineers · 2005 10.1109/tia.2004.836135
- Sliding mode observer based nonlinear control of a PEMFC integrated with a methanol reformer Energy · Elsevier BV · 2017 10.1016/j.energy.2017.08.028
- Distributed Prioritized Experience Replay arXiv (Cornell University) · Cornell University · 2018 10.48550/arxiv.1803.00933
- Addressing Function Approximation Error in Actor-Critic Methods arXiv (Cornell University) · Cornell University · 2018 10.48550/arxiv.1802.09477
- Energy Management Strategy for a Hybrid Electric Vehicle Based on Deep Reinforcement Learning Applied Sciences · Multidisciplinary Digital Publishing Institute · 2018 10.3390/app8020187
- Rotor resistance and excitation inductance estimation of an induction motor using deep-Q-learning algorithm Engineering Applications of Artificial Intelligence · Elsevier BV · 2018 10.1016/j.engappai.2018.03.018
- Control Strategy of Speed Servo Systems Based on Deep Reinforcement Learning Algorithms · Multidisciplinary Digital Publishing Institute · 2018 10.3390/a11050065
- Hierarchical Intermittent Motor Control With Deterministic Policy Gradient IEEE Access · Institute of Electrical and Electronics Engineers · 2019 10.1109/access.2019.2904910
- Human-like autonomous car-following model with deep reinforcement learning Transportation Research Part C Emerging Technologies · Elsevier BV · 2018 10.1016/j.trc.2018.10.024
- Continuous control with deep reinforcement learning arXiv (Cornell University) · Cornell University · 2016
- A Time-Driven Data Placement Strategy for a Scientific Workflow Combining Edge Computing and Cloud Computing IEEE Transactions on Industrial Informatics · Institute of Electrical and Electronics Engineers · 2019 10.1109/tii.2019.2905659
- Deep-Reinforcement-Learning-Based Autonomous Voltage Control for Power Grid Operations IEEE Transactions on Power Systems · Institute of Electrical and Electronics Engineers · 2019 10.1109/tpwrs.2019.2941134
- Automatic Generation Control Based on Multiple Neural Networks With Actor-Critic Strategy IEEE Transactions on Neural Networks and Learning Systems · Institute of Electrical and Electronics Engineers · 2020 10.1109/tnnls.2020.3006080
- 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