Clinical electrocardiogram digitization based on U2Net
Fei Deng , Hao Xu , Zhexin Li , Xiaokun Qin , Zheng Lou , Xiantao Song , Lili Wang , Dongsheng Kong , Yanlong Ren
The Journal of Cardiovascular Aging ›› 2026, Vol. 6 ›› Issue (3) : 43
Aim: Deep learning has advanced medical artificial intelligence, but many electrocardiogram (ECG) records remain available only as paper-based documents. Scanned paper ECG images often contain grid lines, background artifacts, and unstructured waveform information, which limits their direct use for quantitative ECG analysis. This study aimed to develop an improved ECG image segmentation method for extracting clean ECG traces from scanned paper-based ECG records and supporting subsequent ECG signal digitization.
Methods: We proposed CU2-NeXt, an ECG image segmentation framework that extends U2-Net with ConvNeXt modules and incorporates convolutional block attention module (CBAM) to emphasize waveform-related features while suppressing background artifacts. Viterbi dynamic programming was subsequently applied to reconstruct continuous signal trajectories from the segmented waveform pixels.
Results: On the evaluated dataset, CU2-NeXt achieved a macro-F1 score of 88.9% and a Dice coefficient of 78.7%, with higher overlap-based performance than the evaluated baseline segmentation models.
Conclusion: These findings demonstrate the feasibility of using CU2-NeXt for ECG trace extraction and digitization from scanned paper ECG images. The proposed framework may provide a useful preprocessing approach for converting paper ECG records into analyzable digital signals and supporting downstream quantitative ECG analysis.
Paper ECG / ECG image segmentation / viterbi algorithm / deep learning / grid removal
| [1] |
|
| [2] |
|
| [3] |
|
| [4] |
|
| [5] |
|
| [6] |
|
| [7] |
|
| [8] |
|
| [9] |
|
| [10] |
|
| [11] |
|
| [12] |
|
| [13] |
|
| [14] |
|
| [15] |
|
| [16] |
|
| [17] |
|
| [18] |
|
| [19] |
|
| [20] |
|
| [21] |
|
| [22] |
|
| [23] |
|
| [24] |
|
| [25] |
|
| [26] |
|
| [27] |
|
| [28] |
|
| [29] |
|
| [30] |
International Electrotechnical Commission. IEC 60601-2-25:2011. Medical electrical equipment - Part 2-25: Particular requirements for the basic safety and essential performance of electrocardiographs. 2nd ed. Geneva: International Electrotechnical Commission; 2011. Available from: https://webstore.iec.ch/en/publication/2636 [accessed 18 July 2026] |
| [31] |
|
/
| 〈 |
|
〉 |