Abstract

The acute respiratory distress syndrome patients largely need a mechanical ventilator intervention. There are procedures that have been developed to guide the physicians during the ventilation of the patient. Berlin definition of the acute respiratory distress syndrome has been developed with ventilator adjustment settings/procedures. The procedures may however be a challenge for some physicians to remember during the intense ventilator intervention. Physicians are found to make human errors that may lead to the death of the patient. This, therefore, calls for the need of a logic system that will reason for the physician, that is, guide the physician. A fuzzy logic system was used to build the fuzzy set rules based on the Berlin definition. The MATLAB Simulink was used to simulate the system. The results show that the fuzzy-based ARDS Berlin definition can guide the physician on the adjustments to be made during the ventilation.

1. Introduction

1.1. Acute Respiratory Distress Syndrome (ARDS)

Acute respiratory distress syndrome (ARDS) [13] is a deadly respiratory failure [4] that is determined using arterial blood gas levels (hypoxemia with a ration of PaO2 to FiO2 being less than or equal to 300 mm·Hg) and chest imaging of bilateral opacities. Bilateral opacity is a type of pulmonary opacity (increased pulmonary attenuation where the amount of air in the lung airspaces decreases due to the airspaces being filled with fluid that is leaked into the alveoli due to the lung damage). Therefore, since the fluid is leaked into the alveoli causing pulmonary edema, there is also an oxygen deficiency in the arterials. Furthermore, the fluids in excess also increase the mortality rate of patients with ARDS [5]; there is a need of detecting it early enough to reduce the mortality rate.

The etiology of ARDS is a direct lung injury but due to mainly two causes, namely, pulmonary ARDS and extra-pulmonary ARDS. For the case of the pulmonary ARDS, the lungs are damaged by factors within the lungs such as lung contusion (bruise on the lung due to chest blow), smoke inhalation, viral pneumonia (when a lung tissue is swollen due to a virus), and fat embolism (when fats from a bone slide into the blood vessels) [6]; and for the case of extra-pulmonary ARDS, the lungs are affected by external factors [7] such as head injury, trauma, cardiopulmonary bypass (use of an artificial ventilator during surgery to help in blood circulation and maintaining the oxygen content in the patient’s blood). The two etiological ways are inconsistent with different MV, implying that there is a need for a chest scan to determine the causes of the ARDS such that effective settings are implemented by the operator as well as use the lung injury preventive methods.

There is a similarity in the treatment of neonatal ARDS and coronavirus disease 2019 (COVID-19) ARDS [8, 9], and there is also a similarity in the treatment of respiratory distress syndrome (not ARDS) and COVID-19; this therefore implies that a system developed can be used to treat different cases, that is, neonatal ARDS, COVID-19 related to ARDS, respiratory distress syndrome which is not acute, and COVID-19. There has been development in the procedures taken during the treatment of patients with ARDS [10], that is, using the Berlin definition or Kigali definition. For this study, the Berlin definition was taken as the case study in the development of the fuzzified Berlin definition system.

1.2. ARDS Berlin Definition

Berlin definition consists of mainly four factors, that is, the time at which to confirm ARDS is one (1) week from the time of clinical insult; bilateral opacities detected using the chest imaging; origin of edema, of which the authors argue that the cardiac failure and fluid overload may not well explain the cause of respiratory failure though they are the best in detecting patients with ARDS; the ARDS was also further defined inform of its severity, that is, mild (200 < PaO2/FiO2 ≤ 300), moderate (100 < PaO2/FiO2 ≤ 200), and severe (PaO2/FiO2 ≤ 100) [11]. The severity of ARDS can also be determined by the amount of the extravascular lung water [12]; the more the lung water, the more severe the ARDS case.

Low positive end-expiratory pressure (PEEP) can improve the oxygenation [13]; however, some authors argue that high PEEP improves PaO2/FiO2 compared to the low PEEP [14] for the subgroup of ARDS patients, that is, the severe case of ARDS patients [15, 16, 19].

1.3. Related Work

Sahetya et al. [17] and Brower et al. [18] indicate the required lower PEEP and higher PEEP parameters with respect to their FiO2 parameter as shown in Table 1 during the ventilation. It is to be noted that the physicians are to follow this PEEP adjustment such as to effectively ventilate the ARDS patient; however, this comes with human errors; physicians during emergency medicine intervention may erroneously adjust the ventilator settings due to reasons such as being tired or low number of physicians who are overwhelmed by the number of patients needing their attention, and the table has no room for flexibility in adjustments, that is, there are few numbers indicated, for example, for a patient receiving lower PEEP has no numbers such as 6, 7, and 9, among others in PEEP adjustment, leaving a gap for the physicians to guess where they are not sure. Nguyen et al. [19, 20] apply the fuzzy rule-based models and use three input parameters, namely, PEEP, peak airway pressure (PAP), and arterial oxygen saturation (SaO2). The fuzzy system, however, has the challenge that it is not per the ARDS Berlin definition of adjusting PEEP based on the FiO2 values alone.

In this research, a fuzzy-based approach is used in training the algorithm to understand the parameters that would have been adjusted by the physicians during the ventilation of a patient with ARDS. The fuzzy system consists of crisp input, fuzzification, membership functions, rule base, fuzzy inference system, defuzzification, and crisp output. These are the steps/procedures followed during the design of a fuzzy rule-based system using a fuzzy logic designer and/or neuro-fuzzy designer application installed in MATLAB software. The fuzzy-based Berlin definition system will reduce the physician errors, extrapolate or attain the missing data in PEEP table as shown in Table 1, as well as address the challenges that come with misinterpretation of the ventilator parameters during the ventilation [21].

2. Materials and Methods

2.1. Fuzzy Rule Based Model

The fuzzy rule-based system will be used to suggest the medical ventilator parameter adjustments for the physicians by using the Mamdani fuzzy ruled-based model. The functional components of the fuzzy system are explained below.

2.1.1. Crisp Input

The PEEP and FiO2 parameters were used as the inputs for training the algorithm. Crisp inputs in the fuzzy system represent the raw inputs from the patient.

2.1.2. Fuzzification

The crisp input values are then converted into fuzzy values through membership functions (triangular and trapezoidal membership functions were used in this research), which convert the raw crisp inputs into the degree of truth, that is, between zero (0) and one (1) and including zero (0) and one (1).

2.1.3. Expert Fuzzy System/Rule Base

The fuzzy values then are interpreted using the expert fuzzy system. The expert fuzzy system contains a set of rules or knowledge that maps the fuzzy inputs to the fuzzy outputs. In this research, the rules are constructed from the existing PEEP table as shown in Table 1. The ARDS PEEP adjustment requires that there is an increment of PEEP until the set PEEP matches the FiO2 value. Therefore, for a particular FiO2 value having a physician set PEEP less than the desired ARDS PEEP, the change in PEEP (output) was set to “Increase,” and for a physician set PEEP equal to the desired ARDS PEEP, the change in PEEP (output) was set to “Maintain.”

2.1.4. Aggregation

The mapping of the fuzzy input values into fuzzy output values using the rule base is done using the membership functions. Here, the fuzzy output values are then passed on for defuzzification.

2.1.5. Defuzzification

The fuzzy output values are then mapped to the crisp outputs using the defuzzification methods; in this research, a centroid defuzzification method was used.

2.1.6. Crisp Output

The crisp output value is a signal that will be used in guiding the physician(s) in adjustment of the medical ventilator parameters.

2.2. Linguistic Terms Used

The “Linguistic meaning/params” column is the membership function parameters of the “Linguistic term” column.

Table 2 shows the parameters of the FiO2 linguistic terms ranging from F1 to F9. The membership function that was used in this research was the triangular type for F1 to F9, ranging from zero (0) to one (1) since the Berlin definition of ARDS considers a 0-1 scale for FiO2.

Table 3 shows the parameters of the high PEEP linguistic terms ranging from HP1 to HP8. The membership functions that were used in this research were the trapezoidal type for HP1 and triangular type for HP2 to HP8, ranging from zero (0) to twenty-four (24) since the Berlin definition of ARDS considers a 0–24 scale for PEEP adjustments.

Table 4 shows the parameters of the low PEEP linguistic terms ranging from HP1 to HP9. The membership functions that were used in this research were the trapezoidal type for HP1 and triangular type for HP2 to HP9, ranging from zero (0) to twenty-four (24) since the Berlin definition of ARDS considers a 0–24 scale for PEEP adjustments.

Table 5 shows the parameters of the pH linguistic terms consisting of low, moderate, and high. The membership functions that were used in this research were the trapezoidal type for low and high and triangular type for moderate, ranging from zero (0) to fourteen (14) since the Berlin definition of ARDS considers a 0–14 scale for pH adjustments.

2.3. FiO2 and PEEP Fuzzy Rules

The fuzzy set rules for low PEEP are shown in Table 6 with the continuation of the fuzzy set rules in Table 6, and for high PEEP, the rules are shown in Table 7.

2.4. Simulink
2.4.1. General System

The design of the system is to guide the physician in determining how much of the adjustments to make during the ventilation after taking measurements from the patient. The system is based on the ARDS Berlin definition of the procedure taken during the ventilation of an ARDS patient.

Figure1 shows a patient whose readings/crisp inputs (inputs to the fuzzy system) are taken, that is, FiO2, PEEP, and pH. The crisp inputs are fuzzified as shown in Figures 2 and 3. The “FiO2 and PEEP input subsystem” is a subsystem that generates simulated FiO2 and PEEP data to be fed into “FiO2 and PEEP subsystem”; the readings are then taken using the Simulink display and simultaneously plotted using the Simulink scope.

2.4.2. Patient Subsystem

The patient subsystem in Figure 4 is used as a loop path for the “FiO2 and PEEP subsystem” and “pH fuzzy subsystem.” The input 1 (In 1) connected to the output 1 (Out 1) is the FiO2 and PEEP data from the patient to the” “FiO2 and PEEP input subsystem” fuzzy system. The input 2 (In 2) connected to the output 2 (Out 2) is the pH data from the patient to the “pH fuzzy subsystem” fuzzy system.

The output 1 (Out 1) in Figure 4 connects to the input 1 (In 1) in 3; output 3 (Out 2) in Figure 5 connects to the input 1 (In 1) in Figure 4.

The output 2 (Out 2) in Figure 4 connects to the input 1 (In 1) in Figure 3; output 2 (Out 2) in Figure 3 connects to the input 2 (In 2) in Figure 4.

2.4.3. FiO2 and PEEP Input Subsystem

The input 1 (In 1) is the FiO2 data passed through the initial condition block (Initial FiO2) to initialise the signal during the simulation. The signal is set through the code block (initial input code block) whose purpose is to pause the loop after one second; input u0 is connected to the output, y0.

The if-condition (if-condition 3) triggers the signal from the code block output y0; if the output y1 from the code block is equal to zero (0), then the signal is sent from output y0 to memory 2, which is then added on a bias (Bias 3) of 0.1. The if-condition (if-condition 4) helps in triggering the PEEP. The initial PEEP is set to zero (0) and then sent to input; u1 of the code block which is connected to output y1. The signal from the output y1 is added on a bias (Bias 1) of 1, and then the signal is sent to memory 1. The signal is then fed into the code block (loop code block) that contains an if-condition; if input u1 is less than 25, then output y0 is connected to input u1; otherwise, the output y0 is connected to input u0. The simulation stops if the FiO2 input is greater than 0.9.

The action subsystems (“If Action Subsystem 1.1,” “If Action Subsystem 1.2,” “If Action Subsystem 3,” and “If Action Subsystem 4”) are used to relay the original signal since the signal sent from the if-condition block is a trigger signal.

The output 1 (In 3) in Figure 5 connects to the input 1 (In 1) in Figure 2; output 2 (In 2) in Figure 5 connects to the input 2 (In 2) in Figure 2.

2.4.4. FiO2 and PEEP Fuzzy Subsystem

The inputs (In 1 and In 2) are fed into the Fuzzy Logic Controller (FLC) as crisp inputs and then output as crisp output which is the change in the PEEP to be made. The output (change in PEEP) is then added to the initial PEEP. The output 1 (Out 1) in Figure 2 is then displayed and plotted using the Simulink display and scope, respectively.

The if-condition (If-condition 1) is used to generate the PEEP data for as long as the PEEP is less than or equal to 24.

2.4.5. pH Fuzzy Subsystem

Table 8 shows the linguistic terms used for pH, respiratory rate, and change in tidal volume. The pH was used as the input variable to guide in adjusting the output variables, namely, respiratory rate and change in tidal volume.

From Figure 3, the initial input of the pH is started with zero (0) in the simulation and then fed into the Fuzzy Logic Controller1 (FLC1) as crisp input; the crisp outputs are the changes in the respiratory rates and tidal volumes. There is a bias (Bias 1) of 0.1 that is added to memory 1 to make a loop so as to generate data for simulation. The simulation is stopped if pH is greater than 14. The output 1 (Out 1) is then connected to the Simulink display and scope.

The membership functions used in designing the FLC are shown in Figures 612.

3. Results and Discussion

The results were attained from the Fuzzy Logic Designer rule viewer and Fuzzy Logic Designer surface, and the Neuro-Fuzzy Designer was used to imitate the exact output expected from the acute respiratory distress syndrome network (ARDSNet) protocol for positive end expiratory pressure (PEEP) during the ventilation of ARDS patients; the algorithms were then used in the simulation using the graphical and interactive Simulink tool in MATLAB software.

Tables 9 and 10 show the comparison between the physician-based Berlin definition of ARDS using the ARDSNet protocol [17, 19] and the fuzzy based Berlin definition of ARDS. The ARDSNet protocol requires that there is a PEEP adjustment of 2 to 4 during the ventilation which is why the adjustments in Tables 9 and 10 do not exceed 4 in value adjustment.

It is noticed that the physician-based Berlin definition of ARDS has whole numbers compared to fuzzified system of Berlin definition of ARDS. This implies that the fuzzy-based Berlin definition of the ARDS system is more accurate since it considers how fast the system makes the decision and its application of the possibility theory in adjustments of the PEEP.

3.1. Simulink Graphs
3.1.1. FiO2 Input and Initial PEEP Input Graph

Sahetya et al. [17] and Brower et al. [19] indicate the recommended range for PEEP values as 0–24 and the values of FiO2 range of 0-1. So, Figure 13 shows the graph indicating the recommended ranges of the input data (PEEP and FiO2) on the y-axis against time on the x-axis. The plot in blue colour shows the initial PEEP input range readings from 0 to 24, and the plot in yellow colour (which is close to the x-axis) represents the FiO2 recommended range input readings from 0 to 1. Then, Figure 14 shows the high PEEP ARDSNet protocol used in treating patients with ARDS (the graph was generated using the fuzzy neural network to mimic the exact values indicated by the authors [17, 19]); the red coloured PEEP (ARDSNet protocol recommended high PEEP adjustments) plots depend on the yellow coloured FiO2 inputs; as the FiO2 inputs change, so do the PEEP values (labelled as “Berlin High PEEP” on the graph). The blue plots are still shown in Figure 14 to represent the whole range of the recommended high PEEP values.

3.1.2. FiO2 Input, Initial High PEEP Input, and Adjusted PEEP Output Graph

Figure 15 shows the simulated results after employing the fuzzy logic reasoning of the high PEEP algorithm. As explained previously, the plots in yellow colour are the FiO2 inputs, initial PEEP inputs are in blue colour, and the fuzzified outputs (labelled as “adjusted PEEP output” on the graph) are in the red colour. The graph shows how the FiO2 input when adjusted affects the fuzzified outputs. For example, when the FiO2 value changed from 0 (zero) to 0.1, no change was indicated in the fuzzified output since the recommended PEEP is not indicated in Table 1. When the FiO2 input changed to 0.3, the fuzzified output changed on the graph to match the recommended PEEP value of up-to 14 as shown in Table 1. The graph shows that it covers up the data missing in Table 1; when FiO2 input changed to 0.4, the fuzzified output changed as well up-to PEEP 16; the fuzzified PEEP values keep on changing based on the FiO2 inputs as guided by Table 1.

3.1.3. FiO2 Input, Initial Low PEEP Input, and Adjusted PEEP Output Graph

Figure 16 shows the low PEEP ARDSNet protocol used in treating patients with ARDS (the graph was generated using the fuzzy neural network to mimic the exact values indicated by the authors [17, 19]); the red coloured PEEP (ARDSNet protocol recommended low PEEP adjustments) plots depend on the yellow coloured FiO2 inputs; as the FiO2 inputs change, so do the PEEP values (labelled as “Berlin low PEEP” on the graph). The blue plots are still shown in Figure 16 to represent the whole range of the recommended low PEEP values.

Figure 17 shows the simulated results after employing the fuzzy logic reasoning of the low PEEP algorithm. The plots in yellow colour are the FiO2 inputs, the plots in blue colour are the initial PEEP inputs, and the outputs (adjusted PEEP output) are in the red colour. The graphs indicate the same procedure as for Figure 15, with the only difference that the algorithm was trained using the low PEEP values.

3.1.4. pH Input, Respiratory Rate Adjustment, and Tidal Volume Adjustment Graph

Figure 18 shows the simulated results of the pH algorithm after employing fuzzy logic reasoning. The plots in yellow colour are the pH inputs, the plots in blue colour are the fuzzified respiratory rate outputs, and the fuzzified tidal volume adjustment outputs are in the red colour. The graph shows how, according to the ARDS Berlin definition, the input pH parameter should affect the adjustments of the respiratory rate and tidal volume.

When the pH < 7.2, there is an increment change/difference in respiratory rate and tidal volume; when pH is between 7.2 and 7.4, no change (zero) is made for respiratory rate and tidal volume; when the pH > 7.4, change in respiratory rate is reduced and tidal volume is maintained.

Based on the ARDS treatment protocol, once the patient stabilises, the designed algorithms will have achieved the significant change in a patient from severe PaO2/FiO2 ≤ 100) to moderate (100 < PaO2/FiO2 ≤ 200) to mild (200 < PaO2/FiO2 ≤ 300) or fully recovered.

4. Conclusion

The MATLAB Simulink was used to simulate the system. The results show that the fuzzy-based ARDS Berlin definition can guide the physician on the adjustments to be made during the ventilation with more accuracy. This, therefore, will reduce the death related errors made by the physicians due to human errors and will increase the speed of decision-making during ventilation.

Data Availability

The data generated or analyzed to support the findings of this study are included within the article.

Conflicts of Interest

The authors declare that they have no conflicts of interest.