PaperarXiv:2611.22827

Compact and Decodable Electrocardiogram Text for Large Language Models

PreprintDated Nov 17, 2026Added Nov 18, 2026

  • ET

Authors: Elif Dorukbaşı; İlker Türker

arXiv preprint (cs.CL); chapter submitted to a Karabük University Press volume

TL;DR

Deterministic encoding: 8 independent leads written as amplitude letters + exact time gaps; the 4 limb leads are recovered algebraically. Key points chosen with a cardiac-cycle-dependent tolerance; amplitudes from a 26-letter log codebook; a 10-step tolerance schedule keeps every record inside a fixed token budget. CNN classifiers (5 seeds) on decoded vs original signals: macro AUROC 0.9157 vs 0.9167 (paired diff −0.0010, 95% patient-level bootstrap −0.0028 to 0.0007), inside the pre-specified −0.010 margin.

Abstract

When a twelve-lead electrocardiogram is written as text for a large language model, the number of tokens has to be balanced against the information lost through compression. This paper presents a deterministic encoding that writes eight independent leads as amplitude letters and exact time gaps and recovers the remaining four limb leads algebraically. The key points are selected with a cardiac-cycle-dependent tolerance, the amplitudes are parameterized by a 26-letter logarithmic codebook learned from a training set, and a 10-step tolerance schedule keeps all records within a fixed token budget. The encoding was applied to 21,388 records from the public PTB-XL database and evaluated using an exact decode-and-re-encode round trip, waveform reconstruction error, and a paired comparison of convolutional classifiers trained with 5 different seeds on signals from the original and decoded databases. All records were contained in 4,080 tokens (average: 2,866 tokens, 64.3% fewer than a per-sample transcription), and all stored lead strings were exactly reproduced. The average correlation between the decoded and reference signals was 0.982. The macro-averaged area under the receiver operating characteristic curve was 0.9167 for the reference signals and 0.9157 for the decoded signals (paired difference -0.0010; 95% patient-level bootstrap interval, -0.0028 to 0.0007), within the pre-specified non-inferiority margin of -0.010; this is not a confirmatory result, because the test fold had been used during encoder development. The diagnostic content of a compact text can therefore be preserved, while the language model's ability to read the text is yet another matter.

Verbatim from arXiv (opens in a new tab) · arXiv metadata (abstracts are released under CC0)

Results on ChatPPG leaderboards

All leaderboards

No results from this paper on ChatPPG leaderboards yet. Browse the leaderboards.

Tasks & signals

Signals

Keywords

ECG LlmTokenisationSignal to TextCompressionPTB XLT AGENT

Datasets used

How it works

How Compact decodable ECG text encoding for LLMs (Dorukbaşı & Türker) works: Setup → Method → TargetSetup: Signals (ecg). Method: Compact decodable ECG text encoding for LLMs (Dorukbaşı & Türker) (Language-aligned).SetupSignals: ecgSignalsecgMethodCompact decodable ECG text…Language-aligned

Cite this paper

Cite this paper with the fields recorded here. Check it against the publisher before submitting.

Dorukbaşı, E., & Türker, İ. (2026). Compact and Decodable Electrocardiogram Text for Large Language Models. arXiv preprint. https://arxiv.org/abs/2611.22827
Dorukbaşı, Elif and İlker Türker. 2026. "Compact and Decodable Electrocardiogram Text for Large Language Models." arXiv preprint. https://arxiv.org/abs/2611.22827.
Dorukbaşı, E. and Türker, İ. (2026) 'Compact and Decodable Electrocardiogram Text for Large Language Models', arXiv preprint. Available at: https://arxiv.org/abs/2611.22827
Dorukbaşı, Elif, and İlker Türker "Compact and Decodable Electrocardiogram Text for Large Language Models." arXiv preprint, 2026. https://arxiv.org/abs/2611.22827.
E. Dorukbaşı and İ. Türker, "Compact and Decodable Electrocardiogram Text for Large Language Models," arXiv preprint, 2026, [Online]. Available: https://arxiv.org/abs/2611.22827.
@misc{dorukbas2026compact,
  title         = {{Compact and Decodable Electrocardiogram Text for Large Language Models}},
  author        = {Dorukbaşı, Elif and Türker, İlker},
  year          = {2026},
  howpublished  = {arXiv preprint},
  eprint        = {2611.22827},
  archivePrefix = {arXiv}
}

Source metadata: 2026

Record updated Nov 18, 2026

Added to the ChatPPG research hub