Journal of Healthcare Engineering

Journal of Healthcare Engineering / 2021 / Article

Research Article | Open Access

Volume 2021 |Article ID 7118711 | https://doi.org/10.1155/2021/7118711

Ibrahim M. Mehedi, Heidir S. M. Shah, Ubaid M. Al-Saggaf, Rachid Mansouri, Maamar Bettayeb, "Fuzzy PID Control for Respiratory Systems", Journal of Healthcare Engineering, vol. 2021, Article ID 7118711, 6 pages, 2021. https://doi.org/10.1155/2021/7118711

Fuzzy PID Control for Respiratory Systems

Academic Editor: Dilbag Singh
Received31 May 2021
Revised08 Jun 2021
Accepted12 Jun 2021
Published24 Jun 2021

Abstract

This paper presents the implementation of a fuzzy proportional integral derivative (FPID) control design to track the airway pressure during the mechanical ventilation process. A respiratory system is modeled as a combination of a blower-hose-patient system and a single compartmental lung system with nonlinear lung compliance. For comparison purposes, the classical PID controller is also designed and simulated on the same system. According to the proposed control strategy, the ventilator will provide airway flow that maintains the peak pressure below critical levels when there are unknown parameters of the patient’s hose leak and patient breathing effort. Results show that FPID is a better controller in the sense of quicker response, lower overshoot, and smaller tracking error. This provides valuable insight for the application of the proposed controller.

1. Introduction

The world has been shocked by the COVID-19 disease since its outbreak was first detected in Wuhan, China, in December 2019. It was then declared as a global pandemic by the World Health Organization (WHO) three months later, and at the time of writing, more than 174 million people worldwide have been infected with the disease with close to 4 million deaths recorded [1, 2]. The analysis shows that acute respiratory failure (ARF) is the leading cause of death [3], and one study found that 40 percent of critically ill COVID-19 patients developed acute respiratory distress syndrome (ARDS) which requires invasive incubation and ventilation [47]. Such therapies can be provided by an intensive care unit’s (ICU) device called a mechanical ventilator that is used to assist or replace the spontaneous breathing of a patient [8].

Mechanical ventilators were first used to assist in ventilation as early as the 18th century, but the first closed-loop system for mechanical ventilation did not become available until the 1950s. A mechanical ventilator used mechanical bellows and valves to cycle gas into the lungs, while a simple proportional (P) or proportional-integral (PI) controller was used [9]. Later, microprocessors were used to implement those controllers, and since then, there have been numerous closed-loop control proposals.

Closed-loop control in mechanical ventilators can be categorized based on how much the system interacts with patients. A class 1 control loop features no backward interaction from the patient to the device, whereas in the class 2 control loop, interaction between the patient and device is possible. In both classes, control signals are measured inside the device. A class 3 control loop is called physiological compensatory control loops due to the fact that it uses the physiological parameter as its control variable instead of the physical one [10]. In this paper, a pressure-based ventilation controller under the class 2 category is developed where the control objective is to track a set-point target airway pressure.

Having a reputation as the most reliable industrial controller, the PID controller has been used widely in mechanical ventilators. One of the earliest implementations of PID controller on a mechanical ventilator since the introduction of the microprocessor can be found in Ohlson works [11]. PID, however, has some limitations: it did not perform well when the system’s dynamics are not constant. An example of this is the relationship between ventilation and pressure. During ventilation, pressure must be adjusted according to the level of ventilation to prevent lung injury. To improve controller performance, Dai et al. [12] used two separate algorithms where the PD algorithm is used during the initial phase while PI algorithm will be activated when the output pressure started to be constant. Besides this, other techniques were also used to improve PID controller performance in the mechanical ventilation system including the use of optimization techniques called pressure evaluate correction module (PECM) [13], an automatic tuning of PID gains using particle swarm optimization (PSO) [14, 15] and repetitive control [8].

In this paper, we proposed a fuzzy PID (FPID) controller for airway pressure set-point tracking of mechanical ventilation. Fuzzy reasoning is used to evaluate the changes of the system’s dynamic through the measured set-point error and the rate of change of error which, in turn, updates the PID tuning parameters based on the rules set. The process of updating the tuning parameters is done in an online manner. The proposed controller is then simulated on a respiratory system model which consists of a blower-hose-patient system model and a single compartmental lung model which is obtained from the works of Hunnekens et al. [16] and Bates [17], respectively.

The fuzzy logic-based controller has been implemented in many applications including the longitudinal autopilot of an unmanned aerial vehicle (UAV) [18], controlling the speed of the conveyor system [19], simulating the tissue differentiation process [20], and induction motor control [21]. The primary purpose of this proposed controller is to enhance the performance of the PID controller on a respiratory system where some of its mechanical parameters are not constant, specifically, lung compliance, which can be increased or decreased according to the lung volume.

The rest of this paper is organized as follows: Section 2 presents the details of the mathematical model for the blower-hose-patient system and single lung compartmental model and also presents a brief explanation about lung compliance. The details of the proposed controller design are discussed in Section 3, while the simulation results, analysis, and comparison between PID and FPID are presented in Section 4. Section 5 concludes the work.

2. Mathematical Model of Respiratory Systems

The respiratory system model used in this paper is based on the blower-hose-patient system model presented in [16] with a single compartmental lung model obtained from [17]. As shown in Figure 1, the system consists of 3 main components: the blower which compresses ambient air to the desired pressure, (), the hose which connects the respiratory module to the patient, and the patient’s lung. The airway pressure is measured using a pressure sensor that is placed inside the module. The control objective is to track the measured pressure so that it follows the target set-point . Therefore, the error equation can be described as follows:

The air from the blower flows () through the hose with the resistance of into the lung () with the resistance of for inhalation process. The patient then exhales the air back to the hose where some of it will flow out of the leak () with the resistance of . The leak also prevents some of the exhaled air to be inhaled back by the patient in the next cycle. Thus, we can write the patient flow equation as follows:

Here, the blower flow, leak flow, and patient flow can be obtained by pressure differences over resistance as follows:

The lung pressure can be described by the following differential equation:

The lung dynamic can be written by combining (3)–(6) as follows:

Substituting and rewriting (3)–(5) in (2) results in the following relation for the airway pressure:

By substituting the airway pressure expression in (8) into the differential equation for the lung dynamic (6), the following may be achieved:

Now, equations (5), (7), and (8) can be arranged into a state-space form with as input, as outputs, and as state:where

A state-space model of the blower, however, can be expressed as follows:

By coupling expression in (10), (13), and the respiratory system (14), the general state-space model for the respiratory system is obtained:

Equation (6) shows that one of the factors that determine the dynamic of the lung pressure is a parameter called lung compliance (). It is a measure of the change in lung volume per change in transpulmonary pressure, or in simpler words, the ease at which the lung can expand under pressure. Clinical data show that lung compliance values are not constant all the time and sometimes increases or decreases according to the lung volumes. The value can, however, be constant when a certain transition region of lung volume is entered [22].

3. Controller Design

The structure of the PID controller is shown in Figure 2, where three parameters—proportional gain , integral gain , and derivative gain —are used to manually tune the controller. The output of the controller is the blower’s pressure which is given by the following equation:where

and in equations (17) and (18) is the integral and derivative time, respectively, while is the sampling time. Ciancone correlation technique with fine tuning is used to tune the PID parameters. The PID parameter’s value obtained is , , and .

In fuzzy PID controller whose structure is shown in Figure 3, a fuzzy inference system (FIS) is used to tune all the three PID parameters. The input to the FIS is the error and the rate of change of error , while the output is the PID parameters , , and , where their initial values are the same as the ones previously obtained via Ciancone correlation. Each of the inputs and outputs consists of 3 membership functions labeled as negative (N), zero (Z), and positive (P). The range of values for these functions was determined from the experience in manually tuning the PID controller. Figures 4 and 5 show the membership function used for the input and output of the FIS, respectively.

The value of PID parameters was determined based on the following 4 basic rules:(1)When is large and is negative, the system’s response is still far from the set-point through its heading towards the right direction. Therefore, must be large, while and should be small to quickly close in with the set-point.(2)When is negative and is large, the system’s response has surpassed the set-point and the error is rising. is set to large, while and are set to small in order to limit the overshoot.(3)When is small, and is positive, the system’s response is closing in steady-state. Therefore, should be big to reach steady-state quickly; however, to decrease the overshoot and avoid oscillation, should be added while should be diminished.(4)When is large and is positive, the system’s response is overshooting at the negative side. should be large to reduce the error, while and should also increase.

The complete fuzzy rules for the system are as shown in Tables 13.


NZP

NNZN
ZZZZ
PPZP


NZP

NNZN
ZZZN
PNZP


NZP

NNZN
ZZZN
PNZP

4. System’s Simulations and Results

The performances of the controller developed in Section 3 are evaluated by simulating it on the model described in Section 3. Integral time absolute error (ITAE) shown as follows is used to measure the set-point tracking performance of both controllers.

The maximum target pressure is set at , and the following system’s parameters were used in the simulation: , , and . First, we simulate the PID controller on two different lung compliance values, one with constant throughout the inhalation and exhalation process and the other as a function of lung volume as shown in Figure 6.

The results in Figure 7 show that it is more difficult to track the pressure set-point with the lung compliance value changing with lung volumes. Under this condition, the controller responses with more oscillation and higher overshoot as compared with when the PID controller is simulated in the model with constant lung compliance value.

Fuzzy PID controller is then simulated using the same parameters and the results as compared to the PID controller which is illustrated in Figure 8. Here, we can observe that FPID has a quicker response and lower overshoot. FPID controller is also better at tracking the set-point based on the calculated ITAE where FPID scored 7.467 while PID scored 8.293.

5. Conclusion

This paper has presented the simulation results of applying FPID control design in a pressure-based mechanical ventilation system. The respiratory system was modeled by combining the blower-hose-patient system with a single compartmental lung system with nonlinear lung compliance. It has been shown in the simulation results that the poor performance of the PID controller in tracking the airway pressure of the modeled system can be improved by applying fuzzy reasoning to tune the PID parameters online automatically. The performance was improved in terms of quicker response, lower overshoot, and small tracking error (ITAE). However, there is still some room for improvement. Further study on the number and type of membership function used in the FIS could improve the performance further.

Data Availability

No data were used to support this study.

Conflicts of Interest

The authors declare that they have no conflicts of interest.

Acknowledgments

This project was funded by the Deanship of Scientific Research (DSR) at King Abdulaziz University, Jeddah, under grant no. GCV19-3-1441. The authors, therefore, acknowledge with thanks DSR for technical and financial support.

References

  1. D. Singh, V. Kumar, and M. Kaur, “Densely connected convolutional networks-based COVID-19 screening model,” Applied Intelligence, vol. 51, no. 3, pp. 3044–3051, 2021. View at: Publisher Site | Google Scholar
  2. D. Singh, V. Kumar, V. Yadav, and M. Kaur, “Deep neural network-based screening model for COVID-19-infected patients using chest x-ray images,” International Journal of Pattern Recognition and Artificial Intelligence, vol. 35, no. 3, Article ID 2151004, 2021. View at: Publisher Site | Google Scholar
  3. K. Wang, Z. Qiu, J. Liu et al., “Analysis of the clinical characteristics of 77 COVID-19 deaths,” Scientific Reports, vol. 10, no. 1, pp. 1–11, 2020. View at: Publisher Site | Google Scholar
  4. M. Kaur, V. Kumar, V. Yadav et al., “Metaheuristic-based deep COVID-19 screening model from chest x-ray images,” Journal of Healthcare Engineering, vol. 2021, Article ID 8829829, 9 pages, 2021. View at: Publisher Site | Google Scholar
  5. World Health Organization, Middle East Respiratory Syndrome Coronavirus (Mers-cov), World Health Organization, Geneva, Switzerland, 2019.
  6. S. Singh, C. Prakash, and S. Ramakrishna, “Three-dimensional printing in the fight against novel virus COVID-19: technology helping society during an infectious disease pandemic,” Technology in Society, vol. 62, 2020. View at: Publisher Site | Google Scholar
  7. C. Wu, X. Chen, Y. Cai et al., “Risk factors associated with acute respiratory distress syndrome and death in patients with coronavirus disease 2019 pneumonia in Wuhan, China,” JAMA internal medicine, vol. 180, no. 7, pp. 934–943, 2020. View at: Publisher Site | Google Scholar
  8. J. Reinders, R. Verkade, B. Hunnekens, Nathan van de Wouw, and O. Tom, “Improving mechanical ventilation for patient care through repetitive control,” 2020, https://arxiv.org/abs/2004.00312. View at: Google Scholar
  9. M. Borrello, “Modeling and control of systems for critical care ventilation,” in Proceedings of the 2005, American Control Conference, pp. 2166–2180, IEEE, Portland, OR, USA, June 2005. View at: Google Scholar
  10. M. Walter and S. Leonhardt, “Control applications in artificial ventilation,” in Proceeding of the 2007 Mediterranean Conference on Control & Automation, pp. 1–6, IEEE, Athens, Greece, June 2007. View at: Publisher Site | Google Scholar
  11. K. B. Ohlson, D. R. Westenskow, and W. S. Jordan, “A microprocessor based feedback controller for mechanical ventilation,” Annals of Biomedical Engineering, vol. 10, no. 1, pp. 35–48, 1982. View at: Google Scholar
  12. M. Dai, Z. S. Zhang, Z. G. Liu, and D Fu Yin, “Control module design for a continuous positive airway pressure ventilator,” Applied Mechanics and Materials, vol. 321, pp. 1657–1661, 2013. View at: Google Scholar
  13. Y. Xu, L. Li, Y. Jia, and Y. Luo, “An optimized controller for bi-level positive airway pressure ventilator,” in Proceeding of the 2014 International Conference on Future Computer and Communication Engineering (ICFCCE 2014), Atlantis Press, Tianjin, China, March 2014. View at: Publisher Site | Google Scholar
  14. D. Acharya and D. K. Das, “Swarm optimization approach to design pid controller for artificially ventilated human respiratory system,” Computer Methods and Programs in Biomedicine, vol. 198, Article ID 105776, 2020. View at: Google Scholar
  15. S. Ghosh, P. Shivakumara, P. Roy, and T. Lu, “Graphology based handwritten character analysis for human behaviour identification,” CAAI Transactions on Intelligence Technology, vol. 5, no. 1, pp. 55–65, 2019. View at: Publisher Site | Google Scholar
  16. B. Hunnekens, S. Kamps, and N. Van De Wouw, “Variable-gain control for respiratory systems,” IEEE Transactions on Control Systems Technology, vol. 28, no. 1, pp. 163–171, 2018. View at: Google Scholar
  17. J. H. T. Bates, Lung Mechanics: An Inverse Modeling Approach, Cambridge University Press, Cambridge, UK, 2009.
  18. S. Yang, K. Li, and J. Shi, “Design and simulation of the longitudinal autopilot of uav based on self-adaptive fuzzy pid control,” in Proccedings of the 2009 International Conference on Computational Intelligence and Security, vol. 1, pp. 634–638, IEEE, Beijing, China, December 2009. View at: Publisher Site | Google Scholar
  19. M. H. Mohd Shah, M. F. Rahmat, K. A. Danapalasingam, and N. Abdul Wahab, “Plc based adaptive fuzzy pid speed control of dc belt conveyor system,” International Journal on Smart Sensing and Intelligent Systems, vol. 6, no. 3, 2013. View at: Google Scholar
  20. M. Wang and N. Yang, “Three-dimensional computational model simulating the fracture healing process with both biphasic poroelastic finite element analysis and fuzzy logic control,” Scientific Reports, vol. 8, no. 1, pp. 1–13, 2018. View at: Publisher Site | Google Scholar
  21. M. A. Hannan and J. A. AliM. S. Hossain Lipu et al., “Role of optimization algorithms based fuzzy controller in achieving induction motor performance enhancement,” Nature Communications, vol. 11, no. 1, pp. 1–11, 2020. View at: Google Scholar
  22. B. Jonson and C. Svantesson, “Elastic pressure–volume curves: what information do they convey?” Thorax, vol. 54, no. 1, pp. 82–87, 1999. View at: Google Scholar

Copyright © 2021 Ibrahim M. Mehedi et al. This is an open access article distributed under the Creative Commons Attribution License, which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited.

Related articles

No related content is available yet for this article.
 PDF Download Citation Citation
 Download other formatsMore
 Order printed copiesOrder
Views827
Downloads555
Citations

Related articles

No related content is available yet for this article.

Article of the Year Award: Outstanding research contributions of 2021, as selected by our Chief Editors. Read the winning articles.