Beruflich Dokumente
Kultur Dokumente
Abstract
In this section, we describe our algorithm in detail. Our which keeps yu and yl tracing the upper and lower en-
method can be divided into two major steps: first we ex- velopes of the ECG curve. After tracing the envelopes, the
tract ECG envelopes from images, and then estimate the average
period based on these image-based features. Once the ECG
is in the image form, either scanned or extracted from the y(x) = (yu + yl )/2 (5)
echocardiographic videos, the next important step is to pre- is used as the traced value y(x).
process the data which will be useful in estimating the pe- To provide robustness to noise and missing curve frag-
riod. Our approach of period detection from ECG image ments, we use morphological operators and a grouping al-
is based on a key observation that the difference of the up- gorithm across the gaps. A morphological open (erode + di-
per envelope and lower envelope of the ECG can signify the late) helps fill in holes inside the curve, and a morphological
local maximum & minimum of the original signal. The up- close (dilate + erode) eliminates noise pixels near the curve.
per envelope and (shown in red) and lower envelope of the To close small gaps, curve tracing is started using a num-
ECG (shown in blue) are plotted in Fig. 4b. Note that the ber of seed points along the expected ECG curve location.
gap between the two envelopes increase significantly when Gaps are closed between pairs of consecutive fragments if
the signal reaches its peak or valley. This phenomenon is the gap is small enough (4 pixels = 10 msec). For gaps that
exploited in our algorithm to detect the heart rate, which are larger than the gap threshold, we have found that most
however cannot be used if we treat ECG as signals since larger breaks in the curve occur at the R wave, where the
all points would have equal tracing width. We now first signal spikes up and down. At the R wave, however, the
discuss the extraction of ECG waveforms from the scanned curve is nearly vertical, so the sampling in equations (1)-(2)
ECG images. is nearly tangent to the curve. Thus, we can handle a large
fraction of vertical dropout, as shown in Fig. 3. Fig. 4(b)
2.1 ECG envelope extraction illustrates the upper and lower envelope of the ECG curve.
ydif f = yu −yl is the difference between the two envelopes,
We extract the ECG waveforms as curves in the respec- which is shown in Fig. 4e. It is evident from this plot that
tive image segments where each lead position in the image the peak of the difference signal is quite consistent among
is segmented. Due to noise in recordings as well as the sty- all R peaks, and therefore can serve as a good feature to
lus speed in the ECG recorder, there are often gaps which identify the R peak locations.
cause problems in curve extraction. Note that these record-
ings are actually time series or functions of lead-voltage vs 2.2 ECG period detection
time. Thus, a general purpose algorithm such as curve fol-
lowing or skeletonization, may not enforce the constraint Differentiation forms the basis of many QRS detection
that a single y−value occur for each x position in image algorithms [12, 11]. The differentiator, in effect, acts as a
waveform is shown in Fig. 4f, in which we noticed that
peaks of the product is corresponding to the R wave of the
ECG signal. The period of the ECG can therefore be esti-
mated as the interval between these peaks.
3 EXPERIMENTAL RESULTS