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

Solid oxide fuel cell (SOFC) control strategy enhancement by adaptive neuro-fuzzy inference system (ANFIS)

관련 패션 · (24) 패션(코오롱FnC)

기본 정보

저자
  1. Sameh Ramadan — Electric Power and Machines Department, Ain Shams University, Cairo, Egypt
  2. Mostafa Al-Gabalaw — Electric Power Engineering Department, Suez University, Suez, Egypt
  3. M. EL-Shimy — Electric Power and Machines Department, Ain Shams University, Cairo, Egypt
  4. Adel Sedky Emarah — Electric Power and Machines Department, Ain Shams University, Cairo, Egypt
DOI
10.1038/s41598-024-62414-3
저널
Scientific Reports
발행년도
2024
발행기관
Nature Portfolio
피인용수
3
라이선스
cc-by
논문 유형
–
언어
–
원문 페이지
https://doi.org/10.1038/s41598-024-62414-3
토픽
Fuel Cells and Related Materials
OpenAlex ID
W4401257177

평가 내용

관련도
관련
사업분야
패션 · (24) 패션(코오롱FnC)
부 분야
–
R&D 측면
–
확신도
–
근거 용어
–
판단 근거
임베딩 유사도 기반 평가로 '패션 > 패션(코오롱FnC)' 분야에 선정된 논문입니다.
R&D 활용 포인트
–
평가 입력
–

초록

Abstract Global warming is a vital problem that many researchers tried to solve with so many solutions such as: reducing electricity production with conventional generators by using renewable energy resources and using hydrogen as an alternative to fossil fuels. The universal Economic crisis came across to cut off certain quantities at scheduled times. This, directly, affects renewable energy sources connected to the grid due to voltage and frequency variations. To solve this dilemma, in this paper, the grid-connected solid oxide fuel cell (SOFC) model which is fed by green hydrogen to produce AC power, is developed by an Adaptive neuro-fuzzy inference system (ANFIS). It is one of the artificial intelligence applications to improve grid-connected SOFC dynamic response. ANFIS is mathematically presented and simulated using MATLAB/SIMULINK. The results show that the ANFIS controller has succeeded in enhancing most of the desired control and operation signals.

본문 40,435자

본문 펼치기
## OPEN # Solid oxide fuel cell (SOFC) control strategy enhancement by adaptive neuro‑fuzzy inference system (ANFIS) Sameh Ramadan <sup>1</sup> <sup>*</sup> , Mostafa Al‑Gabalaw <sup>2</sup> , Mohamed EL‑Shimy <sup>1</sup> & Adel Emarah <sup>1</sup> Global warming is a vital problem that many researchers tried to solve with so many solutions such as: reducing electricity production with conventional generators by using renewable energy resources and using hydrogen as an alternative to fossil fuels. The universal Economic crisis came across to cut off certain quantities at scheduled times. This, directly, affects renewable energy sources connected to the grid due to voltage and frequency variations. To solve this dilemma, in this paper, the gridconnected solid oxide fuel cell (SOFC) model which is fed by green hydrogen to produce AC power, is developed by an Adaptive neuro-fuzzy inference system (ANFIS). It is one of the artificial intelligence applications to improve grid-connected SOFC dynamic response. ANFIS is mathematically presented and simulated using MATLAB/SIMULINK. The results show that the ANFIS controller has succeeded in enhancing most of the desired control and operation signals. Abbreviations SOFC Solid oxide fuel cell ANFIS Adaptive neuro-fuzzy inference system GHG Greenhouse gases ICE Internal combustion engines ILC Interlinking converter PCC Point of common coupling SMC Sliding Mode Controller NN Neural networks FL Fuzzy logic RES Renewable energy sources FC Fuel cell AFC Alkaline fuel cell MCFC Molten-carbonate fuel cell AI Artificial intelligence ML Machine learning ANN Artificial neural networks FIS Fuzzy inference system ULTC Under-load tap changer One of the most dangerous lives threatening on earth, is global warming. The normal sun- heat cycle is to be present in the atmosphere during daylight as well as disappearing at night. Unfortunately, greenhouse gases (GHG) such as carbon dioxide ­(Co2) and methane ­(CH4) Can trap the sun’s heat preventing it from leaving the atmosphere during the night which disturbs this natural cycle causing global ­warming <sup>1</sup> . As Known, GHG is mainly a result of burning fossil fuels for many purposes. Mainly generating electrical power by conventional generators and internal combustion engines (ICE) in vehicles is the most fatal causes. Nowadays, the global urge is to find alternative technologies of conventional power generators and ICE with zero-carbon emissions. Hydrogen can play a key role as an alternative fuel since it is a zero-carbon energy carrier which nominate it to be the main fuel in the ­future <sup>2</sup> . 1Electric Power and Machines Department, Ain Shams University, Cairo, Egypt. 2Electric Power Engineering Department, Suez University, Suez, Egypt. <sup>*</sup> email: 2002064@eng.asu.edu.eg Another option is the renewable energy sources (RES) that produce electrical energy with zero or low carbon emissions. The increasing reliance on RES has contributed to the increase in DC and AC microgrids and hybrid DC/AC microgrids which are formed of DC microgrids connected to AC microgrids through the interlinking converter (ILC). As the DC part of the hybrid microgrids is connected to the grid through an inverter or bidirectional AC/DC converter, the mode of operation is called online, or on-grid mode and the connecting point is called the point of common coupling (PCC). Nevertheless, when the DC part is not connected to the PCC, the mode of operation is called isolated mode or off-grid mode. In grid-connected mode, the main grid is responsible for the voltage and frequency stability on the AC side. Therefore, many control strategies are developed to regulate the voltage on the DC side and manage the power flow from side to side considering the bidirectional AC/DC converter-rated power. ­In <sup>3</sup>, DC microgrids are connected to the grid and controlled by a control strategy based on measuring the amount of power injected from the DC side into the main grid. If the power exchanged is greater than the converter-rated power, the converter is turned from a U-Q control strategy to a PQ control strategy. However, if the power exchanged is less than the converter-rated power, the converter can be controlled by the U-Q control strategy or PQ control strategy. These two control strategies are demonstrated in detail ­in <sup>3</sup> . In <sup>4</sup>, DC microgrids are connected to the grid through an inverter which is controlled by two cascaded loops, the inner loop and the outer loop. The inner loop role is controlling the grid current and reducing the harmonics. The outer loop role is controlling the DC voltage. These two loops form the inverter’s general control structure and it can be controlled by the many control types such as: - Linear Controllers e.g. PID controllers, State-Feedback Controllers, and, Predictive Controllers. - Non-linear Controllers e.g. Sliding Mode Controller (SMC) and Hysteresis Controllers. - Intelligent controllers e.g. Neural networks (NN) controllers and fuzzy logic (FL) controllers. Controversially, the main disadvantage of RES is its intermittent ­nature <sup>5</sup> . The load profile system cannot be met by RES alone. Therefore, many researchers concluded that the best way to benefit from hydrogen and renewable energy in a system that brings them together. The system for converting hydrogen into electrical power using RES is fully explained ­in <sup>6</sup> . This system was named Power to Hydrogen to Power (P2H2P) due to the stages of electricity production. As shown in Fig. 1, P2Hrefers to using renewable energy to produce hydrogen through the electrolyzer. The electrolyzer separates water ­(H2O) into hydrogen and oxygen by basing electrical current through the water solution in addition to the catalyst. The Water amount that did not participate in the chemical reaction and did not decompose into hydrogen and oxygen is considered wastewater. H2P refers to using hydrogen to produce DC power through a fuel cell (FC). There are many types of FC e.g. alkaline fuel cells (AFC), molten-carbonate fuel cells (MCFC), and, solid oxide fuel cells (SOFC). The SOFC operates at very high temperatures so it is convenient to be used in power plants and it can be fueled by natural gas or hydrocarbon-based fuel or hydrogen. The aforementioned advantage is the main reason to focus on SOFC in this ­paper <sup>7</sup> . The FC consists of an anode and cathode and the electrolyte between them. The hydrogen flows into the anode. Due to the catalyst, the hydrogen molecules are divided into protons and electrons. The hydrogen electrons combined with the oxygen electrons and based through electrical load forming an electrical current. Then returns through the cathode to combine with provided oxygen. And continue through the electrolyte to separate protons from electrons and repeat the electrochemical process as long as hydrogen and oxygen are provided to the fuel cell. The form of the reaction is: Figure 1. Power to hydrogen (P2H) and hydrogen to power (H2P) system. Using P2H2P, hydrogen is produced without any carbon emissions, which is why it is considered a method 2H2�gas� + O2�gas� → 2H2O + (Electiricity + Heat) (1) - + O2 �gas - → 2H2O + (Electiricity + Heat) Using P2H2P, hydrogen is produced without any carbon emissions, which is why it is considered a method of producing green hydrogen. After finding a system to optimally use hydrogen and renewable energy, interest became in how to benefit from and control it. Many researchers have been fascinated by the dynamic performance of the SOFC. ­In <sup>8</sup>, using MATLAB/ SIMULINK, the SOFC dynamic performance was studied by connecting it directly to the DC load and changing this load power by several steps. Then, the SOFC is connected to AC load through an inverter and the load power is changed in steps. After that, the interest in enhancing the grid-connected SOFC dynamic performance increased, ­in <sup>9</sup>, the grid-connected SOFC performance was enhanced using a PI controller by controlling the SOFC utilization factor Uf i.e. the ratio of hydrogen flow rate that participates in the chemical reaction within the SOFC to the entire hydrogen flow rate that enters the SOFC. In <sup>10</sup>, the grid-connected SOFC is enhanced using PI-based two control strategies which are the constant voltage control strategy and the constant Uf control strategy, and the results show that the constant Uf control strategy succeeded in enhancing the durability of SOFC. In <sup>11</sup> ­and <sup>12</sup>, there is a complete explanation of the grid-connected SOFC modeling and an explanation of two different strategies for controlling it and testing its dynamic response. The two strategies are the constant power control strategy and the constant current control strategy. In <sup>13</sup>, a comparison was made between the two mentioned control strategies, and the resulted in that the constant current control strategy was superior to the constant power control strategy. One of the most crucial problems facing the electrical networks in Egypt and many other countries worldwide now, is the lack of fuel necessary to generate energy for all the loads connected to the grid due to the economic crisis. In Egypt, the Ministry of Electricity is, so far, facing this problem by reducing loads through disconnecting them at fixed, scheduled times to distribute them among all consumers. This is currently the case, but in the future, the most important proposed solution to solve this problem is to increase the percentage of renewable energy penetration that helps the network to cover the loads aside with reducing the percentage of GHG in the atmosphere. Until this happens, load disconnecting will affect renewable energy systems currently connected to the grid. This research is investigating the possibility of using artificial intelligence (AI) to improve the dynamic response of SOFC connected to the network and controlled by a constant current control strategy when loads are reduced by a certain percentage at a specific time. The adaptive neuro-fuzzy inference system (ANFIS), which is one of the main applications of AI, is explained and represented mathematically. Then, it will also be used and simulated using MATLAB/SIMULINK to study the effect of SOFC grid-connected using ANFIS. ANFIS technique Artificial intelligence is one of the most important techniques in science society. AI’s main goal is the regression of the human role in order to decrease the percentage of human error by training the machine to mimic human brain functions such as recognizing, thinking, deciding, and, solving ­problems <sup>14</sup> . This transforms machines into gaining experience and using it to improve their performance without previous programming. This process is called machine learning (ML) <sup>14</sup> . In the human body, neurons are responsible for the process of communicating with the brain, and by simulating this with AI, artificial neural networks (ANN) became one of the common algorithms used in ML. Human brain uses another technique to find out a problem’s solution by guessing or speculating based on previous experience. Machine language is based on only two signals which are 0, and ­1 <sup>15</sup> . AI can teach computers to think uncertainly and make decisions using fuzzy sets that consist of contentious ­values <sup>16</sup> . In 1965, Lotfi Zadeh invented a fuzzy logic system i.e. a system using previous experience to solve a ­problem <sup>17</sup> . Adaptive neuro-fuzzy inference system (ANFIS) is an AI technique for teaching ANN how to perform their function using a fuzzy inference system (FIS) <sup>18</sup> . Fuzzy logic inference systems Boolean logic is known as crisp logic. It is about absolute values 0 or 1. Zero for false and one for true and there cannot be any value in-between. Fuzzy logic is a superset of the values in-between true and false. Each value in the fuzzy set is a partial of the absolute true value. The degree how much this value is close to true or false is called membership ­value <sup>15</sup> . As mentioned ­in <sup>18</sup> fuzzy logic model consists of four parts: - Fuzzification : It is a process of converting input crisp values to fuzzy values by assigning a membership value to each crisp value. - Rule functions : They are rules put by the experts in the IF–THEN form to design the system’s controllers. - Inference method : There are several methods to manipulate the fuzzified values and compute the fuzzy output such as: - Mamdani method - Larsen method - Sugeno method - Defuzzification : It is a process of converting output fuzzy values to crisp values by defuzzification function which differs from each other based on the inference method. The Sugeno method is the inference method that is used in the ANFIS. Artificial neural networks As shown in Fig. 2, the standard structure of ANN consists of three layers: - Input layer : It is a cluster of artificial neurons and its function is to receive the input data. - Hidden layers : It is a cluster of artificial neurons and its function is computing the inputs. - Output layer : It is a cluster of artificial neurons and its function is to deliver the outputs. Each neuron receives signals from all neurons in the previous layer and each signal has a decimal weight. The sum of all input signals is applied to the neuron function then the result will be the neuron output weighted signal and it will move forward to all neurons in the next layer. This is the standard design of ANN. ANN designer can control the direction of the signals and select the output signal ­destination <sup>18</sup> . Many researchers used ANN to represent the SOFC model and optimize its outputs. ­In <sup>19</sup>, ANN is used to calculate the SOFC-operated voltage and it consists of a single hidden layer with five neurons to compute the current, anode temperature, mass flow at the anode and cathode, and time. ­In <sup>20</sup>, ANN consists of a single input layer with 3 neurons which are the current, flow rate, and air temperature, and one hidden layer with 11 neurons to estimate the operating voltage as an output. On the other hand, ANN uses various optimization techniques such as genetic programming and, support vector machine to enhance SOFC performance, and a comparison between those techniques is presented ­in <sup>21</sup> . (ANFIS) mathematical demonstration As mentioned earlier, the Sugeno method is used in the ANFIS technique. The following is the detailed explanation. Sugeno method As mentioned ­in <sup>19</sup> the mathematical Sugeno model is as follows: - Assume that the fuzzy system has two inputs x1 and x2 as antecedents and one output yi As a consequence and i = 1,2, . . . number of rule functions. - Assume we have two rule functions: Rule 1 : if x1isA1andx2isA2 then y1 = (b1x1 + c1x2 + d1) (2) Rule 2 : if x1isA2 and x2isA1 then y2 = (b2x1 + c2x2 + d2) (3) A1 and A2 Are fuzzy sets for two different cases, e.g. Hot and cold. bi, ci, anddi Are the constants established based on a piece of previous information or an opinion questionnaire by experts. - Then we plot the rule functions and determine the membership values of x1 and x2 as shown in Figs. 3 and 4. - In the Sugeno method, the rule functions are a form of logic AND gates. According to the AND operator, the output is the minimum input. So, from the rule function and Fig. 3, the output will be as follows: - Rule 1: when x1isA1, the membership is WX1 and when x2isA2, the membership is UX2 whereU X2 has been chosen as an output because it is the minimum value due to the AND operator. Figure 2. ANN layers. Figure 3. Membership value for inputs x1 and x2 according to rule (1). Figure 4. Membership value for inputs x1 and x2 according to rule (2). - Rule 2: when x1isA2, the membership is UX1 and when x2isA1, the membership is WX2 as shown in Fig. 4, UX1 Has been chosen as an output because it is the minimum value due to the AND operator. - Then we solve the rule functions by Substitution crisp values x1 and x2 in the equations y1 and y2. - Then we apply the results to the defuzzification function according to the Sugeno method to get the output as follows: y <sup>∗</sup> = <sup><u>UX2</u></sup> <sup><u>y1</u></sup> <sup>+ UX1</sup> <sup><u>y2</u></sup> (4) UX1 + UX2 So, y <sup>∗</sup> Is the FIS output based on the Sugeno inference method. Fuzzy logic controller limitation Based on the provided information above, it is clear that, if the experts set the wrong rule function, the result will be inaccurate and the controller will not be able to improve the performance. This means that FIS is not an expert and cannot be learned to find the appropriate rule function. The combination of ANN and FIS The limitation of the FIS can be overcome using ANN, as ANN only requires inputs and outputs until they learn how to access these outputs by themselves. ANFIS technique is a developed AI and it is deduced by training the ANN to act as a fuzzy inference system to obtain the appropriate rule functions and assign the correct membership values that minimize the output ­function <sup>18</sup> . Assuming that only inputs (x1,x2) and one output (y <sup>∗</sup> ) are provided to the ANFIS, the ANN will be formed as shown in Fig. 5, and ANN learn to formulate the rule function as previously assumed in Eqs. (2) and (3). In ANFIS, ANN layers represent FIS as follows: Figure 5. ANFIS architecture. Input layer → Fuzzification part based on rule functions. Hidden layers → inference part (Sugeno model). Output layer → Defuzzification part. As shown in Fig. 5, the combination of ANN and the FIS is as follows: The input layer has four neurons: The first neuron function is to calculate the membership value when x1isA1 and the neuron output is WX1 . The second neuron function is to calculate the membership value when x1isA2 and the neuron output is UX1 . The third neuron function is to calculate the membership value when x2isA2 and the neuron output is UX2 . The fourth neuron function is to calculate the membership value when x2isA1 and the neuron output is WX2. Hidden layers consist of two layers: The first layer consists of two similar neurons. These neurons have an AND operator to select the minimum input signal and its output UX2 and UX1 respectively. The second layer has two neurons in their function multiply input signal with y1(x1, x2) in the first neuron and y2(x1, x2) in the second neuron, and its outputs are UX2 .y1(x1, x2) and UX1 .y2(x1, x2) respectively. Finally, the output layer consists of one neuron and its function is to compute defuzzification output by applying input signals to the Sugeno defuzzification function given in Eq. (4) and the neuron’s output is y <sup>∗</sup> System under study Figure 6 shows the grid-connected SOFC system under study. The system consists of the fuel cell system, underload tap changer (ULTC), and an inverter. The inverter controls the voltage and frequency by adjusting the inverter modulation index ( m). The inverter is responsible for the synchronization with the grid with an acceptable voltage regulation of ± 2% and frequency of about ±0.5%. the generated power ( Ps,Qs ) is injected into the grid. The inverter consists of IGBT switches; therefore, it has a faster dynamic response than SOFC as its dynamic response depends on chemical reactions resulting after any change in the flow rate of hydrogen feeding it. - The grid is modeled as an infinite bus bar with voltage (Vs) = 1p.uand phase angle(θs) = 0 - The fuel cell system is modeled as a SOFC stack with operating voltage ( Vfc) and DC current ( Ifc). - (ULTC) modeled as the transformer reactance (Xt) - The inverter is modeled as terminal voltage ( Vt ), the inverter phase angel(θt ), and modulation index ( m) Figure 6. Under study grid-connected SOFC system with its rating values. System analysis In <sup>11</sup>, there are a detailed analysis of the fuel cell and all the equations that represent the grid–connected SOFC. In this paper, a background will be clarified about some of these equations to know the inputs and outputs that were used in the ANFIS controller. In SOFC, a volt is produced by energy resulting from chemical reactions inside the fuel cell, and this volt is calculated using the famous Nernst equation, as follows: �� Eo + <sup><u>RT</u></sup> 2F <u>PH2</u> - P - Ifc.r Vfc = No Eo + <sup><u>RT</u></sup> 2F <sup>In</sup> - Ifc.r (5) <sup><u>RT</u></sup> 2F <sup>In</sup> <u>2</u> P�H2OPO2 where Vfc is the fuel cell DC voltage, r Is the FC stack resistance in the ohm unit, ( PH 2 ) is the partial pressure of the hydrogen in atm, ( PH 2 O ) is the partial pressure of the water in atm, ( PO 2 ) is the partial pressure of oxygen in atm, N o is the number of fuel cells connected in series forming a fuel cell stack, R is the ideal gas constant = 8.314 (J/mol/K), T is the temperature in kelvin, F is Faraday’s constant = 96,487 (C/mol), and Ifc is the fuel cell current in Ampere. The generated DC power from the SOFC is given by: Pdc = VfcIfc (6) The electric current produced from the fuel cell depends on the load and the flow rate of hydrogen entering the fuel cell (qH <sup>in</sup> 2 <sup>), the Uf</sup> <sup>cannot be increased or decreased from specific values so that the fuel cell is not exposed</sup> to damage. This restriction can be formulated in the following function: 0.8 ≤ Uf ≤ 0.9 (7) On this basis, the fuel cell control strategies have been developed and the dynamic equations that describe these strategies are as follows: <u>dIfc</u> - Ifc For constant power control strategy (8a) dt <sup>=</sup> <sup><u>1</u></sup> <u>�</u> <u>Pref</u> Vfc <u>�</u> <u>Pref</u> For constant power control strategy <u>dIdtfc</u> <sup>=</sup> τ <sup><u>1</u></sup> e τe - Ifc <u>dIfc</u> <u>Pref</u> - Ifc For constant current control strategy (8b) dt <sup>=</sup> <sup><u>1</u></sup> - <u>dIdtfc</u> <sup>=</sup> τ <sup><u>1</u></sup> e - VPreffco τe - Ifc For constant current control strategy Pref Is the reference power, τe is the electrical response time. Vfco Is referring to using a constant fuel cell voltage value in the grid-connected SOFC simulated model. The fuel cell produces DC voltage. Therefore, it is necessary to connect SOFC to the grid through an inverter which is suitable for the ratings of the fuel cell. The inverter output voltage ( Vt ) and its phase angle ( θt ) are given by: Vt = 0.6124mV fc (9) <u>IfcXt</u> 0.6124mV s <u>IfcXt</u> θt = θs + sin <sup>−1</sup> (10) As assumed ­in <sup>11</sup>, the inverter/transformer losses are neglected. Consequently, the injected real power and reactive power to the grid are calculated as follows: Ps = <sup><u>VsVt</u></sup> sin(θt - θs) = Vfc.Ifc (11) Xt sin(θt - θs) = Vfc.Ifc <u>s</u> Qs = <sup><u>VsVt</u></sup> cos(θt - θs) − <sup><u>V</u></sup> <sup>2</sup> (12) Xt <u>s</u> cos(θt - θs) − <sup><u>V</u></sup> <sup>2</sup> <u>s</u> <sup><u>V</u></sup> Xt The inverter control process is described as follows: <u>m</u> <u>Km</u> = And Vref = 1.05p.u (13) Vref - Vt 1 + sτm Km Is the gain of the voltage control loop,Vref is the reference voltage to the voltage controller, and τm is the time constant of the voltage control loop. From equations (8a) and (8b), it is clear that to improve the performance of the control circuit that was designed based on these equations to control the SOFC output current and thus control the DC power produced from it, the ANFIS controller is added to this control circuit as follows: - Ifc V - <u>Pref</u> ANFIS input = - Ifc (14) ANFIS output = <sup><u>dI</u></sup> dt <sup>.τe</sup> (15) From equations (9), (11), and (12), we conclude that if the output of the inverter is controlled, then the injected power to the grid is controlled, so equation (13) is used to design the control circuit for the grid’s injected power. Therefore, the ANFIS controller has been added to this circuit as follows: ANFIS input = Km Vref - Vt - m (16) �Km �Vref - Vt �� - m ANFIS output = <sup><u>dm</u></sup> dt <sup>.τm</sup> (17) dt <sup>.τm</sup> As mentioned above, the SOFC was fully modeled and described ­in <sup>11</sup> . So, other equations describe the dynamic response inside the SOFC to determine the pressure and temperature inside it, and they are as follows: PH2 Van = nH2 RT (18) Van Is the volume of the anode, R is the ideal gas constant, nH2 and is the moles of hydrogen. <u>H2</u> = <sup><u>1</u></sup> dt τH <u>dPH2</u> = <sup><u>1</u></sup> qH <sup>r</sup> 2 <sup>−</sup> <sup>2KrI</sup> - PH2 (19) - <u>1</u> - - PH2 τH KH2 - <u>1</u> �q <sup>r</sup> H <sup>r</sup> 2 <sup>−</sup> <sup>2KrI</sup> τH : The hydrogen flow response time. Kr = <sup><u>No</u></sup> (20) 4F <u>H2O</u> <u>1</u> = dt τH2O KH2O - <u>2K</u> <u>rI</u> <u>dPH2O</u> <u>1</u> = - PH2O (21) - <u>2K</u> <u>rI</u> - PH2O τH2O : The water flow response time. <u>dPO2</u> <u>1</u> = dt τO2 <u>1</u> - KO2 qH <sup>in</sup> <u>2</u> - rHO <u>dPO2</u> <u>1</u> <u>1</u> qH <sup>in</sup> <u>2</u> = - KrI - PO2 (22) - - - <u>H2</u> rHO - KrI - PO2 τO2 : The oxygen flow response time. In this research, the ANFIS controller was not used to control any of the parameters that represent the dynamic response within the SOFC such as PH 2, PO 2, and PH 2O, but as it is clear from Eqs. 14, 15, 16, and 17, the ANFIS controller was used to control the SOFC DC output and the inverter AC output, so it is used as a DC/AC controller and not as a SOFC controller. As noticed in the ANFIS controllers which are added to the control circuits, in each chosen control circuit, the ANFIS controller has one input and one output, and the number of the rule functions can be chosen by the ANFIS designer in the MATLAB/SIMULINK. When the chosen number of the rule functions is increased, the accuracy of the results increases, but this increase is accompanied by a long time in ANFIS training and extracting the results. Therefore, the number of ten rule functions was chosen to increase the result’s accuracy and reduce the time of the ANFIS training and extracting the results. In Figs. 7 and 8, the ANFIS structure that is used in grid-connected SOFC. The role of the ANFIS controller is to minimize the deviation of system parameter values from its steady-state values before the applied disturbance. Figure 7. The added one input/one output ANFIS controller to the DC power control circuit. Figure 8. The added one input/one output ANFIS controller to the AC power control circuit. Performance of SOFC as affected by scheduled load disconnecting and controlled by ANFIS As mentioned earlier ­in <sup>6</sup>, 100kW SOFC stack grid-connected was modeled and controlled with a constant current control strategy. The SOFC model parameters are given ­in <sup>7</sup> . Using MATLAB SIMULINK to simulate the scheduled load disconnecting and test grid-connected SOFC’s dynamic response, the model was subjected to a 10% step-down in reference power (Pref ) at the fifth second after starting the system and the results were extracted to show the dynamic performance with and without adding ANFIS controller. Please notice that: In the results figures, anfis refers to results by adding ANFIS to the model and c.c refers to results with the constant current control strategy without adding ANFIS to the model. As shown in Fig. 9, the applied disturbance to the grid-connected SOFC is a 10% decrease in the reference power. As shown in Fig. 10, using the ANFIS technique enhances the performance of the SOFC model under disturbance whereas the SOFC demand current ( Ifcdem) steady-state error was decreased from 9 to 3%. As shown in Fig. 11, the ANFIS technique succeeded in eliminating the former 1% undershoot in the inverter modulation index ( m ) and the steady-state error was decreased from 2% to 0.3%. As shown in Fig. 12, using the ANFIS technique enhances the performance of the SOFC model under disturbance whereas the injected active power to the grid ( Ps) steady-state error was decreased from 9 to 3%, and settling time was enhanced from 9 to 5 s. As shown in Fig. 13, the dynamic response of the phase angle ( θt ) was enhanced by adding the ANFIS technique to the SOFC model. Steady-state error was decreased from 9 to 2%. As shown in Fig. 14, in the constant current control strategy, the injected reactive power to the grid ( Qs) had a 7% overshoot after the disturbance was subjected to the SOFC model. Adding the ANFIS technique eliminates the overshoot and keeps a steady state error of 3%, which is the same with and without adding the ANFIS. As shown in Fig. 15, in the constant current control strategy dynamic response, the voltage on the inverter terminals ( Vt ) had a 2% overshoot after the disturbance was subjected to the SOFC model. Adding the ANFIS controller to the model eliminates the overshoot and enhances settling time from 5 to 3 s. As shown in Figs. 16 and 17, the results indicate that when adding the ANFIS controller to the grid-connected SOFC, which was previously controlled by a constant power control strategy and subjected to the same disturbance, it was found that its dynamic response to the same disturbance is not better than the model that 1.02 1 0.98 0.96 0.94 0.92 0.9 0.88 Pref|anfis Pref|c.c 0 20 40 60 80 100 120 TIME (SEC) Figure 9. Applied disturbance; 10% decrease in the reference power. 1.02 1 0.98 0.96 0.94 0.92 0.9 0.88 Ifc |demanfis Ifc| dem.c.c 0 20 40 60 80 100 120 TIME (SEC) Figure 10. Unmodified fuel cell dc demand current response after the disturbance. M|anfis M|c.c 1.69 1.685 1.68 1.675 1.67 1.665 1.66 0 20 40 60 80 100 120 TIME (SEC) Figure 11. Modulation index response after the disturbance. Ps|anfis Ps|c.c 1.02 1 0.98 0.96 0.94 0.92 0.9 0 20 40 60 80 100 120 TIME (SEC) Figure 12. Converter active power response after the disturbance. was controlled by the constant current control strategy and the ANFIS controller was added to it in terms of maximum overshoot, steady state error, and settling time. Please notice that: In the results figures, anfis refers to results by adding ANFIS to the model and c.p refers to results with the constant power control strategy without adding ANFIS to the model. As shown in Fig. 16, the ANFIS controller succeeded in decreasing the SOFC demand current ( Ifcdem) steadystate error from 11 to 9% but the settling time was increased from 10 to 20 s, and it caused an overshoot with 3%. 0.098 0.096 0.094 0.092 0.09 0.088 0.086 θt|anfis θt|c.c 0 20 40 60 80 100 120 TIME (SEC) Figure 13. Phase angle response after the disturbance. Qs|anfis Qs|c.c 0.305 0.3 0.295 0.29 0.285 0.28 0.275 0.27 0.265 0 20 40 60 80 100 120 TIME (SEC) Figure 14. Reactive power response after the disturbance. Vt|anfis Vt|c.c 1.035 1.0345 1.034 1.0335 1.033 1.0325 1.032 1.0315 0 20 40 60 80 100 120 TIME (SEC) Figure 15. Converter terminal voltage response after the disturbance. As shown in Fig. 17, the ANFIS controller succeeded in eliminating the inverter terminal voltage ( Vt ) overshoot but the steady state error was increased from 0.02% to 0.06%. As shown in the extracted results, the ANFIS technique has proven that it can enhance grid-connected SOFC which was previously controlled by a constant current control strategy after being subjected to disturbance by learning from SOFC model data and its performance before adding ANFIS to the SOFC model. ANFIS decreased 1.04 1.02 1 0.98 0.96 0.94 0.92 0.9 0.88 0.86 Ifc |dem anfis Ifc |dem.c.p 0 20 40 60 80 100 120 TIME (SEC) Figure 16. Unmodified fuel cell dc demand current response after the disturbance. Vt|anfis Vt|c.p 1.035 1.0348 1.0346 1.0344 1.0342 1.034 1.0338 1.0336 1.0334 1.0332 1.033 1.0328 0 20 40 60 80 100 120 TIME (SEC) Figure 17. Converter terminal voltage response after the disturbance. steady-state error for all parameters and eliminated overshoot-undershoot for Vt, Qs, and m . Settling time has been reduced for Ps and Vt by 4 s and 2 s respectively. It also became clear from the results that the ANFIS controller succeeded in reducing the deviation from the steady-state value more than the other control strategy, whether by reducing over-shoot steady-state error or settling time, when ANFIS controller outputs were chosen, it had to be changed several times until the ANFIS settles on the best results that it can reach, considering to the number of rule functions that are chosen to reach these results. In other research such ­as <sup>9</sup> ­and <sup>10</sup>, regardless of the control strategies, the PI controller remains the main control type, and ­in <sup>6</sup>, there are two control strategies, but the main control type is state-feedback controllers, in these two control types, the dynamic performance enhancement techniques are limited, such as PI controller tuning, but the ANFIS controller can start improving the dynamic performance from where the other control types ended due to its ability to learn the way any system works and its flexibility in improving results, where the ANFIS designer can reach the best results by doing Many ANFIS training with different number of rule functions. So, the results prove that the ANFIS controller can enhance the performance of any system which is controlled by any control type. Conclusion Artificial neural networks (ANN) and adaptive neuro-fuzzy inference system (ANFIS) techniques are used to investigate the performance of grid-connected (SOFC) operations. The combined ANN and FIS are used to predict performance parameters and dynamic response of stack current, voltage, and power through a system under study using a constant current control strategy. Using MATLAB/SIMULINK, the ANFIS controller was added to the grid-connected SOFC model under the control of a constant current control strategy so that the SOFC model could be learned and its dynamic performance is enhanced and tested through the application of a scheduled load disconnecting scheme. The results showed that the ANFIS controller can enhance the SOFC model dynamic response. This is demonstrated in the obtained results that assure minimum steady-state error, less overshoot-undershoot, and fast settling time in all the obtained dynamic time responses of the grid-connected SOFC studied system under constant control. Data availability The datasets used and/or analyzed during the current study are available from the corresponding author upon request. Received: 3 February 2024; Accepted: 16 May 2024 References 1. Pettersen, J. _et al._ Blue hydrogen must be done properly. _Energy Sci. Eng._ 10 (9), 3220–3236 (2022). 2. Oni, A. O., Anaya, K., Giwa, T., Di Lullo, G. & Kumar, A. Comparative assessment of blue hydrogen from steam methane reforming, auto thermal reforming, and natural gas decomposition technologies for natural gas-producing regions. _Energy Convers. Manage._ 15 (254), 115245 (2022). 3. Liang, B. _et al._ Coordination control of hybrid AC/DC microgrid. _J. Eng._ 2019 (16), 3264–3269 (2019). 4. Tripathi, S. M. (ed.). _Real-Time Simulation and Hardware-in-the-Loop Testing Using Typhoon HIL_ (Springer, 2023). 5. Mohamed, E.-S., ed. _Economics of Variable Renewable Sources for Electric Power Production_ 89 (LAP LAMBERT Academic. Pub lishing, 2017).. 6. El-Shimy, M., & Afandi, A. Overview of Power-to-Hydrogen-to-Power (P2H2P) systems based on variable renewable sources. In _The 5th International Conference on Electrical, Electronics, and Information Engineering_ (2017). 7. Zhang, Y. _et al._ Balancing wind-power fluctuation via onsite storage under uncertainty: Power-to-hydrogen-to-power versus lithium battery. _Renew. Sustain. Energy Rev._ 1 (116), 109465 (2019). 8. Gelen, A. & Yalcinoz, T. A dynamic model for solid oxide fuel cell system and analyzing of its performance for direct current and alternating current operation conditions. _Int. J. Energy Res._ 37 (10), 1232–1241 (2013). 9. Gupta, P., Pahwa, V. & Verma, Y. P. Performance enhancement of a grid-connected solid-oxide fuel cell using an improved control scheme. _Mater. Today Proc._ 28, 1990–1995 (2020). 10. Gupta, P., Pahwa, V. & Verma, Y. P. Solid-Oxide Fuel Cell and Its Control. _Energy Storage Mod. Power Syst. Oper._ 1, 143–175 (2021). 11. El-Shimy, M. Modeling and analysis of grid-connected fuel cells (FCs) as a distributed energy resource. In _2006 Eleventh Interna-_ _tional Middle East Power Systems Conference_ Vol. 1, 153–161 (IEEE, 2006). 12. Zhu, Y. & Tomsovic, K. Development of models for analyzing the load-following performance of microturbines and fuel cells. _Electric Power Syst. Res._ 62 (1), 1–1 (2002). 13. Ramadan, S., El-Shimy, M., Al-Gabalawy, M., & Emara, A. Overview of P2H2P Systems and Dynamic Performance Solid Oxide Fuel Cell (SOFC). In _2023 3rd International Conference on Energy Engineering and Power Systems (EEPS)_ 10–15 (IEEE, 2023). 14. Abdolrasol, M. G. M. _et al._ Artificial neural networks based optimization techniques: A review. _Electronics_ 10 (21), 2689 (2021). 15. Klement, E. P., Slany, W. Fuzzy logic in artificial intelligence. In _Proceedings of the 8th Austrian Artificial Intelligence Conference_, FLAI. Vol. 93 (1993). 16. Chaudhari, T. U. _et al._ Comparative analysis of Mamdani, Larsen and Tsukamoto methods of fuzzy inference system for students’ academic performance evaluation. _Int. J. Sci. Res. Arch._ 9 (1), 517–523 (2023). 17. Ganaie, F. R. Application of Fuzzy Logic in Artificial Intelligence. 18. Cruz, A., & Mestrado, N. ANFIS: Adaptive neuro-fuzzy inference systems. IM, UFRJ, Mestrado NCE (2009). 19. Marra, D. _et al._ A neural network estimator of Solid Oxide Fuel Cell performance for on-field diagnostics and prognostics applica tions. _J. Power Sourc._ 241, 320–329 (2013). 20. Milewski, J. & Świrski, K. Modelling the SOFC behaviors by artificial neural network. _Int. J. Hydrog. Energy_ 34 (13), 5546–5553 (2009). 21. Fuad, M., & Hussain, M. Machine Learning Based Modeling for Solid Oxide Fuel Cells Power Performance Prediction. In _Proc._ _6th Int. Conf. Process Syst. Eng. (PSE ASIA)_ 19–24 (2013). Author contributions S.A. did the literature review and the ANFIS mathematical explanation; M.E.-S. constructed the original simulation models; M.E.-G. recommended ANFIS controller to be investigated with grid-connected SOFC; S.A contributed to writing the paper and adding ANFIS to the original simulation model; A.E. Reviewed and edited the manuscript; A.E. and M.E.-S. as the main supervisors followed up all studies steps and gave helpful advice; All authors discussed the results, read and approved the manuscript. Funding Open access funding provided by The Science, Technology & Innovation Funding Authority (STDF) in cooperation with The Egyptian Knowledge Bank (EKB). Competing interests The authors declare no competing interests. Additional information Correspondence and requests for materials should be addressed to S.R. Reprints and permissions information is available at www.nature.com/reprints. Publisher’s note Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations. Open Access This article is licensed under a Creative Commons Attribution 4.0 International License, which permits use, sharing, adaptation, distribution and reproduction in any medium or format, as long as you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons licence, and indicate if changes were made. The images or other third party material in this article are included in the article’s Creative Commons licence, unless indicated otherwise in a credit line to the material. If material is not included in the article’s Creative Commons licence and your intended use is not permitted by statutory regulation or exceeds the permitted use, you will need to obtain permission directly from [the copyright holder. To view a copy of this licence, visit http://​creat​iveco​mmons.​org/​licen​ses/​by/4.​0/.](http://creativecommons.org/licenses/by/4.0/) © The Author(s) 2024

섹션 본문 92문단 · 29,519자

(제목 없음)

1Global warming is a vital problem that many researchers tried to solve with so many solutions such as: reducing electricity production with conventional generators by using renewable energy resources and using hydrogen as an alternative to fossil fuels.The universal Economic crisis came across to cut off certain quantities at scheduled times.This, directly, affects renewable energy sources connected to the grid due to voltage and frequency variations.To solve this dilemma, in this paper, the gridconnected solid oxide fuel cell (SOFC) model which is fed by green hydrogen to produce AC power, is developed by an Adaptive neuro-fuzzy inference system (ANFIS).It is one of the artificial intelligence applications to improve grid-connected SOFC dynamic response.ANFIS is mathematically presented and simulated using MATLAB/SIMULINK.The results show that the ANFIS controller has succeeded in enhancing most of the desired control and operation signals.AbbreviationsSOFC Solid oxide fuel cell ANFIS Adaptive neuro-fuzzy inference system GHG Greenhouse gases ICE Internal combustion engines ILC Interlinking converter PCC Point of common coupling SMC Sliding Mode Controller NN Neural networks FL Fuzzy logic RES Renewable energy sources FC Fuel cell AFC Alkaline fuel cell MCFC Molten-carbonate fuel cell AI Artificial intelligence ML Machine learning ANN Artificial neural networks FIS Fuzzy inference system ULTC Under-load tap changerOne of the most dangerous lives threatening on earth, is global warming.The normal sun-heat cycle is to be present in the atmosphere during daylight as well as disappearing at night.Unfortunately, greenhouse gases (GHG) such as carbon dioxide (Co 2 ) and methane (CH 4 ) Can trap the sun's heat preventing it from leaving the atmosphere during the night which disturbs this natural cycle causing global warming 1 .As Known, GHG is mainly a result of burning fossil fuels for many purposes.Mainly generating electrical power by conventional generators and internal combustion engines (ICE) in vehicles is the most fatal causes.Nowadays, the global urge is to find alternative technologies of conventional power generators and ICE with zero-carbon emissions.Hydrogen can play a key role as an alternative fuel since it is a zero-carbon energy carrier which nominate it to be the main fuel in the future 2 .

2Another option is the renewable energy sources (RES) that produce electrical energy with zero or low carbon emissions.The increasing reliance on RES has contributed to the increase in DC and AC microgrids and hybrid DC/AC microgrids which are formed of DC microgrids connected to AC microgrids through the interlinking converter (ILC).As the DC part of the hybrid microgrids is connected to the grid through an inverter or bidirectional AC/DC converter, the mode of operation is called online, or on-grid mode and the connecting point is called the point of common coupling (PCC).Nevertheless, when the DC part is not connected to the PCC, the mode of operation is called isolated mode or off-grid mode.In grid-connected mode, the main grid is responsible for the voltage and frequency stability on the AC side.

3Therefore, many control strategies are developed to regulate the voltage on the DC side and manage the power flow from side to side considering the bidirectional AC/DC converter-rated power.In 3 , DC microgrids are connected to the grid and controlled by a control strategy based on measuring the amount of power injected from the DC side into the main grid.If the power exchanged is greater than the converter-rated power, the converter is turned from a U-Q control strategy to a PQ control strategy.However, if the power exchanged is less than the converter-rated power, the converter can be controlled by the U-Q control strategy or PQ control strategy.These two control strategies are demonstrated in detail in 3 .

4In 4 , DC microgrids are connected to the grid through an inverter which is controlled by two cascaded loops, the inner loop and the outer loop.The inner loop role is controlling the grid current and reducing the harmonics.The outer loop role is controlling the DC voltage.These two loops form the inverter's general control structure and it can be controlled by the many control types such as:

5• Linear Controllers e.g.PID controllers, State-Feedback Controllers, and, Predictive Controllers.

6• Non-linear Controllers e.g.Sliding Mode Controller (SMC) and Hysteresis Controllers.

7• Intelligent controllers e.g.Neural networks (NN) controllers and fuzzy logic (FL) controllers.

8Controversially, the main disadvantage of RES is its intermittent nature 5 .The load profile system cannot be met by RES alone.Therefore, many researchers concluded that the best way to benefit from hydrogen and renewable energy in a system that brings them together.

9The system for converting hydrogen into electrical power using RES is fully explained in 6 .This system was named Power to Hydrogen to Power (P2H2P) due to the stages of electricity production.

10As shown in Fig. 1, P2Hrefers to using renewable energy to produce hydrogen through the electrolyzer.The electrolyzer separates water (H 2 O) into hydrogen and oxygen by basing electrical current through the water solution in addition to the catalyst.The Water amount that did not participate in the chemical reaction and did not decompose into hydrogen and oxygen is considered wastewater.

11H2P refers to using hydrogen to produce DC power through a fuel cell (FC).There are many types of FC e.g.alkaline fuel cells (AFC), molten-carbonate fuel cells (MCFC), and, solid oxide fuel cells (SOFC).The SOFC operates at very high temperatures so it is convenient to be used in power plants and it can be fueled by natural gas or hydrocarbon-based fuel or hydrogen.The aforementioned advantage is the main reason to focus on SOFC in this paper 7 .

12The FC consists of an anode and cathode and the electrolyte between them.The hydrogen flows into the anode.Due to the catalyst, the hydrogen molecules are divided into protons and electrons.The hydrogen electrons combined with the oxygen electrons and based through electrical load forming an electrical current.Then returns through the cathode to combine with provided oxygen.And continue through the electrolyte to separate protons from electrons and repeat the electrochemical process as long as hydrogen and oxygen are provided to the fuel cell.The form of the reaction is: Using P2H2P, hydrogen is produced without any carbon emissions, which is why it is considered a method of producing green hydrogen.After finding a system to optimally use hydrogen and renewable energy, interest became in how to benefit from and control it.

13Many researchers have been fascinated by the dynamic performance of the SOFC.In 8 , using MATLAB/ SIMULINK, the SOFC dynamic performance was studied by connecting it directly to the DC load and changing this load power by several steps.Then, the SOFC is connected to AC load through an inverter and the load power is changed in steps.After that, the interest in enhancing the grid-connected SOFC dynamic performance increased, in 9 , the grid-connected SOFC performance was enhanced using a PI controller by controlling the SOFC utilization factor U f i.e. the ratio of hydrogen flow rate that participates in the chemical reaction within the SOFC to the entire hydrogen flow rate that enters the SOFC.

14In 10 , the grid-connected SOFC is enhanced using PI-based two control strategies which are the constant voltage control strategy and the constant U f control strategy, and the results show that the constant U f control strategy succeeded in enhancing the durability of SOFC.

15In 11 and 12 , there is a complete explanation of the grid-connected SOFC modeling and an explanation of two different strategies for controlling it and testing its dynamic response.The two strategies are the constant power control strategy and the constant current control strategy.

16In 13 , a comparison was made between the two mentioned control strategies, and the resulted in that the constant current control strategy was superior to the constant power control strategy.

17One of the most crucial problems facing the electrical networks in Egypt and many other countries worldwide now, is the lack of fuel necessary to generate energy for all the loads connected to the grid due to the economic crisis.In Egypt, the Ministry of Electricity is, so far, facing this problem by reducing loads through disconnecting them at fixed, scheduled times to distribute them among all consumers.This is currently the case, but in the future, the most important proposed solution to solve this problem is to increase the percentage of renewable energy penetration that helps the network to cover the loads aside with reducing the percentage of GHG in the atmosphere.Until this happens, load disconnecting will affect renewable energy systems currently connected to the grid.

18This research is investigating the possibility of using artificial intelligence (AI) to improve the dynamic response of SOFC connected to the network and controlled by a constant current control strategy when loads are reduced by a certain percentage at a specific time.The adaptive neuro-fuzzy inference system (ANFIS), which is one of the main applications of AI, is explained and represented mathematically.Then, it will also be used and simulated using MATLAB/SIMULINK to study the effect of SOFC grid-connected using ANFIS.

ANFIS technique

19Artificial intelligence is one of the most important techniques in science society.AI's main goal is the regression of the human role in order to decrease the percentage of human error by training the machine to mimic human brain functions such as recognizing, thinking, deciding, and, solving problems 14 .This transforms machines into gaining experience and using it to improve their performance without previous programming.This process is called machine learning (ML) 14 .In the human body, neurons are responsible for the process of communicating with the brain, and by simulating this with AI, artificial neural networks (ANN) became one of the common algorithms used in ML.Human brain uses another technique to find out a problem's solution by guessing or speculating based on previous experience.Machine language is based on only two signals which are 0, and 1 15 .AI can teach computers to think uncertainly and make decisions using fuzzy sets that consist of contentious values 16 .In 1965, Lotfi Zadeh invented a fuzzy logic system i.e. a system using previous experience to solve a problem 17 .Adaptive neuro-fuzzy inference system (ANFIS) is an AI technique for teaching ANN how to perform their function using a fuzzy inference system (FIS) 18 .

Fuzzy logic inference systems

20Boolean logic is known as crisp logic.It is about absolute values 0 or 1. Zero for false and one for true and there cannot be any value in-between.Fuzzy logic is a superset of the values in-between true and false.Each value in the fuzzy set is a partial of the absolute true value.The degree how much this value is close to true or false is called membership value 15 .As mentioned in 18 fuzzy logic model consists of four parts:

21• Fuzzification: It is a process of converting input crisp values to fuzzy values by assigning a membership value to each crisp value.• Rule functions: They are rules put by the experts in the IF-THEN form to design the system's controllers.

22• Inference method: There are several methods to manipulate the fuzzified values and compute the fuzzy output such as:

process of converting output fuzzy values to crisp values by defuzzification function

23which differs from each other based on the inference method.

24The Sugeno method is the inference method that is used in the ANFIS.www.nature.com/scientificreports/

Artificial neural networks

25As shown in Fig. 2, the standard structure of ANN consists of three layers:

26• Input layer: It is a cluster of artificial neurons and its function is to receive the input data.

27• Hidden layers: It is a cluster of artificial neurons and its function is computing the inputs.

28• Output layer: It is a cluster of artificial neurons and its function is to deliver the outputs.

29Each neuron receives signals from all neurons in the previous layer and each signal has a decimal weight.The sum of all input signals is applied to the neuron function then the result will be the neuron output weighted signal and it will move forward to all neurons in the next layer.This is the standard design of ANN.ANN designer can control the direction of the signals and select the output signal destination 18 .Many researchers used ANN to represent the SOFC model and optimize its outputs.In 19 , ANN is used to calculate the SOFC-operated voltage and it consists of a single hidden layer with five neurons to compute the current, anode temperature, mass flow at the anode and cathode, and time.In 20 , ANN consists of a single input layer with 3 neurons which are the current, flow rate, and air temperature, and one hidden layer with 11 neurons to estimate the operating voltage as an output.On the other hand, ANN uses various optimization techniques such as genetic programming and, support vector machine to enhance SOFC performance, and a comparison between those techniques is presented in 21 .

(ANFIS) mathematical demonstration

30As mentioned earlier, the Sugeno method is used in the ANFIS technique.The following is the detailed explanation.

Sugeno method

31As mentioned in 19 the mathematical Sugeno model is as follows:

32• Assume that the fuzzy system has two inputs x 1 and x 2 as antecedents and one output y i As a consequence and i = 1,2, . . .number of rule functions.

• Assume we have two rule functions:

33A 1 and A 2 Are fuzzy sets for two different cases, e.g.Hot and cold.b i , c i , andd i Are the constants established based on a piece of previous information or an opinion question- naire by experts.

34• Then we plot the rule functions and determine the membership values of x 1 and x 2 as shown in Figs. 3 and 4.

35• In the Sugeno method, the rule functions are a form of logic AND gates.According to the AND operator, the output is the minimum input.So, from the rule function and Fig. 3, the output will be as follows: • Rule 1: when x 1 isA 1 , the membership is W X 1 and when x 2 isA 2 , the membership is U X 2 whereU X 2 has been chosen as an output because it is the minimum value due to the AND operator.

36( • Rule 2: when x 1 isA 2 , the membership is U X 1 and when x 2 isA 1 , the membership is W X 2 as shown in Fig. 4, U X 1 Has been chosen as an output because it is the minimum value due to the AND operator.• Then we solve the rule functions by Substitution crisp values x 1 and x 2 in the equations y 1 and y 2 .

37• Then we apply the results to the defuzzification function according to the Sugeno method to get the output as follows:

38So, y * Is the FIS output based on the Sugeno inference method.

Fuzzy logic controller limitation

39Based on the provided information above, it is clear that, if the experts set the wrong rule function, the result will be inaccurate and the controller will not be able to improve the performance.This means that FIS is not an expert and cannot be learned to find the appropriate rule function.

The combination of ANN and FIS

40The limitation of the FIS can be overcome using ANN, as ANN only requires inputs and outputs until they learn how to access these outputs by themselves.ANFIS technique is a developed AI and it is deduced by training the ANN to act as a fuzzy inference system to obtain the appropriate rule functions and assign the correct membership values that minimize the output function 18 .Assuming that only inputs (x 1 ,x 2 ) and one output (y * ) are provided to the ANFIS, the ANN will be formed as shown in Fig. 5, and ANN learn to formulate the rule function as previously assumed in Eqs. ( 2) and (3).

41In ANFIS, ANN layers represent FIS as follows:

42(4) As shown in Fig. 5, the combination of ANN and the FIS is as follows:

43The input layer has four neurons:

44The first neuron function is to calculate the membership value when x 1 isA 1 and the neuron output is W X 1 .The second neuron function is to calculate the membership value when x 1 isA 2 and the neuron output is U X 1 .The third neuron function is to calculate the membership value when x 2 isA 2 and the neuron output is U X 2 .The fourth neuron function is to calculate the membership value when x 2 isA 1 and the neuron output is W X 2 .

45Hidden layers consist of two layers:

46The first layer consists of two similar neurons.These neurons have an AND operator to select the minimum input signal and its output U X 2 and U X 1 respectively.The second layer has two neurons in their function mul- tiply input signal with y 1 (x 1 , x 2 ) in the first neuron and y 2 (x 1 , x 2 ) in the second neuron, and its outputs are U X 2 .y 1 (x 1 , x 2 ) and U X 1 .y 2 (x 1 , x 2 ) respectively.

47Finally, the output layer consists of one neuron and its function is to compute defuzzification output by applying input signals to the Sugeno defuzzification function given in Eq. ( 4) and the neuron's output is y *

System under study

48Figure 6 shows the grid-connected SOFC system under study.The system consists of the fuel cell system, underload tap changer (ULTC), and an inverter.The inverter controls the voltage and frequency by adjusting the inverter modulation index ( m).The inverter is responsible for the synchronization with the grid with an accept- able voltage regulation of ± 2% and frequency of about ±0.5%. the generated power ( P s ,Q s ) is injected into the grid.The inverter consists of IGBT switches; therefore, it has a faster dynamic response than SOFC as its dynamic response depends on chemical reactions resulting after any change in the flow rate of hydrogen feeding it.

49• The grid is modeled as an infinite bus bar with voltage (V s ) = 1p.uandphase angle(θ s ) = 0 • The fuel cell system is modeled as a SOFC stack with operating voltage ( V fc ) and DC current ( I fc ).

50• (ULTC) modeled as the transformer reactance (X t ) • The inverter is modeled as terminal voltage ( V t ), the inverter phase angel(θ t ), and modulation index ( m)

System analysis

51In 11 , there are a detailed analysis of the fuel cell and all the equations that represent the grid-connected SOFC.

52In this paper, a background will be clarified about some of these equations to know the inputs and outputs that were used in the ANFIS controller.In SOFC, a volt is produced by energy resulting from chemical reactions inside the fuel cell, and this volt is calculated using the famous Nernst equation, as follows:

53where V fc is the fuel cell DC voltage, r Is the FC stack resistance in the ohm unit, (P H 2 ) is the partial pressure of the hydrogen in atm, (P H 2 O ) is the partial pressure of the water in atm, (P O 2 ) is the partial pressure of oxygen in atm, N o is the number of fuel cells connected in series forming a fuel cell stack, R is the ideal gas constant = 8.314 (J/mol/K), T is the temperature in kelvin, F is Faraday's constant = 96,487 (C/mol), and I fc is the fuel cell current in Ampere.

54The generated DC power from the SOFC is given by:

55The electric current produced from the fuel cell depends on the load and the flow rate of hydrogen entering the fuel cell (q in H 2 ) , the U f cannot be increased or decreased from specific values so that the fuel cell is not exposed to damage.This restriction can be formulated in the following function:

56On this basis, the fuel cell control strategies have been developed and the dynamic equations that describe these strategies are as follows:

57P ref Is the reference power, τ e is the electrical response time.V fc o Is referring to using a constant fuel cell voltage value in the grid-connected SOFC simulated model.The fuel cell produces DC voltage.Therefore, it is necessary to connect SOFC to the grid through an inverter which is suitable for the ratings of the fuel cell.The inverter output voltage ( V t ) and its phase angle ( θ t ) are given by: As assumed in 11 , the inverter/transformer losses are neglected.Consequently, the injected real power and reactive power to the grid are calculated as follows:

58The inverter control process is described as follows: K m Is the gain of the voltage control loop,V ref is the reference voltage to the voltage controller, and τ m is the time constant of the voltage control loop.

59From equations (8a) and (8b), it is clear that to improve the performance of the control circuit that was designed based on these equations to control the SOFC output current and thus control the DC power produced from it, the ANFIS controller is added to this control circuit as follows:

60(5) www.nature.com/scientificreports/From equations ( 9), (11), and ( 12), we conclude that if the output of the inverter is controlled, then the injected power to the grid is controlled, so equation ( 13) is used to design the control circuit for the grid's injected power.Therefore, the ANFIS controller has been added to this circuit as follows:

61As mentioned above, the SOFC was fully modeled and described in 11 .So, other equations describe the dynamic response inside the SOFC to determine the pressure and temperature inside it, and they are as follows:

62V an Is the volume of the anode, R is the ideal gas constant, n H 2 and is the moles of hydrogen.In this research, the ANFIS controller was not used to control any of the parameters that represent the dynamic response within the SOFC such as P H 2 ,P O 2 , and P H 2 O , but as it is clear from Eqs. 14, 15, 16, and 17, the ANFIS controller was used to control the SOFC DC output and the inverter AC output, so it is used as a DC/AC controller and not as a SOFC controller.

63As noticed in the ANFIS controllers which are added to the control circuits, in each chosen control circuit, the ANFIS controller has one input and one output, and the number of the rule functions can be chosen by the ANFIS designer in the MATLAB/SIMULINK.When the chosen number of the rule functions is increased, the accuracy of the results increases, but this increase is accompanied by a long time in ANFIS training and extracting the results.Therefore, the number of ten rule functions was chosen to increase the result's accuracy and reduce the time of the ANFIS training and extracting the results.

64In Figs. 7 and 8, the ANFIS structure that is used in grid-connected SOFC.The role of the ANFIS controller is to minimize the deviation of system parameter values from its steady-state values before the applied disturbance.( 15)

Performance of SOFC as affected by scheduled load disconnecting and controlled by ANFIS

65As mentioned earlier in 6 , 100kW SOFC stack grid-connected was modeled and controlled with a constant cur- rent control strategy.The SOFC model parameters are given in 7 .Using MATLAB SIMULINK to simulate the scheduled load disconnecting and test grid-connected SOFC's dynamic response, the model was subjected to a 10% step-down in reference power (P ref ) at the fifth second after starting the system and the results were extracted to show the dynamic performance with and without adding ANFIS controller.Please notice that: In the results figures, anfis refers to results by adding ANFIS to the model and c.c refers to results with the constant current control strategy without adding ANFIS to the model.As shown in Fig. 9, the applied disturbance to the grid-connected SOFC is a 10% decrease in the reference power.

66As shown in Fig. 10, using the ANFIS technique enhances the performance of the SOFC model under disturbance whereas the SOFC demand current ( I fcdem ) steady-state error was decreased from 9 to 3%.

67As shown in Fig. 11, the ANFIS technique succeeded in eliminating the former 1% undershoot in the inverter modulation index ( m ) and the steady-state error was decreased from 2% to 0.3%.

68As shown in Fig. 12, using the ANFIS technique enhances the performance of the SOFC model under disturbance whereas the injected active power to the grid ( P s ) steady-state error was decreased from 9 to 3%, and settling time was enhanced from 9 to 5 s.

69As shown in Fig. 13, the dynamic response of the phase angle ( θ t ) was enhanced by adding the ANFIS tech- nique to the SOFC model.Steady-state error was decreased from 9 to 2%.

70As shown in Fig. 14, in the constant current control strategy, the injected reactive power to the grid ( Q s ) had a 7% overshoot after the disturbance was subjected to the SOFC model.Adding the ANFIS technique eliminates the overshoot and keeps a steady state error of 3%, which is the same with and without adding the ANFIS.

71As shown in Fig. 15, in the constant current control strategy dynamic response, the voltage on the inverter terminals ( V t ) had a 2% overshoot after the disturbance was subjected to the SOFC model.Adding the ANFIS controller to the model eliminates the overshoot and enhances settling time from 5 to 3 s.

72As shown in Figs.16 and 17, the results indicate that when adding the ANFIS controller to the grid-connected SOFC, which was previously controlled by a constant power control strategy and subjected to the same disturbance, it was found that its dynamic response to the same disturbance is not better than the model that was controlled by the constant current control strategy and the ANFIS controller was added to it in terms of maximum overshoot, steady state error, and settling time.Please notice that: In the results figures, anfis refers to results by adding ANFIS to the model and c.p refers to results with the constant power control strategy without adding ANFIS to the model.As shown in Fig. 16, the ANFIS controller succeeded in decreasing the SOFC demand current ( I fcdem ) steady- state error from 11 to 9% but the settling time was increased from 10 to 20 s, and it caused an overshoot with 3%.As shown in Fig. 17, the ANFIS controller succeeded in eliminating the inverter terminal voltage ( V t ) over- shoot but the steady state error was increased from 0.02% to 0.06%.

73As shown in the extracted results, the ANFIS technique has proven that it can enhance grid-connected SOFC which was previously controlled by a constant current control strategy after being subjected to disturbance by learning from SOFC model data and its performance before adding ANFIS to the SOFC model.ANFIS decreased www.nature.com/scientificreports/steady-state error for all parameters and eliminated overshoot-undershoot for V t , Qs, and m .Settling time has been reduced for P s and V t by 4 s and 2 s respectively.It also became clear from the results that the ANFIS controller succeeded in reducing the deviation from the steady-state value more than the other control strategy, whether by reducing over-shoot steady-state error or settling time, when ANFIS controller outputs were chosen, it had to be changed several times until the ANFIS settles on the best results that it can reach, considering to the number of rule functions that are chosen to reach these results.

74In other research such as 9 and 10 , regardless of the control strategies, the PI controller remains the main control type, and in 6 , there are two control strategies, but the main control type is state-feedback controllers, in these two control types, the dynamic performance enhancement techniques are limited, such as PI controller tuning, but the ANFIS controller can start improving the dynamic performance from where the other control types ended due to its ability to learn the way any system works and its flexibility in improving results, where the ANFIS designer can reach the best results by doing Many ANFIS training with different number of rule functions.

75So, the results prove that the ANFIS controller can enhance the performance of any system which is controlled by any control type.

Conclusion

76Artificial neural networks (ANN) and adaptive neuro-fuzzy inference system (ANFIS) techniques are used to investigate the performance of grid-connected (SOFC) operations.The combined ANN and FIS are used to predict performance parameters and dynamic response of stack current, voltage, and power through a system under study using a constant current control strategy.Using MATLAB/SIMULINK, the ANFIS controller was added to the grid-connected SOFC model under the control of a constant current control strategy so that the SOFC model could be learned and its dynamic performance is enhanced and tested through the application of a scheduled load disconnecting scheme.

77The results showed that the ANFIS controller can enhance the SOFC model dynamic response.This is demonstrated in the obtained results that assure minimum steady-state error, less overshoot-undershoot , and fast settling time in all the obtained dynamic time responses of the grid-connected SOFC studied system under constant control.

Figure 1 .

78Figure 1.Power to hydrogen (P2H) and hydrogen to power (H2P) system.

( 1 )

792H 2 gas + O 2 gas → 2H 2 O + (Electiricity + Heat) Vol:.(1234567890)Scientific Reports | (2024) 14:17911 | https://doi.org/10.1038/s41598-024-62414-3

Figure 2 .

80Figure 2. ANN layers.

Figure 3 .

81Figure 3. Membership value for inputs x 1 and x 2 according to rule (1).

Figure 4 .

82Figure 4. Membership value for inputs x 1 and x 2 according to rule (2).

Figure 5 .

83Figure 5. ANFIS architecture.

Figure 6 .

84Figure6.Under study grid-connected SOFC system with its rating values.

8514) ANFIS input = P ref V − I fc Vol:.(1234567890)Scientific Reports | (2024) 14:17911 | https://doi.org/10.1038/s41598-024-62414-3

86τ H : The hydrogen flow response time.τH 2 O : The water flow response time.τ O 2 : The oxygen flow response time.

Figure 7 .

87Figure 7.The added one input/one output ANFIS controller to the DC power control circuit.

Figure 8 .Figure 9 .

88Figure 8.The added one input/one output ANFIS controller to the AC power control circuit.

Figure 10 .Figure 11 .Figure 12 .

89Figure 10.Unmodified fuel cell dc demand current response after the disturbance.

Figure 13 .Figure 14 .

90Figure 13.Phase angle response after the disturbance.

Figure 15 .

91Figure 15.Converter terminal voltage response after the disturbance.

Figure 16 .Figure 17 .

92Figure 16.Unmodified fuel cell dc demand current response after the disturbance.

참고문헌 14건

  1. Fuzzy Logic in Artificial Intelligence Lecture notes in computer science · Springer Science+Business Media · 1993 10.1007/3-540-56920-0
  2. A dynamic model for solid oxide fuel cell system and analyzing of its performance for direct current and alternating current operation conditions International Journal of Energy Research · Wiley · 2012 10.1002/er.2922
  3. Development of models for analyzing the load-following performance of microturbines and fuel cells Electric Power Systems Research · Elsevier BV · 2002 10.1016/s0378-7796(02)00033-0
  4. Modelling the SOFC behaviours by artificial neural network International Journal of Hydrogen Energy · Elsevier BV · 2009 10.1016/j.ijhydene.2009.04.068
  5. A neural network estimator of Solid Oxide Fuel Cell performance for on-field diagnostics and prognostics applications Journal of Power Sources · Elsevier BV · 2013 10.1016/j.jpowsour.2013.04.114
  6. Balancing wind-power fluctuation via onsite storage under uncertainty: Power-to-hydrogen-to-power versus lithium battery Renewable and Sustainable Energy Reviews · Elsevier BV · 2019 10.1016/j.rser.2019.109465
  7. Performance enhancement of a grid-connected solid-oxide fuel cell using an improved control scheme Materials Today Proceedings · Elsevier BV · 2020 10.1016/j.matpr.2020.05.575
  8. Solid‐Oxide Fuel Cell and Its Control 2021 10.1002/9781119760375.ch6
  9. Artificial Neural Networks Based Optimization Techniques: A Review Electronics · Multidisciplinary Digital Publishing Institute · 2021 10.3390/electronics10212689
  10. Comparative assessment of blue hydrogen from steam methane reforming, autothermal reforming, and natural gas decomposition technologies for natural gas-producing regions Energy Conversion and Management · Elsevier BV · 2022 10.1016/j.enconman.2022.115245
  11. Blue hydrogen must be done properly Energy Science & Engineering · Wiley · 2022 10.1002/ese3.1232
  12. Real-Time Simulation and Hardware-in-the-Loop Testing Using Typhoon HIL Transactions on computer systems and networks · Springer Nature · 2023 10.1007/978-981-99-0224-8
  13. Comparative analysis of Mamdani, Larsen and Tsukamoto methods of fuzzy inference system for students’ academic performance evaluation International Journal of Science and Research Archive · GSC Online Press · 2023 10.30574/ijsra.2023.9.1.0443
  14. Overview of P2H2P Systems and Dynamic Performance Solid Oxide Fuel Cell (SOFC) 2023 10.1109/eeps58791.2023.10257078