Mis 13
Mis 13
Mis 13
[email protected] [email protected]
ABSTRACT
Novel Methods of cardiac rhythm detection are proposed that are based on time-frequency
analysis by a weighted overlap add(WOLA) oversampled filterbank. C ardiac signals are obtained
from intracardiac electrograms and decomposed into the time-frequency domain and analyzed by
parallel peak detectors in selected frequency sub-bands. The coherence of the sub-band peaks is
analyzed and employed to detect an optimal peak sequence representing the beat locations.
1. INTRODUCTION
The objective of this paper is rhythm classification and event detection based on the intracardiac
electro gram (EGM) signals. The proposed methods are designed for implantable devices that
should operate on extremely low power budgets. In the meantime, these methods should operate
in real time and the processing delay should be in the minimal range acceptable for such
applications. The detection methods should be very reliable and robust to interference, noise, and
morphology variations.
C urrent challenges in reliable rhythm detection for implantable cardiac rhythm management
(C RM) systems such as IC Ds are the following:
• Missing serious cardiac events compromises the reliability of the C RM devices. This happens
due to many reasons including quick morphology, rate, and even polarity changes of the EGM
signal, abnormally wide R-waves and P-waves, and external noises. The problems are aggravated
due to the fact that often patients have to simultaneously use medicines that alter the EGM
waveforms.
To cope with the mentioned problems and to improve the rhythm detection accuracy, we propose
a multitiered detection method that is based on time-frequency analysis of the EGM signals by a
weighted overlap-add (WOLA) filter bank. The WOLA filter bank can be efficiently implemented on
an ultra-low power platform targeted for real-time low-delay and implantable devices.
Methods based on time-frequency analysis have already been proposed for electrocardiogram
(EC G) and QRS detection. However, the proposed methods are not qualified for ultra-low power
implementation on implantable devices since they are either (a) too complex or unsuitable for
real-time applications or (b) specifically designed for (and evaluated on) EC G signals and do not
provide the robust and reliable performance essential for EGM signal processing.
The objective of this paper is to present a real-time detection method for cardiac event detection
using the intracardiac EGM signals. Sensed EGM signals differ from EC G signals in many aspects.
Major differences are:
1. EGM signals provide direct access to individual heart chambers, most importantly right
ventricular and right atrial, at the signal source. In contrast, EC G signals provide a
combined signal after propagation of various waves to the body surface.
2. Relative timing of various EGM signals is very important as it could be employed to
discriminate various cardiac events (e.g., SVT versus VT) accurately. For EC G signals,
however, such timing information is not available.
Signal processing strategies are therefore greatly different for EGM signals as compared to EC G
signals. Rather than critically sampled polyphase filter banks, a very efficient WOLA over sampled
filter bank for time-frequency analysis of the EGM
signals is employed. Subband peaks are detected directly from the subband signals (absolute
values) by recursive averaging with no absolute thresholds. Subband peaks are combined in
parallel by exploiting the synchrony of the subband signals at the beat time. Furthermore, to cope
with the wide range of possible beat rates and morphologies of the EGM signal, the narrowband
(complex) subbands are merged to obtain wideband-subband signals to be used for wideband
event detection. The results of the wideband and narrowband detections are then combined for
robust detection.
As the intention here is to describe the basis for the detection method, attention is limited to
single-electrode analysis; extension to multiple-electrode analysis is straightforward. Also, the
algorithm simplicity is a major consideration in this case since we are targeting low-power, real-
time, and implantable applications.
This paper is organized as follows: Section 2 presents details of the detection algorithm, Section 3
discusses evaluation of the methods using the EGM signals in clean and in additive noise, and
Section 4 presents conclusions.
2.1. General
Fig. 2. From top to bottom, a segment of ventricular EGM signal, 4 WOLA subband energies with
their average, maximum, instantaneous, and peak signals, their corresponding binary pulses and
the optimal detected pulses(bottom row)
The cardiac beat is often represented by a sharp pulse in the EGM signal. As a result, the
magnitudes of subband signals ( | Z k ( m ) | , k = 0, 1, . . . , K - 1) exhibit mainly coherent
peaks at the time of cardiac depolarization. A major objective in this research is to exploit this
subband coherence (“synchrony”) between various subbands. Based on the synchrony analysis, a
final beat sequence (“optimal beat”) is detected for every frame as detailed in the next section.
Then the periodicity and the regularity of the optimal beat are combined with the synchrony
measure to detect the underlying cardiac event.
In the first stage, peaks are detected in selected subbands. Given the subband magnitude signal |
Z k ( m ) | for subband k , its maximum is tracked with a two-time-constant first order recursive
filter. C onsidering two filter coefficients of 0 . 9 < á m 1 < 1 and 0 . 1 < á m 2 < 0 . 5, the
following pseudocode describes how the maximum signal ( M k ( m )) is calculated:
(1)
After each peak, the filter acts as a leaky integrator. Accordingly, the first filter coefficient ( á m
1 ) is selected close to one. This controls the so-called “release time” of the filter. The other
coefficient is selected smaller for the filter to react quickly to the next peak. Similarly, the
average signal A k ( m ) is tracked by a two time- constant recursive filter with 0 . 7 < á a 1 < 1
and 0 . 5 < á a 2 < 0 . 7. At each time-instance m , a peak value ( P k ( m )) is detected by
comparing the three values of | Z k ( m ) | , M k ( m ), and A k ( m ) (the instantaneous,
maximum, and average values) as described in the following pseudocode:
P k ( m ) = 0,
(2)
Between two distant cardiac beats, it is possible that A k ( m ) and M k ( m ) converge to each
other. To prevent peak detection in this situation, the last term in the condition above is included.
Notice that no absolute threshold is used in the peak detection and only relative thresholds are
employed. By analyzing various beats in subband domain, it was observed that peaks appear
more distinctively in the first half of the subbands. As a result, peak detection is limited to
subbands 2–9 (out of 1–16). The first subband is ignored as it mostly captures noise and baseline
wander. Figure 2 illustrates a frame of atrial EGM signal (top graph), and four sets of WOLA
subband signals of | Z k ( m ) | , M k ( m ), A k ( m ), and P k ( m ) (instantaneous, maximum,
average, and peak).
Following the peak detection, each subband peak signal P k ( m ) is converted to a binary (0/1 for
peak/no-peak) signal B k ( m ). This greatly simplifies further processing. To embed more
robustness in the algorithm and to avoid detecting short-term spurious peaks, we search every
frame of binary peak signal B k ( m ) for a pattern of consecutive peaks (1s) followed by a block
of zeros (e.g., {1 1 1 0 0 0}). For every pattern found, the falling edge of the binary peak signal
is registered as a valid peak. The peak location is marked by a block of three 1s ({1 1 1}) and
the rest of the peak signal is reset to zero. Replacing the peak by a block of 1s (rather than a
single 1) increases robustness in the next stage of synchrony analysis. All further steps of
processing are applied to the binary peak signals B k ( m ).
In the next stage, the degree of synchrony between various subbands is measured by applying
simple AND operations to the binary peak signals. For each possible pair of signals B k ( m ) and
B l ( m ), k! = l , synchrony of the pair S k , l (in percentage) is calculated as follows:
where function NP ( · ) denotes the number of peaks in a frame of binary peaks and & denotes
the logical AND operation. The synchrony is evaluated for all nonidentical pairs
(for 8 subbands this involves 28 AND operations on frame pairs). To minimize the effect of noise
and interference, only the top 3 synchrony scores are considered as measures of the frame
synchrony. The top 3 scores are compared to fixed synchrony thresholds to classify the frame of
subband beats as perfectly synchronous (Syn = 4), as borderline synchronous (Syn = 2), or
asynchronous (Syn = 0).
The top 3 binary pulse pairs are used to robustly detect the beat times. Applying a majority-voting
rule, beats are detected from the 3 pairs (after the logical AND operation within each pair) when 2
out of the 3 pairs exhibit simultaneous beats. C onsidering the peak extension to a block of three
1s, this method proved to be very robust when the signal quality was compromised by noise or
due to flutter and fibrillation. As a result of beat detection, an optimal beat sequence OB ( m ) is
obtained for every frame. Depicted in Figure 2 (rows 6–9) are binary subband pulses for the EGM
segment together with the optimal-detected beat (bottom row).
Once an optimal beat sequence OB ( m ) is obtained, it is analyzed to find the beat rate and the
regularity of the beats. A set of thresholds for periods of various cardiac events is used to set
histogram edges as [0, FibPer/2, FibPer, FlutPer+1, TachyPer +1, SRMax, infinity]; where FibPer,
FlutPer, TachyPer, and SRMax indicate the largest acceptable periodsfor fibrillation, flutter,
tachycardia, and sinus rhythm, respectively. The beats are classified in a period histogram with 6
bins specified by the above edges. The mode (bin index for the most populated bin) of the
histogram ( T m ) is an indicator of the periodicity. For the periods in the “acceptable” range of
(FibPer/2, SRMax), the mean period ( T ) and the standard deviation-to-mean ratio ( ó/ì ) are
calculated. If either of the T and T m fall in the fibrillation, flutter or tachycardia range, the period
zone indicator would be set to show the corresponding event. For sinus rhythm, however, both T
and Tm should indicate a sinus rhythm. In all cases, we chose to use the mean period T to find
the rate as beat per minute, bpm = 60 /T . So, it is possible that the period zone indicator show a
flutter since Tm is pointing to a flutter while average beat rate is still slightly below the minimum
flutter rate. ó/ì (of periods) is an indicator of the regularity; typically for very regular beats ó/ì <
20%, for very irregular beats ó/ì > 40%, and ó/ì values between the two ranges indicate
moderate regularity. In case unusual lack of EGM activity (longer than the slowest possible
rhythm) is detected within the frame, the irregularity flag is set (Ireg = 1).
The synchrony analysis provides both the optimal beat OB ( m ) and the synchrony score (Syn =
0, 2, 4). Based on these and the periodicity and regularity of the optimal beat ( T , T m , ó/ì , and
Ireg), cardiac events are classified as one of the following eight events:
(8) Unclassified,
where VT, VFLUT, and VFIB represent ventricular events of tachycardia, flutter, and fibrillation,
respectively. Similarly, AT, AFLUT, and AFIB represent the corresponding atrial events. When the
mean period is within the range for sinus rhythm but the rhythm is irregular, a transitional event
of T-SR is detected. A similar criterion is used in detection of TVT or T-AT. Event (7) is detected
when the synchrony is perfect but periods are too irregular or insufficient in number to be
considered for other classes. Finally, event (8) is reserved for unclassified rhythms. A flowchart of
the event detection algorithm is depicted in Figure 3. As shown, the algorithm sets a series of
traps for various events. It first tries to identify fibrillation or flutter (classes {5, 6}). If none is
detected (state A in the figure),it searches for fast beats (classes {3, 4, 7}) and then sinus rhythm
(classes {1, 2, 7}). If none of the traps succeeds in detection, the beat remains unclassified (class
8).
The expected range of cardiac beat rates is very wide, from less than 50 bpm to over 300 bpm.
As a result of the classic time-frequency resolution trade-o . , the time resolution of the
narrowband filterbank (WOLA analysis with K = 32) is insufficient to separate two closely spaced
beats. The problem is compounded when the signal quality is further compromised during flutter
or fibrillation. An effective solution is to use a filterbank with wider subbands. In uniform
filterbanks, it is possible to merge the subbands through a simple postprocessing. Specifically, in
the WOLA filterbank, we can combine, for example, every neighboring pair of complex subband
signals to obtain a wideband analysis, doubling the time resolution. Since all of the subband
signals have baseband spectrums, to combine subbands one has to modulate the bands to line
them up sequentially. For merging two subbands, for example, one has to apply a complex
modulation to the higher-frequency subband and add the results with the lower-frequency one.
The EGM wave morphology is very diverse. Among all various forms, there are cases where the
EGM beat lacks a clear strong impulse at the beat instance. Instead, a periodic waveform with
wide R-waves or P-waves (for the ventricular or atrial signals, resp.) is observed with weak
impulses at the beat locations. Detecting such beats is problematic in noise since the EGM
waveform, exhibiting a low-pass behavior, is presented mostly in very low frequency bands. To
increase noise robustness for such cases, a third method offbeat detection by using only the
peaks detected in subbands 2 and 3 is added. The synchrony between the two subbands as well
as the periodicity and regularity of optimal beat (AND result of the two) is calculated as before.
This is called low-frequency (LF) detection here.
Taking the narrowband filterbank detection as the default, the wideband system is selected when
all of the following conditions are met.
Switching to the LF detection occurs when all of the following conditions are met.
• Both the narrow and wideband systems are not synchronous (Syn < 4); or ó/ì of the LF
detection is superior to (less than) each of the other two systems by at least 40%.
The EGM signals recorded with bipolar electrodes were utilized for evaluation since they provide
the best quality. The two bipolar signals were recorded from Right Ventricular Apex and High Right
Atrium, called RVAb and HRAb, respectively. All of the RVAb and HRAb signals were used for
system evaluation.
The EGM signal was digitally decimated from the original sampling frequency of 1000 Hz down to
Fs = 250 Hz. Using a small subset of the library representing various events, the system
parameters were tuned until there were no missed events, and the frame-by-frame classification
was as accurate as possible. Then, for every case in the library, the detection algorithm was
tested and the results were compared to the physician-certified annotations. Figure 4 depicts a
typical output summary of the detection system showing various detected events and the beat
rate. Notice that there is no “training” involved in the proposed detection system; rather system
parameters had to be optimized on a subset of the EGM data.
For practical applications, noise robustness is a very desired feature of any cardiac event
detection. For a statistical analysis, the performance in noise (or with reduced algorithms) against
the benchmark detection was compared.
To simulate various noise conditions, five different noises were added to the EGM signals:
Noises (2)–(4) were obtained by filtering white noise. To adjust the noise level for a given signal-
to-noise ratio (SNR), one needs to measure the EGM signal power. Due to the variability of the
EGM signal in terms of magnitude, polarity, and morphology (very wide waves to very sharp
ones), measurement of long-term power is inadequate. Instead, we adjusted the noise level
based on tracking the short-term (4 second) EGM signal envelope (rather than power).
To quantify the performance, in presence of noise the 8 cardiac events (Section 2.5) are grouped
into two separate groups, {1–4} (SR/Tachy) and {5-6} (Fib/Flut), and the detection performance
using frame counts of TP, TN, FP, and FN defined as follows was measured.
From these frame counts, the Fib/Flut positive predictivity (+ P ) and negative predictivity ( - P )
were calculated as follows:
Depicted in Table 1 are the total frame counts of TP, FP, TN, and FN for the five noise types. Also,
Table 2 summarizes the + P and - P measures for the five noises. As expected, the adverse
effects of white noise on subband detection are worse as they corrupt all the bands equally. On
the other extreme, the system shows immunity to even 0 dB SNR tonal (60 Hz) and highpass
noises. Our careful observations revealed that no block event was missed or misrecognized with
five noise types in Table 2. Moreover, most of the recognition errors in noise occurred before or
after fibrillation or flutter events when the quality of EGM signal was already compromised.
4. FUTURE SCOPE
The current work is primarily useful in a hospital or monitored setup. The WOLA filterbank and the
complete setup can be converted to a IC form or strip form (that can be worn like a watch). The
input EGM can be transmitted to the strip using some non-invasive, high-speed technology like
RFID continuously. The required power for the transmitter can be supplied by the strip, which can
be recharged. The output i.e. event detected can further be made to be transmitted through a cell
phone to a predetermined emergency number. This can be useful in saving the lives of many
people.
5. CONCLUSIONS
The subband-based methods proposed in this paper for processing intracardiac EGM signals offer
a robust and reliable performance by employing parallel narrowband peak detectors. Proper and
efficient combination of subband peaks by synchrony analysis is a major milestone. The method,
demonstrates excellent performance in terms of accurate event detection and beat-rate
measurement even in fibrillation or flutter when the signal quality is compromised. Evaluation in
noise has also demonstrated significant robustness to noise. This method is simple enough for
implementation on an ultra-low power WOLA filterbank platform and requires only simple
operations as a result of using binary peak signals.
REFERENCES: