1 Introduction

Mechanical ventilation is a supportive intervention used to sustain respiratory function in patients with acute respiratory failure. The goals of mechanical ventilation are to ensure adequate oxygenation, carbon dioxide elimination and respiratory muscle unloading, and to decrease the oxygen cost of breathing. While mechanical ventilation has been proven to be extremely effective for managing a variety of patients [1, 2], it is associated with a risk of ventilator-induced lung and diaphragm injury [2, 3], especially if ventilator settings are not optimized. For instance, permitting higher plateau pressures (pressure at end-inspiration when there is no flow) or higher tidal volumes can result in dangerously high levels of lung stress and strain [4], which may lead to the development of acute lung injury [5].

The relatively recent recognition of ventilator-induced diaphragm dysfunction and the conceptualization of diaphragm-protective ventilation has significantly increased the complexity of ventilation by introducing an additional (and sometimes competing) therapeutic target: a safe level of inspiratory effort [3]. Coupled with the fact that patient characteristics can differ significantly and can change over the course of the illness, it can be challenging for even experienced clinicians to adjust ventilator settings to provide the ideal ventilation strategy individualized to the patient.

To aid in the selection of appropriate ventilator settings, numerous computerized decision support systems (CDSSs) have been developed. Earlier CDSSs were mostly rule-based systems that used clinical heuristics—simplified decision-making strategies that use only a few available parameters—to select ventilator settings [6]. Rule-based systems attempt to achieve specified ventilation targets [7, 8] or maintain a patient’s ventilatory parameters within a predetermined comfort range [9]. They are designed to help clinicians by providing them with suggestions on what actions to take when the conditions for the actions are met. However, these systems do not consider the physiological differences between patients, or even the same patient at different times in the disease process, and thus do not ensure that the suggested actions are optimal for each individual patient at any point in time. In addition, rule-based systems do not provide clinicians with insight into a patient’s physiological state. In contrast to rule-based CDSSs, physiologically based CDSSs are useful for optimizing ventilator settings for individualized patient safety, predicting the effects of various ventilation strategies, and monitoring a patient’s overall physiological status [10].

To date, existing physiologically-based CDSSs have not specified patient respiratory effort or transpulmonary pressure (a more direct measure of dynamic lung stress than tidal volume) as targets for ventilation. Some physiologically-based CDSSs focus primarily on modeling pulmonary gas exchange and ensuring safe and adequate oxygenation and CO2 elimination [11,12,13,14,15]. Others integrate lung protection as a ventilation target but rely on indirect parameters of lung stress (tidal volume) and patient effort (respiratory rate, oxygen consumption) [16]. Preliminary data suggest that a CDSS designed in this way achieves safe ventilatory conditions in patients who are weaning from mechanical ventilation [17]. It is uncertain whether this approach would effectively avoid both overassistance and under-assistance diaphragm myotrauma— [3, 18]. Moreover, existing systems do not account for the effects of sedation on respiratory drive and inspiratory effort [19,20,21]. Finally, existing CDSSs operating under pressure support ventilation, a common mode of assisted ventilation, do not incorporate the expiratory cycling threshold; this important setting determines patient-ventilator synchrony and can substantially modify the volume delivered by the ventilator. Incorporating this setting into the CDSS might significantly enhance the effectiveness and tolerability of ventilation.

In this paper, we propose a novel integrated physiological model that can provide the foundation for a CDSS targeting both lung and diaphragm protection under two paradigmatic modes of assisted ventilation, pressure support and proportional-assist ventilation. The latter was included as a prototypical mode where ventilator support is proportional to patient effort. Compared to existing models, our model is the first to (1) focus on the effects of respiratory effort on lung as well as diaphragm injury; (2) output target indicators theorized to directly reflect the risk of lung and diaphragm injury [18, 22,23,24]; (3) consider the impact of propofol, a common drug used to sedate patients under ventilatory care; (4) incorporate an expiratory cycling threshold under pressure support mode. While mathematical equations describing the dynamics of these four factors exist in the literature, to the best of our knowledge this is the first attempt to integrate them together into a single cohesive mathematical model. Section 2 describes the individual systems incorporated into the model, how they are integrated, and how outputs are generated. Section 3 demonstrates the validity and robustness of the model through a simulation study. Section 4 offers a discussion of the rationale for the model, how it compares to existing models, the results of the simulation study, and the model’s limitations.

2 A lung and diaphragm-protective ventilation model

The proposed model is termed the Lung and Diaphragm-Protective Ventilation (LDPV) model. The parameters of the model are evaluated under steady-state conditions in the presence of anesthesia, with the overall system consisting of five individual components:

  1. 1.

    Respiratory drive

  2. 2.

    Pharmacokinetics of propofol

  3. 3.

    Acid–base homeostasis

  4. 4.

    Ventilator mechanics

  5. 5.

    Lung and respiratory muscle mechanics

Figure 1 illustrates how each component interacts with the rest of the model. Individual components require either patient-specific parameters, control parameters or calculated parameters as inputs. Patient-specific input parameters are values that vary from patient to patient. These parameters can either be relatively stable within patients over brief periods (such as lung elastance and central chemoreceptor sensitivity) or change throughout the duration of the intervention (such as respiratory frequency). Control parameters are values that clinicians can directly modify. In the LDPV model, the control parameters are: ventilator mode, inspiratory support level, flow-cycle threshold, propofol infusion rate and propofol infusion duration. Calculated parameters, such as CO2 partial pressure, are intermediate parameter values determined by system components using patient and control parameters. Each component produces either calculated parameters or the final model outputs indicators. The system has three output indicators: transpulmonary driving pressure (the swing in transpulmonary pressure between end-inhalation and end-expiration, ∆PL), esophageal driving pressure (the swing in esophageal pressure between end-inhalation and end-expiration, ∆PES) and pH.

Fig. 1
figure 1

The five components of the LDPV model. Only factors which facilitate interaction between the components are displayed on the arrows. Calculated parameters (hydrogen ion concentration, propofol concentration, patient desired tidal volume, ventilator tidal volume, total patient tidal volume, partial pressure of CO2, muscle pressure) are denoted in black. Control parameters (propofol controls, ventilator controls) are denoted in red. Output indicators are denoted in blue (pH, esophageal pressure swing, transpulmonary pressure swing)

Section 2.12.5 provide mathematical descriptions of each system component. The patient parameters necessary for each component are given in Table 1. All relevant mathematical symbols are defined in Online Resource 1. The full solution process is detailed in Online Resource 2.4.

Table 1 Inputs and outputs of the LDPV model

2.1 Respiratory drive

We model spontaneous respiration using three components [25]: central chemoreflex drive (Dc), peripheral chemoreflex drive (Dp), and a wakefulness drive (Dw), quantified in litres/min. The sum of the three describes the overall desired minute ventilation of the patient (Ve,patient).

$$\begin{array}{c}{V}_{e,patient}={D}_{c}+{D}_{p}+{D}_{w}. \end{array}$$
(1)

As the model is evaluated under steady-state conditions, the response speed difference between the central and peripheral receptors does not influence the model and is thus not considered. In addition, since the model is evaluated under the presence of anesthesia, Dw is assumed to be zero. The central and peripheral chemoreflex drives are given by [25]

$$\begin{array}{c}{D}_{c}=max\left\{0,{S}_{c}\left(\left[{H}^{+}\right]-{T}_{c}\right)\right\} \end{array}$$
(2)

and

$$\begin{array}{c}{D}_{p}=\mathrm{max}\left\{0,{S}_{p}\left(\left[{H}^{+}\right]-{T}_{p}\right)\right\}, \end{array}$$
(3)

respectively. The chemoreflex drives are determined by the hydrogen ion concentration ([H+]), patient-specific receptor sensitivities (Sc, Sp) and patient-specific receptor thresholds (Tc, Tp). Since [H+] is heavily affected by the partial pressure of arterial CO2 (PCO2, see Sect. 2.3), PCO2 is a crucial determinant of respiratory drive. In addition, below the receptor thresholds, no respiratory drive is generated. Hence, a max function is needed to constrain Dc and Dp to non-negative values.

Peripheral receptor sensitivity is determined by a variety of patient-specific parameters [25], most notably the partial pressure of arterial O2 (PO2). In contrast, evidence suggests that the sensitivity of the central receptors is heavily modulated by propofol levels (Cprop) [19]. To estimate the influence of Cprop on Sc, we performed linear regression on the only existing (but very limited) clinical data relating to these variables [19], yielding the following relationship:

$$\begin{array}{c}{S}_{c}=-0.469{C}_{prop}+1.492. \end{array}$$
(4)

As the available clinical data measured receptor sensitivity in response to PCO2 rather than [H+], the modified Stewart acid–base model [25] was used to generate a conversion factor to modify the linear regression. While the factor was found to increase with increasing PCO2 levels across a range of applicable PCO2 values (20–70 mmHg), it only varied from 1.03 to 1.09. Hence, to reduce complexity, a fixed value of 1.06 was used. Multiplying this factor through the linear regression model in Eq. (4) yields the following relation between central receptor sensitivity and Cprop:

$$\begin{array}{c}{S}_{c}=-0.497{C}_{prop}+1.580. \end{array}$$
(5)

2.2 Pharmacokinetic model of propofol

We used a previously described pharmacokinetic (PK) model [26] to simulate the effects of propofol on respiration (Fig. 2). As seen in Fig. 3, the propofol PK model incorporates both patient-specific input parameters and control parameters (rate and duration of infusion), and outputs a predicted concentration of propofol in the patient’s blood (Cprop) (Figs. 4, 5, 6). This concentration is then used to determine the impact of propofol on respiration. The complete mathematical details regarding the incorporation of this model can be found in Online Resource 2.

Fig. 2
figure 2

The patient’s respiratory control system requires patient (gray) and calculated (red) inputs and outputs patient tidal volume (green). Only direct inputs are included

Fig. 3
figure 3

The propofol pharmacokinetic system takes in several patient (gray) and control parameters as inputs (blue) and outputs propofol concentration (green). Only direct inputs are included

Fig. 4
figure 4

The acid–base model requires patient (gray) and calculated (red) inputs and outputs pH (green). Only direct inputs are included

Fig. 5
figure 5

The ventilator system requires patient (gray), control (blue) and calculated (red) inputs and outputs ventilator tidal volume (green). Only direct inputs are included

Fig. 6
figure 6

The lung and respiratory muscle system requires patient (gray) and calculated (red) inputs and outputs patients’ driving transpulmonary pressure (∆PL) and esophageal pressure (∆PES) swings (under steady-state conditions). Only direct inputs are included

2.3 Acid–base homeostasis

We used a modified version of the Stewart acid–base model [25], shown in Eq. (6). The Stewart acid–base model describes arterial blood and uses physiologically interpretable parameters to provide greater quantitative insight into acid–base disorders than other acid–base models [27, 28], at the expense of additional complexity. The modified version we use substitutes albumin and phosphate for total protein, addressing some of the weaknesses of the original Stewart model [29].[H+], which determines pH, is calculated via the following equation, using PCO2, strong ion difference (SID), phosphate (Pi), and albumin (Alb):

$$\begin{array}{c}SID+\left[{H}^{+}\right]-\frac{{K}_{c}{P}_{CO2}}{\left[{H}^{+}\right]}-\left(21Alb\cdot \frac{10}{66500}-\left[{H}^{+}\right]\cdot \frac{16Alb\cdot \frac{10}{66500}}{{K}_{h}+\left[{H}^{+}\right]}\right)-\\ \frac{2{K}_{3}{K}_{c}{P}_{CO2}}{[{H}^{+}{]}^{2}}-\frac{{K}_{w}}{\left[{H}^{+}\right]}-Pi\cdot \left(2-\frac{\left[{H}^{+}\right]}{{K}_{2}+\left[{H}^{+}\right]}\right)=0. \end{array}$$
(6)

The equation also uses several constants, namely the ion product for water (Kw), phosphoric acid dissociation constant (K2), carbonate dissociation constant (K3), histidine dissociation constant (Kh), and equilibrium and solubility constants (Kc).

2.4 Ventilator mechanics

Our LDPV model estimates the contribution of the ventilator to total tidal volume under both pressure support ventilation (PSV) and proportional assist ventilation (PAV) modes.

2.4.1 Pressure support ventilation mode

Under PSV, the minimal tidal volume delivered by the ventilator in the quasi-absence of patient effort.

(Vt,vent) is related to the patient’s resistance (R) and total elastance (ERS) and is represented as [30]

$$\begin{array}{c}{V}_{t,vent}=\frac{PSV-{V}_{TH}R}{{E}_{RS}}. \end{array}$$
(7)

The control parameter PSV represents the inspiratory pressure above PEEP applied by the ventilator to deliver a tidal breath [30]. Under pressure support, the ventilator delivers the set inspiratory pressure when a patient triggers the ventilator. To terminate inspiratory flow, the flow-cycle threshold (VTH) must be reached [31]. While this value is typically chosen to be 25% of the inspiratory peak flow, this percentage can be modified at the discretion of the clinician according to the patient’s mechanics [32, 33] and is thus also included as a control parameter in the LDPV model as the flow-cycle proportion (xTH). The mathematical derivation required to determine the peak flow, and hence the flow-cycle threshold, is covered in Online Resource 2.2.

2.4.2 Proportional assist ventilation mechanics

Under PAV mode, the pressure delivered by the ventilator is set as a fraction of the total pressure applied to the respiratory system resulting from the combined pressures generated by the ventilator and the patient [34]. In PAV, ventilator inspiratory flow is zero when patient inspiratory flow ceases. Hence, the tidal volume specifically attributed to the ventilator (Vt,vent) is computed as:

$$\begin{array}{c}{V}_{t,vent}=\frac{k}{1-k}\cdot {V}_{t,patient}. \end{array}$$
(8)

In this case, the clinician controls the proportional assist factor (k), which scales the pressure and flow (and resulting tidal volume) delivered by the ventilator in relation to the tidal volume generated by the patient’s respiratory effort (Vt,patient). The factor k ranges between 0 and 1 and determines the proportion of total ventilation delivered by the ventilator.

2.5 Lung and respiratory muscle mechanics

One of the key equations governing gas exchange is the minute ventilation equation [34]:

$$\begin{array}{c}{V}_{e,total}=\frac{K{\dot{V}}_{CO2}}{{P}_{CO2}\left(1-\frac{{V}_{D,anat}}{{V}_{t,total}}-{V}_{D,alvratio}\right)}. \end{array}$$
(9)

This equation relates a patient’s total minute ventilation (Ve,total) to their arterial PCO2 levels and their systemic CO2 production (CO2), while taking into account their anatomic dead space volume (VD,anat) and alveolar dead space fraction (VD,alvratio, ratio between alveolar dead space and tidal volume). The proportionality constant (K = 0.863) serves to correct for temperature and humidity [34]. The minute ventilation equation governs the relationship between PCO2 and minute ventilation and is represented as the metabolic hyperbola in Fig. 7. The intersection between the metabolic hyperbola and the chemoreceptive drive curve determines the steady state conditions for minute ventilation when the wakefulness drive to breathe is zero.

Fig. 7
figure 7

A respiratory response curve showing the intersection between the chemoreceptive drive (Eq. (1), denoted by red) and the alveolar equation (Eq. (9), denoted by black). This relationship applies during sleep or sedation, when wakefulness drive is zero

To estimate the driving transpulmonary pressure (∆PL) and esophageal pressure (∆PES) swings obtained at a given level of minute ventilation and ventilator support under static conditions, the LDPV model applies the equation of motion for the respiratory system, a simple, single compartment representation of the respiratory system [35, 36]. The mean inspiratory flow generated by the patient can be represented as Vt,patient/Ti, where Vt,patient is the tidal volume resulting from a patient’s respiratory drive. The respiratory muscle pressure (Pmus) can then be related to the intrinsic partial positive end-expiratory pressure (PEEPi), Vt,patient, R, ERS, and Ti:

$$\begin{array}{c}{P}_{mus}=\frac{{V}_{t,patient}}{{T}_{i}}R+{V}_{t,patient}{E}_{RS}+PEEPi. \end{array}$$
(10)

Using the calculated values of Pmus and total tidal volume (Vt,total = Vt,patient +Vt,vent) along with lung (EL) and chest wall (ECW) elastance, a patient’s ∆PL and ∆PES can be calculated as

$$\begin{array}{c}\Delta {P}_{L}={V}_{t,total}{E}_{L}\end{array}$$
(11)

and

$$\begin{array}{c}\Delta {P}_{ES}={V}_{t,total}{E}_{CW}-{P}_{mus}\end{array}$$
(12)

3 Model simulations

We conducted a series of simulations to test the functionality and robustness of the model using Python 3.6.0, with Newton’s method being used to solve the system of equations. Initial estimates for the intermediate variables used in the calculations are shown in Table 2.

Table 2 Initial solution estimates of the intermediate variables associated with the LDPV model

3.1 Simulation method

3.1.1 Patient response to manipulation of model control variables

We first illustrate the model’s interpretation of patient response to varying levels of ventilatory support and propofol. Nominal parameter values (Tables 3 and 4) were based on clinical experience or values found in literature [25, 27]. Although Cprop is an intermediate variable which depends on several pharmacokinetic related patient-specific parameters (height, weight, dose, etc.), it was modified directly in simulations for simplicity.

Table 3 Nominal values, ranges and step-sizes of patient parameters used in model simulations
Table 4 Nominal values of static input variables used in model simulations and their input ranges for the Morris sensitivity analysis

The CO2 response curve under different levels of assist (for both PSV and PAV modes) and at different propofol levels was determined by individually plotting the minute ventilation equation and patient response as found through the model. Simulations to validate the effect of each control parameter on the output indicators were also conducted, with full details and results available in Online Resource 3.1 and 4.

3.1.2 Parameter sensitivity

To further validate the model, a global sensitivity analysis was performed on all patient-specific and control parameters. Due to its low computational demand, the sensitivity analysis was performed using the Morris method [37] as implemented by Campolongo et al. [38]. All parameters were varied across the ranges stated in Tables 3 and 4. No static or nominal values were used for the sensitivity analysis. The full details and results of the sensitivity analysis can be found in Online Resource 3.2 and 4.2.

3.1.3 Robustness of the model

To demonstrate model robustness, we show that it produces outputs that remain within physiologically plausible limits for all possible combinations of clinically relevant inputs. These limits were determined based on clinical experience and are as follows:

$$0\le \Delta {P}_{L}\le 40.0$$
$$-40.0\le \Delta {P}_{ES}\le 0$$
$$7.10\le pH\le 7.60$$

To determine extremal values of the model outputs, we solved two multi-objective optimization problems:

$$\begin{array}{c}\underset{\mathbf{x}}{\mathrm{m}\mathrm{a}\mathrm{x}\mathrm{i}\mathrm{m}\mathrm{i}\mathrm{z}\mathrm{e}} \left\{\Delta {P}_{L}\left({\text{x}}\right),\left|\Delta {P}_{ES}\left({\text{x}}\right)\right|,pH\left({\text{x}}\right)\right\}\#\end{array}$$
(13)
$$\begin{aligned} & {\text{subject~to~~}}{\mathbf{l}} \le {\text{x}} \le {\mathbf{u}}\# \\ & \mathop {{\text{minimize}}}\limits_{{\mathbf{x}}} ~~\left\{ {\Delta P_{L} \left( {\text{x}} \right),\left| {\Delta P_{{ES}} \left( {\text{x}} \right)} \right|,pH\left( {\text{x}} \right)} \right\}\# \\ & {\text{subject~to~~}}{\mathbf{l}} \le {\text{x}} \le {\mathbf{u}}\# \\ \end{aligned}$$
(14)

In models (13) and (14), x is the vector of decision variables representing the model inputs, namely the patient-specific parameters and the controls. The l and u represent lower and upper bounds on the inputs as defined in Table 3. These bounds were derived based on clinical experience. The absolute value around ∆PES ensures that the objectives maximize and minimize the esophageal pressure swings, as esophageal pressure is negative.

To reduce the number of possible combinations of variables to examine, several were assigned a static nominal value (Table 4). These variables were chosen to remain static as they are either difficult to measure clinically, have minimal individual impact on the final model outputs, or are unlikely to vary greatly in the clinical setting. After fixing these variable values, the resulting vector x had dimension 11 under pressure support and dimension ten under proportional assist.

Viewed as multi-objective optimization problems with three objective functions, our goal was to generate an approximate Pareto optimal set for models (13) and (14). The Pareto optimal set is defined as the set of “non-dominated” output values {ΔPL(x), |ΔPES (x)|, pH(x)}, i.e., those that cannot be improved upon simultaneously in all three indicators and where improvement in any one of the indicators necessarily results in a degradation in the others. Since the objective functions are highly nonlinear functions of the decision variables x, a local neighborhood search method was employed to solve both models (see Online Resource 3.3).

3.2 Simulation results

Figure 8a–d show the CO2 response curve resulting from the model simulation using the nominal patient parameters. Several levels of ventilatory assist and propofol concentrations were simulated. Increasing pressure support induces a parallel shift in the simulated respiratory response (Fig. 8a), while increasing proportional assist increased the slope of the simulated response (Fig. 8b). The slope of the pressure support response can be decreased by increasing the flow-cycle threshold (Fig. 8c). For both pressure support and proportional assist, the introduction of propofol decreased the slope of the CO2 response (Fig. 8d). All of the outputs generated from the local neighborhood search under pressure support ventilation for both the maximization and minimization problems are shown in Fig. 9a. Removing the dominated points (points in which all three output values—∆PL, ∆PES, pH—are smaller than another existing point) results in the maximum and minimum frontiers shown in Fig. 9c. This figure also shows the range of physiologically plausible values for each output as the bounding box. Similar results can be seen for the outputs generated under proportional assist ventilation in Fig. 9b, d. As can be seen, the vast majority points forming the Pareto-optimal fronts lie within the bounding box, with the two offending points being marginally outside. Table 5 shows range of the outputs under both pressure support and proportional assist ventilation modes.

Fig. 8
figure 8

PCO2 response curve a under pressure support ventilation b under proportional assist ventilation c under pressure support when flow-cycle threshold is modified by adjusting the flow-cycle proportion d when propofol is introduced. The effects of increased ventilator support or propofol concentration on Ve,patient is shown using the thinner lines. The black vertical line indicates the apneic threshold

Fig. 9
figure 9

All sets of {∆PL,PES, pH} under a pressure support ventilation b proportional assist ventilation found through the local neighbor search for both maximization and minimization problems. Maximum and minimum Pareto-optimal fronts under c pressure support ventilation d proportional assist ventilation found through the local neighbor search. The box represents the set of plausible output values, determined through clinical experience

Table 5 Ranges of the outputs obtained from simulations under both pressure support (PSV) and proportional assist (PAV)

4 Discussion

4.1 Model rationale

The model presented in this paper, based on known ventilatory equations, provides the foundation for a CDSS designed to achieve lung- and diaphragm-protective mechanical ventilation. Although a CDSS requires much more than just a physiological model, the LDPV model is the first step towards a CDSS which aims to improve patient lung and diaphragm safety. The intermediate and final indicators of the model can also provide additional physiological insight into the patient’s condition and disease-related respiratory derangements. This model is also the only one in literature to date to incorporate the effects of propofol and flow-cycle threshold, factors that are often present in the clinical setting.

In the LDPV model, the primary control parameters included are the mode of ventilation, the rate and duration of propofol infusion (Sect. 2.2), the level of inspiratory pressure to be applied by the ventilator (Sect. 2.4) and the flow-cycle proportion when the patient is receiving pressure support ventilation (Sect. 2.4.1). These inputs were chosen as the primary control parameters because both propofol and ventilatory support are routinely used to modulate patient respiration. Propofol depresses the patient’s response to hypoxia and hypercapnia [19, 39]. The level of sedation patients receive can thus have a significant effect on their ventilatory response and their respiratory effort level [20, 21]. Similarly, both modes of assisted ventilation included in the model have the primary goal of supporting patient ventilatory effort [34, 40], and are thus important for the model.

In our model, a patient’s spontaneous ventilation is the sum of the central chemoreflex, peripheral chemoreflex, and wakefulness respiratory drives (which is zero while under anesthesia) as determined through a respiratory control model (Sect. 2.1). Using a respiratory control model allows us to establish a quantitative relationship between ventilator settings and respiratory effort [25]. Although the model is evaluated under steady-state conditions, determining both the central and peripheral chemoreflex drives is necessary as propofol, one of the chosen control parameters, only affects central chemoreflex receptors. Thus, the included respiratory control model was selected as it separates the impact of the central and peripheral chemoreflex drives on respiration, allowing the model to be more easily modified to include propofol. Furthermore, the selected model of respiratory control has been previously evaluated and fitted to testing results [41] and utilizes physiologically relevant parameters, which ensures that the overall model remains interpretable.

The Stewart model of acid–base was included in the model to ensure that the effects of metabolic acidosis and alkalosis are considered when adjustments are made to the controls. Maintenance of acid–base homeostasis is a primary goal of ventilation; therefore, the model must accurately estimate the effects of ventilation and sedation on pH. The Stewart model was chosen as it provides a reliable quantitative approach to mathematical modelling of acid–base disorders [42] and has already been previously integrated into the selected respiratory control model by other investigators [25]. The metabolic hyperbola and respiratory equation of motion (Sect. 2.5) are included in the LDPV model to relate the respiratory drives generated by the chemoreceptors to the respiratory response to CO2 [34], enabling identification of steady state ventilation conditions. The output indicators for lung and diaphragm protective ventilation (∆PL, ∆PES) can then be easily determined.

Unlike many other mechanical ventilation models, the model presented does not describe pulmonary gas-exchange [11,12,13, 15]. A complex pulmonary gas-exchange system was deemed unnecessary for the LDPV model for several reasons:

Gas exchange is relatively easily managed and monitored using readily available clinical measurements [40].

The primary objective of the assisted ventilation modes incorporated into the model is to reduce a patient’s respiratory effort rather than to optimize gas exchange [34, 40].

The LDPV model’s output indicators are targeted solely towards improving lung and diaphragm safety rather than ensuring adequate oxygenation and gas-exchange.

Since the LDPV model does not describe pulmonary gas-exchange, it is somewhat less complex than other physiological models. While reduced complexity may result in the model being less physiologically accurate, it allows for the model outputs to be more easily interpreted and can provide clinicians with a clearer understanding of patient physiology. In addition, the model does not allow for the modification of positive-end expiratory pressure (PEEP). While modifying PEEP can influence respiratory effort, mechanics and gas exchange, it is highly unpredictable and to our knowledge, there is no existing mathematical model of the relationship between PEEP and respiratory drive. A future approach to incorporating PEEP into the LDPV model may require the integration of an empirical evaluation of patient response to PEEP.

The LDPV model is one of the only mechanical ventilation models that incorporates chemoreflex respiratory control. The INVENT system [12] adapts the same respiratory control model but determines the hydrogen ion concentrations affecting each chemoreceptor. In the INVENT system, central chemoreceptor drive is dependent on cerebrospinal fluid (CSF) hydrogen ion concentrations while peripheral chemoreceptor drive is dependent on arterial hydrogen ion concentration. This increases the complexity of the system as a CSF acid–base model is necessary, in addition to the model for blood acid–base. Furthermore, while the increased specificity may improve system accuracy, it also introduces additional assumptions and limitations. In INVENT, the CSF strong ion difference is assumed to be a constant value estimated from venous blood bicarbonate. In addition, CSF hydrogen ion concentration is dependent on cerebral blood flow, which can change in response to changes in the bicarbonate concentration or arterial CO2 pressure and this variation is not accounted for by the CSF acid–base model [43]. In contrast, the respiratory control model presented here is adapted directly [25] and accounts for the difference between the central and peripheral chemoreceptors only using the receptor thresholds. This greatly simplifies the overall model and does not introduce any additional assumptions or limitations, but likely increases simulation error (though the significance of such error is likely to be low as the model outputs are seen to be relatively insensitive to receptor thresholds).

The effect of propofol, or sedation in general, on respiratory effort has not previously been incorporated in a ventilation model or clinical decision support system. Since propofol has a clinically important effect on respiratory effort [20, 21], and is often used as a sedative in the management of critically ill patients [44], its inclusion enhances the clinical relevance of the model. In addition, the LDPV model uses a flow-cycle threshold based on patient generated flow when simulating pressure support ventilation, a feature that has not been incorporated previously. Such a threshold ensures that any changes in patient effort levels lead to an appropriate response from the ventilator. It was an important feature to include as it was seen to have a significant impact on patient effort (see Online Resource 4.2, Fig. 15).

Finally, the LDPV model is unique in that the outputs of the model directly reflect patient effort and can potentially be used as indicators of lung and diaphragm stress and strain. While previous ventilation models have included patient effort, they either do not incorporate them within a physiology-based model [44] or use a simplified measure based on the questionable assumption that a ratio of tidal volume and pressure support level can be used to describe patient effort [12, 43]. The model could be implemented as a CDSS to help clinicians rapidly identify the combination of ventilation and sedation settings most likely to achieve lung and diaphragm-protective targets in patients, overcoming the complexity and time-consumption involved in titrating ventilation and sedation to target by trial and error.

4.2 Model simulations and robustness

The simulations demonstrate that our model describes a CO2 respiratory response comparable to that found in the literature. Figure 8a, b shows that an increase in pressure support induces a parallel shift of the ventilatory response to CO2 to the left while an increase in proportional assist increases the slope of the response. Figure 8c, d show that an increase in the flow-cycle proportion or sedation level in the model leads to a decrease in the slope of the response. The general directions of these responses correspond well to those found in the literature [20, 34]. The magnitude of the responses as they relate to minute ventilation are also similar with what has been previously observed [21, 34]. Although nominal patient parameters are used to simulate the CO2 respiratory response, these parameters have minimal effect on the general directions and magnitudes of the responses.

The simulated effect of control parameters on the target output indicators also compares well to what has previously been observed. Pressure support is seen to increase the static transpulmonary pressure swing, while decreasing the magnitude of the esophageal pressure swing and thus decreasing patient effort (Online Resource 4, Fig. 1) [36, 45, 46]. Increases in pressure support also slightly raise blood pH [45]. Similar relations have been observed in the simulation under proportional assist (Online Resource 4, Fig. 2) [36, 45]. While under pressure support ventilation, the flow-cycle threshold decreases the amount of ventilator support provided. Hence flow-cycle proportion and pressure support have opposite effects on the output indicators (Online Resource 4, Fig. 3). Increasing levels of propofol have also been associated with decreasing the respiratory effort [21] and lowering blood pH (Online Resource 4, Fig. 4) [47,48,49].

Regarding model robustness, for the outputs to remain physiologically plausible, the target indicators must remain within the previously defined limits. Figure 9c, d and Table 5 indicate that the target outputs from the pressure support simulations almost always lie within the defined physiologically plausible ranges. Overall, the simulation results demonstrate the robustness of the LDPV model. The results show that, for any set of clinically relevant inputs, the LDPV model will produce a set of outputs that are (at the very least) physiologically plausible. The results of the simulation also illustrate the range of possible outputs of the model; all model outputs are predicted to lie between the maximum and minimum Pareto fronts depicted. Although only 100 iterations were performed for each objective, the outputs of the simulation covered a wide range of values. Furthermore, the simulation considered all possible combinations of inputs, including combinations that may not even be physiologically plausible. While several parameters used static nominal values to reduce computational complexity, the model outputs can be seen to have low sensitivity to these parameters. Hence, using static values for these parameters should a low impact on the maximum and minimum Pareto fronts.

4.3 Limitations

Although the model has been shown to induce responses comparable to what is found in the literature and is robust across a wide range of clinically relevant patient parameters, several key limitations exist.

4.3.1 Assumptions present in system components

Since the model was built by combining existing ventilatory equations, any predictions made using the model are contingent on the assumptions upon which these equations are built. Hence, if the assumptions of any system component are violated, predictions made using the model may be inaccurate.

4.3.2 Relationship between propofol concentration and receptor sensitivity

In the current version of the model, the regression equation that links the pharmacokinetic model to the respiratory drive model relies on an extremely limited data set. While it is clear that propofol has a significant clinical effect on central respiratory drive and effort [19, 21, 50], the exact relationship remains uncertain. Obtaining additional clinical data can help better elucidate this relationship.

4.3.3 Respiratory frequency as an input

Since the model uses respiratory frequency as a model input, it relies on the assumption that the respiratory frequency remains relatively constant during any incremental adjustment of the controls. Although evidence suggests that increases in inspiratory pressure support affect respiratory rate only minimally [34, 51], there is no known mathematical equation that governs this interaction. Additional clinical data can be used to empirically explore this relationship and modify the model in the future.

4.3.4 Hydrogen ion concentration assumption

In the original respiratory control model [25], the hydrogen ion concentration used to determine the central and peripheral chemoreflex drives are different due to the different locations of the chemoreceptors [25]. Separate acid–base models would be required to properly determine the hydrogen ion concentrations affecting each chemoreceptor. However, to simplify the LDPV model, these concentrations are assumed to be the same and any difference would be accounted for by the different receptor thresholds. If the thresholds are not selected properly, this assumption can result in estimation error. However, the significance of this error is likely to be low as the model outputs can be seen to be relatively insensitive to the threshold values (see Online Resource 4.2).

4.3.5 Many input parameters

To initialize the model, many patient-specific parameters are required. While many of these parameters (age, height, respiratory frequency, etc.) are captured via normal clinical assessment and do not require any invasive measurements, some parameters, such as propofol concentration or chest wall mechanics, are not typically or easily assessed. By requiring too many input parameters, the LDPV model and its associated CDSS might prove difficult to implement in the clinical setting. However, as shown in Online Resource 4.2, the output indicators are insensitive to many patient-specific parameters.

Several possible approaches can be taken to address this limitation. One possible approach is to use the LDPV to simulate outputs from a selected number of the more difficult to measure inputs and then use these input–output pairs in a supervised machine learning model that predicts these inputs from the clinical outputs. A well-trained machine learning model should be able to predict reasonable values for these inputs given measurements of a patient’s PL, PES and pH. These inputs can then be used in the LDPV model to help guide subsequent decisions. An alternative approach is to use the LDPV model to explore in greater detail the sensitivity of the clinical outputs on the difficult to measure inputs. If certain inputs do not significantly impact the model outputs, it might also be possible to use nominal values for these inputs for subsequent modelling and decision support.

5 Conclusion

The LDPV model is a physiological model that may form the backbone of a CDSS focusing on lung and diaphragm protection during mechanical ventilation. The model considers respiratory drive, pharmacokinetics of propofol, acid–base homeostasis, ventilator settings and lung and respiratory muscle mechanics. It differs from existing mechanical ventilation models by focusing on output indicators that are most directly reflect lung and diaphragm safety [18, 22,23,24], incorporating effects of sedation, and including a flow-cycle threshold. Initial simulations produced results which demonstrate that outputs physiological responses consistent with what is expected. Sensitivity analysis showed that the output indicators are appropriately sensitive to the chosen control parameters. A robustness simulation showed that for any possible combination of input patient parameters, the model estimates output indicators that remain physiologically plausible.