This paper was converted on www.awesomepapers.org from LaTeX by an anonymous user.
Want to know more? Visit the Converter page.

Detecting inspiratory holds in bedside waveforms using a probabilistic modeling approach

Anouk van Diepen
(January 2020)

1 Abstract

In this paper we propose an algorithm for finding inspiratory holds in bedside waveforms using a probabilistic modeling approach. Inspiratory holds contain useful information about the properties of the patient. Finding inspiratory holds in bedside waveforms is a problem the author ran into when working on research with flow and pressure measurements from mechanical ventilators. In this paper, we propose a simple solution for detecting the inspiratory holds.

2 Introduction

Mechanical ventilation is a basic life saving intervention on the ICU. However, ventilation can be quite dangerous and can lead to permanent lung damage if the patient is not ventilated correctly [1]. How a patient responds to mechanical ventilation depends for a large extent on the resistance and compliance of the patient’s own respiratory system. A trick to measure these parameters is called the inspiratory hold manoeuvre [2]. During the inspiratory hold manoeuvre, the airflow to the patient is minimized and it is possible to measure the resistance and compliance. These inspiratory holds are often made by hand and can only be done for a very short amount of time, due to the limitation in airflow. It might be useful to look back into the measurements and to find the inspiratory holds. However, this might be very laborious due to the amount of data that is being collected. In order to assist doctors and to encourage research on mechanical ventilation, we propose an algorithm based on a probabilistic modeling approach. Usually during mechanical ventilation, three waveforms are measured, the airflow, the volume and the pressure. During an inspiratory hold, the flow to the patient is zero and the pressure is high (see Figure 1). This is a unique property of the inspiratory hold and makes it therefore very suitable for probabilistic modeling.

Refer to caption
Figure 1: Example of a pressure waveform and flow waveform with an inspiratory hold.

3 Model specification

From a probabilistic modeling point of view, two situations can be defined. At a time instance there is an inspiratory hold (model 1 or M1M_{1}) or there is no inspiratory hold (model 2 or M2M_{2}). To test whether the data DD favors M1M_{1} or M2M_{2}, we use Bayes theorem:

p(M1|D)p(M2|D)=p(D|M1)p(M1)p(D|M2)p(M2)\frac{p(M_{1}|D)}{p(M_{2}|D)}=\frac{p(D|M_{1})p(M_{1})}{p(D|M_{2})p(M_{2})} (1)

We call the term p(D|Mx)p(D|M_{x}) the model evidence, which shows the preference of the data for a specific model, and p(Mx)p(M_{x}) the prior distribution which specifies our prior preference for a certain model [3]. It is clear that the model specification is an important factor when this term is calculated. Because inspiratory holds have a distinct pattern compared to the rest of the data (no flow and a high pressure), it is not difficult to come up with a suitable model. For simplicity, we start with assuming that the flow and pressure are independent:

p(D|M1)=p(flow|M1)p(pressure|M1)p(D|M_{1})=p(flow|M_{1})p(pressure|M_{1}) (2)

To simplify the model even further, we assume that the data points in time are also independent:

p(D|M1)=t=1Tp(flowt|M1)p(pressuret|M1)p(D|M_{1})=\prod_{t=1}^{T}p(flow_{t}|M_{1})p(pressure_{t}|M_{1}) (3)

Where flowtflow_{t} and pressuretpressure_{t} are the time samples of the flow and pressure respectively at time tt.

Due to the nature of the measurements, we know that the data has white noise with fixed mean and fixed variance during the inspiratory holds. We can therefore define the probability distributions over the data points in the following manner:

p(flowt|M1)\displaystyle p(flow_{t}|M_{1}) =𝒩(flowt|μf,σf2)\displaystyle=\mathcal{N}(flow_{t}|\mu_{f},\sigma_{f}^{2}) (4)
p(pressuret|M1)\displaystyle p(pressure_{t}|M_{1}) =𝒩(pressuret|μp,σp2)\displaystyle=\mathcal{N}(pressure_{t}|\mu_{p},\sigma_{p}^{2}) (5)

For simplicity, and because of the knowledge about the inspiratory holds, the author chooses to set the following values for the mean and variances:

μf=0\displaystyle\mu_{f}=0
σf2=1\displaystyle\sigma_{f}^{2}=1
μp=15\displaystyle\mu_{p}=15
σp2=1\displaystyle\sigma_{p}^{2}=1

For a more complicated model, there could also be chosen to learn these parameters from the data or to specify extra probability distributions over these parameters. However, in order to do this it might be helpful to have a training set, which is not available in our case.

The definition of our second model evidence is chosen in the following way:

P(D|M2)=1p(D|M1)P(D|M_{2})=1-p(D|M_{1}) (6)

We know a priori that M2M_{2} is much more likely than M1M_{1}, because there are only a few inspiratory holds in our data set. We can therefore choose fixed values for p(M1)p(M_{1}) and p(M2)p(M_{2}). However, because these values are constant, the following statement is valid:

p(M1|D)p(M2|D)p(D|M1)p(D|M2)\frac{p(M_{1}|D)}{p(M_{2}|D)}\propto\frac{p(D|M_{1})}{p(D|M_{2})} (7)

It does not matter which constant values we choose for the prior distributions.

Based on all the above information, we choose the following function to be our scoring function:

f(t)=𝒩(flowt|μf,σf2)𝒩(pressuret|μp,σp2)1𝒩(flowt|μf,σf2)𝒩(pressuret|μp,σp2)f(t)=\frac{\mathcal{N}(flow_{t}|\mu_{f},\sigma_{f}^{2})\mathcal{N}(pressure_{t}|\mu_{p},\sigma_{p}^{2})}{1-\mathcal{N}(flow_{t}|\mu_{f},\sigma_{f}^{2})\mathcal{N}(pressure_{t}|\mu_{p},\sigma_{p}^{2})} (8)

4 Experimental validation

The algorithm is evaluated on a real data set. However, due to privacy reasons, the author has decided not to disclose the results of the real data set. In order to illustrate how the algorithm works, we show the results on a mock waveform that has the same properties as the real waveforms. To produce the mock waveform and to evaluate the model evidence, Matlab 2019b is used. The simulations for the pressure, flow, and evaluation of the scoring function are shown in Figure 2. During the inspiratory hold, the scoring function is high, indicating a high model evidence for M1M_{1}.

Refer to caption
Figure 2: Example of a pressure waveform and flow waveform with an inspiratory hold around 45 seconds, and the result of evaluating the scoring function (Equation 8) on these waveforms.

5 Conclusion

In this paper we proposed an easy solution to the problem of detecting inspiratory holds in flow waveforms and pressure waveforms using probabilistic models. The advantages of this approach are that the data does not need to be filtered, the model is extendable to expiratory holds, and it is possible to make the model more complex. The current model specification is one of the simplest models that is possible. It is easy to come up with more complex models that might perform better (for example, by taking time dependence into account or taking the dependence between the pressure and the flow into account). However, for our current research, the model specification as proposed in this paper is sufficient.

6 Acknowledgements

Special thanks to Ashley de Bie and the Catharina Hospital in Eindhoven, for collecting the real data, sharing the data, taking the time to explain inspiratory holds, and inspiring me to make this.

References

  • [1] Arthur S. Slutsky and V. Marco Ranieri. Ventilator-induced lung injury. The New England Journal of Medicine, 369(22):2126–2136, November 2013.
  • [2] Benjamin D. Singer and Thomas C. Corbridge. Basic invasive mechanical ventilation:. 102(12):1238–1245.
  • [3] Christopher M. Bishop. Pattern recognition and machine learning. Information science and statistics. Springer, New York, 2006.