Next Article in Journal
Predictive Modelling of Erosion Behaviour in Polymeric and Composite Materials Using Machine Learning
Previous Article in Journal
Intelligent Modeling of Concrete Permeability Using XGBoost Based on Experimental and Real Data: Evaluation of Pressure, Time, and Severe Conditions
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

A Simulation Model for Common-Mode Mechanical Ventilation Data Generation: Integrating Anthropometric and Disease Parameters for Fully Sedated Patients

Faculty of Engineering, North-West University, Potchefstroom 2531, South Africa
*
Author to whom correspondence should be addressed.
Modelling 2026, 7(1), 14; https://doi.org/10.3390/modelling7010014
Submission received: 14 October 2025 / Revised: 12 December 2025 / Accepted: 25 December 2025 / Published: 6 January 2026

Abstract

Background: A patient’s lung condition can be estimated using mechanical ventilation waveform data. These procedures are often labour-intensive and error-prone, especially during large-scale health crises, leading to infrequent executions. Automated diagnostic techniques in healthcare are currently limited by the lack of large, labelled datasets required for effective machine learning applications. Analytical modelling of the mechanical ventilator-patient (MV-P) system is complex, and existing models fail to fully integrate adjustable parameters for patient, ventilation, and disease conditions. Methods: This article presents an expanded system model developed in MATLAB® Simulink®. The model accommodates adjustments to anthropometric parameters, ventilator settings for the three most common modes in ICU sedation, and disease progression simulations. Other uniquely combined aspects include the ability to perform an end-inspiratory hold manoeuvre and per-breath optimisation of PI control parameters. Results: The system has been validated against clinical techniques, compared to real-world data, and verified with accuracy within 3% and average normalised standard deviation of 3.4% for all adjustable parameters. Conclusions: Based on this model, which introduces high-fidelity disease progression modelling, a fully labelled synthetic dataset of nearly 2M breaths over a range of health conditions was generated. This addresses the critical shortage of labelled data needed for developing early proof-of-concept, resource-efficient diagnostic tools for automatically estimating lung conditions.

Graphical Abstract

1. Introduction

Pulmonary diseases alter respiratory resistance ( R R S ) and static compliance ( C S ), impacting gas exchange and overall respiratory function [1,2,3]. Monitoring these changes is crucial for assessing a patient’s dynamic health status. Traditionally, clinicians evaluate pulmonary health through arterial blood gas (ABG) analysis [4,5,6] or by interpreting mechanical ventilation (MV) waveform data [1,3,7]. The latter is preferred due to its lower invasiveness, reduced complexity, and real-time tracking capabilities, making it well-suited for long-term condition monitoring (CM) and recovery trend analysis.
Recent studies span CT-/CXR-based ARDS prediction and models using continuous ventilator waveforms and imaging [8,9,10,11,12,13]; our simulator complements these efforts by supplying large, label-certain waveform datasets.
MV waveforms consist of proximal airway pressure, flow rate, and volume, with waveform shape determined by the ventilation mode. In fully sedated patients, common modes include pressure control (PC) and volume control (VC), with VC typically displaying decelerating (VCD) or constant flow (VCC) patterns [4,14,15,16,17,18].
Clinicians attempt to derive R R S and C S from these waveforms to assess disease severity, track trends, and guide treatment decisions [1,3,7].
The waveforms in Figure 1 illustrate how the shape of the dependent proximal airway pressure waveform changes in VCC mode for different health conditions. For example, the waveforms for a healthy patient (second row, first column), and ill patient (third row, third column), appear deceptively similar. This is due to the effects that both parameters simultaneously have on the pressure waveform, convoluting the pattern changes enough to complicate diagnostics. Not only is R R S actually much greater for the latter, but also, their C S values are at the opposite ends of the spectrum. This poses a risk of misdiagnosis and inappropriate treatment, potentially exacerbating the patient’s condition.
Therefore, it is crucial for clinicians to move away from unreliable recording methods and inaccurate approximation techniques in diagnosing and treating ventilated patients. Instead, embracing autonomous condition monitoring techniques and detailed disease progression analysis is essential.
These goals may be achievable through machine learning enhanced fault detection and isolation (FDI) strategies. However, such approaches depend on access to large, high-quality datasets, which are often not available due to various challenges such as clutter in measured data, missing relevant anthropometric data, imprecise disease parameter approximation methods, and limited data export capabilities from ventilators.
This work addresses these challenges by developing an MV–P data generator that synthesises label-certain waveforms for condition-monitoring research. It does not propose a bedside estimator, yet; rather, it highlights the limitations of common estimation practices and supplies datasets for training and evaluating future estimators.

1.1. Common Methods for Estimating RRS and CS

Two methods are common practice for deriving R R S and C S as health status indicators from MV waveform data [1,3,7]:
  • End-Inspiratory Hold Manoeuvre (EIHM): In fully sedated patients, clinicians perform an inspiratory hold at peak inspiration to pause airflow, making the measurement independent of ventilation mode. A pressure drop in the ventilation circuit is then used to estimate C S and R I N S P (the latter is used as an estimate for R R S ). However, this method requires a plateau phase, temporarily depriving the patient of ventilation, making it unsuitable for critical cases.
  • Ventilator-Based Estimation: The mechanical ventilator autonomously estimates R R S as total inspiratory resistance ( R I N S P ) and C S as dynamic compliance ( C D ).

1.2. Limitations of These Methods

Traditionally, ventilators estimated compliance and resistance using peak airway pressure ( P p e a k ), assuming it sufficiently captured the pressure-flow relationship. However, this approach is fundamentally flawed because P p e a k includes both resistive and elastic components, leading to overestimated resistance and underestimated compliance. This results in inherently inaccurate estimations of R I N S P and C D , which are already approximations of R R S and C S , compounding errors in compliance and resistance assessments.
To overcome the limitations of EIHM, modern ventilators improve R I N S P and C D estimation by sampling multiple points throughout the inspiration period and applying multivariate regression techniques such as least squares fitting [19]. Assuming a single-compartment model, this approach accounts for dynamic variations in pressure and flow, reducing estimation errors.
However, despite these improvements, ventilator-derived resistance and compliance estimates remain incomplete as they do not distinguish ventilator circuit resistance from true patient respiratory resistance. Specifically:
  • Inspiratory resistance ( R I N S P ) includes ventilator circuit resistance (e.g., tubing, humidifiers, and endotracheal tubes) in addition to airway resistance ( R R S ).
  • Dynamic compliance ( C D ) is influenced by circuit elasticity, valve response dynamics, and compressible gas volume, making it difficult to isolate true lung compliance.
While R I N S P and C D serve as practical estimates for R R S and C S , they do not fully represent patient-specific respiratory mechanics. Separating ventilator-induced distortions from patient-dependent properties is essential to improve diagnostic accuracy. Some commercial ventilators (e.g., Dräger and Medtronic) incorporate ETT/compliance corrections or flow-dependent resistance terms, but these remain device-specific parameter estimates rather than direct measurements and can vary in practice. Machine learning offers a potential alternative by learning to differentiate these components, but such models require large, high-quality training datasets that are not yet widely available. Accordingly, we prioritise a transparent RC baseline and provide a label-certain generator to support future data-driven approaches that separate device/circuit from patient mechanics.

1.3. Challenges in Clinical Implementation

In intubated patients, the endotracheal tube significantly affects inspiratory resistance ( R I N S P ), sometimes contributing to nearly half of its value while bypassing a substantial portion of natural tracheal resistance [20]. This complicates the accurate assessment of R R S in clinical settings, as ventilator-derived estimates fail to fully distinguish between patient-specific airway resistance and artificial resistance from the breathing circuit.
Consequently, clinicians rely on estimated values, despite most literature focusing on using accurately determined R R S and C S for diagnosing patients. Regardless, both traditional estimation methods (EIHM and multivariate regression) require manual trend tracking, which can be impractical in high-demand environments such as large-scale respiratory outbreaks (e.g., COVID-19). Under these conditions, limited resources, overwhelmed clinicians, and excessive data complexity may delay early detection of patient deterioration, leading to suboptimal patient prioritisation and increased mortality risk.

1.4. Automated Monitoring Through Fault Detection and Isolation (FDI)

In industrial settings, similar challenges are addressed using automated diagnostic techniques, commonly referred to as condition monitoring or fault detection and isolation (FDI). These techniques fall into three main categories [21,22,23,24,25,26]:
  • Model-based FDI, which compares real-time system behaviour to a known analytical model to detect deviations from expected performance.
  • Data-driven FDI, which identifies abnormalities by comparing real-time data to historical patterns using machine learning techniques.
  • Hybrid FDI, which combines both approaches to enhance robustness and adaptability.
While the latter two are widely used in industry, their application in respiratory care remains limited due to the lack of real-world datasets, resulting from three key challenges:
  • Patient-Specific Variability: Unlike industrial systems, each patient has unique anthropometric, biological, and disease-related parameters, many of which require invasive procedures or approximations for accurate characterisation, making large-scale data collection impractical. Moreover, this variability renders model-based approaches unsuitable, as it makes validation impractical.
  • Ethical and Safety Constraints: Unlike machinery, where failure cases can be experimentally induced, it is ethically unacceptable to deliberately worsen a patient’s condition or wait for deterioration solely for the purpose of data collection.
  • Limited Dataset Coverage and Confounding: Existing datasets [27,28,29,30,31,32,33,34,35] are too small and homogeneous to capture the diversity of patient populations. This forces researchers to apply complex statistical methods to disentangle confounding factors, yet the absence of large, independent cohorts makes those corrections impossible to validate, ultimately undermining data-driven models.

1.5. The Role of Simulations in Overcoming Data Limitations

Since real-world clinical data is limited, developing FDI techniques requires an alternative data source. One potential solution is to generate synthetic high-fidelity datasets using simulation models that accurately represent real-world respiratory mechanics. These datasets could be analysed using data-driven FDI techniques to extract patterns associated with disease progression, enabling early-warning automation in clinical settings.
However, existing lung simulation models [29,36,37,38,39,40,41,42,43,44,45,46,47] offer limited parameter adjustment capabilities , making them insufficient for FDI applications requiring adaptable patient, ventilator, and disease conditions.
Thus, there is a need for a fully parametric simulation model capable of dynamically adjusting patient-, ventilation-, and disease-specific parameters. Such a model would enable the generation of high-fidelity synthetic datasets, providing the necessary data for machine learning-based solutions to distinguish ventilator-induced effects from patient-specific mechanics—an essential step toward improving diagnostic accuracy and guiding clinical decisions. This simulation model is the primary contribution of this work.

2. Materials

To develop a mechanical ventilator-patient (MV-P) model for synthetic data generation, initial simplifications are necessary due to the system’s complexity. For a fully sedated, supine patient, an accurate MV-P model requires representing a passive respiratory system interfaced through an endotracheal tube (ETT) with a ventilator capable of simulating relevant modes, as depicted in Figure 2 [4,48].
In this section, the equations of motion are combined with selected anthropometric data (e.g., patient height, weight, and sex) to initialise tracheal dimensions and expected lung volumes such as FRC. This approach follows common clinical heuristics for estimating baseline ventilatory parameters, while recognising that ICU patients often deviate from these norms due to illness, injury, or compounded genetic variation. To accommodate such variability, disease-state parameters (e.g., R R S , C S ) are treated as independently adjustable, and parameter sweeps are performed across ranges extending below typical clinical minima and above expected maxima. For clarity and identifiability, these parameters are held constant within a breath, even though they are known to vary with pressure and flow during inspiration and expiration; controlled nonlinear extensions will be introduced in future iterations. This provides a balance between specificity and generalisability, consistent with the aim of generating a widely applicable, high-fidelity dataset for algorithm development rather than reproducing disease-specific physiology in detail.

2.1. The Passive Respiratory System

Modelling the respiratory system requires incorporating resistive (R in cmH2O · s/L), elastic (E in cmH2O/mL) or compliance (C in mL/cmH2O), and inertial (I in cmH2O · s2/L) components [14,20,49] to represent various subcomponents of the respiratory tract [1,2,3].
While numerous respiratory models exist [15,20,49,50,51], this study does not propose a novel formulation but justifies the selection of a well-studied, clinically relevant model.
Single-compartment RC and RIC models dominate clinical practice, as they effectively represent the global mechanical properties clinicians rely on for bedside diagnostics. In contrast, multi-compartment and viscoelastic models offer greater theoretical detail, particularly for regional lung heterogeneity. While parameter sets for such models have been reported in the literature, routine bedside identification remains challenging, as most effects are not directly observable without invasive methods and estimates can vary across devices and patient groups. With well-established transient corrections, EIHM can also recover tissue viscoelastic parameters in suitable cohorts (see Section 1.1); however, such protocols are not universally applicable at the bedside and remain device- and setting-dependent. We therefore adopt the single-compartment RC baseline as a pragmatic compromise, balancing representative complexity with identifiability, while leaving richer models as extensions for future work.
The RC and RIC models adhere to the equation of motion (1) and (2) [15,20,50]. The airway pressure P a w is the sum of baseline pressure P 0 and the component-specific pressures, where V ( t ) represents the delivered volume per breath:
P a w ( t ) = P I ( t ) + P R ( t ) + P C ( t ) + P 0
P a w ( t ) = I R S · V ¨ ( t ) + R R S · V ˙ ( t ) + E R S · V ( t ) + P 0
Given typical ICU respiratory rates (<30 bpm), inertance is deliberately neglected in the baseline RC formulation; a switchable RIC variant (with modest I R S ) will be offered as a configurable option in future iterations. We also treat compliance as lumped and quasi-static (no regional heterogeneity) to keep labels unambiguous. Non-linear or hysteretic extensions are deferred to future work (noting that machine-driven inspiration with passive expiration already dominates observed hysteresis in mandatory modes).
Therefore, this iteration of the work adopts the RC model, striking a balance between representative complexity and practical measurability. The RC model incorporates only respiratory-mechanics parameters and thus indirectly, disease parameters—a crucial part of the scoped objectives of the MV-P model. However, a comprehensive MV-P model still requires further integration of patient-specific anthropometric data, ventilator circuit dynamics, and operational features, which are developed in the sections that follow.

2.2. Patient Respiratory System Dimensions

A patient’s respiratory tract varies with age and is primarily determined by anthropometric parameters, notably biological sex and height (in cm) [5,52]. The respiratory components whose dimensions significantly depend on these parameters include trachea length and diameter, ideal body weight ( I B W in kg) [6,51], suggested tidal volume ( V T in mL) [4,14,16,51,53], dead space (in mL) [6,51] and functional residual capacity ( F R C in mL) [6]. The available heuristics for these dimensions are given in (3)–(7). Tracheal dimensions are not explicitly defined in the literature and are thus modelled in Section 3.1.
I B W M a l e = 50 + [ 0.9055 × ( H e i g h t 152.4 ) ]
I B W F e m a l e = 45.5 + [ 0.9055 × ( H e i g h t 152.4 ) ]
V T = 7 × I B W
D e a d S p a c e = 30 % × V T
F R C = 30 × I B W
A fixed dead-space fraction ( 30% of V T ) is used for simplicity; a three-component dynamic model (anatomical + alveolar + apparatus) is a planned extension. This simplifying assumption specifically evaluates the suitability of generating label-certain waveform data for further data analytics research.

2.3. Effects of Pulmonary Diseases on the Respiratory System

Pulmonary diseases such as acute respiratory distress syndrome (ARDS), chronic obstructive pulmonary disease (COPD), asthma, and pulmonary fibrosis alter the mechanical properties of the respiratory system, reducing its efficiency by affecting resistance ( R R S ) and compliance ( C S ). Tracking these values over time enables clinicians to assess a patient’s health status and recovery progression using anthropometric data [1,3,7].
Diseases that induce inflammation, mucus production, and airway narrowing increase R R S from a normal 1 cmH2O · s/L to over 18 cmH2O · s/L [14,15,29,51,54,55,56].
Pulmonary diseases affecting lung tissue may decrease C S from a normal 50 mL/cmH2O to 10 mL/cmH2O or increase to 100 mL/cmH2O [14,15,29,51,54,55,56].

2.4. Endotracheal Tube

Endotracheal tube (ETT) selection follows a standardised roster of 17 distinct sizes, as detailed in Table 1 [57,58]. For patients younger than 16 years, the appropriate inner diameter is estimated using Equation (8) [6,59,60,61]. For older patients, clinicians determine ETT size based on anthropometric data and clinical judgment, typically selecting diameters of at least 7.0 mm [59,62].
E T T S i z e = A g e + 16 4

2.5. Mechanical Ventilation Modes

In a passive respiratory system, where voluntary muscle contractions are absent, certain ventilation modes, i.e., those administered for active patients, are excluded [4,54], such as:
  • Modes requiring patient-initiated breaths (e.g., continuous/bi-positive airway pressure (CPAP/BiPAP)) [63]
  • Modes providing assistance on demand (assist control (AC) or continuous mandatory ventilation (CMV)) [14,50]
  • Weaning modes (synchronous intermittent mandatory ventilation (SIMV) and pressure support ventilation (PSV)) [14,64]
  • Secondary and unconventional modes requiring patient wakefulness [4,65]
This exclusion criterion focuses this study on control modes, which deliver mandatory breaths at a preset respiratory rate as prescribed by pulmonologists [63,66].
In control modes, phase variables define the shape of the respective independent waveform, which dictates how air is delivered to the patient [15,63,67,68,69]. The resulting dependent waveform, influenced by both the ventilator circuit and the patient’s respiratory mechanics, is recorded and encapsulates information about the MV-P system [14,67].
The two primary categories of control modes are [4,14,15,16,17,18]:
  • Pressure-Control (PC): Proximal airway pressure as the independent parameter.
  • Volume-Control (VC): Flow rate as the independent parameter.
Since tidal volume is fully determined as the integral of the flow waveform, it is considered redundant. All diagnostically relevant information describing the MV-P system is embedded in the pressure and flow waveforms.
Volume-controlled sub-classification modes are based on flow rate patterns [4,15]:
  • Volume-Control Constant Flow (VCC): Uniform flow throughout inspiration.
  • Volume-Control Decelerating Flow (VCD): Decreasing flow throughout inspiration.
Figure 3 illustrates the pressure, flow, and volume waveforms of the VCC, VDC and PC modes. The phase variables shaping these independent waveforms include baseline pressure ( P 0 or positive-end expiratory pressure ( P E E P )), peak inspiratory flow rate ( Q m a x ), tidal volume ( V T ), peak inspiratory pressure ( P P I P ), and inspiratory time ( T i ).

2.6. Determining Patient’s Health Status from Waveforms

Mechanical ventilation waveforms allow clinicians to assess a ventilated patient’s pulmonary health status by estimating static compliance ( C S ) and respiratory system resistance ( R R S ). By analysing deviations of C S and R R S from expected healthy values, pulmonologists quantify disease severity and classify pulmonary conditions [1,3,7].
Clinicians can determine C S manually while approximating R R S using R I N S P . Using the equation of motion (9) and (10), clinicians can measure P a w during an end-inspiratory hold manoeuvre (EIHM) [68]. Since airflow ceases at this point, compliance is purely static, making C S the reciprocal of E R S [6,15,51]. The static compliance is inversely proportional to the driving pressure ( P P l a t e a u P 0 ), as described by (11) and illustrated in Figure 4 [50]. Explicit assumptions are that V ( t ) C 2 ( [ 0 , T ] ) with initial conditions V ( 0 ) = 0 and V ˙ ( 0 ) = 0 , and P 0 representing the baseline end-expiratory pressure.
P a w ( t ) = P I ( t ) + P R ( t ) + P C ( t ) + P 0
P a w ( t ) = I R S · V ¨ ( t ) + R R S · V ˙ ( t ) + E R S · V ( t ) + P 0
C S = V T P P l a t e a u P 0
For respiratory rates below 30 breaths per minute, inertance ( I R S ) is typically considered negligible [20,54,70]. Under this assumption, the resistive pressure component can be approximated by the pressure drop component ( P R ( t ) P I ( t ) + P R ( t ) ), resulting in inspiratory resistance ( R I N S P ) [1,3,7]. As described by (12) and Figure 5, R I N S P is directly proportional to the pressure difference between peak inspiratory pressure ( P P I P ) and plateau pressure ( P P l a t e a u ) and inversely proportional to the change in flow (Q in L/s):
R R S R I N S P = R R S + R C i r c u i t = P P I P P P l a t e a u Q
Alternatively, ventilators can approximate these parameters automatically:
  • C S is approximated as dynamic compliance ( C D ).
  • R R S is approximated as inspiratory resistance ( R I N S P ).
Much like C S , C D is calculated as the ratio of volume change to pressure difference (13). However, since airflow introduces an additional resistive pressure component between peak inspiratory pressure ( P P I P ) and plateau pressure ( P P l a t e a u ), dynamic compliance differs from static compliance. As shown in (13) and Figure 4, C D is computed over the entire pressure range ( P P I P to P 0 ), while C S is based on the driving pressure ( P P l a t e a u to P 0 ):
C D = V T P P I P P 0 = C S + V T P P I P P P l a t e a u
Since dynamic compliance depends on the flow rate pattern, different ventilation modes yield varying C D values [1,3,7]. In contrast, C S remains stable and is therefore preferred for assessing patient condition.

2.7. Evaluating Existing Simulation Models

A literature survey identified several MV-P simulation models, including a MATLAB® Simulink® implementation (R2023b). While many of these models contain valuable features (e.g., advanced circuit dynamics, viscoelastic or nonlinear mechanics), none fully aligns with the specific set of requirements we defined for our first iteration of a scalable, label-certain dataset generator. These requirements emphasise patient parameterisation, unified ventilation modes, and verification hooks, reflecting our focus on condition monitoring research rather than detailed physiological modelling.
(1)
Anthropometric Parameters
(1.1)
Adjust tracheal dimensions, dead space, FRC, and ETT size based on the patient’s biological sex, height, and age, in alignment with clinical practice.
(2)
Patient-Ventilator Interface
(2.1)
Implement an ETT with interfacing Y-piece, which assumes fully sedated patient.
(3)
Ventilation Parameters
(3.1)
Allow baseline pressure ( P 0 or P E E P ) adjustment.
(3.2)
Support both VC and PC ventilation modes.
(3.3)
Enable VC mode to simulate constant (VCC) and decelerating (VCD) flow.
(3.4)
Set peak inspiratory flow ( Q m a x ) and tidal volume ( V T ) in VC mode.
(3.5)
Set peak inspiratory pressure ( P P I P ) and inspiratory time ( T i ) in PC mode.
(4)
Complication Parameters
(4.1)
Allow variable respiratory resistance ( R R S ) and static compliance ( C S ) to simulate disease severity fluctuations.
(4.2)
Implement a means to simulate patient interactions with the ventilation circuit (e.g., condensation, temperature variations, or ETT biting).
(5)
Verification Methods
(5.1)
Enable EIHM simulation for model verification.
Table 2 qualitatively assesses how existing MV-P models adhere to the listed requirements, indicating which aspects are fully, partially, or not at all implemented. Notably, no existing model dynamically integrates anthropometric characteristics, adapts resistance and compliance in real time, or unifies all major ventilation modes within a single framework. These limitations restrict their applicability for generating high fidelity datasets to enable machine learning-based diagnostics, emphasising the need for a more comprehensive, adaptable solution. Partially met requirements, denoted by black bars, further highlight areas requiring enhancement to achieve full compliance.
None of these models fully satisfy the criteria outlined in Section 2.7. Most notably, they do not dynamically integrate patient-specific anthropometric data, simulate progressive disease states, model patient-tube interactions, or facilitate EIHM execution. This hinders the development of automated diagnostic techniques that require high-fidelity datasets.
Among prior works, the study by [43] incorporates an ETT but only as a static resistance value, lacking the ability to adjust for flow variations or ETT size. Similarly, most models are limited to a single ventilation mode and require complex recalculations to modify phase variables, making them impractical for scalable dataset generation. However, nearly all allow for P E E P adjustment. [39] includes multiple ventilation modes but relies on separate models rather than a unified framework.
Given these constraints, the MathWorks® model [36] was selected as the point of departure for this work. While it lacks several key features, it offers a well-structured framework with strong representational complexity and modular adaptability. The model already supports advanced thermal and aerodynamic modelling, including laminar and turbulent flow, temperature, humidity, and condensation analysis within the circuit. Although these capabilities extend beyond the scope of this study, they provide a robust foundation for future research, such as condition monitoring algorithms capable of detecting condensation artefacts that contribute to patient-ventilator asynchrony (PVA).
To address the limitations identified in Table 2, this study extends the MathWorks® framework by integrating patient-specific parameterisation, enabling real-time resistance and compliance adaptation (therefore, disease progression control), and unifying all major ventilation modes into a single, adaptable simulation environment. These modifications establish the first MV-P simulation model capable of dynamically adjusting to patient-specific characteristics while preserving clinical relevance. The next section details the implementation of these enhancements.

3. Methods

This section outlines the development of a fully parametric mechanical ventilator–patient (MV-P) simulation model for generating synthetic high-fidelity datasets. The model addresses a critical need for a simulation tool that can dynamically adjust patient-specific, ventilation-specific, and disease-specific parameters. Such adaptability enables the creation of datasets suitable for training machine learning models capable of distinguishing ventilator-induced effects from true patient-specific respiratory mechanics—an essential step toward improving diagnostic accuracy.
A MATLAB® Simulink® (R2023b) model [36] (diagram in Figure 6) was selected as the foundational framework due to its robust structure, advanced fluid dynamics capabilities, and compatibility with modular enhancements—despite lacking several key features required for condition monitoring applications. It should be noted that this is the original model from [36], not the extended model being presented as the main contribution of this work.
The control signal block initiates waveform modulation to drive the volumetric airflow. The air passes through a humidifier before entering the ventilator circuit via the inspiratory tube. Within the circuit, pressure differentials govern the direction of flow through check valves, determining the path of air. It flows to and from the patient, then exits through the expiratory tube into the ambient air sink.
The following subsections describe how this model was extended to meet the full set of requirements defined in Section 2.7.

3.1. Trachea Dimensions

As noted in Section 2.2, many respiratory tract parameters, such as dead space, ideal body weight, and functional residual capacity, can be derived from anthropometric characteristics. However, no established heuristic exists in the literature for estimating trachea length ( T L ) or trachea diameter ( T D ) as a function of patient height.
To address this hurdle, new linear models were developed (14)–(17) by synthesising anatomical measurements from multiple published sources [71,72,73,74,75], assuming direct proportionality between patient height and tracheal dimensions.
T L M a l e = 0.612 × H e i g h t + 9.18
T L F e m a l e = 0.606 × H e i g h t + 9.09
T D M a l e = 0.0934 × H e i g h t + 1.40
T D F e m a l e = 0.0925 × H e i g h t + 1.39
Given the linear anthropometric scaling, physiological extremes could be bounded by a sigmoid clamp in future implementations, with no impact on the results reported here. Proximal sensor flow resistance is neglected in the baseline model; an optional fixed series term R sens (default 0 cmH2O · s/L) can be included in future iterations for sensitivity analyses.

3.2. Simulation Model Enhancement

Figure 7 illustrates the enhanced MV-P model. Due to space limitations, not all internal subsystem modifications are shown but are available upon request.
The MV-P simulation model was implemented in the MATLAB® Simulink® environment to represent a fully sedated, supine patient with respiratory rates below 30 breaths per minute, ventilated through an endotracheal tube (ETT). Building on [36], this implementation introduces the first simulation framework to satisfy the full set of design requirements outlined in Section 2.7. The enhancements described below are organized according to the specified requirement categories and are numerically linked to the corresponding component blocks shown in Figure 7 through which they were achieved:
(1)
Anthropometric Parameters
(1.1)
Equations (3)–(8), (14)–(17) were implemented to automatically adjust tracheal dimensions, dead space, functional residual capacity (FRC), and ETT size based on patient sex, height, and age.
(2)
Patient-Ventilator Interface
(2.1)
The original constant volume chamber (representing a face mask) was replaced with a Y-piece junction and an ETT pipe component, introducing more realistic fluid dynamics.
(3)
Ventilation Parameters
(3.1)
PEEP control was achieved by offsetting the outlet reservoir pressure in the “Room Air Sink” block by the specified PEEP value.
(3.2)
The mechanical ventilator control signal (MVCS) block was redesigned to flexibly modulate both flow and pressure, enabling simulation of VC and PC modes within a unified framework.
(3.3)
The MVCS was further enhanced to support both constant and decelerating flow patterns for VC mode.
(3.4)
A graphical user interface (GUI) was added for VC mode, allowing user-defined Q m a x and V T inputs to automatically shape the flow waveform for all the defined combinations (see SubSection 4.2).
(3.5)
A similar GUI was implemented for PC mode, generating pressure waveforms based on specified P P I P and T i values.
(4)
Complication Parameters
(4.1)
Translational spring and damper components (representing C S and R R S , respectively) were replaced with variable equivalents, allowing real-time adaptation to simulate disease progression. Although R R S and C S are implemented as variable components, their values remain piecewise constant over each breath in this initial model, introducing a discontinuous switching structure in the underlying RC model. However, Simulink’s continuous-time solvers still enforce continuity of the dynamic waveforms ( P a w ( t ) , V ˙ ( t ) and V ( t ) ) at each switching instant.
(4.2)
A time-varying local restriction was inserted between the ETT and Y-piece to simulate ETT biting, modulated by a user-defined signal.
(5)
Verification Methods
(5.1)
The MVCS block was configured to fully halt airflow at end-inspiration, enabling accurate simulation of the end-inspiratory hold manoeuvre (EIHM). This feature supports model verification by enabling comparison of MV-P compliance and resistance settings with traditional clinical estimates.
All simulations were carried out in MATLAB® Simulink® (R2023b) using a variable-step solver with automatic solver selection (typically a stiff solver such as ode15s for Simscape models). The relative tolerance was set to 1 × 10 3 , with the absolute tolerance automatically scaled. The Simscape Solver Configuration employed the time-based formulation with derivative replacement for index reduction and a consistency tolerance of 1 × 10 9 , with 1 ms filtering enabled for 1-D/3-D connections.
The volumetric supply block (see Figure 7), closely matches its generated flow output to the incomming flow signal from the MVCS block. Figure 8 clarifies the MVCS’s internal ventilation mode switching logic. Figure 8a exhibits a switching circuit for selecting the control mode to be implemented; VC or PC mode. For VC mode, another switching circuit further specifies the VC flow pattern; constant flow or decelerating flow (see Figure 8b). Once in either VC mode with constant flow, VC mode with decelerating flow, or PC mode, the operating mode of the ventilator is fully selected and depending on the choice, Figure 9 and Figure 10 further explain the mode-specific details for mutating the MVCS’s output flow signal.
Figure 9 illustrates the schematic of a ventilator control subsystem responsible for simulating VC mode. The flow pattern input selects between two cases: Case 1 generates the constant (square), and Case 2 produces the decelerating flow waveform. Each case includes separate logic to compute the corresponding flow signal and actuator resistance (expiratory valve), based on user-defined settings such as Q m a x , V T , and tube diameter. Each of the subsystems comprises of an inspiratory flow branch, and an expiratory valve control branch. The former branch further comprises a normalised inspiratory rectangualr wave, scaling stage, and enabling stage. The latter branch subtracts the inspiratoy-, the EIHM-, and an additional short expiration rectangular wave (mimicking mechanical delay-default is 0 s) from a unity signal. The resulting signal controls the expiratory valve so air can passively exit the lungs. In Figure 9b, d e c c f represents a compensation factor of 2, which arises from the area formulas of a triangle and a rectangle when integrating flow to obtain volume.
Figure 10 illustrates the internal logic of the MVCS subsystem for simulating PC mode. A PID controller adjusts the flow rate to match the desired pressure profile by comparing the instantaneous lung pressure ( p lung or P aw ) to the target P P I P . Unlike traditional fixed-gain controllers, this implementation uses gain functions derived from ventilator settings to dynamically adapt control behaviour. Section 3.3 discusses this in extensive detail.

3.3. Developing Pressure Controlled Ventilation Implementation

Since the volumetric supply controls airflow, extending the model to support PC mode requires a closed-loop solution to regulate airway pressure. The controller design presented here is not intended to reproduce device-specific clinical servo settings; rather, it provides a transparent, adjustable simulation model that ensures stable and reproducible waveforms for simulation and dataset generation.
The initial approach was to fine tune a PI controller for the healthy (NORM) state ( R R S = 1.5 cmH2O · s/L, C S = 55 mL/cmH2O · s, P E E P = 0 cmH2O and P I P = 40 cmH2O).
This tuned PI controller was applied to the edge case combinations listed in Table 3.
However, as seen in Figure 11, fine tuning a PI controller for the healthy state, does not result in the same dynamic characteristics for other states (percentage overshoot ( % O S ) increased from 8.6 % to 26.0 %, and settling time ( T s ) from 134 ms to 400 ms).
Minimising discrepancies across the health status range is challenging, requiring a balance of dynamic characteristics like overshoot ( % O S ), undershoot ( % U S ), settling time ( T s ), and transient shape. To address this, a method was developed to adjust PI coefficient pairs based on P E E P and P I P , the key ventilator settings in PC mode.

3.3.1. Method for Determining PI Coefficient Pair Functions

  • For the plant’s normal state, simulate a scenario with maximum initial error (process variable P V and set-point S P are most divergent), and progressively increase P c by orders of magnitude until oscillation occurs with % O S about 0%.
  • Assess the plant’s sensitivity and behaviour by incrementally adjusting one condition parameter at a time, documenting the parameter configurations that lead to extreme dynamic responses; highest % O S , lowest % U S , and fastest and slowest T s .
  • Using the plant conditions that result in the highest % O S and lowest % U S , determine a corresponding I c value to balance these extremes.
  • From heron, investigate the effects of incrementally increasing and decreasing P c , and for each adjustment, determine the corresponding balancing I c . Record how these changes affect the dynamic characteristics, specifically the range from the lowest % U S to the highest % O S , the variations in the slowest T s , and the overall changes in response shape. Based on these results, determine the feasible performance for the controlled plant and establish criteria for balancing trade-offs between shoot range, T s , and shape. Record the most desired P I c pair.
  • Repeat the process with smaller initial errors by either increasing P V or decreasing S P , identifying the optimal P I c pairs that meet the established criteria.
  • Plot the balanced P c and I c coefficients separately over a plane (both P V and S P ) or a range ( P V or S P -based on dominant sensitivity). Model their best-fit functions.

3.3.2. Demonstration of Determining PI Coefficient Pair Functions

The controller is intentionally a simple PI scheme calibrated to an 8.0 mm ETT to prioritise repeatable labels. Future extension of ETT calibration for 7.0 mm could cover around 95% of the adult patient population based on feedback from clinicians. Formal stability margins, anti-windup safeguards, and diameter-adaptive gains are out of scope here and earmarked for an adaptive PID upgrade.
(1)
First, vary P c in a Newtonian fashion from 1 × 10 6 to 1 × 10 1 to determine, for the NORM state, at which P c value is % O S equal to 0 % (see Figure 12a).
(2)
Since R R S and C S are inaccessible parameters prior to ventilation, the sensitivity of sweeping them across the status range will only provide a sense for what performance is possible whilst balancing the dynamic characteristics. However, the health status of the patient does not affect the controlled pressure waveform significantly. An increase in R R S causes an increase in T s and an upward shift in both % O S and % U S , whilst decreasing the range between the two. An increase in C S causes an increase in T s and a downward shift in both % O S and % U S , whilst increasing the range between the two. The combined effects concludes that some of the health status scenarios mentioned in Table 3 are synonymous with the extremes of the dynamic characteristics (see Figure 12b):
(a)
HRLC always indicate the most extreme % O S
(b)
LRHC always indicate the most extreme % U S
(c)
HRHC always indicate the most extreme T s
(d)
LRLC always indicate the fastest T s
(3)
After conducting a sweep of I c (refer to Figure 13), a notable observation is that the P I c pair that achieves identical % O S and % U S in the worst-case scenarios (HRLC and LRHC, respectively) leads to the quickest stabilisation across all health status scenarios.
(4)
Decreasing P c and balancing % O S and % U S with an appropriate I c results in a decrease in % O S and % U S . However, this lengthens T s and worsens the shape of the transient phase (especially for LRLC-causing such a long T s that it becomes the new health status synonymous with the longest T s ). This trade-off result concludes that it is pragmatic to set the requirements for the desired % O S to be 15% and the desired T s to be less than 0.4 s at 2% steady-state error (see Figure 14 for best balanced case with % O S = 15 % and T s = 377 ms ).
(5)
After finding the first P I c pair for balanced dynamic characteristics for any patient health status, the process is repeated for smaller initial errors between P V and S P . It is important to note that for this plant, P E E P and P I P are initially synonymous with the P V and S P control parameters, respectively. Therefore, decreasing the initial error entails increasing P E E P or decreasing P I P .
(5.1)
A sensitivity check was performed on the P E E P setting. By varying the P E E P from 0–15 cmH 2 O with increments of 5 cmH 2 O , for the NORM state, Figure 15 (a) proves that increasing P E E P only decreases % O S and % U S , while T s remains the same. Thus, it is unnecessary for the adjustable PI controller to have coefficient functions with P E E P as one of the input arguments.
(5.2)
A sensitivity check was performed for the P I P . By varying the P I P from 10–40 cmH 2 O with increments of 10 cmH 2 O , for all health states, Figure 15 (b) proves that decreasing P I P increases % O S , decreases % U S , lengthens T s and worsens the shape of the transient phase. Thus, it is necessary for the adjustable PI controller to have coefficient functions with P E E P as one of the input arguments. Steps (4) and (5) of the process was, thus, repeated to find a P I c pair for balanced dynamic characteristics for any patient health status for different P I P levels.
(6)
The relationship between P c and I c coefficients and P I P can be modeled using power functions, as illustrated in Figure 16a,b.
The method for varying P I P shown in Figure 17a was replicated using dynamic P I c pairs, based on power functions from Figure 16a,b. This led to an adjustable PI controller with markedly better dynamic performance across different P I P levels, as depicted in the comparison between Figure 17a,b. As P I P decreases, there is a notable reduction in % O S , % U S , T s , and an overall improvement in the response shape.

4. Results

4.1. Model Verification and Validation

The validation presented here is focused on verifying internal consistency and label correctness of the generator rather than emulating the behaviour of specific commercial ventilators. Recovery of compliance and resistance parameters, EIHM verification, and cross-location impedance comparisons confirm that the model produces physiologically plausible, label-certain waveforms. Device-specific in-vitro validation (bench ventilator + breathing set + ETT, with multi-tap measurements) is an important next step, particularly for studies that aim to match data from specific manufacturers. Such work is part of our planned roadmap but lies beyond the scope of this initial release, which prioritises generalisability and dataset fidelity.

4.1.1. Mode Specific Ventilator Settings

The developed simulation model successfully reproduces the three primary control modes used in fully sedated intensive care ventilation—Volume Control with Constant Flow (VCC), Volume Control with Decelerating Flow (VCD), and Pressure Control (PC)—within a single, unified simulation framework. Each mode can be configured using clinically relevant phase variables ( Q m a x , V T , P I P , and T i ), which are directly adjustable by the user, mirroring the interface of real-world ventilators.
Waveform outputs generated for each mode closely match both the expected physiological shapes described in the literature and the reference waveforms shown in Figure 3, as demonstrated in the simulation results presented in Figure 18.
Quantitative accuracy of the implemented phase variable settings is summarised in Table 4, showing all parameter deviations remain below 2%.
This confirms that the model reliably enforces ventilation behaviour according to clinical specifications. Additionally, the VCC mode supports the execution of an end-inspiratory hold manoeuvre (EIHM), enabling traditional estimation of static compliance and inspiratory resistance—an essential feature for verifying that simulated patient responses reflect realistic disease dynamics. This capability is examined in detail in Section 4.1.3.
These results collectively verify that the model satisfies the requirements (3.1)–(3.5) and (5.1) for ventilator configuration and behaviour outlined in Section 2.7, offering both waveform accuracy and clinical relevance across ventilation strategies.

4.1.2. Qualitative Comparison with Clinical Data

As an illustrative step beyond internal verification, simulated mechanical ventilator waveform data were overlaid with measured clinical data (Figure 19). Inspiratory dynamics and tidal volumes show close alignment, while discrepancies are visible during the plateau phase and expiratory flow return. These differences reflect both the simplified RC baseline (constant R R S , C S ) and device-specific factors such as valve dynamics and servo control. This comparison is intended as a qualitative illustration of plausibility rather than a formal validation; device-specific in-vitro and in-vivo benchmarking remain important next steps in our roadmap.

4.1.3. Patient Health Parameters

The same mechanical waveforms from Figure 18 (data generated by our proposed model) can be can be analysed using the estimation methods described in Section 1.1 to verify that our model accurately simulates the patient’s health status. For consistency’s sake, the health condition parameters for each of those waveform sets (for each of the three modes) were kept constant ( C S = 55 mL/cmH2O and R R S = 1.5 cmH2O · s/L).
To calculate C S for each mode, the analysis focuses on the first timestamp following the inspiratory phase, where the flow ceases and pressure settles. Applying (11) results in C S values of 54.72, 54.91, and 54.82 mL/cmH2O respectively, averaging to 54.82 mL/cmH2O, which is 99.67% of the 55 mL/cmH2O set point.
Since pulmonologists and ventilators use data from sensors implemented between the ETT and ventilator circuit, the best approximation method executable (even with EIHM) determines the equivalent resistance  Z P r a c t i c e (Figure 20 depicts it as the sum of the respiratory system impedance Z R e s p and endotracheal tube resistance R E T T ), which is often imprecise due to variable flow rates and potential turbulent flows during inspiration, affecting the pressure measurements across the ETT.
Figure 21 illustrates the impact of measuring prior to the ETT (as in practice), which introduces a significant pressure component due to added resistance in all scenarios. Also, the influence of R E T T will only be intensified for smaller ETT diameters. However, the additional pressure component of the trachea is negligible, as it aligns closely with the waveform considering only the lung, as half the trachea is bypassed using the intubating method.
To calculate R R S , one can reference Figure 20 and use (18) and (19). However, not only is placing the sensors in-between the ETT and trachea uncommon, but measuring the resistance from here using the EIHM results in obtaining the magnitude of the impedance ( Z L u n g ), without the necessary phase information to calculate R R S and C S . Moreover, the inspiratory phase is aperiodic, complicating the determination of the angular frequency ω . All these factors contribute to the complexity and necessitate the approximation of R R S .
Z P r a c t i c e = R E T T + R T r a c h e a + R R S + X C S
X C S = 1 j ω C S
To demonstrate the imprecision of the measurement location used in practice, simulations with the EIHM in VCC mode at three R R S values were performed. Pressure and flow waveforms were recorded at three model locations: before the ETT ( Z P r a c t i c e ), before the trachea ( Z R e s p ), and after the trachea ( Z L u n g ). See Table 5 for the resulting impedances.
Thus, physicians can accurately determine C S with the EIHM (99.67%-verifying its implementation), but not R R S when using the methods discussed in Section 1.1. Even knowing C S , and placing sensors at the end of the ETT, still, R R S cannot confidently be determined. Thus, traditional R R S approximation techniques are inaccurate and, when referencing Table 5, could overestimate R R S by as much as 287%. This motivates later development of prediction models trained on this model’s generated data to enable accurate, automated condition monitoring. While advanced ventilators perform such monitoring (e.g., via least-squares estimators), they are not universally affordable; our aim is a cost-effective retrofit path that upgrades existing devices without wholesale replacement.
Further model verification theoretically simulate Z L u n g to approach R R S by decreasing the contribution of X C S by leveraging (19), effectively short-circuiting the capacitor by letting C S approach infinity. The replicated experiment’s results, shown in Table 6, confirm the generator model’s accuracy in simulating R R S with an error range of 2.2 to 2.9%.

4.2. User Interface

After improving the MATLAB® Simulink® model to meet al the requirements for enabling high fidelity mechanical ventilator data generation, an application was developed to ensure smooth user experience (see Figure 22). Some features of the application include:
  • The user can easily change the anthropometric data of the patient and the model is automatically adjusted to represent such a patient.
  • Toggling between simulation type of either generating data for a single instance, or for sweeping parameters for multiple instances.
  • The user may also choose to store the generated data in a database to process later.
This application addresses a key limitation of existing models by eliminating the need for user-driven model-level adjustments. Unlike other simulation tools, it offers seamless manipulation of model context based on patient anthropometric data, selection of ICU ventilation modes with accurate endotracheal tube (ETT) implementation, configuration of ventilation parameters, simulation of disease progression, and verification through EIHM methods. As such, this simulation model is the first of its kind to combine ease of use with high-fidelity data generation and comprehensive physiological modelling capabilities.
An extensive dataset of 1.92 M unique mechanically ventilated breaths was simulated. The simulation model (v4.0.0) and its generated dataset are available at a GitHub page [76].

5. Discussion

The developed mechanical ventilator-patient (MV-P) data generation system offers significant advantages enabling advancements in automatic condition monitoring of mechanically ventilated patients:
  • Parameter sweeping capabilities effectively produce an infinite dataset.
  • Changes in patient health status are labelled per breath.
  • The data generated is labelled with precision and accuracy.
  • Users can simulate specifically desired data.
  • New data can be generated on-demand.
Furthermore, the dataset’s synthetic generation does not depend on waiting for the occurrence of real-world health crises, simultaneously avoiding ethical issues like privacy concerns and patient consent as sensitive health information from patients isn’t required.
Another advantage of the simulator is its ability to generate data representing rare or extreme physiological conditions. In clinical settings, most patients fall within typical ranges of lung resistance and compliance, making it difficult to collect real-world data from individuals with unusually stiff or highly compliant lungs. This scarcity can compromise the performance or safety of machine learning models when deployed on outliers. By intentionally sweeping extreme combinations of resistance and compliance, it enables the creation of more generalisable datasets for training and testing algorithms.
In addition, the system supports simulations that model not only static lung conditions but also changes over time. By adjusting resistance and compliance across successive breaths, it becomes possible to simulate clinical trajectories—such as a patient recovering from lung injury or gradually deteriorating. These sequences can serve as synthetic case studies or training scenarios for monitoring models, providing a platform to explore transitions like lung stiffening or loosening due to disease progression or intervention.
The application’s performance was optimised to reduce the simulation time per breath. With parallel computing enabled, it achieved an average of 3.35 s per breath on a machine with an Intel® Core™ i7-6700HQ CPU (quad-core @ 2.60 GHz). A full sweep generating 1.92 million breaths would take roughly 74 days on a single machine. To accelerate this process, a lab of 60 identical machines was used, completing the full sweep in about 48 h. This produced 168 GB of raw CSV data, reduced to 66.7 GB after trimming, with the final database footprint totalling 49 GB for time-series data, 16 MB for simulation settings, and 152 MB for extracted features. Further adaptive stepping and parallel scheduling are engineering optimisations outside the present scope.
It should be evident that the developed model is just that—a model. Any clinical use will require staged, IRB-approved evaluation to ensure safety, then a silent prospective study, and only thereafter any controlled intervention. Until such validation is complete, outputs are for research use only. Its generated data should be interpreted with this understanding.
The choice to adopt a single-compartment RC baseline was deliberate: it reflects a trade-off between fidelity, transparency, and generalisability. While more complex models (multi-compartment, viscoelastic) can reproduce additional subtleties of ICU lung mechanics, they demand invasive measurements, device-specific parameter sets, and often suffer from identifiability issues. For the purpose of generating large, label-certain datasets for algorithm development, the RC framework offers a reproducible and clinically interpretable starting point. More detailed models remain a valuable extension path, but their integration must preserve the identifiability and dataset consistency that motivate this work.
Some limitations, presenting opportunities for future enhancement, include:
1.
Supports only controlled ventilation modes (VCC, VCD, and PC).
2.
Adjustable PI controller is optimised for a specific ETT size (8.0 mm).
3.
Neglects the respiratory inertance component.
4.
Mechanical parameters are independent of temperature and position.
5.
Does not account for patient muscle interference.
6.
Mechanical parameters remain static during the breathing cycle.
7.
Cannot simulate respiratory damage from harmful ventilation settings.
8.
Assumes ventilator sensors are ideal, without any faults.
9.
Ignores inevitable leaks in the ventilator circuit.
10.
Ventilator circuit components’ dynamic characteristics may deviate from actual ventilators’ (e.g., the check-valve’s pressure to area curve).

Suggested Future Work

While numerous extensions are possible, the present release already represents a substantive improvement over available open-source models (Section 2.7). Our focus is on incremental additions that enhance physiological fidelity while maintaining identifiability and the label-certain properties that motivate this work.
It should also be noted that the present Simulink®-based implementation was chosen for transparency, modularity, and reproducibility in proof-of-concept development. Although Simulink is not optimised for generating very large-scale datasets, the modular structure of the model allows straightforward translation into compiled environments (e.g., MATLAB Coder, C/C++, or GPU-accelerated solvers) to support future high-throughput applications.
The following items outline the highest-value extensions we intend to prioritise:
  • Sensitivity and controller robustness
    Investigate the influence of ETT size during PC mode. If the current PI controller proves overly sensitive to ETT size, develop an updated controller that accounts not only for PEEP and PIP but also for a range of ETT diameters. Conversely, if tolerance to ETT variation is sufficient, expand the published dataset by simulating identical scenarios with additional ETT sizes. Based on feedback from clinicians, adding at least a size 7.0 mm ETT will already increase coverage to about 95% of the adult patient population.
  • Condition monitoring and FDI applications
    Develop a streaming interface for real-time ingestion of ventilator waveforms, including buffering and timestamp synchronisation, enabling prospective silent-mode condition monitoring.
    Apply machine-learning–based regression models to automatically estimate patient-specific lung mechanics with higher precision. Combining these models with longitudinal analysis may reveal how diurnal temperature variations modulate mechanical parameters and contribute to pulmonary disease progression under mechanical ventilation.
    Implement fault detection and isolation (FDI) methods for common ventilator issues such as leakages, excessive condensation, worn valves, and degraded flow-delivery components. Extend these capabilities to alarm-related problems including incorrect ETT placement (e.g., mainstem bronchus intubation) and faulty ETT cuffs, both of which can critically impact patient outcomes.
  • Analytical and mathematically challenging extensions
    Incorporate the muscular pressure component generated by patient effort, enhancing the model’s suitability for studying active breathing, patient–ventilator asynchrony (PVA), patient orientation effects, and optimisation of weaning strategies.
    Enhance the lung model by allowing mechanical parameters to vary dynamically throughout the breathing cycle. This improvement would better reflect physiological behaviour, enrich P/V and F/V loop analysis, and support more precise quantification of ventilator-induced lung injury (VILI) across ventilation modes.
    Expand the data-generation framework by introducing viscoelastic tissue effects and pendelluft phenomena.
    Introduce optional modules for nonlinear lung and chest-wall compliance, inspiratory–expiratory resistance asymmetry, flow-regime transitions (e.g., upper-airway turbulence), small-airway collapse, and preset breathing-set parasitics (filters, humidifier, tubing). Additional device-profile templates (e.g., sensor tap locations and servo characteristics) would further enhance flexibility.
    Investigate methods to estimate the angular frequency ω in the respiratory impedance model during inspiration across ventilation modes. Accurate estimation may improve calculation of R R S and support identification of inertial components, thereby expanding the set of variables available for resource-efficient patient assessment and disease monitoring.
    Once the above nonlinear and higher-fidelity model extensions are in place, perform a small-signal stability analysis of the closed-loop PI-controlled system. By linearising the error dynamics,
    e ˙ ( t ) = 1 C S R R S e ( t ) P c e ( t ) I c 0 t e ( τ ) d τ ,
    and deriving the eigenvalues of the resulting system matrix, one can verify that ( λ i ) < 0 for all i to ensure asymptotic stability. Providing this derivation would substantially strengthen the mathematical validity of the controller design.
The present work should be regarded as a baseline framework: preliminarily validated against representative clinical data, deliberately scoped to ensure reproducibility, and extensible toward more advanced physiologic modelling and validation protocols. Its immediate value lies in supplying a transparent, label-certain dataset generator—a foundation upon which more device-specific or multi-compartment models can be built.

Author Contributions

Conceptualization, P.M. and H.M.; methodology, P.M.; software, P.M.; validation, P.M.; formal analysis, P.M.; investigation, P.M.; resources, P.M.; data curation, P.M.; writing—original draft preparation, P.M.; writing—review and editing, P.M. and H.M.; visualization, P.M.; supervision, H.M.; project administration, H.M. All authors have read and agreed to the published version of the manuscript.

Funding

This research received no external funding.

Data Availability Statement

The simulation model, generated datasets, and auxiliary processing algorithms are available from a publicly accessible GitHub repository at https://github.com/TheRealPieterMarx/Masters_2022.git (accessed on 5 March 2025).

Conflicts of Interest

The authors declare no conflicts of interest.

Nomenclature

The following symbols are used in this manuscript:
SymbolDefinitionUnits
% O S Percentage Overshoot[%]
% U S Percentage Undershoot[%]
CCompliance[mL/cmH2O]
C D Dynamic Compliance[mL/cmH2O]
C S Static Compliance[mL/cmH2O]
EElastance[cmH2O/mL]
E R S Respiratory System Elastance[cmH2O/mL]
IInertance[cmH2O · s2/L]
I c Integral Constant[Unitless]
I R S Respiratory System Inertance[cmH2O · s2/L]
P c Proportional Constant[Unitless]
P 0 Baseline Pressure[cmH2O]
P C Compliance Pressure Component[cmH2O]
P R Resistance Pressure Component[cmH2O]
P I Inertance Pressure Component[cmH2O]
P aw Airway Pressure[cmH2O]
P P E E P Positive End-Expiratory Pressure[cmH2O]
P PIP Peak Inspiratory Pressure[cmH2O]
P Plateau Plateau Pressure[cmH2O]
P I c Proportional-Integral Constant Pair[Unitless]
P V Process Variable[cmH2O]
Q max Maximum Inspiratory Flow[L/s]
RResistance[cmH2O · s/L]
R C i r c u i t Ventilator Circuit Resistance[cmH2O · s/L]
R E T T Endotracheal Tube Resistance[cmH2O · s/L]
R I N S P Total Inspiratory Resistance[cmH2O · s/L]
R R S Respiratory System Resistance[cmH2O · s/L]
R s e n s Sensor Resistance[cmH2O · s/L]
S P Set-Point[cmH2O]
TiInspiratory Time[s]
T s Settling Time[s]
V ( t ) Lung Volume[mL]
V ˙ ( t ) Flow Rate[L/s]
V ¨ ( t ) Flow Acceleration[L/s2]
V T Tidal Volume[mL]
ω Angular Frequency[rad/s]
X C S Static Compliance Reactance[cmH2O · s/L]
Z L u n g Lung Impedance[cmH2O · s/L]
Z P r a c t i c e Medical Practice Impedance[cmH2O · s/L]
Z R e s p Respiratory Impedance[cmH2O · s/L]

Abbreviations

The following abbreviations are used in this manuscript:
ABGArterial Blood Gas
ARDSAcute Respiratory Distress Syndrome
ACAssist Control
BiPAPBi-Positive Airway Pressure
CMCondition Monitoring
CMVContinuous Mandatory Ventilation
COPDChronic Obstructive Pulmonary Disease
CPAPContinuous Positive Airway Pressure
EIHMEnd-Inspiratory Hold Manoeuvre
ETTEndotracheal Tube
F/VFlow-Volume
FDIFault Detection and Isolation
FRCFunctional Residual Capacity
GUIGraphical User Interface
HRHCHigh Resistance High Compliance
HRLCHigh Resistance Low Compliance
IBWIdeal Body Weight
ICUIntensive Care Unit
LRHCLow Resistance High Compliance
LRLCLow Resistance Low Compliance
MVMechanical Ventilator
MV-PMechanical Ventilator-Patient
MVCSMechanical Ventilator Control Signal
NORMNormal
OSOvershoot
P/VPressure-Volume
PCPressure Control
PEEPPositive-End Expiratory Pressure
PIProportional Integral
PIPPeak Inspiratory Pressure
PVProcess Variable
PVAPatient-Ventilator Asynchrony
RCResistive-Capacitive
RICResistive-Inductive-Capacitive
SIMVContinuous Intermittent Mandatory Ventilation
SPSet-Point
TDTrachea Diameter
TLTrachea Length
USUndershoot
VCVolume Control
VCCVolume Controlled with Constant Flow
VCDVolume Controlled with Decelerating Flow
VILIVentilator-Induced Lung Injury

References

  1. Poor, H. Basics of Mechanical Ventilation, 1st ed.; Springer International Publishing: Cham, Switzerland, 2018. [Google Scholar] [CrossRef]
  2. West, J.B. Respiratory Physiology: The Essentials; Lippincott Williams & Wilkins: Philadelphia, PA, USA, 2012. [Google Scholar]
  3. Wilcox, S.R.; Aydin, A.; Marcolini, E.G. Mechanical Ventilation in Emergency Medicine; Springer: Cham, Switzerland, 2021. [Google Scholar]
  4. Warner, M.A.; Patel, B. Mechanical Ventilation. In Benumof and Hagberg’s Airway Management, 3rd ed.; W.B. Saunders: Philadelphia, PA, USA, 2013; pp. 981–997. [Google Scholar]
  5. Yu, L.; Halalau, A.; Dalal, B.; Abbas, A.E.; Ivascu, F.; Amin, M.; Nair, G.B. Machine Learning Methods to Predict Mechanical Ventilation and Mortality in Patients with COVID-19. PLoS ONE 2021, 16, e0249285. [Google Scholar] [CrossRef] [PubMed]
  6. Landry, J. Respiratory Formulas, Calculations, and Equations. 2024. Available online: https://www.respiratorytherapyzone.com/respiratory-therapy-formulas-calculations/ (accessed on 30 April 2024).
  7. Arnal, J.M. Monitoring Mechanical Ventilation Using Ventilator Waveforms; Springer: Cham, Switzerland, 2018. [Google Scholar]
  8. Cysneiros, A.; Galvão, T.; Domingues, N.; Jorge, P.; Bento, L.; Martin-Loeches, I. ARDS Mortality Prediction Model Using Evolving Clinical Data and Chest Radiograph Analysis. Biomedicines 2024, 12, 439. [Google Scholar] [CrossRef]
  9. Park, J.E.; Kim, D.Y.; Park, J.W.; Jung, Y.J.; Lee, K.S.; Park, J.H.; Sheen, S.S.; Park, K.J.; Sunwoo, M.H.; Chung, W.Y. Development of a Machine Learning Model for Predicting Weaning Outcomes Based Solely on Continuous Ventilator Parameters during Spontaneous Breathing Trials. Bioengineering 2023, 10, 1163. [Google Scholar] [CrossRef]
  10. Yahyatabar, M.; Jouvet, P.; Fily, D.; Rambaud, J.; Levy, M.; Khemani, R.G.; Cheriet, F. A Web-Based Platform for the Automatic Stratification of ARDS Severity. Diagnostics 2023, 13, 933. [Google Scholar] [CrossRef]
  11. Li, H.; Gu, Y.; Liu, X.; Yi, X.; Li, Z.; Yu, Y.; Yu, T.; Li, L. Deep Learning Chest CT for Clinically Precise Prediction of Sepsis-Induced Acute Respiratory Distress Syndrome: A Protocol for an Observational Ambispective Cohort Study. Healthcare 2022, 10, 2150. [Google Scholar] [CrossRef]
  12. Sjoding, M.W.; Taylor, D.; Motyka, J.; Lee, E.; Co, I.; Claar, D.; McSparron, J.I.; Ansari, S.; Kerlin, M.P.; Reilly, J.P.; et al. Deep learning to detect acute respiratory distress syndrome on chest radiographs: A retrospective study with external validation. Lancet. Digit. Health 2021, 3, e340–e348. [Google Scholar] [CrossRef] [PubMed]
  13. Rehm, G.B.; Cortés-Puch, I.; Kuhn, B.T.; Nguyen, J.; Fazio, S.A.; Johnson, M.A.; Anderson, N.R.; Chuah, C.N.; Adams, J.Y. Use of Machine Learning to Screen for Acute Respiratory Distress Syndrome Using Raw Ventilator Waveform Data. Crit. Care Explor. 2021, 3, e0313. [Google Scholar] [CrossRef]
  14. Pasteka, R.; da Costa, J.P.S.; Barros, N.; Kolar, R.; Forjan, M. Patient–Ventilator Interaction Testing Using the Electromechanical Lung Simulator xPulmTM During V/AC and PSV Ventilation Mode. Appl. Sci. 2021, 11, 3745. [Google Scholar] [CrossRef]
  15. Nagarjuna, M.V. Ventilator Waveform Analysis [Presented at the DM Seminars, Department of Pulmonary Medicine, PGIMER, Chandigarh, India]. 2016. Available online: https://www.indiachest.org/wp-content/uploads/2016/07/Ventilator-waveform-analysis_nagarjuna_2012.pdf (accessed on 30 April 2024).
  16. Campbell, R.S.; Davis, B.R. Pressure-Controlled Versus Volume-Controlled Ventilation: Does it Matter? Respir. Care 2002, 47, 416–426. [Google Scholar]
  17. Esteban, A.; Frutos, F.; Tobin, M.J.; Alía, I.; Solsona, J.F.; Valverdú, I.; Fernández, R.; de la Cal, M.A.; Benito, S.; Tomás, R.; et al. A Comparison of Four Methods of Weaning Patients from Mechanical Ventilation. Spanish Lung Failure Collaborative Group. N. Engl. J. Med. 1995, 332, 345–350. [Google Scholar] [CrossRef]
  18. Mathews, C.E.; Unnikrishnan, R. Comparison of Synchronised Intermittent Mandatory Ventilation with Pressure Support versus Assist Control Mode of Ventilation on Time to Extubation. Indian J. Respir. Care 2017, 6, 781. [Google Scholar] [CrossRef]
  19. Eberhard, A.; Carry, P.Y.; Perdrix, J.P.; Fargnoli, J.M.; Biot, L.; Baconnier, P.F. A program based on a ‘selective’ least-squares method for respiratory mechanics monitoring in ventilated patients. Comput. Methods Programs Biomed. 2003, 71, 39–61. [Google Scholar] [CrossRef]
  20. Carvalho, A.R.; Zin, W.A. Respiratory System Dynamical Mechanical Properties: Modeling in Time and Frequency Domain. Biophys. Rev. 2011, 3, 71–84. [Google Scholar] [CrossRef] [PubMed]
  21. Isermann, R. Fault-Diagnosis Systems: An Introduction from Fault Detection to Fault Tolerance; Springer: Berlin/Heidelberg, Germany, 2005. [Google Scholar]
  22. Heo, G.Y. Condition Monitoring Using Empirical Models: Technical Review and Prospects for Nuclear Applications. Nucl. Eng. Technol. 2008, 40, 49–68. [Google Scholar] [CrossRef]
  23. Isermann, R. Fault-Diagnosis Applications: Model-Based Condition Monitoring: Actuators, Drives, Machinery, Plants, Sensors, and Fault-Tolerant Systems; Springer: Berlin/Heidelberg, Germany, 2011. [Google Scholar]
  24. Nadakatti, M.; Ramachandra, A.; Kumar, A.S. Artificial Intelligence-Based Condition Monitoring for Plant Maintenance. Assem. Autom. 2008, 28, 143–150. [Google Scholar] [CrossRef]
  25. Cho, Y.; Bianchi-Berthouze, N.; Julier, S.J. Deepbreath: Deep Learning of Breathing Patterns for Automatic Stress Recognition Using Low-cost Thermal Imaging in Unconstrained Settings. In Proceedings of the 2017 Seventh International Conference on Affective Computing and Intelligent Interaction (ACII), San Antonio, TX, USA, 23–26 October 2017; IEEE: New York, NY, USA, 2017; pp. 456–463. [Google Scholar]
  26. Marton, I.; Sanchez, A.; Carlos, S.; Martorell, S. Application of Data Driven Methods for Condition Monitoring Maintenance. Chem. Eng. Trans. 2013, 33, 301–306. [Google Scholar]
  27. Sarlabous, L.; Aquino-Esperanza, J.; Magrans, R.; de Haro, C.; López-Aguilar, J.; Subirà, C.; Batlle, M.; Rué, M.; Gomà, G.; Ochagavia, A.; et al. Development and Validation of a Sample Entropy-Based Method to Identify Complex Patient-Ventilator Interactions During Mechanical Ventilation. Sci. Rep. 2020, 10, 13911, Erratum in Sci Rep. 2020, 10, 19774, https://doi.org/10.1038/s41598-020-70814-4. [Google Scholar] [CrossRef]
  28. Abujaber, A.; Fadlalla, A.; Gammoh, D.; Abdelrahman, H.; Mollazehi, M.; El-Menyar, A. Prediction of In-Hospital Mortality in Patients on Mechanical Ventilation Post Traumatic Brain Injury: Machine Learning Approach. Scand. J. Trauma Resusc. Emerg. Med. 2020, 28, 44. [Google Scholar] [CrossRef]
  29. Morton, S.E.; Knopp, J.L.; Tawhai, M.H.; Docherty, P.; Moeller, K.; Heines, S.J.; Bergmans, D.C.; Chase, J.G. Virtual Patient Modeling and Prediction Validation for Pressure Controlled Mechanical Ventilation. IFAC-PapersOnLine 2020, 53, 16221–16226. [Google Scholar] [CrossRef]
  30. Ng, Q.A.; Loo, N.L.; Chiew, Y.S.; Tan, C.P.; Ralib, A.M.; Nor, M.B.M. Mechanical Ventilation Monitoring: Development of a Network Data Acquisition System. IFAC-PapersOnLine 2020, 53, 15916–15921. [Google Scholar] [CrossRef]
  31. Bolourani, S.; Brenner, M.; Wang, P.; McGinn, T.; Hirsch, J.S.; Barnaby, D.; Zanos, T.P.; Consortium, N.C.R. A Machine Learning Prediction Model of Respiratory Failure within 48 Hours of Patient Admission for COVID-19: Model Development and Validation. J. Med. Internet Res. 2021, 23, e24246. [Google Scholar] [CrossRef]
  32. Bakkes, T.H.G.F.; Montree, R.J.H.; Mischi, M.; Mojoli, F.; Turco, S. A Machine Learning Method for Automatic Detection and Classification of Patient-Ventilator Asynchrony. In Proceedings of the 2020 42nd Annual International Conference of the IEEE Engineering in Medicine & Biology Society (EMBC), Montreal, QC, Canada, 20–24 July 2020; pp. 150–153. [Google Scholar] [CrossRef]
  33. Fabregat, A.; Magret, M.; Ferré, J.A.; Vernet, A.; Guasch, N.; Rodríguez, A.; Gómez, J.; Bodí, M. A Machine Learning Decision-Making Tool for Extubation in Intensive Care Unit Patients. Comput. Methods Programs Biomed. 2021, 200, 105869. [Google Scholar] [CrossRef]
  34. Zhang, L.; Mao, K.; Duan, K.; Fang, S.; Lu, Y.; Gong, Q.; Lu, F.; Jiang, Y.; Jiang, L.; Fang, W.; et al. Detection of Patient-Ventilator Asynchrony from Mechanical Ventilation Waveforms Using a Two-Layer Long Short-Term Memory Neural Network. Comput. Biol. Med. 2020, 120, 103721. [Google Scholar] [CrossRef] [PubMed]
  35. Hyland, S.L.; Faltys, M.; Hüser, M.; Lyu, X.; Gumbsch, T.; Esteban, C.; Bock, C.; Horn, M.; Moor, M.; Rieck, B.; et al. Early prediction of circulatory failure in the intensive care unit using machine learning. Nat. Med. 2020, 26, 364–373. [Google Scholar] [CrossRef] [PubMed]
  36. MathWorks, I. Medical Ventilator with Lung Model. 2022. Available online: https://www.mathworks.com/help/simscape/ug/medical-ventilator-with-lung-model.html (accessed on 30 April 2024).
  37. Miller, S. Simscape-Medical-Ventilator. 2021. Available online: https://github.com/mathworks/Simscape-Medical-Ventilator (accessed on 14 April 2020).
  38. Kamthamraju, R. Neonatal-Ventilator. 2020. Available online: https://github.com/ravalik28/Neonatal-ventilator (accessed on 8 April 2020).
  39. Tamburrano, P.; Sciatti, F.; Distaso, E.; Lorenzo, L.D.; Amirante, R. Validation of a Simulink Model for Simulating the Two Typical Controlled Ventilation Modes of Intensive Care Units Mechanical Ventilators. Appl. Sci. 2022, 12, 2057. [Google Scholar] [CrossRef]
  40. Yeshurun, T.; David, Y.B.; Herman, A.; Bar-Sheshet, S.; Zilberman, R.; Bachar, G.; Liberzon, A.; Segev, G. A Simulation of a Medical Ventilator with a Realistic Lungs Model. F1000Research 2020, 9, ISF-1302. [Google Scholar] [CrossRef]
  41. Al-Naggar, N.Q. Modelling and Simulation of Pressure Controlled Mechanical Ventilation System. J. Biomed. Sci. Eng. 2015, 8, 707–716. [Google Scholar] [CrossRef]
  42. Yalcinkaya, F.; Yildirim, M.E.; Ünsal, H. Pressure-Volume Controlled Mechanical Ventilator: Modeling and Simulation. In Proceedings of the 2015 9th International Conference on Electrical and Electronics Engineering, Bursa, Turkey, 26–28 November 2015. [Google Scholar]
  43. Solís-Lemus, J.A.; Costar, E.; Doorly, D.; Kerrigan, E.C.; Kennedy, C.H.; Tait, F.; Niederer, S.; Vincent, P.E.; Williams, S.E. A simulated single ventilator/dual patient ventilation strategy for acute respiratory distress syndrome during the COVID-19 pandemic. R. Soc. Open Sci. 2020, 7, 200585. [Google Scholar] [CrossRef]
  44. Guler, H.; Ata, F. Design of a Fuzzy-LabVIEW-Based Mechanical Ventilator. Comput. Syst. Sci. Eng. 2014, 29, 219–229. [Google Scholar]
  45. Alessandro Mastrofini. Lung Ventilation in Simulink. 2022. Available online: https://alessandromastrofini.it/2022/04/05/ventilation/ (accessed on 11 April 2024).
  46. Tran, A.S.; Ngo, H.Q.T.; Dong, V.K.; Vo, A.H. Design, Control, Modeling, and Simulation of Mechanical Ventilator for Respiratory Support. Math. Probl. Eng. 2021, 2021, e2499804. [Google Scholar] [CrossRef]
  47. Das, A. Modelling and Optimisation of Mechanical Ventilation for Critically Ill Patients. Ph.D. Thesis, University of Exeter, Exeter, UK, 2012. [Google Scholar]
  48. Szmuk, P.; Ezri, T.; Evron, S.; Roth, Y.; Katz, J. A brief history of tracheostomy and tracheal intubation, from the Bronze Age to the Space Age. Intensive Care Med. 2008, 34, 222–228. [Google Scholar] [CrossRef] [PubMed]
  49. Ghafarian, P.; Jamaati, H.; Hashemian, S.M. A Review on Human Respiratory Modeling. Tanaffos 2016, 15, 61. [Google Scholar]
  50. Rafanan, A.L. Ventilator waveforms: Interpretation [Presented at the European Congress of Analytic Philosophy (ECAP), Asia Pacific Society of Respirology, Chong Hua Hospital, Pulmonary, Critical Care and Sleep Medicine, Cebu City]. 2014. Available online: https://www.docsity.com/en/docs/ventilator-waveforms-interpretation/9568440/ (accessed on 30 April 2024).
  51. Wright, G.T.; Ashworth, L.; Pettey, S. Optimizing Mechanical Ventilation During General Anesthesia. AANA J. 2020, 88, 149–157. [Google Scholar]
  52. Abujaber, A.; Fadlalla, A.; Gammoh, D.; Abdelrahman, H.; Mollazehi, M.; El-Menyar, A. Using trauma registry data to predict prolonged mechanical ventilation in patients with traumatic brain injury: Machine learning approach. PLoS ONE 2020, 15, e0235231. [Google Scholar] [CrossRef]
  53. Tintinger, G.; Engelbrecht, A. Mechanical ventilation in the emergency department. CME Your SA J. CPD 2007, 25, 118–122. [Google Scholar]
  54. Cairo, J.M. Pilbeam’s Mechanical Ventilation: Physiological and Clinical Applications; Elsevier Health Sciences: Amsterdam, The Netherlands, 2015. [Google Scholar]
  55. de S. Kock, K.; da Rosa, B.C.; Martignago, N.; Reis, C.; Maurici, R. Comparison of respiratory mechanics measurements in the volume cycled ventilation (VCV) and pressure controlled ventilation (PCV). Fisioter. Mov. 2016, 29, 229–236. [Google Scholar] [CrossRef]
  56. Ambrozin, A.R.P.; Cataneo, A.J.M. Pulmonary function aspects after myocardial revascularization related to preoperative risk. Braz. J. Cardiovasc. Surg. 2005, 20, 408–415. [Google Scholar] [CrossRef]
  57. Russian, C.J.; Gonzales, J.F.; Henry, N.R. Suction catheter size: An assessment and comparison of 3 different calculation methods. Respir. Care 2014, 59, 32–38. [Google Scholar] [CrossRef] [PubMed]
  58. Tilakaratna, P. Tracheal Tubes Explained Simply. 2024. Available online: https://www.howequipmentworks.com/tracheal_tubes/ (accessed on 30 April 2024).
  59. Nickson, C. Endotracheal Tube (Standard). 2020. Available online: https://litfl.com/endotracheal-tube-standard/ (accessed on 30 April 2024).
  60. Litman, R.S.; Maxwell, L.G. Cuffed versus uncuffed endotracheal tubes in pediatric anesthesia: The debate should finally end. J. Am. Soc. Anesthesiol. 2013, 118, 500–501. [Google Scholar] [CrossRef] [PubMed]
  61. Fiadjoe, J.; Litman, R.; Serber, J.; Stricker, P.; Cote, C.J. The Pediatric Airway. In A Practice of Anesthesia for Infants and Children, 5th ed.; Saunders-Elsevier: Philadelphia, PA, USA, 2018; pp. 297–339.e21. [Google Scholar] [CrossRef]
  62. Farrow, S.; Farrow, C.; Soni, N. Size matters: Choosing the right tracheal tube. Anaesthesia 2012, 67, 815–819. [Google Scholar] [CrossRef]
  63. Chatburn, R.L.; El-Khatib, M.; Mireles-Cabodevila, E. A taxonomy for mechanical ventilation: 10 fundamental maxims. Respir. Care 2014, 59, 1747–1763. [Google Scholar] [CrossRef]
  64. Ghamloush, M.; Hill, N.S. Synchronized intermittent mandatory ventilation: Time to send this workhorse out to pasture. Respir. Care 2013, 58, 1992–1994. [Google Scholar] [CrossRef]
  65. Chatburn, R.L.; Mireles-Cabodevila, E. Closed-loop control of mechanical ventilation: Description and classification of targeting schemes. Respir. Care 2011, 56, 85–102. [Google Scholar] [CrossRef] [PubMed]
  66. Chatburn, R.L. Understanding mechanical ventilators. Expert Rev. Respir. Med. 2010, 4, 809–819. [Google Scholar] [CrossRef]
  67. Shuttleworth, D.; Dodds, N. Ventilators and Breathing Systems. In Maths Physics for Clinical Measurement in Anaesthesia and Intensive Care; Cambridge University Press: Cambridge, UK, 2019; p. 130. [Google Scholar]
  68. Emrath, E. The basics of ventilator waveforms. Curr. Pediatr. Rep. 2021, 9, 11–19. [Google Scholar] [CrossRef]
  69. Gentile, M.A. Cycling of the mechanical ventilator breath. Respir. Care 2011, 56, 52–60. [Google Scholar] [CrossRef] [PubMed]
  70. Pillow, J.; Hall, G.L.; Willet, K.E.; Jobe, A.H.; Hantos, Z.; Sly, P. Effects of Gestation and Antenatal Steroid on Airway and Tissue Mechanics in Newborn Lambs. Am. J. Respir. Crit. Care Med. 2001, 163, 1158–1163. [Google Scholar] [CrossRef] [PubMed]
  71. Mi, W.; Zhang, C.; Wang, H.; Cao, J.; Li, C.; Yang, L.; Guo, F.; Wang, X.; Yang, T. Measurement and Analysis of the Tracheobronchial Tree in Chinese Population Using Computed Tomography. PLoS ONE 2015, 10, e0123177. [Google Scholar] [CrossRef]
  72. Breatnach, E.; Abbott, G.C.; Fraser, R.G. Dimensions of the normal human trachea. AJR Am. J. Roentgenol. 1984, 142, 903–906. [Google Scholar] [CrossRef]
  73. Dominelli, P.B.; Ripoll, J.G.; Cross, T.J.; Baker, S.E.; Wiggins, C.C.; Welch, B.T.; Joyner, M.J. Sex differences in large conducting airway anatomy. J. Appl. Physiol. (1985) 2018, 125, 960–965. [Google Scholar] [CrossRef]
  74. Average Height for Men and Women Worldwide. 2024. Available online: https://www.worlddata.info/average-body-height.php (accessed on 30 April 2024).
  75. Centers for Disease Control and Prevention (CDC). Growth Charts: Infant Length-for-Age Data Tables. Available online: https://www.cdc.gov/growthcharts/cdc-data-files.htm (accessed on 30 April 2024).
  76. Marx, P. Masters_2022. 2022. Available online: https://github.com/TheRealPieterMarx/Masters_2022.git (accessed on 28 April 2024).
Figure 1. VCC Pressure Waveforms for Swept Patient Health Conditions.
Figure 1. VCC Pressure Waveforms for Swept Patient Health Conditions.
Modelling 07 00014 g001
Figure 2. Illustration of the Mechanical Ventilator-Intubated Patient Setup.
Figure 2. Illustration of the Mechanical Ventilator-Intubated Patient Setup.
Modelling 07 00014 g002
Figure 3. Pressure, Flow, and Volume Waveforms for Common Modes: Volume Control with (a) Constant Flow, (b) Decelerating Flow, and (c) Pressure Control.
Figure 3. Pressure, Flow, and Volume Waveforms for Common Modes: Volume Control with (a) Constant Flow, (b) Decelerating Flow, and (c) Pressure Control.
Modelling 07 00014 g003
Figure 4. Pressure Waveform of Increasing Compliance in VC Mode with Constant Flow.
Figure 4. Pressure Waveform of Increasing Compliance in VC Mode with Constant Flow.
Modelling 07 00014 g004
Figure 5. Pressure Waveform of Increasing Resistance in VC Mode with Constant Flow.
Figure 5. Pressure Waveform of Increasing Resistance in VC Mode with Constant Flow.
Modelling 07 00014 g005
Figure 6. Simulink® Diagram from [36], Annotated with Section Descriptions for Enhanced Clarity.
Figure 6. Simulink® Diagram from [36], Annotated with Section Descriptions for Enhanced Clarity.
Modelling 07 00014 g006
Figure 7. Schematic Diagram of Improved Simulink® Mechanical Ventilator-Patient Model.
Figure 7. Schematic Diagram of Improved Simulink® Mechanical Ventilator-Patient Model.
Modelling 07 00014 g007
Figure 8. Schematic Diagram of MVCS Switching Logic: (a) Control Modes and (b) Flow Patterns.
Figure 8. Schematic Diagram of MVCS Switching Logic: (a) Control Modes and (b) Flow Patterns.
Modelling 07 00014 g008
Figure 9. Schematic Diagram of the Internal Flow Control Logic for VC Mode: (a) VCC and (b) VCD.
Figure 9. Schematic Diagram of the Internal Flow Control Logic for VC Mode: (a) VCC and (b) VCD.
Modelling 07 00014 g009
Figure 10. Schematic Diagram of the Internal Flow Control Logic for PC Mode.
Figure 10. Schematic Diagram of the Internal Flow Control Logic for PC Mode.
Modelling 07 00014 g010
Figure 11. Pressure Responses (Using Newtonian Search Methods): (a) Full and (b) Zoomed View.
Figure 11. Pressure Responses (Using Newtonian Search Methods): (a) Full and (b) Zoomed View.
Modelling 07 00014 g011
Figure 12. Pressure Responses: (a) Sweeping P c and (b) Edge-Cases of R R S and C S Combinations.
Figure 12. Pressure Responses: (a) Sweeping P c and (b) Edge-Cases of R R S and C S Combinations.
Modelling 07 00014 g012
Figure 13. Pressure Scalar for PI Controlled PC Mode (Sweeping I c ).
Figure 13. Pressure Scalar for PI Controlled PC Mode (Sweeping I c ).
Modelling 07 00014 g013
Figure 14. Pressure Scalar for PI Controlled PC Mode (Found Best Case).
Figure 14. Pressure Scalar for PI Controlled PC Mode (Found Best Case).
Modelling 07 00014 g014
Figure 15. Pressure Responses: (a) Sweeping P E E P and (b) Sweeping P I P .
Figure 15. Pressure Responses: (a) Sweeping P E E P and (b) Sweeping P I P .
Modelling 07 00014 g015
Figure 16. Modelled Power Functions of the Adjustable: (a) Proportional Coefficient ( P c ) vs. P I P , and (b) Integral Coefficient ( I c ) vs. P I P .
Figure 16. Modelled Power Functions of the Adjustable: (a) Proportional Coefficient ( P c ) vs. P I P , and (b) Integral Coefficient ( I c ) vs. P I P .
Modelling 07 00014 g016
Figure 17. Pressure Responses: (a) PI Controlled PC Mode (Sweeping P I P ) and (b) Adjustable PI Controlled PC Mode (Sweeping P I P ).
Figure 17. Pressure Responses: (a) PI Controlled PC Mode (Sweeping P I P ) and (b) Adjustable PI Controlled PC Mode (Sweeping P I P ).
Modelling 07 00014 g017
Figure 18. Results for Mechanical Ventilation Waveforms for Different Modes.
Figure 18. Results for Mechanical Ventilation Waveforms for Different Modes.
Modelling 07 00014 g018
Figure 19. Illustrative Overlay of Simulated and Clinical Ventilation Waveforms.
Figure 19. Illustrative Overlay of Simulated and Clinical Ventilation Waveforms.
Modelling 07 00014 g019
Figure 20. Analogous Electrical Circuit Diagram of the Respiratory System.
Figure 20. Analogous Electrical Circuit Diagram of the Respiratory System.
Modelling 07 00014 g020
Figure 21. Pressure Scalar Waveform Results.
Figure 21. Pressure Scalar Waveform Results.
Modelling 07 00014 g021
Figure 22. Graphical User Interface for Mechanical Ventilator-Patient Data Generator.
Figure 22. Graphical User Interface for Mechanical Ventilator-Patient Data Generator.
Modelling 07 00014 g022
Table 1. Roster of Standard Endotracheal Tube (ETT) Sizes.
Table 1. Roster of Standard Endotracheal Tube (ETT) Sizes.
ETT Length (mm)ETT Inner Diameter (mm)
2302.0, 2.5, 3.0, 3.5, 4.0, 4.5, 5.0
2605.5
2706.0
2806.5
2907.0
3027.5, 8.0, 8.5, 9.0, 9.5, 10.0
Table 2. Comparing Existing Simulation Models’ Adherence to Specification Requirements.
Table 2. Comparing Existing Simulation Models’ Adherence to Specification Requirements.
Simulation ModelRequirements
(1.1)(2.1)(3.1)(3.2)(3.3)(3.4)(3.5)(4.1)(4.2)(5.1)
MathWorks® [36]Modelling 07 00014 i001Modelling 07 00014 i001Modelling 07 00014 i001Modelling 07 00014 i003Modelling 07 00014 i003Modelling 07 00014 i002Modelling 07 00014 i001Modelling 07 00014 i003Modelling 07 00014 i001Modelling 07 00014 i001
Miller [37]Modelling 07 00014 i001Modelling 07 00014 i001Modelling 07 00014 i002Modelling 07 00014 i003Modelling 07 00014 i001Modelling 07 00014 i001Modelling 07 00014 i003Modelling 07 00014 i003Modelling 07 00014 i001Modelling 07 00014 i001
Kamthamraju [38]Modelling 07 00014 i001Modelling 07 00014 i001Modelling 07 00014 i001Modelling 07 00014 i001Modelling 07 00014 i001Modelling 07 00014 i001Modelling 07 00014 i001Modelling 07 00014 i003Modelling 07 00014 i001Modelling 07 00014 i001
Tamburrano et al. [39]Modelling 07 00014 i001Modelling 07 00014 i001Modelling 07 00014 i002Modelling 07 00014 i002Modelling 07 00014 i003Modelling 07 00014 i002Modelling 07 00014 i002Modelling 07 00014 i003Modelling 07 00014 i001Modelling 07 00014 i001
Yeshurun et al. [40]Modelling 07 00014 i001Modelling 07 00014 i001Modelling 07 00014 i002Modelling 07 00014 i003Modelling 07 00014 i001Modelling 07 00014 i001Modelling 07 00014 i003Modelling 07 00014 i003Modelling 07 00014 i001Modelling 07 00014 i001
Al-Naggar [41]Modelling 07 00014 i001Modelling 07 00014 i001Modelling 07 00014 i002Modelling 07 00014 i003Modelling 07 00014 i001Modelling 07 00014 i001Modelling 07 00014 i002Modelling 07 00014 i003Modelling 07 00014 i001Modelling 07 00014 i001
Yalcinkaya et al. [42]Modelling 07 00014 i001Modelling 07 00014 i001Modelling 07 00014 i002Modelling 07 00014 i002Modelling 07 00014 i003Modelling 07 00014 i001Modelling 07 00014 i003Modelling 07 00014 i001Modelling 07 00014 i001Modelling 07 00014 i001
Solís-Lemus et al. [43]Modelling 07 00014 i001Modelling 07 00014 i003Modelling 07 00014 i002Modelling 07 00014 i003Modelling 07 00014 i001Modelling 07 00014 i001Modelling 07 00014 i003Modelling 07 00014 i003Modelling 07 00014 i001Modelling 07 00014 i001
Guler and Ata [44]Modelling 07 00014 i001Modelling 07 00014 i001Modelling 07 00014 i002Modelling 07 00014 i003Modelling 07 00014 i001Modelling 07 00014 i001Modelling 07 00014 i003Modelling 07 00014 i003Modelling 07 00014 i001Modelling 07 00014 i001
Alessandro [45]Modelling 07 00014 i001Modelling 07 00014 i001Modelling 07 00014 i002Modelling 07 00014 i003Modelling 07 00014 i001Modelling 07 00014 i001Modelling 07 00014 i002Modelling 07 00014 i003Modelling 07 00014 i001Modelling 07 00014 i001
Tran et al. [46]Modelling 07 00014 i001Modelling 07 00014 i001Modelling 07 00014 i002Modelling 07 00014 i003Modelling 07 00014 i001Modelling 07 00014 i001Modelling 07 00014 i002Modelling 07 00014 i003Modelling 07 00014 i001Modelling 07 00014 i001
Das [47]Modelling 07 00014 i001Modelling 07 00014 i001Modelling 07 00014 i002Modelling 07 00014 i003Modelling 07 00014 i003Modelling 07 00014 i003Modelling 07 00014 i001Modelling 07 00014 i001Modelling 07 00014 i001Modelling 07 00014 i001
Morton et al. [29]Modelling 07 00014 i001Modelling 07 00014 i001Modelling 07 00014 i002Modelling 07 00014 i003Modelling 07 00014 i001Modelling 07 00014 i001Modelling 07 00014 i003Modelling 07 00014 i003Modelling 07 00014 i001Modelling 07 00014 i001
Table 3. Description of the Five Health Status Edge Cases.
Table 3. Description of the Five Health Status Edge Cases.
AcronymDescription R RS in cmH2O · s/L C S in mL/cmH2O
HRLCHigh R R S , Low C S 20.010
HRHCHigh R R S , High C S 20.0100
LRLCLow R R S , Low C S 1.010
NORMAverage R R S , Average C S 1.555
LRHCLow R R S , High C S 1.0100
Table 4. Verification of Mode-Specific Ventilator Settings.
Table 4. Verification of Mode-Specific Ventilator Settings.
Vent. ModeParameterTargetMeasuredAcc. [%]
VCC Q m a x [L/min]50.050.299.66
VT [mL]50049699.27
VCD Q m a x [L/min]50.049.498.77
VT [mL]50049098.07
PC P I P [cmH2O]9.08.9999.90
T i [s]1.11.199.85
Table 5. Point of Measure Deviation from R R S Using Pragmatic Approaches.
Table 5. Point of Measure Deviation from R R S Using Pragmatic Approaches.
R RS Impedance [ cmH 2 Os / L ] R ETT
[cmH2Os/L] Z Prac . Z Resp Z Lung [cmH2Os/L]
1.54.30.810.813.5
6.58.85.55.43.3
11.513.310.210.03.1
Table 6. Point of Measure Deviation from R R S Neglecting C S .
Table 6. Point of Measure Deviation from R R S Neglecting C S .
R RS Impedance [cmH2Os/L] R ETT
[cmH2Os/L] Z Prac . Z Resp Z Lung [cmH2Os/L]
1.55.31.61.53.7
6.510.46.76.73.7
11.515.511.811.83.7
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Marx, P.; Marais, H. A Simulation Model for Common-Mode Mechanical Ventilation Data Generation: Integrating Anthropometric and Disease Parameters for Fully Sedated Patients. Modelling 2026, 7, 14. https://doi.org/10.3390/modelling7010014

AMA Style

Marx P, Marais H. A Simulation Model for Common-Mode Mechanical Ventilation Data Generation: Integrating Anthropometric and Disease Parameters for Fully Sedated Patients. Modelling. 2026; 7(1):14. https://doi.org/10.3390/modelling7010014

Chicago/Turabian Style

Marx, Pieter, and Henri Marais. 2026. "A Simulation Model for Common-Mode Mechanical Ventilation Data Generation: Integrating Anthropometric and Disease Parameters for Fully Sedated Patients" Modelling 7, no. 1: 14. https://doi.org/10.3390/modelling7010014

APA Style

Marx, P., & Marais, H. (2026). A Simulation Model for Common-Mode Mechanical Ventilation Data Generation: Integrating Anthropometric and Disease Parameters for Fully Sedated Patients. Modelling, 7(1), 14. https://doi.org/10.3390/modelling7010014

Article Metrics

Back to TopTop