A tri-modal, offline, and explainable framework for 12-lead electrocardiogram interpretation: fusing deterministic rules, a local residual network, and an agentic vision-language model.
Mohammad Mahbubur Rahman Khan Mamun
Independent researcher, 8400 Country Club Way, Knoxville, Tennessee, 38505-0001, United States.
Key points
From the paper's conclusion- In a small pilot (25 records; 30 rule/network disagreements) the general-purpose agentic model was the weakest adjudicator (accuracy 0.267, 95% CI 0.142-0.444; exact McNemar test versus rules, p = 0.09).

Significance.
Abstract
Automated electrocardiogram (ECG) interpretation is increasingly delivered as cloud deep-learning services, trading data sovereignty, auditability and robustness for accuracy. This study tests whether an offline, explainable framework can remove that trade-off. Approach. Three independent interpreters feed a decision-fusion layer: a deterministic engine of 26 executable clinical criteria, each finding linked to a highlighted signal segment and a literature source; a compact one-dimensional residual network trained on PTB-XL and run on-device via the Open Neural Network Exchange runtime; and an optional agentic vision-language model reading a rendered ECG image behind a security screen with human-in-the-loop escalation. Format-agnostic ingestion, lead-aware capability tiering and a three-tier signal-quality gate precede interpretation. Evaluation covers diagnostic accuracy, on-device latency, noise resilience, modality ablation and zero-shot external validation. Main results. On the PTB-XL test fold (n = 2198) the network reaches a macro-averaged area under the receiver operating characteristic curve (AUROC) of 0.932 (95% confidence interval (CI) 0.918-0.943), matching published GPU baselines, while the complete pipeline runs in 108 ± 25 ms on a CPU with no network access. Performance degrades gracefully to a signal-to-noise ratio of 5 dB (AUROC 0.951) as the quality gate rejects uninterpretable signals, and rules and network agree only weakly (Cohen's kappa 0.26), indicating complementary errors. Applied without retraining to an independent cohort (Chapman-Shaoxing, n = 1599) the model retains a macro-AUROC of 0.898. In a small pilot (25 records; 30 rule/network disagreements) the general-purpose agentic model was the weakest adjudicator (accuracy 0.267, 95% CI 0.142-0.444; exact McNemar test versus rules, p = 0.09). Significance. Edge inference, intrinsic explainability and governed multi-modal fusion give competitive accuracy with auditable findings. The agentic layer is positioned for governance rather than diagnosis, motivating ECG-specialized models. The open-source system is a research prototype, not a medical device.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- Artificial intelligence-based automated interpretation of images of electrocardiograms: development and multinational validation of ECG-GPTEuropean Heart Journal - Digital Health · 2026
- Explainable AI for automatic heart disease diagnosis using 3DFMMecg features: A novel ECG-based approachBiomedical Signal Processing and Control · 2025
- Multimodal large language models demonstrate consistently low accuracy for 12-lead electrocardiogram interpretation: a 599-case benchmark studyEuropean Heart Journal · 2026
- LifeLine.ai: A SigLIP-MedGemma Multimodal Framework with KTO Alignment for Open-Vocabulary 12-Lead ECG Report GenerationmedRxiv · 2026
- Foundation models for electrocardiogram interpretation: clinical implicationsEuropean Heart Journal · 2025
- AI-Assisted Multilabel Diagnosis of 12-Lead Electrocardiograms Using an Interpretable Stacked Deep Learning Model with External Validation.Diagnostics (Basel, Switzerland) · 2026