Next Article in Journal
Clinico–Pathological Features of Diffuse Midline Glioma, H3 K27-Altered in Adults: A Comprehensive Review of the Literature with an Additional Single-Institution Case Series
Previous Article in Journal
Early Detection of Parkinson’s Disease Using AI Techniques and Image Analysis
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

A Technique for Monitoring Mechanically Ventilated Patient Lung Conditions

Faculty of Engineering, North-West University, Potchefstroom 2531, South Africa
*
Author to whom correspondence should be addressed.
Diagnostics 2024, 14(23), 2616; https://doi.org/10.3390/diagnostics14232616
Submission received: 10 October 2024 / Revised: 16 November 2024 / Accepted: 18 November 2024 / Published: 21 November 2024
(This article belongs to the Section Machine Learning and Artificial Intelligence in Diagnostics)

Abstract

:
Background: Mechanical ventilation is a critical but resource-intensive treatment. Automated tools are common in screening diagnostics, whereas real-time, continuous trend analysis in mechanical ventilation remains rare. Current techniques for monitoring lung conditions are often invasive, lack accuracy, and fail to isolate respiratory resistance—making them impractical for continuous monitoring and diagnosis. To address this challenge, we propose an automated, non-invasive condition monitoring method to support pulmonologists. Methods: Our method leverages ventilation waveform time-series data in controlled modes to monitor lung conditions automatically and non-invasively on a breath-by-breath basis while accurately isolating respiratory resistance. Results: Using statistical classification and regression models, the approach achieves 99.1% accuracy for ventilation mode classification, 97.5% accuracy for feature extraction, and 99.0% for predicting mechanical lung parameters. The models are both computationally efficient (720 K predictions per second per core) and lightweight (24.5 MB). Conclusions: By storing breath-by-breath predictions, pulmonologists can access a high-resolution trend of lung conditions, gaining clear insights into sudden changes without speculation and streamlining diagnosis and decision-making. The deployment of this solution could expand domain knowledge, enhance the understanding of patient conditions, and enable real-time dashboards for parallel monitoring, helping to prioritize patients and optimize resource use, which is especially valuable during pandemics.

1. Introduction

Mechanical ventilation (MV) is a critical intervention for patients with severe pulmonary diseases, providing essential respiratory support [1,2,3]. However, the administration of MV is resource-intensive, requiring specialized facilities and skilled healthcare practitioners. These resources are finite and can quickly become overwhelmed in high-demand situations, such as during pandemics or in regions with constrained healthcare infrastructure. According to the World Health Organisation’s 2019 global statistics, 35% of disease-related deaths target the pulmonary system [4]. This number has undoubtedly increased since then due to the COVID-19 pandemic [5].
Moreover, resource depletion extends beyond facilities; healthcare practitioners can also become overwhelmed, increasing the risk of potential errors. Such errors may involve infrequent patient assessments, inaccurate calculations, or inadequate record-keeping. Such lapses can result in suboptimal treatment, as practitioners may not have an accurate understanding of the patient’s condition, leading to improper patient prioritization and potentially adverse outcomes.
Previous research has tackled the challenges of mechanical ventilation by developing automated diagnostic methods aimed at improving condition monitoring for ventilated patients. These studies focused on estimating key respiratory parameters, such as resistance (R) and compliance (C), using mechanical ventilation waveform data, including airway pressure, flow, and volume time-series.
Many studies employed statistical methods, such as expiratory time constant calculations [6] or least squares fitting based on the single-compartment model’s motion equation [7,8,9,10,11,12,13]. Others utilized numerical techniques, including constrained optimization [14,15], iterative methods [16,17,18], and dynamic signal analysis [19,20]. Model-based methods were also applied [10,21,22,23]. One study in 2018 introduced a machine learning approach, albeit limited to the qualitative classification of respiratory mechanics as either low or high [24].
All these methods generally rely on validation against the end-inspiratory hold maneuver (EIHM), a classic manual technique for measuring passive respiratory mechanics [25]. EIHM, however, is resource-intensive, invasive, and disrupts the specific instance data, as it requires stopping airflow at end-inspiration to measure flow, pressure drop, and volume change. These measurements are subsequently used to estimate static compliance ( C S ) and inspiratory resistance ( R I N S P ). A significant limitation of this technique is the frequent misinterpretation of R I N S P as respiratory system resistance ( R R S ), resulting in inaccuracies in previous studies’ models, which often treat these parameters as equivalent.
The accurate determination of target mechanical parameters presents additional challenges:
  • In ICU settings, an endotracheal tube (ETT) bypasses a significant portion of the respiratory system, neglecting part of the true respiratory resistance.
  • Most ventilators measure pressure at the mouth rather than the tracheal carina, leading to distortions from the ETT’s non-linear, flow-varying resistive component [25,26].
  • The most accurate methods for obtaining these parameters involve either post-mortem analysis or transitioning patients to specialized equipment (e.g., forced oscillation techniques using Fourier transforms [27,28,29]), which are impractical and potentially hazardous.
Consequently, previous approaches have relied on flawed target values or required invasive and impractical procedures.
This study introduces an automated diagnostic technique for fully sedated, mechanically ventilated patients that is practical, non-invasive, mode-independent, and capable of tracking condition trends on a breath-by-breath basis. This approach offers multiple novel contributions. The approach relies solely on standard time-series data from the proximal airway (commonly measured at the mouth). It automatically classifies the ventilation mode in use, extracts relevant features and applies machine learning regression models to accurately quantify C S and R R S , addressing the limitations of prior methods that relied on R I N S P measurements. This technique not only has the potential to enhance patient diagnosis, prioritization, and treatment through precise monitoring and analysis, but it also alleviates healthcare providers’ workload, reduces resource demands, and minimizes the risk of manual errors in high-pressure scenarios.

2. Materials

Mechanically ventilated patients’ conditions are monitored in two primary ways: chemically driven (A-a gradient) [30,31,32] and data-driven (waveform data) [1,3,33]. The latter method is less invasive, more prompt, and simpler, involving the analysis of pressure, flow, and volume time-series (TS) data measured in the ventilatory circuit [30,34].
Since mechanical ventilation (MV) is a more appropriate treatment for ICU cases and carries risks, only modes synonymous with intubated patients are initially considered [35,36]. These modes include Volume-Controlled with Constant flow (VCC), Volume-Controlled with decreasing flow (VCD), and Pressure-Controlled (PC) modes [30,37,38,39,40,41]. Figure 1 shows that the VC modes aim to control the flow/volume waveform using ventilator parameters such as tidal volume ( V T ) and maximum flow ( Q m a x ), whereas PC aims to control the pressure waveform using the inspiratory time ( T i ) and peak inspiratory pressure ( P I P ) [30,37,38,39,40,41]. These waveforms are considered the respective mode’s independent waveform. The ventilator administers this controlled ventilation waveform, the air interacts with the patient connected to the ventilator, and sensors measure the resulting dependent waveform [37,42]. The dependent waveforms are then analyzed to calculate the patient’s respiratory system resistance R R S and static compliance C S , which describe the patient’s pulmonary health condition [1,3,33]. Note, that the inspiratory phase is an active process, whereas the expiratory phase is passive, during which the ventilator simply opens the expiratory valve, allowing equilibrium to occur based on the mechanical properties of the lungs and the expiratory circuit.
As illustrated in Figure 2, determining the trend of a patient’s condition is a non-trivial task that requires quantitative analysis and meticulous record-keeping. For example, note the waveform similarity of a healthy patient ( R R S : 8 cmH 2 O · s / L and C S : 55 L / cmH 2 O ) and an ill patient ( R R S : 15 cmH 2 O · s / L and C S : 80 L / cmH 2 O ) [37,38,43,44,45,46,47]. Without these calculations and detailed records, it becomes challenging to monitor patient progress and make informed clinical decisions.
To optimize resource use and improve patient recovery rates, it is essential to implement frequent and precise condition monitoring. This practice enables better patient prioritization. However, manual monitoring is not feasible due to the increased burden on practitioners, which exacerbates the current resource limitations. Therefore, automating the monitoring process is crucial. Automation not only frees up practitioners’ time for more critical tasks but also provides a scalable digital solution that can handle large volumes of data efficiently.

2.1. Automated Diagnostic Techniques in the Medical Domain

Automated diagnostic tools are widely used in medicine, demonstrating practitioners’ readiness to adopt technologies that enhance patient care.
Machine learning has been applied effectively in image processing for medical imaging (e.g., X-rays, CT scans, MRIs, mammograms) to aid in diagnosing conditions [48]. Statistical methods aid biochemistry analysis in automated blood analysis, proteomics, and genetic sequencing [49]. Additionally, time-series (TS) analysis techniques monitor vital signs such as EEG, ECG, blood pressure, and blood glucose levels [50]. These examples illustrate the broad potential for similar approaches in mechanical ventilation monitoring.
Most existing MV diagnostic systems focus on detecting patient–ventilator asynchrony (PVA) and adjusting settings to improve comfort [51,52]. In contrast, this study targets fully sedated patients, where PVA is not relevant. Our goal is to estimate key mechanical lung parameters, specifically respiratory system resistance ( R R S ) and static compliance ( C S ), which clinicians use to assess pulmonary health. Unlike PVA-focused systems, our work aims at diagnostic precision rather than real-time ventilator adjustments.

2.2. Time-Series Data Diagnostic Techniques in Medical Applications

Time-series (TS) diagnostic techniques are essential for analyzing dynamic medical data. These methods, applied across many domains, are broadly categorized into model-based, data-driven, and statistical approaches [53,54].
Model-Based Techniques: Techniques like Autoregressive Integrated Moving Average (ARIMA) and Kalman Filters help identify trends and patterns within physiological TS data by modeling the system’s behavior over time [55]. State Space Models and Hidden Markov Models further represent biological processes by tracking the changing states of these systems [56].
Data-Driven Techniques: Methods such as Fourier [57] and Wavelet Transforms [58] detect periodic patterns and abrupt shifts, while machine learning models like Long Short-Term Memory (LSTM) networks [59] and Convolutional Neural Networks (CNN) [60] analyze complex TS data to predict critical events. Dynamic Time Warping (DTW) and clustering allow the comparison and classification of physiological phases, supporting early detection of health changes [61]. Principal Component Analysis (PCA) reduces data dimensionality, emphasizing significant factors for analysis [62].
Statistical Techniques: Techniques like anomaly detection identify outliers, a key step for early diagnosis, while Granger Causality identifies potential causal links among health variables [63].
In medical applications, a preliminary step in using these techniques is feature engineering, where significant attributes are extracted from TS data to enhance diagnostic accuracy [64]. Despite their success in many fields, applying TS diagnostic techniques to MV monitoring is challenging due to patient variability, limited data quality, and real-time data access constraints.

2.3. Challenges in Applying Time-Series Diagnostic Techniques to MV Data

MV patient monitoring presents unique challenges that limit the direct application of established TS diagnostic techniques. For effective automated monitoring, high-quality, diverse datasets are essential, but in MV, data scarcity and quality issues hinder diagnostic accuracy.
Existing MV datasets often suffer from the following:
  • Inappropriate Data Types: Many datasets focus on limited patient condition labels or data from non-ideal ventilation modes like BiPAP/CPAP.
  • Irrelevance to Fully Sedated Patients: Data related to PVA are irrelevant here, as our focus is on fully sedated patients.
  • Incompleteness and Low Sampling Frequency: Many datasets have infrequent data collection, reducing their utility for accurate diagnostics.
  • Limited Data Volume and Variety: Available data lack diversity in patient parameters and are not representative of broader populations.
  • Lack of Labeling: Many datasets lack essential information such as ventilator settings and patient characteristics.
These issues stem partly from privacy restrictions, data collection complexities, and clinical variations. Addressing these limitations is crucial to advance automated MV monitoring.

2.4. Synthetic Data and Human Lung Modeling for MV Diagnostics

Due to MV data scarcity, synthetic data offer an alternative. Two main types of synthetic data are used in MV research: emulated data, which replicate physical processes, and simulated data, which are generated through mathematical models.
Lung models in the literature vary in complexity:
  • Single-Compartment Models: RC, RIC, and extended RIC models represent basic resistance and compliance [38,65].
  • Multi-Compartment Models: Series RC, parallel RC, and bi-compartmental models [66].
  • Advanced Models: Models like Mead, Dubois, and viscoelastic models incorporate complex mechanical behaviors [65].
This study focuses on estimating the trend of the MV patient’s R R S and C S , as these are the only two mechanical parameters practitioners use for monitoring a patient’s pulmonary health. The inertial component is typically negligible in clinical considerations [43,65,67]. Among these human lung models, the single-compartment model is preferred by practitioners for its simplicity and sufficient representative complexity in deriving respiratory resistance and static compliance from its data, rendering the other complex models unnecessary. Therefore, it is advised to compare existing single-compartment RC simulation models and select the most suitable one to generate the data required for this study.

2.5. Current Mechanical Parameter Analysis Techniques

Estimating lung parameters ( R R S and C S ) remains challenging.
The primary technique, the end-inspiratory hold maneuver (EIHM) [68], temporarily halts airflow to stabilize airway pressure, enabling calculations of static compliance ( C S ) and inspiratory resistance ( R I N S P ), which is often used as an approximation for R R S . This makes EIHM impractical for continuous, breath-by-breath monitoring. Additionally, approximating R R S using R I N S P is limited by the added resistance from the endotracheal tube (ETT), which varies non-linearly with flow rates and can be affected by turbulent airflow conditions. With 17 standard ETT sizes [69,70], isolating the ETT resistance component from R I N S P is challenging, and no current automated technique effectively extracts R R S from R I N S P . This is problematic since R I N S P can exceed R R S by more than twofold in some cases [65].
Since EIHM is not feasible for continuous monitoring, studies on automated techniques (mentioned in Section 1) commonly estimate C S with dynamic compliance ( C D ) [1,3,33]. However, this estimator’s accuracy fluctuates significantly with changes in R I N S P , which are unknown without EIHM.
Flow-volume loops provide another approach to qualitatively assess R R S and C S . The loop’s expiratory phase provides useful visual cues: its concavity correlates with R R S (Figure 3a), while its gradient is inversely proportional to C S (Figure 3b) [68]. Quantitative methods linking these visual patterns to precise values for R R S and C S remain undeveloped.

3. Methods

3.1. Synthetic Data Generation

To address the scarcity of suitable mechanical ventilation (MV) datasets, we utilized synthetic data generated through simulation. Among the available models [45,71,72,73,74,75,76,77,78,79,80,81,82,83], we identified one that is most appropriate for our purposes and is a validated and verified patient–ventilator data generating tool published in [71]. The tool was validated by ensuring the correct generation of independent waveforms in accordance with the set ventilator parameters and by confirming that the resulting dependent waveform responded appropriately to changes in the patient’s pulmonary health parameters. Validation involved overlaying the simulated time-series (TS) waveform data with real-world data for comparison.
Although this tool allows for extensive simulation scenarios, the source also published a generated dataset comprising 640 K TS breaths (pressure, flow, and volume over time) for various ventilation modes (VCC, VCD, and PC) along with their respective mode parameters, equating to 1.92 M unique breaths.
The model parameters included the following:
  • VCC and VCD Modes: Positive End-Expiratory Pressure ( P E E P ), Maximum Flow ( Q m a x ), Tidal Volume ( V t ), Respiratory Resistance ( R R S ), Static Compliance ( C S )
  • PC Mode: P E E P , Peak Inspiratory Pressure ( P I P ), Inspiratory Time ( T i ), R R S , C S
The dataset was designed to encompass a diversity of realistic scenarios by sweeping the ventilator settings and patient parameters across the following ranges:
  • P E E P : 0 to 15 cmH 2 O (4 levels)
  • Q m a x : 10 to 105 L / min (20 levels)
  • V t : 180 to 750 mL (20 levels)
  • P I P : P E E P + 5 to 35 cmH 2 O (20 levels)
  • T i : 0.5 to 2.4 s (20 levels)
  • R R S : 1 to 20 cmH 2 O · s / L (20 levels)
  • C S : 10 to 105 L / cmH 2 O (20 levels)

3.2. Automated Diagnostic Approach

The proposed automated diagnostic approach comprises three main sequential components (see Figure 4). First, the automated statistical mode classifier analyzes time-series data to identify the administered ventilation mode. The classifier’s output informs both the selection of appropriate regression models and the extraction of mode-dependent (patient-independent) features within the feature extraction layer, which also processes time-series data. These extracted features, combined with the ventilation mode feature, form the feature vector, which serves as the input for the selected machine learning regression model to estimate mechanical lung parameters. The mode classifier was trained on a representative dataset of 30,000 breaths (10,000 per mode) from a total dataset of 1.92 million breaths, whilst the regression models were trained on 80% of the complete dataset.

3.2.1. Automatic Mode Classifier

Given the variation in how different ventilation modes respond to the same conditions and adjustments, it is essential to classify the ventilation mode as a feature before inputting TS and anthropometric data into machine learning models. We developed an automatic mode classifier using statistical techniques to analyze TS waveforms and determine the ventilation mode in use. The classifier leverages statistical parameters as informative features that describe the waveform shapes during the inspiratory phase.
The key parameters used for comprehensive classification include the following:
  • Standard Deviation ( S T D ) from the Average Inspiratory Pressure: Represented by a horizontal line during the inspiratory phase of a normalized waveform. It is small for PC mode, slightly larger for VCD mode, and largest for VCC mode.
  • Coefficient of Determination ( R 2 ) of the Flow Waveform: Measures the fit of the flow waveform to a straight line spanning from the point of maximum initial flow to zero flow at the end of the inspiratory phase. It indicates a good fit for VCD mode, a fair fit for PC mode, and a poor fit for VCC mode.
Figure 5 illustrates the concept for overlaying the reference lines (in red) over the waveform data, as described above, in order to extract these ventilation mode description features from the inspiratory phase.
These descriptive features were extracted from the training dataset, with their ranges shown in the boxplots in Figure 6.
Initially, a three-layer decision tree approach was manually developed by visually and iteratively identifying hard decision boundaries on the boxplots of these extracted parameters, classifying up to 92.36% of all instances. The remaining 7.64% (see Figure 7) is due to the close resemblance (confusion) between VCD and PC. Assigning the remaining instances to the mode with predominant unclassified instances (PC mode) results in a 96.42% true positive rating.
Another approach would be to instead use kernel probability distribution functions (KPDFs [84]) to map the likelihood distribution of these statistical waveform shape features (see Figure 8). Solely applying KPDFs results in only a 94.24% true positive rate.
However, we can use the KPDFs approach on the remaining unclassified instances from the aforementioned decision tree approach (see Figure 9). This hybrid classifier results in a 99.18% true positive rate on the training dataset.

3.2.2. Feature Extraction Layer

The feature extraction layer focuses on deriving meaningful features from patient-independent and patient-dependent TS waveform data for use in regression models.
Patient-Independent Features:
  • Vent Mode: VCC, VCD or PC
  • Vent Parameters: P E E P , Q m a x , V t , P I P , T i
These patient-independent features were chosen because they provide a description of the shape of the waveform, which is critical for contextualizing the administered ventilation protocol.
Patient-Dependent Features:
  • Expiratory Phase Volume Time Constant ( τ R C in s )
  • Expiratory Flow at One Time Constant ( Q τ in L / min )
  • Flow-Volume Loop Shape Descriptors: gradient, surface ratio, skewness, kurtosis
These patient-dependent features were chosen because they provide insights into the shape and dynamics of the expiratory phase (mode-independent and patient condition-dependent phase) of the flow-volume loop, which are critical for deriving the mechanical properties of the lung.
Figure 10 clarifies the meaning of the flow-volume loop scoop shape descriptors. The gradient is simply the maximum negative flow divided by the maximum volume displacement. The surface ratio is the area encompassed by the actual scoop (grey and blue shaded area) divided by the area encompassed by the gradient line (blue triangular area).
Skewness [85] and kurtosis [86] further characterize the curve’s shape (blue line) during the exhalation phase by quantifying the horizontal and vertical asymmetry of the data-point distribution (blue squares) relative to the mean. However, the data points were sampled at 200 Hz (time-dependent). Therefore, the original data-point distribution is irregular when omitting the time dimension to plot the flow-volume loop (see Figure 11a) as an example). The skewness and kurtosis functions in MATLAB® only accept the value array as input (flow values). Therefore, to conserve representative information, the points need to be resampled (interpolated) over the same curve concerning the parameter array (volume values), as illustrated by Figure 11b. After that, the skewness and kurtosis of the resampled flow data points can be extracted as features to further quantitatively describe the scoop shape.

3.2.3. Supervised Regression Models for Lung Parameters

A supervised regression approach was used to predict R R S and C S based on the same training dataset from the mode classification stage and results from the feature extraction layer. The MATLAB Regression Learner Toolbox [87] was selected for its ease of use and automated processes, which allow for minimal user-defined settings. This approach aligned with the study’s goal of assessing model performance rather than optimizing it.
To ensure consistent training, we specified essential parameters: all extracted features were used as predictors, and each regression model was trained to predict one mechanical parameter (either R R S or C S ) as the response variable. For validation, a five-fold cross-validation scheme was chosen, with an additional 20% of the dataset set aside for independent testing. While additional settings, such as hyperparameters, training options, and random seed definitions, are available for further customization, we retained default values to maintain a baseline comparison across models.
The Regression Learner Toolbox trained 24 different regression algorithms across six scenarios (three modes and two mechanical parameters). The regression algorithms included the following:
  • Linear Regression Algorithms: Normal Linear Regression, Interactions Linear Regression, Robust Linear Regression, and Stepwise Linear Regression
  • Decision Tree Algorithms: Fine Trees, Medium Trees, Coarse Trees
  • Support Vector Machine (SVM) Algorithms: Linear SVM, Quadratic SVM, Cubic SVM, Fine Gaussian SVM, Medium Gaussian SVM, and Coarse Gaussian SVM
  • Gaussian Process Regression (GPR) Algorithms: Exponential GPR, Squared Exponential GPR, Matern 5/2 GPR, Rational Quadratic GPR
  • Ensemble Algorithms: Boosted Trees, and Bagged Trees
  • Neural Networks (NN): Narrow Neural Network (NNN), Medium Neural Network (MNN), Wide Neural Network (WNN), Bi-Layered Neural Network (BLNN), and Tri-Layered Neural Network (TLNN).
Performance metrics, including RMSE percentage, training speed, over-fitting index, prediction speed, and model size, are used to evaluate and compare the models.

4. Results

Following the development of the hybrid automatic mode classifier, feature extraction layer, and supervised regression models, the remaining 1.92 million breaths were used as the testing set, and the results were recorded. The predictions of the testing set were validated against the provided labeled data from the dataset source. These labels include the ventilation modes and the actual R R S and C S mechanical parameters, showcasing unmatched accuracies of over 98%.

4.1. Automatic Mode Classifier

During training, the true positive rates were 100.00% for VCC mode, 98.67% for VCD mode, and 98.86% for PC mode. In comparison, across the remaining 1.92 million breaths, the true positive rates slightly decreased to 99.87%, 98.75%, and 98.71%, respectively. The false positive rates for VCC, VCD, and PC modes were 0.03%, 1.26%, and 1.38%. Despite this, the classifier’s overall accuracy only dropped slightly, from 99.18% to 99.11%, when evaluated on a dataset that was 63 times larger, demonstrating that the proposed hybrid classifier generalizes well.

4.2. Feature Extraction Layer

The feature extraction layer effectively derived both independent and dependent features, as outlined in Section 3.2.2. Independent features, derived from ventilator settings, allow for the direct evaluation of accuracy and precision, unlike the dependent features. The average and standard deviation, summarized in Table 1, serve as indicators of the accuracy and precision of the feature extraction layer. The extracted Q m a x values are relatively lower than the other features due to the simulation model using flow-lagging mechanical valves, causing a lower inspiratory flow than what was set. Also, since V T is the integral of Q m a x , the simulation error propagates through to this feature. Therefore, these inaccuracies are not due to the feature extraction layer, but rather a simulation tool problem. Nonetheless, the total feature extraction layer residual mean percentage is −2.423% and the residual standard deviation percentage is 3.514%.

4.3. Supervised Regression Models for Lung Parameters

After training 24 different algorithms for each of the six scenarios using the MATLAB Regression Learner Toolbox, the testing set was applied to each and the performance of each model was recorded.
Performance metrics, including RMSE percentage, training speed, overfitting index, prediction speed, and model size were used to evaluate and compare the models.

4.3.1. RMSE Percentage

The root mean squared error of the predictions versus the target values (accuracy). The absolute percentage range is from 0.167 to 9.815% for R R S and from 0.244 to 14.921% for C S . Figure 12 shows the boxplots of the RMSE percentage spread for the PC scenarios. The dots represent data points, the cross denotes the mean, the short lines indicate the interquartile range, and the long lines (whiskers) show the range of values within 1.5 times the interquartile range. The cut-off criteria for the RMSE percentage is chosen as 5.000%.

4.3.2. Training Speed

The duration required to train a model using the specified algorithm. The absolute range is 0.000 to 20.844 days for R R S and 0.000 to 11.015 days for C S . Figure 13 shows the boxplots of the training speed spread for the PC scenarios. The cut-off criteria for the training speed is chosen as 4.000 days. Since training is conducted infrequently, this performance indicator’s scoring weight is decreased ten-fold.

4.3.3. Overfitting Index

An indication of the quality of generalization. It is derived from the validation and test RMSE results. The closer these RMSE results are, the smaller the likelihood that the model is overfitted. The absolute range is 0.000 to 287.940% for R R S and 0.085 to 167.087% for C S . Figure 14 shows the boxplots of the overfitting index spread for the PC scenarios. The cut-off criteria for the overfitting index is chosen as 10.000%.

4.3.4. Prediction Speed

The number of predictions a model can generate within a certain amount of time can greatly affect the deployment cost. The absolute range is 87 to 990,000 obstacles/s (Obs/s) for R R S and 90 to 1,100,000 Obs/s for C S . Figure 15 shows the boxplots of the prediction speed spread for the PC scenarios. The cut-off criteria for the prediction speed is chosen as 300,000 Obs/s.

4.3.5. Model Size

The storage space or memory required to host a model instance on a machine can significantly affect deployment costs. The absolute range is 23.103 to 238.944 MB for R R S and 23.204 to 239.063 MB for C S . Figure 16 shows the boxplots of the model size spread for the PC scenarios. The cut-off criteria for the model size is chosen as 55.000 MB.
The cut-off criteria, along with adjusted bias weights (training time weight reduced tenfold, others set to unity), were applied to evaluate each model. The top-performing models for each scenario are summarized in Table 2.
Figure 17 presents boxplots of the residuals across the testing dataset for some PC mode models, illustrating (a) resistance (worst), (b) resistance (best), (c) compliance (worst) and (d) compliance (best). These plots demonstrate that both R R S and C S exhibit relatively consistent accuracy across the target range when using the best overall performing models: (b) for R R S and (d) for C S . However, the residuals show increased variance or widening dispersion at the upper range, suggesting that prediction accuracy decreases as the true response values reach the upper limits.
Note that from Table 2, neural networks are considered the best-performing algorithms in the initial iteration of this study. Also, the worst accuracy is 97.703%. Training times for these models vary significantly, ranging from 0.67 to 81 h. The overfitting indices are consistently low, indicating strong generalization across the models. Prediction speeds were achieved between 0.33 and 1.1 M observations per second. Additionally, the model sizes average around 25 MB.

4.4. Deployment of Regression Models

The selected regression models for all modes were deployed and validated using simulated mechanical ventilator sessions with varying patient conditions ( R R S or C S ). The simulations utilized a generic patient profile: a 25-year-old male, 186 cm in height. An example of PC mode deployment is provided, using baseline ventilator settings that include a pressure of 5 cmH 2 O , a peak inspiratory pressure of 24.5 cmH 2 O , and an inspiratory time of 2.0 s. The true response trend begins with the patient in a stable, mid-level condition, followed by an increase in the respective lung parameter until the maximum value is reached, after which the condition reverses, decreasing to the lower end of the spectrum. Time-series waveform data from the ventilator under these conditions are processed through the automatic hybrid mode classifier and feature extraction layer. A feature vector for each breath is then passed in parallel to the resistance and compliance regression models. These parameters are tracked over time to generate a condition trend, reflecting the patient’s respiratory state. Figure 18 presents a comparison between the predicted and true condition trends, demonstrating the close alignment between them and validating the research’s outcomes for (a) resistance and (b) compliance.
Table 3 summarizes the average RMSE percentages across all six trend simulation scenarios. The local RMSE percentage is calculated relative to the individual local target values, whereas the total RMSE percentage is based on the entire range of the target values. All six simulated use cases achieved accuracies exceeding 98.22% across the total range of target values.

5. Discussion

This paper’s proposed automatic condition monitoring method is the first to utilize waveform data from continuous mandatory ventilation modes, measured at the mouth opening, to accurately quantify actual respiratory resistance ( R R S ) and static compliance ( C S ) over a spectrum using machine learning techniques.
Effective feature engineering is a vital component of any machine learning experiment. This requires not only that the accuracy and precision of feature extraction meet acceptable standards, but also a thorough exploration of the data to identify correlations and patterns, which can then be distilled into relevant and comprehensive descriptive features. This motivated the development of the automatic hybrid mode classifier and feature extraction layer, which achieved acceptable average errors of 0.89% and −2.42%, respectively.
Table 4 presents a comparative overview of the performance characteristics of the different clusters of machine learning regression models. It is important to note that these results pertain to one use case and may vary for other scenarios and projects.
Neural networks demonstrated the highest overall performance during the initial phase of this study, achieving a minimum accuracy of 97.703%. This performance is exceptional, especially when compared to the worst-case accuracy of existing mechanical parameter analysis techniques, which may be overestimated by more than double (Section 2.5). The combination of compact model sizes (approximately 25 MB) and high prediction speeds (each model executed on a single Intel® Core™ i7-6700HQ CPU core @ 2.60 GHz, manufactured by Intel Corporation, Santa Clara, CA, USA) results in minimal computing resources, facilitating scalability for monitoring multiple patients concurrently. For example, assuming similar core performance, resistance predictions for a breath with pre-processed feature values can theoretically be completed at a rate exceeding 610,000 breaths per second. Given that the average duration of a full respiratory cycle is over 3 s, a single core could theoretically monitor more than 1.83 M patients simultaneously. Thus, these models offer cost-effective and practical solutions to current challenges in pulmonary care.
An important consideration, despite this being an initial iteration, is that the regression models do not maintain constant accuracy across the entire target range, as illustrated in Figure 17. If one model generalizes well in the lower end of the spectrum and another performs better in the higher end, these models could potentially be concatenated. A pre-prediction model combined with a decision tree could then be employed to determine which model to apply for a given range, thereby leveraging the strengths of both models.
Once the models were developed and the feature vectors necessary for predicting a patient’s health condition for each breath were identified, a breath-by-breath condition monitoring system could be implemented to track the patient’s condition trends. These data would provide practitioners with significant advantages, not only by automating and recording calculations—thereby streamlining the screening process, saving time, enabling more frequent assessments, and maintaining data integrity—but also by providing a straightforward method to assess the direction and magnitude of changes in the patient’s condition. This enables more informed decisions regarding treatment modifications and patient prioritization.
Such a system could, for example, be valuable in detecting patient–ventilator asynchrony (PVA), such as double-triggering or breath stacking. During assisted mechanical ventilation, a patient can trigger the ventilator to deliver a breath outside of the inspiratory phase. This becomes problematic when a patient with highly compliant lungs attempts to take an additional breath during the exhalation phase, leading to lung overinflation and increased intrapulmonary pressure. This may result in sensor misreadings, indicating falsely low lung compliance, which, if undetected, could lead to misdiagnosis and inappropriate treatment. By recording the breath-by-breath trends, pulmonologists could more easily detect PVAs like double-triggering, thereby reducing the risk of mistreatment.
Although the lung model used in this study was homogeneous, the overall simulation incorporated additional components, such as the endotracheal tube (ETT), which introduced some heterogeneity. Our results demonstrated that with appropriately labeled data, the effects of individual components, like the ETT, could be isolated effectively, highlighting the potential for further model complexity. The authors anticipate that increasing the resolution of the simulation model to account for lung heterogeneity—such as differences between dependent and non-dependent lung zones—could enable machine learning to identify specific regional effects of pulmonary disease. This approach could isolate parameters at a higher resolution, potentially offering pulmonologists more precise diagnostic information. We, therefore, believe that a more complex model, simulating heterogeneous lung characteristics, could enhance the application of machine learning in pulmonary disease classification and improve diagnostic accuracy.

6. Work Limitations

One key limitation of the proposed models is their dependency on passive patient conditions; they may become inaccurate if a patient exerts any work of breathing. The models were specifically designed for use in the top three continuous mandatory ventilation (CMV) modes, limiting their applicability to other ventilation modes where patient-initiated breaths and patient–ventilator asynchrony are prevalent. Extending the models to account for active breathing efforts or additional ventilation modes would require additional research.
Another limitation is the narrow scope regarding endotracheal tube (ETT) sizes. While the proposed method successfully eliminates the non-linear resistance component associated with the ETT, the models were trained and validated on data from a single ETT size. To generalize the models for broader clinical applications, they must be expanded and validated across various ETT sizes to account for resistance variations caused by differing diameters and lengths.
The models may also be affected by differences in ventilator hardware. Different ventilators exhibit varying levels of accuracy and transient response characteristics (e.g., valve types and responsiveness), which could impact the models’ predictive accuracy. Additionally, not all ventilators provide access to the necessary waveform data, which may necessitate the development of a custom pressure and flow measurement device. Such a device must be carefully designed to avoid interfering with the ventilation process and to meet the ethical standards for patient safety.
Lastly, the issue of sensor noise presents a limitation in the model’s practical implementation. The waveform data obtained from sensors may contain noise, which could reduce model accuracy if not adequately filtered. As no sensitivity tests have been conducted, the models’ susceptibility to sensor noise or other data artifacts remains uncertain. Pre-processing techniques to clean the waveform data may be required to ensure reliable model performance in a clinical setting.

7. Conclusions

This study highlights the potential of automated machine learning models to address challenges in mechanical ventilation, particularly in resource-limited settings. By predicting key pulmonary parameters, such as respiratory resistance ( R R S ) and static compliance ( C S ), these models provide healthcare practitioners with real-time, accurate insights into patient conditions. This can reduce the burden on healthcare professionals while improving patient outcomes through more frequent and reliable monitoring.
Neural networks showed promising results, with exceptional accuracy, compact model sizes, and efficient prediction speeds, making them scalable for monitoring multiple patients. Some variability in performance across the target range suggests room for further optimization.
Monitoring trends in resistance and compliance over time could enhance diagnosis and treatment. These trends may not only help assess the severity of respiratory conditions but also support diagnostic decisions, potentially automating the process or providing intelligent suggestions, allowing practitioners to focus on other critical tasks.
A scalable dashboard connected to pressure, flow, and volume sensors could capture waveform data from thousands or millions of patients. Such a system would enable a non-invasive, breath-by-breath analysis of respiratory parameters, enhancing record-keeping, practitioner efficiency, and patient prioritization, while alleviating strain during respiratory pandemics. Access to real-time data would ultimately increase the likelihood of successful patient recoveries, potentially saving lives.
Additionally, collecting and analyzing data over time could deepen our understanding of respiratory disease progression and recovery, guiding future treatment strategies and enhancing long-term outcomes.
In conclusion, continued refinement and integration of these models with automated diagnostic tools and scalable infrastructure have the potential to revolutionize the monitoring, diagnosis, and treatment of pulmonary conditions, driving significant advancements in our understanding of respiratory diseases and global healthcare practices.

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.

Institutional Review Board Statement

Not Applicable.

Informed Consent Statement

Not Applicable.

Data Availability Statement

The simulation model, generated dataset, and statistical and machine learning models used in this study are available in a publicly accessible GitHub repository at: https://github.com/TheRealPieterMarx/Masters_2022.git (accessed on 17 November 2024).

Conflicts of Interest

The authors declare no conflicts of interest.

Abbreviations

The following abbreviations are used in this manuscript:
BLNNBi-Layered Neural Network
COVID-19Coronavirus Disease 2019
C S Static Compliance
FDIFault Detection and Isolation
GPRGaussian Process Regression
ICUIntensive Care Unit
KPDFKernel Probability Distribution Functions
MNNMedium Neural Network
MVMechanical Ventilation
NNNNarrow Neural Network
PCPressure-Controlled
PEEPPositive End-Expiratory Pressure
P I P Peak Inspiratory Pressure
PVAPatient-Ventilator Asynchrony
Q m a x Maximum Flow
R R S Respiratory System Resistance
RMSERoot Mean Squared Error
STDStandard Deviation
SVMSupport Vector Machine
TLNNTri-Layered Neural Network
TSTime-Series
T i Inspiratory Time
VCCVolume-Controlled Constant Flow
VCDVolume-Controlled Decreasing Flow
V T Tidal Volume
WNNWide Neural Network

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. World Health Organization. GHE: Leading Causes of Death. 2023. Available online: https://www.who.int/data/gho/data/themes/mortality-and-global-health-estimates/ghe-leading-causes-of-death (accessed on 18 September 2024).
  5. Smith, J.; Doe, R. Acute respiratory distress syndrome in COVID-19: Possible mechanisms and therapeutic management. Pneumonia 2020, 12, 45–58. [Google Scholar] [CrossRef]
  6. Al-Rawas, N.; Banner, M.J.; Euliano, N.R.; Tams, C.G.; Brown, J.; Martin, A.D.; Gabrielli, A. Expiratory time constant for determinations of plateau pressure, respiratory system compliance, and total resistance. Crit. Care 2013, 17, R23. [Google Scholar] [CrossRef] [PubMed]
  7. Wald, A.; Jason, D.; Murphy, T.W.; Mazzia, V.D. A computer system for respiratory parameters. Comput. Biomed. Res. 1969, 2, 411–429. [Google Scholar] [CrossRef] [PubMed]
  8. Uhl, R.R.; Lewis, F. Digital computer calculation of human pulmonary mechanics using a least squares fit technique. Comput. Biomed. Res. 1974, 7, 489–495. [Google Scholar] [CrossRef] [PubMed]
  9. Daoud, E.G.; Katigbak, R.; Ottochian, M. Accuracy of the Ventilator Automated Displayed Respiratory Mechanics in Passive and Active Breathing Conditions: A Bench Study. Respir. Care 2019, 64, 1555–1560. [Google Scholar] [CrossRef]
  10. Kannangara, D.O.; Newberry, F.; Howe, S.; Major, V.; Redmond, D.; Szlavecs, A.; Chiew, Y.S.; Pretty, C.; Benyó, B.; Shaw, G.M.; et al. Estimating the true respiratory mechanics during asynchronous pressure controlled ventilation. Biomed. Signal Process. Control 2016, 30, 70–78. [Google Scholar] [CrossRef]
  11. Howe, S.L.; Chase, J.G.; Redmond, D.P.; Morton, S.E.; Kim, K.T.; Pretty, C.; Shaw, G.M.; Tawhai, M.H.; Desaive, T. Inspiratory respiratory mechanics estimation by using expiratory data for reverse-triggered breathing cycles. Comput. Methods Programs Biomed. 2020, 186, 105184. [Google Scholar] [CrossRef]
  12. van Drunen, E.J.; Chiew, Y.S.; Chase, J.G.; Shaw, G.M.; Lambermont, B.; Janssen, N.; Damanhuri, N.S.; Desaive, T. Expiratory model-based method to monitor ARDS disease state. Biomed. Eng. Online 2013, 12, 1. [Google Scholar] [CrossRef]
  13. Peslin, R.; Da Silva, J.F.; Chabot, F.; Duvivier, C. Respiratory mechanics studied by multiple linear regression in unsedated ventilated patients. Eur. Respir. J. 1992, 5, 871–878. [Google Scholar] [CrossRef]
  14. Vicario, F.; Buizza, R.; Truschel, W.A.; Chbat, N.W. Noninvasive estimation of alveolar pressure. In Proceedings of the 2016 IEEE Engineering in Medicine and Biology Society Annual Conference, Orlando, FL, USA, 16–20 August 2016; pp. 2721–2724. [Google Scholar] [CrossRef]
  15. Vicario, F.; Albanese, A.; Karamolegkos, N.; Wang, D.; Seiver, A.; Chbat, N.W. Noninvasive estimation of respiratory mechanics in spontaneously breathing ventilated patients: A constrained optimization approach. IEEE Trans. Biomed. Eng. 2016, 63, 775–787. [Google Scholar] [CrossRef]
  16. Tan, C.P.; Chiew, Y.S.; Chase, J.G.; Chiew, Y.W.; Pretty, C.; Desaive, T.; Md Ralib, A.; Mat, M.B. Model iterative airway pressure reconstruction during mechanical ventilation asynchrony: Shapes and sizes of reconstruction. In Proceedings of the IFMBE Proceedings, Penang, Malaysia, 10–13 December 2017; Volume 67, pp. 133–139. [Google Scholar]
  17. Newberry, F.; Kannangara, O.; Howe, S.; Major, V.; Redmond, D.; Szlavecz, A.; Chiew, Y.S.; Pretty, C.; Benyo, B.; Shaw, G.M.; et al. Iterative interpolative pressure reconstruction for improved respiratory mechanics estimation during asynchronous volume controlled ventilation. In Proceedings of the IFMBE Proceedings, Putrajaya, Malaysia, 6–8 December 2015; Volume 56, pp. 133–139. [Google Scholar]
  18. Redmond, D.P.; Docherty, P.D.; Chiew, Y.S.; Chase, J.G. A polynomial model of patient-specific breathing effort during controlled mechanical ventilation. In Proceedings of the 2015 IEEE Engineering in Medicine and Biology Society Annual Conference, Milan, Italy, 25–29 August 2015; pp. 4532–4535. [Google Scholar] [CrossRef]
  19. Chen, Y.; Yuan, Y.; Chang, Q.; Zhang, H.; Li, F.; Chen, Z. Continuous estimation of respiratory system compliance and airway resistance during pressure-controlled ventilation without end-inspiration occlusion. BMC Pulm. Med. 2024, 24, 249. [Google Scholar] [CrossRef] [PubMed]
  20. Gutierrez, G. A novel method to calculate compliance and airway resistance in ventilated patients. Intensive Care Med. Exp. 2022, 10, 55. [Google Scholar] [CrossRef] [PubMed]
  21. Redmond, D.P.; Major, V.; Corbett, S.; Glassenbury, D.; Beatson, A.; Szlávecz, A.; Chiew, Y.S.; Shaw, G.M.; Chase, J.G. Pressure reconstruction by eliminating the demand effect of spontaneous respiration (PREDATOR) method for assessing respiratory mechanics of reverse-triggered breathing cycles. In Proceedings of the 2014 IEEE Conference on Biomedical Engineering and Sciences, Kuala Lumpur, Malaysia, 8–10 December 2014; pp. 332–337. [Google Scholar] [CrossRef]
  22. Major, V.; Corbett, S.; Redmond, D.; Beatson, A.; Glassenbury, D.; Chiew, Y.S.; Pretty, C.; Desaive, T.; Szlávecz, A.; Benyó, B.; et al. Respiratory mechanics assessment for reverse-triggered breathing cycles using pressure reconstruction. Biomed. Signal Process. Control 2015, 22, 135–145. [Google Scholar] [CrossRef]
  23. Redmond, D.P.; Chiew, Y.S.; Major, V.; Chase, J.G. Evaluation of model-based methods in estimating respiratory mechanics in the presence of variable patient effort. Comput. Methods Programs Biomed. 2019, 171, 67–79. [Google Scholar] [CrossRef] [PubMed]
  24. Chen, Y.; Yuan, Y.; Chang, Q.; Zhang, H.; Li, F.; Chen, Z. Monitoring Lung Mechanics during Mechanical Ventilation using Machine Learning Algorithms. In Proceedings of the 2018 IEEE International Conference on Bioinformatics and Biomedicine (BIBM), Honolulu, HI, USA, 18–21 July 2018; pp. 2197–2201. [Google Scholar] [CrossRef]
  25. Lotti, P.; Braschi, A. Measurements of respiratory mechanics during mechanical ventilation. Minerva Anestesiol. 1999, 65, 301–307. [Google Scholar]
  26. Guérin, C.; Richard, J.C. Measurement of respiratory system resistance during mechanical ventilation. Intensive Care Med. 2007, 33, 1046–1049. [Google Scholar] [CrossRef]
  27. DuBois, A.B.; Brody, A.W.; Lewis, D.H.; Burgess, B.F.J. Oscillation mechanics of lungs and chest in man. J. Appl. Physiol. 1956, 8, 587–594. [Google Scholar] [CrossRef]
  28. Farré, R.; Ferrer, M.; Rotger, M.; Torres, A.; Navajas, D. Respiratory mechanics in ventilated COPD patients: Forced oscillation versus occlusion techniques. Eur. Respir. J. 1998, 12, 170–176. [Google Scholar] [CrossRef]
  29. Farré, R.; Gavela, E.; Rotger, M.; Ferrer, M.; Roca, J.; Navajas, D. Noninvasive assessment of respiratory resistance in severe chronic respiratory patients with nasal CPAP. Eur. Respir. J. 2000, 15, 314–319. [Google Scholar] [CrossRef]
  30. 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]
  31. 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]
  32. Landry, J. Respiratory Formulas, Calculations, and Equations. 2024. Available online: https://www.respiratorytherapyzone.com/respiratory-therapy-formulas-calculations/ (accessed on 30 April 2024).
  33. Arnal, J.M. Monitoring Mechanical Ventilation Using Ventilator Waveforms; Springer: Cham, Switzerland, 2018. [Google Scholar]
  34. 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]
  35. Chatburn, R.L. Understanding mechanical ventilators. Expert Rev. Respir. Med. 2010, 4, 809–819. [Google Scholar] [CrossRef] [PubMed]
  36. 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] [PubMed]
  37. 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]
  38. 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).
  39. Campbell, R.S.; Davis, B.R. Pressure-Controlled Versus Volume-Controlled Ventilation: Does it Matter? Respir. Care 2002, 47, 416–426. [Google Scholar]
  40. 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]
  41. 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]
  42. 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]
  43. Cairo, J.M. Pilbeam’s Mechanical Ventilation: Physiological and Clinical Applications; Elsevier Health Sciences: Amsterdam, The Netherlands, 2015. [Google Scholar]
  44. Wright, G.T.; Ashworth, L.; Pettey, S. Optimizing Mechanical Ventilation During General Anesthesia. AANA J. 2020, 88, 149–157. [Google Scholar]
  45. 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]
  46. Kock, K.D.S.; 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]
  47. 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]
  48. Dai, J.; Wang, H.; Xu, Y.; Chen, X.; Tian, R. Clinical application of AI-based PET images in oncological patients. Semin. Cancer Biol. 2023, 85, 161–175. [Google Scholar] [CrossRef]
  49. Bakr, M.; Reis, A. The role of machine learning in clinical chemistry: Current trends and future perspectives. Clin. Chem. Lab. Med. (CCLM) 2021, 59, 2027–2035. [Google Scholar]
  50. Gupta, A.; Sharma, S. Time-series analysis in healthcare: A systematic review. J. Biomed. Inform. 2021, 119, 103846. [Google Scholar] [CrossRef]
  51. Blanch, L.; Villagra, A.; Sales, B.; Montanya, J.; Lucangelo, U.; Luján, M.; García-Esquirol, O.; Chacón, E.; Estruga, A.; Oliva, J.C.; et al. Asynchronies during mechanical ventilation are associated with mortality. Intensive Care Med. 2015, 41, 633–641. [Google Scholar] [CrossRef]
  52. Vignaux, L.; Tassaux, D.; Jolliet, P.; Piquilloud, L. Automated detection of patient-ventilator asynchrony: New tools for improving ventilator settings. Respir. Care 2019, 64, 890–901. [Google Scholar] [CrossRef]
  53. Isermann, R. Fault-Diagnosis Systems: An Introduction from Fault Detection to Fault Tolerance; Springer Science & Business Media: Berlin/Heidelberg, Germany, 2005. [Google Scholar]
  54. 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]
  55. Shumway, R.H.; Stoffer, D.S. Time Series Analysis and Its Applications: With R Examples, 4th ed.; Springer: Berlin/Heidelberg, Germany, 2017. [Google Scholar] [CrossRef]
  56. Durbin, R.; Eddy, S.R.; Krogh, A.; Mitchison, G. Biological Sequence Analysis: Probabilistic Models of Proteins and Nucleic Acids; Cambridge University Press: Cambridge, UK, 1998. [Google Scholar] [CrossRef]
  57. Brigham, E.O. The Fast Fourier Transform and Its Applications; Prentice Hall: Upper Saddle River, NJ, USA, 1988. [Google Scholar]
  58. Mallat, S. A Wavelet Tour of Signal Processing: The Sparse Way, 3rd ed.; Academic Press: Cambridge, MA, USA, 2009. [Google Scholar]
  59. Hochreiter, S.; Schmidhuber, J. Long Short-Term Memory. Neural Comput. 1997, 9, 1735–1780. [Google Scholar] [CrossRef]
  60. Bai, S.; Kolter, J.Z.; Koltun, V. An Empirical Evaluation of Generic Convolutional and Recurrent Networks for Sequence Modeling. arXiv 2018, arXiv:1803.01271. [Google Scholar]
  61. Müller, M. Dynamic Time Warping. In Information Retrieval for Music and Motion; Springer: Berlin/Heidelberg, Germany, 2007; pp. 69–84. [Google Scholar] [CrossRef]
  62. Jolliffe, I.T. Principal Component Analysis, 2nd ed.; Springer: Berlin/Heidelberg, Germany, 2002. [Google Scholar] [CrossRef]
  63. Granger, C.W.J. Investigating Causal Relations by Econometric Models and Cross-spectral Methods. Econometrica 1969, 37, 424–438. [Google Scholar] [CrossRef]
  64. Bengio, Y.; Courville, A.; Vincent, P. Representation Learning: A Review and New Perspectives. IEEE Trans. Pattern Anal. Mach. Intell. 2013, 35, 1798–1828. [Google Scholar] [CrossRef] [PubMed]
  65. 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]
  66. Ghafarian, P.; Jamaati, H.; Hashemian, S.M. A Review on Human Respiratory Modeling. Tanaffos 2016, 15, 61. [Google Scholar] [PubMed]
  67. 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]
  68. Emrath, E. The basics of ventilator waveforms. Curr. Pediatr. Rep. 2021, 9, 11–19. [Google Scholar] [CrossRef]
  69. 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]
  70. Tilakaratna, P. Tracheal Tubes Explained Simply. 2024. Available online: https://www.howequipmentworks.com/tracheal_tubes/ (accessed on 30 April 2024).
  71. Marx, P. Masters_2022. 2022. Available online: https://github.com/TheRealPieterMarx/Masters_2022.git (accessed on 28 April 2024).
  72. 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).
  73. Miller, S. Simscape-Medical-Ventilator. 2021. Available online: https://github.com/mathworks/Simscape-Medical-Ventilator (accessed on 14 April 2020).
  74. Kamthamraju, R. Neonatal-Ventilator. 2020. Available online: https://github.com/ravalik28/Neonatal-ventilator (accessed on 8 April 2020).
  75. 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]
  76. 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]
  77. Al-Naggar, N.Q. Modelling and Simulation of Pressure Controlled Mechanical Ventilation System. J. Biomed. Sci. Eng. 2015, 8, 707–716. [Google Scholar] [CrossRef]
  78. 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]
  79. 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]
  80. Guler, H.; Ata, F. Design of a Fuzzy-LabVIEW-Based Mechanical Ventilator. Comput. Syst. Sci. Eng. 2014, 29, 219–229. [Google Scholar]
  81. Alessandro. Lung Ventilation in Simulink. 2022. Available online: https://alessandromastrofini.it/2022/04/05/ventilation/ (accessed on 30 April 2024).
  82. 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]
  83. Das, A. Modelling and Optimisation of Mechanical Ventilation for Critically Ill Patients. Ph.D. Thesis, University of Exeter (United Kingdom), Exeter, UK, 2012. [Google Scholar]
  84. MathWorks. Pdf—Probability Density Function. MathWorks, 2023. Statistics and Machine Learning Toolbox Documentation. Available online: https://www.mathworks.com/help/stats/prob.normaldistribution.pdf.html (accessed on 30 April 2024).
  85. MathWorks. Skewness—Measure of Asymmetry of Data. MathWorks, 2023. Statistics and Machine Learning Toolbox Documentation. Available online: https://www.mathworks.com/help/stats/skewness.html (accessed on 30 April 2024).
  86. MathWorks. Kurtosis—Measure of the “Tailedness” of Data Distribution. MathWorks, 2023. Statistics and Machine Learning Toolbox Documentation. Available online: https://www.mathworks.com/help/stats/kurtosis.html (accessed on 30 April 2024).
  87. MathWorks. Regression Learner App. 2023. Available online: https://www.mathworks.com/help/stats/regression-learner-app.html (accessed on 18 September 2024).
Figure 1. Common Critical, Mandatory Modes: (a) Volume-Controlled Constant Flow Pattern, (b) Volume-Controlled Decelerating Flow Pattern, (c) Pressure-Controlled.
Figure 1. Common Critical, Mandatory Modes: (a) Volume-Controlled Constant Flow Pattern, (b) Volume-Controlled Decelerating Flow Pattern, (c) Pressure-Controlled.
Diagnostics 14 02616 g001
Figure 2. The pressure-dependent waveforms of the VCC mode for swept patient health conditions.
Figure 2. The pressure-dependent waveforms of the VCC mode for swept patient health conditions.
Diagnostics 14 02616 g002
Figure 3. Effects on the flow-volume loop: (a) changes in R R S and (b) changes in C S .
Figure 3. Effects on the flow-volume loop: (a) changes in R R S and (b) changes in C S .
Diagnostics 14 02616 g003
Figure 4. Flow diagram of total system overview.
Figure 4. Flow diagram of total system overview.
Diagnostics 14 02616 g004
Figure 5. Typical reference overlay onto waveforms for extracting standard deviation and coefficient of determination per ventilation mode.
Figure 5. Typical reference overlay onto waveforms for extracting standard deviation and coefficient of determination per ventilation mode.
Diagnostics 14 02616 g005
Figure 6. Per mode boxplots of the descriptive features: (a) standard deviation and (b) coefficient of determination.
Figure 6. Per mode boxplots of the descriptive features: (a) standard deviation and (b) coefficient of determination.
Diagnostics 14 02616 g006
Figure 7. Per mode confusion boxplots of the descriptive features: (a) standard deviation and (b) coefficient of determination.
Figure 7. Per mode confusion boxplots of the descriptive features: (a) standard deviation and (b) coefficient of determination.
Diagnostics 14 02616 g007
Figure 8. Per mode kernel probability distribution functions of the descriptive features: (a) standard deviation and (b) coefficient of determination.
Figure 8. Per mode kernel probability distribution functions of the descriptive features: (a) standard deviation and (b) coefficient of determination.
Diagnostics 14 02616 g008
Figure 9. Per mode confusion kernel probability distribution functions of the descriptive features: (a) standard deviation and (b) coefficient of determination.
Figure 9. Per mode confusion kernel probability distribution functions of the descriptive features: (a) standard deviation and (b) coefficient of determination.
Diagnostics 14 02616 g009
Figure 10. Expiratory phase of flow-volume loop with shape descriptors.
Figure 10. Expiratory phase of flow-volume loop with shape descriptors.
Diagnostics 14 02616 g010
Figure 11. Expiratory phase of flow-volume loop: (a) originally sampled distribution and (b) resampled distribution for conserving representative information.
Figure 11. Expiratory phase of flow-volume loop: (a) originally sampled distribution and (b) resampled distribution for conserving representative information.
Diagnostics 14 02616 g011
Figure 12. Boxplots of the RMSE percentage for PC scenarios.
Figure 12. Boxplots of the RMSE percentage for PC scenarios.
Diagnostics 14 02616 g012
Figure 13. Boxplots of the training speed for PC scenarios.
Figure 13. Boxplots of the training speed for PC scenarios.
Diagnostics 14 02616 g013
Figure 14. Boxplots of the overfitting index for PC scenarios.
Figure 14. Boxplots of the overfitting index for PC scenarios.
Diagnostics 14 02616 g014
Figure 15. Boxplots of the prediction speed for PC scenarios.
Figure 15. Boxplots of the prediction speed for PC scenarios.
Diagnostics 14 02616 g015
Figure 16. Boxplots of the model size for PC scenarios.
Figure 16. Boxplots of the model size for PC scenarios.
Diagnostics 14 02616 g016
Figure 17. Boxplots of the testing datasets residuals of PC for (a) R R S (worst), (b) R R S (best), (c) C S (worst) and (d) C S (best).
Figure 17. Boxplots of the testing datasets residuals of PC for (a) R R S (worst), (b) R R S (best), (c) C S (worst) and (d) C S (best).
Diagnostics 14 02616 g017
Figure 18. Condition trend monitoring predictions of PC mode for (a) R R S and (b) C S .
Figure 18. Condition trend monitoring predictions of PC mode for (a) R R S and (b) C S .
Diagnostics 14 02616 g018
Table 1. Accuracy and precision of extracted independent features.
Table 1. Accuracy and precision of extracted independent features.
ParameterResidual Mean [%]Residual STD [%]
P E E P 1.2981.115
Q m a x −8.6949.834
V T −5.4063.941
T i −0.1791.710
P I P 0.8680.970
Table 2. Performance Summary of the Chosen Regression Models.
Table 2. Performance Summary of the Chosen Regression Models.
CaseAlg.RMSE [%]Training Speed [d]Overfit Index [%]Pred. Spd. [M Obs/s]Size [MB]
R VCCBLNN1.6102.4213.7420.6125.042
R VCDBLNN1.3903.3860.7810.9425.043
R PCWNN0.4310.6321.1760.3323.127
C VCCMNN1.9632.3731.7910.7925.142
C VCDNNN2.2972.3310.3231.1025.142
C PCMNN0.9240.0285.9670.5423.208
Table 3. Local and total RMSE percentages per use case.
Table 3. Local and total RMSE percentages per use case.
Use CaseMean Local RMSE Percentage [%]Mean Total RMSE Percentage [%]
R VCC3.101.05
R VCD3.441.24
R PC0.720.26
C VCC2.471.01
C VCD6.041.78
C PC1.340.77
Table 4. Interpreting the general performance metrics of the regression model clusters for this work.
Table 4. Interpreting the general performance metrics of the regression model clusters for this work.
ClusterTraining TimeTesting RMSE (Accuracy)Model SizePrediction SpeedBest For
Linear ModelsVery LowModerateModerate to LargeVery HighFast deployment with low computational cost
Tree-Based ModelsVery LowModerate to HighSmall to ModerateHighBalanced performance, interpretability
Support Vector MachinesModerate to HighGood to Very GoodModerateLow to ModerateHigh accuracy with manageable training cost
Gaussian Process RegressionVery HighVery High (Excellent)LargeVery LowHigh-accuracy tasks where real-time prediction isn’t needed
Neural NetworksModerateGoodCompactVery HighReal-time applications needing both accuracy and speed
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 Technique for Monitoring Mechanically Ventilated Patient Lung Conditions. Diagnostics 2024, 14, 2616. https://doi.org/10.3390/diagnostics14232616

AMA Style

Marx P, Marais H. A Technique for Monitoring Mechanically Ventilated Patient Lung Conditions. Diagnostics. 2024; 14(23):2616. https://doi.org/10.3390/diagnostics14232616

Chicago/Turabian Style

Marx, Pieter, and Henri Marais. 2024. "A Technique for Monitoring Mechanically Ventilated Patient Lung Conditions" Diagnostics 14, no. 23: 2616. https://doi.org/10.3390/diagnostics14232616

APA Style

Marx, P., & Marais, H. (2024). A Technique for Monitoring Mechanically Ventilated Patient Lung Conditions. Diagnostics, 14(23), 2616. https://doi.org/10.3390/diagnostics14232616

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop