Project Ref PDF
Project Ref PDF
TW Shen, TF Laio
(b)
(c)
(d)
Figure 1. The flow diagram of spatial-oriented method
Figure 2. The procedures of spatial-oriented method: (a)
In spatial-oriented process (figure 1), a color image an original color image; (b) a gray tone image after
may directly eliminate the red component to remove selecting a suitable threshold on histogram; (c) missing
gridlines or convert to a gray or binary tone image after pixel replenishment and interpolation; (d) a recovered
selecting a suitable threshold with the help of histogram and calibrated ECG signal.
analysis. A suitable threshold selection after histogram
analysis can mostly remove the background and gridlines
of ECG charts. Then, the computer program searches 2.3. Frequency-oriented method
background-removed images for missing points on the The basic idea of the frequency-oriented method is to
columns without any ECG pixel points. The missing separate the ECG image into three components in the
point has been replenished by the darkness point of the image (2D) frequency sense, including (1) high frequency
same column on pervious gray scale image. If the same gridlines [1], (2) an ECG waveform (mainly in low
column has more than one pixel, the thinning algorithm is frequency), and (3) noise (mainly salt and pepper noise).
applied. Next, the co-ordinate of each black pixel was Hence, 2D Fourier transform (2D FT) plays an important
extracted and then the values were calibrated according to roles in this method, which is applied on a color, gray-
the co-ordinate system of the chart. Because of the image scale, or binary ECG image by using equation (2).
726
∞ ∞ transfers frequency domain to time domain and the result
F (u, v) = ∑ ∑ f [m, n]e − j 2π ( umx0 + vny0 )
…(2) shows in figure 6a. Then the median filter is applied to
m = −∞ n = −∞ remove salt and pepper noise as shown in figure 6b. Also
where x0 and y0 are the spatial intervals between a suitable threshold selection removes the background
consecutive signal samples in the x and y directions, and gridlines (figure 6c). Then, follow the procedure as
respectively. pervious mentioned. The computer program searches for
missing points and replenished by darkness points (figure
6d). Because this method provides more scattering noise,
the dark pixel distances between adjacent columns are
computed. If the same column has more than one pixel
and the distance is over or below thresholds, then the
pixel is eliminated (figure 6e). Next, the co-ordinate of
each black pixel was extracted and then the values were
calibrated according to the co-ordinate system of the
chart (figure 6f).
(e)
727
signal by using five interpolation methods (cubic, dispensable interpolation. In addition, according to this
v5cubic, pchip, spline, linear, and nearest) that rebuild investigation, the linear interpolation is the best
sampling frequency to 500 sps. The example results are interpolation method with less overall PRD.
plotted in figure 7 & 8.
400
300
200
100
0
Acknowledgements
V
m
-100
-200
-300
-400
-500
Thanks assistant professor Sheng-Fang Huang in
department of medical informatics of Tzu Chi University
-600
1500 1600 1700 1800 1900 2000
Number of points
Figure 7. Spatial-oriented method – the recovery signal who provides some technical suggestions. This work was
(red) versus the original signal (blue) supported by the Taiwan National Science Council under
400
300
200
Grant 98-2221-E-320-002.
100
0
V
m
-100
-200
-300
-400
-500
-600
1400 1500 1600 1700
Number of points
1800 1900 References
Figure 8. Frequency-oriented method – the recovery [1] Gonzalez RC, Woods R.E, Digital Image Processing, 3rd
signal (red) versus the original signal (blue) Ed., Addison-Wesley, Reading, MA, Longman, New York,
2000.
Finally, the performance was evaluated by percentage [2] Wang, C., K. Ohe, et al., An ECG storage and retrieval
of root mean square for calculating waveform similarity. system embedded in client server HIS utilizing object-
Twenty-three ten-second charts (about 990 by 124 pixels) oriented DB, J Med Syst., 1996: 20(1): 35.43.
were processed and compared with original ECG data for [3] Zhang ZN, Zhang H, and Zhuang TG, One-dimensional
performance evaluation. The spatial and frequency signal extraction of paper-written ECG image and its
archiving, SPIE, 1987:845:419.422.
methods provided each best result on average 45.46%
[4] Tezuka A., A study on transformation system of wave data
and 54.33% PRD by using linear interpolation. The detail recorded on paper into digital time data, Rec. Electr.
results are listed on Table 1. Commun. Eng. Conversazione 1989:57:343.
Table 1. Average PRD (%) on six different interpolation [5] Wideman LE, Freeman GL, A to D conversion from paper
records with a desktop scanner and a microcomputer,
methods Comput. Biomed. Res., 1989:22: 393.
Average PRD (%) [6] Mitra S, Mitra M, Chaudhuri BB. Generation of digital
on six different interpolation methods time database from paper ECG records and Fourier
transform-based analysis for disease identification.
Spatial –based method 2D FFT based method Computers in biology and medicine. 2004 Oct:
cubic 45.92 % cubic 55.07 % 34(7):551.60.
v5cubic 46.07 % v5cubic 55.39 % [7] F. Cheng, R. Gao, Y. Wei, Tracing algorithms of ECG
pchip 45.91 % pchip 55.04 % tracks from scanned image, J. Biomed. Eng., 2001:18: 306.
[8] O. Pahlm, L. Sornmo, Data processing of exercise ECG,
spline 46.09 % spline 55.71 %
IEEE Trans Biomed. BME 1987:34: 158.
linear 45.46 % linear 54.33 % [9] Lin TH, Ko TF, Tsao YT, and Shen TW, A Mutiple-
nearest 46.79 % nearest 57.07 % Functional ECG Simulator Based on LABVIEW Program,
2006 International Symposium on Biomedical
Engineering, Taiwan, 2006: 10421.
4. Discussions and conclusions [10] Shen TW, Shan HP, Lin CH, Ou YL, Detection and
Prediction of Sudden Cardiac Death (SCD) for Personal
Overall, our image processing methods successfully Healthcare, 29th Annual International Conference of the
converted 2D ECG images into one-lead ECG signals to IEEE Engineering in Medicine and Biology Society, 2007:
make further CAD analysis and modelling simulation 2575.2578.
possible. The results show that the spatial method offered [11] Shen TW, Lin CC, Shen HP, Ou YL, and Lin CH. A
better performance than the frequency method, especially personal Sudden Cardiac Death (SCD) detector based on
if the RGB colours in chart are kept. Unlike spatial ECG biometric technology, World Congress on Med. Phys.
method, 2D Fourier transform method contains more salt- and Biomed. Eng. 2006:1141.1144.
and-pepper noise on chart images, as well as scattering
Address for correspondence
noise. Our recovered signals also include amplitude
Tsu-Wang Shen, Ph.D.
displacement and inconsistent waveform phase shifting. Department of Medical Informatics
The above factors cause the higher average PRD. Tzu-Chi University
However, for improving the system performance, high 701, Sec. 3, Jhongyang Rd., Hualien, 97004, Taiwan
resolution images is a necessary condition to reduce [email protected]
728