Abstract
Weaning is important for patients and clinicians who have to determine correct weaning time so that patients do not become addicted to the ventilator. There are already some predictors developed, such as the rapid shallow breathing index (RSBI), the pressure time index (PTI), and Jabour weaning index. Many important dimensions of weaning are sometimes ignored by these predictors. This is an attempt to develop a knowledge-based weaning process via fuzzy logic that eliminates the disadvantages of the present predictors. Sixteen vital parameters listed in published literature have been used to determine the weaning decisions in the developed system. Since there are considered to be too many individual parameters in it, related parameters were grouped together to determine acid-base balance, adequate oxygenation, adequate pulmonary function, hemodynamic stability, and the psychological status of the patients. To test the performance of the developed algorithm, 20 clinical scenarios were generated using Monte Carlo simulations and the Gaussian distribution method. The developed knowledge-based algorithm and RSBI predictor were applied to the generated scenarios. Finally, a clinician evaluated each clinical scenario independently. The Studentʼs t test was used to show the statistical differences between the developed weaning algorithm, RSBI, and the clinician’s evaluation. According to the results obtained, there were no statistical differences between the proposed methods and the clinician evaluations.
Similar content being viewed by others
1 Introduction
The weaning process is used to discontinue the use of mechanical ventilators (MVs) for patients with respiratory distress in intensive care units (ICUs). It depends on the strength of patient’s respiratory systems [1]. Twenty percent of ventilated patients will fail at their first attempt at weaning [2, 3]. Thus, the patients must spend more time in ICU before they can be weaned off MVs. Prolonged MV use may cause some complications such as infection, pneumonia, and barotraumas [4,5,6,7,8,9,10]. However, if the clinicians cannot predict the right time to start weaning, the patients may need reintubation, and this failure may increase the percentage of morbidity and mortality [4, 11,12,13]. Many researchers have attempted to reduce the duration of MV use. The studies on the ventilator-weaning process have proposed reducing the weaning times via their defined protocols rather than the usual intensive care protocols [14,15,16,17,18,19].
There are three weaning predictors commonly described in published literature. These are the rapid shallow breathing index (RSBI), the pressure time index (PTI), and the Jabour weaning index (JWI) [19]. Owing to its ease of calculation, RSBI is widely used in ICUs. Over a period of 1-min spontaneous breathing by the patient, RSBI calculates the ratio of frequency to tidal volume. If this value is below the threshold of 100 (breaths per/min)/L, RSBI predicts weaning success with an accuracy of up to 97% [20]. However, prolonged MV decreases the sensitivity of RSBI, and the state of the disease influences its specificity [21]. The other predictors used in the weaning process require more detailed respiratory parameters, and so, they are not preferred by the staff of an ICU.
It is known that if physicians decide the weaning from MV, the success of weaning is only 35–60% [22]. Some researchers developed their predictor algorithms to increase weaning success above predictors described in published literature. Nemoto et al. implemented a process to wean patients’ off ventilator with fuzzy logic by using parameters such as heart rate, tidal volume, breathing rate, and the percentage of oxygen saturation of arterial blood (SaO2) [23]. They tested their developed algorithm on 13 patients with severe chronic obstructive pulmonary disease (COPD). They compared their algorithm with the decisions made by a physician. Hsu et al. developed a clinical decision support system by using a support vector machine (SVM) to predict the right weaning time [24]. In their study, frequency to tidal volume ratio, inspiratory tidal volume, expiratory tidal volume, and respiration rate were used to determine the weaning time. Kilic and Kilic developed a fuzzy decision support system for weaning off mechanical ventilators; their fuzzy input variables were hemoglobin, mean arterial pressure, arterial oxygen saturation, arterial CO2 partial pressure (PCO2), arterial pH, fractional inspired oxygen (FiO2), negative inspiratory pressure, and tidal volume of spontaneous ventilation. They compared its results against weaning predictors found in published literature [25].
As can be seen, the developed algorithms and protocols in literature have generally ignored some parameters such as hemodynamic stability and the psychological status of patients. It is not possible to start weaning without evaluating these parameters. The predictors used in the literature are based on mathematical formulas. However, it is known that weaning process requires human experience and knowledge instead of certain mathematical formulas. Thus, there is no weaning protocol broadly accepted by everyone. Fuzzy logic which is an expert knowledge-based system is more suitable to determine weaning process. In this paper, the goal is to develop a new knowledge-based weaning algorithm that eliminates the disadvantages of the current predictors. Twenty clinical scenarios were generated using Monte Carlo simulations and Gaussian distribution methods to test the performance of the developed algorithm. The developed knowledge-based algorithm and RSBI predictor were applied to the generated scenarios. In addition, a clinician evaluated each generated scenario independently according to the 16 parameters generated. The Studentʼs t test was used to show statistical differences between these results. According to the results obtained, there is no statistical difference for a 96.1% probability between the proposed methods and the clinician’s evaluation. However, there is a statistical difference at a probability of 25.2% between the proposed methods and RSBI and a statistical difference at a probability of 30.6% between the clinician’s evaluation and RSBI.
2 Methods
The system designed contains 16 parameters, which are easy to collect in practice, and use them to evaluate acid–base balance, adequate oxygenation, adequate pulmonary function, hemodynamic stability, and psychological status for weaning. Here, a knowledge-based weaning algorithm was designed using Fuzzy-LabVIEW software for decision making when weaning patients off MVs. To test and show effectiveness of the algorithm, clinical scenarios were generated using Monte Carlo simulations and Gaussian distribution methods for 16 vital parameters. These parameters are pH, carbon dioxide partial pressure (PaCO2), oxygen saturation (SpO2), PaO2/FiO2, PEEP, the oxygen saturation (SaO2), hemoglobin (Hb), maximum inspiratory pressure (MIP), tidal volume in spontaneous breathing (TVS), respiratory minute volume (VE), heart rate, the respiratory rate per minute (RPM), body temperature, mean arterial blood pressure (MAP), glasgow coma scale (GCS), and sleep level. Fuzzy logic-based algorithms were designed to predict weaning probability, and the performance of the algorithm was tested using a Monte Carlo simulation in which random values for fuzzy inputs were taken from Gaussian distributions [26]. The Gaussian distribution equations used in this algorithm are given in eqs. 1, 2 and 3,
where x is the new data, z is the standard normal distribution, μ is the mean value, σ2 is the variance random value, and σ is the standard deviation. The fuzzy system development was designed in LabVIEW software. The reason for preferring the LabVIEW program is its graphic-based structure and the ease with which a user can interface to it. The schematic outline of the developed algorithm is given in Fig. 1.
2.1 Acid–base balance
In the developed algorithm, pH, PaCO2, and SpO2 were used to determine the acid–base balance for patients. The input membership functions of PaCO2, SpO2, and pH are shown in Fig. 2. Twelve rules were created for the acid–base balance. The membership function and histogram for the acid–base balance are given in Fig. 3.
2.2 Adequate oxygenation
The four parameters of PaO2/FiO2, PEEP, SaO2, and Hb were used to determine the oxygenation levels of patients. The input membership functions for PaO2/FiO2 rate, PEEP, SaO2, and Hb are illustrated in Fig. 4, and Fig. 5 shows the output for adequate oxygenation and a system histogram.
2.3 Adequate pulmonary function
MIP, TVS, and VE parameters were chosen as fuzzy inputs for adequate pulmonary function. The membership functions for input are shown in Fig. 6, and the output membership function and system histogram are given in Fig. 7.
2.4 Hemodynamic stability
Heart rate, RPM, body temperature, and MAP were used to determine hemodynamic stability in the developed system. The membership functions of these four parameters are illustrated in Fig. 8, and membership function of hemodynamic stability and system histogram is shown in Fig. 9.
2.5 Psychological status of patient
The GCS and sleep level for the patient were chosen to determine the patient’s psychological status. The input membership functions for GCS and sleep level of the patient and the output membership function and system histogram are shown in Fig. 10.
2.6 Blood gas level and body function
Acid–base balance and adequate oxygenation were chosen to determine blood gas level percentage of the patient, and adequate pulmonary function and hemodynamic stability were used to evaluate body function percentage. Figure 11 shows the output membership function for blood gas levels and the output membership for body function.
The developed algorithm description involves many block diagrams and front panels. Some of these front panels and block diagrams are shown in Figs. 12, 13, 14, and 15.
Sixteen parameters are used to estimate the percentage probability for weaning of patients. Some of these parameters have been grouped together in the developed system; otherwise, the fuzzy system would have nearly 300,000 rules. Such unmanageable rule tables could not possibly be generated by an expert clinician. In the developed system, the numbers of total rules generated are 135. Grouping some related parameters together decreases the huge rule tables for the system. The final rule table for the weaning probability for a patient is given in Table 1. In the system, all the rules are created by an expert clinician.
3 Results
Twenty clinical scenarios were randomly generated using Monte Carlo simulations and Gaussian distribution methods to test the weaning probability. Each clinical scenario represented a patient in the system. Sixteen vital parameters for each scenario were used to make a decision about weaning in the developed predictor. The weaning probabilities obtained, RSBI results, and the percentages obtained from the clinician’s evaluations for each scenario are given in Table 2.
Figure 16 shows box and whisker plots for the developed algorithm, RSBI, and the clinician’s evaluation. In this figure, it can be shown that the developed algorithm performs better than the RSBI predictor’s results in terms of the median value and the upper and lower ends of the boxes. In addition, the developed algorithm produces results that are very close to the clinician’s evaluation according to the generated scenario.
The results show that the developed algorithm gave a different decision than RSBI for the 3rd, 6th, 7th, 11th, 13th, and 19th scenarios. In these scenarios, when the algorithm developed and clinician decided to start weaning process, it was not possible to wean the patient from MV according to the RSBI results. The developed algorithm’s results and the clinician’s evaluation were the same for those scenarios. The Student’s t test for p < 0.05 was applied to the percentage of weaning probability obtained, the RSBI result, and the percentage from clinician’s evaluation. The Student’s t test was used to determine statistical difference because it assesses whether the means of the three groups are statistically different from each other. This test is appropriate whenever a person wants to compare the means of two or more groups [27,28,29]. Equations 4, 5, and 6 were used to calculate the statistical difference.
where \( \overset{-}{x} \) is the arithmetic mean, S 2 is the variance, t is the test formula, x is the investigated group, and n is the number of data points in the group. According to the results from the t test, there is no statistical difference for 96.1% probability between the percentage of developed algorithm results and evaluations by the clinician. In addition, there are statistical differences at 25.2 and 30.6% between the percentages of the developed algorithm results and the RSBI results and between the RSBI results and the percentages from the clinician’s evaluation, respectively.
4 Discussion
In ICUs, clinicians try to promptly withdraw ventilator support when patients no longer need this support. This decreases complications, costs, and prolonged mechanical ventilation. Thus, many studies about weaning prediction algorithms and protocols have been carried out. Currently, there are many weaning protocols such as RSBI, PTI, and JWI. RSBI is a widely used protocol for weaning patients off MVs. Since these algorithms and protocols have generally ignored some parameters such as hemodynamic stability and the psychological status of patients, there is no weaning protocol broadly accepted by everyone. In this study, all the individual parameters used in literature were taken into account to estimate the weaning probability percentage for patients. Sixteen vital parameters were used to determine the weaning decision in the fuzzy systems. Since there were so many parameters used in this study, related parameters were grouped together to decrease the numbers of rule tables in the fuzzy system. Three parameters, pH, carbon dioxide partial pressure (PaCO2), and oxygen saturation (SpO2), were used to determine acid–base balance percentage. Four other parameters were used to determine the percentage for adequate oxygenation. These parameters were PaO2/FiO2 rate, the oxygen saturation (SaO2), the hemoglobin (Hb), and the positive end-expiratory pressure (PEEP). The three parameters, maximum inspiratory pressure (MIP), tidal volume in spontaneous breathing (TVS), and respiratory minute volume (VE), were used to determine the percentage required for adequate pulmonary function. In addition, heart rate, the respiratory rate per minute (RPM), the body temperature, and MAP were used to determine the percentage of hemodynamic stability. The Glasgow Coma Scale (GCS) and sleep level were used to evaluate a percentage for the psychological status of the patients. After this calculation, the acid–base balance and oxygenation determined the blood gas level. Adequate pulmonary function and hemodynamic stability were used to determine the level of body function. Then, the blood gas level, the level of body function, and psychological status of patients were used to determine the percentage probability to commence weaning. The all algorithms were implemented in LabVIEW software. In this study, the generated clinical scenarios were firstly applied to the developed algorithm and RSBI, and then, a clinician determined the weaning probability percentage for patients according to each scenario. According to the results obtained, the developed algorithm and the clinician’s evaluation gave nearly identical results, but RSBI failed to accurately estimate the weaning probability. The results show valuable proof of concept for the role of fuzzy logic in the management of the weaning process.
5 Conclusion
The weaning process is an important issue for patients and clinicians. If clinicians do not start the weaning process at the right time, it may result in prolonged mechanical ventilation, and it may cause some complications including infection, pneumonia, and barotraumas. Thus, the knowledge-based weaning process can determine the right time to start weaning, and it can be said that the developed algorithm may create a future research-driven protocol for weaning patients off the ventilators.
References
Bates JHT, Young MP (2003) Applying fuzzy logic to medical decision making in the intensive care unit. Am J Respir Crit Care Med 167:948–952
Esteban A, Alia O, Ibanez J et al (1994) Modes of mechanical ventilation and weaning. A national survey of Spanish hospitals. Chest 106:1188–1193
Eskandar N, Apostolakos MJ (2007) Weaning from mechanical ventilation. Crit Care Clin 23(2):263–274
MacIntyre RN, Chairman MD (2001) FCCP evidence-based guidelines for weaning and discontinuing ventilatory support. Chest 120(6_suppl):375S–396S. doi:10.1378/chest.120.6_suppl.375S
Esteban A, Frutos F, Tobin MJ (1995) A comparison of four methods of weaning patients from mechanical ventilation. N Engl J Med 332:345–350
Krishnan JA, Moore D, Robeson C, Rand CS, Fessler HE (2004) A prospective, controlled trial of a protocol-based strategy to discontinue mechanical ventilation. Respir Crit Care Med 169:673–678
Hsu JC, Chen YF, Du YC, Huang YF, Jiang X, Chen T (2012) Design of a clinical decision support for determining ventilator weaning using support vector machine. Int J Innov Comput Inf Control 8(1(B)):933–952
Brochard L, Rauss A, Benito S, Conti G, Mancebo J, Rekik N, Gasparetto A, Lemaire F (1994) Comparison of three methods of gradual withdrawal from ventilatory support during weaning from mechanical ventilation. Am J Respir Crit Care Med 150:896–903
Lozano-Zahonero S, Gottlieb D, Haberthür C, Guttmann J, Möller K (2011) Automated mechanical ventilation: adapting decision making to different disease states. Med Biol Eng Comput 49(3):349–358
Veiga J, Lopes AJ, Jansen JM, Melo PL (2012) Fluctuation analysis of respiratory impedance waveform in asthmatic patients: effect of airway obstruction. Med Biol Eng Comput 50(12):1249–1259
Koyuncu A, Yava A, Kurkluoglu M, Guler A, Demirkilic A (2011) Weaning from mechanical ventilation and nursing. Turkish J Thorac Cardiovasc Surg. doi:10.5606/tgkdc.dergisi.112
Chalmers E, Westover L, Jacob J, Donauer A, Zhao VH, Parent EC, Lou EH (2015) Predicting success or failure of brace treatment for adolescents with idiopathic scoliosis. Med Biol Eng Comput 53(10):1001–1009
Chouvarda IG, Babalis D, Papaioannou V, Maglaveras N, Georgopoulos D (2016) Multiparametric modeling of the ineffective efforts in assisted ventilation within an ICU. Med Biol Eng Comput 54(2–3):441–451
Guler H, Ata F (2014) Development of a fuzzy-based tidal volume algorithm for patients with respiratory distress. J Fac Eng Archit Gazi Univ 29(4):699–706
Bien MY, Lin YS, Shie HG, Yang YL, Shih CH, Wang JH, Cheng KC (2010) Rapid shallow breathing index and its predictive accuracy measured under five different ventilatory strategies in the same patient group. Chin J Physiol 53(1):1–10. doi:10.4077/CJP.2010.AMK013
Yang KL, Tobin MJ (1991) A prospective study of indexes predicting the outcome of trials of weaning from mechanical ventilation. N Engl J Med 324:1445–1450
Bien MY, Hseu SS, Yien HW, Kuo BIT, Lin YT, Wang JH, Kou YR (2004) Breathing pattern variability: a weaning predictor in postoperative patients recovering from systemic inflammatory response syndrome. Intensive Care Med 30:241–247
Vassilakopulos T, Zakynthinos S, Roussos C (1998) The tension time index and of respiratory frequency/tidal volüme ratio are the major pathophysiologic determinants weaning failure and success. Am J Respir Care Med 158:378–385
Bellemare F, Grasino A (1982) Effect of pressure and timing of contraction of the human diaphragm fatigue. J Appl Physiol 53:1190–1195
Butler R, Keenan SP, Inman KJ, Sibbald WJ, Block G (1999) Is there preferred technique for weaning the difficult to wean patient? A systematic rewiev of the literatüre. Crit Care Med 27:2331–2336
Ely EW et al (1996) Effect on the duration of mechanical ventilation of identifying patients capable of breathing spontaneously. N Engl J Med 335:1864–1869
M. Merouani et al. (2008) “Norepinephrine weaning in septic shock patients by closed loop control based on fuzzy logic”, Critical Care 12(6):R155
Nemoto T, Hatzakis GE, Thorpe CW, Olivenstein R, Dial S, Bates JHT (1999) Automatic control of pressure support mechanical ventilation using fuzzy logic. Am J Respir Crit Care Med 160(2):550–556
Hsu JC, Chen YF, Du YC, Huang YF, Jiang X, Chen T (2012) Design of a clinical decision support for determining ventilator weaning using support vector machine. Int J Innov Comput 8(1B):933–952
Kilic YA, Kilic I (2010) A novel fuzzy logic inference system for decision support in weaning from mechanical ventilation. J Med Syst 34(6):1089–1095
Wali WA, Al-Shamma’a AI, Hassan KH, Cullen JD (2012) Online genetic-ANFIS temperature control for advanced microwave biodiesel reactor. J Process Control 22:1256–1272
Guler H, Ata F (2014) The comparison of manual and LabVIEW-based fuzzy control on mechanical ventilation. Proc Inst Mech Eng H J Eng Med 228(9):916–925
Guler H, Ata F (2014) Design of a Fuzzy-Labview-Based Mechanical Ventilator. Comput Syst Sci Eng 29(3):219–229
Itah A, Ueno E, Tohno E, Kamma H, Takahashi H, Shiina T, Yamakawa M, Matsumuno T (2006) Bresast disease: clinical application of US Elastography for diagnosis. Radiology 239(2):341–350
Acknowledgments
This study is part of a project funded by FUBAP grant no. MF.13.21. The authors would like to thank the doctors working in ICU of Firat University Hospital for their invaluable evaluations.
Author information
Authors and Affiliations
Corresponding author
Rights and permissions
About this article
Cite this article
Guler, H., Kilic, U. The development of a novel knowledge-based weaning algorithm using pulmonary parameters: a simulation study. Med Biol Eng Comput 56, 373–384 (2018). https://doi.org/10.1007/s11517-017-1698-7
Received:
Accepted:
Published:
Issue Date:
DOI: https://doi.org/10.1007/s11517-017-1698-7