You are on page 1of 5

Simulink Heart Model for Simulation of the Effect of

External Signals
Maxim Ryzhii and Elena Ryzhii
University of Aizu
Aizu-Wakamatsu, Japan
m-ryzhii @ieee.org

Abstract—In this work, we propose an extended natural pacemakers and muscles. The extended model is
MATLAB/Simulink version of heterogeneous oscillator heart developed in MATLAB/Simulink which is able to reduce
model for simulation of the effect of applied external high- calculation efforts and provides a relatively easy-to-use and
frequency stimulation on the cardiac conduction system and versatile simulation environment for study basic aspects of
demonstrate some simulation results applying signals with cardiac dynamics in comparison with the classical approach.
different amplitude, frequency and duration. Using the model we To demonstrate the capability of our model, we consider its
observe reversible and irreversible conduction blocks as well as behavior under periodic electrical stimulation caused by
initiation and termination of atrial and ventricular fibrillations.
applied sinusoidal signals with frequencies much higher than
The proposed model can be used for research, educational and
natural cardiac rhythms.
testing purposes.
With the proposed model we observed the ability of the AC
Keywords—ECG; heart model; HF stimulation; oscillator; van stimulations applied to natural pacemakers to produce
der Pol; FitzHugh-Nagumo; MATLAB/Simulink reversible and irreversible cardiac conduction blocks. The
appearance of the conduction blocks depends on the duration,
amplitude and frequency of the applied signal. The electrically
controlled conduction blocks may yield a novel approach for
I. INTRODUCTION study and treatment of cardiac arrhythmias [1, 2].
In order to find a potentially safer alternative to treat
ventricular fibrillation, many papers (see, for example [1-4]) We also applied sinusoidal stimuli to AT and VN muscles
are dedicated to the application of AC signal to myocardial and successfully obtained corresponding quasi fibrillations.
cells. Existing models of cardiac myocytes' dynamics including This model in Simulink environment is intended to
multi-variable transient current require a lot of time and facilitate the study of global behavior of cardiac conduction
computational resources [5]. system and the interaction between natural pacemakers,
Recently, we proposed a simple oscillator model of cardiac pacemakers and muscles, and response of the system on
conduction system based on set of heterogeneous oscillators different external actions. The proposed model can be
including main pacemakers and heart muscles [6]. Natural considered as an intermediate step to the development of the
pacemakers - sinoatrial node (SA), atrioventricular node (AV) hardware electronic ECG simulator for education and testing
and His–Purkinje system (HP) - are represented by modified purposes as well.
Van der Pol type oscillators. The depolarization and
repolarization processes in atrial (AT) and ventricular (VN) II. MODEL
muscles, are described by modified FitzHugh-Nagumo General block diagram of the Simulink implementation of
equations. the heart model is shown in Fig. 1. As in our recent cardiac
Resulting dynamic combined response of the oscillator oscillator model [6, 7], the pacemakers are described by sets of
system is obtained in the clinically comparable form of the modified van der Pol equations [9-11]
synthetic electrocardiogram (ECG). The model allows
x' i = y i
reproducing a number of various normal and pathological
situations including arrhythmias [7]. y ' i = −a i y i ( xi2 − u 2 ) − Fi xi ( xi + d )( xi + ei ) (1)
Different biologically inspired waveform generators were + K node ( xi −1 − xi ),
proposed and realized for research, commercial and military
application (see, for example [8], and references wherein). The where index i = 1…3 corresponds to SA, AV, and HP nodes,
utilization of the Simulink toolbox for analysis of the models respectively, Knode denotes particular coupling coefficient for
behavior and functionality gives an opportunity to create a real each pacemaker (KSA, KAV, and KHP). The Simulink block
hardware electronic implementation. diagram for a natural pacemaker is shown in Fig. 2. Similar to
[7] we do not use delays in coupling terms, since the suitable
In this work we extended our model [6] in order to simulate
delays appear naturally in the system with proper Knode values.
the effect of external high-frequency stimulation on the cardiac

Authorized licensed use limited to: Universidad Nacional de Colombia (UNAL). Downloaded on November 24,2021 at 23:51:37 UTC from IEEE Xplore. Restrictions apply.
Fig. 1. General block diagram of the Simulink heart model. Open circles denote the places where ectopic pacemaker block was inserted for induction of
atrial and ventricular fibrillations (see Fig. 5).

Fig. 2. Block diagram of Simulink model for a natural pacemaker (modified van der Pol oscillator).

Fig. 3. Block diagram of Simulink model for depalarization and repolarization waves (modified FitzHugh-Nagumo oscillator).

The AT and VN muscles depolarization and repolarization depolarization/repolarization wave in cardiac muscles is shown
responses are described by modified FitzHugh-Nagumo type in Fig. 3.
equations [6]
The synthetic net ECG signal is calculated as a composition
z ' j = k j (−c j z j ( z j − w1 j )( z j − w2 j ) of muscle electrical responses in the following way:
− b jv j − g jv j z j + I j ) (2) ECG = z1 − z2 + z3 + z4 , (3)
v' j = k j h j ( z j − v j ).
where z1 – z4 are the voltage depolarization and repolarization
Here index j = 1…4 refers to P wave, Ta wave, QRS complex, signals from AT and VN muscle blocks (see Fig. 1). The
and T wave oscillator blocks, respectively. The corresponding saturation elements placed between the outputs of SA and HP
Simulink block for a single oscillator representing pacemakers and inputs of muscle blocks play the role of

Authorized licensed use limited to: Universidad Nacional de Colombia (UNAL). Downloaded on November 24,2021 at 23:51:37 UTC from IEEE Xplore. Restrictions apply.
(a) (b)

Fig. 7. Simulated response on AC signal with amplitude A = 400, frequency


ω = 150 rad/sec, pulse width 1.5 sec, started from 5.0 sec. Irreversible
cardiac block.

Fig. 4. Scheme of application of external


signal Iext to the pacemakers: (a)
sinusoidal pulse generator added the
system on Fig. 1, and (b) addition of
second input In2 to a pacemaker block
shown in Fig. 2.

Fig. 8. Same as in Fig. 7, but with A = 300. Reversible cardiac block.

Fig. 5. Simulink block for application of EP signal IEP to muscles.

Fig. 9. Same as in Fig. 7, but with pulse width 1.0 sec. Reversible cardiac
block.

Fig. 10. Same as in Fig. 7, but with ω =180 rad/sec. Reversible cardiac
block.

Fig. 6. Pacemaker (SA, AV, and HP, top) signals, calculated ECG
(middle) at normal rhytm 70 bpm without application of an AC signal, and
real normal ECG (bottom) [12].

Fig. 11. Same as in Fig. 7, but with signal started at 5.3 sec. Reversible
separation of positive (with “+” sign, for depolarization waves cardiac block.
– P and QRS complex) and negative (with “-“ sign, for
repolarization waves – Ta and T waves) parts of stimulation b1 = b2 = b4 = 0, b3 = 0.015, d1 = d2 = 0.4, d3 = 0.09, d4 = 0.1,
currents produced by corresponding pacemaker. h1 = h2 =0.004, h3 = h4 = 0.008, w11 = 0.13, w21 = w22 = 1.0,
w12 = 0.19, w13 = 0.12, w23 = 1.1, w14 = 0.22, w24 = 0.8. The
For the simulations in this work we used the following set saturation elements have the following parameters: (+) x'1 :100
of parameters: a1 = 40, a2 = a3 =50, u = 0.83, d = 3, e1 = 3.5, e2
= 5, and e3 = 12, f1 = 22 (70 bpm), f2 = 8.4 (50 bpm intrinsic and 0, (-) x'1 : 0 and -100, (+) x'3 : 100 and 0, (-) x'3 : 0 and -100
uncoupled rate), and f3 = 1.5 (30 bpm intrinsic uncoupled rate), for upper and lower limits, respectively. The coupling
KSA = 0, KAV = KHP = 150 (for normal rhythm), k1 = 2×103, k2 = coefficients Kmuscle in muscle blocks (Fig. 3) are KP = KTa =
4×102, k3 = 104, k4 = 2×103, c1 = c2 = 0.26, c3 = 0.12, c4 = 0.1, 4×10−5, KQRS = 9×10−5, and KT = 6×10−5.

Authorized licensed use limited to: Universidad Nacional de Colombia (UNAL). Downloaded on November 24,2021 at 23:51:37 UTC from IEEE Xplore. Restrictions apply.
Fig. 12. Simulated AF (top) and VF (bottom). Arrows indicate the moments of fibrillations initiation by EP (5th second) and termination by the applied AC
signal (15th second).

To apply external signals, in this work we use two different III. RESULTS
schemes. First one is to demonstrate the response of the Figure 6 demonstrates calculated action potentials of SA,
cardiac model on the direct simultaneous external stimulation AV, and HP normally coupled pacemakers (top), simulated
of the natural pacemakers added to the first equation of (1) ECG (middle) at sinus rhythm of 70 bpm without application
similar to the approach used for ion channel cardiac models of an AC signal, and normal ECG from MIT-BIH database
[4]: [12] for comparison.
x'i = yi + I ext . (4) The results of application pulsed sinusoidal signal
simultaneously to all three natural pacemakers are shown in
Here I ext = A ⋅ sin(ωt ) , A and ω are the amplitude and Figs. 7-11. All applied AC signals had zero bias. With
frequency of the external AC signal, respectively. For this application of the AC signal at 5.0 sec (A = 400, ω = 150
purpose, the general scheme of the model was modified by rad/sec, pulse width 1.5 sec) we observed amplitude death in
addition of sinusoidal pulsed generator, demonstrated in Fig. the pacemaker oscillators and asystole on ECG which is
4(a). We added second input (In2) for each pacemaker block in irreversible even over a long enough period of time (Fig. 7).
a way as shown in Fig. 4(b), corresponding to (4). In the When we reduced amplitude to 300 (Fig. 8), reduced pulse
absence of an external signal on the In2 input, the system width to 1.0 sec (Fig. 9), increased AC frequency to 180
behaves exactly as the original one. rad/sec (Fig. 10), and changed the starting moment of AC
signal application to 5.3 sec (Fig. 11), we obtained recovery of
The second approach assumes application of an ectopic the pacemaker oscillations and ECG rhythm (reversible
pacemaker (EP) signal IEP to the cardiac muscles in (2) conduction block) in approximately 3 sec, 3 sec, 1 sec, and 1.7
demonstrating the ability of the model to simulate appearance sec, respectively. Such behavior of the model system was
of atrial (AF) and ventricular (VF) fibrillations: expected and predictable [1, 2, 13]. The dependence of the
response on the AC signal phase (Figs. 9 and 10) and
I j = 0.5 ⋅ ( I norm
j + I EP ) . (5) pacemaker phase at the moment of AC application (Fig. 11)
can be attributed to the experimentally observed dependence of
We added a block generating pulsed sinusoidal IEP (Fig. 5) to defibrillation success on the cardiac cycle phase [13].
the original scheme of Fig. 1. This EP subsystem was inserted
into the circuit in the place marked by open circles between x’ Since in this scheme the AC signals were intentionally
output of either SA block (for AF) or HP block (for VF) and applied to the pacemakers only, and not to the muscles, the
pertinent saturation elements. The parameters of the EP applied signal itself is not seen on the ECGs.
subsystem elements are as follows: pulse generator: amplitude Simulated ECG waveforms in the case of application of a
-0.5, period 20, pulse width 10% (2 sec), pulse delay 5 sec; simplified (sine) EP signal to the AT and VN muscles are
sine with amplitude 40, phase 50, and frequencies 42 rad/sec shown in Fig. 12. Here we observed AF (top) and VF (bottom)
and 30 rad/sec for AF and VF, respectively. The block allows ECG waveforms in the interval between 5th and 15th seconds
the passage of unchanged signal from a pacemaker output to during which the EP stimulation was applied. Although these
the saturation elements when the signal by the pulse generator ECGs are very similar to real clinical fibrillation data [14], we
is at zero level, and reduces the pacemaker’s output signal in did not check here whether the AF and VF waveforms
half before its addition with EP signal, when the signal is at demonstrate real chaotic behavior, as it was not a goal of this
unity level. work. Much better representation of the EP signal and the
results of its application to the cardiac oscillator model can be

Authorized licensed use limited to: Universidad Nacional de Colombia (UNAL). Downloaded on November 24,2021 at 23:51:37 UTC from IEEE Xplore. Restrictions apply.
found elsewhere [15], and it can be easily implemented in the [2] B. Dura, G. T. Kovacs, and L. Giovangrandi, “Spatiotemporally
Simulink model under consideration. controlled cardiac conduction block using high-frequency electrical
stimulation,” PLoS One, vol. 7(4), e36217 (1-9), April 2012.
As for limitations of the model, we would like to point out [3] S. H. Weinberg, “High-frequency stimulation of excitable cells and
that it does not reflect electrical processes associated with networks,” PLoS One, vol. 8(11), e81402, November 2013.
three-dimensional heart structure, but still can represent some [4] S. H. Weinberg, “High-frequency stimulation of cardiac myocytes: A
of them in a simplified manner with further modifications. theoretical and computational study,” Chaos, vol. 24, 043104(1-12),
October 2014.
Moreover, the proposed model can be very useful and
[5] B. L. de Oliveira, E. R. Pfeiffer, J. Sundnes, S. T. Wall, and A. D.
convenient for studying the influence of external stimulation McCulloch, “Increased cell membrane capacitance is the dominant
on global cardiac dynamics and synchronization behavior. mechanism of stretch-dependent conduction slowing in the rabbit heart:
a computational study,” Cell. Mol. Bioeng., vol. 8(2), pp. 237–246, June
2015.
IV. CONCLUSION
[6] E. Ryzhii and M. Ryzhii, “A heterogeneous coupled oscillator model for
We developed a simple and effective MATLAB/Simulink simulation of ECG signals,” Comput. Methods Programs Biomed., vol.
heterogeneous oscillator heart model capable to simulate the 117, pp. 40–49, October 2014.
effect of external electrical signals on cardiac rhythm [7] E. Ryzhii and M. Ryzhii, “Formation of second-degree atrioventricular
dynamics. blocks in the cardiac heterogeneous oscillator model,” Conf. Proc. IEEE
Eng. Med. Biol. Soc.; pp. 449(1–4), August 2015.
Using the model we observed reversible and irreversible [8] R. Vazquez-Medina, O. Jimenez-Ramirez, M. A. Quiroz-Juarez, and J.
conduction blocks as well as atrial and ventricular fibrillations L. Aragon, “Arbitrary waveform generator biologically inspired,” Chaos
under application of an AC signals with different amplitude, Solit. Fract., vol. 51, pp. 36–51, June 2013.
frequency and duration to the natural pacemakers and cardiac [9] D. Postnov, S. K. Han, and S. Kook, “Synchronization of diffusively
coupled oscillators near the homoclinic bifurcation,” Phys. Rev. E, vol.
muscles, respectively. 60, pp. 2799–2807, September 1999.
The proposed model can be also considered as an [10] S. R. F. S. M. Gois and M. A. Savi, “An analysis of heart rhythm
intermediate step to its hardware electronic implementation for dynamics using a three coupled oscillator model,” Chaos Solit. Fract.,
vol. 41, pp. 2553–2565, September 2009.
educational and testing purposes.
[11] J. J. Zebrowski, K. Grudzinski, T. Buchner, P. Kuklik, J. Gac,
G.Gielerak, P. Sanders, and R. Baranowski, “Nonlinear oscillator model
ACKNOWLEDGMENT reproducing various phenomena in the dynamics of the conduction
system of the heart,” Chaos Solit. Fract., vol. 17, pp. 015121(1–10),
The authors thank J. L. Aragón and M. A. Quiroz-Juárez March 2007.
for valuable discussions and advices. The work was supported [12] The MIT-BIH Normal Sinus Rhythm Database, set 16773,
by the University of Aizu Competitive Research Grant P-28- doi:10.13026/C2NK5R.
28. [13] M. Pittaro, W. DeForge, and M. W. Kroll, “Reducing ICD test shocks
with a simplified upper limit of vulnerability,” Pacing Clin.
Electrophysiol., vol. 39(7), pp. 652–657, April 2016.
[14] V. Fuster, R. A. Walsh, and R. A. Harrington, Hurst’s the Heart, 13th
REFERENCES ed., McGraw Hill Medical, New York, 2011.
[15] M. A. Quiroz-Juarez, R. Vazquez-Medina, E. Ryzhii, M. Ryzhii, and J.
L. Aragon, “Quasiperiodicity route to chaos in cardiac conduction
[1] H. Tandri, S. H. Weinberg, K. C. Chang, R. Zhu, N. A. Trayanova, L . model,” Commun. Nonlinear. Sci. Numer. Simulat., vol. 42, pp. 370-
Tung, and R. D. Berger, “Reversible cardiac conduction block and 378, January 2017.
defibrillation with high-frequency electric field,” Sci. Transl. Med., vol.
3(102), pp. 102ra96(1–15), September 2011.

Authorized licensed use limited to: Universidad Nacional de Colombia (UNAL). Downloaded on November 24,2021 at 23:51:37 UTC from IEEE Xplore. Restrictions apply.

You might also like