Introduction

Acute respiratory distress syndrome (ARDS) is characterized by dysfunction of the alveoli-capillary unit. Activation of inflammatory mediators leads to protein-rich edema and surfactant dysfunction, which results in development of atelectasis with right-to-left pulmonary shunt leading to hypercapnia and hypoxia. At the same time, remodeling of damaged lung tissue starts, which also leads to a rise in pulmonary arterial pressure and a decrease in pulmonary compliance.

Treatment of ARDS is mainly based on lung-protective ventilation. Various ventilation techniques can be employed; for instance, application of a high positive end-expiratory pressure (PEEP) to prevent collapse of alveoli at the end of expiration and to improve oxygenation (Ashbaugh et al. 1967), high-frequency ventilation (Krishnan and Brower 2000), or the ARDSnet protocol with low tidal volume to reduce mortality rate compared with conventional ventilation (NHLBI 2000).

One side-effect of ventilation with low tidal volumes is possible retention of \(\mathrm{CO}_2.\) Although this ‘permissive hypercapnia’ is a common approach in the treatment of ARDS (Amato et al. 1998), higher levels of \(\mathrm{PaCO}_2\) can lead to respiratory acidosis with deleterious effects on hemodynamic stability (Thorens et al. 1996; Beitler et al. 2013). Massive hypercapnia can lead to severe organ dysfunction (Hickling and Joyce 1995). Most important, hypercapnia increases intracranial pressure (Marx et al. 1973), which leads to an impairment of cerebral perfusion pressure and can augment risk for cerebrovascular complications. Additionally, hypercapnia increases pulmonary vasoconstriction (Dorrington and Talbot 2004), which leads to right heart failure (Mekontso et al. 2009) due to pulmonary hypertension. Furthermore, there is an evidence that hypercapnia has adverse effects on the developing retina in children (Bauer 1982).

Therefore, effective elimination of \(\mathrm{CO}_2\) should be another goal in the treatment of ARDS. \(\mathrm{CO}_2\) is typically produced by cell metabolism and dissolves in blood circulation. During ventilation, blood with a high \(\mathrm{CO}_2\) concentration is transported to the lung for gas exchange and \(\mathrm{CO}_2\) is eliminated during expiration. The flow of \(\mathrm{CO}_2\) exhaled in ml/min is referred to as \(\mathrm{CO}_2\) elimination and \(\mathrm{CO}_2\) can be only removed by the ventilation process. The respiratory settings, which affect \(\mathrm{CO}_2\) elimination, are respiratory rate (RR), inspiratory time, peak inspiratory pressure (PIP) and PEEP.

From a historical perspective, \(\mathrm{CO}_2\) elimination started to be investigated after methods and means for breath-by-breath analysis became available (Lipsky and Angelone 1967). Slutsky et al. (1981) reported that \(\mathrm{CO}_2\) elimination increased monotonically with RR at constant tidal volume (V T) and the model prediction for \(\mathrm{CO}_2\) elimination based on paralyzed dogs depended on a nonlinear relationship between RR and \(V_{\text{T}} (\dot{V}_{{\text{CO}}_{2}}= k \cdot {\text{RR}}^a \cdot V_{\text{T}}^b,\) k, a and c are constants obtained by multiple regression).

Lachmann et al. (1989) examined and reported that \(\mathrm{CO}_2\) elimination could be improved by adapting the I:E ratio in patients with ARDS. For anesthetized children, Lindahl et al. (1989) computed \(\mathrm{CO}_2\) elimination based on a weight basis, which is \(\dot{V}_{{\text{CO}}_{2}} = -1.25 \cdot X+13 \cdot X^2,\) where X = log e (bodyweight, kg).

Larsson (1992) suggested that \(\mathrm{CO}_2\) elimination can be improved by minimization of apparatus dead space. In 1994, Saidel and Chang (1994) showed that \(\mathrm{PaCO}_2\) can be expressed in terms of first-order linear differential equation with exogenous input of metabolic rate. For clinical application, this implies that \(\mathrm{CO}_2\) elimination should be adjusted to cope with the metabolic rate for ventilation at steady state.

Taskar et al. (1995) examined the dynamics of \(\mathrm{CO}_2\) elimination after ventilation resetting in forty-four patients. They found that the relative change in \(\mathrm{CO}_2\) elimination was proportional to the relative change in V T. Breen and Mazumdar (1996) investigated the effect of PEEP on \(\mathrm{CO}_2\) elimination and showed that high PEEP increases anatomical dead space in anesthetized dogs and decreases pulmonary \(\mathrm{CO}_2\) elimination per breath. Similar results were confirmed by Tusman et al. (2010) in anesthetized pigs.

Devaquet et al. (2008) found that a postinspiratory pause has a significant influence on \(\mathrm{CO}_2\) elimination for patients with acute lung injury (ALI). A recent study (Aboab et al. 2012) pointed out that an inspiratory flow pattern with long mean distribution time and high end-inspiratory flow enhances \(\mathrm{CO}_2\) elimination. \(\mathrm{CO}_2\) elimination can be used not only for the treatment of hypercapnia, but also for the assessment of pulmonary perfusion (Fletcher 1986).

In summary, the previous contributions of \(\mathrm{CO}_2\) elimination were mainly associated with scientific findings or the techniques of ventilation for enhancing \(\mathrm{CO}_2\) elimination. Minimal mathematical models for \(\mathrm{CO}_2\) elimination were introduced.

The aim of this work is, therefore, to introduce a mathematical model of \(\mathrm{CO}_2\) elimination based on ventilation variables for application in patients with ARDS to evaluate \(\mathrm{CO}_2\) removal.

Materials and methods

Hardware configuration

The open-loop system consists of a medical guide Panel PC for data collection (PPC-154T, Advantech Co., Ltd, Taipei, Taiwan), a mechanical ventilator (EVITA XL, Draeger AG, Luebeck, Germany) and several measuring devices including a spectrophotometer (CeVOX, Pulsion Medical Systems SE, Munich, Germany) to measure arterial oxygen saturation (\(\mathrm{SaO}_2\)), a hemodynamic monitor (Sirecust 960, Siemens AG, Munich, Germany), and an integrated sensor called Capno Plus (Option for EVITA XL, Draeger AG, Luebeck, Germany), which is used to measure \(\mathrm{CO}_2\) for further computation of breath-by-breath \(\mathrm{CO}_2\) elimination.

Data on airway flow and percentage of \(\mathrm{CO}_2\) concentration are transferred from the ventilator to the Panel PC by a serial Medibus connection. The computation is carried out with a sampling time of 8 ms for monitoring of breath-by-breath \(\mathrm{CO}_2\) elimination. \(\mathrm{CO}_2\) elimination is computed by Eq. (1) (Breen et al. 1992) during expiration using Labview software (Version 7.1, National Instruments).

$$\dot{V}_{{\text{CO}}_{2}}=\frac{\text{RR}}{60} \times \int\limits_{T_{\text{in}}}^{T_{\text{in}}+T_{\text{ex}}} \dot{V}(t) \times \frac{[{\text{CO}}_{2}(t)]}{100} {\text{d}}t$$
(1)

where \(\dot{V}_{{\text{CO}}_{2}}\) is the \(\mathrm{CO}_2\) elimination (ml/min), RR is the respiratory rate (bpm), \(\dot{V}(t)\) is the airway flow (ml/min), [CO2(t)] is the measured percent of carbon dioxide concentration (%), T in is the inspiratory time (s) and T ex is the expiratory time (s).

Single-compartment modeling

The respiratory system is simplified using a single-compartment model (Marini et al. 1989; Leonhardt et al. 1998) associated with an electrical circuit (Fig. 1). This simple model provides a practical solution for routine clinical application with no need for additional sensors inserted in the lung compartments. The model assumes normal ventilation, with no hysteresis, and no opening and closing of airspace in the lung during the respiratory cycle. The model variables are defined as follows.

Fig. 1
figure 1

Simplified electrical circuit analogous to lung mechanics

Airway resistances (R in and R ex) represent the friction coefficient of air flow characterizing the endotracheal tube, trachea, bronchi and bronchioles. For bronchioles, millions of alveolar sacs are modeled as one capacitor (C rs) characterizing the capacity of lung volume storage in lung mechanics. Additionally, a positive alveolar pressure at end-expiration (so-called autoPEEP) is incorporated in the model. Thus, autoPEEP is the pressure remaining in the lung at end-expiration, caused by gas held in the alveoli (Mughal et al. 2005).

p aw denotes the airway pressure applied to the subject in a pressure-controlled mode. The airway pressure (p aw) is considered to have a driving pressure \(\Updelta P\) during inspiratory time (T in) and zero mbar during expiratory time (T ex). In the model, a switching element is used to separate the two resistance components (R in and R ex) for inspiration and expiration, respectively.

The RR is equivalent to \(\frac{60}{T_{\text{in}}+T_{\text{ex}}},\) percent inspiratory time (%TI) is defined as \(\frac{100 \times T_{\text{in}}}{T_{\text{in}}+T_{\text{ex}}}\) and C rs denotes lung compliance:

$$C_{\text{rs}}=\frac{V_{\text{T}}}{\Updelta P-{\text{autoPEEP}}(T_{\text{ex}})}$$
(2)

where V T represents tidal volume and autoPEEP is a function of expiratory time (T ex) or RR and %TI. Applying Kirchhoff’s voltage law in the circuit model during respiration, this yields Eqs. (3) and (4) for \(\dot{V}>0\) and \(\dot{V}<0\) corresponding to inspiration and expiration, respectively.

$$p_{\text{aw}}(t)=R_{\text{in}} \times \dot{V}(t)+ \frac{V(t)}{C_{\text{rs}}}+{\text{autoPEEP}}(T_{\text{ex}})$$
(3)
$$p_{\text{aw}}(t)=R_{\text{ex}} \times \dot{V}(t)+ \frac{V(t)}{C_{\text{rs}}}+{\text{autoPEEP}}(T_{\text{ex}})$$
(4)

C rsR in and R ex are assumed to be constant and the specified inspired tidal volume can be solved using the Laplace transform with an initial condition V i (0) = 0. An ideal curve of pressure-controlled ventilation is shown in Fig. 2.

Fig. 2
figure 2

Ideal curve of pressure-controlled ventilation for a single-compartment lung

Note that due to the pressure dependency of alveolar opening and closing, the functional residual capacity [FRC(PEEP)] (Webster 2009) is a function of PEEP itself. AutoPEEP causes an end-expiratory volume (V ex), which is an additional volume above the underlying FRC. Therefore, the maximum lung volume during the tidal cycle can be expressed as

$$V_{\text{max}}={\text{FRC}}+V_{\text{ex}}+V_{\text{T}}$$
(5)

Equation (5) implies that lung volume is fixed to a certain value during ventilation in pressure-controlled mode. The total PEEP (PEEPT) corresponds to the alveolar pressure at the end of expiration and can be expressed as

$${\text{PEEP}}_{\text{T}}={\text{PEEP}}+{\text{autoPEEP}}({\text{RR}},\%{\text{TI}})$$
(6)

To compute V T, Eqs. (3) and (4) allow estimation of tidal volume; mathematical proof is presented in the "Appendix I". Tidal volume can be solved as provided in Eq. (7), which is a nonlinear function of the ventilation settings and lung mechanics parameters.

$$\tilde{V}_{\text{T}}=C_{\text{rs}} \Updelta P \times \frac{\left(1-e^{\frac{-60 \times \%{\text{TI}}/100}{{R}_{\text{in}}C_{\text{rs}} \times {\text{RR}}}}\right) \times \left(1-e^{\frac{-60 \times (1-\%{\text{TI}}/100)}{{R}_{\text{ex}}C_{\text{rs}} \times {\text{RR}}}}\right)}{1-e^{\frac{-60 \times \%{\text{TI}}/100}{R_{\text{in}}C_{\text{rs}} \times RR}} \times e^{\frac{-60 \times (1-\%{\text{TI}}/100)}{R_{\text{ex}}C_{\text{rs}} \times {\text{RR}}}}}$$
(7)

The parameters RR and %TI are two independent temporal variables to shape tidal volume. They are incorporated with the lung mechanics parameters, forming a nonlinear exponential function as a correcting factor to \(C_{\text{rs}}\Updelta P.\) Tidal volume can be estimated using this mathematical model.

Estimation of airway dead space

Airway dead space (V D) is the volume of conducting airway that does not participate in gas exchange consisting of trachea to the bronchioles. Fletcher and Jonson (1984) divided the response of \(\mathrm{CO}_2\) from the volumetric capnogram into three distinct phases (Fig. 3). Phase I represents carbon dioxide-free expiration, i.e., there is no \(\mathrm{CO}_2\) concentration during expiration. Phase II appears as an S-shape increasing upwards, which is the mixing phase of the terminal gas between the conducting airways and alveolar gas. Phase III is the ‘alveolar plateau’ representing gas from the alveoli (Girard and Bernard 2007).

Fig. 3
figure 3

Volumetric capnogram from single-breath CO2 analysis from an animal experiment

The dead space ratio (\(\tilde{V}_{\text{D}}/V_{\text{T}}\)) can be estimated from the concept of efficiency (Sinha et al. 2011; Fletcher et al. 1981), derived from the volumetric capnogram (Fig. 3). This method is closely related to Bohr’s concept, which is practical for clinical use. The shaded area quantified with X is the volume of \(\mathrm{CO}_2\) gathering in dead space from a single breath, and the area ABCDA hypothetically describes the effective volume of gas that can be eliminated in a single breath.

$$\tilde{V}_{\text{D}} = \frac{X}{\text{ABCDA}} \times V_{\text{T}}.$$
(8)

Mathematical model of \(\mathrm{CO}_2\) elimination

In Fig. 4, the airway dead space lies at a certain point in Phase II and is represented by V D. A 1 is the amount of exhaled \(\mathrm{CO}_2\) (in ml) obtained from the dead space. When the amount of \(\mathrm{CO}_2\) from A 1 is theoretically mapped to A 2, the perfect pulse of \(\mathrm{CO}_2\) can be obtained with a delay caused by airway dead space. With this concept, the amount of \(\mathrm{CO}_2\) during expiration can be computed by multiplying end-tidal \(\mathrm{CO}_2\) in percent (\([\mathrm{etCO}_2]\)) and the volume difference between tidal volume and airway dead space.

Fig. 4
figure 4

Volumetric capnogram for estimation of CO2 elimination

Minute alveolar ventilation (\(\dot{V}_{\text{A}}\)) (ml/min) can be estimated from Eq. (9), where \(\tilde{V}_{\text{D}}\) denotes the estimated dead space obtained from the volumetric capnogram. The difference between tidal volume and airway dead space corresponds to the air volume in the alveoli involved in gas exchange.

$$\dot{V}_{\text{A}}={\text{RR}} \times (V_{\text{T}}-\tilde{V}_{\text{D}})$$
(9)

\(\mathrm{CO}_2\) elimination (\(\dot{V}_{{\text{CO}}_2}\)) can also be estimated by multiplying \([\mathrm{etCO}_2]\)/100 by the minute alveolar ventilation provided in Eq. (10).

$$\tilde{\dot{V}}_{{\text{CO}}_2}=\frac{[et{\text{CO}}_2]}{100} \times \dot{V}_{\text{A}}$$
(10)

Substituting Eq. (7) into Eq. (8) and Eq. (9) into Eq. (10), \(\mathrm{CO}_2\) elimination proves to be a nonlinear function depending on the percent of \(\mathrm{etCO}_2\) during expiration, and on the various lung mechanics parameters and on ventilation settings.

$$\begin{aligned} \tilde{\dot{V}}_{{\text{CO}}_2} &= \frac{[et{\text{CO}}_2]}{100} \times {\text{RR}} \times \left\{ C_{\text{rs}} \Updelta P\vphantom{\frac{\left(1-e^{\frac{-60 \times \%{\text{TI}}/100}{R_{\text{in}}C_{\text{rs}} \times {\text{RR}}}}\right) \times \left(1-e^{\frac{-60 \times (1-\%{\text{TI}}/100)}{R_{\text{ex}}C_{\text{rs}} \times {\text{RR}}}}\right)}{1-e^{\frac{-60 \times \%{\text{TI}}/100}{R_{\text{in}}C_{\text{rs}} \times {\text{RR}}}} \times e^{\frac{-60 \times (1-\%{\text{TI}}/100)}{R_{\text{ex}}C_{\text{rs}} \times {\text{RR}}}}}} \right.\\ & \quad \left. \times \frac{\left(1-e^{\frac{-60 \times \%{\text{TI}}/100}{R_{\text{in}}C_{\text{rs}} \times {\text{RR}}}}\right) \times \left(1-e^{\frac{-60 \times (1-\%{\text{TI}}/100)}{R_{\text{ex}}C_{\text{rs}} \times {\text{RR}}}}\right)}{1-e^{\frac{-60 \times \%{\text{TI}}/100}{R_{\text{in}}C_{\text{rs}} \times {\text{RR}}}} \times e^{\frac{-60 \times (1-\%{\text{TI}}/100)}{R_{\text{ex}}C_{\text{rs}} \times {\text{RR}}}}} - \tilde{V}_{\text{D}} \right\} \end{aligned}$$
(11)

We can see from Eq. (11) that the ventilatory variables (\(\Updelta P, {\text{RR}}\) and %TI) result in a change of \(\mathrm{CO}_2\) elimination, as shown in Fig. 5.

Fig. 5
figure 5

A physical interpretation of a nonlinear relationship of CO2 elimination based on Eq. (11)

The simulation results based on a change of these ventilatory variables are presented in Figs. 9 and 10, derived from a pig with different pathophysiology (a healthy and an induced ARDS condition). We can also extend Eq. (11) for volume-controlled ventilation by replacing the estimation of tidal volume from Eq. (7) by the setting volume. Therefore, computation of \(\mathrm{CO}_2\) elimination can be made for volume-controlled ventilation based on Eq. (11).

Experiment protocol

After approval from the local animal ethics committee, two female domestic pigs (33 and 35 kg) were premedicated and received adequate anesthesia before the experiment. The premedication was introduced to the subject with ketamine, xylazine and azaperone by intramuscular injection into the neck muscle. After 30 min, anesthesia was introduced with propofol (2–4 mg/kg), fentanyl (0.01–0.02 mg/kg) and pancuronium (0.2 mg/kg). The anesthesia was maintained with thiopental (14–20 mg/kg/h), fentanyl (2–6 g/kg/h) and pancuronium (0.1 mg/kg). The pigs were subsequently tracheotomized and ventilated in supine position. A catheter for \(\mathrm{SaO}_2\) measurement was placed in the carotid artery. The ventilator was set to the airway pressure release ventilation (APRV) mode and various ventilation settings (including RR, %TI, PEEP and PIP) were manually adjusted to collect data on \(\mathrm{CO}_2\) elimination. Lung injury was induced in the second (35 kg) pig by lung lavage with 0.9 % warmed saline solution (Lachmann et al. 1980). PEEP and PIP were set so that tidal volume ranged from 3 to 10 ml/kg, while inspiratory and expiratory time was adjusted as required. Additionally, the fraction of inspired oxygen concentration (FiO2) was set to 0.21 and all data from the ventilator and other measuring devices were recorded continuously for 3 min for each new ventilatory setting. Whenever SaO2 dropped below 88 %, an open lung recruitment procedure was performed to improve oxygenation (Lachmann 1992; Spieth et al. 2011; Haitsma et al. 2003; Pomprapa et al. 2011) by introducing a higher peak inspiratory pressure (PIP) of 45 mbar for 3 breaths. The recovery of \(\mathrm{SaO}_2\) should generally take around 10 s after the recruitment maneuvers. Further investigation of \(\mathrm{CO}_2\) elimination can thereafter be performed.

Results

Tidal volume model

A simulation was performed to generate a contour of tidal volume based on adjustment of the temporal settings, e.g., RR and %TI. Tidal volume is a major factor for estimation of \(\mathrm{CO}_2\) elimination, as shown in Eq. (11). Its mathematical model is given in Eq. (7) and the simulation of tidal volume is shown in Fig. 6, based on the estimated parameters of lung mechanics in a healthy pig. The details of these estimated parameters of lung mechanics are given in the "Appendix II", which are derived by parameter identification using a least squares algorithm.

Fig. 6
figure 6

Tidal volume contour with PIP = 10 mbar and PEEP = 0 mbar

The contour of the tidal volume (Fig. 6) is plotted based on the assumption that all parameters of lung mechanics are constant. The simulation shows that tidal volume gradually reduces when RR is increased for a %TI between 20 and 80 %. When considering %TI to be ≤ 20 % or ≥ 80 %, tidal volume is considerably decreased when RR is increased.

To see the effect of %TI on tidal volume provided in Fig. 7, we fix RR by cutting the contour with a plane, e.g., 40 bpm; tidal volume is then changed according to %TI in an inverted U-shape. The optimal tidal volume deviates slightly from the center of 50 % and, in this case, is positioned at %TI of 46.5 %.

Fig. 7
figure 7

The effect of %TI on tidal volume

An imbalanced inverted U-shape is caused by the difference between R in and R ex. If R in is equivalent to R ex, the optimal tidal volume will be on the adjustment of %TI at 50 %. Otherwise, the optimal tidal volume will be shifted from the center at 50 %. If R in is ≤ R ex, the optimal tidal volume is positioned at a specific point with %TI ≤ 50 % and vice versa. A change in C rs value causes a change in the size and shape of the contour.

AutoPEEP model

Insufficient expiratory time results in autoPEEP, or intrinsic PEEP. Its mathematical model is derived in Eq. (15) from the "Appendix I" and is shown in Fig. 8, based on parameters from a healthy pig. The existence of autoPEEP can be observed by a certain value of flow in the flow–time curve at the end of expiration. This simply means that there is a certain volume left in the lung at end-expiration. In the presence of autoPEEP, the lung cannot deflate to its normal volume influenced by PEEP, and additional volume provided in Eq. (14) is added on top of the FRC. Figure 8 shows that autoPEEP is dramatically increased with adjustment to a higher value of RR and a higher value of %TI. With a higher value of autoPEEP, less pressure difference is available for air ventilation and this causes a reduction in tidal volume (see Fig. 6).

Fig. 8
figure 8

Contour of autoPEEP with PIP = 10 mbar and PEEP = 0 mbar

Model of \(\mathrm{CO}_2\) elimination

Let us assume that the percentage of alveolar \(\mathrm{CO}_2\) concentration is constant at 4 % during an expiration. Under this assumption, Fig. 9 shows a theoretical contour of \(\mathrm{CO}_2\) elimination based on the parameters of a healthy pig. \(\mathrm{CO}_2\) elimination is a nonlinear response that relies on the temporal settings (RR and %TI) and driving pressure (\(\Updelta P\)). The shape and size of the response depend on ventilation settings, Eqs. (7) and (11), the subjects metabolism, and the properties of airway resistance and lung compliance.

Fig. 9
figure 9

Contour of CO2 elimination with PEEP = 0 mbar, R in = 5.26 mbar/L/s, R ex = 6.36 mbar/L/s, C rs = 0.035 L/mbar and [etCO2] = 4 %

Another simulation result of \(\mathrm{CO}_2\) elimination is shown in Fig. 10, based on the parameters of the lavaged pig serving as a model for ARDS with the following ventilation settings: \(\mathrm{FiO}_2\) = 0.21, RR = 30 bpm and %TI = 50 %. Compliance shows a significant decrease from 0.035 to 0.012 L/mbar due to loss of surfactant during lung lavage. The result shows a shape similar to that associated with parameters in a healthy condition, but a lower amount of \(\mathrm{CO}_2\) elimination. By fixing RR to a certain value, the optimal \(\mathrm{CO}_2\) elimination is shifted from %TI at 46.5 % (healthy condition) to %TI at 39 % (ARDS condition) due to the change of airway resistance.

Fig. 10
figure 10

Contour of CO2 elimination from a lavaged pig with PEEP = 10 mbar, R in = 4.75 mbar/L/s, R ex = 8.15 mbar/L/s, C rs = 0.012 L/mbar and [etCO2] = 4 %

Under this severe condition, the contour of Fig. 10 shows a considerable reduction in size compared with that in Fig. 9. The driving pressure (\(\Updelta P\)) has a considerable influence on tidal volume. With a higher driving pressure, more tidal volume can be achieved and this leads to more \(\mathrm{CO}_2\) volume during expiration. In contrast, ventilating with less driving pressure leads to less tidal volume and less \(\mathrm{CO}_2\) elimination. The effects of different driving pressures applied to a subject are presented in Figs. 9 and 10.

Model validation

Differences between measured \(\mathrm{CO}_2\) elimination (\(\dot{V}_{{\text{CO}}_2}\)) from Eq. (1) and estimated \(\mathrm{CO}_2\) elimination (\(\tilde{\dot{V}}_{{\text{CO}}_2}\)) from Eq. (11) are presented in Table 1. Based on the experiments, the mathematical model of \(\mathrm{CO}_2\) elimination was valid within some level of tolerance (on average 4.9 %). Therefore, the model can be used as a guideline to adjust ventilation settings e.g., PEEP, PIP, RR and %TI in order to control and optimize \(\mathrm{CO}_2\) elimination of the subject. The extreme case of 25 % error for the lavaged pig (case #2 lavaged) was excluded from the analysis of error mean because \(\mathrm{CO}_2\) elimination was very low (8 ml/min). In this case, the estimated \(\mathrm{CO}_2\) elimination was relatively accurate (6 ml/min). It is then biased to include this case for the analysis of model error.

Table 1 Model validation of \(\mathrm{CO}_2\) elimination from animal experiments 1 min after the change of ventilation variables

Discussion

The main goal of the present work was to describe \(\mathrm{CO}_2\) elimination mathematically to increase understanding of the respiratory mechanism for \(\mathrm{CO}_2\) removal. Three parameters (\(\Updelta P,\) RR and %TI) from the ventilation settings are the major factors influencing \(\mathrm{CO}_2\) removal. Based on the mathematical model, \(\mathrm{CO}_2\) elimination is proportional to the driving pressure (\(\Updelta P\)). A higher amplitude of driving pressure, or a deeper breath, yields more tidal volume allowing more \(\mathrm{CO}_2\) to be removed from the lung. This applies particularly to the sick lung; however, considerable mechanical stress may be exerted on lung tissue which may contribute to the development of ventilator-induced lung injury. RR and %TI are two independent temporal settings of ventilation; they introduce a nonlinear effect on \(\mathrm{CO}_2\) elimination. Increasing RR with an optimal %TI setting is an alternative to increase \(\mathrm{CO}_2\) elimination, which is analytically proven and presented in Figs. 9 and 10. Additionally, an optimal value of %TI can be derived based on the imbalance of R in and R ex. Based on the parameter estimation, the optimal %TI should be tuned at around 40 % for maximal \(\mathrm{CO}_2\) removal (almost the physiological ratio of inspiration/expiration).

An incomplete expiration results in autoPEEP. This underlying pressure causes additional volume at the end of expiration. Tidal volume is technically reduced by the presence of autoPEEP. From Eq. (15), autoPEEP is a nonlinear function of driving pressure (\(\Updelta P\)), airway resistance, lung compliance, RR and %TI. A higher value of autoPEEP can be obtained by increasing driving pressure and setting a higher RR with higher %TI. However, applying autoPEEP is as controversial as the use of a high static PEEP. The adverse effects of autoPEEP include hemodynamic interference and risk of barotrauma due to air trapping in volume-controlled ventilation. However, the advantage of autoPEEP includes improvement of oxygenation and recruitment of collapsed alveoli (Kuckelt et al. 1981). More studies are required on the effects of autoPEEP on \(\mathrm{CO}_2\) elimination in patients with ARDS.

In our analysis, airway dead space is estimated based on the principle of the fraction of efficiency, obtained from the volumetric capnogram. From our estimation in Table 1, airway dead space (V D) is a time-varying parameter and V D/V T lies between 0.25 and 0.6. Based on a \(\mathrm{CO}_2\) elimination model, airway dead space may be estimated using Eq. (11) with the measurement of breath-to-breath \(\mathrm{CO}_2\) elimination, \(\mathrm{etCO}_2,\) RR and tidal volume. This approach provides an alternative assessment of airway dead space.

With resetting of the ventilator, \(\mathrm{CO}_2\) elimination changes immediately. Our mathematical model describes \(\mathrm{CO}_2\) elimination on a breath-by-breath basis. The change of \(\mathrm{CO}_2\) elimination correlates with the \(\mathrm{CO}_2\) partial pressure in arterial blood (\(\mathrm{PaCO}_2\)) for homogeneous lungs (Kron et al. 1999). Naturally, whenever \(\mathrm{CO}_2\) elimination is not equal to \(\mathrm{CO}_2\) production, arterial \(\mathrm{CO}_2\) tension (\(\mathrm{PaCO}_2\)) in the blood stream is either ascending or descending. To balance \(\mathrm{CO}_2\) elimination and \(\mathrm{CO}_2\) production, a standard blood gas analyzer should be used to evaluate \(\mathrm{PaCO}_2\) for a mechanically ventilated patient. The goal should, therefore, be a regulation of \(\mathrm{PaCO}_2\) at a specific value by adjusting ventilation parameters based on our proposed mathematical model.

However, it should be emphasized that in the present study the amount of \(\mathrm{CO}_2\) from blood was assumed to have an abundant supply from metabolism. In other words, there was no limitation to gas exchange on the alveolar surface. Thus, a more realistic contour of \(\mathrm{CO}_2\) elimination could be achieved if we add a constraint of limited space of lung volume, which (for simplification purposes) was not considered in the present analysis. However, the expected result will be the limitation of \(\mathrm{CO}_2\) elimination that should not exceed a certain value because of the restricted alveolar surface. Another limitation of our work is that we assumed a linear single compartment for lung mechanics. While this may be true for healthy lungs, the accuracy of \(\mathrm{CO}_2\) elimination model may be improved for diseased lungs using multi-compartment models and adding nonlinear flow–pressure relationships as in Rohrer’s model (Crooke et al. 2003). In addition, due to the time-varying system, certain parameters such as compliance, inspiratory and expiratory resistances and others may not be constant during ventilation therapy. Our model is, therefore, less accurate in the sick lung than in a homogeneous healthy lung.

Conclusions

A mathematical model of \(\mathrm{CO}_2\) elimination was developed based on the principle of alveolar ventilation and of airway dead space estimation using a single-compartment model. It is shown that \(\mathrm{CO}_2\) elimination is a nonlinear function of multivariate parameters in terms of respiratory rate, percent inspiratory time, airway resistance, lung compliance, airway dead space, driving pressure, and percentage of end-tidal \(\mathrm{CO}_2\) concentration. The analytical solution provides insight into \(\mathrm{CO}_2\) elimination, which relies mainly on ventilation settings, lung mechanics and the patients metabolism. In applying this model, not only can the driving pressure and respiratory rate be set higher to improve \(\mathrm{CO}_2\) elimination in ARDS patients, but airway resistance during inspiration and expiration should also be measured to determine the optimal %TI to maximize \(\mathrm{CO}_2\) elimination for treating patients with hypercapnia. Due to the low number of animals used for validation, the model cannot yet be generalized and requires further validation prior to clinical use.