Digital extraction and classification of paper electrocardiogram

雨晴 王1, Yulin Sun2, Leshui David3, 张 之涵4, Runnan He5, Xiuyun Liu6
113018336626, 2Tianjin University, 3University of Tianjin, 4天津大学, 5Harbin Institute of Technology, 6University of Cambridge


Abstract

This paper firstly preprocessed the paper ECG and compares the edge detection effect of Sobel operator, Canny operator and LOG operator on paper ECG. The skew correction was performed on the image after edge detection based on Hough line detection. The morphological operation of ECG was then introduced, which was the basis of ECG waveform extraction. For the extraction of ECG waveforms, this paper studied the curve extraction of color ECG and monochromatic ECG. Aiming at color ECG, a K-means++ ECG curve extraction algorithm based on Laplace-Erode enhancement was proposed. For monochromatic ECG, an ECG curve extraction algorithm based on connected region analysis is proposed. Waveform segmentation was then performed based on the horizontal projection operation, and the 12-lead electrocardiogram was segmented into a single lead to facilitate the extraction of ECG data. In order to ensure that the extracted waveform meets the one-to-one correspondence between the horizontal pixel and the vertical pixel, an improved curve skeleton thinning algorithm was proposed to refine the waveform curve. And the corresponding relationship between the pixel with time and voltage was reconstructed according to the background mesh. The waveform data was then converted into ECG signal data to complete the extraction of ECG data. The accuracy of the algorithm was verified by experiments. For the waveform detection of ECG signal data, this paper proposed and implemented a denoising algorithm based on 8-layer wavelet transform according to the noise characteristics of ECG signals, which effectively removed the noise such as baseline drift and power frequency interference generated by ECG signals. According to the above research content, this paper designed and implemented the ECG digital system, which realized the main functions of digital processing and waveform detection of paper ECG, and verified the main research of this paper.