LifeLine.ai: A SigLIP-MedGemma Multimodal Framework with KTO Alignment for Open-Vocabulary 12-Lead ECG Report Generation
A. Irfan, K. K. Jadoon, M. Hanif
Key points
From the paper's conclusion- We present LifeLine.ai, an end-toend multimodal Vision-ECG-Language framework for automated cardiac diagnosis and clinical reporting.
Abstract
Automated twelve-lead electrocardiogram (ECG) interpretation has historically relied on discriminative classifiers limited to closed-set diagnostic labels, signal reconstruction, or saliency heatmaps. While categorizing predefined arrhythmias well, these static classifiers cannot generate narrative clinical reports, incorporate patient history, or support interactive clinical question-answering (Q&A). We present LifeLine.ai, an end-toend multimodal Vision-ECG-Language framework for automated cardiac diagnosis and clinical reporting. After early attempts at waveform peak-tracking and coordinate mapping failed against complex morphological variations, we leveraged large-scale PhysioNet repositories (MIMIC-IV and PTB-XL). Because hardware limits precluded training on over 800,000 raw records, we curated a balanced subset to estimate performance, converting one-dimensional signals into 3x4 twelve-lead grids with continuous Lead II rhythm strips at the bottom. Our pipeline integrates YOLOv11s localization, a LoRAadapted Google SigLIP encoder, a trainable Multi-Layer Perceptron projector, and a 4-bit quantized MedGemma-4B model, complemented by a separate Kahneman-Tversky Optimization (KTO) pipeline built on collected user feedback and a multi-LLM consensus engine. On this compact subset, SigLIP outperformed Swin Transformer encodings (~0.21 vs. ~0.25 validation loss), achieving 71.0% open-vocabulary precision and a 75.0% contextual F1 score across a cloud deployment spanning Vercel, mobile apps, Amazon EC2, Firebase, Hugging Face, Modal GPUs, and lifelinecg-sdk. Our code is available at https://github.com/Asad939asad/ LifeLine.ai-.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- LEAP-LLM: Preserving lead-time structure for question-conditioned ECG interpretationarXiv · 2026
- Multimodal large language models demonstrate consistently low accuracy for 12-lead electrocardiogram interpretation: a 599-case benchmark studyEuropean Heart Journal · 2026
- Teaching multimodal LLMs to comprehend 12-lead electrocardiographic imagesnpj Digital Medicine · 2026
- Electrocardiogram complexity determines large language model diagnostic accuracy: a pathology-stratified analysis of 599 cases across 22 diagnostic categoriesEuropean Heart Journal · 2026
- ECGQuest: Benchmarking and Fine-Tuning Language Models for ElectrocardiographyarXiv · 2026
- Bridging clinical knowledge and AI: an interpretable transformer framework for ECG diagnosisnpj Digital Medicine · 2025