WorksEngineering
Model-Free Detection and Accommodation of Sensor Faults for a PEM Electrolyzer
Abstract
We investigate the detection and accommodation of sensor faults for a proton exchange membrane electrolyzer coupled to a DC/DC converter powered by renewable energy sources. The proposed method for detecting and accommodating the sensor fault is model-free and is based on the concept of ultra-local model that is becoming classic in control engineering. The existing literature on active control tolerant to sensor fault dedicated to this question shows that no previous work has addressed this topic. Our approach mitigates the effect of sensor fault on closed-loop behavior and guarantees the stability and performance of the overall system. Numerical simulations under variations in renewable energy sources validate our approach.
Introduction
Green hydrogen is playing an key part in reducing carbon emissions in the industrial and transport sectors. This hydrogen is mainly produced using water electrolysers powered by renewable energy sources. In this framework, Proton Exchange Membrane Water Electrolyzers (PEMWE) technology is widely used for hydrogen production due to its fast response to renewable energy sources variations and its ability to support high current densities of up to [1].
Due to its complexity, the PEMWE system is subject to several types of faults: those occurring at the stack or cell level, such as membrane drying, crossover, membrane degradation, . . . , as well as those appearing at the system level, including balance of plant (leaks in pumps, valves, sensors, etc.). In recent years, many studies have been devoted to the diagnosis of this system. A model-based diagnosis approach via bond graph is proposed in [2]. The detection and isolation of several stack faults as membrane flooding and drying, crossover, . . . are made by evaluating residuals. A signal-based approach is proposed in [3] to detect stack short circuits and water shortages and to detect pump fault in [4]. However, these methods consider the open loop operation of the system.
A PEMWE operates at a voltage significantly lower than that provided by Renewable Energy Sources (RES), thereby necessitating a DC/DC buck converter as an interface [5], [6]. An Active Fault-Tolerant Control (AFTC) strategy has been
proposed for a three-phase stacked interleaved buck converter supplying a PEM electrolyzer [7], where a gate fault in one phase is considered. The proposed strategy enables continued operation under a degraded two-phase mode. Nevertheless, AFTC strategies addressing sensor faults accommodation for PEMWE systems remain largely unexplored and is the purpose of this work.
This paper proposes an active sensor fault-tolerant control strategy for a PEMWE system coupled with DC/DC converter supplied by RES. The proposed approach ensures closed-loop operation under RES voltage variations and is model-free, i.e. it does not rely on a mathematical modeling of the system for fault detection and accommodation.
This paper is organized as follows. Section II describes the PEMWE and DC/DC converter models which is used as a test bench for validation and states the problem of sensor AFTC. Section III presents the proposed model-free sensor fault accommodation approach, accounting for variations in the input voltage. Simulation results are provided in Section IV, and conclusions are drawn in Section V.
PEMWE Modeling and Control Objective
Modeling and control objective
The PEMWE model used in this paper is the one given in [8] which has been identified using Electrochemical Impedance Spectroscopy (EIS) method detailed in [9], [10]. The best obtained model in [8] is the one of order 6 and is given by (1).
In order to obtain a model for the whole PEMWE + SIBC converter, we need to express the transfer function in (1) with passive electrical components. This can be achieved using the residue theorem [11] as follows
where
So the coupling of the PEMWE model given by (2) with the SIBC converter is represented by Figure 1 where is the voltage supplied by the RES, is the control input and
Figure 1. Stacked interleaved DC-DC buck converter with pulse width modulation (PWM) and electrical model of PEMWE
the SIBC electrical components are given by: , , and .
Using the average state-space approach proposed in [12] and detailed in [13], a state-space model for the system given in Figure 1 is derived in [14] in the case of the number of parallel cells is equal to 2 instead of 6 in (2). So using straightforward developments, the state-space model in [14] leads to the following one
where , and are the control law, the state vector and the regulated output respectively, where
The state-space matrices are given by
where and are given by (for and )
In this paper, the RES supplied voltage is known and bounded as
where and .
Based on Faraday’s law [15], the flow rate hydrogen produced by PEMWE is given by
where is the number of cells in the stack, is Faraday’s constant, and is Faraday’s efficiency coefficient taken as 0.97. So, considering the hydrogen flow rate as the control objective is like controlling the current at the desired setpoint .
Problem statement
The measured current is expressed as
where is defined in (6), is a sensor fault, and is a zero-mean white Gaussian noise.
If the sensor fault is not taken into account in the synthesis of the control law, then it is and not that converges to the desired setpoint value . So an AFTC is therefore necessary to compensate the effect of on the closed-loop behavior in order to ensure that converges to despite and the variations of .
This problem is solved in Sect. III by employing our model-free viewpoint on fault detection, estimation, and accommodation.
Remark 1: It is important to note that the proposed approach detailed in Sect. III does not use Eq. (3), which will be used in Sect. IV to emulate the PEMWE + SIBC behavior. □
Model-free sensor fault accommodation for PEMWE
Before presenting the AFTC procedure, we briefly describe the model-free control design that is used in this paper.
Model-free control
Model-free control is based on an ultra-local model given by [16, 17]
where corresponds to the unknown part, and are the control input and measured output, is an appropriate constant coefficient. An estimation of reads [16]
The corresponding closed-loop control law, or intelligent proportional controller (iP), reads [16]
where is the reference trajectory, is the tracking error, while is a tuning gain.
In the presence of a sensor fault , the tracking error converges to 0 but does not track asymptotically since .
Model-free active fault tolerant control
Residual generation
We consider the following residual
where is given by
and is a parameter to be determined. For sensor fault detection and estimation purposes the residual in Eq. (12) must satisfy the following conditions
if , then , ,
if , then , .
So, when , the residual is equal to 0, if
where the steady-state values of the and are used. It has been shown [18, 19] that in Eq. (12) is constant for Linear Time Invariant (LTI) systems. But the PEMWE system in (4) is not LTI due to the variations of . Those variations are influencing and . It follows that should be expressed as depending on . Since the iP controller guarantees local stability, the steady-state is still achieved and the control input in steady-state can be expressed as follows
To approximate the integral in Eq. (14), the well-known rectangle method is used, where is the sampling time:
and
After straightforward computations, is expressed as follows (see [20] for more details):
where is given by (see Eq. (10))
Insert Eq. (15) in Eq. (16), assume that , then
Let and be the values of and , where is a given time-instant in the steady-state behavior, where .
Since the closed-loop stability and steady-state are achieved, in Eq. (3), in Eq. (15) reads
From
we obtain
Via Eqs. (19), (20), (21) and (16), becomes
where . 2) Sensor fault estimation and accommodation: If in Eq. (9), we obtain
where the initial condition is chosen by , and is the estimation of the sensor fault to be determined. Notice that is used in Eq. (24) in place of since does not depend explicitly of the noise .
Via Eqs. (22), (24), and (12), we get
and the best estimation of sensor fault is given by
where (see Eq. (18)).
The threshold of the residual is called . It is given by
where is the minimal absolute value of the sensor fault to be detected and estimated. Once the sensor fault is detected and estimated, i.e, , the sensor fault accommodation is made by adapting the tracking error defined in (9) as follows
Simulations results
Two cases are considered: the 1{sup}st one with constant V corresponding to Figure 3 and Figure 4 and the 2{sup}nd one with variable which is shown in Figure 2 corresponding to Figure 5 and Figure 6. In these two cases, there is no sensor fault accommodation procedure in Figure 3 and Figure 5, while the AFTC is applied in Figure 4 and Figure 6. Transient behaviors can be distinguished from steady-state behaviors: colored areas correspond to transient behaviors, while uncolored areas are associated with steady-state behaviors.

Figure 2. variations

Figure 3. (a) Trajectory tracking without AFTC (b) Residual (c) Estimated sensor fault (d) Control input . Constant without AFTC

Figure 4. (a) Trajectory tracking with AFTC (b) Residual (c) Estimated sensor fault (d) Control input . Constant with AFTC

(a) (a) Trajectory tracking without AFTC

(b) (b) Residual

(c) (c) Estimated sensor fault

(d) (d) Control input
Figure 6. Variable with AFTC

(a) (a) Trajectory tracking without AFTC

(b) (b) Residual

(c) (c) Estimated sensor fault

(d) (d) Control input
Figure 5. Variable without AFTC
In Figure 3 to Figure 6, and where A (see Eq. (27)). In the measurement Eq. (9), is a zero-mean white Gaussian noise with standard deviation . The value of the controller parameters are and .
For all treated cases, we can see that the controller ensures closed-loop stability and asymptotic trajectory tracking. So, the AFTC procedure can be applied on the steady-state behavior. For the 1{sup}st case, the sensor fault A appears at time s (see Figure 3c and Figure 4c) and the threshold is constant (see Figure 3b and Figure 4b), while the occurrence of the sensor fault A appears at time s for the 2{sup}nd case (see Figure 5c and Figure 6c) and the threshold is slightly variable (see Figure 5b and Figure 6b).
For the case where there is no accommodation procedure, the following comments can be made on Figure 3 and Figure 5:
the residual exceeds the threshold at a time-instant very close from the occurrence of the sensor fault, allowing the fault detection and estimation (see Figure 3b and Figure 5b);
the sensor fault is well estimated (see Figure 3c and Figure 5c);
after the fault occurrence, the measurement follows the desired trajectory instead of the regulated output (see Figure 3a and Figure 5a).
For the case where the AFTC procedure is applied, the following comments can be made on Figure 4 and Figure 6:
the residual exceeds the threshold at a time-instant very close from the occurrence of the sensor fault, allowing the fault detection and estimation (see Figure 4b and Figure 6b). At this time-instant, the AFTC procedure is triggered;
the sensor fault is well estimated (see Figure 4c and Figure 6c);
once the AFTC procedure is triggered, the regulated output follows the desired trajectory , which means that the AFTC is effective (see Figure 4a and Figure 6a). Notice that, the AFTC is not triggered in the transient behavior, so the measurement follows the desired trajectory instead of the regulated output ;
by comparing Figure 3d and Figure 4d on the one hand, and Figure 5d and Figure 6d on the other, we can see how the AFTC procedure has modified the control input .
Conclusions
Detection and accommodation of current sensor fault for the PEMWE were discussed. This measurement is essential for controlling hydrogen production via a water electrolyzer. The method developed does not rely on an analytical model of the process: the detection and compensation of sensor faults are model-free. The simulation results confirm that the actual current of the electrolyzer is regulated to the desired current despite significant variations in the voltage supplying the process in the presence of a sensor fault.
The fact that our approach is model-free and based on an ultra-local model makes it a good candidate for real-time application on a test bench, with low computational burden. The implementation of this method on a real test bench is being considered as part of future work.
References
- [1]D. Falcão and A. Pinto, “A review on PEM electrolyzer modelling: guidelines for beginners,” J. Cleaner Production, vol. 261, p. ID 121184, 2020.DOI
- [2]S. Sood, O. Prakash, J.-Y. Dieulot, M. Boukerdja, B. Ould-Bouamaama, and M. Bressel, “Robust diagnosis of PEM electrolysers using LFT bond graph,” International Journal of Hydrogen Energy, vol. 47, no. 80, pp. 33 938–33 954, 2022.
- [3]D. Shen, Y. Dong, Z. Lei, F. Yang, L. Cheng, and J. Jing, “Fault diagnosis of cells in pem electrolyzer stack under fluctuating power source,” International Journal of Hydrogen Energy, vol. 97, pp. 350–361, 2025.
- [4]F. Aubras, C. Damour, M. Benne, S. Boulevard, M. Bessafi, B. Grondin-Perez, A. J.-J. Kadjo, and J. Deseure, “A non-intrusive signal-based fault diagnosis method for proton exchange membrane water electrolyzer using empirical mode decomposition,” Energies, vol. 14, no. 15, p. 4458, 2021.
- [5]V. Guida, D. Guilbert, G. Vitale, and B. Douine, “Design and realization of a stacked interleaved DC-DC step-down converter for PEM water electrolysis with improved current control,” Fuel Cells, vol. 20, pp. 307–315, 2020.DOI
- [6]B. Yodwong, D. Guilbert, W. Kaewmanee, M. Phattanasak, M. Hinaje, and G. Vitale, “Improved sliding mode-based controller of a high voltage ratio DC-DC converter for electrolyzers supplied by renewable energy,” IEEE Trans. Industrial Electronics, vol. 71, pp. 8831–8840, 2024.DOI
- [7]X. Guo, S. Zhang, Z. Liu, L. Sun, Z. Lu, C. Hua, and J. M. Guerrero, “A new multi-mode fault-tolerant operation control strategy of multiphase stacked interleaved buck converter for green hydrogen production,” International Journal of Hydrogen Energy, vol. 47, no. 71, pp. 30 359–30 370, 2022.
- [8]M. Zasadzinski, M. Ait Ziane, and M. Alma, “Experimental identification approaches for a PEM water electrolyzer,” in Proc. IEEE Int. Conf. Control, Decision and Information Technologies, Split, Croatia, 2025.DOI
- [9]T. Vidaković-Koch, T. Miličić, L. Živković, H. Seng Chan, U. Krewer, and M. Petkovska, “Nonlinear frequency response analysis: a recent review and perspectives,” Current Opinion in Electrochemistry, vol. 30, p. ID 100851, 2021.
- [10]T. Miličić, M. Sivasankaran, C. Blümner, A. Sorrentino, and T. Vidaković-Koch, “Pulsed electrolysis — explained,” Faraday Discussions, vol. 246, pp. 179–197, 2023.DOI
- [11]K. Ogata, Modern Control Engineering. Englewood Cliffs, New Jersey: Prentice Hall, 1970.
- [12]R. Middlebrook and S. Cuk, “A general unified approach to modelling switching-converter power stages,” in Proc. IEEE Power Electronics Specialists Conf., Cleveland, USA, 1976.
- [13]N. Mohan, T. Undeland, and W. Robbins, Power Electronics, 2nd ed. New York: Wiley, 1995.
- [14]R. Maamouri, D. Guilbert, M. Zasadzinski, and H. Rafaralahy, “Proton exchange membrane water electrolysis: modeling for hydrogen flow rate control,” Int. J. of Hydrogen Energy, vol. 46, pp. 7676–7700, 2021.DOI
- [15]M. Ait Ziane, M. Zasadzinski, A. Bouramdane, E. Pahon, and H. Rafaralahy, “Experimental control of a PEM water electrolyzer: investigation of renewable energy source framework,” in Proc. IEEE Int. Conf. Control, Decision and Information Technologies, Split, Croatia, 2025.
- [16]M. Fliess and C. Join, “Model-free control,” Int. J. Control, vol. 86, pp. 2228–2252, 2013.
- [17]———, “An alternative to proportional-integral and proportional-integral-derivative regulators: Intelligent proportional-derivative regulators,” Int. J. Robust & Nonlinear Contr., vol. 32, pp. 9512–9524, 2022.DOI
- [18]M. Ait Ziane, C. Join, and M. Zasadzinski, “Sensor fault accommodation: a model-free framework,” Int. J. Control, 2025, https://doi.org/10.1080/00207179.2025.2482182.
- [19]M. Ait Ziane, M. Zasadzinski, C. Join, and M. Péra, “Model-free active sensor fault tolerant control for systems with linear static characteristic,” Int. J. of Dynamics and Control, vol. xx, pp. xx–xx, 2024, submitted.DOI
- [20]———, “Model-free active sensor fault tolerant control for systems with linear static characteristic,” Int. J. of Dynamics and Control, vol. 13, p. ID 267, 2025.DOI
