MIRA: Medical Time Series Foundation Model for Real-World Health Data

Hao Li, Bowen Deng, Chang Xu, ZhiYuan Feng, Viktor Schlegel, Yu-Hao Huang, Yizheng Sun, Jingyuan Sun, Kailai Yang, Yiyao Yu, Jiang Bian

Introduction

Medical time series data—ranging from high-frequency electrocardiograms (ECGs) to sparse, irregularly sampled laboratory results—is fundamental to modern clinical decision-making. While general-purpose time series foundation models like Chronos or TimesFM have demonstrated impressive zero-shot capabilities, they often struggle with the inherent messiness of real-world healthcare data. These models typically assume uniform sampling intervals, a condition rarely met in clinical environments where observations are asynchronous and missing values are the norm.

MIRA (Medical Irregularity-Aware) addresses this gap as a specialized foundation model designed to handle continuous-time dynamics. By integrating novel architectural components specifically for irregular data, MIRA achieves state-of-the-art performance across diverse medical forecasting tasks, outperforming much larger generalist models.

Architectural Innovations

MIRA utilizes a decoder-only Transformer architecture enhanced by three core components designed to model the continuous nature of clinical time series:

1. Continuous-Time Rotary Positional Encoding (CT-RoPE)

Traditional models use discrete indices for positional encoding, which fails to capture the precise temporal gaps in irregular data. MIRA introduces CT-RoPE, which maps real-valued timestamps directly into rotation angles within the attention mechanism. This allows the model to natively understand the exact duration between observations, whether they occur milliseconds or days apart.

2. Frequency-Specific Mixture-of-Experts (MoE)

Clinical signals operate across vastly different temporal scales. To manage this heterogeneity, MIRA replaces standard feedforward layers with a sparse MoE block. A specialized router directs tokens to specific "expert" networks based on their frequency characteristics. This enables the model to process high-frequency physiological waveforms and low-frequency clinical trends using distinct, optimized parameters.

3. Continuous Dynamics Extrapolation (Neural ODEs)

To predict patient states at arbitrary future time points, MIRA incorporates a Neural Ordinary Differential Equation (ODE) block. Unlike standard autoregressive models that predict the next discrete token, the Neural ODE allows the model's hidden state to evolve continuously. This provides the flexibility needed to forecast values at any specific timestamp requested by a clinician.

Large-Scale Pretraining

MIRA was pretrained on a massive corpus of 454 billion clinical data points, encompassing a wide variety of medical modalities:

  • ICU Data: MIMIC-III and MIMIC-IV datasets, containing irregular vital signs and lab results.
  • Waveforms: PTB-XL (12-lead ECGs), Sleep-EDF (EEG and respiration), and WAVES (pediatric physiological data).

This diverse training set ensures the model captures the complex temporal patterns found across different patient populations and medical conditions.

Key Results and Insights

Superior Zero-Shot Performance

In evaluation against both generalist foundation models and task-specific specialized models, MIRA demonstrated significant improvements. The 455M parameter version of MIRA achieved an average 8% reduction in Root Mean Squared Error (RMSE) on out-of-distribution (OOD) datasets. Notably, even the smallest MIRA variant (73M parameters) outperformed the 710M parameter Chronos model on medical tasks, suggesting that domain-specific architectural priors are more critical than raw scale for clinical applications.

Resilience to Data Sparsity

One of MIRA's most significant strengths is its robustness to missing data. In stress tests where missingness was artificially induced at rates ranging from 10% to 90%, MIRA maintained stable performance. Even at the extreme 90% missing rate, the model showed minimal degradation, proving its utility in data-poor clinical scenarios.

Efficient Inference

Despite its capacity, MIRA remains computationally efficient. The MoE architecture ensures that only approximately 200M parameters are active during any single inference step. The authors found that activating just two experts per token provided an optimal balance between predictive accuracy and computational speed.

Conclusion

MIRA represents a significant step forward in medical AI by treating time as a continuous variable rather than a discrete sequence. By combining CT-RoPE, frequency-specific MoE, and Neural ODEs, the model effectively navigates the irregularities of real-world health data. While future work is needed to address privacy concerns and validate performance in live clinical workflows, MIRA provides a robust foundation for the next generation of predictive healthcare tools.

Summary updated

BibTeX
@inproceedings{li2025mira,
  author = {Hao Li and Bowen Deng and Chang Xu and ZhiYuan Feng and Viktor Schlegel and Yu-Hao Huang and Yizheng Sun and Jingyuan Sun and Kailai Yang and Yiyao Yu and Jiang Bian},
  title = {{MIRA: Medical Time Series Foundation Model for Real-World Health Data}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2025},
  url = {https://openreview.net/forum?id=Auy2DmlJBO},
}
Figure