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

Identification of Equivalent Circuit Parameters for Proton Exchange Membrane (PEM) Electrolyzer Engineering Models

간접 관련 수소연료전지 · (7) MEA(막전극접합체) (6) PEM(고분자전해질막)

기본 정보

저자
  1. Xinke Mao — School of Electrical Engineering, Xinjiang University, Ürümqi, China
  2. Yizhi Tian — School of Electrical Engineering, Xinjiang University, Ürümqi, China
  3. Aimei Yang — Goldwind Science and Technology Company Ltd., Ürümqi, China
  4. Gaohang Zhang — School of Electrical Engineering, Xinjiang University, Ürümqi, China
DOI
10.1109/access.2024.3358456
저널
IEEE Access
발행년도
2024
발행기관
Institute of Electrical and Electronics Engineers
피인용수
11
라이선스
cc-by-nc-nd
논문 유형
–
언어
–
원문 페이지
https://doi.org/10.1109/access.2024.3358456
토픽
Fuel Cells and Related Materials
OpenAlex ID
W4391216323

평가 내용

관련도
간접 관련
사업분야
수소연료전지 · (7) MEA(막전극접합체)
부 분야
(6) PEM(고분자전해질막)
R&D 측면
분석·모델링
확신도
0.80
근거 용어
Proton Exchange Membrane (PEM) Electrolyzer, equivalent circuit model, parameter identification, heat losses, Nafion
판단 근거
이 논문은 수전해 장치(PEM Electrolyzer)의 성능 예측을 위한 등가 회로 모델링 및 파라미터 식별 알고리즘을 다루고 있습니다. 이는 코오롱인더스트리의 수소연료전지(PEMFC) 사업과 직접적인 제품군은 다르나, 핵심 소재인 Nafion(PEM)의 거동 분석 및 시스템 모델링 원리가 상호 연관됩니다.
R&D 활용 포인트
PEM 수전해 및 연료전지 시스템의 열 손실 및 전기적 특성 모델링 기법을 활용하여, 연료전지용 막(Membrane) 및 MEA의 운전 상태 예측 및 제어 알고리즘 고도화에 적용 가능합니다.
평가 입력
본문 98,589자 중 30,032자 발췌

초록

This paper addresses the problem of underestimated temperature measurements in practical proton exchange membrane (PEM) electrolyzer engineering due to heat losses by enhancing the existing second-order RC equivalent circuit model of PEM electrolyzers. We present a novel engineering circuit model for PEM electrolyzers, incorporating the effects of heat losses from gases and pipelines. The objective is to enhance the model's ability to predict electrolyzer performance and align control strategies with the realities of engineering practice. However, the PEM electrolyzer model is complex, being time-varying and nonlinear due to multi-physics field coupling. The parameters of the equivalent circuit are changed by the electrical energy input and its own state. To tackle the problem of parameter variation, firstly, a recursive identification algorithm is employed to estimate the internal equivalent circuit parameters of the engineering model. Then, the additional resistance is fitted according to the relationship between heat loss and current to complete the engineering circuit model identification. Finally, using MATLAB to construct an engineering model and validate the effectiveness of the proposed identification algorithm.

본문 98,589자

본문 펼치기
Date of publication xxxx 00, 0000, date of current version xxxx 00, 0000. _Digital Object Identifier 10.1109/ACCESS.2022.Doi Number_ # Identification of Equivalent Circuit Parameters for Proton Exchange Membrane Electrolyzer(PEM) Engineering Models XINKE MAO <sup>1</sup> , YIZHI TIAN <sup>2</sup> , AIMEI YANG <sup>3</sup> , and GAOHANG ZHANG <sup>4</sup> 1School of Electrical Engineering, Xinjiang University, Wulumuqi, 830000, China 2School of Electrical Engineering, Xinjiang University, Wulumuqi, 830000, China 3Goldwind Science&Technology Co.,Ltd, Wulumuqi, 830000, China 4School of Electrical Engineering, Xinjiang University, Wulumuqi, 830000, China Corresponding author: Yizhi Tian (e-mail: torsionscale@163.com). “This work was supported by the Natural Science Foundation of Xinjiang Uygur Autonomous Region(2022D01C364)and the Key R&D Program of Xinjiang Uygur Autonomous Region(2022B01016).” ABSTRACT This paper addresses the problem of underestimated temperature measurements in practical proton exchange membrane (PEM) electrolyzer engineering due to heat losses by enhancing the existing second-order RC equivalent circuit model of PEM electrolyzers. We present a novel engineering circuit model for PEM electrolyzers, incorporating the effects of heat losses from gases and pipelines. The objective is to enhance the model's ability to predict electrolyzer performance and align control strategies with the realities of engineering practice. However, the PEM electrolyzer model is complex, being timevarying and nonlinear due to multi-physics field coupling. The parameters of the equivalent circuit are changed by the electrical energy input and its own state. To tackle the problem of parameter variation, firstly, a recursive identification algorithm is employed to estimate the internal equivalent circuit parameters of the engineering model. Then, the additional resistance is fitted according to the relationship between heat loss and current to complete the engineering circuit model identification. Finally, using MATLAB to construct an engineering model and validate the effectiveness of the proposed identification algorithm. INDEX TERMS Proton exchange membrane (PEM), Engineering circuit mode, Parameter identification, Recursive identification algorithm, Curve fitting, System simulation. I. INTRODUCTION Due to the increasing demand for global energy supply and the growing significance of environmental and climate issues, green, low-carbon, and sustainable development has gained worldwide prominence. Hydrogen, owing to its environmental friendliness, high energy density, and wide range of sources, is regarded as a promising energy source [1]. Hydrogen production methods include fossil fuel-based production, industrial byproduct utilization, and water electrolysis. Among these methods, water electrolysis stands out as the cleanest. As the installed capacity of renewable energy continues to rise, the integration of renewable energy and electrolysis technology is set to emerge as the predominant approach for producing green hydrogen in the future [2]. Water electrolysis technology encompasses various techniques: alkaline electrolysis (AEL), proton exchange membrane electrolysis (PEM), solid oxide electrolysis (SOEC), and anion exchange membrane electrolysis (AEM). Among these, PEM electrolysis technology features high power density, exceptional electrolysis efficiency, superior hydrogen purity, rapid system response, and great flexibility. It is well-suited to accommodate the intermittent, stochastic, and fluctuating nature of renewable energy generation. As a result, PEM electrolysis has garnered extensive attention in both the research and industrial sectors [3-4]. Nafion excels as a Proton Exchange Membrane (PEM), enhancing PEM electrolysis cell performance with superior proton conductivity, chemical stability, mechanical flexibility, water management capabilities, and widespread commercial availability [5]. Developing an accurate model for a PEM electrolyzer is crucial for researchers to investigate and analyze significant issues such as design, control, evaluation, and more under different operating conditions. Lzmit utilized experimental data to construct a PEM electrolyzer circuit model, deducing the relationship between input electrical energy and hydrogen production rate [6]. Damien Guilbert extending from steadystate circuitry, considered abrupt changes in current and employed numerical algorithms to fit capacitance and resistance parameters, resulting in a dynamic circuit model [7]. Jian Dang constructed a transient model for the PEM electrolyzer using differential equations and equivalent activation overpotential [8]. Ángel Hernández-Gómez further optimized the differential equations for cathode and anode activation overpotentials, forming a static-dynamic adaptive model [9]. Although the models developed by literature [6-9], effectively capture the I-V relationship of the PEM electrolyzer, they do not adequately reflect the physical and chemical principles of the internal components. In recent years, emerging electrochemical models have built upon the basis of equivalent circuit models, introducing enhancements like dynamic sub-models and thermodynamic sub-models. Such models further elucidate operational mechanisms, offering reasonable explanations for electrode polarization and mass transfer processes within the PEM electrolyzer. The model established by García-Valverde considers the influence of temperature on the PEM electrolyzer, but it is relatively straightforward and does not incorporate the effect of pressure [10]. Z. Abdin considered concentration overpotentials but encountered difficulties in estimating parameters like electro-osmotic drag [11]. Tevfik Yigit modeled the entire PEM electrolyzer system, encompassing water circulation and cooling systems [12]. E. Afshari delved deeper into mass transfer processes involving gases and water, including gas crossover phenomena and water transport [13]. While electrochemical models for PEM electrolyzers effectively simulate polarization and mass transfer processes, these models are built upon experimental PEM electrolyzer foundations and do not account for heat losses in practical engineering contexts [10-13]. Since the parameters of the PEM electrolyzer are changed by the input electrical energy and its own state, it is necessary to employ identification methods to estimate these real-time changing parameters. Identification methods primarily fall into two categories: numerical identification algorithms and heuristic optimization algorithms. Rahul Khajuria employed the honey badger algorithm for parameter identification of seven parameters in the PEM electrolyzer cell. A comparison with heuristic algorithms such as PSO and GWO demonstrated the superiority of the honey badger algorithm [14]. Somayeh Togh utilized the Taguchi algorithm to optimize parameters and obtain the optimal working conditions [15]. Rahul Khajuria applied metaheuristic algorithms to identify six unknown parameters of the PEM electrolyzer [16]. While heuristic algorithms often demonstrate superior adaptability to avoid local optima, their reliance on empirical knowledge and intuition introduces variability in results across different runs, lacking a guarantee of solution accuracy. In contrast, numerical algorithms, with their rigorous mathematical foundations, prove invaluable in scientific computations and precision-demanding engineering applications. In this paper, we employ a multi-innovation least squares identification algorithm to identify the equivalent circuit parameters of a PEM electrolyzer. This algorithm improves the convergence speed problem of numerical algorithms while avoiding the local optimization problem of heuristic algorithms. To facilitate more convenient measurement of PEM electrolyzer data in the experimental environment, independent drain and outlet ports were set up, each equipped with temperature measurement holes. However, in practical engineering scenarios, to ensure internal pressure within the PEM electrolyzer, it is designed as a sealed container, with the air outlet and water outlet combined into a single outlet. The oxygen produced is discharged along with the circulating water through the anode outlet, while the hydrogen generated is released through the cathode outlet along with a small amount of circulating water. The gas discharged with the circulating water carries a non-negligible amount of heat, and the circulating water also generates a non-negligible amount of energy loss in the pipeline; however, the experimental model does not consider the aforementioned heat loss. Therefore, based on the electrochemical model, this paper introduces a model tailored for engineering applications. The model equates the heat losses in gas and circulating water to an external additional resistor within the framework of a second-order RC circuit. It employs a recursive identification algorithm to estimate internal equivalent circuit parameters and utilizes a curvefitting method to model the external additional resistor. Finally, the reliability of the engineering model and the accuracy of the identification method are validated through simulation experiments. This enhances the predictive capability of the PEM electrolyzer's behavior in practical engineering scenarios, offering valuable insights for control system design. II. EQUIVALENT CIRCUIT MODEL OF PEM ELECTROLYZE Constructing an equivalent circuit model for a PEM electrolyzer is a prerequisite for characterizing its electrochemical properties and studying control strategies. However, due to structural differences between PEM electrolyzers used in experimental settings and practical engineering scenarios, their corresponding equivalent circuit models are also different. Case (a) in Fig. 1 illustrates the schematic diagram of a circulating water system for a PEM electrolyzer in an experimental environment. In this setup, the generated hydrogen, oxygen, and circulating water are discharged separately through the cathode outlet, anode outlet, and water outlet, respectively. Additionally, temperature measurement ports are present in both the cathode and anode. While the circulating water supply system of the PEM electrolyzer in actual engineering, as shown in case (b) of Fig. 1, cathode circulating water and hydrogen exit jointly from the cathode outlet, while anode circulating water and oxygen exit together. FIGURE 1. Circulating water supply system for PEM electrolyzer in experimental setting (a) and engineering (b) The circulating water supply system equipment for the PEM electrolyzer in the practical engineering context includes one PEM electrolyzer, one water tank, two gaswater separators, one water pump, one tee, and some silicone tubes, as shown on the right side of Fig 1. When the system is running, the deionized water passes through the water inlet, the pole plate flow field, and the porous transport layer to the anode side of the membrane electrode, and is decomposed into oxygen, electrons, and protons under the action of electric energy and catalyst. Some of the oxygen and deionized water travel through the anode outlet and pipeline to the gas-water separator. The separated deionized water is directed to the water tank via the three-way valve. On the cathode side, electrons flow through the membrane electrode and electrode plate, returning to the external circuit to provide the driving force for the electrolytic reaction. Protons and a small amount of deionized water traverse the proton exchange membrane to reach the cathode side. In the presence of catalysts, protons combine with electrons from the external circuit to generate hydrogen gas. The generated hydrogen gas, accompanied by a small amount of deionized water, passes through the porous transport layer and the bipolar plate flow field to reach the cathode outlet. This mixture then travels through the pipeline to the gas-water separator, where the separated hydrogen gas is collected in a hydrogen storage unit. The deionized water passes through the three-way valve and enters the water tank. _A. STRUCTURE AND EQUIVALENT CIRCUIT OF PEM_ _ELECTROLYZER BASED ON EXPERIMENTAL_ _ENVIRONMENT_ The commonly used equivalent circuit model of the PEM electrolyzer is the second-order RC circuit model [7,9,17], which can simulate the voltage distribution and dynamic characteristics of the PEM electrolyzer in the experimental environment. The overall operating voltage of the equivalent circuit of the PEM electrolyzer in the experimental environment consists of reversible voltage _U_ _rev_, cathode activation overvoltage _U_ _act_, ohmic overvoltage _U_ _ohm_, and the expression is as follows: _U_ _cell_  _U_ _rev_  _U_ _act_ . _c_  _U_ _act_ . _a_  _U_ _ohm_ (1) The equivalent circuit model corresponding to (1) is illustrated in Fig. 2. The reversible voltage _U_ _rev_ signifies the fundamental voltage required for the electrolysis of water, while the Ohmic resistance _Rohm_ characterizes the resistance generated by protons passing through the proton exchange membrane and the hindrance of current by the electrode plates. _C_ 1 and _C_ 2 represent the equivalent capacitance of the cathode and anode, respectively, induced by the double-layer effects at the cathode and anode. _R_ 1 is the cathode resistance, representing the resistance causing Gibbs energy and heat loss at the anode, while _R_ 2 is the anode resistance, representing the resistance causing heat loss at the cathode. The time constants <sup></sup> 1 and 2 are used to denote the time required for the dynamic behavior of the cathode and anode in the PEM electrolyzer. FIGURE 2. Equivalent circuit of PEM electrolyzer The reversible overpotential _U_ _rev_ is the minimum voltage required for the electrolysis of water, representing the smallest voltage necessary to convert electrical energy into chemical energy. It is derived from the Nernst equation [11]. r _ev_  1.229  0.9103( _Tcell_  _T_ 0 )  _<u>RT</u>_ 2 _Fcell_ ln( _<u>pH</u>_ <u>2</u> _p_ <u>(</u> _Hp_ 2 _<u>OO</u>_ <u>2</u> <u>)0.5</u> ~~)~~ _U_ r _ev_  1.229  0.9103( _Tcell_  _T_ 0 )  _<u>RT</u>_ 2 _Fcell_ ln( _<u>pH</u>_ <u>2</u> _p_ <u>(</u> _Hp_ 2  1.229  0.9103( _Tcell_  _T_ 0 )  _<u>RTcell</u>_ ln( _<u>pH</u>_ <u>2</u> <u>(</u> _<u>pO</u>_ <u>2</u> <u>)</u> ~~)~~ (2) r _ev_  1.229  0.9103( _Tcell_  _T_ 0 )  _<u>RTcell</u>_ ln( _<u>pH</u>_ <u>2</u> <u>(</u> _<u>pO</u>_ <u>2</u> <u>2</u> _<u>O</u>_ <u>2</u> _H_ 2 _O_ 2 Where _R_ is the ideal gas constant, _Tcell_ is the operating temperature of the electrolyzer, F is the Faraday constant, products _PH_ 2 and hydrogen _PO_ 2 representand oxygenthe partialrespectively,pressures ofandthe _PH_ gas2 _O_ _PH_ 2 and productsrepresents hydrogenthe partialandpressureoxygenof waterrespectively,at the cathodeand _P_ and _H_ 2 _O_ anode. <sup>_T_</sup> 0 signifies the external environmental pressure. Activation overvoltage is generated by electrochemical polarization. It signifies a voltage shift due to the sluggishness of electrochemical reactions, which is required to maintain the motion of protons and electrons. It can be mathematically expressed using the Butler-Volmer equation: _U_ _act_  _U_ _actan_  _U_ _actcat_   _<u>RTan</u>_ _F_ sinh 1(2 _i_ 0, _<u>i</u>_ _an_ )   _<u>RTcat</u>_ _F_ sinh 1(2 _i_ 0, _<u>i</u>_  _U_ _actan_  _U_ _actcat_  _<u>RT</u>_ sinh 1( _<u>i</u>_ )  _<u>RT</u>_ sinh 1( _<u>i</u>_ ) (3) _act_  _U_ _actan_  _U_ _actcat_ sinh 1( _<u>i</u>_ )  _<u>RT</u>_ sinh 1( _<u>i</u>_ ) <u>2</u> _i_ 0, _an_  _cat_ _F_ <u>2</u> _i_ 0, _cat_ 1( _<u>i</u>_ )  _<u>RT</u>_ sinh 1 _an_ _F_ <u>2</u> _i_ 0, _an_ _cat_ _F_ <u>2</u> _i_ 0, _cat_ Where _i_ is the current density,,  _cat_ and  _an_ are the cathode and anode charge transfer coefficients, and _i_ 0, _cat_ and _i_ 0, _an_ are the cathode and anode exchange current densities. The cathode and anode equivalent time constants <sup></sup> 1 and 2 are estimated as follows [9]:  _cat_  1.1562 exp  <u>(</u> _<u>Icell</u>_ <u></u> <u>4.2672)2</u>     0.09487    _an_  0.1 _cat_ 1.1562 exp  <u>(</u> _<u>Icell</u>_ <u></u> <u>4.2672)2</u>   0.606  0.09487   <u>(</u> _<u>I</u>_  _cat_  1.1562 exp  _cat_  1.1562 exp  _<u>Icell</u>_ (4) plates, _Wc_ represents the width of the flow field channel, and _H_ _p_ 1 and _H_ _p_ 2 respectively denote the thickn _Ws_ ess of the cathode and anode electrode plates as well as the height of the flow field channel.  _eff_ represents the effective resistance of the gas diffusion layer. _L_ is the length of the electrolysis cell, _W_ is the width of the electrolysis cell, _H_ _e_ is the width of the porous transport layer, and  _el_ and  respectively denote the resistance and porosity of the gas diffusion layer for the cathode and anode. The resistance of the proton exchange membrane is given by [15]: _Rme_   _<u>mm</u>_ (8) 0.1  _an_  0.1 _an_ _cat_ Then, by relating the time constants to the resistances, the equivalent capacitance of the cathode and anode can be obtained:  _cat_  _C_ 1  _R_ 1  _C_ 1   _<u>U</u>_ _<u>actcat</u>_    _icell_    _an_  _C_ 2  _R_ 2  _C_ 2  _<u>U</u>_ _<u>actan</u>_    _icell_  _cat_  _C_ 1  _R_ 1  _C_ 1   _<u>U</u>_ _<u>actcat</u>_  1 _R_ 1 _C_ 1 _cell_ Where  _m_ is the thickness of the proton exchange membrane and  _m_ is the proton exchange membrane conductivity. An empirical formula is provided as follows [17]: _an_  _C_ 2  _R_ 2  _C_ 2  _<u>U</u>_ _<u>actan</u>_ (5)   _<u>U</u>_ _C_ 1  _R_ 1  _C_ 1    _i_  _<u>U</u>_ _C_ 2  _R_ 2  _C_ 2   _i_ 2 _R_ 2 _C_ 2 _cell_ In Fig. 3, the Ohmic overpotential encompasses the overpotential arising from the hindrance of protons by the proton exchange membrane and the overpotential stemming from the impedance caused by the bipolar plates and gas diffusion layers to the flow of electrons. The expressions are as follows: <u>1</u> <u>1</u>  _me_  (0.005139 0.00326)exp(1268( 303 _Tcell_ ~~)~~ ) (9) <u>1</u> <u>1</u> _me_  (0.005139 0.00326)exp(1268( 303 _Tcell_ ~~)~~ ) _U_ _ohm_  _Rohm_  _iel_  ( _Rel_  _Rpl_  _Rme_ ) _iel_ (6) FIGURE 3. PEM electrolyzer ohmic resistance distribution In Equation (6), _Rpl_, _Rel_, and _Rme_ respectively denote the resistances imposed on electron transport by the electrode plates, the porous transport layer, and the proton exchange membrane. These can be expressed as [13]:  _Rplan_ .1  <u></u> _<u>plan</u>_ <u>(</u> _LHWs_ _p_ 1 _<u>Wc</u>_ <u>)</u> _Rplan_ .2   _cat_  _Rplcat_ .1  <u></u> _<u>pl</u>_ <u>(</u> _LHWs_ _p_ 1 _<u>Wc</u>_ <u>)</u> _Rplcat_ .2    _Relan_  <u></u> _<u>eff</u>_ _<u>H</u>_ _<u>e</u>_ _Relcan_  <u></u> _<u>eff</u>_ _<u>H</u>_ _<u>e</u>_  _LW_ _LW_  _eff_  <u></u> _<u>el</u>_ <u>1.5</u>  (1) _plan_ .1  <u></u> _<u>plan</u>_ <u>(</u> _LHWs_ _p_ 1 _<u>Wc</u>_ <u>)</u> _Rplan_ .2  <u></u> _LHplanWp_ 2 _<u>s</u>_ _plcat_ .1  <u></u> _catpl_ <u>(</u> _LHWs_ _p_ 1 _<u>Wc</u>_ <u>)</u> _Rplcat_ .2  <u></u> _LHcatpl_ _<u>Wp</u>_ 2 _<u>s</u>_ <u>(</u> _<u>Ws</u>_  _<u>Wc</u>_ <u>)</u> _Rplan_ .1  <u></u> _<u>plan</u>_ <u>(</u> _LHWs_ _p_ 1 _<u>Wc</u>_ <u>)</u> _Rplan_ .2  <u></u> _LHplanWp_ 2 _<u>s</u>_ _Rplcat_ .1  <u></u> _catpl_ <u>(</u> _LHWs_ _p_ 1 _<u>Wc</u>_ <u>)</u> _Rplcat_ .2  <u></u> _LHcatpl_ _<u>Wp</u>_ 2 _<u>s</u>_ <u></u> _<u>plan</u>_ <u>(</u> _<u>Ws</u>_  _<u>Wc</u>_ _an_ <u></u> _<u>plan</u>_ <u>)</u> .1 _LH_ _p_ 1 _Rpl_ .2 _LH_ _p_ 2 <u>(</u> _<u>Ws</u>_  _<u>Wc</u>_ <u>)</u> <u></u> _catpl_ <u>(</u> _<u>Ws</u>_  _<u>Wc</u>_ _cat_ <u></u> <u>)</u> .1 _LH_ _p_ 1 _Rpl_ .2 _LH_ _p_ 2 (7) Where λ represents the wetness of the proton exchange membrane, and it can be empirically expressed as:  0.08533 <sup>_T_</sup> _c_  6.77632 (10) The above model represents a PEM electrolyzer cell in an experimental environment. Due to the presence of temperature measurement holes in the experimental setup and the separate discharge of circulating water and gas, the temperature measured at these holes is considered the electrolyzer cell temperature, and any temperature deviation can be considered negligible. However, in engineering applications, PEM electrolyzers experience significant heat losses that cannot be ignored. Therefore, the model developed in the experimental environment is not suitable for practical engineering applications, and there is a need to establish an equivalent circuit model that is appropriate for engineering scenarios. _B. MODEL STRUCTURE AND EQUIVALENT CIRCUIT OF_ _PEM ELECTROLYZER BASED ON ENGINEERING_ _PRACTICE_ There are two main differences between the PEM electrolyzer in actual engineering and the one in the experimental environment. Firstly, in the engineering setup, the PEM electrolyzer is a sealed container and does not have temperature measurement holes, necessitating temperature measurements at the gas-water separator outlet, which results in some heat loss through the pipelines. Secondly, in the experimental model, the water temperature is approximated as the temperature of the PEM electrolyzer, without accounting for the heat within the gases. The above two points indicate that the model in the experimental setting deviates significantly from the actual project. Temperature is a crucial factor influencing the performance of PEM electrolyzers. Parameters such as thermal equilibrium voltage, proton exchange membrane conductivity, and exchange current density are significantly _Relan_  <u></u> _LWeff_ _<u>H</u>_ _<u>e</u>_ _Relcan_  <u></u> _LWeff_ _<u>H</u>_ <u></u> _<u>eff</u>_ _<u>H</u>_ _<u>e</u>_ _can_ <u></u> _elan_  _<u>eff</u>_ _<u>H</u>_ _<u>e</u>_ _Relcan_  _<u>eff</u>_ _<u>H</u>_ _<u>e</u>_  _eff_  (1 _<u>el</u>_ )  _eff_  _<u>el</u>_ <u>1.5</u> (1) In Equation (7), where  _plan_ and  _catpl_ represent the resistivity of the two electrode plates, respectively. denotes the width of the flow field channel supporting the electrode affected by temperature variations [7]. The PEM electrolyzer model developed under laboratory conditions does not account for the heat in the gases and the heat dissipation through pipelines, which leads to a discrepancy between the measured temperature and the actual temperature in real engineering applications. If temperature data with certain deviations are used for simulating, predicting, and controlling engineering processes, it can lead to reduced hydrogen production efficiency, at best. At worst, it can result in damage to components such as the membrane electrode. In order to make the model compatible with actual temperature for engineering measurements, we introduce an engineeringspecific model. and the molar mass of water transferred from the anode side to the cathode side through the proton exchange membrane (via processes like electrodialysis and diffusion). <sup>_T_</sup> 0 <sup>and</sup> _Tcellan_ represent room temperature and the anode temperature of the electrolyzer, respectively. The anode heat is calculated by subtracting the heat generated by the anode electrical energy from the heat of the anode outlet drainage and exhaust, and then the anode temperature is reverse-calculated using the heat calculation formula: ###  Q  allan  Q  outan  ## Tcellan   t 1 t 2  CH 2 tO 1 t 2 N  QH  anall 2 anO, out  Q  outanCO  2 dtN  O 2 ##  t 1 t 2  Q  allan  Q   t 1 t 2  CH 2 O N  Han 2 O, out  _t_ 2 _Q_  _allan_  _Q_  ## Tcellan  t  t 1 t 2  Q  allan  Q  outan  dt ##  t  t 1 t 2  Q  allan  _<u>t</u>_ <u>1</u> _t_ 2 <u></u> _CH_ 2 _O_ _N_  _Han_ 2 _O_, _out_  _CO_ 2 _N_  _O_ 2 <u></u> _CH_ 2 _O_ _N_  _Han_ 2 _O_, _out_  _CO_ 2 _N_  _O_ 2 <u></u> _dt_ _N_  _HanO_, _out_  _CO_ _N_  (15) _t_ 1 _CH_ 2 _O_ _N_ _H_ 2 _O_, _out_ _CO_ 2 _NO_ 2 _1) Model structure and equivalent circuit of PEM electrolyzer_ _based on engineering practice_ Modeling assumptions: 1. The heat generated by the Joule heating effect at the cathode and anode is approximately equal. 2. The electrolyzer has excellent thermal insulation, and there is no heat exchange between the equipment itself and the external environment. 3. Throughout the entire experimental duration, the heat flow per unit time is equal to the total heat generated divided by the total time. If the resistances at the cathode and anode of the PEM electrolyzer are approximately equal, then the heat generated at each electrode due to Joule heating is roughly equal. Consequently, each electrode contributes half of the heat generated by the Joule heating effect. The heat generated at the anode and cathode per unit time can be determined using Ohm's law: Subtracting <sup>_t_</sup> 1 from <sup>_t_</sup> 2 represents the time during which the gas-water mixture flows through the anode chamber. The heat released from the cathode into the circulating water per unit of time is: _Q_  _Hcat_ 2 _O_  _CH_ 2 _O_ _N_  _H_ 2 _O_, _mem_ ( _Toutcat_  _Tcellan_ ) (16) The heat released into the hydrogen gas per unit of time is: _Q_  _H_ 2  _CH_ 2 _N_  _H_ 2 <sup>(</sup> _Toutcat_  _Tcellan_ ) (17) discharged per unit time. The heat released from the cathodeWhere _N_ <sup></sup> _H_ 2 represents the molar quantity of hydrogen per unit of time is equal to the sum of the heat in the cathode circulating water and the heat in the hydrogen gas: _Q_  _allcat_  _Q_  _HcatO_  _Q_  _allcat_  _Q_  _Hcat_ 2 _O_  _Q_  _H_ 2 _Q_  _allcat_  _Q_  _Hcat_ 2 _O_  _Q_   _Q_  _Hcat_ 2 _O_  _H_ 2 (18) _N_  _H_ _O_, _mem_  _CH_ _N_  _H_ )( _Tcellcat_  _T_ 0) 2 _O_ _H_ 2 _H_ 2 _O_ _N_  _H_ 2 _O_, _mem_  _CH_ 2 _N_  _H_ 2 )( _Tcellcat_ ( _CH_ 2 _O_ _N_  _H_ 2 _O_, _mem_  _CH_ 2 _N_  _H_ 2 )( _Tcellcat_  _T_ 0) _CH_ 2 _O_ _N_  _H_ 2 _O_, _mem_  _CH_ 2 _N_  _H_ 2 )( _Tcellcat_  _T_  ( _CH_ 2 _O_ _N_  _H_ 2 _O_, _mem_  _CH_ 2 _N_  _H_ 2 )( _Tcellcat_  hydrogen gas, andWhere _CH_ 2 represents _Tcellcat_ represents the cathode temperature ofthe molar heat capacity of the electrolyzer. The expression for the average cathode temperature is: Where <u>12</u> _Icell_ 2  _allcat_  _Q_  _Q_  _allan_  _Q_  _allcat_  <u>1</u> _Icell_ 2 _Rtotal_ (11) ## Tcellcat  t  tt 34  Q  allcat  Q  losscat  dt ## cellcat  t 4  tt 34  Q  allcat  Q  losscat ##  t  tt 34  Q  allcat  ##  tt 34  Q  allcat  Q   tt 34  CH 2 O N  H 2 O, mem  _t_ 4 ###  Q  allcat  Q  losscat  _<u>t</u>_ <u>3</u> <u></u> _CH_ 2 _O_ _N_  _H_ 2 _O_, _mem_  _CO_ 2 _N_  _H_ 2 <u></u> _CH_ 2 _O_ _N_  _H_ 2 _O_, _mem_  _CO_ 2 _N_  _H_ 2 <u></u> _dt_ _N_  _H_ _O_, _mem_  _CO_ _N_  (19) Where _Rtotal_ represents the total equivalent resistance within the electrolyzer. The heat discharged from the anode into the circulating water per unit time is given by: _t_ 4 _t_ 3 _CH_ 2 _O_ _N_ _H_ 2 _O_, _mem_ _CO_ 2 _N_ _H_ 2 _t_ 3 _CH_ 2 _O_ _N_ _H_ 2 _O_, _mem_ _CO_ 2 _N_ _H_ 2  _HanO_  _CH_ _O_ _N_  _H_ 2 _O_, _out_ _cell_ 0 (12) _N_  _H_ _O_, _in_  _N_  _H_ _O_, _con_  _N_  _H_ _O_, _mem_ )( _Tcellan_  _T_ 0 ) _Han_ 2 _O_  _CH_ 2 _O_ _N_  _Han_ 2 _O_, _out_ ( _Tcellan_ _Q_  _Han_ 2 _O_  _CH_ 2 _O_ _N_  _Han_ 2 _O_, _out_ ( _Tcellan_  _T_ 0  _CH_ 2 _O_ _N_  _Han_ 2 _O_, _out_ ( _Tcellan_  2 _O_ _H_ 2 _O_ _H_ 2 , _out_ ( _Tcell_ _T_ 0 ( _Tcellan_  _T_ 0 ) _H_ 2 _O_ ( _N_  _H_ 2 _O_, _in_  _N_  _H_ 2 _O_, _con_  _N_  _H_ 2 _O_, _mem_ )( _Tcellan_ ( _N_  _H_ 2 _O_, _in_  _N_  _H_ 2 _O_, _con_  _N_  _H_ 2 _O_, _mem_ )( _Tcellan_  _T_ 0 ) _CH_ 2 _O_ ( _N_  _H_ 2 _O_, _in_  _N_  _H_ 2 _O_, _con_  _N_  _H_ 2 _O_, _mem_ )( _Tcellan_  _T_ 0  _CH_ 2 _O_ ( _N_  _H_ 2 _O_, _in_  _N_  _H_ 2 _O_, _con_  _N_  _H_ 2 _O_, _mem_ )( _Tcellan_  , _in_ _N_ _H_ 2 _O_, _con_ _N_ _H_ 2 _O_, _mem_ )( _Tcell_ _T_ 0 2 _O_ _H_ 2 _O_, _in_ _H_ 2 _O_, _con_ _H_ 2 The heat discharged from the anode into the oxygen gas per unit time is given by: _Q_  _O_ 2  _CO_ 2 _N_  _O_ 2 ( _Tcellan_  _T_ 0 ) (13) The heat discharged from the anode per unit time is equal to the sum of the heat discharged into the circulating water and the heat discharged into the oxygen: _Q_  _outan_  _Q_  _HanO_  _Q_  _outan_  _Q_  _Han_ 2 _O_  _Q_  _O_ 2 _Q_  _outan_  _Q_  _Han_ 2 _O_  _Q_   _Q_  _Han_ 2 _O_  _O_ 2 (14)  _HanO_, _out_  _CO_ _N_  _O_ )( _Tcellan_  _T_ 0 ) The subtraction of <sup>_t_</sup> 3 from <sup>_t_</sup> 4 represents the time during which the gas-water mixture flows through the cathode chamber. _2) Calculation of energy loss in piping_ The boundary conditions for the experimental model and heat transfer in the pipeline are such that _Twgcat_ and _Twgan_ represent the temperatures of the cathode and anode steamwater mixtures, respectively, and the average temperature of the cathode and anode in the PEM electrolysis cell is approximated to represent the temperature of the steam-water mixture in the outlet pipelines of both electrodes: _Twgcat_  _T_ _Twgan_  _T_ (20) 2 _O_ _O_ 2 _H_ 2 _O_ _N_  _Han_ 2 _O_, _out_  _CO_ 2 _N_  _O_ 2 )( _Tcellan_ ( _CH_ 2 _O_ _N_  _Han_ 2 _O_, _out_  _CO_ 2 _N_  _O_ 2 )( _Tcellan_  _T_ 0 ) _CH_ 2 _O_ _N_  _Han_ 2 _O_, _out_  _CO_ 2 _N_  _O_ 2 )( _Tcellan_  _T_  ( _CH_ 2 _O_ _N_  _Han_ 2 _O_, _out_  _CO_ 2 _N_  _O_ 2 )( _Tcellan_  ofdischarged _N_ <sup></sup> _H_ Where,water2 _O_, _con_,and _C_ andfrom _H_ 2oxygen _O_ _N_ and <sup></sup> the _H_ 2 _O_ anode, _Cmem_ gas. _O_ 2 represent the molar heat capacitiesdenoteAdditionally,per unitthetime,molar _N_ the <sup></sup> _Han_ 2mass _O_ molar, _out_, of _N_ mass <sup></sup> _H_ water2 _O_, _in_ of, water entering the system per unit time, the molar mass of water consumed during the electrolysis process per unit time, Where, _CH_ 2 _O_ and _N_ <sup></sup> _Han_ 2 _O_, _out_, _N_ <sup></sup> _H_ 2 _O_, _in_, Energy transfer occurs through three forms: conduction, convection, and radiation. Due to water's significantly higher thermal conductivity compared to that of gas, the heat lost in the pipes mainly considers three aspects: convective heat transfer between the circulating water and the pipe inner wall,  _Twgcat_   _Twgan_  _wgcat_  _Tcellcat_ _wgan_  _Tcellan_ _N_ <sup></sup> _H_ 2 _O_, _con_, and convective heat transfer between the pipe outer wall and the surrounding environment, and their thermal resistances are respectively represented by _Rtr_ 1, _Rtr_ 2, and _Rtr_ 3 . The total heat transfer coefficient . _K_ _p_ . of the pipeline for the pipeline liquid and the external temperature difference of 1 ℃, the unit time through the unit heat transfer area of the heat, used to describe the degree of heat dissipation in the pipeline, approximated by heat balance equation: <u>1</u> <u>1</u> _K_ _p_  _Rtr_ 1  _Rtr_ 2  _Rtr_ 3  <u>1</u>  <u>1</u>  <u>ln(</u> _<u>r</u>_ <u>2</u> <u>/</u> _<u>r</u>_ <u>1</u> _p_   _Rtr_ 1  _Rtr_ 2  _Rtr_ 3 <u>1</u>  <u>1</u>  1  _Rtr_ 2  _Rtr_ 3 <u>1</u>  <u>1</u>  <u>ln(</u> _<u>r</u>_ <u>2</u> <u>/</u> _<u>r</u>_ <u>1</u>  _r_ 1 1 <u>2</u> _r_ 2 _r_ 1 1 <u>2</u> _r_ 2 2 <u>2</u> 1 (21)  <u>1</u>  <u>1</u>  <u>ln(</u> _<u>r</u>_ <u>2</u> <u>/</u> _<u>r</u>_ <u>1</u> _r_ 11 _r_ 22 1 <u>1</u> <u>1</u>  _Rtr_ 1  _Rtr_ 2  _Rtr_ 3 <u>1</u>  <u>1</u>  <u>ln(</u> _<u>r</u>_ <u>2</u> <u>/</u> _<u>r</u>_ <u>1)</u> <u>2</u> _r_ 1 1 <u>2</u> _r_ 2 2 <u>21</u> <u>2</u> <u>1</u>  <u>1</u>  <u>ln(</u> _<u>r</u>_ <u>2</u> <u>/</u> _<u>r</u>_ <u>1)</u> <u>2</u> _r_ 1 1 <u>2</u> _r_ 2 2 <u>21</u> <u>2</u> <u>1</u>   <u>2</u> <u>/</u> _<u>r</u>_ <u>1</u> 11 _r_ 22 1 _r_ 1 1 _r_ 2 2 1 Where 1 represents the convective heat transfer coefficient between the circulating water and the pipe wall, 2 represents the convective heat transfer coefficient between the pipe wall and the air, <sup></sup> 1 is the thermal conductivity of the pipe wall, and the inner and outer diameters of the pipe are denoted by <sup>_r_</sup> 1 <sup>and</sup> <sup>_r_</sup> 2 <sup>respectively.</sup> However, the calculations for 1, 2, and <sup></sup> 1 <sup>can</sup> <sup>be</sup> <sup>quite</sup> complex. The actual calculation of the heat transfer coefficient of the pipe wall can be reversed according to the Schukhov's equation [19]. <u></u> <u>2</u> _<u>OCH</u>_ <u>2</u> _<u>O</u>_  ln _<u>Tp</u>_ <u>,</u> _<u>ini</u>_ _<u>T</u>_ <u>0</u> _<u>H</u>_ <u>2</u> _<u>O</u>_  ln _<u>p</u>_ <u>,</u> _<u>ini</u>_ <u>0</u> _r L_ 2 _p_ _Tp_, _end_  _T_ 0 _K_ _p_  _<u>N</u>_ <u></u> _<u>H</u>_ <u>2</u> _r LO_ 2 _<u>CHp</u>_ <u>2</u> _<u>O</u>_  ln _TTpp_,, _endini_  _<u>TT</u>_ <u>00</u>  _<u>N</u>_ <u></u> _<u>H</u>_ <u>2</u> _<u>OCH</u>_ <u>2</u> _<u>O</u>_  ln _<u>Tp</u>_ <u>,</u> _<u>ini</u>_   _r L_ 2 _p_ _Tp_, _end_  _p_  _<u>N</u>_ _<u>H</u>_ <u>2</u> _<u>OCH</u>_ <u>2</u> _<u>O</u>_  ln _<u>Tp</u>_ <u>,</u> _<u>ini</u>_ FIGURE 4. PEM electrolyzer engineering model III. IDENTIFICATION OF EQUIVALENT CIRCUIT PARAMETERS INSIDE THE PEM ELECTROLYZER ENGINEERING MODEL With changes in operating conditions, the physical and electrochemical characteristics of the PEM electrolyzer change, and the parameters in the equivalent circuit model change accordingly. In practical engineering, the parameters of the equivalent circuit of the PEM electrolyzer are not directly measurable. To accurately predict and control the behavior of a PEM electrolyzer, identifying the parameters in the equivalent circuit model is a prerequisite. Since heat losses are external energy losses in the PEM electrolyzer, the parameter identification in this paper is divided into two parts for the engineering model: first, the identification of the internal second-order RC circuit, followed by curve fitting to obtain the functional relationship between current and external additional resistance. (22) _p_ _Tp_, _end_ Where _Lp_ is the measured length of the pipe, _Tp_, _ini_ and _Tp_, _end_ are the water temperatures at the starting and ending points, and <sup>_T_</sup> 0 is the external temperature of the pipe. The heat lost from the pipe per unit time is given by: _Q_  _pipean_, _loss_  _K_ _p_ 1 ( _Twgan_  _T_ 0 ) _r L_ 2 _r_ 1 _pipecat_, _loss_  _K_ _p_ 2 ( _Twgcat_  _T_ 0 ) _r L_ 2 _r_ 2 , _loss_ _K_ _p_ 1 ( _Twg_ _T_ 0 ) _r L_ 2 _r_ 1 , _loss_  _K_ _p_ 2 ( _Twgcat_  _T_ 0 ) _r L_ 2 _r_ 2 ( _Twgan_  _T_ 0 ) ( _Twgcat_  _T_ 0 )  _r L_ 2 )  _Q_  _pipean_, _loss_  _K_ _p_ 1 ( _Twgan_   _Q_  _pipecat_, _loss_  _K_ _p_ 2 ( _Twgcat_  _Q_  _pipean_, _loss_  _K_ _p_ 1 ( _Twgan_  _T_ 0 ) _r L_ 2 _r_ 1 _Q_  _pipecat_, _loss_  _K_ _p_ 2 ( _Twgcat_  _T_ 0 ) _r L_ 2 _r_ _pipe_, _loss_ _p_ 1 _wg_ 0 2 _r_ 1 (23) _Q_  _pipecat_, _loss_  _K_ _p_ 2 ( _Twgcat_  _T_ 0 ) _r L_ 2 _r_ 2 The sum of the heat lost from the pipe and the heat lost from the gas represents the heat loss of the anode and cathode. According to Joule's law, this heat loss can be equivalently represented as a resistance: _Q_  _lossan_  _Q_  _pipean_, _loss_  _Q_  2  _Q_  _lossan_  _Q_  _pipean_, _loss_  _Q_  _O_ 2   _Q_  _losscat_  _Q_  _pipecat_, _loss_  _Q_  _H_ 2  , _loss_  _Q_  _O_ 2  _Icell_ 2 , _loss_  _Q_  _H_ 2  _Icell_ 2 _lossan_  _Q_  _pipean_, _loss_  _Q_  _O_ 2  _Icell_ 2 _Rhlan_ _losscat_  _Q_  _pipecat_, _loss_  _Q_  _H_ 2  _Icell_ 2 _Rhlcat_ _Q_  _lossan_  _Q_  _pipean_, _loss_  _Q_  _O_ 2  _Icell_ 2 _Rhlan_ _Q_  _losscat_  _Q_  _pipecat_, _loss_  _Q_  _H_ 2  _Icell_ 2 _Rhl_ _loss_ _pipe_, _loss_ _O_ 2 _cell_ _hl_ (24) _Q_  _losscat_  _Q_  _pipecat_, _loss_  _Q_  _H_  _Icell_ 2 _Rhlcat_ _A. ESTABLISHING THE SECOND-ORDER RC CIRCUIT_ _STATE EQUATION_ The state equation accurately describes the relationship between system inputs and states and serves as the raw form required for recursive algorithms. Therefore, in this section, we establish a state equation to represent the relationship between the state and properties of the PEM electrolyzer. Fig. 5 shows the polarization curve obtained through MATLAB simulation of the PEM electrolyzer. The total voltage of the electrolyzer is composed of reversible voltage, ohmic overvoltage, and activation overvoltage. From the graph, it can be observed that ohmic overvoltage is directly proportional to current density, while the reversible voltage gradually decreases with an increase in the electrolyzer's temperature, although the decrease is not very pronounced. The dynamic characteristics of the equivalent circuit of the PEM electrolyzer are mainly caused by the double-layer effect at the cathode and anode, where the electrodes are separated from the electrolyte surface charge to form a double-layer of equal amount and opposite sign. In Fig. 5, it takes a certain amount of time for the cathode and anode activation overpotential curves to reach saturation. This time delay is represented by the time constant τ, which can be 2 Where _Rhlcat_ and _Rhlan_ represent the equivalent resistance of heat losses at the cathode and anode, respectively, and their corresponding voltages are _U_ _hlcat_ and _U_ _hlan_, the total voltage in the engineering model is: _U_ _cell_  _U_ _rev_  _U_ _act_ . _c_  _U_ _act_ . _a_  _U_ _ohm_  _U_ _hl_ (25) The PEM engineering model is depicted in Fig. 4. Since heat loss is considered external to the PEM electrolyzer, the model is divided into two parts: the internal equivalent circuit and an additional resistance for external heat loss, referred to as the "additional resistance" in the following text. approximated as the product of resistance and capacitance, i.e.,  _R_  _C_ [12]. FIGURE 5. Polarization curves of PEM electrolyzer and overpotentials of each section In the equivalent circuit, the use of cathode and anode capacitances, C1 and C2, simulates the double-layer effects at the cathode and anode of the electrolyzer. R1 represents the cathode heat loss, while R2 models the Gibbs free energy and heat loss at the anode. These components collectively account for the dynamic behavior of the PEM electrolyzer [7]. The state equation for the activation overvoltage at the cathode and anode can be derived from Kirchhoff's current law: (28) and convert them into a different equation form suitable for recursive algorithms. When sampling a system, it is necessary to convert a continuous-time system into a discrete-time system by transforming the continuous-time variable "t" into a discrete-time variable "k." This transformation represents the variable at discrete time instances " _t_  _kT_," where "T" is the sampling period. Using a zero-order hold discretization method, denoted as _U_ _act_ ( _t_ )  _U_ _act_ ( _kT_ ), _kT_  _t_ ( _k_  1) _T_, and designated as _U_ _act_ ( _kT_ )  _U_ _act_ ( _k_ ) . In our approach, a crucial assumption is introduced, where within the short time intervals employed for analytical time integration, the resistances _R_ 1 and _R_ 2 (representing anode and cathode resistances) and capacitances _C_ 1 and _C_ 2 (representing anode and cathode capacitances) of the secondorder RC circuit are presumed to remain constant. Specifically, at each time step T representing the sampling interval, it is assumed that these parameters do not change. The rationale behind this assumption is grounded in our observation of the system's dynamics, indicating that variations in circuit parameters are considered negligible within these brief time intervals. Consequently, we treat both the resistance and capacitance as constants throughout the analytical time integration process. This choice is made with the intention of balancing computational efficiency and accurately capturing the dynamic behavior of the system. The discrete-time counterpart of the continuous-time state equation is given by: _<u>dU</u>_ _<u>act</u>_ <u>.</u> _<u>c</u>_  _<u>iel</u>_  _<u>U</u>_ _dt_ _C_ 1 _<u>dU</u>_ _<u>act</u>_ <u>.</u> _<u>a</u>_  _<u>iel</u>_  _<u>U</u>_ _dt_ _C_ 2  _<u>dU</u>_ _<u>act</u>_ <u>.</u> _<u>c</u>_  _<u>iel</u>_  _dt_ _C_ 1   _<u>dU</u>_ _<u>act</u>_ <u>.</u> _<u>a</u>_  _<u>iel</u>_   _dt_ _C_ 2 <u>.</u> _<u>c</u>_  _<u>iel</u>_  _<u>U</u>_ _<u>act</u>_ <u>.</u> _<u>c</u>_ _<u>act</u>_ <u>.</u> _<u>c</u>_  _<u>iel</u>_  _<u>U</u>_ _<u>act</u>_ <u>.</u> _<u>c</u>_ 1 (26) (29) 1 1  _U_ _act_ ( _k_ 1)  _G_  _U_ _act_ ( _k_ )  _f_  _iel_ ( _k_  _Ucell_ .1( _k_ )  _c_  _U_ _act_ ( _k_ )  _d_  _iel_ ( _k_ ) _act_ _k_ _G_ _U_ _act_ _k_ _f_ _iel_ _cell_ .1 _k_ _c_ _U_ _act_ _k_ _d_ _iel_ ( _k_ 1)  _G_  _U_ _act_ ( _k_ )  _f_  _iel_ ( _k_ ) .1( _k_ )  _c_  _U_ _act_ ( _k_ )  _d_  _iel_ ( _k_ ) .1 <u>.</u> _<u>a</u>_  _<u>iel</u>_  _<u>U</u>_ _<u>act</u>_ <u>.</u> _<u>a</u>_ The expression for the transition matrix ( _t_ ) is as follows: _<u>act</u>_ <u>.</u> _<u>a</u>_  _<u>iel</u>_  _<u>U</u>_ _<u>act</u>_ <u>.</u> _<u>a</u>_ 2 2 2 The output equation is given by: _U_ _cell_  _U_ _rev_  _U_ _act_ . _c_  _U_ _act_ . _a_  _Rohm_  _iel_ (27) Let _U_ _cell_ .1  _U_ _cell_  _U_ _rev_, and express the state equation and output equation in matrix form: This leads to the parameter matrices _G_ and _f_ : _<u>t</u>_    ( _t_ )  _e_ _At_  L1 ( _sI_  _A_ ) 1   _e_ 1 0 _<u>t</u>_   _<u>t</u>_  ( _t_ )  _e_ _At_  L1 ( _sI_  _A_ ) 1   _e_ 1 0 _<u>t</u>_ _t_ )  _e_ _At_  L1 ( _sI_  _A_ ) 1   _e_ 1 0 _<u>t</u>_  1 _At_ L1 ( _sI_  _A_ ) 1   _<u>t</u>_  (30) 1 ( _sI_  _A_ )  1   0 _e_ 2  0 _e_  2 2 1   <u>1</u>   <u>1</u>   _U_  _act_ . _c_   1 0   _U_ _act_ . _c_    _C_ 1   _U_  _act_ . _a_   <u>1</u>   _U_ _act_ . _a_   <u>1</u> <u></u>   0    ~~~~   2   _C_ 2   _U_ _cell_ .1  1 1  _U_ _act_ . _c_   _Rohmiel_   _U_ _act_ . _a_  _U_      _iel_ _act_ . _a_   <u>1</u>   _U_ _act_ . _a_   <u>1</u> <u></u> 0  . _a_   <u>1</u>   _U_ _act_ . _a_ 0    <u>1</u>   _U_ _act_ . _a_   <u>1</u> 0    <u>1</u>   <u>1</u> 0   _U_  _act_ . _c_    1   _U_ _act_ . _c_    _C_ 1  _i_ _U_  _act_ . _a_   <u>1</u>   _U_ _act_ . _a_   <u>1</u> <u></u> 0   _<u>T</u>_ 1 . _c_    1   _U_ _act_ . _c_    _C_ 1 _act_ . _c_   1   _U_ _act_ . _c_ 0 1 (28) _AT_ 2 _C_ 2 _G_  _e_ _AT_  _e_ 1 0 _<u>T</u>_  _<u>T</u>_     _e_ _AT_  _e_ 1 0 _<u>T</u>_    0 _e_ 2  0 2 _e_  2 2   _C_ 2 _U_ _cell_ .1  1 1  _U_ _act_ . _c_   _Rohmiel_  _U_ _act_ . _a_  1 1 .1  1 1  _U_ _act_ . _cell_ .1  1 1  _U_ _act_ . _c_   _Rohmiel_  _U_ _act_ . _a_  _T_ ## f   e Atdt _T_ ##   e Atdt  ## 0 _T_ _e_ _At_ _<u>T</u>_ 1 1 0 . (31) (32) Denote the matrices _A_, _b_, _c_, and _d_ as:  _<u>t</u>_  _t_  _T_  <u>1</u>  1 1    1 _e_ 0   _C_ 1   _<u>t</u>_  _t_  _T_  <u>1</u>  1(1 <u></u> _<u>e</u>_ 1    1 _e_ 0   _C_ 1   _C_ 1 _<u>t</u>_ _t_    <u>1</u> 1 1 <u>1</u> 0 1 _e_ 0    _C_ 1    _C_ 1 _<u>t</u>_  _t_  _T_  <u>1</u>   0     1  <u>1</u> 1 1  _t_  _T_  <u>1</u>  1(1 <u></u> _<u>e</u>_ 1 <u>)</u>    0   _C_ 1   _C_ 1  _A_   1  <u>1</u>  0   _<u>T</u>_    _<u>t</u>_  _t_  _T_  <u>1</u>  1(1 <u></u> _<u>e</u>_ 1 <u>)</u>  1      1 _e_ 0    _C_ 1    _C_ 1   _<u>t</u>_  _<u>T</u>_   <u>1</u>     0 2 _e_ 2  _t_ 0  _C_ 2  2(1 <u></u> _<u>e</u>_ 2 <u>)</u>     _C_ 2  _<u>t</u>_  _<u>T</u>_   <u>1</u>   0 2 _e_ 2  _t_ 0  _C_  2(1 <u></u> _<u>e</u>_ 2 <u>)</u> 2 _e_ 2  _t_ 0  _C_  2 2 _e_  _t_ 0  _C_ 2   <u>2</u>  _e_ 2  _t_ 0  _C_ 2  2(1 <u></u> _<u>e</u>_  _<u>t</u>_   <u>1</u>   _<u>T</u>_ 2    <u></u> <u>(1</u> <u></u> _<u>e</u>_ 2 _t_ _t_  1   _b_   _C_ 1  <u>1</u>  <u>1</u>      _C_ 1   <u>1</u>     _C_ 2  1  <u>1</u>   0    2  、 、 _c_  1 1 、 _d_  _Rohm_ 2 2 _C_ 2 2 2 _C_ 2 2 2 _B. EQUATION OF STATE DISCRETIZATION AND_ _DIFFERENTIAL DIFFERENTIATION:_ Since computers can only process discrete digital signals, it is necessary to discretize the state equations established in Substituting _G_ and _f_ into (29), we obtain the discrete-time state-space equations and output equation as follows:  _UUactact_ .. _ac_ (( _kk_ 1)1)   _e_ 0 _<u>T</u>_ 1 _e_ 0 _<u>T</u>_ 2   _UUactact_ .. _ac_ (( _kk_ ))  21(1(1 _C_ <u>1</u> _<u>ee</u>_  _<u>TT</u>_ 12 <u>))</u>  _i_ _ac_ (( _kk_ 1)1)   _e_ 0 _<u>T</u>_ 1 _e_ 0 _<u>T</u>_ 2   _UUactact_ .. _ac_ (( _kk_ ))  21(1(1 _C_ <u>1</u> _<u>ee</u>_  _<u>T</u>_ 12 <u>))</u>  _iel_ ( _k_ ) (33) (34) _C. Multi-Innovation Least Squares (MILS) parameter_ _identification:_  _UUactact_ .. _ac_ (( _kk_ 1)1)   _e_ 0 _<u>T</u>_ 1 _e_ 0 _<u>T</u>_ 2   _UUactact_ .. _ac_ (( _kk_ ))  21(1(1 _C_ <u>1</u> _<u>ee</u>_  _<u>T</u>_ 12 <u>))</u>  _iel_ ( _k_ )  _C_ 2  _<u>T</u>_ <u>1</u> <u>1</u> _<u>T</u>_ 1 k-2, respectively. <sup>_i_</sup> _el_ ( _k_ ), <sup>_i_</sup> _el_ ( _k_ 1), and <sup>_i_</sup> _el_ ( _k_  2) represent the electrolyzer current at time k, k-1, and k-2, respectively.  1 1 . _c_ ( _k_ 1)   _e_ 0   _U_ _act_ . _c_ ( _k_ )   _C_ 1 _act_ . _c_ ( _k_ 1)   _e_ 0   _U_ _act_ . _c_ _act_ . _a_ ( _k_ 1)   _<u>T</u>_   _U_ _act_ . _a_ ( _k_ )   _<u>T</u>_  _iel_  . _a_ ( _k_ 1)     _U_ _act_ . _a_ 2 2  _act_ . _a_ <u></u> <u>(1</u> <u></u> _<u>e</u>_ 2 2 2 <u>2</u>  _C_ 2  2 ( _k_ )  1 1  _U_ _act_ . _c_ ( _k_ )  _Rohmiel_ ( _k_ )  _U_ _act_ . _a_ ( _k_ ) _Ucell_ .1( _k_ )  1 1  _U_ _act_ . _c_ ( _k_ )  _Rohmiel_ ( _k_  _U_ _act_ . _a_ ( _k_ ) 1 1 .1( _k_ )  1 1  _U_ _act_ . _cell_ .1( _k_ )  1 1  _U_ _act_ . _c_ _k_   _Rohmiel_  _U_ _act_ . _a_ ( _k_ ) . Transforming the state equation into a difference equation form, and utilizing the properties of the shift operator, equation (33) can be expressed at time k:  _UU_ _actact_ .. _ca_ (( _kk_ ))   _z_ 0 _e_  _<u>T</u>_ 1 _z_ 0 _e_  _<u>T</u>_ 2  1 21(1(1 _C_ <u>1</u> _<u>ee</u>_  _<u>TT</u>_ 12 <u>))</u>  _iel_ ( _k_ )  _C_ <u>21</u> _<u>ee</u>_ 1 _<u>T</u>_ ( _<u>T</u>_ 21 _ze_ <u>(1(1</u> _<u>T</u>_ <u>1</u> _<u>e</u>_  _<u>e</u>_  _<u>T</u>_ 1) _<u>T</u>_ 21 <u>))</u>  _C_ 2   _C_ 2 ( _ze_  _<u>T</u>_ 2 1)  (( _kk_ ))   _z_  _e_  _<u>T</u>_ 1 0  _<u>T</u>_  1 1(1 _C_ <u>1</u> _<u>e</u>_  _<u>TT</u>_ 1 <u>)</u>  _iel_ ( _k_ )  _C_ <u>1</u> _<u>e</u>_ 1 _<u>T</u>_ (1 _ze_ <u>(1</u> _<u>T</u>_ <u>1</u>  _<u>e</u>_  _<u>T</u>_ 1)1 <u>)</u>  _iel_ ( _k_ ) _UU_ _actact_ .. _ca_ (( _kk_ ))   _z_  _e_  _<u>T</u>_ 1 0  _<u>T</u>_  1 1(1 _C_ <u>1</u> _<u>e</u>_  _<u>TT</u>_ 1 <u>)</u>  _iel_ ( _k_ )  _C_ <u>1</u> _<u>e</u>_ 1 _<u>T</u>_ (1 _ze_ <u>(1</u> _<u>T</u>_ <u>1</u>  _<u>e</u>_  _<u>T</u>_ 1)1 <u>)</u>  _iel_ ( _k_ 1 1(1 _<u>e</u>_ 1 <u>)</u>   <u>1</u> 1 1  _<u>T</u>_   <u>1(1</u> _<u>e</u>_  _<u>T</u>_ 1 <u>)</u>  1  _<u>T</u>_ 1 <u>)</u>  1 _<u>e</u>_  _<u>T</u>_ 1 <u>(1</u> _<u>e</u>_  _<u>T</u>_ 1 1 (35 Parameter estimation algorithms can be categorized into one-shot completion algorithms, recursive algorithms, and iterative algorithms. In the online identification process, the one-shot completion algorithm utilizes all available data for parameter estimation. However, as new data emerges, the computational load gradually increases, making it less suitable for real-time applications. Recursive algorithms, on the other hand, continuously adjust estimates based on existing data and are well-suited for online identification. In contrast, iterative algorithms involve multiple rounds of parameter updates and optimization, leading to higher computational complexity and potentially requiring multiple iterations to converge. Recursive algorithms are better suited for online identification, while iterative algorithms are more adept at handling convergence issues in offline identification, unaffected by real-time system stability concerns. Therefore, this study employs the MILS algorithm for the identification of internal circuit parameters. The PEM electrolytic cell involves electrochemistry, thermodynamics, fluid dynamics, and other disciplines. The internal equivalent circuit parameters of the cell change with variations in input electrical energy, temperature, pressure, and other state variables. To determine the values of parameters within the "black box," it is necessary to collect observational data from the system, which includes input and output data. The current moment's parameter values can be obtained through a recursive method. The additional input autoregressive model (ARX) is expressed as follows: [23]: . _c_ ( _k_ )   _z_ _e_ 0   _C_ 1  _i_ ( _k_ )  _C_ 1 _act_ . _c_ 1 0  _C_   _C_ ( _ze_ 1  _<u>T</u>_ 1 0  1 1(1 _C_ <u></u> _<u>e</u>_ <u>)</u>   _C_ ( _ze_  _<u>T</u>_ 1 _act_ . _a_ ( _k_ )   _<u>T</u>_    _<u>T</u>_  _iel_ _k_   _<u>T</u>_  _<u>T</u>_  _iel_ <u>2(1</u> <u></u> _<u>e</u>_ 2 <u>)</u>  2 _<u>e</u>_ . _a_ 0 _z_  _e_ 2  2(1 <u></u> _<u>e</u>_ 2 <u>)</u>  2 _<u>e</u>_ 2 <u>(1</u> <u></u> _<u>e</u>_ 2 <u>)</u> _z_  _e_ 2  2(1 <u></u> _<u>e</u>_ 2 <u>)</u>  2 _<u>e</u>_ 2 <u>(1</u> <u></u> _<u>e</u>_  _C_ 2    _<u>T</u>_  2  <u></u> <u>(1</u> <u></u> _<u>e</u>_ 2 <u>)</u> <u></u> _<u>e</u>_ 2 <u>(1</u> <u></u> _<u>e</u>_ 2 2 2 2 2 <u>2(1</u> _<u>e</u>_ <u>)</u>   <u>2</u> 2   _C_ 2 ( _<u>T</u>_ 2 ( _ze_ 2 1) _C_ 2 ( _ze_ Substituting (35) into (34) yields: _<u>T</u>_ _<u>T</u>_ _<u>T</u>_ _<u>T</u>_ ( _k_ )  (1 _<u>e</u>_ 1 <u>(1</u> _<u>T</u>_ <u></u> _<u>e</u>_ 1 <u>)</u> 2 _<u>e</u>_ 2 <u>(1</u> _<u>T</u>_ <u></u> _<u>e</u>_ 2 <u>)</u>  _Rohm_ ) _iel_ ( _k_ ) (36) _U_ _cell_ .1( _k_ )  (1 _<u>e</u>_ 1 <u>(1</u> _<u>T</u>_ <u></u> _<u>e</u>_ 1 <u>)</u> 2 _<u>e</u>_ 2 <u>(1</u> _<u>T</u>_ <u></u> _<u>e</u>_ 2 <u>)</u>  _Rohm_ ) _iel_ ( _k_  (1 _<u>e</u>_ 1 <u>(1</u> _<u>T</u>_ <u></u> _<u>e</u>_ 1 <u>)</u> 2 _<u>e</u>_ 2 <u>(1</u> _<u>T</u>_ <u></u> _<u>e</u>_ 2 <u>)</u>  _Rohm_ ) 1 <u>(1</u> _<u>e</u>_ 1 <u>)</u> <u></u> _<u>e</u>_ 2 <u>(1</u> _<u>e</u>_ 2 1 1 2 2 .1( _k_ )  ( <u>1</u> _<u>e</u>_ <u>(1</u> _<u>T</u>_ _<u>e</u>_ <u>)</u>  <u>2</u> 1( _ze_ 1 1) _C_ 2 ( _ze_ 2 1) _C_ 1( _ze_ 1 1) _C_ 2 ( _ze_ 1) _C_ 2 ( _ze_ 2  1 1) _C_ ( _ze_ 2 1 2 1( _ze_ 1) _C_ 2 Let _e_ 1  _a_ 1 and _e_ 2  _a_ 2, and substitute them into (36) to obtain:  _z_ 2 _R_ 3  _z_ _<u>C</u>_ <u>12</u> _<u>a a</u>_ <u>1</u> <u>2</u> <u></u> _<u>C</u>_ <u>21</u> _<u>a a</u>_ <u>1</u> <u>2</u> <u></u> _<u>C</u>_ <u>12</u> _<u>a a</u>_ <u>1</u> <u>22</u> <u></u> _<u>C</u>_ <u>21</u> _<u>a</u>_ <u>12</u> _<u>a</u>_ <u>2</u> <u></u> _<u>C C</u>_ <u>1</u> <u>2</u> _<u>R a</u>_ <u>3</u> <u>1</u> <u></u> _<u>C C</u>_ <u>1</u> <u>2</u> _<u>R</u>_ <u>3</u> .1( _k_ )   <u>(</u> _<u>a</u>_ <u></u> _<u>C Ca</u>_ <u>1</u> <u>)2</u> _<u>a a</u>_ <u>1</u> <u>21</u>  _z_ 2 _R_ 3  _z_ _<u>C</u>_ <u>12</u> _<u>a a</u>_ <u>1</u> <u>2</u> <u></u> _<u>C</u>_ <u>21</u> _<u>a a</u>_ <u>1</u> <u>2</u> <u></u> _<u>C</u>_ <u>12</u> _<u>a a</u>_ <u>1</u> <u>22</u> <u></u> _<u>C</u>_ <u>21</u> _<u>a</u>_ <u>12</u> _<u>a</u>_ <u>2</u> <u></u> _<u>C C</u>_ <u>1</u> <u>2</u> _<u>R a</u>_ <u>3</u> <u>1</u> <u></u> _<u>C C</u>_ <u>1</u> <u>2</u> _<u>R</u>_ <u>3</u> _U_ _cell_ .1( _k_ )   _z_ 2  _z_ <u>(</u> _<u>a</u>_ <u>1</u> <u></u> _<u>C Ca</u>_ <u>12</u> <u>)2</u> _<u>a a</u>_ <u>1</u> <u>21</u>  _<u>a a</u>_ 1 2 _<u>a a</u>_ 1 2 <u>2</u> _<u>a a</u>_ <u>1</u> <u>2</u> <u></u> _<u>C</u>_ <u>21</u> _<u>a a</u>_ <u>1</u> <u>2</u> <u></u> _<u>C</u>_ <u>12</u> _<u>a a</u>_ <u>1</u> <u>22</u> <u></u> _<u>C</u>_ <u>21</u> _cell_ ( _k_ )   _<u>C C</u>_ <u>1</u> <u>2</u> _<u>a a</u>_ <u>1</u> <u>2</u>  _z_ 2  _z_ <u>(</u> _<u>a</u>_ <u>1</u> <u></u> _<u>a</u>_ <u>2</u> <u>)</u>  <u>1</u>  _z_ 2 _R_ 3  _z_ _<u>C</u>_ <u>12</u> _<u>a a</u>_ <u>1</u> <u>2</u> <u></u> _<u>C</u>_ <u>21</u> _<u>a a</u>_ <u>1</u> <u>2</u> <u></u> _<u>C</u>_ <u>12</u> _<u>a a</u>_ <u>1</u> <u>22</u> <u></u> _<u>C</u>_ <u>21</u> _<u>a</u>_ <u>12</u> _<u>a</u>_ <u>2</u> <u></u> _<u>C C</u>_ <u>1</u> <u>2</u> _<u>R a</u>_ <u>3</u> <u>1</u> <u></u>   _<u>C C</u>_ <u>1</u> <u>2</u> _<u>a a</u>_ <u>1</u> <u>2</u>  _z_ 2  _z_ <u>(</u> _<u>a</u>_ <u>1</u> <u></u> _<u>a</u>_ <u>2</u> <u>)</u>  <u>1</u>  _<u>a a</u>_ 1 2 _<u>a a</u>_ 1 2 2  _z_ <u>(</u> _<u>a</u>_ <u>1</u> <u></u> _<u>a</u>_ <u>2</u> 1 2 _<u>a a</u>_ 1 2 <u></u> _<u>C</u>_ <u>12</u> _<u>a</u>_ <u>2</u> <u></u> _<u>C</u>_ <u>21</u> _<u>a</u>_ <u>1</u> <u></u> _<u>C</u>_ <u>12</u> _<u>a</u>_ <u>22</u> <u></u> _<u>C C</u>_ <u>1</u> <u>2</u> _<u>R</u>_ <u>3</u>  <u>21</u> _<u>a</u>_ <u>12</u> <u></u> _<u>C</u>_ <u>12</u> _<u>a</u>_ <u>2</u> <u></u> _<u>C</u>_ <u>21</u> _<u>a</u>_ <u>1</u> <u></u> _<u>C</u>_ <u>12</u> _<u>a</u>_ <u>22</u> <u></u> _<u>C C</u>_ <u>1</u> <u>2</u> _<u>R</u>_ <u>3</u> _<u>C</u>_ <u>21</u> _<u>a</u>_ <u>12</u> <u></u> _<u>C</u>_ <u>12</u> _<u>a</u>_ <u>2</u> <u></u> _<u>C</u>_ <u>21</u> _<u>a</u>_ <u>1</u> <u></u> _<u>C</u>_ <u>12</u> _<u>a</u>_ <u>22</u> <u></u> _<u>C C</u>_ <u>1</u> <u>2</u> _<u>R</u>_ <u>3</u>  _z_ 2  _z_ <u>(</u> _<u>C Ca</u>_ <u>11</u> <u>2</u> _<u>a aa</u>_ <u>12</u> <u>)2</u>  <u>1</u>  _iel_ ( _k_ ) _<u>a a</u>_ 1 2 _<u>a a</u>_ 1 2   _A_ ( _z_ ) _y_ ( _k_ )  _B_ ( _z_ ) _u_ ( _k_ )  _v_ ( _k_ )  _A_ ( _z_ ) 1 _a z_ 1 1  _a_ 2 _z_ 2    _B_ ( _z_ ) 1 _b z_ 1 1  _b_ 2 _z_ 2   _A_ ( _z_ ) _y_ ( _k_ )  _B_ ( _z_ ) _u_ ( _k_ )  _v_ ( _k_ ) ( _z_ ) _y_ ( _k_ )  _B_ ( _z_ ) _u_ ( _k_ )  _v_ ( _k_ ) <u>21</u> _<u>a</u>_ <u>12</u> <u></u> _<u>C</u>_ <u>12</u> _<u>a</u>_ <u>2</u> <u></u> _<u>C</u>_ <u>21</u> _<u>a</u>_ <u>1</u> <u></u> _<u>C</u>_ <u>12</u> <u>2</u> <u>1</u> <u>1</u> <u>1</u> <u>2</u> <u>2</u> <u>2</u> <u>1</u> <u>1</u> <u>1</u> <u>2</u> <u>2</u> <u>1</u> <u>2</u> <u>3</u>   _<u>C C</u>_ <u>1</u> <u>2</u> _<u>a a</u>_ <u>1</u> <u>2</u>  _z_ 2  _z_ <u>(</u> _<u>a</u>_ <u>1</u> <u></u> _<u>a</u>_ <u>2</u> <u>)</u>  <u>1</u>  _<u>a a</u>_ 1 2 _<u>a a</u>_ 1 2  <u>(</u> _<u>C Ca</u>_ <u>11</u> <u>2</u> _<u>a aa</u>_ <u>12</u> <u>)2</u>  <u>1</u>  _iel_ ( _k_ ) <u>1</u> <u>2</u> _<u>a a</u>_ <u>1</u> <u>2</u> _el_ 2  _z_ <u>(</u> _<u>a</u>_ <u>1</u> <u></u> _<u>a</u>_ <u>2</u> 1 2 _<u>a a</u>_ 1 2 (37) Let K1-K5 be the following values: _B_ ( _z_ ) 1 _b z_ 1 1  _b_ 2 _z_ 2   _bnbz_ ( _z_ ) 1 ( _z_ ) 1 1  _a_ 2 _z_ 2   _a_ _naz_  1  _b_ _z_ 2   _b_ _z_  _a z_ 1 1  _a_ 2 _z_ 2 _b z_ 1 1  _b_ 2 _z_ 2   (40) _A_ ( _z_ ) 1 _a z_ 1 1  _a_ 2 _z_ 2   _a_ _naz_ _naz_  _na_ _nbz_  _nb_  _K_ 1  <u>(</u> _<u>a</u>_ <u>1</u> <u></u>  _a a_ 1  <u>1</u> <u>(</u> _<u>a</u>_ <u>1</u> <u></u> _<u>a</u>_ <u>2</u> <u>)</u> _K_ 1  <u>(</u> _<u>a</u>_ <u>1</u> _a a_ 1 _<u>a</u>_ 2 <u>2</u> 1  <u>(</u> _<u>a</u>_ <u>1</u> _a a_ 1 _<u>a</u>_ 2 <u>2</u> <u>1</u> _K_ 2  _a a_ 1 2 _K_ 3  _R_ 3  _K_ 2  _a a_ 1 2  _K_ 3  _R_ 3  _K_ 4  _<u>CC</u>_ <u>1221</u> _<u>aa a</u>_ <u>112</u> <u>2</u> _<u>C</u>_ <u>1</u> _<u>C</u>_ <u>22</u> _<u>a</u>_ <u>12</u> _<u>a a</u>_ <u>1</u> _<u>C</u>_ <u>2</u> <u>21</u> _<u>Ca</u>_ <u>112</u> _<u>a aC</u>_ <u>1</u> <u>1</u> _C C_ <u>2212</u> _<u>a</u>_ 222 _<u>Ca a</u>_ <u>12</u> _<u>C C</u>_ <u>12</u> _<u>a</u>_ <u>1</u> <u>12</u> _<u>a</u>_ <u>2</u> _<u>R</u>_ <u>2</u> <u>3</u> _<u>C C</u>_ <u>1</u> <u>2</u> _<u>R a</u>_ <u>3</u> <u>1</u> <u></u>  _K_ 5  _C C_ 1 2 _a a_ 1 2 Where _y_ ( _k_ ) is the system output sequence, _u_ ( _k_ ) is the system input sequence, _v_ ( _k_ ) is zero-mean Gaussian random white noise, and _A_ ( _z_ ) and _B_ ( _z_ ) are delay operator polynomials, respectively. The ARX form of the PEM electrolyzer can be obtained by (39): 2 _a a_ 1 2 3 _R_ 3 4  _<u>C</u>_ <u>12</u> _<u>a a</u>_ <u>1</u> <u>2</u> <u></u> _<u>C</u>_ <u>21</u> _<u>a a</u>_ <u>1</u> <u>2</u> <u></u> _<u>C</u>_ <u>12</u> _<u>a a</u>_ <u>1</u> _C C_ <u>221</u> <u>2</u> _<u>Ca a</u>_ 1212 _<u>a</u>_ <u>12</u> _<u>a</u>_ <u>2</u> <u></u> _<u>C C</u>_ <u>1</u> <u>2</u> _<u>R a</u>_ <u>3</u> <u>1</u> <u></u> _<u>C C</u>_ <u>1</u> <u>2</u> _<u>R a</u>_ <u>3</u> <u>2</u>  _y_ ( _k_ )   ( _k_ )( _k_ )  _v_ ( _k_ )  ( _k_ )  [ _U_ ( _k_ 1), _U_ ( _k_  2), _I_ ( _k_ ), _I_ ( _k_ 1), _I_ ( _k_    [ _K_ 1, _K_ 2, _K_ 3, _K_ 4, _K_ 5 ] _y_ ( _k_ )   ( _k_ )( _k_ )  _v_ ( _k_ (  ( _k_ )   ( _k_ )( _k_ )  _v_ ( _k_ ) ( _k_ )  [ _U_ ( _k_ 1), _U_ ( _k_  2), _I_ ( _k_ ), _I_ ( _k_ 1), _I_ ( _k_  2)]  ( _k_ )( _K_ 4  _<u>C</u>_ <u>12</u> _<u>a a</u>_ <u>1</u> <u>2</u> <u></u> _<u>C</u>_ <u>21</u> _<u>a a</u>_ <u>1</u> <u>2</u> <u></u> _<u>C</u>_ <u>12</u> _<u>a a</u>_ <u>1</u> _C C_ <u>221</u> <u>2</u> _<u>Ca a</u>_ 1212 _<u>a</u>_ <u>12</u> _<u>a</u>_ <u>2</u> <u></u> _<u>C C</u>_ <u>1</u> <u>2</u> _<u>R a</u>_ <u>3</u> <u>1</u> <u></u> _<u>C C</u>_ <u>1</u> <u>2</u> _<u>R a</u>_ <u>3</u> <u>2</u> <u>12</u> _<u>a a</u>_ <u>1</u> <u>2</u> <u></u> _<u>C</u>_ <u>21</u> _<u>a a</u>_ <u>1</u> <u>2</u> <u></u> _<u>C</u>_ <u>12</u> _<u>a a</u>_ <u>1</u> <u>22</u> <u></u> _<u>C</u>_ <u>21</u> (41) _k_ )  [ _U_ ( _k_ 1), _U_ ( _k_  2), _I_ ( _k_ ), _I_ ( _k_ 1), _I_ ( _k_ [ _K_ 1, _K_ 2, _K_ 3, _K_ 4, _K_ 5 ] _K_ 1, _K_ 2, _K_ 3, _K_ 4, _K_ 1, _K_ 2, _K_ 3, _K_ 4, _K_ 5 5  _<u>C</u>_ <u>21</u> _<u>a</u>_ <u>12</u> <u></u> _<u>C</u>_ <u>12</u> _<u>a</u>_ <u>2</u> <u></u> _C CC_ 1 <u>221</u> _a aa_ 11 <u>2</u> _<u>C</u>_ <u>12</u> _<u>a</u>_ <u>22</u> <u></u> _<u>C C</u>_ <u>1</u> <u>2</u> _<u>R</u>_ <u>3</u> _K_ 5  _<u>C</u>_ <u>21</u> _<u>a</u>_ <u>12</u> <u></u> _<u>C</u>_ <u>12</u> _<u>a</u>_ <u>2</u> <u></u> _C CC_ 1 <u>221</u> _a aa_ 11 <u>2</u> _<u>C</u>_ <u>12</u> _<u>a</u>_ <u>22</u> <u></u> _<u>C C</u>_ <u>1</u> <u>2</u> _<u>R</u>_ <u>3</u> <u>21</u> _<u>a</u>_ <u>12</u> <u></u> _<u>C</u>_ <u>12</u> _<u>a</u>_ <u>2</u> <u></u> _<u>C</u>_ <u>21</u> _<u>a</u>_ <u>1</u> <u></u> _<u>C</u>_ <u>12</u> (38) Substituting (38) into (37) gives the difference form of voltage: ( _k_ )  _K U_ 1 _cell_ .1( _k_ 1)  _K U_ 2 _cell_ .1( _k_  2)  _K_ 3 _iel_ ( _k_ )  _K_ 4 _iel_ ( _k_ 1)  _K_ 5 _iel_ ( _k_  2) _Ucell_ .1( _k_ )  _K U_ 1 _cell_ .1( _k_ 1)  _K U_ 2 _cell_ .1( _k_  2) (39)  _K_ 3 _iel_ ( _k_ )  _K_ 4 _iel_ ( _k_ 1)  _K_ 5 _iel_ ( _k_  2) Where ( _k_ ) is an information vector consisting of input current and output voltage data, _θ_ is a parameter to be recognized, and _v_ ( _k_ ) is a scalar new interest, which can be expressed as: _v_ ( _k_ )  _y_ ( _k_ )  ( _k_ )ˆ( _k_ 1) (42) Extend innovation scalar to innovation vectors: .1( _k_ ) _K U_ 1 _cell_ .1( _k_ 1) _K U_ 2 _cell_ .1 _cell_ .1 _k_ _K U_ 1 _cell_ .1 _k_ _K U_ 2 _cell_ 3 _iel_ ( _k_ ) _K_ 4 _iel_ ( _k_ 1) _K_ 5 _iel_ _k_ _K_ 4 _iel_ _k_ _K_ 5 _iel_ In equation (39), _U_ _cell_ .1 <sup>(</sup> _k_ <sup>)</sup>, _U_ _cell_ .1 <sup>(</sup> _k_ 1), and _U_ _cell_ .1 <sup>(</sup> _k_  2) represent the difference between the electrolyzer voltage and reversible voltage at time k, k-1, and  _y_ ( _k_ )  ( _k_ )ˆ( _k_ 1)   _y_ ( _k_ 1) ( _k_ 1)ˆ( _k_ 1) ( _p_, _k_ )   _y_ ( _k_ )  ( _k_ )ˆ( _k_ 1)     _y_ ( _k_ 1) ( _k_ 1)ˆ( _k_ 1)        _y_ ( _k_  _p_ 1) ( _k_  _p_ 1)ˆ( _k_ 1)  _y_ ( _k_ )  ( _k_ )ˆ( _k_  ( _k_ )ˆ(   _y_ ( _k_ 1) ( _k_ 1)ˆ( _k_ _V_ ( _p_, _k_ )  ( _k_ 1)ˆ( (43)  ( _k_  _p_ 1) ( _k_  _p_ 1)ˆ( _k_ 1)  _y_ ( _k_  _p_ 1) ( _k_  _p_ 1)ˆ( _k_ ( _k_  _p_ 1)ˆ( where p is the innovation length. In order to be compatible with the dimensionality of matrix multiplication, the information vector ( _k_ ) should also be extended to the corresponding matrix: ( _k_ ) ( _k_ (  ( _k_ )    ( _k_ 1)      ( _k_  _p_ 1)  ( _k_ 1) ( _p_, _k_ )   ( _k_ _p_, _k_ )   ( ( _p_, _k_ )   (44)   ( _k_  _p_ 1) ( _k_  _p_ Then the system multi- innovation least squares identification algorithm is of the form: _Y_ ( _p_, _k_ )   ( _p_, _k_ )( _k_ 1)  _V_ ( _p_, _k_ ) (45) The recursive procedure for updating the parameters of the MILS algorithm can be obtained after derivation: ˆ( _k_ ) ˆ( _k_ 1)  _L_ ( _k_ )[ _Y_ ( _p_, _k_ )  ( _k_ )ˆ( _k_ 1)] (46) _L_ ( _k_ )  _P_ ( _k_ 1)( _p_, _k_ )( _I_ _p_  _T_ ( _p_, _k_ ) _P_ ( _k_ 1)( _p_, _k_ ))1 (47) _P_ ( _k_ )  _P_ ( _k_ 1)  _L_ ( _k_ ) _T_ ( _p_, _k_ ) _P_ ( _k_ 1) (48) In equations (46), (47), and (48) represent the parameter update equation, gain update equation, and covariance matrix update equation, where  <sup>ˆ</sup> ( _k_ ) and  <sup>ˆ</sup> ( _k_ 1) are the current and previous parameter estimates, _L_ ( _k_ ) is the gain vector, and _P_ ( _k_ ) is the covariance matrix. The detailed MILS algorithm flow can be found in APPENDIX A. IV. PEM Electrolyzer Engineering Model External Additional Resistance Parameter Fitting Section B in part II analyze the heat lost from the cathode and anode gases in the PEM electrolyzer and the heat lost from the pipeline heat transfer, respectively. It provides a method to equivalently represent the heat losses at the anode and cathode as resistances, where the heat in the gas at the anode and cathode is determined by (12) and (16), and the heat lost through circulating water in the pipes is determined by (23) . The total heat loss in the PEM electrolyzer is obtained by adding the heat from the gas and the heat losses from the pipes. Subsequently, the additional impedance is reverse-calculated using (24) . Because the additional impedance tends to stabilize with the current, as shown in Fig. 6, the anode and cathode additional resistances gradually stabilize under a step current of 160A. Therefore, in this study, the additional resistances at steady currents ranging from 20A to 200A were obtained through simulation experiments. These resistances were then fitted to functions of current using curve fitting methods. FIGURE 6. Trend of additional resistance at 160A step current The power supply for the PEM electrolyzer is typically obtained from renewable energy through AC/DC or DC/DC converters for rectification and voltage reduction. The resulting current waveform is generally a constant direct current (DC), and when the power from renewable sources changes, the DC current undergoes corresponding step changes. To determine the values of additional resistance under different step currents, we employed a curve-fitting method to fit the curves and derive the additional resistance values for different step currents. At a certain moment when the input current undergoes a step change, the temperatures of the cathode and anode of the PEM electrolyzer can be determined based on the heat calculation equations (11) - (19) . Using the boundary condition in (20), the temperature of the entire electrolyzer is assumed to be the temperature of the steam-water mixture. Subsequently, heat loss is calculated through (23), and the current at this moment is substituted into Equation (24) to obtain the additional impedance. The specific steps for fitting the additional resistance are as follows [21]: 1) Due to the PEM electrolyzer's maximum current capacity of 200A, we conducted simulations to gather additional impedance corresponding to currents ranging from 20A to 200A. Using current as the x-axis and additional impedance as the y-axis, we obtained a two-dimensional dataset [ _x_ 1, _y_ 1],[ _x_ 2, _y_ 2 ],,[ _xn_, _y_ _n_ ] . 2) Determine the fitting function: Based on the pattern of the dataset, establish an appropriate fitting function. Since the dataset closely follows a power-law function, a power-law function is selected as the fitting function in this chapter. _g_ ( _x_ )  _a_  _x_ _b_ (49) 3) Determine the criteria: Establish the criteria for fitting error, utilizing the least squares approach to minimize the distance between all data points and the fitted curve. ## ( a, b )  min 1  n ( axib  yi ) 2 _i_ 1 _n_ ##  min 1  n ( axib  yi )2 (50) 2 _i_ 1 Pipeline length _Lp_ 80 _cm_ Environmental Environmental <sup>_T_</sup> 0 298.15 _K_ temperature ## L ( a, b )  min 1 ( axib  yi 2 _i_ 1 2 1 4) Optimize Fitting Parameters: Since the criterion function is nonlinear, a numerical algorithm is needed to iteratively search for the optimal parameters a and b to minimize the criterion function. 5) Evaluate Fitting Quality: After obtaining the parameters through fitting, the quality of the fit can be assessed using evaluation metrics such as the coefficient of determination (R-squared), root mean square error (RMSE), and other relevant indicators. The specific optimization process can be found in APPENDIX B. Water flow rate _<u>N</u>_ <sup></sup> _<u>w</u>_ <u>0.3</u> _<u>mol</u>_ <u>/</u> _<u>s</u>_ V. SIMULATION VERIFICATION This chapter extensively surveyed the parameters of existing PEM electrolyzers on the market and referenced a significant amount of literature [1,12,12,20]. Based on this, we constructed a PEM electrolyzer engineering model as described in Chapter II, employing the MATLAB/Simulink simulation tool as a reference for the identification results. The main parameters, physical constants, and other parameters of the electrolysis cell are listed in Table 1, Table 2, and Table 3, respectively. TABLE 1 <u>PEM</u> <u>ELECTROLYTIC</u> <u>CELL</u> <u>SYSTEM</u> <u>MAIN</u> <u>PARAMETER SETTINGS</u> <u>This</u> <u>chapter</u> <u>begins</u> <u>with</u> <u>the</u> <u>identification</u> <u>of</u> <u>the</u> experimental model. Observational data from the model is collected and used in the recursive algorithm to estimate the circuit parameters of the constructed PEM electrolyzer. The overall error in the identified parameters is analyzed. Then, the additional resistance in the engineering model is curve fitted. Using Joule's law, we calculate the equivalent resistance for thermal losses within the specified current range, resulting in the derivation of the parameters for the engineering model's equivalent circuit. Finally, the simulation results of the experimental and engineering models are analyzed for errors with the identification results. _A. IDENTIFICATION OF EQUIVALENT CIRCUIT_ _PARAMETERS INSIDE PEM ELECTROLYZER_ _ENGINEERING MODELS_ A continuous excitation signal refers to an input signal that excites the essential characteristics of a system. To elicit the dynamic characteristics of the PEM electrolyzer, a step current excitation is applied to the system, as shown in Fig. 7(a) The simulation time is 10 seconds, with a sampling time of 0.002 seconds. The current undergoes a sudden change from 0.01A to 160A at 3 seconds. The system voltage is depicted in Fig. 7(b). Considering the presence of sensor errors, electronic component noise, measurement inaccuracies, environmental disturbances, etc., in practical systems, it is necessary to filter the collected data before parameter identification. The signal after filtering has a smaller noise compared to the original signal. Therefore, in this study, white noise is added to the ideal data to approximate the filtered data, simulating the random errors in the system. As the PEM electrolyzer cell operates with high current and low voltage, white noise sequences with mean 0 and variances of σ²=1 and σ²=0.00002 are added to the input data ( <sup>_i_</sup> _el_ <sup>)</sup> <sup>and</sup> <sup>output</sup> <sup>data</sup> <sup>(</sup> _uel_ ), respectively. The signal-tonoise ratios are 45.57dB and 49.14dB for current and voltage, respectively. The system currents and voltages after adding noise are shown in Fig. 7(c) and Fig. 7(d), respectively. All current and voltage data collected during the simulation period are used for parameter estimation of the PEM electrolyzer, following the identification method outlined in part III. <u>Parameters</u> <u>Abbreviation</u> <u>Values</u> Membrane area _A_ 160 _cm_ 2 Membrane thickness  _m_ 0.0254 _cm_ Cathode volume _Vcat_ 0.064 _m_ 3 Anode volume _Van_ 0.064 _m_ 3 Cathode charge transfer  0.5 Cathode charge transfercoefficient  _cat_ 0.5 Anode charge transfer Anode charge transfercoefficient  _an_ 2 Cathode exchange current density Anode exchange current Cathode exchange currentdensity _J_ 0, _cat_ 1103 _A_ / _cm_ 2 Anode exchange currentdensity _J_ 0, _an_ 1109 _A_ / _cm_ 2 Cathode pressure _PH_ 2 4.868 _bar_ Anode temperature _Tcellan_ 308 _K_ Cathode temperature _Tcellcat_ 338 _K_ Hydrogen production _N_ <sup></sup> _H_ 2 8.291104 _mol_ / _s_ <u>Current density</u> _<u>i</u>_ <u>1</u> _<u>A</u>_ <u>/</u> _<u>cm</u>_ 2 <u>TABLE 2</u> <u>PHYSICAL</u> <u>CONSTANT</u> <u>Parameters</u> <u>Abbreviation</u> <u>Values</u> Faraday constant _F_ 96485 _C_ / _mol_ Gas universal _R_ 8.3145 _J_ / ( _mol_  _k_ ) <u>constant</u> <u>TABLE 3</u> <u>OTHER</u> <u>PARAMETERS</u> <u>Parameters</u> <u>Abbreviation</u> <u>Values</u> <u>Overall heat transfercoefficient</u> _K_ _p_ 4.5 _W_ / ( _m_  _k_ ) 1) Over a 10-second period, a total of 5000 data points were collected. As the number of recursive iterations increased, the error in the identification results steadily decreased and eventually stabilized. 2) With the increase in the innovation length, the identification error gradually reduced. When the innovation length reached a certain optimal value, the error minimized. If the innovation length continued to increase beyond this optimal point, the identification values started to deviate from the true values. When the innovation length in MILS is set to 5, the identification results show the least deviation from the true values. 3) When the innovation length in MILS is set to 1, it essentially becomes the Recursive Least Squares (RLS). RLS algorithm, which is similar to LSM, has a lower data utilization rate. In contrast, MILS not only utilizes the current data but also repetitively uses the past p 1 data points, thereby increasing data utilization efficiency. This improvement enhances the convergence speed and identification accuracy of the algorithm. FIGURE 7. Voltage variation curve under step current input Based on Section B in III, it can be concluded that the difference equation of the system to be identified are represented by (39) . In order to assess the effect of the innovation length on the identification process in the MILS algorithm, the innovation length (p) is set to be 3, 4, 5, 6, and 7, respectively. Additionally, the least squares method is employed as a control experiment. These methods are applied to identify the parameters of the equivalent circuit model for the PEM electrolyzer. A total of 5000 data points are collected within a 10-second period. At each time step, the input and output data of the system are used as inputs to the identification algorithm for recursive estimation, resulting in the direct identification results K1, K2, K3, K4, and K5. These direct identification results, K1 to K5, are then used in (38) to obtain the final identification values, which are the parameters _C_ 1, _C_ 2, _R_ 1, _R_ 2, and _Rohm_ of the second-order RC equivalent circuit model. The final identification results are shown in Table 4. Through a comparison between the identification results of the equivalent circuit and the experimental simulation results, an assessment of the accuracy of parameter identification can be made. Based on Fig. 8 and Table 4, the following conclusions can be drawn: FIGURE 8. Identification results of C1, C2, R1, R2 and Rohm parameters Figure 9 shows the curve of parameter estimation error (δ) as a function of time (t). From this graph, it can be observed that with the innovation value of 5 in MILS (p=5), the error tends to stabilize and reaches its minimum as time increases. time t. FIGURE 9. The curve of the parameter estimation error - changing with TABLE 4 COMPARISON OF IDENTIFICATION RESULTS AND ERRORS FOR VARIOUS <u>PARAMETERS</u> <u>AT</u> <u>THE</u> <u>END</u> <u>OF</u> <u>THE</u> <u>SIMULATION</u> <u>RLS</u> <u>MILS(p=3)</u> <u>MILS(p=4)</u> <u>truth-value</u> _C_ 1 259.176 373.825 396.908 407.4 _C_ 2 53.325 50.046 49.640 45.94 _R_ 1 0.001886 0.001670 0.001639 0.001488 _R_ 2 0.000959 0.001191 0.001225 0.001319 _Rohm_ 0.002352 0.002353 0.002353 0.002275 <sup></sup> 1 0.489514 0.62341 0.65041 0.606 2 0.048951 0.05961 0.06083 0.0606 <u></u> <u>36.65%</u> <u>8.82%</u> <u>3.07%</u> <u>-</u> <u>MILS(P=5)</u> <u>MILS(P=6)</u> <u>MILS(P=7)</u> <u>truth-value</u> _C_ 1 411.424 422.960 431.651 407.4 _C_ 2 49.417 49.252 49.134 45.94 _R_ 1 0.001621 0.001608 0.001598 0.001488 _R_ 2 0.001245 0.001260 0.001271 0.001319 _Rohm_ 0.002353 0.002353 0.002350 0.002275 <sup></sup> 1 0.66691 0.68000 0.68983 0.606 2 0.06153 0.06205 0.00624 0.0606 <u></u> <u>1.30%</u> <u>3.88%</u> <u>5.97%</u> <u>-</u> <u>The</u> <u>above</u> <u>results</u> <u>indicate</u> <u>that</u> <u>representing</u> <u>the</u> <u>PEM</u> electrolyzer experimental model as a state-space equation, transforming it into the ARX model through discretization and differencing, and then identifying it using the MILS algorithm results in an identification error of less than 2% when compared to the experimental results. This demonstrates a high level of accuracy in the identification process. _B. CURVE FITTING OF EXTERNAL ADDITIONAL_ _RESISTANCE FOR PEM ELECTROLYZER ENGINEERING_ _MODELS_ The model established in Section B in part II allows simulating the steady-state values of cathode and anode additional resistances for different step current values, and then fitted into an R-I function. The fitted curves for anode additional impedance versus current are shown in Fig. 10[a], while the fitted curves for cathode additional impedance versus current are displayed in Fig. 10[b]. It can be observed that as the current increases, the thermal loss equivalent resistance gradually decreases. This is because even though the heat loss from the pipeline and gas loss increases with the current, the square of the current growth rate in (24) is much higher than the growth rate of thermal loss in the PEM electrolyzer, hence the decreasing trend of the additional resistance changes from sharp to slow. FIGURE 10.Anode and cathode R-I fitting graphs This article uses nonlinear least squares to fit a power function curve, denoted as _f_ ( _x_ )  _axb_ . The curve depicting the change in anode and cathode additional resistances with current can be obtained as follows: simulated voltage and estimated voltage. Their definitions are as follows: ## 1  n ( U es ( i )  U rel ( i ) ) _n_ ( _i_ )  _U_ ( _i_ ) )2 ## RMSE  1  n ( U es ( i )  U rel ( i ) )2 (52) _n_ _i_ 1 1 <u>1</u> _n_ ( _i_ )  _U_ ( _i_ ) ## MAE  1  n U es ( i )  U rel ( i ) (53) _n_ _i_ 1 Where _Ues_ ( _i_ ) and _Urel_ ( _i_ ) represent the estimated and actual values for the ith data point, respectively. As shown in Fig. 11, under a step current input of 160A, the voltage simulation results for the experimental model are represented by curve (1), while the voltage simulation results for the engineering model are shown by curve (2). Curve (3) corresponds to the identification results for the experimental model, and curve (4) represents the identification results for the engineering model. It can be observed that curve (1) closely matches curve (2), indicating that the identification results for the internal circuit parameters of the engineering model are relatively accurate. Similarly, curves (3) and (4) show consistent results, reflecting the good fitting performance of the engineering model's additional impedance. The difference between curve (1) and curve (3) represents the partial pressure of heat loss resistance, indicating the voltage deviation caused by the measurement temperature deviation. The RMSE and MAE between the identification results of the experimental model and the simulation results, calculated using (52) and (53), are 2.33% and 1.72%, respectively. For the engineering model, the RMSE and MAE between the identification results and simulation results are 0.40% and 1.41%, respectively. 1 Where _Ues_ ( _i_ ) and  _Rhlan_  1.3171105   _Rhlcat_  0.0029  _x_ 0.5795 (51) _an_ _hl_ _cat_ _hl_ 5  _x_ 0.5906 1.3171105  _x_ 0.0029  _x_ 0.5795 5  _x_  _Rhlan_  1.3171105  _x_ 0.0029 _Rhlcat_  0.0029  _x_ In part IV, with an input current excitation of 160A, the fitted curve equations were applied to obtain the equivalent resistances for the anode and cathode thermal losses, resulting in values of 6.57454 10 <sup></sup> 7 for _Rhlan_ (anode) and 1.5314810 <sup></sup> 4 for _Rhlcat_ (cathode). _C. ERROR ESTIMATION OF SIMULATION RESULTS_ The error is a measure of the difference between predicted values and actual values. In order to determine the effect of fit between simulation results and identification results, this study employs the Root Mean Square Error (RMSE) and Mean Absolute Error (MAE) to calculate the errors between FIGURE 11. Comparison between simulation results and identification results VI. CONCLUSION For better understanding, this section provides a summary of all equations and calculations. Equations (1) - (10) constitute the mathematical model of a PEM electrolyzer under experimental conditions, outlining the components of the working voltage. Equations (11)-(19) involve heat-related calculations, including temperatures of water, gas products, and cathode and anode of the electrolyzer, serving as a foundation for computing heat loss in the pipeline and additional impedance. Equations (21)-(23) calculate heat loss in the pipeline, Equation (24) uses Joule's law to equate lost heat to additional impedance, and Equation (25) represents the operating voltage of the practical engineering electrolyzer, completing the establishment of the engineering model. Equations (26)-(28) transform the mathematical model into a matrix-form state-space expression. Equations (29) - (39) discretize and difference the state-space expression, converting it into a form suitable for recursive algorithms. Equations (40) - (48) involve calculations related to MILS, where input current (Iel) and output voltage (Uel) data are input into the recursive algorithm to obtain values for K1-K5. These values, K1-K5, can be derived from the identification values of circuit parameters through Equation (38) , representing the parameters of the experimental model. Equations (49) and (50) represent the fitting function and criteria, and Equation (51) presents the fitting results. Combining the obtained additional impedance with the experimental model yields the engineering model of the PEM electrolyzer. Equations (54)-(61) in Appendix B detail the derivation process of curve fitting. The paper introduces an engineering model designed for PEM electrolyzers. This model is based on the experimental model by equating the heat in the discharged gas with the heat dissipated in the pipe as additional resistances. This compensation accounts for inaccuracies in voltage due to temperature measurement deviations in the experimental model. As the parameters of the PEM electrolyzer equivalent circuit model vary with physical and electrochemical characteristics, a system identification method is employed to estimate the model parameters. Since the heat loss is an external loss of the PEM electrolyzer, the heat loss resistance is relatively independent of the parameters in the secondorder RC circuit. Therefore, the engineering model is divided into two parts for identification. Firstly, the internal parameters of the second-order RC circuit are identified using a recursive algorithm. Then, the parameters of the current vs. additional resistance power function curves were fitted by nonlinear least squares fitting of the power function curves. Finally, the accuracy of the identification results is verified by calculating the error between the identification results and the simulation results using RMSE and MAE. The simulation results show that with an MILS innovation length of 5, the internal parameter identification error is minimized at 1.3%. The RMSE and MAE for the identification of the internal equivalent circuit of the engineering model, which is equivalent to the experimental model, are 2.33% and 1.72%, respectively. After adding the additional resistances to the experimental model, the RMSE and MAE for the identification results compared to simulation results are 0.40% and 1.41%, respectively. The sources of errors in the identification of internal equivalent circuit parameters are related to factors such as the initial values, the innovation length, convergence speed of the MILS identification algorithm, and the accuracy of the state equation discretization. The errors in the identification results after adding external additional resistances are related to data quality and the choice of the fitting model. Through the above-mentioned method, the identification of internal equivalent circuit parameters and the fitting of external additional resistances have shown promising results. The identification results exhibit minimal discrepancies when compared to the experimental results, indicating an overall successful identification process. This approach can be helpful for predicting and controlling PEM electrolyzers in engineering applications. If the parameters of the MILS identification algorithm are adjusted appropriately, and an appropriate fitting model is selected, I believe this method can accurately identify the majority of PEM electrolyzer equivalent circuit parameters. In conclusion, the paper presents an engineering model for PEM electrolyzers, utilizing a compensation method for temperature-related voltage inaccuracies. Internal parameters are identified using a recursive algorithm, and fitting external resistances is achieved through nonlinear least squares fitting. The identified parameters exhibit minimal discrepancies with experimental results, suggesting the potential of this method for accurate prediction and control of PEM electrolyzers in engineering applications. APPENDIX A MILS ALGORITHM FLOW The identification process, as shown in Fig. 12, follows these steps [24]: 1) Initialize the parameters by setting the initial values of the parameter vector  <sup>ˆ</sup> (0) and the covariance matrix _p_ ( _k_ ) at the moment _k_  1 . 2) Collect the current and voltage observations _icell_ ( _k_ ) and _U_ _cell_ .1 <sup>(</sup> _k_ <sup>)</sup>, and construct the information matrix ( _p_, _k_ ) and the innovation vector _V_ ( _p_, _k_ ) . 3) Update the parameter ( _k_ ) using (46) and calculate the gain matrix _L_ ( _k_ ) and covariance matrix _P_ ( _k_ ) using (47) and (48). 4) Make _K_  _K_ 1, determine whether the termination condition is satisfied, if _k_  _L_ then stop the recursion, otherwise continue the recursion. ( _x_  _h_ )  <u>1</u> _f_ ( _x_  _h_ ) _f_ ( _x_  _h_ ) 2  <u>12</u> _f_  _f_  _f_  _J_ _f_ _h_  <u>12</u> _h_  _J_  _f_ _J_ _f_  _F_ ( _x_  _h_ )  _f_ ( _x_  _h_ ) _f_ ( _x_  _h_ (58)  _h_ )  _f_ ( _x_  _h_ ) _f_ ( _x_   _f_  _f_  _J_ _h_  <u>1</u> _h_  _J_  _f_  _f_  _f_  _J_ _f_ _h_  _h_  _J_  _f_ _J_ _f_ _h_  _f_  _f_  _f_  _J_ _f_ _h_  The LM algorithm introduces a penalty term to (58): _Llm_ ( _h_ )  <u>12</u> _f_  _f_  _f_  _J_ _f_ _h_  <u>12</u> _h_  _J_ _f_  _J_ _f_ _h_  <u>12</u>  _h_  _h_, 0 (59) Where  represents the damping factor. The neighborhood size needs to be controlled when linearly approximating _f_ ( _x_ ) . When the approximation is good, the search neighborhood is larger, the penalty term takes a smaller proportion of _Llm_ ( _h_ ),  is smaller, and the increment h is relatively large. When the approximation is poor, the search neighborhood is reduced to a smaller range, resulting in a larger  and a smaller h. Differentiation of _Llm_ ( _h_ ) and setting its derivative to zero yields the increment _hlm_ : '( _h_ )  _J_  _f_ _f_  ( _J_  _f_ _J_ _f_   _I_ ) _hlm_  0 _h_ ( _J_  _J_   _I_ )1 _J_  _f_  _f_  ( _J_   _I_ _Llm_ '( _h_ )  _J_  _f_ _f_  ( _J_  _f_ _J_ _f_   _I_ ) _h_  _J_  _f_ _f_  ( _J_  _f_ _J_ _f_   _I_ ) _hlm_  ( _J_  _J_   _I_ )1 _J_  _f_ _lm_ '( _h_ ) _J_ _f_ _f_ ( _J_ _f_ _J_ _f_ _I_ ) _hlm_ (60) ( _J_  _f_ _J_ _f_   _I_ ) _hlm_ ( _J_  _f_ _J_ _f_   _I_ )1 _J_  _f_ _f_  _hlm_ ( _J_  _f_ _J_ _f_   _I_ _lm_ ( _J_ _f_ _J_ _f_ _I_ ) _J_ _f_ FIGURE 12. MILS algorithm process APPENDIX B NONLINEAR LEAST SQUARES OPTIMIZATION As  approaches 0, _hlm_ tends toward the Gauss-Newton method. When  approaches ∞, _hlm_ tends toward the small step-size steepest descent method.The approximation level of _f_ ( _x_ ) is defined as follows: The Levenberg-Marquardt (LM) algorithm combines aspects of the steepest descent and Gauss-Newton algorithms, making it a standard approach for solving nonlinear least squares problems. In this section, the LM algorithm is used for optimization in the aforementioned nonlinear problem. Let _axib_  _yi_  _fi_ ( _x_ ) in (50) and the least squares criterion be [22]: _<u>F</u>_ <u>(</u> _<u>x</u>_ <u>)</u> <u></u> _<u>F</u>_ <u>(</u> _<u>x</u>_ <u></u>  _<u>F</u>_ <u>(</u> _<u>x</u>_ <u>)</u> <u></u> _<u>F</u>_ <u>(</u> _<u>x</u>_ <u></u> _<u>hlm</u>_ <u>)</u> <u>12</u> _hlm_  ( _J_ _Tf_ _J_ _f_  2 _I_ ) _h_ _<u>F</u>_ <u>(</u> _<u>x</u>_ <u>)</u> <u></u> _<u>F</u>_ <u>(</u> _<u>x</u>_ <u></u> _<u>h</u>_ _<u>lm</u>_  _<u>lm</u>_ <u>1</u> _hlm_  ( _J_ _Tf_ _J_ _f_  2 _I_ ) _h_ _lm_  ( _J_ _Tf_ _J_ _f_  2 _I_ ) _hlm_ (61) _lm_  ( _J_ _Tf_ _J_ _f_  2 _I_  _n_ ## ( x )  1  ( f i ( x )) 2  1 f ( x ) 2  1 f ( x )  f ( x ) 2 _i_ 1 2 2 _n_ 2  <u>1</u> _f_ ( _x_ ) 2 _n_ ##  1  ( f i ( x )) 2  1 f ( x ) 2  1 f ( x )  f ( x ) (54) 2 _i_ 1 2 2 ## F ( x )  1  ( f i ( x )) 2  1 f ( x ) 2  1 f ( x )  f ( x ) 2 _i_ 1 2 2 1 A partial derivation of the independent variables of (54) yields the least square error sum: ### ( x )   n fi ( x ) fi ( x ) ▽ F ( x )  F '( x )  J f ( x ) T f ( x ) ### F ( x )   n fi ( x ) fi ( x ) ▽ F ( x )  F '( x )  J f ( x ) T f ( x  _x_ _j_ _i_ 1  _x_ _j_ <u></u> _<u>F</u>_ <u>(</u> _<u>x</u>_ <u>)</u> _n_ _<u>fi</u>_ <u>(</u> _<u>x</u>_ <u>)</u> _T_ ###   fi ( x ) ▽ F ( x )  F '( x )  J f ( x ) f ( x ) (55)  _x_ _j_ _i_ 1  _x_ _j_ _n_ ### x )   fi ( x ) fi ( x ) ▽ F ( x )  F '( x )  J f ( x ) T _j_ _i_ 1  _x_ _j_ 1 Where <sup>_J_</sup> _f_ ( _x_ ) is referred to as the Jacobian matrix of _f_ ( _x_ ), defined as: <u>(</u> _<u>x</u>_ <u>)</u> <u></u> _<u>f</u>_ <u>1(</u> _<u>x</u>_ <u>)</u> <u></u> _<u>f</u>_ <u>1(</u> _<u>x</u>_ <u>)</u>  <u></u> _<u>f</u>_ <u>1(</u> _<u>x</u>_ <u>)</u> <u></u> _<u>f</u>_ <u>1(</u> _<u>x</u>_ <u>)</u>  <u></u> _<u>f</u>_ <u>1(</u> _<u>x</u>_   _x_ 1  _x_ 2  _x_ _m_  <u></u> _<u>f</u>_ <u>2</u> <u>(</u> _<u>x</u>_ <u>)</u> <u></u> _<u>f</u>_ <u>2</u> <u>(</u> _<u>x</u>_ <u>)</u>  <u></u> _<u>f</u>_ <u>2</u> <u>(</u> _<u>x</u>_ _J_ _f_ ( _x_ )    _x_ 1  _x_ 2  _x_ _m_  <u></u> _<u>f</u>_ <u>1(</u> _<u>x</u>_ <u>)</u> <u></u> _<u>f</u>_ <u>1(</u> _<u>x</u>_ <u>)</u>  <u></u> _<u>f</u>_ <u>1(</u> _<u>x</u>_ <u>)</u>    _x_ 1  _x_ 2  _x_ _m_   <u></u> _<u>f</u>_ <u>2</u> <u>(</u> _<u>x</u>_ <u>)</u> <u></u> _<u>f</u>_ <u>2</u> <u>(</u> _<u>x</u>_ <u>)</u>  <u></u> _<u>f</u>_ <u>2</u> <u>(</u> _<u>x</u>_ <u>)</u> <u></u> ~~~~    _x_ 1  _x_ 2  _x_ _m_            <u></u> _<u>fn</u>_ <u>(</u> _<u>x</u>_ <u>)</u> <u></u> _<u>fn</u>_ <u>(</u> _<u>x</u>_ <u>)</u> <u></u> _<u>fn</u>_ <u>(</u> _<u>x</u>_ <u>)</u> <u></u>    _x_ 1  _x_ 2  _x_ _m_ <u></u> <u>1(</u> _<u>x</u>_ <u>)</u> _<u>f</u>_ <u>1(</u> _<u>x</u>_ <u>)</u>  _<u>f</u>_ <u>1</u>  1 _x_ 2 _m_  <u></u> _<u>f</u>_ <u>2</u> <u>(</u> _<u>x</u>_ <u>)</u> <u></u> _<u>f</u>_ <u>2</u> <u>(</u> _<u>x</u>_ <u>)</u>  <u></u> _<u>f</u>_ <u>2</u> <u>(</u> _<u>x</u>_ <u>)</u> ( _x_ )    _x_ 1  _x_ 2  _x_ _m_ <u>2</u> <u>(</u> _<u>x</u>_ <u>)</u> _<u>f</u>_ <u>2</u> <u>(</u> _<u>x</u>_ <u>)</u>  _<u>f</u>_ <u>2</u>   ~~~~ _n_  _m_ _f_ ( _x_ )    _x_ 1  _x_ 2  _x_ _m_    (56) ACKNOWLEDGMENT We would like to express our appreciation to Professor YiZhi Tian for inspiring our collective interest in the development of innovative technologies. The guidance and insights provided by Professor Tian have been invaluable to each member of our team, contributing significantly to our shared enthusiasm for this field. REFERENCES [1] Biplob Hossain,Md.,et al."Dynamic Electrical Equivalent Circuit Modeling of the Grid-Scale Proton Exchange Membrane Electrolyzer for Ancillary Services".2022 IEEE Industry Applications Society Annual Meeting (IAS),2022. [2] Correa,G.,et al."Pressurized PEM water electrolysis: Dynamic modelling focusing on the cathode side".International Journal of Hydrogen. Energy,vol.47,2022,pp.4315-4327. [3] Ma, Xiaofeng, et al. "Research status and application prospect of PEM electrolytic water to hydrogen technology_Ma Xiaofeng." Journal of Solar Energy, 43, 06, 2022, pp.420-427. [4] Yu, H. M., et al. "Research progress and development proposal of hydrogen production technology from electrolyzed water." Chinese Engineering Science 23.02(2021):146-152. [5] Cancelliere,Rocco,et al."Nafion-based label-free immunosensor as a reliable warning system: The case of AFB1 detection in cattle feed".Microchemical Journal,vol.191,2023,pp.108868,https://doi.org/10.1016/j.microc.202 3.108868. [6] Atlam, Ozcan, and M. Kolhe . "Equivalent electrical model for a proton exchange membrane (PEM) electrolyser." Energy Conversion & Management 52.8-9(2011):2952-2957. ~~~~  _x_ 1  _x_ 2  _x_ _m_          1 _x_ 2 <u>(</u> _<u>x</u>_ <u>)</u> <u></u> _<u>fn</u>_ <u>(</u> _<u>x</u>_ <u>)</u> <u></u> _<u>fn</u>_ <u>(</u> _<u>x</u>_ <u>)</u> _<u>fn</u>_ <u>(</u> _<u>x</u>_ <u>)</u> <u></u> _<u>fn</u>_ <u>(</u> _<u>x</u>_ <u>)</u>  <u></u> _<u>fn</u>_ <u>(</u> _<u>x</u>_  _x_ 1  _x_ 2  _x_ _m_ _<u>n</u>_ _<u>x</u>_ _<u>fn</u>_ _<u>x</u>_  _<u>fn</u>_  1 _x_ 2 _m_ If _F_ ( _x_ ) is continuous and conductible, the point at which its derivative is 0 is the extremum, i.e., the solution sought: _F_ '( _x_ )  _J_ _f_ ( _x_ ) _T_ _f_ ( _x_ )  0 (57) Assuming there is a small increment h within the current neighborhood of x, we can use Taylor's theorem to obtain: [7] Guilbert,Damien,and Vitale Gianpaolo."Experimental Validation of an Equivalent Dynamic Electrical Model for a Proton Exchange Membrane Electrolyzer".2018 IEEE International Conference on Environment and Electrical Engineering and 2018 IEEE Industrial and Commercial Power Systems Europe (EEEIC / I&amp;CPS Europe),2018,https://doi.org/10.1109/eeeic.2018.8494523.Dang, Jian, et al. "Transient behaviors and mathematical model of proton exchange membrane electrolyzer." Journal of Power Sources (2022). [8] Dang,Jian,et al."Transient behaviors and mathematical model of proton exchange membrane electrolyzer".Journal of Power Sources,vol.542,2022. [9] Hernandez-Gomez, Angel, et al. "Development of an adaptive staticdynamic electrical model based on input electrical energy for PEM water electrolysis." International journal of hydrogen energy 38(2020):45. Motorola Semiconductor Data Manual, Motorola Semiconductor Products Inc., Phoenix, AZ, USA, 1989. [10] Garcia-Valverde, R., N. Espinosa, and A. Urbina . "Simple PEM water electrolyser model and experimental validation." International Journal of Hydrogen Energy 37.2(2012):1927-1938. [11] Abdin,Z.,et al."Modelling and simulation of a proton exchange membrane (PEM) electrolyser cell".International Journal of Hydrogen Energy,vol.40,2015. [12] Yigit,Tevfik,and Selamet Omer Faruk."Mathematical modeling and dynamic Simulink simulation of high-pressure PEM electrolyzer system".International Journal of Hydrogen Energy,vol.41,2016,pp.13901-13914. [13] Afshari, E., et al. "Performance assessment of gas crossover phenomenon and water transport mechanism in high pressure PEM electrolyzer." International Journal of Hydrogen Energy 46.19(2020). [14] Khajuria,Rahul,et al."Model Parameter Extraction for PEM Electrolyzer Using Honey Badger Algorithm".2023 IEEE 3rd International Conference on Sustainable Energy and Future Electric Transportation (SEFET),2023,https://doi.org/10.1109/SEFET57834.2023.10245702. [15] Toghyani, Somayeh, et al. "Optimization of operating parameters of a polymer exchange membrane electrolyzer." International Journal of Hydrogen Energy 44.13(2019):6403-6414. [16] Khajuria,Rahul,et al."Optimal Parameter Identification of PEM Electrolyzer using Bald Eagle Search Optimization Algorithm".2022 IEEE 10th Power India International Conference (PIICON),2022. [17] Guilbert, Damien, and G. Vitale . "Dynamic Emulation of a PEM Electrolyzer by Time Constant Based Exponential Model." Energies 12.4(2019). [18] Nafchi, Faeze Moradi, et al. "A parametric study of polymer membrane electrolyser performance, energy and exergy analyses." International journal of hydrogen energy 44.34(2019):18662-18670. [19] Yan Ma, et al. "Study on factors affecting the total heat transfer coefficient of buried pipelines." China Petroleum and Chemical Standards and Quality 42.18(2022):139-141. [20] Ruuskanen, Vesa, et al. "PEM water electrolyzer model for a power hardware-in-loop simulator." International Journal of Hydrogen Energy 42.16(2017):10775-10784. [21] Valyukh, Sergiy, et al. "Multi-surface phase-shifting algorithm using the window function fitted by the nonlinear least squares method." Journal of Modern Optics 69.3(2022):160-171. [22] Zhu,Zaiping,et al."A Review of Point Sets Parameterization Methods for Curve Fitting".2023 27th International Conference Information Visualisation (IV),2023,https://doi.org/10.1109/IV60283.2023.00070. [23] Ding Feng." System identification (2): a basic model for system description." Journal of Nanjing University of Information Engineering (Natural Science Edition) 3.02(2011):97-117. doi:10.13878/j.cnki.jnuist.2011.02.001. [24] Ding Feng." System Identification (6):Multi-New Information Identification Theory and Methods." Journal of Nanjing University of Information Engineering (Natural Science Edition) 4.01 (2012): 128. doi:10.13878/j.cnki.jnuist.2012.01.001. XINKE MAO was born in L inyi, Shandong, in November 1995. He received a Bachelor of Engineering degree in electrical engineering from Tianshui Normal University in September 2020. Currently, he is pursuing a Master's degree in Electrical Engineering at Xinjiang University. His research focus is on power systems and their automation, primarily involving the control of PEM electrolyzers in integrated energy systems. YIZHI TIAN received his bachelor's degree from North China Electric Power University (Beijing). He received his master's degree from Xinjiang University in 2010 and earned his Ph.D. from Xinjiang University in 2014. He has been employed at the university since 2015. His main research areas include power system stability and control, as well as the optimization of integrated energy systems. He has received funding for six projects from the National Natural Science Foundation of China, one international cooperation project, and he received funding for one project from the Autonomous Region Natural Science Foundation. Additionally, he has been involved in three industry-sponsored research projects, published 10 papers, including 2 SCI-indexed papers and 2 EI-indexed papers, and holds six national invention patents. AIMEI YANG was born in XinJiang, in August 1980. In 2019, she received a Bachelor of Engineering degree from Xinjiang Agricultural University. She has been employed at Beijing Tianrun New Energy Investment Co., Ltd. since January 2018, where she currently holds the position of Business Manager. She has obtained certifications as a Registered Second-Class Constructor and Registered Supervision Engineer. In 2022, she was awarded the Holly Tree Award for Best Service and Outstanding Individual Achievement. GaoHang Zhang received a Ph.D. degree in Electrical Power Systems and Automation from Xinjiang University in 2022. In the same year, he joined the Department of Electrical Engineering and Automation at Xinjiang University in July. In 2022, he was awarded the "Tianchi Talent" Young Ph.D. Talent Program in the autonomous region. He is the principal investigator for one project funded by Xinjiang University's Excellent Talent Program (Class A), one project from the Autonomous Region Youth Science Fund, and one project from the Autonomous Region Graduate Student Research Innovation Program. Additionally, he is involved in one project funded by the National Natural Science Foundation of China and has contributed as a key participant in multiple research projects.

섹션 본문 125문단 · 51,887자

(제목 없음)

1This paper addresses the problem of underestimated temperature measurements in practical proton exchange membrane (PEM) electrolyzer engineering due to heat losses by enhancing the existing second-order RC equivalent circuit model of PEM electrolyzers.We present a novel engineering circuit model for PEM electrolyzers, incorporating the effects of heat losses from gases and pipelines.The objective is to enhance the model's ability to predict electrolyzer performance and align control strategies with the realities of engineering practice.However, the PEM electrolyzer model is complex, being time-varying and nonlinear due to multi-physics field coupling.The parameters of the equivalent circuit are changed by the electrical energy input and its own state.To tackle the problem of parameter variation, firstly, a recursive identification algorithm is employed to estimate the internal equivalent circuit parameters of the engineering model.Then, the additional resistance is fitted according to the relationship between heat loss and current to complete the engineering circuit model identification.Finally, using MATLAB to construct an engineering model and validate the effectiveness of the proposed identification algorithm.INDEX TERMS Proton exchange membrane (PEM), engineering circuit mode, parameter identification, recursive identification algorithm, curve fitting, system simulation.Authorized licensed use limited to the terms of the applicable license agreement with IEEE.Restrictions apply.

I. INTRODUCTION

2Due to the increasing demand for global energy supply and the growing significance of environmental and climate issues, green, low-carbon, and sustainable development has gained worldwide prominence.Hydrogen, owing to its environmental friendliness, high energy density, and wide range of sources, is regarded as a promising energy source [1].Hydrogen production methods include fossil fuel-based production, industrial byproduct utilization, and water electrolysis.Among these methods, water electrolysis stands out as the cleanest.As the installed capacity of renewable energy continues to rise, the integration of renewable energy and electrolysis technology is set to emerge as the predominant

3The associate editor coordinating the review of this manuscript and approving it for publication was Behnam Mohammadi-Ivatloo.approach for producing green hydrogen in the future [2].Water electrolysis technology encompasses various techniques: alkaline electrolysis (AEL), proton exchange membrane electrolysis (PEM), solid oxide electrolysis (SOEC), and anion exchange membrane electrolysis (AEM).Among these, PEM electrolysis technology features high power density, exceptional electrolysis efficiency, superior hydrogen purity, rapid system response, and great flexibility.It is well-suited to accommodate the intermittent, stochastic, and fluctuating nature of renewable energy generation.As a result, PEM electrolysis has garnered extensive attention in both the research and industrial sectors [3], [4].Nafion excels as a Proton Exchange Membrane (PEM), enhancing PEM electrolysis cell performance with superior proton conductivity, chemical stability, mechanical flexibility, water management capabilities, and widespread commercial availability [5].

4Developing an accurate model for a PEM electrolyzer is crucial for researchers to investigate and analyze significant issues such as design, control, evaluation, and more under different operating conditions.Atlam utilized experimental data to construct a PEM electrolyzer circuit model, deducing the relationship between input electrical energy and hydrogen production rate [6].Damien Guilbert extending from steadystate circuitry, considered abrupt changes in current and employed least-square regression algorithms to fit capacitance and resistance parameters, resulting in a dynamic circuit model [7].Jian Dang constructed a transient model for the PEM electrolyzer using differential equations and equivalent activation overpotential [8].Ángel Hernández-Gómez further optimized the differential equations for cathode and anode activation overpotentials, forming a static-dynamic adaptive model [9].Although the models developed by literatures [6], [7], [8], and [9], effectively capture the I-V relationship of the PEM electrolyzer, they do not adequately reflect the physical and chemical principles of the internal components.In recent years, emerging electrochemical models have built upon the basis of equivalent circuit models, introducing enhancements like dynamic sub-models and thermodynamic sub-models.Such models further elucidate operational mechanisms, offering reasonable explanations for electrode polarization and mass transfer processes within the PEM electrolyzer.The model established by García-Valverde et al. considers the influence of temperature on the PEM electrolyzer, but it is relatively straightforward and does not incorporate the effect of pressure [11].Abdin et al. considered concentration overpotentials but encountered difficulties in estimating parameters like electro-osmotic drag [12].Tevfik and Faruk modeled the entire PEM electrolyzer system, encompassing water circulation and cooling systems [13].Afshari et al. delved deeper into mass transfer processes involving gases and water, including gas crossover phenomena and water transport [14].While electrochemical models for PEM electrolyzers effectively simulate polarization and mass transfer processes, these models are built upon experimental PEM electrolyzer foundations and do not account for heat losses in practical engineering contexts [11], [12], [13], [14].

5Since the parameters of the PEM electrolyzer are changed by the input electrical energy and its own state, it is necessary to employ identification methods to estimate these real-time changing parameters.Identification methods primarily fall into two categories: numerical identification algorithms and heuristic optimization algorithms.Rahul Khajuria employed the honey badger algorithm for parameter identification of seven parameters in the PEM electrolyzer cell.A comparison with heuristic algorithms such as PSO and GWO demonstrated the superiority of the honey badger algorithm [15].Toghyani et al. utilized the Taguchi algorithm to optimize parameters and obtain the optimal working conditions [16].Khajuria et al. applied metaheuristic algorithms to identify six unknown parameters of the PEM electrolyzer [17].While heuristic algorithms often demonstrate superior adaptability to avoid local optima, their reliance on empirical knowledge and intuition introduces variability in results across different runs, lacking a guarantee of solution accuracy.In contrast, numerical algorithms, with their rigorous mathematical foundations, prove invaluable in scientific computations and precision-demanding engineering applications.In this paper, we employ a multi-innovation least squares identification algorithm to identify the equivalent circuit parameters of a PEM electrolyzer.This algorithm improves the convergence speed problem of numerical algorithms while avoiding the local optimization problem of heuristic algorithms.

6To facilitate more convenient measurement of PEM electrolyzer data in the experimental environment, independent drain and outlet ports were set up, each equipped with temperature measurement holes.However, in practical engineering scenarios, to ensure internal pressure within the PEM electrolyzer, it is designed as a sealed container, with the air outlet and water outlet combined into a single outlet.The oxygen produced is discharged along with the circulating water through the anode outlet, while the hydrogen generated is released through the cathode outlet along with a small amount of circulating water.The gas discharged with the circulating water carries a non-negligible amount of heat, and the circulating water also generates a non-negligible amount of energy loss in the pipeline; however, the experimental model does not consider the aforementioned heat loss.Therefore, based on the electrochemical model, this paper introduces a model tailored for engineering applications.The model equates the heat losses in gas and circulating water to an external additional resistor within the framework of a second-order RC circuit.It employs a recursive identification algorithm to estimate internal equivalent circuit parameters and utilizes a curve-fitting method to model the external additional resistor.Finally, the reliability of the engineering model and the accuracy of the identification method are validated through simulation experiments.This enhances the predictive capability of the PEM electrolyzer's behavior in practical engineering scenarios, offering valuable insights for control system design.

II. EQUIVALENT CIRCUIT MODEL OF PEM ELECTROLYZE

7Constructing an equivalent circuit model for a PEM electrolyzer is a prerequisite for characterizing its electrochemical properties and studying control strategies.However, due to structural differences between PEM electrolyzers used in experimental settings and practical engineering scenarios, their corresponding equivalent circuit models are also different.Case (a) in Fig. 1 illustrates the schematic diagram of a circulating water system for a PEM electrolyzer in an experimental environment.In this setup, the generated hydrogen, oxygen, and circulating water are discharged separately through the cathode outlet, anode outlet, and water outlet, respectively.Additionally, temperature measurement ports are present in both the cathode and anode.While the circulating water supply system of the PEM electrolyzer in actual engineering, as shown in case (b) of Fig. 1, cathode circulating water and hydrogen exit jointly from the cathode outlet, while anode circulating water and oxygen exit together.

8The circulating water supply system equipment for the PEM electrolyzer in the practical engineering context includes one PEM electrolyzer, one water tank, two gas-water separators, one water pump, one tee, and some silicone tubes, as shown on the right side of Fig 1 .When the system is running, the deionized water passes through the water inlet, the pole plate flow field, and the porous transport layer to the anode side of the membrane electrode, and is decomposed into oxygen, electrons, and protons under the action of electric energy and catalyst.Some of the oxygen and deionized water travel through the anode outlet and pipeline to the gaswater separator.The separated deionized water is directed to the water tank via the three-way valve.On the cathode side, electrons flow through the membrane electrode and electrode plate, returning to the external circuit to provide the driving force for the electrolytic reaction.Protons and a small amount of deionized water traverse the proton exchange membrane to reach the cathode side.In the presence of catalysts, protons combine with electrons from the external circuit to generate hydrogen gas.The generated hydrogen gas, accompanied by a small amount of deionized water, passes through the porous transport layer and the bipolar plate flow field to reach the cathode outlet.This mixture then travels through the pipeline to the gas-water separator, where the separated hydrogen gas is collected in a hydrogen storage unit.The deionized water passes through the three-way valve and enters the water tank.

A. STRUCTURE AND EQUIVALENT CIRCUIT OF PEM ELECTROLYZER BASED ON EXPERIMENTAL ENVIRONMENT

9The commonly used equivalent circuit model of the PEM electrolyzer is the second-order RC circuit model, which can simulate the voltage distribution and dynamic characteristics of the PEM electrolyzer in the experimental environment.The overall operating voltage of the equivalent circuit of the PEM electrolyzer in the experimental environment consists of reversible voltage U rev , cathode activation overvoltage U act , ohmic overvoltage U ohm , and the expression is as follows [9], [10], [12], and [13]:

10The equivalent circuit model corresponding to (1) is illustrated in Fig. 2. The reversible voltage U rev signifies the fundamental voltage required for the electrolysis of water, while the Ohmic resistance R ohm characterizes the resistance generated by protons passing through the proton exchange membrane and the hindrance of current by the electrode plates.C 1 and C 2 represent the equivalent capacitance of the cathode and anode, respectively, induced by the double-layer effects at the cathode and anode.R 1 is the cathode resistance, representing the resistance causing Gibbs energy and heat loss at the anode, while R 2 is the anode resistance, representing the resistance causing heat loss at the cathode.The time constants τ 1 and τ 2 are used to denote the time required for the dynamic behavior of the cathode and anode in the PEM electrolyzer.

11The reversible overpotential U rev is the minimum voltage required for the electrolysis of water, representing the smallest voltage necessary to convert electrical energy into chemical energy.It is derived from the Nernst equation [12].

12where R is the ideal gas constant, T cell is the operating temperature of the electrolyzer, F is the Faraday constant, P H 2 and P O 2 represent the partial pressures of the gas products hydrogen and oxygen respectively, and P H 2 O represents the partial pressure of water at the cathode and anode.T 0 signifies the external environmental pressure.Activation overvoltage is generated by electrochemical polarization.It signifies a voltage shift due to the sluggishness of electrochemical reactions, which is required to maintain the motion of protons and electrons.It can be mathematically expressed using the Butler-Volmer equation [13]: where i is the current density, α cat and α an are the cathode and anode charge transfer coefficients, and i 0,cat and i 0,an are the cathode and anode exchange current densities.The cathode and anode equivalent time constants τ 1 and τ 2 are estimated as follows [9]:

13Then, by relating the time constants to the resistances, the equivalent capacitance of the cathode and anode can be obtained:

14In Fig. 3, the Ohmic overpotential encompasses the overpotential arising from the hindrance of protons by the proton exchange membrane and the overpotential stemming from the impedance caused by the bipolar plates and gas diffusion layers to the flow of electrons.The expressions are as follows:

15In Equation ( 6), R pl , R el , and R me respectively denote the resistances imposed on electron transport by the electrode plates, the porous transport layer, and the proton exchange membrane.These can be expressed as [14]:

16In Equation (7), where ρ an pl and ρ cat pl represent the resistivity of the two electrode plates, respectively.W s denotes the width of the flow field channel supporting the electrode plates, W c represents the width of the flow field channel, H p1 and H p2 respectively denote the thickness of the cathode and anode electrode plates as well as the height of the flow field channel.ρ eff represents the effective resistance of the gas diffusion layer.L is the length of the electrolysis cell, W is the width of the electrolysis cell, H e is the width of the porous transport layer, and ρ el and ε respectively denote the resistance and porosity of the gas diffusion layer for the cathode and anode.The resistance of the proton exchange membrane is given by [16]:

17where δ m is the thickness of the proton exchange membrane and σ m is the proton exchange membrane conductivity.

18An empirical formula is provided as follows [13]:

19where λ represents the wetness of the proton exchange membrane, and it can be empirically expressed as:

20The above model represents a PEM electrolyzer cell in an experimental environment.Due to the presence of temperature measurement holes in the experimental setup and the separate discharge of circulating water and gas, the temperature measured at these holes is considered the electrolyzer cell temperature, and any temperature deviation can be considered negligible.However, in engineering applications, PEM electrolyzers experience significant heat losses that cannot be ignored.Therefore, the model developed in the experimental environment is not suitable for practical engineering applications, and there is a need to establish an equivalent circuit model that is appropriate for engineering scenarios.

B. MODEL STRUCTURE AND EQUIVALENT CIRCUIT OF PEM ELECTROLYZER BASED ON ENGINEERING PRACTICE

21There are two main differences between the PEM electrolyzer in actual engineering and the one in the experimental environment.Firstly, in the engineering setup, the PEM electrolyzer is a sealed container and does not have temperature measurement holes, necessitating temperature measurements at the gas-water separator outlet, which results in some heat loss through the pipelines.Secondly, in the experimental model, the water temperature is approximated as the temperature of the PEM electrolyzer, without accounting for the heat within the gases.The above two points indicate that the model in the experimental setting deviates significantly from the actual project.

22Temperature is a crucial factor influencing the performance of PEM electrolyzers.Parameters such as thermal equilibrium voltage, proton exchange membrane conductivity, and exchange current density are significantly affected by temperature variations [8].The PEM electrolyzer model developed under laboratory conditions does not account for the heat in the gases and the heat dissipation through pipelines, which leads to a discrepancy between the measured temperature and the actual temperature in real engineering applications.If temperature data with certain deviations are used for simulating, predicting, and controlling engineering processes, it can lead to reduced hydrogen production efficiency, at best.At worst, it can result in damage to components such as the membrane electrode.In order to make the model compatible with actual temperature for engineering measurements, we introduce an engineering-specific model.

1) MODEL STRUCTURE AND EQUIVALENT CIRCUIT OF PEM ELECTROLYZER BASED ON ENGINEERING PRACTICE

23Modeling assumptions:

241) The heat generated by the Joule heating effect at the cathode and anode is approximately equal.

252) The electrolyzer has excellent thermal insulation, and there is no heat exchange between the equipment itself and the external environment.3) Throughout the entire experimental duration, the heat flow per unit time is equal to the total heat generated divided by the total time.If the resistances at the cathode and anode of the PEM electrolyzer are approximately equal, then the heat generated at each electrode due to Joule heating is roughly equal.Consequently, each electrode contributes half of the heat generated by the Joule heating effect.The heat generated at the anode and cathode per unit time can be determined using Ohm's law: (11) where R total represents the total equivalent resistance within the electrolyzer.The heat discharged from the anode into the circulating water per unit time is given by:

26The heat discharged from the anode into the oxygen gas per unit time is given by:

27The heat discharged from the anode per unit time is equal to the sum of the heat discharged into the circulating water and the heat discharged into the oxygen:

28where, C H 2 O and C O 2 represent the molar heat capacities of water and oxygen gas.Additionally, Ṅ an H 2 O,out , ṄH 2 O,in , ṄH 2 O,con , and ṄH 2 O,mem denote the molar mass of water discharged from the anode per unit time, the molar mass of water entering the system per unit time, the molar mass of water consumed during the electrolysis process per unit time, and the molar mass of water transferred from the anode side to the cathode side through the proton exchange membrane (via processes like electrodialysis and diffusion).T 0 and T an cell represent room temperature and the anode temperature of the electrolyzer, respectively.The anode heat is calculated by subtracting the heat generated by the anode electrical energy from the heat of the anode outlet drainage and exhaust, and then the anode temperature is reverse-calculated using the heat calculation formula:

29Subtracting t 1 from t 2 represents the time during which the gas-water mixture flows through the anode chamber.The heat released from the cathode into the circulating water per unit of time is:

30The heat released into the hydrogen gas per unit of time is:

31where ṄH 2 represents the molar quantity of hydrogen discharged per unit time.The heat released from the cathode per unit of time is equal to the sum of the heat in the cathode circulating water and the heat in the hydrogen gas:

32where C H 2 represents the molar heat capacity of hydrogen gas, and T cat cell represents the cathode temperature of the electrolyzer.The expression for the average cathode temperature is:

33The subtraction of t 3 from t 4 represents the time during which the gas-water mixture flows through the cathode chamber.

2) CALCULATION OF ENERGY LOSS IN PIPING

34The boundary conditions for the experimental model and heat transfer in the pipeline are such that T cat wg and T an wg represent the temperatures of the cathode and anode steam-water mixtures, respectively, and the average temperature of the cathode and anode in the PEM electrolysis cell is approximated to represent the temperature of the steam-water mixture in the outlet pipelines of both electrodes:

35Energy transfer occurs through three forms: conduction, convection, and radiation.Due to water's significantly higher thermal conductivity compared to that of gas, the heat lost in the pipes mainly considers three aspects: convective heat transfer between the circulating water and the pipe inner wall, convective heat transfer between the pipe outer wall and the surrounding environment, and their thermal resistances are respectively represented by R tr1 , R tr2 , and R tr3 .The total heat transfer coefficient K p of the pipeline for the pipeline liquid and the external temperature difference of 1 • C, the unit time through the unit heat transfer area of the heat, used to describe the degree of heat dissipation in the pipeline, approximated by heat balance equation:

36where α 1 represents the convective heat transfer coefficient between the circulating water and the pipe wall, α 2 represents the convective heat transfer coefficient between the pipe wall and the air, λ 1 is the thermal conductivity of the pipe wall, and the inner and outer diameters of the pipe are denoted by r 1 and r 2 respectively.However, the calculations for α 1 , α 2 , and λ 1 can be quite complex.The actual calculation of the heat transfer coefficient of the pipe wall can be reversed according to the Schukhov's equation [20]:

37where L p is the measured length of the pipe, T p,ini and T p,end are the water temperatures at the starting and ending points, and T 0 is the external temperature of the pipe.The heat lost from the pipe per unit time is given by:

38The sum of the heat lost from the pipe and the heat lost from the gas represents the heat loss of the anode and cathode.According to Joule's law, this heat loss can be equivalently represented as a resistance:

39where R cat hl and R an hl represent the equivalent resistance of heat losses at the cathode and anode, respectively, and their corresponding voltages are U cat hl and U an hl , the total voltage in the engineering model is:

40The PEM engineering model is depicted in Fig. 4. Since heat loss is considered external to the PEM electrolyzer, the model is divided into two parts: the internal equivalent circuit and an additional resistance for external heat loss, referred to as the ''additional resistance'' in the following text.

III. IDENTIFICATION OF EQUIVALENT CIRCUIT PARAMETERS INSIDE THE PEM ELECTROLYZER ENGINEERING MODEL

41With changes in operating conditions, the physical and electrochemical characteristics of the PEM electrolyzer change, and the parameters in the equivalent circuit model change accordingly.In practical engineering, the parameters of the equivalent circuit of the PEM electrolyzer are not directly measurable.To accurately predict and control the behavior of a PEM electrolyzer, identifying the parameters in the equivalent circuit model is a prerequisite.

42Since heat losses are external energy losses in the PEM electrolyzer, the parameter identification in this paper is divided into two parts for the engineering model: first, the identification of the internal second-order RC circuit, followed by curve fitting to obtain the functional relationship between current and external additional resistance.

A. ESTABLISHING THE SECOND-ORDER RC CIRCUIT STATE EQUATION

43The state equation accurately describes the relationship between system inputs and states and serves as the raw form required for recursive algorithms.Therefore, in this section, we establish a state equation to represent the relationship between the state and properties of the PEM electrolyzer.Fig. 5 shows the polarization curve obtained through MAT-LAB simulation of the PEM electrolyzer.The total voltage of the electrolyzer is composed of reversible voltage, ohmic overvoltage, and activation overvoltage.From the graph, it can be observed that ohmic overvoltage is directly proportional to current density, while the reversible voltage gradually decreases with an increase in the electrolyzer's temperature, although the decrease is not very pronounced.The dynamic characteristics of the equivalent circuit of the PEM electrolyzer are mainly caused by the double-layer effect at the cathode and anode, where the electrodes are separated from the electrolyte surface charge to form a double-layer of equal amount and opposite sign.In Fig. 5, it takes a certain amount of time for the cathode and anode activation overpotential curves to reach saturation.This time delay is represented by the time constant τ , which can be approximated as the product of resistance and capacitance, i.e., τ = R × C [13].

44In the equivalent circuit, the use of cathode and anode capacitances, C 1 and C 2 , simulates the double-layer effects at the cathode and anode of the electrolyzer.R 1 represents the cathode heat loss, while R 2 models the Gibbs free energy and heat loss at the anode.These components collectively account for the dynamic behavior of the PEM electrolyzer [8].The state equation for the activation overvoltage at the cathode and anode can be derived from Kirchhoff's current law:

45The output equation is given by:

46Let U cell.1 = U cell − U rev , and express the state equation and output equation in matrix form:

47Denote the matrices A, b, c, and d as:

B. EQUATION OF STATE DISCRETIZATION AND DIFFERENTIAL DIFFERENTIATION

48Since computers can only process discrete digital signals, it is necessary to discretize the state equations established in (28) and convert them into a different equation form suitable for recursive algorithms.When sampling a system, it is necessary to convert a continuous-time system into a discrete-time system by transforming the continuous-time variable ''t'' into a discrete-time variable ''k.''This transformation represents the variable at discrete time instances '' t = kT ,'' where ''T'' is the sampling period.Using a zero-order hold discretization method, denoted as U act (t) = U act (kT ), kT ≤ t < (k + 1)T , and designated as U act (kT ) = U act (k).

49In our approach, a crucial assumption is introduced, where within the short time intervals employed for analytical time integration, the resistances R 1 and R 2 (representing anode and cathode resistances) and capacitances C 1 and C 2 (representing anode and cathode capacitances) of the second-order RC circuit are presumed to remain constant.Specifically, at each time step T representing the sampling interval, it is assumed that these parameters do not change.

50The rationale behind this assumption is grounded in our observation of the system's dynamics, indicating that variations in circuit parameters are considered negligible within these brief time intervals.Consequently, we treat both the resistance and capacitance as constants throughout the analytical time integration process.This choice is made with the intention of balancing computational efficiency and accurately capturing the dynamic behavior of the system.

51The discrete-time counterpart of the continuous-time state equation is given by [24]:

52The expression for the transition matrix (t) is as follows:

53This leads to the parameter matrices G and f :

54Substituting G and f into (29), we obtain the discrete-time state-space equations and output equation as follows:

55Transforming the state equation into a difference equation form, and utilizing the properties of the shift operator, equation (33) can be expressed at time k:

56Substituting ( 35) into (34) yields:

57C 1 (ze

58Let e T τ 1 = a 1 and e T τ 2 = a 2 , and substitute them into (36) to obtain (37), as shown at the bottom of the next page.

59Let K1-K5 be the following values (38), as shown at the bottom of the next page.

60Substituting (38) into (37) gives the difference form of voltage:

61In equation (39), U cell.1 (k), U cell.1 (k −1), and U cell.1 (k −2) represent the difference between the electrolyzer voltage and reversible voltage at time k, k−1, and k−2, respectively.i el (k), i el (k − 1), and i el (k − 2) represent the electrolyzer current at time k, k−1, and k−2, respectively.

C. MULTI-INNOVATION LEAST SQUARES (MILS) PARAMETER IDENTIFICATION

62Parameter estimation algorithms can be categorized into one-shot completion algorithms, recursive algorithms, and iterative algorithms.In the online identification process, the one-shot completion algorithm utilizes all available data for parameter estimation.However, as new data emerges, the computational load gradually increases, making it less suitable for real-time applications.Recursive algorithms, on the other hand, continuously adjust estimates based on existing data and are well-suited for online identification.In contrast, iterative algorithms involve multiple rounds of parameter updates and optimization, leading to higher computational complexity and potentially requiring multiple iterations to converge.Recursive algorithms are better suited for online identification, while iterative algorithms are more adept at handling convergence issues in offline identification, unaffected by real-time system stability concerns.Therefore, this study employs the MILS algorithm for the identification of internal circuit parameters.

63The PEM electrolytic cell involves electrochemistry, thermodynamics, fluid dynamics, and other disciplines.The internal equivalent circuit parameters of the cell change with variations in input electrical energy, temperature, pressure, and other state variables.To determine the values of parameters within the ''black box'', it is necessary to collect observational data from the system, which includes input and output data.The current moment's parameter values can be obtained through a recursive method.The additional input autoregressive model (ARX) is expressed as follows [24]:

64where y(k) is the system output sequence, u(k) is the system input sequence, v(k) is zero-mean Gaussian random white noise, and A(z) and B(z) are delay operator polynomials, respectively.The ARX form of the PEM electrolyzer can be obtained by (39):

65where ϕ(k) is an information vector consisting of input current and output voltage data, θ is a parameter to be recognized, and v(k) is a scalar new interest, which can be expressed as:

66Extend innovation scalar to innovation vectors:

67. . .

68where p is the innovation length.In order to be compatible with the dimensionality of matrix multiplication, the information vector ϕ(k) should also be extended to the corresponding

69Authorized licensed use limited to the terms of the applicable license agreement with IEEE.Restrictions apply.

70matrix:

71Then the system multi-innovation least squares identification algorithm is of the form:

72The recursive procedure for updating the parameters of the MILS algorithm can be obtained after derivation [25]: 46)

73In equations ( 46), (47), and (48) represent the parameter update equation, gain update equation, and covariance matrix update equation, where θ(k) and θ(k − 1) are the current and previous parameter estimates, L(k) is the gain vector, and P(k) is the covariance matrix.The detailed MILS algorithm flow can be found in APPENDIX A.

IV. PEM ELECTROLYZER ENGINEERING MODEL EXTERNAL ADDITIONAL RESISTANCE PARAMETER FITTING

74Section B in part II analyze the heat lost from the cathode and anode gases in the PEM electrolyzer and the heat lost from the pipeline heat transfer, respectively.It provides a method to equivalently represent the heat losses at the anode and cathode as resistances, where the heat in the gas at the anode and cathode is determined by ( 12) and ( 16), and the heat lost through circulating water in the pipes is determined by (23).The total heat loss in the PEM electrolyzer is obtained by adding the heat from the gas and the heat losses from the pipes.Subsequently, the additional impedance is reversecalculated using (24).Because the additional impedance tends to stabilize with the current, as shown in Fig. 6, the anode and cathode additional resistances gradually stabilize under a step current of 160A.Therefore, in this study, the additional resistances at steady currents ranging from 20A to 200A were obtained through simulation experiments.These resistances were then fitted to functions of current using curve fitting methods.

75The power supply for the PEM electrolyzer is typically obtained from renewable energy through AC/DC or DC/DC converters for rectification and voltage reduction.The resulting current waveform is generally a constant direct current (DC), and when the power from renewable sources changes, the DC current undergoes corresponding step changes.To determine the values of additional resistance under different step currents, we employed a curve-fitting method to fit the curves and derive the additional resistance values for different step currents.

76At a certain moment when the input current undergoes a step change, the temperatures of the cathode and anode of the PEM electrolyzer can be determined based on the heat calculation equations ( 11)- (19).Using the boundary condition in (20), the temperature of the entire electrolyzer is assumed to be the temperature of the steam-water mixture.Subsequently, heat loss is calculated through (23), and the current at this moment is substituted into Equation ( 24) to obtain the additional impedance.The specific steps for fitting the additional resistance are as follows [23]:

771) Due to the PEM electrolyzer's maximum current capacity of 200A, we conducted simulations to gather additional impedance corresponding to currents ranging from 20A to 200A.Using current as the x-axis and additional impedance as the y-axis, we obtained a two-dimensional dataset 2) Determine the fitting function: Based on the pattern of the dataset, establish an appropriate fitting function.Since the dataset closely follows a power-law function, a power-law function is selected as the fitting function in this chapter.

783) Determine the criteria: Establish the criteria for fitting error, utilizing the least squares approach to minimize the distance between all data points and the fitted curve.

794) Optimize Fitting Parameters: Since the criterion function is nonlinear, a numerical algorithm is needed to iteratively search for the optimal parameters a and b to minimize the criterion function.

805) Evaluate Fitting Quality: After obtaining the parameters through fitting, the quality of the fit can be assessed using evaluation metrics such as the coefficient of determination (R-squared), root mean square error (RMSE), and other relevant indicators.The specific optimization process can be found in APPENDIX B.

V. SIMULATION VERIFICATION

81This chapter extensively surveyed the parameters of existing PEM electrolyzers on the market and referenced a significant amount of literatures [1], [12], [13], and [21].Based on this, we constructed a PEM electrolyzer engineering model as described in Chapter II, employing the MATLAB/Simulink simulation tool as a reference for the identification results.The main parameters, physical constants, and other parameters of the electrolysis cell are listed in Table 1, Table 2, and Table 3, respectively.This chapter begins with the identification of the experimental model.Observational data from the model is collected and used in the recursive algorithm to estimate the circuit parameters of the constructed PEM electrolyzer.The overall error in the identified parameters is analyzed.Then, the additional resistance in the engineering model is curve fitted.Using Joule's law, we calculate the equivalent resistance for thermal losses within the specified current range, resulting in the derivation of the parameters for the engineering model's equivalent circuit.Finally, the simulation results of the experimental and engineering models are analyzed for errors with the identification results.

A. IDENTIFICATION OF EQUIVALENT CIRCUIT PARAMETERS INSIDE PEM ELECTROLYZER ENGINEERING MODELS

82A continuous excitation signal refers to an input signal that excites the essential characteristics of a system.To elicit the dynamic characteristics of the PEM electrolyzer, a step current excitation is applied to the system, as shown in Fig. 7(a) The simulation time is 10 seconds, with a sampling time of 0.002 seconds.The current undergoes a sudden change from 0.01A to 160A at 3 seconds.The system voltage is depicted in Fig. 7(b).Considering the presence of sensor errors, electronic component noise, measurement inaccuracies, environmental disturbances, etc., in practical systems, it is necessary to filter the collected data before parameter identification.The signal after filtering has a smaller noise compared to the original signal.Therefore, in this study, white noise is added to the ideal data to approximate the filtered data, simulating the random errors in the system.As the PEM electrolyzer cell operates with high current and low voltage, white noise sequences with mean 0 and variances of σ 2 = 1 and σ 2 = 0.00002 are added to the input data (i el ) and output data (u el ), respectively.The signal-to-noise ratios are 45.57dB and 49.14dB for current and voltage, respectively.The system currents and voltages after adding noise are shown in Fig. 7(c) and Fig. 7(d), respectively.All current and voltage data collected during the simulation period are used for parameter estimation of the PEM electrolyzer, following the identification method outlined in part III.

83Based on Section B in III, it can be concluded that the difference equation of the system to be identified are represented by (39).In order to assess the effect of the innovation length on the identification process in the MILS algorithm, the innovation length (p) is set to be 3, 4, 5, 6, and 7, respectively.Additionally, the least squares method is employed as a control experiment.These methods are applied to identify the parameters of the equivalent circuit model for the PEM electrolyzer.A total of 5000 data points are collected within a 10-second period.At each time step, the input and output data of the system are used as inputs to the identification algorithm for recursive estimation, resulting in the direct identification results K 1 , K 2 , K 3 , K 4 , and K 5 .These direct identification results, K 1 to K 5 , are then used in (38) to obtain the final identification values, which are the parameters C 1 , C 2 , R 1 , R 2 , and R ohm of the second-order RC equivalent circuit model.The final identification results are shown in Table 4. Through a comparison between the identification results of the equivalent circuit and the experimental simulation results, an assessment of the accuracy of parameter identification can be made.Based on Fig. 8 and Table 4, the following conclusions can be drawn:

841) Over a 10-second period, a total of 5000 data points were collected.As the number of recursive iterations increased, the error in the identification results steadily decreased and eventually stabilized.

852) With the increase in the innovation length, the identification error gradually reduced.When the innovation length reached a certain optimal value, the error minimized.If the innovation length continued to increase beyond this optimal point, the identification values started to deviate from the true values.When the innovation length in MILS is set to 5, the identification results show the least deviation from the true values.

863) When the innovation length in MILS is set to 1, it essentially becomes the Recursive Least Squares (RLS).RLS algorithm, which is similar to LSM, has a lower data utilization rate.In contrast, MILS not only utilizes the current data but also repetitively uses the past p − 1 data points, thereby increasing data utilization efficiency.This improvement enhances the convergence speed and identification accuracy of the algorithm.Figure 9 shows the curve of parameter estimation error (δ) as a function of time (t).From this graph, it can observed that with the innovation value of 5 in MILS (p = 5), the error tends to stabilize and reaches its minimum as time increases.

87The above results indicate that representing the PEM electrolyzer experimental model as a state-space equation, transforming it into the ARX model through discretization and differencing, and then identifying it using the MILS algorithm results in an identification error of less than 2% when compared to the experimental results.This demonstrates a high level of accuracy in the identification process.

B. CURVE FITTING OF EXTERNAL ADDITIONAL RESISTANCE FOR PEM ELECTROLYZER ENGINEERING MODELS

88The model established in Section B in part II allows simulating the steady-state values of cathode and anode additional resistances for different step current values, and then fitted into an R-I function.The fitted curves for anode additional impedance versus current are shown in Fig. 10[a], while the fitted curves for cathode additional impedance versus current are displayed in Fig. 10[b].It can be observed that as the current increases, the thermal loss equivalent resistance gradually decreases.This is because even though the heat loss from the pipeline and gas loss increases with the current, the square of the current growth rate in (24) is much higher than the growth rate of thermal loss in the PEM electrolyzer, hence the decreasing trend of the additional resistance changes from sharp to slow.

89This article uses nonlinear least squares to fit a power function curve, denoted as f (x) = ax b .The curve depicting the change in anode and cathode additional resistances with current can be obtained as follows:

90In part IV, with an input current excitation of 160A, the fitted curve equations were applied to obtain the equivalent resistances for the anode and cathode thermal losses, resulting in values of 6.57454 × 10 −7 for R an hl (anode) and 1.53148 × 10 −4 for R cat hl (cathode).

C. ERROR ESTIMATION OF SIMULATION RESULTS

91The error is a measure of the difference between predicted values and actual values.In order to determine the effect of fit between simulation results and identification results, this study employs the Root Mean Square Error (RMSE) and Mean Absolute Error (MAE) to calculate the errors between simulated voltage and estimated voltage.Their definitions are as follows:

92where

93rel represent the estimated and actual values for the ith data point, respectively.As shown in Fig. 11, under a step current input of 160A, the voltage simulation results for the experimental model are represented by curve (1), while the voltage simulation results for the engineering model are shown by curve (2).Curve (3) corresponds to the identification results for the experimental model, and curve (4) represents the identification results for the engineering model.It can be observed that curve (1) closely matches curve (2), indicating that the identification results for the internal circuit parameters of the engineering model are relatively accurate.Similarly, curves (3) and (4) show consistent results, reflecting the good fitting performance of the engineering model's additional impedance.The difference between curve (1) and curve (3) represents the partial pressure of heat loss resistance, indicating the voltage deviation caused by the measurement temperature deviation.The RMSE and MAE between the identification results of the experimental model and the simulation results, calculated using (52) and (53), are 2.33% and 1.72%, respectively.For the engineering model, the RMSE and MAE between the identification results and simulation results are 0.40% and 1.41%, respectively.

VI. CONCLUSION

94For better understanding, this section provides a summary of all equations and calculations.Equations ( 1)-( 10) constitute the mathematical model of a PEM electrolyzer under experimental conditions, outlining the components of the working voltage.Equations ( 11)-( 19) involve heat-related calculations, including temperatures of water, gas products, and cathode and anode of the electrolyzer, serving as a foundation for computing heat loss in the pipeline and additional impedance.Equations ( 21)-( 23) calculate heat loss in the pipeline, Equation ( 24) uses Joule's law to equate lost heat to additional impedance, and Equation ( 25) represents the operating voltage of the practical engineering electrolyzer, completing the establishment of the engineering model.Equations ( 26)-( 28) transform the mathematical model into a matrix-form state-space expression.Equations ( 29)-(39) discretize and difference the state-space expression, converting it into a form suitable for recursive algorithms.Equations ( 40 The paper introduces an engineering model designed for PEM electrolyzers.This model is based on the experimental model by equating the heat in the discharged gas with the heat dissipated in the pipe as additional resistances.This compensation accounts for inaccuracies in voltage due to temperature measurement deviations in the experimental model.As the parameters of the PEM electrolyzer equivalent circuit model vary with physical and electrochemical characteristics, a system identification method is employed to estimate the model parameters.Since the heat loss is an external loss of the PEM electrolyzer, the heat loss resistance is relatively independent of the parameters in the second-order RC circuit.Therefore, the engineering model is divided into two parts for identification.Firstly, the internal parameters of the second-order RC circuit are identified using a recursive algorithm.Then, the parameters of the current vs. additional resistance power function curves were fitted by nonlinear least squares fitting of the power function curves.Finally, the accuracy of the identification results is verified by calculating the error between the identification results and the simulation results using RMSE and MAE.

95The simulation results show that with an MILS innovation length of 5, the internal parameter identification error is minimized at 1.3%.The RMSE and MAE for the identification of the internal equivalent circuit of the engineering model, which is equivalent to the experimental model, are 2.33% and 1.72%, respectively.After adding the additional resistances to the experimental model, the RMSE and MAE for the identification results compared to simulation results are 0.40% and 1.41%, respectively.The sources of errors in the identification of internal equivalent circuit parameters are related to factors such as the initial values, the innovation length, convergence speed of the MILS identification algorithm, and the accuracy of the state equation discretization.The errors in the identification results after adding external additional resistances are related to data quality and the choice of the fitting model.

96Through the above-mentioned method, the identification of internal equivalent circuit parameters and the fitting of external additional resistances have shown promising results.The identification results exhibit minimal discrepancies when compared to the experimental results, indicating an overall successful identification process.This approach can be helpful for predicting and controlling PEM electrolyzers in engineering applications.If the parameters of the MILS identification algorithm are adjusted appropriately, and an appropriate fitting model is selected, I believe this method can accurately identify the majority of PEM electrolyzer equivalent circuit parameters.

97In conclusion, the paper presents an engineering model for PEM electrolyzers, utilizing a compensation method for temperature-related voltage inaccuracies.Internal parameters are identified using a recursive algorithm, and fitting external resistances is achieved through nonlinear least squares fitting.The identified parameters exhibit minimal discrepancies with experimental results, suggesting the potential of this method for accurate prediction and control of PEM electrolyzers in engineering applications.

APPENDIX A MILS ALGORITHM FLOW

98The identification process, as shown in Fig. 12, follows these steps [25]:

991) Initialize the parameters by setting the initial values of the parameter vector θ(0) and the covariance matrix p(k) at the moment k = 1.

1002) Collect the current and voltage observations i cell (k) and U cell.1 (k), and construct the information matrix (p, k) and the innovation vector V (p, k).

1013) Update the parameter θ(k) using (46) and calculate the gain matrix L(k) and covariance matrix P(k) using ( 47) and (48).4) Make K = K + 1, determine whether the termination condition is satisfied, if k = L then stop the recursion, otherwise continue the recursion.

APPENDIX B NONLINEAR LEAST SQUARES OPTIMIZATION

102The Levenberg-Marquardt (LM) algorithm combines aspects of the steepest descent and Gauss-Newton algorithms, making it a standard approach for solving nonlinear least squares problems.In this section, the LM algorithm is used for optimization in the aforementioned nonlinear problem.Let ax b i −y i = f i (x) in (50) and the least squares criterion be [23]:

103A partial derivation of the independent variables of (54) yields the least square error sum:

104where J f (x) is referred to as the Jacobian matrix of f (x), defined as: If F(x) is continuous and conductible, the point at which its derivative is 0 is the extremum, i.e., the solution sought:

105Assuming there is a small increment h within the current neighborhood of x, we can use Taylor's theorem to obtain:

106The LM algorithm introduces a penalty term to (58):

107where µ represents the damping factor.The neighborhood size needs to be controlled when linearly approximating f (x).When the approximation is good, the search neighborhood is larger, the penalty term takes a smaller proportion of L lm (h), µ is smaller, and the increment h is relatively large.When the approximation is poor, the search neighborhood is reduced to a smaller range, resulting in a larger µ and a smaller h.Differentiation of L lm (h) and setting its derivative to zero yields the increment h lm :

108As µ approaches 0, h lm tends toward the Gauss-Newton method.When µ approaches ∞, h lm tends toward the small step-size steepest descent method.The approximation level of f (x) is defined as follows:

FIGURE 1 .

109FIGURE 1. Circulating water supply system for PEM electrolyzer in experimental setting (a) and engineering (b).

FIGURE 2 .

110FIGURE 2. Equivalent circuit of PEM electrolyzer.

FIGURE 3 .

111FIGURE 3. PEM electrolyzer ohmic resistance distribution.

FIGURE 4 .

112FIGURE 4. PEM electrolyzer engineering model.

FIGURE 5 .

113FIGURE 5. Polarization curves of PEM electrolyzer and overpotentials of each section.

FIGURE 6 .

114FIGURE 6. Trend of additional resistance at 160A step current.

FIGURE 7 .

115FIGURE 7. Voltage variation curve under step current input.

FIGURE 8 .

116FIGURE 8. Identification results of C1, C2, R1, R2 and Rohm parameters.

FIGURE 9 .

117FIGURE 9.The curve of the parameter estimation error δ changing with time t.

TABLE 4 .

118Comparison of identification results and errors for various parameters at the end of the simulation.

FIGURE 10 .

119FIGURE 10.Anode and cathode R-I fitting graphs.

FIGURE 11 .

120FIGURE 11.Comparison between simulation results and identification results.

121)-(48) involve calculations related to MILS, where input current (Iel) and output voltage (Uel) data are input into the recursive algorithm to obtain values for K1-K5.These values, K1-K5, can be derived from the identification values of circuit parameters through Equation (38), representing the parameters of the experimental model.Equations (49) and (50) represent the fitting function and criteria, and Equation (51) presents the fitting results.Combining the obtained additional impedance with the experimental model yields the engineering model of the PEM electrolyzer.Equations (54)-(61) in Appendix B detail the derivation process of curve fitting.

FIGURE 12 .

122FIGURE 12. MILS algorithm process.

TABLE 1 .

123PEM electrolytic cell system main parameter Settings.

TABLE 2 .

124Physical constant.

TABLE 3 .

125Other parameters.

참고문헌 21건

  1. Modelling and simulation of a proton exchange membrane (PEM) electrolyser cell International Journal of Hydrogen Energy · Elsevier BV · 2015 10.1016/j.ijhydene.2015.07.129
  2. Simple PEM water electrolyser model and experimental validation International Journal of Hydrogen Energy · Elsevier BV · 2011 10.1016/j.ijhydene.2011.09.027
  3. Electrochemical performance modeling of a proton exchange membrane electrolyzer cell for hydrogen energy International Journal of Hydrogen Energy · Elsevier BV · 2015 10.1016/j.ijhydene.2015.03.164
  4. Equivalent electrical model for a proton exchange membrane (PEM) electrolyser Energy Conversion and Management · Elsevier BV · 2011 10.1016/j.enconman.2011.04.007
  5. Mathematical modeling and dynamic Simulink simulation of high-pressure PEM electrolyzer system International Journal of Hydrogen Energy · Elsevier BV · 2016 10.1016/j.ijhydene.2016.06.022
  6. PEM water electrolyzer model for a power-hardware-in-loop simulator International Journal of Hydrogen Energy · Elsevier BV · 2017 10.1016/j.ijhydene.2017.03.046
  7. Experimental Validation of an Equivalent Dynamic Electrical Model for a Proton Exchange Membrane Electrolyzer 2022 IEEE International Conference on Environment and Electrical Engineering and 2022 IEEE Industrial and Commercial Power Systems Europe (EEEIC / I&amp;CPS Europe) · 2018 10.1109/eeeic.2018.8494523
  8. A parametric study of polymer membrane electrolyser performance, energy and exergy analyses International Journal of Hydrogen Energy · Elsevier BV · 2018 10.1016/j.ijhydene.2018.11.081
  9. Optimization of operating parameters of a polymer exchange membrane electrolyzer International Journal of Hydrogen Energy · Elsevier BV · 2019 10.1016/j.ijhydene.2019.01.186
  10. Dynamic Emulation of a PEM Electrolyzer by Time Constant Based Exponential Model Energies · Multidisciplinary Digital Publishing Institute · 2019 10.3390/en12040750
  11. Development of an adaptive static-dynamic electrical model based on input electrical energy for PEM water electrolysis International Journal of Hydrogen Energy · Elsevier BV · 2020 10.1016/j.ijhydene.2020.04.182
  12. Performance assessment of gas crossover phenomenon and water transport mechanism in high pressure PEM electrolyzer International Journal of Hydrogen Energy · Elsevier BV · 2020 10.1016/j.ijhydene.2020.10.180
  13. Hydrogen Production by Water Electrolysis: Progress and Suggestions Strategic Study of CAE · Chinese Academy of Engineering · 2021 10.15302/j-sscae-2021.02.020
  14. Pressurized PEM water electrolysis: Dynamic modelling focusing on the cathode side International Journal of Hydrogen Energy · Elsevier BV · 2021 10.1016/j.ijhydene.2021.11.097
  15. Multi-surface phase-shifting algorithm using the window function fitted by the nonlinear least squares method Journal of Modern Optics · Taylor & Francis · 2021 10.1080/09500340.2021.2011971
  16. Transient behaviors and mathematical model of proton exchange membrane electrolyzer Journal of Power Sources · Elsevier BV · 2022 10.1016/j.jpowsour.2022.231757
  17. Dynamic Electrical Equivalent Circuit Modeling of the Grid-Scale Proton Exchange Membrane Electrolyzer for Ancillary Services 2022 IEEE Industry Applications Society Annual Meeting (IAS) · 2022 10.1109/ias54023.2022.9939788
  18. Optimal Parameter Identification of PEM Electrolyzer using Bald Eagle Search Optimization Algorithm 2022 10.1109/piicon56320.2022.10045282
  19. Nafion-based label-free immunosensor as a reliable warning system: The case of AFB1 detection in cattle feed Microchemical Journal · Elsevier BV · 2023 10.1016/j.microc.2023.108868
  20. Model Parameter Extraction for PEM Electrolyzer Using Honey Badger Algorithm 2023 10.1109/sefet57834.2023.10245702
  21. A Review of Point Sets Parameterization Methods for Curve Fitting 2020 24th International Conference Information Visualisation (IV) · 2023 10.1109/iv60283.2023.00070