1 Introduction

For the examination of lung diseases those characteristic lung function parameters are measured, which primarily reflect the function of the central airways. However, more and more frequently, new techniques and parameters are tested for their capability to assess the status of the small peripheral airways with internal diameters below 2 mm in order to investigate their influence on obstructive lung diseases and other pulmonary conditions [7, 8, 10, 12, 17, 26, 33].

The assessment of small airway dysfunction may be helpful for the therapy of multiple chronic lung diseases in particular with regard to their early detection at a stage before respiratory symptoms arise [3, 4, 11, 22, 30, 31]. Multiple methods and parameters have been developed and proposed [5, 9, 15, 16, 20, 23, 25, 32, 35, 37, 38], but until now, no accepted single method and parameter exists [2, 14].

Recently, a new promising method for the assessment of the small airways with two tracer gases has been developed [27, 28]. Besides oxygen O2 (21%) and nitrogen N2 (47.7%), the double-tracer gas additionally contains the two tracer components, sulfur hexafluoride SF6 (5%) and helium He (26.3%). The concentration of all components in this double-tracer gas mixture is chosen in such a way that its molar mass is about the same as that of medical air. This molar mass range enables optimal signal resolution of the molar mass sensor based on the ultrasonic flowmeter (USFM) principle [28].

One characteristic of this method is that in contrast to multiple-breath-washouts (MBW) only a few respiratory cycles with normal tidal breaths are required. First, some cycles with dry medical air, as it is provided in hospitals, then one single tidal inhalation of a double-tracer gas mixture, and at the end again one or more cycles with medical air.

Furthermore, recent studies have shown that this method beside the assessment of global ventilation inhomogeneity may also be a sensitive test to assess specific ventilation inhomogeneity in distal airways [1, 13, 18, 25]. It is supposed that this is due to the different diffusion characteristics of both tracers in the convection-diffusion area of the pre-acinar and acinar lung zones which leads to a change of their concentration fractions within the gas mixture.

This new DTG-SBW may have major advantages in contrast to the tidal N2-MBW and the vital capacity N2-SBW techniques, which are the two principal established test methods. We found that in comparison to the conventional N2-MBW the DTG-SBW was on average ten times faster (3 vs. 30 min for three trials) [13]. Compared to the vital capacity N2-SBW, which mainly assess the overall ventilation inhomogeneity [34], the DTG-SBW requires only normal tidal breaths and provides information about both, global and peripheral ventilation inhomogeneities.

Thus, the DTG-SBW has major benefits for the patient and hold promise for clinical application [36]. It is especially suitable for elderly and children as it can be performed within a short period of time and only normal tidal breaths are required.

For the analysis, the expiration phase just after the inspiration of the double-tracer gas mixture is used. For that, characteristic parameters are determined from the difference of the molar mass (MM) signals with and without double-tracer gas (Eq. 7), such as its slope between 60 and 90% of the expired volume, which represents the alveolar phase III and reflects consecutive arrival of gas fronts from peripheral diffusion-dependent airways, and its absolute peak at mid-expiratory phase, which represents the bronchial phase II and is determined by the arrival of gas fronts from mainly convection-dependent airways (Fig. 1).

Fig. 1
figure 1

Typical expirograms of CO2 and \(\Delta {\mathrm{MM}}_{\mathrm{ss}}\) (Eq. 7) from the dataset of a healthy subject measured with the DTG-SBW. Also shown are peak and slope \({\mathrm{III}}_{\mathrm{DTG}}\) (determined between 60 and 90% of the expired volume) which are two characteristic outcome parameters of the DTG-SBW-signal \(\Delta {\mathrm{MM}}_{\mathrm{ss}}\). The expirograms are partitioned into phase I (dead space), phase II (bronchial or transitional phase), and phase III (alveolar phase)

During these expiration phases, however, only the MM signal with the double-tracer gas can be measured. Thus, the MM signal without double-tracer gas has to be reconstructed from the information obtained during previous breaths with medical air.

In this paper a simple method for the calculation of the reconstructed MM signal is presented.

2 Methods and materials

Since no commercially software is available for the signal processing and analysis of the DTG-SBW data, especially not for the reconstruction of the molar mass based on our method, we used the software tool LabVIEW™ 2014 version 14.0.1 from National Instruments to write our own software program.

Figure 2 shows a schematic measurement setup of the proposed double-tracer gas single-breath washout (DTG-SBW) and the signals required to understand the reconstruction method. The signals are measured with the commercially available scientific instrument Exhalyzer® D from Eco Medics AG, Duernten, Switzerland, which provides a time resolution of 5ms. The full DTG-SBW and measurement setup are discussed in detail by Singer et al. [28].

Fig. 2
figure 2

a Schematic measurement setup of those components of the DTG-SBW required for the reconstruction method. b MM measured in the side stream, and CO2-concentration measured in the main stream, both signals are synchronized in time

During the test, respiratory gas from the main stream is sucked into a side stream with a constant flow rate Q ss of about 3.3 ml/s (Fig. 2). Before the measurement of the molar mass MMss in this side stream, the gas equilibrates with ambient air conditions (temperature and humidity) by passing it through a nafion® tube [19, 21], which is applied for drying respiratory gas [29]. The USFM measurement of the MM is based on the equation for the sound velocity c of an ideal gas

$$\begin{aligned} c = \sqrt{\frac{RT\gamma }{\mathrm{MM}}}, \end{aligned}$$

where R is the molar gas constant, T the absolute temperature, and \(\gamma\) the adiabatic index. For the evaluation of the MM the sound velocity is determined by measuring the transit times of pulsed ultrasonic waves.

2.1 Reconstruction method

The reconstruction method for the MM signal without double-tracer gas uses the high correlation between that signal and the CO2-concentration signal [6] during in- and exhalation of dry medical air. For that, the ordinary least squares (OLS) regression method is applied to determine the MM signal from the CO2-signal. Besides water vapor, which is extracted by the nafion® tube, CO2 is the only remaining component, which is significantly added to the respiratory air during the gas exchange in the lung. Since the CO2-concentration of the inspired air is very close to zero and therefore negligible, it is only dependent on the internal diffusion process in the respiratory tract and hence not affected by external influences, which is a major advantage. As displayed in Fig. 2b, the MM actually changes almost synchronously with the CO2-concentration as long as medical air is provided for breathing.

To reconstruct the MM signal, at first, a copy of the measured MM signal is generated. From this copy, all data just after the beginning of the inspiration of the double-tracer gas are deleted. In order to find that beginning, the first spike in the MM signal is detected, which always appears just prior to the start of inspiration of the double-tracer gas mixture. This effect appears to relate to double-tracer gas demixing effects at extremely low flows and continued side-stream sampling. From the remaining signal, the first 25% but not more than 15 s and the last 500 ms are deleted in order to preclude both, artifacts resulting from insufficient sealing of the mouth piece at the beginning of the measurement, and the rise time of the spike, which arises in the transition phase between expiration and inspiration (Fig. 2b). The selected intervals of up to 15 s at the beginning and 500 ms at the end are found to be more than sufficient for a reliable reconstruction of the MM signal.

In the next step, a copy of the CO2-signal is created and filtered through a digital low-pass filter in order to compensate the observed different time constants between the CO2- and MMss-signals at rapid changes of the CO2-concentration as they occur at the beginning of inspiration. It is thought that dispersion of the respiratory gas during its transmission to the MMss-sensor within the nafion® tube is mainly responsible for these different time constants. From our experimental data, we found a second-order Bessel low-pass filter with a cutoff frequency of 3 Hz and an attenuation greater 20 dB above 12 Hz as the appropriate choice to adapt the time constant of the CO2-signal to that of the molar mass signal. The Bessel filter is chosen as it preserves the wave shape of the signal in the passband and it allows the estimation of the time delay through the filter, which is important to synchronize the filtered signal CO2-signal with the other ones. For the reconstruction the same time interval as in the case of the MM signal is extracted from the filtered CO2-signal.

Since the sensors for the MM and the CO2-concentration are located at different positions in the measurement setup (Fig. 2a), a time delay between those sensor signals must be taken into account. In fact, we found, that for a given setup that time delay remains almost constant. However, when the setup has been changed, e.g., the nafion® tube has been replaced, the time delay may also have changed. Therefore, automatic time synchronization has been implemented in the current reconstruction. For that, the OLS regression coefficients a, b, and \(\varepsilon\) (Eqs. 46) between both signals at different time delays are evaluated by shifting them against each other in the time dimension and using the resulting N pair of values from the overlapping region of both signals to calculate these coefficients. Here, a and b are the vertical intercept and the slope, respectively, of the regression line MMsscalc

$$\begin{aligned} {\mathrm{MM}}_{\mathrm{sscalc}} = a + b \times {\hbox {CO}}_2, \end{aligned}$$
(1)

while \(\varepsilon\) represents the mean squared error between the predicted values MMsscalc and the actual measured values MMss. With

$$\begin{aligned} {{C}_{\mathrm{MM}}}_{\mathrm{ss},{{\mathrm{CO}}_{2}}} = \sum \limits _{i}^{N}\left( {\mathrm{MM}}_{\mathrm{ss},i} - \overline{{\mathrm{MM}}_{\mathrm{ss}}}\right) \times \left( {\hbox {CO}}_{2,{ i}} - \overline{{\hbox {CO}}_2}\right) \end{aligned}$$
(2)

and

$$\begin{aligned} \sigma _{{\mathrm{CO}}_2} = \sqrt{\sum \limits _{i}^{N}\left( {\hbox {CO}}_{2,{ i}} - \overline{{\hbox {CO}}_2}\right) ^2} \end{aligned}$$
(3)

the OLS regression coefficients are estimated as follows:

$$\begin{aligned} b= & \frac{{{C}_{\mathrm{MM}}}_{{\mathrm{ss}},{{\mathrm{CO}}}_2}}{\sigma _{{\mathrm{CO}}_2}^2} \end{aligned}$$
(4)
$$\begin{aligned} a= & \overline{{\mathrm{MM}}}_{{\mathrm{ss}}} - b \times \overline{{\hbox {CO}}_2} \end{aligned}$$
(5)
$$\begin{aligned} \varepsilon= & \frac{1}{N}\sum \limits _{i}^{N}\left( {\mathrm{MM}}_{{\mathrm{sscalc}},i} - {{\mathrm{MM}}}_{{\mathrm{ss}},i}\right) ^2 = \frac{1}{N}\sum \limits _{i}^{N}\Delta {{\mathrm{MM}}}_{{\mathrm{ss}},i}^2 . \end{aligned}$$
(6)

The index i stands for the single measured or predicted values, MMss and \(\overline{{\hbox {CO}}_2}\) are the estimated mean values,

$$\begin{aligned} {\overline{{\mathrm{MM}}}_{{\mathrm{ss}}}}= & \frac{1}{N}\sum \limits _{i}^{N}{\mathrm{MM}}_{{\mathrm{ss}},i}\\ \overline{{\hbox {CO}}_2}= & \frac{1}{N}\sum \limits _{i}^{N}{{\hbox {CO}}}_{2,{ i}}, \end{aligned}$$

and \(\Delta {{\mathrm{MM}}}_{{\mathrm{ss}},i}\) is the error or the so-called residue, i.e., the difference between the predicted and actual value.

In order to limit the computing time, the investigated time delays are restricted to ±2 s. The time delay, at which the linear regression yields the lowest mean square error \(\varepsilon\), is taken for the synchronization of the signals, and the corresponding vertical intercept a and slope b are used for the reconstruction of the MM signal MMsscalc by means of Eq. (1).

2.2 Evaluation of the goodness of fit

Equation (1) in connection with Eqs. (4) and (5) allows for predicting an MM signal without DTG even in the section where DTG is applied. Such a signal is needed to calculate the relative MM signal \(\Delta {\mathrm{MM}}_{\mathrm{ss}}\) over the whole measurement period by means of

$$\begin{aligned} \Delta {\mathrm{MM}}_{\mathrm{ss}} = {\mathrm{MM}}_{{\mathrm{ss}}} - {{\mathrm{MM}}_{{\mathrm{sscalc}}}}, \end{aligned}$$
(7)

from which the section marked with a dashed circle in the diagrams of Fig. 3 is used for analysis.

In order to evaluate the goodness of the fit, only the time section used for the reconstruction is considered (see the marked section in the diagrams of Fig. 3), since only there measured data values of the MM without DTG are available for comparison.

For this, the mean absolute percent error \(\Delta \left| {{\mathrm{MM}}_{{\mathrm{ss}}}^{\mathrm{r}}}\right|\)

$$\begin{aligned} \Delta \left| {{\mathrm{MM}}_{{\mathrm{ss}}}^{\mathrm{r}}}\right| = \frac{1}{N}\sum \limits _{i}^{N}\frac{\left| \Delta {\mathrm{MM}}_{{\mathrm{ss}},i}\right| }{{\mathrm{MM}}_{{\mathrm{ss}},i}} \times 100\%, \end{aligned}$$
(8)

and the linear correlation coefficient r (Eqs. 2, 3)

$$\begin{aligned} r = \frac{{C}_{{\mathrm{MM}}_{{\mathrm{ss}}},{\mathrm{CO}}_2}}{\sigma _{{\mathrm{MM}}_{\mathrm{ss}}}\times \sigma _{{\mathrm{CO}}_2}} \end{aligned}$$
(9)

with

$$\begin{aligned} {{\sigma _{{\mathrm{MM}}}}}_{{\mathrm{ss}}}= & \sqrt{\sum \limits _{i}^{N}\left( {\mathrm{MM}}_{{\mathrm{ss}},i} - \overline{{\mathrm{MM}}}_{{\mathrm{ss}}}\right) ^2},\\ {\overline{{\mathrm{MM}}}_{{\mathrm{sscalc}}}}= & \frac{1}{N}\sum \limits _{i}^{N}{{\mathrm{MM}}}_{{\mathrm{sscalc}},i}, \end{aligned}$$

are determined for each of the datasets measured in 92 adult subjects and 60 school-aged children.

From the adult subjects, there have been 35 healthy subjects (HA), 19 with chronic obstructive pulmonary diseases (COPD), 13 with cystic fibrosis (CF), and 25 with asthma (AS). They were measured at the center of pneumology and thoracic surgery at the Robert-Bosch-Hospital, Gerlingen, Germany.

Among the datasets of school-aged children, measured at the University Children’s Hospital of Bern, Switzerland, there have been 18 healthy children (CHA), 21 with cystic fibrosis (CCF), and 21 with asthma (CAS). Of importance, these datasets were not recorded with the software provided by the manufacturer (Spiroware, Eco Medics AG), but with WBreath (3.28, ndd, Zurich, Switzerland).

All subjects performed several tidal DTG-SBW tests per session as part of a large prospective cross-sectional study described in [25, 27]. The tests were approved by the local Ethics Committees. All patients and healthy controls provided full written informed consent. The children’s assent was obtained and all parents or caregivers provided full written informed consent.

All in all, a total of 703 datasets from the 92 adults and 177 from the 60 school-aged children have been available for the determination of the above described goodness of fit parameters for this reconstruction method. From the 703 datasets of adults, 290 came from the group of healthy adults, 198 from the group with COPD, 132 from the group with CF, and 83 from the group with asthma. From the 177 datasets of school-aged children, 47 came from the group of healthy children, 71 from the group with CF, and 59 from the group with asthma.

For a good fit, \(\Delta \left| {{\mathrm{MM}}_{\mathrm{ss}}^{\mathrm{r}}}\right|\) should be close to zero, r close to 1. \(\Delta \left| {{\mathrm{MM}}_{{\mathrm{ss}}}^{{\mathrm{r}}}}\right|\) close to zero indicates that the expected errors are low and the accuracy of the reconstruction method high. Thus, a correlation coefficient close to 1 and a mean absolute percent error close to zero confirms that the molar mass is well substituted by a linear fit. Since in each case the reconstruction method have to substitute the molar mass with a high accuracy all datasets are used for the evaluation of the goodness of fit.

2.3 Estimation of the respiratory quotient

We also wanted to know, whether our reconstruction method may be applicable for the estimation of the respiratory quotient. For that, we assumed that within the dried respiratory gas only the concentrations of CO2 and O2 are significantly changing. Then the MMss of the dried respiratory gas can be approximated by

$$\begin{aligned} {\mathrm{MM}}_{{\mathrm{ss}}} \approx {\mathrm{MM}}_{{\mathrm{const}}} + {{{\mathrm{mm}}_{{\mathrm{CO}}}}}_2 \times {\hbox {CO}}_2 + {{\mathrm{mm}}_{{\mathrm{O}}}}_{2} \times {\hbox {O}}_2. \end{aligned}$$
(10)

Here, \({\mathrm{mm}}_{{\mathrm{CO}}_2}[0.4401\,{\hbox {g}} / ({\hbox {mol}}\%)]\) and \({\mathrm{mm}}_{{\mathrm{O}}_2}[0.31998\,{\hbox {g}} / ({\hbox {mol}}\%)]\) are the specific molar masses of CO2 and O2, respectively, while MMconst represents the MM fraction of all those gas components, in particular nitrogen [\({\approx } 78\%, {\mathrm{mm}}_{{\mathrm{N}}_2} = 0.2801\,{\hbox {g}} / ({\hbox {mol}}\%)]\) and argon [\({\approx } 0.9\%, {\mathrm{mm}}_{{\mathrm{Ar}}} = 0.39948\,{\hbox {g}} / ({\hbox {mol}}\%)]\), which are supposed to be constant. Thus, if there really exists a high linear correlation between CO2 and MMss, and MMconst actually remains constant, then due to Eq. (10), this also leads to a high linear correlation of O2 to both MMss and CO2. In case of the correlation between CO2 as the independent and O2 as the dependent variable we have

$$\begin{aligned} {\hbox {O}}_2 = o + p \times {\hbox {CO}}_2, \end{aligned}$$
(11)

where p and o are the slope and intercept of the regression line. Since o stands for the O2-concentration at zero CO2-concentration, this parameter represents the O2-concentration of the inspired respiratory gas and should therefore be close to 21%.

In order to estimate the respiratory quotient, Eq. (11) is inserted into Eq. (10) and a time derivative is applied to MMss. Thus, we find

$$\begin{aligned} \frac{{\mathrm{d MM}}_{{\mathrm{ss}}}}{{\mathrm{d}}t} \approx {{\mathrm{mm}}_{{\mathrm{CO}_{2}}}} \frac{{\mathrm{d CO}_2}}{{\mathrm{d}}t} + {{\mathrm{mm}}_{{\mathrm{O}_{2}}}} \left( p\times \frac{{\mathrm{d}}{\hbox {CO}_2}}{{\mathrm{d}}t}\right) . \end{aligned}$$
(12)

Here, the term \(p\times \left( {\mathrm{d}}{\hbox {CO}}_2\right) /\left( {\mathrm{d}}t\right)\) represents the time rate of change of the O2-concentration. It has a linear relationship to the time rate of change of the CO2-concentration with the proportional factor p, whose reciprocal absolute value might be regarded as an estimation of the respiratory quotient (\({\mathrm{RQ}} \approx 1/p\)).

To test whether RQ can be estimated from a linear fit between CO2 and O2 we evaluated the correlation coefficients by applying our reconstruction method. Additionally we calculated the mean absolute percent error \(\Delta \left| {{{{\hbox {O}}_2}}^{\mathrm{r}}}\right|\) of this fit by means of

$$\begin{aligned} \Delta \left| {{{\hbox {O}}_2}}^{\mathrm{r}}\right| = \frac{1}{N}\sum \limits _{i}^{N}\frac{\left| {{{\hbox {O}}_2}}_{{\mathrm{calc}},i} - {{{\hbox {O}}_2}}_{i}\right| }{{{{\hbox {O}}_2}}_{i}} \times 100\%, \end{aligned}$$
(13)

where \({{{\hbox {O}}_2}}_{{\mathrm{calc}},i}\) and \({{{\hbox {O}}_2}}_{i}\) represent the reconstructed and measured O2-value.

3 Results

Figure 3 displays the influence of the low-pass filter on the quality of the reconstructed signal. The diagrams on the top show the \(\Delta {\mathrm{MM}}_{{\mathrm{ss}}}\)-signal, in the middle the measured and reconstructed MMss-signals, and at the bottom a zoomed section of the middle diagram for the sake of a better distinction between the measured and calculated MMss-signals. In (a) MMss has been reconstructed with unfiltered in (b) with filtered CO2-signal.

Fig. 3
figure 3

Reconstructed MMss-signal with unfiltered (a), and with filtered (b) CO2-signal; top diagrams \(\Delta {\mathrm{MM}}_{\mathrm{ss}}\)-signal, middle measured MMss- and reconstructed MMsscalc-signals, bottom zoomed section of the middle diagrams around the spike marked with a dashed circle in the top diagram. Without the filter, the spikes at the transition from in- to expiration and vice versa are more pronounced due to the dispersion effect and the difference in the respiratory gas mixture during the transition from ex- to inspiration

As an example for the application of the reconstruction method, Fig. 4 shows the scatter plots and corresponding time diagrams derived from one DTG-SBW test of a HA (a), COPD (b), AS (c), and CF (d) subject, respectively. In the scatter plots, the data values of MMss and CO2 taken from the time interval marked in the time diagrams above are displayed. These values are measured from the respiratory gas without DTG and therefore appropriate to determine the OLS regression coefficients to reconstruct the MMss-signal. The respective regression line and its coefficients as well as the reconstructed MMss-signal are shown in the scatter plots and time diagrams. The section of the MMss-signal, which is used for assessing demixing effects of SF5 and He is marked with a dashed circle.

Fig. 4
figure 4

Scatter plots and time diagrams of healthy (a), COPD (b), asthma (c), and CF (d) adult subjects. The scatter plots with CO2 as the independent and MMss as the dependent variable use data values taken from the time interval marked in the corresponding time diagrams. In these diagrams, the CO2-signal, measured in the main stream, the MMss-signal, measured in the side stream, the reconstructed MMsscalc-signal, and the \(\Delta {\mathrm{MM}}_{\mathrm{ss}}\)-signal as the difference of both MM signals are shown. In each scatter plot, the resulting regression line including the regression coefficients are presented

Table 1 shows the mean values and standard deviations (SD) of the linear regression coefficients and the parameters for the evaluation of the goodness of fit described in Sect. 2.2. They are averaged over all adult subjects as well as over all HA, all COPD, all AS, and all CF subjects. Additionally, for each parameter their range of encountered values is listed.

Table 1 Mean values and standard deviations including their range of encountered values of slope \(\overline{b}\), intercept \(\overline{a}\), correlation coefficient \(\overline{r}\), and mean absolute percent error \(\overline{\Delta |{\mathrm{MM}}_{\mathrm{ss}}^\mathrm{r}|}\) evaluated from 703 datasets of adults and their groups they belong to

As an example, Fig. 5 displays the scatter plot and corresponding time diagram derived from a DTG-SBW test of a healthy child. The regression line and regression coefficients are evaluated from the measured CO2- and MMss-values within the time period marked in the time diagram above. Again, the section of the MMss-signal which is used for the analysis is marked with a dashed circle.

Fig. 5
figure 5

Scatter plot with regression line and regression coefficients generated from the CO2- and MMss-values within the time period marked in the time diagrams above, in which the measured and reconstructed signals of a child are shown

Table 2 presents the same parameters as Table 1, however, this time calculated from the datasets of the children.

Table 2 Mean values and standard deviations including their range of encountered values of slope \(\overline{b}\), intercept \(\overline{a}\), correlation coefficient \(\overline{r}\), and mean absolute percent error \(\overline{\Delta |{\mathrm{MM}}_{\mathrm{ss}}^\mathrm{r}|}\) evaluated from 177 datasets of children and their groups they belong to

As an example for the estimation of RQ, Fig. 6a shows a scatter plot of CO2 and O2 including the regression line and regression coefficients for a healthy subject. They are calculated from the CO2- and O2-values within the marked section of Fig. 6b, where the CO2-, O2- and \({\mathrm{MM}}_{\mathrm{ss}}\)-signals with end-expiratory and end-inspiratory concentration values for the determination of the respiratory quotients are displayed.

Fig. 6
figure 6

a Scatter plot with regression line and regression coefficients for a healthy subject with CO2 as the independent and O2 as the dependent variable. The data values are from the signals shown in the below diagram. b CO2-, O2- and \({\mathrm{MM}}_{\mathrm{ss}}\)-signals with end-expiratory and end-inspiratory concentration values for the determination of the respiratory quotient. The concentration values are given in percent

Table 3 lists additionally to the O2- and CO2-concentrations, which have been found in the different end-expiratory (ee) and end-inspiratory (ei) respiration cycles within the diagram of Fig. 6b, the corresponding evaluated RQ values. The concentration values in this table are given in percent.

Table 3 O2- and CO2-concentration values and the resulting respiratory quotient (RQ). The subscripts ee and ei stand for end-expiratory and end-inspiratory. Within all respiratory cycles it is \({{\hbox {CO}}_{2,{\mathrm{ei}}}}\approx 0\%\). All concentration values are given in percent (%)

Table 4 shows the mean values and standard deviations (SD) of the linear regression coefficients, the parameters for the evaluation of the goodness of fit, and the estimated RQs which result from the datasets of the adults when applying the linear fit between CO2 and O2. Like in Table 1 they are averaged over all adult subjects as well as over all HA, all COPD, all AS, and all CF subjects. Additionally, for each parameter their range of encountered values is listed.

Table 4 Mean values and standard deviations including their range of encountered values of slope \(\overline{p}\), intercept \(\overline{o}\), correlation coefficient \(\overline{r}\), mean absolute percent error \(\overline{\Delta |{{{\hbox {O}}_2}}^\mathrm{r}|}\), and estimated RQ as a result from the linear fit between CO2 and O2. They are evaluated from 703 datasets of adults and their groups they belong to

4 Discussion

From Fig. 3 it can be seen, that at the transition from in- to expiration, and vice versa, the spikes in the \(\Delta {\mathrm{MM}_{\mathrm{ss}}}\)-signal are less pronounced with than without the filter. The reason for that is that the filter compensates for both the dispersion effect and the slight difference in the respiratory gas mixture measured by the CO2- and the \(\mathrm{MM}_{\mathrm{ss}}\)-sensor at the beginning of the inspiration phase, where the subject inspires gas from the dead space formed by the tube of the main stream.

The CO2-concentration of the gas is equal to that of the expired gas and, therefore, about \(4\%\). Since the CO2-sensor is located at the end of this tube, it measures the CO2-concentration of the whole dead space volume, while the \({\mathrm{MM}}_{\mathrm{ss}}\)-sensor at the end of the side stream tube receives its gas not quite from the end of that tube. As a consequence, the MM decreases slightly earlier than the CO2-concentration, as can be seen in the lower diagram of Fig. 3a. However, this effect does not play any role at the beginning of expiration, since the CO2-concentration in the dead space volume of the respiratory tract is about zero. That, in addition with the much more rapidly changing CO2-concentration during inspiration, explains why the spikes are more expressed at the transition from expiration to inspiration.

The results in Tables 1 and 2 show that regardless of whether the datasets are from adults or children the proposed method is very well suited for the reconstruction of the MM by means of the CO2-concentration.

The averaged values, standard deviations and range of encountered values for r listed in those tables demonstrate that within each investigated dataset r is very close to 1. This means that even in the worst case there is a very high correlation between the MM and the CO2-concentration.

Additionally, the averaged values, standard deviations and range of encountered values for \(\Delta \left| {{\mathrm{MM}}_{\mathrm{ss}}^\mathrm{r}}\right|\) indicate that the values are very well predicted by the reconstruction method, and even in the worst case only a small error is to be expected.

This may suggest that the current method is at least non-inferior compared to the \({\mathrm{MMss}}_{\mathrm{calc}}\) method based on both CO2 and O2-signals [28].

The main outcome parameter for analysis, the slope between 60 and \(90\%\) of the expired volume, is only dependent on the shape of the curve. In this case, absolute values of the molar mass are of less importance. However, in cases where absolute values become important, like the absolute peak at mid-expiratory phase or the area under the curve (AUC), a level of error based on clinical significance must be found at which the reconstruction can be identified as failed. Especially the AUC has shown to be of clinical significance [13]. Presently, a reliable level of error for the reconstruction cannot be provided until systematic analysis of the influence of breathing pattern and variations of the tracer gas components on the molar mass signal are available.

Applying the linear regression method for CO2 and O2 to all 703 datasets of adults, we get the averaged values and standard deviations of slope and intercept as \(\overline{p} = -0.945 \pm 0.107\) and \(\overline{o} = 20.92 \pm 0.094\) with a mean absolute percent error of \(\overline{\Delta |{{{\hbox {O}}_2}}^\mathrm{r}|} = 0.80\%\). As can be seen, the mean value of o actually lies close to \(21\%\) as expected. Inserting Eq. (11) into Eq. (10) and using above mean values, we get

$$\begin{aligned} {{\hbox {MM}}_{\mathrm{ss}}} \approx 2891~{\mathrm{g/mol}} + 0.138~{\mathrm{g/(mol\%)}}\times {\hbox {CO}}_2. \end{aligned}$$
(14)

When comparing the intercept and slope values of the regression line described by Eq. (14) with those listed in the first row of Table 2, we find that they are very similar. This means that the regression line described by Eq. (1) does not only represent a pure mathematical fitting but, due to Eq. (10), also a physical approximation.

In case of the regression line shown in Fig. 6 we get a p value of \(-1.027\) which gives an \(\mathrm{RQ}\) estimate of about 0.973. When calculating the \(\mathrm{RQ}\) over several respiratory cycles (Table 3) from the same O2- and CO2-signals (Fig. 6) used for the determination of the regression line, we obtain an average RQ of 0.97, which in fact is very close to the above estimate.

However, the range of encountered values for RQ shown in Table 4 reveals that despite the result found in the example above an overall reliable estimation of RQ was not possible. The values for the regression coefficients and mean absolute percent error as well as the range of encountered values listed in Table 4 show that the O2-signal cannot be reconstructed with the same high accuracy like the molar mass signal. In case of \({\mathrm{MM}}_{\mathrm{ss}}\) the maximum mean absolute percent error is lower then \(0.08\%\), while in case of O2 it is almost \(3.3\%\), i.e., about a factor of 41 higher than that of \({\mathrm{MM}}_{\mathrm{ss}}\). We assume that this is the reason why in some cases an unphysiological RQ up to a value of 2 is estimated.

5 Conclusion

Without DTG, there is a high correlation between the CO2-concentration and the MM in the dried respiratory gas. This is a prerequisite for the DTG-SBW test to correct for naturally exhaled CO2 and extract the SF6-He washout behavior. This method allowed us to reconstruct the MM without DTG, by means of the OLS regression method, even if DTG is applied. Our results showed that this method is applicable to datasets of both healthy subjects and subjects with COPD, CF and asthma. However, a reliable estimation of the respiratory quotient with that method appears to be impossible.

We have also demonstrated that this method is applicable to datasets measured from children. Thus, the proposed reconstruction method fulfills all requirements to become the standard method of choice within the DTG-SBW, since it is simple and has a high reliability and reproducibility. The use of a standard reconstruction method have major implications for the clinical practice, since it avoids variability within the datasets coming from different reconstruction methods, and it makes the datasets comparable among each other.

Although the DTG-SBW has major advantages for the patients, as it is fast and easy to perform and provides the assessment of both, the global and peripheral ventilation inhomogeneities, there are still some challenging questions, which has to be answered before it will be accepted within the clinical practice. Related to the reconstruction method presented in this paper, a reliable level of error must be found which are based on the clinical acceptance and therefore indicate that the reconstruction failed.

Such a level of error could be also used within the clinical application as online control during the measurement. Since the reconstruction could already be started short after a few respiration cycles with medical air, a threshold for the mean absolute percent error, for instance, could be used to indicate, that the measurement must be interrupted due to a maybe weak sealing of the mouthpiece or insufficient functioning of the nafion® tube.