Learning Observer-Based Sensor Fault-Tolerant Control of Distributed Generation in an Islanded Microgrid for Bus Voltage Stability Enhancement

In order to improve robust operating performance and enhance bus voltage stability, a learning observer-based fault-tolerant control strategy is proposed for the distributed generation in islanded microgrid with sensor faults and uncertain disturbances. Firstly, the output feedback control theory and the linear matrix inequality method are used to design closed-loop controller for the voltage source inverter of distributed generation; secondly, a fault-tolerant model and control structure of the distributed generation in an islanded microgrid with sensor faults is analyzed. By employing the fault output signal conversion filter and proportional derivative type learning observer, the online estimation and real-time compensation of the sensor fault signal are realized. Thirdly, the system synthesis of output feedback control and fault-tolerant control is completed. Finally, the multi-scenario sensor fault scheme simulation experiment verifies that the proposed control strategy has strong sensor fault tolerance and adaptability.


Introduction
In recent years, due to the shortage of fossil energy and the crisis of the global ecological environment, distributed generation (DG) technologies based on renewable energy applications have undergone rapid development. As an effective operational organization form of DG, a microgrid can run in grid-connected mode or in islanded mode. When the microgrid runs in the islanded mode, there are still many challenges and problems in bus voltage stability control and reliable operation due to the lack of power support from the large grid [1][2][3][4].
In islanded mode, the microgrid bus voltage and frequency must be regulated only by the DG. In particular, the inverter of DG plays an important role as a power exchange interface with the microgrid. For example, reference [5] proposed a voltage-power control method to improve the parallel operation performance of DG based on the voltage source inverter (VSI). Reference [6] proposed an accurate proportional power sharing method for a VSI-based islanded microgrid with minimal communication requirements. Reference [7] proposed an adaptive sliding mode controller to improve the anti-disturbance ability of the islanded parallel VSI control system and ensure the global robustness of the bus voltage stabilization. In refs. [8,9], multivariable closed-loop feedback control methods are used to design the VSI voltage controllers through a dq frame for the islanded mode. No matter what control method is used, it is necessary to accurately detect the DG output voltage and current. These detection results are directly used in the control algorithm operation of the inverter. Therefore, the accuracy of detecting voltage and current is crucial to the reliable operation of the DG in islanded microgrid.
Sensors are one of the most important and frequently faulty components in a detection system. If the voltage sensor and current sensor used to detect the DG output signal are faulty, the control output signal of the closed-loop controller will be wrong, causing a series of reactions, such as the unreliable output of the VSI, and even leading to the unstable operation of the microgrid [10][11][12].
Therefore, it is particularly important to carry out research on the fault-tolerant control of the microgrid under sensor fault conditions [13,14]. However, there are few relevant scenario studies at present, and only some references focus on the design of a power conversion controller based on the fault-tolerant control technology of fault observation and reconstruction. Reference [15] proposed a sensor fault observer for 5 KW wind power conversion system based on an estimation/decoupling strategy. In this method, the sensor fault is regarded as an unknown input variable. The system state variables and disturbance variables are estimated by the extended state observer (ESO), and a T-S fuzzy unknown input observation model is introduced to realize the identification and control compensation of sensor faults. Reference [16] proposed a Luenberger state observer (LSO) to estimate the faults of current sensors and DC link voltage sensors. Based on the detection of a possible sensor failure by the LSO, a reconstruction of the PWM rectifier control system is implemented to ensure reliable operation. Reference [17] studied the fault-tolerant attitude stabilization control of satellite systems under the conditions of actuator failure, sensor failure and external disturbance. Aiming at the faults of actuators and sensors in satellite systems, an output feedback fault-tolerant control scheme based on H ∞ observer was proposed. The authors in reference [18] investigated the sensor fault diagnostics and fault-tolerant control for a class of microgrid based on voltage source converter by using the sliding-mode observer. The sensor faults can be reconstructed through the sliding-mode observer and transferred to the control block. Then the simulation results were given on the basis of the estimation and estimated errors of states/output, the reconstruction of faults, the estimation of disturbances, and the control performance of fault-tolerance. However, the designs of the above observers are relatively complex and some preconditions must be given, which has a certain impact on the robustness of fault estimation.
In recent years, the observer-based method was widely used for its simple structure and easy to design. In considerable research, such as references [19,20], the authors investigated the compensation method for the actuator and attitude sensor faults of satellite based on the PD-type learning observers. A fault tolerant control strategy was studied in reference [21] based on the PD-type learning observers to control the rigid spacecraft attitude systems with external disturbances, parameter uncertainties and actuator faults. The authors in reference [22] put forward an observer-based adaptive learning control strategy to stabilize the attitude of the spacecraft affected by the actuator failure. Then, a compound control law was proposed by combining the above observer and robust feedback controller for the stability of the spacecraft attitude. However, there are few results on the estimation of sensor faults based on PD-type learning observer for the microgrid applications, which is the motivation of this paper.
In this paper, an observer-based bus voltage stability fault-tolerant control strategy is proposed for the robust operation of DG in islanded microgrid with sensor failure. The control scheme adopts output feedback control theory and proportional derivative (PD) type learning observer fault diagnosis theory. The PD-type learning observer is designed to estimate and compensate for sensor faults in the output voltage and current dq components of the DG in islanded microgrid. The estimated faults are used for control reconstruction to ensure stable and fault-tolerant operation of the DG in the islanded microgrid.
Briefly, the main contributions of this paper are: (1) A mathematical model of the DG in islanded microgrid with sensor faults and uncertain disturbances is built. (2) A microgrid DG fault-tolerant controller is designed by synthesizing a PD-type learning observer and output feedback controller.  The rest of this paper is organized as follows. In Section 1, the structure of the DG in islanded microgrid is presented. Section 2 analyzes the voltage closed-loop output feedback control system and fault model with sensor failure. Section 3 introduces the design process of fault-tolerant control strategy. Section 4 presents the system simulation results and analysis to evaluate the effectiveness of the proposed fault-tolerant control strategy. Finally, Section 5 draws conclusions. Figure 1 is a schematic diagram of the structure of an islanded microgrid with one DG. As can be seen in Figure 1, the input voltage v dc of DG is converted by a voltage source inverter, and the inverter output voltage v abc is connected to the AC grid through the LC filter. sensor fault scheme simulation experiments verify the correctness and effectiveness of the proposed fault-tolerant control strategy. The rest of this paper is organized as follows. In Section 1, the structure of the DG in islanded microgrid is presented. Section 2 analyzes the voltage closed-loop output feedback control system and fault model with sensor failure. Section 3 introduces the design process of fault-tolerant control strategy. Section 4 presents the system simulation results and analysis to evaluate the effectiveness of the proposed fault-tolerant control strategy. Finally, Section 5 draws conclusions. Figure 1 is a schematic diagram of the structure of an islanded microgrid with one DG. As can be seen in Figure 1, the input voltage vdc of DG is converted by a voltage source inverter, and the inverter output voltage vabc is connected to the AC grid through the LC filter. In Figure 1, the inverter adopts a six-pulse bridge power circuit structure; L and Cf are the inductance and capacitance of the LC filter, respectively; R is the total equivalent loss resistance of the inverter; θ is the phase angle of the inverter output voltage; and PLL is the phase-locked loop.

DG Structure and Mathematical Model in Islanded Microgrid
According to Figure 1, the electrical dynamic Equations of the DG in the abc coordinate system can be expressed as [23]: where vabc(t) and iabc(t) are the inverter output voltage and current, respectively, and vsabc(t) and iLabc(t) are the voltage and current of the DG connected to the island microgrid, respectively.
Assuming that the DC side input voltage of the DG is constant, for a three-phase inverter control system with SPWM modulation method, the per-cycle average value of the AC side voltage is related to the DC side input voltage as follows: In Figure 1, the inverter adopts a six-pulse bridge power circuit structure; L and C f are the inductance and capacitance of the LC filter, respectively; R is the total equivalent loss resistance of the inverter; θ is the phase angle of the inverter output voltage; and PLL is the phase-locked loop.
According to Figure 1, the electrical dynamic Equations of the DG in the abc coordinate system can be expressed as [23]: where v abc (t) and i abc (t) are the inverter output voltage and current, respectively, and v sabc (t) and i Labc (t) are the voltage and current of the DG connected to the island microgrid, respectively. Assuming that the DC side input voltage of the DG is constant, for a three-phase inverter control system with SPWM modulation method, the per-cycle average value of the AC side voltage is related to the DC side input voltage as follows: where m abc (t) is the modulation signal of PWM method, which is used to control the inverter output voltage. In the dq coordinate system, Equation (1) can be expressed as: where the subscripts d and q represent the d-axis and q-axis components; ω is the angular frequency, ω = 2πf, f is the frequency of the VSI output voltage and current; and m d and m q represent pulse width modulation signal in the dq coordinate.
Applying the Park transform operation to Equation (2), the following can be obtained: where v d and v q are the inverter output voltage components in the dq coordinate system, respectively. According to Equation (3), the DG mathematical model can be simplified as a state space form: .
where x is the state variable, x = [i d i q v sd v sq ] T ; y is the system output variable; C = I 4 is the unit vector; u is the control input, u = [m d m q ] T ; z is the disturbance term, z = [i Ld i Lq ] T ; and i Ld and i Lq are the components of the DG output current in the d-axis and q-axis respectively. Respectively, the state matrices A, B, H can be expressed as:

Fault Analysis and Controller Design
Accurate voltage and current detections are essential to ensuring the reliable operation of the DG in islanded microgrid, as these detections are used to calculate the PWM modulation signal that drives the inverter. Any errors in these detections could seriously disturb the operation of the DG in an islanded microgrid. Since the microgrid operates in islanded mode without the support of the main grid, detection errors can also adversely affect the bus voltage of the microgrid. Incorrect voltage and current detection s are mainly attributable to the failure of related detection equipment, such as sensor output error failure, sensor accuracy failure, sensor signal loss, etc.
Therefore, this paper carries out fault-tolerant control for the DG in islanded microgrid with sensor (current sensor or voltage sensor) faults, so as to improve the operating robustness performance of the DG and enhance the bus voltage stability of the microgrid.
When the sensor works normally, the voltage closed-loop output feedback controller of DG can be designed as shown in Figure 2.
The output feedback control law is defined as [24]: mainly attributable to the failure of related detection equipment, such as sensor output error failure, sensor accuracy failure, sensor signal loss, etc. Therefore, this paper carries out fault-tolerant control for the DG in islanded microgrid with sensor (current sensor or voltage sensor) faults, so as to improve the operating robustness performance of the DG and enhance the bus voltage stability of the microgrid.
When the sensor works normally, the voltage closed-loop output feedback controller of DG can be designed as shown in Figure 2.
The output feedback control law is defined as [24]: In Figure 2, the reference input voltage vector vref and the actual measured output voltage vector vs are adopted to the output feedback controller as to calculate and generate the control signal uc.
In order to make the DG in the islanded microgrid operate more stably, an augmented system model with an output feedback controller is considered because of the external disturbance. It is expressed as: where xa = [x T η T ] T , ya is the system output variable with an output feedback controller is the output of the integral term of the output feedback controller; each matrix is defined as: Here, the linear matrix inequality LMI method is used to determine the control law gain matrix K [25,26], assuming that there is a positive definite matrix M > 0 satisfying the following inequality: In Figure 2, the reference input voltage vector v ref and the actual measured output voltage vector v s are adopted to the output feedback controller as to calculate and generate the control signal u c .
In order to make the DG in the islanded microgrid operate more stably, an augmented system model with an output feedback controller is considered because of the external disturbance. It is expressed as: where x a = [x T η T ] T , y a is the system output variable with an output feedback controller and η = v re f − v s is the output of the integral term of the output feedback controller; each matrix is defined as: Here, the linear matrix inequality LMI method is used to determine the control law gain matrix K [25,26], assuming that there is a positive definite matrix M > 0 satisfying the following inequality: Through the LMI minimization method, the corresponding matrices M and K can be solved, under the condition that the value of the linear matrix inequality variable β is minimized. The controller designed by the above-mentioned minimization method can effectively suppress the influence of disturbance on the system, thereby enhancing the robustness of the controller and ensuring the realization of the control objective.
In order to determine the controller gain matrix K = [−K p K i ] T , define Ω = KM and rewrite the above inequality as an LMI: Finally, Ω and M are obtained by programming, and the gain matrix K is determined as follows: When the sensor works in a fault state, the proposed fault-tolerant control law u can be designed as follows: where u f is the output feedback control law with fault compensation, which will be designed in the next section.

System Model with Sensor Faults
For the DG in the islanded microgrid, a system model considering sensor faults can be established as: .
where y b is the system output variable considering sensor faults; D s = I 4 is the error vector coefficient matrix, which represents the selection of the fault signal; and f s represents the fault signal of the output current and voltage of the DG in islanded microgrid, which can be expressed as:

Fault-Tolerant Control Based on PD-Type Learning Observer
In this paper, the fault diagnosis and estimation method of the PD-type learning observer is used to realize quickly and accurately estimate and compensate the sensor faults in the operation of DG in an islanded microgrid.

Design of PD-Type Learning Observer
For the DG model Equation (12), in an islanded microgrid, considering sensor faults, the fault conversion filter can be designed as: where x s is the state variable of the filter that represents the filter system detection, and A s is the Hurwitz matrix. Combining Equations (12) and (14), and letting x(t) = [x T (t) x s T (t)] T , the system augmented fault model can be established as: .
where y s is the output of the DG in an islanded microgrid, considering the conversion filter, A, B, C, H and D S are the system state matrices, respectively, which are defined as: The dimension of input variables, output and fault vectors in the system augmented fault model (15) are the same as that in the original system model (12).
From the model Equation (15), it can be seen that the original sensor fault issue has been transformed into the actuator fault issue. For the augmented fault model (13), a PD-type learning observer is designed as: .
where e y is the output error and . e y is the integral term of the output error;x(t),ŷ s (t) andf (t) are the system state estimation, detection output estimation and sensor fault compensation signals of the observer, respectively; T and Q are the learning observer matrix, σ is the constant to be determined; and τ is the learning time interval.
Respectively, define the control system state estimation error e x , the output estimation error e y s and the actuator fault reconstruction error e f s as: From the augmented fault model Equation (15) and the PD-type learning observer Equation (16), the estimation error dynamic Equation can be expressed as: .

Observer Stability Analysis
The designed PD-type learning observer can estimate the sensor faults when the condition || f s (t)|| ∞ ≤ n is satisfied. Where In order to estimate the sensor fault accurately and quickly, the following theorem is obtained.
Theorem: Assuming that the sensor fault satisfies the above conditions, if a positive scalar σ ≥ 1, positive definite symmetric matrices P and G, and matrices Z and Q exist, then the following inequality holds.
where Z = PT, and W is symmetric matrix term. The proposed PD-type learning observer can guarantee that the augmented state estimation error and fault estimation error are ultimately uniformly bounded.
Proof: Choose the Lyapunov function as: By deriving the above Lyapunov function and letting J = A − TC, one obtains: .
Taking the fault compensation signal in Equation (17) into Equation (25) and employing Equation (22) results in: .
Selecting the positive scalar σ ≥ 1, and taking Equation (20) into the result, one obtains: .
where ξ = λ min (−χ). According to the Lyapunov stability theory, the system state estimation error e x and the fault estimation error e f s are eventually uniformly bounded. The designed observer is reasonable, which can accurately estimate the sensor fault.

Synthesis of Fault-Tolerant Control System
In order to design the observer matrix T to satisfy Equations (20)- (22), the issue of solving Equation (22) is transformed into the following inequality issue [27]: Thus, the issue of solving observer T is transformed into the issue of finding the minimum value of Equations (20), (21) and (29). By selecting a sufficiently small scalar γ and using LMI toolbox in MATLAB to solve three inequalities, the values of matrix P, Z and Q can be obtained, and then the value of matrix T can also be obtained. Figure 3 is a schematic diagram of the learning observer-based fault-tolerant control of the DG in the islanded microgrid with sensor faults. According to Figure 3, the purpose of fault-tolerant control is to ensure that the DG in an islanded microgrid achieves voltage stability operation both with and without sensor faults conditions. The fault-tolerant control law u includes the normal control law u c under the working condition of the sensor without fault and the fault compensation control law u f under the working conditions of the sensor failure. According to Figure 3, the purpose of fault-tolerant control is to ensure that the DG in an islanded microgrid achieves voltage stability operation both with and without sensor faults conditions. The fault-tolerant control law u includes the normal control law uc under the working condition of the sensor without fault and the fault compensation control law uf under the working conditions of the sensor failure.
The fault compensation control law uf can be designed as: Combining Equations (5) and (30), the final fault-tolerant control law u is obtained as [28]: According to the previous theoretical analysis, the advantages of the PD-type learning observer are summarized as follows: (1) There are few parameters and simple structure of the PD-type learning observer and (2) the computational complexity of the PDtype learning observer is greatly reduced. In the process of reconstructing the fault, the designer only calculates the historical information of faults and the estimation errors of the detection outputs without the integral ones; (3) the arbitrary error in sensors can be estimated by the PD-type learning observer; (4) the constraint that the control input is bounded can be relaxed under the PD-type learning observers; (5) the gain matrices of PD-type of observer can be solved by LMIs instead of haphazard selection; and (6) combining the PD-type observer with output feedback controller, the robustness of the DG operation can be guaranteed better and the stability of microgrid bus voltage can be improved.

System Simulation and Analysis
In order to verify the effectiveness of the fault-tolerant control strategy proposed in this paper, simulation analysis for multiple scenario sensor fault conditions was carried out. The fault compensation control law u f can be designed as: wheref s = f ifv is the estimated value of the fault. Combining Equations (5) and (30), the final fault-tolerant control law u is obtained as [28]: where v = v s −f v , v is the output voltage with fault compensation. According to the previous theoretical analysis, the advantages of the PD-type learning observer are summarized as follows: (1) There are few parameters and simple structure of the PD-type learning observer and (2) the computational complexity of the PD-type learning observer is greatly reduced. In the process of reconstructing the fault, the designer only calculates the historical information of faults and the estimation errors of the detection outputs without the integral ones; (3) the arbitrary error in sensors can be estimated by the PD-type learning observer; (4) the constraint that the control input is bounded can be relaxed under the PD-type learning observers; (5) the gain matrices of PD-type of observer can be solved by LMIs instead of haphazard selection; and (6) combining the PD-type observer with output feedback controller, the robustness of the DG operation can be guaranteed better and the stability of microgrid bus voltage can be improved.

System Simulation and Analysis
In order to verify the effectiveness of the fault-tolerant control strategy proposed in this paper, simulation analysis for multiple scenario sensor fault conditions was carried out.

System Parameter Setting
Aiming at the islanded microgrid circuit structure shown in Figure 1, a system simulation model was established using the MATLAB software platform. The DG circuit parameters are shown in Table 1.
According to the design method in Section 3.1, by constructing the augmented system model and using the LMI toolbox in MATLAB software, the parameters of the output feedback controller are obtained as: The learning observer matrix parameters can be calculated by the design method described in Section 4.3. The scalar γ is set to 10 −6 , σ is set to 1 and the time interval τ is set to 0.005 s. Using the LMI minimization approach to optimize the matrix parameters and solve the minimum value of inequality, the solution of matrix Q is obtained as: To compare the performance of the proposed control with previous existing methods, a PID controller was conducted. The PID control law parameters, K cp , K ci and K cd , were selected by using the classical experimental optimization method, which is a common method for highly nonlinear and uncertain control system design. To ensure the PID closedloop system has good response characteristics, the control parameters are determined as follows: K cp = 0.7, K ci = 0.012 and K cd = 13.5.

Scenario I: Sensor Output Error Fault in Steady State Operating Conditions
The simulation scenario I assumes a fault with aliasing noise in the current sensor output signal in DG steady state operating conditions to verify the ability of fault-tolerant control to suppress sensor output error faults.
It is assumed that a normally distributed random noise signal with a variance of 1 is aliased into the output signal of the A-phase current sensor within the period of 1 s to 1.5 s. In the period of 2.5 to 3 s, a normally distributed random noise signal with a variance of 1 is aliased into the output signal of the A-phase voltage sensor. These faults result in sensor output errors in two period of 1 s to 1.5 s and 2.5 s to 3 s.
In Scenario I fault conditions, PID control and output feedback control are applied, respectively. The output response curves of the DG in islanded microgrid are shown in s. In the period of 2.5 to 3 s, a normally distributed random noise signal with a variance of 1 is aliased into the output signal of the A-phase voltage sensor. These faults result in sensor output errors in two period of 1 s to 1.5 s and 2.5 s to 3 s.
In Scenario I fault conditions, PID control and output feedback control are applied, respectively. The output response curves of the DG in islanded microgrid are shown in Figure 4.   Figure 4a shows the output current response curves of the d-axis and q-axis in DG steady state operating conditions based on PID control and output feedback control. It can be seen that the currents are distorted in two period of 1 to 1.5 s and 2.5 to 3 s. The current fluctuation range based on output feedback control is between 0.25 pu and 0.4 pu. In contrast, the current fluctuation range based on PID control is between 0.55 pu and 0.9 pu. Figure 4b shows the output voltage response curves of the d-axis and q-axis based on PID control and output feedback control. Theoretically, the d-axis output voltage vd can reach a stable state and keep the output unchanged, while the q-axis output voltage vq tends to 0 under the control of the phase-locked loop mechanism. However, due to the faults of sensor output errors, the output voltage is distorted in two period of 1 s to 1.5 s and 2.5 s to 3 s, and the fluctuation range based on output feedback control is between 0.15 pu and 0.25 pu, while the fluctuation range based on PID control is between 0.5 pu and 0.85 pu. It can be seen that when the sensor has an output error fault, the suppressed performance of the output feedback controller is better than that of the PID controller. Figure 5 shows the current and voltage output response curves of the DG in the islanded microgrid in scenario I operating conditions by the proposed fault-tolerant controller.  In contrast, the current fluctuation range based on PID control is between 0.55 pu and 0.9 pu. Figure 4b shows the output voltage response curves of the d-axis and q-axis based on PID control and output feedback control. Theoretically, the d-axis output voltage v d can reach a stable state and keep the output unchanged, while the q-axis output voltage v q tends to 0 under the control of the phase-locked loop mechanism. However, due to the faults of sensor output errors, the output voltage is distorted in two period of 1 s to 1.5 s and 2.5 s to 3 s, and the fluctuation range based on output feedback control is between 0.15 pu and 0.25 pu, while the fluctuation range based on PID control is between 0.5 pu and 0.85 pu. It can be seen that when the sensor has an output error fault, the suppressed performance of the output feedback controller is better than that of the PID controller. Figure 5 shows the current and voltage output response curves of the DG in the islanded microgrid in scenario I operating conditions by the proposed fault-tolerant controller. Figure 5a is the learning observer estimation curve of the detection current error of the d-axis and the q-axis. Figure 5b is the learning observer estimation curve of the measured voltage error of the d-axis and the q-axis. Figure 5c shows the output current response curve of the d-axis and q-axis. Figure 5d is the output voltage response curve of d-axis and q-axis. Figure 5e is the frequency response curve. Figure 5f shows the three-phase voltage output of the DG.
It can be seen that the learning observer obtains an accurate and quick estimate of the sensor error. Through fault compensation, the output current is relatively smooth, and the d-axis output voltage v d reaches a stable state and remains constant, while the q-axis output voltage v q tends to 0 under the control of the phase-locked loop mechanism. The frequency is basically stable at 50 HZ, and the fluctuation does not exceed ±0.1 HZ. In summary, the proposed fault-tolerant control strategy has a good ability to suppress sensor output error faults to ensure the stability and robustness of the microgrid bus voltage, as well as improve the steady state operating performance of the DG in an islanded microgrid.  Figure 5a is the learning observer estimation curve of the detection current error of the d-axis and the q-axis. Figure 5b is the learning observer estimation curve of the measured voltage error of the d-axis and the q-axis. Figure 5c shows the output current response curve of the d-axis and q-axis. Figure 5d is the output voltage response curve of d-axis and q-axis. Figure 5e is the frequency response curve. Figure 5f shows the three-phase voltage output of the DG.
It can be seen that the learning observer obtains an accurate and quick estimate of the sensor error. Through fault compensation, the output current is relatively smooth, and the d-axis output voltage vd reaches a stable state and remains constant, while the q-axis output voltage vq tends to 0 under the control of the phase-locked loop mechanism. The frequency is basically stable at 50 HZ, and the fluctuation does not exceed ±0.1 HZ. In summary, the proposed fault-tolerant control strategy has a good ability to suppress sensor output error faults to ensure the stability and robustness of the microgrid bus voltage, as well as improve the steady state operating performance of the DG in an islanded microgrid.

Scenario II: Sensor Detection Precision Fault in Dynamic Power Operating Conditions
The simulation scenario II assumes that the sensor output signal has a detection precision fault, such as phase angle error or input/output ratio error, in dynamic power operating conditions. This simulation scenario is to verify the ability of the proposed faulttolerant controller to suppress the sensor precision fault.
It is assumed that a 5% phase angle error is aliased into the current detection signal over a period of 1 s to 1.5 s. A 5% phase angle error is aliased into the voltage detection signal over a period of 2.5 s to 3 s. These faults result in sensor output precision fault in two period of 1 s to 1.5 s and 2.5 s to 3 s.
In the scenario II fault conditions, when only controlled by the output feedback method without a fault-tolerant control mechanism, the output response curves of the DG in the islanded microgrid are shown in Figure 6. (a)

Scenario II: Sensor Detection Precision Fault in Dynamic Power Operating Conditions
The simulation scenario II assumes that the sensor output signal has a detection precision fault, such as phase angle error or input/output ratio error, in dynamic power operating conditions. This simulation scenario is to verify the ability of the proposed fault-tolerant controller to suppress the sensor precision fault.
It is assumed that a 5% phase angle error is aliased into the current detection signal over a period of 1 s to 1.5 s. A 5% phase angle error is aliased into the voltage detection signal over a period of 2.5 s to 3 s. These faults result in sensor output precision fault in two period of 1 s to 1.5 s and 2.5 s to 3 s.
In the scenario II fault conditions, when only controlled by the output feedback method without a fault-tolerant control mechanism, the output response curves of the DG in the islanded microgrid are shown in Figure 6. ured voltage error of the d-axis and the q-axis. Figure 5c shows the output current resp curve of the d-axis and q-axis. Figure 5d is the output voltage response curve of d-axis q-axis. Figure 5e is the frequency response curve. Figure 5f shows the three-phase vol output of the DG.
It can be seen that the learning observer obtains an accurate and quick estimate o sensor error. Through fault compensation, the output current is relatively smooth, and d-axis output voltage vd reaches a stable state and remains constant, while the q-axis put voltage vq tends to 0 under the control of the phase-locked loop mechanism. The quency is basically stable at 50 HZ, and the fluctuation does not exceed ±0.1 HZ. In s mary, the proposed fault-tolerant control strategy has a good ability to suppress se output error faults to ensure the stability and robustness of the microgrid bus voltag well as improve the steady state operating performance of the DG in an islanded crogrid.

Scenario II: Sensor Detection Precision Fault in Dynamic Power Operating Conditions
The simulation scenario II assumes that the sensor output signal has a detection cision fault, such as phase angle error or input/output ratio error, in dynamic power erating conditions. This simulation scenario is to verify the ability of the proposed f tolerant controller to suppress the sensor precision fault.
It is assumed that a 5% phase angle error is aliased into the current detection si over a period of 1 s to 1.5 s. A 5% phase angle error is aliased into the voltage detec signal over a period of 2.5 s to 3 s. These faults result in sensor output precision fau two period of 1 s to 1.5 s and 2.5 s to 3 s.
In the scenario II fault conditions, when only controlled by the output feed method without a fault-tolerant control mechanism, the output response curves of the in the islanded microgrid are shown in Figure 6.  Figure 6 shows the current and voltage output response curves of the d-axis an axis in dynamic power operating conditions. It can be seen that the current and vol are both distorted and cannot stabilize in two periods of 1 s to 1.5 s and 2.5 s to 3 s. Du the sensor detection precision fault and the lack of fault-tolerant control, the current tuation range is between 0.1 pu and 0.25 pu., while the voltage fluctuation range is  both distorted and cannot stabilize in two periods of 1 s to 1.5 s and 2.5 s to 3 s. Due to the sensor detection precision fault and the lack of fault-tolerant control, the current fluctuation range is between 0.1 pu and 0.25 pu, while the voltage fluctuation range is between 0.2 pu and 0.3 pu. Figure 7 shows the current and voltage output response curves of the DG in the islanded microgrid in scenario II operating conditions by the proposed fault-tolerant controller. Figure 7a demonstrates the learning observer estimation curves of the detection current error of the d-axis and the q-axis. Figure 7a shows the learning observer estimation curves of the detection voltage error of the d-axis and the q-axis. Figure 7c shows the output current response curves of the d-axis and q-axis. Figure 7d shows the output voltage response curves of d-axis and q-axis. Figure 7e shows the three-phase voltage output of the microgrid.
It can be seen that the learning observer realizes an accurately and quickly estimate of the sensor precision fault. The current and voltage curves are relatively smooth and stable. In summary, the proposed fault-tolerant control strategy has a good ability to suppress sensor precision fault to ensure the stability and robustness of the microgrid bus voltage, as well as improves the operating performance of the DG in the islanded microgrid in the condition of dynamic power operation.
(b) Figure 6. Output feedback control response curves in Scenario Ⅱ, (a) d-axis and q-axis current put, (b) d-axis and q-axis voltage output. Figure 6 shows the current and voltage output response curves of the d-axis an axis in dynamic power operating conditions. It can be seen that the current and vol are both distorted and cannot stabilize in two periods of 1 s to 1.5 s and 2.5 s to 3 s. Du the sensor detection precision fault and the lack of fault-tolerant control, the current tuation range is between 0.1 pu and 0.25 pu., while the voltage fluctuation range is tween 0.2 pu and 0.3 pu. Figure 7 shows the current and voltage output response curves of the DG in th landed microgrid in scenario II operating conditions by the proposed fault-tolerant troller.   Figure 7a shows the learning observer estima curves of the detection voltage error of the d-axis and the q-axis. Figure 7c shows the put current response curves of the d-axis and q-axis. Figure 7d shows the output vol response curves of d-axis and q-axis. Figure 7e shows the three-phase voltage outpu the microgrid.
It can be seen that the learning observer realizes an accurately and quickly estim of the sensor precision fault. The current and voltage curves are relatively smooth stable. In summary, the proposed fault-tolerant control strategy has a good ability to press sensor precision fault to ensure the stability and robustness of the microgrid voltage, as well as improves the operating performance of the DG in the islanded crogrid in the condition of dynamic power operation.

Scenario III: Sensor Signal Lose and Transient Single-Phase-to-Ground Short-Circuit Accident Conditions
The simulation scenario III assumes that a single-phase-to-ground short-circuit dent occurs in the A-phase of the microgrid during the period of 2 s to 2.5 s. In addi the A-phase current sensor detection signal is lost in the period of 1 s to 1.5 s, and th phase voltage sensor detection signal is lost in the period of 2.5 s to 3 s. This scenario III is to verify the ability of the proposed fault-tolerant controlle suppress the sensor signal loss fault in the complex single-phase-to-ground short-ci accident conditions.
In Scenario III fault conditions, when only controlled by output feedback me without fault-tolerant control mechanism, the output response curves of the DG in islanded microgrid are shown in Figure 8.

Scenario III: Sensor Signal Lose and Transient Single-Phase-to-Ground Short-Circuit Accident Conditions
The simulation scenario III assumes that a single-phase-to-ground short-circuit accident occurs in the A-phase of the microgrid during the period of 2 s to 2.5 s. In addition, the A-phase current sensor detection signal is lost in the period of 1 s to 1.5 s, and the A-phase voltage sensor detection signal is lost in the period of 2.5 s to 3 s. This scenario III is to verify the ability of the proposed fault-tolerant controller to suppress the sensor signal loss fault in the complex single-phase-to-ground short-circuit accident conditions.
In Scenario III fault conditions, when only controlled by output feedback method without fault-tolerant control mechanism, the output response curves of the DG in the islanded microgrid are shown in Figure 8. Figure 8 shows the current and voltage output response curves of the d-axis and q-axis in sensor signal loss operating conditions. It can be seen that the current and voltage are distorted in two period of 1 s to 1.5 s and 2.5 s to 3 s. The current fluctuation range is between 0.25 pu and 0.5 pu, while the voltage fluctuation range is between 0.2 pu and 0.65 pu. Figure 8 illustrates that the microgrid cannot operate stably under faulty conditions. Figure 9 shows the current and voltage output response curves of the DG in the islanded microgrid in scenario III operating conditions by the proposed fault-tolerant controller. Figure 9a shows the learning observer estimation curves of the detection current error of the d-axis and the q-axis. Figure 9b demonstrates the learning observer estimation curves of the detection voltage error of the d-axis and the q-axis. Figure 9c shows the output current response curves of the d-axis and q-axis. Figure 9d shows the output voltage response curves of d-axis and q-axis. Figure 9e shows the three-phase voltage output of the microgrid.
It can be seen that under the conditions of a single-phase-to-ground short-circuit accident, the proposed fault-tolerant control strategy also has a good ability to suppress the loss of sensor signals. Before and after the accident occurs, even if there has been a sensor signal loss fault, it can still maintain sensor fault tolerance, and ensure the stability and robustness of the microgrid bus voltage.  Figure 8 shows the current and voltage output response curves of the d-axis and qaxis in sensor signal loss operating conditions. It can be seen that the current and voltage are distorted in two period of 1 s to 1.5 s and 2.5 s to 3 s. The current fluctuation range is between 0.25 pu and 0.5 pu, while the voltage fluctuation range is between 0.2 pu and 0.65 pu. Figure 8 illustrates that the microgrid cannot operate stably under faulty conditions. Figure 9 shows the current and voltage output response curves of the DG in the islanded microgrid in scenario III operating conditions by the proposed fault-tolerant controller.    Figure 8 shows the current and voltage output response curves of the d-axis and qaxis in sensor signal loss operating conditions. It can be seen that the current and voltage are distorted in two period of 1 s to 1.5 s and 2.5 s to 3 s. The current fluctuation range is between 0.25 pu and 0.5 pu, while the voltage fluctuation range is between 0.2 pu and 0.65 pu. Figure 8 illustrates that the microgrid cannot operate stably under faulty conditions. Figure 9 shows the current and voltage output response curves of the DG in the islanded microgrid in scenario III operating conditions by the proposed fault-tolerant controller.   Figure 9a shows the learning observer estimation curves of the detection current error of the d-axis and the q-axis. Figure 9b demonstrates the learning observer estimation curves of the detection voltage error of the d-axis and the q-axis. Figure 9c shows the output current response curves of the d-axis and q-axis. Figure 9d shows the output voltage response curves of d-axis and q-axis. Figure 9e shows the three-phase voltage output of the microgrid.
It can be seen that under the conditions of a single-phase-to-ground short-circuit accident, the proposed fault-tolerant control strategy also has a good ability to suppress the loss of sensor signals. Before and after the accident occurs, even if there has been a sensor signal loss fault, it can still maintain sensor fault tolerance, and ensure the stability and robustness of the microgrid bus voltage.

Conclusions
Based on the analysis of the control system structure and operation control method of the DG in the islanded microgrid, this paper aimed at examining the robust control problem of the system with sensor faults and uncertain disturbances. Firstly, a dq coordinate system model considering sensor faults was established; secondly, fault tolerant control structure based on fault output signal conversion filter and PD-type learning observer

Conclusions
Based on the analysis of the control system structure and operation control method of the DG in the islanded microgrid, this paper aimed at examining the robust control problem of the system with sensor faults and uncertain disturbances. Firstly, a dq coordinate system model considering sensor faults was established; secondly, fault tolerant control structure based on fault output signal conversion filter and PD-type learning observer was constructed to realize online estimation and the real-time compensation of the fault signal; thirdly, a fault tolerant control strategy combining the output feedback control and learning observer was proposed to compensate an unexpected sensor fault. Finally, the simulation of multi-scenario sensor fault schemes were carried, and the experimental results verify that the proposed fault-tolerant control strategy has strong sensor fault tolerance and adaptability, as well as the high ability to enhance bus voltage stability and the robustness of the microgrid.

Data Availability Statement:
The data used to support the findings of this study are available from the corresponding author upon request.