Download as pdf or txt
Download as pdf or txt
You are on page 1of 8

InternationalJournal of Clinical Monitoring and Computing 12: 105-t I2. 1995.

105
9 1995KtuwerAcademicPublishers. Printedin the Netherlands.

Tutorial article

M a t h e m a t i c a l modelling o f ventilation m e c h a n i c s

Ute Morgenstem ~ & Siegfried Kaiser 2


1 Technische Universitiit Dresden, Fakultiit Elektrotechnik, Institutfiir Biomedizinische Technik, Mommsenstr. 13,
D-O1069 Dresden, Germany; 2 Kalkreuther Strafle 32, D-01129 Dresden, Germany

Accepted 1 February t995

Key words: modelling, parameter estimation, simulation, ventilation mechanics, data acquisition

Abstract

Routine application of 'rule of thumb' parameter sets in clinical practice pushes model visions to the background,
including the complete framework of assumptions, simplifications, suppositions and conditions. But: models can
be a very strong tool, when applied selectively - that means, with a clear idea of destination, definition, parameter
selection and verification.
This article discusses universal issues of modelling - based on ventilation mechanics models in intensive care
medicine.

Abbreviations: AIC - A K A I K E ' s information theoretic criterion, ARX - auto regressive model with external input,
C - compliance, E - elastance, EX - expiratory, FPE - final prediction error, IN - inspiratory, LMS - least mean
squares method, R - resistance, s 2 - dispersion, P, V, V ' - pressure, volume and flow at airway opening, PCV -
pressure controlled ventilation

Introduction we join to find a more precise mathematical mod-


el of physical, chemical and biological process-
Did you experience similar discussions? es during ventilation? When improved computer
algorithms can take part of the clinical routine bur-
'Life is too complex' - says the physician - 'to fit
den you get more time for patient treatment!'
it into mathematical models'.
'Processes in human organism are predictable' Critical care medicine has to face lots of trouble,
- says the engineer - 'let us find adequate models and ventilation mechanics is a minor one, compared
to design effective clinical equipment'. to others, e.g. gas exchange. Intensivists must rely
on minimal sets of parameters displayed, when they
And that's what they really mean:
decide, which measures to take. They got accustomed
'Interdependencies between functions of the to the fact that there are some dependencies between
human organism are so complex that separating those parameters and the patient's state. And experi-
single parts for the purpose of modelling them is ence forms an intuitive model. But what do monitoring
a naive attempt. Treating a patient and being suc- devices display actually?
cessful is a matter of medical science and clinical As a matter of fact, scientists (physiolo-
experience. You never will write that down in a few gists/engineers) feel the complexity of processes in
lines of computer code.' human organism and thus they tend to design ade-
'Right, but there are some points, by which you quate, i.e. sophisticated, models of those processes.
decide, which are favourable ventilator settings and When the affair comes to the design of clinical equip-
how they depend on C, R and other indices. Can't ment, all those fine models have to 'be adapted' to the
106

9 [ 1

PHYSICIAN
/
i
P~
!'
P: /\J \\
// PHYSICIST INFORMATICS
Engineer

d~~ '-i-
'~- "~"-"-~-~-~L
/

MATHEMATICIAN
Ps(t)-Pp,(t)-k~V(t)+k2V(t)
PATIENT
MEASURINGTECHNIQUES
Engineer ?
2
\\
\
k
\" ~162....c;pv )~
/ \

/' \
SYSTEMCONTROLEngineer ELECTRICALEngineer

Fig. 1. Models from various fields support clinical processes.

DIA GNOS TICS

I
[
data storage 1
(--~ tp.r"~ signal i~ datarepre- e'7~ )
/mZA" kS)acq uisition sentation~ 2k~)~ - ~ putting a
# ; \ and processing output i / Q ~ ~ diagnosis,
therapy
vital planning,
functions decision
\ biological technicalpart I biological/~ making
at:t '
~pa . ~ substanceand/or Pa#7
Q -" energyapplicatio-n @ ~
I I
I I

PATIENT THERAPEUTICS PHYSICIAN


Fig. 2. Four interfaces between biological and technical system in biomedical engineering.
107
mechanical ventilation process

I I I
I I I

; ~
biological system part technical system part
I_ ----" L

tracheobronchial system O 0 mechanical ventilator:


thorax, diaphragm Q) gas mixing
alveolo-caplllary membrane O IN-, EX-, PEEP-valves
solution and binding of O sensors (P,V',FOz)
respiratory gases in blood ventilator control
cellular-capillary membrane O O humidifier
control by respiration centre O O tubings
interaction with heart and O O water traps
circulatory functions O Y-piece
metabolism and ioadings O O endotracheal tube
O sensors (additionalmonitoring)

Fig~3. Biologica]and lechnicalsubsystemsof mechanicalvenlilafionprocess.

critical care environment. That means, they have to be integrated into the ventilator and monitoring subsys-
reduced to a minimum ('managable') set of interface tems (see Fig. 3).
parameters. Smart models will describe this ventilation pro-
Which is the way out of that 'state of the art'? May cess complexity with homogeneous tools. Ventilators
we design equipment, both sophisticated and man- with valves, tubes, humidifier, Y-piece, same as the
agable? We say YES - and doing so, we have to answer patient's respiratory system are networks of gas filled
some questions. tubes with branchings, junctions and bends, driving
flow and resisting against a flow of gas of variable
properties (temperature, humidity, concentrations).
What is the system/process to be described? Obviously the engineer knows the 'anatomy and
physiology' of technical parts designed by himseIf bet-
Every application of technical devices on patients ter than the seemingly very noisy biological part, dif-
forms a biological - technical system of interacting ficult to be isolated and obstinate against attempts to
components. We have to consider four interfaces (Fig. reveal its design secrets (Grodins [1 ]).
2) which stand for an interaction between biologi- A possible approach, separating features of the
cal subjects (patient/physician) and technical objects technical part, may be the mathematical description
(devices). Depending on the direction of flow of infor- of tube characteristics [2]. This allows to compensate
mation, substance or energy we distinguish between additional resistance during pressure assisted sponta-
diagnostical and therapeutical activities and corre- neous breathing [3]. At the same time all the other
sponding device functions. technical components are assumed to be ideal.
For mechanical ventilation of intensive care
patients, diagnostical and therapeutical functions are
108

- a set of candidate models to choose the model struc-


ture,
problem analysis
Know-
--criteria for selecting a particular model from the
ledge: set: the identification and validation methods.
formulation of Cyclically, in several iterations (Fig. 4) model struc-
theories model aim and ture, estimation methods/options and type of experi-
models application mental data are adapted to meet an optimization goal,
data
laws a certain model accuracy. Model parameters (i.e. math-
model design ematical coefficients) a4, bj in Table 1 do not necessar-
...
validation ily correspond to physically or physiologically inter-
pretable parameters or indices - the functional model
model parameter
estimation l elements R,~, E~ in Table 1. After describing the input-
output model, e.g. by differential equation, coefficients
verification
have to be estimated and then calculated 'back' to the
I simulation: I model elements (which is difficult or nearly impossible
model ex~iriments for greater systems), Table 1.
But remember: in intensive care, all characteris-
tics of the respiratory and technical system are usually
Fig. 4. Steps for model generating.
concentrated into two parameters (Resistance R and
Compliance C), both of them depend on V'(t), V(t),
P(t)...
I biologicalpart
1 Physical parameters of system components, e.g.
tubes, may be calculated theoretically (applying laws
of gas dynamics to the component geometry), or may
be defined on an experimental basis (measured data).
Various mathematical algorithms are applicable:
upper proximal distal visco- a. methods of isolated values [4] or methods consid-
airway lower lower elastical
resistance airway, airway tissue ering or not considering disturbances: parameter
gas properties estimation/-identification
distribution (power b. algorithms operating in time or frequency domain:
(pandellufl) compensation) differential equations/spectral analysis
c. methods for continuous or discrete systems: L-/Z-
Fig. 5. Passive gas dynamics and respiratory mechanics model.
transfer function
d.parametric or nonparametric description: state-
space model/impulse response with direct (e.g.
The genesis of models ARX) or recursive (e.g. RARX) algorithms and
various adaptation principles like LMS (on-line)
Intensivists look at the system 'from outside'. The sys- or forgetting factor analysis [5, 6, 8].
tem is assumed to be a black box. Conclusions on Nonlinearities (e.g. [7]) may be implemented as a (for-
properties are drawn from the system behaviour. Phys- mal) n input- 1 output model. Computer software tools
iologists analyse structure and function of system parts facilitate the handling of mathematical algorithms [8].
and then create models, reflecting the behaviour of re- Parameters gained by different methods are mutual-
spiratory systems. ~y corresponding, they may be transformed into each
Both intensivists and physiologists meet at the cru- other.
cial point: when defining ventilation indices in connec-
tion with model parameters and structure (step 1 . . .
3, Fig. 4). They use available engineering tools to do At which accuracy may the model describe the
SO. process?
Estimation of model parameters/indices (step 4,
Fig. 4) is based on: Certain physicians tend to interpret mathematical
- input/output data, structures 'into' the physiological process, e.g. [9].
109
Table I. Mathematical descriptions of the same respiratory system varying with model structure. The indices of model elemems are incremented
left to right inside the model. Pressure P(0 and Volume V(t) with their derivations represent the measurable dynamical behaviour of the
respiratory system mechanics and gas dynamics according to P- or W-source signal pattern.

model a~P (t)+agPj:~t) ', : % P ( t ) = 13"~~ ,' ,", ~ t......


. ) . ' ~~::"
b V " r ' t ~ b....: ~' <, (......
, t S '~
§ ~: '
::.9':: ,,.;f?;:.,<
",',y.,:.!,;
'r V;':~"
.fi'r
'..,~, :,.?:) ,, <:.'.

=+eVh :'.G:',',"
)9/?;;',!

:/.:., ?;:
~i.';: EI+Ea
'2:(?d

i', ';" P.:',


'.'<W:. ',-.,G.,'L77~<,-i
"Y'~,R*R" R * E '~'':7 " ~ E * E "
:,--..,,.? .,57,.':<;.55:,,:9:
,.&.:'/ ~::.';h,?<'v.J.v
'-'t ' "" "

In terms of the 'black box' model, they try to light the clinical use, equipment has to be applied economical-
inner of the box. Thus model 5 from Table 1 may be ly. Device characteristics and sensor location influence
interpreted as follows: parameter estimation too, Fig. 7, Table 2.
Viscoelastical tissue properties are described Especially V'(t)-measurings are influenced by the
together with gas dynamics by P-V-relations. Differ- sensor error (up to 15% relative error already under
ences in behaviour result from different time constants. static conditions).
Such highly parametric models could be a good basis Consequently, a trend analysis gives more useful
for simulation, but elements R,,, Cm are hardly to be results than comparing absolute measurement results
calculated from model coefficients a/, by. to normative values.
For a chosen model structure parameters vary cor-
responding to the estimation algorithm. Figure 6 shows
R I N , REx, C, calculated by a method of isolated val- Which phenomenons may be investigated by
ues (useful only with volume controlled ventilation and which models?
inspiratory pause) [4] in comparison to R, C estimated
by least squares method for ARX model (usable with Models may be of practical use in either of two
every ventilation signal form/ventilation pattern). Both ways:
2-parameter-models seem to be insufficiently exact in - After defining one fixed application oriented mod-
describing the ventilation process, Fig. 6. Hess [10] el structure, model parameters are estimated and
tested six methods of calculating airway resistance. normative values are established: i.e. classify-
Notice: unfortunately, in this case values estimated by ing patient characteristics under determined condi-
different methods should not be simply compared to tions - model parameters are compared to norma-
each other: Mathematical model structure and param- tive (including pathological) values. Traditionally,
eter estimation procedures influence the model accura- since 1915 (Rohrer) the simpliest RC-model has
cy, and input/output data is measured incorrectly. been in use!
Model accuracy is indicated by validation criteria
-Model structure may be varied until a model
like dispersion s2, information theoretic criterion AIC,
behaves like the reflected system: i.e. comparing
final prediction error FPE.
behaviour. Consider that the nature of parameters
Research institutes provide an environment for
of differently structured models varies with the type
highly accurate measurings under stable conditions. In
of model. Sets of parameters of different models
~10
measure~ and simuialed pressure patterns
20 T ~ "r-- i i

-- measured / /
18 f [
..... simulated (ARX model) / t.
16
-~ simulated (R,C-model, /~'J~ ~/ i
14 oa,ou,.ted ..o=so.. '/; I 4
method) /I, ~ {
O
~:12'
--- simuiated(ARMAX /' t', !
E
o
model} /f/ k,t '
~m 1 0

8
&

\ ~ l \ x. t 9

4
[

0
03
I
1

64
- -

65
' i

66
A

67 68
~ I

69
"-~'~'~-1
I

70
/

71
time / s

Fig. 6. M o d e [ a c c u r a c y o f R - C m o d e l for d a t a set see Fig. 7.

0.5-
~@sden
t3.25-

'~.~''J 136 ' 127' " I i ' , 9 I n s t i t u k t~MT


,.,- -O.2B- Titel der Messung:
-0.5- CNV
aufgenommen am:
measured by: 38.8. 1992 19:5G:08
Capnomae Ultima Klinik:
l?.5-
~L-- Servo-Ventilator9~8 C UnI-KJ lnlk Jena

Durchf~hrung:
I 12.5- Kost, Horg, Hart
Oerbtekonfiguration:
o ?.5- Capnomac-VeoI ar
; 5- Patient:
2.s-
I Bemerkungen:
8
124 {Rbtast

t
= 58 Hz
time Es]
i Oa|enselz:J3PSZSko

Fig. 7. P - V ' - d a t a set r e c o r d e d b y different d e v i c e s c o u p l e d with d a t a acquisition s y s t e m [l l].

are not comparable to each other. There is no infor- Effectiveness of ventilation forms and patterns
mation with respect to normatives. (also spontaneous activities) can be studied under
Various model structures give room to flexible and varying patient's characteristics. Model structure has
resultative simulations: to be adjusted to the context examined: inhomo-
11I

Table 2. Parameters calculated by Jonson's method (monitored value at ICU devices,


1: Servo Ventilator 900C, 2: Capnomac Ulfima) and estimated ARX-model based
values from the patient's data set, Figs 6, 7.

Ventilation Calculated by Calculatedby Estimated


period Jonson's method Jonson's method from ARX
recorded with n n+1 n
device number 1 2 1 2 1

R cmH20/1/s 10.02
RIN cmH20/l/s 3.57 2.22 3.62 2.04 5.05
RBX cmHzO/l/s 20.46 9.53 20.10 9.62 10.02
C I/cmH20 0.036 0.049 0.041 0.050 0.060
CIN 1/cmH20 0.030
CEX l/cmH20 0.060

Example
y-StUck

1500
Flow 1000
ml/s 500
0
-500
-1000
LKI 600 L
Flow
ml/s

-2oo-I--
- 4 0 0 .I_
LK2 200
Flow I O0"
m113 0-
-I00-
-200
9~ 10 sec

Fig. 8. Simulated pendelluft under PCV mode, simulation system: [12-14].

geneities/pendelluft are realized in two-compartment If pendelluft is desirable to promote gas exchange


models only, and a so called thorax or chest wall com- in underventilated regions, certain pressure has to be
pliance is necessary for realistic modelling o f pressure applied by the ventilator source to manage for pres-
changes in lower lung compartments. sure drops between compartments - pressure drops
A m o n g others, pendelluft between two unequally which are necessary for volume movement. By the
ventilated compartments can be simulated by mathe- help of a model of at least type 3, Table 1, pendelluft
matical techniques for calculating all state-space func- may be simulated also in the early expiration phase,
tions (Pi, V ' i , Vi . . . . ) at the inner of the 'black b o x ' . in pressure controlled ventilation mode, Fig. 8. In
But: searching for a measurable analogue to simulated case a pressure compensation in pleural space takes
signals internal to the model, only oesophagus pressure place, internal pressure in the slowest of inhomoge-
(following pleural pressure) may be used. neous compartments may exceed ventilation pressure
for a short time.
112

Models and tools are waiting for application! References

S i m u l a t i o n is driven forward b y two impulses: I. Grodins FS. Models. In: Hombein TF, editor. Regulation of
Breathing. New York: Marcel Dekker, 1981.
(1) Strong universal engineering tools for identifica-
2. Lofaso E Louis B, Haft A, Brochard L, Isabey D. Use of
tion and simulation are at hand for u s i n g them in ,.he Blasius resistance formula to estimate in situ the effective
c o m b i n a t i o n with data acquisition hardware and diameter of endotxacheal tubes. New Orleans: 82nd annual
software [11, 8]. meeting of the FASEB, 1989.
3. Fabry B, Guttmann J, Eberhard L, WolffG. Automatic compen-
(2) There is an urgent need for s i m u l a t i o n software sation of endotracheal tube resistance in spontaneously breath-
for spontaneous and artificial ventilation and inter- ing patients. Technology and Health Care 1994; 1: 281-91.
action b e t w e e n them [12-14], easy to h a n d l e for 4. Jonson B, Nordstrtm L, Olsson SG, Akerback D. Monitoring
intensivists. of ventilation and lung mechanics during automatic ventilation.
Bull Physiopath Resp 1975; 11: 729-43.
Theoretically founded ventilation m e c h a n i c m o d e l s 5. Isermann R. Identifikadon dynamischerSysteme. Berlin, Hei-
and processing tools wait for application, Let us think delberg, New York: Springer-Verlag, 1988.
the usually calculated indices over and provide for bet- 6. Ljung L. System identification: Theory for the user. New Jer-
ter l u n g function analysis under mechanical ventila- sey: Prentice-Hall, 1987.
7. Tawfik B, Chang HK. A nonlinear model of respiratory
tion. mechanicsin emphysematous lungs. Ann Biomed Engin I988;
16: 159-74.
8. Simulink. A program for simulating dynamic systems. Natick,
Massachusetts: The Mathworks Inc., 1992.
Acknowledgements 9. Similowski T, Bates JHT. Two-compartment modelling of re-
spiratory system mechanics at low frequencies: gas redistribu-
Specified examples here are based on m e a s u r e d data tion or tissue rheology? Eur Respir J 1991; 4: 353-8.
from critical care patients in I C U of the Friedrich 10. Hess D, Tabor T. Comparison of six methods to calculate air-
way resistance in adult mechanically ventilated patients. Crit
Schiller University in Jena and the Medical Depart-
Care Med 1992; 20(4): 27.
m e n t of the University of Technology in D r e s d e n as 11. Lender C, Morgenstern U. PC-gestfitztes Beatmungsmonitor-
our research partners. hag - arztgerechte Software fiat die Forschung. Wiss Zeitsehr
TU Dresden 1992; 5: 91-3.
12. Krause A.EntwurfundRealisierung einer grafischenBenutzer-
oberfl~tcheffirein Computerprogramm zur Simulation der Res-
piration beim intubierten Patienten. Diplomarbeit. Dresden:
Techniscbe Universit~t, 1992.
!3. Winkler T. Entwurf und Realisiemng eines mathematischen
Mehrkompartirnentmodells zur Beschreibung yon Lungen-
mechanik, Gasaustauseh und Metabolismus intubierter Patien-
ten: Diplomarbeit. Dresden: Technische Universifftt,1992.
14. Winkler T. ReSiMo - Ein respiratorisches Simulationsmodell.
Bi0med Technik 1993; 38: 373-4.

You might also like