Professional Documents
Culture Documents
Abstract
A modeling and simulation process based on the optimal chemical-mechanical respiratory control model, which
has been verified in earlier studies, is implemented on the LabVIEW platform. By utilizing the graphical programming
language of LabVIEW, real-time simulation and signal monitoring of respiratory control with multilayer functional
modules are realized. The fundamental hypothesis of the control model is that a total cost function can be formulated
and optimized to reflect the balance of a combined challenge due to the chemical and mechanical cost of breathing.
Based on the optimal model, the respiratory control simulator is developed as a minimization problem with respect to
the parameters of a neuromuscular pressure profile. The simulator provides monitoring windows to observe the optimal
respiratory waveforms of instantaneous pressure, airflow, and lung volume. Through the use of a virtual instrument, the
optimized breathing pattern, including breathing frequency, tidal volume, arterial CO2 pressure, alveolar minute
ventilation, initial lung volume, and partial pressure of arterial O2, can be monitored. Simulations of respiratory control
are performed under resting conditions, CO2 inhalation, muscular exercise, hypercapnia exercise, and various
mechanical loadings. Model behavior is predicted, examined, and compared with experimental data. The development
of the simulator is valuable for research of respiratory control and beneficial in biomedical engineering education of
respiratory physiology.
[2,3,5,12], simulation results demonstrated that many mole/l). However, because normoxia and normal acid-base
well-known steady-state in vivo responses in ventilation, conditions are assumed here, only the effects on PaCO2 are
breathing pattern, and wave shapes can be simultaneously considered. The gas exchanger equation describes the
predicted by the model. dependence of the arterial blood gas tension on the total
In the present study, a simulation strategy based on the ventilation and other disturbances:
mathematical modeling of optimal respiratory control is
863 V
implemented on the LabVIEW platform. The graphical PaCO2 PICO2 CO 2
(1)
(1 VD )
V E VT
programming language of NI LabVIEW was employed for
control and signal monitoring. With the implemented where PaCO2 is assumed to be identical to the mean alveolar
human-machine interface for the respiratory control simulator, PCO2. Equation (1) describes the steady-state effect of
the normal ventilatory responses to hypoxia and acidosis, ventilation on PaCO2 subject to any disturbances in the inhaled
mechanical loading, as well as breathing pattern responses to and metabolic production of CO2. To account for the changes
chemical and exercise stimulation can be conveniently in anatomic dead space with an airway caliber, the empirical
predicted [12]. Subject to any change in ventilatory stimuli or relation suggested by Gray et al. [14] is employed:
breathing mechanics, the wave shapes of instantaneous profiles
VT
can be observed. The model behavior is compared to VD 0.037 VC(1 ) (2)
8
experimental data and results from previous studies for
validation. where VC is the vital capacity (l) and VT is the tidal volume (l).
2.2 Chemoreceptors
2. Methods: mathematical modeling
As shown in Fig. 1, the feedback loop of the control model
The mathematical modeling of the optimal chemical- consists of two chemosensory structures, known as the central
mechanical respiratory control model is illustrated in the block and peripheral chemoreceptors, respectively. The total
diagram of Fig. 1, where the controller is driven by both chemical stimulation level of the controller (IO, impulses/s), the
chemical and neuro-mechanical feedback signals. This is sum of the central (IC, impulses/s) and peripheral
demonstrated by the coupling of chemical cost JC and chemoreceptor stimulus (IP, impulses/s), is assumed to be a
mechanical cost JM, which are represented by the quadratic linear function of PaCO2 [15]:
coupler of the chemical feedback signal and the logarithm IO IC IP (PaCO2 ) (3)
coupler of the work rate, respectively. The fundamental
hypothesis of the model is that a total cost function can be where is the sensitivity of the chemoreceptors and is the
formulated to reflect the balance of a combined challenge due threshold of the chemoreceptor (impulses/s), which is set
to the chemical and mechanical cost of breathing [12]. empirically. In addition to the chemical feedback, the optimal
Respiratory control is modeled as a closed-loop feedback controller also assumes that certain mechanical feedback
system comprising four major functional blocks: the plant, the signals may also influence the control of ventilation. Although
feedback path, the controller, and the effector. The the mechanical feedback signals may be mediated by various
mathematical descriptions of the four functional blocks are mechanoreceptors in the respiratory system or by corollary
detailed in previous studies [2,3] and are outlined briefly discharge from respiratory motoneurons, a fundamental
below. assumption in the model is that they may also influence the
control of ventilation by way of an optimal controller that
Logarithmic Work Rate integrates the chemical and mechanical feedbacks. However,
Coupler Index
the effects are implicit in the optimization criterion, which
Optimal Neuro-Mechanical Gas
includes a mechanical component.
Σ Controller Effector Exchanger
2.3 Neuro-mechanical effector
Quadratic
Coupler
Chemoreceptors
From the viewpoint of physiology, it is well known that
the instantaneous airflow is controlled by the neural impulses
Figure 1. Mathematical model of the optimal chemical-mechanical
from the respiratory center (controller). The neuro-mechanical
respiratory control.
effector, which relates the neural respiratory output to the
2.1 Gas exchanger resultant mechanical airflow, is required to optimize the neural
input to the respiratory muscles for the optimization of the
The role of the plant can be taken by the lung, where gas ventilatory airflow ( V ˙ (t), l/min). Such effector can be described
exchange occurs, in the human respiratory system. The plant by the electrical RC model of Fig. 2 based on a
describes the events of the pulmonary exchange subject to the lumped-parameter model proposed by Younes and Riddle
control signal V (total ventilation in one minute, l/min),
E
[16,17] for the relation between respiratory neural and
disturbances in the inhaled and metabolic CO2 and O2 mechanical outputs. In this model, the equation of motion is
(PICO2/PIO2, Torr, V CO2 /V O2 , l/min), and lactic acidosis. The given by the following dynamic equation:
system's outputs are the pressures of arterial CO2 and O2 ˙ (t) R V(t) E
P(t) V (4)
(PaCO2/PaO2 , Torr), and [H+]a (arterial H-ion concentration, rs rs
Simulation of Respiratory Control 53
˙ 1
T
tt1 W ˙ (t) dt
P(t) V
E (12)
P(t) P(t1 ) e
t1 t t1 +t2 (6) T Ti
calculation is completed and the optimum is reached. The proceeds based on the predetermined weightings of the neural
optimized variables, a0, a1, a2, t1, t2, and , are displayed in the network.
middle of the window when “Display Optimized Results” is The simulation results can be observed through the
clicked. The obtained optimized parameters can then be applied SIGNAL MONITORING OF CURRENT SIMULATION
to compose the isometric pressure profile. The resultant panel. Three respiratory waveforms, including neuromuscular
instantaneous waveforms of airflow and lung volume can also , and lung volume V(t), and
driving pressure P(t), airflow V(t)
be derived based on Eqs. (13)~(16). respiratory pattern, including f, PaCO2, VT, PaO2, V CO , V O , VO,
2 2
TI, TE, and TI/T, are shown and monitored in real-time through
the use of virtual instruments of LabVIEW. Based on the
derived pattern, some well-known ventilation responses can be
composed for further analysis with the experimental data.
developing human-machine interface. The expandable Plug-ins further inspect the exercise response to varying degrees of
and GUI interface also enable the simulator to be implemented hypercapnia and eucapnia (PaCO2 = 40 Torr and higher,
on web-base manner. When the signal acquisition and respectively) [12-19].
processing become major concern as the simulator develops The simulation of CO2 inhalation can be performed with
into a controller for mechanical ventilation device, less effort is various levels of CO2 concentration. In the resting state, PICO2 is
needed with embedded systems. However, compatibility set to be 0%. The inhaled gas can be regulated to a higher
problems have also been encountered as to integrate various concentration of CO2 (e.g., PICO2 = 3%, 5%, or 7%).
software tools into a newly released version of LabVIEW.
4. Discussion
The resultant waveforms can further be simulated and Table 2. Simulation results under resistive and elastic loaded breathing.
monitored at varying levels of CO2 inhalation and exercise. VT TI TE TI/T F ˙
V E
A A0.5
Figure 7 shows three instantaneous waveforms, pressure P(t), l sec sec %T bpm l/min cmH2O %A
airflow rate V(t) , and volume V(t), from top to bottom,
Control 0.60 0.035 0.043 0.46 12.76 7.60 14.38 54.74
respectively, at various levels of exercise CO2 output IRL 0.66 0.046 0.047 0.51 10.78 7.12 15.91 68.73
( V˙ CO = 0.2, 0.6, 1.0) and inhale4d CO2 (PICO2 = 2, 3, 5, 7%). %change 10.95 30.79 8.14 11.43 -15.54 -6.30 10.65 25.56
2
ERL 0.70 0.046 0.058 0.45 9.671 6.81 16.72 58.14
The hypercapnic ventilatory response to CO2 inhalation %change 18.16 29.66 33.95 -2.13 -24.23 -10.47 16.27 6.20
and isocapnic response during exercise can be fulfilled with the CEL 0.58 0.043 0.032 0.58 13.47 7.77 19.67 51.02
data stored through the output listings panel of the simulator. %change -3.19 20.62 -26.74 26.12 5.60 2.23 36.79 -6.80
VT, tidal volume; TI and TE, duration of mechanical inspiration and expiration,
Figure 8 shows four well-recognized ventilatory responses ˙ , minute ventilation; A,
respectively; TI/T, duty cycle; F, respiratory frequency; VE
based on the simulation results from the simulator with amplitude of driving pressure at end inspiration; A0.5, amplitude of driving
increased CO2 and exercise input. The relationships of V ˙ V pressure at 50% TI.
E T
(lower left of Fig. 8) are approximately linear with slightly
˙ T T (lower right of (1) Inspiratory Resistive Assistance (IRA): Respiratory-
different slopes. The relationships of V E i
mechanical factors [20] have been postulated to provide a
Fig. 8) which predict an increase in the duty cycle with
further source of control for ventilatory response to
ventilation are inconsistent with experimental data, where the
moderate exercise. Experimental studies on the influence of
duty cycle is often quite variable and tends to vary between 0.4
inspiratory assistance on respiratory control have been
and 0.6 over a similar range of ventilation levels [12,14,18,19].
conducted [20,21]. To examine the role of the normal
inspiratory resistive load in the regulation of respiratory
motor output in resting conscious humans, six healthy men
ranging from 20 to 31 years of age were studied in [20].
The inspiratory resistive assistance with a magnitude of
R = -3 cm-H2Ol-1s was performed through an
experimental device to make the mouth pressure
proportional to inspiratory flow. The simulation of IRA can
be performed by decreasing Rin of the respiratory
parameters from no load (NL), which was set to be
3.02 cm-H2Ol-1s [22].
(2) Inspiratory Resistive Loading (IRL): Although there are
numerous experimental reports on respiratory responses to
mechanical loads [20-22], the modeling of this aspect of
breathing has received relatively little attention. To identify
the neural changes responsible for ventilatory
compensation, Im Hof et al. [23] calculated the respiratory
driving pressure waveform during steady-state unloaded
and loaded breathing (R = 8.5 cm-H2Ol-1s) in eight
conscious normal subjects. A closed breathing system was
utilized in the experiment of [23] with a resistance of
unloaded breathing of <1 cm-H2Ol-1s. By manual control,
Figure 8. Predicted total ventilation V E versus arterial CO2 pressure
a nonlinear resistance of ~8.5 cm-H2Ol-1s was added to the
PaCO2 (upper left), breathing frequency F (upper right), tidal
volume VT (lower left), and duty cycle Ti/T (lower right) inspiratory phase of breathing for experiments. The
during CO2 inhalation (PICO2 = 0, 2~7%) and exercise simulation of IRL can be performed by increasing Rin
( V CO = 0.2~1.0).
2 ( = 8.00 cm-H2Ol-1s) [24] from control (NL).
(3) Expiratory Resistive Loading (ERL): The simulations of
4.2 Simulations of Respiratory Mechanical Assistance/Loading
ERL are performed by increasing Rex ( = 8.00 cm-H2Ol-1s)
It is assumed that the parameters Rrs and Ers represent the from control (NL) with Rin at no load [22,25,26]. Poon et
active resistance and active elastance, respectively, which al. [22] examined the steady-state effects of expiratory
include the effective impedance of the respiratory muscles. resistive loading (ERL: R = 8.00 cm-H2Ol-1s) on the time
Under the resting condition, the inspiratory and expiratory course of inspiratory and postinspiratory muscle activities
resistances (Rin and Rex) can be adjusted from the no load and ventilatory pattern during quiet breathing from five
condition to the intended values independently. The effect of conscious human subjects. The experimental data of [22]
continuous elastic loading can be determined by changing the are summarized in Table 1 for comparison with simulation
lung elastance (Ers) from the resting mechanics. To further results. The data of loaded breathing are not directly
examine the simulation results (Table 2), experimental data on available in [22] except for minute ventilation. However,
spirometric and driving pressure variables under resistive and the percentage changes in patterns during ERL relative to
elastic loaded breathing are shown in Table 1. the mean control can be used for comparisons.
58 J. Med. Biol. Eng., Vol. 32 No. 1 2012
(4) Continuous Resistive Loading (CRL): To perform (simulated). The shape index A0.5 represents the percent of
continuous resistive loading, the inspiratory and expiratory maximum amplitude of inspiratory pressure reached at 50% of
airway resistances (Rin and Rex) are increased to the TI. Thus, a value of > 50 indicates that the rising phase is
intended levels of loading [27]. To examine the effect of concave to the time axis. In comparison with those of NL, it was
continuous resistive loading on variational activity of also found that the absolute rate of decline in pressure was faster
breathing, Brack et al. [27] studied 18 healthy subjects (upper left of Fig. 9) since the amplitude at the onset of decline
breathing at rest and with continuous inspiratory resistive (A) was higher during IRL. During the expiratory phase, both
loads of 3 and 6 cm-H2Ol-1s applied randomly for 1 hour the pressure and airflow profiles for IRL are similar to those
each through flow resistors (Model 7100R; Hans Rudolph, under no load (NL). With the ERL, the effects of airflow rate
Inc., Kansas City, MO). Values of the breath components and lung volume on shapes of the rising phase and declining
during rest and loaded breathing are partly summarized in phase of driving pressure are not significant. The effects of CEL
Table 1. on driving pressure are different from those of resistive loading
(5) Continuous Elastic Loading (CEL): The elastic loading in that the rate of inspiratory activity is increased, and
simulation can be employed to evaluate the effects of consequently a higher peak (A) is attained. It was also found
abnormal respiratory mechanics and neuromuscular drive that the airflow profile during the inspiratory phase becomes
on the various components of elastic load compensation. rectangular in shape, in contrast to the descending waveforms
The nominal parameter value for the total (active) elastance for IRL and ERL. The resultant profiles of various mechanical
was set to 21.9 cm-H2O/l for no load [22] and loads are mostly consistent with experimental data.
31.9 cm-H2O/l for loaded [28-30]. For comparison with
experimental data, the ventilatory responses with and
without elastic loading (E = 14.0 cm-H2O/l) measured in
eight healthy subjects [28] are listed in Table 1. The elastic
load was provided by an 80-liter metal drum, filled with
polystyrene chips to ensure isothermal conditions in the
contained gas. The experiments in [28] were performed
under progressive cycle exercise on a Bodyguard cycle
ergometer. However, only the ventilatory and gas exchange
data at rest (mean V˙ CO = 0.3 0.07 for control, and
2
Table 1. The increases of TE for IRL are not significant in either FORTRAN, and IMSL) into a newly released version of
simulation (8.14%) or experimental data (5.97%). However, TE LabVIEW.
for ERL exhibits a more substantial increase in both Table 1 and The model behavior of human respiratory control can be
Table 2. Both IRL and ERL cause increases in VT (IRL: verified using the proposed real-time simulator and signal
10.95%; ERL: 18.16%), but CEL causes a slight decrease monitoring system. With the use of the simulator, the optimal
(-3.19%) in VT. The variations of VT in Table 2 are also chemical-mechanical respiratory control model, which is the
consistent with the experimental data shown in hypothetical basis of the simulator, can be further explored and
Table 1. All mechanical loadings result in an increase in TI, and improved:
all but CEL result in increases in VT and TE, and a (1) In addition to some basic test conditions examined here
corresponding decrease in f. These results are consistent with (exercise, inhaled CO2 responses, and loaded breathings),
the values in Table 2. simulations can also be performed subject to certain respiratory
conditions, such as hypercapnic exercise, external dead space,
and loaded breathing in hypercapnia and exercise. The
simulation results can be employed to verify a model that
agrees with some respiratory phenomena such as exercise
hypernea, post-inspiratory (post-inflow) inspiratory activity for
mechanical loading, respiratory muscle fatigue, and muscle
weakness [23,29-37].
(2) In the modeling of the respiratory control employed in the
simulator, the respiratory mechanics, including airway
resistance and lung elastance, were defined to be linear and
were set as 3.02 cm-H2Ol-1s and 21.9 cm-H2O/l [22],
respectively. The inclusion of nonlinearities in Rrs and Ers may
further improve the performance of the model [13].
Figure 10. Changes in respiratory breathing pattern under various types
(3) Several performance indices were previously proposed to
of mechanical load relative to control (no load). VT: tidal
volume; TI , TE: inspiratory time, and expiratory time; Ti/T: either optimize the respiratory patterns or optimize the airflow
duty cycle; F: breathing frequency; V : minute ventilation; profile. Some common indices include the respiratory work
E
A: peak amplitude of pressure; A0.5, amplitude of driving rate, the inspiratory pressure-time integral, and volume
pressure at 50% TI. acceleration. The inclusion of a term corresponding to the
volume acceleration to prevent lung rupture may be helpful to
5. Conclusions fine tune the optimal airflow predicted by the model.
(4) In the current model, the inspiratory activity of the pressure
In the optimal chemical-mechanical respiratory model, the profile was modeled as a quadratic function. It can further be
key hypothesis interprets the respiratory controller in a generalized by several linear and nonlinear functions such as
different way. A unified prediction of exercise and chemical cubic and power functions. The expiratory phase was modeled
responses was shown entirely in terms of conventional as an exponential fall from the peak amplitude at the end of
feedback-mechanisms instead of a separate stimulus signal, inspiration. No expiratory muscle activity was included. It is
which has never been clearly demonstrated. Based on this expected that inclusion of expiratory drive may improve the
model, a simulation process was constructed and a human accuracy of model predictions. The optimized pressure profile
respiratory control simulator was implemented on the can be obtained through the simulation and the results can be
LabVIEW platform. By utilizing the graphical programming compared with experimental data for further model
language of LabVIEW, the control strategy and signal modifications.
monitoring can be observed in real-time. The simulator was With the help of the implemented simulator, a
designed to have functional modules with an expandable comparative study of respiratory control models can be
human-machine interface. In comparison with an earlier conducted [38]. The proposed model and simulator can be
version implemented on Matlab platform, the virtual applied to the simulation of a mechanical ventilation device. It
instrumentation of LabVIEW appears more convenient and is also possible to establish a mechanical ventilation system
effective for developing human-machine interface of the with the optimized respiratory waveforms and breathing pattern
simulator. The expandable Plug-ins and GUI interface also obtained from the simulator. The clinical application of the
enable the simulator to further be implemented on web-base control model and simulator to human respiratory care is the
manner for e-learning without the need of installing LabVIEW ultimate goal of this study.
on user end. When the signal acquisition and processing
become major concern as the simulator develops into a Acknowledgements
controller for mechanical ventilation device, less effort would
be spent in LabVIEW platform with available embedded This study was supported by the National Science
systems. Nevertheless, compatibility problems have also been Council, Taiwan, under grant NSC 97-2511-S-035-002.
encountered as to integrate various software tools (C,
60 J. Med. Biol. Eng., Vol. 32 No. 1 2012