NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

MedTVL: Harnessing Vision and Language for Medical Time Series Classification

Jiexia Ye, Jia Li, Fugee TsungarXiv 2026

TL;DR

MedTVL is a novel tri-modal framework for medical time series classification that mirrors real-world clinical workflows by integrating numerical signals, visual morphology, and textual context. By combining a CNN-based temporal pathway, a Transformer-based visual pathway, and adaptive textual guidance via a Mixture-of-Experts (MoE) module, it achieves state-of-the-art performance across multiple diagnostic tasks while effectively mitigating clinical label scarcity.

What Problem Does This Paper Address?

Medical time series (MedTS) data, such as electrocardiograms (ECGs) and electroencephalograms (EEGs), are crucial for patient monitoring and disease screening. However, analyzing this data computationally is challenging due to high signal heterogeneity, multi-scale patterns, and a chronic shortage of high-quality expert annotations.

Traditional deep learning models typically treat MedTS as purely numerical 1D sequences. While some recent multimodal approaches incorporate clinical text, they miss a vital component of real-world medical diagnosis: visual reasoning. When a cardiologist reviews an ECG, they don't just look at raw data points or read a chart description; they visually inspect the holistic geometric structure (morphology) of the waveform—such as an ST-segment elevation—alongside the patient's clinical history.

The authors address this gap by introducing MedTVL, a framework designed to exploit the tri-modal synergy between numerical assessment, visual inspection, and clinical semantic context.

Figure 1: Illustration of the multi-view diagnostic process for MedTS, highlighting the complementary strengths of numer- ical, visual, and textual views to support clinical decisions.

Methods

MedTVL introduces a text-guided dual-pathway architecture that explicitly embraces both cross-modal and architectural heterogeneity:

  1. Temporal Pathway (CNN-based): This pathway uses an InceptionTime backbone to extract fine-grained, localized numerical dynamics directly from raw 1D sequences. CNNs provide a strong inductive bias for capturing local, shift-invariant temporal fluctuations.
  2. Visual Pathway (Transformer-based): To capture holistic structural morphology, 1D signals are transformed into 2D images using Continuous Wavelet Transform (CWT) scalograms. These scalograms are arranged into a structured grid layout matching standard clinical lead orderings and processed using a Swin Transformer. The Transformer's self-attention mechanism excels at modeling global spatial-structural correlations across the image grid.
  3. Adaptive Textual Guidance: Clinical text is encoded using a frozen ClinicalBERT model. To prevent feature degradation caused by directly forcing text into different signal spaces, these embeddings are adaptively projected into modality-specific subspaces and integrated into each pathway via a gated fusion mechanism.
  4. MoE-based Instance-Adaptive Fusion: Because different diseases prioritize different diagnostic cues (e.g., some rely on precise timing, others on overall wave shape), a Mixture-of-Experts (MoE) module dynamically routes the combined features to specialized fusion experts on a per-sample basis.
  5. Multimodal Contrastive Learning: To tackle label scarcity, MedTVL supports self-supervised pre-training using a dual-level contrastive loss: an inter-modality loss to align the temporal and visual pathways, and an intra-modality loss to maintain representation consistency under data augmentations.
Figure 2: Overview of the MedTVL framework. More details are in section 3.

Datasets

The authors evaluated MedTVL across seven configurations spanning three distinct clinical scenarios:

  • Alzheimer’s Disease (EEG): APAVA (2-Classes) and ADFTD (3-Classes).
  • Epilepsy (EEG): TUSZ (2-Classes) and TUSZ (4-Classes).
  • Cardiac Disease (ECG): PTB (2-Classes), PTB-XL (4-Classes), and PTB-XL (5-Classes).

All datasets are public benchmarks, allowing for rigorous comparison against existing unimodal and bimodal models.

Key Insights and Ideas

  • Strategic Heterogeneous Pairing: The paper's most compelling finding is that pairing a CNN for time series with a Transformer for vision yields a powerful synergy. CNNs are uniquely suited for local temporal motifs, whereas Transformers are better aligned with the spatial structural correlations of 2D images.
  • Grid-Based Image Creation: Arranging multi-channel CWT scalograms into a structured grid layout allows the vision backbone to implicitly model cross-channel (inter-lead) correlations, closely mimicking how clinicians cross-reference patterns across multiple leads.
  • Instance-Level Adaptivity: Rather than using static concatenation or a uniform gating mechanism, the MoE router dynamically adjusts the fusion weights for each individual patient sample, effectively mitigating pathway conflicts.

Key Results

  • Supervised Learning: MedTVL consistently outperformed all state-of-the-art baselines (including large language model-based time-series architectures like GPT4TS and TimeVLM), achieving a 3% to 5% absolute improvement in average F1 score over the second-best models.
  • Few-Shot Transferability: When pre-trained on a label-rich source dataset and fine-tuned on a data-restricted target dataset, MedTVL achieved state-of-the-art results across nearly all $k$-shot settings, showing robust cross-dataset generalization.
  • Contrastive Learning Efficiency: Under linear probing settings (using only 10% or 50% of labeled data), MedTVL significantly outperformed time-only contrastive methods, proving that tri-modal pre-training yields much higher representation density.
  • Computational Footprint: Despite its tri-modal architecture, MedTVL remains highly compact with only 3.23M trainable parameters, making it significantly faster and more lightweight than massive LLM-centric alternatives.
Efficiency comparison on TUSZ (4-Classes) showing training time vs. F1 score

Limitations and Future Work

The authors note that MedTVL is subject to limitations stemming from dataset quality, representativeness, and potential text-annotation biases. Furthermore, it is strictly intended as a research and decision-support framework rather than a standalone diagnostic system, meaning its predictions must always be interpreted by qualified medical professionals.

Future work could explore expanding the textual guidance component to handle open-ended, dynamically generated clinical reports rather than relying on frozen embeddings, as well as testing the framework's robustness in open-set clinical environments.

Summary updated

BibTeX
@misc{ye2026medtvl,
  author = {Jiexia Ye and Jia Li and Fugee Tsung},
  title = {{MedTVL: Harnessing Vision and Language for Medical Time Series Classification}},
  year = {2026},
  eprint = {2608.28605},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2608.28605},
}
Figure