Skip to main content
Log in

Evaluation of a computer program for non-invasive determination of pulmonary shunt and ventilation-perfusion mismatch

  • Original Research
  • Published:
Journal of Clinical Monitoring and Computing Aims and scope Submit manuscript

Abstract

We describe a three-compartment model (shunt and two perfused compartments) to analyse the relationship between inspired oxygen (FIO2) and arterial oxygen saturation (SaO2) in terms of pulmonary shunt and ventilation-perfusion ratio (VA/Q). The program was tested using 24 exact datasets, each with six pairs of FIO2 and SaO2 data points with known VA/Q and shunt, generated by a complex calculator of gas exchange. Additional datasets were created by adding noise and rounding the exact sets, and by reducing the number of data points per dataset. The importance of the oxyhaemoglobin dissociation curve and the arterio-venous difference in oxygen content (avDO2) were also tested. Analysis using the three compartment model was more accurate than the two compartment model and less affected by data degradation. The absolute error in shunt estimation was never more than 2.2 % for the exact and rounded datasets, but the error in VA/Q estimation was −29 to 19 % of the true value (10th–90th centiles). The characteristics of the well-ventilated compartment were not determined accurately. At extremes of cardiac output, an assumed value of avDO2 resulted in significant errors. It is probably advantageous to correct for foetal haemoglobin in neonatal datasets. Analysis of FIO2 versus SaO2 datasets using a three compartment model provides accurate estimates of shunt and VA/Q when arterio-venous difference in oxygen content is known. The estimates may have value as objective measures of gas exchange, and as a visual guide for oxygen therapy.

This is a preview of subscription content, log in via an institution to check access.

Access this article

Price excludes VAT (USA)
Tax calculation will be finalised during checkout.

Instant access to the full article PDF.

Fig. 1
Fig. 2
Fig. 3
Fig. 4

Similar content being viewed by others

References

  1. Karbing DS, Kjærgaard S, Smith BW, Espersen K, Allerød C, Andreassen S, Rees SE. Variation in the PaO2/FIO2 ratio with FIO2: mathematical and experimental description, and clinical relevance. Crit Care. 2007;11:R118.

    Article  PubMed  PubMed Central  Google Scholar 

  2. Sapsford DJ, Jones JG. The PIO2 vs SpO2 diagram: a non-invasive measurement of pulmonary oxygen exchange. Eur J Anaesth. 1995;12:375–86.

    CAS  Google Scholar 

  3. Vidal Melo MF, Loeppky JA, Caprihan A, Luft UC. Alveolar ventilation to perfusion heterogeneity and diffusion impairment in a mathematical model of gas exchange. Comp Biomed Res. 1993;26:103–20.

    Article  CAS  Google Scholar 

  4. Karbing DS, Kjærgaard S, Andreassen S, Espersen K, Rees SE. Minimal model quantification of pulmonary gas exchange in intensive care patients. Med Eng Phys. 2011;33:240–8.

    Article  PubMed  Google Scholar 

  5. Olszowka AJ, Wagner PD. Numerical analysis of gas exchange. In: West JB, editor. Pulmonary gas exchange. New York: Academic Press; 1980. p. 263–306.

    Google Scholar 

  6. Severinghaus JW. Simple, accurate equations for human blood O2 dissociation computations. J Appl Physiol. 1979;46:599–602.

    CAS  PubMed  Google Scholar 

  7. Cormack RS, Lockwood GG. Exact model for the oxyhaemoglobin dissociation curve. Br J Anaesth. 2011;106:430P.

    Google Scholar 

  8. Kasinger W, Huch R, Huch A. In vivo oxygen dissociation curve for whole fetal blood: fitting the Adair equation and blood gas nomogram. Scand J Clin Lab Invest. 1981;41:701–7.

    Article  CAS  PubMed  Google Scholar 

  9. Covelli HD, Nessan VJ, Tuttle WK. Oxygen derived variables in acute respiratory failure. Crit Care Med. 1983;11:646–9.

    Article  CAS  PubMed  Google Scholar 

  10. Boxenbaum HG, Riegeiman S, Elashoff RM. Statistical estimations in pharmacokinetics. J Pharmacokinet Biopharm. 1974;2:123–48.

    Article  CAS  PubMed  Google Scholar 

  11. Peyton PJ, Poustie SJ, Robinson GJB, Penny DJ, Thompson B. Non-invasive measurement of intrapulmonary shunt during inert gas rebreathing. Physiol Meas. 2005;26:309–16.

    Article  PubMed  Google Scholar 

  12. Steinhart CM, Burch KD, Brudno S, Parker DH. Noninvasive determination of effective (non shunted) pulmonary blood flow in normal and injured lungs. Crit Care Med. 1989;17:349–53.

    Article  CAS  PubMed  Google Scholar 

  13. Reutershan J, Ressel M, Wagner T, Schröder T, Dietz K, Fretschner R. Non-invasive determination of effective pulmonary blood flow: evaluation of a simplified rebreathing method. J Med Eng. 2003;27:194–9.

    CAS  Google Scholar 

  14. Hope DA, Jenkins BJ, Willis N, Maddock H, Mapleson WW. Non-invasive estimation of venous admixture: validation of a new formula. Brit J Anaesth. 1995;74:538–43.

    Article  CAS  PubMed  Google Scholar 

  15. de Gray L, Rush EM, Jones JG. A non-invasive method for evaluating the effect of thoracotomy on shunt and ventilation perfusion inequality. Anaesthesia. 1997;52:630–5.

    Article  PubMed  Google Scholar 

  16. Quine D, Wong CM, Boyle EM, Jones JG, Stenson BJ. Non-invasive measurement of reduced ventilation perfusion ratio and shunt in infants with bronchopulmonary dysplasia: a physiological definition of the disease. Arch Dis Child Fetal Neonatal Ed. 2006;9:F409–14.

    Article  Google Scholar 

  17. Kjærgaard S, Rees S, Malczynski J, Nielsen JA, Thorgaard P, Toft E, Andreassen S. Non-invasive estimation of shunt and ventilation-perfusion mismatch. Int Care Med. 2003;29:727–34.

    Article  Google Scholar 

  18. Rees SE, Kjærgaard S, Thorgaard P, Malczynski J, Toft E, Andreassen S. The automatic lung parameter estimator (ALPE) system: non-invasive estimation of pulmonary gas exchange parameters in 10–15 minutes. J Clin Monit Comput. 2002;17:43–52.

    Article  PubMed  Google Scholar 

  19. Thomsen LP, Karbing DS, Smith BW, Murley D, Weinreich UM, Kjærgaard S, Toft E, Thorgaard P, Andreassen S, Rees SE. Clinical refinement of the automatic lung parameter estimator (ALPE). J Clin Monit Comput. 2013;27:341–50.

    Article  PubMed  Google Scholar 

  20. Rees SE, Kjærgaard S, Andreassen S, Hedenstierna G. Reproduction of MIGET retention and excretion data using a simple mathematical model of gas exchange in lung damage caused by oleic acid. J Appl Physiol. 2006;101:826–32.

    Article  CAS  PubMed  Google Scholar 

  21. Tahvanainen J, Meretoja O, Nikki P. Can central venous blood replace mixed venous blood samples? Crit Care Med. 1982;10:758–61.

    Article  CAS  PubMed  Google Scholar 

  22. Ladakis C, Myrianthefs P, Karabinis A, Karatzas G, Dosios T, Fildissis G, Gogas J, Baltopoulos G. Central venous and mixed venous oxygen saturation in critically ill patients. Respiration. 2001;68:279–85.

    Article  CAS  PubMed  Google Scholar 

  23. Edwards JD, Mayall RM. Importance of the sampling site for measurement of mixed venous oxgen saturation in shock. Crit Care Med. 1998;26:1356–60.

    Article  CAS  PubMed  Google Scholar 

  24. Chawla LS, Hasan Z, Gutierrez G, Katz NM, Seneff MG, Shah M. Lack of equivalence between central and mixed venous oxygen saturation. Chest. 2004;126:1891–6.

    Article  PubMed  Google Scholar 

  25. Van Beest PA, van Ingen J, Boerma EC, Holman ND, Groen H, Koopmans M, Spronk PE, Kuiper MA. No agreement of mixed venous and central venous saturation in sepsis, independent of sepsis origin. Crit Care. 2010;14:R219.

    Article  PubMed  PubMed Central  Google Scholar 

  26. Van der Louw A, Cracco C, Cerf C, Harf A, Duvaldestin P, Lemaire F, Brochard L. Accuracy of pulse oximetry in the intensive care unit. Intensive Care Med. 2001;27:1606–13.

    Article  PubMed  Google Scholar 

  27. Press WH, Flannery BP, Teukolsky SA, Vetterling WT. Numerical recipes in Pascal. Cambridge: Cambridge University Press; 1989.

    Google Scholar 

  28. Fung N, Lasenby J, Jones JG, Ross-Russell R. Model-fitting for automated and robust determination of pulmonary oxygen exchange. In: Aghajan H, Augusto TG, Callaghan V, editors. Workshop proceedings of the 7th international conference on intelligent environments. IOS Press; 2011, pp 775–786.

Download references

Acknowledgments

We thank Dr A. Olszowka, Department of Physiology, University of Buffalo, New York, USA for providing his pulmonary gas exchange program.

Conflict of interest

The authors declare that they have no conflict of interest.

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Geoffrey G. Lockwood.

Appendix

Appendix

1.1 The two compartment model

Our original MS-DOS program was based on the two compartment model of pulmonary oxygen exchange [2]. We match the volumes of oxygen taken up from the lungs and taken up by the pulmonary blood flow:

$$ 0.83\dot{V}_{A} (F_{I} O_{2} - F_{A} O_{2} ) = \dot{Q}_{T} (C_{a} O_{2} - C_{{\bar{v}}} O_{2} ) $$
(1)

where \( \dot{V}_{A} \) is alveolar ventilation (we assume that inspired and expired alveolar ventilation are equal), \( \dot{Q}_{T} \) is cardiac output and the other terms have their conventional meaning for fractional gas concentrations (expressed as a percentage) and blood oxygen content. Since \( \dot{V}_{A} \) is usually measured at BTPS while the standard formula for oxygen content gives values at STPD, an appropriate correction factor of 0.94 × 273/310 = 0.83 must be applied to the left hand side.

Also, because

$$ C_{a} O_{2} = S \cdot C_{{\bar{v}}} O_{2} + \left( {1 - S} \right) \cdot C_{{c^{{\prime }} }} O_{2} $$
(2)

where S is the fractional right-to-left shunt and \( C_{{c^{{\prime }} }} O_{2} \) refers to the oxygen content of blood leaving the pulmonary capillaries. Equation 1 can be re-arranged to give:

$$ F_{I} O_{2} - F_{A} O_{2} = \frac{{avDO_{2} }}{{\frac{{V_{A} }}{Q} \cdot 0.83(1 - S)}} $$
(3)

where VA/Q is the ratio of alveolar ventilation to (non-shunted) pulmonary flow and avDO 2 is the arterio-venous oxygen content difference (i.e. \( C_{a} O_{2} - C_{{\bar{v}}} O_{2} \)). Equation 2 can be written as:

$$ C_{{c^{{\prime }} }} O_{2} - C_{a} O_{2} = {\text{avDO}}_{2} \cdot \frac{S}{1 - S} $$
(4)

From Eqs. 3 and 4 it can be seen that VA/Q is predominant in determining the shift in oxygen concentration from inspired to alveolar gas (F I O 2 - F A O 2 ), whilst shunt relates \( C_{{c^{{\prime }} }} O_{2} \) to C a O 2 .

Therefore, to define a unique FIO2 versus SaO2 curve from Eqs. 3 and 4, values must be supplied for VA/Q, shunt and avDO2, in addition to the haemoglobin concentration (CHb) and the ODC, both of which are required to convert oxygen content to saturation.

1.2 The three compartment model

The underlying cause of impaired gas exchange may sometimes be too complex to be simulated by a two-compartment model. We have extended our analysis to include two ventilated compartments. One is well perfused but poorly ventilated whereas the other is well ventilated and poorly perfused.

By considering the global conservation of oxygen in such a model, it can be seen that Eqs. 1 and 2 are still valid. However, the terms F A O 2 and C c’ O 2 are now determined by the distribution between the two ventilated lung compartments of ventilation and perfusion respectively, i.e.:

$$ F_{A} O_{2} = f_{V} \cdot F_{A(1)} O_{2} + (1 - f_{V} )F_{A(2)} O_{2} $$
(5)

and

$$ C_{{c^{'} }} O_{2} = f_{Q} \cdot C_{{c(1)^{'} }} O_{2} + (1 - f_{Q} )C_{{c(2)^{'} }} O_{2} $$
(6)

where f V is the fraction of ventilation through the first lung compartment and f Q the fraction of non-shunt blood flow through the same compartment.

Using these terms, Eq. 1 can be applied to each compartment, so that for compartment 1:

$$ 0.83\,f_{V} \dot{V}_{A} (F_{I} O_{2} - F_{A(1)} O_{2} ) = f_{Q} \dot{Q}_{T} (1 - S)(C_{{c(1)^{{\prime }} }} O_{2} - C_{{\bar{v}}} O_{2} ) $$
(7a)
$$ 0.83(1 - f_{V} ) \dot{V}_{A} (F_{I} O_{2} - F_{A(2)} O_{2} ) = (1 - f_{Q} )\dot{Q}_{T} (1 - S)(C_{{c(2)^{{\prime }} }} O_{2} - C_{{\bar{v}}} O_{2} ) $$
(7b)

From now on we use \( \dot{Q} \) to denote the pulmonary flow: \( \dot{Q} = \dot{Q}_{T} (1 - S) \). Equations 7a, 7b can each be re-arranged as an expression for \( C_{{\bar{v}}} O_{2} \). Furthermore, noting that \( C_{{\bar{v}}} O_{2} \) is common to both compartments, \( C_{{c(1)^{{\prime }} }} O_{2} \)and \( C_{{c(2)^{{\prime }} }} O_{2} \) can be related to each other by the following identities:

$$ C_{{c(1)^{{\prime }} }} O_{2} - \frac{{0.83 \cdot V_{A} f_{V} }}{{Qf_{Q} }} \cdot \left( {F_{I} O_{2} - F_{A(1)} O_{2} } \right) = C_{{\bar{v}}} O_{2} = C_{{c(2)^{{^{{^{{\prime }} }} }} }} O_{2} - \frac{{0.83 \cdot V_{A} (1 - f_{V} )}}{{Q(1 - f_{Q} )}} \cdot (F_{I} O_{2} - F_{A(2)} O_{2} ) $$
(8)

Using the ODC, CHb and oxygen solubility in plasma to convert from F A(1) O 2 to \( C_{{c(1)^{{\prime }} }} O_{2} \) the two leftmost terms become an expression for \( C_{{\bar{v}}} O_{2} \) in terms of the input value FIO2, the model parameters (shunt, VA/Q, f V and f Q ), and the unknown \( C_{{c(1)^{{\prime }} }} O_{2} \). Similar operations on the two rightmost terms produces an expression for \( C_{{\bar{v}}} O_{2} \) in terms of \( C_{{c(2)^{{\prime }} }} O_{2} \).

The expression for F A O 2 (Eq. 5) can be substituted into Eq. 3 to provide a second relationship between F A(1) O 2 and F A(2) O 2 in terms of the model parameters and F I O 2 .

$$ F_{I} O_{2} - (f_{V} \cdot F_{A(1)} O_{2} + \left( {1 - f_{V} } \right)F_{A(2)} O_{2} ) = \frac{{avDO_{2} }}{{\frac{{V_{A} }}{Q} \cdot 0.83(1 - S)}} $$
(9)

Re-arranging Eq. 9 allows F A(2) O 2 to be expressed as a function of F A(1) O 2.

The use of this function in the rightmost term of Eq. 8 produces a second expression for \( C_{{\bar{v}}} O_{2} \) in terms of \( C_{{c(1)^{'} }} O_{2} \). Equating the two expressions for \( C_{{\bar{v}}} O_{2} \) in terms of \( C_{{c(1)^{{\prime }} }} O_{2} \) allows numerical solution of \( C_{{c(1)^{{\prime }} }} O_{2} \) and, from that, calculation of \( C_{{c(2)^{{\prime }} }} O_{2} \) and \( C_{{\bar{v}}} O_{2} \). Equation 6 then gives \( C_{{c^{{\prime }} }} O_{2} \) and with that value it is simple matter (using Eq. 2) to obtain a value for C a O 2 which, upon conversion from content to saturation, provides the three compartment model solution of SpO2 for a given FIO2 in terms of four parameters: shunt, VA/Q, f V and f Q . Values of the last two parameters can also be converted into two local VA/Q’s for the two non-shunt lung compartments \( ({\text{V}}_{\text{A}} /{\text{Q}}_{( 1)} = {\text{V}}_{\text{A}} /{\text{Q}} \cdot f_{V} /f_{Q} \quad {\text{and}}\quad {\text{V}}_{\text{A}} /{\text{Q}}_{( 2)} = {\text{V}}_{\text{A}} /{\text{Q}} \cdot (1 - f_{V} )/(1 - f_{Q} )) \).

1.3 The least squares algorithm

Neither the FIO2 nor the SpO2 are known exactly and there is comparable error in both measurements for every data point. We therefore used a least squares algorithm that minimised the closest Euclidean distance between the data points and the generated FIO2 versus SpO2 curve, rather than the smallest vertical distances (which would account for errors in SpO2 only). Algebraically, this error function can be expressed as follows:

$$ Error = \sum _{i = 1}^{N} \left( {\left( {x_{i} - x_{i}^{*} } \right)^{ 2} + \left( {y_{i} - y_{i}^{*} } \right)^{ 2} } \right) $$
(10)

where (x i , y i ) is the ith FIO2 versus SpO2 data point and (x i *, y i *) is the point on the model curve that is closest to (x i , y i ), in terms of the Euclidian distance. For any given curve (defined for values of FIO2 by the chosen values of shunt, VA/Q, f V and f Q using the equations above), the values of x i * and y i * can be calculated for each data point using Brent’s method [27], allowing calculation of Error for any set of parameter values. The set of parameter values that generates the least value of Error defines the curve that best fits the data.

Our algorithm is a sequence of iterative stages and is a revision of our previous work [28]. Implemented in object-orientated Pascal, it analyses the dataset using the two compartment and three compartment models sequentially. In both analyses it uses Nelder and Mead’s downhill simplex algorithm [27] to iterate through different values for the model parameters until Error is minimised.

Finally, because the solution of carbon dioxide in blood is an approximately linear function of its partial pressure, Eq. 3 can be re-formulated in terms of carbon dioxide to give, with simple re-arrangement,

$$ \frac{{V_{A} }}{Q} = \frac{{avDO_{2} RQ}}{{0.83 \left( {1 - S} \right) P_{A} CO_{2} }} $$
(11)

This relationship allows the number of parameters used in the three compartment model to be reduced to three.

Rights and permissions

Reprints and permissions

About this article

Cite this article

Lockwood, G.G., Fung, N.L.S. & Jones, J.G. Evaluation of a computer program for non-invasive determination of pulmonary shunt and ventilation-perfusion mismatch. J Clin Monit Comput 28, 581–590 (2014). https://doi.org/10.1007/s10877-014-9554-x

Download citation

  • Received:

  • Accepted:

  • Published:

  • Issue Date:

  • DOI: https://doi.org/10.1007/s10877-014-9554-x

Keywords

Navigation