Papers › ECG-Image-Kit: A Synthetic Image Generation Toolbox to Facilitate Deep Learning-Based...

ECG-Image-Kit: A Synthetic Image Generation Toolbox to Facilitate Deep Learning-Based Electrocardiogram Digitization

4 Jul 2023arXiv:2307.01946archive 2025-07-28

Kshama Kodthalu Shivashankara, Deepanshi, Afagh Mehri Shervedani, Gari D. Clifford, Matthew A. Reyna, Reza Sameni

Cardiovascular diseases are a major cause of mortality globally, and electrocardiograms (ECGs) are crucial for diagnosing them. Traditionally, ECGs are printed on paper. However, these printouts, even when scanned, are incompatible with advanced ECG diagnosis software that require time-series data. Digitizing ECG images is vital for training machine learning models in ECG diagnosis and to leverage the extensive global archives collected over decades. Deep learning models for image processing are promising in this regard, although the lack of clinical ECG archives with reference time-series data is challenging. Data augmentation techniques using realistic generative data models provide a solution. We introduce ECG-Image-Kit, an open-source toolbox for generating synthetic multi-lead ECG images with realistic artifacts from time-series data. The tool synthesizes ECG images from real time-series data, applying distortions like text artifacts, wrinkles, and creases on a standard ECG paper background. As a case study, we used ECG-Image-Kit to create a dataset of 21,801 ECG images from the PhysioNet QT database. We developed and trained a combination of a traditional computer vision and deep neural network model on this dataset to convert synthetic images into time-series data for evaluation. We assessed digitization quality by calculating the signal-to-noise ratio (SNR) and compared clinical parameters like QRS width, RR, and QT intervals recovered from this pipeline, with the ground truth extracted from ECG time-series. The results show that this deep learning pipeline accurately digitizes paper ECGs, maintaining clinical parameters, and highlights a generative approach to digitization. This toolbox currently supports data augmentation for the 2024 PhysioNet Challenge, focusing on digitizing and classifying paper ECG images.

PaperPDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2307.01946")

Code

Syntology Ran 3 of 10 code samples harvested from 1 repository linked to this paper; 7 have no recorded run. Of those that ran: 3 ran · honoured contract.

By repository: official repository: 10 samples from 1 repository, 3 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

alphanumericslab/ecg-image-kit officialmentioned in paperpytorchBSD-3-Clause report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

10 samples harvested; 3 ran; 3 honoured the contract we drafted; 7 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

3ran · honoured contract
7unverified

Licence: 0 of the 10 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from alphanumericslab/ecg-image-kit. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

cumsum alphanumericslab/ecg-image-kit/codes/ecg-image-generator/HandwrittenText/generate.py official repository ran · honoured contract fingerprinted BSD-3-Clause (permissive) · 9bafc68792a5453a · report
sample alphanumericslab/ecg-image-kit/codes/ecg-image-generator/HandwrittenText/generate.py official repository ran · honoured contract BSD-3-Clause (permissive) · b5136c243f64693e · report
split_strokes alphanumericslab/ecg-image-kit/codes/ecg-image-generator/HandwrittenText/generate.py official repository ran · honoured contract BSD-3-Clause (permissive) · 0ff24ae32bac2d32 · report
L2OverlapDiff alphanumericslab/ecg-image-kit/codes/ecg-image-generator/CreasesWrinkles/creases.py official repository unverified BSD-3-Clause (permissive) · 395d6026445c36b6 · report
find_files alphanumericslab/ecg-image-kit/codes/ecg-image-generator/helper_functions.py official repository unverified BSD-3-Clause (permissive) · 4069a5950b04a536 · report
find_records alphanumericslab/ecg-image-kit/codes/ecg-image-generator/helper_functions.py official repository unverified BSD-3-Clause (permissive) · c5b51eb34d7d9ed3 · report
inches_to_dots alphanumericslab/ecg-image-kit/codes/ecg-image-generator/ecg_plot.py official repository unverified BSD-3-Clause (permissive) · 5fde0f1c6454fcfd · report
randomBestPatch alphanumericslab/ecg-image-kit/codes/ecg-image-generator/CreasesWrinkles/creases.py official repository unverified BSD-3-Clause (permissive) · df59d1d988238283 · report
randomPatch alphanumericslab/ecg-image-kit/codes/ecg-image-generator/CreasesWrinkles/creases.py official repository unverified BSD-3-Clause (permissive) · ef0113b01830c177 · report
read_config_file alphanumericslab/ecg-image-kit/codes/ecg-image-generator/helper_functions.py official repository unverified BSD-3-Clause (permissive) · b367121bf534f6ca · report

Tasks

Data AugmentationDecision MakingDenoisingImage GenerationPrivacy PreservingTime Series

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections