How Effectively Can Large Language Models Connect SNP Variants and ECG Phenotypes for Cardiovascular Risk Prediction?

Niranjana Arun Menon, Iqra Farooq, Yulong Li, Sara Ahmed, Yutong Xie, Muhammad Awais, Imran Razzak · DOI

Cardiovascular disease (CVD) remains the leading cause of death globally. While genomic data from Genome-Wide Association Studies (GWAS) and electrophysiological data from Electrocardiograms (ECGs) are abundant, bridging the gap between them is challenging. Single Nucleotide Polymorphisms (SNPs)—tiny variations in DNA—often reside in non-coding regions, exerting subtle, non-linear effects on cardiac function. Traditional statistical models frequently fail to capture these high-dimensional relationships or provide interpretable mechanistic links.

Methodology: An Integrative LLM Framework

The researchers proposed a framework that treats biological data integration as a language modeling task. The core of this approach involves fine-tuning causal Large Language Models (LLMs) to "reason" through multi-modal data.

Overview of the proposed framework for CVD risk prediction using LLMs.

Data Stratification and Tokenization

Participants were divided into three tiers based on data certainty:

  • Tier 1: Confirmed clinical diagnoses.
  • Tier 2: Indirect risk factors (e.g., hypertension) with statistically supported genetic links.
  • Tier 3: Unlabeled participants grouped via unsupervised clustering to infer potential future risk.

Genetic variants (SNPs) were tokenized using a TF-IDF (Term Frequency-Inverse Document Frequency) scheme, while ECG features like PR and QT intervals were converted into numerical tokens.

Fine-Tuning and Reasoning

The models—GPT-2, Llama 3.2 1B, and DeepSeek 1.3B—were fine-tuned using Low-Rank Adaptation (LoRA). A Chain-of-Thought (CoT) prompting strategy was employed, requiring the models to generate both a "Conclusion" and an "Explanation" to ensure clinical interpretability and mitigate the "black box" nature of deep learning.

Datasets

The study utilized a harmonized cardiogenomic dataset of 8,856 participants from the PhenoAI HPP repository. This dataset is unique for its high-resolution SNP genotyping aligned with morphological and temporal ECG features. For final evaluation, a balanced subset of 1,050 participants (350 per tier) was used.

Key Results and Performance

The fine-tuned LLMs demonstrated high efficacy in synthesizing complex biological data. DeepSeek 1.3B emerged as the top performer, achieving an accuracy of 91.0%, a precision of 0.869, and an F1 score of 0.840. Llama 3.2 1B followed closely with 90.1% accuracy.

Model loss curves across training epochs for GPT-2, LLaMA-3, and DeepSeek.

The loss curves indicate that DeepSeek 1.3B converged significantly faster and reached a lower final loss compared to GPT-2 and Llama, suggesting that certain pre-training alignments are more conducive to biological reasoning tasks. On Tier 1 data (confirmed cases), both leading models reached 92% accuracy.

Discussion and Future Directions

The success of the CoT approach provides a pathway for "explainable AI" in cardiology, generating evidence-based clinical vignettes. However, limitations include the relatively small evaluation cohort and the inherent risk of LLM hallucinations. Future work aims to scale to larger models and integrate additional modalities like medical imaging and blood reports to create comprehensive "digital twins" for cardiovascular health.

Summary updated

BibTeX
@misc{menon2025how,
  author = {Niranjana Arun Menon and Iqra Farooq and Yulong Li and Sara Ahmed and Yutong Xie and Muhammad Awais and Imran Razzak},
  title = {{How Effectively Can Large Language Models Connect SNP Variants and ECG Phenotypes for Cardiovascular Risk Prediction?}},
  year = {2025},
  eprint = {2508.07127},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2508.07127},
}
Figure